@scalar/api-client 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/Add-MwmVL5-v-3DrL2GXw.js +22 -0
- package/dist/CheckMark-t0gl4N9U-BE06BAQA.js +16 -0
- package/dist/ChevronDown-BfsntkAH-BOGiF9uG.js +24 -0
- package/dist/ChevronLeft-gsLd5xOQ-Z0Ct_Vv2.js +24 -0
- package/dist/ChevronRight-CI_7n_av-BCFTpQ51.js +24 -0
- package/dist/ChevronUp-CjHRmG59-B93Q9llD.js +24 -0
- package/dist/Clipboard-CU_KxGEv-DWrQtWVi.js +16 -0
- package/dist/Close-DFM1qMQH-DMPtwWpT.js +19 -0
- package/dist/DarkMode-CBsV8Q_I-DHPfucpm.js +18 -0
- package/dist/Ellipses-Bo_X36Hx-CsJmKvlE.js +16 -0
- package/dist/ExternalLink-D5zCsWas-MT2ACYLZ.js +28 -0
- package/dist/GitHub-NdE6Zs9k-BAGzgXH_.js +16 -0
- package/dist/LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js +20 -0
- package/dist/LightMode-Btz6vyT_-JpKLPzdT.js +18 -0
- package/dist/Logo-mtzeKD8M-LQcor9RM.js +19 -0
- package/dist/LogoAPI-CaU5E6FK-Bzb5EbnZ.js +19 -0
- package/dist/LogoClient-DdC-t_7P-B_rZ91PC.js +18 -0
- package/dist/LogoMarket-DwlApcab-_INRDSLs.js +16 -0
- package/dist/LogoSwagger-CH60H5qW-DFEpFXIU.js +16 -0
- package/dist/Menu-DFi9Laso-BhIZrQxp.js +20 -0
- package/dist/PaperAirplane-BC-4mGEB-BrV5fX8s.js +21 -0
- package/dist/Search-DqtlswRG-D-hprEk0.js +19 -0
- package/dist/arrow-chevron-down-C8nXK33Q-cFi1tcoL.js +22 -0
- package/dist/arrow-chevron-left-BXUhHSEc-GDsvyOvS.js +22 -0
- package/dist/arrow-chevron-right-CSqjaNKG-DLqk_P-k.js +22 -0
- package/dist/arrow-chevron-up-Dr-W1IfM-CJpftEXD.js +22 -0
- package/dist/arrow-down-rfW-r_qd-DCnCiMpp.js +22 -0
- package/dist/arrow-left-DDkHt-xN-CFh-lXGZ.js +22 -0
- package/dist/arrow-right-17dZkGZR-C5So-BEm.js +22 -0
- package/dist/arrow-up-CexG2Ble-BlrsZtgs.js +22 -0
- package/dist/brand-software-development-github-ZQnPxpDg-9BAblfAs.js +16 -0
- package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -1
- package/dist/helpers/normalizeUrl.d.ts.map +1 -1
- package/dist/index.css +39 -46
- package/dist/index.js +310 -367
- package/dist/interface-add-Bthe4y9O-EDM5uqD-.js +22 -0
- package/dist/interface-close-WpJOu-2h-W6lKje7S.js +22 -0
- package/dist/programming-framework-angular-DD4Vjgbk-Bzc9D9am.js +16 -0
- package/dist/programming-framework-astro-CLfrRt19-CfPlyy6T.js +16 -0
- package/dist/programming-framework-laravel-kAy2wVLy-Cty_4oXq.js +21 -0
- package/dist/programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js +16 -0
- package/dist/programming-framework-react-PDgmtZuN-DdUogL85.js +16 -0
- package/dist/programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js +18 -0
- package/dist/programming-language-c-hPGu2Zvg-QG1pSdJG.js +16 -0
- package/dist/programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js +15 -0
- package/dist/programming-language-csharp-lqX1oWgb-B1_8fYG9.js +15 -0
- package/dist/programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js +16 -0
- package/dist/programming-language-go-DoJxWwT6-BUgfSlg1.js +15 -0
- package/dist/programming-language-html5-DlqJK4EL-Bl9dTA-D.js +16 -0
- package/dist/programming-language-http-wMYwFS1I-BWQXI44M.js +20 -0
- package/dist/programming-language-java-BCxG2T_w-CWqBHVz_.js +26 -0
- package/dist/programming-language-javascript-VxLvi1QG-DFjYF_MP.js +16 -0
- package/dist/programming-language-json-vEX_g7Zi-BMZrSR1t.js +22 -0
- package/dist/programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js +15 -0
- package/dist/programming-language-node-Xsgx38lm-DZhaOPIJ.js +18 -0
- package/dist/programming-language-objc-BQXSOBsX-BR-B91By.js +16 -0
- package/dist/programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js +15 -0
- package/dist/programming-language-php-GY38f8r4-DQ_8EMFH.js +16 -0
- package/dist/programming-language-powershell-C9DkSp36-S3xix_dw.js +19 -0
- package/dist/programming-language-python-Ct-_kNjo-BCrlyfv0.js +16 -0
- package/dist/programming-language-r-BGoKwua9-BWGOKD9M.js +19 -0
- package/dist/programming-language-ruby-DhdM4d7g-Dd3La6Kn.js +16 -0
- package/dist/programming-language-scala-BVg0dToJ-Bz_n-CNw.js +16 -0
- package/dist/programming-language-shell-BsTa1xI7-XJbYjh7O.js +16 -0
- package/dist/programming-language-swift-Dn72xPjg-BUvu5_SV.js +16 -0
- package/dist/programming-language-typescript-CdF-HuRi-CaDO02MW.js +16 -0
- package/dist/programming-script-code-DQN1veb2-BPFALXVk.js +22 -0
- package/dist/programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js +18 -0
- package/dist/programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js +16 -0
- package/package.json +6 -6
- package/dist/index-CpJxdgyL.js +0 -4466
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ 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,
|
|
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
9
|
import { Dialog, DialogPanel, DialogTitle, DialogDescription, Disclosure, DisclosureButton, DisclosurePanel, TabGroup, TabList, Tab, TabPanels, TabPanel } from "@headlessui/vue";
|
|
10
10
|
import { useMagicKeys, whenever, useMediaQuery } from "@vueuse/core";
|
|
11
11
|
import axios from "axios";
|
|
@@ -13,15 +13,15 @@ import { nanoid } from "nanoid";
|
|
|
13
13
|
import prettyBytes from "pretty-bytes";
|
|
14
14
|
import prettyMilliseconds from "pretty-ms";
|
|
15
15
|
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/* 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.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\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.
|
|
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.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/* 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.download-cta,\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 --sidebar-background-1: var(--default-theme-background-1);\n --sidebar-
|
|
19
|
-
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(
|
|
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-
|
|
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.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/* 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.download-cta
|
|
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";
|
|
19
|
+
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";
|
|
22
22
|
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
|
-
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 --sidebar-background-1: var(--default-theme-background-1);\n --sidebar-color-1: var(--default-theme-color-1);\n --sidebar-color-2: var(--default-theme-color-2);\n --sidebar-border-color: var(--default-theme-border-color);\n\n
|
|
24
|
-
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.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.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";
|
|
23
|
+
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
|
+
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
25
|
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
26
|
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
27
27
|
__name: "ThemeStyles",
|
|
@@ -4638,7 +4638,7 @@ var shift = {
|
|
|
4638
4638
|
222: '"'
|
|
4639
4639
|
};
|
|
4640
4640
|
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
|
|
4641
|
-
var ie$
|
|
4641
|
+
var ie$1 = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
4642
4642
|
for (var i = 0; i < 10; i++)
|
|
4643
4643
|
base[48 + i] = base[96 + i] = String(i);
|
|
4644
4644
|
for (var i = 1; i <= 24; i++)
|
|
@@ -4651,7 +4651,7 @@ for (var code in base)
|
|
|
4651
4651
|
if (!shift.hasOwnProperty(code))
|
|
4652
4652
|
shift[code] = base[code];
|
|
4653
4653
|
function keyName(event) {
|
|
4654
|
-
var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey || ie$
|
|
4654
|
+
var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey || ie$1 && event.shiftKey && event.key && event.key.length == 1 || event.key == "Unidentified";
|
|
4655
4655
|
var name2 = !ignoreKey && event.key || (event.shiftKey ? shift : base)[event.keyCode] || event.key || "Unidentified";
|
|
4656
4656
|
if (name2 == "Esc")
|
|
4657
4657
|
name2 = "Escape";
|
|
@@ -4758,7 +4758,7 @@ function getScale(elt, rect) {
|
|
|
4758
4758
|
scaleY = 1;
|
|
4759
4759
|
return { scaleX, scaleY };
|
|
4760
4760
|
}
|
|
4761
|
-
function scrollRectIntoView(dom, rect, side, x,
|
|
4761
|
+
function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
|
4762
4762
|
let doc2 = dom.ownerDocument, win = doc2.defaultView || window;
|
|
4763
4763
|
for (let cur2 = dom, stop = false; cur2 && !stop; ) {
|
|
4764
4764
|
if (cur2.nodeType == 1) {
|
|
@@ -4783,7 +4783,7 @@ function scrollRectIntoView(dom, rect, side, x, y2, xMargin, yMargin, ltr) {
|
|
|
4783
4783
|
};
|
|
4784
4784
|
}
|
|
4785
4785
|
let moveX = 0, moveY = 0;
|
|
4786
|
-
if (
|
|
4786
|
+
if (y == "nearest") {
|
|
4787
4787
|
if (rect.top < bounding.top) {
|
|
4788
4788
|
moveY = -(bounding.top - rect.top + yMargin);
|
|
4789
4789
|
if (side > 0 && rect.bottom > bounding.bottom + moveY)
|
|
@@ -4795,7 +4795,7 @@ function scrollRectIntoView(dom, rect, side, x, y2, xMargin, yMargin, ltr) {
|
|
|
4795
4795
|
}
|
|
4796
4796
|
} else {
|
|
4797
4797
|
let rectHeight = rect.bottom - rect.top, boundingHeight = bounding.bottom - bounding.top;
|
|
4798
|
-
let targetTop =
|
|
4798
|
+
let targetTop = y == "center" && rectHeight <= boundingHeight ? rect.top + rectHeight / 2 - boundingHeight / 2 : y == "start" || y == "center" && side < 0 ? rect.top - yMargin : rect.bottom - boundingHeight + yMargin;
|
|
4799
4799
|
moveY = targetTop - bounding.top;
|
|
4800
4800
|
}
|
|
4801
4801
|
if (x == "nearest") {
|
|
@@ -4836,7 +4836,7 @@ function scrollRectIntoView(dom, rect, side, x, y2, xMargin, yMargin, ltr) {
|
|
|
4836
4836
|
if (movedX && Math.abs(movedX - moveX) < 1)
|
|
4837
4837
|
x = "nearest";
|
|
4838
4838
|
if (movedY && Math.abs(movedY - moveY) < 1)
|
|
4839
|
-
|
|
4839
|
+
y = "nearest";
|
|
4840
4840
|
}
|
|
4841
4841
|
}
|
|
4842
4842
|
if (top2)
|
|
@@ -5309,17 +5309,17 @@ let doc = typeof document != "undefined" ? document : { documentElement: { style
|
|
|
5309
5309
|
const ie_edge = /* @__PURE__ */ /Edge\/(\d+)/.exec(nav.userAgent);
|
|
5310
5310
|
const ie_upto10 = /* @__PURE__ */ /MSIE \d/.test(nav.userAgent);
|
|
5311
5311
|
const ie_11up = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nav.userAgent);
|
|
5312
|
-
const ie
|
|
5313
|
-
const gecko = !ie
|
|
5314
|
-
const chrome = !ie
|
|
5312
|
+
const ie = !!(ie_upto10 || ie_11up || ie_edge);
|
|
5313
|
+
const gecko = !ie && /* @__PURE__ */ /gecko\/(\d+)/i.test(nav.userAgent);
|
|
5314
|
+
const chrome = !ie && /* @__PURE__ */ /Chrome\/(\d+)/.exec(nav.userAgent);
|
|
5315
5315
|
const webkit = "webkitFontSmoothing" in doc.documentElement.style;
|
|
5316
|
-
const safari = !ie
|
|
5316
|
+
const safari = !ie && /* @__PURE__ */ /Apple Computer/.test(nav.vendor);
|
|
5317
5317
|
const ios = safari && (/* @__PURE__ */ /Mobile\/\w+/.test(nav.userAgent) || nav.maxTouchPoints > 2);
|
|
5318
5318
|
var browser = {
|
|
5319
5319
|
mac: ios || /* @__PURE__ */ /Mac/.test(nav.platform),
|
|
5320
5320
|
windows: /* @__PURE__ */ /Win/.test(nav.platform),
|
|
5321
5321
|
linux: /* @__PURE__ */ /Linux|X11/.test(nav.platform),
|
|
5322
|
-
ie
|
|
5322
|
+
ie,
|
|
5323
5323
|
ie_version: ie_upto10 ? doc.documentMode || 6 : ie_11up ? +ie_11up[1] : ie_edge ? +ie_edge[1] : 0,
|
|
5324
5324
|
gecko,
|
|
5325
5325
|
gecko_version: gecko ? +(/* @__PURE__ */ /Firefox\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
|
|
@@ -6786,9 +6786,9 @@ const nativeSelectionHidden = /* @__PURE__ */ Facet.define({
|
|
|
6786
6786
|
combine: (values2) => values2.some((x) => x)
|
|
6787
6787
|
});
|
|
6788
6788
|
class ScrollTarget {
|
|
6789
|
-
constructor(range,
|
|
6789
|
+
constructor(range, y = "nearest", x = "nearest", yMargin = 5, xMargin = 5, isSnapshot = false) {
|
|
6790
6790
|
this.range = range;
|
|
6791
|
-
this.y =
|
|
6791
|
+
this.y = y;
|
|
6792
6792
|
this.x = x;
|
|
6793
6793
|
this.yMargin = yMargin;
|
|
6794
6794
|
this.xMargin = xMargin;
|
|
@@ -7709,8 +7709,8 @@ function groupAt(state2, pos, bias = 1) {
|
|
|
7709
7709
|
function getdx(x, rect) {
|
|
7710
7710
|
return rect.left > x ? rect.left - x : Math.max(0, x - rect.right);
|
|
7711
7711
|
}
|
|
7712
|
-
function getdy(
|
|
7713
|
-
return rect.top >
|
|
7712
|
+
function getdy(y, rect) {
|
|
7713
|
+
return rect.top > y ? rect.top - y : Math.max(0, y - rect.bottom);
|
|
7714
7714
|
}
|
|
7715
7715
|
function yOverlap(a, b) {
|
|
7716
7716
|
return a.top < b.bottom - 1 && a.bottom > b.top + 1;
|
|
@@ -7721,7 +7721,7 @@ function upTop(rect, top2) {
|
|
|
7721
7721
|
function upBot(rect, bottom) {
|
|
7722
7722
|
return bottom > rect.bottom ? { top: rect.top, left: rect.left, right: rect.right, bottom } : rect;
|
|
7723
7723
|
}
|
|
7724
|
-
function domPosAtCoords(parent, x,
|
|
7724
|
+
function domPosAtCoords(parent, x, y) {
|
|
7725
7725
|
let closest, closestRect, closestX, closestY, closestOverlap = false;
|
|
7726
7726
|
let above, below, aboveRect, belowRect;
|
|
7727
7727
|
for (let child = parent.firstChild; child; child = child.nextSibling) {
|
|
@@ -7730,22 +7730,22 @@ function domPosAtCoords(parent, x, y2) {
|
|
|
7730
7730
|
let rect = rects[i];
|
|
7731
7731
|
if (closestRect && yOverlap(closestRect, rect))
|
|
7732
7732
|
rect = upTop(upBot(rect, closestRect.bottom), closestRect.top);
|
|
7733
|
-
let dx = getdx(x, rect), dy = getdy(
|
|
7733
|
+
let dx = getdx(x, rect), dy = getdy(y, rect);
|
|
7734
7734
|
if (dx == 0 && dy == 0)
|
|
7735
|
-
return child.nodeType == 3 ? domPosInText(child, x,
|
|
7735
|
+
return child.nodeType == 3 ? domPosInText(child, x, y) : domPosAtCoords(child, x, y);
|
|
7736
7736
|
if (!closest || closestY > dy || closestY == dy && closestX > dx) {
|
|
7737
7737
|
closest = child;
|
|
7738
7738
|
closestRect = rect;
|
|
7739
7739
|
closestX = dx;
|
|
7740
7740
|
closestY = dy;
|
|
7741
|
-
let side = dy ?
|
|
7741
|
+
let side = dy ? y < rect.top ? -1 : 1 : dx ? x < rect.left ? -1 : 1 : 0;
|
|
7742
7742
|
closestOverlap = !side || (side > 0 ? i < rects.length - 1 : i > 0);
|
|
7743
7743
|
}
|
|
7744
7744
|
if (dx == 0) {
|
|
7745
|
-
if (
|
|
7745
|
+
if (y > rect.bottom && (!aboveRect || aboveRect.bottom < rect.bottom)) {
|
|
7746
7746
|
above = child;
|
|
7747
7747
|
aboveRect = rect;
|
|
7748
|
-
} else if (
|
|
7748
|
+
} else if (y < rect.top && (!belowRect || belowRect.top > rect.top)) {
|
|
7749
7749
|
below = child;
|
|
7750
7750
|
belowRect = rect;
|
|
7751
7751
|
}
|
|
@@ -7756,10 +7756,10 @@ function domPosAtCoords(parent, x, y2) {
|
|
|
7756
7756
|
}
|
|
7757
7757
|
}
|
|
7758
7758
|
}
|
|
7759
|
-
if (aboveRect && aboveRect.bottom >=
|
|
7759
|
+
if (aboveRect && aboveRect.bottom >= y) {
|
|
7760
7760
|
closest = above;
|
|
7761
7761
|
closestRect = aboveRect;
|
|
7762
|
-
} else if (belowRect && belowRect.top <=
|
|
7762
|
+
} else if (belowRect && belowRect.top <= y) {
|
|
7763
7763
|
closest = below;
|
|
7764
7764
|
closestRect = belowRect;
|
|
7765
7765
|
}
|
|
@@ -7767,13 +7767,13 @@ function domPosAtCoords(parent, x, y2) {
|
|
|
7767
7767
|
return { node: parent, offset: 0 };
|
|
7768
7768
|
let clipX = Math.max(closestRect.left, Math.min(closestRect.right, x));
|
|
7769
7769
|
if (closest.nodeType == 3)
|
|
7770
|
-
return domPosInText(closest, clipX,
|
|
7770
|
+
return domPosInText(closest, clipX, y);
|
|
7771
7771
|
if (closestOverlap && closest.contentEditable != "false")
|
|
7772
|
-
return domPosAtCoords(closest, clipX,
|
|
7772
|
+
return domPosAtCoords(closest, clipX, y);
|
|
7773
7773
|
let offset = Array.prototype.indexOf.call(parent.childNodes, closest) + (x >= (closestRect.left + closestRect.right) / 2 ? 1 : 0);
|
|
7774
7774
|
return { node: parent, offset };
|
|
7775
7775
|
}
|
|
7776
|
-
function domPosInText(node, x,
|
|
7776
|
+
function domPosInText(node, x, y) {
|
|
7777
7777
|
let len = node.nodeValue.length;
|
|
7778
7778
|
let closestOffset = -1, closestDY = 1e9, generalSide = 0;
|
|
7779
7779
|
for (let i = 0; i < len; i++) {
|
|
@@ -7784,7 +7784,7 @@ function domPosInText(node, x, y2) {
|
|
|
7784
7784
|
continue;
|
|
7785
7785
|
if (!generalSide)
|
|
7786
7786
|
generalSide = x - rect.left;
|
|
7787
|
-
let dy = (rect.top >
|
|
7787
|
+
let dy = (rect.top > y ? rect.top - y : y - rect.bottom) - 1;
|
|
7788
7788
|
if (rect.left - 1 <= x && rect.right + 1 >= x && dy < closestDY) {
|
|
7789
7789
|
let right = x >= (rect.left + rect.right) / 2, after = right;
|
|
7790
7790
|
if (browser.chrome || browser.gecko) {
|
|
@@ -7805,7 +7805,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
7805
7805
|
var _a2, _b;
|
|
7806
7806
|
let content2 = view.contentDOM.getBoundingClientRect(), docTop = content2.top + view.viewState.paddingTop;
|
|
7807
7807
|
let block, { docHeight } = view.viewState;
|
|
7808
|
-
let { x, y
|
|
7808
|
+
let { x, y } = coords, yOffset = y - docTop;
|
|
7809
7809
|
if (yOffset < 0)
|
|
7810
7810
|
return 0;
|
|
7811
7811
|
if (yOffset > docHeight)
|
|
@@ -7824,31 +7824,31 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
7824
7824
|
bias = -bias;
|
|
7825
7825
|
}
|
|
7826
7826
|
}
|
|
7827
|
-
|
|
7827
|
+
y = docTop + yOffset;
|
|
7828
7828
|
let lineStart = block.from;
|
|
7829
7829
|
if (lineStart < view.viewport.from)
|
|
7830
|
-
return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content2, block, x,
|
|
7830
|
+
return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content2, block, x, y);
|
|
7831
7831
|
if (lineStart > view.viewport.to)
|
|
7832
|
-
return view.viewport.to == view.state.doc.length ? view.state.doc.length : precise ? null : posAtCoordsImprecise(view, content2, block, x,
|
|
7832
|
+
return view.viewport.to == view.state.doc.length ? view.state.doc.length : precise ? null : posAtCoordsImprecise(view, content2, block, x, y);
|
|
7833
7833
|
let doc2 = view.dom.ownerDocument;
|
|
7834
7834
|
let root = view.root.elementFromPoint ? view.root : doc2;
|
|
7835
|
-
let element = root.elementFromPoint(x,
|
|
7835
|
+
let element = root.elementFromPoint(x, y);
|
|
7836
7836
|
if (element && !view.contentDOM.contains(element))
|
|
7837
7837
|
element = null;
|
|
7838
7838
|
if (!element) {
|
|
7839
7839
|
x = Math.max(content2.left + 1, Math.min(content2.right - 1, x));
|
|
7840
|
-
element = root.elementFromPoint(x,
|
|
7840
|
+
element = root.elementFromPoint(x, y);
|
|
7841
7841
|
if (element && !view.contentDOM.contains(element))
|
|
7842
7842
|
element = null;
|
|
7843
7843
|
}
|
|
7844
7844
|
let node, offset = -1;
|
|
7845
7845
|
if (element && ((_a2 = view.docView.nearest(element)) === null || _a2 === void 0 ? void 0 : _a2.isEditable) != false) {
|
|
7846
7846
|
if (doc2.caretPositionFromPoint) {
|
|
7847
|
-
let pos = doc2.caretPositionFromPoint(x,
|
|
7847
|
+
let pos = doc2.caretPositionFromPoint(x, y);
|
|
7848
7848
|
if (pos)
|
|
7849
7849
|
({ offsetNode: node, offset } = pos);
|
|
7850
7850
|
} else if (doc2.caretRangeFromPoint) {
|
|
7851
|
-
let range = doc2.caretRangeFromPoint(x,
|
|
7851
|
+
let range = doc2.caretRangeFromPoint(x, y);
|
|
7852
7852
|
if (range) {
|
|
7853
7853
|
({ startContainer: node, startOffset: offset } = range);
|
|
7854
7854
|
if (!view.contentDOM.contains(node) || browser.safari && isSuspiciousSafariCaretResult(node, offset, x) || browser.chrome && isSuspiciousChromeCaretResult(node, offset, x))
|
|
@@ -7860,7 +7860,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
7860
7860
|
let line = LineView.find(view.docView, lineStart);
|
|
7861
7861
|
if (!line)
|
|
7862
7862
|
return yOffset > block.top + block.height / 2 ? block.to : block.from;
|
|
7863
|
-
({ node, offset } = domPosAtCoords(line.dom, x,
|
|
7863
|
+
({ node, offset } = domPosAtCoords(line.dom, x, y));
|
|
7864
7864
|
}
|
|
7865
7865
|
let nearest = view.docView.nearest(node);
|
|
7866
7866
|
if (!nearest)
|
|
@@ -7872,11 +7872,11 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
7872
7872
|
return nearest.localPosFromDOM(node, offset) + nearest.posAtStart;
|
|
7873
7873
|
}
|
|
7874
7874
|
}
|
|
7875
|
-
function posAtCoordsImprecise(view, contentRect, block, x,
|
|
7875
|
+
function posAtCoordsImprecise(view, contentRect, block, x, y) {
|
|
7876
7876
|
let into = Math.round((x - contentRect.left) * view.defaultCharacterWidth);
|
|
7877
7877
|
if (view.lineWrapping && block.height > view.defaultLineHeight * 1.5) {
|
|
7878
7878
|
let textHeight = view.viewState.heightOracle.textHeight;
|
|
7879
|
-
let line = Math.floor((
|
|
7879
|
+
let line = Math.floor((y - block.top - (view.defaultLineHeight - textHeight) * 0.5) / textHeight);
|
|
7880
7880
|
into += line * view.viewState.heightOracle.lineLength;
|
|
7881
7881
|
}
|
|
7882
7882
|
let content2 = view.state.sliceDoc(block.from, block.to);
|
|
@@ -8441,9 +8441,9 @@ function rangeForClick(view, pos, bias, type) {
|
|
|
8441
8441
|
return EditorSelection.range(from, to);
|
|
8442
8442
|
}
|
|
8443
8443
|
}
|
|
8444
|
-
let insideY = (
|
|
8445
|
-
let inside = (x,
|
|
8446
|
-
function findPositionSide(view, pos, x,
|
|
8444
|
+
let insideY = (y, rect) => y >= rect.top && y <= rect.bottom;
|
|
8445
|
+
let inside = (x, y, rect) => insideY(y, rect) && x >= rect.left && x <= rect.right;
|
|
8446
|
+
function findPositionSide(view, pos, x, y) {
|
|
8447
8447
|
let line = LineView.find(view.docView, pos);
|
|
8448
8448
|
if (!line)
|
|
8449
8449
|
return 1;
|
|
@@ -8453,12 +8453,12 @@ function findPositionSide(view, pos, x, y2) {
|
|
|
8453
8453
|
if (off == line.length)
|
|
8454
8454
|
return -1;
|
|
8455
8455
|
let before = line.coordsAt(off, -1);
|
|
8456
|
-
if (before && inside(x,
|
|
8456
|
+
if (before && inside(x, y, before))
|
|
8457
8457
|
return -1;
|
|
8458
8458
|
let after = line.coordsAt(off, 1);
|
|
8459
|
-
if (after && inside(x,
|
|
8459
|
+
if (after && inside(x, y, after))
|
|
8460
8460
|
return 1;
|
|
8461
|
-
return before && insideY(
|
|
8461
|
+
return before && insideY(y, before) ? -1 : 1;
|
|
8462
8462
|
}
|
|
8463
8463
|
function queryPos(view, event) {
|
|
8464
8464
|
let pos = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);
|
|
@@ -8777,12 +8777,12 @@ class HeightOracle {
|
|
|
8777
8777
|
mustRefreshForHeights(lineHeights) {
|
|
8778
8778
|
let newHeight = false;
|
|
8779
8779
|
for (let i = 0; i < lineHeights.length; i++) {
|
|
8780
|
-
let
|
|
8781
|
-
if (
|
|
8780
|
+
let h = lineHeights[i];
|
|
8781
|
+
if (h < 0) {
|
|
8782
8782
|
i++;
|
|
8783
|
-
} else if (!this.heightSamples[Math.floor(
|
|
8783
|
+
} else if (!this.heightSamples[Math.floor(h * 10)]) {
|
|
8784
8784
|
newHeight = true;
|
|
8785
|
-
this.heightSamples[Math.floor(
|
|
8785
|
+
this.heightSamples[Math.floor(h * 10)] = true;
|
|
8786
8786
|
}
|
|
8787
8787
|
}
|
|
8788
8788
|
return newHeight;
|
|
@@ -8798,11 +8798,11 @@ class HeightOracle {
|
|
|
8798
8798
|
if (changed) {
|
|
8799
8799
|
this.heightSamples = {};
|
|
8800
8800
|
for (let i = 0; i < knownHeights.length; i++) {
|
|
8801
|
-
let
|
|
8802
|
-
if (
|
|
8801
|
+
let h = knownHeights[i];
|
|
8802
|
+
if (h < 0)
|
|
8803
8803
|
i++;
|
|
8804
8804
|
else
|
|
8805
|
-
this.heightSamples[Math.floor(
|
|
8805
|
+
this.heightSamples[Math.floor(h * 10)] = true;
|
|
8806
8806
|
}
|
|
8807
8807
|
}
|
|
8808
8808
|
return changed;
|
|
@@ -10454,7 +10454,7 @@ function applyDOMChange(view, domChange) {
|
|
|
10454
10454
|
view.inputState.composing++;
|
|
10455
10455
|
let defaultTr;
|
|
10456
10456
|
let defaultInsert = () => defaultTr || (defaultTr = applyDefaultInsert(view, change, newSel));
|
|
10457
|
-
if (!view.state.facet(inputHandler$1).some((
|
|
10457
|
+
if (!view.state.facet(inputHandler$1).some((h) => h(view, change.from, change.to, text, defaultInsert)))
|
|
10458
10458
|
view.dispatch(defaultInsert());
|
|
10459
10459
|
return true;
|
|
10460
10460
|
} else if (newSel && !newSel.main.eq(sel)) {
|
|
@@ -12947,16 +12947,16 @@ class SingleGutterView {
|
|
|
12947
12947
|
this.dom.className = "cm-gutter" + (this.config.class ? " " + this.config.class : "");
|
|
12948
12948
|
for (let prop in config2.domEventHandlers) {
|
|
12949
12949
|
this.dom.addEventListener(prop, (event) => {
|
|
12950
|
-
let target = event.target,
|
|
12950
|
+
let target = event.target, y;
|
|
12951
12951
|
if (target != this.dom && this.dom.contains(target)) {
|
|
12952
12952
|
while (target.parentNode != this.dom)
|
|
12953
12953
|
target = target.parentNode;
|
|
12954
12954
|
let rect = target.getBoundingClientRect();
|
|
12955
|
-
|
|
12955
|
+
y = (rect.top + rect.bottom) / 2;
|
|
12956
12956
|
} else {
|
|
12957
|
-
|
|
12957
|
+
y = event.clientY;
|
|
12958
12958
|
}
|
|
12959
|
-
let line = view.lineBlockAtHeight(
|
|
12959
|
+
let line = view.lineBlockAtHeight(y - view.documentTop);
|
|
12960
12960
|
if (config2.domEventHandlers[prop](view, line, event))
|
|
12961
12961
|
event.preventDefault();
|
|
12962
12962
|
});
|
|
@@ -15359,7 +15359,7 @@ class HighlightBuilder {
|
|
|
15359
15359
|
if (start >= to || end <= from)
|
|
15360
15360
|
return;
|
|
15361
15361
|
if (type.isTop)
|
|
15362
|
-
highlighters = this.highlighters.filter((
|
|
15362
|
+
highlighters = this.highlighters.filter((h) => !h.scope || h.scope(type));
|
|
15363
15363
|
let cls = inheritedClass;
|
|
15364
15364
|
let rule = getStyleTags(cursor) || Rule.empty;
|
|
15365
15365
|
let tagCls = highlightTags(highlighters, rule.tags);
|
|
@@ -15376,7 +15376,7 @@ class HighlightBuilder {
|
|
|
15376
15376
|
let mounted = cursor.tree && cursor.tree.prop(NodeProp.mounted);
|
|
15377
15377
|
if (mounted && mounted.overlay) {
|
|
15378
15378
|
let inner = cursor.node.enter(mounted.overlay[0].from + start, 1);
|
|
15379
|
-
let innerHighlighters = this.highlighters.filter((
|
|
15379
|
+
let innerHighlighters = this.highlighters.filter((h) => !h.scope || h.scope(mounted.tree.type));
|
|
15380
15380
|
let hasChild2 = cursor.firstChild();
|
|
15381
15381
|
for (let i = 0, pos = start; ; i++) {
|
|
15382
15382
|
let next = i < mounted.overlay.length ? mounted.overlay[i] : null;
|
|
@@ -18734,6 +18734,49 @@ const completionKeymap = [
|
|
|
18734
18734
|
{ key: "Enter", run: acceptCompletion }
|
|
18735
18735
|
];
|
|
18736
18736
|
const completionKeymapExt = /* @__PURE__ */ Prec.highest(/* @__PURE__ */ keymap.computeN([completionConfig], (state2) => state2.facet(completionConfig).defaultKeymap ? [completionKeymap] : []));
|
|
18737
|
+
function changeBySelectedLine(state2, f) {
|
|
18738
|
+
let atLine = -1;
|
|
18739
|
+
return state2.changeByRange((range) => {
|
|
18740
|
+
let changes = [];
|
|
18741
|
+
for (let pos = range.from; pos <= range.to; ) {
|
|
18742
|
+
let line = state2.doc.lineAt(pos);
|
|
18743
|
+
if (line.number > atLine && (range.empty || range.to > line.from)) {
|
|
18744
|
+
f(line, changes, range);
|
|
18745
|
+
atLine = line.number;
|
|
18746
|
+
}
|
|
18747
|
+
pos = line.to + 1;
|
|
18748
|
+
}
|
|
18749
|
+
let changeSet = state2.changes(changes);
|
|
18750
|
+
return {
|
|
18751
|
+
changes,
|
|
18752
|
+
range: EditorSelection.range(changeSet.mapPos(range.anchor, 1), changeSet.mapPos(range.head, 1))
|
|
18753
|
+
};
|
|
18754
|
+
});
|
|
18755
|
+
}
|
|
18756
|
+
const indentMore = ({ state: state2, dispatch }) => {
|
|
18757
|
+
if (state2.readOnly)
|
|
18758
|
+
return false;
|
|
18759
|
+
dispatch(state2.update(changeBySelectedLine(state2, (line, changes) => {
|
|
18760
|
+
changes.push({ from: line.from, insert: state2.facet(indentUnit) });
|
|
18761
|
+
}), { userEvent: "input.indent" }));
|
|
18762
|
+
return true;
|
|
18763
|
+
};
|
|
18764
|
+
const indentLess = ({ state: state2, dispatch }) => {
|
|
18765
|
+
if (state2.readOnly)
|
|
18766
|
+
return false;
|
|
18767
|
+
dispatch(state2.update(changeBySelectedLine(state2, (line, changes) => {
|
|
18768
|
+
let space2 = /^\s*/.exec(line.text)[0];
|
|
18769
|
+
if (!space2)
|
|
18770
|
+
return;
|
|
18771
|
+
let col = countColumn(space2, state2.tabSize), keep = 0;
|
|
18772
|
+
let insert2 = indentString(state2, Math.max(0, col - getIndentUnit(state2)));
|
|
18773
|
+
while (keep < space2.length && keep < insert2.length && space2.charCodeAt(keep) == insert2.charCodeAt(keep))
|
|
18774
|
+
keep++;
|
|
18775
|
+
changes.push({ from: line.from + keep, to: line.from + space2.length, insert: insert2.slice(keep) });
|
|
18776
|
+
}), { userEvent: "delete.dedent" }));
|
|
18777
|
+
return true;
|
|
18778
|
+
};
|
|
18779
|
+
const indentWithTab = { key: "Tab", run: indentMore, shift: indentLess };
|
|
18737
18780
|
class Stack {
|
|
18738
18781
|
/**
|
|
18739
18782
|
@internal
|
|
@@ -20233,8 +20276,8 @@ class LRParser extends Parser {
|
|
|
20233
20276
|
}
|
|
20234
20277
|
createParse(input, fragments, ranges) {
|
|
20235
20278
|
let parse = new Parse(this, input, fragments, ranges);
|
|
20236
|
-
for (let
|
|
20237
|
-
parse =
|
|
20279
|
+
for (let w of this.wrappers)
|
|
20280
|
+
parse = w(parse, input, fragments, ranges);
|
|
20238
20281
|
return parse;
|
|
20239
20282
|
}
|
|
20240
20283
|
/**
|
|
@@ -22284,7 +22327,7 @@ const Charsets = ["ascii", "utf-8", "utf-16", "latin1", "latin1"];
|
|
|
22284
22327
|
const Methods = ["get", "post", "put", "delete"];
|
|
22285
22328
|
const Encs = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
|
|
22286
22329
|
const Bool = ["true", "false"];
|
|
22287
|
-
const S = {};
|
|
22330
|
+
const S$1 = {};
|
|
22288
22331
|
const Tags = {
|
|
22289
22332
|
a: {
|
|
22290
22333
|
attrs: {
|
|
@@ -22296,8 +22339,8 @@ const Tags = {
|
|
|
22296
22339
|
hreflang: null
|
|
22297
22340
|
}
|
|
22298
22341
|
},
|
|
22299
|
-
abbr: S,
|
|
22300
|
-
address: S,
|
|
22342
|
+
abbr: S$1,
|
|
22343
|
+
address: S$1,
|
|
22301
22344
|
area: {
|
|
22302
22345
|
attrs: {
|
|
22303
22346
|
alt: null,
|
|
@@ -22311,8 +22354,8 @@ const Tags = {
|
|
|
22311
22354
|
shape: ["default", "rect", "circle", "poly"]
|
|
22312
22355
|
}
|
|
22313
22356
|
},
|
|
22314
|
-
article: S,
|
|
22315
|
-
aside: S,
|
|
22357
|
+
article: S$1,
|
|
22358
|
+
aside: S$1,
|
|
22316
22359
|
audio: {
|
|
22317
22360
|
attrs: {
|
|
22318
22361
|
src: null,
|
|
@@ -22324,13 +22367,13 @@ const Tags = {
|
|
|
22324
22367
|
controls: ["controls"]
|
|
22325
22368
|
}
|
|
22326
22369
|
},
|
|
22327
|
-
b: S,
|
|
22370
|
+
b: S$1,
|
|
22328
22371
|
base: { attrs: { href: null, target: Targets } },
|
|
22329
|
-
bdi: S,
|
|
22330
|
-
bdo: S,
|
|
22372
|
+
bdi: S$1,
|
|
22373
|
+
bdo: S$1,
|
|
22331
22374
|
blockquote: { attrs: { cite: null } },
|
|
22332
|
-
body: S,
|
|
22333
|
-
br: S,
|
|
22375
|
+
body: S$1,
|
|
22376
|
+
br: S$1,
|
|
22334
22377
|
button: {
|
|
22335
22378
|
attrs: {
|
|
22336
22379
|
form: null,
|
|
@@ -22347,10 +22390,10 @@ const Tags = {
|
|
|
22347
22390
|
}
|
|
22348
22391
|
},
|
|
22349
22392
|
canvas: { attrs: { width: null, height: null } },
|
|
22350
|
-
caption: S,
|
|
22351
|
-
center: S,
|
|
22352
|
-
cite: S,
|
|
22353
|
-
code: S,
|
|
22393
|
+
caption: S$1,
|
|
22394
|
+
center: S$1,
|
|
22395
|
+
cite: S$1,
|
|
22396
|
+
code: S$1,
|
|
22354
22397
|
col: { attrs: { span: null } },
|
|
22355
22398
|
colgroup: { attrs: { span: null } },
|
|
22356
22399
|
command: {
|
|
@@ -22368,20 +22411,20 @@ const Tags = {
|
|
|
22368
22411
|
data: { attrs: { value: null } },
|
|
22369
22412
|
datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
|
|
22370
22413
|
datalist: { attrs: { data: null } },
|
|
22371
|
-
dd: S,
|
|
22414
|
+
dd: S$1,
|
|
22372
22415
|
del: { attrs: { cite: null, datetime: null } },
|
|
22373
22416
|
details: { attrs: { open: ["open"] } },
|
|
22374
|
-
dfn: S,
|
|
22375
|
-
div: S,
|
|
22376
|
-
dl: S,
|
|
22377
|
-
dt: S,
|
|
22378
|
-
em: S,
|
|
22417
|
+
dfn: S$1,
|
|
22418
|
+
div: S$1,
|
|
22419
|
+
dl: S$1,
|
|
22420
|
+
dt: S$1,
|
|
22421
|
+
em: S$1,
|
|
22379
22422
|
embed: { attrs: { src: null, type: null, width: null, height: null } },
|
|
22380
22423
|
eventsource: { attrs: { src: null } },
|
|
22381
22424
|
fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
|
|
22382
|
-
figcaption: S,
|
|
22383
|
-
figure: S,
|
|
22384
|
-
footer: S,
|
|
22425
|
+
figcaption: S$1,
|
|
22426
|
+
figure: S$1,
|
|
22427
|
+
footer: S$1,
|
|
22385
22428
|
form: {
|
|
22386
22429
|
attrs: {
|
|
22387
22430
|
action: null,
|
|
@@ -22394,22 +22437,22 @@ const Tags = {
|
|
|
22394
22437
|
target: Targets
|
|
22395
22438
|
}
|
|
22396
22439
|
},
|
|
22397
|
-
h1: S,
|
|
22398
|
-
h2: S,
|
|
22399
|
-
h3: S,
|
|
22400
|
-
h4: S,
|
|
22401
|
-
h5: S,
|
|
22402
|
-
h6: S,
|
|
22440
|
+
h1: S$1,
|
|
22441
|
+
h2: S$1,
|
|
22442
|
+
h3: S$1,
|
|
22443
|
+
h4: S$1,
|
|
22444
|
+
h5: S$1,
|
|
22445
|
+
h6: S$1,
|
|
22403
22446
|
head: {
|
|
22404
22447
|
children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
|
|
22405
22448
|
},
|
|
22406
|
-
header: S,
|
|
22407
|
-
hgroup: S,
|
|
22408
|
-
hr: S,
|
|
22449
|
+
header: S$1,
|
|
22450
|
+
hgroup: S$1,
|
|
22451
|
+
hr: S$1,
|
|
22409
22452
|
html: {
|
|
22410
22453
|
attrs: { manifest: null }
|
|
22411
22454
|
},
|
|
22412
|
-
i: S,
|
|
22455
|
+
i: S$1,
|
|
22413
22456
|
iframe: {
|
|
22414
22457
|
attrs: {
|
|
22415
22458
|
src: null,
|
|
@@ -22491,7 +22534,7 @@ const Tags = {
|
|
|
22491
22534
|
}
|
|
22492
22535
|
},
|
|
22493
22536
|
ins: { attrs: { cite: null, datetime: null } },
|
|
22494
|
-
kbd: S,
|
|
22537
|
+
kbd: S$1,
|
|
22495
22538
|
keygen: {
|
|
22496
22539
|
attrs: {
|
|
22497
22540
|
challenge: null,
|
|
@@ -22503,7 +22546,7 @@ const Tags = {
|
|
|
22503
22546
|
}
|
|
22504
22547
|
},
|
|
22505
22548
|
label: { attrs: { for: null, form: null } },
|
|
22506
|
-
legend: S,
|
|
22549
|
+
legend: S$1,
|
|
22507
22550
|
li: { attrs: { value: null } },
|
|
22508
22551
|
link: {
|
|
22509
22552
|
attrs: {
|
|
@@ -22515,7 +22558,7 @@ const Tags = {
|
|
|
22515
22558
|
}
|
|
22516
22559
|
},
|
|
22517
22560
|
map: { attrs: { name: null } },
|
|
22518
|
-
mark: S,
|
|
22561
|
+
mark: S$1,
|
|
22519
22562
|
menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
|
|
22520
22563
|
meta: {
|
|
22521
22564
|
attrs: {
|
|
@@ -22526,8 +22569,8 @@ const Tags = {
|
|
|
22526
22569
|
}
|
|
22527
22570
|
},
|
|
22528
22571
|
meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
|
|
22529
|
-
nav: S,
|
|
22530
|
-
noscript: S,
|
|
22572
|
+
nav: S$1,
|
|
22573
|
+
noscript: S$1,
|
|
22531
22574
|
object: {
|
|
22532
22575
|
attrs: {
|
|
22533
22576
|
data: null,
|
|
@@ -22547,15 +22590,15 @@ const Tags = {
|
|
|
22547
22590
|
optgroup: { attrs: { disabled: ["disabled"], label: null } },
|
|
22548
22591
|
option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
|
|
22549
22592
|
output: { attrs: { for: null, form: null, name: null } },
|
|
22550
|
-
p: S,
|
|
22593
|
+
p: S$1,
|
|
22551
22594
|
param: { attrs: { name: null, value: null } },
|
|
22552
|
-
pre: S,
|
|
22595
|
+
pre: S$1,
|
|
22553
22596
|
progress: { attrs: { value: null, max: null } },
|
|
22554
22597
|
q: { attrs: { cite: null } },
|
|
22555
|
-
rp: S,
|
|
22556
|
-
rt: S,
|
|
22557
|
-
ruby: S,
|
|
22558
|
-
samp: S,
|
|
22598
|
+
rp: S$1,
|
|
22599
|
+
rt: S$1,
|
|
22600
|
+
ruby: S$1,
|
|
22601
|
+
samp: S$1,
|
|
22559
22602
|
script: {
|
|
22560
22603
|
attrs: {
|
|
22561
22604
|
type: ["text/javascript"],
|
|
@@ -22565,7 +22608,7 @@ const Tags = {
|
|
|
22565
22608
|
charset: Charsets
|
|
22566
22609
|
}
|
|
22567
22610
|
},
|
|
22568
|
-
section: S,
|
|
22611
|
+
section: S$1,
|
|
22569
22612
|
select: {
|
|
22570
22613
|
attrs: {
|
|
22571
22614
|
form: null,
|
|
@@ -22577,10 +22620,10 @@ const Tags = {
|
|
|
22577
22620
|
}
|
|
22578
22621
|
},
|
|
22579
22622
|
slot: { attrs: { name: null } },
|
|
22580
|
-
small: S,
|
|
22623
|
+
small: S$1,
|
|
22581
22624
|
source: { attrs: { src: null, type: null, media: null } },
|
|
22582
|
-
span: S,
|
|
22583
|
-
strong: S,
|
|
22625
|
+
span: S$1,
|
|
22626
|
+
strong: S$1,
|
|
22584
22627
|
style: {
|
|
22585
22628
|
attrs: {
|
|
22586
22629
|
type: ["text/css"],
|
|
@@ -22588,13 +22631,13 @@ const Tags = {
|
|
|
22588
22631
|
scoped: null
|
|
22589
22632
|
}
|
|
22590
22633
|
},
|
|
22591
|
-
sub: S,
|
|
22592
|
-
summary: S,
|
|
22593
|
-
sup: S,
|
|
22594
|
-
table: S,
|
|
22595
|
-
tbody: S,
|
|
22634
|
+
sub: S$1,
|
|
22635
|
+
summary: S$1,
|
|
22636
|
+
sup: S$1,
|
|
22637
|
+
table: S$1,
|
|
22638
|
+
tbody: S$1,
|
|
22596
22639
|
td: { attrs: { colspan: null, rowspan: null, headers: null } },
|
|
22597
|
-
template: S,
|
|
22640
|
+
template: S$1,
|
|
22598
22641
|
textarea: {
|
|
22599
22642
|
attrs: {
|
|
22600
22643
|
dirname: null,
|
|
@@ -22611,12 +22654,12 @@ const Tags = {
|
|
|
22611
22654
|
wrap: ["soft", "hard"]
|
|
22612
22655
|
}
|
|
22613
22656
|
},
|
|
22614
|
-
tfoot: S,
|
|
22657
|
+
tfoot: S$1,
|
|
22615
22658
|
th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
|
|
22616
|
-
thead: S,
|
|
22659
|
+
thead: S$1,
|
|
22617
22660
|
time: { attrs: { datetime: null } },
|
|
22618
|
-
title: S,
|
|
22619
|
-
tr: S,
|
|
22661
|
+
title: S$1,
|
|
22662
|
+
tr: S$1,
|
|
22620
22663
|
track: {
|
|
22621
22664
|
attrs: {
|
|
22622
22665
|
src: null,
|
|
@@ -22627,7 +22670,7 @@ const Tags = {
|
|
|
22627
22670
|
}
|
|
22628
22671
|
},
|
|
22629
22672
|
ul: { children: ["li", "script", "template", "ul", "ol"] },
|
|
22630
|
-
var: S,
|
|
22673
|
+
var: S$1,
|
|
22631
22674
|
video: {
|
|
22632
22675
|
attrs: {
|
|
22633
22676
|
src: null,
|
|
@@ -22642,7 +22685,7 @@ const Tags = {
|
|
|
22642
22685
|
controls: ["controls"]
|
|
22643
22686
|
}
|
|
22644
22687
|
},
|
|
22645
|
-
wbr: S
|
|
22688
|
+
wbr: S$1
|
|
22646
22689
|
};
|
|
22647
22690
|
const GlobalAttrs = {
|
|
22648
22691
|
accesskey: null,
|
|
@@ -23835,6 +23878,7 @@ function getCodeMirrorExtensions({
|
|
|
23835
23878
|
keymap.of([
|
|
23836
23879
|
...completionKeymap,
|
|
23837
23880
|
...closeBracketsKeymap,
|
|
23881
|
+
indentWithTab,
|
|
23838
23882
|
selectAllKeyBinding
|
|
23839
23883
|
])
|
|
23840
23884
|
);
|
|
@@ -24062,14 +24106,16 @@ const normalizeUrl = (url) => {
|
|
|
24062
24106
|
);
|
|
24063
24107
|
return "";
|
|
24064
24108
|
}
|
|
24065
|
-
let
|
|
24066
|
-
if (!
|
|
24109
|
+
let sanitizedUrl = url;
|
|
24110
|
+
if (!sanitizedUrl.startsWith("http")) {
|
|
24067
24111
|
console.warn(
|
|
24068
24112
|
`[sendRequest] URL does not start with http. Adding http:// as the default prefix.`
|
|
24069
24113
|
);
|
|
24070
|
-
|
|
24114
|
+
sanitizedUrl = `http://${sanitizedUrl}`;
|
|
24071
24115
|
}
|
|
24072
|
-
|
|
24116
|
+
const urlObject = new URL(sanitizedUrl);
|
|
24117
|
+
urlObject.hostname = urlObject.hostname.trim().toLowerCase();
|
|
24118
|
+
return urlObject.toString();
|
|
24073
24119
|
};
|
|
24074
24120
|
const ALIAS = Symbol.for("yaml.alias");
|
|
24075
24121
|
const DOC = Symbol.for("yaml.document");
|
|
@@ -24175,7 +24221,7 @@ function initVisitor(visitor) {
|
|
|
24175
24221
|
return visitor;
|
|
24176
24222
|
}
|
|
24177
24223
|
function callVisitor(key, node, visitor, path) {
|
|
24178
|
-
var _a2, _b, _c, _d,
|
|
24224
|
+
var _a2, _b, _c, _d, _e;
|
|
24179
24225
|
if (typeof visitor === "function")
|
|
24180
24226
|
return visitor(key, node, path);
|
|
24181
24227
|
if (isMap(node))
|
|
@@ -24187,7 +24233,7 @@ function callVisitor(key, node, visitor, path) {
|
|
|
24187
24233
|
if (isScalar(node))
|
|
24188
24234
|
return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path);
|
|
24189
24235
|
if (isAlias(node))
|
|
24190
|
-
return (
|
|
24236
|
+
return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path);
|
|
24191
24237
|
return void 0;
|
|
24192
24238
|
}
|
|
24193
24239
|
function replaceNode(key, path, node) {
|
|
@@ -24525,7 +24571,7 @@ class Collection extends NodeBase {
|
|
|
24525
24571
|
const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
24526
24572
|
if (schema)
|
|
24527
24573
|
copy.schema = schema;
|
|
24528
|
-
copy.items = copy.items.map((
|
|
24574
|
+
copy.items = copy.items.map((it) => isNode(it) || isPair(it) ? it.clone(schema) : it);
|
|
24529
24575
|
if (this.range)
|
|
24530
24576
|
copy.range = this.range.slice();
|
|
24531
24577
|
return copy;
|
|
@@ -25257,11 +25303,11 @@ function addPairToJSMap(ctx, map, { key, value }) {
|
|
|
25257
25303
|
if ((ctx == null ? void 0 : ctx.doc.schema.merge) && isMergeKey(key)) {
|
|
25258
25304
|
value = isAlias(value) ? value.resolve(ctx.doc) : value;
|
|
25259
25305
|
if (isSeq(value))
|
|
25260
|
-
for (const
|
|
25261
|
-
mergeToJSMap(ctx, map,
|
|
25306
|
+
for (const it of value.items)
|
|
25307
|
+
mergeToJSMap(ctx, map, it);
|
|
25262
25308
|
else if (Array.isArray(value))
|
|
25263
|
-
for (const
|
|
25264
|
-
mergeToJSMap(ctx, map,
|
|
25309
|
+
for (const it of value)
|
|
25310
|
+
mergeToJSMap(ctx, map, it);
|
|
25265
25311
|
else
|
|
25266
25312
|
mergeToJSMap(ctx, map, value);
|
|
25267
25313
|
} else {
|
|
@@ -25495,12 +25541,12 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
|
|
|
25495
25541
|
}
|
|
25496
25542
|
function findPair(items, key) {
|
|
25497
25543
|
const k = isScalar(key) ? key.value : key;
|
|
25498
|
-
for (const
|
|
25499
|
-
if (isPair(
|
|
25500
|
-
if (
|
|
25501
|
-
return
|
|
25502
|
-
if (isScalar(
|
|
25503
|
-
return
|
|
25544
|
+
for (const it of items) {
|
|
25545
|
+
if (isPair(it)) {
|
|
25546
|
+
if (it.key === key || it.key === k)
|
|
25547
|
+
return it;
|
|
25548
|
+
if (isScalar(it.key) && it.key.value === k)
|
|
25549
|
+
return it;
|
|
25504
25550
|
}
|
|
25505
25551
|
}
|
|
25506
25552
|
return void 0;
|
|
@@ -25575,15 +25621,15 @@ class YAMLMap extends Collection {
|
|
|
25575
25621
|
}
|
|
25576
25622
|
}
|
|
25577
25623
|
delete(key) {
|
|
25578
|
-
const
|
|
25579
|
-
if (!
|
|
25624
|
+
const it = findPair(this.items, key);
|
|
25625
|
+
if (!it)
|
|
25580
25626
|
return false;
|
|
25581
|
-
const del = this.items.splice(this.items.indexOf(
|
|
25627
|
+
const del = this.items.splice(this.items.indexOf(it), 1);
|
|
25582
25628
|
return del.length > 0;
|
|
25583
25629
|
}
|
|
25584
25630
|
get(key, keepScalar) {
|
|
25585
|
-
const
|
|
25586
|
-
const node =
|
|
25631
|
+
const it = findPair(this.items, key);
|
|
25632
|
+
const node = it == null ? void 0 : it.value;
|
|
25587
25633
|
return (!keepScalar && isScalar(node) ? node.value : node) ?? void 0;
|
|
25588
25634
|
}
|
|
25589
25635
|
has(key) {
|
|
@@ -25653,8 +25699,8 @@ class YAMLSeq extends Collection {
|
|
|
25653
25699
|
const idx = asItemIndex(key);
|
|
25654
25700
|
if (typeof idx !== "number")
|
|
25655
25701
|
return void 0;
|
|
25656
|
-
const
|
|
25657
|
-
return !keepScalar && isScalar(
|
|
25702
|
+
const it = this.items[idx];
|
|
25703
|
+
return !keepScalar && isScalar(it) ? it.value : it;
|
|
25658
25704
|
}
|
|
25659
25705
|
/**
|
|
25660
25706
|
* Checks if the collection includes a value with the key `key`.
|
|
@@ -25708,12 +25754,12 @@ class YAMLSeq extends Collection {
|
|
|
25708
25754
|
const seq = new this(schema);
|
|
25709
25755
|
if (obj && Symbol.iterator in Object(obj)) {
|
|
25710
25756
|
let i = 0;
|
|
25711
|
-
for (let
|
|
25757
|
+
for (let it of obj) {
|
|
25712
25758
|
if (typeof replacer === "function") {
|
|
25713
|
-
const key = obj instanceof Set ?
|
|
25714
|
-
|
|
25759
|
+
const key = obj instanceof Set ? it : String(i++);
|
|
25760
|
+
it = replacer.call(obj, key, it);
|
|
25715
25761
|
}
|
|
25716
|
-
seq.items.push(createNode(
|
|
25762
|
+
seq.items.push(createNode(it, void 0, ctx));
|
|
25717
25763
|
}
|
|
25718
25764
|
}
|
|
25719
25765
|
return seq;
|
|
@@ -25731,26 +25777,26 @@ function createPairs(schema, iterable, ctx) {
|
|
|
25731
25777
|
pairs.tag = "tag:yaml.org,2002:pairs";
|
|
25732
25778
|
let i = 0;
|
|
25733
25779
|
if (iterable && Symbol.iterator in Object(iterable))
|
|
25734
|
-
for (let
|
|
25780
|
+
for (let it of iterable) {
|
|
25735
25781
|
if (typeof replacer === "function")
|
|
25736
|
-
|
|
25782
|
+
it = replacer.call(iterable, String(i++), it);
|
|
25737
25783
|
let key, value;
|
|
25738
|
-
if (Array.isArray(
|
|
25739
|
-
if (
|
|
25740
|
-
key =
|
|
25741
|
-
value =
|
|
25784
|
+
if (Array.isArray(it)) {
|
|
25785
|
+
if (it.length === 2) {
|
|
25786
|
+
key = it[0];
|
|
25787
|
+
value = it[1];
|
|
25742
25788
|
} else
|
|
25743
|
-
throw new TypeError(`Expected [key, value] tuple: ${
|
|
25744
|
-
} else if (
|
|
25745
|
-
const keys = Object.keys(
|
|
25789
|
+
throw new TypeError(`Expected [key, value] tuple: ${it}`);
|
|
25790
|
+
} else if (it && it instanceof Object) {
|
|
25791
|
+
const keys = Object.keys(it);
|
|
25746
25792
|
if (keys.length === 1) {
|
|
25747
25793
|
key = keys[0];
|
|
25748
|
-
value =
|
|
25794
|
+
value = it[key];
|
|
25749
25795
|
} else {
|
|
25750
25796
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
|
25751
25797
|
}
|
|
25752
25798
|
} else {
|
|
25753
|
-
key =
|
|
25799
|
+
key = it;
|
|
25754
25800
|
}
|
|
25755
25801
|
pairs.items.push(createPair(key, value, ctx));
|
|
25756
25802
|
}
|
|
@@ -26180,7 +26226,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
26180
26226
|
}
|
|
26181
26227
|
});
|
|
26182
26228
|
const RequestMethodSelect = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-8e2122cd"]]);
|
|
26183
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
26229
|
+
const _withScopeId = (n) => (pushScopeId("data-v-e969420a"), n = n(), popScopeId(), n);
|
|
26184
26230
|
const _hoisted_1$i = {
|
|
26185
26231
|
key: 0,
|
|
26186
26232
|
class: "loader"
|
|
@@ -26365,7 +26411,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
26365
26411
|
};
|
|
26366
26412
|
}
|
|
26367
26413
|
});
|
|
26368
|
-
const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
26414
|
+
const AddressBar = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-e969420a"]]);
|
|
26369
26415
|
const _hoisted_1$h = /* @__PURE__ */ createElementVNode("svg", {
|
|
26370
26416
|
class: "scalar-api-client__toggle__icon",
|
|
26371
26417
|
height: "10",
|
|
@@ -30819,20 +30865,20 @@ var prism = { exports: {} };
|
|
|
30819
30865
|
})();
|
|
30820
30866
|
})(prism);
|
|
30821
30867
|
var prismExports = prism.exports;
|
|
30822
|
-
const
|
|
30823
|
-
const
|
|
30868
|
+
const A = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
|
|
30869
|
+
const O = "scalar-component", le = extendTailwindMerge({
|
|
30824
30870
|
extend: {
|
|
30825
30871
|
classGroups: {
|
|
30826
30872
|
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
30827
|
-
[
|
|
30873
|
+
[O]: [O]
|
|
30828
30874
|
}
|
|
30829
30875
|
}
|
|
30830
|
-
}), { cva:
|
|
30876
|
+
}), { cva: I, cx: S, compose: $e } = defineConfig({
|
|
30831
30877
|
hooks: {
|
|
30832
|
-
onComplete: (r2) => `${
|
|
30878
|
+
onComplete: (r2) => `${le(r2, O)}`
|
|
30833
30879
|
}
|
|
30834
30880
|
});
|
|
30835
|
-
const
|
|
30881
|
+
const V = {
|
|
30836
30882
|
solid: [
|
|
30837
30883
|
"scalar-button-solid",
|
|
30838
30884
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -30850,7 +30896,7 @@ const j = {
|
|
|
30850
30896
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
30851
30897
|
]
|
|
30852
30898
|
};
|
|
30853
|
-
|
|
30899
|
+
I({
|
|
30854
30900
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
30855
30901
|
variants: {
|
|
30856
30902
|
disabled: {
|
|
@@ -30858,7 +30904,7 @@ y({
|
|
|
30858
30904
|
},
|
|
30859
30905
|
fullWidth: { true: "w-full" },
|
|
30860
30906
|
size: { md: "h-10 px-6 text-sm" },
|
|
30861
|
-
variant:
|
|
30907
|
+
variant: V
|
|
30862
30908
|
},
|
|
30863
30909
|
compoundVariants: [
|
|
30864
30910
|
{
|
|
@@ -30876,7 +30922,7 @@ y({
|
|
|
30876
30922
|
// this looks reasonably well in all themes
|
|
30877
30923
|
inside: null
|
|
30878
30924
|
// see below
|
|
30879
|
-
},
|
|
30925
|
+
}, d = {
|
|
30880
30926
|
bash: e,
|
|
30881
30927
|
environment: {
|
|
30882
30928
|
pattern: RegExp("\\$" + t2),
|
|
@@ -30988,7 +31034,7 @@ y({
|
|
|
30988
31034
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
30989
31035
|
lookbehind: true,
|
|
30990
31036
|
greedy: true,
|
|
30991
|
-
inside:
|
|
31037
|
+
inside: d
|
|
30992
31038
|
},
|
|
30993
31039
|
// Here-document with quotes around the tag
|
|
30994
31040
|
// → No expansion (so no “inside”).
|
|
@@ -31006,7 +31052,7 @@ y({
|
|
|
31006
31052
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
31007
31053
|
lookbehind: true,
|
|
31008
31054
|
greedy: true,
|
|
31009
|
-
inside:
|
|
31055
|
+
inside: d
|
|
31010
31056
|
},
|
|
31011
31057
|
{
|
|
31012
31058
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -31019,7 +31065,7 @@ y({
|
|
|
31019
31065
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
31020
31066
|
greedy: true,
|
|
31021
31067
|
inside: {
|
|
31022
|
-
entity:
|
|
31068
|
+
entity: d.entity
|
|
31023
31069
|
}
|
|
31024
31070
|
}
|
|
31025
31071
|
],
|
|
@@ -31027,7 +31073,7 @@ y({
|
|
|
31027
31073
|
pattern: RegExp("\\$?" + t2),
|
|
31028
31074
|
alias: "constant"
|
|
31029
31075
|
},
|
|
31030
|
-
variable:
|
|
31076
|
+
variable: d.variable,
|
|
31031
31077
|
function: {
|
|
31032
31078
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
31033
31079
|
lookbehind: true
|
|
@@ -31083,8 +31129,8 @@ y({
|
|
|
31083
31129
|
"operator",
|
|
31084
31130
|
"punctuation",
|
|
31085
31131
|
"number"
|
|
31086
|
-
],
|
|
31087
|
-
|
|
31132
|
+
], f = d.variable[1].inside, a = 0; a < u.length; a++)
|
|
31133
|
+
f[u[a]] = r2.languages.bash[u[a]];
|
|
31088
31134
|
r2.languages.sh = r2.languages.bash, r2.languages.shell = r2.languages.bash;
|
|
31089
31135
|
})(Prism);
|
|
31090
31136
|
Prism.languages.json = {
|
|
@@ -31123,14 +31169,14 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31123
31169
|
* @param {number} number line number
|
|
31124
31170
|
* @returns {Element|undefined}
|
|
31125
31171
|
*/
|
|
31126
|
-
getLine: function(a,
|
|
31172
|
+
getLine: function(a, n) {
|
|
31127
31173
|
if (!(a.tagName !== "PRE" || !a.classList.contains(r2))) {
|
|
31128
|
-
var
|
|
31129
|
-
if (
|
|
31130
|
-
var
|
|
31131
|
-
|
|
31132
|
-
var
|
|
31133
|
-
return
|
|
31174
|
+
var o = a.querySelector(".line-numbers-rows");
|
|
31175
|
+
if (o) {
|
|
31176
|
+
var s = parseInt(a.getAttribute("data-start"), 10) || 1, p = s + (o.children.length - 1);
|
|
31177
|
+
n < s && (n = s), n > p && (n = p);
|
|
31178
|
+
var l = n - s;
|
|
31179
|
+
return o.children[l];
|
|
31134
31180
|
}
|
|
31135
31181
|
}
|
|
31136
31182
|
},
|
|
@@ -31143,7 +31189,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31143
31189
|
* @returns {void}
|
|
31144
31190
|
*/
|
|
31145
31191
|
resize: function(a) {
|
|
31146
|
-
|
|
31192
|
+
d([a]);
|
|
31147
31193
|
},
|
|
31148
31194
|
/**
|
|
31149
31195
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -31157,42 +31203,42 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31157
31203
|
*/
|
|
31158
31204
|
assumeViewportIndependence: true
|
|
31159
31205
|
};
|
|
31160
|
-
function
|
|
31161
|
-
if (a = a.filter(function(
|
|
31162
|
-
var
|
|
31206
|
+
function d(a) {
|
|
31207
|
+
if (a = a.filter(function(o) {
|
|
31208
|
+
var s = u(o), p = s["white-space"];
|
|
31163
31209
|
return p === "pre-wrap" || p === "pre-line";
|
|
31164
31210
|
}), a.length != 0) {
|
|
31165
|
-
var
|
|
31166
|
-
var
|
|
31167
|
-
if (!(!
|
|
31168
|
-
var
|
|
31169
|
-
|
|
31170
|
-
var i =
|
|
31171
|
-
return
|
|
31172
|
-
element:
|
|
31173
|
-
lines:
|
|
31211
|
+
var n = a.map(function(o) {
|
|
31212
|
+
var s = o.querySelector("code"), p = o.querySelector(".line-numbers-rows");
|
|
31213
|
+
if (!(!s || !p)) {
|
|
31214
|
+
var l = o.querySelector(".line-numbers-sizer"), h = s.textContent.split(t2);
|
|
31215
|
+
l || (l = document.createElement("span"), l.className = "line-numbers-sizer", s.appendChild(l)), l.innerHTML = "0", l.style.display = "block";
|
|
31216
|
+
var i = l.getBoundingClientRect().height;
|
|
31217
|
+
return l.innerHTML = "", {
|
|
31218
|
+
element: o,
|
|
31219
|
+
lines: h,
|
|
31174
31220
|
lineHeights: [],
|
|
31175
31221
|
oneLinerHeight: i,
|
|
31176
|
-
sizer:
|
|
31222
|
+
sizer: l
|
|
31177
31223
|
};
|
|
31178
31224
|
}
|
|
31179
31225
|
}).filter(Boolean);
|
|
31180
|
-
|
|
31181
|
-
var
|
|
31182
|
-
|
|
31226
|
+
n.forEach(function(o) {
|
|
31227
|
+
var s = o.sizer, p = o.lines, l = o.lineHeights, h = o.oneLinerHeight;
|
|
31228
|
+
l[p.length - 1] = void 0, p.forEach(function(i, b) {
|
|
31183
31229
|
if (i && i.length > 1) {
|
|
31184
|
-
var
|
|
31185
|
-
|
|
31230
|
+
var y = s.appendChild(document.createElement("span"));
|
|
31231
|
+
y.style.display = "block", y.textContent = i;
|
|
31186
31232
|
} else
|
|
31187
|
-
|
|
31233
|
+
l[b] = h;
|
|
31188
31234
|
});
|
|
31189
|
-
}),
|
|
31190
|
-
for (var
|
|
31191
|
-
p[
|
|
31192
|
-
}),
|
|
31193
|
-
var
|
|
31194
|
-
|
|
31195
|
-
p.children[
|
|
31235
|
+
}), n.forEach(function(o) {
|
|
31236
|
+
for (var s = o.sizer, p = o.lineHeights, l = 0, h = 0; h < p.length; h++)
|
|
31237
|
+
p[h] === void 0 && (p[h] = s.children[l++].getBoundingClientRect().height);
|
|
31238
|
+
}), n.forEach(function(o) {
|
|
31239
|
+
var s = o.sizer, p = o.element.querySelector(".line-numbers-rows");
|
|
31240
|
+
s.style.display = "none", s.innerHTML = "", o.lineHeights.forEach(function(l, h) {
|
|
31241
|
+
p.children[h].style.height = l + "px";
|
|
31196
31242
|
});
|
|
31197
31243
|
});
|
|
31198
31244
|
}
|
|
@@ -31200,29 +31246,29 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31200
31246
|
function u(a) {
|
|
31201
31247
|
return a ? window.getComputedStyle ? getComputedStyle(a) : a.currentStyle || null : null;
|
|
31202
31248
|
}
|
|
31203
|
-
var
|
|
31249
|
+
var f = void 0;
|
|
31204
31250
|
window.addEventListener("resize", function() {
|
|
31205
|
-
e.assumeViewportIndependence &&
|
|
31251
|
+
e.assumeViewportIndependence && f === window.innerWidth || (f = window.innerWidth, d(Array.prototype.slice.call(document.querySelectorAll("pre." + r2))));
|
|
31206
31252
|
}), Prism.hooks.add("complete", function(a) {
|
|
31207
31253
|
if (a.code) {
|
|
31208
|
-
var
|
|
31254
|
+
var n = (
|
|
31209
31255
|
/** @type {Element} */
|
|
31210
31256
|
a.element
|
|
31211
|
-
),
|
|
31257
|
+
), o = (
|
|
31212
31258
|
/** @type {HTMLElement} */
|
|
31213
|
-
|
|
31259
|
+
n.parentNode
|
|
31214
31260
|
);
|
|
31215
|
-
if (!(!
|
|
31216
|
-
|
|
31217
|
-
var
|
|
31218
|
-
|
|
31261
|
+
if (!(!o || !/pre/i.test(o.nodeName)) && !n.querySelector(".line-numbers-rows") && Prism.util.isActive(n, r2)) {
|
|
31262
|
+
n.classList.remove(r2), o.classList.add(r2);
|
|
31263
|
+
var s = a.code.match(t2), p = s ? s.length + 1 : 1, l, h = new Array(p + 1).join("<span></span>");
|
|
31264
|
+
l = document.createElement("span"), l.setAttribute("aria-hidden", "true"), l.className = "line-numbers-rows", l.innerHTML = h, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), a.element.appendChild(l), d([o]), Prism.hooks.run("line-numbers", a);
|
|
31219
31265
|
}
|
|
31220
31266
|
}
|
|
31221
31267
|
}), Prism.hooks.add("line-numbers", function(a) {
|
|
31222
31268
|
a.plugins = a.plugins || {}, a.plugins.lineNumbers = true;
|
|
31223
31269
|
});
|
|
31224
31270
|
})();
|
|
31225
|
-
const
|
|
31271
|
+
const ve = ["innerHTML"], He = /* @__PURE__ */ defineComponent({
|
|
31226
31272
|
__name: "ScalarCodeBlock",
|
|
31227
31273
|
props: {
|
|
31228
31274
|
content: {},
|
|
@@ -31231,45 +31277,45 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ defineComponent({
|
|
|
31231
31277
|
hideCredentials: {}
|
|
31232
31278
|
},
|
|
31233
31279
|
setup(r2) {
|
|
31234
|
-
const t2 = r2, { plugins: e, highlightElement:
|
|
31235
|
-
t2.hideCredentials &&
|
|
31280
|
+
const t2 = r2, { plugins: e, highlightElement: d } = A;
|
|
31281
|
+
t2.hideCredentials && A.hooks.add("wrap", function(n) {
|
|
31236
31282
|
if (!t2.hideCredentials)
|
|
31237
31283
|
return;
|
|
31238
|
-
let
|
|
31239
|
-
typeof t2.hideCredentials == "string" ?
|
|
31240
|
-
(
|
|
31241
|
-
)),
|
|
31284
|
+
let o = false;
|
|
31285
|
+
typeof t2.hideCredentials == "string" ? n.content.includes(t2.hideCredentials) && (o = true) : Array.isArray(t2.hideCredentials) && (o = t2.hideCredentials.some(
|
|
31286
|
+
(s) => n.content.includes(s)
|
|
31287
|
+
)), o && (n.content = n.content.replace(
|
|
31242
31288
|
/<span class="credentials">.*?<\/span>/g,
|
|
31243
|
-
(
|
|
31244
|
-
),
|
|
31289
|
+
(s) => s.replace(/<span class="credentials">|<\/span>/g, "")
|
|
31290
|
+
), n.content = n.content.replace(
|
|
31245
31291
|
new RegExp(
|
|
31246
31292
|
typeof t2.hideCredentials == "string" ? t2.hideCredentials : t2.hideCredentials.join("|"),
|
|
31247
31293
|
"g"
|
|
31248
31294
|
),
|
|
31249
|
-
(
|
|
31295
|
+
(s) => `<span class="credentials">${s}</span>`
|
|
31250
31296
|
));
|
|
31251
31297
|
});
|
|
31252
|
-
const u = ref(null),
|
|
31298
|
+
const u = ref(null), f = ref(""), a = computed(() => t2.lang === "node" ? "js" : t2.lang);
|
|
31253
31299
|
return watch(
|
|
31254
31300
|
() => [t2.lang, t2.content],
|
|
31255
31301
|
() => {
|
|
31256
|
-
u.value && nextTick(() =>
|
|
31302
|
+
u.value && nextTick(() => d(u.value));
|
|
31257
31303
|
}
|
|
31258
31304
|
), onServerPrefetch(async () => {
|
|
31259
|
-
const
|
|
31305
|
+
const n = A.highlight(
|
|
31260
31306
|
typeof t2.content == "object" ? JSON.stringify(t2.content) : t2.content,
|
|
31261
|
-
|
|
31307
|
+
A.languages[a.value],
|
|
31262
31308
|
a.value
|
|
31263
31309
|
);
|
|
31264
|
-
|
|
31310
|
+
f.value = n;
|
|
31265
31311
|
}), onMounted(async () => {
|
|
31266
|
-
u.value &&
|
|
31267
|
-
}), (
|
|
31312
|
+
u.value && d(u.value), await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), e.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
31313
|
+
}), (n, o) => f.value ? (openBlock(), createElementBlock("pre", {
|
|
31268
31314
|
key: 0,
|
|
31269
31315
|
class: normalizeClass([
|
|
31270
31316
|
`scalar-component scalar-codeblock-pre language-${a.value}`,
|
|
31271
31317
|
{
|
|
31272
|
-
"line-numbers":
|
|
31318
|
+
"line-numbers": n.lineNumbers
|
|
31273
31319
|
}
|
|
31274
31320
|
])
|
|
31275
31321
|
}, [
|
|
@@ -31277,137 +31323,32 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ defineComponent({
|
|
|
31277
31323
|
ref_key: "el",
|
|
31278
31324
|
ref: u,
|
|
31279
31325
|
class: normalizeClass(`scalar-codeblock-code language-${a.value}`),
|
|
31280
|
-
innerHTML:
|
|
31281
|
-
}, null, 10,
|
|
31326
|
+
innerHTML: f.value
|
|
31327
|
+
}, null, 10, ve)
|
|
31282
31328
|
], 2)) : (openBlock(), createElementBlock("pre", {
|
|
31283
31329
|
key: 1,
|
|
31284
31330
|
class: normalizeClass(["scalar-component scalar-codeblock-pre", {
|
|
31285
|
-
"line-numbers":
|
|
31331
|
+
"line-numbers": n.lineNumbers
|
|
31286
31332
|
}])
|
|
31287
31333
|
}, [
|
|
31288
31334
|
createElementVNode("code", {
|
|
31289
31335
|
ref_key: "el",
|
|
31290
31336
|
ref: u,
|
|
31291
31337
|
class: normalizeClass(`scalar-codeblock-code lang-${a.value}`)
|
|
31292
|
-
}, toDisplayString(
|
|
31338
|
+
}, toDisplayString(n.content), 3)
|
|
31293
31339
|
], 2));
|
|
31294
31340
|
}
|
|
31295
|
-
}),
|
|
31296
|
-
const s = new r2().parseFromString(t2, "image/svg+xml");
|
|
31297
|
-
if (s.getElementsByTagName("parsererror").length)
|
|
31298
|
-
return;
|
|
31299
|
-
const u = s.documentElement, g = be(u.attributes), { width: a, height: o, ...n } = g;
|
|
31300
|
-
return h("svg", { ...n, innerHTML: u.innerHTML });
|
|
31301
|
-
}, _e = defineAsyncComponent(async () => {
|
|
31302
|
-
const r2 = typeof DOMParser > "u" ? (await import("./index-CpJxdgyL.js").then((n) => n.i)).DOMParser : DOMParser, t2 = we(r2);
|
|
31303
|
-
return t2.props = {
|
|
31304
|
-
raw: {
|
|
31305
|
-
type: String,
|
|
31306
|
-
required: true
|
|
31307
|
-
}
|
|
31308
|
-
}, t2;
|
|
31309
|
-
}), ke = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
31310
|
-
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.429"
|
|
31311
|
-
d="M24 1.714v44.572M1.714 24h44.572" />
|
|
31312
|
-
</svg>`, Se = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
|
|
31313
|
-
<path d="M11.2 23.5 0 12.3l2.15-2.15 9.05 9.05L30.4 0l2.15 2.15z" />
|
|
31314
|
-
</svg>`, Ce = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31315
|
-
<path d="M4.5 8.25L12 15.75L19.5 8.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31316
|
-
</svg>
|
|
31317
|
-
`, xe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31318
|
-
<path d="M15.75 19.5L8.25 12L15.75 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31319
|
-
</svg>
|
|
31320
|
-
`, ye = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31321
|
-
<path d="M8.25 19.5L15.75 12L8.25 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31322
|
-
</svg>`, Ee = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
31323
|
-
<path d="M19.5 15.75L12 8.25L4.5 15.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
31324
|
-
</svg>
|
|
31325
|
-
`, Le = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16">
|
|
31326
|
-
<path d="M6,5h4c1.7,0,2-1.3,2-3c1.1,0,2,0.9,2,2v10c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V4c0-1.1,0.9-2,2-2C4,3.7,4.3,5,6,5z M6,2V1
|
|
31327
|
-
c0-0.6,0.5-1,1-1h2c0.5,0,1,0.4,1,1v1.3C10,2.9,9.6,3,9,3H7C6.4,3,6,2.6,6,2z" />
|
|
31328
|
-
</svg>`, Ae = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
31329
|
-
<path stroke="currentColor" d="m12.5 1.5-11 11m0-11 11 11" />
|
|
31330
|
-
</svg>`, Te = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
|
31331
|
-
<path
|
|
31332
|
-
d="M9.557,7.243A.456.456,0,0,0,9.1,6.991C9.023,7,8.951,7,8.877,7A4,4,0,0,1,5.546.781.5.5,0,0,0,5.564.256.476.476,0,0,0,5.1,0,5,5,0,1,0,9.539,7.767.5.5,0,0,0,9.557,7.243Z"
|
|
31333
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31334
|
-
</svg>`, Me = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
31335
|
-
<path
|
|
31336
|
-
d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
|
|
31337
|
-
</svg>`, Ie = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
|
|
31338
|
-
<g fill="none" fill-rule="evenodd" transform="translate(.67 .67)">
|
|
31339
|
-
<rect transform="rotate(180 4 4)" />
|
|
31340
|
-
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"
|
|
31341
|
-
d="M2.85 1.73h3.4v3.4m0-3.4L1.74 6.24" />
|
|
31342
|
-
</g>
|
|
31343
|
-
</svg>`, Ne = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
|
|
31344
|
-
<path
|
|
31345
|
-
d="M512 0a512 512 0 0 0-162 998c26 4 35-11 35-25l-1-95c-128 23-161-32-172-60-6-15-31-61-52-73-18-10-44-33-1-33 40-1 69 37 78 52 46 78 120 56 149 43 5-33 18-56 33-69-114-13-234-56-234-253 0-56 20-101 53-137-5-13-23-65 5-136 0 0 43-13 141 53a487 487 0 0 1 256 0c98-66 141-53 141-53 28 71 10 123 5 136 33 36 53 81 53 137 0 197-120 240-234 253 18 16 35 47 35 95l-1 140c0 14 9 30 35 25A512 512 0 0 0 512 0z" />
|
|
31346
|
-
</svg>`, Oe = `<svg
|
|
31347
|
-
height="24"
|
|
31348
|
-
viewBox="0 0 24 24"
|
|
31349
|
-
width="24"
|
|
31350
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
31351
|
-
<path
|
|
31352
|
-
d="M24 12a1 1 0 0 0 -1 -1h-3.91a0.51 0.51 0 0 1 -0.49 -0.4 6.83 6.83 0 0 0 -0.94 -2.28 0.5 0.5 0 0 1 0.06 -0.63l2.77 -2.76a1 1 0 1 0 -1.42 -1.42l-2.76 2.77a0.5 0.5 0 0 1 -0.63 0.06 6.83 6.83 0 0 0 -2.28 -0.94 0.5 0.5 0 0 1 -0.4 -0.49V1a1 1 0 0 0 -2 0v3.91a0.51 0.51 0 0 1 -0.4 0.49 6.83 6.83 0 0 0 -2.28 0.94 0.5 0.5 0 0 1 -0.63 -0.06L4.93 3.51a1 1 0 0 0 -1.42 1.42l2.77 2.76a0.5 0.5 0 0 1 0.06 0.63 6.83 6.83 0 0 0 -0.94 2.28 0.5 0.5 0 0 1 -0.49 0.4H1a1 1 0 0 0 0 2h3.91a0.51 0.51 0 0 1 0.49 0.4 6.83 6.83 0 0 0 0.94 2.28 0.5 0.5 0 0 1 -0.06 0.63l-2.77 2.76a1 1 0 1 0 1.42 1.42l2.76 -2.77a0.5 0.5 0 0 1 0.63 -0.06 6.83 6.83 0 0 0 2.28 0.94 0.5 0.5 0 0 1 0.4 0.49V23a1 1 0 0 0 2 0v-3.91a0.51 0.51 0 0 1 0.4 -0.49 6.83 6.83 0 0 0 2.28 -0.94 0.5 0.5 0 0 1 0.63 0.06l2.76 2.77a1 1 0 1 0 1.42 -1.42l-2.77 -2.76a0.5 0.5 0 0 1 -0.06 -0.63 6.83 6.83 0 0 0 0.94 -2.28 0.5 0.5 0 0 1 0.49 -0.4H23a1 1 0 0 0 1 -1Zm-8.74 2.5A5.76 5.76 0 0 1 9.5 8.74a5.66 5.66 0 0 1 0.16 -1.31 0.49 0.49 0 0 1 0.34 -0.36 5.36 5.36 0 0 1 1.8 -0.31 5.47 5.47 0 0 1 5.46 5.46 5.36 5.36 0 0 1 -0.31 1.8 0.49 0.49 0 0 1 -0.35 0.32 5.53 5.53 0 0 1 -1.34 0.16Z"
|
|
31353
|
-
fill="currentColor"
|
|
31354
|
-
stroke-width="1"></path>
|
|
31355
|
-
</svg>`, Be = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
|
31356
|
-
<path d="M3.500 5.000 A1.500 1.500 0 1 0 6.500 5.000 A1.500 1.500 0 1 0 3.500 5.000 Z" fill="currentColor"
|
|
31357
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31358
|
-
<path d="M5,2.25a.625.625,0,0,1-.625-.625v-1a.625.625,0,0,1,1.25,0v1A.625.625,0,0,1,5,2.25Z" fill="currentColor"
|
|
31359
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31360
|
-
<path d="M6.945,3.055a.623.623,0,0,1,0-.883l.707-.708a.625.625,0,0,1,.884.884l-.708.707A.623.623,0,0,1,6.945,3.055Z"
|
|
31361
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31362
|
-
<path d="M7.75,5a.625.625,0,0,1,.625-.625h1a.625.625,0,0,1,0,1.25h-1A.625.625,0,0,1,7.75,5Z" fill="currentColor"
|
|
31363
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31364
|
-
<path d="M6.945,6.945a.623.623,0,0,1,.883,0l.708.707a.625.625,0,0,1-.884.884l-.707-.708A.623.623,0,0,1,6.945,6.945Z"
|
|
31365
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31366
|
-
<path d="M5,7.75a.625.625,0,0,1,.625.625v1a.625.625,0,0,1-1.25,0v-1A.625.625,0,0,1,5,7.75Z" fill="currentColor"
|
|
31367
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31368
|
-
<path
|
|
31369
|
-
d="M3.055,6.945a.623.623,0,0,1,0,.883l-.707.708a.625.625,0,0,1-.884-.884l.708-.707A.623.623,0,0,1,3.055,6.945Z"
|
|
31370
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31371
|
-
<path d="M2.25,5a.625.625,0,0,1-.625.625h-1a.625.625,0,0,1,0-1.25h1A.625.625,0,0,1,2.25,5Z" fill="currentColor"
|
|
31372
|
-
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31373
|
-
<path
|
|
31374
|
-
d="M3.055,3.055a.623.623,0,0,1-.883,0l-.708-.707a.625.625,0,0,1,.884-.884l.707.708A.623.623,0,0,1,3.055,3.055Z"
|
|
31375
|
-
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
31376
|
-
</svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
|
|
31377
|
-
<path fill="currentColor" fill-rule="evenodd"
|
|
31378
|
-
d="M347 0c6 0 12 5 12 12v134l94-95c5-5 13-5 17 0l72 72c4 4 5 12 0 16v1l-95 94h134c7 0 12 5 12 12v101c0 7-5 12-12 12H447l95 94c4 5 5 13 0 17l-72 72c-4 4-12 5-16 0h-1l-94-95v134c0 7-5 12-12 12H246c-7 0-12-5-12-12v-70c0-22 9-43 24-59l130-130c14-14 14-37 0-51L259 142a84 84 0 0 1-25-59V12c0-7 5-12 12-12h101ZM138 52h1l219 219c14 14 14 37 0 51L139 542c-4 5-12 5-17 0l-71-70c-4-5-5-12 0-17l95-96H12c-7 0-12-5-12-12V246c0-7 5-12 12-12h134l-95-94c-4-5-4-12 0-17l71-71c4-5 12-5 16 0Z" />
|
|
31379
|
-
</svg>`, Re = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
|
|
31380
|
-
<path fill-rule="evenodd" fill="currentColor"
|
|
31381
|
-
d="M331 0a331 331 0 1 1 0 662 331 331 0 0 1 0-662Zm148.5 109 .6.9a187 187 0 1 1-297.6-.9 267 267 0 1 0 297 0Z" />
|
|
31382
|
-
</svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
|
|
31383
|
-
<path fill="currentColor"
|
|
31384
|
-
d="M-.653 309.29c-.078 82.272 31.848 159.735 89.739 218.178l.283.283c122.379 121.247 319.824 121.184 440.16-.283 119.967-121.1 119.409-316.933-.998-437.339l-.99-.99C468.681 30.845 390.716-1.017 307.893-.67c-82.83.354-160.443 32.994-218.814 91.79C31.209 149.555-.724 227.025-.653 309.29Zm469.271-160.789.778.778c87.9 87.9 88.325 231.005.707 319.33-77.753 78.46-199.786 87.412-288.959 26.862l198.513-198.513-.007 166.361 83.68-.07v-306.22H157.11l-.008 83.6h160.584L121.994 436.323c-59.347-87.689-50.536-208.59 26.51-286.343C236.34 61.294 379.94 60.67 468.61 148.494Z" />
|
|
31385
|
-
</svg>`, Pe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
|
|
31386
|
-
<path
|
|
31387
|
-
d="M321 0a321 321 0 1 1 0 642 321 321 0 0 1 0-642Zm51.3 63L321 189.5 269.7 63l1 136.5-95.8-97.2L228 228l-125.7-53.1 97.2 95.8-136.5-1L189.5 321 63 372.3l136.5-1-97.2 95.8 125.7-53-53.1 125.6 95.8-97.2-1 136.5L321 452.5 372.3 579l-1-136.5 95.8 97.2-53-125.7 125.6 53.1-97.2-95.8 136.5 1L452.5 321 579 269.7l-136.5 1 97.2-95.8L414 228l53.1-125.7-95.8 97.2 1-136.5Z" />
|
|
31388
|
-
</svg>`, He = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
|
|
31389
|
-
<path
|
|
31390
|
-
d="M529.2 90.8A310 310 0 1 0 90.8 529.2 310 310 0 0 0 529.2 90.8M122.4 498.2c-54.9-55-15.4-183.5 88.2-287 103.6-103.7 232.1-143.2 287-88.3 54.9 54.8 15.4 183.4-88.3 287-103.5 103.6-232 143.1-286.9 88.3m261.8-262.7A104.7 104.7 0 1 1 236 383.7a104.7 104.7 0 0 1 148.2-148.2" />
|
|
31391
|
-
</svg>`, $e = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
|
|
31392
|
-
<path fill="none" stroke="currentColor" d="M14 3.4H0m14 7.2H0" />
|
|
31393
|
-
</svg>`, Ge = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
31394
|
-
<path fill="currentColor" fill-rule="evenodd"
|
|
31395
|
-
d="M11.8214 0.0977942C12.1097 -0.00745677 12.4219 -0.0286524 12.7219 0.0367783C13.0248 0.102864 13.3024 0.254542 13.5216 0.47378C13.7408 0.693018 13.8925 0.970598 13.9586 1.27352C14.024 1.57344 14.0028 1.88572 13.8976 2.17395L10.3236 12.8859L10.3234 12.8866C10.2363 13.1501 10.083 13.3868 9.8781 13.574C9.6738 13.7606 9.42509 13.8918 9.15572 13.9549C8.8863 14.0206 8.60441 14.0151 8.33774 13.9389C8.07131 13.8628 7.82926 13.7187 7.63529 13.5209L5.71795 11.6124L3.70389 12.6538C3.54684 12.7351 3.35857 12.7273 3.20874 12.6334C3.05892 12.5395 2.96981 12.3735 2.9744 12.1967L3.05697 9.013L10.1019 3.8956C10.3812 3.69273 10.4432 3.30188 10.2403 3.02261C10.0374 2.74333 9.64659 2.68139 9.36731 2.88425L2.20283 8.08846L0.473125 6.35875L0.473067 6.3587L0.472941 6.35857C0.285618 6.17138 0.147716 5.9406 0.0716193 5.68694C-0.00393616 5.43509 -0.0162115 5.16853 0.0358379 4.91085C0.0879545 4.62934 0.213796 4.36664 0.400577 4.14957C0.588637 3.93101 0.83165 3.76664 1.1045 3.67345L1.10787 3.6723L1.10787 3.67231L11.8214 0.0977942Z"
|
|
31396
|
-
clip-rule="evenodd"></path>
|
|
31397
|
-
</svg>`, je = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
|
|
31398
|
-
<path fill-rule="evenodd"
|
|
31399
|
-
d="M12.6 11.2h.1l3 3a1 1 0 1 1-1.4 1.5l-3-3a1 1 0 0 1-.1-.1 7 7 0 1 1 1.4-1.4zM7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10z" />
|
|
31400
|
-
</svg>`, D = /* @__PURE__ */ Object.assign({ "./Add.svg": ke, "./CheckMark.svg": Se, "./ChevronDown.svg": Ce, "./ChevronLeft.svg": xe, "./ChevronRight.svg": ye, "./ChevronUp.svg": Ee, "./Clipboard.svg": Le, "./Close.svg": Ae, "./DarkMode.svg": Te, "./Ellipses.svg": Me, "./ExternalLink.svg": Ie, "./GitHub.svg": Ne, "./LightDarkModeToggle.svg": Oe, "./LightMode.svg": Be, "./Logo.svg": De, "./LogoAPI.svg": Re, "./LogoClient.svg": ze, "./LogoMarket.svg": Pe, "./LogoSwagger.svg": He, "./Menu.svg": $e, "./PaperAirplane.svg": Ge, "./Search.svg": je }), Ve = (r2) => {
|
|
31341
|
+
}), R = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-MwmVL5-v-3DrL2GXw.js"), "./CheckMark.svg": () => import("./CheckMark-t0gl4N9U-BE06BAQA.js"), "./ChevronDown.svg": () => import("./ChevronDown-BfsntkAH-BOGiF9uG.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-gsLd5xOQ-Z0Ct_Vv2.js"), "./ChevronRight.svg": () => import("./ChevronRight-CI_7n_av-BCFTpQ51.js"), "./ChevronUp.svg": () => import("./ChevronUp-CjHRmG59-B93Q9llD.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-DFM1qMQH-DMPtwWpT.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./ExternalLink.svg": () => import("./ExternalLink-D5zCsWas-MT2ACYLZ.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Menu.svg": () => import("./Menu-DFi9Laso-BhIZrQxp.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./arrow-chevron-down.svg": () => import("./arrow-chevron-down-C8nXK33Q-cFi1tcoL.js"), "./arrow-chevron-left.svg": () => import("./arrow-chevron-left-BXUhHSEc-GDsvyOvS.js"), "./arrow-chevron-right.svg": () => import("./arrow-chevron-right-CSqjaNKG-DLqk_P-k.js"), "./arrow-chevron-up.svg": () => import("./arrow-chevron-up-Dr-W1IfM-CJpftEXD.js"), "./arrow-down.svg": () => import("./arrow-down-rfW-r_qd-DCnCiMpp.js"), "./arrow-left.svg": () => import("./arrow-left-DDkHt-xN-CFh-lXGZ.js"), "./arrow-right.svg": () => import("./arrow-right-17dZkGZR-C5So-BEm.js"), "./arrow-up.svg": () => import("./arrow-up-CexG2Ble-BlrsZtgs.js"), "./brand-software-development-github.svg": () => import("./brand-software-development-github-ZQnPxpDg-9BAblfAs.js"), "./interface-add.svg": () => import("./interface-add-Bthe4y9O-EDM5uqD-.js"), "./interface-close.svg": () => import("./interface-close-WpJOu-2h-W6lKje7S.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7-XJbYjh7O.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), P = (r2) => {
|
|
31401
31342
|
const t2 = `./${r2}.svg`;
|
|
31402
|
-
return
|
|
31403
|
-
},
|
|
31343
|
+
return R[t2] ? defineAsyncComponent(R[t2]) : (console.warn(`Could not find icon: ${r2}`), null);
|
|
31344
|
+
}, be = ["src"], j = /* @__PURE__ */ defineComponent({
|
|
31404
31345
|
__name: "ScalarIcon",
|
|
31405
31346
|
props: {
|
|
31406
31347
|
icon: {},
|
|
31407
31348
|
size: {}
|
|
31408
31349
|
},
|
|
31409
31350
|
setup(r2) {
|
|
31410
|
-
const t2 = r2, e =
|
|
31351
|
+
const t2 = r2, e = I({
|
|
31411
31352
|
variants: {
|
|
31412
31353
|
size: {
|
|
31413
31354
|
xs: "h-3 w-3",
|
|
@@ -31421,12 +31362,14 @@ const fe = ["innerHTML"], ct = /* @__PURE__ */ defineComponent({
|
|
|
31421
31362
|
defaultVariants: {
|
|
31422
31363
|
size: "full"
|
|
31423
31364
|
}
|
|
31424
|
-
}),
|
|
31425
|
-
return (u,
|
|
31365
|
+
}), d = P(t2.icon);
|
|
31366
|
+
return (u, f) => unref(d) ? (openBlock(), createBlock(resolveDynamicComponent(unref(P)(u.icon)), {
|
|
31426
31367
|
key: 0,
|
|
31427
|
-
class: normalizeClass(unref(
|
|
31428
|
-
|
|
31429
|
-
|
|
31368
|
+
class: normalizeClass(unref(S)("scalar-icon", unref(e)({ size: u.size })))
|
|
31369
|
+
}, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
|
|
31370
|
+
key: 1,
|
|
31371
|
+
src: u.icon
|
|
31372
|
+
}, null, 8, be));
|
|
31430
31373
|
}
|
|
31431
31374
|
});
|
|
31432
31375
|
const _hoisted_1$f = { class: "table" };
|
|
@@ -31587,7 +31530,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
31587
31530
|
onClick: addHandler
|
|
31588
31531
|
}, [
|
|
31589
31532
|
createElementVNode("i", _hoisted_24, [
|
|
31590
|
-
createVNode(unref(
|
|
31533
|
+
createVNode(unref(j), { icon: "Add" })
|
|
31591
31534
|
]),
|
|
31592
31535
|
createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
|
|
31593
31536
|
])) : createCommentVNode("", true),
|
|
@@ -31599,7 +31542,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
31599
31542
|
}, [
|
|
31600
31543
|
createTextVNode(" Show More "),
|
|
31601
31544
|
createElementVNode("i", _hoisted_25, [
|
|
31602
|
-
createVNode(unref(
|
|
31545
|
+
createVNode(unref(j), { icon: "ChevronDown" })
|
|
31603
31546
|
])
|
|
31604
31547
|
])) : createCommentVNode("", true)
|
|
31605
31548
|
])
|
|
@@ -32046,7 +31989,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32046
31989
|
return openBlock(), createBlock(unref(_sfc_main$j), { title: "Body" }, {
|
|
32047
31990
|
default: withCtx(() => [
|
|
32048
31991
|
_ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
32049
|
-
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(
|
|
31992
|
+
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(He), {
|
|
32050
31993
|
key: 0,
|
|
32051
31994
|
class: "custom-scroll",
|
|
32052
31995
|
content: _ctx.data,
|