@scalar/api-client 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/clientBus.d.ts +2 -0
  3. package/dist/clientBus.d.ts.map +1 -0
  4. package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -1
  5. package/dist/components/ApiClient/Request/Request.vue.d.ts.map +1 -1
  6. package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts +10 -0
  7. package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts.map +1 -0
  8. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts +12 -0
  9. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts.map +1 -0
  10. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts +10 -0
  11. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts.map +1 -0
  12. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts +25 -0
  13. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts.map +1 -0
  14. package/dist/components/ApiClient/Request/{RequestAuth.vue.d.ts → RequestAuthentication/RequestAuthentication.vue.d.ts} +1 -1
  15. package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +1 -0
  16. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts +17 -0
  17. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts.map +1 -0
  18. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts +26 -0
  19. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts.map +1 -0
  20. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts +25 -0
  21. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map +1 -0
  22. package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts +4 -0
  23. package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts.map +1 -0
  24. package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts +3 -0
  25. package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts.map +1 -1
  26. package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts +6 -2
  27. package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +1 -1
  28. package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts +3 -0
  29. package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +1 -1
  30. package/dist/components/Badge/Badge.vue.d.ts +10 -0
  31. package/dist/components/Badge/Badge.vue.d.ts.map +1 -0
  32. package/dist/components/Badge/index.d.ts +2 -0
  33. package/dist/components/Badge/index.d.ts.map +1 -0
  34. package/dist/components/Grid/Grid.vue.d.ts +6 -2
  35. package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
  36. package/dist/helpers/getRequestFromAuthentication.d.ts +10 -0
  37. package/dist/helpers/getRequestFromAuthentication.d.ts.map +1 -0
  38. package/dist/helpers/index.d.ts +1 -0
  39. package/dist/helpers/index.d.ts.map +1 -1
  40. package/dist/helpers/prepareClientRequestConfig.d.ts +8 -3
  41. package/dist/helpers/prepareClientRequestConfig.d.ts.map +1 -1
  42. package/dist/index.css +305 -32
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +1119 -661
  46. package/dist/stores/index.d.ts +4 -2
  47. package/dist/stores/index.d.ts.map +1 -1
  48. package/dist/stores/{apiClientStore.d.ts → useApiClientStore.d.ts} +1 -1
  49. package/dist/stores/useApiClientStore.d.ts.map +1 -0
  50. package/dist/stores/useAuthenticationStore.d.ts +50 -0
  51. package/dist/stores/useAuthenticationStore.d.ts.map +1 -0
  52. package/dist/stores/useOpenApiStore.d.ts +131 -0
  53. package/dist/stores/useOpenApiStore.d.ts.map +1 -0
  54. package/dist/stores/{requestStore.d.ts → useRequestStore.d.ts} +2 -30
  55. package/dist/stores/useRequestStore.d.ts.map +1 -0
  56. package/dist/types.d.ts +5 -33
  57. package/dist/types.d.ts.map +1 -1
  58. package/package.json +7 -4
  59. package/dist/components/ApiClient/Request/RequestAuth.vue.d.ts.map +0 -1
  60. package/dist/stores/apiClientStore.d.ts.map +0 -1
  61. package/dist/stores/requestStore.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -5,25 +5,26 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import "./index.css";
8
- import { defineComponent, openBlock, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode, reactive, readonly, ref, computed, normalizeStyle, renderSlot, normalizeProps, guardReactiveProps, watch, onBeforeUnmount, toValue as toValue$1, toRef, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList, createStaticVNode, pushScopeId, popScopeId, withDirectives, withModifiers, vModelSelect, vModelText, vModelCheckbox, nextTick, onServerPrefetch, onMounted, defineAsyncComponent, vShow, toRaw, withKeys } from "vue";
9
- import { Dialog, DialogPanel, DialogTitle, DialogDescription, Disclosure, DisclosureButton, DisclosurePanel, TabGroup, TabList, Tab, TabPanels, TabPanel } from "@headlessui/vue";
10
- import { useMagicKeys, whenever, useMediaQuery } from "@vueuse/core";
8
+ import { defineComponent, openBlock, createBlock, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, unref, createCommentVNode, onMounted, useCssModule, renderSlot, reactive, readonly, ref, computed, normalizeStyle, normalizeProps, guardReactiveProps, watch, onBeforeUnmount, toValue as toValue$1, toRef, createElementBlock, createElementVNode, createVNode, normalizeClass, Fragment, renderList, createStaticVNode, pushScopeId, popScopeId, mergeProps, nextTick, onServerPrefetch, defineAsyncComponent, Teleport, withModifiers, withDirectives, vShow, vModelText, vModelCheckbox, toRaw, withKeys } from "vue";
9
+ import { Dialog, DialogPanel, DialogTitle, DialogDescription, Disclosure, DisclosureButton, DisclosurePanel, Listbox, ListboxButton, ListboxOptions, ListboxOption, TabGroup, TabList, Tab, TabPanels, TabPanel } from "@headlessui/vue";
10
+ import { useMagicKeys, whenever, useEventBus, useMediaQuery } from "@vueuse/core";
11
11
  import axios from "axios";
12
12
  import { nanoid } from "nanoid";
13
13
  import prettyBytes from "pretty-bytes";
14
14
  import prettyMilliseconds from "pretty-ms";
15
+ import { useFloating, autoUpdate, offset, flip, shift as shift$1 } from "@floating-ui/vue";
15
16
  import contentType from "content-type";
16
- const alternateTheme = "/* basic theme */\n.light-mode,\n.light-mode .dark-mode {\n --default-theme-background-1: #f9f9f9;\n --default-theme-background-2: #f1f1f1;\n --default-theme-background-3: #e7e7e7;\n --default-theme-background-card: #fff;\n\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n\n --default-theme-color-accent: var(--default-theme-color-1);\n --default-theme-background-accent: var(--default-theme-background-3);\n\n --default-theme-border-color: rgba(0, 0, 0, 0.1);\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-1\n );\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.dark-mode {\n --default-theme-background-1: #131313;\n --default-theme-background-2: #1d1d1d;\n --default-theme-background-3: #272727;\n --default-theme-background-card: #1d1d1d;\n\n --default-theme-color-1: rgba(255, 255, 255, 0.9);\n --default-theme-color-2: rgba(255, 255, 255, 0.62);\n --default-theme-color-3: rgba(255, 255, 255, 0.44);\n\n --default-theme-color-accent: var(--default-theme-color-1);\n --default-theme-background-accent: var(--default-theme-background-3);\n\n --default-theme-border-color: rgba(255, 255, 255, 0.1);\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-3\n );\n --default-theme-code-language-color-supersede: var(--default-theme-color-3);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-hover-color: currentColor;\n\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: transparent;\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n\n --default-sidebar-indent-border: var(--default-sidebar-border-color);\n --default-sidebar-indent-border-hover: var(--default-sidebar-border-color);\n --default-sidebar-indent-border-active: var(--default-sidebar-border-color);\n}\n/* advanced */\n.light-mode .dark-mode,\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #00b648;\n --default-theme-color-red: #dd2f2c;\n --default-theme-color-yellow: #ffc90d;\n --default-theme-color-blue: #4eb3ec;\n --default-theme-color-orange: #ff8d4d;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n\n.code-languages-background:before {\n box-shadow: inset 0 0 0 1px var(--default-theme-border-color) !important;\n}\n.scalar-api-client__item,\n.scalar-card,\n.dark-mode .dark-mode.scalar-card {\n --default-theme-background-1: var(--default-theme-background-card);\n --default-theme-background-2: var(--default-theme-background-1);\n --default-theme-background-3: var(--default-theme-background-1);\n}\n.dark-mode .dark-mode.scalar-card {\n --default-theme-background-3: var(--default-theme-background-3);\n}\n.t-doc__sidebar {\n --default-theme-color-green: var(--default-theme-color-1);\n --default-theme-color-red: var(--default-theme-color-1);\n --default-theme-color-yellow: var(--default-theme-color-1);\n --default-theme-color-blue: var(--default-theme-color-1);\n --default-theme-color-orange: var(--default-theme-color-1);\n --default-theme-color-purple: var(--default-theme-color-1);\n}\n.references-rendered .download-cta .download-button,\n.references-rendered .markdown a {\n color: var(--default-theme-color-1) !important;\n text-decoration: underline !important;\n}\n";
17
- const bluePlanetTheme = "/* basic theme */\n.light-mode {\n --default-theme-background-1: #f0f2f5;\n --default-theme-background-2: #eaecf0;\n --default-theme-background-3: #e0e2e6;\n --default-theme-border-color: rgb(228, 228, 231);\n\n --default-theme-color-1: rgb(9, 9, 11);\n --default-theme-color-2: rgb(113, 113, 122);\n --default-theme-color-3: rgba(25, 25, 28, 0.5);\n\n --default-theme-color-accent: var(--default-theme-color-1);\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.light-mode .scalar-card.dark-mode,\n.dark-mode {\n --default-theme-background-1: #000e23;\n --default-theme-background-2: #01132e;\n --default-theme-background-3: #03193b;\n --default-theme-border-color: rgba(255, 255, 255, 0.12);\n\n --default-theme-color-1: #fafafa;\n --default-theme-color-2: rgb(161, 161, 170);\n --default-theme-color-3: rgba(255, 255, 255, 0.533);\n\n --default-theme-color-accent: var(--default-theme-color-1);\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-hover-color: currentColor;\n\n --default-sidebar-item-active-background: var(--default-theme-background-3);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n --default-sidebar-search-color: var(--default-theme-color-3);\n z-index: 1;\n}\n.light-mode .t-doc__sidebar {\n --default-sidebar-search-background: white;\n}\n/* advanced */\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: rgba(69, 255, 165, 0.823);\n --default-theme-color-red: #ff8589;\n --default-theme-color-yellow: #ffcc4d;\n --default-theme-color-blue: #6bc1fe;\n --default-theme-color-orange: #f98943;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n/* Custom theme */\n.show-api-client-button:before {\n background: white !important;\n}\n.show-api-client-button span,\n.show-api-client-button svg {\n color: black !important;\n}\n.references-rendered .download-cta .download-button,\n.references-rendered .markdown a {\n text-decoration: underline !important;\n}\n/* Document header */\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.code-languages-background {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--default-theme-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n}\n.light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n}\n.code-languages__active .code-languages-background:before {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages span {\n margin-top: 5px !important;\n}\n/* Hero Section Flare */\n.section-flare-item:nth-of-type(1) {\n --c1: #ffffff;\n --c2: #babfd8;\n --c3: #2e8bb2;\n --c4: #1a8593;\n --c5: #0a143e;\n --c6: #0a0f52;\n --c7: #2341b8;\n\n --solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6),\n var(--c7);\n --solid-wrap: var(--solid), var(--c1);\n --trans: var(--c1), transparent, var(--c2), transparent, var(--c3),\n transparent, var(--c4), transparent, var(--c5), transparent, var(--c6),\n transparent, var(--c7);\n --trans-wrap: var(--trans), transparent, var(--c1);\n\n background: radial-gradient(circle, var(--trans)),\n conic-gradient(from 180deg, var(--trans-wrap)),\n radial-gradient(circle, var(--trans)), conic-gradient(var(--solid-wrap));\n width: 70vw;\n height: 700px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n right: 0;\n position: absolute;\n transform: rotate(-45deg);\n top: -300px;\n opacity: 0.3;\n}\n.section-flare-item:nth-of-type(3) {\n --star-color: #6b9acc;\n --star-color2: #446b8d;\n --star-color3: #3e5879;\n background-image: radial-gradient(\n 2px 2px at 20px 30px,\n var(--star-color2),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 160px 120px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n );\n background-repeat: repeat;\n background-size: 200px 200px;\n width: 100%;\n height: 100%;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n}\n.section-flare {\n top: -150px !important;\n height: 100vh;\n background: linear-gradient(#000, var(--default-theme-background-1));\n width: 100vw;\n}\n.light-mode .section-flare {\n display: none;\n}\n.light-mode .scalar-card {\n --default-theme-background-1: #fff;\n --default-theme-background-2: #fff;\n --default-theme-background-3: #fff;\n}\n";
18
- const deepSpaceTheme = "/* basic theme */\n.light-mode {\n --default-theme-color-1: rgb(9, 9, 11);\n --default-theme-color-2: rgb(113, 113, 122);\n --default-theme-color-3: rgba(25, 25, 28, 0.5);\n --default-theme-color-accent: var(--default-theme-color-1);\n\n --default-theme-background-1: #fff;\n --default-theme-background-2: #f4f4f5;\n --default-theme-background-3: #e3e3e6;\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-border-color: rgb(228, 228, 231);\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.dark-mode {\n --default-theme-color-1: #fafafa;\n --default-theme-color-2: rgb(161, 161, 170);\n --default-theme-color-3: rgba(255, 255, 255, 0.533);\n --default-theme-color-accent: var(--default-theme-color-1);\n\n --default-theme-background-1: #09090b;\n --default-theme-background-2: #18181b;\n --default-theme-background-3: #2c2c30;\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-border-color: rgba(255, 255, 255, 0.12);\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n\n --default-sidebar-item-active-background: var(--default-theme-background-3);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: transparent;\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n --default-sidebar-search-color: var(--default-theme-color-3);\n}\n.light-mode .t-doc__sidebar {\n --default-sidebar-item-active-background: #09090b;\n --default-sidebar-color-active: var(--default-sidebar-background-1);\n}\n/* advanced */\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: rgba(69, 255, 165, 0.823);\n --default-theme-color-red: #ff8589;\n --default-theme-color-yellow: #ffcc4d;\n --default-theme-color-blue: #6bc1fe;\n --default-theme-color-orange: #f98943;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n/* Custom theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.examples .scalar-card-footer {\n --default-theme-background-3: transparent;\n padding-top: 0;\n}\n.show-api-client-button:before {\n background: white !important;\n}\n.show-api-client-button span,\n.show-api-client-button svg {\n color: black !important;\n}\n.references-rendered .download-cta .download-button,\n.references-rendered .markdown a {\n text-decoration: underline !important;\n}\n.code-languages-background {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--default-theme-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n}\n.light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n}\n.code-languages__active .code-languages-background:before {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages span {\n margin-top: 5px !important;\n}\n/* Hero section flare */\n.section-flare {\n width: 100vw;\n height: 550px;\n position: relative;\n}\n.section-flare-item:nth-of-type(1) {\n position: absolute;\n width: 100vw;\n height: 550px;\n --stripesDark: repeating-linear-gradient(\n 100deg,\n #000 0%,\n #000 7%,\n transparent 10%,\n transparent 12%,\n #000 16%\n );\n --rainbow: repeating-linear-gradient(\n 100deg,\n #fff 10%,\n #fff 16%,\n #fff 22%,\n #fff 30%\n );\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 300%, 200%;\n background-position:\n 50% 50%,\n 50% 50%;\n filter: invert(100%);\n -webkit-mask-image: radial-gradient(\n ellipse at 100% 0%,\n black 40%,\n transparent 70%\n );\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n pointer-events: none;\n opacity: 0.07;\n}\n.dark-mode .section-flare-item:nth-of-type(1) {\n background-image: var(--stripesDark), var(--rainbow);\n filter: opacity(50%) saturate(200%);\n opacity: 0.25;\n height: 350px;\n}\n.section-flare-item:nth-of-type(1):after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 200%, 100%;\n background-attachment: fixed;\n mix-blend-mode: difference;\n}\n.dark-mode .section-flare:after {\n background-image: var(--stripesDark), var(--rainbow);\n}\n.section-flare-item:nth-of-type(2) {\n --star-color: #fff;\n --star-color2: #fff;\n --star-color3: #fff;\n width: 100%;\n height: 100%;\n position: absolute;\n background-image: radial-gradient(\n 2px 2px at 20px 30px,\n var(--star-color2),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 160px 120px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n );\n background-repeat: repeat;\n background-size: 200px 200px;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n opacity: 0.2;\n}\n";
17
+ const alternateTheme = "/* basic theme */\n:root {\n --default-theme-text-decoration: underline;\n --default-theme-text-decoration-hover: underline;\n}\n.light-mode,\n.light-mode .dark-mode {\n --default-theme-background-1: #f9f9f9;\n --default-theme-background-2: #f1f1f1;\n --default-theme-background-3: #e7e7e7;\n --default-theme-background-card: #fff;\n\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n\n --default-theme-color-accent: var(--default-theme-color-1);\n --default-theme-background-accent: var(--default-theme-background-3);\n\n --default-theme-border-color: rgba(0, 0, 0, 0.1);\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-1\n );\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.dark-mode {\n --default-theme-background-1: #131313;\n --default-theme-background-2: #1d1d1d;\n --default-theme-background-3: #272727;\n --default-theme-background-card: #1d1d1d;\n\n --default-theme-color-1: rgba(255, 255, 255, 0.9);\n --default-theme-color-2: rgba(255, 255, 255, 0.62);\n --default-theme-color-3: rgba(255, 255, 255, 0.44);\n\n --default-theme-color-accent: var(--default-theme-color-1);\n --default-theme-background-accent: var(--default-theme-background-3);\n\n --default-theme-border-color: rgba(255, 255, 255, 0.1);\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-3\n );\n --default-theme-code-language-color-supersede: var(--default-theme-color-3);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-hover-color: currentColor;\n\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: transparent;\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n\n --default-sidebar-indent-border: var(--default-sidebar-border-color);\n --default-sidebar-indent-border-hover: var(--default-sidebar-border-color);\n --default-sidebar-indent-border-active: var(--default-sidebar-border-color);\n}\n/* advanced */\n.light-mode .dark-mode,\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #00b648;\n --default-theme-color-red: #dd2f2c;\n --default-theme-color-yellow: #ffc90d;\n --default-theme-color-blue: #4eb3ec;\n --default-theme-color-orange: #ff8d4d;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n\n.code-languages-background:before {\n box-shadow: inset 0 0 0 1px var(--default-theme-border-color) !important;\n}\n.scalar-api-client__item,\n.scalar-card,\n.dark-mode .dark-mode.scalar-card {\n --default-theme-background-1: var(--default-theme-background-card);\n --default-theme-background-2: var(--default-theme-background-1);\n --default-theme-background-3: var(--default-theme-background-1);\n}\n.dark-mode .dark-mode.scalar-card {\n --default-theme-background-3: var(--default-theme-background-3);\n}\n.t-doc__sidebar {\n --default-theme-color-green: var(--default-theme-color-1);\n --default-theme-color-red: var(--default-theme-color-1);\n --default-theme-color-yellow: var(--default-theme-color-1);\n --default-theme-color-blue: var(--default-theme-color-1);\n --default-theme-color-orange: var(--default-theme-color-1);\n --default-theme-color-purple: var(--default-theme-color-1);\n}\n";
18
+ const bluePlanetTheme = "/* basic theme */\n:root {\n --default-theme-text-decoration: underline;\n --default-theme-text-decoration-hover: underline;\n}\n.light-mode {\n --default-theme-background-1: #f0f2f5;\n --default-theme-background-2: #eaecf0;\n --default-theme-background-3: #e0e2e6;\n --default-theme-border-color: rgb(228, 228, 231);\n\n --default-theme-color-1: rgb(9, 9, 11);\n --default-theme-color-2: rgb(113, 113, 122);\n --default-theme-color-3: rgba(25, 25, 28, 0.5);\n\n --default-theme-color-accent: var(--default-theme-color-1);\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.light-mode .scalar-card.dark-mode,\n.dark-mode {\n --default-theme-background-1: #000e23;\n --default-theme-background-2: #01132e;\n --default-theme-background-3: #03193b;\n --default-theme-border-color: rgba(255, 255, 255, 0.12);\n\n --default-theme-color-1: #fafafa;\n --default-theme-color-2: rgb(161, 161, 170);\n --default-theme-color-3: rgba(255, 255, 255, 0.533);\n\n --default-theme-color-accent: var(--default-theme-color-1);\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-hover-color: currentColor;\n\n --default-sidebar-item-active-background: var(--default-theme-background-3);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n --default-sidebar-search-color: var(--default-theme-color-3);\n z-index: 1;\n}\n.light-mode .t-doc__sidebar {\n --default-sidebar-search-background: white;\n}\n/* advanced */\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: rgba(69, 255, 165, 0.823);\n --default-theme-color-red: #ff8589;\n --default-theme-color-yellow: #ffcc4d;\n --default-theme-color-blue: #6bc1fe;\n --default-theme-color-orange: #f98943;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n/* Custom theme */\n/* Document header */\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.code-languages-background {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--default-theme-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n}\n.light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n}\n.code-languages__active .code-languages-background:before {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages span {\n margin-top: 5px !important;\n}\n/* Hero Section Flare */\n.section-flare-item:nth-of-type(1) {\n --c1: #ffffff;\n --c2: #babfd8;\n --c3: #2e8bb2;\n --c4: #1a8593;\n --c5: #0a143e;\n --c6: #0a0f52;\n --c7: #2341b8;\n\n --solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6),\n var(--c7);\n --solid-wrap: var(--solid), var(--c1);\n --trans: var(--c1), transparent, var(--c2), transparent, var(--c3),\n transparent, var(--c4), transparent, var(--c5), transparent, var(--c6),\n transparent, var(--c7);\n --trans-wrap: var(--trans), transparent, var(--c1);\n\n background: radial-gradient(circle, var(--trans)),\n conic-gradient(from 180deg, var(--trans-wrap)),\n radial-gradient(circle, var(--trans)), conic-gradient(var(--solid-wrap));\n width: 70vw;\n height: 700px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n right: 0;\n position: absolute;\n transform: rotate(-45deg);\n top: -300px;\n opacity: 0.3;\n}\n.section-flare-item:nth-of-type(3) {\n --star-color: #6b9acc;\n --star-color2: #446b8d;\n --star-color3: #3e5879;\n background-image: radial-gradient(\n 2px 2px at 20px 30px,\n var(--star-color2),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 160px 120px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n );\n background-repeat: repeat;\n background-size: 200px 200px;\n width: 100%;\n height: 100%;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n}\n.section-flare {\n top: -150px !important;\n height: 100vh;\n background: linear-gradient(#000, var(--default-theme-background-1));\n width: 100vw;\n}\n.light-mode .section-flare {\n display: none;\n}\n.light-mode .scalar-card {\n --default-theme-background-1: #fff;\n --default-theme-background-2: #fff;\n --default-theme-background-3: #fff;\n}\n";
19
+ const deepSpaceTheme = "/* basic theme */\n:root {\n --default-theme-text-decoration: underline;\n --default-theme-text-decoration-hover: underline;\n}\n.light-mode {\n --default-theme-color-1: rgb(9, 9, 11);\n --default-theme-color-2: rgb(113, 113, 122);\n --default-theme-color-3: rgba(25, 25, 28, 0.5);\n --default-theme-color-accent: var(--default-theme-color-1);\n\n --default-theme-background-1: #fff;\n --default-theme-background-2: #f4f4f5;\n --default-theme-background-3: #e3e3e6;\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-border-color: rgb(228, 228, 231);\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.dark-mode {\n --default-theme-color-1: #fafafa;\n --default-theme-color-2: rgb(161, 161, 170);\n --default-theme-color-3: rgba(255, 255, 255, 0.533);\n --default-theme-color-accent: var(--default-theme-color-1);\n\n --default-theme-background-1: #09090b;\n --default-theme-background-2: #18181b;\n --default-theme-background-3: #2c2c30;\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-border-color: rgba(255, 255, 255, 0.12);\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n\n --default-sidebar-item-active-background: var(--default-theme-background-3);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: transparent;\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n --default-sidebar-search-color: var(--default-theme-color-3);\n}\n.light-mode .t-doc__sidebar {\n --default-sidebar-item-active-background: #09090b;\n --default-sidebar-color-active: var(--default-sidebar-background-1);\n}\n/* advanced */\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: rgba(69, 255, 165, 0.823);\n --default-theme-color-red: #ff8589;\n --default-theme-color-yellow: #ffcc4d;\n --default-theme-color-blue: #6bc1fe;\n --default-theme-color-orange: #f98943;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n/* Custom theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.examples .scalar-card-footer {\n --default-theme-background-3: transparent;\n padding-top: 0;\n}\n.code-languages-background {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--default-theme-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n}\n.light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n}\n.code-languages__active .code-languages-background:before {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages span {\n margin-top: 5px !important;\n}\n/* Hero section flare */\n.section-flare {\n width: 100vw;\n height: 550px;\n position: relative;\n}\n.section-flare-item:nth-of-type(1) {\n position: absolute;\n width: 100vw;\n height: 550px;\n --stripesDark: repeating-linear-gradient(\n 100deg,\n #000 0%,\n #000 7%,\n transparent 10%,\n transparent 12%,\n #000 16%\n );\n --rainbow: repeating-linear-gradient(\n 100deg,\n #fff 10%,\n #fff 16%,\n #fff 22%,\n #fff 30%\n );\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 300%, 200%;\n background-position:\n 50% 50%,\n 50% 50%;\n filter: invert(100%);\n -webkit-mask-image: radial-gradient(\n ellipse at 100% 0%,\n black 40%,\n transparent 70%\n );\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n pointer-events: none;\n opacity: 0.07;\n}\n.dark-mode .section-flare-item:nth-of-type(1) {\n background-image: var(--stripesDark), var(--rainbow);\n filter: opacity(50%) saturate(200%);\n opacity: 0.25;\n height: 350px;\n}\n.section-flare-item:nth-of-type(1):after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 200%, 100%;\n background-attachment: fixed;\n mix-blend-mode: difference;\n}\n.dark-mode .section-flare:after {\n background-image: var(--stripesDark), var(--rainbow);\n}\n.section-flare-item:nth-of-type(2) {\n --star-color: #fff;\n --star-color2: #fff;\n --star-color3: #fff;\n width: 100%;\n height: 100%;\n position: absolute;\n background-image: radial-gradient(\n 2px 2px at 20px 30px,\n var(--star-color2),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 160px 120px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n );\n background-repeat: repeat;\n background-size: 200px 200px;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n opacity: 0.2;\n}\n";
19
20
  const defaultTheme = "/* basic theme */\n.light-mode {\n --default-theme-background-1: #fff;\n --default-theme-background-2: #f6f6f6;\n --default-theme-background-3: #e7e7e7;\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n\n --default-theme-color-accent: #0099ff;\n --default-theme-border-color: rgba(0, 0, 0, 0.1);\n}\n.dark-mode {\n --default-theme-background-1: #0f0f0f;\n --default-theme-background-2: #1a1a1a;\n --default-theme-background-3: #272727;\n\n --default-theme-color-1: rgba(255, 255, 255, 0.9);\n --default-theme-color-2: rgba(255, 255, 255, 0.62);\n --default-theme-color-3: rgba(255, 255, 255, 0.44);\n\n --default-theme-color-accent: #3ea6ff;\n --default-theme-background-accent: #3ea6ff1f;\n\n --default-theme-border-color: rgba(255, 255, 255, 0.1);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-hover-color: currentColor;\n\n --default-sidebar-item-active-background: var(--default-theme-background-2);\n --default-sidebar-color-active: var(--default-theme-color-1);\n\n --default-sidebar-search-background: transparent;\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n}\n\n/* advanced */\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #00b648;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #ffc90d;\n --default-theme-color-blue: #4eb3ec;\n --default-theme-color-orange: #ff8d4d;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n";
20
- const keplerTheme = "/* basic theme */\n.light-mode {\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n --default-theme-color-accent: #7070ff;\n\n --default-theme-background-1: #fff;\n --default-theme-background-2: #f6f6f6;\n --default-theme-background-3: #e7e7e7;\n --default-theme-background-accent: #7070ff1f;\n\n --default-theme-border-color: rgba(0, 0, 0, 0.1);\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-3);\n}\n.dark-mode {\n --default-theme-color-1: #f7f8f8;\n --default-theme-color-2: rgb(180, 188, 208);\n --default-theme-color-3: #b4bcd099;\n --default-theme-color-accent: #828fff;\n\n --default-theme-background-1: #000212;\n --default-theme-background-2: rgba(255, 255, 255, 0.05);\n --default-theme-background-3: rgba(255, 255, 255, 0.05);\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-border-color: #242537;\n --default-theme-code-language-color-supersede: var(--default-theme-color-3);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n --default-sidebar-search-background: rgba(0, 0, 0, 0.05);\n --default-sidebar-search-border-color: 1px solid rgba(0, 0, 0, 0.05);\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-theme-background-2: rgba(0, 0, 0, 0.03);\n}\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: rgba(255, 255, 255, 0.1);\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n --default-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --default-sidebar-search-border-color: 1px solid rgba(255, 255, 255, 0.05);\n --default-sidebar-search-color: var(--default-theme-color-3);\n}\n/* advanced */\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #00b648;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #ffc90d;\n --default-theme-color-blue: #4eb3ec;\n --default-theme-color-orange: #ff8d4d;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.sidebar-search {\n backdrop-filter: blur(12px);\n}\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n.dark-mode .scalar-card {\n background: rgba(255, 255, 255, 0.05) !important;\n}\n.dark-mode .scalar-card * {\n --default-theme-background-2: transparent !important;\n --default-theme-background-1: transparent !important;\n}\n.light-mode .dark-mode.scalar-card *,\n.light-mode .dark-mode.scalar-card {\n --default-theme-background-1: #0d0f1e !important;\n --default-theme-background-2: #0d0f1e !important;\n --default-theme-background-3: #191b29 !important;\n}\n.light-mode .dark-mode.scalar-card {\n background: #191b29 !important;\n}\n.show-api-client-button:before {\n background-color: var(--default-theme-color-accent) !important;\n}\n.badge {\n box-shadow: 0 0 0 1px var(--default-theme-border-color);\n margin-right: 6px;\n}\n\n.table-row.required-parameter .table-row-item:nth-of-type(2):after {\n background: transparent;\n box-shadow: none;\n}\n.code-languages__active {\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.code-languages-background {\n background: linear-gradient(\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.05) 100%\n ) !important;\n box-shadow: inset 0 0 0 1px var(--default-theme-border-color) !important;\n}\n/* Hero Section Flare */\n.section-flare {\n width: 100vw;\n background: radial-gradient(\n ellipse 80% 50% at 50% -20%,\n rgba(120, 119, 198, 0.3),\n transparent\n );\n height: 100vh;\n}\n";
21
- const marsTheme = "/* basic theme */\n.light-mode {\n --default-theme-background-1: #f9f6f0;\n --default-theme-background-2: #f2efe8;\n --default-theme-background-3: #e9e7e2;\n --default-theme-border-color: rgba(203, 165, 156, 0.6);\n\n --default-theme-color-1: #c75549;\n --default-theme-color-2: #c75549;\n --default-theme-color-3: #c75549;\n\n --default-theme-color-accent: #c75549;\n --default-theme-background-accent: #dcbfa81f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.dark-mode {\n --default-theme-background-1: #140507;\n --default-theme-background-2: #20090c;\n --default-theme-background-3: #321116;\n --default-theme-border-color: rgba(255, 255, 255, 0.1);\n\n --default-theme-color-1: rgba(255, 255, 255, 0.9);\n --default-theme-color-2: rgba(255, 255, 255, 0.62);\n --default-theme-color-3: rgba(255, 255, 255, 0.44);\n\n --default-theme-color-accent: rgba(255, 255, 255, 0.9);\n --default-theme-background-accent: #441313;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n\n --default-sidebar-item-active-background: var(--default-theme-background-3);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n z-index: 1;\n}\n/* advanced */\n.light-mode {\n --default-theme-color-green: #09533a;\n --default-theme-color-red: #aa181d;\n --default-theme-color-yellow: #ab8d2b;\n --default-theme-color-blue: #19689a;\n --default-theme-color-orange: #b26c34;\n --default-theme-color-purple: #4c2191;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: rgba(69, 255, 165, 0.823);\n --default-theme-color-red: #ff8589;\n --default-theme-color-yellow: #ffcc4d;\n --default-theme-color-blue: #6bc1fe;\n --default-theme-color-orange: #f98943;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.light-mode .t-doc__sidebar {\n --default-sidebar-search-background: white;\n}\n.examples .scalar-card-footer {\n --default-theme-background-3: transparent;\n padding-top: 0;\n}\n.show-api-client-button:before {\n background: white !important;\n}\n.show-api-client-button span,\n.show-api-client-button svg {\n color: black !important;\n}\n.code-languages-background {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--default-theme-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n}\n.light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n}\n.code-languages__active .code-languages-background:before {\n background: var(--default-theme-background-1) !important;\n}\n\n.code-languages span {\n margin-top: 5px !important;\n}\n/* Hero section flare */\n.section-flare-item:nth-of-type(1) {\n background: #d25019;\n width: 80vw;\n height: 500px;\n margin-top: -150px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n}\n.light-mode .section-flare {\n display: none;\n}\n.section-flare {\n top: -150px !important;\n height: 100vh;\n right: -400px !important;\n left: initial;\n}\n.references-rendered .download-cta .download-button,\n.references-rendered .markdown a {\n text-decoration: underline !important;\n}\n";
21
+ const keplerTheme = "/* basic theme */\n.light-mode {\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n --default-theme-color-accent: #7070ff;\n\n --default-theme-background-1: #fff;\n --default-theme-background-2: #f6f6f6;\n --default-theme-background-3: #e7e7e7;\n --default-theme-background-accent: #7070ff1f;\n\n --default-theme-border-color: rgba(0, 0, 0, 0.1);\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-3);\n}\n.dark-mode {\n --default-theme-color-1: #f7f8f8;\n --default-theme-color-2: rgb(180, 188, 208);\n --default-theme-color-3: #b4bcd099;\n --default-theme-color-accent: #828fff;\n\n --default-theme-background-1: #000212;\n --default-theme-background-2: rgba(255, 255, 255, 0.05);\n --default-theme-background-3: rgba(255, 255, 255, 0.05);\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-border-color: #242537;\n --default-theme-code-language-color-supersede: var(--default-theme-color-3);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n --default-sidebar-search-background: rgba(0, 0, 0, 0.05);\n --default-sidebar-search-border-color: 1px solid rgba(0, 0, 0, 0.05);\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-theme-background-2: rgba(0, 0, 0, 0.03);\n}\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: rgba(255, 255, 255, 0.1);\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n --default-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --default-sidebar-search-border-color: 1px solid rgba(255, 255, 255, 0.05);\n --default-sidebar-search-color: var(--default-theme-color-3);\n}\n/* advanced */\n.light-mode {\n --default-theme-color-green: #069061;\n --default-theme-color-red: #ef0006;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #0082d0;\n --default-theme-color-orange: #fb892c;\n --default-theme-color-purple: #5203d1;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #00b648;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #ffc90d;\n --default-theme-color-blue: #4eb3ec;\n --default-theme-color-orange: #ff8d4d;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.sidebar-search {\n backdrop-filter: blur(12px);\n}\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n.dark-mode .scalar-card {\n background: rgba(255, 255, 255, 0.05) !important;\n}\n.dark-mode .scalar-card * {\n --default-theme-background-2: transparent !important;\n --default-theme-background-1: transparent !important;\n}\n.light-mode .dark-mode.scalar-card *,\n.light-mode .dark-mode.scalar-card {\n --default-theme-background-1: #0d0f1e !important;\n --default-theme-background-2: #0d0f1e !important;\n --default-theme-background-3: #191b29 !important;\n}\n.light-mode .dark-mode.scalar-card {\n background: #191b29 !important;\n}\n.badge {\n box-shadow: 0 0 0 1px var(--default-theme-border-color);\n margin-right: 6px;\n}\n\n.table-row.required-parameter .table-row-item:nth-of-type(2):after {\n background: transparent;\n box-shadow: none;\n}\n.code-languages__active {\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.code-languages-background {\n background: linear-gradient(\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.05) 100%\n ) !important;\n box-shadow: inset 0 0 0 1px var(--default-theme-border-color) !important;\n}\n/* Hero Section Flare */\n.section-flare {\n width: 100vw;\n background: radial-gradient(\n ellipse 80% 50% at 50% -20%,\n rgba(120, 119, 198, 0.3),\n transparent\n );\n height: 100vh;\n}\n";
22
+ const marsTheme = "/* basic theme */\n:root {\n --default-theme-text-decoration: underline;\n --default-theme-text-decoration-hover: underline;\n}\n.light-mode {\n --default-theme-background-1: #f9f6f0;\n --default-theme-background-2: #f2efe8;\n --default-theme-background-3: #e9e7e2;\n --default-theme-border-color: rgba(203, 165, 156, 0.6);\n\n --default-theme-color-1: #c75549;\n --default-theme-color-2: #c75549;\n --default-theme-color-3: #c75549;\n\n --default-theme-color-accent: #c75549;\n --default-theme-background-accent: #dcbfa81f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n.dark-mode {\n --default-theme-background-1: #140507;\n --default-theme-background-2: #20090c;\n --default-theme-background-3: #321116;\n --default-theme-border-color: rgba(255, 255, 255, 0.1);\n\n --default-theme-color-1: rgba(255, 255, 255, 0.9);\n --default-theme-color-2: rgba(255, 255, 255, 0.62);\n --default-theme-color-3: rgba(255, 255, 255, 0.44);\n\n --default-theme-color-accent: rgba(255, 255, 255, 0.9);\n --default-theme-background-accent: #441313;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n\n --default-sidebar-item-active-background: var(--default-theme-background-3);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n z-index: 1;\n}\n/* advanced */\n.light-mode {\n --default-theme-color-green: #09533a;\n --default-theme-color-red: #aa181d;\n --default-theme-color-yellow: #ab8d2b;\n --default-theme-color-blue: #19689a;\n --default-theme-color-orange: #b26c34;\n --default-theme-color-purple: #4c2191;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: rgba(69, 255, 165, 0.823);\n --default-theme-color-red: #ff8589;\n --default-theme-color-yellow: #ffcc4d;\n --default-theme-color-blue: #6bc1fe;\n --default-theme-color-orange: #f98943;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.light-mode .t-doc__sidebar {\n --default-sidebar-search-background: white;\n}\n.examples .scalar-card-footer {\n --default-theme-background-3: transparent;\n padding-top: 0;\n}\n.code-languages-background {\n background: var(--default-theme-background-1) !important;\n}\n.code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--default-theme-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n}\n.light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n}\n.code-languages__active .code-languages-background:before {\n background: var(--default-theme-background-1) !important;\n}\n\n.code-languages span {\n margin-top: 5px !important;\n}\n/* Hero section flare */\n.section-flare-item:nth-of-type(1) {\n background: #d25019;\n width: 80vw;\n height: 500px;\n margin-top: -150px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n}\n.light-mode .section-flare {\n display: none;\n}\n.section-flare {\n top: -150px !important;\n height: 100vh;\n right: -400px !important;\n left: initial;\n}\n";
22
23
  const moonTheme = ".light-mode {\n color-scheme: light;\n --default-theme-color-1: #000000;\n --default-theme-color-2: #000000;\n --default-theme-color-3: #000000;\n --default-theme-color-accent: #645b0f;\n --default-theme-background-1: #ccc9b3;\n --default-theme-background-2: #c2bfaa;\n --default-theme-background-3: #b8b5a1;\n --default-theme-background-accent: #000000;\n\n --default-theme-border-color: rgba(0, 0, 0, 0.2);\n --default-theme-scrollbar-color: rgba(0, 0, 0, 0.18);\n --default-theme-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --default-theme-lifted-brightness: 1;\n --default-theme-backdrop-brightness: 1;\n\n --default-theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --default-theme-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px,\n var(--default-theme-border-color) 0px 0 0 1px;\n\n --default-theme-button-1: rgb(49 53 56);\n --default-theme-button-1-color: #fff;\n --default-theme-button-1-hover: rgb(28 31 33);\n\n --default-theme-color-red: #b91c1c;\n --default-theme-color-orange: #a16207;\n --default-theme-color-green: #047857;\n --default-theme-color-blue: #1d4ed8;\n --default-theme-color-orange: #c2410c;\n --default-theme-color-purple: #6d28d9;\n\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-3\n );\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n\n.dark-mode {\n color-scheme: dark;\n --default-theme-color-1: #fffef3;\n --default-theme-color-2: #fffef3;\n --default-theme-color-3: #fffef3;\n --default-theme-color-accent: #c3b531;\n --default-theme-background-1: #313332;\n --default-theme-background-2: #393b3a;\n --default-theme-background-3: #414342;\n --default-theme-background-accent: #fffef3;\n\n --default-theme-border-color: rgba(255, 255, 255, 0.1);\n --default-theme-scrollbar-color: rgba(255, 255, 255, 0.24);\n --default-theme-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --default-theme-lifted-brightness: 1.45;\n --default-theme-backdrop-brightness: 0.5;\n\n --default-theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --default-theme-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n --default-theme-button-1: #f6f6f6;\n --default-theme-button-1-color: #000;\n --default-theme-button-1-hover: #e7e7e7;\n\n --default-theme-color-green: #00b648;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #ffc90d;\n --default-theme-color-blue: #4eb3ec;\n --default-theme-color-orange: #ff8d4d;\n --default-theme-color-purple: #b191f9;\n\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-3\n );\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-sidebar-background-1);\n --default-sidebar-search-background: var(--default-theme-background-3);\n --default-sidebar-search-border-color: var(\n --default-sidebar-search-background\n );\n --default-sidebar-search--color: var(--default-theme-color-3);\n}\n\n.dark-mode .sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-sidebar-background-1);\n --default-sidebar-search-background: var(--default-theme-background-3);\n --default-sidebar-search-border-color: var(\n --default-sidebar-search-background\n );\n --default-sidebar-search--color: var(--default-theme-color-3);\n}\n";
23
24
  const purpleTheme = "/* basic theme */\n.light-mode {\n --default-theme-background-1: #fff;\n --default-theme-background-2: #f5f6f8;\n --default-theme-background-3: #eceef1;\n\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n\n --default-theme-color-accent: #5469d4;\n --default-theme-background-accent: #5469d41f;\n\n --default-theme-border-color: rgba(215, 215, 206, 0.5);\n}\n.dark-mode {\n --default-theme-background-1: #15171c;\n --default-theme-background-2: #1c1e24;\n --default-theme-background-3: #22252b;\n\n --default-theme-color-1: #fafafa;\n --default-theme-color-2: #c9ced8;\n --default-theme-color-3: #8c99ad;\n\n --default-theme-color-accent: #5469d4;\n --default-theme-background-accent: #5469d41f;\n\n --default-theme-border-color: rgba(255, 255, 255, 0.12);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-3);\n\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-color-active: var(--default-theme-color-accent);\n\n --default-sidebar-search-background: var(--default-theme-background-1);\n --default-sidebar-search-color: var(--default-theme-color-3);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n}\n\n/* advanced */\n.light-mode {\n --default-theme-color-green: #17803d;\n --default-theme-color-red: #e10909;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #1763a6;\n --default-theme-color-orange: #e25b09;\n --default-theme-color-purple: #5c3993;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #30a159;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #eec644;\n --default-theme-color-blue: #2b7abf;\n --default-theme-color-orange: #f07528;\n --default-theme-color-purple: #7a59b1;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n";
24
25
  const saturnTheme = "/* basic theme */\n.light-mode {\n --default-theme-background-1: #f3f3ee;\n --default-theme-background-2: #e8e8e3;\n --default-theme-background-3: #e4e4df;\n --default-theme-border-color: rgba(215, 215, 206, 0.5);\n\n --default-theme-color-1: #2a2f45;\n --default-theme-color-2: #757575;\n --default-theme-color-3: #8e8e8e;\n\n --default-theme-color-accent: #1763a6;\n --default-theme-background-accent: #1f648e1f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-2\n );\n}\n.dark-mode {\n --default-theme-background-1: #09090b;\n --default-theme-background-2: #18181b;\n --default-theme-background-3: #2c2c30;\n --default-theme-border-color: rgba(255, 255, 255, 0.12);\n\n --default-theme-color-1: #fafafa;\n --default-theme-color-2: rgb(161, 161, 170);\n --default-theme-color-3: rgba(255, 255, 255, 0.533);\n\n --default-theme-color-accent: #4eb3ec;\n --default-theme-background-accent: #8ab4f81f;\n\n --default-theme-code-language-color-supersede: var(--default-theme-color-1);\n --default-theme-code-languages-background-supersede: var(\n --default-theme-background-2\n );\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-border-color: var(--default-theme-border-color);\n\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-hover-color: currentColor;\n\n --default-sidebar-item-active-background: var(--default-theme-background-3);\n --default-sidebar-color-active: var(--default-theme-color-1);\n\n --default-sidebar-search-background: var(--default-theme-background-1);\n --default-sidebar-search-border-color: var(--default-theme-border-color);\n --default-sidebar-search-color: var(--default-theme-color-3);\n}\n\n/* advanced */\n.light-mode {\n --default-theme-color-green: #17803d;\n --default-theme-color-red: #e10909;\n --default-theme-color-yellow: #edbe20;\n --default-theme-color-blue: #1763a6;\n --default-theme-color-orange: #e25b09;\n --default-theme-color-purple: #5c3993;\n\n --default-theme-button-1: rgba(0, 0, 0, 1);\n --default-theme-button-1-hover: rgba(0, 0, 0, 0.8);\n --default-theme-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --default-theme-color-green: #30a159;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #eec644;\n --default-theme-color-blue: #2b7abf;\n --default-theme-color-orange: #f07528;\n --default-theme-color-purple: #7a59b1;\n\n --default-theme-button-1: rgba(255, 255, 255, 1);\n --default-theme-button-1-hover: rgba(255, 255, 255, 0.9);\n --default-theme-button-1-color: black;\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n";
25
26
  const solarizedTheme = ".light-mode {\n color-scheme: light;\n --default-theme-color-1: #584c27;\n --default-theme-color-2: #616161;\n --default-theme-color-3: #a89f84;\n --default-theme-color-accent: #b58900;\n --default-theme-background-1: #fdf6e3;\n --default-theme-background-2: #eee8d5;\n --default-theme-background-3: #ddd6c1;\n --default-theme-background-accent: #b589001f;\n\n --default-theme-border-color: #ded8c8;\n --default-theme-scrollbar-color: rgba(0, 0, 0, 0.18);\n --default-theme-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --default-theme-lifted-brightness: 1;\n --default-theme-backdrop-brightness: 1;\n\n --default-theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --default-theme-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n --default-theme-button-1: rgb(49 53 56);\n --default-theme-button-1-color: #fff;\n --default-theme-button-1-hover: rgb(28 31 33);\n\n --default-theme-color-red: #b91c1c;\n --default-theme-color-orange: #a16207;\n --default-theme-color-green: #047857;\n --default-theme-color-blue: #1d4ed8;\n --default-theme-color-orange: #c2410c;\n --default-theme-color-purple: #6d28d9;\n}\n\n.dark-mode {\n color-scheme: dark;\n --default-theme-color-1: #fff;\n --default-theme-color-2: #cccccc;\n --default-theme-color-3: #6d8890;\n --default-theme-color-accent: #007acc;\n --default-theme-background-1: #00212b;\n --default-theme-background-2: #012b36;\n --default-theme-background-3: #004052;\n --default-theme-background-accent: #015a6f;\n\n --default-theme-border-color: rgba(255, 255, 255, 0.1);\n --default-theme-scrollbar-color: rgba(255, 255, 255, 0.24);\n --default-theme-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --default-theme-lifted-brightness: 1.45;\n --default-theme-backdrop-brightness: 0.5;\n\n --default-theme-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n --default-theme-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n --default-theme-button-1: #f6f6f6;\n --default-theme-button-1-color: #000;\n --default-theme-button-1-hover: #e7e7e7;\n\n --default-theme-color-green: #00b648;\n --default-theme-color-red: #dc1b19;\n --default-theme-color-yellow: #ffc90d;\n --default-theme-color-blue: #4eb3ec;\n --default-theme-color-orange: #ff8d4d;\n --default-theme-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-theme-color-accent);\n --default-sidebar-search-background: var(--default-theme-background-2);\n --default-sidebar-search-border-color: var(--sidebar-search-background);\n --default-sidebar-search--color: var(--default-theme-color-3);\n}\n\n.dark-mode .sidebar {\n --default-sidebar-background-1: var(--default-theme-background-1);\n --default-sidebar-item-hover-color: currentColor;\n --default-sidebar-item-hover-background: var(--default-theme-background-2);\n --default-sidebar-item-active-background: var(\n --default-theme-background-accent\n );\n --default-sidebar-border-color: var(--default-theme-border-color);\n --default-sidebar-color-1: var(--default-theme-color-1);\n --default-sidebar-color-2: var(--default-theme-color-2);\n --default-sidebar-color-active: var(--default-sidebar-color-1);\n --default-sidebar-search-background: var(--default-theme-background-2);\n --default-sidebar-search-border-color: var(--sidebar-search-background);\n --default-sidebar-search--color: var(--default-theme-color-3);\n}\n";
26
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
27
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
27
28
  __name: "ThemeStyles",
28
29
  props: {
29
30
  id: {}
@@ -39,6 +40,24 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39
40
  };
40
41
  }
41
42
  });
43
+ function useApplyClasses(selector, classes) {
44
+ onMounted(() => {
45
+ if (!document.body)
46
+ return;
47
+ const el = document.querySelector(selector);
48
+ el == null ? void 0 : el.classList.add(classes);
49
+ });
50
+ }
51
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
52
+ __name: "ResetStyles",
53
+ setup(__props) {
54
+ const { reset: reset2 } = useCssModule();
55
+ useApplyClasses("#headlessui-portal-root", reset2);
56
+ return (_ctx, _cache) => {
57
+ return renderSlot(_ctx.$slots, "default", { styles: unref(reset2) });
58
+ };
59
+ }
60
+ });
42
61
  const reset = "_reset_78zw5_3";
43
62
  const style0$1 = {
44
63
  reset
@@ -50,6 +69,10 @@ const _export_sfc = (sfc, props) => {
50
69
  }
51
70
  return target;
52
71
  };
72
+ const cssModules = {
73
+ "$style": style0$1
74
+ };
75
+ const ResetStyles = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__cssModules", cssModules]]);
53
76
  const scrollbars = "_scrollbars_1wuqs_3";
54
77
  const style0 = {
55
78
  scrollbars,
@@ -110,6 +133,63 @@ const useApiClientStore = () => ({
110
133
  setSnippetType,
111
134
  hideApiClient
112
135
  });
136
+ const createEmptyAuthenticationState = () => ({
137
+ preferredSecurityScheme: null,
138
+ http: {
139
+ basic: {
140
+ username: "",
141
+ password: ""
142
+ },
143
+ bearer: {
144
+ token: ""
145
+ }
146
+ },
147
+ apiKey: {
148
+ token: ""
149
+ },
150
+ oAuth2: {
151
+ clientId: "",
152
+ scopes: [],
153
+ accessToken: "",
154
+ state: ""
155
+ }
156
+ });
157
+ const authentication = reactive(
158
+ createEmptyAuthenticationState()
159
+ );
160
+ const setAuthentication = (newState) => {
161
+ Object.assign(authentication, {
162
+ ...authentication,
163
+ ...newState
164
+ });
165
+ };
166
+ const useAuthenticationStore = () => ({
167
+ authentication,
168
+ setAuthentication
169
+ });
170
+ const createEmptyOpenApiState = () => ({
171
+ // @ts-ignore
172
+ operation: {},
173
+ globalSecurity: []
174
+ });
175
+ const openApi = reactive(createEmptyOpenApiState());
176
+ const setOperation = (newOperation) => {
177
+ Object.assign(openApi, {
178
+ ...openApi,
179
+ operation: newOperation
180
+ });
181
+ };
182
+ const setGlobalSecurity = (newGlobalSecurity) => {
183
+ Object.assign(openApi, {
184
+ ...openApi,
185
+ globalSecurity: newGlobalSecurity
186
+ });
187
+ };
188
+ const useOpenApiStore = () => ({
189
+ openApi,
190
+ setOperation,
191
+ setGlobalSecurity
192
+ });
113
193
  const createPlaceholderRequest = () => ({
114
194
  name: "",
115
195
  url: "",
@@ -121,34 +201,6 @@ const createPlaceholderRequest = () => ({
121
201
  body: "",
122
202
  formData: []
123
203
  });
124
- const createEmptyAuthState = () => ({
125
- type: "none",
126
- basic: {
127
- username: "",
128
- password: "",
129
- active: true
130
- },
131
- oauthTwo: {
132
- generatedToken: "",
133
- discoveryURL: "",
134
- authURL: "",
135
- accessTokenURL: "",
136
- clientID: "",
137
- clientSecret: "",
138
- scope: "",
139
- active: true
140
- },
141
- bearer: {
142
- token: "",
143
- active: true
144
- },
145
- digest: {
146
- username: "",
147
- password: "",
148
- active: true
149
- }
150
- });
151
- const authState = reactive(createEmptyAuthState());
152
204
  const requestHistory = reactive({});
153
205
  const requestHistoryOrder = ref([]);
154
206
  const activeRequestId = ref("");
@@ -176,7 +228,6 @@ const resetActiveResponse = () => {
176
228
  };
177
229
  const readOnly$2 = ref(true);
178
230
  const useRequestStore = () => ({
179
- authState,
180
231
  readOnly: readOnly$2,
181
232
  activeRequest,
182
233
  activeResponse,
@@ -1000,7 +1051,7 @@ const httpStatusCodes = {
1000
1051
  url: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511"
1001
1052
  }
1002
1053
  };
1003
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
1054
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
1004
1055
  __name: "HttpMethod",
1005
1056
  props: {
1006
1057
  as: {},
@@ -1196,12 +1247,12 @@ class TextLeaf extends Text {
1196
1247
  get children() {
1197
1248
  return null;
1198
1249
  }
1199
- lineInner(target, isLine, line, offset) {
1250
+ lineInner(target, isLine, line, offset2) {
1200
1251
  for (let i = 0; ; i++) {
1201
- let string2 = this.text[i], end = offset + string2.length;
1252
+ let string2 = this.text[i], end = offset2 + string2.length;
1202
1253
  if ((isLine ? line : end) >= target)
1203
- return new Line(offset, end, line, string2);
1204
- offset = end + 1;
1254
+ return new Line(offset2, end, line, string2);
1255
+ offset2 = end + 1;
1205
1256
  line++;
1206
1257
  }
1207
1258
  }
@@ -1275,12 +1326,12 @@ class TextNode extends Text {
1275
1326
  for (let child of children)
1276
1327
  this.lines += child.lines;
1277
1328
  }
1278
- lineInner(target, isLine, line, offset) {
1329
+ lineInner(target, isLine, line, offset2) {
1279
1330
  for (let i = 0; ; i++) {
1280
- let child = this.children[i], end = offset + child.length, endLine = line + child.lines - 1;
1331
+ let child = this.children[i], end = offset2 + child.length, endLine = line + child.lines - 1;
1281
1332
  if ((isLine ? endLine : end) >= target)
1282
- return child.lineInner(target, isLine, line, offset);
1283
- offset = end + 1;
1333
+ return child.lineInner(target, isLine, line, offset2);
1334
+ offset2 = end + 1;
1284
1335
  line = endLine + 1;
1285
1336
  }
1286
1337
  }
@@ -1437,9 +1488,9 @@ class RawTextCursor {
1437
1488
  this.done = this.lineBreak = false;
1438
1489
  for (; ; ) {
1439
1490
  let last = this.nodes.length - 1;
1440
- let top2 = this.nodes[last], offsetValue = this.offsets[last], offset = offsetValue >> 1;
1491
+ let top2 = this.nodes[last], offsetValue = this.offsets[last], offset2 = offsetValue >> 1;
1441
1492
  let size = top2 instanceof TextLeaf ? top2.text.length : top2.children.length;
1442
- if (offset == (dir > 0 ? size : 0)) {
1493
+ if (offset2 == (dir > 0 ? size : 0)) {
1443
1494
  if (last == 0) {
1444
1495
  this.done = true;
1445
1496
  this.value = "";
@@ -1458,7 +1509,7 @@ class RawTextCursor {
1458
1509
  }
1459
1510
  skip--;
1460
1511
  } else if (top2 instanceof TextLeaf) {
1461
- let next = top2.text[offset + (dir < 0 ? -1 : 0)];
1512
+ let next = top2.text[offset2 + (dir < 0 ? -1 : 0)];
1462
1513
  this.offsets[last] += dir;
1463
1514
  if (next.length > Math.max(0, skip)) {
1464
1515
  this.value = skip == 0 ? next : dir > 0 ? next.slice(skip) : next.slice(0, next.length - skip);
@@ -1466,7 +1517,7 @@ class RawTextCursor {
1466
1517
  }
1467
1518
  skip -= next.length;
1468
1519
  } else {
1469
- let next = top2.children[offset + (dir < 0 ? -1 : 0)];
1520
+ let next = top2.children[offset2 + (dir < 0 ? -1 : 0)];
1470
1521
  if (skip > next.length) {
1471
1522
  skip -= next.length;
1472
1523
  this.offsets[last] += dir;
@@ -3694,15 +3745,15 @@ class Chunk {
3694
3745
  lo = mid + 1;
3695
3746
  }
3696
3747
  }
3697
- between(offset, from, to, f) {
3748
+ between(offset2, from, to, f) {
3698
3749
  for (let i = this.findIndex(from, -1e9, true), e = this.findIndex(to, 1e9, false, i); i < e; i++)
3699
- if (f(this.from[i] + offset, this.to[i] + offset, this.value[i]) === false)
3750
+ if (f(this.from[i] + offset2, this.to[i] + offset2, this.value[i]) === false)
3700
3751
  return false;
3701
3752
  }
3702
- map(offset, changes) {
3753
+ map(offset2, changes) {
3703
3754
  let value = [], from = [], to = [], newPos = -1, maxPoint = -1;
3704
3755
  for (let i = 0; i < this.value.length; i++) {
3705
- let val = this.value[i], curFrom = this.from[i] + offset, curTo = this.to[i] + offset, newFrom, newTo;
3756
+ let val = this.value[i], curFrom = this.from[i] + offset2, curTo = this.to[i] + offset2, newFrom, newTo;
3706
3757
  if (curFrom == curTo) {
3707
3758
  let mapped = changes.mapPos(curFrom, val.startSide, val.mapMode);
3708
3759
  if (mapped == null)
@@ -4946,25 +4997,25 @@ function clearAttributes(node) {
4946
4997
  node.removeAttributeNode(node.attributes[0]);
4947
4998
  }
4948
4999
  function atElementStart(doc2, selection) {
4949
- let node = selection.focusNode, offset = selection.focusOffset;
4950
- if (!node || selection.anchorNode != node || selection.anchorOffset != offset)
5000
+ let node = selection.focusNode, offset2 = selection.focusOffset;
5001
+ if (!node || selection.anchorNode != node || selection.anchorOffset != offset2)
4951
5002
  return false;
4952
- offset = Math.min(offset, maxOffset(node));
5003
+ offset2 = Math.min(offset2, maxOffset(node));
4953
5004
  for (; ; ) {
4954
- if (offset) {
5005
+ if (offset2) {
4955
5006
  if (node.nodeType != 1)
4956
5007
  return false;
4957
- let prev = node.childNodes[offset - 1];
5008
+ let prev = node.childNodes[offset2 - 1];
4958
5009
  if (prev.contentEditable == "false")
4959
- offset--;
5010
+ offset2--;
4960
5011
  else {
4961
5012
  node = prev;
4962
- offset = maxOffset(node);
5013
+ offset2 = maxOffset(node);
4963
5014
  }
4964
5015
  } else if (node == doc2) {
4965
5016
  return true;
4966
5017
  } else {
4967
- offset = domIndex(node);
5018
+ offset2 = domIndex(node);
4968
5019
  node = node.parentNode;
4969
5020
  }
4970
5021
  }
@@ -4973,9 +5024,9 @@ function isScrolledToBottom(elt) {
4973
5024
  return elt.scrollTop > Math.max(1, elt.scrollHeight - elt.clientHeight - 4);
4974
5025
  }
4975
5026
  class DOMPos {
4976
- constructor(node, offset, precise = true) {
5027
+ constructor(node, offset2, precise = true) {
4977
5028
  this.node = node;
4978
- this.offset = offset;
5029
+ this.offset = offset2;
4979
5030
  this.precise = precise;
4980
5031
  }
4981
5032
  static before(dom, precise) {
@@ -5053,12 +5104,12 @@ class ContentView {
5053
5104
  }
5054
5105
  reuseDOM(_dom) {
5055
5106
  }
5056
- localPosFromDOM(node, offset) {
5107
+ localPosFromDOM(node, offset2) {
5057
5108
  let after;
5058
5109
  if (node == this.dom) {
5059
- after = this.dom.childNodes[offset];
5110
+ after = this.dom.childNodes[offset2];
5060
5111
  } else {
5061
- let bias = maxOffset(node) == 0 ? 0 : offset == 0 ? -1 : 1;
5112
+ let bias = maxOffset(node) == 0 ? 0 : offset2 == 0 ? -1 : 1;
5062
5113
  for (; ; ) {
5063
5114
  let parent = node.parentNode;
5064
5115
  if (parent == this.dom)
@@ -5089,9 +5140,9 @@ class ContentView {
5089
5140
  pos += child.length + child.breakAfter;
5090
5141
  }
5091
5142
  }
5092
- domBoundsAround(from, to, offset = 0) {
5143
+ domBoundsAround(from, to, offset2 = 0) {
5093
5144
  let fromI = -1, fromStart = -1, toI = -1, toEnd = -1;
5094
- for (let i = 0, pos = offset, prevEnd = offset; i < this.children.length; i++) {
5145
+ for (let i = 0, pos = offset2, prevEnd = offset2; i < this.children.length; i++) {
5095
5146
  let child = this.children[i], end = pos + child.length;
5096
5147
  if (pos < from && end > to)
5097
5148
  return child.domBoundsAround(from, to, pos);
@@ -5109,7 +5160,7 @@ class ContentView {
5109
5160
  }
5110
5161
  return {
5111
5162
  from: fromStart,
5112
- to: toEnd < 0 ? offset + this.length : toEnd,
5163
+ to: toEnd < 0 ? offset2 + this.length : toEnd,
5113
5164
  startDOM: (fromI ? this.children[fromI - 1].dom.nextSibling : null) || this.dom.firstChild,
5114
5165
  endDOM: toI < this.children.length && toI >= 0 ? this.children[toI].dom : null
5115
5166
  };
@@ -5371,14 +5422,14 @@ class TextView extends ContentView {
5371
5422
  result.flags |= this.flags & 8;
5372
5423
  return result;
5373
5424
  }
5374
- localPosFromDOM(node, offset) {
5375
- return node == this.dom ? offset : offset ? this.text.length : 0;
5425
+ localPosFromDOM(node, offset2) {
5426
+ return node == this.dom ? offset2 : offset2 ? this.text.length : 0;
5376
5427
  }
5377
5428
  domAtPos(pos) {
5378
5429
  return new DOMPos(this.dom, pos);
5379
5430
  }
5380
- domBoundsAround(_from, _to, offset) {
5381
- return { from: offset, to: offset + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling };
5431
+ domBoundsAround(_from, _to, offset2) {
5432
+ return { from: offset2, to: offset2 + this.length, startDOM: this.dom, endDOM: this.dom.nextSibling };
5382
5433
  }
5383
5434
  coordsAt(pos, side) {
5384
5435
  return textCoords(this.dom, pos, side);
@@ -7353,11 +7404,11 @@ class DocView extends ContentView {
7353
7404
  }
7354
7405
  return null;
7355
7406
  }
7356
- posFromDOM(node, offset) {
7407
+ posFromDOM(node, offset2) {
7357
7408
  let view = this.nearest(node);
7358
7409
  if (!view)
7359
7410
  throw new RangeError("Trying to find position for a DOM position outside of the document");
7360
- return view.localPosFromDOM(node, offset) + view.posAtStart;
7411
+ return view.localPosFromDOM(node, offset2) + view.posAtStart;
7361
7412
  }
7362
7413
  domAtPos(pos) {
7363
7414
  let { i, off } = this.childCursor().findPos(pos, -1);
@@ -7616,33 +7667,33 @@ function findCompositionRange(view, changes, headPos) {
7616
7667
  }
7617
7668
  function nearbyTextNode(startNode, startOffset, side) {
7618
7669
  if (side <= 0)
7619
- for (let node = startNode, offset = startOffset; ; ) {
7670
+ for (let node = startNode, offset2 = startOffset; ; ) {
7620
7671
  if (node.nodeType == 3)
7621
- return { node, offset };
7622
- if (node.nodeType == 1 && offset > 0) {
7623
- node = node.childNodes[offset - 1];
7624
- offset = maxOffset(node);
7672
+ return { node, offset: offset2 };
7673
+ if (node.nodeType == 1 && offset2 > 0) {
7674
+ node = node.childNodes[offset2 - 1];
7675
+ offset2 = maxOffset(node);
7625
7676
  } else {
7626
7677
  break;
7627
7678
  }
7628
7679
  }
7629
7680
  if (side >= 0)
7630
- for (let node = startNode, offset = startOffset; ; ) {
7681
+ for (let node = startNode, offset2 = startOffset; ; ) {
7631
7682
  if (node.nodeType == 3)
7632
- return { node, offset };
7633
- if (node.nodeType == 1 && offset < node.childNodes.length && side >= 0) {
7634
- node = node.childNodes[offset];
7635
- offset = 0;
7683
+ return { node, offset: offset2 };
7684
+ if (node.nodeType == 1 && offset2 < node.childNodes.length && side >= 0) {
7685
+ node = node.childNodes[offset2];
7686
+ offset2 = 0;
7636
7687
  } else {
7637
7688
  break;
7638
7689
  }
7639
7690
  }
7640
7691
  return null;
7641
7692
  }
7642
- function nextToUneditable(node, offset) {
7693
+ function nextToUneditable(node, offset2) {
7643
7694
  if (node.nodeType != 1)
7644
7695
  return 0;
7645
- return (offset && node.childNodes[offset - 1].contentEditable == "false" ? 1 : 0) | (offset < node.childNodes.length && node.childNodes[offset].contentEditable == "false" ? 2 : 0);
7696
+ return (offset2 && node.childNodes[offset2 - 1].contentEditable == "false" ? 1 : 0) | (offset2 < node.childNodes.length && node.childNodes[offset2].contentEditable == "false" ? 2 : 0);
7646
7697
  }
7647
7698
  let DecorationComparator$1 = class DecorationComparator {
7648
7699
  constructor() {
@@ -7770,8 +7821,8 @@ function domPosAtCoords(parent, x, y) {
7770
7821
  return domPosInText(closest, clipX, y);
7771
7822
  if (closestOverlap && closest.contentEditable != "false")
7772
7823
  return domPosAtCoords(closest, clipX, y);
7773
- let offset = Array.prototype.indexOf.call(parent.childNodes, closest) + (x >= (closestRect.left + closestRect.right) / 2 ? 1 : 0);
7774
- return { node: parent, offset };
7824
+ let offset2 = Array.prototype.indexOf.call(parent.childNodes, closest) + (x >= (closestRect.left + closestRect.right) / 2 ? 1 : 0);
7825
+ return { node: parent, offset: offset2 };
7775
7826
  }
7776
7827
  function domPosInText(node, x, y) {
7777
7828
  let len = node.nodeValue.length;
@@ -7841,17 +7892,17 @@ function posAtCoords(view, coords, precise, bias = -1) {
7841
7892
  if (element && !view.contentDOM.contains(element))
7842
7893
  element = null;
7843
7894
  }
7844
- let node, offset = -1;
7895
+ let node, offset2 = -1;
7845
7896
  if (element && ((_a2 = view.docView.nearest(element)) === null || _a2 === void 0 ? void 0 : _a2.isEditable) != false) {
7846
7897
  if (doc2.caretPositionFromPoint) {
7847
7898
  let pos = doc2.caretPositionFromPoint(x, y);
7848
7899
  if (pos)
7849
- ({ offsetNode: node, offset } = pos);
7900
+ ({ offsetNode: node, offset: offset2 } = pos);
7850
7901
  } else if (doc2.caretRangeFromPoint) {
7851
7902
  let range = doc2.caretRangeFromPoint(x, y);
7852
7903
  if (range) {
7853
- ({ startContainer: node, startOffset: offset } = range);
7854
- if (!view.contentDOM.contains(node) || browser.safari && isSuspiciousSafariCaretResult(node, offset, x) || browser.chrome && isSuspiciousChromeCaretResult(node, offset, x))
7904
+ ({ startContainer: node, startOffset: offset2 } = range);
7905
+ if (!view.contentDOM.contains(node) || browser.safari && isSuspiciousSafariCaretResult(node, offset2, x) || browser.chrome && isSuspiciousChromeCaretResult(node, offset2, x))
7855
7906
  node = void 0;
7856
7907
  }
7857
7908
  }
@@ -7860,7 +7911,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
7860
7911
  let line = LineView.find(view.docView, lineStart);
7861
7912
  if (!line)
7862
7913
  return yOffset > block.top + block.height / 2 ? block.to : block.from;
7863
- ({ node, offset } = domPosAtCoords(line.dom, x, y));
7914
+ ({ node, offset: offset2 } = domPosAtCoords(line.dom, x, y));
7864
7915
  }
7865
7916
  let nearest = view.docView.nearest(node);
7866
7917
  if (!nearest)
@@ -7869,7 +7920,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
7869
7920
  let rect = nearest.dom.getBoundingClientRect();
7870
7921
  return coords.y < rect.top || coords.y <= rect.bottom && coords.x <= (rect.left + rect.right) / 2 ? nearest.posAtStart : nearest.posAtEnd;
7871
7922
  } else {
7872
- return nearest.localPosFromDOM(node, offset) + nearest.posAtStart;
7923
+ return nearest.localPosFromDOM(node, offset2) + nearest.posAtStart;
7873
7924
  }
7874
7925
  }
7875
7926
  function posAtCoordsImprecise(view, contentRect, block, x, y) {
@@ -7882,17 +7933,17 @@ function posAtCoordsImprecise(view, contentRect, block, x, y) {
7882
7933
  let content2 = view.state.sliceDoc(block.from, block.to);
7883
7934
  return block.from + findColumn$1(content2, into, view.state.tabSize);
7884
7935
  }
7885
- function isSuspiciousSafariCaretResult(node, offset, x) {
7936
+ function isSuspiciousSafariCaretResult(node, offset2, x) {
7886
7937
  let len;
7887
- if (node.nodeType != 3 || offset != (len = node.nodeValue.length))
7938
+ if (node.nodeType != 3 || offset2 != (len = node.nodeValue.length))
7888
7939
  return false;
7889
7940
  for (let next = node.nextSibling; next; next = next.nextSibling)
7890
7941
  if (next.nodeType != 1 || next.nodeName != "BR")
7891
7942
  return false;
7892
7943
  return textRange(node, len - 1, len).getBoundingClientRect().left > x;
7893
7944
  }
7894
- function isSuspiciousChromeCaretResult(node, offset, x) {
7895
- if (offset != 0)
7945
+ function isSuspiciousChromeCaretResult(node, offset2, x) {
7946
+ if (offset2 != 0)
7896
7947
  return false;
7897
7948
  for (let cur2 = node; ; ) {
7898
7949
  let parent = cur2.parentNode;
@@ -8990,18 +9041,18 @@ class HeightMapBlock extends HeightMap {
8990
9041
  super(length, height);
8991
9042
  this.deco = deco;
8992
9043
  }
8993
- blockAt(_height, _oracle, top2, offset) {
8994
- return new BlockInfo(offset, this.length, top2, this.height, this.deco || 0);
9044
+ blockAt(_height, _oracle, top2, offset2) {
9045
+ return new BlockInfo(offset2, this.length, top2, this.height, this.deco || 0);
8995
9046
  }
8996
- lineAt(_value, _type, oracle, top2, offset) {
8997
- return this.blockAt(0, oracle, top2, offset);
9047
+ lineAt(_value, _type, oracle, top2, offset2) {
9048
+ return this.blockAt(0, oracle, top2, offset2);
8998
9049
  }
8999
- forEachLine(from, to, oracle, top2, offset, f) {
9000
- if (from <= offset + this.length && to >= offset)
9001
- f(this.blockAt(0, oracle, top2, offset));
9050
+ forEachLine(from, to, oracle, top2, offset2, f) {
9051
+ if (from <= offset2 + this.length && to >= offset2)
9052
+ f(this.blockAt(0, oracle, top2, offset2));
9002
9053
  }
9003
- updateHeight(oracle, offset = 0, _force = false, measured) {
9004
- if (measured && measured.from <= offset && measured.more)
9054
+ updateHeight(oracle, offset2 = 0, _force = false, measured) {
9055
+ if (measured && measured.from <= offset2 && measured.more)
9005
9056
  this.setHeight(oracle, measured.heights[measured.index++]);
9006
9057
  this.outdated = false;
9007
9058
  return this;
@@ -9017,8 +9068,8 @@ class HeightMapText extends HeightMapBlock {
9017
9068
  this.widgetHeight = 0;
9018
9069
  this.breaks = 0;
9019
9070
  }
9020
- blockAt(_height, _oracle, top2, offset) {
9021
- return new BlockInfo(offset, this.length, top2, this.height, this.breaks);
9071
+ blockAt(_height, _oracle, top2, offset2) {
9072
+ return new BlockInfo(offset2, this.length, top2, this.height, this.breaks);
9022
9073
  }
9023
9074
  replace(_from, _to, nodes) {
9024
9075
  let node = nodes[0];
@@ -9034,8 +9085,8 @@ class HeightMapText extends HeightMapBlock {
9034
9085
  return HeightMap.of(nodes);
9035
9086
  }
9036
9087
  }
9037
- updateHeight(oracle, offset = 0, force = false, measured) {
9038
- if (measured && measured.from <= offset && measured.more)
9088
+ updateHeight(oracle, offset2 = 0, force = false, measured) {
9089
+ if (measured && measured.from <= offset2 && measured.more)
9039
9090
  this.setHeight(oracle, measured.heights[measured.index++]);
9040
9091
  else if (force || this.outdated)
9041
9092
  this.setHeight(oracle, Math.max(this.widgetHeight, oracle.heightForLine(this.length - this.collapsed)) + this.breaks * oracle.lineHeight);
@@ -9050,8 +9101,8 @@ class HeightMapGap extends HeightMap {
9050
9101
  constructor(length) {
9051
9102
  super(length, 0);
9052
9103
  }
9053
- heightMetrics(oracle, offset) {
9054
- let firstLine = oracle.doc.lineAt(offset).number, lastLine = oracle.doc.lineAt(offset + this.length).number;
9104
+ heightMetrics(oracle, offset2) {
9105
+ let firstLine = oracle.doc.lineAt(offset2).number, lastLine = oracle.doc.lineAt(offset2 + this.length).number;
9055
9106
  let lines = lastLine - firstLine + 1;
9056
9107
  let perLine, perChar = 0;
9057
9108
  if (oracle.lineWrapping) {
@@ -9064,10 +9115,10 @@ class HeightMapGap extends HeightMap {
9064
9115
  }
9065
9116
  return { firstLine, lastLine, perLine, perChar };
9066
9117
  }
9067
- blockAt(height, oracle, top2, offset) {
9068
- let { firstLine, lastLine, perLine, perChar } = this.heightMetrics(oracle, offset);
9118
+ blockAt(height, oracle, top2, offset2) {
9119
+ let { firstLine, lastLine, perLine, perChar } = this.heightMetrics(oracle, offset2);
9069
9120
  if (oracle.lineWrapping) {
9070
- let guess = offset + Math.round(Math.max(0, Math.min(1, (height - top2) / this.height)) * this.length);
9121
+ let guess = offset2 + Math.round(Math.max(0, Math.min(1, (height - top2) / this.height)) * this.length);
9071
9122
  let line = oracle.doc.lineAt(guess), lineHeight = perLine + line.length * perChar;
9072
9123
  let lineTop = Math.max(top2, height - lineHeight / 2);
9073
9124
  return new BlockInfo(line.from, line.length, lineTop, lineHeight, 0);
@@ -9077,28 +9128,28 @@ class HeightMapGap extends HeightMap {
9077
9128
  return new BlockInfo(from, length, top2 + perLine * line, perLine, 0);
9078
9129
  }
9079
9130
  }
9080
- lineAt(value, type, oracle, top2, offset) {
9131
+ lineAt(value, type, oracle, top2, offset2) {
9081
9132
  if (type == QueryType.ByHeight)
9082
- return this.blockAt(value, oracle, top2, offset);
9133
+ return this.blockAt(value, oracle, top2, offset2);
9083
9134
  if (type == QueryType.ByPosNoHeight) {
9084
9135
  let { from, to } = oracle.doc.lineAt(value);
9085
9136
  return new BlockInfo(from, to - from, 0, 0, 0);
9086
9137
  }
9087
- let { firstLine, perLine, perChar } = this.heightMetrics(oracle, offset);
9138
+ let { firstLine, perLine, perChar } = this.heightMetrics(oracle, offset2);
9088
9139
  let line = oracle.doc.lineAt(value), lineHeight = perLine + line.length * perChar;
9089
9140
  let linesAbove = line.number - firstLine;
9090
- let lineTop = top2 + perLine * linesAbove + perChar * (line.from - offset - linesAbove);
9141
+ let lineTop = top2 + perLine * linesAbove + perChar * (line.from - offset2 - linesAbove);
9091
9142
  return new BlockInfo(line.from, line.length, Math.max(top2, Math.min(lineTop, top2 + this.height - lineHeight)), lineHeight, 0);
9092
9143
  }
9093
- forEachLine(from, to, oracle, top2, offset, f) {
9094
- from = Math.max(from, offset);
9095
- to = Math.min(to, offset + this.length);
9096
- let { firstLine, perLine, perChar } = this.heightMetrics(oracle, offset);
9144
+ forEachLine(from, to, oracle, top2, offset2, f) {
9145
+ from = Math.max(from, offset2);
9146
+ to = Math.min(to, offset2 + this.length);
9147
+ let { firstLine, perLine, perChar } = this.heightMetrics(oracle, offset2);
9097
9148
  for (let pos = from, lineTop = top2; pos <= to; ) {
9098
9149
  let line = oracle.doc.lineAt(pos);
9099
9150
  if (pos == from) {
9100
9151
  let linesAbove = line.number - firstLine;
9101
- lineTop += perLine * linesAbove + perChar * (from - offset - linesAbove);
9152
+ lineTop += perLine * linesAbove + perChar * (from - offset2 - linesAbove);
9102
9153
  }
9103
9154
  let lineHeight = perLine + perChar * line.length;
9104
9155
  f(new BlockInfo(line.from, line.length, lineTop, lineHeight, 0));
@@ -9130,12 +9181,12 @@ class HeightMapGap extends HeightMap {
9130
9181
  decomposeRight(from, result) {
9131
9182
  result.push(null, new HeightMapGap(this.length - from - 1));
9132
9183
  }
9133
- updateHeight(oracle, offset = 0, force = false, measured) {
9134
- let end = offset + this.length;
9135
- if (measured && measured.from <= offset + this.length && measured.more) {
9136
- let nodes = [], pos = Math.max(offset, measured.from), singleHeight = -1;
9137
- if (measured.from > offset)
9138
- nodes.push(new HeightMapGap(measured.from - offset - 1).updateHeight(oracle, offset));
9184
+ updateHeight(oracle, offset2 = 0, force = false, measured) {
9185
+ let end = offset2 + this.length;
9186
+ if (measured && measured.from <= offset2 + this.length && measured.more) {
9187
+ let nodes = [], pos = Math.max(offset2, measured.from), singleHeight = -1;
9188
+ if (measured.from > offset2)
9189
+ nodes.push(new HeightMapGap(measured.from - offset2 - 1).updateHeight(oracle, offset2));
9139
9190
  while (pos <= end && measured.more) {
9140
9191
  let len = oracle.doc.lineAt(pos).length;
9141
9192
  if (nodes.length)
@@ -9153,11 +9204,11 @@ class HeightMapGap extends HeightMap {
9153
9204
  if (pos <= end)
9154
9205
  nodes.push(null, new HeightMapGap(end - pos).updateHeight(oracle, pos));
9155
9206
  let result = HeightMap.of(nodes);
9156
- if (singleHeight < 0 || Math.abs(result.height - this.height) >= Epsilon || Math.abs(singleHeight - this.heightMetrics(oracle, offset).perLine) >= Epsilon)
9207
+ if (singleHeight < 0 || Math.abs(result.height - this.height) >= Epsilon || Math.abs(singleHeight - this.heightMetrics(oracle, offset2).perLine) >= Epsilon)
9157
9208
  oracle.heightChanged = true;
9158
9209
  return result;
9159
9210
  } else if (force || this.outdated) {
9160
- this.setHeight(oracle, oracle.heightForGap(offset, offset + this.length));
9211
+ this.setHeight(oracle, oracle.heightForGap(offset2, offset2 + this.length));
9161
9212
  this.outdated = false;
9162
9213
  }
9163
9214
  return this;
@@ -9176,33 +9227,33 @@ class HeightMapBranch extends HeightMap {
9176
9227
  get break() {
9177
9228
  return this.flags & 1;
9178
9229
  }
9179
- blockAt(height, oracle, top2, offset) {
9230
+ blockAt(height, oracle, top2, offset2) {
9180
9231
  let mid = top2 + this.left.height;
9181
- return height < mid ? this.left.blockAt(height, oracle, top2, offset) : this.right.blockAt(height, oracle, mid, offset + this.left.length + this.break);
9232
+ return height < mid ? this.left.blockAt(height, oracle, top2, offset2) : this.right.blockAt(height, oracle, mid, offset2 + this.left.length + this.break);
9182
9233
  }
9183
- lineAt(value, type, oracle, top2, offset) {
9184
- let rightTop = top2 + this.left.height, rightOffset = offset + this.left.length + this.break;
9234
+ lineAt(value, type, oracle, top2, offset2) {
9235
+ let rightTop = top2 + this.left.height, rightOffset = offset2 + this.left.length + this.break;
9185
9236
  let left = type == QueryType.ByHeight ? value < rightTop : value < rightOffset;
9186
- let base2 = left ? this.left.lineAt(value, type, oracle, top2, offset) : this.right.lineAt(value, type, oracle, rightTop, rightOffset);
9237
+ let base2 = left ? this.left.lineAt(value, type, oracle, top2, offset2) : this.right.lineAt(value, type, oracle, rightTop, rightOffset);
9187
9238
  if (this.break || (left ? base2.to < rightOffset : base2.from > rightOffset))
9188
9239
  return base2;
9189
9240
  let subQuery = type == QueryType.ByPosNoHeight ? QueryType.ByPosNoHeight : QueryType.ByPos;
9190
9241
  if (left)
9191
9242
  return base2.join(this.right.lineAt(rightOffset, subQuery, oracle, rightTop, rightOffset));
9192
9243
  else
9193
- return this.left.lineAt(rightOffset, subQuery, oracle, top2, offset).join(base2);
9244
+ return this.left.lineAt(rightOffset, subQuery, oracle, top2, offset2).join(base2);
9194
9245
  }
9195
- forEachLine(from, to, oracle, top2, offset, f) {
9196
- let rightTop = top2 + this.left.height, rightOffset = offset + this.left.length + this.break;
9246
+ forEachLine(from, to, oracle, top2, offset2, f) {
9247
+ let rightTop = top2 + this.left.height, rightOffset = offset2 + this.left.length + this.break;
9197
9248
  if (this.break) {
9198
9249
  if (from < rightOffset)
9199
- this.left.forEachLine(from, to, oracle, top2, offset, f);
9250
+ this.left.forEachLine(from, to, oracle, top2, offset2, f);
9200
9251
  if (to >= rightOffset)
9201
9252
  this.right.forEachLine(from, to, oracle, rightTop, rightOffset, f);
9202
9253
  } else {
9203
- let mid = this.lineAt(rightOffset, QueryType.ByPos, oracle, top2, offset);
9254
+ let mid = this.lineAt(rightOffset, QueryType.ByPos, oracle, top2, offset2);
9204
9255
  if (from < mid.from)
9205
- this.left.forEachLine(from, mid.from - 1, oracle, top2, offset, f);
9256
+ this.left.forEachLine(from, mid.from - 1, oracle, top2, offset2, f);
9206
9257
  if (mid.to >= from && mid.from <= to)
9207
9258
  f(mid);
9208
9259
  if (to > mid.to)
@@ -9264,12 +9315,12 @@ class HeightMapBranch extends HeightMap {
9264
9315
  this.length = left.length + this.break + right.length;
9265
9316
  return this;
9266
9317
  }
9267
- updateHeight(oracle, offset = 0, force = false, measured) {
9268
- let { left, right } = this, rightStart = offset + left.length + this.break, rebalance = null;
9269
- if (measured && measured.from <= offset + left.length && measured.more)
9270
- rebalance = left = left.updateHeight(oracle, offset, force, measured);
9318
+ updateHeight(oracle, offset2 = 0, force = false, measured) {
9319
+ let { left, right } = this, rightStart = offset2 + left.length + this.break, rebalance = null;
9320
+ if (measured && measured.from <= offset2 + left.length && measured.more)
9321
+ rebalance = left = left.updateHeight(oracle, offset2, force, measured);
9271
9322
  else
9272
- left.updateHeight(oracle, offset, force);
9323
+ left.updateHeight(oracle, offset2, force);
9273
9324
  if (measured && measured.from <= rightStart + right.length && measured.more)
9274
9325
  rebalance = right = right.updateHeight(oracle, rightStart, force, measured);
9275
9326
  else
@@ -10350,13 +10401,13 @@ class DOMReader {
10350
10401
  point.pos = this.text.length + (isAtEnd(node, point.node, point.offset) ? length : 0);
10351
10402
  }
10352
10403
  }
10353
- function isAtEnd(parent, node, offset) {
10404
+ function isAtEnd(parent, node, offset2) {
10354
10405
  for (; ; ) {
10355
- if (!node || offset < maxOffset(node))
10406
+ if (!node || offset2 < maxOffset(node))
10356
10407
  return false;
10357
10408
  if (node == parent)
10358
10409
  return true;
10359
- offset = domIndex(node) + 1;
10410
+ offset2 = domIndex(node) + 1;
10360
10411
  node = node.parentNode;
10361
10412
  }
10362
10413
  }
@@ -10364,9 +10415,9 @@ function isBlockElement(node) {
10364
10415
  return node.nodeType == 1 && /^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(node.nodeName);
10365
10416
  }
10366
10417
  class DOMPoint {
10367
- constructor(node, offset) {
10418
+ constructor(node, offset2) {
10368
10419
  this.node = node;
10369
- this.offset = offset;
10420
+ this.offset = offset2;
10370
10421
  this.pos = -1;
10371
10422
  }
10372
10423
  }
@@ -10488,11 +10539,11 @@ function applyDefaultInsert(view, change, newSel) {
10488
10539
  } else {
10489
10540
  compositionRange = view.state.doc.lineAt(sel.head);
10490
10541
  }
10491
- let offset = sel.to - change.to, size = sel.to - sel.from;
10542
+ let offset2 = sel.to - change.to, size = sel.to - sel.from;
10492
10543
  tr = startState.changeByRange((range) => {
10493
10544
  if (range.from == sel.from && range.to == sel.to)
10494
10545
  return { changes, range: mainSel || range.map(changes) };
10495
- let to = range.to - offset, from = to - replaced.length;
10546
+ let to = range.to - offset2, from = to - replaced.length;
10496
10547
  if (range.to - range.from != size || view.state.sliceDoc(from, to) != replaced || // Unfortunately, there's no way to make multiple
10497
10548
  // changes in the same node work without aborting
10498
10549
  // composition, so cursors in the composition range are
@@ -11606,8 +11657,8 @@ class EditorView {
11606
11657
  for associating positions with DOM events. Will raise an error
11607
11658
  when `node` isn't part of the editor content.
11608
11659
  */
11609
- posAtDOM(node, offset = 0) {
11610
- return this.docView.posFromDOM(node, offset);
11660
+ posAtDOM(node, offset2 = 0) {
11661
+ return this.docView.posFromDOM(node, offset2);
11611
11662
  }
11612
11663
  posAtCoords(coords, precise = true) {
11613
11664
  this.readMeasured();
@@ -12597,10 +12648,10 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
12597
12648
  let arrow = tooltip.arrow ? tView.dom.querySelector(".cm-tooltip-arrow") : null;
12598
12649
  let arrowHeight = arrow ? 7 : 0;
12599
12650
  let width = size.right - size.left, height = (_a2 = knownHeight.get(tView)) !== null && _a2 !== void 0 ? _a2 : size.bottom - size.top;
12600
- let offset = tView.offset || noOffset, ltr = this.view.textDirection == Direction.LTR;
12601
- let left = size.width > space2.right - space2.left ? ltr ? space2.left : space2.right - size.width : ltr ? Math.min(pos.left - (arrow ? 14 : 0) + offset.x, space2.right - width) : Math.max(space2.left, pos.left - width + (arrow ? 14 : 0) - offset.x);
12651
+ let offset2 = tView.offset || noOffset, ltr = this.view.textDirection == Direction.LTR;
12652
+ let left = size.width > space2.right - space2.left ? ltr ? space2.left : space2.right - size.width : ltr ? Math.min(pos.left - (arrow ? 14 : 0) + offset2.x, space2.right - width) : Math.max(space2.left, pos.left - width + (arrow ? 14 : 0) - offset2.x);
12602
12653
  let above = this.above[i];
12603
- if (!tooltip.strictSide && (above ? pos.top - (size.bottom - size.top) - offset.y < space2.top : pos.bottom + (size.bottom - size.top) + offset.y > space2.bottom) && above == space2.bottom - pos.bottom > pos.top - space2.top)
12654
+ if (!tooltip.strictSide && (above ? pos.top - (size.bottom - size.top) - offset2.y < space2.top : pos.bottom + (size.bottom - size.top) + offset2.y > space2.bottom) && above == space2.bottom - pos.bottom > pos.top - space2.top)
12604
12655
  above = this.above[i] = !above;
12605
12656
  let spaceVert = (above ? pos.top - space2.top : space2.bottom - pos.bottom) - arrowHeight;
12606
12657
  if (spaceVert < height && tView.resize !== false) {
@@ -12613,7 +12664,7 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
12613
12664
  } else if (dom.style.height) {
12614
12665
  dom.style.height = "";
12615
12666
  }
12616
- let top2 = above ? pos.top - height - arrowHeight - offset.y : pos.bottom + arrowHeight + offset.y;
12667
+ let top2 = above ? pos.top - height - arrowHeight - offset2.y : pos.bottom + arrowHeight + offset2.y;
12617
12668
  let right = left + width;
12618
12669
  if (tView.overlap !== true) {
12619
12670
  for (let r2 of others)
@@ -12628,7 +12679,7 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
12628
12679
  dom.style.left = left / scaleX + "px";
12629
12680
  }
12630
12681
  if (arrow) {
12631
- let arrowLeft = pos.left + (ltr ? offset.x : -offset.x) - (left + 14 - 7);
12682
+ let arrowLeft = pos.left + (ltr ? offset2.x : -offset2.x) - (left + 14 - 7);
12632
12683
  arrow.style.left = arrowLeft / scaleX + "px";
12633
12684
  }
12634
12685
  if (tView.overlap !== true)
@@ -14578,7 +14629,7 @@ function balanceRange(balanceType, children, positions, from, to, start, length,
14578
14629
  /* Balance.BranchFactor */
14579
14630
  );
14580
14631
  let localChildren = [], localPositions = [];
14581
- function divide(children2, positions2, from2, to2, offset) {
14632
+ function divide(children2, positions2, from2, to2, offset2) {
14582
14633
  for (let i = from2; i < to2; ) {
14583
14634
  let groupFrom = i, groupStart = positions2[i], groupSize = nodeSize(balanceType, children2[i]);
14584
14635
  i++;
@@ -14591,7 +14642,7 @@ function balanceRange(balanceType, children, positions, from, to, start, length,
14591
14642
  if (i == groupFrom + 1) {
14592
14643
  if (groupSize > maxChild) {
14593
14644
  let only = children2[groupFrom];
14594
- divide(only.children, only.positions, 0, only.children.length, positions2[groupFrom] + offset);
14645
+ divide(only.children, only.positions, 0, only.children.length, positions2[groupFrom] + offset2);
14595
14646
  continue;
14596
14647
  }
14597
14648
  localChildren.push(children2[groupFrom]);
@@ -14599,7 +14650,7 @@ function balanceRange(balanceType, children, positions, from, to, start, length,
14599
14650
  let length2 = positions2[i - 1] + children2[i - 1].length - groupStart;
14600
14651
  localChildren.push(balanceRange(balanceType, children2, positions2, groupFrom, i, groupStart, length2, null, mkTree));
14601
14652
  }
14602
- localPositions.push(groupStart + offset - start);
14653
+ localPositions.push(groupStart + offset2 - start);
14603
14654
  }
14604
14655
  }
14605
14656
  divide(children, positions, from, to, 0);
@@ -14658,11 +14709,11 @@ class TreeFragment {
14658
14709
  [`applyChanges`](#common.TreeFragment^applyChanges) instead of
14659
14710
  calling this directly.
14660
14711
  */
14661
- constructor(from, to, tree, offset, openStart = false, openEnd = false) {
14712
+ constructor(from, to, tree, offset2, openStart = false, openEnd = false) {
14662
14713
  this.from = from;
14663
14714
  this.to = to;
14664
14715
  this.tree = tree;
14665
- this.offset = offset;
14716
+ this.offset = offset2;
14666
14717
  this.open = (openStart ? 1 : 0) | (openEnd ? 2 : 0);
14667
14718
  }
14668
14719
  /**
@@ -14979,8 +15030,8 @@ function materialize(cursor) {
14979
15030
  }
14980
15031
  }
14981
15032
  class StructureCursor {
14982
- constructor(root, offset) {
14983
- this.offset = offset;
15033
+ constructor(root, offset2) {
15034
+ this.offset = offset2;
14984
15035
  this.done = false;
14985
15036
  this.cursor = root.cursor(IterMode.IncludeAnonymous | IterMode.IgnoreMounts);
14986
15037
  }
@@ -17317,7 +17368,7 @@ function joinClass(a, b) {
17317
17368
  }
17318
17369
  function defaultPositionInfo(view, list, option, info, space2, tooltip) {
17319
17370
  let rtl = view.textDirection == Direction.RTL, left = rtl, narrow = false;
17320
- let side = "top", offset, maxWidth;
17371
+ let side = "top", offset2, maxWidth;
17321
17372
  let spaceLeft = list.left - space2.left, spaceRight = space2.right - list.right;
17322
17373
  let infoWidth = info.right - info.left, infoHeight = info.bottom - info.top;
17323
17374
  if (left && spaceLeft < Math.min(infoWidth, spaceRight))
@@ -17325,7 +17376,7 @@ function defaultPositionInfo(view, list, option, info, space2, tooltip) {
17325
17376
  else if (!left && spaceRight < Math.min(infoWidth, spaceLeft))
17326
17377
  left = true;
17327
17378
  if (infoWidth <= (left ? spaceLeft : spaceRight)) {
17328
- offset = Math.max(space2.top, Math.min(option.top, space2.bottom - infoHeight)) - list.top;
17379
+ offset2 = Math.max(space2.top, Math.min(option.top, space2.bottom - infoHeight)) - list.top;
17329
17380
  maxWidth = Math.min(400, left ? spaceLeft : spaceRight);
17330
17381
  } else {
17331
17382
  narrow = true;
@@ -17336,16 +17387,16 @@ function defaultPositionInfo(view, list, option, info, space2, tooltip) {
17336
17387
  );
17337
17388
  let spaceBelow = space2.bottom - list.bottom;
17338
17389
  if (spaceBelow >= infoHeight || spaceBelow > list.top) {
17339
- offset = option.bottom - list.top;
17390
+ offset2 = option.bottom - list.top;
17340
17391
  } else {
17341
17392
  side = "bottom";
17342
- offset = list.bottom - option.top;
17393
+ offset2 = list.bottom - option.top;
17343
17394
  }
17344
17395
  }
17345
17396
  let scaleY = (list.bottom - list.top) / tooltip.offsetHeight;
17346
17397
  let scaleX = (list.right - list.left) / tooltip.offsetWidth;
17347
17398
  return {
17348
- style: `${side}: ${offset / scaleY}px; max-width: ${maxWidth / scaleX}px`,
17399
+ style: `${side}: ${offset2 / scaleY}px; max-width: ${maxWidth / scaleX}px`,
17349
17400
  class: "cm-completionInfo-" + (narrow ? rtl ? "left-narrow" : "right-narrow" : left ? "left" : "right")
17350
17401
  };
17351
17402
  }
@@ -19380,9 +19431,9 @@ class InputStream {
19380
19431
  /**
19381
19432
  @internal
19382
19433
  */
19383
- resolveOffset(offset, assoc) {
19434
+ resolveOffset(offset2, assoc) {
19384
19435
  let range = this.range, index = this.rangeIndex;
19385
- let pos = this.pos + offset;
19436
+ let pos = this.pos + offset2;
19386
19437
  while (pos < range.from) {
19387
19438
  if (!index)
19388
19439
  return null;
@@ -19421,13 +19472,13 @@ class InputStream {
19421
19472
  cause invalid reparses when looking backward more than 25 code
19422
19473
  units, since the library does not track lookbehind.
19423
19474
  */
19424
- peek(offset) {
19425
- let idx = this.chunkOff + offset, pos, result;
19475
+ peek(offset2) {
19476
+ let idx = this.chunkOff + offset2, pos, result;
19426
19477
  if (idx >= 0 && idx < this.chunk.length) {
19427
- pos = this.pos + offset;
19478
+ pos = this.pos + offset2;
19428
19479
  result = this.chunk.charCodeAt(idx);
19429
19480
  } else {
19430
- let resolved = this.resolveOffset(offset, 1);
19481
+ let resolved = this.resolveOffset(offset2, 1);
19431
19482
  if (resolved == null)
19432
19483
  return -1;
19433
19484
  pos = resolved;
@@ -21582,19 +21633,19 @@ function isSpace$1(ch) {
21582
21633
  return ch == 9 || ch == 10 || ch == 13 || ch == 32;
21583
21634
  }
21584
21635
  let cachedName = null, cachedInput = null, cachedPos = 0;
21585
- function tagNameAfter(input, offset) {
21586
- let pos = input.pos + offset;
21636
+ function tagNameAfter(input, offset2) {
21637
+ let pos = input.pos + offset2;
21587
21638
  if (cachedPos == pos && cachedInput == input)
21588
21639
  return cachedName;
21589
- let next = input.peek(offset);
21640
+ let next = input.peek(offset2);
21590
21641
  while (isSpace$1(next))
21591
- next = input.peek(++offset);
21642
+ next = input.peek(++offset2);
21592
21643
  let name2 = "";
21593
21644
  for (; ; ) {
21594
21645
  if (!nameChar(next))
21595
21646
  break;
21596
21647
  name2 += String.fromCharCode(next);
21597
- next = input.peek(++offset);
21648
+ next = input.peek(++offset2);
21598
21649
  }
21599
21650
  cachedInput = input;
21600
21651
  cachedPos = pos;
@@ -23917,7 +23968,7 @@ function getCodeMirrorExtensions({
23917
23968
  }
23918
23969
  return extensions;
23919
23970
  }
23920
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
23971
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
23921
23972
  __name: "CodeMirror",
23922
23973
  props: {
23923
23974
  content: {},
@@ -23954,9 +24005,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23954
24005
  };
23955
24006
  }
23956
24007
  });
23957
- const CodeMirror = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-9f50a430"]]);
23958
- const _hoisted_1$m = { class: "scalar-modal-layout modal-layout" };
23959
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
24008
+ const CodeMirror = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-9f50a430"]]);
24009
+ const _hoisted_1$s = { class: "scalar-modal-layout modal-layout" };
24010
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23960
24011
  __name: "FlowModal",
23961
24012
  props: {
23962
24013
  state: {},
@@ -23972,7 +24023,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23972
24023
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.state.hide())
23973
24024
  }, {
23974
24025
  default: withCtx(() => [
23975
- createElementVNode("div", _hoisted_1$m, [
24026
+ createElementVNode("div", _hoisted_1$s, [
23976
24027
  createVNode(unref(DialogPanel), {
23977
24028
  class: normalizeClass(["modal", {
23978
24029
  "modal-content-large": _ctx.variant === "large",
@@ -24011,7 +24062,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
24011
24062
  };
24012
24063
  }
24013
24064
  });
24014
- const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-a06b8e92"]]);
24065
+ const FlowModal = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-a06b8e92"]]);
24015
24066
  const useModal = () => reactive({
24016
24067
  open: false,
24017
24068
  show() {
@@ -24039,6 +24090,100 @@ const findVariables = (value) => {
24039
24090
  const regex = /(?:\{+)\s*(\w+)\s*(?:\}+)/g;
24040
24091
  return [...value.matchAll(regex)].map((match) => match[1].trim()) || [];
24041
24092
  };
24093
+ function authenticationRequired(security) {
24094
+ if (!security) {
24095
+ return false;
24096
+ }
24097
+ if (Array.isArray(security) && !security.length) {
24098
+ return false;
24099
+ }
24100
+ if ((security ?? []).some(
24101
+ (securityRequirement) => !Object.keys(securityRequirement).length
24102
+ )) {
24103
+ return false;
24104
+ }
24105
+ return true;
24106
+ }
24107
+ function getRequestFromAuthentication(authentication2, operationSecurity) {
24108
+ var _a2;
24109
+ const headers = [];
24110
+ const queryString = [];
24111
+ const cookies = [];
24112
+ if (!authentication2.preferredSecurityScheme || !authenticationRequired(operationSecurity)) {
24113
+ return { headers, queryString, cookies };
24114
+ }
24115
+ const operationAllowsSelectedSecurityScheme = operationSecurity == null ? void 0 : operationSecurity.some(
24116
+ (securityRequirement) => authentication2.preferredSecurityScheme && Object.keys(securityRequirement).includes(
24117
+ authentication2.preferredSecurityScheme
24118
+ )
24119
+ );
24120
+ const operationSecurityKey = operationAllowsSelectedSecurityScheme ? authentication2.preferredSecurityScheme : Object.keys((operationSecurity == null ? void 0 : operationSecurity[0]) ?? {}).pop();
24121
+ const securityScheme = (_a2 = authentication2.securitySchemes) == null ? void 0 : _a2[operationSecurityKey ?? ""];
24122
+ if (securityScheme) {
24123
+ if ("type" in securityScheme && securityScheme.type === "apiKey") {
24124
+ if ("in" in securityScheme && securityScheme.in === "header") {
24125
+ const token = authentication2.apiKey.token.length ? authentication2.apiKey.token : "YOUR_TOKEN";
24126
+ headers.push({
24127
+ name: "name" in securityScheme ? securityScheme.name : "",
24128
+ value: token
24129
+ });
24130
+ } else if ("in" in securityScheme && securityScheme.in === "cookie") {
24131
+ const token = authentication2.apiKey.token.length ? authentication2.apiKey.token : "YOUR_TOKEN";
24132
+ cookies.push({
24133
+ name: securityScheme.name,
24134
+ value: token
24135
+ });
24136
+ } else if ("in" in securityScheme && securityScheme.in === "query") {
24137
+ const token = authentication2.apiKey.token.length ? authentication2.apiKey.token : "YOUR_TOKEN";
24138
+ queryString.push({
24139
+ name: securityScheme.name,
24140
+ value: token
24141
+ });
24142
+ }
24143
+ } else if ("type" in securityScheme && // @ts-ignore
24144
+ (securityScheme.type === "http" || securityScheme.type === "basic")) {
24145
+ if ("type" in securityScheme && // @ts-ignore
24146
+ (securityScheme.type === "basic" || securityScheme.type === "http" && securityScheme.scheme === "basic")) {
24147
+ const { username, password } = authentication2.http.basic;
24148
+ const token = getBase64Token(username, password);
24149
+ headers.push({
24150
+ name: "Authorization",
24151
+ value: `Basic ${token}`.trim()
24152
+ });
24153
+ } else if ("type" in securityScheme && securityScheme.type === "http" && securityScheme.scheme === "bearer") {
24154
+ const token = authentication2.http.bearer.token.length ? authentication2.http.bearer.token : "YOUR_SECRET_TOKEN";
24155
+ headers.push({
24156
+ name: "Authorization",
24157
+ value: `Bearer ${token}`
24158
+ });
24159
+ }
24160
+ } else if ("type" in securityScheme && securityScheme.type.toLowerCase() === "oauth2") {
24161
+ const token = authentication2.oAuth2.accessToken || "YOUR_SECRET_TOKEN";
24162
+ headers.push({
24163
+ name: "Authorization",
24164
+ value: `Bearer ${token}`
24165
+ });
24166
+ }
24167
+ }
24168
+ return { headers, queryString, cookies };
24169
+ }
24170
+ function getBase64Token(username, password) {
24171
+ return (username == null ? void 0 : username.length) || (password == null ? void 0 : password.length) ? encodeStringAsBase64(`${username}:${password}`) : "";
24172
+ }
24173
+ function getSecretCredentialsFromAuthentication(authentication2) {
24174
+ return [
24175
+ authentication2.apiKey.token,
24176
+ authentication2.http.bearer.token,
24177
+ authentication2.oAuth2.accessToken,
24178
+ // The basic auth token is the base64 encoded username and password
24179
+ getBase64Token(
24180
+ authentication2.http.basic.username,
24181
+ authentication2.http.basic.password
24182
+ ),
24183
+ // The plain text password shouldn’t appear anyway, but just in case
24184
+ authentication2.http.basic.password
24185
+ ].filter(Boolean);
24186
+ }
24042
24187
  function humanDiff(unixTimestamp) {
24043
24188
  const seconds = Math.floor(((/* @__PURE__ */ new Date()).getTime() - unixTimestamp) / 1e3);
24044
24189
  if (seconds < 45) {
@@ -25926,42 +26071,45 @@ const isJsonString = (value) => {
25926
26071
  return false;
25927
26072
  return !!json.parseSafe(value, false);
25928
26073
  };
26074
+ function enable(items) {
26075
+ return (items ?? []).map((item) => ({ ...item, enabled: true }));
26076
+ }
25929
26077
  const prepareClientRequestConfig = (configuration) => {
25930
- var _a2;
25931
- const { authState: authState2, request } = configuration;
25932
- if (authState2.type === "basic" && authState2.basic.active) {
25933
- request.headers = [
25934
- ...request.headers ?? [],
25935
- {
25936
- name: "Authorization",
25937
- value: `Basic ${btoa(
25938
- `${authState2.basic.username}:${authState2.basic.password}`
25939
- )}`,
25940
- enabled: true
25941
- }
25942
- ];
25943
- } else if (authState2.type === "bearer" && authState2.bearer.active) {
25944
- request.headers = [
25945
- ...request.headers ?? [],
25946
- {
25947
- name: "Authorization",
25948
- value: `Bearer ${authState2.bearer.token}`,
25949
- enabled: true
25950
- }
25951
- ];
25952
- }
26078
+ var _a2, _b;
26079
+ const { request } = configuration;
26080
+ const { authentication: authentication2 } = useAuthenticationStore();
26081
+ const {
26082
+ openApi: { operation, globalSecurity }
26083
+ } = useOpenApiStore();
26084
+ const authenticationRequest = getRequestFromAuthentication(
26085
+ authentication2,
26086
+ ((_a2 = operation == null ? void 0 : operation.information) == null ? void 0 : _a2.security) ?? globalSecurity
26087
+ );
26088
+ request.headers = [
26089
+ ...request.headers ?? [],
26090
+ ...enable(authenticationRequest.headers)
26091
+ ];
26092
+ request.cookies = [
26093
+ ...request.cookies ?? [],
26094
+ ...enable(authenticationRequest.cookies)
26095
+ ];
26096
+ request.query = [
26097
+ ...request.query ?? [],
26098
+ ...enable(authenticationRequest.queryString)
26099
+ ];
25953
26100
  if (request.body && isJsonString(request.body)) {
25954
- const hasContentTypeHeader = (_a2 = request.headers) == null ? void 0 : _a2.some(
26101
+ const hasContentTypeHeader = (_b = request.headers) == null ? void 0 : _b.some(
25955
26102
  (header) => header.name.toLowerCase() === "content-type"
25956
26103
  );
25957
26104
  if (!hasContentTypeHeader) {
25958
26105
  request.headers = [
25959
26106
  ...request.headers ?? [],
25960
- {
25961
- name: "Content-Type",
25962
- value: `application/json; charset=utf-8`,
25963
- enabled: true
25964
- }
26107
+ ...enable([
26108
+ {
26109
+ name: "Content-Type",
26110
+ value: `application/json; charset=utf-8`
26111
+ }
26112
+ ])
25965
26113
  ];
25966
26114
  }
25967
26115
  request.body = JSON.parse(request.body);
@@ -26095,10 +26243,10 @@ async function sendRequest(request, proxyUrl) {
26095
26243
  responseId: nanoid()
26096
26244
  };
26097
26245
  }
26098
- const _hoisted_1$l = { class: "navtable-item-40 navtable-item-request" };
26099
- const _hoisted_2$f = { class: "navtable-item-40 navtable-item-response" };
26100
- const _hoisted_3$a = { class: "navtable-item-20 navtable-item-time" };
26101
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
26246
+ const _hoisted_1$r = { class: "navtable-item-40 navtable-item-request" };
26247
+ const _hoisted_2$h = { class: "navtable-item-40 navtable-item-response" };
26248
+ const _hoisted_3$c = { class: "navtable-item-20 navtable-item-time" };
26249
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
26102
26250
  __name: "RequestHistoryItem",
26103
26251
  props: {
26104
26252
  history: {}
@@ -26119,7 +26267,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
26119
26267
  class: normalizeClass(["navtable-item", { "navtable-item__active": unref(activeRequestId2) === _ctx.history }]),
26120
26268
  onClick: _cache[0] || (_cache[0] = ($event) => unref(setActiveResponse2)(_ctx.history))
26121
26269
  }, [
26122
- createElementVNode("div", _hoisted_1$l, [
26270
+ createElementVNode("div", _hoisted_1$r, [
26123
26271
  createElementVNode("button", {
26124
26272
  class: normalizeClass(["radio", unref(requestHistory2)[_ctx.history].request.type.toLowerCase()]),
26125
26273
  type: "button"
@@ -26129,7 +26277,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
26129
26277
  createTextVNode(" " + toDisplayString(unref(requestHistory2)[_ctx.history].request.url), 1)
26130
26278
  ])
26131
26279
  ]),
26132
- createElementVNode("div", _hoisted_2$f, [
26280
+ createElementVNode("div", _hoisted_2$h, [
26133
26281
  createElementVNode("span", null, toDisplayString(unref(prettyMilliseconds)(unref(requestHistory2)[_ctx.history].response.duration)), 1),
26134
26282
  createElementVNode("span", {
26135
26283
  class: normalizeClass(`scalar-api-client__status--${String(
@@ -26138,30 +26286,30 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
26138
26286
  }, toDisplayString(unref(requestHistory2)[_ctx.history].response.statusCode), 3),
26139
26287
  createElementVNode("span", null, toDisplayString(getContentLength(unref(requestHistory2)[_ctx.history].response)), 1)
26140
26288
  ]),
26141
- createElementVNode("div", _hoisted_3$a, [
26289
+ createElementVNode("div", _hoisted_3$c, [
26142
26290
  createElementVNode("span", null, toDisplayString(unref(humanDiff)(unref(requestHistory2)[_ctx.history].sentTime)), 1)
26143
26291
  ])
26144
26292
  ], 2);
26145
26293
  };
26146
26294
  }
26147
26295
  });
26148
- const RequestHistoryItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-dd49a57f"]]);
26149
- const _hoisted_1$k = { class: "navigation-content-item" };
26150
- const _hoisted_2$e = { class: "navtable" };
26151
- const _hoisted_3$9 = { class: "navtable-table" };
26152
- const _hoisted_4$7 = /* @__PURE__ */ createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-40"><label for="">Request</label></div><div class="navtable-item-40"><label for="">Response</label></div><div class="navtable-item-20"><label for="">TIME</label></div></div>', 1);
26296
+ const RequestHistoryItem = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-3ab77946"]]);
26297
+ const _hoisted_1$q = { class: "navigation-content-item" };
26298
+ const _hoisted_2$g = { class: "navtable" };
26299
+ const _hoisted_3$b = { class: "navtable-table" };
26300
+ const _hoisted_4$8 = /* @__PURE__ */ createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-40"><label for="">Request</label></div><div class="navtable-item-40"><label for="">Response</label></div><div class="navtable-item-20"><label for="">TIME</label></div></div>', 1);
26153
26301
  const _hoisted_5$6 = { class: "navtable-radios" };
26154
- const _hoisted_6$5 = /* @__PURE__ */ createStaticVNode('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>', 1);
26155
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
26302
+ const _hoisted_6$4 = /* @__PURE__ */ createStaticVNode('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>', 1);
26303
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
26156
26304
  __name: "RequestHistory",
26157
26305
  emits: ["toggle"],
26158
26306
  setup(__props) {
26159
26307
  const { requestHistoryOrder: requestHistoryOrder2 } = useRequestStore();
26160
26308
  return (_ctx, _cache) => {
26161
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
26162
- createElementVNode("div", _hoisted_2$e, [
26163
- createElementVNode("div", _hoisted_3$9, [
26164
- _hoisted_4$7,
26309
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
26310
+ createElementVNode("div", _hoisted_2$g, [
26311
+ createElementVNode("div", _hoisted_3$b, [
26312
+ _hoisted_4$8,
26165
26313
  createElementVNode("div", _hoisted_5$6, [
26166
26314
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(requestHistoryOrder2), (history) => {
26167
26315
  return openBlock(), createBlock(RequestHistoryItem, {
@@ -26170,17 +26318,17 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
26170
26318
  }, null, 8, ["history"]);
26171
26319
  }), 128))
26172
26320
  ]),
26173
- _hoisted_6$5
26321
+ _hoisted_6$4
26174
26322
  ])
26175
26323
  ])
26176
26324
  ]);
26177
26325
  };
26178
26326
  }
26179
26327
  });
26180
- const _hoisted_1$j = { class: "request-method-select" };
26181
- const _hoisted_2$d = ["disabled", "value"];
26182
- const _hoisted_3$8 = ["value"];
26183
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
26328
+ const _hoisted_1$p = { class: "request-method-select" };
26329
+ const _hoisted_2$f = ["disabled", "value"];
26330
+ const _hoisted_3$a = ["value"];
26331
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
26184
26332
  __name: "RequestMethodSelect",
26185
26333
  props: {
26186
26334
  requestMethod: {},
@@ -26200,7 +26348,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
26200
26348
  // 'TRACE',
26201
26349
  ];
26202
26350
  return (_ctx, _cache) => {
26203
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
26351
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
26204
26352
  createElementVNode("span", {
26205
26353
  class: normalizeClass(["request-method", { "request-method--disabled": _ctx.readOnly }])
26206
26354
  }, [
@@ -26218,23 +26366,23 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
26218
26366
  return createElementVNode("option", {
26219
26367
  key: validRequestMethod,
26220
26368
  value: validRequestMethod.toLocaleLowerCase()
26221
- }, toDisplayString(validRequestMethod), 9, _hoisted_3$8);
26369
+ }, toDisplayString(validRequestMethod), 9, _hoisted_3$a);
26222
26370
  }), 64))
26223
- ], 40, _hoisted_2$d)
26371
+ ], 40, _hoisted_2$f)
26224
26372
  ]);
26225
26373
  };
26226
26374
  }
26227
26375
  });
26228
- const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-8e2122cd"]]);
26229
- const _withScopeId = (n) => (pushScopeId("data-v-e969420a"), n = n(), popScopeId(), n);
26230
- const _hoisted_1$i = {
26376
+ const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-8e2122cd"]]);
26377
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-1fd22a00"), n = n(), popScopeId(), n);
26378
+ const _hoisted_1$o = {
26231
26379
  key: 0,
26232
26380
  class: "loader"
26233
26381
  };
26234
- const _hoisted_2$c = { class: "url-form" };
26235
- const _hoisted_3$7 = { class: "url-form-field" };
26236
- const _hoisted_4$6 = ["disabled"];
26237
- const _hoisted_5$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
26382
+ const _hoisted_2$e = { class: "url-form" };
26383
+ const _hoisted_3$9 = { class: "url-form-field" };
26384
+ const _hoisted_4$7 = ["disabled"];
26385
+ const _hoisted_5$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
26238
26386
  fill: "none",
26239
26387
  height: "48",
26240
26388
  viewBox: "0 0 14 14",
@@ -26251,17 +26399,17 @@ const _hoisted_5$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
26251
26399
  })
26252
26400
  ])
26253
26401
  ], -1));
26254
- const _hoisted_6$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "Send Request", -1));
26255
- const _hoisted_7$3 = [
26402
+ const _hoisted_6$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", null, "Send Request", -1));
26403
+ const _hoisted_7$2 = [
26256
26404
  _hoisted_5$5,
26257
- _hoisted_6$4
26405
+ _hoisted_6$3
26258
26406
  ];
26259
- const _hoisted_8$3 = { class: "address-bar-content" };
26260
- const _hoisted_9$3 = {
26407
+ const _hoisted_8$2 = { class: "address-bar-content" };
26408
+ const _hoisted_9$2 = {
26261
26409
  key: 0,
26262
26410
  class: "history"
26263
26411
  };
26264
- const _hoisted_10$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
26412
+ const _hoisted_10$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
26265
26413
  fill: "none",
26266
26414
  height: "48",
26267
26415
  viewBox: "0 0 14 14",
@@ -26285,7 +26433,7 @@ const _hoisted_10$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createE
26285
26433
  })
26286
26434
  ])
26287
26435
  ], -1));
26288
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
26436
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
26289
26437
  __name: "AddressBar",
26290
26438
  props: {
26291
26439
  proxyUrl: {}
@@ -26304,8 +26452,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
26304
26452
  requestHistory: requestHistory2,
26305
26453
  requestHistoryOrder: requestHistoryOrder2,
26306
26454
  readOnly: readOnly2,
26307
- setActiveRequest: setActiveRequest2,
26308
- authState: authState2
26455
+ setActiveRequest: setActiveRequest2
26309
26456
  } = useRequestStore();
26310
26457
  const historyModal = useModal();
26311
26458
  const url = computed(() => activeRequest2.url);
@@ -26316,8 +26463,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
26316
26463
  });
26317
26464
  async function send() {
26318
26465
  const clientRequestConfig = prepareClientRequestConfig({
26319
- request: { ...activeRequest2 },
26320
- authState: authState2
26466
+ request: { ...activeRequest2 }
26321
26467
  });
26322
26468
  loading.value = true;
26323
26469
  emits("onSend");
@@ -26350,12 +26496,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
26350
26496
  };
26351
26497
  return (_ctx, _cache) => {
26352
26498
  return openBlock(), createElementBlock(Fragment, null, [
26353
- loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$i)) : createCommentVNode("", true),
26499
+ loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$o)) : createCommentVNode("", true),
26354
26500
  createElementVNode("div", {
26355
26501
  class: normalizeClass(["address-bar", { "address-bar--with-history": showHistory.value }])
26356
26502
  }, [
26357
- createElementVNode("div", _hoisted_2$c, [
26358
- createElementVNode("div", _hoisted_3$7, [
26503
+ createElementVNode("div", _hoisted_2$e, [
26504
+ createElementVNode("div", _hoisted_3$9, [
26359
26505
  createVNode(RequestMethodSelect, {
26360
26506
  readOnly: unref(readOnly2),
26361
26507
  requestMethod: requestType.value,
@@ -26376,20 +26522,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
26376
26522
  disabled: !formattedUrl.value.trim().length,
26377
26523
  type: "submit",
26378
26524
  onClick: send
26379
- }, _hoisted_7$3, 8, _hoisted_4$6)
26525
+ }, _hoisted_7$2, 8, _hoisted_4$7)
26380
26526
  ]),
26381
26527
  createElementVNode("div", {
26382
26528
  class: "address-bar-close",
26383
26529
  onClick: _cache[0] || (_cache[0] = ($event) => showHistory.value = false)
26384
26530
  }),
26385
- createElementVNode("div", _hoisted_8$3, [
26531
+ createElementVNode("div", _hoisted_8$2, [
26386
26532
  createVNode(unref(FlowModal), {
26387
26533
  state: unref(historyModal),
26388
26534
  title: "Request History",
26389
26535
  variant: "history"
26390
26536
  }, {
26391
26537
  default: withCtx(() => [
26392
- createVNode(_sfc_main$m, {
26538
+ createVNode(_sfc_main$u, {
26393
26539
  showHistory: showHistory.value,
26394
26540
  onToggle: _cache[1] || (_cache[1] = ($event) => showHistory.value = !showHistory.value)
26395
26541
  }, null, 8, ["showHistory"])
@@ -26397,12 +26543,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
26397
26543
  _: 1
26398
26544
  }, 8, ["state"])
26399
26545
  ]),
26400
- unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
26546
+ unref(requestHistoryOrder2).length ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
26401
26547
  createElementVNode("div", {
26402
26548
  class: "history-toggle",
26403
26549
  onClick: _cache[2] || (_cache[2] = ($event) => unref(historyModal).show())
26404
26550
  }, [
26405
- _hoisted_10$2,
26551
+ _hoisted_10$1,
26406
26552
  createElementVNode("span", null, toDisplayString(lastRequestTimestamp.value), 1)
26407
26553
  ])
26408
26554
  ])) : createCommentVNode("", true)
@@ -26411,8 +26557,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
26411
26557
  };
26412
26558
  }
26413
26559
  });
26414
- const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-e969420a"]]);
26415
- const _hoisted_1$h = /* @__PURE__ */ createElementVNode("svg", {
26560
+ const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-1fd22a00"]]);
26561
+ const clickGeneratedParameter = useEventBus(Symbol());
26562
+ const _hoisted_1$n = /* @__PURE__ */ createElementVNode("svg", {
26416
26563
  class: "scalar-api-client__toggle__icon",
26417
26564
  height: "10",
26418
26565
  viewBox: "0 0 5 10",
@@ -26425,13 +26572,13 @@ const _hoisted_1$h = /* @__PURE__ */ createElementVNode("svg", {
26425
26572
  "fill-rule": "nonzero"
26426
26573
  })
26427
26574
  ], -1);
26428
- const _hoisted_2$b = { class: "scalar-api-client__item__title" };
26429
- const _hoisted_3$6 = {
26575
+ const _hoisted_2$d = { class: "scalar-api-client__item__title" };
26576
+ const _hoisted_3$8 = {
26430
26577
  key: 0,
26431
26578
  class: "scalar-api-client__item__options"
26432
26579
  };
26433
- const _hoisted_4$5 = { class: "scalar-api-client__item__content" };
26434
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
26580
+ const _hoisted_4$6 = { class: "scalar-api-client__item__content" };
26581
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
26435
26582
  __name: "CollapsibleSection",
26436
26583
  props: {
26437
26584
  title: {},
@@ -26468,9 +26615,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
26468
26615
  onClick: _cache[0] || (_cache[0] = ($event) => openCopy.value = !openCopy.value)
26469
26616
  }, {
26470
26617
  default: withCtx(() => [
26471
- _hoisted_1$h,
26472
- createElementVNode("span", _hoisted_2$b, toDisplayString(_ctx.title), 1),
26473
- _ctx.$slots.options && open ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
26618
+ _hoisted_1$n,
26619
+ createElementVNode("span", _hoisted_2$d, toDisplayString(_ctx.title), 1),
26620
+ _ctx.$slots.options && open ? (openBlock(), createElementBlock("div", _hoisted_3$8, [
26474
26621
  renderSlot(_ctx.$slots, "options")
26475
26622
  ])) : createCommentVNode("", true)
26476
26623
  ]),
@@ -26478,7 +26625,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
26478
26625
  }, 1536),
26479
26626
  createVNode(unref(DisclosurePanel), null, {
26480
26627
  default: withCtx(() => [
26481
- createElementVNode("div", _hoisted_4$5, [
26628
+ createElementVNode("div", _hoisted_4$6, [
26482
26629
  renderSlot(_ctx.$slots, "default")
26483
26630
  ])
26484
26631
  ]),
@@ -26491,326 +26638,69 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
26491
26638
  };
26492
26639
  }
26493
26640
  });
26494
- const _hoisted_1$g = /* @__PURE__ */ createElementVNode("svg", {
26495
- fill: "none",
26496
- height: "100%",
26497
- stroke: "currentColor",
26498
- viewBox: "0 0 24 24",
26499
- xmlns: "http://www.w3.org/2000/svg"
26500
- }, [
26501
- /* @__PURE__ */ createElementVNode("path", {
26502
- d: "m19.5 10-7.5 7.5-7.5-7.5",
26503
- xmlns: "http://www.w3.org/2000/svg"
26504
- })
26505
- ], -1);
26506
- const _hoisted_2$a = ["disabled", "value"];
26507
- const _hoisted_3$5 = {
26508
- key: 0,
26509
- class: "scalar-api-client__empty-state"
26510
- };
26511
- const _hoisted_4$4 = {
26512
- key: 1,
26513
- class: "authentication-form"
26514
- };
26515
- const _hoisted_5$4 = { class: "input input__half" };
26516
- const _hoisted_6$3 = /* @__PURE__ */ createElementVNode("label", { for: "username" }, "Username", -1);
26517
- const _hoisted_7$2 = { class: "input input__half" };
26518
- const _hoisted_8$2 = /* @__PURE__ */ createElementVNode("label", { for: "password" }, "Password", -1);
26519
- const _hoisted_9$2 = { class: "check" };
26520
- const _hoisted_10$1 = /* @__PURE__ */ createElementVNode("span", { class: "checkmark" }, null, -1);
26521
- const _hoisted_11$1 = /* @__PURE__ */ createElementVNode("p", null, "Enabled", -1);
26522
- const _hoisted_12$1 = { class: "input input__half" };
26523
- const _hoisted_13$1 = /* @__PURE__ */ createElementVNode("label", { for: "username" }, "Username", -1);
26524
- const _hoisted_14$1 = { class: "input input__half" };
26525
- const _hoisted_15$1 = /* @__PURE__ */ createElementVNode("label", { for: "password" }, "Password", -1);
26526
- const _hoisted_16$1 = { class: "check" };
26527
- const _hoisted_17$1 = /* @__PURE__ */ createElementVNode("span", { class: "checkmark" }, null, -1);
26528
- const _hoisted_18$1 = /* @__PURE__ */ createElementVNode("p", null, "Enabled", -1);
26529
- const _hoisted_19$1 = { class: "input" };
26530
- const _hoisted_20$1 = /* @__PURE__ */ createElementVNode("label", { for: "generatedtoken" }, "Generated Token", -1);
26531
- const _hoisted_21$1 = { class: "input" };
26532
- const _hoisted_22$1 = /* @__PURE__ */ createElementVNode("label", { for: "discoveryurl" }, "OIDC Discovery URL", -1);
26533
- const _hoisted_23$1 = { class: "input" };
26534
- const _hoisted_24$1 = /* @__PURE__ */ createElementVNode("label", { for: "authurl" }, "Auth URL", -1);
26535
- const _hoisted_25$1 = { class: "input" };
26536
- const _hoisted_26 = /* @__PURE__ */ createElementVNode("label", { for: "accesstoken" }, "Access Token URL", -1);
26537
- const _hoisted_27 = { class: "input input__half" };
26538
- const _hoisted_28 = /* @__PURE__ */ createElementVNode("label", { for: "clientid" }, "Client ID", -1);
26539
- const _hoisted_29 = { class: "input input__half" };
26540
- const _hoisted_30 = /* @__PURE__ */ createElementVNode("label", { for: "clientsecret" }, "Client Secret", -1);
26541
- const _hoisted_31 = { class: "input" };
26542
- const _hoisted_32 = /* @__PURE__ */ createElementVNode("label", { for: "scope" }, "Scope", -1);
26543
- const _hoisted_33 = /* @__PURE__ */ createElementVNode("button", {
26544
- class: "scalar-api-client__item__content-button",
26545
- type: "button"
26546
- }, [
26547
- /* @__PURE__ */ createElementVNode("span", null, "Generate Token")
26548
- ], -1);
26549
- const _hoisted_34 = { class: "input" };
26550
- const _hoisted_35 = /* @__PURE__ */ createElementVNode("label", { for: "Username" }, "Token", -1);
26551
- const _hoisted_36 = { class: "check" };
26552
- const _hoisted_37 = /* @__PURE__ */ createElementVNode("span", { class: "checkmark" }, null, -1);
26553
- const _hoisted_38 = /* @__PURE__ */ createElementVNode("p", null, "Enabled", -1);
26554
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
26555
- __name: "RequestAuth",
26556
- setup(__props) {
26557
- const store = useRequestStore();
26558
- const { authState: authState2 } = store;
26559
- const authTypeFriendlyString = {
26560
- basic: "Basic Auth",
26561
- digest: "Digest Auth",
26562
- oauthOne: "OAuth 1.0",
26563
- oauthTwo: "OAuth 2.0",
26564
- bearer: "Bearer Token",
26565
- none: "None"
26641
+ const _sfc_main$q = {};
26642
+ const _hoisted_1$m = { class: "card-form" };
26643
+ function _sfc_render$4(_ctx, _cache) {
26644
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
26645
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
26646
+ ]);
26647
+ }
26648
+ const CardForm = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$4], ["__scopeId", "data-v-023a41cb"]]);
26649
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
26650
+ __name: "CardFormButton",
26651
+ setup(__props, { expose: __expose }) {
26652
+ const el = ref();
26653
+ __expose({ el });
26654
+ return (_ctx, _cache) => {
26655
+ return openBlock(), createElementBlock("button", {
26656
+ ref_key: "el",
26657
+ ref: el,
26658
+ class: "card-form-button",
26659
+ type: "button"
26660
+ }, [
26661
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
26662
+ ], 512);
26566
26663
  };
26567
- const authDropdownItems = [
26568
- {
26569
- text: "Basic Auth",
26570
- type: "basic",
26571
- disabled: false
26572
- },
26573
- {
26574
- text: "OAuth 2.0",
26575
- type: "oauthTwo",
26576
- disabled: true
26577
- },
26578
- {
26579
- text: "Bearer Token",
26580
- type: "bearer",
26581
- disabled: false
26582
- },
26583
- {
26584
- text: "None",
26585
- type: "none",
26586
- disabled: false
26587
- }
26588
- ];
26664
+ }
26665
+ });
26666
+ const CardFormButton = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-a37cd1cb"]]);
26667
+ const _sfc_main$o = {};
26668
+ const _hoisted_1$l = { class: "card-form-group" };
26669
+ function _sfc_render$3(_ctx, _cache) {
26670
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
26671
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
26672
+ ]);
26673
+ }
26674
+ const CardFormGroup = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$3], ["__scopeId", "data-v-d2f0b9a0"]]);
26675
+ const _hoisted_1$k = { class: "card-form-input" };
26676
+ const _hoisted_2$c = ["for"];
26677
+ const _hoisted_3$7 = ["id", "type"];
26678
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
26679
+ ...{
26680
+ inheritAttrs: false
26681
+ },
26682
+ __name: "CardFormTextInput",
26683
+ props: {
26684
+ id: {},
26685
+ type: {}
26686
+ },
26687
+ setup(__props) {
26589
26688
  return (_ctx, _cache) => {
26590
- return openBlock(), createBlock(unref(_sfc_main$j), { title: "Authentication" }, {
26591
- options: withCtx(() => [
26592
- createElementVNode("div", null, [
26593
- createElementVNode("span", null, [
26594
- createTextVNode(toDisplayString(authTypeFriendlyString[unref(authState2).type]) + " ", 1),
26595
- _hoisted_1$g
26596
- ]),
26597
- withDirectives(createElementVNode("select", {
26598
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(authState2).type = $event),
26599
- onClick: _cache[1] || (_cache[1] = withModifiers(() => {
26600
- }, ["prevent"]))
26601
- }, [
26602
- (openBlock(), createElementBlock(Fragment, null, renderList(authDropdownItems, (option) => {
26603
- return createElementVNode("option", {
26604
- key: option.type,
26605
- disabled: option.disabled,
26606
- value: option.type
26607
- }, toDisplayString(option.text), 9, _hoisted_2$a);
26608
- }), 64))
26609
- ], 512), [
26610
- [vModelSelect, unref(authState2).type]
26611
- ])
26612
- ])
26613
- ]),
26614
- default: withCtx(() => [
26615
- unref(authState2).type === "none" ? (openBlock(), createElementBlock("div", _hoisted_3$5, "No Authentication")) : (openBlock(), createElementBlock("div", _hoisted_4$4, [
26616
- unref(authState2).type === "basic" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26617
- createElementVNode("div", _hoisted_5$4, [
26618
- _hoisted_6$3,
26619
- withDirectives(createElementVNode("input", {
26620
- id: "username",
26621
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(authState2).basic.username = $event),
26622
- autocomplete: "off",
26623
- placeholder: "Username",
26624
- spellcheck: "false",
26625
- type: "text"
26626
- }, null, 512), [
26627
- [vModelText, unref(authState2).basic.username]
26628
- ])
26629
- ]),
26630
- createElementVNode("div", _hoisted_7$2, [
26631
- _hoisted_8$2,
26632
- withDirectives(createElementVNode("input", {
26633
- id: "password",
26634
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(authState2).basic.password = $event),
26635
- autocomplete: "off",
26636
- placeholder: "Password",
26637
- spellcheck: "false",
26638
- type: "password"
26639
- }, null, 512), [
26640
- [vModelText, unref(authState2).basic.password]
26641
- ])
26642
- ]),
26643
- createElementVNode("label", _hoisted_9$2, [
26644
- withDirectives(createElementVNode("input", {
26645
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(authState2).basic.active = $event),
26646
- type: "checkbox"
26647
- }, null, 512), [
26648
- [vModelCheckbox, unref(authState2).basic.active]
26649
- ]),
26650
- _hoisted_10$1,
26651
- _hoisted_11$1
26652
- ])
26653
- ], 64)) : unref(authState2).type === "digest" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26654
- createElementVNode("div", _hoisted_12$1, [
26655
- _hoisted_13$1,
26656
- withDirectives(createElementVNode("input", {
26657
- id: "username",
26658
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(authState2).digest.username = $event),
26659
- autocomplete: "off",
26660
- placeholder: "Username",
26661
- spellcheck: "false",
26662
- type: "text"
26663
- }, null, 512), [
26664
- [vModelText, unref(authState2).digest.username]
26665
- ])
26666
- ]),
26667
- createElementVNode("div", _hoisted_14$1, [
26668
- _hoisted_15$1,
26669
- withDirectives(createElementVNode("input", {
26670
- id: "password",
26671
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(authState2).digest.password = $event),
26672
- autocomplete: "off",
26673
- placeholder: "Password",
26674
- spellcheck: "false",
26675
- type: "password"
26676
- }, null, 512), [
26677
- [vModelText, unref(authState2).digest.password]
26678
- ])
26679
- ]),
26680
- createElementVNode("label", _hoisted_16$1, [
26681
- withDirectives(createElementVNode("input", {
26682
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(authState2).digest.active = $event),
26683
- type: "checkbox"
26684
- }, null, 512), [
26685
- [vModelCheckbox, unref(authState2).digest.active]
26686
- ]),
26687
- _hoisted_17$1,
26688
- _hoisted_18$1
26689
- ])
26690
- ], 64)) : unref(authState2).type === "oauthTwo" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
26691
- createElementVNode("div", _hoisted_19$1, [
26692
- _hoisted_20$1,
26693
- withDirectives(createElementVNode("input", {
26694
- id: "generatedtoken",
26695
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(authState2).oauthTwo.generatedToken = $event),
26696
- autocomplete: "off",
26697
- placeholder: "Generated Token",
26698
- spellcheck: "false",
26699
- type: "text"
26700
- }, null, 512), [
26701
- [vModelText, unref(authState2).oauthTwo.generatedToken]
26702
- ])
26703
- ]),
26704
- createElementVNode("div", _hoisted_21$1, [
26705
- _hoisted_22$1,
26706
- withDirectives(createElementVNode("input", {
26707
- id: "discoveryurl",
26708
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(authState2).oauthTwo.discoveryURL = $event),
26709
- autocomplete: "off",
26710
- placeholder: "Discovery URL",
26711
- spellcheck: "false",
26712
- type: "text"
26713
- }, null, 512), [
26714
- [vModelText, unref(authState2).oauthTwo.discoveryURL]
26715
- ])
26716
- ]),
26717
- createElementVNode("div", _hoisted_23$1, [
26718
- _hoisted_24$1,
26719
- withDirectives(createElementVNode("input", {
26720
- id: "authurl",
26721
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(authState2).oauthTwo.authURL = $event),
26722
- autocomplete: "off",
26723
- placeholder: "Auth URL",
26724
- spellcheck: "false",
26725
- type: "text"
26726
- }, null, 512), [
26727
- [vModelText, unref(authState2).oauthTwo.authURL]
26728
- ])
26729
- ]),
26730
- createElementVNode("div", _hoisted_25$1, [
26731
- _hoisted_26,
26732
- withDirectives(createElementVNode("input", {
26733
- id: "accesstoken",
26734
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(authState2).oauthTwo.accessTokenURL = $event),
26735
- autocomplete: "off",
26736
- placeholder: "Access Token URL",
26737
- spellcheck: "false",
26738
- type: "text"
26739
- }, null, 512), [
26740
- [vModelText, unref(authState2).oauthTwo.accessTokenURL]
26741
- ])
26742
- ]),
26743
- createElementVNode("div", _hoisted_27, [
26744
- _hoisted_28,
26745
- withDirectives(createElementVNode("input", {
26746
- id: "clientid",
26747
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(authState2).oauthTwo.clientID = $event),
26748
- autocomplete: "off",
26749
- placeholder: "Client ID",
26750
- spellcheck: "false",
26751
- type: "text"
26752
- }, null, 512), [
26753
- [vModelText, unref(authState2).oauthTwo.clientID]
26754
- ])
26755
- ]),
26756
- createElementVNode("div", _hoisted_29, [
26757
- _hoisted_30,
26758
- withDirectives(createElementVNode("input", {
26759
- id: "clientsecret",
26760
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(authState2).oauthTwo.clientSecret = $event),
26761
- autocomplete: "off",
26762
- placeholder: "Client Secret",
26763
- spellcheck: "false",
26764
- type: "text"
26765
- }, null, 512), [
26766
- [vModelText, unref(authState2).oauthTwo.clientSecret]
26767
- ])
26768
- ]),
26769
- createElementVNode("div", _hoisted_31, [
26770
- _hoisted_32,
26771
- withDirectives(createElementVNode("input", {
26772
- id: "scope",
26773
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(authState2).oauthTwo.scope = $event),
26774
- autocomplete: "off",
26775
- placeholder: "Scope",
26776
- spellcheck: "false",
26777
- type: "text"
26778
- }, null, 512), [
26779
- [vModelText, unref(authState2).oauthTwo.scope]
26780
- ])
26781
- ]),
26782
- _hoisted_33
26783
- ], 64)) : unref(authState2).type === "bearer" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
26784
- createElementVNode("div", _hoisted_34, [
26785
- _hoisted_35,
26786
- withDirectives(createElementVNode("input", {
26787
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(authState2).bearer.token = $event),
26788
- autocomplete: "off",
26789
- placeholder: "Username",
26790
- spellcheck: "false",
26791
- type: "text"
26792
- }, null, 512), [
26793
- [vModelText, unref(authState2).bearer.token]
26794
- ])
26795
- ]),
26796
- createElementVNode("label", _hoisted_36, [
26797
- withDirectives(createElementVNode("input", {
26798
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(authState2).bearer.active = $event),
26799
- type: "checkbox"
26800
- }, null, 512), [
26801
- [vModelCheckbox, unref(authState2).bearer.active]
26802
- ]),
26803
- _hoisted_37,
26804
- _hoisted_38
26805
- ])
26806
- ], 64)) : createCommentVNode("", true)
26807
- ]))
26808
- ]),
26809
- _: 1
26810
- });
26689
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
26690
+ createElementVNode("label", { for: _ctx.id }, [
26691
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
26692
+ ], 8, _hoisted_2$c),
26693
+ createElementVNode("input", mergeProps(_ctx.$attrs, {
26694
+ id: _ctx.id,
26695
+ autocomplete: "off",
26696
+ spellcheck: "false",
26697
+ type: _ctx.type ?? "text"
26698
+ }), null, 16, _hoisted_3$7)
26699
+ ]);
26811
26700
  };
26812
26701
  }
26813
26702
  });
26703
+ const CardFormTextInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-f2db736f"]]);
26814
26704
  function r(e) {
26815
26705
  var t2, f, n = "";
26816
26706
  if ("string" == typeof e || "number" == typeof e)
@@ -31372,6 +31262,485 @@ const ve = ["innerHTML"], He = /* @__PURE__ */ defineComponent({
31372
31262
  }, null, 8, be));
31373
31263
  }
31374
31264
  });
31265
+ const _sfc_main$m = {};
31266
+ const _hoisted_1$j = { class: "badge" };
31267
+ function _sfc_render$2(_ctx, _cache) {
31268
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
31269
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
31270
+ ]);
31271
+ }
31272
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$2], ["__scopeId", "data-v-08c68ac3"]]);
31273
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-2c61ed69"), n = n(), popScopeId(), n);
31274
+ const _hoisted_1$i = { class: "scopes-label" };
31275
+ const _hoisted_2$b = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("em", null, "|", -1));
31276
+ const _hoisted_3$6 = ["checked"];
31277
+ const _hoisted_4$5 = { class: "dropdown-item-title" };
31278
+ const _hoisted_5$4 = { class: "dropdown-item-description" };
31279
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
31280
+ __name: "SecuritySchemeScopes",
31281
+ props: {
31282
+ scopes: {},
31283
+ selected: {}
31284
+ },
31285
+ emits: ["update:selected"],
31286
+ setup(__props, { emit: __emit }) {
31287
+ const props = __props;
31288
+ const emit = __emit;
31289
+ const trigger = ref();
31290
+ const dropdown = ref();
31291
+ const { floatingStyles } = useFloating(trigger, dropdown, {
31292
+ placement: "bottom-end",
31293
+ whileElementsMounted: autoUpdate,
31294
+ middleware: [offset(5), flip(), shift$1()]
31295
+ });
31296
+ const model = computed({
31297
+ get: () => props.selected,
31298
+ set: (v) => emit("update:selected", v)
31299
+ });
31300
+ return (_ctx, _cache) => {
31301
+ return openBlock(), createBlock(unref(Listbox), {
31302
+ modelValue: model.value,
31303
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
31304
+ multiple: ""
31305
+ }, {
31306
+ default: withCtx(({ open }) => [
31307
+ createElementVNode("div", {
31308
+ ref_key: "trigger",
31309
+ ref: trigger,
31310
+ class: normalizeClass(["wrapper", { "wrapper-open": open }])
31311
+ }, [
31312
+ createVNode(unref(ListboxButton), { as: CardFormButton }, {
31313
+ default: withCtx(() => [
31314
+ createElementVNode("div", _hoisted_1$i, [
31315
+ createVNode(unref(j), {
31316
+ icon: open ? "ChevronUp" : "ChevronDown",
31317
+ size: "sm"
31318
+ }, null, 8, ["icon"]),
31319
+ createTextVNode(" Scopes "),
31320
+ createVNode(unref(Badge), { class: "scopes-label-badge" }, {
31321
+ default: withCtx(() => [
31322
+ createTextVNode(toDisplayString(model.value.length), 1),
31323
+ _hoisted_2$b,
31324
+ createTextVNode(toDisplayString(Object.entries(_ctx.scopes).length), 1)
31325
+ ]),
31326
+ _: 1
31327
+ })
31328
+ ])
31329
+ ]),
31330
+ _: 2
31331
+ }, 1024)
31332
+ ], 2),
31333
+ (openBlock(), createBlock(Teleport, { to: "body" }, [
31334
+ createVNode(unref(ResetStyles), null, {
31335
+ default: withCtx(({ styles: resetStyles }) => [
31336
+ createElementVNode("div", {
31337
+ ref_key: "dropdown",
31338
+ ref: dropdown,
31339
+ class: normalizeClass(["floating", resetStyles]),
31340
+ style: normalizeStyle(unref(floatingStyles))
31341
+ }, [
31342
+ createVNode(unref(ListboxOptions), {
31343
+ as: "dl",
31344
+ class: "dropdown"
31345
+ }, {
31346
+ default: withCtx(() => [
31347
+ (openBlock(true), createElementBlock(Fragment, null, renderList(Object.entries(_ctx.scopes), ([key, description]) => {
31348
+ return openBlock(), createBlock(unref(ListboxOption), {
31349
+ key,
31350
+ as: "div",
31351
+ class: "dropdown-item",
31352
+ value: key
31353
+ }, {
31354
+ default: withCtx(({ selected: s }) => [
31355
+ createElementVNode("input", {
31356
+ checked: s,
31357
+ class: "dropdown-item-check",
31358
+ tabindex: "-1",
31359
+ type: "checkbox"
31360
+ }, null, 8, _hoisted_3$6),
31361
+ createElementVNode("dt", _hoisted_4$5, toDisplayString(key), 1),
31362
+ createElementVNode("dd", _hoisted_5$4, toDisplayString(description), 1)
31363
+ ]),
31364
+ _: 2
31365
+ }, 1032, ["value"]);
31366
+ }), 128))
31367
+ ]),
31368
+ _: 1
31369
+ })
31370
+ ], 6)
31371
+ ]),
31372
+ _: 1
31373
+ })
31374
+ ]))
31375
+ ]),
31376
+ _: 1
31377
+ }, 8, ["modelValue"]);
31378
+ };
31379
+ }
31380
+ });
31381
+ const SecuritySchemeScopes = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-2c61ed69"]]);
31382
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
31383
+ __name: "SecurityScheme",
31384
+ props: {
31385
+ value: {}
31386
+ },
31387
+ setup(__props) {
31388
+ const { authentication: authentication2, setAuthentication: setAuthentication2 } = useAuthenticationStore();
31389
+ const handleApiKeyTokenInput = (event) => {
31390
+ setAuthentication2({
31391
+ apiKey: {
31392
+ ...authentication2.apiKey,
31393
+ token: event.target.value
31394
+ }
31395
+ });
31396
+ };
31397
+ const handleHttpBasicUsernameInput = (event) => {
31398
+ setAuthentication2({
31399
+ http: {
31400
+ ...authentication2.http,
31401
+ basic: {
31402
+ ...authentication2.http.basic,
31403
+ username: event.target.value
31404
+ }
31405
+ }
31406
+ });
31407
+ };
31408
+ const handleHttpBasicPasswordInput = (event) => {
31409
+ setAuthentication2({
31410
+ http: {
31411
+ ...authentication2.http,
31412
+ basic: {
31413
+ ...authentication2.http.basic,
31414
+ password: event.target.value
31415
+ }
31416
+ }
31417
+ });
31418
+ };
31419
+ const handleHttpBearerTokenInput = (event) => {
31420
+ setAuthentication2({
31421
+ http: {
31422
+ ...authentication2.http,
31423
+ bearer: {
31424
+ ...authentication2.http.bearer,
31425
+ token: event.target.value
31426
+ }
31427
+ }
31428
+ });
31429
+ };
31430
+ const handleOpenAuth2ClientIdInput = (event) => {
31431
+ setAuthentication2({
31432
+ oAuth2: {
31433
+ ...authentication2.oAuth2,
31434
+ clientId: event.target.value
31435
+ }
31436
+ });
31437
+ };
31438
+ const getOpenAuth2AuthorizationUrl = (flow) => {
31439
+ const scopes = authentication2.oAuth2.scopes.join(" ");
31440
+ const state2 = (Math.random() + 1).toString(36).substring(7);
31441
+ const url = new URL(flow.authorizationUrl);
31442
+ setAuthentication2({
31443
+ oAuth2: { ...authentication2.oAuth2, state: state2 }
31444
+ });
31445
+ url.searchParams.set("response_type", "token");
31446
+ url.searchParams.set("client_id", authentication2.oAuth2.clientId);
31447
+ url.searchParams.set("redirect_uri", window.location.href);
31448
+ url.searchParams.set("scope", scopes);
31449
+ url.searchParams.set("state", state2);
31450
+ return url.toString();
31451
+ };
31452
+ const oauth2SelectedScopes = computed({
31453
+ get: () => authentication2.oAuth2.scopes,
31454
+ set: (scopes) => setAuthentication2({ oAuth2: { ...authentication2.oAuth2, scopes } })
31455
+ });
31456
+ const startAuthentication = (url) => {
31457
+ const windowFeatures = "left=100,top=100,width=800,height=600";
31458
+ const authWindow = window.open(url, "openAuth2Window", windowFeatures);
31459
+ if (authWindow) {
31460
+ const checkWindowClosed = setInterval(function() {
31461
+ var _a2;
31462
+ try {
31463
+ const urlParams = new URLSearchParams(authWindow.location.href);
31464
+ const accessToken = urlParams.get("access_token");
31465
+ if (authWindow.closed || accessToken) {
31466
+ clearInterval(checkWindowClosed);
31467
+ const state2 = (_a2 = authWindow.location.href.match(/state=([^&]*)/)) == null ? void 0 : _a2[1];
31468
+ if (accessToken && authentication2.oAuth2.state === state2) {
31469
+ setAuthentication2({
31470
+ oAuth2: { ...authentication2.oAuth2, accessToken }
31471
+ });
31472
+ }
31473
+ authWindow.close();
31474
+ }
31475
+ } catch {
31476
+ }
31477
+ }, 200);
31478
+ }
31479
+ };
31480
+ return (_ctx, _cache) => {
31481
+ var _a2;
31482
+ return _ctx.value && ((_a2 = _ctx.value) == null ? void 0 : _a2.type) ? (openBlock(), createBlock(CardForm, { key: 0 }, {
31483
+ default: withCtx(() => [
31484
+ _ctx.value.type === "apiKey" ? (openBlock(), createBlock(CardFormTextInput, {
31485
+ key: 0,
31486
+ id: `security-scheme-${_ctx.value.name}`,
31487
+ placeholder: "Token",
31488
+ type: "password",
31489
+ value: unref(authentication2).apiKey.token,
31490
+ onInput: handleApiKeyTokenInput
31491
+ }, {
31492
+ default: withCtx(() => [
31493
+ createTextVNode(toDisplayString(_ctx.value.in.charAt(0).toUpperCase() + _ctx.value.in.slice(1)) + " API ", 1)
31494
+ ]),
31495
+ _: 1
31496
+ }, 8, ["id", "value"])) : _ctx.value.type === "http" || _ctx.value.type === "basic" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
31497
+ _ctx.value.type === "basic" || _ctx.value.scheme === "basic" ? (openBlock(), createBlock(CardFormGroup, { key: 0 }, {
31498
+ default: withCtx(() => [
31499
+ createVNode(CardFormTextInput, {
31500
+ id: "http.basic.username",
31501
+ placeholder: "Username",
31502
+ value: unref(authentication2).http.basic.username,
31503
+ onInput: handleHttpBasicUsernameInput
31504
+ }, {
31505
+ default: withCtx(() => [
31506
+ createTextVNode(" Username ")
31507
+ ]),
31508
+ _: 1
31509
+ }, 8, ["value"]),
31510
+ createVNode(CardFormTextInput, {
31511
+ id: "http.basic.password",
31512
+ placeholder: "Password",
31513
+ type: "password",
31514
+ value: unref(authentication2).http.basic.password,
31515
+ onInput: handleHttpBasicPasswordInput
31516
+ }, {
31517
+ default: withCtx(() => [
31518
+ createTextVNode(" Password ")
31519
+ ]),
31520
+ _: 1
31521
+ }, 8, ["value"])
31522
+ ]),
31523
+ _: 1
31524
+ })) : _ctx.value.type === "http" && _ctx.value.scheme === "bearer" ? (openBlock(), createBlock(CardFormTextInput, {
31525
+ key: 1,
31526
+ id: "http.bearer.token",
31527
+ placeholder: "Token",
31528
+ type: "password",
31529
+ value: unref(authentication2).http.bearer.token,
31530
+ onInput: handleHttpBearerTokenInput
31531
+ }, {
31532
+ default: withCtx(() => [
31533
+ createTextVNode(" Bearer Token ")
31534
+ ]),
31535
+ _: 1
31536
+ }, 8, ["value"])) : createCommentVNode("", true)
31537
+ ], 64)) : _ctx.value.type.toLowerCase() === "oauth2" && _ctx.value.flows && _ctx.value.flows.implicit ? (openBlock(), createBlock(CardFormGroup, { key: 2 }, {
31538
+ default: withCtx(() => [
31539
+ unref(authentication2).oAuth2.accessToken ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31540
+ createVNode(CardFormTextInput, {
31541
+ id: "oAuth2.accessToken",
31542
+ placeholder: "xxxxx",
31543
+ type: "password",
31544
+ value: unref(authentication2).oAuth2.accessToken
31545
+ }, {
31546
+ default: withCtx(() => [
31547
+ createTextVNode(" Access Token ")
31548
+ ]),
31549
+ _: 1
31550
+ }, 8, ["value"]),
31551
+ createVNode(CardFormButton, {
31552
+ onClick: _cache[0] || (_cache[0] = () => unref(setAuthentication2)({
31553
+ oAuth2: {
31554
+ ...unref(authentication2).oAuth2,
31555
+ accessToken: "",
31556
+ state: ""
31557
+ }
31558
+ }))
31559
+ }, {
31560
+ default: withCtx(() => [
31561
+ createTextVNode(" Reset ")
31562
+ ]),
31563
+ _: 1
31564
+ })
31565
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
31566
+ createVNode(CardFormTextInput, {
31567
+ id: "oAuth2.clientId",
31568
+ placeholder: "12345",
31569
+ type: "text",
31570
+ value: unref(authentication2).oAuth2.clientId,
31571
+ onInput: handleOpenAuth2ClientIdInput
31572
+ }, {
31573
+ default: withCtx(() => [
31574
+ createTextVNode(" Client ID ")
31575
+ ]),
31576
+ _: 1
31577
+ }, 8, ["value"]),
31578
+ _ctx.value !== void 0 ? (openBlock(), createBlock(SecuritySchemeScopes, {
31579
+ key: 0,
31580
+ selected: oauth2SelectedScopes.value,
31581
+ "onUpdate:selected": _cache[1] || (_cache[1] = ($event) => oauth2SelectedScopes.value = $event),
31582
+ scopes: _ctx.value.flows.implicit.scopes
31583
+ }, null, 8, ["selected", "scopes"])) : createCommentVNode("", true),
31584
+ createVNode(CardFormButton, {
31585
+ onClick: _cache[2] || (_cache[2] = () => {
31586
+ var _a3;
31587
+ return startAuthentication(
31588
+ getOpenAuth2AuthorizationUrl(
31589
+ //@ts-ignore
31590
+ (_a3 = _ctx.value) == null ? void 0 : _a3.flows.implicit
31591
+ )
31592
+ );
31593
+ })
31594
+ }, {
31595
+ default: withCtx(() => [
31596
+ createTextVNode(" Authorize ")
31597
+ ]),
31598
+ _: 1
31599
+ })
31600
+ ], 64))
31601
+ ]),
31602
+ _: 1
31603
+ })) : createCommentVNode("", true)
31604
+ ]),
31605
+ _: 1
31606
+ })) : createCommentVNode("", true);
31607
+ };
31608
+ }
31609
+ });
31610
+ const SecurityScheme = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-5782f5ce"]]);
31611
+ const _withScopeId = (n) => (pushScopeId("data-v-3fe58652"), n = n(), popScopeId(), n);
31612
+ const _hoisted_1$h = {
31613
+ key: 1,
31614
+ class: "security-scheme-selector"
31615
+ };
31616
+ const _hoisted_2$a = ["value"];
31617
+ const _hoisted_3$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("option", { value: "" }, "None", -1));
31618
+ const _hoisted_4$4 = ["value"];
31619
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
31620
+ __name: "SecuritySchemeSelector",
31621
+ props: {
31622
+ value: {}
31623
+ },
31624
+ emits: ["input"],
31625
+ setup(__props, { emit: __emit }) {
31626
+ const props = __props;
31627
+ const emits = __emit;
31628
+ const { authentication: authentication2, setAuthentication: setAuthentication2 } = useAuthenticationStore();
31629
+ const handleAuthenticationTypeInput = (event) => {
31630
+ setSecuritySchemeKey(event.target.value);
31631
+ };
31632
+ onMounted(() => {
31633
+ if (authentication2.preferredSecurityScheme) {
31634
+ return;
31635
+ }
31636
+ setSecuritySchemeKey(Object.keys(props.value ?? {})[0] ?? null);
31637
+ });
31638
+ const setSecuritySchemeKey = (key) => {
31639
+ setAuthentication2({
31640
+ preferredSecurityScheme: key
31641
+ });
31642
+ emits("input", key);
31643
+ };
31644
+ const isNone = (item) => !(item == null ? void 0 : item.type);
31645
+ const isApiKey = (item) => item.type.toLowerCase() === "apikey";
31646
+ const isHttpBasic = (item) => item.type === "http" && item.scheme.toLowerCase() === "basic" || item.type.toLowerCase() === "basic";
31647
+ const isHttpBearer = (item) => item.type === "http" && item.scheme.toLowerCase() === "bearer";
31648
+ const isOAuth2 = (item) => item.type.toLowerCase() === "oauth2";
31649
+ const getLabelForScheme = (item, key) => {
31650
+ return `${getAuthorizationTypeLabel(item)} (${key})`;
31651
+ };
31652
+ const getAuthorizationTypeLabel = (item) => {
31653
+ if (isNone(item)) {
31654
+ return "No Authentication";
31655
+ } else if (isApiKey(item)) {
31656
+ return "API Key";
31657
+ } else if (isHttpBasic(item)) {
31658
+ return "Basic Authentication";
31659
+ } else if (isHttpBearer(item)) {
31660
+ return "Bearer Authentication";
31661
+ } else if (isOAuth2(item)) {
31662
+ return "OAuth 2.0";
31663
+ }
31664
+ return `${item.type} (not yet supported)`;
31665
+ };
31666
+ const keys = computed(() => Object.keys(props.value ?? {}));
31667
+ return (_ctx, _cache) => {
31668
+ var _a2, _b;
31669
+ return keys.value.length === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31670
+ createTextVNode(toDisplayString(getLabelForScheme((_a2 = _ctx.value) == null ? void 0 : _a2[keys.value[0]], keys.value[0])), 1)
31671
+ ], 64)) : keys.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
31672
+ createElementVNode("span", null, toDisplayString(unref(authentication2).preferredSecurityScheme ? getLabelForScheme(
31673
+ (_b = _ctx.value) == null ? void 0 : _b[unref(authentication2).preferredSecurityScheme],
31674
+ unref(authentication2).preferredSecurityScheme
31675
+ ) : "None"), 1),
31676
+ createVNode(unref(j), { icon: "ChevronDown" }),
31677
+ createElementVNode("select", {
31678
+ value: unref(authentication2).preferredSecurityScheme,
31679
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => {
31680
+ }, ["prevent"])),
31681
+ onInput: handleAuthenticationTypeInput
31682
+ }, [
31683
+ _hoisted_3$5,
31684
+ (openBlock(true), createElementBlock(Fragment, null, renderList(keys.value, (key) => {
31685
+ var _a3;
31686
+ return openBlock(), createElementBlock("option", {
31687
+ key,
31688
+ value: key ?? null
31689
+ }, toDisplayString(getLabelForScheme((_a3 = _ctx.value) == null ? void 0 : _a3[key], key)), 9, _hoisted_4$4);
31690
+ }), 128))
31691
+ ], 40, _hoisted_2$a)
31692
+ ])) : createCommentVNode("", true);
31693
+ };
31694
+ }
31695
+ });
31696
+ const SecuritySchemeSelector = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-3fe58652"]]);
31697
+ const _hoisted_1$g = {
31698
+ key: 0,
31699
+ class: "preferred-security-scheme"
31700
+ };
31701
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
31702
+ __name: "RequestAuthentication",
31703
+ setup(__props) {
31704
+ const requestAuthenticationRef = ref(null);
31705
+ clickGeneratedParameter.on(() => {
31706
+ if (!requestAuthenticationRef.value) {
31707
+ return;
31708
+ }
31709
+ const element = requestAuthenticationRef.value;
31710
+ element.scrollIntoView({
31711
+ behavior: "smooth",
31712
+ block: "center"
31713
+ });
31714
+ });
31715
+ const { authentication: authentication2 } = useAuthenticationStore();
31716
+ return (_ctx, _cache) => {
31717
+ return openBlock(), createElementBlock("div", {
31718
+ ref_key: "requestAuthenticationRef",
31719
+ ref: requestAuthenticationRef
31720
+ }, [
31721
+ createVNode(unref(_sfc_main$r), { title: "Authentication" }, {
31722
+ options: withCtx(() => [
31723
+ createVNode(SecuritySchemeSelector, {
31724
+ value: unref(authentication2).securitySchemes
31725
+ }, null, 8, ["value"])
31726
+ ]),
31727
+ default: withCtx(() => {
31728
+ var _a2;
31729
+ return [
31730
+ unref(authentication2).preferredSecurityScheme ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
31731
+ createVNode(SecurityScheme, {
31732
+ value: (_a2 = unref(authentication2).securitySchemes) == null ? void 0 : _a2[unref(authentication2).preferredSecurityScheme]
31733
+ }, null, 8, ["value"])
31734
+ ])) : createCommentVNode("", true)
31735
+ ];
31736
+ }),
31737
+ _: 1
31738
+ })
31739
+ ], 512);
31740
+ };
31741
+ }
31742
+ });
31743
+ const RequestAuthentication = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-ae167d85"]]);
31375
31744
  const _hoisted_1$f = { class: "table" };
31376
31745
  const _hoisted_2$9 = { class: "table-row" };
31377
31746
  const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("div", { class: "table-row-item" }, [
@@ -31405,13 +31774,26 @@ const _hoisted_11 = ["onUpdate:modelValue"];
31405
31774
  const _hoisted_12 = { class: "table-row-item" };
31406
31775
  const _hoisted_13 = ["onUpdate:modelValue"];
31407
31776
  const _hoisted_14 = { class: "table-row-item" };
31408
- const _hoisted_15 = ["onUpdate:modelValue"];
31409
- const _hoisted_16 = { class: "table-row-meta" };
31410
- const _hoisted_17 = { class: "meta-check" };
31411
- const _hoisted_18 = ["onUpdate:modelValue"];
31412
- const _hoisted_19 = /* @__PURE__ */ createElementVNode("span", { class: "meta-checkmark" }, null, -1);
31413
- const _hoisted_20 = ["onClick"];
31414
- const _hoisted_21 = /* @__PURE__ */ createElementVNode("svg", {
31777
+ const _hoisted_15 = /* @__PURE__ */ createElementVNode("input", {
31778
+ disabled: "",
31779
+ value: "Read-only"
31780
+ }, null, -1);
31781
+ const _hoisted_16 = [
31782
+ _hoisted_15
31783
+ ];
31784
+ const _hoisted_17 = /* @__PURE__ */ createElementVNode("div", { class: "table-row-meta" }, null, -1);
31785
+ const _hoisted_18 = { class: "table-row-item" };
31786
+ const _hoisted_19 = ["onUpdate:modelValue"];
31787
+ const _hoisted_20 = { class: "table-row-item" };
31788
+ const _hoisted_21 = ["onUpdate:modelValue"];
31789
+ const _hoisted_22 = { class: "table-row-item" };
31790
+ const _hoisted_23 = ["onUpdate:modelValue"];
31791
+ const _hoisted_24 = { class: "table-row-meta" };
31792
+ const _hoisted_25 = { class: "meta-check" };
31793
+ const _hoisted_26 = ["onUpdate:modelValue"];
31794
+ const _hoisted_27 = /* @__PURE__ */ createElementVNode("span", { class: "meta-checkmark" }, null, -1);
31795
+ const _hoisted_28 = ["onClick"];
31796
+ const _hoisted_29 = /* @__PURE__ */ createElementVNode("svg", {
31415
31797
  fill: "none",
31416
31798
  height: "10",
31417
31799
  viewBox: "-0.5 -0.5 10 10",
@@ -31433,16 +31815,17 @@ const _hoisted_21 = /* @__PURE__ */ createElementVNode("svg", {
31433
31815
  "stroke-width": "1.5"
31434
31816
  })
31435
31817
  ], -1);
31436
- const _hoisted_22 = [
31437
- _hoisted_21
31818
+ const _hoisted_30 = [
31819
+ _hoisted_29
31438
31820
  ];
31439
- const _hoisted_23 = { class: "meta-actions" };
31440
- const _hoisted_24 = { class: "meta-actions-item-icon" };
31441
- const _hoisted_25 = { class: "meta-actions-item-icon" };
31821
+ const _hoisted_31 = { class: "meta-actions" };
31822
+ const _hoisted_32 = { class: "meta-actions-item-icon" };
31823
+ const _hoisted_33 = { class: "meta-actions-item-icon" };
31442
31824
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
31443
31825
  __name: "Grid",
31444
31826
  props: {
31445
31827
  items: {},
31828
+ generatedItems: {},
31446
31829
  addLabel: {},
31447
31830
  showMoreFilter: { type: Boolean }
31448
31831
  },
@@ -31468,16 +31851,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
31468
31851
  onClick: _cache[0] || (_cache[0] = ($event) => showDescription.value = !showDescription.value)
31469
31852
  }, _hoisted_9$1)
31470
31853
  ]),
31471
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
31472
- return withDirectives((openBlock(), createElementBlock("div", {
31854
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.generatedItems, (item) => {
31855
+ return openBlock(), createElementBlock("div", {
31473
31856
  key: item.id,
31474
- class: normalizeClass(["table-row", {
31475
- "required-parameter": item.required
31476
- }])
31857
+ class: "table-row generated-parameter",
31858
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(clickGeneratedParameter).emit())
31477
31859
  }, [
31478
31860
  createElementVNode("div", _hoisted_10, [
31479
31861
  withDirectives(createElementVNode("input", {
31480
31862
  "onUpdate:modelValue": ($event) => item.name = $event,
31863
+ disabled: "",
31481
31864
  placeholder: "key"
31482
31865
  }, null, 8, _hoisted_11), [
31483
31866
  [vModelText, item.name]
@@ -31486,62 +31869,93 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
31486
31869
  createElementVNode("div", _hoisted_12, [
31487
31870
  withDirectives(createElementVNode("input", {
31488
31871
  "onUpdate:modelValue": ($event) => item.value = $event,
31489
- placeholder: "value"
31872
+ disabled: "",
31873
+ placeholder: "value",
31874
+ type: "password"
31490
31875
  }, null, 8, _hoisted_13), [
31491
31876
  [vModelText, item.value]
31492
31877
  ])
31493
31878
  ]),
31494
- withDirectives(createElementVNode("div", _hoisted_14, [
31879
+ withDirectives(createElementVNode("div", _hoisted_14, _hoisted_16, 512), [
31880
+ [vShow, showDescription.value]
31881
+ ]),
31882
+ _hoisted_17
31883
+ ]);
31884
+ }), 128)),
31885
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
31886
+ return withDirectives((openBlock(), createElementBlock("div", {
31887
+ key: item.id,
31888
+ class: normalizeClass(["table-row", {
31889
+ "required-parameter": item.required
31890
+ }])
31891
+ }, [
31892
+ createElementVNode("div", _hoisted_18, [
31893
+ withDirectives(createElementVNode("input", {
31894
+ "onUpdate:modelValue": ($event) => item.name = $event,
31895
+ placeholder: "Key"
31896
+ }, null, 8, _hoisted_19), [
31897
+ [vModelText, item.name]
31898
+ ])
31899
+ ]),
31900
+ createElementVNode("div", _hoisted_20, [
31901
+ withDirectives(createElementVNode("input", {
31902
+ "onUpdate:modelValue": ($event) => item.value = $event,
31903
+ placeholder: "Value"
31904
+ }, null, 8, _hoisted_21), [
31905
+ [vModelText, item.value]
31906
+ ])
31907
+ ]),
31908
+ withDirectives(createElementVNode("div", _hoisted_22, [
31495
31909
  withDirectives(createElementVNode("input", {
31496
31910
  "onUpdate:modelValue": ($event) => item.description = $event,
31497
- placeholder: "value"
31498
- }, null, 8, _hoisted_15), [
31911
+ placeholder: "Description"
31912
+ }, null, 8, _hoisted_23), [
31499
31913
  [vModelText, item.description]
31500
31914
  ])
31501
31915
  ], 512), [
31502
31916
  [vShow, showDescription.value]
31503
31917
  ]),
31504
- createElementVNode("div", _hoisted_16, [
31505
- createElementVNode("label", _hoisted_17, [
31918
+ createElementVNode("div", _hoisted_24, [
31919
+ createElementVNode("label", _hoisted_25, [
31506
31920
  withDirectives(createElementVNode("input", {
31507
31921
  "onUpdate:modelValue": ($event) => item.enabled = $event,
31508
31922
  checked: "",
31509
31923
  type: "checkbox"
31510
- }, null, 8, _hoisted_18), [
31924
+ }, null, 8, _hoisted_26), [
31511
31925
  [vModelCheckbox, item.enabled]
31512
31926
  ]),
31513
- _hoisted_19
31927
+ _hoisted_27
31514
31928
  ]),
31515
31929
  createElementVNode("button", {
31516
31930
  class: "meta-delete",
31517
31931
  type: "button",
31518
31932
  onClick: ($event) => _ctx.$emit("deleteIndex", index)
31519
- }, _hoisted_22, 8, _hoisted_20)
31933
+ }, _hoisted_30, 8, _hoisted_28)
31520
31934
  ])
31521
31935
  ], 2)), [
31522
31936
  [vShow, !_ctx.showMoreFilter || _ctx.showMoreFilter && index < 5 || showMore.value]
31523
31937
  ]);
31524
31938
  }), 128)),
31525
- createElementVNode("div", _hoisted_23, [
31939
+ createElementVNode("div", _hoisted_31, [
31526
31940
  _ctx.addLabel ? (openBlock(), createElementBlock("button", {
31527
31941
  key: 0,
31528
31942
  class: "meta-actions-item",
31529
31943
  type: "button",
31530
31944
  onClick: addHandler
31531
31945
  }, [
31532
- createElementVNode("i", _hoisted_24, [
31946
+ createElementVNode("i", _hoisted_32, [
31533
31947
  createVNode(unref(j), { icon: "Add" })
31534
31948
  ]),
31535
31949
  createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
31536
31950
  ])) : createCommentVNode("", true),
31537
- _ctx.showMoreFilter && _ctx.items.length > 5 && !showMore.value ? (openBlock(), createElementBlock("button", {
31951
+ _ctx.showMoreFilter && _ctx.items && _ctx.items.length > 5 && !showMore.value ? (openBlock(), createElementBlock("button", {
31538
31952
  key: 1,
31539
31953
  class: "meta-actions-item",
31540
31954
  type: "button",
31541
- onClick: _cache[1] || (_cache[1] = ($event) => showMore.value = true)
31955
+ onClick: _cache[2] || (_cache[2] = ($event) => showMore.value = true)
31542
31956
  }, [
31543
31957
  createTextVNode(" Show More "),
31544
- createElementVNode("i", _hoisted_25, [
31958
+ createElementVNode("i", _hoisted_33, [
31545
31959
  createVNode(unref(j), { icon: "ChevronDown" })
31546
31960
  ])
31547
31961
  ])) : createCommentVNode("", true)
@@ -31601,7 +32015,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
31601
32015
  }
31602
32016
  };
31603
32017
  return (_ctx, _cache) => {
31604
- return openBlock(), createBlock(unref(_sfc_main$j), { title: "Body" }, {
32018
+ return openBlock(), createBlock(unref(_sfc_main$r), { title: "Body" }, {
31605
32019
  default: withCtx(() => [
31606
32020
  _ctx.body && _ctx.body.length === 0 && _ctx.formData && _ctx.formData.length === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$d, "No Body")) : _ctx.formData && _ctx.formData.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$h), {
31607
32021
  key: 1,
@@ -31643,9 +32057,11 @@ const _hoisted_2$7 = /* @__PURE__ */ createElementVNode("svg", {
31643
32057
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
31644
32058
  __name: "RequestCookies",
31645
32059
  props: {
31646
- cookies: {}
32060
+ cookies: {},
32061
+ generatedCookies: {}
31647
32062
  },
31648
32063
  setup(__props) {
32064
+ const props = __props;
31649
32065
  const { activeRequest: activeRequest2 } = useRequestStore();
31650
32066
  function handleDeleteIndex(index) {
31651
32067
  var _a2;
@@ -31658,13 +32074,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31658
32074
  }
31659
32075
  (_a2 = activeRequest2.cookies) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
31660
32076
  }
32077
+ const hasCookies = computed(() => {
32078
+ var _a2, _b;
32079
+ return !!(((_a2 = props.cookies) == null ? void 0 : _a2.length) || ((_b = props.generatedCookies) == null ? void 0 : _b.length));
32080
+ });
31661
32081
  return (_ctx, _cache) => {
31662
- return openBlock(), createBlock(unref(_sfc_main$j), {
31663
- defaultOpen: unref(activeRequest2).cookies && unref(activeRequest2).cookies.length > 0,
32082
+ return openBlock(), createBlock(unref(_sfc_main$r), {
32083
+ defaultOpen: hasCookies.value,
31664
32084
  title: "Cookies"
31665
32085
  }, {
31666
32086
  default: withCtx(() => [
31667
- !_ctx.cookies || _ctx.cookies.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
32087
+ !hasCookies.value ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
31668
32088
  createElementVNode("button", {
31669
32089
  class: "scalar-api-client-add",
31670
32090
  type: "button",
@@ -31676,10 +32096,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
31676
32096
  ])) : (openBlock(), createBlock(unref(_sfc_main$h), {
31677
32097
  key: 1,
31678
32098
  addLabel: "Cookie",
32099
+ generatedItems: _ctx.generatedCookies,
31679
32100
  items: _ctx.cookies,
31680
32101
  onAddAnother: addAnotherHandler,
31681
32102
  onDeleteIndex: handleDeleteIndex
31682
- }, null, 8, ["items"]))
32103
+ }, null, 8, ["generatedItems", "items"]))
31683
32104
  ]),
31684
32105
  _: 1
31685
32106
  }, 8, ["defaultOpen"]);
@@ -31710,9 +32131,11 @@ const _hoisted_2$6 = /* @__PURE__ */ createElementVNode("svg", {
31710
32131
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
31711
32132
  __name: "RequestHeaders",
31712
32133
  props: {
31713
- headers: {}
32134
+ headers: {},
32135
+ generatedHeaders: {}
31714
32136
  },
31715
32137
  setup(__props) {
32138
+ const props = __props;
31716
32139
  const { activeRequest: activeRequest2 } = useRequestStore();
31717
32140
  function handleDeleteIndex(index) {
31718
32141
  var _a2;
@@ -31725,13 +32148,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
31725
32148
  }
31726
32149
  (_a2 = activeRequest2.headers) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
31727
32150
  }
32151
+ const hasHeaders = computed(() => {
32152
+ var _a2, _b;
32153
+ return !!(((_a2 = props.headers) == null ? void 0 : _a2.length) || ((_b = props.generatedHeaders) == null ? void 0 : _b.length));
32154
+ });
31728
32155
  return (_ctx, _cache) => {
31729
- return openBlock(), createBlock(unref(_sfc_main$j), {
31730
- defaultOpen: unref(activeRequest2).headers && unref(activeRequest2).headers.length > 0,
32156
+ return openBlock(), createBlock(unref(_sfc_main$r), {
32157
+ defaultOpen: hasHeaders.value,
31731
32158
  title: "Headers"
31732
32159
  }, {
31733
32160
  default: withCtx(() => [
31734
- !_ctx.headers || _ctx.headers.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
32161
+ !hasHeaders.value ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
31735
32162
  createElementVNode("button", {
31736
32163
  class: "scalar-api-client-add",
31737
32164
  type: "button",
@@ -31743,10 +32170,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
31743
32170
  ])) : (openBlock(), createBlock(unref(_sfc_main$h), {
31744
32171
  key: 1,
31745
32172
  addLabel: "Header",
32173
+ generatedItems: _ctx.generatedHeaders,
31746
32174
  items: _ctx.headers,
31747
32175
  onAddAnother: addAnotherHandler,
31748
32176
  onDeleteIndex: handleDeleteIndex
31749
- }, null, 8, ["items"]))
32177
+ }, null, 8, ["generatedItems", "items"]))
31750
32178
  ]),
31751
32179
  _: 1
31752
32180
  }, 8, ["defaultOpen"]);
@@ -31777,9 +32205,11 @@ const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("svg", {
31777
32205
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
31778
32206
  __name: "RequestQuery",
31779
32207
  props: {
31780
- queries: {}
32208
+ queries: {},
32209
+ generatedQueries: {}
31781
32210
  },
31782
32211
  setup(__props) {
32212
+ const props = __props;
31783
32213
  const { activeRequest: activeRequest2 } = useRequestStore();
31784
32214
  function handleDeleteIndex(index) {
31785
32215
  var _a2;
@@ -31792,13 +32222,17 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
31792
32222
  }
31793
32223
  (_a2 = activeRequest2.query) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
31794
32224
  }
32225
+ const hasQueries = computed(() => {
32226
+ var _a2, _b;
32227
+ return !!(((_a2 = props.queries) == null ? void 0 : _a2.length) || ((_b = props.generatedQueries) == null ? void 0 : _b.length));
32228
+ });
31795
32229
  return (_ctx, _cache) => {
31796
- return openBlock(), createBlock(unref(_sfc_main$j), {
31797
- defaultOpen: unref(activeRequest2).query && unref(activeRequest2).query.length > 0,
32230
+ return openBlock(), createBlock(unref(_sfc_main$r), {
32231
+ defaultOpen: hasQueries.value,
31798
32232
  title: "Query Parameters"
31799
32233
  }, {
31800
32234
  default: withCtx(() => [
31801
- !_ctx.queries || _ctx.queries.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
32235
+ !hasQueries.value ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
31802
32236
  createElementVNode("button", {
31803
32237
  class: "scalar-api-client-add",
31804
32238
  type: "button",
@@ -31810,11 +32244,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
31810
32244
  ])) : (openBlock(), createBlock(unref(_sfc_main$h), {
31811
32245
  key: 1,
31812
32246
  addLabel: "Query Parameter",
32247
+ generatedItems: _ctx.generatedQueries,
31813
32248
  items: _ctx.queries,
31814
32249
  showMoreFilter: true,
31815
32250
  onAddAnother: addAnotherHandler,
31816
32251
  onDeleteIndex: handleDeleteIndex
31817
- }, null, 8, ["items"]))
32252
+ }, null, 8, ["generatedItems", "items"]))
31818
32253
  ]),
31819
32254
  _: 1
31820
32255
  }, 8, ["defaultOpen"]);
@@ -31861,7 +32296,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
31861
32296
  (_a2 = activeRequest2.variables) == null ? void 0 : _a2.push({ name: "", value: "", enabled: true });
31862
32297
  }
31863
32298
  return (_ctx, _cache) => {
31864
- return openBlock(), createBlock(unref(_sfc_main$j), {
32299
+ return openBlock(), createBlock(unref(_sfc_main$r), {
31865
32300
  defaultOpen: unref(activeRequest2).variables && unref(activeRequest2).variables.length > 0,
31866
32301
  title: "Variables"
31867
32302
  }, {
@@ -31900,6 +32335,17 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31900
32335
  __name: "Request",
31901
32336
  setup(__props) {
31902
32337
  const { activeRequest: activeRequest2 } = useRequestStore();
32338
+ const { authentication: authentication2 } = useAuthenticationStore();
32339
+ const {
32340
+ openApi: { operation, globalSecurity }
32341
+ } = useOpenApiStore();
32342
+ const authenticationRequest = computed(() => {
32343
+ var _a2;
32344
+ return getRequestFromAuthentication(
32345
+ authentication2,
32346
+ ((_a2 = operation == null ? void 0 : operation.information) == null ? void 0 : _a2.security) ?? globalSecurity
32347
+ );
32348
+ });
31903
32349
  return (_ctx, _cache) => {
31904
32350
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
31905
32351
  createElementVNode("div", _hoisted_2$3, [
@@ -31922,16 +32368,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
31922
32368
  createVNode(_sfc_main$b, {
31923
32369
  variables: unref(activeRequest2).variables
31924
32370
  }, null, 8, ["variables"]),
31925
- createVNode(_sfc_main$i),
32371
+ createVNode(unref(RequestAuthentication)),
31926
32372
  createVNode(_sfc_main$e, {
31927
- cookies: unref(activeRequest2).cookies
31928
- }, null, 8, ["cookies"]),
32373
+ cookies: unref(activeRequest2).cookies,
32374
+ generatedCookies: authenticationRequest.value.cookies
32375
+ }, null, 8, ["cookies", "generatedCookies"]),
31929
32376
  createVNode(_sfc_main$d, {
32377
+ generatedHeaders: authenticationRequest.value.headers,
31930
32378
  headers: unref(activeRequest2).headers
31931
- }, null, 8, ["headers"]),
32379
+ }, null, 8, ["generatedHeaders", "headers"]),
31932
32380
  createVNode(_sfc_main$c, {
32381
+ generatedQueries: authenticationRequest.value.queryString,
31933
32382
  queries: unref(activeRequest2).query
31934
- }, null, 8, ["queries"]),
32383
+ }, null, 8, ["generatedQueries", "queries"]),
31935
32384
  createVNode(_sfc_main$f, {
31936
32385
  body: unref(activeRequest2).body,
31937
32386
  formData: unref(activeRequest2).formData,
@@ -31986,7 +32435,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
31986
32435
  return null;
31987
32436
  });
31988
32437
  return (_ctx, _cache) => {
31989
- return openBlock(), createBlock(unref(_sfc_main$j), { title: "Body" }, {
32438
+ return openBlock(), createBlock(unref(_sfc_main$r), { title: "Body" }, {
31990
32439
  default: withCtx(() => [
31991
32440
  _ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31992
32441
  codeMirrorLanguage.value ? (openBlock(), createBlock(unref(He), {
@@ -32108,7 +32557,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
32108
32557
  }).join("-");
32109
32558
  };
32110
32559
  return (_ctx, _cache) => {
32111
- return openBlock(), createBlock(unref(_sfc_main$j), { title: "Headers" }, {
32560
+ return openBlock(), createBlock(unref(_sfc_main$r), { title: "Headers" }, {
32112
32561
  default: withCtx(() => [
32113
32562
  _ctx.headers.length > 0 ? (openBlock(), createBlock(unref(SimpleTable), { key: 0 }, {
32114
32563
  default: withCtx(() => [
@@ -32288,7 +32737,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
32288
32737
  headers: responseHeaders.value
32289
32738
  }, null, 8, ["active", "data", "headers"]),
32290
32739
  createVNode(_sfc_main$3, { headers: responseHeaders.value }, null, 8, ["headers"]),
32291
- createVNode(unref(_sfc_main$j), { title: "Cookies" }, {
32740
+ createVNode(unref(_sfc_main$r), { title: "Cookies" }, {
32292
32741
  default: withCtx(() => [
32293
32742
  withDirectives(createVNode(unref(_sfc_main$g), { items: responseCookies.value }, null, 8, ["items"]), [
32294
32743
  [vShow, responseCookies.value.length > 0]
@@ -32336,8 +32785,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32336
32785
  );
32337
32786
  return (_ctx, _cache) => {
32338
32787
  return openBlock(), createElementBlock(Fragment, null, [
32339
- createVNode(unref(_sfc_main$r), { id: _ctx.theme }, null, 8, ["id"]),
32340
- createVNode(_sfc_main$q, {
32788
+ createVNode(unref(_sfc_main$A), { id: _ctx.theme }, null, 8, ["id"]),
32789
+ createVNode(_sfc_main$y, {
32341
32790
  class: "scalar-api-client",
32342
32791
  method: unref(activeRequest2).type ?? "get",
32343
32792
  property: "--default-scalar-api-client-color",
@@ -32413,12 +32862,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32413
32862
  });
32414
32863
  export {
32415
32864
  _sfc_main as ApiClient,
32416
- _sfc_main$q as HttpMethod,
32865
+ _sfc_main$y as HttpMethod,
32866
+ RequestAuthentication,
32867
+ SecurityScheme,
32868
+ SecuritySchemeSelector,
32417
32869
  concatenateUrlAndPath,
32418
- createEmptyAuthState,
32870
+ createEmptyAuthenticationState,
32871
+ createEmptyOpenApiState,
32419
32872
  createPlaceholderRequest,
32420
32873
  encodeStringAsBase64,
32421
32874
  findVariables,
32875
+ getBase64Token,
32876
+ getRequestFromAuthentication,
32877
+ getSecretCredentialsFromAuthentication,
32422
32878
  httpHeaders,
32423
32879
  httpStatusCodes,
32424
32880
  humanDiff,
@@ -32433,6 +32889,8 @@ export {
32433
32889
  requestMethodColors,
32434
32890
  sendRequest,
32435
32891
  useApiClientStore,
32892
+ useAuthenticationStore,
32893
+ useOpenApiStore,
32436
32894
  useRequestStore,
32437
32895
  validRequestMethods
32438
32896
  };