@scalar/api-reference 1.20.7 → 1.20.9
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 +18 -0
- package/dist/Add-MwmVL5-v-BeXmeac3.js +22 -0
- package/dist/Add-MwmVL5-v-Cpy9xzNt.cjs +1 -0
- package/dist/CheckMark-t0gl4N9U-BSJdmSYZ.cjs +1 -0
- package/dist/CheckMark-t0gl4N9U-BtMLa6Qj.js +16 -0
- package/dist/ChevronDown-CSOB0535-BuqHm85k.js +24 -0
- package/dist/ChevronDown-CSOB0535-CX_iXGyG.cjs +1 -0
- package/dist/ChevronLeft-DusxsQw--BoXvu7F6.js +24 -0
- package/dist/ChevronLeft-DusxsQw--DJdG5EsS.cjs +1 -0
- package/dist/ChevronRight-DgANAl_6-CJaEQR4M.cjs +1 -0
- package/dist/ChevronRight-DgANAl_6-U5dOKUXc.js +24 -0
- package/dist/ChevronUp-BbfQZGKP-CV9n1jER.cjs +1 -0
- package/dist/ChevronUp-BbfQZGKP-DnU7fPVR.js +24 -0
- package/dist/Clipboard-CU_KxGEv-DuOPrhqK.js +16 -0
- package/dist/Clipboard-CU_KxGEv-jXeM-Shn.cjs +1 -0
- package/dist/Close-DFM1qMQH-DKJrvjUb.js +19 -0
- package/dist/Close-DFM1qMQH-DcOjuJhp.cjs +1 -0
- package/dist/DarkMode-CBsV8Q_I-C-P5vpQi.js +18 -0
- package/dist/DarkMode-CBsV8Q_I-KODSbuOz.cjs +1 -0
- package/dist/Ellipses-Bo_X36Hx-1Rf8jX_Q.cjs +1 -0
- package/dist/Ellipses-Bo_X36Hx-D4ayuQAy.js +16 -0
- package/dist/ExternalLink-D5zCsWas-D3-z4Da9.js +28 -0
- package/dist/ExternalLink-D5zCsWas-DtcGwFBe.cjs +1 -0
- package/dist/GitHub-NdE6Zs9k-CDcqenD_.cjs +1 -0
- package/dist/GitHub-NdE6Zs9k-CxmMd7Ky.js +16 -0
- package/dist/LightDarkModeToggle-BkvMimDa-CCZGR9vi.js +20 -0
- package/dist/LightDarkModeToggle-BkvMimDa-D2TvUWMc.cjs +1 -0
- package/dist/LightMode-Btz6vyT_-BTswDMO7.cjs +1 -0
- package/dist/LightMode-Btz6vyT_-D8lhPTNZ.js +18 -0
- package/dist/Logo-mtzeKD8M-BPvZdgPX.cjs +1 -0
- package/dist/Logo-mtzeKD8M-_nfcd_3S.js +19 -0
- package/dist/LogoAPI-CaU5E6FK-BIDyFPeR.js +19 -0
- package/dist/LogoAPI-CaU5E6FK-H9aWX-Pj.cjs +1 -0
- package/dist/LogoClient-DdC-t_7P-BJVLusot.js +18 -0
- package/dist/LogoClient-DdC-t_7P-CN0J-Vs6.cjs +1 -0
- package/dist/LogoMarket-DwlApcab-BpTQzqp5.js +16 -0
- package/dist/LogoMarket-DwlApcab-C3B4miZm.cjs +1 -0
- package/dist/LogoSwagger-CH60H5qW--whYwExv.js +16 -0
- package/dist/LogoSwagger-CH60H5qW-56_9U30I.cjs +1 -0
- package/dist/Menu-DFi9Laso-B_NYiSYW.cjs +1 -0
- package/dist/Menu-DFi9Laso-OUE38Mf8.js +20 -0
- package/dist/PaperAirplane-BC-4mGEB-CC_xr_GF.js +21 -0
- package/dist/PaperAirplane-BC-4mGEB-CUmTyNIM.cjs +1 -0
- package/dist/Search-DqtlswRG-C2Pti_ld.js +19 -0
- package/dist/Search-DqtlswRG-Cn8bmF-2.cjs +1 -0
- package/dist/arrow-chevron-down-DraTmtzQ-Bxuf638_.js +22 -0
- package/dist/arrow-chevron-down-DraTmtzQ-Ccv4Eg8C.cjs +1 -0
- package/dist/arrow-chevron-left-AE5dugcd-CJ5pbO2B.cjs +1 -0
- package/dist/arrow-chevron-left-AE5dugcd-CTnZepiJ.js +22 -0
- package/dist/arrow-chevron-right-DbHwONUO-Dh8rkhyL.js +22 -0
- package/dist/arrow-chevron-right-DbHwONUO-uphJru7Q.cjs +1 -0
- package/dist/arrow-chevron-up-C2T-G4GN-Dl31SleQ.js +22 -0
- package/dist/arrow-chevron-up-C2T-G4GN-WztJiBkw.cjs +1 -0
- package/dist/arrow-down-rfW-r_qd-7uVIv8Xj.js +22 -0
- package/dist/arrow-down-rfW-r_qd-CB4QKvc5.cjs +1 -0
- package/dist/arrow-left-DDkHt-xN-CHt49uCP.cjs +1 -0
- package/dist/arrow-left-DDkHt-xN-CrsVkvcK.js +22 -0
- package/dist/arrow-right-17dZkGZR-BhtMoPY2.js +22 -0
- package/dist/arrow-right-17dZkGZR-HKHoEiUe.cjs +1 -0
- package/dist/arrow-up-CexG2Ble-CEDM0GGI.js +22 -0
- package/dist/arrow-up-CexG2Ble-H6c2u01D.cjs +1 -0
- package/dist/brand-software-development-github-ZQnPxpDg-D7aX_GtH.cjs +1 -0
- package/dist/brand-software-development-github-ZQnPxpDg-DmL-9cU6.js +16 -0
- package/dist/browser/standalone.js +13 -13
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/index.cjs +1441 -0
- package/dist/index.css +1 -0
- package/dist/index.js +10291 -10623
- package/dist/interface-add-Bthe4y9O-BJ01MrNG.cjs +1 -0
- package/dist/interface-add-Bthe4y9O-Cdr7NyPT.js +22 -0
- package/dist/interface-close-WpJOu-2h-BqME0WlY.cjs +1 -0
- package/dist/interface-close-WpJOu-2h-DN9XGInZ.js +22 -0
- package/dist/prism-autoloader-Dlh8Vzlw--ejn04HW.cjs +1 -0
- package/dist/programming-framework-angular-DD4Vjgbk-BVT4AoJo.cjs +1 -0
- package/dist/programming-framework-angular-DD4Vjgbk-CUF3ZYYB.js +16 -0
- package/dist/programming-framework-astro-CLfrRt19-CH6OCtd8.js +16 -0
- package/dist/programming-framework-astro-CLfrRt19-CWwhfV7_.cjs +1 -0
- package/dist/programming-framework-laravel-kAy2wVLy-C3EZCsGC.cjs +1 -0
- package/dist/programming-framework-laravel-kAy2wVLy-kXRM5aCd.js +21 -0
- package/dist/programming-framework-nextdotjs-BKdd_DY_-DF9m888v.js +16 -0
- package/dist/programming-framework-nextdotjs-BKdd_DY_-DdOe6YSk.cjs +1 -0
- package/dist/programming-framework-react-PDgmtZuN-4I-M6WEO.cjs +1 -0
- package/dist/programming-framework-react-PDgmtZuN-DZjob66N.js +16 -0
- package/dist/programming-framework-vuedotjs-Cv46W2aB-5jp2dhVz.js +18 -0
- package/dist/programming-framework-vuedotjs-Cv46W2aB-CSjgwP_a.cjs +1 -0
- package/dist/programming-language-c-hPGu2Zvg-BesPZa4K.js +16 -0
- package/dist/programming-language-c-hPGu2Zvg-DS__u0q2.cjs +1 -0
- package/dist/programming-language-clojure-Cvmzky8x-BfidiK-3.js +15 -0
- package/dist/programming-language-clojure-Cvmzky8x-DNGq1StI.cjs +1 -0
- package/dist/programming-language-csharp-lqX1oWgb-CxB0WO6j.cjs +1 -0
- package/dist/programming-language-csharp-lqX1oWgb-D-Mz5PM1.js +15 -0
- package/dist/programming-language-css3-Dpp4Cr6b-BpPnE1ET.cjs +1 -0
- package/dist/programming-language-css3-Dpp4Cr6b-Dpx1zlAe.js +16 -0
- package/dist/programming-language-go-DoJxWwT6-Bayz8oGO.js +15 -0
- package/dist/programming-language-go-DoJxWwT6-Cglob461.cjs +1 -0
- package/dist/programming-language-html5-DlqJK4EL-DFJ6lim3.cjs +1 -0
- package/dist/programming-language-html5-DlqJK4EL-DfQp7LQz.js +16 -0
- package/dist/programming-language-http-wMYwFS1I-CibNNxob.cjs +1 -0
- package/dist/programming-language-http-wMYwFS1I-nvzm47LE.js +20 -0
- package/dist/programming-language-java-BCxG2T_w-01jrBctS.js +26 -0
- package/dist/programming-language-java-BCxG2T_w-CK_n5AN7.cjs +1 -0
- package/dist/programming-language-javascript-VxLvi1QG-CaGGjM9H.cjs +1 -0
- package/dist/programming-language-javascript-VxLvi1QG-qbgoUfZ8.js +16 -0
- package/dist/programming-language-json-vEX_g7Zi-D-_9dDj_.js +22 -0
- package/dist/programming-language-json-vEX_g7Zi-DzQJGa14.cjs +1 -0
- package/dist/programming-language-kotlin-DKV8vP9h-C-cTXwXu.js +15 -0
- package/dist/programming-language-kotlin-DKV8vP9h-DlGiFCvD.cjs +1 -0
- package/dist/programming-language-node-Xsgx38lm-4rntKdSG.cjs +1 -0
- package/dist/programming-language-node-Xsgx38lm-Be410R9Y.js +18 -0
- package/dist/programming-language-objc-BQXSOBsX-ChHn3rog.cjs +1 -0
- package/dist/programming-language-objc-BQXSOBsX-UyJQMZSh.js +16 -0
- package/dist/programming-language-ocaml-BEz7gGv7-L9a3ID8U.js +15 -0
- package/dist/programming-language-ocaml-BEz7gGv7-pjGiVCW2.cjs +1 -0
- package/dist/programming-language-php-GY38f8r4-ahFMWcim.cjs +1 -0
- package/dist/programming-language-php-GY38f8r4-jRMN5AZX.js +16 -0
- package/dist/programming-language-powershell-C9DkSp36-C7fZCJBW.js +19 -0
- package/dist/programming-language-powershell-C9DkSp36-RwdG5MCL.cjs +1 -0
- package/dist/programming-language-python-Ct-_kNjo-DsKRdoNg.js +16 -0
- package/dist/programming-language-python-Ct-_kNjo-ujN06OXX.cjs +1 -0
- package/dist/programming-language-r-BGoKwua9-BguWvgpu.js +19 -0
- package/dist/programming-language-r-BGoKwua9-DynRqt7q.cjs +1 -0
- package/dist/programming-language-ruby-DhdM4d7g-BuT1i5is.js +16 -0
- package/dist/programming-language-ruby-DhdM4d7g-DFwAUdk6.cjs +1 -0
- package/dist/programming-language-scala-BVg0dToJ-Dhg_XTFe.cjs +1 -0
- package/dist/programming-language-scala-BVg0dToJ-p_n-G2sI.js +16 -0
- package/dist/programming-language-shell-BsTa1xI7-CEpfIQQF.cjs +1 -0
- package/dist/programming-language-shell-BsTa1xI7-Mbhl6UDK.js +16 -0
- package/dist/programming-language-swift-Dn72xPjg-D-JnfNts.js +16 -0
- package/dist/programming-language-swift-Dn72xPjg-DtICVxss.cjs +1 -0
- package/dist/programming-language-typescript-CdF-HuRi-jq2P_J1a.cjs +1 -0
- package/dist/programming-language-typescript-CdF-HuRi-ocSQSwHb.js +16 -0
- package/dist/programming-script-code-DQN1veb2-CcjBWaNF.js +22 -0
- package/dist/programming-script-code-DQN1veb2-DWnN18iL.cjs +1 -0
- package/dist/programming-tool-git-DDnQ1zGD-Bi0r1H3m.cjs +1 -0
- package/dist/programming-tool-git-DDnQ1zGD-CGHot6Y8.js +18 -0
- package/dist/programming-tool-tailwindcss-xjXi0E6g-CpFF5bAj.cjs +1 -0
- package/dist/programming-tool-tailwindcss-xjXi0E6g-r5YhtCAf.js +16 -0
- package/dist/schema-BQQoKgNw-CyFt8nZw.cjs +1 -0
- package/dist/schema-BjykgtPd-C_N_PTsi.cjs +1 -0
- package/dist/schema-ZROhtp0X-DL6m5HXA.cjs +1 -0
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/components/Icon/Icon.vue.d.ts +0 -18
- package/dist/components/Icon/Icon.vue.d.ts.map +0 -1
- package/dist/components/Icon/SvgRenderer.d.ts +0 -7
- package/dist/components/Icon/SvgRenderer.d.ts.map +0 -1
- package/dist/components/Icon/icons/index.d.ts +0 -3
- package/dist/components/Icon/icons/index.d.ts.map +0 -1
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/Icon/index.d.ts.map +0 -1
- package/dist/components/Icon/localIcons.d.ts +0 -11
- package/dist/components/Icon/localIcons.d.ts.map +0 -1
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,1441 @@
|
|
|
1
|
+
var Lk=Object.defineProperty;var Fk=(r,e,t)=>e in r?Lk(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ud=(r,e,t)=>(Fk(r,typeof e!="symbol"?e+"":e,t),t);var T9=require("./index.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),we=require("@headlessui/vue"),Xe=require("@vueuse/core"),B0=require("axios"),Hk=require("@vcarl/remark-headings"),gc=require("github-slugger"),Z0=require("remark-parse"),Gk=require("remark-stringify"),I0=require("unified"),j0=require("httpsnippet-lite"),mm=require("unhead"),D0=require("vue-sonner"),Kk=require("rehype-external-links"),Jk=require("rehype-format"),eS=require("rehype-highlight"),tS=require("rehype-raw"),hd=require("rehype-sanitize"),rS=require("rehype-stringify"),nS=require("remark-gfm"),oS=require("remark-rehype"),Ls=require("@floating-ui/vue"),sS=require("fuse.js"),iS=".light-mode,.light-mode .dark-mode{--default-theme-background-1: #f9f9f9;--default-theme-background-2: #f1f1f1;--default-theme-background-3: #e7e7e7;--default-theme-background-card: #fff;--default-theme-color-1: #2a2f45;--default-theme-color-2: #757575;--default-theme-color-3: #8e8e8e;--default-theme-color-accent: var(--default-theme-color-1);--default-theme-background-accent: var(--default-theme-background-3);--default-theme-border-color: rgba(0, 0, 0, .1);--default-theme-code-languages-background-supersede: var( --default-theme-background-1 );--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.dark-mode{--default-theme-background-1: #131313;--default-theme-background-2: #1d1d1d;--default-theme-background-3: #272727;--default-theme-background-card: #1d1d1d;--default-theme-color-1: rgba(255, 255, 255, .9);--default-theme-color-2: rgba(255, 255, 255, .62);--default-theme-color-3: rgba(255, 255, 255, .44);--default-theme-color-accent: var(--default-theme-color-1);--default-theme-background-accent: var(--default-theme-background-3);--default-theme-border-color: rgba(255, 255, 255, .1);--default-theme-code-languages-background-supersede: var( --default-theme-background-3 );--default-theme-code-language-color-supersede: var(--default-theme-color-3)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-active-background: var( --default-theme-background-accent );--default-sidebar-color-active: var(--default-theme-color-accent);--default-sidebar-search-background: transparent;--default-sidebar-search-color: var(--default-theme-color-3);--default-sidebar-search-border-color: var(--default-theme-border-color)}.light-mode .dark-mode,.light-mode{--default-theme-color-green: #069061;--default-theme-color-red: #ef0006;--default-theme-color-yellow: #edbe20;--default-theme-color-blue: #0082d0;--default-theme-color-orange: #fb892c;--default-theme-color-purple: #5203d1}.dark-mode{--default-theme-color-green: #00b648;--default-theme-color-red: #dd2f2c;--default-theme-color-yellow: #ffc90d;--default-theme-color-blue: #4eb3ec;--default-theme-color-orange: #ff8d4d;--default-theme-color-purple: #b191f9}.code-languages-background:before{box-shadow:inset 0 0 0 1px var(--default-theme-border-color)!important}.scalar-api-client__item,.scalar-card,.dark-mode .dark-mode.scalar-card{--default-theme-background-1: var(--default-theme-background-card);--default-theme-background-2: var(--default-theme-background-1);--default-theme-background-3: var(--default-theme-background-1)}.dark-mode .dark-mode.scalar-card{--default-theme-background-3: var(--default-theme-background-3)}.dark-mode .show-api-client-button span,.dark-mode .show-api-client-button svg{color:var(--default-theme-background-3)}.dark-mode .show-api-client-button{background:var(--default-theme-color-1)!important}.t-doc__sidebar{--default-theme-color-green: var(--default-theme-color-1);--default-theme-color-red: var(--default-theme-color-1);--default-theme-color-yellow: var(--default-theme-color-1);--default-theme-color-blue: var(--default-theme-color-1);--default-theme-color-orange: var(--default-theme-color-1);--default-theme-color-purple: var(--default-theme-color-1)}.download-cta a,.references-rendered .markdown a{color:var(--default-theme-color-1)!important;text-decoration:underline!important}",aS=".light-mode{--default-theme-background-1: #f0f2f5;--default-theme-background-2: #eaecf0;--default-theme-background-3: #e0e2e6;--default-theme-border-color: rgb(228, 228, 231);--default-theme-color-1: rgb(9, 9, 11);--default-theme-color-2: rgb(113, 113, 122);--default-theme-color-3: rgba(25, 25, 28, .5);--default-theme-color-accent: var(--default-theme-color-1);--default-theme-background-accent: #8ab4f81f;--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.light-mode .scalar-card.dark-mode,.dark-mode{--default-theme-background-1: #000e23;--default-theme-background-2: #01132e;--default-theme-background-3: #03193b;--default-theme-border-color: rgba(255, 255, 255, .12);--default-theme-color-1: #fafafa;--default-theme-color-2: rgb(161, 161, 170);--default-theme-color-3: rgba(255, 255, 255, .533);--default-theme-color-accent: var(--default-theme-color-1);--default-theme-background-accent: #8ab4f81f;--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-active-background: var(--default-theme-background-3);--default-sidebar-color-active: var(--default-theme-color-accent);--default-sidebar-search-background: rgba(255, 255, 255, .1);--default-sidebar-search-border-color: var(--default-theme-border-color);--default-sidebar-search-color: var(--default-theme-color-3);z-index:1}.light-mode .t-doc__sidebar{--default-sidebar-search-background: white}.light-mode{--default-theme-color-green: #069061;--default-theme-color-red: #ef0006;--default-theme-color-yellow: #edbe20;--default-theme-color-blue: #0082d0;--default-theme-color-orange: #fb892c;--default-theme-color-purple: #5203d1}.dark-mode{--default-theme-color-green: rgba(69, 255, 165, .823);--default-theme-color-red: #ff8589;--default-theme-color-yellow: #ffcc4d;--default-theme-color-blue: #6bc1fe;--default-theme-color-orange: #f98943;--default-theme-color-purple: #b191f9}.show-api-client-button:before{background:#fff!important}.show-api-client-button span,.show-api-client-button svg{color:#000!important}.download-cta,.references-rendered .markdown a{text-decoration:underline!important}@keyframes headerbackground{0%{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}to{background:var(--header-background-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.code-languages-background{background:var(--default-theme-background-1)!important}.code-languages-background:before{box-shadow:inset 0 0 0 2px var(--default-theme-border-color);background:linear-gradient(to right top,#d3e1f91f,#d1dff71c,#dfe9fb4a)!important}.light-mode .code-languages-background:before{background:linear-gradient(to right top,#00000014,#00000012,#00000030)!important}.code-languages__active .code-languages-background:before{background:var(--default-theme-background-1)!important}.code-languages span{margin-top:5px!important}.section-flare-item:nth-of-type(1){--c1: #ffffff;--c2: #babfd8;--c3: #2e8bb2;--c4: #1a8593;--c5: #0a143e;--c6: #0a0f52;--c7: #2341b8;--solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7);--solid-wrap: var(--solid), var(--c1);--trans: var(--c1), transparent, var(--c2), transparent, var(--c3), transparent, var(--c4), transparent, var(--c5), transparent, var(--c6), transparent, var(--c7);--trans-wrap: var(--trans), transparent, var(--c1);background:radial-gradient(circle,var(--trans)),conic-gradient(from 180deg,var(--trans-wrap)),radial-gradient(circle,var(--trans)),conic-gradient(var(--solid-wrap));width:70vw;height:700px;border-radius:50%;filter:blur(100px);z-index:0;right:0;position:absolute;transform:rotate(-45deg);top:-300px;opacity:.3}.section-flare-item:nth-of-type(3){--star-color: #6b9acc;--star-color2: #446b8d;--star-color3: #3e5879;background-image:radial-gradient(2px 2px at 20px 30px,var(--star-color2),rgba(0,0,0,0)),radial-gradient(2px 2px at 40px 70px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 50px 160px,var(--star-color3),rgba(0,0,0,0)),radial-gradient(2px 2px at 90px 40px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 130px 80px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 160px 120px,var(--star-color3),rgba(0,0,0,0));background-repeat:repeat;background-size:200px 200px;width:100%;height:100%;-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%)}.section-flare{top:-150px!important;height:100vh;background:linear-gradient(#000,var(--default-theme-background-1));width:100vw}.light-mode .section-flare{display:none}.light-mode .scalar-card{--default-theme-background-1: #fff;--default-theme-background-2: #fff;--default-theme-background-3: #fff}",lS='.light-mode{--default-theme-color-1: rgb(9, 9, 11);--default-theme-color-2: rgb(113, 113, 122);--default-theme-color-3: rgba(25, 25, 28, .5);--default-theme-color-accent: var(--default-theme-color-1);--default-theme-background-1: #fff;--default-theme-background-2: #f4f4f5;--default-theme-background-3: #e3e3e6;--default-theme-background-accent: #8ab4f81f;--default-theme-border-color: rgb(228, 228, 231);--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.dark-mode{--default-theme-color-1: #fafafa;--default-theme-color-2: rgb(161, 161, 170);--default-theme-color-3: rgba(255, 255, 255, .533);--default-theme-color-accent: var(--default-theme-color-1);--default-theme-background-1: #09090b;--default-theme-background-2: #18181b;--default-theme-background-3: #2c2c30;--default-theme-background-accent: #8ab4f81f;--default-theme-border-color: rgba(255, 255, 255, .12);--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--sidebar-background-1: var(--default-theme-background-1);--sidebar-item-hover-color: currentColor;--sidebar-item-hover-background: var(--default-theme-background-2);--sidebar-item-active-background: var(--default-theme-background-3);--sidebar-border-color: var(--default-theme-border-color);--sidebar-color-1: var(--default-theme-color-1);--sidebar-color-2: var(--default-theme-color-2);--sidebar-color-active: var(--default-theme-color-accent);--sidebar-search-background: transparent;--sidebar-search-border-color: var(--default-theme-border-color);--sidebar-search-color: var(--default-theme-color-3)}.light-mode .t-doc__sidebar{--sidebar-item-active-background: #09090b;--sidebar-color-active: var(--sidebar-background-1)}.light-mode{--default-theme-button-1: rgb(49 53 56);--default-theme-button-1-color: #fff;--default-theme-button-1-hover: rgb(28 31 33);--default-theme-color-green: #069061;--default-theme-color-red: #ef0006;--default-theme-color-yellow: #edbe20;--default-theme-color-blue: #0082d0;--default-theme-color-orange: #fb892c;--default-theme-color-purple: #5203d1;--default-theme-scrollbar-color: rgba(0, 0, 0, .18);--default-theme-scrollbar-color-active: rgba(0, 0, 0, .36)}.dark-mode{--default-theme-button-1: #f6f6f6;--default-theme-button-1-color: #000;--default-theme-button-1-hover: #e7e7e7;--default-theme-color-green: rgba(69, 255, 165, .823);--default-theme-color-red: #ff8589;--default-theme-color-yellow: #ffcc4d;--default-theme-color-blue: #6bc1fe;--default-theme-color-orange: #f98943;--default-theme-color-purple: #b191f9;--default-theme-scrollbar-color: rgba(255, 255, 255, .24);--default-theme-scrollbar-color-active: rgba(255, 255, 255, .48)}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.examples .scalar-card-footer{--default-theme-background-3: transparent;padding-top:0}.show-api-client-button:before{background:#fff!important}.show-api-client-button span,.show-api-client-button svg{color:#000!important}.download-cta,.references-rendered .markdown a{text-decoration:underline!important}.code-languages-background{background:var(--default-theme-background-1)!important}.code-languages-background:before{box-shadow:inset 0 0 0 2px var(--default-theme-border-color);background:linear-gradient(to right top,#d3e1f91f,#d1dff71c,#dfe9fb4a)!important}.light-mode .code-languages-background:before{background:linear-gradient(to right top,#00000014,#00000012,#00000030)!important}.code-languages__active .code-languages-background:before{background:var(--default-theme-background-1)!important}.code-languages span{margin-top:5px!important}.section-flare{width:100vw;height:550px;position:relative}.section-flare-item:nth-of-type(1){position:absolute;width:100vw;height:550px;--stripesDark: repeating-linear-gradient( 100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16% );--rainbow: repeating-linear-gradient( 100deg, #fff 10%, #fff 16%, #fff 22%, #fff 30% );background-image:var(--stripesDark),var(--rainbow);background-size:300%,200%;background-position:50% 50%,50% 50%;filter:invert(100%);-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);pointer-events:none;opacity:.07}.dark-mode .section-flare-item:nth-of-type(1){background-image:var(--stripesDark),var(--rainbow);filter:opacity(50%) saturate(200%);opacity:.25;height:350px}.section-flare-item:nth-of-type(1):after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--stripesDark),var(--rainbow);background-size:200%,100%;background-attachment:fixed;mix-blend-mode:difference}.dark-mode .section-flare:after{background-image:var(--stripesDark),var(--rainbow)}.section-flare-item:nth-of-type(2){--star-color: #fff;--star-color2: #fff;--star-color3: #fff;width:100%;height:100%;position:absolute;background-image:radial-gradient(2px 2px at 20px 30px,var(--star-color2),rgba(0,0,0,0)),radial-gradient(2px 2px at 40px 70px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 50px 160px,var(--star-color3),rgba(0,0,0,0)),radial-gradient(2px 2px at 90px 40px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 130px 80px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 160px 120px,var(--star-color3),rgba(0,0,0,0));background-repeat:repeat;background-size:200px 200px;-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);opacity:.2}',q0=".light-mode{--default-theme-background-1: #fff;--default-theme-background-2: #f6f6f6;--default-theme-background-3: #e7e7e7;--default-theme-background-accent: #8ab4f81f;--default-theme-color-1: #2a2f45;--default-theme-color-2: #757575;--default-theme-color-3: #8e8e8e;--default-theme-color-accent: #0099ff;--default-theme-border-color: rgba(0, 0, 0, .1)}.dark-mode{--default-theme-background-1: #0f0f0f;--default-theme-background-2: #1a1a1a;--default-theme-background-3: #272727;--default-theme-color-1: rgba(255, 255, 255, .9);--default-theme-color-2: rgba(255, 255, 255, .62);--default-theme-color-3: rgba(255, 255, 255, .44);--default-theme-color-accent: #3ea6ff;--default-theme-background-accent: #3ea6ff1f;--default-theme-border-color: rgba(255, 255, 255, .1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-active-background: var( --default-theme-background-accent );--default-sidebar-color-active: var(--default-theme-color-accent);--default-sidebar-search-background: transparent;--default-sidebar-search-color: var(--default-theme-color-3);--default-sidebar-search-border-color: var(--default-theme-border-color)}.light-mode{--default-theme-color-green: #069061;--default-theme-color-red: #ef0006;--default-theme-color-yellow: #edbe20;--default-theme-color-blue: #0082d0;--default-theme-color-orange: #fb892c;--default-theme-color-purple: #5203d1}.dark-mode{--default-theme-color-green: #00b648;--default-theme-color-red: #dc1b19;--default-theme-color-yellow: #ffc90d;--default-theme-color-blue: #4eb3ec;--default-theme-color-orange: #ff8d4d;--default-theme-color-purple: #b191f9}",cS=".light-mode{--default-theme-color-1: #2a2f45;--default-theme-color-2: #757575;--default-theme-color-3: #8e8e8e;--default-theme-color-accent: #7070ff;--default-theme-background-1: #fff;--default-theme-background-2: #f6f6f6;--default-theme-background-3: #e7e7e7;--default-theme-background-accent: #7070ff1f;--default-theme-border-color: rgba(0, 0, 0, .1);--default-theme-code-language-color-supersede: var(--default-theme-color-3)}.dark-mode{--default-theme-color-1: #f7f8f8;--default-theme-color-2: rgb(180, 188, 208);--default-theme-color-3: #b4bcd099;--default-theme-color-accent: #828fff;--default-theme-background-1: #000212;--default-theme-background-2: rgba(255, 255, 255, .05);--default-theme-background-3: rgba(255, 255, 255, .05);--default-theme-background-accent: #8ab4f81f;--default-theme-border-color: #242537;--default-theme-code-language-color-supersede: var(--default-theme-color-3)}.light-mode .t-doc__sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-active-background: var( --default-theme-background-accent );--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-color-active: var(--default-theme-color-accent);--default-sidebar-search-background: rgba(0, 0, 0, .05);--default-sidebar-search-border-color: 1px solid rgba(0, 0, 0, .05);--default-sidebar-search-color: var(--default-theme-color-3);--default-theme-background-2: rgba(0, 0, 0, .03)}.dark-mode .t-doc__sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-active-background: rgba(255, 255, 255, .1);--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-color-active: var(--default-theme-color-accent);--default-sidebar-search-background: rgba(255, 255, 255, .1);--default-sidebar-search-border-color: 1px solid rgba(255, 255, 255, .05);--default-sidebar-search-color: var(--default-theme-color-3)}.light-mode{--default-theme-button-1: rgb(49 53 56);--default-theme-button-1-color: #fff;--default-theme-button-1-hover: rgb(28 31 33);--default-theme-color-green: #069061;--default-theme-color-red: #ef0006;--default-theme-color-yellow: #edbe20;--default-theme-color-blue: #0082d0;--default-theme-color-orange: #fb892c;--default-theme-color-purple: #5203d1;--default-theme-scrollbar-color: rgba(0, 0, 0, .18);--default-theme-scrollbar-color-active: rgba(0, 0, 0, .36)}.dark-mode{--default-theme-button-1: #f6f6f6;--default-theme-button-1-color: #000;--default-theme-button-1-hover: #e7e7e7;--default-theme-color-green: #00b648;--default-theme-color-red: #dc1b19;--default-theme-color-yellow: #ffc90d;--default-theme-color-blue: #4eb3ec;--default-theme-color-orange: #ff8d4d;--default-theme-color-purple: #b191f9;--default-theme-scrollbar-color: rgba(255, 255, 255, .24);--default-theme-scrollbar-color-active: rgba(255, 255, 255, .48)}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.sidebar-search{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}@keyframes headerbackground{0%{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}to{background:var(--header-background-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}.dark-mode .scalar-card{background:#ffffff0d!important}.dark-mode .scalar-card *{--default-theme-background-2: transparent !important;--default-theme-background-1: transparent !important}.light-mode .dark-mode.scalar-card *,.light-mode .dark-mode.scalar-card{--default-theme-background-1: #0d0f1e !important;--default-theme-background-2: #0d0f1e !important;--default-theme-background-3: #191b29 !important}.light-mode .dark-mode.scalar-card{background:#191b29!important}.show-api-client-button:before{background-color:var(--default-theme-color-accent)!important}.badge{box-shadow:0 0 0 1px var(--default-theme-border-color);margin-right:6px}.table-row.required-parameter .table-row-item:nth-of-type(2):after{background:transparent;box-shadow:none}.code-languages__active{--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.code-languages-background{background:linear-gradient(#fff0,#ffffff0d)!important;box-shadow:inset 0 0 0 1px var(--default-theme-border-color)!important}.section-flare{width:100vw;background:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(120,119,198,.3),transparent);height:100vh}",dS=".light-mode{--default-theme-background-1: #f9f6f0;--default-theme-background-2: #f2efe8;--default-theme-background-3: #e9e7e2;--default-theme-border-color: rgba(203, 165, 156, .6);--default-theme-color-1: #c75549;--default-theme-color-2: #c75549;--default-theme-color-3: #c75549;--default-theme-color-accent: #c75549;--default-theme-background-accent: #dcbfa81f;--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.dark-mode{--default-theme-background-1: #140507;--default-theme-background-2: #20090c;--default-theme-background-3: #321116;--default-theme-border-color: rgba(255, 255, 255, .1);--default-theme-color-1: rgba(255, 255, 255, .9);--default-theme-color-2: rgba(255, 255, 255, .62);--default-theme-color-3: rgba(255, 255, 255, .44);--default-theme-color-accent: rgba(255, 255, 255, .9);--default-theme-background-accent: #441313;--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-active-background: var(--default-theme-background-3);--default-sidebar-color-active: var(--default-theme-color-accent);--default-sidebar-search-background: rgba(255, 255, 255, .1);--default-sidebar-search-color: var(--default-theme-color-3);--default-sidebar-search-border-color: var(--default-theme-border-color);z-index:1}.light-mode{--default-theme-color-green: #09533a;--default-theme-color-red: #aa181d;--default-theme-color-yellow: #ab8d2b;--default-theme-color-blue: #19689a;--default-theme-color-orange: #b26c34;--default-theme-color-purple: #4c2191}.dark-mode{--default-theme-color-green: rgba(69, 255, 165, .823);--default-theme-color-red: #ff8589;--default-theme-color-yellow: #ffcc4d;--default-theme-color-blue: #6bc1fe;--default-theme-color-orange: #f98943;--default-theme-color-purple: #b191f9}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.light-mode .t-doc__sidebar{--default-sidebar-search-background: white}.examples .scalar-card-footer{--default-theme-background-3: transparent;padding-top:0}.show-api-client-button:before{background:#fff!important}.show-api-client-button span,.show-api-client-button svg{color:#000!important}.code-languages-background{background:var(--default-theme-background-1)!important}.code-languages-background:before{box-shadow:inset 0 0 0 2px var(--default-theme-border-color);background:linear-gradient(to right top,#d3e1f91f,#d1dff71c,#dfe9fb4a)!important}.light-mode .code-languages-background:before{background:linear-gradient(to right top,#00000014,#00000012,#00000030)!important}.code-languages__active .code-languages-background:before{background:var(--default-theme-background-1)!important}.code-languages span{margin-top:5px!important}.section-flare-item:nth-of-type(1){background:#d25019;width:80vw;height:500px;margin-top:-150px;border-radius:50%;filter:blur(100px);z-index:0}.light-mode .section-flare{display:none}.section-flare{top:-150px!important;height:100vh;right:-400px!important;left:initial}.download-cta a,.section .markdown a{text-decoration:underline!important}",uS=".light-mode{color-scheme:light;--default-theme-color-1: #000000;--default-theme-color-2: #000000;--default-theme-color-3: #000000;--default-theme-color-accent: #645b0f;--default-theme-background-1: #ccc9b3;--default-theme-background-2: #c2bfaa;--default-theme-background-3: #b8b5a1;--default-theme-background-accent: #000000;--default-theme-border-color: rgba(0, 0, 0, .2);--default-theme-scrollbar-color: rgba(0, 0, 0, .18);--default-theme-scrollbar-color-active: rgba(0, 0, 0, .36);--default-theme-lifted-brightness: 1;--default-theme-backdrop-brightness: 1;--default-theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--default-theme-shadow-2: rgba(0, 0, 0, .08) 0px 13px 20px 0px, rgba(0, 0, 0, .08) 0px 3px 8px 0px, var(--default-theme-border-color) 0px 0 0 1px;--default-theme-button-1: rgb(49 53 56);--default-theme-button-1-color: #fff;--default-theme-button-1-hover: rgb(28 31 33);--default-theme-color-red: #b91c1c;--default-theme-color-orange: #a16207;--default-theme-color-green: #047857;--default-theme-color-blue: #1d4ed8;--default-theme-color-orange: #c2410c;--default-theme-color-purple: #6d28d9;--default-theme-code-languages-background-supersede: var( --default-theme-background-3 );--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.dark-mode{color-scheme:dark;--default-theme-color-1: #fffef3;--default-theme-color-2: #fffef3;--default-theme-color-3: #fffef3;--default-theme-color-accent: #c3b531;--default-theme-background-1: #313332;--default-theme-background-2: #393b3a;--default-theme-background-3: #414342;--default-theme-background-accent: #fffef3;--default-theme-border-color: rgba(255, 255, 255, .1);--default-theme-scrollbar-color: rgba(255, 255, 255, .24);--default-theme-scrollbar-color-active: rgba(255, 255, 255, .48);--default-theme-lifted-brightness: 1.45;--default-theme-backdrop-brightness: .5;--default-theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--default-theme-shadow-2: rgba(15, 15, 15, .2) 0px 3px 6px, rgba(15, 15, 15, .4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, .1);--default-theme-button-1: #f6f6f6;--default-theme-button-1-color: #000;--default-theme-button-1-hover: #e7e7e7;--default-theme-color-green: #00b648;--default-theme-color-red: #dc1b19;--default-theme-color-yellow: #ffc90d;--default-theme-color-blue: #4eb3ec;--default-theme-color-orange: #ff8d4d;--default-theme-color-purple: #b191f9;--default-theme-code-languages-background-supersede: var( --default-theme-background-3 );--default-theme-code-language-color-supersede: var(--default-theme-color-1)}.light-mode .t-doc__sidebar,.dark-mode .sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-active-background: var( --default-theme-background-accent );--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-color-active: var(--default-sidebar-background-1);--default-sidebar-search-background: var(--default-theme-background-3);--default-sidebar-search-border-color: var( --default-sidebar-search-background );--default-sidebar-search--color: var(--default-theme-color-3)}",hS=".light-mode{--default-theme-background-1: #fff;--default-theme-background-2: #f5f6f8;--default-theme-background-3: #eceef1;--default-theme-color-1: #2a2f45;--default-theme-color-2: #757575;--default-theme-color-3: #8e8e8e;--default-theme-color-accent: #5469d4;--default-theme-background-accent: #5469d41f;--default-theme-border-color: rgba(215, 215, 206, .5)}.dark-mode{--default-theme-background-1: #15171c;--default-theme-background-2: #1c1e24;--default-theme-background-3: #22252b;--default-theme-color-1: #fafafa;--default-theme-color-2: #c9ced8;--default-theme-color-3: #8c99ad;--default-theme-color-accent: #5469d4;--default-theme-background-accent: #5469d41f;--default-theme-border-color: rgba(255, 255, 255, .12)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--sidebar-background-1: var(--default-theme-background-1);--sidebar-color-1: var(--default-theme-color-1);--sidebar-color-2: var(--default-theme-color-2);--sidebar-border-color: var(--default-theme-border-color);--sidebar-item-hover-color: currentColor;--sidebar-item-hover-background: var(--default-theme-background-3);--sidebar-item-active-background: var(--default-theme-background-accent);--sidebar-color-active: var(--default-theme-color-accent);--sidebar-search-background: var(--default-theme-background-1);--sidebar-search-color: var(--default-theme-color-3);--sidebar-search-border-color: var(--default-theme-border-color)}.light-mode{--default-theme-color-green: #17803d;--default-theme-color-red: #e10909;--default-theme-color-yellow: #edbe20;--default-theme-color-blue: #1763a6;--default-theme-color-orange: #e25b09;--default-theme-color-purple: #5c3993}.dark-mode{--default-theme-color-green: #30a159;--default-theme-color-red: #dc1b19;--default-theme-color-yellow: #eec644;--default-theme-color-blue: #2b7abf;--default-theme-color-orange: #f07528;--default-theme-color-purple: #7a59b1}",fS=".light-mode{--default-theme-background-1: #f3f3ee;--default-theme-background-2: #e8e8e3;--default-theme-background-3: #e4e4df;--default-theme-border-color: rgba(215, 215, 206, .5);--default-theme-color-1: #2a2f45;--default-theme-color-2: #757575;--default-theme-color-3: #8e8e8e;--default-theme-color-accent: #1763a6;--default-theme-background-accent: #1f648e1f;--default-theme-code-language-color-supersede: var(--default-theme-color-1);--default-theme-code-languages-background-supersede: var( --default-theme-background-2 )}.dark-mode{--default-theme-background-1: #09090b;--default-theme-background-2: #18181b;--default-theme-background-3: #2c2c30;--default-theme-border-color: rgba(255, 255, 255, .12);--default-theme-color-1: #fafafa;--default-theme-color-2: rgb(161, 161, 170);--default-theme-color-3: rgba(255, 255, 255, .533);--default-theme-color-accent: #4eb3ec;--default-theme-background-accent: #8ab4f81f;--default-theme-code-language-color-supersede: var(--default-theme-color-1);--default-theme-code-languages-background-supersede: var( --default-theme-background-2 )}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-active-background: var(--default-theme-background-3);--default-sidebar-color-active: var(--default-theme-color-1);--default-sidebar-search-background: var(--default-theme-background-1);--default-sidebar-search-border-color: var(--default-theme-border-color);--default-sidebar-search-color: var(--default-theme-color-3)}.light-mode{--default-theme-color-green: #17803d;--default-theme-color-red: #e10909;--default-theme-color-yellow: #edbe20;--default-theme-color-blue: #1763a6;--default-theme-color-orange: #e25b09;--default-theme-color-purple: #5c3993}.dark-mode{--default-theme-color-green: #30a159;--default-theme-color-red: #dc1b19;--default-theme-color-yellow: #eec644;--default-theme-color-blue: #2b7abf;--default-theme-color-orange: #f07528;--default-theme-color-purple: #7a59b1}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}",pS=".light-mode{color-scheme:light;--default-theme-color-1: #584c27;--default-theme-color-2: #616161;--default-theme-color-3: #a89f84;--default-theme-color-accent: #b58900;--default-theme-background-1: #fdf6e3;--default-theme-background-2: #eee8d5;--default-theme-background-3: #ddd6c1;--default-theme-background-accent: #b589001f;--default-theme-border-color: #ded8c8;--default-theme-scrollbar-color: rgba(0, 0, 0, .18);--default-theme-scrollbar-color-active: rgba(0, 0, 0, .36);--default-theme-lifted-brightness: 1;--default-theme-backdrop-brightness: 1;--default-theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--default-theme-shadow-2: rgba(0, 0, 0, .08) 0px 13px 20px 0px, rgba(0, 0, 0, .08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;--default-theme-button-1: rgb(49 53 56);--default-theme-button-1-color: #fff;--default-theme-button-1-hover: rgb(28 31 33);--default-theme-color-red: #b91c1c;--default-theme-color-orange: #a16207;--default-theme-color-green: #047857;--default-theme-color-blue: #1d4ed8;--default-theme-color-orange: #c2410c;--default-theme-color-purple: #6d28d9}.dark-mode{color-scheme:dark;--default-theme-color-1: #fff;--default-theme-color-2: #cccccc;--default-theme-color-3: #6d8890;--default-theme-color-accent: #007acc;--default-theme-background-1: #00212b;--default-theme-background-2: #012b36;--default-theme-background-3: #004052;--default-theme-background-accent: #015a6f;--default-theme-border-color: rgba(255, 255, 255, .1);--default-theme-scrollbar-color: rgba(255, 255, 255, .24);--default-theme-scrollbar-color-active: rgba(255, 255, 255, .48);--default-theme-lifted-brightness: 1.45;--default-theme-backdrop-brightness: .5;--default-theme-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, .1);--default-theme-shadow-2: rgba(15, 15, 15, .2) 0px 3px 6px, rgba(15, 15, 15, .4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, .1);--default-theme-button-1: #f6f6f6;--default-theme-button-1-color: #000;--default-theme-button-1-hover: #e7e7e7;--default-theme-color-green: #00b648;--default-theme-color-red: #dc1b19;--default-theme-color-yellow: #ffc90d;--default-theme-color-blue: #4eb3ec;--default-theme-color-orange: #ff8d4d;--default-theme-color-purple: #b191f9}.light-mode .t-doc__sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-active-background: var( --default-theme-background-accent );--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-color-active: var(--default-theme-color-accent);--default-sidebar-search-background: var(--default-theme-background-2);--default-sidebar-search-border-color: var(--sidebar-search-background);--default-sidebar-search--color: var(--default-theme-color-3)}.dark-mode .sidebar{--default-sidebar-background-1: var(--default-theme-background-1);--default-sidebar-item-hover-color: currentColor;--default-sidebar-item-hover-background: var(--default-theme-background-2);--default-sidebar-item-active-background: var( --default-theme-background-accent );--default-sidebar-border-color: var(--default-theme-border-color);--default-sidebar-color-1: var(--default-theme-color-1);--default-sidebar-color-2: var(--default-theme-color-2);--default-sidebar-color-active: var(--default-sidebar-color-1);--default-sidebar-search-background: var(--default-theme-background-2);--default-sidebar-search-border-color: var(--sidebar-search-background);--default-sidebar-search--color: var(--default-theme-color-3)}",M0=i.defineComponent({__name:"ThemeStyles",props:{id:{}},setup(r){return(e,t)=>e.id!=="none"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(PS)(e.id)),1)]),_:1})):i.createCommentVNode("",!0)}});function X0(r,e){i.onMounted(()=>{if(!document.body)return;const t=document.querySelector(r);t==null||t.classList.add(e)})}const mS=i.defineComponent({__name:"ResetStyles",setup(r){const{reset:e}=i.useCssModule();return X0("#headlessui-portal-root",e),(t,n)=>i.renderSlot(t.$slots,"default",{styles:i.unref(e)})}}),gS="_reset_78zw5_3",OS={reset:gS},X=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},yS={$style:OS},W0=X(mS,[["__cssModules",yS]]),bS=i.defineComponent({__name:"ScrollbarStyles",setup(r){const{scrollbars:e}=i.useCssModule();return X0("#headlessui-portal-root",e),(t,n)=>i.renderSlot(t.$slots,"default",{styles:i.unref(e)})}}),vS="_scrollbars_1wuqs_3",wS={scrollbars:vS},kS={$style:wS},SS=X(bS,[["__cssModules",kS]]),$S={alternate:iS,default:q0,moon:uS,purple:hS,solarized:pS,bluePlanet:aS,deepSpace:lS,saturn:fS,kepler:cS,mars:dS},PS=(r="default")=>r==="none"?"":$S[r]??q0;function xS(){return{showApiClient:!1,activeApiClientEndpointId:"",activeItem:{},snippetType:"javascript"}}const gn=i.reactive(xS());function _S(r,e=!1){e?gn.showApiClient=!0:gn.showApiClient=!gn.showApiClient,r&&(gn.activeItem=r)}function CS(){gn.showApiClient=!1}function TS(r){gn.activeApiClientEndpointId=r}function QS(r){gn.snippetType=r}const Oc=()=>({state:i.readonly(gn),toggleApiClient:_S,setActiveApiClientEndpointId:TS,setSnippetType:QS,hideApiClient:CS}),ES=()=>({name:"",url:"",type:"GET",path:"",variables:[],headers:[],query:[],body:"",formData:[]}),NS=()=>({type:"none",basic:{username:"",password:"",active:!0},oauthTwo:{generatedToken:"",discoveryURL:"",authURL:"",accessTokenURL:"",clientID:"",clientSecret:"",scope:"",active:!0},bearer:{token:"",active:!0},digest:{username:"",password:"",active:!0}}),AS=i.reactive(NS()),yc=i.reactive({}),z0=i.ref([]),ns=i.ref(""),Xh=i.reactive(ES()),VS=r=>{yc[r.responseId]=r,ns.value=r.responseId,z0.value.unshift(r.responseId)},RS=r=>{ns.value=r;const{request:e}=yc[r],t=JSON.parse(JSON.stringify(e));t.body=JSON.stringify(e.body,null,2),Object.assign(Xh,t)},BS=i.computed(()=>ns.value?yc[ns.value].response:null),ZS=r=>{Object.assign(Xh,r)},IS=()=>{ns.value=""},jS=i.ref(!0),Zt=()=>({authState:AS,readOnly:jS,activeRequest:Xh,activeResponse:BS,requestHistory:yc,requestHistoryOrder:z0,activeRequestId:ns,setActiveResponse:RS,resetActiveResponse:IS,addRequestToHistory:VS,setActiveRequest:ZS}),DS=[{name:"Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept"},{name:"Accept-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH"},{name:"Accept-CH-Lifetime",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH-Lifetime"},{name:"Accept-Charset",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset"},{name:"Accept-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding"},{name:"Accept-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language"},{name:"Accept-Patch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Patch"},{name:"Accept-Post",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Post"},{name:"Accept-Ranges",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges"},{name:"Access-Control-Allow-Credentials",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials"},{name:"Access-Control-Allow-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers"},{name:"Access-Control-Allow-Methods",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods"},{name:"Access-Control-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin"},{name:"Access-Control-Expose-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers"},{name:"Access-Control-Max-Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age"},{name:"Access-Control-Request-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers"},{name:"Access-Control-Request-Method",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method"},{name:"Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age"},{name:"Allow",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow"},{name:"Alt-Svc",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Svc"},{name:"Alt-Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Used"},{name:"Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization"},{name:"Cache-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control"},{name:"Clear-Site-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data"},{name:"Connection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection"},{name:"Content-Disposition",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition"},{name:"Content-DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DPR"},{name:"Content-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding"},{name:"Content-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language"},{name:"Content-Length",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length"},{name:"Content-Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Location"},{name:"Content-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range"},{name:"Content-Security-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy"},{name:"Content-Security-Policy-Report-Only",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only"},{name:"Content-Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type"},{name:"Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie"},{name:"Critical-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Critical-CH"},{name:"Cross-Origin-Embedder-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy"},{name:"Cross-Origin-Opener-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy"},{name:"Cross-Origin-Resource-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy"},{name:"Date",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date"},{name:"Device-Memory",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Device-Memory"},{name:"Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Digest"},{name:"DNT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT"},{name:"Downlink",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Downlink"},{name:"DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DPR"},{name:"Early-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Early-Data"},{name:"ECT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ECT"},{name:"ETag",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"},{name:"Expect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect"},{name:"Expect-CT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT"},{name:"Expires",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires"},{name:"Forwarded",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded"},{name:"From",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/From"},{name:"Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host"},{name:"If-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match"},{name:"If-Modified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since"},{name:"If-None-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match"},{name:"If-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range"},{name:"If-Unmodified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since"},{name:"Keep-Alive",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive"},{name:"Large-Allocation",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Large-Allocation"},{name:"Last-Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"},{name:"Link",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link"},{name:"Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location"},{name:"Max-Forwards",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Max-Forwards"},{name:"NEL",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/NEL"},{name:"Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"},{name:"Permissions-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy"},{name:"Pragma",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma"},{name:"Proxy-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authenticate"},{name:"Proxy-Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization"},{name:"Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range"},{name:"Referer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer"},{name:"Referrer-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy"},{name:"Retry-After",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After"},{name:"RTT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/RTT"},{name:"Save-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data"},{name:"Sec-CH-Prefers-Reduced-Motion",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion"},{name:"Sec-CH-Prefers-Reduced-Transparency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Transparency"},{name:"Sec-CH-UA",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA"},{name:"Sec-CH-UA-Arch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Arch"},{name:"Sec-CH-UA-Bitness",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Bitness"},{name:"Sec-CH-UA-Full-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version"},{name:"Sec-CH-UA-Full-Version-List",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version-List"},{name:"Sec-CH-UA-Mobile",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Mobile"},{name:"Sec-CH-UA-Model",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Model"},{name:"Sec-CH-UA-Platform",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform"},{name:"Sec-CH-UA-Platform-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform-Version"},{name:"Sec-Fetch-Dest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest"},{name:"Sec-Fetch-Mode",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode"},{name:"Sec-Fetch-Site",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site"},{name:"Sec-Fetch-User",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User"},{name:"Sec-GPC",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-GPC"},{name:"Sec-Purpose",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Purpose"},{name:"Sec-WebSocket-Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-WebSocket-Accept"},{name:"Server",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server"},{name:"Server-Timing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing"},{name:"Service-Worker-Navigation-Preload",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Service-Worker-Navigation-Preload"},{name:"Set-Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie"},{name:"SourceMap",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap"},{name:"Strict-Transport-Security",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security"},{name:"TE",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/TE"},{name:"Timing-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin"},{name:"Tk",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Tk"},{name:"Trailer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer"},{name:"Transfer-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding"},{name:"Upgrade",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade"},{name:"Upgrade-Insecure-Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests"},{name:"User-Agent",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent"},{name:"Vary",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary"},{name:"Via",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via"},{name:"Viewport-Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Viewport-Width"},{name:"Want-Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Want-Digest"},{name:"Warning",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Warning"},{name:"Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Width"},{name:"WWW-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate"},{name:"X-Content-Type-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options"},{name:"X-DNS-Prefetch-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-For",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Proto",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Frame-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options"},{name:"X-XSS-Protection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection"},{name:"Cf-Cache-Status",url:"https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#cloudflare-cache-responses"},{name:"Cf-Ray",url:"https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/#cf-ray"},{name:"Report-To",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to"}],U0=["GET","POST","PUT","HEAD","DELETE","PATCH","OPTIONS","CONNECT","TRACE"];function hu(r){return U0.includes(r)}const qS={POST:"var(--theme-color-green, var(--default-theme-color-green))",DELETE:"var(--theme-color-red, var(--default-theme-color-red))",PATCH:"var(--theme-color-yellow, var(--default-theme-color-yellow))",GET:"var(--theme-color-blue, var(--default-theme-color-blue))",PUT:"var(--theme-color-orange, var(--default-theme-color-orange))",OPTIONS:"var(--theme-color-purple, var(--default-theme-color-purple))",HEAD:"var(--theme-color-2, var(--default-theme-color-2))",CONNECT:"var(--theme-color-2, var(--default-theme-color-2))",TRACE:"var(--theme-color-2, var(--default-theme-color-2))"},MS={POST:"POST",DELETE:"DEL",PATCH:"PATCH",GET:"GET",PUT:"PUT",OPTIONS:"OPTS",HEAD:"HEAD",CONNECT:"CONN",TRACE:"TRACE"},XS={100:{name:"Continue",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100"},101:{name:"Switching Protocols",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101"},102:{name:"Processing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102"},103:{name:"Early Hints",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103"},200:{name:"OK",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200"},201:{name:"Created",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201"},202:{name:"Accepted",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202"},203:{name:"Non-Authoritative Information",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203"},204:{name:"No Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204"},205:{name:"Reset Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205"},206:{name:"Partial Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206"},207:{name:"Multi-Status",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207"},208:{name:"Already Reported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208"},226:{name:"IM Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226"},300:{name:"Multiple Choices",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300"},301:{name:"Moved Permanently",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301"},302:{name:"Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302"},303:{name:"See Other",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303"},304:{name:"Not Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304"},305:{name:"Use Proxy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305"},306:{name:"(Unused)",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/306"},307:{name:"Temporary Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307"},308:{name:"Permanent Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308"},400:{name:"Bad Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},401:{name:"Unauthorized",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401"},402:{name:"Payment Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402"},403:{name:"Forbidden",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403"},404:{name:"Not Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404"},405:{name:"Method Not Allowed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405"},406:{name:"Not Acceptable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406"},407:{name:"Proxy Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407"},408:{name:"Request Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408"},409:{name:"Conflict",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409"},410:{name:"Gone",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410"},411:{name:"Length Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411"},412:{name:"Precondition Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412"},413:{name:"Content Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413"},414:{name:"URI Too Long",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414"},415:{name:"Unsupported Media Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415"},416:{name:"Range Not Satisfiable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416"},417:{name:"Expectation Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417"},421:{name:"Misdirected Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421"},422:{name:"Unprocessable Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422"},423:{name:"Locked",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423"},424:{name:"Failed Dependency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424"},425:{name:"Too Early",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425"},426:{name:"Upgrade Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426"},428:{name:"Precondition Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428"},429:{name:"Too Many Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429"},431:{name:"Request Header Fields Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431"},451:{name:"Unavailable For Legal Reasons",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451"},500:{name:"Internal Server Error",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500"},501:{name:"Not Implemented",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501"},502:{name:"Bad Gateway",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502"},503:{name:"Service Unavailable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503"},504:{name:"Gateway Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504"},505:{name:"HTTP Version Not Supported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505"},506:{name:"Variant Also Negotiates",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506"},507:{name:"Insufficient Storage",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507"},508:{name:"Loop Detected",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508"},510:{name:"Not Extended",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510"},511:{name:"Network Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511"}},An=i.defineComponent({__name:"HttpMethod",props:{as:{},property:{},short:{type:Boolean},method:{}},setup(r){const e=r,t=i.computed(()=>e.method.trim().toUpperCase()),n=i.computed(()=>hu(t.value)?MS[t.value]:t.value.slice(0,4)),o=i.computed(()=>hu(t.value)?qS[t.value]:"var(--theme-color-ghost, var(--default-theme-color-ghost))");return(s,a)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s.as??"span"),{style:i.normalizeStyle({[s.property||"color"]:o.value})},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",i.normalizeProps(i.guardReactiveProps({normalized:t.value,abbreviated:n.value,color:o.value})),()=>[i.createTextVNode(i.toDisplayString(s.short?n.value:t.value),1)])]),_:3},8,["style"]))}});class ke{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=os(this,e,t);let o=[];return this.decompose(0,e,o,2),n.length&&n.decompose(0,n.length,o,3),this.decompose(t,this.length,o,1),Pr.from(o,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=os(this,e,t);let n=[];return this.decompose(e,t,n,0),Pr.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),o=new Oi(this),s=new Oi(e);for(let a=t,l=t;;){if(o.next(a),s.next(a),a=0,o.lineBreak!=s.lineBreak||o.done!=s.done||o.value!=s.value)return!1;if(l+=o.value.length,o.done||l>=n)return!0}}iter(e=1){return new Oi(this,e)}iterRange(e,t=this.length){return new Y0(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let o=this.line(e).from;n=this.iterRange(o,Math.max(o,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new L0(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ke.empty:e.length<=32?new Me(e):Pr.from(Me.split(e,[]))}}class Me extends ke{constructor(e,t=WS(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,o){for(let s=0;;s++){let a=this.text[s],l=o+a.length;if((t?n:l)>=e)return new zS(o,l,n,a);o=l+1,n++}}decompose(e,t,n,o){let s=e<=0&&t>=this.length?this:new Me(gm(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(o&1){let a=n.pop(),l=sl(s.text,a.text.slice(),0,s.length);if(l.length<=32)n.push(new Me(l,a.length+s.length));else{let c=l.length>>1;n.push(new Me(l.slice(0,c)),new Me(l.slice(c)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof Me))return super.replace(e,t,n);[e,t]=os(this,e,t);let o=sl(this.text,sl(n.text,gm(this.text,0,e)),t),s=this.length+n.length-(t-e);return o.length<=32?new Me(o,s):Pr.from(Me.split(o,[]),s)}sliceString(e,t=this.length,n=`
|
|
2
|
+
`){[e,t]=os(this,e,t);let o="";for(let s=0,a=0;s<=t&&a<this.text.length;a++){let l=this.text[a],c=s+l.length;s>e&&a&&(o+=n),e<c&&t>s&&(o+=l.slice(Math.max(0,e-s),t-s)),s=c+1}return o}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],o=-1;for(let s of e)n.push(s),o+=s.length+1,n.length==32&&(t.push(new Me(n,o)),n=[],o=-1);return o>-1&&t.push(new Me(n,o)),t}}class Pr extends ke{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,o){for(let s=0;;s++){let a=this.children[s],l=o+a.length,c=n+a.lines-1;if((t?c:l)>=e)return a.lineInner(e,t,n,o);o=l+1,n=c+1}}decompose(e,t,n,o){for(let s=0,a=0;a<=t&&s<this.children.length;s++){let l=this.children[s],c=a+l.length;if(e<=c&&t>=a){let d=o&((a<=e?1:0)|(c>=t?2:0));a>=e&&c<=t&&!d?n.push(l):l.decompose(e-a,t-a,n,d)}a=c+1}}replace(e,t,n){if([e,t]=os(this,e,t),n.lines<this.lines)for(let o=0,s=0;o<this.children.length;o++){let a=this.children[o],l=s+a.length;if(e>=s&&t<=l){let c=a.replace(e-s,t-s,n),d=this.lines-a.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let u=this.children.slice();return u[o]=c,new Pr(u,this.length-(t-e)+n.length)}return super.replace(s,l,c)}s=l+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
|
|
3
|
+
`){[e,t]=os(this,e,t);let o="";for(let s=0,a=0;s<this.children.length&&a<=t;s++){let l=this.children[s],c=a+l.length;a>e&&s&&(o+=n),e<c&&t>a&&(o+=l.sliceString(e-a,t-a,n)),a=c+1}return o}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Pr))return 0;let n=0,[o,s,a,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;o+=t,s+=t){if(o==a||s==l)return n;let c=this.children[o],d=e.children[s];if(c!=d)return n+c.scanIdentical(d,t);n+=c.length+1}}static from(e,t=e.reduce((n,o)=>n+o.length+1,-1)){let n=0;for(let p of e)n+=p.lines;if(n<32){let p=[];for(let m of e)m.flatten(p);return new Me(p,t)}let o=Math.max(32,n>>5),s=o<<1,a=o>>1,l=[],c=0,d=-1,u=[];function h(p){let m;if(p.lines>s&&p instanceof Pr)for(let g of p.children)h(g);else p.lines>a&&(c>a||!c)?(f(),l.push(p)):p instanceof Me&&c&&(m=u[u.length-1])instanceof Me&&p.lines+m.lines<=32?(c+=p.lines,d+=p.length+1,u[u.length-1]=new Me(m.text.concat(p.text),m.length+1+p.length)):(c+p.lines>o&&f(),c+=p.lines,d+=p.length+1,u.push(p))}function f(){c!=0&&(l.push(u.length==1?u[0]:Pr.from(u,d)),d=-1,c=u.length=0)}for(let p of e)h(p);return f(),l.length==1?l[0]:new Pr(l,t)}}ke.empty=new Me([""],0);function WS(r){let e=-1;for(let t of r)e+=t.length+1;return e}function sl(r,e,t=0,n=1e9){for(let o=0,s=0,a=!0;s<r.length&&o<=n;s++){let l=r[s],c=o+l.length;c>=t&&(c>n&&(l=l.slice(0,n-o)),o<t&&(l=l.slice(t-o)),a?(e[e.length-1]+=l,a=!1):e.push(l)),o=c+1}return e}function gm(r,e,t){return sl(r,[""],e,t)}class Oi{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Me?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,o=this.nodes[n],s=this.offsets[n],a=s>>1,l=o instanceof Me?o.text.length:o.children.length;if(a==(t>0?l:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
4
|
+
`,this;e--}else if(o instanceof Me){let c=o.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=o.children[a+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof Me?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Y0{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Oi(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:o}=this.cursor.next(e);return this.pos+=(o.length+e)*t,this.value=o.length<=n?o:t<0?o.slice(o.length-n):o.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class L0{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:o}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ke.prototype[Symbol.iterator]=function(){return this.iter()},Oi.prototype[Symbol.iterator]=Y0.prototype[Symbol.iterator]=L0.prototype[Symbol.iterator]=function(){return this});class zS{constructor(e,t,n,o){this.from=e,this.to=t,this.number=n,this.text=o}get length(){return this.to-this.from}}function os(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}let Uo="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(r=>r?parseInt(r,36):1);for(let r=1;r<Uo.length;r++)Uo[r]+=Uo[r-1];function US(r){for(let e=1;e<Uo.length;e+=2)if(Uo[e]>r)return Uo[e-1]<=r;return!1}function Om(r){return r>=127462&&r<=127487}const ym=8205;function Cr(r,e,t=!0,n=!0){return(t?F0:YS)(r,e,n)}function F0(r,e,t){if(e==r.length)return e;e&&H0(r.charCodeAt(e))&&G0(r.charCodeAt(e-1))&&e--;let n=dt(r,e);for(e+=or(n);e<r.length;){let o=dt(r,e);if(n==ym||o==ym||t&&US(o))e+=or(o),n=o;else if(Om(o)){let s=0,a=e-2;for(;a>=0&&Om(dt(r,a));)s++,a-=2;if(s%2==0)break;e+=2}else break}return e}function YS(r,e,t){for(;e>0;){let n=F0(r,e-2,t);if(n<e)return n;e--}return 0}function H0(r){return r>=56320&&r<57344}function G0(r){return r>=55296&&r<56320}function dt(r,e){let t=r.charCodeAt(e);if(!G0(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return H0(n)?(t-55296<<10)+(n-56320)+65536:t}function K0(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function or(r){return r<65536?1:2}const fu=/\r\n?|\n/;var ut=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(ut||(ut={}));class Mr{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,o=0;t<this.sections.length;){let s=this.sections[t++],a=this.sections[t++];a<0?(e(n,o,s),o+=s):o+=a,n+=s}}iterChangedRanges(e,t=!1){pu(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],o=this.sections[t++];o<0?e.push(n,o):e.push(o,n)}return new Mr(e)}composeDesc(e){return this.empty?e:e.empty?this:J0(this,e)}mapDesc(e,t=!1){return e.empty?this:mu(this,e,t)}mapPos(e,t=-1,n=ut.Simple){let o=0,s=0;for(let a=0;a<this.sections.length;){let l=this.sections[a++],c=this.sections[a++],d=o+l;if(c<0){if(d>e)return s+(e-o);s+=l}else{if(n!=ut.Simple&&d>=e&&(n==ut.TrackDel&&o<e&&d>e||n==ut.TrackBefore&&o<e||n==ut.TrackAfter&&d>e))return null;if(d>e||d==e&&t<0&&!l)return e==o||t<0?s:s+c;s+=c}o=d}if(e>o)throw new RangeError(`Position ${e} is out of range for changeset of length ${o}`);return s}touchesRange(e,t=e){for(let n=0,o=0;n<this.sections.length&&o<=t;){let s=this.sections[n++],a=this.sections[n++],l=o+s;if(a>=0&&o<=t&&l>=e)return o<e&&l>t?"cover":!0;o=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],o=this.sections[t++];e+=(e?" ":"")+n+(o>=0?":"+o:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Mr(e)}static create(e){return new Mr(e)}}class et extends Mr{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return pu(this,(t,n,o,s,a)=>e=e.replace(o,o+(n-t),a),!1),e}mapDesc(e,t=!1){return mu(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let o=0,s=0;o<t.length;o+=2){let a=t[o],l=t[o+1];if(l>=0){t[o]=l,t[o+1]=a;let c=o>>1;for(;n.length<c;)n.push(ke.empty);n.push(a?e.slice(s,s+a):ke.empty)}s+=a}return new et(t,n)}compose(e){return this.empty?e:e.empty?this:J0(this,e,!0)}map(e,t=!1){return e.empty?this:mu(this,e,t,!0)}iterChanges(e,t=!1){pu(this,e,t)}get desc(){return Mr.create(this.sections)}filter(e){let t=[],n=[],o=[],s=new Qi(this);e:for(let a=0,l=0;;){let c=a==e.length?1e9:e[a++];for(;l<c||l==c&&s.len==0;){if(s.done)break e;let u=Math.min(s.len,c-l);ct(o,u,-1);let h=s.ins==-1?-1:s.off==0?s.ins:0;ct(t,u,h),h>0&&On(n,t,s.text),s.forward(u),l+=u}let d=e[a++];for(;l<d;){if(s.done)break e;let u=Math.min(s.len,d-l);ct(t,u,-1),ct(o,u,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(u),l+=u}}return{changes:new et(t,n),filtered:Mr.create(o)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],o=this.sections[t+1];o<0?e.push(n):o==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let o=[],s=[],a=0,l=null;function c(u=!1){if(!u&&!o.length)return;a<t&&ct(o,t-a,-1);let h=new et(o,s);l=l?l.compose(h.map(l)):h,o=[],s=[],a=0}function d(u){if(Array.isArray(u))for(let h of u)d(h);else if(u instanceof et){if(u.length!=t)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);c(),l=l?l.compose(u.map(l)):u}else{let{from:h,to:f=h,insert:p}=u;if(h>f||h<0||f>t)throw new RangeError(`Invalid change range ${h} to ${f} (in doc of length ${t})`);let m=p?typeof p=="string"?ke.of(p.split(n||fu)):p:ke.empty,g=m.length;if(h==f&&g==0)return;h<a&&c(),h>a&&ct(o,h-a,-1),ct(o,f-h,g),On(s,o,m),a=f}}return d(e),c(!l),l}static empty(e){return new et(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let o=0;o<e.length;o++){let s=e[o];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((a,l)=>l&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;n.length<o;)n.push(ke.empty);n[o]=ke.of(s.slice(1)),t.push(s[0],n[o].length)}}}return new et(t,n)}static createSet(e,t){return new et(e,t)}}function ct(r,e,t,n=!1){if(e==0&&t<=0)return;let o=r.length-2;o>=0&&t<=0&&t==r[o+1]?r[o]+=e:e==0&&r[o]==0?r[o+1]+=t:n?(r[o]+=e,r[o+1]+=t):r.push(e,t)}function On(r,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<n;)r.push(ke.empty);r.push(t)}}function pu(r,e,t){let n=r.inserted;for(let o=0,s=0,a=0;a<r.sections.length;){let l=r.sections[a++],c=r.sections[a++];if(c<0)o+=l,s+=l;else{let d=o,u=s,h=ke.empty;for(;d+=l,u+=c,c&&n&&(h=h.append(n[a-2>>1])),!(t||a==r.sections.length||r.sections[a+1]<0);)l=r.sections[a++],c=r.sections[a++];e(o,d,s,u,h),o=d,s=u}}}function mu(r,e,t,n=!1){let o=[],s=n?[]:null,a=new Qi(r),l=new Qi(e);for(let c=-1;;)if(a.ins==-1&&l.ins==-1){let d=Math.min(a.len,l.len);ct(o,d,-1),a.forward(d),l.forward(d)}else if(l.ins>=0&&(a.ins<0||c==a.i||a.off==0&&(l.len<a.len||l.len==a.len&&!t))){let d=l.len;for(ct(o,l.ins,-1);d;){let u=Math.min(a.len,d);a.ins>=0&&c<a.i&&a.len<=u&&(ct(o,0,a.ins),s&&On(s,o,a.text),c=a.i),a.forward(u),d-=u}l.next()}else if(a.ins>=0){let d=0,u=a.len;for(;u;)if(l.ins==-1){let h=Math.min(u,l.len);d+=h,u-=h,l.forward(h)}else if(l.ins==0&&l.len<u)u-=l.len,l.next();else break;ct(o,d,c<a.i?a.ins:0),s&&c<a.i&&On(s,o,a.text),c=a.i,a.forward(a.len-u)}else{if(a.done&&l.done)return s?et.createSet(o,s):Mr.create(o);throw new Error("Mismatched change set lengths")}}function J0(r,e,t=!1){let n=[],o=t?[]:null,s=new Qi(r),a=new Qi(e);for(let l=!1;;){if(s.done&&a.done)return o?et.createSet(n,o):Mr.create(n);if(s.ins==0)ct(n,s.len,0,l),s.next();else if(a.len==0&&!a.done)ct(n,0,a.ins,l),o&&On(o,n,a.text),a.next();else{if(s.done||a.done)throw new Error("Mismatched change set lengths");{let c=Math.min(s.len2,a.len),d=n.length;if(s.ins==-1){let u=a.ins==-1?-1:a.off?0:a.ins;ct(n,c,u,l),o&&u&&On(o,n,a.text)}else a.ins==-1?(ct(n,s.off?0:s.len,c,l),o&&On(o,n,s.textBit(c))):(ct(n,s.off?0:s.len,a.off?0:a.ins,l),o&&!a.off&&On(o,n,a.text));l=(s.ins>c||a.ins>=0&&a.len>c)&&(l||n.length>d),s.forward2(c),a.forward(c)}}}}class Qi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?ke.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?ke.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Kn{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,o;return this.empty?n=o=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),o=e.mapPos(this.to,-1)),n==this.from&&o==this.to?this:new Kn(n,o,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return U.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return U.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return U.range(e.anchor,e.head)}static create(e,t,n){return new Kn(e,t,n)}}class U{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:U.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new U([this.main],0)}addRange(e,t=!0){return U.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,U.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new U(e.ranges.map(t=>Kn.fromJSON(t)),e.main)}static single(e,t=e){return new U([U.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,o=0;o<e.length;o++){let s=e[o];if(s.empty?s.from<=n:s.from<n)return U.normalized(e.slice(),t);n=s.to}return new U(e,t)}static cursor(e,t=0,n,o){return Kn.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(o??16777215)<<6)}static range(e,t,n,o){let s=(n??16777215)<<6|(o==null?7:Math.min(6,o));return t<e?Kn.create(t,e,48|s):Kn.create(e,t,(t>e?8:0)|s)}static normalized(e,t=0){let n=e[t];e.sort((o,s)=>o.from-s.from),t=e.indexOf(n);for(let o=1;o<e.length;o++){let s=e[o],a=e[o-1];if(s.empty?s.from<=a.to:s.from<a.to){let l=a.from,c=Math.max(s.to,a.to);o<=t&&t--,e.splice(--o,2,s.anchor>s.head?U.range(c,l):U.range(l,c))}}return new U(e,t)}}function ey(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Wh=0;class ee{constructor(e,t,n,o,s){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=o,this.id=Wh++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new ee(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:zh),!!e.static,e.enables)}of(e){return new il([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new il(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new il(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function zh(r,e){return r==e||r.length==e.length&&r.every((t,n)=>t===e[n])}class il{constructor(e,t,n,o){this.dependencies=e,this.facet=t,this.type=n,this.value=o,this.id=Wh++}dynamicSlot(e){var t;let n=this.value,o=this.facet.compareInput,s=this.id,a=e[s]>>1,l=this.type==2,c=!1,d=!1,u=[];for(let h of this.dependencies)h=="doc"?c=!0:h=="selection"?d=!0:((t=e[h.id])!==null&&t!==void 0?t:1)&1||u.push(e[h.id]);return{create(h){return h.values[a]=n(h),1},update(h,f){if(c&&f.docChanged||d&&(f.docChanged||f.selection)||gu(h,u)){let p=n(h);if(l?!bm(p,h.values[a],o):!o(p,h.values[a]))return h.values[a]=p,1}return 0},reconfigure:(h,f)=>{let p,m=f.config.address[s];if(m!=null){let g=Ql(f,m);if(this.dependencies.every(O=>O instanceof ee?f.facet(O)===h.facet(O):O instanceof fr?f.field(O,!1)==h.field(O,!1):!0)||(l?bm(p=n(h),g,o):o(p=n(h),g)))return h.values[a]=g,0}else p=n(h);return h.values[a]=p,1}}}}function bm(r,e,t){if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],e[n]))return!1;return!0}function gu(r,e){let t=!1;for(let n of e)yi(r,n)&1&&(t=!0);return t}function LS(r,e,t){let n=t.map(c=>r[c.id]),o=t.map(c=>c.type),s=n.filter(c=>!(c&1)),a=r[e.id]>>1;function l(c){let d=[];for(let u=0;u<n.length;u++){let h=Ql(c,n[u]);if(o[u]==2)for(let f of h)d.push(f);else d.push(h)}return e.combine(d)}return{create(c){for(let d of n)yi(c,d);return c.values[a]=l(c),1},update(c,d){if(!gu(c,s))return 0;let u=l(c);return e.compare(u,c.values[a])?0:(c.values[a]=u,1)},reconfigure(c,d){let u=gu(c,n),h=d.config.facets[e.id],f=d.facet(e);if(h&&!u&&zh(t,h))return c.values[a]=f,0;let p=l(c);return e.compare(p,f)?(c.values[a]=f,0):(c.values[a]=p,1)}}}const vm=ee.define({static:!0});class fr{constructor(e,t,n,o,s){this.id=e,this.createF=t,this.updateF=n,this.compareF=o,this.spec=s,this.provides=void 0}static define(e){let t=new fr(Wh++,e.create,e.update,e.compare||((n,o)=>n===o),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(vm).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,o)=>{let s=n.values[t],a=this.updateF(s,o);return this.compareF(s,a)?0:(n.values[t]=a,1)},reconfigure:(n,o)=>o.config.address[this.id]!=null?(n.values[t]=o.field(this),0):(n.values[t]=this.create(n),1)}}init(e){return[this,vm.of({field:this,create:e})]}get extension(){return this}}const Un={lowest:4,low:3,default:2,high:1,highest:0};function Fs(r){return e=>new ty(e,r)}const Ji={highest:Fs(Un.highest),high:Fs(Un.high),default:Fs(Un.default),low:Fs(Un.low),lowest:Fs(Un.lowest)};class ty{constructor(e,t){this.inner=e,this.prec=t}}class bc{of(e){return new Ou(this,e)}reconfigure(e){return bc.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Ou{constructor(e,t){this.compartment=e,this.inner=t}}class Tl{constructor(e,t,n,o,s,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=o,this.staticValues=s,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let o=[],s=Object.create(null),a=new Map;for(let f of FS(e,t,a))f instanceof fr?o.push(f):(s[f.facet.id]||(s[f.facet.id]=[])).push(f);let l=Object.create(null),c=[],d=[];for(let f of o)l[f.id]=d.length<<1,d.push(p=>f.slot(p));let u=n==null?void 0:n.config.facets;for(let f in s){let p=s[f],m=p[0].facet,g=u&&u[f]||[];if(p.every(O=>O.type==0))if(l[m.id]=c.length<<1|1,zh(g,p))c.push(n.facet(m));else{let O=m.combine(p.map(y=>y.value));c.push(n&&m.compare(O,n.facet(m))?n.facet(m):O)}else{for(let O of p)O.type==0?(l[O.id]=c.length<<1|1,c.push(O.value)):(l[O.id]=d.length<<1,d.push(y=>O.dynamicSlot(y)));l[m.id]=d.length<<1,d.push(O=>LS(O,m,p))}}let h=d.map(f=>f(l));return new Tl(e,a,h,l,c,s)}}function FS(r,e,t){let n=[[],[],[],[],[]],o=new Map;function s(a,l){let c=o.get(a);if(c!=null){if(c<=l)return;let d=n[c].indexOf(a);d>-1&&n[c].splice(d,1),a instanceof Ou&&t.delete(a.compartment)}if(o.set(a,l),Array.isArray(a))for(let d of a)s(d,l);else if(a instanceof Ou){if(t.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let d=e.get(a.compartment)||a.inner;t.set(a.compartment,d),s(d,l)}else if(a instanceof ty)s(a.inner,a.prec);else if(a instanceof fr)n[l].push(a),a.provides&&s(a.provides,l);else if(a instanceof il)n[l].push(a),a.facet.extensions&&s(a.facet.extensions,Un.default);else{let d=a.extension;if(!d)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(d,l)}}return s(r,Un.default),n.reduce((a,l)=>a.concat(l))}function yi(r,e){if(e&1)return 2;let t=e>>1,n=r.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;r.status[t]=4;let o=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|o}function Ql(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const ry=ee.define(),yu=ee.define({combine:r=>r.some(e=>e),static:!0}),ny=ee.define({combine:r=>r.length?r[0]:void 0,static:!0}),oy=ee.define(),sy=ee.define(),iy=ee.define(),ay=ee.define({combine:r=>r.length?r[0]:!1});class yo{constructor(e,t){this.type=e,this.value=t}static define(){return new HS}}class HS{of(e){return new yo(this,e)}}class GS{constructor(e){this.map=e}of(e){return new xe(this,e)}}class xe{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new xe(this.type,t)}is(e){return this.type==e}static define(e={}){return new GS(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let o of e){let s=o.map(t);s&&n.push(s)}return n}}xe.reconfigure=xe.define();xe.appendConfig=xe.define();class it{constructor(e,t,n,o,s,a){this.startState=e,this.changes=t,this.selection=n,this.effects=o,this.annotations=s,this.scrollIntoView=a,this._doc=null,this._state=null,n&&ey(n,t.newLength),s.some(l=>l.type==it.time)||(this.annotations=s.concat(it.time.of(Date.now())))}static create(e,t,n,o,s,a){return new it(e,t,n,o,s,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(it.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}it.time=yo.define();it.userEvent=yo.define();it.addToHistory=yo.define();it.remote=yo.define();function KS(r,e){let t=[];for(let n=0,o=0;;){let s,a;if(n<r.length&&(o==e.length||e[o]>=r[n]))s=r[n++],a=r[n++];else if(o<e.length)s=e[o++],a=e[o++];else return t;!t.length||t[t.length-1]<s?t.push(s,a):t[t.length-1]<a&&(t[t.length-1]=a)}}function ly(r,e,t){var n;let o,s,a;return t?(o=e.changes,s=et.empty(e.changes.length),a=r.changes.compose(e.changes)):(o=e.changes.map(r.changes),s=r.changes.mapDesc(e.changes,!0),a=r.changes.compose(o)),{changes:a,selection:e.selection?e.selection.map(s):(n=r.selection)===null||n===void 0?void 0:n.map(o),effects:xe.mapEffects(r.effects,o).concat(xe.mapEffects(e.effects,s)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function bu(r,e,t){let n=e.selection,o=Yo(e.annotations);return e.userEvent&&(o=o.concat(it.userEvent.of(e.userEvent))),{changes:e.changes instanceof et?e.changes:et.of(e.changes||[],t,r.facet(ny)),selection:n&&(n instanceof U?n:U.single(n.anchor,n.head)),effects:Yo(e.effects),annotations:o,scrollIntoView:!!e.scrollIntoView}}function cy(r,e,t){let n=bu(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let a=!!e[s].sequential;n=ly(n,bu(r,e[s],a?n.changes.newLength:r.doc.length),a)}let o=it.create(r,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return e$(t?JS(o):o)}function JS(r){let e=r.startState,t=!0;for(let o of e.facet(oy)){let s=o(r);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:KS(t,s))}if(t!==!0){let o,s;if(t===!1)s=r.changes.invertedDesc,o=et.empty(e.doc.length);else{let a=r.changes.filter(t);o=a.changes,s=a.filtered.mapDesc(a.changes).invertedDesc}r=it.create(e,o,r.selection&&r.selection.map(s),xe.mapEffects(r.effects,s),r.annotations,r.scrollIntoView)}let n=e.facet(sy);for(let o=n.length-1;o>=0;o--){let s=n[o](r);s instanceof it?r=s:Array.isArray(s)&&s.length==1&&s[0]instanceof it?r=s[0]:r=cy(e,Yo(s),!1)}return r}function e$(r){let e=r.startState,t=e.facet(iy),n=r;for(let o=t.length-1;o>=0;o--){let s=t[o](r);s&&Object.keys(s).length&&(n=ly(n,bu(e,s,r.changes.newLength),!0))}return n==r?r:it.create(e,r.changes,r.selection,n.effects,n.annotations,n.scrollIntoView)}const t$=[];function Yo(r){return r==null?t$:Array.isArray(r)?r:[r]}var zt=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(zt||(zt={}));const r$=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let vu;try{vu=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function n$(r){if(vu)return vu.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||r$.test(t)))return!0}return!1}function o$(r){return e=>{if(!/\S/.test(e))return zt.Space;if(n$(e))return zt.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return zt.Word;return zt.Other}}class be{constructor(e,t,n,o,s,a){this.config=e,this.doc=t,this.selection=n,this.values=o,this.status=e.statusTemplate.slice(),this.computeSlot=s,a&&(a._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)yi(this,l<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return yi(this,n),Ql(this,n)}update(...e){return cy(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:o}=t;for(let l of e.effects)l.is(bc.reconfigure)?(t&&(o=new Map,t.compartments.forEach((c,d)=>o.set(d,c)),t=null),o.set(l.value.compartment,l.value.extension)):l.is(xe.reconfigure)?(t=null,n=l.value):l.is(xe.appendConfig)&&(t=null,n=Yo(n).concat(l.value));let s;t?s=e.startState.values.slice():(t=Tl.resolve(n,o,this),s=new be(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(c,d)=>d.reconfigure(c,this),null).values);let a=e.startState.facet(yu)?e.newSelection:e.newSelection.asSingle();new be(t,e.newDoc,a,s,(l,c)=>c.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:U.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),o=this.changes(n.changes),s=[n.range],a=Yo(n.effects);for(let l=1;l<t.ranges.length;l++){let c=e(t.ranges[l]),d=this.changes(c.changes),u=d.map(o);for(let f=0;f<l;f++)s[f]=s[f].map(u);let h=o.mapDesc(d,!0);s.push(c.range.map(h)),o=o.compose(u),a=xe.mapEffects(a,u).concat(xe.mapEffects(Yo(c.effects),h))}return{changes:o,selection:U.create(s,t.mainIndex),effects:a}}changes(e=[]){return e instanceof et?e:et.of(e,this.doc.length,this.facet(be.lineSeparator))}toText(e){return ke.of(e.split(this.facet(be.lineSeparator)||fu))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(yi(this,t),Ql(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let o=e[n];o instanceof fr&&this.config.address[o.id]!=null&&(t[n]=o.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let o=[];if(n){for(let s in n)if(Object.prototype.hasOwnProperty.call(e,s)){let a=n[s],l=e[s];o.push(a.init(c=>a.spec.fromJSON(l,c)))}}return be.create({doc:e.doc,selection:U.fromJSON(e.selection),extensions:t.extensions?o.concat([t.extensions]):o})}static create(e={}){let t=Tl.resolve(e.extensions||[],new Map),n=e.doc instanceof ke?e.doc:ke.of((e.doc||"").split(t.staticFacet(be.lineSeparator)||fu)),o=e.selection?e.selection instanceof U?e.selection:U.single(e.selection.anchor,e.selection.head):U.single(0);return ey(o,n.length),t.staticFacet(yu)||(o=o.asSingle()),new be(t,n,o,t.dynamicSlots.map(()=>null),(s,a)=>a.create(s),null)}get tabSize(){return this.facet(be.tabSize)}get lineBreak(){return this.facet(be.lineSeparator)||`
|
|
5
|
+
`}get readOnly(){return this.facet(ay)}phrase(e,...t){for(let n of this.facet(be.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,o)=>{if(o=="$")return"$";let s=+(o||1);return!s||s>t.length?n:t[s-1]})),e}languageDataAt(e,t,n=-1){let o=[];for(let s of this.facet(ry))for(let a of s(this,t,n))Object.prototype.hasOwnProperty.call(a,e)&&o.push(a[e]);return o}charCategorizer(e){return o$(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:o}=this.doc.lineAt(e),s=this.charCategorizer(e),a=e-n,l=e-n;for(;a>0;){let c=Cr(t,a,!1);if(s(t.slice(c,a))!=zt.Word)break;a=c}for(;l<o;){let c=Cr(t,l);if(s(t.slice(l,c))!=zt.Word)break;l=c}return a==l?null:U.range(a+n,l+n)}}be.allowMultipleSelections=yu;be.tabSize=ee.define({combine:r=>r.length?r[0]:4});be.lineSeparator=ny;be.readOnly=ay;be.phrases=ee.define({compare(r,e){let t=Object.keys(r),n=Object.keys(e);return t.length==n.length&&t.every(o=>r[o]==e[o])}});be.languageData=ry;be.changeFilter=oy;be.transactionFilter=sy;be.transactionExtender=iy;bc.reconfigure=xe.define();function vc(r,e,t={}){let n={};for(let o of r)for(let s of Object.keys(o)){let a=o[s],l=n[s];if(l===void 0)n[s]=a;else if(!(l===a||a===void 0))if(Object.hasOwnProperty.call(t,s))n[s]=t[s](l,a);else throw new Error("Config merge conflict for field "+s)}for(let o in e)n[o]===void 0&&(n[o]=e[o]);return n}class uo{eq(e){return this==e}range(e,t=e){return wu.create(e,t,this)}}uo.prototype.startSide=uo.prototype.endSide=0;uo.prototype.point=!1;uo.prototype.mapMode=ut.TrackDel;let wu=class dy{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new dy(e,t,n)}};function ku(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}class Uh{constructor(e,t,n,o){this.from=e,this.to=t,this.value=n,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,o=0){let s=n?this.to:this.from;for(let a=o,l=s.length;;){if(a==l)return a;let c=a+l>>1,d=s[c]-e||(n?this.value[c].endSide:this.value[c].startSide)-t;if(c==a)return d>=0?a:l;d>=0?l=c:a=c+1}}between(e,t,n,o){for(let s=this.findIndex(t,-1e9,!0),a=this.findIndex(n,1e9,!1,s);s<a;s++)if(o(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let n=[],o=[],s=[],a=-1,l=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],u=this.from[c]+e,h=this.to[c]+e,f,p;if(u==h){let m=t.mapPos(u,d.startSide,d.mapMode);if(m==null||(f=p=m,d.startSide!=d.endSide&&(p=t.mapPos(u,d.endSide),p<f)))continue}else if(f=t.mapPos(u,d.startSide),p=t.mapPos(h,d.endSide),f>p||f==p&&d.startSide>0&&d.endSide<=0)continue;(p-f||d.endSide-d.startSide)<0||(a<0&&(a=f),d.point&&(l=Math.max(l,p-f)),n.push(d),o.push(f-a),s.push(p-a))}return{mapped:n.length?new Uh(o,s,n,l):null,pos:a}}}class ve{constructor(e,t,n,o){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=o}static create(e,t,n,o){return new ve(e,t,n,o)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:o=0,filterTo:s=this.length}=e,a=e.filter;if(t.length==0&&!a)return this;if(n&&(t=t.slice().sort(ku)),this.isEmpty)return t.length?ve.of(t):this;let l=new uy(this,null,-1).goto(0),c=0,d=[],u=new ss;for(;l.value||c<t.length;)if(c<t.length&&(l.from-t[c].from||l.startSide-t[c].value.startSide)>=0){let h=t[c++];u.addInner(h.from,h.to,h.value)||d.push(h)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(l.chunkIndex)<t[c].from)&&(!a||o>this.chunkEnd(l.chunkIndex)||s<this.chunkPos[l.chunkIndex])&&u.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!a||o>l.to||s<l.from||a(l.from,l.to,l.value))&&(u.addInner(l.from,l.to,l.value)||d.push(wu.create(l.from,l.to,l.value))),l.next());return u.finishInner(this.nextLayer.isEmpty&&!d.length?ve.empty:this.nextLayer.update({add:d,filter:a,filterFrom:o,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],o=-1;for(let a=0;a<this.chunk.length;a++){let l=this.chunkPos[a],c=this.chunk[a],d=e.touchesRange(l,l+c.length);if(d===!1)o=Math.max(o,c.maxPoint),t.push(c),n.push(e.mapPos(l));else if(d===!0){let{mapped:u,pos:h}=c.map(l,e);u&&(o=Math.max(o,u.maxPoint),t.push(u),n.push(h))}}let s=this.nextLayer.map(e);return t.length==0?s:new ve(n,t,s||ve.empty,o)}between(e,t,n){if(!this.isEmpty){for(let o=0;o<this.chunk.length;o++){let s=this.chunkPos[o],a=this.chunk[o];if(t>=s&&e<=s+a.length&&a.between(s,e-s,t-s,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return Ei.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ei.from(e).goto(t)}static compare(e,t,n,o,s=-1){let a=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),c=wm(a,l,n),d=new Hs(a,c,s),u=new Hs(l,c,s);n.iterGaps((h,f,p)=>km(d,h,u,f,p,o)),n.empty&&n.length==0&&km(d,0,u,0,0,o)}static eq(e,t,n=0,o){o==null&&(o=999999999);let s=e.filter(u=>!u.isEmpty&&t.indexOf(u)<0),a=t.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=a.length)return!1;if(!s.length)return!0;let l=wm(s,a),c=new Hs(s,l,0).goto(n),d=new Hs(a,l,0).goto(n);for(;;){if(c.to!=d.to||!Su(c.active,d.active)||c.point&&(!d.point||!c.point.eq(d.point)))return!1;if(c.to>o)return!0;c.next(),d.next()}}static spans(e,t,n,o,s=-1){let a=new Hs(e,null,s).goto(t),l=t,c=a.openStart;for(;;){let d=Math.min(a.to,n);if(a.point){let u=a.activeForPoint(a.to),h=a.pointFrom<t?u.length+1:a.point.startSide<0?u.length:Math.min(u.length,c);o.point(l,d,a.point,u,h,a.pointRank),c=Math.min(a.openEnd(d),u.length)}else d>l&&(o.span(l,d,a.active,c),c=a.openEnd(d));if(a.to>n)return c+(a.point&&a.to>n?1:0);l=a.to,a.next()}}static of(e,t=!1){let n=new ss;for(let o of e instanceof wu?[e]:t?s$(e):e)n.add(o.from,o.to,o.value);return n.finish()}static join(e){if(!e.length)return ve.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let o=e[n];o!=ve.empty;o=o.nextLayer)t=new ve(o.chunkPos,o.chunk,t,Math.max(o.maxPoint,t.maxPoint));return t}}ve.empty=new ve([],[],null,-1);function s$(r){if(r.length>1)for(let e=r[0],t=1;t<r.length;t++){let n=r[t];if(ku(e,n)>0)return r.slice().sort(ku);e=n}return r}ve.empty.nextLayer=ve.empty;class ss{finishChunk(e){this.chunks.push(new Uh(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new ss)).add(e,t,n)}addInner(e,t,n){let o=e-this.lastTo||n.startSide-this.last.endSide;if(o<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return o<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(ve.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=ve.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function wm(r,e,t){let n=new Map;for(let s of r)for(let a=0;a<s.chunk.length;a++)s.chunk[a].maxPoint<=0&&n.set(s.chunk[a],s.chunkPos[a]);let o=new Set;for(let s of e)for(let a=0;a<s.chunk.length;a++){let l=n.get(s.chunk[a]);l!=null&&(t?t.mapPos(l):l)==s.chunkPos[a]&&!(t!=null&&t.touchesRange(l,l+s.chunk[a].length))&&o.add(s.chunk[a])}return o}class uy{constructor(e,t,n,o=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=o}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let o=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(o)||this.layer.chunkEnd(this.chunkIndex)<e||o.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let o=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<o)&&this.setRangeIndex(o)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ei{constructor(e){this.heap=e}static from(e,t=null,n=-1){let o=[];for(let s=0;s<e.length;s++)for(let a=e[s];!a.isEmpty;a=a.nextLayer)a.maxPoint>=n&&o.push(new uy(a,t,n,s));return o.length==1?o[0]:new Ei(o)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)fd(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)fd(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),fd(this.heap,0)}}}function fd(r,e){for(let t=r[e];;){let n=(e<<1)+1;if(n>=r.length)break;let o=r[n];if(n+1<r.length&&o.compare(r[n+1])>=0&&(o=r[n+1],n++),t.compare(o)<0)break;r[n]=t,r[e]=o,e=n}}class Hs{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ei.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Ca(this.active,e),Ca(this.activeTo,e),Ca(this.activeRank,e),this.minActive=Sm(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:o,rank:s}=this.cursor;for(;t<this.activeRank.length&&(s-this.activeRank[t]||o-this.activeTo[t])>0;)t++;Ta(this.active,t,n),Ta(this.activeTo,t,o),Ta(this.activeRank,t,s),e&&Ta(e,t,this.cursor.from),this.minActive=Sm(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let o=this.minActive;if(o>-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>e){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),n&&Ca(n,o)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let o=n.length-1;o>=0&&n[o]<e;o--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function km(r,e,t,n,o,s){r.goto(e),t.goto(n);let a=n+o,l=n,c=n-e;for(;;){let d=r.to+c-t.to||r.endSide-t.endSide,u=d<0?r.to+c:t.to,h=Math.min(u,a);if(r.point||t.point?r.point&&t.point&&(r.point==t.point||r.point.eq(t.point))&&Su(r.activeForPoint(r.to),t.activeForPoint(t.to))||s.comparePoint(l,h,r.point,t.point):h>l&&!Su(r.active,t.active)&&s.compareRange(l,h,r.active,t.active),u>a)break;l=u,d<=0&&r.next(),d>=0&&t.next()}}function Su(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!=e[t]&&!r[t].eq(e[t]))return!1;return!0}function Ca(r,e){for(let t=e,n=r.length-1;t<n;t++)r[t]=r[t+1];r.pop()}function Ta(r,e,t){for(let n=r.length-1;n>=e;n--)r[n+1]=r[n];r[e]=t}function Sm(r,e){let t=-1,n=1e9;for(let o=0;o<e.length;o++)(e[o]-n||r[o].endSide-r[t].endSide)<0&&(t=o,n=e[o]);return t}function hy(r,e,t=r.length){let n=0;for(let o=0;o<t;)r.charCodeAt(o)==9?(n+=e-n%e,o++):(n++,o=Cr(r,o));return n}function i$(r,e,t,n){for(let o=0,s=0;;){if(s>=e)return o;if(o==r.length)break;s+=r.charCodeAt(o)==9?t-s%t:1,o=Cr(r,o)}return n===!0?-1:r.length}const $u="ͼ",$m=typeof Symbol>"u"?"__"+$u:Symbol.for($u),Pu=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Pm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class $n{constructor(e,t){this.rules=[];let{finish:n}=t||{};function o(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function s(a,l,c,d){let u=[],h=/^@(\w+)\b/.exec(a[0]),f=h&&h[1]=="keyframes";if(h&&l==null)return c.push(a[0]+";");for(let p in l){let m=l[p];if(/&/.test(p))s(p.split(/,\s*/).map(g=>a.map(O=>g.replace(/&/,O))).reduce((g,O)=>g.concat(O)),m,c);else if(m&&typeof m=="object"){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");s(o(p),m,u,f)}else m!=null&&u.push(p.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+m+";")}(u.length||f)&&c.push((n&&!h&&!d?a.map(n):a).join(", ")+" {"+u.join(" ")+"}")}for(let a in e)s(o(a),e[a],this.rules)}getRules(){return this.rules.join(`
|
|
6
|
+
`)}static newName(){let e=Pm[$m]||1;return Pm[$m]=e+1,$u+e.toString(36)}static mount(e,t,n){let o=e[Pu],s=n&&n.nonce;o?s&&o.setNonce(s):o=new a$(e,s),o.mount(Array.isArray(t)?t:[t])}}let xm=new Map;class a${constructor(e,t){this.root=e;let n=e.ownerDocument||e,o=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&o.CSSStyleSheet){let s=xm.get(n);if(s)return e[Pu]=s;this.sheet=new o.CSSStyleSheet,xm.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Pu]=this}mount(e){let t=this.sheet,n=0,o=0;for(let s=0;s<e.length;s++){let a=e[s],l=this.modules.indexOf(a);if(l<o&&l>-1&&(this.modules.splice(l,1),o--,l=-1),l==-1){if(this.modules.splice(o++,0,a),t)for(let c=0;c<a.rules.length;c++)t.insertRule(a.rules[c],n++)}else{for(;o<l;)n+=this.modules[o++].rules.length;n+=a.rules.length,o++}}if(t)this.root.adoptedStyleSheets.indexOf(this.sheet)<0&&(this.root.adoptedStyleSheets=[this.sheet,...this.root.adoptedStyleSheets]);else{let s="";for(let l=0;l<this.modules.length;l++)s+=this.modules[l].getRules()+`
|
|
7
|
+
`;this.styleTag.textContent=s;let a=this.root.head||this.root;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Pn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ni={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},l$=typeof navigator<"u"&&/Mac/.test(navigator.platform),c$=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var nt=0;nt<10;nt++)Pn[48+nt]=Pn[96+nt]=String(nt);for(var nt=1;nt<=24;nt++)Pn[nt+111]="F"+nt;for(var nt=65;nt<=90;nt++)Pn[nt]=String.fromCharCode(nt+32),Ni[nt]=String.fromCharCode(nt);for(var pd in Pn)Ni.hasOwnProperty(pd)||(Ni[pd]=Pn[pd]);function d$(r){var e=l$&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||c$&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Ni:Pn)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function El(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function xu(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function u$(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function al(r,e){if(!e.anchorNode)return!1;try{return xu(r,e.anchorNode)}catch{return!1}}function Ai(r){return r.nodeType==3?ho(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function bi(r,e,t,n){return t?_m(r,e,t,n,-1)||_m(r,e,t,n,1):!1}function Vi(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function _m(r,e,t,n,o){for(;;){if(r==t&&e==n)return!0;if(e==(o<0?0:Yr(r))){if(r.nodeName=="DIV")return!1;let s=r.parentNode;if(!s||s.nodeType!=1)return!1;e=Vi(r)+(o<0?0:1),r=s}else if(r.nodeType==1){if(r=r.childNodes[e+(o<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=o<0?Yr(r):0}else return!1}}function Yr(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Yh(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function h$(r){return{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function fy(r,e){let t=e.width/r.offsetWidth,n=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-r.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function f$(r,e,t,n,o,s,a,l){let c=r.ownerDocument,d=c.defaultView||window;for(let u=r,h=!1;u&&!h;)if(u.nodeType==1){let f,p=u==c.body,m=1,g=1;if(p)f=h$(d);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let b=u.getBoundingClientRect();({scaleX:m,scaleY:g}=fy(u,b)),f={left:b.left,right:b.left+u.clientWidth*m,top:b.top,bottom:b.top+u.clientHeight*g}}let O=0,y=0;if(o=="nearest")e.top<f.top?(y=-(f.top-e.top+a),t>0&&e.bottom>f.bottom+y&&(y=e.bottom-f.bottom+y+a)):e.bottom>f.bottom&&(y=e.bottom-f.bottom+a,t<0&&e.top-y<f.top&&(y=-(f.top+y-e.top+a)));else{let b=e.bottom-e.top,v=f.bottom-f.top;y=(o=="center"&&b<=v?e.top+b/2-v/2:o=="start"||o=="center"&&t<0?e.top-a:e.bottom-v+a)-f.top}if(n=="nearest"?e.left<f.left?(O=-(f.left-e.left+s),t>0&&e.right>f.right+O&&(O=e.right-f.right+O+s)):e.right>f.right&&(O=e.right-f.right+s,t<0&&e.left<f.left+O&&(O=-(f.left+O-e.left+s))):O=(n=="center"?e.left+(e.right-e.left)/2-(f.right-f.left)/2:n=="start"==l?e.left-s:e.right-(f.right-f.left)+s)-f.left,O||y)if(p)d.scrollBy(O,y);else{let b=0,v=0;if(y){let w=u.scrollTop;u.scrollTop+=y/g,v=(u.scrollTop-w)*g}if(O){let w=u.scrollLeft;u.scrollLeft+=O/m,b=(u.scrollLeft-w)*m}e={left:e.left-b,top:e.top-v,right:e.right-b,bottom:e.bottom-v},b&&Math.abs(b-O)<1&&(n="nearest"),v&&Math.abs(v-y)<1&&(o="nearest")}if(p)break;u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function p$(r){let e=r.ownerDocument;for(let t=r.parentNode;t&&t!=e.body;)if(t.nodeType==1){if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}class m${constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Yr(t):0),n,Math.min(e.focusOffset,n?Yr(n):0))}set(e,t,n,o){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=o}}let xo=null;function py(r){if(r.setActive)return r.setActive();if(xo)return r.focus(xo);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(xo==null?{get preventScroll(){return xo={preventScroll:!0},!0}}:void 0),!xo){xo=!1;for(let t=0;t<e.length;){let n=e[t++],o=e[t++],s=e[t++];n.scrollTop!=o&&(n.scrollTop=o),n.scrollLeft!=s&&(n.scrollLeft=s)}}}let Cm;function ho(r,e,t=e){let n=Cm||(Cm=document.createRange());return n.setEnd(r,t),n.setStart(r,e),n}function Lo(r,e,t){let n={key:e,code:e,keyCode:t,which:t,cancelable:!0},o=new KeyboardEvent("keydown",n);o.synthetic=!0,r.dispatchEvent(o);let s=new KeyboardEvent("keyup",n);return s.synthetic=!0,r.dispatchEvent(s),o.defaultPrevented||s.defaultPrevented}function g$(r){for(;r;){if(r&&(r.nodeType==9||r.nodeType==11&&r.host))return r;r=r.assignedSlot||r.parentNode}return null}function my(r){for(;r.attributes.length;)r.removeAttributeNode(r.attributes[0])}function O$(r,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,Yr(t));;)if(n){if(t.nodeType!=1)return!1;let o=t.childNodes[n-1];o.contentEditable=="false"?n--:(t=o,n=Yr(t))}else{if(t==r)return!0;n=Vi(t),t=t.parentNode}}function gy(r){return r.scrollTop>Math.max(1,r.scrollHeight-r.clientHeight-4)}class ht{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new ht(e.parentNode,Vi(e),t)}static after(e,t){return new ht(e.parentNode,Vi(e)+1,t)}}const Lh=[];class Be{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let n=this.dom,o=null,s;for(let a of this.children){if(a.flags&7){if(!a.dom&&(s=o?o.nextSibling:n.firstChild)){let l=Be.get(s);(!l||!l.parent&&l.canReuseDOM(a))&&a.reuseDOM(s)}a.sync(e,t),a.flags&=-8}if(s=o?o.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&s!=a.dom&&(t.written=!0),a.dom.parentNode==n)for(;s&&s!=a.dom;)s=Tm(s);else n.insertBefore(a.dom,s);o=a.dom}for(s=o?o.nextSibling:n.firstChild,s&&t&&t.node==n&&(t.written=!0);s;)s=Tm(s)}else if(this.flags&1)for(let n of this.children)n.flags&7&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let o=Yr(e)==0?0:t==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;o==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?o=-1:o=1),e=s}o<0?n=e:n=e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Be.get(n);)n=n.nextSibling;if(!n)return this.length;for(let o=0,s=0;;o++){let a=this.children[o];if(a.dom==n)return s;s+=a.length+a.breakAfter}}domBoundsAround(e,t,n=0){let o=-1,s=-1,a=-1,l=-1;for(let c=0,d=n,u=n;c<this.children.length;c++){let h=this.children[c],f=d+h.length;if(d<e&&f>t)return h.domBoundsAround(e,t,d);if(f>=e&&o==-1&&(o=c,s=d),d>t&&h.dom.parentNode==this.dom){a=c,l=u;break}u=f,d=f+h.breakAfter}return{from:s,to:l<0?n+this.length:l,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=Lh){this.markDirty();for(let o=e;o<t;o++){let s=this.children[o];s.parent==this&&n.indexOf(s)<0&&s.destroy()}this.children.splice(e,t-e,...n);for(let o=0;o<n.length;o++)n[o].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Oy(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,o,s,a){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}Be.prototype.breakAfter=0;function Tm(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class Oy{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function yy(r,e,t,n,o,s,a,l,c){let{children:d}=r,u=d.length?d[e]:null,h=s.length?s[s.length-1]:null,f=h?h.breakAfter:a;if(!(e==n&&u&&!a&&!f&&s.length<2&&u.merge(t,o,s.length?h:null,t==0,l,c))){if(n<d.length){let p=d[n];p&&(o<p.length||p.breakAfter&&(h!=null&&h.breakAfter))?(e==n&&(p=p.split(o),o=0),!f&&h&&p.merge(0,o,h,!0,0,c)?s[s.length-1]=p:((o||p.children.length&&!p.children[0].length)&&p.merge(0,o,null,!1,0,c),s.push(p))):p!=null&&p.breakAfter&&(h?h.breakAfter=1:a=1),n++}for(u&&(u.breakAfter=a,t>0&&(!a&&s.length&&u.merge(t,u.length,s[0],!1,l,0)?u.breakAfter=s.shift().breakAfter:(t<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(t,u.length,null,!1,l,0),e++));e<n&&s.length;)if(d[n-1].become(s[s.length-1]))n--,s.pop(),c=s.length?0:l;else if(d[e].become(s[0]))e++,s.shift(),l=s.length?0:c;else break;!s.length&&e&&n<d.length&&!d[e-1].breakAfter&&d[n].merge(0,0,d[e-1],!1,l,c)&&e--,(e<n||s.length)&&r.replaceChildren(e,n,s)}}function by(r,e,t,n,o,s){let a=r.childCursor(),{i:l,off:c}=a.findPos(t,1),{i:d,off:u}=a.findPos(e,-1),h=e-t;for(let f of n)h+=f.length;r.length+=h,yy(r,d,u,l,c,n,0,o,s)}let Vt=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},_u=typeof document<"u"?document:{documentElement:{style:{}}};const Cu=/Edge\/(\d+)/.exec(Vt.userAgent),vy=/MSIE \d/.test(Vt.userAgent),Tu=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vt.userAgent),wc=!!(vy||Tu||Cu),Qm=!wc&&/gecko\/(\d+)/i.test(Vt.userAgent),md=!wc&&/Chrome\/(\d+)/.exec(Vt.userAgent),Em="webkitFontSmoothing"in _u.documentElement.style,wy=!wc&&/Apple Computer/.test(Vt.vendor),Nm=wy&&(/Mobile\/\w+/.test(Vt.userAgent)||Vt.maxTouchPoints>2);var L={mac:Nm||/Mac/.test(Vt.platform),windows:/Win/.test(Vt.platform),linux:/Linux|X11/.test(Vt.platform),ie:wc,ie_version:vy?_u.documentMode||6:Tu?+Tu[1]:Cu?+Cu[1]:0,gecko:Qm,gecko_version:Qm?+(/Firefox\/(\d+)/.exec(Vt.userAgent)||[0,0])[1]:0,chrome:!!md,chrome_version:md?+md[1]:0,ios:Nm,android:/Android\b/.test(Vt.userAgent),webkit:Em,safari:wy,webkit_version:Em?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:_u.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const y$=256;class Lr extends Be{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,n){return this.flags&8||n&&(!(n instanceof Lr)||this.length-(t-e)+n.length>y$||n.flags&8)?!1:(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Lr(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ht(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return b$(this.dom,e,t)}}class Fr extends Be{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let o of t)o.setParent(this)}setAttrs(e){if(my(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,o,s,a){return n&&(!(n instanceof Fr&&n.mark.eq(this.mark))||e&&s<=0||t<this.length&&a<=0)?!1:(by(this,e,t,n?n.children.slice():[],s-1,a-1),this.markDirty(),!0)}split(e){let t=[],n=0,o=-1,s=0;for(let l of this.children){let c=n+l.length;c>e&&t.push(n<e?l.split(e-n):l),o<0&&n>=e&&(o=s),n=c,s++}let a=this.length-e;return this.length=e,o>-1&&(this.children.length=o,this.markDirty()),new Fr(this.mark,t,a)}domAtPos(e){return ky(this,e)}coordsAt(e,t){return $y(this,e,t)}}function b$(r,e,t){let n=r.nodeValue.length;e>n&&(e=n);let o=e,s=e,a=0;e==0&&t<0||e==n&&t>=0?L.chrome||L.gecko||(e?(o--,a=1):s<n&&(s++,a=-1)):t<0?o--:s<n&&s++;let l=ho(r,o,s).getClientRects();if(!l.length)return null;let c=l[(a?a<0:t>=0)?0:l.length-1];return L.safari&&!a&&c.width==0&&(c=Array.prototype.find.call(l,d=>d.width)||c),a?Yh(c,a<0):c||null}class Jn extends Be{static create(e,t,n){return new Jn(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=Jn.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,o,s,a){return n&&(!(n instanceof Jn)||!this.widget.compare(n.widget)||e>0&&s<=0||t<this.length&&a<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e instanceof Jn&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return ke.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,o=this.posAtStart;return n?n.slice(o,o+this.length):ke.empty}domAtPos(e){return(this.length?e==0:this.side>0)?ht.before(this.dom):ht.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let o=this.dom.getClientRects(),s=null;if(!o.length)return null;let a=this.side?this.side<0:e>0;for(let l=a?o.length-1:0;s=o[l],!(e>0?l==0:l==o.length-1||s.top<s.bottom);l+=a?-1:1);return Yh(s,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class is extends Be{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof is&&e.side==this.side}split(){return new is(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?ht.before(this.dom):ht.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ke.empty}get isHidden(){return!0}}Lr.prototype.children=Jn.prototype.children=is.prototype.children=Lh;function ky(r,e){let t=r.dom,{children:n}=r,o=0;for(let s=0;o<n.length;o++){let a=n[o],l=s+a.length;if(!(l==s&&a.getSide()<=0)){if(e>s&&e<l&&a.dom.parentNode==t)return a.domAtPos(e-s);if(e<=s)break;s=l}}for(let s=o;s>0;s--){let a=n[s-1];if(a.dom.parentNode==t)return a.domAtPos(a.length)}for(let s=o;s<n.length;s++){let a=n[s];if(a.dom.parentNode==t)return a.domAtPos(0)}return new ht(t,0)}function Sy(r,e,t){let n,{children:o}=r;t>0&&e instanceof Fr&&o.length&&(n=o[o.length-1])instanceof Fr&&n.mark.eq(e.mark)?Sy(n,e.children[0],t-1):(o.push(e),e.setParent(r)),r.length+=e.length}function $y(r,e,t){let n=null,o=-1,s=null,a=-1;function l(d,u){for(let h=0,f=0;h<d.children.length&&f<=u;h++){let p=d.children[h],m=f+p.length;m>=u&&(p.children.length?l(p,u-f):(!s||s.isHidden&&t>0)&&(m>u||f==m&&p.getSide()>0)?(s=p,a=u-f):(f<u||f==m&&p.getSide()<0&&!p.isHidden)&&(n=p,o=u-f)),f=m}}l(r,e);let c=(t<0?n:s)||n||s;return c?c.coordsAt(Math.max(0,c==n?o:a),t):v$(r)}function v$(r){let e=r.dom.lastChild;if(!e)return r.dom.getBoundingClientRect();let t=Ai(e);return t[t.length-1]||null}function Qu(r,e){for(let t in r)t=="class"&&e.class?e.class+=" "+r.class:t=="style"&&e.style?e.style+=";"+r.style:e[t]=r[t];return e}const Am=Object.create(null);function Fh(r,e,t){if(r==e)return!0;r||(r=Am),e||(e=Am);let n=Object.keys(r),o=Object.keys(e);if(n.length-(t&&n.indexOf(t)>-1?1:0)!=o.length-(t&&o.indexOf(t)>-1?1:0))return!1;for(let s of n)if(s!=t&&(o.indexOf(s)==-1||r[s]!==e[s]))return!1;return!0}function Eu(r,e,t){let n=!1;if(e)for(let o in e)t&&o in t||(n=!0,o=="style"?r.style.cssText="":r.removeAttribute(o));if(t)for(let o in t)e&&e[o]==t[o]||(n=!0,o=="style"?r.style.cssText=t[o]:r.setAttribute(o,t[o]));return n}function w$(r){let e=Object.create(null);for(let t=0;t<r.attributes.length;t++){let n=r.attributes[t];e[n.name]=n.value}return e}class Ke extends Be{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,o,s,a){if(n){if(!(n instanceof Ke))return!1;this.dom||n.transferDOM(this)}return o&&this.setDeco(n?n.attrs:null),by(this,e,t,n?n.children.slice():[],s,a),!0}split(e){let t=new Ke;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:n,off:o}=this.childPos(e);o&&(t.append(this.children[n].split(o),0),this.children[n].merge(o,this.children[n].length,null,!1,0,0),n++);for(let s=n;s<this.children.length;s++)t.append(this.children[s],0);for(;n>0&&this.children[n-1].length==0;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Fh(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Sy(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Qu(t,this.attrs||{})),n&&(this.attrs=Qu({class:n},this.attrs||{}))}domAtPos(e){return ky(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?this.flags&4&&(my(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Eu(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let o=this.dom.lastChild;for(;o&&Be.get(o)instanceof Fr;)o=o.lastChild;if(!o||!this.length||o.nodeName!="BR"&&((n=Be.get(o))===null||n===void 0?void 0:n.isEditable)==!1&&(!L.ios||!this.children.some(s=>s instanceof Lr))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let n of this.children){if(!(n instanceof Lr)||/[^ -~]/.test(n.text))return null;let o=Ai(n.dom);if(o.length!=1)return null;e+=o[0].width,t=o[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=$y(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:o}=this.parent.view.viewState,s=n.bottom-n.top;if(Math.abs(s-o.lineHeight)<2&&o.textHeight<s){let a=(s-o.textHeight)/2;return{top:n.top+a,bottom:n.bottom-a,left:n.left,right:n.left}}}return n}become(e){return!1}covers(){return!0}static find(e,t){for(let n=0,o=0;n<e.children.length;n++){let s=e.children[n],a=o+s.length;if(a>=t){if(s instanceof Ke)return s;if(a>t)break}o=a+s.breakAfter}return null}}class vn extends Be{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,o,s,a){return n&&(!(n instanceof vn)||!this.widget.compare(n.widget)||e>0&&s<=0||t<this.length&&a<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?ht.before(this.dom):ht.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new vn(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return Lh}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):ke.empty}domBoundsAround(){return null}become(e){return e instanceof vn&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t==n?!1:e<0?t<0:n>0}}class Os{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var ar=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(ar||(ar={}));class Se extends uo{constructor(e,t,n,o){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=o}get heightRelevant(){return!1}static mark(e){return new ea(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new xn(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,o;if(e.isBlockGap)n=-5e8,o=4e8;else{let{start:s,end:a}=Py(e,t);n=(s?t?-3e8:-1:5e8)-1,o=(a?t?2e8:1:-6e8)+1}return new xn(e,n,o,t,e.widget||null,!0)}static line(e){return new ta(e)}static set(e,t=!1){return ve.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Se.none=ve.empty;class ea extends Se{constructor(e){let{start:t,end:n}=Py(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof ea&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((n=e.attrs)===null||n===void 0?void 0:n.class))&&Fh(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}ea.prototype.point=!1;class ta extends Se{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof ta&&this.spec.class==e.spec.class&&Fh(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}ta.prototype.mapMode=ut.TrackBefore;ta.prototype.point=!0;class xn extends Se{constructor(e,t,n,o,s,a){super(t,n,s,e),this.block=o,this.isReplace=a,this.mapMode=o?t<=0?ut.TrackBefore:ut.TrackAfter:ut.TrackDel}get type(){return this.startSide!=this.endSide?ar.WidgetRange:this.startSide<=0?ar.WidgetBefore:ar.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof xn&&k$(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}xn.prototype.point=!0;function Py(r,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=r;return t==null&&(t=r.inclusive),n==null&&(n=r.inclusive),{start:t??e,end:n??e}}function k$(r,e){return r==e||!!(r&&e&&r.compare(e))}function Nu(r,e,t,n=0){let o=t.length-1;o>=0&&t[o]+n>=r?t[o]=Math.max(t[o],e):t.push(r,e)}class vi{constructor(e,t,n,o){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof vn&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Ke),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Qa(new is(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof vn)&&this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:a,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let o=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(Qa(new Lr(this.text.slice(this.textOff,this.textOff+o)),t),n),this.atCursorPos=!0,this.textOff+=o,e-=o,n=0}}span(e,t,n,o){this.buildText(t-e,n,o),this.pos=t,this.openStart<0&&(this.openStart=o)}point(e,t,n,o,s,a){if(this.disallowBlockEffectsFor[a]&&n instanceof xn){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(n instanceof xn)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new vn(n.widget||new Vm("div"),l,n));else{let c=Jn.create(n.widget||new Vm("span"),l,l?0:n.startSide),d=this.atCursorPos&&!c.isEditable&&s<=o.length&&(e<t||n.startSide>0),u=!c.isEditable&&(e<t||s>o.length||n.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!d&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(o),d&&(h.append(Qa(new is(1),o),s),s=o.length+Math.max(0,s-o.length)),h.append(Qa(c,o),s),this.atCursorPos=u,this.pendingBuffer=u?e<t||s>o.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=s)}static build(e,t,n,o,s){let a=new vi(e,t,n,s);return a.openEnd=ve.spans(o,t,n,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function Qa(r,e){for(let t of e)r=new Fr(t,[r],r.length);return r}class Vm extends Os{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Fe=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(Fe||(Fe={}));const fo=Fe.LTR,Hh=Fe.RTL;function xy(r){let e=[];for(let t=0;t<r.length;t++)e.push(1<<+r[t]);return e}const S$=xy("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),$$=xy("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Au=Object.create(null),br=[];for(let r of["()","[]","{}"]){let e=r.charCodeAt(0),t=r.charCodeAt(1);Au[e]=t,Au[t]=-e}function _y(r){return r<=247?S$[r]:1424<=r&&r<=1524?2:1536<=r&&r<=1785?$$[r-1536]:1774<=r&&r<=2220?4:8192<=r&&r<=8204?256:64336<=r&&r<=65023?4:1}const P$=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class yn{get dir(){return this.level%2?Hh:fo}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,o){let s=-1;for(let a=0;a<e.length;a++){let l=e[a];if(l.from<=t&&l.to>=t){if(l.level==n)return a;(s<0||(o!=0?o<0?l.from<t:l.to>t:e[s].level>l.level))&&(s=a)}}if(s<0)throw new RangeError("Index out of range");return s}}function Cy(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++){let n=r[t],o=e[t];if(n.from!=o.from||n.to!=o.to||n.direction!=o.direction||!Cy(n.inner,o.inner))return!1}return!0}const Pe=[];function x$(r,e,t,n,o){for(let s=0;s<=n.length;s++){let a=s?n[s-1].to:e,l=s<n.length?n[s].from:t,c=s?256:o;for(let d=a,u=c,h=c;d<l;d++){let f=_y(r.charCodeAt(d));f==512?f=u:f==8&&h==4&&(f=16),Pe[d]=f==4?2:f,f&7&&(h=f),u=f}for(let d=a,u=c,h=c;d<l;d++){let f=Pe[d];if(f==128)d<l-1&&u==Pe[d+1]&&u&24?f=Pe[d]=u:Pe[d]=256;else if(f==64){let p=d+1;for(;p<l&&Pe[p]==64;)p++;let m=d&&u==8||p<t&&Pe[p]==8?h==1?1:8:256;for(let g=d;g<p;g++)Pe[g]=m;d=p-1}else f==8&&h==1&&(Pe[d]=1);u=f,f&7&&(h=f)}}}function _$(r,e,t,n,o){let s=o==1?2:1;for(let a=0,l=0,c=0;a<=n.length;a++){let d=a?n[a-1].to:e,u=a<n.length?n[a].from:t;for(let h=d,f,p,m;h<u;h++)if(p=Au[f=r.charCodeAt(h)])if(p<0){for(let g=l-3;g>=0;g-=3)if(br[g+1]==-p){let O=br[g+2],y=O&2?o:O&4?O&1?s:o:0;y&&(Pe[h]=Pe[br[g]]=y),l=g;break}}else{if(br.length==189)break;br[l++]=h,br[l++]=f,br[l++]=c}else if((m=Pe[h])==2||m==1){let g=m==o;c=g?0:1;for(let O=l-3;O>=0;O-=3){let y=br[O+2];if(y&2)break;if(g)br[O+2]|=2;else{if(y&4)break;br[O+2]|=4}}}}}function C$(r,e,t,n){for(let o=0,s=n;o<=t.length;o++){let a=o?t[o-1].to:r,l=o<t.length?t[o].from:e;for(let c=a;c<l;){let d=Pe[c];if(d==256){let u=c+1;for(;;)if(u==l){if(o==t.length)break;u=t[o++].to,l=o<t.length?t[o].from:e}else if(Pe[u]==256)u++;else break;let h=s==1,f=(u<e?Pe[u]:n)==1,p=h==f?h?1:2:n;for(let m=u,g=o,O=g?t[g-1].to:r;m>c;)m==O&&(m=t[--g].from,O=g?t[g-1].to:r),Pe[--m]=p;c=u}else s=d,c++}}}function Vu(r,e,t,n,o,s,a){let l=n%2?2:1;if(n%2==o%2)for(let c=e,d=0;c<t;){let u=!0,h=!1;if(d==s.length||c<s[d].from){let g=Pe[c];g!=l&&(u=!1,h=g==16)}let f=!u&&l==1?[]:null,p=u?n:n+1,m=c;e:for(;;)if(d<s.length&&m==s[d].from){if(h)break e;let g=s[d];if(!u)for(let O=g.to,y=d+1;;){if(O==t)break e;if(y<s.length&&s[y].from==O)O=s[y++].to;else{if(Pe[O]==l)break e;break}}if(d++,f)f.push(g);else{g.from>c&&a.push(new yn(c,g.from,p));let O=g.direction==fo!=!(p%2);Ru(r,O?n+1:n,o,g.inner,g.from,g.to,a),c=g.to}m=g.to}else{if(m==t||(u?Pe[m]!=l:Pe[m]==l))break;m++}f?Vu(r,c,m,n+1,o,f,a):c<m&&a.push(new yn(c,m,p)),c=m}else for(let c=t,d=s.length;c>e;){let u=!0,h=!1;if(!d||c>s[d-1].to){let g=Pe[c-1];g!=l&&(u=!1,h=g==16)}let f=!u&&l==1?[]:null,p=u?n:n+1,m=c;e:for(;;)if(d&&m==s[d-1].to){if(h)break e;let g=s[--d];if(!u)for(let O=g.from,y=d;;){if(O==e)break e;if(y&&s[y-1].to==O)O=s[--y].from;else{if(Pe[O-1]==l)break e;break}}if(f)f.push(g);else{g.to<c&&a.push(new yn(g.to,c,p));let O=g.direction==fo!=!(p%2);Ru(r,O?n+1:n,o,g.inner,g.from,g.to,a),c=g.from}m=g.from}else{if(m==e||(u?Pe[m-1]!=l:Pe[m-1]==l))break;m--}f?Vu(r,m,c,n+1,o,f,a):m<c&&a.push(new yn(m,c,p)),c=m}}function Ru(r,e,t,n,o,s,a){let l=e%2?2:1;x$(r,o,s,n,l),_$(r,o,s,n,l),C$(o,s,n,l),Vu(r,o,s,e,t,n,a)}function T$(r,e,t){if(!r)return[new yn(0,0,e==Hh?1:0)];if(e==fo&&!t.length&&!P$.test(r))return Ty(r.length);if(t.length)for(;r.length>Pe.length;)Pe[Pe.length]=256;let n=[],o=e==fo?0:1;return Ru(r,o,o,t,0,r.length,n),n}function Ty(r){return[new yn(0,r,0)]}let Qy="";function Q$(r,e,t,n,o){var s;let a=n.head-r.from,l=yn.find(e,a,(s=n.bidiLevel)!==null&&s!==void 0?s:-1,n.assoc),c=e[l],d=c.side(o,t);if(a==d){let f=l+=o?1:-1;if(f<0||f>=e.length)return null;c=e[l=f],a=c.side(!o,t),d=c.side(o,t)}let u=Cr(r.text,a,c.forward(o,t));(u<c.from||u>c.to)&&(u=d),Qy=r.text.slice(Math.min(a,u),Math.max(a,u));let h=l==(o?e.length-1:0)?null:e[l+(o?1:-1)];return h&&u==d&&h.level+(o?0:1)<c.level?U.cursor(h.side(!o,t)+r.from,h.forward(o,t)?1:-1,h.level):U.cursor(u+r.from,c.forward(o,t)?-1:1,c.level)}function E$(r,e,t){for(let n=e;n<t;n++){let o=_y(r.charCodeAt(n));if(o==1)return fo;if(o==2||o==4)return Hh}return fo}const Ey=ee.define(),Ny=ee.define(),Ay=ee.define(),Vy=ee.define(),Bu=ee.define(),Ry=ee.define(),By=ee.define(),Zy=ee.define({combine:r=>r.some(e=>e)}),N$=ee.define({combine:r=>r.some(e=>e)});class Fo{constructor(e,t="nearest",n="nearest",o=5,s=5,a=!1){this.range=e,this.y=t,this.x=n,this.yMargin=o,this.xMargin=s,this.isSnapshot=a}map(e){return e.empty?this:new Fo(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Fo(U.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Ea=xe.define({map:(r,e)=>r.map(e)});function lr(r,e,t){let n=r.facet(Vy);n.length?n[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const kc=ee.define({combine:r=>r.length?r[0]:!0});let A$=0;const ai=ee.define();class Ht{constructor(e,t,n,o,s){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=o,this.extension=s(this)}static define(e,t){const{eventHandlers:n,eventObservers:o,provide:s,decorations:a}=t||{};return new Ht(A$++,e,n,o,l=>{let c=[ai.of(l)];return a&&c.push(Ri.of(d=>{let u=d.plugin(l);return u?a(u):Se.none})),s&&c.push(s(l)),c})}static fromClass(e,t){return Ht.define(n=>new e(n),t)}}class gd{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(lr(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){lr(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){lr(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Iy=ee.define(),Gh=ee.define(),Ri=ee.define(),jy=ee.define(),Kh=ee.define(),Dy=ee.define();function Rm(r,e){let t=r.state.facet(Dy);if(!t.length)return t;let n=t.map(s=>s instanceof Function?s(r):s),o=[];return ve.spans(n,e.from,e.to,{point(){},span(s,a,l,c){let d=s-e.from,u=a-e.from,h=o;for(let f=l.length-1;f>=0;f--,c--){let p=l[f].spec.bidiIsolate,m;if(p==null&&(p=E$(e.text,d,u)),c>0&&h.length&&(m=h[h.length-1]).to==d&&m.direction==p)m.to=u,h=m.inner;else{let g={from:d,to:u,direction:p,inner:[]};h.push(g),h=g.inner}}}}),o}const qy=ee.define();function My(r){let e=0,t=0,n=0,o=0;for(let s of r.state.facet(qy)){let a=s(r);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(t=Math.max(t,a.right)),a.top!=null&&(n=Math.max(n,a.top)),a.bottom!=null&&(o=Math.max(o,a.bottom)))}return{left:e,right:t,top:n,bottom:o}}const li=ee.define();class Yt{constructor(e,t,n,o){this.fromA=e,this.toA=t,this.fromB=n,this.toB=o}join(e){return new Yt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let o=e[t-1];if(!(o.fromA>n.toA)){if(o.toA<n.fromA)break;n=n.join(o),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(t.length==0)return e;let n=[];for(let o=0,s=0,a=0,l=0;;o++){let c=o==e.length?null:e[o],d=a-l,u=c?c.fromB:1e9;for(;s<t.length&&t[s]<u;){let h=t[s],f=t[s+1],p=Math.max(l,h),m=Math.min(u,f);if(p<=m&&new Yt(p+d,m+d,p,m).addToSet(n),f>u)break;s+=2}if(!c)return n;new Yt(c.fromA,c.toA,c.fromB,c.toB).addToSet(n),a=c.toA,l=c.toB}}}class Nl{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=et.empty(this.startState.doc.length);for(let s of n)this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges((s,a,l,c)=>o.push(new Yt(s,a,l,c))),this.changedRanges=o}static create(e,t,n){return new Nl(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Bm extends Be{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Ke],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Yt(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:d,toA:u})=>u<this.minWidthFrom||d>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?o=this.domChanged.newSel.head:!D$(e.changes,this.hasComposition)&&!e.selectionSet&&(o=e.state.selection.main.head));let s=o>-1?R$(this.view,e.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:d,to:u}=this.hasComposition;n=new Yt(d,u,e.changes.mapPos(d,-1),e.changes.mapPos(u,1)).addToSet(n.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(L.ie||L.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,l=this.updateDeco(),c=I$(a,l,e.changes);return n=Yt.extendWithRanges(n,c),!(this.flags&7)&&n.length==0?!1:(this.updateInner(n,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:o}=this.view;o.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=L.chrome||L.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||o.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof vn&&a.widget instanceof Zm&&s.push(a.dom);o.updateGaps(s)}updateChildren(e,t,n){let o=n?n.range.addToSet(e.slice()):e,s=this.childCursor(t);for(let a=o.length-1;;a--){let l=a>=0?o[a]:null;if(!l)break;let{fromA:c,toA:d,fromB:u,toB:h}=l,f,p,m,g;if(n&&n.range.fromB<h&&n.range.toB>u){let w=vi.build(this.view.state.doc,u,n.range.fromB,this.decorations,this.dynamicDecorationMap),S=vi.build(this.view.state.doc,n.range.toB,h,this.decorations,this.dynamicDecorationMap);p=w.breakAtStart,m=w.openStart,g=S.openEnd;let k=this.compositionView(n);S.breakAtStart?k.breakAfter=1:S.content.length&&k.merge(k.length,k.length,S.content[0],!1,S.openStart,0)&&(k.breakAfter=S.content[0].breakAfter,S.content.shift()),w.content.length&&k.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),f=w.content.concat(k).concat(S.content)}else({content:f,breakAtStart:p,openStart:m,openEnd:g}=vi.build(this.view.state.doc,u,h,this.decorations,this.dynamicDecorationMap));let{i:O,off:y}=s.findPos(d,1),{i:b,off:v}=s.findPos(c,-1);yy(this,b,v,O,y,f,p,m,g)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new Lr(e.text.nodeValue);t.flags|=8;for(let{deco:o}of e.marks)t=new Fr(o,[t],t.length);let n=new Ke;return n.append(t,0),n}fixCompositionDOM(e){let t=(s,a)=>{a.flags|=8|(a.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(a);let l=Be.get(s);l&&l!=a&&(l.dom=null),a.setDOM(s)},n=this.childPos(e.range.fromB,1),o=this.children[n.i];t(e.line,o);for(let s=e.marks.length-1;s>=-1;s--)n=o.childPos(n.off,1),o=o.children[n.i],t(s>=0?e.marks[s].node:e.text,o)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,o=n==this.dom,s=!o&&al(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(o||t||s))return;let a=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(l.anchor)),d=l.empty?c:this.moveToLine(this.domAtPos(l.head));if(L.gecko&&l.empty&&!this.hasComposition&&V$(c)){let h=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(h,c.node.childNodes[c.offset]||null)),c=d=new ht(h,0),a=!0}let u=this.view.observer.selectionRange;(a||!u.focusNode||(!bi(c.node,c.offset,u.anchorNode,u.anchorOffset)||!bi(d.node,d.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,l))&&(this.view.observer.ignore(()=>{L.android&&L.chrome&&this.dom.contains(u.focusNode)&&j$(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=El(this.view.root);if(h)if(l.empty){if(L.gecko){let f=B$(c.node,c.offset);if(f&&f!=3){let p=Wy(c.node,c.offset,f==1?1:-1);p&&(c=new ht(p.node,p.offset))}}h.collapse(c.node,c.offset),l.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=l.bidiLevel)}else if(h.extend){h.collapse(c.node,c.offset);try{h.extend(d.node,d.offset)}catch{}}else{let f=document.createRange();l.anchor>l.head&&([c,d]=[d,c]),f.setEnd(d.node,d.offset),f.setStart(c.node,c.offset),h.removeAllRanges(),h.addRange(f)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(c,d)),this.impreciseAnchor=c.precise?null:new ht(u.anchorNode,u.anchorOffset),this.impreciseHead=d.precise?null:new ht(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&bi(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=El(e.root),{anchorNode:o,anchorOffset:s}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let a=Ke.find(this,t.head);if(!a)return;let l=a.posAtStart;if(t.head==l||t.head==l+a.length)return;let c=this.coordsAt(t.head,-1),d=this.coordsAt(t.head,1);if(!c||!d||c.bottom>d.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let h=e.observer.selectionRange;e.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=t.from&&n.collapse(o,s)}moveToLine(e){let t=this.dom,n;if(e.node!=t)return e;for(let o=e.offset;!n&&o<t.childNodes.length;o++){let s=Be.get(t.childNodes[o]);s instanceof Ke&&(n=s.domAtPos(0))}for(let o=e.offset-1;!n&&o>=0;o--){let s=Be.get(t.childNodes[o]);s instanceof Ke&&(n=s.domAtPos(s.length))}return n?new ht(n.node,n.offset,!0):e}nearest(e){for(let t=e;t;){let n=Be.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let o=this.children[t];if(n<o.length||o instanceof Ke)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,o=0;for(let s=this.length,a=this.children.length-1;a>=0;a--){let l=this.children[a],c=s-l.breakAfter,d=c-l.length;if(c<e)break;d<=e&&(d<e||l.covers(-1))&&(c>e||l.covers(1))&&(!n||l instanceof Ke&&!(n instanceof Ke&&t>=0))&&(n=l,o=d),s=d}return n?n.coordsAt(e-o,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),o=this.children[t];if(!(o instanceof Ke))return null;for(;o.children.length;){let{i:l,off:c}=o.childPos(n,1);for(;;l++){if(l==o.children.length)return null;if((o=o.children[l]).length)break}n=c}if(!(o instanceof Lr))return null;let s=Cr(o.text,n);if(s==n)return null;let a=ho(o.dom,n,s).getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(l==a.length-1||c.top<c.bottom&&c.left<c.right)return c}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:o}=e,s=this.view.contentDOM.clientWidth,a=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,c=this.view.textDirection==Fe.LTR;for(let d=0,u=0;u<this.children.length;u++){let h=this.children[u],f=d+h.length;if(f>o)break;if(d>=n){let p=h.dom.getBoundingClientRect();if(t.push(p.height),a){let m=h.dom.lastChild,g=m?Ai(m):[];if(g.length){let O=g[g.length-1],y=c?O.right-p.left:p.right-O.left;y>l&&(l=y,this.minWidth=s,this.minWidthFrom=d,this.minWidthTo=f)}}}d=f+h.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Fe.RTL:Fe.LTR}measureTextSize(){for(let s of this.children)if(s instanceof Ke){let a=s.measureTextSize();if(a)return a}let e=document.createElement("div"),t,n,o;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=Ai(e.firstChild)[0];t=e.getBoundingClientRect().height,n=s?s.width/27:7,o=s?s.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:o}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Oy(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,o=0;;o++){let s=o==t.viewports.length?null:t.viewports[o],a=s?s.from-1:this.length;if(a>n){let l=(t.lineBlockAt(a).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(Se.replace({widget:new Zm(l),block:!0,inclusive:!0,isBlockGap:!0}).range(n,a))}if(!s)break;n=s.to+1}return Se.set(e)}updateDeco(){let e=this.view.state.facet(Ri).map((o,s)=>(this.dynamicDecorationMap[s]=typeof o=="function")?o(this.view):o),t=!1,n=this.view.state.facet(jy).map((o,s)=>{let a=typeof o=="function";return a&&(t=!0),a?o(this.view):o});n.length&&(this.dynamicDecorationMap[e.length]=t,e.push(ve.join(n)));for(let o=e.length;o<e.length+3;o++)this.dynamicDecorationMap[o]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){if(e.isSnapshot){let d=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=d.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}let{range:t}=e,n=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),o;if(!n)return;!t.empty&&(o=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,o.left),top:Math.min(n.top,o.top),right:Math.max(n.right,o.right),bottom:Math.max(n.bottom,o.bottom)});let s=My(this.view),a={left:n.left-s.left,top:n.top-s.top,right:n.right+s.right,bottom:n.bottom+s.bottom},{offsetWidth:l,offsetHeight:c}=this.view.scrollDOM;f$(this.view.scrollDOM,a,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,c),-c),this.view.textDirection==Fe.LTR)}}function V$(r){return r.node.nodeType==1&&r.node.firstChild&&(r.offset==0||r.node.childNodes[r.offset-1].contentEditable=="false")&&(r.offset==r.node.childNodes.length||r.node.childNodes[r.offset].contentEditable=="false")}class Zm extends Os{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Xy(r,e){let t=r.observer.selectionRange,n=t.focusNode&&Wy(t.focusNode,t.focusOffset,0);if(!n)return null;let o=e-n.offset;return{from:o,to:o+n.node.nodeValue.length,node:n.node}}function R$(r,e,t){let n=Xy(r,t);if(!n)return null;let{node:o,from:s,to:a}=n,l=o.nodeValue;if(/[\n\r]/.test(l)||r.state.doc.sliceString(n.from,n.to)!=l)return null;let c=e.invertedDesc,d=new Yt(c.mapPos(s),c.mapPos(a),s,a),u=[];for(let h=o.parentNode;;h=h.parentNode){let f=Be.get(h);if(f instanceof Fr)u.push({node:h,deco:f.mark});else{if(f instanceof Ke||h.nodeName=="DIV"&&h.parentNode==r.contentDOM)return{range:d,text:o,marks:u,line:h};if(h!=r.contentDOM)u.push({node:h,deco:new ea({inclusive:!0,attributes:w$(h),tagName:h.tagName.toLowerCase()})});else return null}}}function Wy(r,e,t){if(t<=0)for(let n=r,o=e;;){if(n.nodeType==3)return{node:n,offset:o};if(n.nodeType==1&&o>0)n=n.childNodes[o-1],o=Yr(n);else break}if(t>=0)for(let n=r,o=e;;){if(n.nodeType==3)return{node:n,offset:o};if(n.nodeType==1&&o<n.childNodes.length&&t>=0)n=n.childNodes[o],o=0;else break}return null}function B$(r,e){return r.nodeType!=1?0:(e&&r.childNodes[e-1].contentEditable=="false"?1:0)|(e<r.childNodes.length&&r.childNodes[e].contentEditable=="false"?2:0)}let Z$=class{constructor(){this.changes=[]}compareRange(e,t){Nu(e,t,this.changes)}comparePoint(e,t){Nu(e,t,this.changes)}};function I$(r,e,t){let n=new Z$;return ve.compare(r,e,t,n),n.changes}function j$(r,e){for(let t=r;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function D$(r,e){let t=!1;return e&&r.iterChangedRanges((n,o)=>{n<e.to&&o>e.from&&(t=!0)}),t}function q$(r,e,t=1){let n=r.charCategorizer(e),o=r.doc.lineAt(e),s=e-o.from;if(o.length==0)return U.cursor(e);s==0?t=1:s==o.length&&(t=-1);let a=s,l=s;t<0?a=Cr(o.text,s,!1):l=Cr(o.text,s);let c=n(o.text.slice(a,l));for(;a>0;){let d=Cr(o.text,a,!1);if(n(o.text.slice(d,a))!=c)break;a=d}for(;l<o.length;){let d=Cr(o.text,l);if(n(o.text.slice(l,d))!=c)break;l=d}return U.range(a+o.from,l+o.from)}function M$(r,e){return e.left>r?e.left-r:Math.max(0,r-e.right)}function X$(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function Od(r,e){return r.top<e.bottom-1&&r.bottom>e.top+1}function Im(r,e){return e<r.top?{top:e,left:r.left,right:r.right,bottom:r.bottom}:r}function jm(r,e){return e>r.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Zu(r,e,t){let n,o,s,a,l=!1,c,d,u,h;for(let m=r.firstChild;m;m=m.nextSibling){let g=Ai(m);for(let O=0;O<g.length;O++){let y=g[O];o&&Od(o,y)&&(y=Im(jm(y,o.bottom),o.top));let b=M$(e,y),v=X$(t,y);if(b==0&&v==0)return m.nodeType==3?Dm(m,e,t):Zu(m,e,t);if(!n||a>v||a==v&&s>b){n=m,o=y,s=b,a=v;let w=v?t<y.top?-1:1:b?e<y.left?-1:1:0;l=!w||(w>0?O<g.length-1:O>0)}b==0?t>y.bottom&&(!u||u.bottom<y.bottom)?(c=m,u=y):t<y.top&&(!h||h.top>y.top)&&(d=m,h=y):u&&Od(u,y)?u=jm(u,y.bottom):h&&Od(h,y)&&(h=Im(h,y.top))}}if(u&&u.bottom>=t?(n=c,o=u):h&&h.top<=t&&(n=d,o=h),!n)return{node:r,offset:0};let f=Math.max(o.left,Math.min(o.right,e));if(n.nodeType==3)return Dm(n,f,t);if(l&&n.contentEditable!="false")return Zu(n,f,t);let p=Array.prototype.indexOf.call(r.childNodes,n)+(e>=(o.left+o.right)/2?1:0);return{node:r,offset:p}}function Dm(r,e,t){let n=r.nodeValue.length,o=-1,s=1e9,a=0;for(let l=0;l<n;l++){let c=ho(r,l,l+1).getClientRects();for(let d=0;d<c.length;d++){let u=c[d];if(u.top==u.bottom)continue;a||(a=e-u.left);let h=(u.top>t?u.top-t:t-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&h<s){let f=e>=(u.left+u.right)/2,p=f;if((L.chrome||L.gecko)&&ho(r,l).getBoundingClientRect().left==u.right&&(p=!f),h<=0)return{node:r,offset:l+(p?1:0)};o=l+(p?1:0),s=h}}}return{node:r,offset:o>-1?o:a>0?r.nodeValue.length:0}}function zy(r,e,t,n=-1){var o,s;let a=r.contentDOM.getBoundingClientRect(),l=a.top+r.viewState.paddingTop,c,{docHeight:d}=r.viewState,{x:u,y:h}=e,f=h-l;if(f<0)return 0;if(f>d)return r.state.doc.length;for(let w=r.viewState.heightOracle.textHeight/2,S=!1;c=r.elementAtHeight(f),c.type!=ar.Text;)for(;f=n>0?c.bottom+w:c.top-w,!(f>=0&&f<=d);){if(S)return t?null:0;S=!0,n=-n}h=l+f;let p=c.from;if(p<r.viewport.from)return r.viewport.from==0?0:t?null:qm(r,a,c,u,h);if(p>r.viewport.to)return r.viewport.to==r.state.doc.length?r.state.doc.length:t?null:qm(r,a,c,u,h);let m=r.dom.ownerDocument,g=r.root.elementFromPoint?r.root:m,O=g.elementFromPoint(u,h);O&&!r.contentDOM.contains(O)&&(O=null),O||(u=Math.max(a.left+1,Math.min(a.right-1,u)),O=g.elementFromPoint(u,h),O&&!r.contentDOM.contains(O)&&(O=null));let y,b=-1;if(O&&((o=r.docView.nearest(O))===null||o===void 0?void 0:o.isEditable)!=!1){if(m.caretPositionFromPoint){let w=m.caretPositionFromPoint(u,h);w&&({offsetNode:y,offset:b}=w)}else if(m.caretRangeFromPoint){let w=m.caretRangeFromPoint(u,h);w&&({startContainer:y,startOffset:b}=w,(!r.contentDOM.contains(y)||L.safari&&W$(y,b,u)||L.chrome&&z$(y,b,u))&&(y=void 0))}}if(!y||!r.docView.dom.contains(y)){let w=Ke.find(r.docView,p);if(!w)return f>c.top+c.height/2?c.to:c.from;({node:y,offset:b}=Zu(w.dom,u,h))}let v=r.docView.nearest(y);if(!v)return null;if(v.isWidget&&((s=v.dom)===null||s===void 0?void 0:s.nodeType)==1){let w=v.dom.getBoundingClientRect();return e.y<w.top||e.y<=w.bottom&&e.x<=(w.left+w.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(y,b)+v.posAtStart}function qm(r,e,t,n,o){let s=Math.round((n-e.left)*r.defaultCharacterWidth);if(r.lineWrapping&&t.height>r.defaultLineHeight*1.5){let l=r.viewState.heightOracle.textHeight,c=Math.floor((o-t.top-(r.defaultLineHeight-l)*.5)/l);s+=c*r.viewState.heightOracle.lineLength}let a=r.state.sliceDoc(t.from,t.to);return t.from+i$(a,s,r.state.tabSize)}function W$(r,e,t){let n;if(r.nodeType!=3||e!=(n=r.nodeValue.length))return!1;for(let o=r.nextSibling;o;o=o.nextSibling)if(o.nodeType!=1||o.nodeName!="BR")return!1;return ho(r,n-1,n).getBoundingClientRect().left>t}function z$(r,e,t){if(e!=0)return!1;for(let o=r;;){let s=o.parentNode;if(!s||s.nodeType!=1||s.firstChild!=o)return!1;if(s.classList.contains("cm-line"))break;o=s}let n=r.nodeType==1?r.getBoundingClientRect():ho(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-n.left>5}function U$(r,e){let t=r.lineBlockAt(e);if(Array.isArray(t.type)){for(let n of t.type)if(n.to>e||n.to==e&&(n.to==t.to||n.type==ar.Text))return n}return t}function Y$(r,e,t,n){let o=U$(r,e.head),s=!n||o.type!=ar.Text||!(r.lineWrapping||o.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head);if(s){let a=r.dom.getBoundingClientRect(),l=r.textDirectionAt(o.from),c=r.posAtCoords({x:t==(l==Fe.LTR)?a.right-1:a.left+1,y:(s.top+s.bottom)/2});if(c!=null)return U.cursor(c,t?-1:1)}return U.cursor(t?o.to:o.from,t?-1:1)}function Mm(r,e,t,n){let o=r.state.doc.lineAt(e.head),s=r.bidiSpans(o),a=r.textDirectionAt(o.from);for(let l=e,c=null;;){let d=Q$(o,s,a,l,t),u=Qy;if(!d){if(o.number==(t?r.state.doc.lines:1))return l;u=`
|
|
8
|
+
`,o=r.state.doc.line(o.number+(t?1:-1)),s=r.bidiSpans(o),d=r.visualLineSide(o,!t)}if(c){if(!c(u))return l}else{if(!n)return d;c=n(u)}l=d}}function L$(r,e,t){let n=r.state.charCategorizer(e),o=n(t);return s=>{let a=n(s);return o==zt.Space&&(o=a),o==a}}function F$(r,e,t,n){let o=e.head,s=t?1:-1;if(o==(t?r.state.doc.length:0))return U.cursor(o,e.assoc);let a=e.goalColumn,l,c=r.contentDOM.getBoundingClientRect(),d=r.coordsAtPos(o,e.assoc||-1),u=r.documentTop;if(d)a==null&&(a=d.left-c.left),l=s<0?d.top:d.bottom;else{let p=r.viewState.lineBlockAt(o);a==null&&(a=Math.min(c.right-c.left,r.defaultCharacterWidth*(o-p.from))),l=(s<0?p.top:p.bottom)+u}let h=c.left+a,f=n??r.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let m=l+(f+p)*s,g=zy(r,{x:h,y:m},!1,s);if(m<c.top||m>c.bottom||(s<0?g<o:g>o)){let O=r.docView.coordsForChar(g),y=!O||m<O.top?-1:1;return U.cursor(g,y,void 0,a)}}}function ll(r,e,t){for(;;){let n=0;for(let o of r)o.between(e-1,e+1,(s,a,l)=>{if(e>s&&e<a){let c=n||t||(e-s<a-e?-1:1);e=c<0?s:a,n=c}});if(!n)return e}}function yd(r,e,t){let n=ll(r.state.facet(Kh).map(o=>o(r)),t.from,e.head>t.from?-1:1);return n==t.from?t:U.cursor(n,n<t.from?1:-1)}class H${setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,L.safari&&e.contentDOM.addEventListener("input",()=>null),L.gecko&&hP(e.contentDOM.ownerDocument)}handleEvent(e){!oP(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let n=this.handlers[e];if(n){for(let o of n.observers)o(this.view,t);for(let o of n.handlers){if(t.defaultPrevented)break;if(o(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=G$(e),n=this.handlers,o=this.view.contentDOM;for(let s in t)if(s!="scroll"){let a=!t[s].handlers.length,l=n[s];l&&a!=!l.handlers.length&&(o.removeEventListener(s,this.handleEvent),l=null),l||o.addEventListener(s,this.handleEvent,{passive:a})}for(let s in n)s!="scroll"&&!t[s]&&o.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&Yy.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),L.android&&L.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return L.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=Uy.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||K$.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,Lo(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:L.safari&&!L.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Xm(r,e){return(t,n)=>{try{return e.call(r,n,t)}catch(o){lr(t.state,o)}}}function G$(r){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of r){let o=n.spec;if(o&&o.domEventHandlers)for(let s in o.domEventHandlers){let a=o.domEventHandlers[s];a&&t(s).handlers.push(Xm(n.value,a))}if(o&&o.domEventObservers)for(let s in o.domEventObservers){let a=o.domEventObservers[s];a&&t(s).observers.push(Xm(n.value,a))}}for(let n in dr)t(n).handlers.push(dr[n]);for(let n in ur)t(n).observers.push(ur[n]);return e}const Uy=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],K$="dthko",Yy=[16,17,18,20,91,92,224,225],Na=6;function Aa(r){return Math.max(0,r)*.7+8}function J$(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}class eP{constructor(e,t,n,o){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=p$(e.contentDOM),this.atoms=e.state.facet(Kh).map(a=>a(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(be.allowMultipleSelections)&&tP(e,t),this.dragging=nP(e,t)&&Gy(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&J$(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,o=0,s=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=My(this.view);e.clientX-a.left<=s.left+Na?n=-Aa(s.left-e.clientX):e.clientX+a.right>=s.right-Na&&(n=Aa(e.clientX-s.right)),e.clientY-a.top<=s.top+Na?o=-Aa(s.top-e.clientY):e.clientY+a.bottom>=s.bottom-Na&&(o=Aa(e.clientY-s.bottom)),this.setScrollSpeed(n,o)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let o=e.ranges[n],s=null;if(o.empty){let a=ll(this.atoms,o.from,0);a!=o.from&&(s=U.cursor(a,-1))}else{let a=ll(this.atoms,o.from,-1),l=ll(this.atoms,o.to,1);(a!=o.from||l!=o.to)&&(s=U.range(o.from==o.anchor?a:l,o.from==o.head?a:l))}s&&(t||(t=e.ranges.slice()),t[n]=s)}return t?U.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function tP(r,e){let t=r.state.facet(Ey);return t.length?t[0](e):L.mac?e.metaKey:e.ctrlKey}function rP(r,e){let t=r.state.facet(Ny);return t.length?t[0](e):L.mac?!e.altKey:!e.ctrlKey}function nP(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let n=El(r.root);if(!n||n.rangeCount==0)return!0;let o=n.getRangeAt(0).getClientRects();for(let s=0;s<o.length;s++){let a=o[s];if(a.left<=e.clientX&&a.right>=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function oP(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=Be.get(t))&&n.ignoreEvent(e))return!1;return!0}const dr=Object.create(null),ur=Object.create(null),Ly=L.ie&&L.ie_version<15||L.ios&&L.webkit_version<604;function sP(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),Fy(r,t.value)},50)}function Fy(r,e){let{state:t}=r,n,o=1,s=t.toText(e),a=s.lines==t.selection.ranges.length;if(Iu!=null&&t.selection.ranges.every(c=>c.empty)&&Iu==s.toString()){let c=-1;n=t.changeByRange(d=>{let u=t.doc.lineAt(d.from);if(u.from==c)return{range:d};c=u.from;let h=t.toText((a?s.line(o++).text:e)+t.lineBreak);return{changes:{from:u.from,insert:h},range:U.cursor(d.from+h.length)}})}else a?n=t.changeByRange(c=>{let d=s.line(o++);return{changes:{from:c.from,to:c.to,insert:d.text},range:U.cursor(c.from+d.length)}}):n=t.replaceSelection(s);r.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}ur.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};dr.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&(r.inputState.lastEscPress=Date.now()),!1);ur.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")};ur.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};dr.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of r.state.facet(Ay))if(t=n(r,e),t)break;if(!t&&e.button==0&&(t=lP(r,e)),t){let n=!r.hasFocus;r.inputState.startMouseSelection(new eP(r,e,t,n)),n&&r.observer.ignore(()=>py(r.contentDOM));let o=r.inputState.mouseSelection;if(o)return o.start(e),o.dragging===!1}return!1};function Wm(r,e,t,n){if(n==1)return U.cursor(e,t);if(n==2)return q$(r.state,e,t);{let o=Ke.find(r.docView,e),s=r.state.doc.lineAt(o?o.posAtEnd:e),a=o?o.posAtStart:s.from,l=o?o.posAtEnd:s.to;return l<r.state.doc.length&&l==s.to&&l++,U.range(a,l)}}let Hy=(r,e)=>r>=e.top&&r<=e.bottom,zm=(r,e,t)=>Hy(e,t)&&r>=t.left&&r<=t.right;function iP(r,e,t,n){let o=Ke.find(r.docView,e);if(!o)return 1;let s=e-o.posAtStart;if(s==0)return 1;if(s==o.length)return-1;let a=o.coordsAt(s,-1);if(a&&zm(t,n,a))return-1;let l=o.coordsAt(s,1);return l&&zm(t,n,l)?1:a&&Hy(n,a)?-1:1}function Um(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:iP(r,t,e.clientX,e.clientY)}}const aP=L.ie&&L.ie_version<=11;let Ym=null,Lm=0,Fm=0;function Gy(r){if(!aP)return r.detail;let e=Ym,t=Fm;return Ym=r,Fm=Date.now(),Lm=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(Lm+1)%3:1}function lP(r,e){let t=Um(r,e),n=Gy(e),o=r.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),o=o.map(s.changes))},get(s,a,l){let c=Um(r,s),d,u=Wm(r,c.pos,c.bias,n);if(t.pos!=c.pos&&!a){let h=Wm(r,t.pos,t.bias,n),f=Math.min(h.from,u.from),p=Math.max(h.to,u.to);u=f<u.from?U.range(f,p):U.range(p,f)}return a?o.replaceRange(o.main.extend(u.from,u.to)):l&&n==1&&o.ranges.length>1&&(d=cP(o,c.pos))?d:l?o.addRange(u):U.create([u])}}}function cP(r,e){for(let t=0;t<r.ranges.length;t++){let{from:n,to:o}=r.ranges[t];if(n<=e&&o>=e)return U.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}dr.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let o=r.docView.nearest(e.target);if(o&&o.isWidget){let s=o.posAtStart,a=s+o.length;(s>=t.to||a<=t.from)&&(t=U.range(s,a))}}let{inputState:n}=r;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",r.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};dr.dragend=r=>(r.inputState.draggedContent=null,!1);function Hm(r,e,t,n){if(!t)return;let o=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=r.inputState,a=n&&s&&rP(r,e)?{from:s.from,to:s.to}:null,l={from:o,insert:t},c=r.state.changes(a?[a,l]:l);r.focus(),r.dispatch({changes:c,selection:{anchor:c.mapPos(o,-1),head:c.mapPos(o,1)},userEvent:a?"move.drop":"input.drop"}),r.inputState.draggedContent=null}dr.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),o=0,s=()=>{++o==t.length&&Hm(r,e,n.filter(a=>a!=null).join(r.state.lineBreak),!1)};for(let a=0;a<t.length;a++){let l=new FileReader;l.onerror=s,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(n[a]=l.result),s()},l.readAsText(t[a])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return Hm(r,e,n,!0),!0}return!1};dr.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=Ly?null:e.clipboardData;return t?(Fy(r,t.getData("text/plain")||t.getData("text/uri-text")),!0):(sP(r),!1)};function dP(r,e){let t=r.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),r.focus()},50)}function uP(r){let e=[],t=[],n=!1;for(let o of r.selection.ranges)o.empty||(e.push(r.sliceDoc(o.from,o.to)),t.push(o));if(!e.length){let o=-1;for(let{from:s}of r.selection.ranges){let a=r.doc.lineAt(s);a.number>o&&(e.push(a.text),t.push({from:a.from,to:Math.min(r.doc.length,a.to+1)})),o=a.number}n=!0}return{text:e.join(r.lineBreak),ranges:t,linewise:n}}let Iu=null;dr.copy=dr.cut=(r,e)=>{let{text:t,ranges:n,linewise:o}=uP(r.state);if(!t&&!o)return!1;Iu=o?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let s=Ly?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(dP(r,t),!1)};const Ky=yo.define();function Jy(r,e){let t=[];for(let n of r.facet(By)){let o=n(r,e);o&&t.push(o)}return t?r.update({effects:t,annotations:Ky.of(!0)}):null}function eb(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=Jy(r.state,e);t?r.dispatch(t):r.update([])}},10)}ur.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),eb(r)};ur.blur=r=>{r.observer.clearSelectionRange(),eb(r)};ur.compositionstart=ur.compositionupdate=r=>{r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0)};ur.compositionend=r=>{r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,L.chrome&&L.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50)};ur.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};dr.beforeinput=(r,e)=>{var t;let n;if(L.chrome&&L.android&&(n=Uy.find(o=>o.inputType==e.inputType))&&(r.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let o=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>o+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return!1};const Gm=new Set;function hP(r){Gm.has(r)||(Gm.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}const Km=["pre-wrap","normal","pre-line","break-spaces"];class fP{constructor(e){this.lineWrapping=e,this.doc=ke.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Km.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let o=e[n];o<0?n++:this.heightSamples[Math.floor(o*10)]||(t=!0,this.heightSamples[Math.floor(o*10)]=!0)}return t}refresh(e,t,n,o,s,a){let l=Km.indexOf(e)>-1,c=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=n,this.textHeight=o,this.lineLength=s,c){this.heightSamples={};for(let d=0;d<a.length;d++){let u=a[d];u<0?d++:this.heightSamples[Math.floor(u*10)]=!0}}return c}}class pP{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class xr{constructor(e,t,n,o,s){this.from=e,this.length=t,this.top=n,this.height=o,this._content=s}get type(){return typeof this._content=="number"?ar.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof xn?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new xr(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Ve=function(r){return r[r.ByPos=0]="ByPos",r[r.ByHeight=1]="ByHeight",r[r.ByPosNoHeight=2]="ByPosNoHeight",r}(Ve||(Ve={}));const cl=.001;class bt{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>cl&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return bt.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,o){let s=this,a=n.doc;for(let l=o.length-1;l>=0;l--){let{fromA:c,toA:d,fromB:u,toB:h}=o[l],f=s.lineAt(c,Ve.ByPosNoHeight,n.setDoc(t),0,0),p=f.to>=d?f:s.lineAt(d,Ve.ByPosNoHeight,n,0,0);for(h+=p.to-d,d=p.to;l>0&&f.from<=o[l-1].toA;)c=o[l-1].fromA,u=o[l-1].fromB,l--,c<f.from&&(f=s.lineAt(c,Ve.ByPosNoHeight,n,0,0));u+=f.from-c,c=f.from;let m=Jh.build(n.setDoc(a),e,u,h);s=s.replace(c,d,m)}return s.updateHeight(n,0)}static empty(){return new Nt(0,0)}static of(e){if(e.length==1)return e[0];let t=0,n=e.length,o=0,s=0;for(;;)if(t==n)if(o>s*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),n+=1+l.break,o-=l.size}else if(s>o*2){let l=e[n];l.break?e.splice(n,1,l.left,null,l.right):e.splice(n,1,l.left,l.right),n+=2+l.break,s-=l.size}else break;else if(o<s){let l=e[t++];l&&(o+=l.size)}else{let l=e[--n];l&&(s+=l.size)}let a=0;return e[t-1]==null?(a=1,t--):e[t]==null&&(a=1,n++),new mP(bt.of(e.slice(0,t)),a,bt.of(e.slice(n)))}}bt.prototype.size=1;class tb extends bt{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,o){return new xr(o,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,o,s){return this.blockAt(0,n,o,s)}forEachLine(e,t,n,o,s,a){e<=s+this.length&&t>=s&&a(this.blockAt(0,n,o,s))}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more&&this.setHeight(e,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Nt extends tb{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,o){return new xr(o,this.length,n,this.height,this.breaks)}replace(e,t,n){let o=n[0];return n.length==1&&(o instanceof Nt||o instanceof rt&&o.flags&4)&&Math.abs(this.length-o.length)<10?(o instanceof rt?o=new Nt(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):bt.of(n)}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more?this.setHeight(e,o.heights[o.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class rt extends bt{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,o=e.doc.lineAt(t+this.length).number,s=o-n+1,a,l=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*s);a=c/s,this.length>s+1&&(l=(this.height-c)/(this.length-s-1))}else a=this.height/s;return{firstLine:n,lastLine:o,perLine:a,perChar:l}}blockAt(e,t,n,o){let{firstLine:s,lastLine:a,perLine:l,perChar:c}=this.heightMetrics(t,o);if(t.lineWrapping){let d=o+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),u=t.doc.lineAt(d),h=l+u.length*c,f=Math.max(n,e-h/2);return new xr(u.from,u.length,f,h,0)}else{let d=Math.max(0,Math.min(a-s,Math.floor((e-n)/l))),{from:u,length:h}=t.doc.line(s+d);return new xr(u,h,n+l*d,l,0)}}lineAt(e,t,n,o,s){if(t==Ve.ByHeight)return this.blockAt(e,n,o,s);if(t==Ve.ByPosNoHeight){let{from:p,to:m}=n.doc.lineAt(e);return new xr(p,m-p,0,0,0)}let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(n,s),d=n.doc.lineAt(e),u=l+d.length*c,h=d.number-a,f=o+l*h+c*(d.from-s-h);return new xr(d.from,d.length,Math.max(o,Math.min(f,o+this.height-u)),u,0)}forEachLine(e,t,n,o,s,a){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:l,perLine:c,perChar:d}=this.heightMetrics(n,s);for(let u=e,h=o;u<=t;){let f=n.doc.lineAt(u);if(u==e){let m=f.number-l;h+=c*m+d*(e-s-m)}let p=c+d*f.length;a(new xr(f.from,f.length,h,p,0)),h+=p,u=f.to+1}}replace(e,t,n){let o=this.length-t;if(o>0){let s=n[n.length-1];s instanceof rt?n[n.length-1]=new rt(s.length+o):n.push(null,new rt(o-1))}if(e>0){let s=n[0];s instanceof rt?n[0]=new rt(e+s.length):n.unshift(new rt(e-1),null)}return bt.of(n)}decomposeLeft(e,t){t.push(new rt(e-1),null)}decomposeRight(e,t){t.push(null,new rt(this.length-e-1))}updateHeight(e,t=0,n=!1,o){let s=t+this.length;if(o&&o.from<=t+this.length&&o.more){let a=[],l=Math.max(t,o.from),c=-1;for(o.from>t&&a.push(new rt(o.from-t-1).updateHeight(e,t));l<=s&&o.more;){let u=e.doc.lineAt(l).length;a.length&&a.push(null);let h=o.heights[o.index++];c==-1?c=h:Math.abs(h-c)>=cl&&(c=-2);let f=new Nt(u,h);f.outdated=!1,a.push(f),l+=u+1}l<=s&&a.push(null,new rt(s-l).updateHeight(e,l));let d=bt.of(a);return(c<0||Math.abs(d.height-this.height)>=cl||Math.abs(c-this.heightMetrics(e,t).perLine)>=cl)&&(e.heightChanged=!0),d}else(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class mP extends bt{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,o){let s=n+this.left.height;return e<s?this.left.blockAt(e,t,n,o):this.right.blockAt(e,t,s,o+this.left.length+this.break)}lineAt(e,t,n,o,s){let a=o+this.left.height,l=s+this.left.length+this.break,c=t==Ve.ByHeight?e<a:e<l,d=c?this.left.lineAt(e,t,n,o,s):this.right.lineAt(e,t,n,a,l);if(this.break||(c?d.to<l:d.from>l))return d;let u=t==Ve.ByPosNoHeight?Ve.ByPosNoHeight:Ve.ByPos;return c?d.join(this.right.lineAt(l,u,n,a,l)):this.left.lineAt(l,u,n,o,s).join(d)}forEachLine(e,t,n,o,s,a){let l=o+this.left.height,c=s+this.left.length+this.break;if(this.break)e<c&&this.left.forEachLine(e,t,n,o,s,a),t>=c&&this.right.forEachLine(e,t,n,l,c,a);else{let d=this.lineAt(c,Ve.ByPos,n,o,s);e<d.from&&this.left.forEachLine(e,d.from-1,n,o,s,a),d.to>=e&&d.from<=t&&a(d),t>d.to&&this.right.forEachLine(d.to+1,t,n,l,c,a)}}replace(e,t,n){let o=this.left.length+this.break;if(t<o)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-o,t-o,n));let s=[];e>0&&this.decomposeLeft(e,s);let a=s.length;for(let l of n)s.push(l);if(e>0&&Jm(s,a-1),t<this.length){let l=s.length;this.decomposeRight(t,s),Jm(s,l)}return bt.of(s)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,o=n+this.break;if(e>=o)return this.right.decomposeRight(e-o,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<o&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?bt.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,o){let{left:s,right:a}=this,l=t+s.length+this.break,c=null;return o&&o.from<=t+s.length&&o.more?c=s=s.updateHeight(e,t,n,o):s.updateHeight(e,t,n),o&&o.from<=l+a.length&&o.more?c=a=a.updateHeight(e,l,n,o):a.updateHeight(e,l,n),c?this.balanced(s,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Jm(r,e){let t,n;r[e]==null&&(t=r[e-1])instanceof rt&&(n=r[e+1])instanceof rt&&r.splice(e-1,3,new rt(t.length+1+n.length))}const gP=5;class Jh{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),o=this.nodes[this.nodes.length-1];o instanceof Nt?o.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Nt(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let o=n.widget?n.widget.estimatedHeight:0,s=n.widget?n.widget.lineBreaks:0;o<0&&(o=this.oracle.lineHeight);let a=t-e;n.block?this.addBlock(new tb(a,o,n)):(a||s||o>=gP)&&this.addLineDeco(o,s,a)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Nt(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new rt(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Nt)return e;let t=new Nt(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let o=this.ensureLine();o.length+=n,o.collapsed+=n,o.widgetHeight=Math.max(o.widgetHeight,e),o.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Nt)&&!this.isCovered?this.nodes.push(new Nt(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let o of this.nodes)o instanceof Nt&&o.updateHeight(this.oracle,n),n+=o?o.length:1;return this.nodes}static build(e,t,n,o){let s=new Jh(n,e);return ve.spans(t,n,o,s,0),s.finish(n)}}function OP(r,e,t){let n=new yP;return ve.compare(r,e,t,n,0),n.changes}class yP{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,o){(e<t||n&&n.heightRelevant||o&&o.heightRelevant)&&Nu(e,t,this.changes,5)}}function bP(r,e){let t=r.getBoundingClientRect(),n=r.ownerDocument,o=n.defaultView||window,s=Math.max(0,t.left),a=Math.min(o.innerWidth,t.right),l=Math.max(0,t.top),c=Math.min(o.innerHeight,t.bottom);for(let d=r.parentNode;d&&d!=n.body;)if(d.nodeType==1){let u=d,h=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&h.overflow!="visible"){let f=u.getBoundingClientRect();s=Math.max(s,f.left),a=Math.min(a,f.right),l=Math.max(l,f.top),c=d==r.parentNode?f.bottom:Math.min(c,f.bottom)}d=h.position=="absolute"||h.position=="fixed"?u.offsetParent:u.parentNode}else if(d.nodeType==11)d=d.host;else break;return{left:s-t.left,right:Math.max(s,a)-t.left,top:l-(t.top+e),bottom:Math.max(l,c)-(t.top+e)}}function vP(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class bd{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let o=e[n],s=t[n];if(o.from!=s.from||o.to!=s.to||o.size!=s.size)return!1}return!0}draw(e,t){return Se.replace({widget:new wP(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class wP extends Os{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class eg{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=tg,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Fe.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(Gh).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new fP(t),this.stateDeco=e.facet(Ri).filter(n=>typeof n!="function"),this.heightMap=bt.empty().applyChanges(this.stateDeco,ke.empty,this.heightOracle.setDoc(e.doc),[new Yt(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Se.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let o=n?t.head:t.anchor;if(!e.some(({from:s,to:a})=>o>=s&&o<=a)){let{from:s,to:a}=this.lineBlockAt(o);e.push(new Va(s,a))}}this.viewports=e.sort((n,o)=>n.from-o.from),this.scaler=this.heightMap.height<=7e6?tg:new $P(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:ci(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(Ri).filter(u=>typeof u!="function");let o=e.changedRanges,s=Yt.extendWithRanges(o,OP(n,this.stateDeco,e?e.changes:et.empty(this.state.doc.length))),a=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=a&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<c.from||t.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,t));let d=!e.changes.empty||e.flags&2||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),d&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(N$)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),o=this.heightOracle,s=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?Fe.RTL:Fe.LTR;let a=this.heightOracle.mustRefreshForWrapping(s),l=t.getBoundingClientRect(),c=a||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let d=0,u=0;if(l.width&&l.height){let{scaleX:w,scaleY:S}=fy(t,l);(this.scaleX!=w||this.scaleY!=S)&&(this.scaleX=w,this.scaleY=S,d|=8,a=c=!0)}let h=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=f)&&(this.paddingTop=h,this.paddingBottom=f,d|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(o.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,d|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=gy(e.scrollDOM);let m=(this.printing?vP:bP)(t,this.paddingTop),g=m.top-this.pixelViewport.top,O=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,d|=8),c){let w=e.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(w)&&(a=!0),a||o.lineWrapping&&Math.abs(b-this.contentDOMWidth)>o.charWidth){let{lineHeight:S,charWidth:k,textHeight:$}=e.docView.measureTextSize();a=S>0&&o.refresh(s,S,k,$,b/k,w),a&&(e.docView.minWidth=0,d|=8)}g>0&&O>0?u=Math.max(g,O):g<0&&O<0&&(u=Math.min(g,O)),o.heightChanged=!1;for(let S of this.viewports){let k=S.from==this.viewport.from?w:e.docView.measureVisibleLineHeights(S);this.heightMap=(a?bt.empty().applyChanges(this.stateDeco,ke.empty,this.heightOracle,[new Yt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(o,0,a,new pP(S.from,k))}o.heightChanged&&(d|=2)}let v=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return v&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(d&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),d|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),d}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),o=this.heightMap,s=this.heightOracle,{visibleTop:a,visibleBottom:l}=this,c=new Va(o.lineAt(a-n*1e3,Ve.ByHeight,s,0,0).from,o.lineAt(l+(1-n)*1e3,Ve.ByHeight,s,0,0).to);if(t){let{head:d}=t.range;if(d<c.from||d>c.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=o.lineAt(d,Ve.ByPos,s,0,0),f;t.y=="center"?f=(h.top+h.bottom)/2-u/2:t.y=="start"||t.y=="nearest"&&d<c.from?f=h.top:f=h.bottom-u,c=new Va(o.lineAt(f-1e3/2,Ve.ByHeight,s,0,0).from,o.lineAt(f+u+1e3/2,Ve.ByHeight,s,0,0).to)}}return c}mapViewport(e,t){let n=t.mapPos(e.from,-1),o=t.mapPos(e.to,1);return new Va(this.heightMap.lineAt(n,Ve.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(o,Ve.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:o}=this.heightMap.lineAt(e,Ve.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(t,Ve.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:l}=this;return(e==0||o<=a-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||s>=l+Math.max(10,Math.min(n,250)))&&o>a-2*1e3&&s<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let o of e)t.touchesRange(o.from,o.to)||n.push(new bd(t.mapPos(o.from),t.mapPos(o.to),o.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,o=n?1e4:2e3,s=o>>1,a=o<<1;if(this.defaultTextDirection!=Fe.LTR&&!n)return[];let l=[],c=(d,u,h,f)=>{if(u-d<s)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let O of m)if(O>d&&O<u){c(d,O-10,h,f),c(O+10,u,h,f);return}let g=SP(e,O=>O.from>=h.from&&O.to<=h.to&&Math.abs(O.from-d)<s&&Math.abs(O.to-u)<s&&!m.some(y=>O.from<y&&O.to>y));if(!g){if(u<h.to&&t&&n&&t.visibleRanges.some(O=>O.from<=u&&O.to>=u)){let O=t.moveToLineBoundary(U.cursor(u),!1,!0).head;O>d&&(u=O)}g=new bd(d,u,this.gapSize(h,d,u,f))}l.push(g)};for(let d of this.viewportLines){if(d.length<a)continue;let u=kP(d.from,d.to,this.stateDeco);if(u.total<a)continue;let h=this.scrollTarget?this.scrollTarget.range.head:null,f,p;if(n){let m=o/this.heightOracle.lineLength*this.heightOracle.lineHeight,g,O;if(h!=null){let y=Ba(u,h),b=((this.visibleBottom-this.visibleTop)/2+m)/d.height;g=y-b,O=y+b}else g=(this.visibleTop-d.top-m)/d.height,O=(this.visibleBottom-d.top+m)/d.height;f=Ra(u,g),p=Ra(u,O)}else{let m=u.total*this.heightOracle.charWidth,g=o*this.heightOracle.charWidth,O,y;if(h!=null){let b=Ba(u,h),v=((this.pixelViewport.right-this.pixelViewport.left)/2+g)/m;O=b-v,y=b+v}else O=(this.pixelViewport.left-g)/m,y=(this.pixelViewport.right+g)/m;f=Ra(u,O),p=Ra(u,y)}f>d.from&&c(d.from,f,d,u),p<d.to&&c(p,d.to,d,u)}return l}gapSize(e,t,n,o){let s=Ba(o,n)-Ba(o,t);return this.heightOracle.lineWrapping?e.height*s:o.total*this.heightOracle.charWidth*s}updateLineGaps(e){bd.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Se.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];ve.spans(e,this.viewport.from,this.viewport.to,{span(o,s){t.push({from:o,to:s})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some((o,s)=>o.from!=t[s].from||o.to!=t[s].to);return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ci(this.heightMap.lineAt(e,Ve.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return ci(this.heightMap.lineAt(this.scaler.fromDOM(e),Ve.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ci(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Va{constructor(e,t){this.from=e,this.to=t}}function kP(r,e,t){let n=[],o=r,s=0;return ve.spans(t,r,e,{span(){},point(a,l){a>o&&(n.push({from:o,to:a}),s+=a-o),o=l}},20),o<e&&(n.push({from:o,to:e}),s+=e-o),{total:s,ranges:n}}function Ra({total:r,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let n=Math.floor(r*t);for(let o=0;;o++){let{from:s,to:a}=e[o],l=a-s;if(n<=l)return s+n;n-=l}}function Ba(r,e){let t=0;for(let{from:n,to:o}of r.ranges){if(e<=o){t+=e-n;break}t+=o-n}return t/r.total}function SP(r,e){for(let t of r)if(e(t))return t}const tg={toDOM(r){return r},fromDOM(r){return r},scale:1};class $P{constructor(e,t,n){let o=0,s=0,a=0;this.viewports=n.map(({from:l,to:c})=>{let d=t.lineAt(l,Ve.ByPos,e,0,0).top,u=t.lineAt(c,Ve.ByPos,e,0,0).bottom;return o+=u-d,{from:l,to:c,top:d,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-o)/(t.height-o);for(let l of this.viewports)l.domTop=a+(l.top-s)*this.scale,a=l.domBottom=l.domTop+(l.bottom-l.top),s=l.bottom}toDOM(e){for(let t=0,n=0,o=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.top)return o+(e-n)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);n=s.bottom,o=s.domBottom}}fromDOM(e){for(let t=0,n=0,o=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.domTop)return n+(e-o)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);n=s.bottom,o=s.domBottom}}}function ci(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),n=e.toDOM(r.bottom);return new xr(r.from,r.length,t,n-t,Array.isArray(r._content)?r._content.map(o=>ci(o,e)):r._content)}const Za=ee.define({combine:r=>r.join(" ")}),ju=ee.define({combine:r=>r.indexOf(!0)>-1}),Du=$n.newName(),rb=$n.newName(),nb=$n.newName(),ob={"&light":"."+rb,"&dark":"."+nb};function qu(r,e,t){return new $n(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,o=>{if(o=="&")return r;if(!t||!t[o])throw new RangeError(`Unsupported selector: ${o}`);return t[o]}):r+" "+n}})}const PP=qu("."+Du,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ob),di="";class xP{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(be.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=di}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let o=e;;){this.findPointBefore(n,o);let s=this.text.length;this.readNode(o);let a=o.nextSibling;if(a==t)break;let l=Be.get(o),c=Be.get(a);(l&&c?l.breakAfter:(l?l.breakAfter:rg(o))||rg(a)&&(o.nodeName!="BR"||o.cmIgnore)&&this.text.length>s)&&this.lineBreak(),o=a}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,a=1,l;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(l=o.exec(t))&&(s=l.index,a=l[0].length),this.append(t.slice(n,s<0?t.length:s)),s<0)break;if(this.lineBreak(),a>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=a-1);n=s+a}}readNode(e){if(e.cmIgnore)return;let t=Be.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let o=n.iter();!o.next().done;)o.lineBreak?this.lineBreak():this.append(o.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(_P(e,n.node,n.offset)?t:0))}}function _P(r,e,t){for(;;){if(!e||t<Yr(e))return!1;if(e==r)return!0;t=Vi(e)+1,e=e.parentNode}}function rg(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}class ng{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class CP{constructor(e,t,n,o){this.typeOver=o,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let l=s||a?[]:EP(e),c=new xP(l,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=NP(l,this.bounds.from)}else{let l=e.observer.selectionRange,c=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!xu(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),d=a&&a.node==l.anchorNode&&a.offset==l.anchorOffset||!xu(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),u=e.viewport;if((L.ios||L.chrome)&&e.state.selection.main.empty&&c!=d&&(u.from>0||u.to<e.state.doc.length)){let h=Math.min(c,d),f=Math.max(c,d),p=u.from-h,m=u.to-f;(p==0||p==1||h==0)&&(m==0||m==-1||f==e.state.doc.length)&&(c=0,d=e.state.doc.length)}this.newSel=U.single(d,c)}}}function sb(r,e){let t,{newSel:n}=e,o=r.state.selection.main,s=r.inputState.lastKeyTime>Date.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:l}=e.bounds,c=o.from,d=null;(s===8||L.android&&e.text.length<l-a)&&(c=o.to,d="end");let u=QP(r.state.doc.sliceString(a,l,di),e.text,c-a,d);u&&(L.chrome&&s==13&&u.toB==u.from+2&&e.text.slice(u.from,u.toB)==di+di&&u.toB--,t={from:a+u.from,to:a+u.toA,insert:ke.of(e.text.slice(u.from,u.toB).split(di))})}else n&&(!r.hasFocus&&r.state.facet(kc)||n.main.eq(o))&&(n=null);if(!t&&!n)return!1;if(!t&&e.typeOver&&!o.empty&&n&&n.main.empty?t={from:o.from,to:o.to,insert:r.state.doc.slice(o.from,o.to)}:t&&t.from>=o.from&&t.to<=o.to&&(t.from!=o.from||t.to!=o.to)&&o.to-o.from-(t.to-t.from)<=4?t={from:o.from,to:o.to,insert:r.state.doc.slice(o.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,o.to))}:(L.mac||L.android)&&t&&t.from==t.to&&t.from==o.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=U.single(n.main.anchor-1,n.main.head-1)),t={from:o.from,to:o.to,insert:ke.of([" "])}):L.chrome&&t&&t.from==t.to&&t.from==o.head&&t.insert.toString()==`
|
|
9
|
+
`&&r.lineWrapping&&(n&&(n=U.single(n.main.anchor-1,n.main.head-1)),t={from:o.from,to:o.to,insert:ke.of([" "])}),t){if(L.ios&&r.inputState.flushIOSKey()||L.android&&(t.from==o.from&&t.to==o.to&&t.insert.length==1&&t.insert.lines==2&&Lo(r.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&t.insert.length==0||s==8&&t.insert.length<t.to-t.from&&t.to>o.head)&&Lo(r.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&t.insert.length==0&&Lo(r.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let l,c=()=>l||(l=TP(r,t,n));return r.state.facet(Ry).some(d=>d(r,t.from,t.to,a,c))||r.dispatch(c()),!0}else if(n&&!n.main.eq(o)){let a=!1,l="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(a=!0),l=r.inputState.lastSelectionOrigin),r.dispatch({selection:n,scrollIntoView:a,userEvent:l}),!0}else return!1}function TP(r,e,t){let n,o=r.state,s=o.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let l=s.from<e.from?o.sliceDoc(s.from,e.from):"",c=s.to>e.to?o.sliceDoc(e.to,s.to):"";n=o.replaceSelection(r.state.toText(l+e.insert.sliceString(0,void 0,r.state.lineBreak)+c))}else{let l=o.changes(e),c=t&&t.main.to<=l.newLength?t.main:void 0;if(o.selection.ranges.length>1&&r.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let d=r.state.sliceDoc(e.from,e.to),u,h=t&&Xy(r,t.main.head);if(h){let m=e.insert.length-(e.to-e.from);u={from:h.from,to:h.to-m}}else u=r.state.doc.lineAt(s.head);let f=s.to-e.to,p=s.to-s.from;n=o.changeByRange(m=>{if(m.from==s.from&&m.to==s.to)return{changes:l,range:c||m.map(l)};let g=m.to-f,O=g-d.length;if(m.to-m.from!=p||r.state.sliceDoc(O,g)!=d||m.to>=u.from&&m.from<=u.to)return{range:m};let y=o.changes({from:O,to:g,insert:e.insert}),b=m.to-s.to;return{changes:y,range:c?U.range(Math.max(0,c.anchor+b),Math.max(0,c.head+b)):m.map(y)}})}else n={changes:l,selection:c&&o.selection.replaceRange(c)}}let a="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,a+=".compose",r.inputState.compositionFirstChange&&(a+=".start",r.inputState.compositionFirstChange=!1)),o.update(n,{userEvent:a,scrollIntoView:!0})}function QP(r,e,t,n){let o=Math.min(r.length,e.length),s=0;for(;s<o&&r.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==o&&r.length==e.length)return null;let a=r.length,l=e.length;for(;a>0&&l>0&&r.charCodeAt(a-1)==e.charCodeAt(l-1);)a--,l--;if(n=="end"){let c=Math.max(0,s-Math.min(a,l));t-=a+c-s}if(a<s&&r.length<e.length){let c=t<=s&&t>=a?s-t:0;s-=c,l=s+(l-a),a=s}else if(l<s){let c=t<=s&&t>=l?s-t:0;s-=c,a=s+(a-l),l=s}return{from:s,toA:a,toB:l}}function EP(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:o,focusOffset:s}=r.observer.selectionRange;return t&&(e.push(new ng(t,n)),(o!=t||s!=n)&&e.push(new ng(o,s))),e}function NP(r,e){if(r.length==0)return null;let t=r[0].pos,n=r.length==2?r[1].pos:t;return t>-1&&n>-1?U.single(t+e,n+e):null}const AP={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},vd=L.ie&&L.ie_version<=11;class VP{constructor(e){this.view=e,this.active=!1,this.selectionRange=new m$,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(L.ie&&L.ie_version<=11||L.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),vd&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,o=this.selectionRange;if(n.state.facet(kc)?n.root.activeElement!=this.dom:!al(n.dom,o))return;let s=o.anchorNode&&n.docView.nearest(o.anchorNode);if(s&&s.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(L.ie&&L.ie_version<=11||L.android&&L.chrome)&&!n.state.selection.main.empty&&o.focusNode&&bi(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=L.safari&&e.root.nodeType==11&&u$(this.dom.ownerDocument)==this.dom&&RP(this.view)||El(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=al(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&O$(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(n.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=t)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,AP),vd&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),vd&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let o=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Lo(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(o)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,o=!1;for(let s of e){let a=this.readMutation(s);a&&(a.typeOver&&(o=!0),t==-1?{from:t,to:n}=a:(t=Math.min(a.from,t),n=Math.max(a.to,n)))}return{from:t,to:n,typeOver:o}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),o=this.selectionChanged&&al(this.dom,this.selectionRange);if(e<0&&!o)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new CP(this.view,e,t,n);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,o=sb(this.view,t);return this.view.state==n&&this.view.update([]),o}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let n=og(t,e.previousSibling||e.target.previousSibling,-1),o=og(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:o?t.posBefore(o):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let o of this.scrollTargets)o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function og(r,e,t){for(;e;){let n=Be.get(e);if(n&&n.parent==r)return n;let o=e.parentNode;e=o!=r.dom?o:t>0?e.nextSibling:e.previousSibling}return null}function RP(r){let e=null;function t(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",t,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",t,!0),!e)return null;let n=e.startContainer,o=e.startOffset,s=e.endContainer,a=e.endOffset,l=r.docView.domAtPos(r.state.selection.main.anchor);return bi(l.node,l.offset,s,a)&&([n,o,s,a]=[s,a,n,o]),{anchorNode:n,anchorOffset:o,focusNode:s,focusOffset:a}}class re{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(n=>n.forEach(o=>t(o,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=e.root||g$(e.parent)||document,this.viewState=new eg(e.state||be.create(e)),e.scrollTo&&e.scrollTo.is(Ea)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ai).map(n=>new gd(n));for(let n of this.plugins)n.update(this);this.observer=new VP(this),this.inputState=new H$(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Bm(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof it?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,o,s=this.state;for(let f of e){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed){this.viewState.state=s;return}let a=this.hasFocus,l=0,c=null;e.some(f=>f.annotation(Ky))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,c=Jy(s,a),c||(l=1));let d=this.observer.delayedAndroidKey,u=null;if(d?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(be.phrases)!=this.state.facet(be.phrases))return this.setState(s);o=Nl.create(this,s,e),o.flags|=l;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(h&&(h=h.map(f.changes)),f.scrollIntoView){let{main:p}=f.state.selection;h=new Fo(p.empty?p:U.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of f.effects)p.is(Ea)&&(h=p.value.clip(this.state))}this.viewState.update(o,h),this.bidiCache=Al.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),t=this.docView.update(o),this.state.facet(li)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(o.startState.facet(Za)!=o.state.facet(Za)&&(this.viewState.mustMeasureContent=!0),(t||n||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!o.empty)for(let f of this.state.facet(Bu))try{f(o)}catch(p){lr(this.state,p,"update listener")}(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!sb(this,u)&&d.force&&Lo(this.contentDOM,d.key,d.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new eg(e),this.plugins=e.facet(ai).map(n=>new gd(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new Bm(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ai),n=e.state.facet(ai);if(t!=n){let o=[];for(let s of n){let a=t.indexOf(s);if(a<0)o.push(new gd(s));else{let l=this.plugins[a];l.mustUpdate=e,o.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=e;for(let o=0;o<this.plugins.length;o++)this.plugins[o].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,o=n.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:a}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(gy(n))s=-1,a=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(o);s=p.from,a=p.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let d=[];c&4||([this.measureRequests,d]=[d,this.measureRequests]);let u=d.map(p=>{try{return p.read(this)}catch(m){return lr(this.state,m),sg}}),h=Nl.create(this,this.state,[]),f=!1;h.flags|=c,t?t.flags|=c:t=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),f=this.docView.update(h));for(let p=0;p<d.length;p++)if(u[p]!=sg)try{let m=d[p];m.write&&m.write(u[p],this)}catch(m){lr(this.state,m)}if(f&&this.docView.updateSelection(!0),!h.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,a=-1;continue}else{let m=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-a;if(m>1||m<-1){o=o+m,n.scrollTop=o/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Bu))l(t)}get themeClasses(){return Du+" "+(this.state.facet(ju)?nb:rb)+" "+this.state.facet(Za)}updateAttrs(){let e=ig(this,Iy,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(kc)?"true":"false",class:"cm-content",style:`${L.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),ig(this,Gh,t);let n=this.observer.ignore(()=>{let o=Eu(this.contentDOM,this.contentAttrs,t),s=Eu(this.dom,this.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let o of n.effects)if(o.is(re.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=o.value}}mountStyles(){this.styleModules=this.state.facet(li);let e=this.state.facet(re.cspNonce);$n.mount(this.root,this.styleModules.concat(PP).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find(n=>n.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return yd(this,e,Mm(this,e,t,n))}moveByGroup(e,t){return yd(this,e,Mm(this,e,t,n=>L$(this,e.head,n)))}visualLineSide(e,t){let n=this.bidiSpans(e),o=this.textDirectionAt(e.from),s=n[t?n.length-1:0];return U.cursor(s.side(t,o)+e.from,s.forward(!t,o)?1:-1)}moveToLineBoundary(e,t,n=!0){return Y$(this,e,t,n)}moveVertically(e,t,n){return yd(this,e,F$(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),zy(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let o=this.state.doc.lineAt(e),s=this.bidiSpans(o),a=s[yn.find(s,e-o.from,-1,t)];return Yh(n,a.dir==Fe.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Zy)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>BP)return Ty(e.length);let t=this.textDirectionAt(e.from),n;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||Cy(s.isolates,n=Rm(this,e))))return s.order;n||(n=Rm(this,e));let o=T$(e.text,t,n);return this.bidiCache.push(new Al(e.from,e.to,t,n,!0,o)),o}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||L.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{py(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Ea.of(new Fo(typeof e=="number"?U.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return Ea.of(new Fo(U.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return Ht.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Ht.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=$n.newName(),o=[Za.of(n),li.of(qu(`.${n}`,e))];return t&&t.dark&&o.push(ju.of(!0)),o}static baseTheme(e){return Ji.lowest(li.of(qu("."+Du,e,ob)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),o=n&&Be.get(n)||Be.get(e);return((t=o==null?void 0:o.rootView)===null||t===void 0?void 0:t.view)||null}}re.styleModule=li;re.inputHandler=Ry;re.focusChangeEffect=By;re.perLineTextDirection=Zy;re.exceptionSink=Vy;re.updateListener=Bu;re.editable=kc;re.mouseSelectionStyle=Ay;re.dragMovesSelection=Ny;re.clickAddsSelectionRange=Ey;re.decorations=Ri;re.outerDecorations=jy;re.atomicRanges=Kh;re.bidiIsolatedRanges=Dy;re.scrollMargins=qy;re.darkTheme=ju;re.cspNonce=ee.define({combine:r=>r.length?r[0]:""});re.contentAttributes=Gh;re.editorAttributes=Iy;re.lineWrapping=re.contentAttributes.of({class:"cm-lineWrapping"});re.announce=xe.define();const BP=4096,sg={};class Al{constructor(e,t,n,o,s,a){this.from=e,this.to=t,this.dir=n,this.isolates=o,this.fresh=s,this.order=a}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let n=[],o=e.length?e[e.length-1].dir:Fe.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let a=e[s];a.dir==o&&!t.touchesRange(a.from,a.to)&&n.push(new Al(t.mapPos(a.from,1),t.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return n}}function ig(r,e,t){for(let n=r.state.facet(e),o=n.length-1;o>=0;o--){let s=n[o],a=typeof s=="function"?s(r):s;a&&Qu(a,t)}return t}const ZP=L.mac?"mac":L.windows?"win":L.linux?"linux":"key";function IP(r,e){const t=r.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let o,s,a,l;for(let c=0;c<t.length-1;++c){const d=t[c];if(/^(cmd|meta|m)$/i.test(d))l=!0;else if(/^a(lt)?$/i.test(d))o=!0;else if(/^(c|ctrl|control)$/i.test(d))s=!0;else if(/^s(hift)?$/i.test(d))a=!0;else if(/^mod$/i.test(d))e=="mac"?l=!0:s=!0;else throw new Error("Unrecognized modifier name: "+d)}return o&&(n="Alt-"+n),s&&(n="Ctrl-"+n),l&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function Ia(r,e,t){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t!==!1&&e.shiftKey&&(r="Shift-"+r),r}const jP=Ji.default(re.domEventHandlers({keydown(r,e){return XP(DP(e.state),r,e,"editor")}})),Bi=ee.define({enables:jP}),ag=new WeakMap;function DP(r){let e=r.facet(Bi),t=ag.get(e);return t||ag.set(e,t=MP(e.reduce((n,o)=>n.concat(o),[]))),t}let mn=null;const qP=4e3;function MP(r,e=ZP){let t=Object.create(null),n=Object.create(null),o=(a,l)=>{let c=n[a];if(c==null)n[a]=l;else if(c!=l)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},s=(a,l,c,d,u)=>{var h,f;let p=t[a]||(t[a]=Object.create(null)),m=l.split(/ (?!$)/).map(y=>IP(y,e));for(let y=1;y<m.length;y++){let b=m.slice(0,y).join(" ");o(b,!0),p[b]||(p[b]={preventDefault:!0,stopPropagation:!1,run:[v=>{let w=mn={view:v,prefix:b,scope:a};return setTimeout(()=>{mn==w&&(mn=null)},qP),!0}]})}let g=m.join(" ");o(g,!1);let O=p[g]||(p[g]={preventDefault:!1,stopPropagation:!1,run:((f=(h=p._any)===null||h===void 0?void 0:h.run)===null||f===void 0?void 0:f.slice())||[]});c&&O.run.push(c),d&&(O.preventDefault=!0),u&&(O.stopPropagation=!0)};for(let a of r){let l=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let d of l){let u=t[d]||(t[d]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let h in u)u[h].run.push(a.any)}let c=a[e]||a.key;if(c)for(let d of l)s(d,c,a.run,a.preventDefault,a.stopPropagation),a.shift&&s(d,"Shift-"+c,a.shift,a.preventDefault,a.stopPropagation)}return t}function XP(r,e,t,n){let o=d$(e),s=dt(o,0),a=or(s)==o.length&&o!=" ",l="",c=!1,d=!1,u=!1;mn&&mn.view==t&&mn.scope==n&&(l=mn.prefix+" ",Yy.indexOf(e.keyCode)<0&&(d=!0,mn=null));let h=new Set,f=O=>{if(O){for(let y of O.run)if(!h.has(y)&&(h.add(y),y(t,e)))return O.stopPropagation&&(u=!0),!0;O.preventDefault&&(O.stopPropagation&&(u=!0),d=!0)}return!1},p=r[n],m,g;return p&&(f(p[l+Ia(o,e,!a)])?c=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(L.windows&&e.ctrlKey&&e.altKey)&&(m=Pn[e.keyCode])&&m!=o?(f(p[l+Ia(m,e,!0)])||e.shiftKey&&(g=Ni[e.keyCode])!=o&&g!=m&&f(p[l+Ia(g,e,!1)]))&&(c=!0):a&&e.shiftKey&&f(p[l+Ia(o,e,!0)])&&(c=!0),!c&&f(p._any)&&(c=!0)),d&&(c=!0),c&&u&&e.stopPropagation(),c}const WP=!L.ios,lg={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};WP&&(lg[".cm-line"].caretColor="transparent !important",lg[".cm-content"]={caretColor:"transparent !important"});function cg(r,e,t,n,o){e.lastIndex=0;for(let s=r.iterRange(t,n),a=t,l;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;l=e.exec(s.value);)o(a+l.index,l)}function zP(r,e){let t=r.visibleRanges;if(t.length==1&&t[0].from==r.viewport.from&&t[0].to==r.viewport.to)return t;let n=[];for(let{from:o,to:s}of t)o=Math.max(r.state.doc.lineAt(o).from,o-e),s=Math.min(r.state.doc.lineAt(s).to,s+e),n.length&&n[n.length-1].to>=o?n[n.length-1].to=s:n.push({from:o,to:s});return n}class ib{constructor(e){const{regexp:t,decoration:n,decorate:o,boundary:s,maxLength:a=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,o)this.addMatch=(l,c,d,u)=>o(u,d,d+l[0].length,l,c);else if(typeof n=="function")this.addMatch=(l,c,d,u)=>{let h=n(l,c,d);h&&u(d,d+l[0].length,h)};else if(n)this.addMatch=(l,c,d,u)=>u(d,d+l[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=a}createDeco(e){let t=new ss,n=t.add.bind(t);for(let{from:o,to:s}of zP(e,this.maxLength))cg(e.state.doc,this.regexp,o,s,(a,l)=>this.addMatch(l,e,a,n));return t.finish()}updateDeco(e,t){let n=1e9,o=-1;return e.docChanged&&e.changes.iterChanges((s,a,l,c)=>{c>e.view.viewport.from&&l<e.view.viewport.to&&(n=Math.min(l,n),o=Math.max(c,o))}),e.viewportChanged||o-n>1e3?this.createDeco(e.view):o>-1?this.updateRange(e.view,t.map(e.changes),n,o):t}updateRange(e,t,n,o){for(let s of e.visibleRanges){let a=Math.max(s.from,n),l=Math.min(s.to,o);if(l>a){let c=e.state.doc.lineAt(a),d=c.to<l?e.state.doc.lineAt(l):c,u=Math.max(s.from,c.from),h=Math.min(s.to,d.to);if(this.boundary){for(;a>c.from;a--)if(this.boundary.test(c.text[a-1-c.from])){u=a;break}for(;l<d.to;l++)if(this.boundary.test(d.text[l-d.from])){h=l;break}}let f=[],p,m=(g,O,y)=>f.push(y.range(g,O));if(c==d)for(this.regexp.lastIndex=u-c.from;(p=this.regexp.exec(c.text))&&p.index<h-c.from;)this.addMatch(p,e,p.index+c.from,m);else cg(e.state.doc,this.regexp,u,h,(g,O)=>this.addMatch(O,e,g,m));t=t.update({filterFrom:u,filterTo:h,filter:(g,O)=>g<u||O>h,add:f})}}return t}}const Mu=/x/.unicode!=null?"gu":"g",UP=new RegExp(`[\0-\b
|
|
10
|
+
--\u2028\u2029\uFEFF-]`,Mu),YP={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let wd=null;function LP(){var r;if(wd==null&&typeof document<"u"&&document.body){let e=document.body.style;wd=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return wd||!1}const dl=ee.define({combine(r){let e=vc(r,{render:null,specialChars:UP,addSpecialChars:null});return(e.replaceTabs=!LP())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Mu)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Mu)),e}});function FP(r={}){return[dl.of(r),HP()]}let dg=null;function HP(){return dg||(dg=Ht.fromClass(class{constructor(r){this.view=r,this.decorations=Se.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(dl)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new ib({regexp:r.specialChars,decoration:(e,t,n)=>{let{doc:o}=t.state,s=dt(e[0],0);if(s==9){let a=o.lineAt(n),l=t.state.tabSize,c=hy(a.text,l,n-a.from);return Se.replace({widget:new ex((l-c%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=Se.replace({widget:new JP(r,s)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(dl);r.startState.facet(dl)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}const GP="•";function KP(r){return r>=32?GP:r==10?"":String.fromCharCode(9216+r)}class JP extends Os{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=KP(this.code),n=e.state.phrase("Control character")+" "+(YP[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,n,t);if(o)return o;let s=document.createElement("span");return s.textContent=t,s.title=n,s.setAttribute("aria-label",n),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class ex extends Os{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const Gs="-10000px";class tx{constructor(e,t,n,o){this.facet=t,this.createTooltipView=n,this.removeTooltipView=o,this.input=e.state.facet(t),this.tooltips=this.input.filter(a=>a);let s=null;this.tooltipViews=this.tooltips.map(a=>s=n(a,s))}update(e,t){var n;let o=e.state.facet(this.facet),s=o.filter(c=>c);if(o===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let a=[],l=t?[]:null;for(let c=0;c<s.length;c++){let d=s[c],u=-1;if(d){for(let h=0;h<this.tooltips.length;h++){let f=this.tooltips[h];f&&f.create==d.create&&(u=h)}if(u<0)a[c]=this.createTooltipView(d,c?a[c-1]:null),l&&(l[c]=!!d.above);else{let h=a[c]=this.tooltipViews[u];l&&(l[c]=t[u]),h.update&&h.update(e)}}}for(let c of this.tooltipViews)a.indexOf(c)<0&&(this.removeTooltipView(c),(n=c.destroy)===null||n===void 0||n.call(c));return t&&(l.forEach((c,d)=>t[d]=c),t.length=l.length),this.input=o,this.tooltips=s,this.tooltipViews=a,!0}}function rx(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const kd=ee.define({combine:r=>{var e,t,n;return{position:L.ios?"absolute":((e=r.find(o=>o.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(o=>o.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=r.find(o=>o.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||rx}}}),ug=new WeakMap,ab=Ht.fromClass(class{constructor(r){this.view=r,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(kd);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new tx(r,lb,(t,n)=>this.createTooltip(t,n),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r,this.above);e&&this.observeIntersection();let t=e||r.geometryChanged,n=r.state.facet(kd);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let o of this.manager.tooltipViews)o.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let o of this.manager.tooltipViews)this.container.appendChild(o.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r,e){let t=r.create(this.view),n=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),r.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",t.dom.insertBefore(o,n)}return t.dom.style.position=this.position,t.dom.style.top=Gs,t.dom.style.left="0px",this.container.insertBefore(t.dom,n),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var r,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(r=n.destroy)===null||r===void 0||r.call(n);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=this.view.dom.getBoundingClientRect(),e=1,t=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(L.gecko)n=o.offsetParent!=this.container.ownerDocument.body;else if(o.style.top==Gs&&o.style.left=="0px"){let s=o.getBoundingClientRect();n=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(n||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(e=o.width/this.parent.offsetWidth,t=o.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:r,parent:this.parent?this.container.getBoundingClientRect():r,pos:this.manager.tooltips.map((o,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(kd).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:n,scaleX:o,scaleY:s}=r,a=[];for(let l=0;l<this.manager.tooltips.length;l++){let c=this.manager.tooltips[l],d=this.manager.tooltipViews[l],{dom:u}=d,h=r.pos[l],f=r.size[l];if(!h||h.bottom<=Math.max(t.top,n.top)||h.top>=Math.min(t.bottom,n.bottom)||h.right<Math.max(t.left,n.left)-.1||h.left>Math.min(t.right,n.right)+.1){u.style.top=Gs;continue}let p=c.arrow?d.dom.querySelector(".cm-tooltip-arrow"):null,m=p?7:0,g=f.right-f.left,O=(e=ug.get(d))!==null&&e!==void 0?e:f.bottom-f.top,y=d.offset||ox,b=this.view.textDirection==Fe.LTR,v=f.width>n.right-n.left?b?n.left:n.right-f.width:b?Math.min(h.left-(p?14:0)+y.x,n.right-g):Math.max(n.left,h.left-g+(p?14:0)-y.x),w=this.above[l];!c.strictSide&&(w?h.top-(f.bottom-f.top)-y.y<n.top:h.bottom+(f.bottom-f.top)+y.y>n.bottom)&&w==n.bottom-h.bottom>h.top-n.top&&(w=this.above[l]=!w);let S=(w?h.top-n.top:n.bottom-h.bottom)-m;if(S<O&&d.resize!==!1){if(S<this.view.defaultLineHeight){u.style.top=Gs;continue}ug.set(d,O),u.style.height=(O=S)/s+"px"}else u.style.height&&(u.style.height="");let k=w?h.top-O-m-y.y:h.bottom+m+y.y,$=v+g;if(d.overlap!==!0)for(let C of a)C.left<$&&C.right>v&&C.top<k+O&&C.bottom>k&&(k=w?C.top-O-2-m:C.bottom+m+2);if(this.position=="absolute"?(u.style.top=(k-r.parent.top)/s+"px",u.style.left=(v-r.parent.left)/o+"px"):(u.style.top=k/s+"px",u.style.left=v/o+"px"),p){let C=h.left+(b?y.x:-y.x)-(v+14-7);p.style.left=C/o+"px"}d.overlap!==!0&&a.push({left:v,top:k,right:$,bottom:k+O}),u.classList.toggle("cm-tooltip-above",w),u.classList.toggle("cm-tooltip-below",!w),d.positioned&&d.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=Gs}},{eventObservers:{scroll(){this.maybeMeasure()}}}),nx=re.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ox={x:0,y:0},lb=ee.define({enables:[ab,nx]});function cb(r,e){let t=r.plugin(ab);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}class po extends uo{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}po.prototype.elementClass="";po.prototype.toDOM=void 0;po.prototype.mapMode=ut.TrackBefore;po.prototype.startSide=po.prototype.endSide=-1;po.prototype.point=!0;const Sd=ee.define(),ul=ee.define(),Xu=ee.define({combine:r=>r.some(e=>e)});function sx(r){let e=[ix];return r&&r.fixed===!1&&e.push(Xu.of(!0)),e}const ix=Ht.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(ul).map(e=>new fg(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(Xu),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Xu)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=ve.iter(this.view.state.facet(Sd),this.view.viewport.from),n=[],o=this.gutters.map(s=>new ax(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(s.type)){let a=!0;for(let l of s.type)if(l.type==ar.Text&&a){Wu(t,n,l.from);for(let c of o)c.line(this.view,l,n);a=!1}else if(l.widget)for(let c of o)c.widget(this.view,l)}else if(s.type==ar.Text){Wu(t,n,s.from);for(let a of o)a.line(this.view,s,n)}else if(s.widget)for(let a of o)a.widget(this.view,s);for(let s of o)s.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(ul),t=r.state.facet(ul),n=r.docChanged||r.heightChanged||r.viewportChanged||!ve.eq(r.startState.facet(Sd),r.state.facet(Sd),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let o of this.gutters)o.update(r)&&(n=!0);else{n=!0;let o=[];for(let s of t){let a=e.indexOf(s);a<0?o.push(new fg(this.view,s)):(this.gutters[a].update(r),o.push(this.gutters[a]))}for(let s of this.gutters)s.dom.remove(),o.indexOf(s)<0&&s.destroy();for(let s of o)this.dom.appendChild(s.dom);this.gutters=o}return n}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>re.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Fe.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function hg(r){return Array.isArray(r)?r:[r]}function Wu(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}class ax{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=ve.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:o}=this,s=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==o.elements.length){let l=new db(e,a,s,n);o.elements.push(l),o.dom.appendChild(l.dom)}else o.elements[this.i].update(e,a,s,n);this.height=t.bottom,this.i++}line(e,t,n){let o=[];Wu(this.cursor,o,t.from),n.length&&(o=o.concat(n));let s=this.gutter.config.lineMarker(e,t,o);s&&o.unshift(s);let a=this.gutter;o.length==0&&!a.config.renderEmptyElements||this.addElement(e,t,o)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class fg{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,o=>{let s=o.target,a;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let c=s.getBoundingClientRect();a=(c.top+c.bottom)/2}else a=o.clientY;let l=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[n](e,l,o)&&o.preventDefault()});this.markers=hg(t.markers(e)),t.initialSpacer&&(this.spacer=new db(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=hg(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let o=this.config.updateSpacer(this.spacer.markers[0],e);o!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[o])}let n=e.view.viewport;return!ve.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class db{constructor(e,t,n,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,o)}update(e,t,n,o){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),lx(this.markers,o)||this.setMarkers(e,o)}setMarkers(e,t){let n="cm-gutterElement",o=this.dom.firstChild;for(let s=0,a=0;;){let l=a,c=s<t.length?t[s++]:null,d=!1;if(c){let u=c.elementClass;u&&(n+=" "+u);for(let h=a;h<this.markers.length;h++)if(this.markers[h].compare(c)){l=h,d=!0;break}}else l=this.markers.length;for(;a<l;){let u=this.markers[a++];if(u.toDOM){u.destroy(o);let h=o.nextSibling;o.remove(),o=h}}if(!c)break;c.toDOM&&(d?o=o.nextSibling:this.dom.insertBefore(c.toDOM(e),o)),d&&a++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function lx(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].compare(e[t]))return!1;return!0}const cx=ee.define(),Bo=ee.define({combine(r){return vc(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let o in t){let s=n[o],a=t[o];n[o]=s?(l,c,d)=>s(l,c,d)||a(l,c,d):a}return n}})}});class $d extends po{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Pd(r,e){return r.state.facet(Bo).formatNumber(e,r.state)}const dx=ul.compute([Bo],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(cx)},lineMarker(e,t,n){return n.some(o=>o.toDOM)?null:new $d(Pd(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Bo)!=e.state.facet(Bo),initialSpacer(e){return new $d(Pd(e,pg(e.state.doc.lines)))},updateSpacer(e,t){let n=Pd(t.view,pg(t.view.state.doc.lines));return n==e.number?e:new $d(n)},domEventHandlers:r.facet(Bo).domEventHandlers}));function ux(r={}){return[Bo.of(r),sx(),dx]}function pg(r){let e=9;for(;e<r;)e=e*10+9;return e}const ub=1024;let hx=0;class Ut{constructor(e,t){this.from=e,this.to=t}}class pe{constructor(e={}){this.id=hx++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=vt.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}pe.closedBy=new pe({deserialize:r=>r.split(" ")});pe.openedBy=new pe({deserialize:r=>r.split(" ")});pe.group=new pe({deserialize:r=>r.split(" ")});pe.isolate=new pe({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});pe.contextHash=new pe({perNode:!0});pe.lookAhead=new pe({perNode:!0});pe.mounted=new pe({perNode:!0});class Zi{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[pe.mounted.id]}}const fx=Object.create(null);class vt{constructor(e,t,n,o=0){this.name=e,this.props=t,this.id=n,this.flags=o}static define(e){let t=e.props&&e.props.length?Object.create(null):fx,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),o=new vt(e.name||"",t,e.id,n);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(o)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return o}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(pe.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let o of n.split(" "))t[o]=e[n];return n=>{for(let o=n.prop(pe.group),s=-1;s<(o?o.length:0);s++){let a=t[s<0?n.name:o[s]];if(a)return a}}}}vt.none=new vt("",Object.create(null),0,8);class ef{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let o=null;for(let s of e){let a=s(n);a&&(o||(o=Object.assign({},n.props)),o[a[0].id]=a[1])}t.push(o?new vt(n.name,o,n.id,n.flags):n)}return new ef(t)}}const ja=new WeakMap,mg=new WeakMap;var Te;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays"})(Te||(Te={}));class je{constructor(e,t,n,o,s){if(this.type=e,this.children=t,this.positions=n,this.length=o,this.props=null,s&&s.length){this.props=Object.create(null);for(let[a,l]of s)this.props[typeof a=="number"?a:a.id]=l}}toString(){let e=Zi.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let o=n.toString();o&&(t&&(t+=","),t+=o)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Vl(this.topNode,e)}cursorAt(e,t=0,n=0){let o=ja.get(this)||this.topNode,s=new Vl(o);return s.moveTo(e,t),ja.set(this,s._tree),s}get topNode(){return new ft(this,0,0,null)}resolve(e,t=0){let n=Ii(ja.get(this)||this.topNode,e,t,!1);return ja.set(this,n),n}resolveInner(e,t=0){let n=Ii(mg.get(this)||this.topNode,e,t,!0);return mg.set(this,n),n}resolveStack(e,t=0){return gx(this,e,t)}iterate(e){let{enter:t,leave:n,from:o=0,to:s=this.length}=e,a=e.mode||0,l=(a&Te.IncludeAnonymous)>0;for(let c=this.cursor(a|Te.IncludeAnonymous);;){let d=!1;if(c.from<=s&&c.to>=o&&(!l&&c.type.isAnonymous||t(c)!==!1)){if(c.firstChild())continue;d=!0}for(;d&&n&&(l||!c.type.isAnonymous)&&n(c),!c.nextSibling();){if(!c.parent())return;d=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:nf(vt.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,o)=>new je(this.type,t,n,o,this.propValues),e.makeTree||((t,n,o)=>new je(vt.none,t,n,o)))}static build(e){return Ox(e)}}je.empty=new je(vt.none,[],[],0);class tf{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new tf(this.buffer,this.index)}}class _n{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return vt.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],o=this.set.types[t],s=o.name;if(/\W/.test(s)&&!o.isError&&(s=JSON.stringify(s)),e+=4,n==e)return s;let a=[];for(;e<n;)a.push(this.childString(e)),e=this.buffer[e+3];return s+"("+a.join(",")+")"}findChild(e,t,n,o,s){let{buffer:a}=this,l=-1;for(let c=e;c!=t&&!(hb(s,o,a[c+1],a[c+2])&&(l=c,n>0));c=a[c+3]);return l}slice(e,t,n){let o=this.buffer,s=new Uint16Array(t-e),a=0;for(let l=e,c=0;l<t;){s[c++]=o[l++],s[c++]=o[l++]-n;let d=s[c++]=o[l++]-n;s[c++]=o[l++]-e,a=Math.max(a,d)}return new _n(s,a,this.set)}}function hb(r,e,t,n){switch(r){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function Ii(r,e,t,n){for(var o;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let a=!n&&r instanceof ft&&r.index<0?null:r.parent;if(!a)return r;r=a}let s=n?0:Te.IgnoreOverlays;if(n)for(let a=r,l=a.parent;l;a=l,l=a.parent)a instanceof ft&&a.index<0&&((o=l.enter(e,t,s))===null||o===void 0?void 0:o.from)!=a.from&&(r=l);for(;;){let a=r.enter(e,t,s);if(!a)return r;r=a}}class fb{cursor(e=0){return new Vl(this,e)}getChild(e,t=null,n=null){let o=gg(this,e,t,n);return o.length?o[0]:null}getChildren(e,t=null,n=null){return gg(this,e,t,n)}resolve(e,t=0){return Ii(this,e,t,!1)}resolveInner(e,t=0){return Ii(this,e,t,!0)}matchContext(e){return zu(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let o=t.lastChild;if(!o||o.to!=t.to)break;o.type.isError&&o.from==o.to?(n=t,t=o.prevSibling):t=o}return n}get node(){return this}get next(){return this.parent}}class ft extends fb{constructor(e,t,n,o){super(),this._tree=e,this.from=t,this.index=n,this._parent=o}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,o,s=0){for(let a=this;;){for(let{children:l,positions:c}=a._tree,d=t>0?l.length:-1;e!=d;e+=t){let u=l[e],h=c[e]+a.from;if(hb(o,n,h,h+u.length)){if(u instanceof _n){if(s&Te.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,t,n-h,o);if(f>-1)return new Tr(new px(a,u,e,h),null,f)}else if(s&Te.IncludeAnonymous||!u.type.isAnonymous||rf(u)){let f;if(!(s&Te.IgnoreMounts)&&(f=Zi.get(u))&&!f.overlay)return new ft(f.tree,h,e,a);let p=new ft(u,h,e,a);return s&Te.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?u.children.length-1:0,t,n,o)}}}if(s&Te.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+t:e=t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let o;if(!(n&Te.IgnoreOverlays)&&(o=Zi.get(this._tree))&&o.overlay){let s=e-this.from;for(let{from:a,to:l}of o.overlay)if((t>0?a<=s:a<s)&&(t<0?l>=s:l>s))return new ft(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function gg(r,e,t,n){let o=r.cursor(),s=[];if(!o.firstChild())return s;if(t!=null){for(let a=!1;!a;)if(a=o.type.is(t),!o.nextSibling())return s}for(;;){if(n!=null&&o.type.is(n))return s;if(o.type.is(e)&&s.push(o.node),!o.nextSibling())return n==null?s:[]}}function zu(r,e,t=e.length-1){for(let n=r.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class px{constructor(e,t,n,o){this.parent=e,this.buffer=t,this.index=n,this.start=o}}class Tr extends fb{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:o}=this.context,s=o.findChild(this.index+4,o.buffer[this.index+3],e,t-this.context.start,n);return s<0?null:new Tr(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Te.ExcludeBuffers)return null;let{buffer:o}=this.context,s=o.findChild(this.index+4,o.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new Tr(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Tr(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Tr(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,o=this.index+4,s=n.buffer[this.index+3];if(s>o){let a=n.buffer[this.index+1];e.push(n.slice(o,s,a)),t.push(0)}return new je(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function pb(r){if(!r.length)return null;let e=0,t=r[0];for(let s=1;s<r.length;s++){let a=r[s];(a.from>t.from||a.to<t.to)&&(t=a,e=s)}let n=t instanceof ft&&t.index<0?null:t.parent,o=r.slice();return n?o[e]=n:o.splice(e,1),new mx(o,t)}class mx{constructor(e,t){this.heads=e,this.node=t}get next(){return pb(this.heads)}}function gx(r,e,t){let n=r.resolveInner(e,t),o=null;for(let s=n instanceof ft?n:n.context.parent;s;s=s.parent)if(s.index<0){let a=s.parent;(o||(o=[n])).push(a.resolve(e,t)),s=a}else{let a=Zi.get(s.tree);if(a&&a.overlay&&a.overlay[0].from<=e&&a.overlay[a.overlay.length-1].to>=e){let l=new ft(a.tree,a.overlay[0].from+s.from,-1,s);(o||(o=[n])).push(Ii(l,e,t,!1))}}return o?pb(o):n}class Vl{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ft)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:o}=this.buffer;return this.type=t||o.set.types[o.buffer[e]],this.from=n+o.buffer[e+1],this.to=n+o.buffer[e+2],!0}yield(e){return e?e instanceof ft?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:o}=this.buffer,s=o.findChild(this.index+4,o.buffer[this.index+3],e,t-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&Te.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Te.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Te.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let o=n<0?0:this.stack[n]+4;if(this.index!=o)return this.yieldBuf(t.findChild(o,this.index,-1,0,4))}else{let o=t.buffer[this.index+3];if(o<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(o)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:o}=this;if(o){if(e>0){if(this.index<o.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(o.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:n}=o)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let s=t+e,a=e<0?-1:n._tree.children.length;s!=a;s+=e){let l=n._tree.children[s];if(this.mode&Te.IncludeAnonymous||l instanceof _n||!l.type.isAnonymous||rf(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let o=this.index,s=this.stack.length;s>=0;){for(let a=e;a;a=a._parent)if(a.index==o){if(o==this.index)return a;t=a,n=s+1;break e}o=this.stack[--s]}for(let o=n;o<this.stack.length;o++)t=new Tr(this.buffer,t,this.stack[o]);return this.bufferNode=new Tr(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let o=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(o=!0)}for(;o&&t&&t(this),o=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,o=!0}}}matchContext(e){if(!this.buffer)return zu(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let o=e.length-1,s=this.stack.length-1;o>=0;s--){if(s<0)return zu(this.node,e,o);let a=n[t.buffer[this.stack[s]]];if(!a.isAnonymous){if(e[o]&&e[o]!=a.name)return!1;o--}}return!0}}function rf(r){return r.children.some(e=>e instanceof _n||!e.type.isAnonymous||rf(e))}function Ox(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:o=ub,reused:s=[],minRepeatType:a=n.types.length}=r,l=Array.isArray(t)?new tf(t,t.length):t,c=n.types,d=0,u=0;function h(S,k,$,C,E,B){let{id:q,start:R,end:K,size:F}=l,ge=u;for(;F<0;)if(l.next(),F==-1){let M=s[q];$.push(M),C.push(R-S);return}else if(F==-3){d=q;return}else if(F==-4){u=q;return}else throw new RangeError(`Unrecognized record size: ${F}`);let Ee=c[q],se,fe,le=R-S;if(K-R<=o&&(fe=O(l.pos-k,E))){let M=new Uint16Array(fe.size-fe.skip),A=l.pos-fe.size,Z=M.length;for(;l.pos>A;)Z=y(fe.start,M,Z);se=new _n(M,K-fe.start,n),le=fe.start-S}else{let M=l.pos-F;l.next();let A=[],Z=[],V=q>=a?q:-1,P=0,Q=K;for(;l.pos>M;)V>=0&&l.id==V&&l.size>=0?(l.end<=Q-o&&(m(A,Z,R,P,l.end,Q,V,ge),P=A.length,Q=l.end),l.next()):B>2500?f(R,M,A,Z):h(R,M,A,Z,V,B+1);if(V>=0&&P>0&&P<A.length&&m(A,Z,R,P,R,Q,V,ge),A.reverse(),Z.reverse(),V>-1&&P>0){let I=p(Ee);se=nf(Ee,A,Z,0,A.length,0,K-R,I,I)}else se=g(Ee,A,Z,K-R,ge-K)}$.push(se),C.push(le)}function f(S,k,$,C){let E=[],B=0,q=-1;for(;l.pos>k;){let{id:R,start:K,end:F,size:ge}=l;if(ge>4)l.next();else{if(q>-1&&K<q)break;q<0&&(q=F-o),E.push(R,K,F),B++,l.next()}}if(B){let R=new Uint16Array(B*4),K=E[E.length-2];for(let F=E.length-3,ge=0;F>=0;F-=3)R[ge++]=E[F],R[ge++]=E[F+1]-K,R[ge++]=E[F+2]-K,R[ge++]=ge;$.push(new _n(R,E[2]-K,n)),C.push(K-S)}}function p(S){return(k,$,C)=>{let E=0,B=k.length-1,q,R;if(B>=0&&(q=k[B])instanceof je){if(!B&&q.type==S&&q.length==C)return q;(R=q.prop(pe.lookAhead))&&(E=$[B]+q.length+R)}return g(S,k,$,C,E)}}function m(S,k,$,C,E,B,q,R){let K=[],F=[];for(;S.length>C;)K.push(S.pop()),F.push(k.pop()+$-E);S.push(g(n.types[q],K,F,B-E,R-B)),k.push(E-$)}function g(S,k,$,C,E=0,B){if(d){let q=[pe.contextHash,d];B=B?[q].concat(B):[q]}if(E>25){let q=[pe.lookAhead,E];B=B?[q].concat(B):[q]}return new je(S,k,$,C,B)}function O(S,k){let $=l.fork(),C=0,E=0,B=0,q=$.end-o,R={size:0,start:0,skip:0};e:for(let K=$.pos-S;$.pos>K;){let F=$.size;if($.id==k&&F>=0){R.size=C,R.start=E,R.skip=B,B+=4,C+=4,$.next();continue}let ge=$.pos-F;if(F<0||ge<K||$.start<q)break;let Ee=$.id>=a?4:0,se=$.start;for($.next();$.pos>ge;){if($.size<0)if($.size==-3)Ee+=4;else break e;else $.id>=a&&(Ee+=4);$.next()}E=se,C+=F,B+=Ee}return(k<0||C==S)&&(R.size=C,R.start=E,R.skip=B),R.size>4?R:void 0}function y(S,k,$){let{id:C,start:E,end:B,size:q}=l;if(l.next(),q>=0&&C<a){let R=$;if(q>4){let K=l.pos-(q-4);for(;l.pos>K;)$=y(S,k,$)}k[--$]=R,k[--$]=B-S,k[--$]=E-S,k[--$]=C}else q==-3?d=C:q==-4&&(u=C);return $}let b=[],v=[];for(;l.pos>0;)h(r.start||0,r.bufferStart||0,b,v,-1,0);let w=(e=r.length)!==null&&e!==void 0?e:b.length?v[0]+b[0].length:0;return new je(c[r.topID],b.reverse(),v.reverse(),w)}const Og=new WeakMap;function hl(r,e){if(!r.isAnonymous||e instanceof _n||e.type!=r)return 1;let t=Og.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof je)){t=1;break}t+=hl(r,n)}Og.set(e,t)}return t}function nf(r,e,t,n,o,s,a,l,c){let d=0;for(let m=n;m<o;m++)d+=hl(r,e[m]);let u=Math.ceil(d*1.5/8),h=[],f=[];function p(m,g,O,y,b){for(let v=O;v<y;){let w=v,S=g[v],k=hl(r,m[v]);for(v++;v<y;v++){let $=hl(r,m[v]);if(k+$>=u)break;k+=$}if(v==w+1){if(k>u){let $=m[w];p($.children,$.positions,0,$.children.length,g[w]+b);continue}h.push(m[w])}else{let $=g[v-1]+m[v-1].length-S;h.push(nf(r,m,g,w,v,S,$,null,c))}f.push(S+b-s)}}return p(e,t,n,o,0),(l||c)(h,f,a)}class mb{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let o=this.map.get(e);o||this.map.set(e,o=new Map),o.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof Tr?this.setBuffer(e.context.buffer,e.index,t):e instanceof ft&&this.map.set(e.tree,t)}get(e){return e instanceof Tr?this.getBuffer(e.context.buffer,e.index):e instanceof ft?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Xr{constructor(e,t,n,o,s=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=o,this.open=(s?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let o=[new Xr(0,e.length,e,0,!1,n)];for(let s of t)s.to>e.length&&o.push(s);return o}static applyChanges(e,t,n=128){if(!t.length)return e;let o=[],s=1,a=e.length?e[0]:null;for(let l=0,c=0,d=0;;l++){let u=l<t.length?t[l]:null,h=u?u.fromA:1e9;if(h-c>=n)for(;a&&a.from<h;){let f=a;if(c>=f.from||h<=f.to||d){let p=Math.max(f.from,c)-d,m=Math.min(f.to,h)-d;f=p>=m?null:new Xr(p,m,f.tree,f.offset+d,l>0,!!u)}if(f&&o.push(f),a.to>h)break;a=s<e.length?e[s++]:null}if(!u)break;c=u.toA,d=u.toA-u.toB}return o}}class gb{startParse(e,t,n){return typeof e=="string"&&(e=new yx(e)),n=n?n.length?n.map(o=>new Ut(o.from,o.to)):[new Ut(0,0)]:[new Ut(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let o=this.startParse(e,t,n);for(;;){let s=o.advance();if(s)return s}}}class yx{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function bx(r){return(e,t,n,o)=>new wx(e,r,t,n,o)}class yg{constructor(e,t,n,o,s){this.parser=e,this.parse=t,this.overlay=n,this.target=o,this.from=s}}function bg(r){if(!r.length||r.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(r))}class vx{constructor(e,t,n,o,s,a,l){this.parser=e,this.predicate=t,this.mounts=n,this.index=o,this.start=s,this.target=a,this.prev=l,this.depth=0,this.ranges=[]}}const Uu=new pe({perNode:!0});class wx{constructor(e,t,n,o,s){this.nest=t,this.input=n,this.fragments=o,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let o of this.inner)o.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new je(n.type,n.children,n.positions,n.length,n.propValues.concat([[Uu,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[pe.mounted.id]=new Zi(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new $x(this.fragments),t=null,n=null,o=new Vl(new ft(this.baseTree,this.ranges[0].from,0,null),Te.IncludeAnonymous|Te.IgnoreMounts);e:for(let s,a;;){let l=!0,c;if(this.stoppedAt!=null&&o.from>=this.stoppedAt)l=!1;else if(e.hasNode(o)){if(t){let d=t.mounts.find(u=>u.frag.from<=o.from&&u.frag.to>=o.to&&u.mount.overlay);if(d)for(let u of d.mount.overlay){let h=u.from+d.pos,f=u.to+d.pos;h>=o.from&&f<=o.to&&!t.ranges.some(p=>p.from<f&&p.to>h)&&t.ranges.push({from:h,to:f})}}l=!1}else if(n&&(a=kx(n.ranges,o.from,o.to)))l=a!=2;else if(!o.type.isAnonymous&&(s=this.nest(o,this.input))&&(o.from<o.to||!s.overlay)){o.tree||Sx(o);let d=e.findMounts(o.from,s.parser);if(typeof s.overlay=="function")t=new vx(s.parser,s.overlay,d,this.inner.length,o.from,o.tree,t);else{let u=kg(this.ranges,s.overlay||(o.from<o.to?[new Ut(o.from,o.to)]:[]));u.length&&bg(u),(u.length||!s.overlay)&&this.inner.push(new yg(s.parser,u.length?s.parser.startParse(this.input,Sg(d,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(h=>new Ut(h.from-o.from,h.to-o.from)):null,o.tree,u.length?u[0].from:o.from)),s.overlay?u.length&&(n={ranges:u,depth:0,prev:n}):l=!1}}else t&&(c=t.predicate(o))&&(c===!0&&(c=new Ut(o.from,o.to)),c.from<c.to&&t.ranges.push(c));if(l&&o.firstChild())t&&t.depth++,n&&n.depth++;else for(;!o.nextSibling();){if(!o.parent())break e;if(t&&!--t.depth){let d=kg(this.ranges,t.ranges);d.length&&(bg(d),this.inner.splice(t.index,0,new yg(t.parser,t.parser.startParse(this.input,Sg(t.mounts,d),d),t.ranges.map(u=>new Ut(u.from-t.start,u.to-t.start)),t.target,d[0].from))),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function kx(r,e,t){for(let n of r){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function vg(r,e,t,n,o,s){if(e<t){let a=r.buffer[e+1];n.push(r.slice(e,t,a)),o.push(a-s)}}function Sx(r){let{node:e}=r,t=[],n=e.context.buffer;do t.push(r.index),r.parent();while(!r.tree);let o=r.tree,s=o.children.indexOf(n),a=o.children[s],l=a.buffer,c=[s];function d(u,h,f,p,m,g){let O=t[g],y=[],b=[];vg(a,u,O,y,b,p);let v=l[O+1],w=l[O+2];c.push(y.length);let S=g?d(O+4,l[O+3],a.set.types[l[O]],v,w-v,g-1):e.toTree();return y.push(S),b.push(v-p),vg(a,l[O+3],h,y,b,p),new je(f,y,b,m)}o.children[s]=d(0,l.length,vt.none,0,a.length,t.length-1);for(let u of c){let h=r.tree.children[u],f=r.tree.positions[u];r.yield(new ft(h,f+r.from,u,r._tree))}}class wg{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(Te.IncludeAnonymous|Te.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,Te.IgnoreOverlays|Te.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof je)t=t.children[0];else break}return!1}}let $x=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(Uu))!==null&&t!==void 0?t:n.to,this.inner=new wg(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(Uu))!==null&&e!==void 0?e:t.to,this.inner=new wg(t.tree,-t.offset)}}findMounts(e,t){var n;let o=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let a=(n=s.tree)===null||n===void 0?void 0:n.prop(pe.mounted);if(a&&a.parser==t)for(let l=this.fragI;l<this.fragments.length;l++){let c=this.fragments[l];if(c.from>=s.to)break;c.tree==this.curFrag.tree&&o.push({frag:c,pos:s.from-c.offset,mount:a})}}}return o}};function kg(r,e){let t=null,n=e;for(let o=1,s=0;o<r.length;o++){let a=r[o-1].to,l=r[o].from;for(;s<n.length;s++){let c=n[s];if(c.from>=l)break;c.to<=a||(t||(n=t=e.slice()),c.from<a?(t[s]=new Ut(c.from,a),c.to>l&&t.splice(s+1,0,new Ut(l,c.to))):c.to>l?t[s--]=new Ut(l,c.to):t.splice(s--,1))}}return n}function Px(r,e,t,n){let o=0,s=0,a=!1,l=!1,c=-1e9,d=[];for(;;){let u=o==r.length?1e9:a?r[o].to:r[o].from,h=s==e.length?1e9:l?e[s].to:e[s].from;if(a!=l){let f=Math.max(c,t),p=Math.min(u,h,n);f<p&&d.push(new Ut(f,p))}if(c=Math.min(u,h),c==1e9)break;u==c&&(a?(a=!1,o++):a=!0),h==c&&(l?(l=!1,s++):l=!0)}return d}function Sg(r,e){let t=[];for(let{pos:n,mount:o,frag:s}of r){let a=n+(o.overlay?o.overlay[0].from:0),l=a+o.tree.length,c=Math.max(s.from,a),d=Math.min(s.to,l);if(o.overlay){let u=o.overlay.map(f=>new Ut(f.from+n,f.to+n)),h=Px(e,u,c,d);for(let f=0,p=c;;f++){let m=f==h.length,g=m?d:h[f].from;if(g>p&&t.push(new Xr(p,g,o.tree,-a,s.from>=p||s.openStart,s.to<=g||s.openEnd)),m)break;p=h[f].to}}else t.push(new Xr(c,d,o.tree,-a,s.from>=a||s.openStart,s.to<=l||s.openEnd))}return t}let xx=0,un=class Ob{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=xx++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new Ob([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Rl;return t=>t.modified.indexOf(e)>-1?t:Rl.get(t.base||t,t.modified.concat(e).sort((n,o)=>n.id-o.id))}},_x=0;class Rl{constructor(){this.instances=[],this.id=_x++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(l=>l.base==e&&Cx(t,l.modified));if(n)return n;let o=[],s=new un(o,e,t);for(let l of t)l.instances.push(s);let a=Tx(t);for(let l of e.set)if(!l.modified.length)for(let c of a)o.push(Rl.get(l,c));return s}}function Cx(r,e){return r.length==e.length&&r.every((t,n)=>t==e[n])}function Tx(r){let e=[[]];for(let t=0;t<r.length;t++)for(let n=0,o=e.length;n<o;n++)e.push(e[n].concat(r[t]));return e.sort((t,n)=>n.length-t.length)}function ys(r){let e=Object.create(null);for(let t in r){let n=r[t];Array.isArray(n)||(n=[n]);for(let o of t.split(" "))if(o){let s=[],a=2,l=o;for(let h=0;;){if(l=="..."&&h>0&&h+3==o.length){a=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!f)throw new RangeError("Invalid path: "+o);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),h+=f[0].length,h==o.length)break;let p=o[h++];if(h==o.length&&p=="!"){a=0;break}if(p!="/")throw new RangeError("Invalid path: "+o);l=o.slice(h)}let c=s.length-1,d=s[c];if(!d)throw new RangeError("Invalid path: "+o);let u=new Bl(n,a,c>0?s.slice(0,c):null);e[d]=u.sort(e[d])}}return yb.add(e)}const yb=new pe;class Bl{constructor(e,t,n,o){this.tags=e,this.mode=t,this.context=n,this.next=o}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Bl.empty=new Bl([],2,null);function bb(r,e){let t=Object.create(null);for(let s of r)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let a of s.tag)t[a.id]=s.class;let{scope:n,all:o=null}=e||{};return{style:s=>{let a=o;for(let l of s)for(let c of l.set){let d=t[c.id];if(d){a=a?a+" "+d:d;break}}return a},scope:n}}function Qx(r,e){let t=null;for(let n of r){let o=n.style(e);o&&(t=t?t+" "+o:o)}return t}function Ex(r,e,t,n=0,o=r.length){let s=new Nx(n,Array.isArray(e)?e:[e],t);s.highlightRange(r.cursor(),n,o,"",s.highlighters),s.flush(o)}class Nx{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,o,s){let{type:a,from:l,to:c}=e;if(l>=n||c<=t)return;a.isTop&&(s=this.highlighters.filter(p=>!p.scope||p.scope(a)));let d=o,u=Ax(e)||Bl.empty,h=Qx(s,u.tags);if(h&&(d&&(d+=" "),d+=h,u.mode==1&&(o+=(o?" ":"")+h)),this.startSpan(Math.max(t,l),d),u.opaque)return;let f=e.tree&&e.tree.prop(pe.mounted);if(f&&f.overlay){let p=e.node.enter(f.overlay[0].from+l,1),m=this.highlighters.filter(O=>!O.scope||O.scope(f.tree.type)),g=e.firstChild();for(let O=0,y=l;;O++){let b=O<f.overlay.length?f.overlay[O]:null,v=b?b.from+l:c,w=Math.max(t,y),S=Math.min(n,v);if(w<S&&g)for(;e.from<S&&(this.highlightRange(e,w,S,o,s),this.startSpan(Math.min(S,e.to),d),!(e.to>=v||!e.nextSibling())););if(!b||v>n)break;y=b.to+l,y>t&&(this.highlightRange(p.cursor(),Math.max(t,b.from+l),Math.min(n,y),"",m),this.startSpan(Math.min(n,y),d))}g&&e.parent()}else if(e.firstChild()){f&&(o="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,o,s),this.startSpan(Math.min(n,e.to),d)}while(e.nextSibling());e.parent()}}}function Ax(r){let e=r.type.prop(yb);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}const W=un.define,Da=W(),hn=W(),$g=W(hn),Pg=W(hn),fn=W(),qa=W(fn),xd=W(fn),Sr=W(),Xn=W(Sr),vr=W(),wr=W(),Yu=W(),Ks=W(Yu),Ma=W(),_={comment:Da,lineComment:W(Da),blockComment:W(Da),docComment:W(Da),name:hn,variableName:W(hn),typeName:$g,tagName:W($g),propertyName:Pg,attributeName:W(Pg),className:W(hn),labelName:W(hn),namespace:W(hn),macroName:W(hn),literal:fn,string:qa,docString:W(qa),character:W(qa),attributeValue:W(qa),number:xd,integer:W(xd),float:W(xd),bool:W(fn),regexp:W(fn),escape:W(fn),color:W(fn),url:W(fn),keyword:vr,self:W(vr),null:W(vr),atom:W(vr),unit:W(vr),modifier:W(vr),operatorKeyword:W(vr),controlKeyword:W(vr),definitionKeyword:W(vr),moduleKeyword:W(vr),operator:wr,derefOperator:W(wr),arithmeticOperator:W(wr),logicOperator:W(wr),bitwiseOperator:W(wr),compareOperator:W(wr),updateOperator:W(wr),definitionOperator:W(wr),typeOperator:W(wr),controlOperator:W(wr),punctuation:Yu,separator:W(Yu),bracket:Ks,angleBracket:W(Ks),squareBracket:W(Ks),paren:W(Ks),brace:W(Ks),content:Sr,heading:Xn,heading1:W(Xn),heading2:W(Xn),heading3:W(Xn),heading4:W(Xn),heading5:W(Xn),heading6:W(Xn),contentSeparator:W(Sr),list:W(Sr),quote:W(Sr),emphasis:W(Sr),strong:W(Sr),link:W(Sr),monospace:W(Sr),strikethrough:W(Sr),inserted:W(),deleted:W(),changed:W(),invalid:W(),meta:Ma,documentMeta:W(Ma),annotation:W(Ma),processingInstruction:W(Ma),definition:un.defineModifier(),constant:un.defineModifier(),function:un.defineModifier(),standard:un.defineModifier(),local:un.defineModifier(),special:un.defineModifier()};bb([{tag:_.link,class:"tok-link"},{tag:_.heading,class:"tok-heading"},{tag:_.emphasis,class:"tok-emphasis"},{tag:_.strong,class:"tok-strong"},{tag:_.keyword,class:"tok-keyword"},{tag:_.atom,class:"tok-atom"},{tag:_.bool,class:"tok-bool"},{tag:_.url,class:"tok-url"},{tag:_.labelName,class:"tok-labelName"},{tag:_.inserted,class:"tok-inserted"},{tag:_.deleted,class:"tok-deleted"},{tag:_.literal,class:"tok-literal"},{tag:_.string,class:"tok-string"},{tag:_.number,class:"tok-number"},{tag:[_.regexp,_.escape,_.special(_.string)],class:"tok-string2"},{tag:_.variableName,class:"tok-variableName"},{tag:_.local(_.variableName),class:"tok-variableName tok-local"},{tag:_.definition(_.variableName),class:"tok-variableName tok-definition"},{tag:_.special(_.variableName),class:"tok-variableName2"},{tag:_.definition(_.propertyName),class:"tok-propertyName tok-definition"},{tag:_.typeName,class:"tok-typeName"},{tag:_.namespace,class:"tok-namespace"},{tag:_.className,class:"tok-className"},{tag:_.macroName,class:"tok-macroName"},{tag:_.propertyName,class:"tok-propertyName"},{tag:_.operator,class:"tok-operator"},{tag:_.comment,class:"tok-comment"},{tag:_.meta,class:"tok-meta"},{tag:_.invalid,class:"tok-invalid"},{tag:_.punctuation,class:"tok-punctuation"}]);var _d;const Zo=new pe;function vb(r){return ee.define({combine:r?e=>e.concat(r):void 0})}const of=new pe;class ir{constructor(e,t,n=[],o=""){this.data=e,this.name=o,be.prototype.hasOwnProperty("tree")||Object.defineProperty(be.prototype,"tree",{get(){return mt(this)}}),this.parser=t,this.extension=[ls.of(this),be.languageData.of((s,a,l)=>{let c=xg(s,a,l),d=c.type.prop(Zo);if(!d)return[];let u=s.facet(d),h=c.type.prop(of);if(h){let f=c.resolve(a-c.from,l);for(let p of h)if(p.test(f,s)){let m=s.facet(p.facet);return p.type=="replace"?m:m.concat(u)}}return u})].concat(n)}isActiveAt(e,t,n=-1){return xg(e,t,n).type.prop(Zo)==this.data}findRegions(e){let t=e.facet(ls);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],o=(s,a)=>{if(s.prop(Zo)==this.data){n.push({from:a,to:a+s.length});return}let l=s.prop(pe.mounted);if(l){if(l.tree.prop(Zo)==this.data){if(l.overlay)for(let c of l.overlay)n.push({from:c.from+a,to:c.to+a});else n.push({from:a,to:a+s.length});return}else if(l.overlay){let c=n.length;if(o(l.tree,l.overlay[0].from+a),n.length>c)return}}for(let c=0;c<s.children.length;c++){let d=s.children[c];d instanceof je&&o(d,s.positions[c]+a)}};return o(mt(e),0),n}get allowsNesting(){return!0}}ir.setState=xe.define();function xg(r,e,t){let n=r.facet(ls),o=mt(r).topNode;if(!n||n.allowsNesting)for(let s=o;s;s=s.enter(e,t,Te.ExcludeBuffers))s.type.isTop&&(o=s);return o}class Cn extends ir{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=vb(e.languageData);return new Cn(t,e.parser.configure({props:[Zo.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new Cn(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function mt(r){let e=r.field(ir.state,!1);return e?e.tree:je.empty}class Vx{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Js=null;class Zl{constructor(e,t,n=[],o,s,a,l,c){this.parser=e,this.state=t,this.fragments=n,this.tree=o,this.treeLen=s,this.viewport=a,this.skipped=l,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Zl(e,t,[],je.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Vx(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=je.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let o=Date.now()+e;e=()=>Date.now()>o}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let o=this.parse.advance();if(o)if(this.fragments=this.withoutTempSkipped(Xr.addTree(o,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=o,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Xr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Js;Js=this;try{return e()}finally{Js=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=_g(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:o,treeLen:s,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((d,u,h,f)=>c.push({fromA:d,toA:u,fromB:h,toB:f})),n=Xr.applyChanges(n,c),o=je.empty,s=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){l=[];for(let d of this.skipped){let u=e.mapPos(d.from,1),h=e.mapPos(d.to,-1);u<h&&l.push({from:u,to:h})}}}return new Zl(this.parser,t,n,o,s,a,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:o,to:s}=this.skipped[n];o<e.to&&s>e.from&&(this.fragments=_g(this.fragments,o,s),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends gb{createParse(t,n,o){let s=o[0].from,a=o[o.length-1].to;return{parsedPos:s,advance(){let c=Js;if(c){for(let d of o)c.tempSkipped.push(d);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=a,new je(vt.none,[],[],a-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Js}}function _g(r,e,t){return Xr.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}class as{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new as(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Zl.create(e.facet(ls).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new as(n)}}ir.state=fr.define({create:as.init,update(r,e){for(let t of e.effects)if(t.is(ir.setState))return t.value;return e.startState.facet(ls)!=e.state.facet(ls)?as.init(e.state):r.apply(e)}});let wb=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(wb=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Cd=typeof navigator<"u"&&(!((_d=navigator.scheduling)===null||_d===void 0)&&_d.isInputPending)?()=>navigator.scheduling.isInputPending():null,Rx=Ht.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(ir.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(ir.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=wb(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:o}}=this.view,s=n.field(ir.state);if(s.tree==s.context.tree&&s.context.isDone(o+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!Cd?Math.max(25,e.timeRemaining()-5):1e9),l=s.context.treeLen<o&&n.doc.length>o+1e3,c=s.context.work(()=>Cd&&Cd()||Date.now()>a,o+(l?0:1e5));this.chunkBudget-=Date.now()-t,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:ir.setState.of(new as(s.context))})),this.chunkBudget>0&&!(c&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>lr(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ls=ee.define({combine(r){return r.length?r[0]:null},enables:r=>[ir.state,Rx,re.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});class ra{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Bx=ee.define(),sf=ee.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function Zx(r){let e=r.facet(sf);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function Ix(r,e){let t="",n=r.tabSize,o=r.facet(sf)[0];if(o==" "){for(;e>=n;)t+=" ",e-=n;o=" "}for(let s=0;s<e;s++)t+=o;return t}function jx(r,e){r instanceof be&&(r=new kb(r));for(let n of r.state.facet(Bx)){let o=n(r,e);if(o!==void 0)return o}let t=mt(r.state);return t.length>=e?Dx(r,t,e):null}class kb{constructor(e,t={}){this.state=e,this.options=t,this.unit=Zx(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:o,simulateDoubleBreak:s}=this.options;return o!=null&&o>=n.from&&o<=n.to?s&&o==e?{text:"",from:e}:(t<0?o<e:o<=e)?{text:n.text.slice(o-n.from),from:o}:{text:n.text.slice(0,o-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:o}=this.lineAt(e,t);return n.slice(e-o,Math.min(n.length,e+100-o))}column(e,t=1){let{text:n,from:o}=this.lineAt(e,t),s=this.countColumn(n,e-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(s+=a-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,t=e.length){return hy(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:o}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let a=s(o);if(a>-1)return a}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const bs=new pe;function Dx(r,e,t){let n=e.resolveStack(t),o=n.node.enterUnfinishedNodesBefore(t);if(o!=n.node){let s=[];for(let a=o;a!=n.node;a=a.parent)s.push(a);for(let a=s.length-1;a>=0;a--)n={node:s[a],next:n}}return Sb(n,r,t)}function Sb(r,e,t){for(let n=r;n;n=n.next){let o=Mx(n.node);if(o)return o(af.create(e,t,n))}return 0}function qx(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Mx(r){let e=r.type.prop(bs);if(e)return e;let t=r.firstChild,n;if(t&&(n=t.type.prop(pe.closedBy))){let o=r.lastChild,s=o&&n.indexOf(o.name)>-1;return a=>$b(a,!0,1,void 0,s&&!qx(a)?o.from:void 0)}return r.parent==null?Xx:null}function Xx(){return 0}class af extends kb{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new af(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(Wx(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return Sb(this.context.next,this.base,this.pos)}}function Wx(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function zx(r){let e=r.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let o=r.options.simulateBreak,s=r.state.doc.lineAt(t.from),a=o==null||o<=s.from?s.to:Math.min(s.to,o);for(let l=t.to;;){let c=e.childAfter(l);if(!c||c==n)return null;if(!c.type.isSkipped)return c.from<a?t:null;l=c.to}}function Lu({closing:r,align:e=!0,units:t=1}){return n=>$b(n,e,t,r)}function $b(r,e,t,n,o){let s=r.textAfter,a=s.match(/^\s*/)[0].length,l=n&&s.slice(a,a+n.length)==n||o==r.pos+a,c=e?zx(r):null;return c?l?r.column(c.from):r.column(c.to):r.baseIndent+(l?0:r.unit*t)}const Ux=r=>r.baseIndent;function Ho({except:r,units:e=1}={}){return t=>{let n=r&&r.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const Yx=200;function Lx(){return be.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:n}=r.newSelection.main,o=t.lineAt(n);if(n>o.from+Yx)return r;let s=t.sliceString(o.from,n);if(!e.some(d=>d.test(s)))return r;let{state:a}=r,l=-1,c=[];for(let{head:d}of a.selection.ranges){let u=a.doc.lineAt(d);if(u.from==l)continue;l=u.from;let h=jx(a,u.from);if(h==null)continue;let f=/^\s*/.exec(u.text)[0],p=Ix(a,h);f!=p&&c.push({from:u.from,to:u.from+f.length,insert:p})}return c.length?[r,{changes:c,sequential:!0}]:r})}const na=new pe;function Sc(r){let e=r.firstChild,t=r.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?r.to:t.from}:null}class oa{constructor(e,t){this.specs=e;let n;function o(l){let c=$n.newName();return(n||(n=Object.create(null)))["."+c]=l,c}const s=typeof t.all=="string"?t.all:t.all?o(t.all):void 0,a=t.scope;this.scope=a instanceof ir?l=>l.prop(Zo)==a.data:a?l=>l==a:void 0,this.style=bb(e.map(l=>({tag:l.tag,class:l.class||o(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=n?new $n(n):null,this.themeType=t.themeType}static define(e,t){return new oa(e,t||{})}}const Fu=ee.define(),Pb=ee.define({combine(r){return r.length?[r[0]]:null}});function Td(r){let e=r.facet(Fu);return e.length?e:r.facet(Pb)}function xb(r,e){let t=[Hx],n;return r instanceof oa&&(r.module&&t.push(re.styleModule.of(r.module)),n=r.themeType),e!=null&&e.fallback?t.push(Pb.of(r)):n?t.push(Fu.computeN([re.darkTheme],o=>o.facet(re.darkTheme)==(n=="dark")?[r]:[])):t.push(Fu.of(r)),t}class Fx{constructor(e){this.markCache=Object.create(null),this.tree=mt(e.state),this.decorations=this.buildDeco(e,Td(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=mt(e.state),n=Td(e.state),o=n!=Td(e.startState),{viewport:s}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length<s.to&&!o&&t.type==this.tree.type&&a>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||o)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=s.to)}buildDeco(e,t){if(!t||!this.tree.length)return Se.none;let n=new ss;for(let{from:o,to:s}of e.visibleRanges)Ex(this.tree,t,(a,l,c)=>{n.add(a,l,this.markCache[c]||(this.markCache[c]=Se.mark({class:c})))},o,s);return n.finish()}}const Hx=Ji.high(Ht.fromClass(Fx,{decorations:r=>r.decorations})),Gx=oa.define([{tag:_.meta,color:"#404740"},{tag:_.link,textDecoration:"underline"},{tag:_.heading,textDecoration:"underline",fontWeight:"bold"},{tag:_.emphasis,fontStyle:"italic"},{tag:_.strong,fontWeight:"bold"},{tag:_.strikethrough,textDecoration:"line-through"},{tag:_.keyword,color:"#708"},{tag:[_.atom,_.bool,_.url,_.contentSeparator,_.labelName],color:"#219"},{tag:[_.literal,_.inserted],color:"#164"},{tag:[_.string,_.deleted],color:"#a11"},{tag:[_.regexp,_.escape,_.special(_.string)],color:"#e40"},{tag:_.definition(_.variableName),color:"#00f"},{tag:_.local(_.variableName),color:"#30a"},{tag:[_.typeName,_.namespace],color:"#085"},{tag:_.className,color:"#167"},{tag:[_.special(_.variableName),_.macroName],color:"#256"},{tag:_.definition(_.propertyName),color:"#00c"},{tag:_.comment,color:"#940"},{tag:_.invalid,color:"#f00"}]),Kx=re.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),_b=1e4,Cb="()[]{}",Tb=ee.define({combine(r){return vc(r,{afterCursor:!0,brackets:Cb,maxScanDistance:_b,renderMatch:t_})}}),Jx=Se.mark({class:"cm-matchingBracket"}),e_=Se.mark({class:"cm-nonmatchingBracket"});function t_(r){let e=[],t=r.matched?Jx:e_;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}const r_=fr.define({create(){return Se.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],n=e.state.facet(Tb);for(let o of e.state.selection.ranges){if(!o.empty)continue;let s=Xa(e.state,o.head,-1,n)||o.head>0&&Xa(e.state,o.head-1,1,n)||n.afterCursor&&(Xa(e.state,o.head,1,n)||o.head<e.state.doc.length&&Xa(e.state,o.head+1,-1,n));s&&(t=t.concat(n.renderMatch(s,e.state)))}return Se.set(t,!0)},provide:r=>re.decorations.from(r)}),n_=[r_,Kx];function o_(r={}){return[Tb.of(r),n_]}const Qb=new pe;function Hu(r,e,t){let n=r.prop(e<0?pe.openedBy:pe.closedBy);if(n)return n;if(r.name.length==1){let o=t.indexOf(r.name);if(o>-1&&o%2==(e<0?1:0))return[t[o+e]]}return null}function Gu(r){let e=r.type.prop(Qb);return e?e(r.node):r}function Xa(r,e,t,n={}){let o=n.maxScanDistance||_b,s=n.brackets||Cb,a=mt(r),l=a.resolveInner(e,t);for(let c=l;c;c=c.parent){let d=Hu(c.type,t,s);if(d&&c.from<c.to){let u=Gu(c);if(u&&(t>0?e>=u.from&&e<u.to:e>u.from&&e<=u.to))return s_(r,e,t,c,u,d,s)}}return i_(r,e,t,a,l.type,o,s)}function s_(r,e,t,n,o,s,a){let l=n.parent,c={from:o.from,to:o.to},d=0,u=l==null?void 0:l.cursor();if(u&&(t<0?u.childBefore(n.from):u.childAfter(n.to)))do if(t<0?u.to<=n.from:u.from>=n.to){if(d==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let h=Gu(u);return{start:c,end:h?{from:h.from,to:h.to}:void 0,matched:!0}}else if(Hu(u.type,t,a))d++;else if(Hu(u.type,-t,a)){if(d==0){let h=Gu(u);return{start:c,end:h&&h.from<h.to?{from:h.from,to:h.to}:void 0,matched:!1}}d--}}while(t<0?u.prevSibling():u.nextSibling());return{start:c,matched:!1}}function i_(r,e,t,n,o,s,a){let l=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),c=a.indexOf(l);if(c<0||c%2==0!=t>0)return null;let d={from:t<0?e-1:e,to:t>0?e+1:e},u=r.doc.iterRange(e,t>0?r.doc.length:0),h=0;for(let f=0;!u.next().done&&f<=s;){let p=u.value;t<0&&(f+=p.length);let m=e+f*t;for(let g=t>0?0:p.length-1,O=t>0?p.length:-1;g!=O;g+=t){let y=a.indexOf(p[g]);if(!(y<0||n.resolveInner(m+g,1).type!=o))if(y%2==0==t>0)h++;else{if(h==1)return{start:d,end:{from:m+g,to:m+g+1},matched:y>>1==c>>1};h--}}t>0&&(f+=p.length)}return u.done?{start:d,matched:!1}:null}const a_=Object.create(null),Cg=[vt.none],Tg=[],Qg=Object.create(null),l_=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])l_[r]=c_(a_,e);function Qd(r,e){Tg.indexOf(r)>-1||(Tg.push(r),console.warn(e))}function c_(r,e){let t=[];for(let l of e.split(" ")){let c=[];for(let d of l.split(".")){let u=r[d]||_[d];u?typeof u=="function"?c.length?c=c.map(u):Qd(d,`Modifier ${d} used at start of tag`):c.length?Qd(d,`Tag ${d} used as modifier`):c=Array.isArray(u)?u:[u]:Qd(d,`Unknown highlighting tag ${d}`)}for(let d of c)t.push(d)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),o=n+" "+t.map(l=>l.id),s=Qg[o];if(s)return s.id;let a=Qg[o]=vt.define({id:Cg.length,name:n,props:[ys({[n]:t})]});return Cg.push(a),a.id}Fe.RTL,Fe.LTR;class Eb{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=mt(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),o=t.text.slice(n-t.from,this.pos-t.from),s=o.search(Ab(e,!1));return s<0?null:{from:n+s,to:this.pos,text:o.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}}function Eg(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function d_(r){let e=Object.create(null),t=Object.create(null);for(let{label:o}of r){e[o[0]]=!0;for(let s=1;s<o.length;s++)t[o[s]]=!0}let n=Eg(e)+Eg(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function Nb(r){let e=r.map(o=>typeof o=="string"?{label:o}:o),[t,n]=e.every(o=>/^\w+$/.test(o.label))?[/\w*$/,/\w+$/]:d_(e);return o=>{let s=o.matchBefore(n);return s||o.explicit?{from:s?s.from:o.pos,options:e,validFor:t}:null}}function u_(r,e){return t=>{for(let n=mt(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(r.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}class Ng{constructor(e,t,n,o){this.completion=e,this.source=t,this.match=n,this.score=o}}function wn(r){return r.selection.main.from}function Ab(r,e){var t;let{source:n}=r,o=e&&n[0]!="^",s=n[n.length-1]!="$";return!o&&!s?r:new RegExp(`${o?"^":""}(?:${n})${s?"$":""}`,(t=r.flags)!==null&&t!==void 0?t:r.ignoreCase?"i":"")}const Vb=yo.define();function h_(r,e,t,n){let{main:o}=r.selection,s=t-o.from,a=n-o.from;return Object.assign(Object.assign({},r.changeByRange(l=>l!=o&&t!=n&&r.sliceDoc(l.from+s,l.from+a)!=r.sliceDoc(t,n)?{range:l}:{changes:{from:l.from+s,to:n==o.from?l.to:l.from+a,insert:e},range:U.cursor(l.from+s+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Ag=new WeakMap;function f_(r){if(!Array.isArray(r))return r;let e=Ag.get(r);return e||Ag.set(r,e=Nb(r)),e}const Il=xe.define(),ji=xe.define();class p_{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=dt(e,t),o=or(n);this.chars.push(n);let s=e.slice(t,t+o),a=s.toUpperCase();this.folded.push(dt(a==s?s.toLowerCase():a,0)),t+=o}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,!0}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return!1;let{chars:t,folded:n,any:o,precise:s,byWord:a}=this;if(t.length==1){let b=dt(e,0),v=or(b),w=v==e.length?0:-100;if(b!=t[0])if(b==n[0])w+=-200;else return!1;return this.ret(w,[0,v])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=t.length,d=0;if(l<0){for(let b=0,v=Math.min(e.length,200);b<v&&d<c;){let w=dt(e,b);(w==t[d]||w==n[d])&&(o[d++]=b),b+=or(w)}if(d<c)return!1}let u=0,h=0,f=!1,p=0,m=-1,g=-1,O=/[a-z]/.test(e),y=!0;for(let b=0,v=Math.min(e.length,200),w=0;b<v&&h<c;){let S=dt(e,b);l<0&&(u<c&&S==t[u]&&(s[u++]=b),p<c&&(S==t[p]||S==n[p]?(p==0&&(m=b),g=b+1,p++):p=0));let k,$=S<255?S>=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(k=K0(S))!=k.toLowerCase()?1:k!=k.toUpperCase()?2:0;(!b||$==1&&O||w==0&&$!=0)&&(t[h]==S||n[h]==S&&(f=!0)?a[h++]=b:a.length&&(y=!1)),w=$,b+=or(S)}return h==c&&a[0]==0&&y?this.result(-100+(f?-200:0),a,e):p==c&&m==0?this.ret(-200-e.length+(g==e.length?0:-100),[0,g]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==c?this.ret(-900-e.length,[m,g]):h==c?this.result(-100+(f?-200:0)+-700+(y?0:-1100),a,e):t.length==2?!1:this.result((o[0]?-700:0)+-200+-1100,o,e)}result(e,t,n){let o=[],s=0;for(let a of t){let l=a+(this.astral?or(dt(n,a)):1);s&&o[s-1]==a?o[s-1]=l:(o[s++]=a,o[s++]=l)}return this.ret(e-n.length,o)}}const st=ee.define({combine(r){return vc(r,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:m_,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>Vg(e(n),t(n)),optionClass:(e,t)=>n=>Vg(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})}});function Vg(r,e){return r?e?r+" "+e:r:e}function m_(r,e,t,n,o,s){let a=r.textDirection==Fe.RTL,l=a,c=!1,d="top",u,h,f=e.left-o.left,p=o.right-e.right,m=n.right-n.left,g=n.bottom-n.top;if(l&&f<Math.min(m,p)?l=!1:!l&&p<Math.min(m,f)&&(l=!0),m<=(l?f:p))u=Math.max(o.top,Math.min(t.top,o.bottom-g))-e.top,h=Math.min(400,l?f:p);else{c=!0,h=Math.min(400,(a?e.right:o.right-e.left)-30);let b=o.bottom-e.bottom;b>=g||b>e.top?u=t.bottom-e.top:(d="bottom",u=e.bottom-t.top)}let O=(e.bottom-e.top)/s.offsetHeight,y=(e.right-e.left)/s.offsetWidth;return{style:`${d}: ${u/O}px; max-width: ${h/y}px`,class:"cm-completionInfo-"+(c?a?"left-narrow":"right-narrow":l?"left":"right")}}function g_(r){let e=r.addToOptions.slice();return r.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(o=>"cm-completionIcon-"+o)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,o,s){let a=document.createElement("span");a.className="cm-completionLabel";let l=t.displayLabel||t.label,c=0;for(let d=0;d<s.length;){let u=s[d++],h=s[d++];u>c&&a.appendChild(document.createTextNode(l.slice(c,u)));let f=a.appendChild(document.createElement("span"));f.appendChild(document.createTextNode(l.slice(u,h))),f.className="cm-completionMatchedText",c=h}return c<l.length&&a.appendChild(document.createTextNode(l.slice(c))),a},position:50},{render(t){if(!t.detail)return null;let n=document.createElement("span");return n.className="cm-completionDetail",n.textContent=t.detail,n},position:80}),e.sort((t,n)=>t.position-n.position).map(t=>t.render)}function Ed(r,e,t){if(r<=t)return{from:0,to:r};if(e<0&&(e=0),e<=r>>1){let o=Math.floor(e/t);return{from:o*t,to:(o+1)*t}}let n=Math.floor((r-e)/t);return{from:r-(n+1)*t,to:r-n*t}}class O_{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let o=e.state.field(t),{options:s,selected:a}=o.open,l=e.state.facet(st);this.optionContent=g_(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Ed(s.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:d}=e.state.field(t).open;for(let u=c.target,h;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(h=/-(\d+)$/.exec(u.id))&&+h[1]<d.length){this.applyCompletion(e,d[+h[1]]),c.preventDefault();return}}),this.dom.addEventListener("focusout",c=>{let d=e.state.field(this.stateField,!1);d&&d.tooltip&&e.state.facet(st).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:ji.of(null)})}),this.showOptions(s,o.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),o=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=o){let{options:s,selected:a,disabled:l}=n.open;(!o.open||o.open.options!=s)&&(this.range=Ed(s.length,a,e.state.facet(st).maxRenderedOptions),this.showOptions(s,n.id)),this.updateSel(),l!=((t=o.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Ed(t.options.length,t.selected,this.view.state.facet(st).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:o}=n;if(!o)return;let s=typeof o=="string"?document.createTextNode(o):o(n);if(!s)return;"then"in s?s.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,n)}).catch(a=>lr(this.view.state,a,"completion info")):this.addInfoPane(s,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:o,destroy:s}=e;n.appendChild(o),this.infoDestroy=s||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,o=this.range.from;n;n=n.nextSibling,o++)n.nodeName!="LI"||!n.id?o--:o==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&b_(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),o=e.getBoundingClientRect(),s=this.space;if(!s){let a=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return o.top>Math.min(s.bottom,t.bottom)-10||o.bottom<Math.max(s.top,t.top)+10?null:this.view.state.facet(st).positionInfo(this.view,t,o,n,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const o=document.createElement("ul");o.id=t,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions"));let s=null;for(let a=n.from;a<n.to;a++){let{completion:l,match:c}=e[a],{section:d}=l;if(d){let f=typeof d=="string"?d:d.name;if(f!=s&&(a>n.from||n.from==0))if(s=f,typeof d!="string"&&d.header)o.appendChild(d.header(d));else{let p=o.appendChild(document.createElement("completion-section"));p.textContent=f}}const u=o.appendChild(document.createElement("li"));u.id=t+"-"+a,u.setAttribute("role","option");let h=this.optionClass(l);h&&(u.className=h);for(let f of this.optionContent){let p=f(l,this.view.state,this.view,c);p&&u.appendChild(p)}}return n.from&&o.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&o.classList.add("cm-completionListIncompleteBottom"),o}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function y_(r,e){return t=>new O_(t,r,e)}function b_(r,e){let t=r.getBoundingClientRect(),n=e.getBoundingClientRect(),o=t.height/r.offsetHeight;n.top<t.top?r.scrollTop-=(t.top-n.top)/o:n.bottom>t.bottom&&(r.scrollTop+=(n.bottom-t.bottom)/o)}function Rg(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function v_(r,e){let t=[],n=null,o=c=>{t.push(c);let{section:d}=c.completion;if(d){n||(n=[]);let u=typeof d=="string"?d:d.name;n.some(h=>h.name==u)||n.push(typeof d=="string"?{name:u}:d)}};for(let c of r)if(c.hasResult()){let d=c.result.getMatch;if(c.result.filter===!1)for(let u of c.result.options)o(new Ng(u,c.source,d?d(u):[],1e9-t.length));else{let u=new p_(e.sliceDoc(c.from,c.to));for(let h of c.result.options)if(u.match(h.label)){let f=h.displayLabel?d?d(h,u.matched):[]:u.matched;o(new Ng(h,c.source,f,u.score+(h.boost||0)))}}}if(n){let c=Object.create(null),d=0,u=(h,f)=>{var p,m;return((p=h.rank)!==null&&p!==void 0?p:1e9)-((m=f.rank)!==null&&m!==void 0?m:1e9)||(h.name<f.name?-1:1)};for(let h of n.sort(u))d-=1e5,c[h.name]=d;for(let h of t){let{section:f}=h.completion;f&&(h.score+=c[typeof f=="string"?f:f.name])}}let s=[],a=null,l=e.facet(st).compareCompletions;for(let c of t.sort((d,u)=>u.score-d.score||l(d.completion,u.completion))){let d=c.completion;!a||a.label!=d.label||a.detail!=d.detail||a.type!=null&&d.type!=null&&a.type!=d.type||a.apply!=d.apply||a.boost!=d.boost?s.push(c):Rg(c.completion)>Rg(a)&&(s[s.length-1]=c),a=c.completion}return s}class Io{constructor(e,t,n,o,s,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=o,this.selected=s,this.disabled=a}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Io(this.options,Bg(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,o,s){let a=v_(e,t);if(!a.length)return o&&e.some(c=>c.state==1)?new Io(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let l=t.facet(st).selectOnOpen?0:-1;if(o&&o.selected!=l&&o.selected!=-1){let c=o.options[o.selected].completion;for(let d=0;d<a.length;d++)if(a[d].completion==c){l=d;break}}return new Io(a,Bg(n,l),{pos:e.reduce((c,d)=>d.hasResult()?Math.min(c,d.from):c,1e8),create:P_,above:s.aboveCursor},o?o.timestamp:Date.now(),l,!1)}map(e){return new Io(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class jl{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new jl(S_,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,n=t.facet(st),s=(n.override||t.languageDataAt("autocomplete",wn(t)).map(f_)).map(l=>(this.active.find(d=>d.source==l)||new xt(l,this.active.some(d=>d.state!=0)?1:0)).update(e,n));s.length==this.active.length&&s.every((l,c)=>l==this.active[c])&&(s=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||s.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!w_(s,this.active)?a=Io.build(s,t,this.id,a,n):a&&a.disabled&&!s.some(l=>l.state==1)&&(a=null),!a&&s.every(l=>l.state!=1)&&s.some(l=>l.hasResult())&&(s=s.map(l=>l.hasResult()?new xt(l.source,0):l));for(let l of e.effects)l.is(Bb)&&(a=a&&a.setSelected(l.value,this.id));return s==this.active&&a==this.open?this:new jl(s,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:k_}}function w_(r,e){if(r==e)return!0;for(let t=0,n=0;;){for(;t<r.length&&!r[t].hasResult;)t++;for(;n<e.length&&!e[n].hasResult;)n++;let o=t==r.length,s=n==e.length;if(o||s)return o==s;if(r[t++].result!=e[n++].result)return!1}}const k_={"aria-autocomplete":"list"};function Bg(r,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":r};return e>-1&&(t["aria-activedescendant"]=r+"-"+e),t}const S_=[];function Ku(r){return r.isUserEvent("input.type")?"input":r.isUserEvent("delete.backward")?"delete":null}class xt{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=Ku(e),o=this;n?o=o.handleUserEvent(e,n,t):e.docChanged?o=o.handleChange(e):e.selection&&o.state!=0&&(o=new xt(o.source,0));for(let s of e.effects)if(s.is(Il))o=new xt(o.source,1,s.value?wn(e.state):-1);else if(s.is(ji))o=new xt(o.source,0);else if(s.is(Rb))for(let a of s.value)a.source==o.source&&(o=a);return o}handleUserEvent(e,t,n){return t=="delete"||!n.activateOnTyping?this.map(e.changes):new xt(this.source,1)}handleChange(e){return e.changes.touchesRange(wn(e.startState))?new xt(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new xt(this.source,this.state,e.mapPos(this.explicitPos))}}class Go extends xt{constructor(e,t,n,o,s){super(e,2,t),this.result=n,this.from=o,this.to=s}hasResult(){return!0}handleUserEvent(e,t,n){var o;let s=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),l=wn(e.state);if((this.explicitPos<0?l<=s:l<this.from)||l>a||t=="delete"&&wn(e.startState)==this.from)return new xt(this.source,t=="input"&&n.activateOnTyping?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),d;return $_(this.result.validFor,e.state,s,a)?new Go(this.source,c,this.result,s,a):this.result.update&&(d=this.result.update(this.result,s,a,new Eb(e.state,l,c>=0)))?new Go(this.source,c,d,d.from,(o=d.to)!==null&&o!==void 0?o:wn(e.state)):new xt(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new xt(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new Go(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function $_(r,e,t,n){if(!r)return!1;let o=e.sliceDoc(t,n);return typeof r=="function"?r(o,t,n,e):Ab(r,!0).test(o)}const Rb=xe.define({map(r,e){return r.map(t=>t.map(e))}}),Bb=xe.define(),At=fr.define({create(){return jl.start()},update(r,e){return r.update(e)},provide:r=>[lb.from(r,e=>e.tooltip),re.contentAttributes.from(r,e=>e.attrs)]});function Zb(r,e){const t=e.completion.apply||e.completion.label;let n=r.state.field(At).active.find(o=>o.source==e.source);return n instanceof Go?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},h_(r.state,t,n.from,n.to)),{annotations:Vb.of(e.completion)})):t(r,e.completion,n.from,n.to),!0):!1}const P_=y_(At,Zb);function Wa(r,e="option"){return t=>{let n=t.state.field(At,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<t.state.facet(st).interactionDelay)return!1;let o=1,s;e=="page"&&(s=cb(t,n.open.tooltip))&&(o=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:a}=n.open.options,l=n.open.selected>-1?n.open.selected+o*(r?1:-1):r?0:a-1;return l<0?l=e=="page"?0:a-1:l>=a&&(l=e=="page"?a-1:0),t.dispatch({effects:Bb.of(l)}),!0}}const x_=r=>{let e=r.state.field(At,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<r.state.facet(st).interactionDelay?!1:Zb(r,e.open.options[e.open.selected])},__=r=>r.state.field(At,!1)?(r.dispatch({effects:Il.of(!0)}),!0):!1,C_=r=>{let e=r.state.field(At,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:ji.of(null)}),!0)};class T_{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const Q_=50,E_=1e3,N_=Ht.fromClass(class{constructor(r){this.view=r,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of r.state.field(At).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(At);if(!r.selectionSet&&!r.docChanged&&r.startState.field(At)==e)return;let t=r.transactions.some(o=>(o.selection||o.docChanged)&&!Ku(o));for(let o=0;o<this.running.length;o++){let s=this.running[o];if(t||s.updates.length+r.transactions.length>Q_&&Date.now()-s.time>E_){for(let a of s.context.abortListeners)try{a()}catch(l){lr(this.view.state,l)}s.context.abortListeners=null,this.running.splice(o--,1)}else s.updates.push(...r.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),r.transactions.some(o=>o.effects.some(s=>s.is(Il)))&&(this.pendingStart=!0);let n=this.pendingStart?50:r.state.facet(st).activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.state==1&&!this.running.some(s=>s.active.source==o.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let o of r.transactions)Ku(o)=="input"?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:r}=this.view,e=r.field(At);for(let t of e.active)t.state==1&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t)}startQuery(r){let{state:e}=this.view,t=wn(e),n=new Eb(e,t,r.explicitPos==t),o=new T_(r,n);this.running.push(o),Promise.resolve(r.source(n)).then(s=>{o.context.aborted||(o.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:ji.of(null)}),lr(this.view.state,s)})}scheduleAccept(){this.running.every(r=>r.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(st).updateSyncTime))}accept(){var r;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(st);for(let n=0;n<this.running.length;n++){let o=this.running[n];if(o.done===void 0)continue;if(this.running.splice(n--,1),o.done){let a=new Go(o.active.source,o.active.explicitPos,o.done,o.done.from,(r=o.done.to)!==null&&r!==void 0?r:wn(o.updates.length?o.updates[0].startState:this.view.state));for(let l of o.updates)a=a.update(l,t);if(a.hasResult()){e.push(a);continue}}let s=this.view.state.field(At).active.find(a=>a.source==o.active.source);if(s&&s.state==1)if(o.done==null){let a=new xt(o.active.source,0);for(let l of o.updates)a=a.update(l,t);a.state!=1&&e.push(a)}else this.startQuery(s)}e.length&&this.view.dispatch({effects:Rb.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(At,!1);if(e&&e.tooltip&&this.view.state.facet(st).closeOnBlur){let t=e.open&&cb(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:ji.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Il.of(!1)}),20),this.composing=0}}}),Ib=re.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class A_{constructor(e,t,n,o){this.field=e,this.line=t,this.from=n,this.to=o}}class lf{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,ut.TrackDel),n=e.mapPos(this.to,1,ut.TrackDel);return t==null||n==null?null:new lf(this.field,t,n)}}class cf{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],o=[t],s=e.doc.lineAt(t),a=/^\s*/.exec(s.text)[0];for(let c of this.lines){if(n.length){let d=a,u=/^\t*/.exec(c)[0].length;for(let h=0;h<u;h++)d+=e.facet(sf);o.push(t+d.length-u),c=d+c.slice(u)}n.push(c),t+=c.length+1}let l=this.fieldPositions.map(c=>new lf(c.field,o[c.line]+c.from,o[c.line]+c.to));return{text:n,ranges:l}}static parse(e){let t=[],n=[],o=[],s;for(let a of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let l=s[1]?+s[1]:null,c=s[2]||s[3]||"",d=-1;for(let u=0;u<t.length;u++)(l!=null?t[u].seq==l:c&&t[u].name==c)&&(d=u);if(d<0){let u=0;for(;u<t.length&&(l==null||t[u].seq!=null&&t[u].seq<l);)u++;t.splice(u,0,{seq:l,name:c}),d=u;for(let h of o)h.field>=d&&h.field++}o.push(new A_(d,n.length,s.index,s.index+c.length)),a=a.slice(0,s.index)+c+a.slice(s.index+s[0].length)}for(let l;l=/\\([{}])/.exec(a);){a=a.slice(0,l.index)+l[1]+a.slice(l.index+l[0].length);for(let c of o)c.line==n.length&&c.from>l.index&&(c.from--,c.to--)}n.push(a)}return new cf(n,o)}}let V_=Se.widget({widget:new class extends Os{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),R_=Se.mark({class:"cm-snippetField"});class vs{constructor(e,t){this.ranges=e,this.active=t,this.deco=Se.set(e.map(n=>(n.from==n.to?V_:R_).range(n.from,n.to)))}map(e){let t=[];for(let n of this.ranges){let o=n.map(e);if(!o)return null;t.push(o)}return new vs(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const sa=xe.define({map(r,e){return r&&r.map(e)}}),B_=xe.define(),Di=fr.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(sa))return t.value;if(t.is(B_)&&r)return new vs(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>re.decorations.from(r,e=>e?e.deco:Se.none)});function df(r,e){return U.create(r.filter(t=>t.field==e).map(t=>U.range(t.from,t.to)))}function Z_(r){let e=cf.parse(r);return(t,n,o,s)=>{let{text:a,ranges:l}=e.instantiate(t.state,o),c={changes:{from:o,to:s,insert:ke.of(a)},scrollIntoView:!0,annotations:n?[Vb.of(n),it.userEvent.of("input.complete")]:void 0};if(l.length&&(c.selection=df(l,0)),l.some(d=>d.field>0)){let d=new vs(l,0),u=c.effects=[sa.of(d)];t.state.field(Di,!1)===void 0&&u.push(xe.appendConfig.of([Di,M_,X_,Ib]))}t.dispatch(t.state.update(c))}}function jb(r){return({state:e,dispatch:t})=>{let n=e.field(Di,!1);if(!n||r<0&&n.active==0)return!1;let o=n.active+r,s=r>0&&!n.ranges.some(a=>a.field==o+r);return t(e.update({selection:df(n.ranges,o),effects:sa.of(s?null:new vs(n.ranges,o)),scrollIntoView:!0})),!0}}const I_=({state:r,dispatch:e})=>r.field(Di,!1)?(e(r.update({effects:sa.of(null)})),!0):!1,j_=jb(1),D_=jb(-1),q_=[{key:"Tab",run:j_,shift:D_},{key:"Escape",run:I_}],Zg=ee.define({combine(r){return r.length?r[0]:q_}}),M_=Ji.highest(Bi.compute([Zg],r=>r.facet(Zg)));function $t(r,e){return Object.assign(Object.assign({},e),{apply:Z_(r)})}const X_=re.domEventHandlers({mousedown(r,e){let t=e.state.field(Di,!1),n;if(!t||(n=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let o=t.ranges.find(s=>s.from<=n&&s.to>=n);return!o||o.field==t.active?!1:(e.dispatch({selection:df(t.ranges,o.field),effects:sa.of(t.ranges.some(s=>s.field>o.field)?new vs(t.ranges,o.field):null),scrollIntoView:!0}),!0)}}),qi={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},eo=xe.define({map(r,e){let t=e.mapPos(r,-1,ut.TrackAfter);return t??void 0}}),uf=new class extends uo{};uf.startSide=1;uf.endSide=-1;const Db=fr.define({create(){return ve.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:n=>n>=t.from&&n<=t.to})}for(let t of e.effects)t.is(eo)&&(r=r.update({add:[uf.range(t.value,t.value+1)]}));return r}});function W_(){return[U_,Db]}const Nd="()[]{}<>";function qb(r){for(let e=0;e<Nd.length;e+=2)if(Nd.charCodeAt(e)==r)return Nd.charAt(e+1);return K0(r<128?r:r+1)}function Mb(r,e){return r.languageDataAt("closeBrackets",e)[0]||qi}const z_=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),U_=re.inputHandler.of((r,e,t,n)=>{if((z_?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let o=r.state.selection.main;if(n.length>2||n.length==2&&or(dt(n,0))==1||e!=o.from||t!=o.to)return!1;let s=F_(r.state,n);return s?(r.dispatch(s),!0):!1}),Y_=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let n=Mb(r,r.selection.main.head).brackets||qi.brackets,o=null,s=r.changeByRange(a=>{if(a.empty){let l=H_(r.doc,a.head);for(let c of n)if(c==l&&$c(r.doc,a.head)==qb(dt(c,0)))return{changes:{from:a.head-c.length,to:a.head+c.length},range:U.cursor(a.head-c.length)}}return{range:o=a}});return o||e(r.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!o},L_=[{key:"Backspace",run:Y_}];function F_(r,e){let t=Mb(r,r.selection.main.head),n=t.brackets||qi.brackets;for(let o of n){let s=qb(dt(o,0));if(e==o)return s==o?J_(r,o,n.indexOf(o+o+o)>-1,t):G_(r,o,s,t.before||qi.before);if(e==s&&Xb(r,r.selection.main.from))return K_(r,o,s)}return null}function Xb(r,e){let t=!1;return r.field(Db).between(0,r.doc.length,n=>{n==e&&(t=!0)}),t}function $c(r,e){let t=r.sliceString(e,e+2);return t.slice(0,or(dt(t,0)))}function H_(r,e){let t=r.sliceString(e-2,e);return or(dt(t,0))==t.length?t:t.slice(1)}function G_(r,e,t,n){let o=null,s=r.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:t,from:a.to}],effects:eo.of(a.to+e.length),range:U.range(a.anchor+e.length,a.head+e.length)};let l=$c(r.doc,a.head);return!l||/\s/.test(l)||n.indexOf(l)>-1?{changes:{insert:e+t,from:a.head},effects:eo.of(a.head+e.length),range:U.cursor(a.head+e.length)}:{range:o=a}});return o?null:r.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function K_(r,e,t){let n=null,o=r.changeByRange(s=>s.empty&&$c(r.doc,s.head)==t?{changes:{from:s.head,to:s.head+t.length,insert:t},range:U.cursor(s.head+t.length)}:n={range:s});return n?null:r.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function J_(r,e,t,n){let o=n.stringPrefixes||qi.stringPrefixes,s=null,a=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:eo.of(l.to+e.length),range:U.range(l.anchor+e.length,l.head+e.length)};let c=l.head,d=$c(r.doc,c),u;if(d==e){if(Ig(r,c))return{changes:{insert:e+e,from:c},effects:eo.of(c+e.length),range:U.cursor(c+e.length)};if(Xb(r,c)){let f=t&&r.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+f.length,insert:f},range:U.cursor(c+f.length)}}}else{if(t&&r.sliceDoc(c-2*e.length,c)==e+e&&(u=jg(r,c-2*e.length,o))>-1&&Ig(r,u))return{changes:{insert:e+e+e+e,from:c},effects:eo.of(c+e.length),range:U.cursor(c+e.length)};if(r.charCategorizer(c)(d)!=zt.Word&&jg(r,c,o)>-1&&!eC(r,c,e,o))return{changes:{insert:e+e,from:c},effects:eo.of(c+e.length),range:U.cursor(c+e.length)}}return{range:s=l}});return s?null:r.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function Ig(r,e){let t=mt(r).resolveInner(e+1);return t.parent&&t.from==e}function eC(r,e,t,n){let o=mt(r).resolveInner(e,-1),s=n.reduce((a,l)=>Math.max(a,l.length),0);for(let a=0;a<5;a++){let l=r.sliceDoc(o.from,Math.min(o.to,o.from+t.length+s)),c=l.indexOf(t);if(!c||c>-1&&n.indexOf(l.slice(0,c))>-1){let u=o.firstChild;for(;u&&u.from==o.from&&u.to-u.from>t.length+c;){if(r.sliceDoc(u.to-t.length,u.to)==t)return!1;u=u.firstChild}return!0}let d=o.to==e&&o.parent;if(!d)break;o=d}return!1}function jg(r,e,t){let n=r.charCategorizer(e);if(n(r.sliceDoc(e-1,e))!=zt.Word)return e;for(let o of t){let s=e-o.length;if(r.sliceDoc(s,e)==o&&n(r.sliceDoc(s-1,s))!=zt.Word)return s}return-1}function tC(r={}){return[At,st.of(r),N_,rC,Ib]}const Wb=[{key:"Ctrl-Space",run:__},{key:"Escape",run:C_},{key:"ArrowDown",run:Wa(!0)},{key:"ArrowUp",run:Wa(!1)},{key:"PageDown",run:Wa(!0,"page")},{key:"PageUp",run:Wa(!1,"page")},{key:"Enter",run:x_}],rC=Ji.highest(Bi.computeN([st],r=>r.facet(st).defaultKeymap?[Wb]:[]));class Dl{constructor(e,t,n,o,s,a,l,c,d,u=0,h){this.p=e,this.stack=t,this.state=n,this.reducePos=o,this.pos=s,this.score=a,this.buffer=l,this.bufferBase=c,this.curContext=d,this.lookAhead=u,this.parent=h}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let o=e.parser.context;return new Dl(e,[],t,n,n,0,[],0,o?new Dg(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,o=e&65535,{parser:s}=this.p,a=s.dynamicPrecedence(o);if(a&&(this.score+=a),n==0){this.pushState(s.getGoto(this.state,o,!0),this.reducePos),o<s.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,4,!0),this.reduceContext(o,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,d=this.reducePos-c;d>=2e3&&!(!((t=this.p.parser.nodeSet.types[o])===null||t===void 0)&&t.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSize<d&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=d));let u=l?this.stack[l-1]:0,h=this.bufferBase+this.buffer.length-u;if(o<s.minRepeatTerm||e&131072){let f=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,c,f,h+4,!0)}if(e&262144)this.state=this.stack[l];else{let f=this.stack[l-3];this.state=s.getGoto(f,o,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(o,c)}storeNode(e,t,n,o=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let a=this,l=this.buffer.length;if(l==0&&a.parent&&(l=a.bufferBase-a.parent.bufferBase,a=a.parent),l>0&&a.buffer[l-4]==0&&a.buffer[l-1]>-1){if(t==n)return;if(a.buffer[l-2]>=t){a.buffer[l-2]=n;return}}}if(!s||this.pos==n)this.buffer.push(e,t,n,o);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>n;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,o>4&&(o-=4);this.buffer[a]=e,this.buffer[a+1]=t,this.buffer[a+2]=n,this.buffer[a+3]=o}}shift(e,t,n,o){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=o,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,o,4);else{let s=e,{parser:a}=this.p;(o>this.pos||t<=a.maxNode)&&(this.pos=o,a.stateFlag(s,1)||(this.reducePos=o)),this.pushState(s,n),this.shiftContext(t,n),t<=a.maxNode&&this.buffer.push(t,n,o,4)}}apply(e,t,n,o){e&65536?this.reduce(e):this.shift(e,t,n,o)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let o=this.pos;this.reducePos=this.pos=o+e.length,this.pushState(t,o),this.buffer.push(n,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),o=e.bufferBase+t;for(;e&&o==e.bufferBase;)e=e.parent;return new Dl(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,o,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new nC(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let o=[];for(let s=0,a;s<t.length;s+=2)(a=t[s+1])!=this.state&&this.p.parser.hasAction(a,e)&&o.push(t[s],a);if(this.stack.length<120)for(let s=0;o.length<8&&s<t.length;s+=2){let a=t[s+1];o.some((l,c)=>c&1&&l==a)||o.push(t[s],a)}t=o}let n=[];for(let o=0;o<t.length&&n.length<4;o+=2){let s=t[o+1];if(s==this.state)continue;let a=this.split();a.pushState(s,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(t[o],this.pos),a.reducePos=this.pos,a.score-=200,n.push(a)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,o=t&65535,s=this.stack.length-n*3;if(s<0||e.getGoto(this.stack[s],o,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;t=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(o,s)=>{if(!t.includes(o))return t.push(o),e.allActions(o,a=>{if(!(a&393216))if(a&65536){let l=(a>>19)-s;if(l>1){let c=a&65535,d=this.stack.length-l*3;if(d>=0&&e.getGoto(this.stack[d],c,!1)>=0)return l<<19|65536|c}}else{let l=n(a,s+1);if(l!=null)return l}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Dg(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Dg{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class nC{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=o}}class ql{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new ql(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new ql(this.stack,this.pos,this.index)}}function ui(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let n=0,o=0;n<r.length;){let s=0;for(;;){let a=r.charCodeAt(n++),l=!1;if(a==126){s=65535;break}a>=92&&a--,a>=34&&a--;let c=a-32;if(c>=46&&(c-=46,l=!0),s+=c,l)break;s*=46}t?t[o++]=s:t=new e(s)}return t}class fl{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const qg=new fl;class oC{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=qg,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,o=this.rangeIndex,s=this.pos+e;for(;s<n.from;){if(!o)return null;let a=this.ranges[--o];s-=n.from-a.to,n=a}for(;t<0?s>n.to:s>=n.to;){if(o==this.ranges.length-1)return null;let a=this.ranges[++o];s+=a.from-n.to,n=a}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,o;if(t>=0&&t<this.chunk.length)n=this.pos+e,o=this.chunk.charCodeAt(t);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(n=s,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let a=this.rangeIndex,l=this.range;for(;l.to<=n;)l=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-n)),o=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),o}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=qg,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let o of this.ranges){if(o.from>=t)break;o.to>e&&(n+=this.input.read(Math.max(o.from,e),Math.min(o.to,t)))}return n}}class Ko{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;zb(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}Ko.prototype.contextual=Ko.prototype.fallback=Ko.prototype.extend=!1;class Ml{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?ui(e):e}token(e,t){let n=e.pos,o=0;for(;;){let s=e.next<0,a=e.resolveOffset(1,1);if(zb(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||o++,a==null)break;e.reset(a,e.token)}o&&(e.reset(n,e.token),e.acceptToken(this.elseToken,o))}}Ml.prototype.contextual=Ko.prototype.fallback=Ko.prototype.extend=!1;class wt{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function zb(r,e,t,n,o,s){let a=0,l=1<<n,{dialect:c}=t.p.parser;e:for(;l&r[a];){let d=r[a+1];for(let p=a+3;p<d;p+=2)if((r[p+1]&l)>0){let m=r[p];if(c.allows(m)&&(e.token.value==-1||e.token.value==m||sC(m,e.token.value,o,s))){e.acceptToken(m);break}}let u=e.next,h=0,f=r[a+2];if(e.next<0&&f>h&&r[d+f*3-3]==65535){a=r[d+f*3-1];continue e}for(;h<f;){let p=h+f>>1,m=d+p+(p<<1),g=r[m],O=r[m+1]||65536;if(u<g)f=p;else if(u>=O)h=p+1;else{a=r[m+2],e.advance();continue e}}break}}function Mg(r,e,t){for(let n=e,o;(o=r[n])!=65535;n++)if(o==t)return n-e;return-1}function sC(r,e,t,n){let o=Mg(t,n,e);return o<0||Mg(t,n,r)<o}const Qt=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let Ad=null;function Xg(r,e,t){let n=r.cursor(Te.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(r.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:r.length}}class iC{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Xg(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Xg(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],o=this.index[t];if(o==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[o],a=this.start[t]+n.positions[o];if(a>e)return this.nextStart=a,null;if(s instanceof je){if(a==e){if(a<this.safeFrom)return null;let l=a+s.length;if(l<=this.safeTo){let c=s.prop(pe.lookAhead);if(!c||l+c<this.fragment.to)return s}}this.index[t]++,a+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+s.length}}}class aC{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new fl)}getActions(e){let t=0,n=null,{parser:o}=e.p,{tokenizers:s}=o,a=o.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,c=0;for(let d=0;d<s.length;d++){if(!(1<<d&a))continue;let u=s[d],h=this.tokens[d];if(!(n&&!u.fallback)&&((u.contextual||h.start!=e.pos||h.mask!=a||h.context!=l)&&(this.updateCachedToken(h,u,e),h.mask=a,h.context=l),h.lookAhead>h.end+25&&(c=Math.max(h.lookAhead,c)),h.value!=0)){let f=t;if(h.extended>-1&&(t=this.addActions(e,h.extended,h.end,t)),t=this.addActions(e,h.value,h.end,t),!u.extend&&(n=h,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return c&&e.setLookAhead(c),!n&&e.pos==this.stream.end&&(n=new fl,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new fl,{pos:n,p:o}=e;return t.start=n,t.end=Math.min(n+1,o.stream.end),t.value=n==o.stream.end?o.parser.eofTerm:0,t}updateCachedToken(e,t,n){let o=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(o,e),n),e.value>-1){let{parser:s}=n.p;for(let a=0;a<s.specialized.length;a++)if(s.specialized[a]==e.value){let l=s.specializers[a](this.stream.read(e.start,e.end),n);if(l>=0&&n.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(o+1)}putAction(e,t,n,o){for(let s=0;s<o;s+=3)if(this.actions[s]==e)return o;return this.actions[o++]=e,this.actions[o++]=t,this.actions[o++]=n,o}addActions(e,t,n,o){let{state:s}=e,{parser:a}=e.p,{data:l}=a;for(let c=0;c<2;c++)for(let d=a.stateSlot(s,c?2:1);;d+=3){if(l[d]==65535)if(l[d+1]==1)d=jr(l,d+2);else{o==0&&l[d+1]==2&&(o=this.putAction(jr(l,d+2),t,n,o));break}l[d]==t&&(o=this.putAction(jr(l,d+1),t,n,o))}return o}}class lC{constructor(e,t,n,o){this.parser=e,this.input=t,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new oC(t,o),this.tokens=new aC(e,this.stream),this.topTerm=e.top[1];let{from:s}=o[0];this.stacks=[Dl.start(this,e.top[0],s)],this.fragments=n.length&&this.stream.end-s>e.bufferLength*4?new iC(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],o,s;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let l=e[a];for(;;){if(this.tokens.mainToken=null,l.pos>t)n.push(l);else{if(this.advanceStack(l,n,e))continue;{o||(o=[],s=[]),o.push(l);let c=this.tokens.getMainToken(l);s.push(c.value,c.end)}}break}}if(!n.length){let a=o&&dC(o);if(a)return Qt&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Qt&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&o){let a=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,s,n);if(a)return Qt&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(n.length>a)for(n.sort((l,c)=>c.score-l.score);n.length>a;)n.pop();n.some(l=>l.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let a=0;a<n.length-1;a++){let l=n[a];for(let c=a+1;c<n.length;c++){let d=n[c];if(l.sameState(d)||l.buffer.length>500&&d.buffer.length>500)if((l.score-d.score||l.buffer.length-d.buffer.length)>0)n.splice(c--,1);else{n.splice(a--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let a=1;a<n.length;a++)n[a].pos<this.minStackPos&&(this.minStackPos=n[a].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let o=e.pos,{parser:s}=this,a=Qt?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let d=e.curContext&&e.curContext.tracker.strict,u=d?e.curContext.hash:0;for(let h=this.fragments.nodeAt(o);h;){let f=this.parser.nodeSet.types[h.type.id]==h.type?s.getGoto(e.state,h.type.id):-1;if(f>-1&&h.length&&(!d||(h.prop(pe.contextHash)||0)==u))return e.useNode(h,f),Qt&&console.log(a+this.stackID(e)+` (via reuse of ${s.getName(h.type.id)})`),!0;if(!(h instanceof je)||h.children.length==0||h.positions[0]>0)break;let p=h.children[0];if(p instanceof je&&h.positions[0]==0)h=p;else break}}let l=s.stateSlot(e.state,4);if(l>0)return e.reduce(l),Qt&&console.log(a+this.stackID(e)+` (via always-reduce ${s.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let d=0;d<c.length;){let u=c[d++],h=c[d++],f=c[d++],p=d==c.length||!n,m=p?e:e.split(),g=this.tokens.mainToken;if(m.apply(u,h,g?g.start:m.pos,f),Qt&&console.log(a+this.stackID(m)+` (via ${u&65536?`reduce of ${s.getName(u&65535)}`:"shift"} for ${s.getName(h)} @ ${o}${m==e?"":", split"})`),p)return!0;m.pos>o?t.push(m):n.push(m)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return Wg(e,t),!0}}runRecovery(e,t,n){let o=null,s=!1;for(let a=0;a<e.length;a++){let l=e[a],c=t[a<<1],d=t[(a<<1)+1],u=Qt?this.stackID(l)+" -> ":"";if(l.deadEnd&&(s||(s=!0,l.restart(),Qt&&console.log(u+this.stackID(l)+" (restarted)"),this.advanceFully(l,n))))continue;let h=l.split(),f=u;for(let p=0;h.forceReduce()&&p<10&&(Qt&&console.log(f+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,n));p++)Qt&&(f=this.stackID(h)+" -> ");for(let p of l.recoverByInsert(c))Qt&&console.log(u+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,n);this.stream.end>l.pos?(d==l.pos&&(d++,c=0),l.recoverByDelete(c,d),Qt&&console.log(u+this.stackID(l)+` (via recover-delete ${this.parser.getName(c)})`),Wg(l,n)):(!o||o.score<l.score)&&(o=l)}return o}stackToTree(e){return e.close(),je.build({buffer:ql.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Ad||(Ad=new WeakMap)).get(e);return t||Ad.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Wg(r,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==r.pos&&n.sameState(r)){e[t].score<r.score&&(e[t]=r);return}}e.push(r)}class cC{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const Vd=r=>r;class hf{constructor(e){this.start=e.start,this.shift=e.shift||Vd,this.reduce=e.reduce||Vd,this.reuse=e.reuse||Vd,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Tn extends gb{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let n=Object.keys(e.topRules).map(l=>e.topRules[l][1]),o=[];for(let l=0;l<t.length;l++)o.push([]);function s(l,c,d){o[l].push([c,c.deserialize(String(d))])}if(e.nodeProps)for(let l of e.nodeProps){let c=l[0];typeof c=="string"&&(c=pe[c]);for(let d=1;d<l.length;){let u=l[d++];if(u>=0)s(u,c,l[d++]);else{let h=l[d+-u];for(let f=-u;f>0;f--)s(l[d++],c,h);d++}}}this.nodeSet=new ef(t.map((l,c)=>vt.define({name:c>=this.minRepeatTerm?void 0:l,id:c,props:o[c],top:n.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=ub;let a=ui(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(zg),this.states=ui(e.states,Uint32Array),this.data=ui(e.stateData),this.goto=ui(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new Ko(a,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let o=new lC(this,e,t,n);for(let s of this.wrappers)o=s(o,e,t,n);return o}getGoto(e,t,n=!1){let o=this.goto;if(t>=o[0])return-1;for(let s=o[t+1];;){let a=o[s++],l=a&1,c=o[s++];if(l&&n)return c;for(let d=s+(a>>1);s<d;s++)if(o[s]==e)return c;if(l)return-1}}hasAction(e,t){let n=this.data;for(let o=0;o<2;o++)for(let s=this.stateSlot(e,o?2:1),a;;s+=3){if((a=n[s])==65535)if(n[s+1]==1)a=n[s=jr(n,s+2)];else{if(n[s+1]==2)return jr(n,s+2);break}if(a==t||a==0)return jr(n,s+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),o=n?t(n):void 0;for(let s=this.stateSlot(e,1);o==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=jr(this.data,s+2);else break;o=t(jr(this.data,s+1))}return o}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=jr(this.data,n+2);else break;if(!(this.data[n+2]&1)){let o=this.data[n+1];t.some((s,a)=>a&1&&s==o)||t.push(this.data[n],o)}}return t}configure(e){let t=Object.assign(Object.create(Tn.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let o=e.tokenizers.find(s=>s.from==n);return o?o.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,o)=>{let s=e.specializers.find(l=>l.from==n.external);if(!s)return n;let a=Object.assign(Object.assign({},n),{external:s.to});return t.specializers[o]=zg(a),a})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let s of e.split(" ")){let a=t.indexOf(s);a>=0&&(n[a]=!0)}let o=null;for(let s=0;s<t.length;s++)if(!n[s])for(let a=this.dialects[t[s]],l;(l=this.data[a++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[l]=1;return new cC(e,n,o)}static deserialize(e){return new Tn(e)}}function jr(r,e){return r[e]|r[e+1]<<16}function dC(r){let e=null;for(let t of r){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function zg(r){if(r.external){let e=r.extend?1:0;return(t,n)=>r.external(t,n)<<1|e}return r.get}const uC=99,Ug=1,hC=100,fC=101,Yg=2,Ub=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],pC=58,mC=40,Yb=95,gC=91,pl=45,OC=46,yC=35,bC=37,vC=38,wC=92,kC=10;function Mi(r){return r>=65&&r<=90||r>=97&&r<=122||r>=161}function Lb(r){return r>=48&&r<=57}const SC=new wt((r,e)=>{for(let t=!1,n=0,o=0;;o++){let{next:s}=r;if(Mi(s)||s==pl||s==Yb||t&&Lb(s))!t&&(s!=pl||o>0)&&(t=!0),n===o&&s==pl&&n++,r.advance();else if(s==wC&&r.peek(1)!=kC)r.advance(),r.next>-1&&r.advance(),t=!0;else{t&&r.acceptToken(s==mC?hC:n==2&&e.canShift(Yg)?Yg:fC);break}}}),$C=new wt(r=>{if(Ub.includes(r.peek(-1))){let{next:e}=r;(Mi(e)||e==Yb||e==yC||e==OC||e==gC||e==pC&&Mi(r.peek(1))||e==pl||e==vC)&&r.acceptToken(uC)}}),PC=new wt(r=>{if(!Ub.includes(r.peek(-1))){let{next:e}=r;if(e==bC&&(r.advance(),r.acceptToken(Ug)),Mi(e)){do r.advance();while(Mi(r.next)||Lb(r.next));r.acceptToken(Ug)}}}),xC=ys({"AtKeyword import charset namespace keyframes media supports":_.definitionKeyword,"from to selector":_.keyword,NamespaceName:_.namespace,KeyframeName:_.labelName,KeyframeRangeName:_.operatorKeyword,TagName:_.tagName,ClassName:_.className,PseudoClassName:_.constant(_.className),IdName:_.labelName,"FeatureName PropertyName":_.propertyName,AttributeName:_.attributeName,NumberLiteral:_.number,KeywordQuery:_.keyword,UnaryQueryOp:_.operatorKeyword,"CallTag ValueName":_.atom,VariableName:_.variableName,Callee:_.operatorKeyword,Unit:_.unit,"UniversalSelector NestingSelector":_.definitionOperator,MatchOp:_.compareOperator,"ChildOp SiblingOp, LogicOp":_.logicOperator,BinOp:_.arithmeticOperator,Important:_.modifier,Comment:_.blockComment,ColorLiteral:_.color,"ParenthesizedContent StringLiteral":_.string,":":_.punctuation,"PseudoOp #":_.derefOperator,"; ,":_.separator,"( )":_.paren,"[ ]":_.squareBracket,"{ }":_.brace}),_C={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},CC={__proto__:null,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,r,x-RRkQ_bOPdhw!n#skYOPdhotuvw!n#R#h#skSOPdhotuvw!n#R#h#sQmTR!tnQ{VR!xqQ!x}Q#Z!XR#x!zq![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SU$d#m$f$yR$x$cq!XZ]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SQ!f^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[xC],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#Z~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#Z~o`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&F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!Rd&&typeof document=="object"&&document.body){let{style:r}=document.body,e=[],t=new Set;for(let n in r)n!="cssText"&&n!="cssFloat"&&typeof r[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),t.has(n)||(e.push(n),t.add(n)));Rd=e.sort().map(n=>({type:"property",label:n}))}return Rd||[]}const Lg=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(r=>({type:"class",label:r})),Fg=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(r=>({type:"keyword",label:r})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(r=>({type:"constant",label:r}))),EC=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(r=>({type:"type",label:r})),tn=/^(\w[\w-]*|-\w[\w-]*|)$/,NC=/^-(-[\w-]*)?$/;function AC(r,e){var t;if((r.name=="("||r.type.isError)&&(r=r.parent||r),r.name!="ArgList")return!1;let n=(t=r.parent)===null||t===void 0?void 0:t.firstChild;return(n==null?void 0:n.name)!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}const Hg=new mb,VC=["Declaration"];function RC(r){for(let e=r;;){if(e.type.isTop)return e;if(!(e=e.parent))return r}}function Fb(r,e,t){if(e.to-e.from>4096){let n=Hg.get(e);if(n)return n;let o=[],s=new Set,a=e.cursor(Te.IncludeAnonymous);if(a.firstChild())do for(let l of Fb(r,a.node,t))s.has(l.label)||(s.add(l.label),o.push(l));while(a.nextSibling());return Hg.set(e,o),o}else{let n=[],o=new Set;return e.cursor().iterate(s=>{var a;if(t(s)&&s.matchContext(VC)&&((a=s.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let l=r.sliceString(s.from,s.to);o.has(l)||(o.add(l),n.push({label:l,type:"variable"}))}}),n}}const BC=r=>e=>{let{state:t,pos:n}=e,o=mt(t).resolveInner(n,-1),s=o.type.isError&&o.from==o.to-1&&t.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(s||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:Bd(),validFor:tn};if(o.name=="ValueName")return{from:o.from,options:Fg,validFor:tn};if(o.name=="PseudoClassName")return{from:o.from,options:Lg,validFor:tn};if(r(o)||(e.explicit||s)&&AC(o,t.doc))return{from:r(o)||s?o.from:n,options:Fb(t.doc,RC(o),r),validFor:NC};if(o.name=="TagName"){for(let{parent:c}=o;c;c=c.parent)if(c.name=="Block")return{from:o.from,options:Bd(),validFor:tn};return{from:o.from,options:EC,validFor:tn}}if(!e.explicit)return null;let a=o.resolve(n),l=a.childBefore(n);return l&&l.name==":"&&a.name=="PseudoClassSelector"?{from:n,options:Lg,validFor:tn}:l&&l.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:n,options:Fg,validFor:tn}:a.name=="Block"||a.name=="Styles"?{from:n,options:Bd(),validFor:tn}:null},ZC=BC(r=>r.name=="VariableName"),Xl=Cn.define({name:"css",parser:QC.configure({props:[bs.add({Declaration:Ho()}),na.add({"Block KeyframeList":Sc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Hb(){return new ra(Xl,Xl.data.of({autocomplete:ZC}))}const IC=54,jC=1,DC=55,qC=2,MC=56,XC=3,Gg=4,WC=5,Wl=6,Gb=7,Kb=8,Jb=9,ev=10,zC=11,UC=12,YC=13,Zd=57,LC=14,Kg=58,tv=20,FC=22,rv=23,HC=24,Ju=26,nv=27,GC=28,KC=31,JC=34,e2=36,t2=37,r2=0,n2=1,o2={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},s2={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Jg={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function i2(r){return r==45||r==46||r==58||r>=65&&r<=90||r==95||r>=97&&r<=122||r>=161}function ov(r){return r==9||r==10||r==13||r==32}let eO=null,tO=null,rO=0;function eh(r,e){let t=r.pos+e;if(rO==t&&tO==r)return eO;let n=r.peek(e);for(;ov(n);)n=r.peek(++e);let o="";for(;i2(n);)o+=String.fromCharCode(n),n=r.peek(++e);return tO=r,rO=t,eO=o?o.toLowerCase():n==a2||n==l2?void 0:null}const sv=60,zl=62,ff=47,a2=63,l2=33,c2=45;function nO(r,e){this.name=r,this.parent=e,this.hash=e?e.hash:0;for(let t=0;t<r.length;t++)this.hash+=(this.hash<<4)+r.charCodeAt(t)+(r.charCodeAt(t)<<8)}const d2=[Wl,ev,Gb,Kb,Jb],u2=new hf({start:null,shift(r,e,t,n){return d2.indexOf(e)>-1?new nO(eh(n,1)||"",r):r},reduce(r,e){return e==tv&&r?r.parent:r},reuse(r,e,t,n){let o=e.type.id;return o==Wl||o==e2?new nO(eh(n,1)||"",r):r},hash(r){return r?r.hash:0},strict:!1}),h2=new wt((r,e)=>{if(r.next!=sv){r.next<0&&e.context&&r.acceptToken(Zd);return}r.advance();let t=r.next==ff;t&&r.advance();let n=eh(r,0);if(n===void 0)return;if(!n)return r.acceptToken(t?LC:Wl);let o=e.context?e.context.name:null;if(t){if(n==o)return r.acceptToken(zC);if(o&&s2[o])return r.acceptToken(Zd,-2);if(e.dialectEnabled(r2))return r.acceptToken(UC);for(let s=e.context;s;s=s.parent)if(s.name==n)return;r.acceptToken(YC)}else{if(n=="script")return r.acceptToken(Gb);if(n=="style")return r.acceptToken(Kb);if(n=="textarea")return r.acceptToken(Jb);if(o2.hasOwnProperty(n))return r.acceptToken(ev);o&&Jg[o]&&Jg[o][n]?r.acceptToken(Zd,-1):r.acceptToken(Wl)}},{contextual:!0}),f2=new wt(r=>{for(let e=0,t=0;;t++){if(r.next<0){t&&r.acceptToken(Kg);break}if(r.next==c2)e++;else if(r.next==zl&&e>=2){t>=3&&r.acceptToken(Kg,-2);break}else e=0;r.advance()}});function p2(r){for(;r;r=r.parent)if(r.name=="svg"||r.name=="math")return!0;return!1}const m2=new wt((r,e)=>{if(r.next==ff&&r.peek(1)==zl){let t=e.dialectEnabled(n2)||p2(e.context);r.acceptToken(t?WC:Gg,2)}else r.next==zl&&r.acceptToken(Gg,1)});function pf(r,e,t){let n=2+r.length;return new wt(o=>{for(let s=0,a=0,l=0;;l++){if(o.next<0){l&&o.acceptToken(e);break}if(s==0&&o.next==sv||s==1&&o.next==ff||s>=2&&s<n&&o.next==r.charCodeAt(s-2))s++,a++;else if((s==2||s==n)&&ov(o.next))a++;else if(s==n&&o.next==zl){l>a?o.acceptToken(e,-a):o.acceptToken(t,-(a-2));break}else if((o.next==10||o.next==13)&&l){o.acceptToken(e,1);break}else s=a=0;o.advance()}})}const g2=pf("script",IC,jC),O2=pf("style",DC,qC),y2=pf("textarea",MC,XC),b2=ys({"Text RawText":_.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":_.angleBracket,TagName:_.tagName,"MismatchedCloseTag/TagName":[_.tagName,_.invalid],AttributeName:_.attributeName,"AttributeValue UnquotedAttributeValue":_.attributeValue,Is:_.definitionOperator,"EntityReference CharacterReference":_.character,Comment:_.blockComment,ProcessingInst:_.processingInstruction,DoctypeDecl:_.documentMeta}),v2=Tn.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#C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OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:u2,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[b2],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(k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!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[g2,O2,y2,m2,h2,f2,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});function iv(r,e){let t=Object.create(null);for(let n of r.getChildren(rv)){let o=n.getChild(HC),s=n.getChild(Ju)||n.getChild(nv);o&&(t[e.read(o.from,o.to)]=s?s.type.id==Ju?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return t}function oO(r,e){let t=r.getChild(FC);return t?e.read(t.from,t.to):" "}function Id(r,e,t){let n;for(let o of t)if(!o.attrs||o.attrs(n||(n=iv(r.node.parent.firstChild,e))))return{parser:o.parser};return null}function av(r=[],e=[]){let t=[],n=[],o=[],s=[];for(let l of r)(l.tag=="script"?t:l.tag=="style"?n:l.tag=="textarea"?o:s).push(l);let a=e.length?Object.create(null):null;for(let l of e)(a[l.name]||(a[l.name]=[])).push(l);return bx((l,c)=>{let d=l.type.id;if(d==GC)return Id(l,c,t);if(d==KC)return Id(l,c,n);if(d==JC)return Id(l,c,o);if(d==tv&&s.length){let u=l.node,h=u.firstChild,f=h&&oO(h,c),p;if(f){for(let m of s)if(m.tag==f&&(!m.attrs||m.attrs(p||(p=iv(u,c))))){let g=u.lastChild,O=g.type.id==t2?g.from:u.to;if(O>h.to)return{parser:m.parser,overlay:[{from:h.to,to:O}]}}}}if(a&&d==rv){let u=l.node,h;if(h=u.firstChild){let f=a[c.read(h.from,h.to)];if(f)for(let p of f){if(p.tagName&&p.tagName!=oO(u.parent,c))continue;let m=u.lastChild;if(m.type.id==Ju){let g=m.from+1,O=m.lastChild,y=m.to-(O&&O.isError?0:1);if(y>g)return{parser:p.parser,overlay:[{from:g,to:y}]}}else if(m.type.id==nv)return{parser:p.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const w2=309,sO=1,k2=2,S2=3,$2=310,P2=312,x2=313,_2=4,C2=5,T2=0,th=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],lv=125,Q2=59,rh=47,E2=42,N2=43,A2=45,V2=60,R2=44,B2=new hf({start:!1,shift(r,e){return e==_2||e==C2||e==P2?r:e==x2},strict:!1}),Z2=new wt((r,e)=>{let{next:t}=r;(t==lv||t==-1||e.context)&&r.acceptToken($2)},{contextual:!0,fallback:!0}),I2=new wt((r,e)=>{let{next:t}=r,n;th.indexOf(t)>-1||t==rh&&((n=r.peek(1))==rh||n==E2)||t!=lv&&t!=Q2&&t!=-1&&!e.context&&r.acceptToken(w2)},{contextual:!0}),j2=new wt((r,e)=>{let{next:t}=r;if((t==N2||t==A2)&&(r.advance(),t==r.next)){r.advance();let n=!e.context&&e.canShift(sO);r.acceptToken(n?sO:k2)}},{contextual:!0});function jd(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}const D2=new wt((r,e)=>{if(r.next!=V2||!e.dialectEnabled(T2)||(r.advance(),r.next==rh))return;let t=0;for(;th.indexOf(r.next)>-1;)r.advance(),t++;if(jd(r.next,!0)){for(r.advance(),t++;jd(r.next,!1);)r.advance(),t++;for(;th.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==R2)return;for(let n=0;;n++){if(n==7){if(!jd(r.next,!0))return;break}if(r.next!="extends".charCodeAt(n))break;r.advance(),t++}}r.acceptToken(S2,-t)}),q2=ys({"get set async static":_.modifier,"for while do if else switch try catch finally return throw break continue default case":_.controlKeyword,"in of await yield void typeof delete instanceof":_.operatorKeyword,"let var const using function class extends":_.definitionKeyword,"import export from":_.moduleKeyword,"with debugger as new":_.keyword,TemplateString:_.special(_.string),super:_.atom,BooleanLiteral:_.bool,this:_.self,null:_.null,Star:_.modifier,VariableName:_.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":_.function(_.variableName),VariableDefinition:_.definition(_.variableName),Label:_.labelName,PropertyName:_.propertyName,PrivatePropertyName:_.special(_.propertyName),"CallExpression/MemberExpression/PropertyName":_.function(_.propertyName),"FunctionDeclaration/VariableDefinition":_.function(_.definition(_.variableName)),"ClassDeclaration/VariableDefinition":_.definition(_.className),PropertyDefinition:_.definition(_.propertyName),PrivatePropertyDefinition:_.definition(_.special(_.propertyName)),UpdateOp:_.updateOperator,"LineComment Hashbang":_.lineComment,BlockComment:_.blockComment,Number:_.number,String:_.string,Escape:_.escape,ArithOp:_.arithmeticOperator,LogicOp:_.logicOperator,BitOp:_.bitwiseOperator,CompareOp:_.compareOperator,RegExp:_.regexp,Equals:_.definitionOperator,Arrow:_.function(_.punctuation),": Spread":_.punctuation,"( )":_.paren,"[ ]":_.squareBracket,"{ }":_.brace,"InterpolationStart InterpolationEnd":_.special(_.brace),".":_.derefOperator,", ;":_.separator,"@":_.meta,TypeName:_.typeName,TypeDefinition:_.definition(_.typeName),"type enum interface implements namespace module declare":_.definitionKeyword,"abstract global Privacy readonly override":_.modifier,"is keyof unique infer":_.operatorKeyword,JSXAttributeValue:_.attributeValue,JSXText:_.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":_.angleBracket,"JSXIdentifier JSXNameSpacedName":_.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":_.attributeName,"JSXBuiltin/JSXIdentifier":_.standard(_.tagName)}),M2={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},X2={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},W2={__proto__:null,"<":143},z2=Tn.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#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V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:B2,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[q2],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#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uEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[I2,j2,D2,2,3,4,5,6,7,8,9,10,11,12,13,Z2,new Ml("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new Ml("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14614},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:r=>M2[r]||-1},{term:334,get:r=>X2[r]||-1},{term:70,get:r=>W2[r]||-1}],tokenPrec:14638}),cv=[$t("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),$t("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),$t("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),$t("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),$t("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),$t(`try {
|
|
11
|
+
\${}
|
|
12
|
+
} catch (\${error}) {
|
|
13
|
+
\${}
|
|
14
|
+
}`,{label:"try",detail:"/ catch block",type:"keyword"}),$t("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),$t(`if (\${}) {
|
|
15
|
+
\${}
|
|
16
|
+
} else {
|
|
17
|
+
\${}
|
|
18
|
+
}`,{label:"if",detail:"/ else block",type:"keyword"}),$t(`class \${name} {
|
|
19
|
+
constructor(\${params}) {
|
|
20
|
+
\${}
|
|
21
|
+
}
|
|
22
|
+
}`,{label:"class",detail:"definition",type:"keyword"}),$t('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),$t('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],U2=cv.concat([$t("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),$t("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),$t("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),iO=new mb,dv=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ei(r){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,r),!0}}const Y2=["FunctionDeclaration"],L2={FunctionDeclaration:ei("function"),ClassDeclaration:ei("class"),ClassExpression:()=>!0,EnumDeclaration:ei("constant"),TypeAliasDeclaration:ei("type"),NamespaceDeclaration:ei("namespace"),VariableDefinition(r,e){r.matchContext(Y2)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function uv(r,e){let t=iO.get(e);if(t)return t;let n=[],o=!0;function s(a,l){let c=r.sliceString(a.from,a.to);n.push({label:c,type:l})}return e.cursor(Te.IncludeAnonymous).iterate(a=>{if(o)o=!1;else if(a.name){let l=L2[a.name];if(l&&l(a,s)||dv.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of uv(r,a.node))n.push(l);return!1}}),iO.set(e,n),n}const aO=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,hv=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function F2(r){let e=mt(r.state).resolveInner(r.pos,-1);if(hv.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&aO.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let n=[];for(let o=e;o;o=o.parent)dv.has(o.name)&&(n=n.concat(uv(r.state.doc,o)));return{options:n,from:t?e.from:r.pos,validFor:aO}}const Er=Cn.define({name:"javascript",parser:z2.configure({props:[bs.add({IfStatement:Ho({except:/^\s*({|else\b)/}),TryStatement:Ho({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Ux,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:n?1:2)*r.unit},Block:Lu({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":Ho({except:/^{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),na.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Sc,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),fv={test:r=>/^JSX/.test(r.name),facet:vb({commentTokens:{block:{open:"{/*",close:"*/}"}}})},pv=Er.configure({dialect:"ts"},"typescript"),mv=Er.configure({dialect:"jsx",props:[of.add(r=>r.isTop?[fv]:void 0)]}),gv=Er.configure({dialect:"jsx ts",props:[of.add(r=>r.isTop?[fv]:void 0)]},"typescript");let Ov=r=>({label:r,type:"keyword"});const yv="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Ov),H2=yv.concat(["declare","implements","private","protected","public"].map(Ov));function G2(r={}){let e=r.jsx?r.typescript?gv:mv:r.typescript?pv:Er,t=r.typescript?U2.concat(H2):cv.concat(yv);return new ra(e,[Er.data.of({autocomplete:u_(hv,Nb(t))}),Er.data.of({autocomplete:F2}),r.jsx?eT:[]])}function K2(r){for(;;){if(r.name=="JSXOpenTag"||r.name=="JSXSelfClosingTag"||r.name=="JSXFragmentTag")return r;if(r.name=="JSXEscape"||!r.parent)return null;r=r.parent}}function lO(r,e,t=r.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return r.sliceString(n.from,Math.min(n.to,t));return""}const J2=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),eT=re.inputHandler.of((r,e,t,n,o)=>{if((J2?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||n!=">"&&n!="/"||!Er.isActiveAt(r.state,e,-1))return!1;let s=o(),{state:a}=s,l=a.changeByRange(c=>{var d;let{head:u}=c,h=mt(a).resolveInner(u-1,-1),f;if(h.name=="JSXStartTag"&&(h=h.parent),!(a.doc.sliceString(u-1,u)!=n||h.name=="JSXAttributeValue"&&h.to>u)){if(n==">"&&h.name=="JSXFragmentTag")return{range:c,changes:{from:u,insert:"</>"}};if(n=="/"&&h.name=="JSXStartCloseTag"){let p=h.parent,m=p.parent;if(m&&p.from==u-2&&((f=lO(a.doc,m.firstChild,u))||((d=m.firstChild)===null||d===void 0?void 0:d.name)=="JSXFragmentTag")){let g=`${f}>`;return{range:U.cursor(u+g.length,-1),changes:{from:u,insert:g}}}}else if(n==">"){let p=K2(h);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(u,u+2))&&(f=lO(a.doc,p,u)))return{range:c,changes:{from:u,insert:`</${f}>`}}}}return{range:c}});return l.changes.empty?!1:(r.dispatch([s,a.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),ti=["_blank","_self","_top","_parent"],Dd=["ascii","utf-8","utf-16","latin1","latin1"],qd=["get","post","put","delete"],Md=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Et=["true","false"],H={},tT={a:{attrs:{href:null,ping:null,type:null,media:null,target:ti,hreflang:null}},abbr:H,address:H,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:H,aside:H,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:H,base:{attrs:{href:null,target:ti}},bdi:H,bdo:H,blockquote:{attrs:{cite:null}},body:H,br:H,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Md,formmethod:qd,formnovalidate:["novalidate"],formtarget:ti,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:H,center:H,cite:H,code:H,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:H,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:H,div:H,dl:H,dt:H,em:H,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:H,figure:H,footer:H,form:{attrs:{action:null,name:null,"accept-charset":Dd,autocomplete:["on","off"],enctype:Md,method:qd,novalidate:["novalidate"],target:ti}},h1:H,h2:H,h3:H,h4:H,h5:H,h6:H,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:H,hgroup:H,hr:H,html:{attrs:{manifest:null}},i:H,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Md,formmethod:qd,formnovalidate:["novalidate"],formtarget:ti,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:H,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:H,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:H,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Dd,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:H,noscript:H,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:H,param:{attrs:{name:null,value:null}},pre:H,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:H,rt:H,ruby:H,samp:H,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Dd}},section:H,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:H,source:{attrs:{src:null,type:null,media:null}},span:H,strong:H,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:H,summary:H,sup:H,table:H,tbody:H,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:H,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:H,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:H,time:{attrs:{datetime:null}},title:H,tr:H,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:H,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:H},bv={accesskey:null,class:null,contenteditable:Et,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Et,autocorrect:Et,autocapitalize:Et,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Et,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Et,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Et,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Et,"aria-hidden":Et,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Et,"aria-multiselectable":Et,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Et,"aria-relevant":null,"aria-required":Et,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},vv="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(r=>"on"+r);for(let r of vv)bv[r]=null;let Ul=class{constructor(e,t){this.tags=Object.assign(Object.assign({},tT),e),this.globalAttrs=Object.assign(Object.assign({},bv),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Ul.default=new Ul;function cs(r,e,t=r.length){if(!e)return"";let n=e.firstChild,o=n&&n.getChild("TagName");return o?r.sliceString(o.from,Math.min(o.to,t)):""}function ds(r,e=!1){for(;r;r=r.parent)if(r.name=="Element")if(e)e=!1;else return r;return null}function wv(r,e,t){let n=t.tags[cs(r,ds(e))];return(n==null?void 0:n.children)||t.allTags}function mf(r,e){let t=[];for(let n=ds(e);n&&!n.type.isTop;n=ds(n.parent)){let o=cs(r,n);if(o&&n.lastChild.name=="CloseTag")break;o&&t.indexOf(o)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&t.push(o)}return t}const kv=/^[:\-\.\w\u00b7-\uffff]*$/;function cO(r,e,t,n,o){let s=/\s*>/.test(r.sliceDoc(o,o+5))?"":">",a=ds(t,!0);return{from:n,to:o,options:wv(r.doc,a,e).map(l=>({label:l,type:"type"})).concat(mf(r.doc,t).map((l,c)=>({label:"/"+l,apply:"/"+l+s,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function dO(r,e,t,n){let o=/\s*>/.test(r.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:mf(r.doc,e).map((s,a)=>({label:s,apply:s+o,type:"type",boost:99-a})),validFor:kv}}function rT(r,e,t,n){let o=[],s=0;for(let a of wv(r.doc,t,e))o.push({label:"<"+a,type:"type"});for(let a of mf(r.doc,t))o.push({label:"</"+a+">",type:"type",boost:99-s++});return{from:n,to:n,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function nT(r,e,t,n,o){let s=ds(t),a=s?e.tags[cs(r.doc,s)]:null,l=a&&a.attrs?Object.keys(a.attrs):[],c=a&&a.globalAttrs===!1?l:l.length?l.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:o,options:c.map(d=>({label:d,type:"property"})),validFor:kv}}function oT(r,e,t,n,o){var s;let a=(s=t.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),l=[],c;if(a){let d=r.sliceDoc(a.from,a.to),u=e.globalAttrs[d];if(!u){let h=ds(t),f=h?e.tags[cs(r.doc,h)]:null;u=(f==null?void 0:f.attrs)&&f.attrs[d]}if(u){let h=r.sliceDoc(n,o).toLowerCase(),f='"',p='"';/^['"]/.test(h)?(c=h[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",p=r.sliceDoc(o,o+1)==h[0]?"":h[0],h=h.slice(1),n++):c=/^[^\s<>='"]*$/;for(let m of u)l.push({label:m,apply:f+m+p,type:"constant"})}}return{from:n,to:o,options:l,validFor:c}}function sT(r,e){let{state:t,pos:n}=e,o=mt(t).resolveInner(n,-1),s=o.resolve(n);for(let a=n,l;s==o&&(l=o.childBefore(a));){let c=l.lastChild;if(!c||!c.type.isError||c.from<c.to)break;s=o=l,a=c.from}return o.name=="TagName"?o.parent&&/CloseTag$/.test(o.parent.name)?dO(t,o,o.from,n):cO(t,r,o,o.from,n):o.name=="StartTag"?cO(t,r,o,n,n):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?dO(t,o,n,n):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?nT(t,r,o,o.name=="AttributeName"?o.from:n,n):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?oT(t,r,o,o.name=="Is"?n:o.from,n):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?rT(t,r,o,n):null}function iT(r){let{extraTags:e,extraGlobalAttributes:t}=r,n=t||e?new Ul(e,t):Ul.default;return o=>sT(n,o)}const aT=Er.parser.configure({top:"SingleExpression"}),Sv=[{tag:"script",attrs:r=>r.type=="text/typescript"||r.lang=="ts",parser:pv.parser},{tag:"script",attrs:r=>r.type=="text/babel"||r.type=="text/jsx",parser:mv.parser},{tag:"script",attrs:r=>r.type=="text/typescript-jsx",parser:gv.parser},{tag:"script",attrs(r){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(r.type)},parser:aT},{tag:"script",attrs(r){return!r.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(r.type)},parser:Er.parser},{tag:"style",attrs(r){return(!r.lang||r.lang=="css")&&(!r.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(r.type))},parser:Xl.parser}],$v=[{name:"style",parser:Xl.parser.configure({top:"Styles"})}].concat(vv.map(r=>({name:r,parser:Er.parser}))),Pv=Cn.define({name:"html",parser:v2.configure({props:[bs.add({Element(r){let e=/^(\s*)(<\/)?/.exec(r.textAfter);return r.node.to<=r.pos+e[0].length?r.continue():r.lineIndent(r.node.from)+(e[2]?0:r.unit)},"OpenTag CloseTag SelfClosingTag"(r){return r.column(r.node.from)+r.unit},Document(r){if(r.pos+/\s*/.exec(r.textAfter)[0].length<r.node.to)return r.continue();let e=null,t;for(let n=r.node;;){let o=n.lastChild;if(!o||o.name!="Element"||o.to!=n.to)break;e=n=o}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?r.lineIndent(e.from)+r.unit:null}}),na.add({Element(r){let e=r.firstChild,t=r.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:r.to}}}),Qb.add({"OpenTag CloseTag":r=>r.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),ml=Pv.configure({wrap:av(Sv,$v)});function lT(r={}){let e="",t;r.matchClosingTags===!1&&(e="noMatch"),r.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(r.nestedLanguages&&r.nestedLanguages.length||r.nestedAttributes&&r.nestedAttributes.length)&&(t=av((r.nestedLanguages||[]).concat(Sv),(r.nestedAttributes||[]).concat($v)));let n=t?Pv.configure({wrap:t,dialect:e}):e?ml.configure({dialect:e}):ml;return new ra(n,[ml.data.of({autocomplete:iT(r)}),r.autoCloseTags!==!1?cT:[],G2().support,Hb().support])}const uO=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),cT=re.inputHandler.of((r,e,t,n,o)=>{if(r.composing||r.state.readOnly||e!=t||n!=">"&&n!="/"||!ml.isActiveAt(r.state,e,-1))return!1;let s=o(),{state:a}=s,l=a.changeByRange(c=>{var d,u,h;let f=a.doc.sliceString(c.from-1,c.to)==n,{head:p}=c,m=mt(a).resolveInner(p-1,-1),g;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),f&&n==">"&&m.name=="OpenTag"){if(((u=(d=m.parent)===null||d===void 0?void 0:d.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(g=cs(a.doc,m.parent,p))&&!uO.has(g)){let O=p+(a.doc.sliceString(p,p+1)===">"?1:0),y=`</${g}>`;return{range:c,changes:{from:p,to:O,insert:y}}}}else if(f&&n=="/"&&m.name=="IncompleteCloseTag"){let O=m.parent;if(m.from==p-2&&((h=O.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(g=cs(a.doc,O,p))&&!uO.has(g)){let y=p+(a.doc.sliceString(p,p+1)===">"?1:0),b=`${g}>`;return{range:U.cursor(p+b.length,-1),changes:{from:p,to:y,insert:b}}}}return{range:c}});return l.changes.empty?!1:(r.dispatch([s,a.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),dT=ys({String:_.string,Number:_.number,"True False":_.bool,PropertyName:_.propertyName,Null:_.null,",":_.separator,"[ ]":_.squareBracket,"{ }":_.brace}),uT=Tn.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[dT],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),hT=Cn.define({name:"json",parser:uT.configure({props:[bs.add({Object:Ho({except:/^\s*\}/}),Array:Ho({except:/^\s*\]/})}),na.add({"Object Array":Sc})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function fT(){return new ra(hT)}const Ao=63,hO=64,pT=1,mT=2,xv=3,gT=4,_v=5,OT=6,yT=7,Cv=65,bT=66,vT=8,wT=9,kT=10,ST=11,$T=12,Tv=13,PT=19,xT=20,_T=29,CT=33,TT=34,QT=47,ET=0,gf=1,nh=2,Xi=3,oh=4,mc=class mc{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};ud(mc,"top",new mc(null,-1,ET));let Yn=mc;function wi(r,e){for(let t=0,n=e-r.pos-1;;n--,t++){let o=r.peek(n);if(Hr(o)||o==-1)return t}}function sh(r){return r==32||r==9}function Hr(r){return r==10||r==13}function Qv(r){return sh(r)||Hr(r)}function to(r){return r<0||Qv(r)}const NT=new hf({start:Yn.top,reduce(r,e){return r.type==Xi&&(e==xT||e==TT)?r.parent:r},shift(r,e,t,n){if(e==xv)return new Yn(r,wi(n,n.pos),gf);if(e==Cv||e==_v)return new Yn(r,wi(n,n.pos),nh);if(e==Ao)return r.parent;if(e==PT||e==CT)return new Yn(r,0,Xi);if(e==Tv&&r.type==oh)return r.parent;if(e==QT){let o=/[1-9]/.exec(n.read(n.pos,t.pos));if(o)return new Yn(r,r.depth+ +o[0],oh)}return r},hash(r){return r.hash}});function us(r,e,t=0){return r.peek(t)==e&&r.peek(t+1)==e&&r.peek(t+2)==e&&to(r.peek(t+3))}const AT=new wt((r,e)=>{if(r.next==-1&&e.canShift(hO))return r.acceptToken(hO);let t=r.peek(-1);if((Hr(t)||t<0)&&e.context.type!=Xi){if(us(r,45))if(e.canShift(Ao))r.acceptToken(Ao);else return r.acceptToken(pT,3);if(us(r,46))if(e.canShift(Ao))r.acceptToken(Ao);else return r.acceptToken(mT,3);let n=0;for(;r.next==32;)n++,r.advance();(n<e.context.depth||n==e.context.depth&&e.context.type==gf&&(r.next!=45||!to(r.peek(1))))&&r.next!=-1&&!Hr(r.next)&&r.next!=35&&r.acceptToken(Ao,-n)}},{contextual:!0}),VT=new wt((r,e)=>{if(e.context.type==Xi){r.next==63&&(r.advance(),to(r.next)&&r.acceptToken(yT));return}if(r.next==45)r.advance(),to(r.next)&&r.acceptToken(e.context.type==gf&&e.context.depth==wi(r,r.pos-1)?gT:xv);else if(r.next==63)r.advance(),to(r.next)&&r.acceptToken(e.context.type==nh&&e.context.depth==wi(r,r.pos-1)?OT:_v);else{let t=r.pos;for(;;)if(sh(r.next)){if(r.pos==t)return;r.advance()}else if(r.next==33)Ev(r);else if(r.next==38)ih(r);else if(r.next==42){ih(r);break}else if(r.next==39||r.next==34){if(Of(r,!0))break;return}else if(r.next==91||r.next==123){if(!BT(r))return;break}else{Nv(r,!0,!1,0);break}for(;sh(r.next);)r.advance();if(r.next==58){if(r.pos==t&&e.canShift(_T))return;let n=r.peek(1);to(n)&&r.acceptTokenTo(e.context.type==nh&&e.context.depth==wi(r,t)?bT:Cv,t)}}},{contextual:!0});function RT(r){return r>32&&r<127&&r!=34&&r!=37&&r!=44&&r!=60&&r!=62&&r!=92&&r!=94&&r!=96&&r!=123&&r!=124&&r!=125}function fO(r){return r>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70}function pO(r,e){return r.next==37?(r.advance(),fO(r.next)&&r.advance(),fO(r.next)&&r.advance(),!0):RT(r.next)||e&&r.next==44?(r.advance(),!0):!1}function Ev(r){if(r.advance(),r.next==60){for(r.advance();;)if(!pO(r,!0)){r.next==62&&r.advance();break}}else for(;pO(r,!1););}function ih(r){for(r.advance();!to(r.next)&&Yl(r.tag)!="f";)r.advance()}function Of(r,e){let t=r.next,n=!1,o=r.pos;for(r.advance();;){let s=r.next;if(s<0)break;if(r.advance(),s==t)if(s==39)if(r.next==39)r.advance();else break;else break;else if(s==92&&t==34)r.next>=0&&r.advance();else if(Hr(s)){if(e)return!1;n=!0}else if(e&&r.pos>=o+1024)return!1}return!n}function BT(r){for(let e=[],t=r.pos+1024;;)if(r.next==91||r.next==123)e.push(r.next),r.advance();else if(r.next==39||r.next==34){if(!Of(r,!0))return!1}else if(r.next==93||r.next==125){if(e[e.length-1]!=r.next-2)return!1;if(e.pop(),r.advance(),!e.length)return!0}else{if(r.next<0||r.pos>t||Hr(r.next))return!1;r.advance()}}const ZT="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function Yl(r){return r<33?"u":r>125?"s":ZT[r-33]}function Xd(r,e){let t=Yl(r);return t!="u"&&!(e&&t=="f")}function Nv(r,e,t,n){if(Yl(r.next)=="s"||(r.next==63||r.next==58||r.next==45)&&Xd(r.peek(1),t))r.advance();else return!1;let o=r.pos;for(;;){let s=r.next,a=0,l=n+1;for(;Qv(s);){if(Hr(s)){if(e)return!1;l=0}else l++;s=r.peek(++a)}if(!(s>=0&&(s==58?Xd(r.peek(a+1),t):s==35?r.peek(a-1)!=32:Xd(s,t)))||!t&&l<=n||l==0&&!t&&(us(r,45,a)||us(r,46,a)))break;if(e&&Yl(s)=="f")return!1;for(let d=a;d>=0;d--)r.advance();if(e&&r.pos>o+1024)return!1}return!0}const IT=new wt((r,e)=>{if(r.next==33)Ev(r),r.acceptToken($T);else if(r.next==38||r.next==42){let t=r.next==38?kT:ST;ih(r),r.acceptToken(t)}else r.next==39||r.next==34?(Of(r,!1),r.acceptToken(wT)):Nv(r,!1,e.context.type==Xi,e.context.depth)&&r.acceptToken(vT)}),jT=new wt((r,e)=>{let t=e.context.type==oh?e.context.depth:-1,n=r.pos;e:for(;;){let o=0,s=r.next;for(;s==32;)s=r.peek(++o);if(!o&&(us(r,45,o)||us(r,46,o))||!Hr(s)&&(t<0&&(t=Math.max(e.context.depth+1,o)),o<t))break;for(;;){if(r.next<0)break e;let a=Hr(r.next);if(r.advance(),a)continue e;n=r.pos}}r.acceptTokenTo(Tv,n)}),DT=ys({DirectiveName:_.keyword,DirectiveContent:_.attributeValue,"DirectiveEnd DocEnd":_.meta,QuotedLiteral:_.string,BlockLiteralHeader:_.special(_.string),BlockLiteralContent:_.content,Literal:_.content,"Key/Literal Key/QuotedLiteral":_.definition(_.propertyName),"Anchor Alias":_.labelName,Tag:_.typeName,Comment:_.lineComment,": , -":_.separator,"?":_.punctuation,"[ ]":_.squareBracket,"{ }":_.brace}),qT=Tn.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQd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_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:NT,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[DT],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv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);e&&e.to>=r.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return r.baseIndentFor(e);if(e.name=="BlockLiteral")return r.baseIndentFor(e)+r.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return r.column(e.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let t=r.column(e.from,1);if(t==r.lineIndent(e.from,1))return t;if(e.to>r.pos)return null}}return null},FlowMapping:Lu({closing:"}"}),FlowSequence:Lu({closing:"]"})}),na.add({"FlowMapping FlowSequence":Sc,"BlockSequence BlockMapping BlockLiteral":(r,e)=>({from:e.doc.lineAt(r.from).to,to:r.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function XT(){return new ra(MT)}var WT=r=>{var{theme:e,settings:t={},styles:n=[]}=r,o={".cm-gutters":{}},s={};t.background&&(s.backgroundColor=t.background),t.backgroundImage&&(s.backgroundImage=t.backgroundImage),t.foreground&&(s.color=t.foreground),(t.background||t.foreground)&&(o["&"]=s),t.fontFamily&&(o["&.cm-editor .cm-scroller"]={fontFamily:t.fontFamily}),t.gutterBackground&&(o[".cm-gutters"].backgroundColor=t.gutterBackground),t.gutterForeground&&(o[".cm-gutters"].color=t.gutterForeground),t.gutterBorder&&(o[".cm-gutters"].borderRightColor=t.gutterBorder),t.caret&&(o[".cm-content"]={caretColor:t.caret},o[".cm-cursor, .cm-dropCursor"]={borderLeftColor:t.caret});var a={};t.gutterActiveForeground&&(a.color=t.gutterActiveForeground),t.lineHighlight&&(o[".cm-activeLine"]={backgroundColor:t.lineHighlight},a.backgroundColor=t.lineHighlight),o[".cm-activeLineGutter"]=a,t.selection&&(o["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:t.selection+" !important"}),t.selectionMatch&&(o["& .cm-selectionMatch"]={backgroundColor:t.selectionMatch});var l=re.theme(o,{dark:e==="dark"}),c=oa.define(n),d=[l,xb(c)];return d};const zT=WT({theme:"light",settings:{background:"var(--theme-background-2, var(--default-theme-background-2))",foreground:"var(--theme-color-1, var(--default-theme-color-1))",caret:"var(--theme-color-1, var(--default-theme-color-1))",selection:"rgba(151, 183, 205, 0.2)",selectionMatch:"#e3dcce",gutterBackground:"var(--theme-background-2, var(--default-theme-background-2))",gutterForeground:"var(--theme-color-3, var(--default-theme-color-3))",gutterBorder:"transparent",lineHighlight:"var(--theme-background-3, var(--default-theme-background-3))",fontFamily:"var(--theme-font-code, var(--default-theme-font-code))"},styles:[{tag:[_.standard(_.tagName),_.tagName],color:"var(--theme-color-purple, var(--default-theme-color-purple))"},{tag:[_.comment],color:"var(--theme-color-3, var(--default-theme-color-3))"},{tag:[_.className],color:"var(--theme-color-orange, var(--default-theme-color-orange))"},{tag:[_.variableName,_.propertyName,_.attributeName],color:"var(--theme-color-1, var(--default-theme-color-1))"},{tag:[_.operator],color:"var(--theme-color-2, var(--default-theme-color-2))"},{tag:[_.keyword,_.typeName,_.typeOperator],color:"var(--theme-color-green, var(--default-theme-color-green))"},{tag:[_.string],color:"var(--theme-color-blue, var(--default-theme-color-blue))"},{tag:[_.bracket,_.regexp,_.meta],color:"var(--theme-color-3, var(--default-theme-color-3))"},{tag:[_.number],color:"var(--theme-color-blue, var(--default-theme-color-blue))"},{tag:[_.name,_.quote],color:"var(--theme-color-3, var(--default-theme-color-3))"},{tag:[_.heading],color:"var(--theme-color-3, var(--default-theme-color-3))",fontWeight:"bold"},{tag:[_.emphasis],color:"var(--theme-color-3, var(--default-theme-color-3))",fontStyle:"italic"},{tag:[_.deleted],color:"var(--theme-color-3, var(--default-theme-color-3))",backgroundColor:"transparent"},{tag:[_.atom,_.bool,_.special(_.variableName)],color:"var(--theme-color-3, var(--default-theme-color-3))"},{tag:[_.url,_.escape,_.regexp,_.link],color:"var(--theme-color-1, var(--default-theme-color-1))"},{tag:_.link,textDecoration:"underline"},{tag:_.strikethrough,textDecoration:"line-through"},{tag:_.invalid,color:"var(--theme-color-3, var(--default-theme-color-3))"}]}),mO=new ib({regexp:/(\{[^}]+\})/g,decoration:()=>Se.mark({attributes:{class:"api-client-url-variable"}})}),UT=()=>Ht.fromClass(class{constructor(r){ud(this,"variables");this.variables=mO.createDeco(r)}update(r){this.variables=mO.updateDeco(r,this.variables)}},{decorations:r=>r.variables,provide:r=>re.atomicRanges.of(e=>{var t;return((t=e.plugin(r))==null?void 0:t.variables)||Se.none})}),_o=r=>"provider"in r&&!!i.toValue(r.provider),YT={key:"Mod-a",run:r=>(r.dispatch({selection:{anchor:0,head:r.state.doc.length},scrollIntoView:!1}),!0)},LT=r=>{const e=i.ref(null);i.watch(r.codeMirrorRef,()=>{var s;(s=e.value)==null||s.destroy(),t()},{immediate:!0}),i.onBeforeUnmount(()=>{var s;return(s=e.value)==null?void 0:s.destroy()});function t(){if(r.codeMirrorRef.value){const s=_o(r)?i.toValue(r.provider):null,a=OO({...n.value,provider:s});e.value=new re({parent:r.codeMirrorRef.value,extensions:a}),_o(r)||o(i.toValue(r.content))}}const n=i.computed(()=>({onChange:r.onChange,onBlur:r.onBlur,onFocus:r.onFocus,language:i.toValue(r.language),classes:i.toValue(r.classes),readOnly:i.toValue(r.readOnly),lineNumbers:i.toValue(r.lineNumbers),withVariables:i.toValue(r.withVariables),disableEnter:i.toValue(r.withVariables),withoutTheme:i.toValue(r.withoutTheme),additionalExtensions:i.toValue(r.extensions)}));i.watch(()=>_o(r)?i.toValue(r.provider):null,()=>{var s;_o(r)&&((s=e.value)==null||s.destroy(),t())}),i.watch(n,()=>{if(e.value){const s=_o(r)?i.toValue(r.provider):null,a=OO({...n.value,provider:s});e.value.dispatch({effects:xe.reconfigure.of(a)})}else return},{immediate:!0});const o=(s="")=>{e.value&&e.value.state.doc.toString()!==s&&e.value.dispatch({changes:{from:0,to:e.value.state.doc.length,insert:s},selection:{anchor:Math.min(e.value.state.selection.main.anchor,s.length)}})};return i.watch(()=>i.toValue(r.content),()=>{_o(r)||o(i.toValue(r.content))},{immediate:!0}),{setCodeMirrorContent:o,codeMirror:e}},gO={html:lT,json:fT,yaml:XT,css:Hb};function OO({onChange:r,onBlur:e,onFocus:t,provider:n,language:o,classes:s=[],readOnly:a=!1,lineNumbers:l=!1,withVariables:c=!1,disableEnter:d=!1,withoutTheme:u=!1,additionalExtensions:h=[]}){const f=[FP(),xb(Gx,{fallback:!0}),re.theme({".cm-line":{lineHeight:"20px"},".cm-gutterElement":{lineHeight:"20px"}}),re.updateListener.of(p=>{p.docChanged&&(r==null||r(p.state.doc.toString()))}),re.domEventHandlers({blur:(p,m)=>{e==null||e(m.state.doc.toString())},focus:(p,m)=>{t==null||t(m.state.doc.toString())}}),re.editorAttributes.of({class:s.join(" ")}),...h];return n&&f.push(n),u||f.push(zT),a?f.push(re.editable.of(!1)):f.push(Lx(),o_(),tC(),W_(),Bi.of([...Wb,...L_,YT])),o&&gO[o]&&f.push(gO[o]()),l&&f.push(ux()),c&&f.push(UT()),d&&f.push(Bi.of([{key:"Enter",run:()=>!0},{key:"Ctrl-Enter",mac:"Cmd-Enter",run:()=>!0},{key:"Shift-Enter",run:()=>!0}])),f}const FT=i.defineComponent({__name:"CodeMirror",props:{content:{},readOnly:{type:Boolean},language:{},withVariables:{type:Boolean},lineNumbers:{type:Boolean},withoutTheme:{type:Boolean},disableEnter:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(null);return LT({content:i.toRef(()=>t.content),readOnly:i.toRef(()=>t.readOnly),language:i.toRef(()=>t.language),withVariables:i.toRef(()=>t.withVariables),lineNumbers:i.toRef(()=>t.lineNumbers),withoutTheme:i.toRef(()=>t.withoutTheme),disableEnter:i.toRef(()=>t.disableEnter),onChange:s=>n("change",s||""),codeMirrorRef:o,classes:["codemirror"]}),(s,a)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"codeMirrorRef",ref:o,class:"codemirror-container"},null,512))}}),Av=X(FT,[["__scopeId","data-v-9f50a430"]]),HT={class:"scalar-modal-layout modal-layout"},GT=i.defineComponent({__name:"FlowModal",props:{state:{},title:{},bodyClass:{},maxWidth:{},variant:{default:"normal"}},setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(we.Dialog),{open:e.state.open,onClose:t[0]||(t[0]=n=>e.state.hide())},{default:i.withCtx(()=>[i.createElementVNode("div",HT,[i.createVNode(i.unref(we.DialogPanel),{class:i.normalizeClass(["modal",{"modal-content-large":e.variant==="large","modal-content-normal":e.variant==="normal","modal-content-small":e.variant==="small","modal-content-search":e.variant==="search","modal-content-history":e.variant==="history"}]),style:i.normalizeStyle({maxWidth:e.maxWidth})},{default:i.withCtx(()=>[e.title?(i.openBlock(),i.createBlock(i.unref(we.DialogTitle),{key:0,class:"modal-header"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.title),1)]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(we.DialogDescription),{class:i.normalizeClass(["modal-body custom-scroll",[e.bodyClass]])},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","style"])])]),_:3},8,["open"]))}}),Vv=X(GT,[["__scopeId","data-v-a06b8e92"]]),Rv=()=>i.reactive({open:!1,show(){this.open=!0},hide(){this.open=!1}}),KT=(r,e)=>{if(typeof e!="string"||!e.length)return r;const t=r.endsWith("/")?r:`${r}/`,n=e.startsWith("/")?e.slice(1):e;return[t,n].join("")};function JT(r){return typeof window>"u"?Buffer.from(r).toString("base64"):btoa(r)}const eQ=r=>{const e=/(?:\{+)\s*(\w+)\s*(?:\}+)/g;return[...r.matchAll(e)].map(t=>t[1].trim())||[]};function Bv(r){const e=Math.floor((new Date().getTime()-r)/1e3);if(e<45)return"just now";if(e<60)return`${e} seconds ago`;const t=Math.floor(e/60);if(t<60)return`${t} minute${t===1?"":"s"} ago`;const n=Math.floor(t/60);if(n<24)return`${n} hour${n===1?"":"s"} ago`;const o=Math.floor(n/24);if(o<30)return`${o} day${o===1?"":"s"} ago`;const s=Math.floor(o/30);return s<12?`${s} month${s===1?"":"s"} ago`:"more than a year ago"}function za(r,e,t){const n={};return r.forEach(o=>{n[o[e]]=o[t]}),n}const tQ=r=>{if(typeof r!="string")return"";let e=r.trim();return e.length>1&&e.startsWith("/")&&(e=e.slice(1)),e},Ua="GET",rQ=r=>{if(typeof r!="string")return console.warn(`[sendRequest] Request method is not a string. Using ${Ua} as the default.`),Ua;const e=r.trim().toUpperCase();return hu(e)?e:(console.warn(`[sendRequest] ${r} is not a valid request method. Using ${Ua} as the default.`),Ua)},nQ=r=>{if(typeof r!="string")return console.warn("[sendRequest] URL is not a string. Using an empty string as the default."),"";let e=r.trim().toLowerCase();return e.startsWith("http")||(console.warn("[sendRequest] URL does not start with http. Adding http:// as the default prefix."),e=`http://${e}`),e},yf=Symbol.for("yaml.alias"),oQ=Symbol.for("yaml.document"),lo=Symbol.for("yaml.map"),Zv=Symbol.for("yaml.pair"),bf=Symbol.for("yaml.scalar"),ia=Symbol.for("yaml.seq"),Vr=Symbol.for("yaml.node.type"),ws=r=>!!r&&typeof r=="object"&&r[Vr]===yf,Pc=r=>!!r&&typeof r=="object"&&r[Vr]===oQ,Iv=r=>!!r&&typeof r=="object"&&r[Vr]===lo,at=r=>!!r&&typeof r=="object"&&r[Vr]===Zv,Je=r=>!!r&&typeof r=="object"&&r[Vr]===bf,vf=r=>!!r&&typeof r=="object"&&r[Vr]===ia;function Rt(r){if(r&&typeof r=="object")switch(r[Vr]){case lo:case ia:return!0}return!1}function Ct(r){if(r&&typeof r=="object")switch(r[Vr]){case yf:case lo:case bf:case ia:return!0}return!1}const sQ=r=>(Je(r)||Rt(r))&&!!r.anchor,zn=Symbol("break visit"),iQ=Symbol("skip children"),ki=Symbol("remove node");function Wi(r,e){const t=aQ(e);Pc(r)?jo(null,r.contents,t,Object.freeze([r]))===ki&&(r.contents=null):jo(null,r,t,Object.freeze([]))}Wi.BREAK=zn;Wi.SKIP=iQ;Wi.REMOVE=ki;function jo(r,e,t,n){const o=lQ(r,e,t,n);if(Ct(o)||at(o))return cQ(r,n,o),jo(r,o,t,n);if(typeof o!="symbol"){if(Rt(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const a=jo(s,e.items[s],t,n);if(typeof a=="number")s=a-1;else{if(a===zn)return zn;a===ki&&(e.items.splice(s,1),s-=1)}}}else if(at(e)){n=Object.freeze(n.concat(e));const s=jo("key",e.key,t,n);if(s===zn)return zn;s===ki&&(e.key=null);const a=jo("value",e.value,t,n);if(a===zn)return zn;a===ki&&(e.value=null)}}return o}function aQ(r){return typeof r=="object"&&(r.Collection||r.Node||r.Value)?Object.assign({Alias:r.Node,Map:r.Node,Scalar:r.Node,Seq:r.Node},r.Value&&{Map:r.Value,Scalar:r.Value,Seq:r.Value},r.Collection&&{Map:r.Collection,Seq:r.Collection},r):r}function lQ(r,e,t,n){var o,s,a,l,c;if(typeof t=="function")return t(r,e,n);if(Iv(e))return(o=t.Map)==null?void 0:o.call(t,r,e,n);if(vf(e))return(s=t.Seq)==null?void 0:s.call(t,r,e,n);if(at(e))return(a=t.Pair)==null?void 0:a.call(t,r,e,n);if(Je(e))return(l=t.Scalar)==null?void 0:l.call(t,r,e,n);if(ws(e))return(c=t.Alias)==null?void 0:c.call(t,r,e,n)}function cQ(r,e,t){const n=e[e.length-1];if(Rt(n))n.items[r]=t;else if(at(n))r==="key"?n.key=t:n.value=t;else if(Pc(n))n.contents=t;else{const o=ws(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}function jv(r){if(/[\x00-\x19\s,[\]{}]/.test(r)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(r)}`;throw new Error(t)}return!0}function hi(r,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,s=n.length;o<s;++o){const a=n[o],l=hi(r,n,String(o),a);l===void 0?delete n[o]:l!==a&&(n[o]=l)}else if(n instanceof Map)for(const o of Array.from(n.keys())){const s=n.get(o),a=hi(r,n,o,s);a===void 0?n.delete(o):a!==s&&n.set(o,a)}else if(n instanceof Set)for(const o of Array.from(n)){const s=hi(r,n,o,o);s===void 0?n.delete(o):s!==o&&(n.delete(o),n.add(s))}else for(const[o,s]of Object.entries(n)){const a=hi(r,n,o,s);a===void 0?delete n[o]:a!==s&&(n[o]=a)}return r.call(e,t,n)}function cr(r,e,t){if(Array.isArray(r))return r.map((n,o)=>cr(n,String(o),t));if(r&&typeof r.toJSON=="function"){if(!t||!sQ(r))return r.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(r,n),t.onCreate=s=>{n.res=s,delete t.onCreate};const o=r.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof r=="bigint"&&!(t!=null&&t.keep)?Number(r):r}class wf{constructor(e){Object.defineProperty(this,Vr,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:o,reviver:s}={}){if(!Pc(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=cr(this,"",a);if(typeof o=="function")for(const{count:c,res:d}of a.anchors.values())o(d,c);return typeof s=="function"?hi(s,{"":l},"",l):l}}class dQ extends wf{constructor(e){super(yf),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Wi(e,{Node:(n,o)=>{if(o===this)return Wi.BREAK;o.anchor===this.source&&(t=o)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:s}=t,a=this.resolve(o);if(!a){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let l=n.get(a);if(l||(cr(a,null,t),l=n.get(a)),!l||l.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=gl(o,a,n)),l.count*l.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return l.res}toString(e,t,n){const o=`*${this.source}`;if(e){if(jv(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${o} `}return o}}function gl(r,e,t){if(ws(e)){const n=e.resolve(r),o=t&&n&&t.get(n);return o?o.count*o.aliasCount:0}else if(Rt(e)){let n=0;for(const o of e.items){const s=gl(r,o,t);s>n&&(n=s)}return n}else if(at(e)){const n=gl(r,e.key,t),o=gl(r,e.value,t);return Math.max(n,o)}return 1}const Dv=r=>!r||typeof r!="function"&&typeof r!="object";class Le extends wf{constructor(e){super(bf),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:cr(this.value,e,t)}toString(){return String(this.value)}}Le.BLOCK_FOLDED="BLOCK_FOLDED";Le.BLOCK_LITERAL="BLOCK_LITERAL";Le.PLAIN="PLAIN";Le.QUOTE_DOUBLE="QUOTE_DOUBLE";Le.QUOTE_SINGLE="QUOTE_SINGLE";const uQ="tag:yaml.org,2002:";function hQ(r,e,t){if(e){const n=t.filter(s=>s.tag===e),o=n.find(s=>!s.format)??n[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return t.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,r))&&!n.format})}function Ll(r,e,t){var h,f,p;if(Pc(r)&&(r=r.contents),Ct(r))return r;if(at(r)){const m=(f=(h=t.schema[lo]).createNode)==null?void 0:f.call(h,t.schema,null,t);return m.items.push(r),m}(r instanceof String||r instanceof Number||r instanceof Boolean||typeof BigInt<"u"&&r instanceof BigInt)&&(r=r.valueOf());const{aliasDuplicateObjects:n,onAnchor:o,onTagObj:s,schema:a,sourceObjects:l}=t;let c;if(n&&r&&typeof r=="object"){if(c=l.get(r),c)return c.anchor||(c.anchor=o(r)),new dQ(c.anchor);c={anchor:null,node:null},l.set(r,c)}e!=null&&e.startsWith("!!")&&(e=uQ+e.slice(2));let d=hQ(r,e,a.tags);if(!d){if(r&&typeof r.toJSON=="function"&&(r=r.toJSON()),!r||typeof r!="object"){const m=new Le(r);return c&&(c.node=m),m}d=r instanceof Map?a[lo]:Symbol.iterator in Object(r)?a[ia]:a[lo]}s&&(s(d),delete t.onTagObj);const u=d!=null&&d.createNode?d.createNode(t.schema,r,t):typeof((p=d==null?void 0:d.nodeClass)==null?void 0:p.from)=="function"?d.nodeClass.from(t.schema,r,t):new Le(r);return e?u.tag=e:d.default||(u.tag=d.tag),c&&(c.node=u),u}function yO(r,e,t){let n=t;for(let o=e.length-1;o>=0;--o){const s=e[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const a=[];a[s]=n,n=a}else n=new Map([[s,n]])}return Ll(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:r,sourceObjects:new Map})}const fQ=r=>r==null||typeof r=="object"&&!!r[Symbol.iterator]().next().done;class kf extends wf{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>Ct(n)||at(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(fQ(e))this.add(t);else{const[n,...o]=e,s=this.get(n,!0);if(Rt(s))s.addIn(o,t);else if(s===void 0&&this.schema)this.set(n,yO(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const o=this.get(t,!0);if(Rt(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...o]=e,s=this.get(n,!0);return o.length===0?!t&&Je(s)?s.value:s:Rt(s)?s.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!at(t))return!1;const n=t.value;return n==null||e&&Je(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const o=this.get(t,!0);return Rt(o)?o.hasIn(n):!1}setIn(e,t){const[n,...o]=e;if(o.length===0)this.set(n,t);else{const s=this.get(n,!0);if(Rt(s))s.setIn(o,t);else if(s===void 0&&this.schema)this.set(n,yO(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}kf.maxFlowStringSingleLineLength=60;const pQ=r=>r.replace(/^(?!$)(?: $)?/gm,"#");function zi(r,e){return/^\n+$/.test(r)?r.substring(1):e?r.replace(/^(?! *$)/gm,e):r}const Do=(r,e,t)=>r.endsWith(`
|
|
23
|
+
`)?zi(t,e):t.includes(`
|
|
24
|
+
`)?`
|
|
25
|
+
`+zi(t,e):(r.endsWith(" ")?"":" ")+t,qv="flow",ah="block",Ol="quoted";function xc(r,e,t="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:s=20,onFold:a,onOverflow:l}={}){if(!o||o<0)return r;const c=Math.max(1+s,1+o-e.length);if(r.length<=c)return r;const d=[],u={};let h=o-e.length;typeof n=="number"&&(n>o-Math.max(2,s)?d.push(0):h=o-n);let f,p,m=!1,g=-1,O=-1,y=-1;t===ah&&(g=bO(r,g,e.length),g!==-1&&(h=g+c));for(let v;v=r[g+=1];){if(t===Ol&&v==="\\"){switch(O=g,r[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}y=g}if(v===`
|
|
26
|
+
`)t===ah&&(g=bO(r,g,e.length)),h=g+e.length+c,f=void 0;else{if(v===" "&&p&&p!==" "&&p!==`
|
|
27
|
+
`&&p!==" "){const w=r[g+1];w&&w!==" "&&w!==`
|
|
28
|
+
`&&w!==" "&&(f=g)}if(g>=h)if(f)d.push(f),h=f+c,f=void 0;else if(t===Ol){for(;p===" "||p===" ";)p=v,v=r[g+=1],m=!0;const w=g>y+1?g-2:O-1;if(u[w])return r;d.push(w),u[w]=!0,h=w+c,f=void 0}else m=!0}p=v}if(m&&l&&l(),d.length===0)return r;a&&a();let b=r.slice(0,d[0]);for(let v=0;v<d.length;++v){const w=d[v],S=d[v+1]||r.length;w===0?b=`
|
|
29
|
+
${e}${r.slice(0,S)}`:(t===Ol&&u[w]&&(b+=`${r[w]}\\`),b+=`
|
|
30
|
+
${e}${r.slice(w+1,S)}`)}return b}function bO(r,e,t){let n=e,o=e+1,s=r[o];for(;s===" "||s===" ";)if(e<o+t)s=r[++e];else{do s=r[++e];while(s&&s!==`
|
|
31
|
+
`);n=e,o=e+1,s=r[o]}return n}const _c=(r,e)=>({indentAtStart:e?r.indent.length:r.indentAtStart,lineWidth:r.options.lineWidth,minContentWidth:r.options.minContentWidth}),Cc=r=>/^(%|---|\.\.\.)/m.test(r);function mQ(r,e,t){if(!e||e<0)return!1;const n=e-t,o=r.length;if(o<=n)return!1;for(let s=0,a=0;s<o;++s)if(r[s]===`
|
|
32
|
+
`){if(s-a>n)return!0;if(a=s+1,o-a<=n)return!1}return!0}function Si(r,e){const t=JSON.stringify(r);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:n}=e,o=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(Cc(r)?" ":"");let a="",l=0;for(let c=0,d=t[c];d;d=t[++c])if(d===" "&&t[c+1]==="\\"&&t[c+2]==="n"&&(a+=t.slice(l,c)+"\\ ",c+=1,l=c,d="\\"),d==="\\")switch(t[c+1]){case"u":{a+=t.slice(l,c);const u=t.substr(c+2,4);switch(u){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:u.substr(0,2)==="00"?a+="\\x"+u.substr(2):a+=t.substr(c,6)}c+=5,l=c+1}break;case"n":if(n||t[c+2]==='"'||t.length<o)c+=1;else{for(a+=t.slice(l,c)+`
|
|
33
|
+
|
|
34
|
+
`;t[c+2]==="\\"&&t[c+3]==="n"&&t[c+4]!=='"';)a+=`
|
|
35
|
+
`,c+=2;a+=s,t[c+2]===" "&&(a+="\\"),c+=1,l=c+1}break;default:c+=1}return a=l?a+t.slice(l):t,n?a:xc(a,s,Ol,_c(e,!1))}function lh(r,e){if(e.options.singleQuote===!1||e.implicitKey&&r.includes(`
|
|
36
|
+
`)||/[ \t]\n|\n[ \t]/.test(r))return Si(r,e);const t=e.indent||(Cc(r)?" ":""),n="'"+r.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
37
|
+
${t}`)+"'";return e.implicitKey?n:xc(n,t,qv,_c(e,!1))}function qo(r,e){const{singleQuote:t}=e.options;let n;if(t===!1)n=Si;else{const o=r.includes('"'),s=r.includes("'");o&&!s?n=lh:s&&!o?n=Si:n=t?lh:Si}return n(r,e)}let ch;try{ch=new RegExp(`(^|(?<!
|
|
38
|
+
))
|
|
39
|
+
+(?!
|
|
40
|
+
|$)`,"g")}catch{ch=/\n+(?!\n|$)/g}function yl({comment:r,type:e,value:t},n,o,s){const{blockQuote:a,commentString:l,lineWidth:c}=n.options;if(!a||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return qo(t,n);const d=n.indent||(n.forceBlockIndent||Cc(t)?" ":""),u=a==="literal"?!0:a==="folded"||e===Le.BLOCK_FOLDED?!1:e===Le.BLOCK_LITERAL?!0:!mQ(t,c,d.length);if(!t)return u?`|
|
|
41
|
+
`:`>
|
|
42
|
+
`;let h,f;for(f=t.length;f>0;--f){const k=t[f-1];if(k!==`
|
|
43
|
+
`&&k!==" "&&k!==" ")break}let p=t.substring(f);const m=p.indexOf(`
|
|
44
|
+
`);m===-1?h="-":t===p||m!==p.length-1?(h="+",s&&s()):h="",p&&(t=t.slice(0,-p.length),p[p.length-1]===`
|
|
45
|
+
`&&(p=p.slice(0,-1)),p=p.replace(ch,`$&${d}`));let g=!1,O,y=-1;for(O=0;O<t.length;++O){const k=t[O];if(k===" ")g=!0;else if(k===`
|
|
46
|
+
`)y=O;else break}let b=t.substring(0,y<O?y+1:O);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${d}`));let w=(u?"|":">")+(g?d?"2":"1":"")+h;if(r&&(w+=" "+l(r.replace(/ ?[\r\n]+/g," ")),o&&o()),u)return t=t.replace(/\n+/g,`$&${d}`),`${w}
|
|
47
|
+
${d}${b}${t}${p}`;t=t.replace(/\n+/g,`
|
|
48
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const S=xc(`${b}${t}${p}`,d,ah,_c(n,!0));return`${w}
|
|
49
|
+
${d}${S}`}function gQ(r,e,t,n){const{type:o,value:s}=r,{actualString:a,implicitKey:l,indent:c,indentStep:d,inFlow:u}=e;if(l&&s.includes(`
|
|
50
|
+
`)||u&&/[[\]{},]/.test(s))return qo(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||u||!s.includes(`
|
|
51
|
+
`)?qo(s,e):yl(r,e,t,n);if(!l&&!u&&o!==Le.PLAIN&&s.includes(`
|
|
52
|
+
`))return yl(r,e,t,n);if(Cc(s)){if(c==="")return e.forceBlockIndent=!0,yl(r,e,t,n);if(l&&c===d)return qo(s,e)}const h=s.replace(/\n+/g,`$&
|
|
53
|
+
${c}`);if(a){const f=g=>{var O;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((O=g.test)==null?void 0:O.test(h))},{compat:p,tags:m}=e.doc.schema;if(m.some(f)||p!=null&&p.some(f))return qo(s,e)}return l?h:xc(h,c,qv,_c(e,!1))}function OQ(r,e,t,n){const{implicitKey:o,inFlow:s}=e,a=typeof r.value=="string"?r:Object.assign({},r,{value:String(r.value)});let{type:l}=r;l!==Le.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(l=Le.QUOTE_DOUBLE);const c=u=>{switch(u){case Le.BLOCK_FOLDED:case Le.BLOCK_LITERAL:return o||s?qo(a.value,e):yl(a,e,t,n);case Le.QUOTE_DOUBLE:return Si(a.value,e);case Le.QUOTE_SINGLE:return lh(a.value,e);case Le.PLAIN:return gQ(a,e,t,n);default:return null}};let d=c(l);if(d===null){const{defaultKeyType:u,defaultStringType:h}=e.options,f=o&&u||h;if(d=c(f),d===null)throw new Error(`Unsupported default string type ${f}`)}return d}function yQ(r,e){const t=Object.assign({blockQuote:!0,commentString:pQ,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},r.schema.toStringOptions,e);let n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:r,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function bQ(r,e){var o;if(e.tag){const s=r.filter(a=>a.tag===e.tag);if(s.length>0)return s.find(a=>a.format===e.format)??s[0]}let t,n;if(Je(e)){n=e.value;const s=r.filter(a=>{var l;return(l=a.identify)==null?void 0:l.call(a,n)});t=s.find(a=>a.format===e.format)??s.find(a=>!a.format)}else n=e,t=r.find(s=>s.nodeClass&&n instanceof s.nodeClass);if(!t){const s=((o=n==null?void 0:n.constructor)==null?void 0:o.name)??typeof n;throw new Error(`Tag not resolved for ${s} value`)}return t}function vQ(r,e,{anchors:t,doc:n}){if(!n.directives)return"";const o=[],s=(Je(r)||Rt(r))&&r.anchor;s&&jv(s)&&(t.add(s),o.push(`&${s}`));const a=r.tag?r.tag:e.default?null:e.tag;return a&&o.push(n.directives.tagString(a)),o.join(" ")}function Fl(r,e,t,n){var c;if(at(r))return r.toString(e,t,n);if(ws(r)){if(e.doc.directives)return r.toString(e);if((c=e.resolvedAliases)!=null&&c.has(r))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(r):e.resolvedAliases=new Set([r]),r=r.resolve(e.doc)}let o;const s=Ct(r)?r:e.doc.createNode(r,{onTagObj:d=>o=d});o||(o=bQ(e.doc.schema.tags,s));const a=vQ(s,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart??0)+a.length+1);const l=typeof o.stringify=="function"?o.stringify(s,e,t,n):Je(s)?OQ(s,e,t,n):s.toString(e,t,n);return a?Je(s)||l[0]==="{"||l[0]==="["?`${a} ${l}`:`${a}
|
|
54
|
+
${e.indent}${l}`:l}function wQ({key:r,value:e},t,n,o){const{allNullValues:s,doc:a,indent:l,indentStep:c,options:{commentString:d,indentSeq:u,simpleKeys:h}}=t;let f=Ct(r)&&r.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(Rt(r)){const $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let p=!h&&(!r||f&&e==null&&!t.inFlow||Rt(r)||(Je(r)?r.type===Le.BLOCK_FOLDED||r.type===Le.BLOCK_LITERAL:typeof r=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(h||!s),indent:l+c});let m=!1,g=!1,O=Fl(r,t,()=>m=!0,()=>g=!0);if(!p&&!t.inFlow&&O.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(s||e==null)return m&&n&&n(),O===""?"?":p?`? ${O}`:O}else if(s&&!h||e==null&&p)return O=`? ${O}`,f&&!m?O+=Do(O,t.indent,d(f)):g&&o&&o(),O;m&&(f=null),p?(f&&(O+=Do(O,t.indent,d(f))),O=`? ${O}
|
|
55
|
+
${l}:`):(O=`${O}:`,f&&(O+=Do(O,t.indent,d(f))));let y,b,v;Ct(e)?(y=!!e.spaceBefore,b=e.commentBefore,v=e.comment):(y=!1,b=null,v=null,e&&typeof e=="object"&&(e=a.createNode(e))),t.implicitKey=!1,!p&&!f&&Je(e)&&(t.indentAtStart=O.length+1),g=!1,!u&&c.length>=2&&!t.inFlow&&!p&&vf(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let w=!1;const S=Fl(e,t,()=>w=!0,()=>g=!0);let k=" ";if(f||y||b){if(k=y?`
|
|
56
|
+
`:"",b){const $=d(b);k+=`
|
|
57
|
+
${zi($,t.indent)}`}S===""&&!t.inFlow?k===`
|
|
58
|
+
`&&(k=`
|
|
59
|
+
|
|
60
|
+
`):k+=`
|
|
61
|
+
${t.indent}`}else if(!p&&Rt(e)){const $=S[0],C=S.indexOf(`
|
|
62
|
+
`),E=C!==-1,B=t.inFlow??e.flow??e.items.length===0;if(E||!B){let q=!1;if(E&&($==="&"||$==="!")){let R=S.indexOf(" ");$==="&"&&R!==-1&&R<C&&S[R+1]==="!"&&(R=S.indexOf(" ",R+1)),(R===-1||C<R)&&(q=!0)}q||(k=`
|
|
63
|
+
${t.indent}`)}}else(S===""||S[0]===`
|
|
64
|
+
`)&&(k="");return O+=k+S,t.inFlow?w&&n&&n():v&&!w?O+=Do(O,t.indent,d(v)):g&&o&&o(),O}function kQ(r,e){(r==="debug"||r==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const vO="<<";function Mv(r,e,{key:t,value:n}){if(r!=null&&r.doc.schema.merge&&SQ(t))if(n=ws(n)?n.resolve(r.doc):n,vf(n))for(const o of n.items)Wd(r,e,o);else if(Array.isArray(n))for(const o of n)Wd(r,e,o);else Wd(r,e,n);else{const o=cr(t,"",r);if(e instanceof Map)e.set(o,cr(n,o,r));else if(e instanceof Set)e.add(o);else{const s=$Q(t,o,r),a=cr(n,s,r);s in e?Object.defineProperty(e,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):e[s]=a}}return e}const SQ=r=>r===vO||Je(r)&&r.value===vO&&(!r.type||r.type===Le.PLAIN);function Wd(r,e,t){const n=r&&ws(t)?t.resolve(r.doc):t;if(!Iv(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,r,Map);for(const[s,a]of o)e instanceof Map?e.has(s)||e.set(s,a):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:a,writable:!0,enumerable:!0,configurable:!0});return e}function $Q(r,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(Ct(r)&&(t!=null&&t.doc)){const n=yQ(t.doc,{});n.anchors=new Set;for(const s of t.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=r.toString(n);if(!t.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),kQ(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function Sf(r,e,t){const n=Ll(r,void 0,t),o=Ll(e,void 0,t);return new Wr(n,o)}class Wr{constructor(e,t=null){Object.defineProperty(this,Vr,{value:Zv}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return Ct(t)&&(t=t.clone(e)),Ct(n)&&(n=n.clone(e)),new Wr(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return Mv(t,n,this)}toString(e,t,n){return e!=null&&e.doc?wQ(this,e,t,n):JSON.stringify(this)}}function Xv(r,e,t){return(e.inFlow??r.flow?xQ:PQ)(r,e,t)}function PQ({comment:r,items:e},t,{blockItemPrefix:n,flowChars:o,itemIndent:s,onChompKeep:a,onComment:l}){const{indent:c,options:{commentString:d}}=t,u=Object.assign({},t,{indent:s,type:null});let h=!1;const f=[];for(let m=0;m<e.length;++m){const g=e[m];let O=null;if(Ct(g))!h&&g.spaceBefore&&f.push(""),Hl(t,f,g.commentBefore,h),g.comment&&(O=g.comment);else if(at(g)){const b=Ct(g.key)?g.key:null;b&&(!h&&b.spaceBefore&&f.push(""),Hl(t,f,b.commentBefore,h))}h=!1;let y=Fl(g,u,()=>O=null,()=>h=!0);O&&(y+=Do(y,s,d(O))),h&&O&&(h=!1),f.push(n+y)}let p;if(f.length===0)p=o.start+o.end;else{p=f[0];for(let m=1;m<f.length;++m){const g=f[m];p+=g?`
|
|
65
|
+
${c}${g}`:`
|
|
66
|
+
`}}return r?(p+=`
|
|
67
|
+
`+zi(d(r),c),l&&l()):h&&a&&a(),p}function xQ({items:r},e,{flowChars:t,itemIndent:n}){const{indent:o,indentStep:s,flowCollectionPadding:a,options:{commentString:l}}=e;n+=s;const c=Object.assign({},e,{indent:n,inFlow:!0,type:null});let d=!1,u=0;const h=[];for(let m=0;m<r.length;++m){const g=r[m];let O=null;if(Ct(g))g.spaceBefore&&h.push(""),Hl(e,h,g.commentBefore,!1),g.comment&&(O=g.comment);else if(at(g)){const b=Ct(g.key)?g.key:null;b&&(b.spaceBefore&&h.push(""),Hl(e,h,b.commentBefore,!1),b.comment&&(d=!0));const v=Ct(g.value)?g.value:null;v?(v.comment&&(O=v.comment),v.commentBefore&&(d=!0)):g.value==null&&(b!=null&&b.comment)&&(O=b.comment)}O&&(d=!0);let y=Fl(g,c,()=>O=null);m<r.length-1&&(y+=","),O&&(y+=Do(y,n,l(O))),!d&&(h.length>u||y.includes(`
|
|
68
|
+
`))&&(d=!0),h.push(y),u=h.length}const{start:f,end:p}=t;if(h.length===0)return f+p;if(!d){const m=h.reduce((g,O)=>g+O.length+2,2);d=e.options.lineWidth>0&&m>e.options.lineWidth}if(d){let m=f;for(const g of h)m+=g?`
|
|
69
|
+
${s}${o}${g}`:`
|
|
70
|
+
`;return`${m}
|
|
71
|
+
${o}${p}`}else return`${f}${a}${h.join(" ")}${a}${p}`}function Hl({indent:r,options:{commentString:e}},t,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const s=zi(e(n),r);t.push(s.trimStart())}}function ro(r,e){const t=Je(e)?e.value:e;for(const n of r)if(at(n)&&(n.key===e||n.key===t||Je(n.key)&&n.key.value===t))return n}class Vo extends kf{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(lo,e),this.items=[]}static from(e,t,n){const{keepUndefined:o,replacer:s}=n,a=new this(e),l=(c,d)=>{if(typeof s=="function")d=s.call(t,c,d);else if(Array.isArray(s)&&!s.includes(c))return;(d!==void 0||o)&&a.items.push(Sf(c,d,n))};if(t instanceof Map)for(const[c,d]of t)l(c,d);else if(t&&typeof t=="object")for(const c of Object.keys(t))l(c,t[c]);return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}add(e,t){var a;let n;at(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new Wr(e,e==null?void 0:e.value):n=new Wr(e.key,e.value);const o=ro(this.items,n.key),s=(a=this.schema)==null?void 0:a.sortMapEntries;if(o){if(!t)throw new Error(`Key ${n.key} already set`);Je(o.value)&&Dv(n.value)?o.value.value=n.value:o.value=n.value}else if(s){const l=this.items.findIndex(c=>s(n,c)<0);l===-1?this.items.push(n):this.items.splice(l,0,n)}else this.items.push(n)}delete(e){const t=ro(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const n=ro(this.items,e),o=n==null?void 0:n.value;return(!t&&Je(o)?o.value:o)??void 0}has(e){return!!ro(this.items,e)}set(e,t){this.add(new Wr(e,t),!0)}toJSON(e,t,n){const o=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(o);for(const s of this.items)Mv(t,o,s);return o}toString(e,t,n){if(!e)return JSON.stringify(this);for(const o of this.items)if(!at(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Xv(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}class Wv extends kf{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(ia,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=Ya(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=Ya(e);if(typeof n!="number")return;const o=this.items[n];return!t&&Je(o)?o.value:o}has(e){const t=Ya(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=Ya(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[n];Je(o)&&Dv(t)?o.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let o=0;for(const s of this.items)n.push(cr(s,String(o++),t));return n}toString(e,t,n){return e?Xv(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t)){let a=0;for(let l of t){if(typeof o=="function"){const c=t instanceof Set?l:String(a++);l=o.call(t,c,l)}s.items.push(Ll(l,void 0,n))}}return s}}function Ya(r){let e=Je(r)?r.value:r;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function _Q(r,e,t){const{replacer:n}=t,o=new Wv(r);o.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof n=="function"&&(a=n.call(e,String(s++),a));let l,c;if(Array.isArray(a))if(a.length===2)l=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const d=Object.keys(a);if(d.length===1)l=d[0],c=a[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=a;o.items.push(Sf(l,c,t))}return o}class $f extends Wv{constructor(){super(),this.add=Vo.prototype.add.bind(this),this.delete=Vo.prototype.delete.bind(this),this.get=Vo.prototype.get.bind(this),this.has=Vo.prototype.has.bind(this),this.set=Vo.prototype.set.bind(this),this.tag=$f.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const o of this.items){let s,a;if(at(o)?(s=cr(o.key,"",t),a=cr(o.value,s,t)):s=cr(o,"",t),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,a)}return n}static from(e,t,n){const o=_Q(e,t,n),s=new this;return s.items=o.items,s}}$f.tag="tag:yaml.org,2002:omap";class Pf extends Vo{constructor(e){super(e),this.tag=Pf.tag}add(e){let t;at(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Wr(e.key,null):t=new Wr(e,null),ro(this.items,t.key)||this.items.push(t)}get(e,t){const n=ro(this.items,e);return!t&&at(n)?Je(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=ro(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Wr(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let a of t)typeof o=="function"&&(a=o.call(t,a,a)),s.items.push(Sf(a,null,n));return s}}Pf.tag="tag:yaml.org,2002:set";const zv={parse:r=>{const e=JSON.parse(r);if(typeof e!="object")throw Error("Invalid JSON object");return e},parseSafe(r,e){try{return zv.parse(r)}catch(t){return typeof e=="function"?e(t):e}},stringify:r=>JSON.stringify(r)},Gl=r=>typeof r!="string"?!1:!!zv.parseSafe(r,!1);function CQ(r){if(r.trim()[0]!=="{")return r;try{return JSON.stringify(JSON.parse(r),null,2)}catch{return r}}async function wO(r,e){const t=e?await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({method:"GET",url:r})}):await fetch(r);t.status!==200&&console.error(`[fetchSpecFromUrl] Failed to fetch the spec at ${r}. ${e?"":"Trying to fetch the spec file without a proxy. The CORS headers must be set properly or the request will fail."}`);const n=e?String((await t.json()).data):await t.text();return CQ(n)}const Ge=(r,e,t=0)=>{var o,s,a,l;if(t>5)return null;if((e==null?void 0:e.mode)==="write"&&r.readOnly||(e==null?void 0:e.mode)==="read"&&r.writeOnly)return;if(Array.isArray(r.examples)&&r.examples.length>0)return r.examples[0];if(r.example!==void 0)return r.example;if(r.default!==void 0)return r.default;if(r.enum!==void 0)return r.enum[0];if(r.type==="object"||r.properties!==void 0){const c={};if(r.properties!==void 0&&Object.keys(r.properties).forEach(d=>{var f;const u=r.properties[d],h=e!=null&&e.xml?(f=u.xml)==null?void 0:f.name:void 0;c[h??d]=Ge(u,e,t+1)}),r.anyOf!==void 0?Object.assign(c,Ge(r.anyOf[0]),e,t+1):r.oneOf!==void 0?Object.assign(c,Ge(r.oneOf[0]),e,t+1):r.allOf!==void 0&&Object.assign(c,...r.allOf.map(d=>Ge(d,e,t+1))),r.additionalProperties!==void 0&&r.additionalProperties!==!1){const d=Ge(r.additionalProperties,e,t+1);return d&&typeof d=="object"&&!Array.isArray(d)?{...c,...Ge(r.additionalProperties,e,t+1)}:d===null?null:{...c,someKey:Ge(r.additionalProperties,e,t+1)}}return c}if(r.type==="array"||r.items!==void 0){const c=(s=(o=r==null?void 0:r.items)==null?void 0:o.xml)==null?void 0:s.name,d=!!(e!=null&&e.xml&&((a=r.xml)!=null&&a.wrapped)&&c);if(r.example!==void 0)return d?{[c]:r.example}:r.example;if(r.items){const u=["anyOf","oneOf","allOf"];for(const h of u){if(!r.items[h])continue;const p=(["anyOf","oneOf"].includes(h)?r.items[h].slice(0,1):r.items[h]).map(m=>Ge(m,e,t+1));return d?[{[c]:p}]:p}}if((l=r.items)!=null&&l.type){const u=Ge(r.items,e,t+1);return d?[{[c]:u}]:[u]}return[]}const n={string:(e==null?void 0:e.emptyString)??"",boolean:!0,integer:r.min??1,number:r.min??1,array:[]};if(r.type!==void 0&&n[r.type]!==void 0)return n[r.type];if(Array.isArray(r.oneOf)&&r.oneOf.length>0){const c=r.oneOf[0];return Ge(c,e,t+1)}if(Array.isArray(r.allOf)){let c=null;return r.allOf.forEach(d=>{const u=Ge(d,e,t+1);c=typeof u=="object"&&typeof c=="object"?{...c??{},...u}:Array.isArray(u)&&Array.isArray(c)?[...c??{},...u]:u}),c}return console.warn(`[getExampleFromSchema] Unknown property type "${r.type}".`),null},Uv=(...r)=>{let e={httpVersion:"1.1",method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[],bodySize:-1};r.forEach(a=>{e={...e,...a,headers:[...e.headers,...a.headers??[]],queryString:[...e.queryString,...a.queryString??[]],cookies:[...e.cookies,...a.cookies??[]]}});const t=e.headers.reduce((a,{name:l,value:c})=>(a[l]=c,a),{}),n=B0.AxiosHeaders.from(t).normalize(!0);e.headers=Object.entries(n).map(([a,l])=>({name:a,value:l}));const{path:o,...s}=e;return o?{...s,url:`${e.url}${o}`}:s};function Jo(r,e,t=!0){var s;return[...r.pathParameters||[],...((s=r.information)==null?void 0:s.parameters)||[]].filter(a=>a.in===e).filter(a=>t&&a.required||!t).map(a=>({name:a.name,description:a.description??null,value:a.example?a.example:a.schema?Ge(a.schema,{mode:"write"}):"",required:a.required??!1,enabled:a.required??!1})).sort((a,l)=>a.required&&!l.required?-1:!a.required&&l.required?1:0)}function TQ(r,e){const t=function(o,s,a){let l="";if(o instanceof Array)for(let c=0,d=o.length;c<d;c++)l+=a+t(o[c],s,a+" ")+`
|
|
72
|
+
`;else if(typeof o=="object"){let c=!1;l+=a+"<"+s;for(const d in o)d.charAt(0)=="@"?l+=" "+d.substr(1)+'="'+o[d].toString()+'"':c=!0;if(l+=c?">":"/>",c){for(const d in o)d=="#text"?l+=o[d]:d=="#cdata"?l+="<![CDATA["+o[d]+"]]>":d.charAt(0)!="@"&&(l+=t(o[d],d,a+" "));l+=(l.charAt(l.length-1)==`
|
|
73
|
+
`?a:"")+"</"+s+">"}}else l+=a+"<"+s+">"+o.toString()+"</"+s+">";return l};let n="";for(const o in r)n+=t(r[o],o,"");return e?n.replace(/\t/g,e):n.replace(/\t|\n/g,"")}const Kl=r=>{try{return JSON.stringify(typeof r=="string"?JSON.parse(r):r,null,2)}catch{return console.log("[prettyPrintJson] Error parsing JSON",r),r}};function QQ(r,e){var h,f,p,m,g,O,y,b;const n=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"].find(v=>{var w,S,k;return!!((k=(S=(w=r.information)==null?void 0:w.requestBody)==null?void 0:S.content)!=null&&k[v])}),o=(m=(p=(f=(h=r.information)==null?void 0:h.requestBody)==null?void 0:f.content)==null?void 0:p["application/json"])==null?void 0:m.examples,s=(g=o??{})==null?void 0:g[e??Object.keys(o??{})[0]];if(s)return{postData:{mimeType:"application/json",text:Kl(s==null?void 0:s.value)}};const a=Jo(r,"body",!1);if(a.length>0)return{postData:{mimeType:"application/json",text:Kl(a[0].value)}};const l=Jo(r,"formData",!1);if(l.length>0)return{postData:{mimeType:"application/x-www-form-urlencoded",params:l.map(v=>({name:v.name,value:v.value}))}};if(!n)return{postData:void 0};const c=(b=(y=(O=r.information)==null?void 0:O.requestBody)==null?void 0:y.content)==null?void 0:b[n],d=[{name:"Content-Type",value:n}],u=c!=null&&c.example?c==null?void 0:c.example:void 0;if(n==="application/json"){const v=c!=null&&c.schema?Ge(c==null?void 0:c.schema,{mode:"write"}):null,w=u??v;return{headers:d,postData:{mimeType:n,text:typeof w=="string"?w:JSON.stringify(w,null,2)}}}if(n==="application/xml"){const v=c!=null&&c.schema?Ge(c==null?void 0:c.schema,{xml:!0,mode:"write"}):null;return{headers:d,postData:{mimeType:n,text:u??TQ(v," ")}}}if(n==="application/octet-stream")return{headers:d,postData:{mimeType:n,text:"BINARY"}};if(n==="text/plain"){const v=c!=null&&c.schema?Ge(c==null?void 0:c.schema,{xml:!0,mode:"write"}):null;return{headers:d,postData:{mimeType:n,text:u??v??""}}}if(n==="application/x-www-form-urlencoded")return{headers:d,postData:{mimeType:n}};if(n==="multipart/form-data")return{headers:d,postData:{mimeType:n}}}const dh=(r,e,t)=>{let n=r.path;if((e==null?void 0:e.replaceVariables)===!0){const s=n.match(/{(.*?)}/g);s&&s.forEach(a=>{const l=a.replace(/{|}/g,"");n=n.replace(a,`__${l.toUpperCase()}__`)})}const o=QQ(r,t);return{method:r.httpVerb.toUpperCase(),path:n,headers:[...Jo(r,"header",e==null?void 0:e.requiredOnly),...(o==null?void 0:o.headers)??[]],postData:o==null?void 0:o.postData,queryString:Jo(r,"query",e==null?void 0:e.requiredOnly),cookies:Jo(r,"cookie",e==null?void 0:e.requiredOnly)}},EQ=r=>{var n;const{authState:e,request:t}=r;return e.type==="basic"&&e.basic.active?t.headers=[...t.headers??[],{name:"Authorization",value:`Basic ${btoa(`${e.basic.username}:${e.basic.password}`)}`,enabled:!0}]:e.type==="bearer"&&e.bearer.active&&(t.headers=[...t.headers??[],{name:"Authorization",value:`Bearer ${e.bearer.token}`,enabled:!0}]),t.body&&Gl(t.body)&&((n=t.headers)!=null&&n.some(s=>s.name.toLowerCase()==="content-type")||(t.headers=[...t.headers??[],{name:"Content-Type",value:"application/json; charset=utf-8",enabled:!0}]),t.body=JSON.parse(t.body)),{...t}},NQ=(r,e)=>Object.entries(e).reduce((t,[n,o])=>t.replace(`{${n}}`,o.toString()),r),AQ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let VQ=(r=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(r));for(;r--;)e+=AQ[t[r]&63];return e};async function RQ(r,e){var y;const t=rQ(r.type),n=za((r.headers??[]).filter(b=>b.enabled),"name","value"),o=nQ(r.url),s=tQ(r.path),[a,...l]=KT(o,s).split("?"),c=NQ(a,za((r.variables??[]).filter(b=>b.enabled),"name","value")),d=[];l.forEach(b=>{new URLSearchParams(b??"").forEach((v,w)=>{d.push({name:w,value:v,enabled:!0})})});const u=new URLSearchParams(za([...(r.query??[]).filter(b=>b.enabled),...d],"name","value")).toString(),h=`${c}${u?"?"+u:""}`,f={type:"none"},p=Date.now();if(r.cookies&&((y=r.cookies)==null?void 0:y.length)>0){const b=za((r.cookies??[]).filter(v=>v.enabled),"name","value");n.Cookie=Object.keys(b).map(v=>`${v}=${b[v]}`).join("; ")}const m={method:t,url:h,auth:f,headers:n,data:r.body},g=e?{method:"POST",url:e,data:m}:{method:m.method,url:m.url,headers:m.headers,data:m.data};n.cookies&&(g.withCredentials=!0),console.info(e?`${m.method} ${e} → ${m.url}`:`${m.method} ${m.url}`);const O=await B0(g).then(b=>e?{...b.data,error:!1}:{...b,statusCode:b.status,data:JSON.stringify(b.data),error:!1}).catch(b=>{const{response:v}=b;return{headers:{"content-type":"application/json; charset=utf-8"},...v,statusCode:(v==null?void 0:v.status)??0,data:JSON.stringify((v==null?void 0:v.data)??{error:b.code})}});return{sentTime:Date.now(),request:{...r,type:t,url:o,path:s},response:{...O,duration:Date.now()-p},responseId:VQ()}}const BQ=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ZQ=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],IQ=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],jQ=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],kO=(r,e,t)=>{let n=r;return typeof e=="string"||Array.isArray(e)?n=r.toLocaleString(e,t):(e===!0||t!==void 0)&&(n=r.toLocaleString(void 0,t)),n};function Jl(r,e){if(!Number.isFinite(r))throw new TypeError(`Expected a finite number, got ${typeof r}: ${r}`);e={bits:!1,binary:!1,space:!0,...e};const t=e.bits?e.binary?jQ:IQ:e.binary?ZQ:BQ,n=e.space?" ":"";if(e.signed&&r===0)return` 0${n}${t[0]}`;const o=r<0,s=o?"-":e.signed?"+":"";o&&(r=-r);let a;if(e.minimumFractionDigits!==void 0&&(a={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(a={maximumFractionDigits:e.maximumFractionDigits,...a}),r<1){const u=kO(r,e.locale,a);return s+u+n+t[0]}const l=Math.min(Math.floor(e.binary?Math.log(r)/Math.log(1024):Math.log10(r)/3),t.length-1);r/=(e.binary?1024:1e3)**l,a||(r=r.toPrecision(3));const c=kO(Number(r),e.locale,a),d=t[l];return s+c+n+d}function DQ(r){if(typeof r!="number")throw new TypeError("Expected a number");const e=r>0?Math.floor:Math.ceil;return{days:e(r/864e5),hours:e(r/36e5)%24,minutes:e(r/6e4)%60,seconds:e(r/1e3)%60,milliseconds:e(r)%1e3,microseconds:e(r*1e3)%1e3,nanoseconds:e(r*1e6)%1e3}}const qQ=(r,e)=>e===1?r:`${r}s`,MQ=1e-7;function Yv(r,e={}){if(!Number.isFinite(r))throw new TypeError("Expected a finite number");e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);const t=[],n=(a,l)=>{const c=Math.floor(a*10**l+MQ);return(Math.round(c)/10**l).toFixed(l)},o=(a,l,c,d)=>{if((t.length===0||!e.colonNotation)&&a===0&&!(e.colonNotation&&c==="m"))return;d=(d||a||"0").toString();let u,h;if(e.colonNotation){u=t.length>0?":":"",h="";const f=d.includes(".")?d.split(".")[0].length:d.length,p=t.length>0?2:1;d="0".repeat(Math.max(0,p-f))+d}else u="",h=e.verbose?" "+qQ(l,a):c;t.push(u+d+h)},s=DQ(r);if(o(Math.trunc(s.days/365),"year","y"),o(s.days%365,"day","d"),o(s.hours,"hour","h"),o(s.minutes,"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&r<1e3)if(o(s.seconds,"second","s"),e.formatSubMilliseconds)o(s.milliseconds,"millisecond","ms"),o(s.microseconds,"microsecond","µs"),o(s.nanoseconds,"nanosecond","ns");else{const a=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,l=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,c=a>=1?Math.round(a):Math.ceil(a),d=l?a.toFixed(l):c;o(Number.parseFloat(d),"millisecond","ms",d)}else{const a=r/1e3%60,l=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,c=n(a,l),d=e.keepDecimalsOnWholeSeconds?c:c.replace(/\.0+$/,"");o(Number.parseFloat(d),"second","s",d)}if(t.length===0)return"0"+(e.verbose?" milliseconds":"ms");if(e.compact)return t[0];if(typeof e.unitCount=="number"){const a=e.colonNotation?"":" ";return t.slice(0,Math.max(e.unitCount,1)).join(a)}return e.colonNotation?t.join(""):t.join(" ")}const XQ={class:"navtable-item-40 navtable-item-request"},WQ={class:"navtable-item-40 navtable-item-response"},zQ={class:"navtable-item-20 navtable-item-time"},UQ=i.defineComponent({__name:"RequestHistoryItem",props:{history:{}},setup(r){const{requestHistory:e,activeRequestId:t,setActiveResponse:n}=Zt(),o=s=>{var a;return(a=s==null?void 0:s.headers)!=null&&a["X-API-Client-Content-Length"]?Jl(parseFloat(s.headers["X-API-Client-Content-Length"])):Jl(0)};return(s,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["navtable-item",{"navtable-item__active":i.unref(t)===s.history}]),onClick:a[0]||(a[0]=l=>i.unref(n)(s.history))},[i.createElementVNode("div",XQ,[i.createElementVNode("button",{class:i.normalizeClass(["radio",i.unref(e)[s.history].request.type.toLowerCase()]),type:"button"},null,2),i.createElementVNode("span",null,[i.createElementVNode("em",null,i.toDisplayString(i.unref(e)[s.history].request.type),1),i.createTextVNode(" "+i.toDisplayString(i.unref(e)[s.history].request.url),1)])]),i.createElementVNode("div",WQ,[i.createElementVNode("span",null,i.toDisplayString(i.unref(Yv)(i.unref(e)[s.history].response.duration)),1),i.createElementVNode("span",{class:i.normalizeClass(`scalar-api-client__status--${String(i.unref(e)[s.history].response.statusCode).charAt(0)}xx`)},i.toDisplayString(i.unref(e)[s.history].response.statusCode),3),i.createElementVNode("span",null,i.toDisplayString(o(i.unref(e)[s.history].response)),1)]),i.createElementVNode("div",zQ,[i.createElementVNode("span",null,i.toDisplayString(i.unref(Bv)(i.unref(e)[s.history].sentTime)),1)])],2))}}),YQ=X(UQ,[["__scopeId","data-v-fd992042"]]),LQ={class:"navigation-content-item"},FQ={class:"navtable"},HQ={class:"navtable-table"},GQ=i.createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-40"><label for="">Request</label></div><div class="navtable-item-40"><label for="">Response</label></div><div class="navtable-item-20"><label for="">TIME</label></div></div>',1),KQ={class:"navtable-radios"},JQ=i.createStaticVNode('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>',1),eE=i.defineComponent({__name:"RequestHistory",emits:["toggle"],setup(r){const{requestHistoryOrder:e}=Zt();return(t,n)=>(i.openBlock(),i.createElementBlock("div",LQ,[i.createElementVNode("div",FQ,[i.createElementVNode("div",HQ,[GQ,i.createElementVNode("div",KQ,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(e),o=>(i.openBlock(),i.createBlock(YQ,{key:o,history:o},null,8,["history"]))),128))]),JQ])])]))}}),tE={class:"request-method-select"},rE=["disabled","value"],nE=["value"],oE=i.defineComponent({__name:"RequestMethodSelect",props:{requestMethod:{},readOnly:{type:Boolean,default:!0}},emits:["change"],setup(r){const e=["GET","POST","PUT","DELETE","PATCH"];return(t,n)=>(i.openBlock(),i.createElementBlock("div",tE,[i.createElementVNode("span",{class:i.normalizeClass(["request-method",{"request-method--disabled":t.readOnly}])},[i.createElementVNode("i",{class:i.normalizeClass(t.requestMethod.toLowerCase())},null,2),i.createElementVNode("span",null,i.toDisplayString(t.requestMethod),1)],2),i.createElementVNode("select",{disabled:t.readOnly,value:t.requestMethod.toLowerCase(),onInput:n[0]||(n[0]=o=>t.$emit("change",o.target.value))},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(e,o=>i.createElementVNode("option",{key:o,value:o.toLocaleLowerCase()},i.toDisplayString(o),9,nE)),64))],40,rE)]))}}),sE=X(oE,[["__scopeId","data-v-f4f13406"]]),xf=r=>(i.pushScopeId("data-v-3e1bab32"),r=r(),i.popScopeId(),r),iE={key:0,class:"loader"},aE={class:"url-form"},lE={class:"url-form-field"},cE=["disabled"],dE=xf(()=>i.createElementVNode("svg",{fill:"none",height:"48",viewBox:"0 0 14 14",width:"48",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("g",{id:"send-email--mail-send-email-paper-airplane"},[i.createElementVNode("path",{id:"Subtract","clip-rule":"evenodd",d:"M11.8215 0.0977331C12.1097 -0.0075178 12.422 -0.0287134 12.7219 0.0367172C13.0248 0.102803 13.3024 0.254481 13.5216 0.473719C13.7409 0.692957 13.8926 0.970537 13.9586 1.27346C14.0241 1.57338 14.0029 1.88566 13.8976 2.17389L10.3236 12.8859L10.3234 12.8866C10.2363 13.15 10.083 13.3867 9.87813 13.5739C9.67383 13.7606 9.42512 13.8917 9.15575 13.9549C8.88633 14.0206 8.60444 14.015 8.33777 13.9388C8.07134 13.8627 7.82929 13.7187 7.63532 13.5209L5.71798 11.6123L3.70392 12.6538C3.54687 12.735 3.3586 12.7272 3.20877 12.6333C3.05895 12.5395 2.96984 12.3734 2.97443 12.1967L3.057 9.01294L10.102 3.89553C10.3812 3.69267 10.4432 3.30182 10.2403 3.02255C10.0375 2.74327 9.64662 2.68133 9.36734 2.88419L2.20286 8.0884L0.473156 6.35869L0.473098 6.35864L0.472971 6.35851C0.285648 6.17132 0.147746 5.94054 0.0716498 5.68688C-0.00390565 5.43503 -0.016181 5.16847 0.0358684 4.91079C0.087985 4.62928 0.213827 4.36658 0.400607 4.14951C0.588668 3.93095 0.831681 3.76658 1.10453 3.67339L1.1079 3.67224L1.1079 3.67225L11.8215 0.0977331Z",fill:"currentColor","fill-rule":"evenodd"})])],-1)),uE=xf(()=>i.createElementVNode("span",null,"Send Request",-1)),hE=[dE,uE],fE={class:"address-bar-content"},pE={key:0,class:"history"},mE=xf(()=>i.createElementVNode("svg",{fill:"none",height:"48",viewBox:"0 0 14 14",width:"48",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("g",{id:"rewind-clock--back-return-clock-timer-countdown"},[i.createElementVNode("path",{id:"Vector 1561 (Stroke)","clip-rule":"evenodd",d:"M6.99999 2.75C7.4142 2.75 7.74999 3.08579 7.74999 3.5V7.5C7.74999 7.76345 7.61177 8.00758 7.38586 8.14312L4.88586 9.64312C4.53068 9.85623 4.06998 9.74106 3.85687 9.38587C3.64376 9.03069 3.75893 8.56999 4.11412 8.35688L6.24999 7.07536V3.5C6.24999 3.08579 6.58578 2.75 6.99999 2.75Z",fill:"currentColor","fill-rule":"evenodd"}),i.createElementVNode("path",{id:"Union","clip-rule":"evenodd",d:"M12.5 7C12.5 3.96243 10.0376 1.5 7 1.5C5.24916 1.5 3.68853 2.31796 2.68066 3.59456L3.64645 4.56034C3.96143 4.87533 3.73835 5.4139 3.29289 5.4139H0.5C0.223857 5.4139 0 5.19004 0 4.9139V2.121C0 1.67555 0.53857 1.45247 0.853553 1.76745L1.61439 2.52829C2.89781 0.984301 4.83356 0 7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.68902 14 0.916591 11.702 0.187329 8.61473C0.0921059 8.21161 0.341704 7.80762 0.744824 7.7124C1.14794 7.61717 1.55193 7.86677 1.64715 8.26989C2.22013 10.6955 4.40025 12.5 7 12.5C10.0376 12.5 12.5 10.0376 12.5 7Z",fill:"currentColor","fill-rule":"evenodd"})])],-1)),gE=i.defineComponent({__name:"AddressBar",props:{proxyUrl:{}},emits:["onSend"],setup(r,{emit:e}){const t=r,n=e,o=Xe.useMagicKeys();Xe.whenever(o.meta_enter,v);const s=i.ref(!1),a=i.ref(!1),{activeRequest:l,addRequestToHistory:c,requestHistory:d,requestHistoryOrder:u,readOnly:h,setActiveRequest:f,authState:p}=Zt(),m=Rv(),g=i.computed(()=>l.url),O=i.computed(()=>l.type),y=i.computed(()=>l.path),b=i.computed(()=>`${g.value}${y.value}`);async function v(){const $=EQ({request:{...l},authState:p});a.value=!0,n("onSend");const C=await RQ($,t.proxyUrl);C&&c(C),a.value=!1}const w=i.computed(()=>{const $=u.value[0];return d[$]?Bv(d[$].sentTime):"History"}),S=$=>{h.value||l.url+l.path!==$&&f({...l,url:$,path:""})},k=$=>{$&&f({...l,type:$.toLocaleLowerCase()})};return($,C)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[a.value?(i.openBlock(),i.createElementBlock("div",iE)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["address-bar",{"address-bar--with-history":s.value}])},[i.createElementVNode("div",aE,[i.createElementVNode("div",lE,[i.createVNode(sE,{readOnly:i.unref(h),requestMethod:O.value,onChange:k},null,8,["readOnly","requestMethod"]),i.createVNode(i.unref(Av),{class:"url-form-input",content:b.value,disableEnter:"",readOnly:i.unref(h),withoutTheme:"",withVariables:"",onChange:S},null,8,["content","readOnly"])]),i.createElementVNode("button",{class:"send-button",disabled:!b.value.trim().length,type:"submit",onClick:v},hE,8,cE)]),i.createElementVNode("div",{class:"address-bar-close",onClick:C[0]||(C[0]=E=>s.value=!1)}),i.createElementVNode("div",fE,[i.createVNode(i.unref(Vv),{state:i.unref(m),title:"Request History",variant:"history"},{default:i.withCtx(()=>[i.createVNode(eE,{showHistory:s.value,onToggle:C[1]||(C[1]=E=>s.value=!s.value)},null,8,["showHistory"])]),_:1},8,["state"])]),i.unref(u).length?(i.openBlock(),i.createElementBlock("div",pE,[i.createElementVNode("div",{class:"history-toggle",onClick:C[2]||(C[2]=E=>i.unref(m).show())},[mE,i.createElementVNode("span",null,i.toDisplayString(w.value),1)])])):i.createCommentVNode("",!0)],2)],64))}}),OE=X(gE,[["__scopeId","data-v-3e1bab32"]]),yE=i.createElementVNode("svg",{class:"scalar-api-client__toggle__icon",height:"10",viewBox:"0 0 5 10",width:"5",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"M0 10l5-5-5-5z",fill:"currentColor","fill-rule":"nonzero"})],-1),bE={class:"scalar-api-client__item__title"},vE={key:0,class:"scalar-api-client__item__options"},wE={class:"scalar-api-client__item__content"},Kr=i.defineComponent({__name:"CollapsibleSection",props:{title:{},defaultOpen:{type:Boolean,default:!0}},setup(r){const e=r,t=i.ref(null),n=i.ref(null),o=i.ref(e.defaultOpen);return i.watch(()=>e.defaultOpen,(s,a)=>{var l;s!==a&&s!==o.value&&((l=t.value)==null||l.el.click())}),(s,a)=>(i.openBlock(),i.createBlock(i.unref(we.Disclosure),{ref_key:"disclosureButton",ref:n,defaultOpen:s.defaultOpen},{default:i.withCtx(({open:l})=>[i.createElementVNode("div",{class:i.normalizeClass(["scalar-api-client__item",{"scalar-api-client__item--open":l}])},[i.createVNode(i.unref(we.DisclosureButton),{ref_key:"collapseButton",ref:t,class:"scalar-api-client__toggle",onClick:a[0]||(a[0]=c=>o.value=!o.value)},{default:i.withCtx(()=>[yE,i.createElementVNode("span",bE,i.toDisplayString(s.title),1),s.$slots.options&&l?(i.openBlock(),i.createElementBlock("div",vE,[i.renderSlot(s.$slots,"options")])):i.createCommentVNode("",!0)]),_:2},1536),i.createVNode(i.unref(we.DisclosurePanel),null,{default:i.withCtx(()=>[i.createElementVNode("div",wE,[i.renderSlot(s.$slots,"default")])]),_:3})],2)]),_:3},8,["defaultOpen"]))}}),kE=i.createElementVNode("svg",{fill:"none",height:"100%",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"m19.5 10-7.5 7.5-7.5-7.5",xmlns:"http://www.w3.org/2000/svg"})],-1),SE=["disabled","value"],$E={key:0,class:"scalar-api-client__empty-state"},PE={key:1,class:"authentication-form"},xE={class:"input input__half"},_E=i.createElementVNode("label",{for:"username"},"Username",-1),CE={class:"input input__half"},TE=i.createElementVNode("label",{for:"password"},"Password",-1),QE={class:"check"},EE=i.createElementVNode("span",{class:"checkmark"},null,-1),NE=i.createElementVNode("p",null,"Enabled",-1),AE={class:"input input__half"},VE=i.createElementVNode("label",{for:"username"},"Username",-1),RE={class:"input input__half"},BE=i.createElementVNode("label",{for:"password"},"Password",-1),ZE={class:"check"},IE=i.createElementVNode("span",{class:"checkmark"},null,-1),jE=i.createElementVNode("p",null,"Enabled",-1),DE={class:"input"},qE=i.createElementVNode("label",{for:"generatedtoken"},"Generated Token",-1),ME={class:"input"},XE=i.createElementVNode("label",{for:"discoveryurl"},"OIDC Discovery URL",-1),WE={class:"input"},zE=i.createElementVNode("label",{for:"authurl"},"Auth URL",-1),UE={class:"input"},YE=i.createElementVNode("label",{for:"accesstoken"},"Access Token URL",-1),LE={class:"input input__half"},FE=i.createElementVNode("label",{for:"clientid"},"Client ID",-1),HE={class:"input input__half"},GE=i.createElementVNode("label",{for:"clientsecret"},"Client Secret",-1),KE={class:"input"},JE=i.createElementVNode("label",{for:"scope"},"Scope",-1),eN=i.createElementVNode("button",{class:"scalar-api-client__item__content-button",type:"button"},[i.createElementVNode("span",null,"Generate Token")],-1),tN={class:"input"},rN=i.createElementVNode("label",{for:"Username"},"Token",-1),nN={class:"check"},oN=i.createElementVNode("span",{class:"checkmark"},null,-1),sN=i.createElementVNode("p",null,"Enabled",-1),iN=i.defineComponent({__name:"RequestAuth",setup(r){const e=Zt(),{authState:t}=e,n={basic:"Basic Auth",digest:"Digest Auth",oauthOne:"OAuth 1.0",oauthTwo:"OAuth 2.0",bearer:"Bearer Token",none:"None"},o=[{text:"Basic Auth",type:"basic",disabled:!1},{text:"OAuth 2.0",type:"oauthTwo",disabled:!0},{text:"Bearer Token",type:"bearer",disabled:!1},{text:"None",type:"none",disabled:!1}];return(s,a)=>(i.openBlock(),i.createBlock(i.unref(Kr),{title:"Authentication"},{options:i.withCtx(()=>[i.createElementVNode("div",null,[i.createElementVNode("span",null,[i.createTextVNode(i.toDisplayString(n[i.unref(t).type])+" ",1),kE]),i.withDirectives(i.createElementVNode("select",{"onUpdate:modelValue":a[0]||(a[0]=l=>i.unref(t).type=l),onClick:a[1]||(a[1]=i.withModifiers(()=>{},["prevent"]))},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(o,l=>i.createElementVNode("option",{key:l.type,disabled:l.disabled,value:l.type},i.toDisplayString(l.text),9,SE)),64))],512),[[i.vModelSelect,i.unref(t).type]])])]),default:i.withCtx(()=>[i.unref(t).type==="none"?(i.openBlock(),i.createElementBlock("div",$E,"No Authentication")):(i.openBlock(),i.createElementBlock("div",PE,[i.unref(t).type==="basic"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",xE,[_E,i.withDirectives(i.createElementVNode("input",{id:"username","onUpdate:modelValue":a[2]||(a[2]=l=>i.unref(t).basic.username=l),autocomplete:"off",placeholder:"Username",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).basic.username]])]),i.createElementVNode("div",CE,[TE,i.withDirectives(i.createElementVNode("input",{id:"password","onUpdate:modelValue":a[3]||(a[3]=l=>i.unref(t).basic.password=l),autocomplete:"off",placeholder:"Password",spellcheck:"false",type:"password"},null,512),[[i.vModelText,i.unref(t).basic.password]])]),i.createElementVNode("label",QE,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[4]||(a[4]=l=>i.unref(t).basic.active=l),type:"checkbox"},null,512),[[i.vModelCheckbox,i.unref(t).basic.active]]),EE,NE])],64)):i.unref(t).type==="digest"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",AE,[VE,i.withDirectives(i.createElementVNode("input",{id:"username","onUpdate:modelValue":a[5]||(a[5]=l=>i.unref(t).digest.username=l),autocomplete:"off",placeholder:"Username",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).digest.username]])]),i.createElementVNode("div",RE,[BE,i.withDirectives(i.createElementVNode("input",{id:"password","onUpdate:modelValue":a[6]||(a[6]=l=>i.unref(t).digest.password=l),autocomplete:"off",placeholder:"Password",spellcheck:"false",type:"password"},null,512),[[i.vModelText,i.unref(t).digest.password]])]),i.createElementVNode("label",ZE,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[7]||(a[7]=l=>i.unref(t).digest.active=l),type:"checkbox"},null,512),[[i.vModelCheckbox,i.unref(t).digest.active]]),IE,jE])],64)):i.unref(t).type==="oauthTwo"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createElementVNode("div",DE,[qE,i.withDirectives(i.createElementVNode("input",{id:"generatedtoken","onUpdate:modelValue":a[8]||(a[8]=l=>i.unref(t).oauthTwo.generatedToken=l),autocomplete:"off",placeholder:"Generated Token",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).oauthTwo.generatedToken]])]),i.createElementVNode("div",ME,[XE,i.withDirectives(i.createElementVNode("input",{id:"discoveryurl","onUpdate:modelValue":a[9]||(a[9]=l=>i.unref(t).oauthTwo.discoveryURL=l),autocomplete:"off",placeholder:"Discovery URL",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).oauthTwo.discoveryURL]])]),i.createElementVNode("div",WE,[zE,i.withDirectives(i.createElementVNode("input",{id:"authurl","onUpdate:modelValue":a[10]||(a[10]=l=>i.unref(t).oauthTwo.authURL=l),autocomplete:"off",placeholder:"Auth URL",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).oauthTwo.authURL]])]),i.createElementVNode("div",UE,[YE,i.withDirectives(i.createElementVNode("input",{id:"accesstoken","onUpdate:modelValue":a[11]||(a[11]=l=>i.unref(t).oauthTwo.accessTokenURL=l),autocomplete:"off",placeholder:"Access Token URL",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).oauthTwo.accessTokenURL]])]),i.createElementVNode("div",LE,[FE,i.withDirectives(i.createElementVNode("input",{id:"clientid","onUpdate:modelValue":a[12]||(a[12]=l=>i.unref(t).oauthTwo.clientID=l),autocomplete:"off",placeholder:"Client ID",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).oauthTwo.clientID]])]),i.createElementVNode("div",HE,[GE,i.withDirectives(i.createElementVNode("input",{id:"clientsecret","onUpdate:modelValue":a[13]||(a[13]=l=>i.unref(t).oauthTwo.clientSecret=l),autocomplete:"off",placeholder:"Client Secret",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).oauthTwo.clientSecret]])]),i.createElementVNode("div",KE,[JE,i.withDirectives(i.createElementVNode("input",{id:"scope","onUpdate:modelValue":a[14]||(a[14]=l=>i.unref(t).oauthTwo.scope=l),autocomplete:"off",placeholder:"Scope",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).oauthTwo.scope]])]),eN],64)):i.unref(t).type==="bearer"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[i.createElementVNode("div",tN,[rN,i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[15]||(a[15]=l=>i.unref(t).bearer.token=l),autocomplete:"off",placeholder:"Username",spellcheck:"false",type:"text"},null,512),[[i.vModelText,i.unref(t).bearer.token]])]),i.createElementVNode("label",nN,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[16]||(a[16]=l=>i.unref(t).bearer.active=l),type:"checkbox"},null,512),[[i.vModelCheckbox,i.unref(t).bearer.active]]),oN,sN])],64)):i.createCommentVNode("",!0)]))]),_:1}))}});function Lv(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=Lv(r[e]))&&(n&&(n+=" "),n+=t);else for(e in r)r[e]&&(n&&(n+=" "),n+=e);return n}function zd(){for(var r,e,t=0,n="";t<arguments.length;)(r=arguments[t++])&&(e=Lv(r))&&(n&&(n+=" "),n+=e);return n}const SO=r=>typeof r=="boolean"?"".concat(r):r===0?"0":r,aN=r=>{const e=function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l,c;return typeof(r==null||(l=r.hooks)===null||l===void 0?void 0:l["cx:done"])<"u"?r==null?void 0:r.hooks["cx:done"](zd(s)):typeof(r==null||(c=r.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?r==null?void 0:r.hooks.onComplete(zd(s)):zd(s)};return{compose:function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return l=>{const c=Object.fromEntries(Object.entries(l||{}).filter(d=>{let[u]=d;return!["class","className"].includes(u)}));return e(s.map(d=>d(c)),l==null?void 0:l.class,l==null?void 0:l.className)}},cva:o=>s=>{var a;if((o==null?void 0:o.variants)==null)return e(o==null?void 0:o.base,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:l,defaultVariants:c}=o,d=Object.keys(l).map(f=>{const p=s==null?void 0:s[f],m=c==null?void 0:c[f],g=SO(p)||SO(m);return l[f][g]}),u={...c,...s&&Object.entries(s).reduce((f,p)=>{let[m,g]=p;return typeof g>"u"?f:{...f,[m]:g}},{})},h=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((f,p)=>{let{class:m,className:g,...O}=p;return Object.entries(O).every(y=>{let[b,v]=y;const w=u[b];return Array.isArray(v)?v.includes(w):w===v})?[...f,m,g]:f},[]);return e(o==null?void 0:o.base,d,h,s==null?void 0:s.class,s==null?void 0:s.className)},cx:e}},_f="-";function lN(r){const e=dN(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;function o(a){const l=a.split(_f);return l[0]===""&&l.length!==1&&l.shift(),Fv(l,e)||cN(a)}function s(a,l){const c=t[a]||[];return l&&n[a]?[...c,...n[a]]:c}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Fv(r,e){var a;if(r.length===0)return e.classGroupId;const t=r[0],n=e.nextPart.get(t),o=n?Fv(r.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const s=r.join(_f);return(a=e.validators.find(({validator:l})=>l(s)))==null?void 0:a.classGroupId}const $O=/^\[(.+)\]$/;function cN(r){if($O.test(r)){const e=$O.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function dN(r){const{theme:e,prefix:t}=r,n={nextPart:new Map,validators:[]};return hN(Object.entries(r.classGroups),t).forEach(([s,a])=>{uh(a,n,s,e)}),n}function uh(r,e,t,n){r.forEach(o=>{if(typeof o=="string"){const s=o===""?e:PO(e,o);s.classGroupId=t;return}if(typeof o=="function"){if(uN(o)){uh(o(n),e,t,n);return}e.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([s,a])=>{uh(a,PO(e,s),t,n)})})}function PO(r,e){let t=r;return e.split(_f).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t}function uN(r){return r.isThemeGetter}function hN(r,e){return e?r.map(([t,n])=>{const o=n.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,l])=>[e+a,l])):s);return[t,o]}):r}function fN(r){if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;function o(s,a){t.set(s,a),e++,e>r&&(e=0,n=t,t=new Map)}return{get(s){let a=t.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return o(s,a),a},set(s,a){t.has(s)?t.set(s,a):o(s,a)}}}const Hv="!";function pN(r){const e=r.separator,t=e.length===1,n=e[0],o=e.length;return function(a){const l=[];let c=0,d=0,u;for(let g=0;g<a.length;g++){let O=a[g];if(c===0){if(O===n&&(t||a.slice(g,g+o)===e)){l.push(a.slice(d,g)),d=g+o;continue}if(O==="/"){u=g;continue}}O==="["?c++:O==="]"&&c--}const h=l.length===0?a:a.substring(d),f=h.startsWith(Hv),p=f?h.substring(1):h,m=u&&u>d?u-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}}}function mN(r){if(r.length<=1)return r;const e=[];let t=[];return r.forEach(n=>{n[0]==="["?(e.push(...t.sort(),n),t=[]):t.push(n)}),e.push(...t.sort()),e}function gN(r){return{cache:fN(r.cacheSize),splitModifiers:pN(r),...lN(r)}}const ON=/\s+/;function yN(r,e){const{splitModifiers:t,getClassGroupId:n,getConflictingClassGroupIds:o}=e,s=new Set;return r.trim().split(ON).map(a=>{const{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=t(a);let h=n(u?d.substring(0,u):d),f=!!u;if(!h){if(!u)return{isTailwindClass:!1,originalClassName:a};if(h=n(d),!h)return{isTailwindClass:!1,originalClassName:a};f=!1}const p=mN(l).join(":");return{isTailwindClass:!0,modifierId:c?p+Hv:p,classGroupId:h,originalClassName:a,hasPostfixModifier:f}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:l,classGroupId:c,hasPostfixModifier:d}=a,u=l+c;return s.has(u)?!1:(s.add(u),o(c,d).forEach(h=>s.add(l+h)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function bN(){let r=0,e,t,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Gv(e))&&(n&&(n+=" "),n+=t);return n}function Gv(r){if(typeof r=="string")return r;let e,t="";for(let n=0;n<r.length;n++)r[n]&&(e=Gv(r[n]))&&(t&&(t+=" "),t+=e);return t}function xO(r,...e){let t,n,o,s=a;function a(c){const d=e.reduce((u,h)=>h(u),r());return t=gN(d),n=t.cache.get,o=t.cache.set,s=l,l(c)}function l(c){const d=n(c);if(d)return d;const u=yN(c,t);return o(c,u),u}return function(){return s(bN.apply(null,arguments))}}function Ae(r){const e=t=>t[r]||[];return e.isThemeGetter=!0,e}const Kv=/^\[(?:([a-z-]+):)?(.+)\]$/i,vN=/^\d+\/\d+$/,wN=new Set(["px","full","screen"]),kN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,SN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$N=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,PN=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Zr(r){return no(r)||wN.has(r)||vN.test(r)}function rn(r){return ks(r,"length",VN)}function no(r){return!!r&&!Number.isNaN(Number(r))}function La(r){return ks(r,"number",no)}function ri(r){return!!r&&Number.isInteger(Number(r))}function _N(r){return r.endsWith("%")&&no(r.slice(0,-1))}function ce(r){return Kv.test(r)}function nn(r){return kN.test(r)}const CN=new Set(["length","size","percentage"]);function TN(r){return ks(r,CN,Jv)}function QN(r){return ks(r,"position",Jv)}const EN=new Set(["image","url"]);function NN(r){return ks(r,EN,BN)}function AN(r){return ks(r,"",RN)}function ni(){return!0}function ks(r,e,t){const n=Kv.exec(r);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):t(n[2]):!1}function VN(r){return SN.test(r)&&!$N.test(r)}function Jv(){return!1}function RN(r){return PN.test(r)}function BN(r){return xN.test(r)}function _O(){const r=Ae("colors"),e=Ae("spacing"),t=Ae("blur"),n=Ae("brightness"),o=Ae("borderColor"),s=Ae("borderRadius"),a=Ae("borderSpacing"),l=Ae("borderWidth"),c=Ae("contrast"),d=Ae("grayscale"),u=Ae("hueRotate"),h=Ae("invert"),f=Ae("gap"),p=Ae("gradientColorStops"),m=Ae("gradientColorStopPositions"),g=Ae("inset"),O=Ae("margin"),y=Ae("opacity"),b=Ae("padding"),v=Ae("saturate"),w=Ae("scale"),S=Ae("sepia"),k=Ae("skew"),$=Ae("space"),C=Ae("translate"),E=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",ce,e],R=()=>[ce,e],K=()=>["",Zr,rn],F=()=>["auto",no,ce],ge=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ee=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],fe=()=>["start","end","center","between","around","evenly","stretch"],le=()=>["","0",ce],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[no,La],Z=()=>[no,ce];return{cacheSize:500,separator:":",theme:{colors:[ni],spacing:[Zr,rn],blur:["none","",nn,ce],brightness:A(),borderColor:[r],borderRadius:["none","","full",nn,ce],borderSpacing:R(),borderWidth:K(),contrast:A(),grayscale:le(),hueRotate:Z(),invert:le(),gap:R(),gradientColorStops:[r],gradientColorStopPositions:[_N,rn],inset:q(),margin:q(),opacity:A(),padding:R(),saturate:A(),scale:A(),sepia:le(),skew:Z(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[nn]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ge(),ce]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ri,ce]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",ri,ce]}],"grid-cols":[{"grid-cols":[ni]}],"col-start-end":[{col:["auto",{span:["full",ri,ce]},ce]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[ni]}],"row-start-end":[{row:["auto",{span:[ri,ce]},ce]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[O]}],mx:[{mx:[O]}],my:[{my:[O]}],ms:[{ms:[O]}],me:[{me:[O]}],mt:[{mt:[O]}],mr:[{mr:[O]}],mb:[{mb:[O]}],ml:[{ml:[O]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,e]}],"min-w":[{"min-w":[ce,e,"min","max","fit"]}],"max-w":[{"max-w":[ce,e,"none","full","min","max","fit","prose",{screen:[nn]},nn]}],h:[{h:[ce,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,e,"auto","min","max","fit"]}],"font-size":[{text:["base",nn,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",La]}],"font-family":[{font:[ni]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",no,La]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Zr,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Zr,rn]}],"underline-offset":[{"underline-offset":["auto",Zr,ce]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ge(),QN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",TN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},NN]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...Ee(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:Ee()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Ee()]}],"outline-offset":[{"outline-offset":[Zr,ce]}],"outline-w":[{outline:[Zr,rn]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Zr,rn]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",nn,AN]}],"shadow-color":[{shadow:[ni]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":se()}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",nn,ce]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ri,ce]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Zr,rn,La]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function ZN(r,{cacheSize:e,prefix:t,separator:n,extend:o={},override:s={}}){bl(r,"cacheSize",e),bl(r,"prefix",t),bl(r,"separator",n);for(const a in s)IN(r[a],s[a]);for(const a in o)jN(r[a],o[a]);return r}function bl(r,e,t){t!==void 0&&(r[e]=t)}function IN(r,e){if(e)for(const t in e)bl(r,t,e[t])}function jN(r,e){if(e)for(const t in e){const n=e[t];n!==void 0&&(r[t]=(r[t]||[]).concat(n))}}function DN(r,...e){return typeof r=="function"?xO(_O,r,...e):xO(()=>ZN(_O(),r),...e)}var CO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qN(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var e1={exports:{}};(function(r){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
74
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
75
|
+
*
|
|
76
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
77
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
78
|
+
* @namespace
|
|
79
|
+
* @public
|
|
80
|
+
*/var t=function(n){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function b(v){return v instanceof c?new c(v.type,b(v.content),v.alias):Array.isArray(v)?v.map(b):v.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(b){return Object.prototype.toString.call(b).slice(8,-1)},objId:function(b){return b.__id||Object.defineProperty(b,"__id",{value:++s}),b.__id},clone:function b(v,w){w=w||{};var S,k;switch(l.util.type(v)){case"Object":if(k=l.util.objId(v),w[k])return w[k];S={},w[k]=S;for(var $ in v)v.hasOwnProperty($)&&(S[$]=b(v[$],w));return S;case"Array":return k=l.util.objId(v),w[k]?w[k]:(S=[],w[k]=S,v.forEach(function(C,E){S[E]=b(C,w)}),S);default:return v}},getLanguage:function(b){for(;b;){var v=o.exec(b.className);if(v)return v[1].toLowerCase();b=b.parentElement}return"none"},setLanguage:function(b,v){b.className=b.className.replace(RegExp(o,"gi"),""),b.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(S){var b=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(b){var v=document.getElementsByTagName("script");for(var w in v)if(v[w].src==b)return v[w]}return null}},isActive:function(b,v,w){for(var S="no-"+v;b;){var k=b.classList;if(k.contains(v))return!0;if(k.contains(S))return!1;b=b.parentElement}return!!w}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(b,v){var w=l.util.clone(l.languages[b]);for(var S in v)w[S]=v[S];return w},insertBefore:function(b,v,w,S){S=S||l.languages;var k=S[b],$={};for(var C in k)if(k.hasOwnProperty(C)){if(C==v)for(var E in w)w.hasOwnProperty(E)&&($[E]=w[E]);w.hasOwnProperty(C)||($[C]=k[C])}var B=S[b];return S[b]=$,l.languages.DFS(l.languages,function(q,R){R===B&&q!=b&&(this[q]=$)}),$},DFS:function b(v,w,S,k){k=k||{};var $=l.util.objId;for(var C in v)if(v.hasOwnProperty(C)){w.call(v,C,v[C],S||C);var E=v[C],B=l.util.type(E);B==="Object"&&!k[$(E)]?(k[$(E)]=!0,b(E,w,null,k)):B==="Array"&&!k[$(E)]&&(k[$(E)]=!0,b(E,w,C,k))}}},plugins:{},highlightAll:function(b,v){l.highlightAllUnder(document,b,v)},highlightAllUnder:function(b,v,w){var S={callback:w,container:b,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),l.hooks.run("before-all-elements-highlight",S);for(var k=0,$;$=S.elements[k++];)l.highlightElement($,v===!0,S.callback)},highlightElement:function(b,v,w){var S=l.util.getLanguage(b),k=l.languages[S];l.util.setLanguage(b,S);var $=b.parentElement;$&&$.nodeName.toLowerCase()==="pre"&&l.util.setLanguage($,S);var C=b.textContent,E={element:b,language:S,grammar:k,code:C};function B(R){E.highlightedCode=R,l.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,l.hooks.run("after-highlight",E),l.hooks.run("complete",E),w&&w.call(E.element)}if(l.hooks.run("before-sanity-check",E),$=E.element.parentElement,$&&$.nodeName.toLowerCase()==="pre"&&!$.hasAttribute("tabindex")&&$.setAttribute("tabindex","0"),!E.code){l.hooks.run("complete",E),w&&w.call(E.element);return}if(l.hooks.run("before-highlight",E),!E.grammar){B(l.util.encode(E.code));return}if(v&&n.Worker){var q=new Worker(l.filename);q.onmessage=function(R){B(R.data)},q.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else B(l.highlight(E.code,E.grammar,E.language))},highlight:function(b,v,w){var S={code:b,grammar:v,language:w};if(l.hooks.run("before-tokenize",S),!S.grammar)throw new Error('The language "'+S.language+'" has no grammar.');return S.tokens=l.tokenize(S.code,S.grammar),l.hooks.run("after-tokenize",S),c.stringify(l.util.encode(S.tokens),S.language)},tokenize:function(b,v){var w=v.rest;if(w){for(var S in w)v[S]=w[S];delete v.rest}var k=new h;return f(k,k.head,b),u(b,k,v,k.head,0),m(k)},hooks:{all:{},add:function(b,v){var w=l.hooks.all;w[b]=w[b]||[],w[b].push(v)},run:function(b,v){var w=l.hooks.all[b];if(!(!w||!w.length))for(var S=0,k;k=w[S++];)k(v)}},Token:c};n.Prism=l;function c(b,v,w,S){this.type=b,this.content=v,this.alias=w,this.length=(S||"").length|0}c.stringify=function b(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var S="";return v.forEach(function(B){S+=b(B,w)}),S}var k={type:v.type,content:b(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},$=v.alias;$&&(Array.isArray($)?Array.prototype.push.apply(k.classes,$):k.classes.push($)),l.hooks.run("wrap",k);var C="";for(var E in k.attributes)C+=" "+E+'="'+(k.attributes[E]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+C+">"+k.content+"</"+k.tag+">"};function d(b,v,w,S){b.lastIndex=v;var k=b.exec(w);if(k&&S&&k[1]){var $=k[1].length;k.index+=$,k[0]=k[0].slice($)}return k}function u(b,v,w,S,k,$){for(var C in w)if(!(!w.hasOwnProperty(C)||!w[C])){var E=w[C];E=Array.isArray(E)?E:[E];for(var B=0;B<E.length;++B){if($&&$.cause==C+","+B)return;var q=E[B],R=q.inside,K=!!q.lookbehind,F=!!q.greedy,ge=q.alias;if(F&&!q.pattern.global){var Ee=q.pattern.toString().match(/[imsuy]*$/)[0];q.pattern=RegExp(q.pattern.source,Ee+"g")}for(var se=q.pattern||q,fe=S.next,le=k;fe!==v.tail&&!($&&le>=$.reach);le+=fe.value.length,fe=fe.next){var M=fe.value;if(v.length>b.length)return;if(!(M instanceof c)){var A=1,Z;if(F){if(Z=d(se,le,b,K),!Z||Z.index>=b.length)break;var I=Z.index,V=Z.index+Z[0].length,P=le;for(P+=fe.value.length;I>=P;)fe=fe.next,P+=fe.value.length;if(P-=fe.value.length,le=P,fe.value instanceof c)continue;for(var Q=fe;Q!==v.tail&&(P<V||typeof Q.value=="string");Q=Q.next)A++,P+=Q.value.length;A--,M=b.slice(le,P),Z.index-=le}else if(Z=d(se,0,M,K),!Z)continue;var I=Z.index,z=Z[0],Y=M.slice(0,I),de=M.slice(I+z.length),ue=le+M.length;$&&ue>$.reach&&($.reach=ue);var $e=fe.prev;Y&&($e=f(v,$e,Y),le+=Y.length),p(v,$e,A);var jt=new c(C,R?l.tokenize(z,R):z,ge,z);if(fe=f(v,$e,jt),de&&f(v,fe,de),A>1){var mr={cause:C+","+B,reach:ue};u(b,v,w,fe.prev,le,mr),$&&mr.reach>$.reach&&($.reach=mr.reach)}}}}}}function h(){var b={value:null,prev:null,next:null},v={value:null,prev:b,next:null};b.next=v,this.head=b,this.tail=v,this.length=0}function f(b,v,w){var S=v.next,k={value:w,prev:v,next:S};return v.next=k,S.prev=k,b.length++,k}function p(b,v,w){for(var S=v.next,k=0;k<w&&S!==b.tail;k++)S=S.next;v.next=S,S.prev=v,b.length-=k}function m(b){for(var v=[],w=b.head.next;w!==b.tail;)v.push(w.value),w=w.next;return v}if(!n.document)return n.addEventListener&&(l.disableWorkerMessageHandler||n.addEventListener("message",function(b){var v=JSON.parse(b.data),w=v.language,S=v.code,k=v.immediateClose;n.postMessage(l.highlight(S,l.languages[w],w)),k&&n.close()},!1)),l;var g=l.util.currentScript();g&&(l.filename=g.src,g.hasAttribute("data-manual")&&(l.manual=!0));function O(){l.manual||l.highlightAll()}if(!l.manual){var y=document.readyState;y==="loading"||y==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",O):window.requestAnimationFrame?window.requestAnimationFrame(O):window.setTimeout(O,16)}return l}(e);r.exports&&(r.exports=t),typeof CO<"u"&&(CO.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(o,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};l["language-"+s]={pattern:/[\s\S]+/,inside:t.languages[s]};var c={};c[o]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:l},t.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,o){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:t.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(n){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var s=n.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(typeof t>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n="Loading…",o=function(g,O){return"✖ Error "+g+" while fetching file: "+O},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",d="loaded",u="failed",h="pre[data-src]:not(["+l+'="'+d+'"]):not(['+l+'="'+c+'"])';function f(g,O,y){var b=new XMLHttpRequest;b.open("GET",g,!0),b.onreadystatechange=function(){b.readyState==4&&(b.status<400&&b.responseText?O(b.responseText):b.status>=400?y(o(b.status,b.statusText)):y(s))},b.send(null)}function p(g){var O=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(O){var y=Number(O[1]),b=O[2],v=O[3];return b?v?[y,Number(v)]:[y,void 0]:[y,y]}}t.hooks.add("before-highlightall",function(g){g.selector+=", "+h}),t.hooks.add("before-sanity-check",function(g){var O=g.element;if(O.matches(h)){g.code="",O.setAttribute(l,c);var y=O.appendChild(document.createElement("CODE"));y.textContent=n;var b=O.getAttribute("data-src"),v=g.language;if(v==="none"){var w=(/\.(\w+)$/.exec(b)||[,"none"])[1];v=a[w]||w}t.util.setLanguage(y,v),t.util.setLanguage(O,v);var S=t.plugins.autoloader;S&&S.loadLanguages(v),f(b,function(k){O.setAttribute(l,d);var $=p(O.getAttribute("data-range"));if($){var C=k.split(/\r\n?|\n/g),E=$[0],B=$[1]==null?C.length:$[1];E<0&&(E+=C.length),E=Math.max(0,Math.min(E-1,C.length)),B<0&&(B+=C.length),B=Math.max(0,Math.min(B,C.length)),k=C.slice(E,B).join(`
|
|
81
|
+
`),O.hasAttribute("data-start")||O.setAttribute("data-start",String(E+1))}y.textContent=k,t.highlightElement(y)},function(k){O.setAttribute(l,u),y.textContent=k})}}),t.plugins.fileHighlight={highlight:function(O){for(var y=(O||document).querySelectorAll(h),b=0,v;v=y[b++];)t.highlightElement(v)}};var m=!1;t.fileHighlight=function(){m||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),m=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(e1);var MN=e1.exports;const Fa=qN(MN),hh="scalar-component",XN=DN({extend:{classGroups:{[hh]:[hh]}}}),{cva:Cf,cx:Tc,compose:V9}=aN({hooks:{onComplete:r=>`${XN(r,hh)}`}}),WN=i.createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-42a08e16></path>',5),zN={key:0,class:"circular-loader"},UN=i.defineComponent({__name:"ScalarLoading",props:{loadingState:{},size:{default:"24px"}},setup(r){return i.useCssVars(e=>({"8d3a1414":e.size})),(e,t)=>e.loadingState?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(Tc)("loader-wrapper"))},[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["svg-loader",{"icon-is-valid":e.loadingState.isValid,"icon-is-invalid":e.loadingState.isInvalid}]),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[WN,e.loadingState.isLoading?(i.openBlock(),i.createElementBlock("g",zN,[i.createElementVNode("circle",{class:i.normalizeClass(["loader-path",{"loader-path-off":e.loadingState.isValid||e.loadingState.isInvalid}]),cx:"50",cy:"50",fill:"none",r:"20","stroke-width":"2"},null,2)])):i.createCommentVNode("",!0)],2))],2)):i.createCommentVNode("",!0)}}),YN=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},LN=YN(UN,[["__scopeId","data-v-42a08e16"]]),t1={solid:["scalar-button-solid","bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"],outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-back-2"],ghost:["scalar-button-ghost","bg-transparent text-fore-3 active:text-fore-2 hocus:text-fore-2"],danger:["scalar-button-danger","bg-error text-white active:brightness-90 hocus:brightness-90"]},FN=Cf({base:"scalar-button row cursor-pointer items-center justify-center rounded font-medium",variants:{disabled:{true:"bg-background-2 text-color-3 cursor-not-allowed shadow-none"},fullWidth:{true:"w-full"},size:{md:"h-10 px-6 text-sm"},variant:t1},compoundVariants:[{disabled:!0,variant:"ghost",class:"bg-transparent text-ghost"}]}),HN=["ariaDisabled"],GN={key:0,class:"mr-2 h-4 w-4"},KN={key:1,class:"ml-2"},TO=i.defineComponent({inheritAttrs:!1,__name:"ScalarButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},size:{default:"md"},variant:{default:"solid"}},setup(r){const e=i.computed(()=>{const{class:t,...n}=i.useAttrs();return{className:t||"",rest:n}});return(t,n)=>(i.openBlock(),i.createElementBlock("button",i.mergeProps(e.value.rest,{ariaDisabled:t.disabled||void 0,class:i.unref(Tc)(i.unref(FN)({fullWidth:t.fullWidth,disabled:t.disabled,size:t.size,variant:t.variant}),{"pl-9 pr-3":t.loading},`${e.value.className}`),type:"button"}),[t.$slots.icon?(i.openBlock(),i.createElementBlock("div",GN,[i.renderSlot(t.$slots,"icon")])):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"default"),t.loading?(i.openBlock(),i.createElementBlock("div",KN,[i.createVNode(i.unref(LN),{loadingState:t.loading,size:"20px"},null,8,["loadingState"])])):i.createCommentVNode("",!0)],16,HN))}});(function(r){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:t,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.variable,function:{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;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},t.inside=r.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=n.variable[1].inside,a=0;a<o.length;a++)s[o[a]]=r.languages.bash[o[a]];r.languages.sh=r.languages.bash,r.languages.shell=r.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(){if(typeof Prism>"u"||typeof document>"u")return;var r="line-numbers",e=/\n(?!$)/g,t=Prism.plugins.lineNumbers={getLine:function(a,l){if(!(a.tagName!=="PRE"||!a.classList.contains(r))){var c=a.querySelector(".line-numbers-rows");if(c){var d=parseInt(a.getAttribute("data-start"),10)||1,u=d+(c.children.length-1);l<d&&(l=d),l>u&&(l=u);var h=l-d;return c.children[h]}}},resize:function(a){n([a])},assumeViewportIndependence:!0};function n(a){if(a=a.filter(function(c){var d=o(c),u=d["white-space"];return u==="pre-wrap"||u==="pre-line"}),a.length!=0){var l=a.map(function(c){var d=c.querySelector("code"),u=c.querySelector(".line-numbers-rows");if(!(!d||!u)){var h=c.querySelector(".line-numbers-sizer"),f=d.textContent.split(e);h||(h=document.createElement("span"),h.className="line-numbers-sizer",d.appendChild(h)),h.innerHTML="0",h.style.display="block";var p=h.getBoundingClientRect().height;return h.innerHTML="",{element:c,lines:f,lineHeights:[],oneLinerHeight:p,sizer:h}}}).filter(Boolean);l.forEach(function(c){var d=c.sizer,u=c.lines,h=c.lineHeights,f=c.oneLinerHeight;h[u.length-1]=void 0,u.forEach(function(p,m){if(p&&p.length>1){var g=d.appendChild(document.createElement("span"));g.style.display="block",g.textContent=p}else h[m]=f})}),l.forEach(function(c){for(var d=c.sizer,u=c.lineHeights,h=0,f=0;f<u.length;f++)u[f]===void 0&&(u[f]=d.children[h++].getBoundingClientRect().height)}),l.forEach(function(c){var d=c.sizer,u=c.element.querySelector(".line-numbers-rows");d.style.display="none",d.innerHTML="",c.lineHeights.forEach(function(h,f){u.children[f].style.height=h+"px"})})}}function o(a){return a?window.getComputedStyle?getComputedStyle(a):a.currentStyle||null:null}var s=void 0;window.addEventListener("resize",function(){t.assumeViewportIndependence&&s===window.innerWidth||(s=window.innerWidth,n(Array.prototype.slice.call(document.querySelectorAll("pre."+r))))}),Prism.hooks.add("complete",function(a){if(a.code){var l=a.element,c=l.parentNode;if(!(!c||!/pre/i.test(c.nodeName))&&!l.querySelector(".line-numbers-rows")&&Prism.util.isActive(l,r)){l.classList.remove(r),c.classList.add(r);var d=a.code.match(e),u=d?d.length+1:1,h,f=new Array(u+1).join("<span></span>");h=document.createElement("span"),h.setAttribute("aria-hidden","true"),h.className="line-numbers-rows",h.innerHTML=f,c.hasAttribute("data-start")&&(c.style.counterReset="linenumber "+(parseInt(c.getAttribute("data-start"),10)-1)),a.element.appendChild(h),n([c]),Prism.hooks.run("line-numbers",a)}}}),Prism.hooks.add("line-numbers",function(a){a.plugins=a.plugins||{},a.plugins.lineNumbers=!0})})();const JN=["innerHTML"],Dr=i.defineComponent({__name:"ScalarCodeBlock",props:{content:{},lang:{default:"js"},lineNumbers:{type:Boolean,default:!1},hideCredentials:{}},setup(r){const e=r,{plugins:t,highlightElement:n}=Fa;e.hideCredentials&&Fa.hooks.add("wrap",function(l){if(!e.hideCredentials)return;let c=!1;typeof e.hideCredentials=="string"?l.content.includes(e.hideCredentials)&&(c=!0):Array.isArray(e.hideCredentials)&&(c=e.hideCredentials.some(d=>l.content.includes(d))),c&&(l.content=l.content.replace(/<span class="credentials">.*?<\/span>/g,d=>d.replace(/<span class="credentials">|<\/span>/g,"")),l.content=l.content.replace(new RegExp(typeof e.hideCredentials=="string"?e.hideCredentials:e.hideCredentials.join("|"),"g"),d=>`<span class="credentials">${d}</span>`))});const o=i.ref(null),s=i.ref(""),a=i.computed(()=>e.lang==="node"?"js":e.lang);return i.watch(()=>[e.lang,e.content],()=>{o.value&&i.nextTick(()=>n(o.value))}),i.onServerPrefetch(async()=>{const l=Fa.highlight(typeof e.content=="object"?JSON.stringify(e.content):e.content,Fa.languages[a.value],a.value);s.value=l}),i.onMounted(async()=>{o.value&&n(o.value),await Promise.resolve().then(()=>require("./prism-autoloader-Dlh8Vzlw--ejn04HW.cjs")),t.autoloader.languages_path="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/"}),(l,c)=>s.value?(i.openBlock(),i.createElementBlock("pre",{key:0,class:i.normalizeClass([`scalar-component scalar-codeblock-pre language-${a.value}`,{"line-numbers":l.lineNumbers}])},[i.createElementVNode("code",{ref_key:"el",ref:o,class:i.normalizeClass(`scalar-codeblock-code language-${a.value}`),innerHTML:s.value},null,10,JN)],2)):(i.openBlock(),i.createElementBlock("pre",{key:1,class:i.normalizeClass(["scalar-component scalar-codeblock-pre",{"line-numbers":l.lineNumbers}])},[i.createElementVNode("code",{ref_key:"el",ref:o,class:i.normalizeClass(`scalar-codeblock-code lang-${a.value}`)},i.toDisplayString(l.content),3)],2))}}),QO=Object.assign({"./Add.svg":()=>Promise.resolve().then(()=>require("./Add-MwmVL5-v-Cpy9xzNt.cjs")),"./CheckMark.svg":()=>Promise.resolve().then(()=>require("./CheckMark-t0gl4N9U-BSJdmSYZ.cjs")),"./ChevronDown.svg":()=>Promise.resolve().then(()=>require("./ChevronDown-CSOB0535-CX_iXGyG.cjs")),"./ChevronLeft.svg":()=>Promise.resolve().then(()=>require("./ChevronLeft-DusxsQw--DJdG5EsS.cjs")),"./ChevronRight.svg":()=>Promise.resolve().then(()=>require("./ChevronRight-DgANAl_6-CJaEQR4M.cjs")),"./ChevronUp.svg":()=>Promise.resolve().then(()=>require("./ChevronUp-BbfQZGKP-CV9n1jER.cjs")),"./Clipboard.svg":()=>Promise.resolve().then(()=>require("./Clipboard-CU_KxGEv-jXeM-Shn.cjs")),"./Close.svg":()=>Promise.resolve().then(()=>require("./Close-DFM1qMQH-DcOjuJhp.cjs")),"./DarkMode.svg":()=>Promise.resolve().then(()=>require("./DarkMode-CBsV8Q_I-KODSbuOz.cjs")),"./Ellipses.svg":()=>Promise.resolve().then(()=>require("./Ellipses-Bo_X36Hx-1Rf8jX_Q.cjs")),"./ExternalLink.svg":()=>Promise.resolve().then(()=>require("./ExternalLink-D5zCsWas-DtcGwFBe.cjs")),"./GitHub.svg":()=>Promise.resolve().then(()=>require("./GitHub-NdE6Zs9k-CDcqenD_.cjs")),"./LightDarkModeToggle.svg":()=>Promise.resolve().then(()=>require("./LightDarkModeToggle-BkvMimDa-D2TvUWMc.cjs")),"./LightMode.svg":()=>Promise.resolve().then(()=>require("./LightMode-Btz6vyT_-BTswDMO7.cjs")),"./Logo.svg":()=>Promise.resolve().then(()=>require("./Logo-mtzeKD8M-BPvZdgPX.cjs")),"./LogoAPI.svg":()=>Promise.resolve().then(()=>require("./LogoAPI-CaU5E6FK-H9aWX-Pj.cjs")),"./LogoClient.svg":()=>Promise.resolve().then(()=>require("./LogoClient-DdC-t_7P-CN0J-Vs6.cjs")),"./LogoMarket.svg":()=>Promise.resolve().then(()=>require("./LogoMarket-DwlApcab-C3B4miZm.cjs")),"./LogoSwagger.svg":()=>Promise.resolve().then(()=>require("./LogoSwagger-CH60H5qW-56_9U30I.cjs")),"./Menu.svg":()=>Promise.resolve().then(()=>require("./Menu-DFi9Laso-B_NYiSYW.cjs")),"./PaperAirplane.svg":()=>Promise.resolve().then(()=>require("./PaperAirplane-BC-4mGEB-CUmTyNIM.cjs")),"./Search.svg":()=>Promise.resolve().then(()=>require("./Search-DqtlswRG-Cn8bmF-2.cjs")),"./arrow-chevron-down.svg":()=>Promise.resolve().then(()=>require("./arrow-chevron-down-DraTmtzQ-Ccv4Eg8C.cjs")),"./arrow-chevron-left.svg":()=>Promise.resolve().then(()=>require("./arrow-chevron-left-AE5dugcd-CJ5pbO2B.cjs")),"./arrow-chevron-right.svg":()=>Promise.resolve().then(()=>require("./arrow-chevron-right-DbHwONUO-uphJru7Q.cjs")),"./arrow-chevron-up.svg":()=>Promise.resolve().then(()=>require("./arrow-chevron-up-C2T-G4GN-WztJiBkw.cjs")),"./arrow-down.svg":()=>Promise.resolve().then(()=>require("./arrow-down-rfW-r_qd-CB4QKvc5.cjs")),"./arrow-left.svg":()=>Promise.resolve().then(()=>require("./arrow-left-DDkHt-xN-CHt49uCP.cjs")),"./arrow-right.svg":()=>Promise.resolve().then(()=>require("./arrow-right-17dZkGZR-HKHoEiUe.cjs")),"./arrow-up.svg":()=>Promise.resolve().then(()=>require("./arrow-up-CexG2Ble-H6c2u01D.cjs")),"./brand-software-development-github.svg":()=>Promise.resolve().then(()=>require("./brand-software-development-github-ZQnPxpDg-D7aX_GtH.cjs")),"./interface-add.svg":()=>Promise.resolve().then(()=>require("./interface-add-Bthe4y9O-BJ01MrNG.cjs")),"./interface-close.svg":()=>Promise.resolve().then(()=>require("./interface-close-WpJOu-2h-BqME0WlY.cjs")),"./programming-framework-angular.svg":()=>Promise.resolve().then(()=>require("./programming-framework-angular-DD4Vjgbk-BVT4AoJo.cjs")),"./programming-framework-astro.svg":()=>Promise.resolve().then(()=>require("./programming-framework-astro-CLfrRt19-CWwhfV7_.cjs")),"./programming-framework-laravel.svg":()=>Promise.resolve().then(()=>require("./programming-framework-laravel-kAy2wVLy-C3EZCsGC.cjs")),"./programming-framework-nextdotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-nextdotjs-BKdd_DY_-DdOe6YSk.cjs")),"./programming-framework-react.svg":()=>Promise.resolve().then(()=>require("./programming-framework-react-PDgmtZuN-4I-M6WEO.cjs")),"./programming-framework-vuedotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-vuedotjs-Cv46W2aB-CSjgwP_a.cjs")),"./programming-language-c.svg":()=>Promise.resolve().then(()=>require("./programming-language-c-hPGu2Zvg-DS__u0q2.cjs")),"./programming-language-clojure.svg":()=>Promise.resolve().then(()=>require("./programming-language-clojure-Cvmzky8x-DNGq1StI.cjs")),"./programming-language-csharp.svg":()=>Promise.resolve().then(()=>require("./programming-language-csharp-lqX1oWgb-CxB0WO6j.cjs")),"./programming-language-css3.svg":()=>Promise.resolve().then(()=>require("./programming-language-css3-Dpp4Cr6b-BpPnE1ET.cjs")),"./programming-language-go.svg":()=>Promise.resolve().then(()=>require("./programming-language-go-DoJxWwT6-Cglob461.cjs")),"./programming-language-html5.svg":()=>Promise.resolve().then(()=>require("./programming-language-html5-DlqJK4EL-DFJ6lim3.cjs")),"./programming-language-http.svg":()=>Promise.resolve().then(()=>require("./programming-language-http-wMYwFS1I-CibNNxob.cjs")),"./programming-language-java.svg":()=>Promise.resolve().then(()=>require("./programming-language-java-BCxG2T_w-CK_n5AN7.cjs")),"./programming-language-javascript.svg":()=>Promise.resolve().then(()=>require("./programming-language-javascript-VxLvi1QG-CaGGjM9H.cjs")),"./programming-language-json.svg":()=>Promise.resolve().then(()=>require("./programming-language-json-vEX_g7Zi-DzQJGa14.cjs")),"./programming-language-kotlin.svg":()=>Promise.resolve().then(()=>require("./programming-language-kotlin-DKV8vP9h-DlGiFCvD.cjs")),"./programming-language-node.svg":()=>Promise.resolve().then(()=>require("./programming-language-node-Xsgx38lm-4rntKdSG.cjs")),"./programming-language-objc.svg":()=>Promise.resolve().then(()=>require("./programming-language-objc-BQXSOBsX-ChHn3rog.cjs")),"./programming-language-ocaml.svg":()=>Promise.resolve().then(()=>require("./programming-language-ocaml-BEz7gGv7-pjGiVCW2.cjs")),"./programming-language-php.svg":()=>Promise.resolve().then(()=>require("./programming-language-php-GY38f8r4-ahFMWcim.cjs")),"./programming-language-powershell.svg":()=>Promise.resolve().then(()=>require("./programming-language-powershell-C9DkSp36-RwdG5MCL.cjs")),"./programming-language-python.svg":()=>Promise.resolve().then(()=>require("./programming-language-python-Ct-_kNjo-ujN06OXX.cjs")),"./programming-language-r.svg":()=>Promise.resolve().then(()=>require("./programming-language-r-BGoKwua9-DynRqt7q.cjs")),"./programming-language-ruby.svg":()=>Promise.resolve().then(()=>require("./programming-language-ruby-DhdM4d7g-DFwAUdk6.cjs")),"./programming-language-scala.svg":()=>Promise.resolve().then(()=>require("./programming-language-scala-BVg0dToJ-Dhg_XTFe.cjs")),"./programming-language-shell.svg":()=>Promise.resolve().then(()=>require("./programming-language-shell-BsTa1xI7-CEpfIQQF.cjs")),"./programming-language-swift.svg":()=>Promise.resolve().then(()=>require("./programming-language-swift-Dn72xPjg-DtICVxss.cjs")),"./programming-language-typescript.svg":()=>Promise.resolve().then(()=>require("./programming-language-typescript-CdF-HuRi-jq2P_J1a.cjs")),"./programming-script-code.svg":()=>Promise.resolve().then(()=>require("./programming-script-code-DQN1veb2-DWnN18iL.cjs")),"./programming-tool-git.svg":()=>Promise.resolve().then(()=>require("./programming-tool-git-DDnQ1zGD-Bi0r1H3m.cjs")),"./programming-tool-tailwindcss.svg":()=>Promise.resolve().then(()=>require("./programming-tool-tailwindcss-xjXi0E6g-CpFF5bAj.cjs"))}),EO=r=>{const e=`./${r}.svg`;return QO[e]?i.defineAsyncComponent(QO[e]):(console.warn(`Could not find icon: ${r}`),null)},eA=["src"],ze=i.defineComponent({__name:"ScalarIcon",props:{icon:{},size:{}},setup(r){const e=r,t=Cf({variants:{size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6",full:"h-full w-full"}},defaultVariants:{size:"full"}}),n=EO(e.icon);return(o,s)=>i.unref(n)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(EO)(o.icon)),{key:0,class:i.normalizeClass(i.unref(Tc)("scalar-icon",i.unref(t)({size:o.size})))},null,8,["class"])):(i.openBlock(),i.createElementBlock("img",{key:1,src:o.icon},null,8,eA))}}),tA=["ariaDisabled"],rA={class:"sr-only"},Tf=i.defineComponent({__name:"ScalarIconButton",props:{label:{},icon:{},disabled:{type:Boolean},variant:{default:"ghost"},size:{default:"md"}},setup(r){const e=Cf({base:"scalar-icon-button grid aspect-square cursor-pointer rounded",variants:{size:{xs:"h-3.5 w-3.5 p-0.5",sm:"h-5 w-5 p-1",md:"h-10 w-10 p-3",full:"h-full w-full"},disabled:{true:"cursor-not-allowed shadow-none"},variant:t1}});return(t,n)=>(i.openBlock(),i.createElementBlock("button",{ariaDisabled:t.disabled||void 0,class:i.normalizeClass(i.unref(Tc)(i.unref(e)({size:t.size,variant:t.variant,disabled:t.disabled}))),type:"button"},[i.createVNode(i.unref(ze),{icon:t.icon},null,8,["icon"]),i.createElementVNode("span",rA,i.toDisplayString(t.label),1)],10,tA))}}),nA={class:"table"},oA={class:"table-row"},sA=i.createElementVNode("div",{class:"table-row-item"},[i.createElementVNode("label",null,"Key")],-1),iA=i.createElementVNode("div",{class:"table-row-item"},[i.createElementVNode("label",null,"Value")],-1),aA={class:"table-row-item"},lA=i.createElementVNode("label",null,"Description",-1),cA=[lA],dA=i.createElementVNode("svg",{fill:"currentColor",height:"12",viewBox:"0 0 18 12",width:"18",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"M0 12h12v-2H0v2zM0 0v2h18V0H0zm0 7h18V5H0v2z","fill-rule":"nonzero"})],-1),uA=[dA],hA={class:"table-row-item"},fA=["onUpdate:modelValue"],pA={class:"table-row-item"},mA=["onUpdate:modelValue"],gA={class:"table-row-item"},OA=["onUpdate:modelValue"],yA={class:"table-row-meta"},bA={class:"meta-check"},vA=["onUpdate:modelValue"],wA=i.createElementVNode("span",{class:"meta-checkmark"},null,-1),kA=["onClick"],SA=i.createElementVNode("svg",{fill:"none",height:"10",viewBox:"-0.5 -0.5 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"m8.55 0.45 -8.1 8.1",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),i.createElementVNode("path",{d:"m0.45 0.45 8.1 8.1",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})],-1),$A=[SA],PA={class:"meta-actions"},xA={class:"meta-actions-item-icon"},_A={class:"meta-actions-item-icon"},aa=i.defineComponent({__name:"Grid",props:{items:{},addLabel:{},showMoreFilter:{type:Boolean}},emits:["deleteIndex","addAnother"],setup(r,{emit:e}){const t=e,n=i.ref(!1),o=i.ref(!1);function s(){t("addAnother"),o.value=!0}return(a,l)=>(i.openBlock(),i.createElementBlock("div",nA,[i.createElementVNode("div",oA,[sA,iA,i.withDirectives(i.createElementVNode("div",aA,cA,512),[[i.vShow,n.value]]),i.createElementVNode("div",{class:"table-row-meta",onClick:l[0]||(l[0]=c=>n.value=!n.value)},uA)]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.items,(c,d)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:c.id,class:i.normalizeClass(["table-row",{"required-parameter":c.required}])},[i.createElementVNode("div",hA,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":u=>c.name=u,placeholder:"key"},null,8,fA),[[i.vModelText,c.name]])]),i.createElementVNode("div",pA,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":u=>c.value=u,placeholder:"value"},null,8,mA),[[i.vModelText,c.value]])]),i.withDirectives(i.createElementVNode("div",gA,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":u=>c.description=u,placeholder:"value"},null,8,OA),[[i.vModelText,c.description]])],512),[[i.vShow,n.value]]),i.createElementVNode("div",yA,[i.createElementVNode("label",bA,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":u=>c.enabled=u,checked:"",type:"checkbox"},null,8,vA),[[i.vModelCheckbox,c.enabled]]),wA]),i.createElementVNode("button",{class:"meta-delete",type:"button",onClick:u=>a.$emit("deleteIndex",d)},$A,8,kA)])],2)),[[i.vShow,!a.showMoreFilter||a.showMoreFilter&&d<5||o.value]])),128)),i.createElementVNode("div",PA,[a.addLabel?(i.openBlock(),i.createElementBlock("button",{key:0,class:"meta-actions-item",type:"button",onClick:s},[i.createElementVNode("i",xA,[i.createVNode(i.unref(ze),{icon:"Add"})]),i.createTextVNode(" "+i.toDisplayString(a.addLabel),1)])):i.createCommentVNode("",!0),a.showMoreFilter&&a.items.length>5&&!o.value?(i.openBlock(),i.createElementBlock("button",{key:1,class:"meta-actions-item",type:"button",onClick:l[1]||(l[1]=c=>o.value=!0)},[i.createTextVNode(" Show More "),i.createElementVNode("i",_A,[i.createVNode(i.unref(ze),{icon:"ChevronDown"})])])):i.createCommentVNode("",!0)])]))}}),CA={class:"navtable simpletable"},TA={class:"navtable-table"},QA=i.createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-33"><label for="">Name</label></div><div class="navtable-item-66"><label for="">Value</label></div></div>',1),EA={class:"navtable-item-33"},NA={class:"navtable-item-66"},AA=i.defineComponent({__name:"SimpleGrid",props:{items:{}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",CA,[i.createElementVNode("div",TA,[QA,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.items,n=>(i.openBlock(),i.createElementBlock("div",{key:n.id,class:"navtable-item"},[i.createElementVNode("div",EA,[i.createElementVNode("p",null,i.toDisplayString(n.name),1)]),i.createElementVNode("div",NA,[i.createElementVNode("p",null,i.toDisplayString(n.value),1)])]))),128))])]))}}),VA={key:0},RA=i.defineComponent({__name:"RequestBody",props:{body:{},formData:{}},setup(r){const{activeRequest:e,setActiveRequest:t}=Zt(),n=o=>{e.body!==o&&t({...e,body:o})};return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Kr),{title:"Body"},{default:i.withCtx(()=>[o.body&&o.body.length===0&&o.formData&&o.formData.length===0?(i.openBlock(),i.createElementBlock("span",VA,"No Body")):o.formData&&o.formData.length>0?(i.openBlock(),i.createBlock(i.unref(aa),{key:1,items:o.formData},null,8,["items"])):(i.openBlock(),i.createBlock(i.unref(Av),{key:2,content:i.unref(e).body,language:"json",lineNumbers:"",onChange:n},null,8,["content"]))]),_:1}))}}),BA={key:0,class:"scalar-api-client__empty-state"},ZA=i.createElementVNode("svg",{class:"flow-icon","data-v-aa4fbd2d":"",height:"100%",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"M24 1.714v44.572M1.714 24h44.572",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3.429",xmlns:"http://www.w3.org/2000/svg"})],-1),IA=i.defineComponent({__name:"RequestCookies",props:{cookies:{}},setup(r){const{activeRequest:e}=Zt();function t(o){var s;(s=e.cookies)==null||s.splice(o,1)}function n(){var o;e.cookies===void 0&&(e.cookies=[]),(o=e.cookies)==null||o.push({name:"",value:"",enabled:!0})}return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Kr),{defaultOpen:i.unref(e).cookies&&i.unref(e).cookies.length>0,title:"Cookies"},{default:i.withCtx(()=>[!o.cookies||o.cookies.length===0?(i.openBlock(),i.createElementBlock("div",BA,[i.createElementVNode("button",{class:"scalar-api-client-add",type:"button",onClick:n},[ZA,i.createTextVNode(" Cookies ")])])):(i.openBlock(),i.createBlock(i.unref(aa),{key:1,addLabel:"Cookie",items:o.cookies,onAddAnother:n,onDeleteIndex:t},null,8,["items"]))]),_:1},8,["defaultOpen"]))}}),jA={key:0,class:"scalar-api-client__empty-state"},DA=i.createElementVNode("svg",{class:"flow-icon","data-v-aa4fbd2d":"",height:"100%",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"M24 1.714v44.572M1.714 24h44.572",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3.429",xmlns:"http://www.w3.org/2000/svg"})],-1),qA=i.defineComponent({__name:"RequestHeaders",props:{headers:{}},setup(r){const{activeRequest:e}=Zt();function t(o){var s;(s=e.headers)==null||s.splice(o,1)}function n(){var o;e.headers===void 0&&(e.headers=[]),(o=e.headers)==null||o.push({name:"",value:"",enabled:!0})}return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Kr),{defaultOpen:i.unref(e).headers&&i.unref(e).headers.length>0,title:"Headers"},{default:i.withCtx(()=>[!o.headers||o.headers.length===0?(i.openBlock(),i.createElementBlock("div",jA,[i.createElementVNode("button",{class:"scalar-api-client-add",type:"button",onClick:n},[DA,i.createTextVNode(" Headers ")])])):(i.openBlock(),i.createBlock(i.unref(aa),{key:1,addLabel:"Header",items:o.headers,onAddAnother:n,onDeleteIndex:t},null,8,["items"]))]),_:1},8,["defaultOpen"]))}}),MA={key:0,class:"scalar-api-client__empty-state"},XA=i.createElementVNode("svg",{class:"flow-icon","data-v-aa4fbd2d":"",height:"100%",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"M24 1.714v44.572M1.714 24h44.572",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3.429",xmlns:"http://www.w3.org/2000/svg"})],-1),WA=i.defineComponent({__name:"RequestQuery",props:{queries:{}},setup(r){const{activeRequest:e}=Zt();function t(o){var s;(s=e.query)==null||s.splice(o,1)}function n(){var o;e.query===void 0&&(e.query=[]),(o=e.query)==null||o.push({name:"",value:"",enabled:!0})}return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Kr),{defaultOpen:i.unref(e).query&&i.unref(e).query.length>0,title:"Query Parameters"},{default:i.withCtx(()=>[!o.queries||o.queries.length===0?(i.openBlock(),i.createElementBlock("div",MA,[i.createElementVNode("button",{class:"scalar-api-client-add",type:"button",onClick:n},[XA,i.createTextVNode(" Query Parameter ")])])):(i.openBlock(),i.createBlock(i.unref(aa),{key:1,addLabel:"Query Parameter",items:o.queries,showMoreFilter:!0,onAddAnother:n,onDeleteIndex:t},null,8,["items"]))]),_:1},8,["defaultOpen"]))}}),zA={key:0,class:"scalar-api-client__empty-state"},UA=i.createElementVNode("svg",{class:"flow-icon","data-v-aa4fbd2d":"",height:"100%",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("path",{d:"M24 1.714v44.572M1.714 24h44.572",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3.429",xmlns:"http://www.w3.org/2000/svg"})],-1),YA=i.defineComponent({__name:"RequestVariables",props:{variables:{}},setup(r){const{activeRequest:e}=Zt();function t(o){var s;(s=e.variables)==null||s.splice(o,1)}function n(){var o;e.variables===void 0&&(e.variables=[]),(o=e.variables)==null||o.push({name:"",value:"",enabled:!0})}return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Kr),{defaultOpen:i.unref(e).variables&&i.unref(e).variables.length>0,title:"Variables"},{default:i.withCtx(()=>[!o.variables||o.variables.length===0?(i.openBlock(),i.createElementBlock("div",zA,[i.createElementVNode("button",{class:"scalar-api-client-add",type:"button",onClick:n},[UA,i.createTextVNode(" Variable ")])])):(i.openBlock(),i.createBlock(i.unref(aa),{key:1,addLabel:"Variable",items:o.variables,showMoreFilter:!0,onAddAnother:n,onDeleteIndex:t},null,8,["items"]))]),_:1},8,["defaultOpen"]))}}),LA={class:"scalar-api-client__main__left custom-scroll"},FA={class:"scalar-api-client__main__content"},HA=i.createElementVNode("label",null,"Request",-1),GA={class:"meta"},KA={class:"meta-item meta-item__input"},JA=i.createElementVNode("div",{class:"scalar-api-client__main__scroll-container"},null,-1),e5=!0,NO=i.defineComponent({__name:"Request",setup(r){const{activeRequest:e}=Zt();return(t,n)=>(i.openBlock(),i.createElementBlock("div",LA,[i.createElementVNode("div",FA,[HA,i.createElementVNode("div",GA,[i.createElementVNode("div",KA,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=o=>i.unref(e).name=o),class:"scalar-api-client__request-name",disabled:e5,placeholder:"Request Name",type:"text"},null,512),[[i.vModelText,i.unref(e).name]])])])]),i.createElementVNode("div",null,[i.createVNode(YA,{variables:i.unref(e).variables},null,8,["variables"]),i.createVNode(iN),i.createVNode(IA,{cookies:i.unref(e).cookies},null,8,["cookies"]),i.createVNode(qA,{headers:i.unref(e).headers},null,8,["headers"]),i.createVNode(WA,{queries:i.unref(e).query},null,8,["queries"]),i.createVNode(RA,{body:i.unref(e).body,formData:i.unref(e).formData,requestBody:i.unref(e).body},null,8,["body","formData","requestBody"]),JA])]))}});var Qf={};/*!
|
|
82
|
+
* content-type
|
|
83
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
84
|
+
* MIT Licensed
|
|
85
|
+
*/var AO=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t5=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,r1=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r5=/\\([\u000b\u0020-\u00ff])/g,n5=/([\\"])/g,n1=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;Qf.format=o5;Qf.parse=s5;function o5(r){if(!r||typeof r!="object")throw new TypeError("argument obj is required");var e=r.parameters,t=r.type;if(!t||!n1.test(t))throw new TypeError("invalid type");var n=t;if(e&&typeof e=="object")for(var o,s=Object.keys(e).sort(),a=0;a<s.length;a++){if(o=s[a],!r1.test(o))throw new TypeError("invalid parameter name");n+="; "+o+"="+a5(e[o])}return n}function s5(r){if(!r)throw new TypeError("argument string is required");var e=typeof r=="object"?i5(r):r;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var t=e.indexOf(";"),n=t!==-1?e.slice(0,t).trim():e.trim();if(!n1.test(n))throw new TypeError("invalid media type");var o=new l5(n.toLowerCase());if(t!==-1){var s,a,l;for(AO.lastIndex=t;a=AO.exec(e);){if(a.index!==t)throw new TypeError("invalid parameter format");t+=a[0].length,s=a[1].toLowerCase(),l=a[2],l.charCodeAt(0)===34&&(l=l.slice(1,-1),l.indexOf("\\")!==-1&&(l=l.replace(r5,"$1"))),o.parameters[s]=l}if(t!==e.length)throw new TypeError("invalid parameter format")}return o}function i5(r){var e;if(typeof r.getHeader=="function"?e=r.getHeader("content-type"):typeof r.headers=="object"&&(e=r.headers&&r.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function a5(r){var e=String(r);if(r1.test(e))return e;if(e.length>0&&!t5.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(n5,"\\$1")+'"'}function l5(r){this.parameters=Object.create(null),this.type=r}const c5={key:1,class:"scalar-api-client__empty-state"},d5={key:1,class:"scalar-api-client__empty-state"},u5=i.defineComponent({__name:"ResponseBody",props:{active:{type:Boolean,default:!1},data:{default:null},headers:{}},setup(r){const e=r,t=i.computed(()=>{const o=e.headers.find(s=>s.name.toLowerCase()==="content-type");if(!o)return null;try{return Qf.parse(o.value).type}catch{return null}}),n=i.computed(()=>t.value==="application/json"||t.value==="application/problem+json"||t.value==="application/vnd.api+json"?"json":t.value==="text/html"||t.value==="text/plain"?"html":null);return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Kr),{title:"Body"},{default:i.withCtx(()=>[o.active?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[n.value?(i.openBlock(),i.createBlock(i.unref(Dr),{key:0,class:"custom-scroll",content:o.data,lang:n.value},null,8,["content","lang"])):(i.openBlock(),i.createElementBlock("div",c5,[t.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" No Preview Available ("+i.toDisplayString(t.value)+") ",1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" Can’t render a preview. The Content-Type header is missing or unknown. ")],64))]))],64)):(i.openBlock(),i.createElementBlock("div",d5," No Response "))]),_:1}))}}),h5=["href"],f5=i.defineComponent({__name:"HelpfulLink",props:{href:{}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("a",{href:e.href,rel:"noopener noreferrer",target:"_blank"},[i.renderSlot(e.$slots,"default",{},void 0,!0)],8,h5))}}),o1=X(f5,[["__scopeId","data-v-d11ff062"]]),p5=i.defineComponent({__name:"SimpleCell",props:{wrap:{type:Boolean,default:!0},strong:{type:Boolean,default:!1},href:{default:null}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("td",{class:i.normalizeClass(["simple-cell",{wrap:e.wrap,strong:e.strong}])},[e.href?(i.openBlock(),i.createBlock(o1,{key:0,href:e.href},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["href"])):i.renderSlot(e.$slots,"default",{key:1},void 0,!0)],2))}}),fh=X(p5,[["__scopeId","data-v-01fffd78"]]),m5=i.defineComponent({__name:"SimpleHeader",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(fh,{as:"th",class:"simple-header"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3}))}}),VO=X(m5,[["__scopeId","data-v-b2232089"]]),g5={},O5={class:"simple-row"};function y5(r,e){return i.openBlock(),i.createElementBlock("tr",O5,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const RO=X(g5,[["render",y5],["__scopeId","data-v-0982ade4"]]),b5={},v5={class:"simple-table"};function w5(r,e){return i.openBlock(),i.createElementBlock("table",v5,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const k5=X(b5,[["render",w5],["__scopeId","data-v-28fcbcb6"]]),S5={key:1,class:"scalar-api-client__empty-state"},$5=i.defineComponent({__name:"ResponseHeaders",props:{headers:{}},setup(r){const e=n=>{var o;return(o=DS.find(s=>s.name.toLowerCase()===n.toLowerCase()))==null?void 0:o.url},t=n=>n.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("-");return(n,o)=>(i.openBlock(),i.createBlock(i.unref(Kr),{title:"Headers"},{default:i.withCtx(()=>[n.headers.length>0?(i.openBlock(),i.createBlock(i.unref(k5),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(RO),null,{default:i.withCtx(()=>[i.createVNode(i.unref(VO),null,{default:i.withCtx(()=>[i.createTextVNode("Key")]),_:1}),i.createVNode(i.unref(VO),null,{default:i.withCtx(()=>[i.createTextVNode("Value")]),_:1})]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.headers,s=>(i.openBlock(),i.createBlock(i.unref(RO),{key:s.name},{default:i.withCtx(()=>[i.createVNode(i.unref(fh),{href:e(s.name),strong:!0,wrap:!1},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t(s.name)),1)]),_:2},1032,["href"]),i.createVNode(i.unref(fh),null,{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.value),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})):(i.openBlock(),i.createElementBlock("div",S5,"No Headers"))]),_:1}))}}),P5={class:"meta-item"},x5={class:"meta-item"},_5={class:"meta-item"},C5=i.defineComponent({__name:"ResponseMetaInformation",props:{response:{}},setup(r){const e=r,t=o=>{var s;return(s=o==null?void 0:o.headers)!=null&&s["X-API-Client-Content-Length"]?Jl(parseFloat(o.headers["X-API-Client-Content-Length"])):Jl(0)},n=i.computed(()=>{const o=e.response.statusCode;if(o)return XS[o]??void 0});return(o,s)=>{var a,l;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",P5,[i.createElementVNode("span",null,i.toDisplayString(i.unref(Yv)(o.response.duration)),1)]),i.createElementVNode("div",x5,[i.createElementVNode("span",null,i.toDisplayString(t(o.response)),1)]),i.createElementVNode("div",_5,[i.createElementVNode("span",{class:i.normalizeClass(`scalar-api-client__status scalar-api-client__status--${String(o.response.statusCode).charAt(0)}xx`)},[(a=n.value)!=null&&a.url?(i.openBlock(),i.createBlock(o1,{key:0,href:n.value.url},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.response.statusCode)+" "+i.toDisplayString(n.value.name),1)]),_:1},8,["href"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(o.response.statusCode)+" "+i.toDisplayString((l=n.value)==null?void 0:l.name),1)],64))],2)])],64)}}}),T5={class:"scalar-api-client__main__right custom-scroll"},Q5={class:"scalar-api-client__main__content"},E5=i.createElementVNode("label",null,"Response",-1),N5={class:"meta"},A5={key:1,class:"meta-item"},V5=i.createElementVNode("span",null,"Send your first request to start",-1),R5=[V5],B5={key:0,class:"scalar-api-client__empty-state"},Z5=i.createElementVNode("div",{class:"scalar-api-client__main__scroll-container"},null,-1),BO=i.defineComponent({__name:"Response",setup(r){const{activeResponse:e,activeRequestId:t}=Zt(),n=i.computed(()=>{var l;const a=(l=e.value)==null?void 0:l.headers;return a?Object.keys(a).map(c=>({name:c,value:a[c]})).filter(c=>!["rest-api-client-content-length","X-API-Client-Content-Length"].includes(c.name)):[]}),o=i.computed(()=>{var l;const a=(l=e.value)==null?void 0:l.cookies;return a?Object.keys(a).map(c=>({name:c,value:a[c]})):[]}),s=i.computed(()=>{var l;const a=(l=e.value)==null?void 0:l.data;return a&&Gl(a)?JSON.stringify(JSON.parse(a),null,2):a&&typeof i.toRaw(a)=="object"||a&&!Gl(a)?JSON.stringify(a,null,2):a});return(a,l)=>(i.openBlock(),i.createElementBlock("div",T5,[i.createElementVNode("div",Q5,[E5,i.createElementVNode("div",N5,[i.unref(t)&&i.unref(e)?(i.openBlock(),i.createBlock(C5,{key:0,response:i.unref(e)},null,8,["response"])):(i.openBlock(),i.createElementBlock("div",A5,R5))])]),i.createElementVNode("div",null,[i.createVNode(u5,{active:!!i.unref(e),data:s.value,headers:n.value},null,8,["active","data","headers"]),i.createVNode($5,{headers:n.value},null,8,["headers"]),i.createVNode(i.unref(Kr),{title:"Cookies"},{default:i.withCtx(()=>[i.withDirectives(i.createVNode(i.unref(AA),{items:o.value},null,8,["items"]),[[i.vShow,o.value.length>0]]),o.value.length===0?(i.openBlock(),i.createElementBlock("div",B5,"No Cookies")):i.createCommentVNode("",!0)]),_:1}),Z5])]))}}),I5={class:"scalar-api-client__main"},j5=i.defineComponent({__name:"ApiClient",props:{proxyUrl:{},readOnly:{type:Boolean,default:!1},theme:{}},emits:["escapeKeyPress"],setup(r,{emit:e}){const t=r,n=e,o=Xe.useMagicKeys();Xe.whenever(o.escape,()=>n("escapeKeyPress"));const{activeRequest:s,readOnly:a}=Zt(),l=Xe.useMediaQuery("(max-width: 820px)"),c=i.ref(0),d={Request:0,Response:1};function u(h){c.value=h}return i.watch(()=>t.readOnly,()=>{a.value=t.readOnly},{immediate:!0}),(h,f)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(M0),{id:h.theme},null,8,["id"]),i.createVNode(An,{class:"scalar-api-client",method:i.unref(s).type??"get",property:"--default-scalar-api-client-color",onKeydown:f[1]||(f[1]=i.withKeys(p=>n("escapeKeyPress"),["esc"]))},{default:i.withCtx(()=>[i.createVNode(OE,{proxyUrl:h.proxyUrl,onOnSend:f[0]||(f[0]=p=>u(d.Response))},null,8,["proxyUrl"]),i.createElementVNode("div",I5,[i.unref(l)?(i.openBlock(),i.createBlock(i.unref(we.TabGroup),{key:1,selectedIndex:c.value,onChange:u},{default:i.withCtx(()=>[i.createVNode(i.unref(we.TabList),{class:"scalar-api-client__mobile-navigation"},{default:i.withCtx(()=>[i.createVNode(i.unref(we.Tab),{class:"scalar-api-client__mobile-navigation__toggle"},{default:i.withCtx(({selected:p})=>[i.createElementVNode("span",{class:i.normalizeClass({"scalar-api-client__mobile-navigation--active":p})}," Request ",2)]),_:1}),i.createVNode(i.unref(we.Tab),{class:"scalar-api-client__mobile-navigation__toggle"},{default:i.withCtx(({selected:p})=>[i.createElementVNode("span",{class:i.normalizeClass({"scalar-api-client__mobile-navigation--active":p})}," Response ",2)]),_:1})]),_:1}),i.createVNode(i.unref(we.TabPanels),{as:"template"},{default:i.withCtx(()=>[i.createVNode(i.unref(we.TabPanel),{as:"template"},{default:i.withCtx(()=>[i.createVNode(i.unref(NO))]),_:1}),i.createVNode(i.unref(we.TabPanel),{as:"template"},{default:i.withCtx(()=>[i.createVNode(i.unref(BO))]),_:1})]),_:1})]),_:1},8,["selectedIndex"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(NO)),i.createVNode(i.unref(BO))],64))])]),_:1},8,["method"])],64))}});function s1(r,e){for(const[t,n]of Object.entries(r))n!==null&&typeof n=="object"?(e[t]??(e[t]=new n.__proto__.constructor),s1(n,e[t])):typeof n<"u"&&(e[t]=n);return e}function Ef({serverState:r,authenticationState:e,operation:t,globalSecurity:n}){var l,c;const o=Uv({url:ec(r)},dh(t,{requiredOnly:!1}),Af(e,((l=t.information)==null?void 0:l.security)??n)),s=dh(t,{requiredOnly:!1}),a=Jo(t,"path",!1);return{id:t.operationId,name:t.name,type:o.method,path:s.path??"",variables:a,cookies:o.cookies.map(d=>({...d,enabled:!0})),query:o.queryString.map(d=>({...d,enabled:d.required??!0})),headers:o.headers.map(d=>({...d,enabled:!0})),url:ec(r)??"",body:(c=o.postData)==null?void 0:c.text}}const D5=I0.unified().use(Z0).use(Gk).use(Hk),Ui=async r=>{const e=new gc,{headings:t}=(await D5.process(r)).data;return q5(t,e)},q5=(r,e)=>r.map(t=>({...t,slug:e.slug(t.value)})),Nf=r=>{const e=Math.min(...r.map(t=>t.depth));return e>=1&&e<=6?e:1};function M5(r){return!(!r||Array.isArray(r)&&!r.length||(r??[]).some(e=>!Object.keys(e).length))}function Af(r,e){var c;const t=[],n=[],o=[];if(!r.securitySchemeKey||!M5(e))return{headers:t,queryString:n,cookies:o};const a=(e==null?void 0:e.some(d=>r.securitySchemeKey&&Object.keys(d).includes(r.securitySchemeKey)))?r.securitySchemeKey:Object.keys((e==null?void 0:e[0])??{}).pop(),l=(c=r.securitySchemes)==null?void 0:c[a??""];if(l){if("type"in l&&l.type==="apiKey"){if("in"in l&&l.in==="header"){const d=r.apiKey.token.length?r.apiKey.token:"YOUR_TOKEN";t.push({name:"name"in l?l.name:"",value:d})}else if("in"in l&&l.in==="cookie"){const d=r.apiKey.token.length?r.apiKey.token:"YOUR_TOKEN";o.push({name:l.name,value:d})}else if("in"in l&&l.in==="query"){const d=r.apiKey.token.length?r.apiKey.token:"YOUR_TOKEN";n.push({name:l.name,value:d})}}else if("type"in l&&(l.type==="http"||l.type==="basic")){if("type"in l&&(l.type==="basic"||l.type==="http"&&l.scheme==="basic")){const{username:d,password:u}=r.http.basic,h=Vf(d,u);t.push({name:"Authorization",value:`Basic ${h}`.trim()})}else if("type"in l&&l.type==="http"&&l.scheme==="bearer"){const d=r.http.bearer.token.length?r.http.bearer.token:"YOUR_SECRET_TOKEN";t.push({name:"Authorization",value:`Bearer ${d}`})}}else if("type"in l&&l.type.toLowerCase()==="oauth2"){const d=r.oAuth2.accessToken||"YOUR_SECRET_TOKEN";t.push({name:"Authorization",value:`Bearer ${d}`})}}return{headers:t,queryString:n,cookies:o}}function Vf(r,e){return r!=null&&r.length||e!=null&&e.length?JT(`${r}:${e}`):""}function i1(r){return[r.apiKey.token,r.http.bearer.token,r.oAuth2.accessToken,Vf(r.http.basic.username,r.http.basic.password),r.http.basic.password].filter(Boolean)}function Rf(r,e){const t=/{{\s*([\w.-]+)\s*}}/g,n=/{\s*([\w.-]+)\s*}/g,o=(s,a)=>{if(typeof e=="function")return e(a);{const l=e==null?void 0:e.find(c=>c.name===a);return((l==null?void 0:l.value)??"").toString()}};return r.replace(t,o).replace(n,o)}function ec(r){var n,o;const e=r.selectedServer===null?(n=r==null?void 0:r.servers)==null?void 0:n[0]:(o=r==null?void 0:r.servers)==null?void 0:o[r.selectedServer];let t=typeof(e==null?void 0:e.url)=="string"?Rf(e==null?void 0:e.url,r.variables):e==null?void 0:e.url;return t!=null&&t.startsWith("/")?t=`${ZO()}${t}`:t&&!(t!=null&&t.startsWith("http://"))&&!(t!=null&&t.startsWith("https://"))&&(t=`${ZO()}/${t}`),t}const ZO=()=>{const r=window.location.origin;return r.endsWith("/")?r.slice(0,-1):r};function X5(r){const e=/{{?\s*([\w.-]+)\s*}}?/g,t=r==null?void 0:r.matchAll(e);return Array.from(t??[],n=>n[1])}const Bf=r=>{var e;return r?!!Object.keys(((e=r==null?void 0:r.components)==null?void 0:e.schemas)??{}).length:!1},a1=r=>{var e;return!!Object.keys(((e=r==null?void 0:r.components)==null?void 0:e.securitySchemes)??{}).length},l1=r=>r?!!Object.keys((r==null?void 0:r.webhooks)??{}).length:!1;function c1(r){try{return!!new URL(r)}catch{return!1}}const W5=(r,e)=>Object.keys(r).map(t=>({[e??t]:t,value:r[t]})),z5=r=>r.reduce((e,t)=>({...e,...t}),{});function d1(r,e){return Object.keys(r).forEach(t=>{Object.hasOwn(e,t)||delete r[t]}),Object.assign(r,e),r}const u1=()=>({securitySchemeKey:null,http:{basic:{username:"",password:""},bearer:{token:""}},apiKey:{token:""},oAuth2:{clientId:"",scopes:[],accessToken:"",state:""}}),ph=i.reactive(u1()),U5=r=>{Object.assign(ph,{...ph,...r})},h1=()=>({selectedServer:null,servers:[],variables:[]}),mh=i.reactive(h1()),Y5=r=>{Object.assign(mh,{...mh,...r})},Jr=()=>({authentication:ph,setAuthentication:U5,server:mh,setServer:Y5}),{server:L5,authentication:F5}=Jr(),{toggleApiClient:H5}=Oc(),{setActiveRequest:G5,resetActiveResponse:K5}=Zt();function tc(r,e){const t=Ef({serverState:L5,authenticationState:F5,operation:r,globalSecurity:e});K5(),G5(t),H5(t,!0)}const Qc=Symbol(),Zf=async r=>{var e;(e=document.getElementById(r))==null||e.scrollIntoView()};var J5=Object.defineProperty,eV=(r,e,t)=>e in r?J5(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,cn=(r,e,t)=>(eV(r,typeof e!="symbol"?e+"":e,t),t);const tV=(r,e)=>{const t=r[e];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e)))})};var rV=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function If(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var gh={exports:{}},f1={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatNames=r.fastFormats=r.fullFormats=void 0;function e(E,B){return{validate:E,compare:B}}r.fullFormats={date:e(s,a),time:e(c,d),"date-time":e(h,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:g,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})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d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:C,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:"number",validate:w},int64:{type:"number",validate:S},float:{type:"number",validate:k},double:{type:"number",validate:k},password:!0,binary:!0},r.fastFormats={...r.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},r.formatNames=Object.keys(r.fullFormats);function t(E){return E%4===0&&(E%100!==0||E%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(E){const B=n.exec(E);if(!B)return!1;const q=+B[1],R=+B[2],K=+B[3];return R>=1&&R<=12&&K>=1&&K<=(R===2&&t(q)?29:o[R])}function a(E,B){if(E&&B)return E>B?1:E<B?-1:0}const l=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(E,B){const q=l.exec(E);if(!q)return!1;const R=+q[1],K=+q[2],F=+q[3],ge=q[5];return(R<=23&&K<=59&&F<=59||R===23&&K===59&&F===60)&&(!B||ge!=="")}function d(E,B){if(!(E&&B))return;const q=l.exec(E),R=l.exec(B);if(q&&R)return E=q[1]+q[2]+q[3]+(q[4]||""),B=R[1]+R[2]+R[3]+(R[4]||""),E>B?1:E<B?-1:0}const u=/t|\s/i;function h(E){const B=E.split(u);return B.length===2&&s(B[0])&&c(B[1],!0)}function f(E,B){if(!(E&&B))return;const[q,R]=E.split(u),[K,F]=B.split(u),ge=a(q,K);if(ge!==void 0)return ge||d(R,F)}const p=/\/|:/,m=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function g(E){return p.test(E)&&m.test(E)}const O=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(E){return O.lastIndex=0,O.test(E)}const b=-(2**31),v=2**31-1;function w(E){return Number.isInteger(E)&&E<=v&&E>=b}function S(E){return Number.isInteger(E)}function k(){return!0}const $=/[^\\]\\Z/;function C(E){if($.test(E))return!1;try{return new RegExp(E),!0}catch{return!1}}})(f1);var p1={},Oh={exports:{}},co={},Lt={},hs={},la={},oe={},Yi={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.regexpCode=r.getEsmExportName=r.getProperty=r.safeStringify=r.stringify=r.strConcat=r.addCodeArg=r.str=r._=r.nil=r._Code=r.Name=r.IDENTIFIER=r._CodeOrName=void 0;class e{}r._CodeOrName=e,r.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(b){if(super(),!r.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}r.Name=t;class n extends e{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((v,w)=>`${v}${w}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((v,w)=>(w instanceof t&&(v[w.str]=(v[w.str]||0)+1),v),{})}}r._Code=n,r.nil=new n("");function o(y,...b){const v=[y[0]];let w=0;for(;w<b.length;)l(v,b[w]),v.push(y[++w]);return new n(v)}r._=o;const s=new n("+");function a(y,...b){const v=[p(y[0])];let w=0;for(;w<b.length;)v.push(s),l(v,b[w]),v.push(s,p(y[++w]));return c(v),new n(v)}r.str=a;function l(y,b){b instanceof n?y.push(...b._items):b instanceof t?y.push(b):y.push(h(b))}r.addCodeArg=l;function c(y){let b=1;for(;b<y.length-1;){if(y[b]===s){const v=d(y[b-1],y[b+1]);if(v!==void 0){y.splice(b-1,3,v);continue}y[b++]="+"}b++}}function d(y,b){if(b==='""')return y;if(y==='""')return b;if(typeof y=="string")return b instanceof t||y[y.length-1]!=='"'?void 0:typeof b!="string"?`${y.slice(0,-1)}${b}"`:b[0]==='"'?y.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(y instanceof t))return`"${y}${b.slice(1)}`}function u(y,b){return b.emptyStr()?y:y.emptyStr()?b:a`${y}${b}`}r.strConcat=u;function h(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:p(Array.isArray(y)?y.join(","):y)}function f(y){return new n(p(y))}r.stringify=f;function p(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=p;function m(y){return typeof y=="string"&&r.IDENTIFIER.test(y)?new n(`.${y}`):o`[${y}]`}r.getProperty=m;function g(y){if(typeof y=="string"&&r.IDENTIFIER.test(y))return new n(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}r.getEsmExportName=g;function O(y){return new n(y.toString())}r.regexpCode=O})(Yi);var yh={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const e=Yi;class t extends Error{constructor(d){super(`CodeGen: "code" for ${d} not defined`),this.value=d.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n=r.UsedValueState||(r.UsedValueState={})),r.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class o{constructor({prefixes:d,parent:u}={}){this._names={},this._prefixes=d,this._parent=u}toName(d){return d instanceof e.Name?d:this.name(d)}name(d){return new e.Name(this._newName(d))}_newName(d){const u=this._names[d]||this._nameGroup(d);return`${d}${u.index++}`}_nameGroup(d){var u,h;if(!((h=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||h===void 0)&&h.has(d)||this._prefixes&&!this._prefixes.has(d))throw new Error(`CodeGen: prefix "${d}" is not allowed in this scope`);return this._names[d]={prefix:d,index:0}}}r.Scope=o;class s extends e.Name{constructor(d,u){super(u),this.prefix=d}setValue(d,{property:u,itemIndex:h}){this.value=d,this.scopePath=(0,e._)`.${new e.Name(u)}[${h}]`}}r.ValueScopeName=s;const a=(0,e._)`\n`;class l extends o{constructor(d){super(d),this._values={},this._scope=d.scope,this.opts={...d,_n:d.lines?a:e.nil}}get(){return this._scope}name(d){return new s(d,this._newName(d))}value(d,u){var h;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(d),{prefix:p}=f,m=(h=u.key)!==null&&h!==void 0?h:u.ref;let g=this._values[p];if(g){const b=g.get(m);if(b)return b}else g=this._values[p]=new Map;g.set(m,f);const O=this._scope[p]||(this._scope[p]=[]),y=O.length;return O[y]=u.ref,f.setValue(u,{property:p,itemIndex:y}),f}getValue(d,u){const h=this._values[d];if(h)return h.get(u)}scopeRefs(d,u=this._values){return this._reduceValues(u,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,e._)`${d}${h.scopePath}`})}scopeCode(d=this._values,u,h){return this._reduceValues(d,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,h)}_reduceValues(d,u,h={},f){let p=e.nil;for(const m in d){const g=d[m];if(!g)continue;const O=h[m]=h[m]||new Map;g.forEach(y=>{if(O.has(y))return;O.set(y,n.Started);let b=u(y);if(b){const v=this.opts.es5?r.varKinds.var:r.varKinds.const;p=(0,e._)`${p}${v} ${y} = ${b};${this.opts._n}`}else if(b=f==null?void 0:f(y))p=(0,e._)`${p}${b}${this.opts._n}`;else throw new t(y);O.set(y,n.Completed)})}return p}}r.ValueScope=l})(yh);(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.or=r.and=r.not=r.CodeGen=r.operators=r.varKinds=r.ValueScopeName=r.ValueScope=r.Scope=r.Name=r.regexpCode=r.stringify=r.getProperty=r.nil=r.strConcat=r.str=r._=void 0;const e=Yi,t=yh;var n=Yi;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(r,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(r,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(r,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return n.Name}});var o=yh;Object.defineProperty(r,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(r,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(r,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(r,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),r.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class s{optimizeNodes(){return this}optimizeNames(P,Q){return this}}class a extends s{constructor(P,Q,I){super(),this.varKind=P,this.name=Q,this.rhs=I}render({es5:P,_n:Q}){const I=P?t.varKinds.var:this.varKind,z=this.rhs===void 0?"":` = ${this.rhs}`;return`${I} ${this.name}${z};`+Q}optimizeNames(P,Q){if(P[this.name.str])return this.rhs&&(this.rhs=F(this.rhs,P,Q)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class l extends s{constructor(P,Q,I){super(),this.lhs=P,this.rhs=Q,this.sideEffects=I}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,Q){if(!(this.lhs instanceof e.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=F(this.rhs,P,Q),this}get names(){const P=this.lhs instanceof e.Name?{}:{...this.lhs.names};return K(P,this.rhs)}}class c extends l{constructor(P,Q,I,z){super(P,I,z),this.op=Q}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class d extends s{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class u extends s{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class h extends s{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class f extends s{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,Q){return this.code=F(this.code,P,Q),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class p extends s{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((Q,I)=>Q+I.render(P),"")}optimizeNodes(){const{nodes:P}=this;let Q=P.length;for(;Q--;){const I=P[Q].optimizeNodes();Array.isArray(I)?P.splice(Q,1,...I):I?P[Q]=I:P.splice(Q,1)}return P.length>0?this:void 0}optimizeNames(P,Q){const{nodes:I}=this;let z=I.length;for(;z--;){const Y=I[z];Y.optimizeNames(P,Q)||(ge(P,Y.names),I.splice(z,1))}return I.length>0?this:void 0}get names(){return this.nodes.reduce((P,Q)=>R(P,Q.names),{})}}class m extends p{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class g extends p{}class O extends m{}O.kind="else";class y extends m{constructor(P,Q){super(Q),this.condition=P}render(P){let Q=`if(${this.condition})`+super.render(P);return this.else&&(Q+="else "+this.else.render(P)),Q}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let Q=this.else;if(Q){const I=Q.optimizeNodes();Q=this.else=Array.isArray(I)?new O(I):I}if(Q)return P===!1?Q instanceof y?Q:Q.nodes:this.nodes.length?this:new y(Ee(P),Q instanceof y?[Q]:Q.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,Q){var I;if(this.else=(I=this.else)===null||I===void 0?void 0:I.optimizeNames(P,Q),!!(super.optimizeNames(P,Q)||this.else))return this.condition=F(this.condition,P,Q),this}get names(){const P=super.names;return K(P,this.condition),this.else&&R(P,this.else.names),P}}y.kind="if";class b extends m{}b.kind="for";class v extends b{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,Q){if(super.optimizeNames(P,Q))return this.iteration=F(this.iteration,P,Q),this}get names(){return R(super.names,this.iteration.names)}}class w extends b{constructor(P,Q,I,z){super(),this.varKind=P,this.name=Q,this.from=I,this.to=z}render(P){const Q=P.es5?t.varKinds.var:this.varKind,{name:I,from:z,to:Y}=this;return`for(${Q} ${I}=${z}; ${I}<${Y}; ${I}++)`+super.render(P)}get names(){const P=K(super.names,this.from);return K(P,this.to)}}class S extends b{constructor(P,Q,I,z){super(),this.loop=P,this.varKind=Q,this.name=I,this.iterable=z}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,Q){if(super.optimizeNames(P,Q))return this.iterable=F(this.iterable,P,Q),this}get names(){return R(super.names,this.iterable.names)}}class k extends m{constructor(P,Q,I){super(),this.name=P,this.args=Q,this.async=I}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}k.kind="func";class $ extends p{render(P){return"return "+super.render(P)}}$.kind="return";class C extends m{render(P){let Q="try"+super.render(P);return this.catch&&(Q+=this.catch.render(P)),this.finally&&(Q+=this.finally.render(P)),Q}optimizeNodes(){var P,Q;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(Q=this.finally)===null||Q===void 0||Q.optimizeNodes(),this}optimizeNames(P,Q){var I,z;return super.optimizeNames(P,Q),(I=this.catch)===null||I===void 0||I.optimizeNames(P,Q),(z=this.finally)===null||z===void 0||z.optimizeNames(P,Q),this}get names(){const P=super.names;return this.catch&&R(P,this.catch.names),this.finally&&R(P,this.finally.names),P}}class E extends m{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}E.kind="catch";class B extends m{render(P){return"finally"+super.render(P)}}B.kind="finally";class q{constructor(P,Q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Q,_n:Q.lines?`
|
|
86
|
+
`:""},this._extScope=P,this._scope=new t.Scope({parent:P}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,Q){const I=this._extScope.value(P,Q);return(this._values[I.prefix]||(this._values[I.prefix]=new Set)).add(I),I}getScopeValue(P,Q){return this._extScope.getValue(P,Q)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,Q,I,z){const Y=this._scope.toName(Q);return I!==void 0&&z&&(this._constants[Y.str]=I),this._leafNode(new a(P,Y,I)),Y}const(P,Q,I){return this._def(t.varKinds.const,P,Q,I)}let(P,Q,I){return this._def(t.varKinds.let,P,Q,I)}var(P,Q,I){return this._def(t.varKinds.var,P,Q,I)}assign(P,Q,I){return this._leafNode(new l(P,Q,I))}add(P,Q){return this._leafNode(new c(P,r.operators.ADD,Q))}code(P){return typeof P=="function"?P():P!==e.nil&&this._leafNode(new f(P)),this}object(...P){const Q=["{"];for(const[I,z]of P)Q.length>1&&Q.push(","),Q.push(I),(I!==z||this.opts.es5)&&(Q.push(":"),(0,e.addCodeArg)(Q,z));return Q.push("}"),new e._Code(Q)}if(P,Q,I){if(this._blockNode(new y(P)),Q&&I)this.code(Q).else().code(I).endIf();else if(Q)this.code(Q).endIf();else if(I)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new y(P))}else(){return this._elseNode(new O)}endIf(){return this._endBlockNode(y,O)}_for(P,Q){return this._blockNode(P),Q&&this.code(Q).endFor(),this}for(P,Q){return this._for(new v(P),Q)}forRange(P,Q,I,z,Y=this.opts.es5?t.varKinds.var:t.varKinds.let){const de=this._scope.toName(P);return this._for(new w(Y,de,Q,I),()=>z(de))}forOf(P,Q,I,z=t.varKinds.const){const Y=this._scope.toName(P);if(this.opts.es5){const de=Q instanceof e.Name?Q:this.var("_arr",Q);return this.forRange("_i",0,(0,e._)`${de}.length`,ue=>{this.var(Y,(0,e._)`${de}[${ue}]`),I(Y)})}return this._for(new S("of",z,Y,Q),()=>I(Y))}forIn(P,Q,I,z=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,e._)`Object.keys(${Q})`,I);const Y=this._scope.toName(P);return this._for(new S("in",z,Y,Q),()=>I(Y))}endFor(){return this._endBlockNode(b)}label(P){return this._leafNode(new d(P))}break(P){return this._leafNode(new u(P))}return(P){const Q=new $;if(this._blockNode(Q),this.code(P),Q.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}try(P,Q,I){if(!Q&&!I)throw new Error('CodeGen: "try" without "catch" and "finally"');const z=new C;if(this._blockNode(z),this.code(P),Q){const Y=this.name("e");this._currNode=z.catch=new E(Y),Q(Y)}return I&&(this._currNode=z.finally=new B,this.code(I)),this._endBlockNode(E,B)}throw(P){return this._leafNode(new h(P))}block(P,Q){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(Q),this}endBlock(P){const Q=this._blockStarts.pop();if(Q===void 0)throw new Error("CodeGen: not in self-balancing block");const I=this._nodes.length-Q;if(I<0||P!==void 0&&I!==P)throw new Error(`CodeGen: wrong number of nodes: ${I} vs ${P} expected`);return this._nodes.length=Q,this}func(P,Q=e.nil,I,z){return this._blockNode(new k(P,Q,I)),z&&this.code(z).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,Q){const I=this._currNode;if(I instanceof P||Q&&I instanceof Q)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Q?`${P.kind}/${Q.kind}`:P.kind}"`)}_elseNode(P){const Q=this._currNode;if(!(Q instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=Q.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const Q=this._nodes;Q[Q.length-1]=P}}r.CodeGen=q;function R(V,P){for(const Q in P)V[Q]=(V[Q]||0)+(P[Q]||0);return V}function K(V,P){return P instanceof e._CodeOrName?R(V,P.names):V}function F(V,P,Q){if(V instanceof e.Name)return I(V);if(!z(V))return V;return new e._Code(V._items.reduce((Y,de)=>(de instanceof e.Name&&(de=I(de)),de instanceof e._Code?Y.push(...de._items):Y.push(de),Y),[]));function I(Y){const de=Q[Y.str];return de===void 0||P[Y.str]!==1?Y:(delete P[Y.str],de)}function z(Y){return Y instanceof e._Code&&Y._items.some(de=>de instanceof e.Name&&P[de.str]===1&&Q[de.str]!==void 0)}}function ge(V,P){for(const Q in P)V[Q]=(V[Q]||0)-(P[Q]||0)}function Ee(V){return typeof V=="boolean"||typeof V=="number"||V===null?!V:(0,e._)`!${Z(V)}`}r.not=Ee;const se=A(r.operators.AND);function fe(...V){return V.reduce(se)}r.and=fe;const le=A(r.operators.OR);function M(...V){return V.reduce(le)}r.or=M;function A(V){return(P,Q)=>P===e.nil?Q:Q===e.nil?P:(0,e._)`${Z(P)} ${V} ${Z(Q)}`}function Z(V){return V instanceof e.Name?V:(0,e._)`(${V})`}})(oe);var me={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.checkStrictMode=r.getErrorPath=r.Type=r.useFunc=r.setEvaluated=r.evaluatedPropsToName=r.mergeEvaluated=r.eachItem=r.unescapeJsonPointer=r.escapeJsonPointer=r.escapeFragment=r.unescapeFragment=r.schemaRefOrVal=r.schemaHasRulesButRef=r.schemaHasRules=r.checkUnknownRules=r.alwaysValidSchema=r.toHash=void 0;const e=oe,t=Yi;function n(k){const $={};for(const C of k)$[C]=!0;return $}r.toHash=n;function o(k,$){return typeof $=="boolean"?$:Object.keys($).length===0?!0:(s(k,$),!a($,k.self.RULES.all))}r.alwaysValidSchema=o;function s(k,$=k.schema){const{opts:C,self:E}=k;if(!C.strictSchema||typeof $=="boolean")return;const B=E.RULES.keywords;for(const q in $)B[q]||S(k,`unknown keyword: "${q}"`)}r.checkUnknownRules=s;function a(k,$){if(typeof k=="boolean")return!k;for(const C in k)if($[C])return!0;return!1}r.schemaHasRules=a;function l(k,$){if(typeof k=="boolean")return!k;for(const C in k)if(C!=="$ref"&&$.all[C])return!0;return!1}r.schemaHasRulesButRef=l;function c({topSchemaRef:k,schemaPath:$},C,E,B){if(!B){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,e._)`${C}`}return(0,e._)`${k}${$}${(0,e.getProperty)(E)}`}r.schemaRefOrVal=c;function d(k){return f(decodeURIComponent(k))}r.unescapeFragment=d;function u(k){return encodeURIComponent(h(k))}r.escapeFragment=u;function h(k){return typeof k=="number"?`${k}`:k.replace(/~/g,"~0").replace(/\//g,"~1")}r.escapeJsonPointer=h;function f(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}r.unescapeJsonPointer=f;function p(k,$){if(Array.isArray(k))for(const C of k)$(C);else $(k)}r.eachItem=p;function m({mergeNames:k,mergeToName:$,mergeValues:C,resultToName:E}){return(B,q,R,K)=>{const F=R===void 0?q:R instanceof e.Name?(q instanceof e.Name?k(B,q,R):$(B,q,R),R):q instanceof e.Name?($(B,R,q),q):C(q,R);return K===e.Name&&!(F instanceof e.Name)?E(B,F):F}}r.mergeEvaluated={props:m({mergeNames:(k,$,C)=>k.if((0,e._)`${C} !== true && ${$} !== undefined`,()=>{k.if((0,e._)`${$} === true`,()=>k.assign(C,!0),()=>k.assign(C,(0,e._)`${C} || {}`).code((0,e._)`Object.assign(${C}, ${$})`))}),mergeToName:(k,$,C)=>k.if((0,e._)`${C} !== true`,()=>{$===!0?k.assign(C,!0):(k.assign(C,(0,e._)`${C} || {}`),O(k,C,$))}),mergeValues:(k,$)=>k===!0?!0:{...k,...$},resultToName:g}),items:m({mergeNames:(k,$,C)=>k.if((0,e._)`${C} !== true && ${$} !== undefined`,()=>k.assign(C,(0,e._)`${$} === true ? true : ${C} > ${$} ? ${C} : ${$}`)),mergeToName:(k,$,C)=>k.if((0,e._)`${C} !== true`,()=>k.assign(C,$===!0?!0:(0,e._)`${C} > ${$} ? ${C} : ${$}`)),mergeValues:(k,$)=>k===!0?!0:Math.max(k,$),resultToName:(k,$)=>k.var("items",$)})};function g(k,$){if($===!0)return k.var("props",!0);const C=k.var("props",(0,e._)`{}`);return $!==void 0&&O(k,C,$),C}r.evaluatedPropsToName=g;function O(k,$,C){Object.keys(C).forEach(E=>k.assign((0,e._)`${$}${(0,e.getProperty)(E)}`,!0))}r.setEvaluated=O;const y={};function b(k,$){return k.scopeValue("func",{ref:$,code:y[$.code]||(y[$.code]=new t._Code($.code))})}r.useFunc=b;var v;(function(k){k[k.Num=0]="Num",k[k.Str=1]="Str"})(v=r.Type||(r.Type={}));function w(k,$,C){if(k instanceof e.Name){const E=$===v.Num;return C?E?(0,e._)`"[" + ${k} + "]"`:(0,e._)`"['" + ${k} + "']"`:E?(0,e._)`"/" + ${k}`:(0,e._)`"/" + ${k}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,e.getProperty)(k).toString():"/"+h(k)}r.getErrorPath=w;function S(k,$,C=k.opts.strictSchema){if(C){if($=`strict mode: ${$}`,C===!0)throw new Error($);k.self.logger.warn($)}}r.checkStrictMode=S})(me);var It={};Object.defineProperty(It,"__esModule",{value:!0});const lt=oe,nV={data:new lt.Name("data"),valCxt:new lt.Name("valCxt"),instancePath:new lt.Name("instancePath"),parentData:new lt.Name("parentData"),parentDataProperty:new lt.Name("parentDataProperty"),rootData:new lt.Name("rootData"),dynamicAnchors:new lt.Name("dynamicAnchors"),vErrors:new lt.Name("vErrors"),errors:new lt.Name("errors"),this:new lt.Name("this"),self:new lt.Name("self"),scope:new lt.Name("scope"),json:new lt.Name("json"),jsonPos:new lt.Name("jsonPos"),jsonLen:new lt.Name("jsonLen"),jsonPart:new lt.Name("jsonPart")};It.default=nV;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.extendErrors=r.resetErrorsCount=r.reportExtraError=r.reportError=r.keyword$DataError=r.keywordError=void 0;const e=oe,t=me,n=It;r.keywordError={message:({keyword:O})=>(0,e.str)`must pass "${O}" keyword validation`},r.keyword$DataError={message:({keyword:O,schemaType:y})=>y?(0,e.str)`"${O}" keyword must be ${y} ($data)`:(0,e.str)`"${O}" keyword is invalid ($data)`};function o(O,y=r.keywordError,b,v){const{it:w}=O,{gen:S,compositeRule:k,allErrors:$}=w,C=h(O,y,b);v??(k||$)?c(S,C):d(w,(0,e._)`[${C}]`)}r.reportError=o;function s(O,y=r.keywordError,b){const{it:v}=O,{gen:w,compositeRule:S,allErrors:k}=v,$=h(O,y,b);c(w,$),S||k||d(v,n.default.vErrors)}r.reportExtraError=s;function a(O,y){O.assign(n.default.errors,y),O.if((0,e._)`${n.default.vErrors} !== null`,()=>O.if(y,()=>O.assign((0,e._)`${n.default.vErrors}.length`,y),()=>O.assign(n.default.vErrors,null)))}r.resetErrorsCount=a;function l({gen:O,keyword:y,schemaValue:b,data:v,errsCount:w,it:S}){if(w===void 0)throw new Error("ajv implementation error");const k=O.name("err");O.forRange("i",w,n.default.errors,$=>{O.const(k,(0,e._)`${n.default.vErrors}[${$}]`),O.if((0,e._)`${k}.instancePath === undefined`,()=>O.assign((0,e._)`${k}.instancePath`,(0,e.strConcat)(n.default.instancePath,S.errorPath))),O.assign((0,e._)`${k}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${y}`),S.opts.verbose&&(O.assign((0,e._)`${k}.schema`,b),O.assign((0,e._)`${k}.data`,v))})}r.extendErrors=l;function c(O,y){const b=O.const("err",y);O.if((0,e._)`${n.default.vErrors} === null`,()=>O.assign(n.default.vErrors,(0,e._)`[${b}]`),(0,e._)`${n.default.vErrors}.push(${b})`),O.code((0,e._)`${n.default.errors}++`)}function d(O,y){const{gen:b,validateName:v,schemaEnv:w}=O;w.$async?b.throw((0,e._)`new ${O.ValidationError}(${y})`):(b.assign((0,e._)`${v}.errors`,y),b.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function h(O,y,b){const{createErrors:v}=O.it;return v===!1?(0,e._)`{}`:f(O,y,b)}function f(O,y,b={}){const{gen:v,it:w}=O,S=[p(w,b),m(O,b)];return g(O,y,S),v.object(...S)}function p({errorPath:O},{instancePath:y}){const b=y?(0,e.str)`${O}${(0,t.getErrorPath)(y,t.Type.Str)}`:O;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,b)]}function m({keyword:O,it:{errSchemaPath:y}},{schemaPath:b,parentSchema:v}){let w=v?y:(0,e.str)`${y}/${O}`;return b&&(w=(0,e.str)`${w}${(0,t.getErrorPath)(b,t.Type.Str)}`),[u.schemaPath,w]}function g(O,{params:y,message:b},v){const{keyword:w,data:S,schemaValue:k,it:$}=O,{opts:C,propertyName:E,topSchemaRef:B,schemaPath:q}=$;v.push([u.keyword,w],[u.params,typeof y=="function"?y(O):y||(0,e._)`{}`]),C.messages&&v.push([u.message,typeof b=="function"?b(O):b]),C.verbose&&v.push([u.schema,k],[u.parentSchema,(0,e._)`${B}${q}`],[n.default.data,S]),E&&v.push([u.propertyName,E])}})(la);Object.defineProperty(hs,"__esModule",{value:!0});hs.boolOrEmptySchema=hs.topBoolOrEmptySchema=void 0;const oV=la,sV=oe,iV=It,aV={message:"boolean schema is false"};function lV(r){const{gen:e,schema:t,validateName:n}=r;t===!1?m1(r,!1):typeof t=="object"&&t.$async===!0?e.return(iV.default.data):(e.assign((0,sV._)`${n}.errors`,null),e.return(!0))}hs.topBoolOrEmptySchema=lV;function cV(r,e){const{gen:t,schema:n}=r;n===!1?(t.var(e,!1),m1(r)):t.var(e,!0)}hs.boolOrEmptySchema=cV;function m1(r,e){const{gen:t,data:n}=r,o={gen:t,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r};(0,oV.reportError)(o,aV,void 0,e)}var ca={},mo={};Object.defineProperty(mo,"__esModule",{value:!0});mo.getRules=mo.isJSONType=void 0;const dV=["string","number","integer","boolean","null","object","array"],uV=new Set(dV);function hV(r){return typeof r=="string"&&uV.has(r)}mo.isJSONType=hV;function fV(){const r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...r,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}mo.getRules=fV;var zr={};Object.defineProperty(zr,"__esModule",{value:!0});zr.shouldUseRule=zr.shouldUseGroup=zr.schemaHasRulesForType=void 0;function pV({schema:r,self:e},t){const n=e.RULES.types[t];return n&&n!==!0&&g1(r,n)}zr.schemaHasRulesForType=pV;function g1(r,e){return e.rules.some(t=>O1(r,t))}zr.shouldUseGroup=g1;function O1(r,e){var t;return r[e.keyword]!==void 0||((t=e.definition.implements)===null||t===void 0?void 0:t.some(n=>r[n]!==void 0))}zr.shouldUseRule=O1;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.reportTypeError=r.checkDataTypes=r.checkDataType=r.coerceAndCheckDataType=r.getJSONTypes=r.getSchemaTypes=r.DataType=void 0;const e=mo,t=zr,n=la,o=oe,s=me;var a;(function(v){v[v.Correct=0]="Correct",v[v.Wrong=1]="Wrong"})(a=r.DataType||(r.DataType={}));function l(v){const w=c(v.type);if(w.includes("null")){if(v.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&v.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');v.nullable===!0&&w.push("null")}return w}r.getSchemaTypes=l;function c(v){const w=Array.isArray(v)?v:v?[v]:[];if(w.every(e.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}r.getJSONTypes=c;function d(v,w){const{gen:S,data:k,opts:$}=v,C=h(w,$.coerceTypes),E=w.length>0&&!(C.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(v,w[0]));if(E){const B=g(w,k,$.strictNumbers,a.Wrong);S.if(B,()=>{C.length?f(v,w,C):y(v)})}return E}r.coerceAndCheckDataType=d;const u=new Set(["string","number","integer","boolean","null"]);function h(v,w){return w?v.filter(S=>u.has(S)||w==="array"&&S==="array"):[]}function f(v,w,S){const{gen:k,data:$,opts:C}=v,E=k.let("dataType",(0,o._)`typeof ${$}`),B=k.let("coerced",(0,o._)`undefined`);C.coerceTypes==="array"&&k.if((0,o._)`${E} == 'object' && Array.isArray(${$}) && ${$}.length == 1`,()=>k.assign($,(0,o._)`${$}[0]`).assign(E,(0,o._)`typeof ${$}`).if(g(w,$,C.strictNumbers),()=>k.assign(B,$))),k.if((0,o._)`${B} !== undefined`);for(const R of S)(u.has(R)||R==="array"&&C.coerceTypes==="array")&&q(R);k.else(),y(v),k.endIf(),k.if((0,o._)`${B} !== undefined`,()=>{k.assign($,B),p(v,B)});function q(R){switch(R){case"string":k.elseIf((0,o._)`${E} == "number" || ${E} == "boolean"`).assign(B,(0,o._)`"" + ${$}`).elseIf((0,o._)`${$} === null`).assign(B,(0,o._)`""`);return;case"number":k.elseIf((0,o._)`${E} == "boolean" || ${$} === null
|
|
87
|
+
|| (${E} == "string" && ${$} && ${$} == +${$})`).assign(B,(0,o._)`+${$}`);return;case"integer":k.elseIf((0,o._)`${E} === "boolean" || ${$} === null
|
|
88
|
+
|| (${E} === "string" && ${$} && ${$} == +${$} && !(${$} % 1))`).assign(B,(0,o._)`+${$}`);return;case"boolean":k.elseIf((0,o._)`${$} === "false" || ${$} === 0 || ${$} === null`).assign(B,!1).elseIf((0,o._)`${$} === "true" || ${$} === 1`).assign(B,!0);return;case"null":k.elseIf((0,o._)`${$} === "" || ${$} === 0 || ${$} === false`),k.assign(B,null);return;case"array":k.elseIf((0,o._)`${E} === "string" || ${E} === "number"
|
|
89
|
+
|| ${E} === "boolean" || ${$} === null`).assign(B,(0,o._)`[${$}]`)}}}function p({gen:v,parentData:w,parentDataProperty:S},k){v.if((0,o._)`${w} !== undefined`,()=>v.assign((0,o._)`${w}[${S}]`,k))}function m(v,w,S,k=a.Correct){const $=k===a.Correct?o.operators.EQ:o.operators.NEQ;let C;switch(v){case"null":return(0,o._)`${w} ${$} null`;case"array":C=(0,o._)`Array.isArray(${w})`;break;case"object":C=(0,o._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":C=E((0,o._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":C=E();break;default:return(0,o._)`typeof ${w} ${$} ${v}`}return k===a.Correct?C:(0,o.not)(C);function E(B=o.nil){return(0,o.and)((0,o._)`typeof ${w} == "number"`,B,S?(0,o._)`isFinite(${w})`:o.nil)}}r.checkDataType=m;function g(v,w,S,k){if(v.length===1)return m(v[0],w,S,k);let $;const C=(0,s.toHash)(v);if(C.array&&C.object){const E=(0,o._)`typeof ${w} != "object"`;$=C.null?E:(0,o._)`!${w} || ${E}`,delete C.null,delete C.array,delete C.object}else $=o.nil;C.number&&delete C.integer;for(const E in C)$=(0,o.and)($,m(E,w,S,k));return $}r.checkDataTypes=g;const O={message:({schema:v})=>`must be ${v}`,params:({schema:v,schemaValue:w})=>typeof v=="string"?(0,o._)`{type: ${v}}`:(0,o._)`{type: ${w}}`};function y(v){const w=b(v);(0,n.reportError)(w,O)}r.reportTypeError=y;function b(v){const{gen:w,data:S,schema:k}=v,$=(0,s.schemaRefOrVal)(v,k,"type");return{gen:w,keyword:"type",data:S,schema:k.type,schemaCode:$,schemaValue:$,parentSchema:k,params:{},it:v}}})(ca);var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});Ec.assignDefaults=void 0;const Co=oe,mV=me;function gV(r,e){const{properties:t,items:n}=r.schema;if(e==="object"&&t)for(const o in t)IO(r,o,t[o].default);else e==="array"&&Array.isArray(n)&&n.forEach((o,s)=>IO(r,s,o.default))}Ec.assignDefaults=gV;function IO(r,e,t){const{gen:n,compositeRule:o,data:s,opts:a}=r;if(t===void 0)return;const l=(0,Co._)`${s}${(0,Co.getProperty)(e)}`;if(o){(0,mV.checkStrictMode)(r,`default is ignored for: ${l}`);return}let c=(0,Co._)`${l} === undefined`;a.useDefaults==="empty"&&(c=(0,Co._)`${c} || ${l} === null || ${l} === ""`),n.if(c,(0,Co._)`${l} = ${(0,Co.stringify)(t)}`)}var Qr={},he={};Object.defineProperty(he,"__esModule",{value:!0});he.validateUnion=he.validateArray=he.usePattern=he.callValidateCode=he.schemaProperties=he.allSchemaProperties=he.noPropertyInData=he.propertyInData=he.isOwnProperty=he.hasPropFunc=he.reportMissingProp=he.checkMissingProp=he.checkReportMissingProp=void 0;const Re=oe,jf=me,on=It,OV=me;function yV(r,e){const{gen:t,data:n,it:o}=r;t.if(qf(t,n,e,o.opts.ownProperties),()=>{r.setParams({missingProperty:(0,Re._)`${e}`},!0),r.error()})}he.checkReportMissingProp=yV;function bV({gen:r,data:e,it:{opts:t}},n,o){return(0,Re.or)(...n.map(s=>(0,Re.and)(qf(r,e,s,t.ownProperties),(0,Re._)`${o} = ${s}`)))}he.checkMissingProp=bV;function vV(r,e){r.setParams({missingProperty:e},!0),r.error()}he.reportMissingProp=vV;function y1(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Re._)`Object.prototype.hasOwnProperty`})}he.hasPropFunc=y1;function Df(r,e,t){return(0,Re._)`${y1(r)}.call(${e}, ${t})`}he.isOwnProperty=Df;function wV(r,e,t,n){const o=(0,Re._)`${e}${(0,Re.getProperty)(t)} !== undefined`;return n?(0,Re._)`${o} && ${Df(r,e,t)}`:o}he.propertyInData=wV;function qf(r,e,t,n){const o=(0,Re._)`${e}${(0,Re.getProperty)(t)} === undefined`;return n?(0,Re.or)(o,(0,Re.not)(Df(r,e,t))):o}he.noPropertyInData=qf;function b1(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}he.allSchemaProperties=b1;function kV(r,e){return b1(e).filter(t=>!(0,jf.alwaysValidSchema)(r,e[t]))}he.schemaProperties=kV;function SV({schemaCode:r,data:e,it:{gen:t,topSchemaRef:n,schemaPath:o,errorPath:s},it:a},l,c,d){const u=d?(0,Re._)`${r}, ${e}, ${n}${o}`:e,h=[[on.default.instancePath,(0,Re.strConcat)(on.default.instancePath,s)],[on.default.parentData,a.parentData],[on.default.parentDataProperty,a.parentDataProperty],[on.default.rootData,on.default.rootData]];a.opts.dynamicRef&&h.push([on.default.dynamicAnchors,on.default.dynamicAnchors]);const f=(0,Re._)`${u}, ${t.object(...h)}`;return c!==Re.nil?(0,Re._)`${l}.call(${c}, ${f})`:(0,Re._)`${l}(${f})`}he.callValidateCode=SV;const $V=(0,Re._)`new RegExp`;function PV({gen:r,it:{opts:e}},t){const n=e.unicodeRegExp?"u":"",{regExp:o}=e.code,s=o(t,n);return r.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Re._)`${o.code==="new RegExp"?$V:(0,OV.useFunc)(r,o)}(${t}, ${n})`})}he.usePattern=PV;function xV(r){const{gen:e,data:t,keyword:n,it:o}=r,s=e.name("valid");if(o.allErrors){const l=e.let("valid",!0);return a(()=>e.assign(l,!1)),l}return e.var(s,!0),a(()=>e.break()),s;function a(l){const c=e.const("len",(0,Re._)`${t}.length`);e.forRange("i",0,c,d=>{r.subschema({keyword:n,dataProp:d,dataPropType:jf.Type.Num},s),e.if((0,Re.not)(s),l)})}}he.validateArray=xV;function _V(r){const{gen:e,schema:t,keyword:n,it:o}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(l=>(0,jf.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const s=e.let("valid",!1),a=e.name("_valid");e.block(()=>t.forEach((l,c)=>{const d=r.subschema({keyword:n,schemaProp:c,compositeRule:!0},a);e.assign(s,(0,Re._)`${s} || ${a}`),r.mergeValidEvaluated(d,a)||e.if((0,Re.not)(s))})),r.result(s,()=>r.reset(),()=>r.error(!0))}he.validateUnion=_V;Object.defineProperty(Qr,"__esModule",{value:!0});Qr.validateKeywordUsage=Qr.validSchemaType=Qr.funcKeywordCode=Qr.macroKeywordCode=void 0;const gt=oe,Ln=It,CV=he,TV=la;function QV(r,e){const{gen:t,keyword:n,schema:o,parentSchema:s,it:a}=r,l=e.macro.call(a.self,o,s,a),c=v1(t,n,l);a.opts.validateSchema!==!1&&a.self.validateSchema(l,!0);const d=t.name("valid");r.subschema({schema:l,schemaPath:gt.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},d),r.pass(d,()=>r.error(!0))}Qr.macroKeywordCode=QV;function EV(r,e){var t;const{gen:n,keyword:o,schema:s,parentSchema:a,$data:l,it:c}=r;AV(c,e);const d=!l&&e.compile?e.compile.call(c.self,s,a,c):e.validate,u=v1(n,o,d),h=n.let("valid");r.block$data(h,f),r.ok((t=e.valid)!==null&&t!==void 0?t:h);function f(){if(e.errors===!1)g(),e.modifying&&jO(r),O(()=>r.error());else{const y=e.async?p():m();e.modifying&&jO(r),O(()=>NV(r,y))}}function p(){const y=n.let("ruleErrs",null);return n.try(()=>g((0,gt._)`await `),b=>n.assign(h,!1).if((0,gt._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(y,(0,gt._)`${b}.errors`),()=>n.throw(b))),y}function m(){const y=(0,gt._)`${u}.errors`;return n.assign(y,null),g(gt.nil),y}function g(y=e.async?(0,gt._)`await `:gt.nil){const b=c.opts.passContext?Ln.default.this:Ln.default.self,v=!("compile"in e&&!l||e.schema===!1);n.assign(h,(0,gt._)`${y}${(0,CV.callValidateCode)(r,u,b,v)}`,e.modifying)}function O(y){var b;n.if((0,gt.not)((b=e.valid)!==null&&b!==void 0?b:h),y)}}Qr.funcKeywordCode=EV;function jO(r){const{gen:e,data:t,it:n}=r;e.if(n.parentData,()=>e.assign(t,(0,gt._)`${n.parentData}[${n.parentDataProperty}]`))}function NV(r,e){const{gen:t}=r;t.if((0,gt._)`Array.isArray(${e})`,()=>{t.assign(Ln.default.vErrors,(0,gt._)`${Ln.default.vErrors} === null ? ${e} : ${Ln.default.vErrors}.concat(${e})`).assign(Ln.default.errors,(0,gt._)`${Ln.default.vErrors}.length`),(0,TV.extendErrors)(r)},()=>r.error())}function AV({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function v1(r,e,t){if(t===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,gt.stringify)(t)})}function VV(r,e,t=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(r):n==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==n||t&&typeof r>"u")}Qr.validSchemaType=VV;function RV({schema:r,opts:e,self:t,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");const a=o.dependencies;if(a!=null&&a.some(l=>!Object.prototype.hasOwnProperty.call(r,l)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(o.validateSchema&&!o.validateSchema(r[s])){const l=`keyword "${s}" value is invalid at path "${n}": `+t.errorsText(o.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(l);else throw new Error(l)}}Qr.validateKeywordUsage=RV;var kn={};Object.defineProperty(kn,"__esModule",{value:!0});kn.extendSubschemaMode=kn.extendSubschemaData=kn.getSubschema=void 0;const _r=oe,w1=me;function BV(r,{keyword:e,schemaProp:t,schema:n,schemaPath:o,errSchemaPath:s,topSchemaRef:a}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const l=r.schema[e];return t===void 0?{schema:l,schemaPath:(0,_r._)`${r.schemaPath}${(0,_r.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:l[t],schemaPath:(0,_r._)`${r.schemaPath}${(0,_r.getProperty)(e)}${(0,_r.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,w1.escapeFragment)(t)}`}}if(n!==void 0){if(o===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}kn.getSubschema=BV;function ZV(r,e,{dataProp:t,dataPropType:n,data:o,dataTypes:s,propertyName:a}){if(o!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=e;if(t!==void 0){const{errorPath:d,dataPathArr:u,opts:h}=e,f=l.let("data",(0,_r._)`${e.data}${(0,_r.getProperty)(t)}`,!0);c(f),r.errorPath=(0,_r.str)`${d}${(0,w1.getErrorPath)(t,n,h.jsPropertySyntax)}`,r.parentDataProperty=(0,_r._)`${t}`,r.dataPathArr=[...u,r.parentDataProperty]}if(o!==void 0){const d=o instanceof _r.Name?o:l.let("data",o,!0);c(d),a!==void 0&&(r.propertyName=a)}s&&(r.dataTypes=s);function c(d){r.data=d,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,d]}}kn.extendSubschemaData=ZV;function IV(r,{jtdDiscriminator:e,jtdMetadata:t,compositeRule:n,createErrors:o,allErrors:s}){n!==void 0&&(r.compositeRule=n),o!==void 0&&(r.createErrors=o),s!==void 0&&(r.allErrors=s),r.jtdDiscriminator=e,r.jtdMetadata=t}kn.extendSubschemaMode=IV;var ot={},k1=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!r(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=n;o--!==0;){var a=s[o];if(!r(e[a],t[a]))return!1}return!0}return e!==e&&t!==t},S1={exports:{}},bn=S1.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),t=e.cb||t;var n=typeof t=="function"?t:t.pre||function(){},o=t.post||function(){};vl(e,n,o,r,"",r)};bn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};bn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};bn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};bn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function vl(r,e,t,n,o,s,a,l,c,d){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,o,s,a,l,c,d);for(var u in n){var h=n[u];if(Array.isArray(h)){if(u in bn.arrayKeywords)for(var f=0;f<h.length;f++)vl(r,e,t,h[f],o+"/"+u+"/"+f,s,o,u,n,f)}else if(u in bn.propsKeywords){if(h&&typeof h=="object")for(var p in h)vl(r,e,t,h[p],o+"/"+u+"/"+jV(p),s,o,u,n,p)}else(u in bn.keywords||r.allKeys&&!(u in bn.skipKeywords))&&vl(r,e,t,h,o+"/"+u,s,o,u,n)}t(n,o,s,a,l,c,d)}}function jV(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}var DV=S1.exports;Object.defineProperty(ot,"__esModule",{value:!0});ot.getSchemaRefs=ot.resolveUrl=ot.normalizeId=ot._getFullPath=ot.getFullPath=ot.inlineRef=void 0;const qV=me,MV=k1,XV=DV,WV=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function zV(r,e=!0){return typeof r=="boolean"?!0:e===!0?!bh(r):e?$1(r)<=e:!1}ot.inlineRef=zV;const UV=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function bh(r){for(const e in r){if(UV.has(e))return!0;const t=r[e];if(Array.isArray(t)&&t.some(bh)||typeof t=="object"&&bh(t))return!0}return!1}function $1(r){let e=0;for(const t in r)if(t==="$ref"||(e++,!WV.has(t)&&(typeof r[t]=="object"&&(0,qV.eachItem)(r[t],n=>e+=$1(n)),e===1/0)))return 1/0;return e}function P1(r,e="",t){t!==!1&&(e=es(e));const n=r.parse(e);return x1(r,n)}ot.getFullPath=P1;function x1(r,e){return r.serialize(e).split("#")[0]+"#"}ot._getFullPath=x1;const YV=/#\/?$/;function es(r){return r?r.replace(YV,""):""}ot.normalizeId=es;function LV(r,e,t){return t=es(t),r.resolve(e,t)}ot.resolveUrl=LV;const FV=/^[a-z_][-a-z0-9._]*$/i;function HV(r,e){if(typeof r=="boolean")return{};const{schemaId:t,uriResolver:n}=this.opts,o=es(r[t]||e),s={"":o},a=P1(n,o,!1),l={},c=new Set;return XV(r,{allKeys:!0},(h,f,p,m)=>{if(m===void 0)return;const g=a+f;let O=s[m];typeof h[t]=="string"&&(O=y.call(this,h[t])),b.call(this,h.$anchor),b.call(this,h.$dynamicAnchor),s[f]=O;function y(v){const w=this.opts.uriResolver.resolve;if(v=es(O?w(O,v):v),c.has(v))throw u(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?d(h,S.schema,v):v!==es(g)&&(v[0]==="#"?(d(h,l[v],v),l[v]=h):this.refs[v]=g),v}function b(v){if(typeof v=="string"){if(!FV.test(v))throw new Error(`invalid anchor "${v}"`);y.call(this,`#${v}`)}}}),l;function d(h,f,p){if(f!==void 0&&!MV(h,f))throw u(p)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}ot.getSchemaRefs=HV;Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getData=Lt.KeywordCxt=Lt.validateFunctionCode=void 0;const _1=hs,DO=ca,Mf=zr,rc=ca,GV=Ec,$i=Qr,Ud=kn,G=oe,ne=It,KV=ot,Ur=me,oi=la;function JV(r){if(Q1(r)&&(E1(r),T1(r))){rR(r);return}C1(r,()=>(0,_1.topBoolOrEmptySchema)(r))}Lt.validateFunctionCode=JV;function C1({gen:r,validateName:e,schema:t,schemaEnv:n,opts:o},s){o.code.es5?r.func(e,(0,G._)`${ne.default.data}, ${ne.default.valCxt}`,n.$async,()=>{r.code((0,G._)`"use strict"; ${qO(t,o)}`),tR(r,o),r.code(s)}):r.func(e,(0,G._)`${ne.default.data}, ${eR(o)}`,n.$async,()=>r.code(qO(t,o)).code(s))}function eR(r){return(0,G._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${r.dynamicRef?(0,G._)`, ${ne.default.dynamicAnchors}={}`:G.nil}}={}`}function tR(r,e){r.if(ne.default.valCxt,()=>{r.var(ne.default.instancePath,(0,G._)`${ne.default.valCxt}.${ne.default.instancePath}`),r.var(ne.default.parentData,(0,G._)`${ne.default.valCxt}.${ne.default.parentData}`),r.var(ne.default.parentDataProperty,(0,G._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),r.var(ne.default.rootData,(0,G._)`${ne.default.valCxt}.${ne.default.rootData}`),e.dynamicRef&&r.var(ne.default.dynamicAnchors,(0,G._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{r.var(ne.default.instancePath,(0,G._)`""`),r.var(ne.default.parentData,(0,G._)`undefined`),r.var(ne.default.parentDataProperty,(0,G._)`undefined`),r.var(ne.default.rootData,ne.default.data),e.dynamicRef&&r.var(ne.default.dynamicAnchors,(0,G._)`{}`)})}function rR(r){const{schema:e,opts:t,gen:n}=r;C1(r,()=>{t.$comment&&e.$comment&&A1(r),aR(r),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),t.unevaluated&&nR(r),N1(r),dR(r)})}function nR(r){const{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,G._)`${t}.evaluated`),e.if((0,G._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,G._)`${r.evaluated}.props`,(0,G._)`undefined`)),e.if((0,G._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,G._)`${r.evaluated}.items`,(0,G._)`undefined`))}function qO(r,e){const t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,G._)`/*# sourceURL=${t} */`:G.nil}function oR(r,e){if(Q1(r)&&(E1(r),T1(r))){sR(r,e);return}(0,_1.boolOrEmptySchema)(r,e)}function T1({schema:r,self:e}){if(typeof r=="boolean")return!r;for(const t in r)if(e.RULES.all[t])return!0;return!1}function Q1(r){return typeof r.schema!="boolean"}function sR(r,e){const{schema:t,gen:n,opts:o}=r;o.$comment&&t.$comment&&A1(r),lR(r),cR(r);const s=n.const("_errs",ne.default.errors);N1(r,s),n.var(e,(0,G._)`${s} === ${ne.default.errors}`)}function E1(r){(0,Ur.checkUnknownRules)(r),iR(r)}function N1(r,e){if(r.opts.jtd)return MO(r,[],!1,e);const t=(0,DO.getSchemaTypes)(r.schema),n=(0,DO.coerceAndCheckDataType)(r,t);MO(r,t,!n,e)}function iR(r){const{schema:e,errSchemaPath:t,opts:n,self:o}=r;e.$ref&&n.ignoreKeywordsWithRef&&(0,Ur.schemaHasRulesButRef)(e,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function aR(r){const{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,Ur.checkStrictMode)(r,"default is ignored in the schema root")}function lR(r){const e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,KV.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function cR(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function A1({gen:r,schemaEnv:e,schema:t,errSchemaPath:n,opts:o}){const s=t.$comment;if(o.$comment===!0)r.code((0,G._)`${ne.default.self}.logger.log(${s})`);else if(typeof o.$comment=="function"){const a=(0,G.str)`${n}/$comment`,l=r.scopeValue("root",{ref:e.root});r.code((0,G._)`${ne.default.self}.opts.$comment(${s}, ${a}, ${l}.schema)`)}}function dR(r){const{gen:e,schemaEnv:t,validateName:n,ValidationError:o,opts:s}=r;t.$async?e.if((0,G._)`${ne.default.errors} === 0`,()=>e.return(ne.default.data),()=>e.throw((0,G._)`new ${o}(${ne.default.vErrors})`)):(e.assign((0,G._)`${n}.errors`,ne.default.vErrors),s.unevaluated&&uR(r),e.return((0,G._)`${ne.default.errors} === 0`))}function uR({gen:r,evaluated:e,props:t,items:n}){t instanceof G.Name&&r.assign((0,G._)`${e}.props`,t),n instanceof G.Name&&r.assign((0,G._)`${e}.items`,n)}function MO(r,e,t,n){const{gen:o,schema:s,data:a,allErrors:l,opts:c,self:d}=r,{RULES:u}=d;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Ur.schemaHasRulesButRef)(s,u))){o.block(()=>B1(r,"$ref",u.all.$ref.definition));return}c.jtd||hR(r,e),o.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,Mf.shouldUseGroup)(s,f)&&(f.type?(o.if((0,rc.checkDataType)(f.type,a,c.strictNumbers)),XO(r,f),e.length===1&&e[0]===f.type&&t&&(o.else(),(0,rc.reportTypeError)(r)),o.endIf()):XO(r,f),l||o.if((0,G._)`${ne.default.errors} === ${n||0}`))}}function XO(r,e){const{gen:t,schema:n,opts:{useDefaults:o}}=r;o&&(0,GV.assignDefaults)(r,e.type),t.block(()=>{for(const s of e.rules)(0,Mf.shouldUseRule)(n,s)&&B1(r,s.keyword,s.definition,e.type)})}function hR(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(fR(r,e),r.opts.allowUnionTypes||pR(r,e),mR(r,r.dataTypes))}function fR(r,e){if(e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{V1(r.dataTypes,t)||Xf(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),OR(r,e)}}function pR(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Xf(r,"use allowUnionTypes to allow union type keyword")}function mR(r,e){const t=r.self.RULES.all;for(const n in t){const o=t[n];if(typeof o=="object"&&(0,Mf.shouldUseRule)(r.schema,o)){const{type:s}=o.definition;s.length&&!s.some(a=>gR(e,a))&&Xf(r,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function gR(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function V1(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function OR(r,e){const t=[];for(const n of r.dataTypes)V1(e,n)?t.push(n):e.includes("integer")&&n==="number"&&t.push("integer");r.dataTypes=t}function Xf(r,e){const t=r.schemaEnv.baseId+r.errSchemaPath;e+=` at "${t}" (strictTypes)`,(0,Ur.checkStrictMode)(r,e,r.opts.strictTypes)}class R1{constructor(e,t,n){if((0,$i.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ur.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",Z1(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,$i.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ne.default.errors))}result(e,t,n){this.failResult((0,G.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,G.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,G._)`${t} !== undefined && (${(0,G.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?oi.reportExtraError:oi.reportError)(this,this.def.error,t)}$dataError(){(0,oi.reportError)(this,this.def.$dataError||oi.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,oi.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=G.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=G.nil,t=G.nil){if(!this.$data)return;const{gen:n,schemaCode:o,schemaType:s,def:a}=this;n.if((0,G.or)((0,G._)`${o} === undefined`,t)),e!==G.nil&&n.assign(e,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==G.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:o,it:s}=this;return(0,G.or)(a(),l());function a(){if(n.length){if(!(t instanceof G.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,G._)`${(0,rc.checkDataTypes)(c,t,s.opts.strictNumbers,rc.DataType.Wrong)}`}return G.nil}function l(){if(o.validateSchema){const c=e.scopeValue("validate$data",{ref:o.validateSchema});return(0,G._)`!${c}(${t})`}return G.nil}}subschema(e,t){const n=(0,Ud.getSubschema)(this.it,e);(0,Ud.extendSubschemaData)(n,this.it,e),(0,Ud.extendSubschemaMode)(n,e);const o={...this.it,...n,items:void 0,props:void 0};return oR(o,t),o}mergeEvaluated(e,t){const{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=Ur.mergeEvaluated.props(o,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=Ur.mergeEvaluated.items(o,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(t,()=>this.mergeEvaluated(e,G.Name)),!0}}Lt.KeywordCxt=R1;function B1(r,e,t,n){const o=new R1(r,t,e);"code"in t?t.code(o,n):o.$data&&t.validate?(0,$i.funcKeywordCode)(o,t):"macro"in t?(0,$i.macroKeywordCode)(o,t):(t.compile||t.validate)&&(0,$i.funcKeywordCode)(o,t)}const yR=/^\/(?:[^~]|~0|~1)*$/,bR=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Z1(r,{dataLevel:e,dataNames:t,dataPathArr:n}){let o,s;if(r==="")return ne.default.rootData;if(r[0]==="/"){if(!yR.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);o=r,s=ne.default.rootData}else{const d=bR.exec(r);if(!d)throw new Error(`Invalid JSON-pointer: ${r}`);const u=+d[1];if(o=d[2],o==="#"){if(u>=e)throw new Error(c("property/index",u));return n[e-u]}if(u>e)throw new Error(c("data",u));if(s=t[e-u],!o)return s}let a=s;const l=o.split("/");for(const d of l)d&&(s=(0,G._)`${s}${(0,G.getProperty)((0,Ur.unescapeJsonPointer)(d))}`,a=(0,G._)`${a} && ${s}`);return a;function c(d,u){return`Cannot access ${d} ${u} levels up, current level is ${e}`}}Lt.getData=Z1;var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});class vR extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Ss.default=vR;var $s={};Object.defineProperty($s,"__esModule",{value:!0});const Yd=ot;class wR extends Error{constructor(e,t,n,o){super(o||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,Yd.resolveUrl)(e,t,n),this.missingSchema=(0,Yd.normalizeId)((0,Yd.getFullPath)(e,this.missingRef))}}$s.default=wR;var yt={};Object.defineProperty(yt,"__esModule",{value:!0});yt.resolveSchema=yt.getCompilingSchema=yt.resolveRef=yt.compileSchema=yt.SchemaEnv=void 0;const er=oe,kR=Ss,Wn=It,sr=ot,WO=me,SR=Lt;class Nc{constructor(e){var t;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,sr.normalizeId)(n==null?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}yt.SchemaEnv=Nc;function Wf(r){const e=I1.call(this,r);if(e)return e;const t=(0,sr.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,a=new er.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s});let l;r.$async&&(l=a.scopeValue("Error",{ref:kR.default,code:(0,er._)`require("ajv/dist/runtime/validation_error").default`}));const c=a.scopeName("validate");r.validateName=c;const d={gen:a,allErrors:this.opts.allErrors,data:Wn.default.data,parentData:Wn.default.parentData,parentDataProperty:Wn.default.parentDataProperty,dataNames:[Wn.default.data],dataPathArr:[er.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,er.stringify)(r.schema)}:{ref:r.schema}),validateName:c,ValidationError:l,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:er.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,er._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(r),(0,SR.validateFunctionCode)(d),a.optimize(this.opts.code.optimize);const h=a.toString();u=`${a.scopeRefs(Wn.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,r));const f=new Function(`${Wn.default.self}`,`${Wn.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=r.schema,f.schemaEnv=r,r.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:h,scopeValues:a._values}),this.opts.unevaluated){const{props:p,items:m}=d;f.evaluated={props:p instanceof er.Name?void 0:p,items:m instanceof er.Name?void 0:m,dynamicProps:p instanceof er.Name,dynamicItems:m instanceof er.Name},f.source&&(f.source.evaluated=(0,er.stringify)(f.evaluated))}return r.validate=f,r}catch(h){throw delete r.validate,delete r.validateName,u&&this.logger.error("Error compiling schema, function code:",u),h}finally{this._compilations.delete(r)}}yt.compileSchema=Wf;function $R(r,e,t){var n;t=(0,sr.resolveUrl)(this.opts.uriResolver,e,t);const o=r.refs[t];if(o)return o;let s=_R.call(this,r,t);if(s===void 0){const a=(n=r.localRefs)===null||n===void 0?void 0:n[t],{schemaId:l}=this.opts;a&&(s=new Nc({schema:a,schemaId:l,root:r,baseId:e}))}if(s!==void 0)return r.refs[t]=PR.call(this,s)}yt.resolveRef=$R;function PR(r){return(0,sr.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:Wf.call(this,r)}function I1(r){for(const e of this._compilations)if(xR(e,r))return e}yt.getCompilingSchema=I1;function xR(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function _R(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||Ac.call(this,r,e)}function Ac(r,e){const t=this.opts.uriResolver.parse(e),n=(0,sr._getFullPath)(this.opts.uriResolver,t);let o=(0,sr.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&n===o)return Ld.call(this,t,r);const s=(0,sr.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){const l=Ac.call(this,r,a);return typeof(l==null?void 0:l.schema)!="object"?void 0:Ld.call(this,t,l)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||Wf.call(this,a),s===(0,sr.normalizeId)(e)){const{schema:l}=a,{schemaId:c}=this.opts,d=l[c];return d&&(o=(0,sr.resolveUrl)(this.opts.uriResolver,o,d)),new Nc({schema:l,schemaId:c,root:r,baseId:o})}return Ld.call(this,t,a)}}yt.resolveSchema=Ac;const CR=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ld(r,{baseId:e,schema:t,root:n}){var o;if(((o=r.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const l of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const c=t[(0,WO.unescapeFragment)(l)];if(c===void 0)return;t=c;const d=typeof t=="object"&&t[this.opts.schemaId];!CR.has(l)&&d&&(e=(0,sr.resolveUrl)(this.opts.uriResolver,e,d))}let s;if(typeof t!="boolean"&&t.$ref&&!(0,WO.schemaHasRulesButRef)(t,this.RULES)){const l=(0,sr.resolveUrl)(this.opts.uriResolver,e,t.$ref);s=Ac.call(this,n,l)}const{schemaId:a}=this.opts;if(s=s||new Nc({schema:t,schemaId:a,root:n,baseId:e}),s.schema!==s.root.schema)return s}const TR="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",QR="Meta-schema for $data reference (JSON AnySchema extension proposal)",ER="object",NR=["$data"],AR={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},VR=!1,RR={$id:TR,description:QR,type:ER,required:NR,properties:AR,additionalProperties:VR};var zf={},vh={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(r,e){(function(t,n){n(e)})(rV,function(t){function n(){for(var x=arguments.length,T=Array(x),N=0;N<x;N++)T[N]=arguments[N];if(T.length>1){T[0]=T[0].slice(0,-1);for(var j=T.length-1,D=1;D<j;++D)T[D]=T[D].slice(1,-1);return T[j]=T[j].slice(1),T.join("")}else return T[0]}function o(x){return"(?:"+x+")"}function s(x){return x===void 0?"undefined":x===null?"null":Object.prototype.toString.call(x).split(" ").pop().split("]").shift().toLowerCase()}function a(x){return x.toUpperCase()}function l(x){return x!=null?x instanceof Array?x:typeof x.length!="number"||x.split||x.setInterval||x.call?[x]:Array.prototype.slice.call(x):[]}function c(x,T){var N=x;if(T)for(var j in T)N[j]=T[j];return N}function d(x){var T="[A-Za-z]",N="[0-9]",j=n(N,"[A-Fa-f]"),D=o(o("%[EFef]"+j+"%"+j+j+"%"+j+j)+"|"+o("%[89A-Fa-f]"+j+"%"+j+j)+"|"+o("%"+j+j)),te="[\\:\\/\\?\\#\\[\\]\\@]",J="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ye=n(te,J),Ue=x?"[\\xA0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:]",Oe,J),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",Oe,J),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",Oe,J),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",Oe,J),"g"),NOT_QUERY:new RegExp(n("[^\\%]",Oe,J,"[\\:\\@\\/\\?]",_e),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",Oe,J,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",Oe,J),"g"),UNRESERVED:new RegExp(Oe,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",Oe,ye),"g"),PCT_ENCODED:new RegExp(D,"g"),IPV4ADDRESS:new RegExp("^("+De+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Mn+")"+o(o("\\%25|\\%(?!"+j+"{2})")+"("+yr+")")+"?\\]?$")}}var u=d(!1),h=d(!0),f=function(){function x(T,N){var j=[],D=!0,te=!1,J=void 0;try{for(var ye=T[Symbol.iterator](),Ue;!(D=(Ue=ye.next()).done)&&(j.push(Ue.value),!(N&&j.length===N));D=!0);}catch(_e){te=!0,J=_e}finally{try{!D&&ye.return&&ye.return()}finally{if(te)throw J}}return j}return function(T,N){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return x(T,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(x){if(Array.isArray(x)){for(var T=0,N=Array(x.length);T<x.length;T++)N[T]=x[T];return N}else return Array.from(x)},m=2147483647,g=36,O=1,y=26,b=38,v=700,w=72,S=128,k="-",$=/^xn--/,C=/[^\0-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},q=g-O,R=Math.floor,K=String.fromCharCode;function F(x){throw new RangeError(B[x])}function ge(x,T){for(var N=[],j=x.length;j--;)N[j]=T(x[j]);return N}function Ee(x,T){var N=x.split("@"),j="";N.length>1&&(j=N[0]+"@",x=N[1]),x=x.replace(E,".");var D=x.split("."),te=ge(D,T).join(".");return j+te}function se(x){for(var T=[],N=0,j=x.length;N<j;){var D=x.charCodeAt(N++);if(D>=55296&&D<=56319&&N<j){var te=x.charCodeAt(N++);(te&64512)==56320?T.push(((D&1023)<<10)+(te&1023)+65536):(T.push(D),N--)}else T.push(D)}return T}var fe=function(x){return String.fromCodePoint.apply(String,p(x))},le=function(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:g},M=function(x,T){return x+22+75*(x<26)-((T!=0)<<5)},A=function(x,T,N){var j=0;for(x=N?R(x/v):x>>1,x+=R(x/T);x>q*y>>1;j+=g)x=R(x/q);return R(j+(q+1)*x/(x+b))},Z=function(x){var T=[],N=x.length,j=0,D=S,te=w,J=x.lastIndexOf(k);J<0&&(J=0);for(var ye=0;ye<J;++ye)x.charCodeAt(ye)>=128&&F("not-basic"),T.push(x.charCodeAt(ye));for(var Ue=J>0?J+1:0;Ue<N;){for(var _e=j,Oe=1,Ne=g;;Ne+=g){Ue>=N&&F("invalid-input");var De=le(x.charCodeAt(Ue++));(De>=g||De>R((m-j)/Oe))&&F("overflow"),j+=De*Oe;var ie=Ne<=te?O:Ne>=te+y?y:Ne-te;if(De<ie)break;var Ye=g-ie;Oe>R(m/Ye)&&F("overflow"),Oe*=Ye}var Ce=T.length+1;te=A(j-_e,Ce,_e==0),R(j/Ce)>m-D&&F("overflow"),D+=R(j/Ce),j%=Ce,T.splice(j++,0,D)}return String.fromCodePoint.apply(String,T)},V=function(x){var T=[];x=se(x);var N=x.length,j=S,D=0,te=w,J=!0,ye=!1,Ue=void 0;try{for(var _e=x[Symbol.iterator](),Oe;!(J=(Oe=_e.next()).done);J=!0){var Ne=Oe.value;Ne<128&&T.push(K(Ne))}}catch(Ys){ye=!0,Ue=Ys}finally{try{!J&&_e.return&&_e.return()}finally{if(ye)throw Ue}}var De=T.length,ie=De;for(De&&T.push(k);ie<N;){var Ye=m,Ce=!0,qt=!1,Po=void 0;try{for(var Jt=x[Symbol.iterator](),Rr;!(Ce=(Rr=Jt.next()).done);Ce=!0){var Dn=Rr.value;Dn>=j&&Dn<Ye&&(Ye=Dn)}}catch(Ys){qt=!0,Po=Ys}finally{try{!Ce&&Jt.return&&Jt.return()}finally{if(qt)throw Po}}var qn=ie+1;Ye-j>R((m-D)/qn)&&F("overflow"),D+=(Ye-j)*qn,j=Ye;var Mt=!0,Br=!1,Mn=void 0;try{for(var yr=x[Symbol.iterator](),$a;!(Mt=($a=yr.next()).done);Mt=!0){var hm=$a.value;if(hm<j&&++D>m&&F("overflow"),hm==j){for(var Pa=D,xa=g;;xa+=g){var _a=xa<=te?O:xa>=te+y?y:xa-te;if(Pa<_a)break;var fm=Pa-_a,pm=g-_a;T.push(K(M(_a+fm%pm,0))),Pa=R(fm/pm)}T.push(K(M(Pa,0))),te=A(D,qn,ie==De),D=0,++ie}}}catch(Ys){Br=!0,Mn=Ys}finally{try{!Mt&&yr.return&&yr.return()}finally{if(Br)throw Mn}}++D,++j}return T.join("")},P=function(x){return Ee(x,function(T){return $.test(T)?Z(T.slice(4).toLowerCase()):T})},Q=function(x){return Ee(x,function(T){return C.test(T)?"xn--"+V(T):T})},I={version:"2.1.0",ucs2:{decode:se,encode:fe},decode:Z,encode:V,toASCII:Q,toUnicode:P},z={};function Y(x){var T=x.charCodeAt(0),N=void 0;return T<16?N="%0"+T.toString(16).toUpperCase():T<128?N="%"+T.toString(16).toUpperCase():T<2048?N="%"+(T>>6|192).toString(16).toUpperCase()+"%"+(T&63|128).toString(16).toUpperCase():N="%"+(T>>12|224).toString(16).toUpperCase()+"%"+(T>>6&63|128).toString(16).toUpperCase()+"%"+(T&63|128).toString(16).toUpperCase(),N}function de(x){for(var T="",N=0,j=x.length;N<j;){var D=parseInt(x.substr(N+1,2),16);if(D<128)T+=String.fromCharCode(D),N+=3;else if(D>=194&&D<224){if(j-N>=6){var te=parseInt(x.substr(N+4,2),16);T+=String.fromCharCode((D&31)<<6|te&63)}else T+=x.substr(N,6);N+=6}else if(D>=224){if(j-N>=9){var J=parseInt(x.substr(N+4,2),16),ye=parseInt(x.substr(N+7,2),16);T+=String.fromCharCode((D&15)<<12|(J&63)<<6|ye&63)}else T+=x.substr(N,9);N+=9}else T+=x.substr(N,3),N+=3}return T}function ue(x,T){function N(j){var D=de(j);return D.match(T.UNRESERVED)?D:j}return x.scheme&&(x.scheme=String(x.scheme).replace(T.PCT_ENCODED,N).toLowerCase().replace(T.NOT_SCHEME,"")),x.userinfo!==void 0&&(x.userinfo=String(x.userinfo).replace(T.PCT_ENCODED,N).replace(T.NOT_USERINFO,Y).replace(T.PCT_ENCODED,a)),x.host!==void 0&&(x.host=String(x.host).replace(T.PCT_ENCODED,N).toLowerCase().replace(T.NOT_HOST,Y).replace(T.PCT_ENCODED,a)),x.path!==void 0&&(x.path=String(x.path).replace(T.PCT_ENCODED,N).replace(x.scheme?T.NOT_PATH:T.NOT_PATH_NOSCHEME,Y).replace(T.PCT_ENCODED,a)),x.query!==void 0&&(x.query=String(x.query).replace(T.PCT_ENCODED,N).replace(T.NOT_QUERY,Y).replace(T.PCT_ENCODED,a)),x.fragment!==void 0&&(x.fragment=String(x.fragment).replace(T.PCT_ENCODED,N).replace(T.NOT_FRAGMENT,Y).replace(T.PCT_ENCODED,a)),x}function $e(x){return x.replace(/^0*(.*)/,"$1")||"0"}function jt(x,T){var N=x.match(T.IPV4ADDRESS)||[],j=f(N,2),D=j[1];return D?D.split(".").map($e).join("."):x}function mr(x,T){var N=x.match(T.IPV6ADDRESS)||[],j=f(N,3),D=j[1],te=j[2];if(D){for(var J=D.toLowerCase().split("::").reverse(),ye=f(J,2),Ue=ye[0],_e=ye[1],Oe=_e?_e.split(":").map($e):[],Ne=Ue.split(":").map($e),De=T.IPV4ADDRESS.test(Ne[Ne.length-1]),ie=De?7:8,Ye=Ne.length-ie,Ce=Array(ie),qt=0;qt<ie;++qt)Ce[qt]=Oe[qt]||Ne[Ye+qt]||"";De&&(Ce[ie-1]=jt(Ce[ie-1],T));var Po=Ce.reduce(function(Mt,Br,Mn){if(!Br||Br==="0"){var yr=Mt[Mt.length-1];yr&&yr.index+yr.length===Mn?yr.length++:Mt.push({index:Mn,length:1})}return Mt},[]),Jt=Po.sort(function(Mt,Br){return Br.length-Mt.length})[0],Rr=void 0;if(Jt&&Jt.length>1){var Dn=Ce.slice(0,Jt.index),qn=Ce.slice(Jt.index+Jt.length);Rr=Dn.join(":")+"::"+qn.join(":")}else Rr=Ce.join(":");return te&&(Rr+="%"+te),Rr}else return x}var Ds=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,qs="".match(/(){0}/)[1]===void 0;function Tt(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N={},j=T.iri!==!1?h:u;T.reference==="suffix"&&(x=(T.scheme?T.scheme+":":"")+"//"+x);var D=x.match(Ds);if(D){qs?(N.scheme=D[1],N.userinfo=D[3],N.host=D[4],N.port=parseInt(D[5],10),N.path=D[6]||"",N.query=D[7],N.fragment=D[8],isNaN(N.port)&&(N.port=D[5])):(N.scheme=D[1]||void 0,N.userinfo=x.indexOf("@")!==-1?D[3]:void 0,N.host=x.indexOf("//")!==-1?D[4]:void 0,N.port=parseInt(D[5],10),N.path=D[6]||"",N.query=x.indexOf("?")!==-1?D[7]:void 0,N.fragment=x.indexOf("#")!==-1?D[8]:void 0,isNaN(N.port)&&(N.port=x.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?D[4]:void 0)),N.host&&(N.host=mr(jt(N.host,j),j)),N.scheme===void 0&&N.userinfo===void 0&&N.host===void 0&&N.port===void 0&&!N.path&&N.query===void 0?N.reference="same-document":N.scheme===void 0?N.reference="relative":N.fragment===void 0?N.reference="absolute":N.reference="uri",T.reference&&T.reference!=="suffix"&&T.reference!==N.reference&&(N.error=N.error||"URI is not a "+T.reference+" reference.");var te=z[(T.scheme||N.scheme||"").toLowerCase()];if(!T.unicodeSupport&&(!te||!te.unicodeSupport)){if(N.host&&(T.domainHost||te&&te.domainHost))try{N.host=I.toASCII(N.host.replace(j.PCT_ENCODED,de).toLowerCase())}catch(J){N.error=N.error||"Host's domain name can not be converted to ASCII via punycode: "+J}ue(N,u)}else ue(N,j);te&&te.parse&&te.parse(N,T)}else N.error=N.error||"URI can not be parsed.";return N}function Ms(x,T){var N=T.iri!==!1?h:u,j=[];return x.userinfo!==void 0&&(j.push(x.userinfo),j.push("@")),x.host!==void 0&&j.push(mr(jt(String(x.host),N),N).replace(N.IPV6ADDRESS,function(D,te,J){return"["+te+(J?"%25"+J:"")+"]"})),(typeof x.port=="number"||typeof x.port=="string")&&(j.push(":"),j.push(String(x.port))),j.length?j.join(""):void 0}var vo=/^\.\.?\//,wo=/^\/\.(\/|$)/,ko=/^\/\.\.(\/|$)/,Xs=/^\/?(?:.|\n)*?(?=\/|$)/;function gr(x){for(var T=[];x.length;)if(x.match(vo))x=x.replace(vo,"");else if(x.match(wo))x=x.replace(wo,"/");else if(x.match(ko))x=x.replace(ko,"/"),T.pop();else if(x==="."||x==="..")x="";else{var N=x.match(Xs);if(N){var j=N[0];x=x.slice(j.length),T.push(j)}else throw new Error("Unexpected dot segment condition")}return T.join("")}function St(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=T.iri?h:u,j=[],D=z[(T.scheme||x.scheme||"").toLowerCase()];if(D&&D.serialize&&D.serialize(x,T),x.host&&!N.IPV6ADDRESS.test(x.host)&&(T.domainHost||D&&D.domainHost))try{x.host=T.iri?I.toUnicode(x.host):I.toASCII(x.host.replace(N.PCT_ENCODED,de).toLowerCase())}catch(ye){x.error=x.error||"Host's domain name can not be converted to "+(T.iri?"Unicode":"ASCII")+" via punycode: "+ye}ue(x,N),T.reference!=="suffix"&&x.scheme&&(j.push(x.scheme),j.push(":"));var te=Ms(x,T);if(te!==void 0&&(T.reference!=="suffix"&&j.push("//"),j.push(te),x.path&&x.path.charAt(0)!=="/"&&j.push("/")),x.path!==void 0){var J=x.path;!T.absolutePath&&(!D||!D.absolutePath)&&(J=gr(J)),te===void 0&&(J=J.replace(/^\/\//,"/%2F")),j.push(J)}return x.query!==void 0&&(j.push("?"),j.push(x.query)),x.fragment!==void 0&&(j.push("#"),j.push(x.fragment)),j.join("")}function So(x,T){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments[3],D={};return j||(x=Tt(St(x,N),N),T=Tt(St(T,N),N)),N=N||{},!N.tolerant&&T.scheme?(D.scheme=T.scheme,D.userinfo=T.userinfo,D.host=T.host,D.port=T.port,D.path=gr(T.path||""),D.query=T.query):(T.userinfo!==void 0||T.host!==void 0||T.port!==void 0?(D.userinfo=T.userinfo,D.host=T.host,D.port=T.port,D.path=gr(T.path||""),D.query=T.query):(T.path?(T.path.charAt(0)==="/"?D.path=gr(T.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?D.path="/"+T.path:x.path?D.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+T.path:D.path=T.path,D.path=gr(D.path)),D.query=T.query):(D.path=x.path,T.query!==void 0?D.query=T.query:D.query=x.query),D.userinfo=x.userinfo,D.host=x.host,D.port=x.port),D.scheme=x.scheme),D.fragment=T.fragment,D}function Ws(x,T,N){var j=c({scheme:"null"},N);return St(So(Tt(x,j),Tt(T,j),j,!0),j)}function In(x,T){return typeof x=="string"?x=St(Tt(x,T),T):s(x)==="object"&&(x=Tt(St(x,T),T)),x}function zs(x,T,N){return typeof x=="string"?x=St(Tt(x,N),N):s(x)==="object"&&(x=St(x,N)),typeof T=="string"?T=St(Tt(T,N),N):s(T)==="object"&&(T=St(T,N)),x===T}function Sa(x,T){return x&&x.toString().replace(!T||!T.iri?u.ESCAPE:h.ESCAPE,Y)}function Dt(x,T){return x&&x.toString().replace(!T||!T.iri?u.PCT_ENCODED:h.PCT_ENCODED,de)}var jn={scheme:"http",domainHost:!0,parse:function(x,T){return x.host||(x.error=x.error||"HTTP URIs must have a host."),x},serialize:function(x,T){var N=String(x.scheme).toLowerCase()==="https";return(x.port===(N?443:80)||x.port==="")&&(x.port=void 0),x.path||(x.path="/"),x}},om={scheme:"https",domainHost:jn.domainHost,parse:jn.parse,serialize:jn.serialize};function sm(x){return typeof x.secure=="boolean"?x.secure:String(x.scheme).toLowerCase()==="wss"}var Us={scheme:"ws",domainHost:!0,parse:function(x,T){var N=x;return N.secure=sm(N),N.resourceName=(N.path||"/")+(N.query?"?"+N.query:""),N.path=void 0,N.query=void 0,N},serialize:function(x,T){if((x.port===(sm(x)?443:80)||x.port==="")&&(x.port=void 0),typeof x.secure=="boolean"&&(x.scheme=x.secure?"wss":"ws",x.secure=void 0),x.resourceName){var N=x.resourceName.split("?"),j=f(N,2),D=j[0],te=j[1];x.path=D&&D!=="/"?D:void 0,x.query=te,x.resourceName=void 0}return x.fragment=void 0,x}},im={scheme:"wss",domainHost:Us.domainHost,parse:Us.parse,serialize:Us.serialize},Zk={},am="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Or="[0-9A-Fa-f]",Ik=o(o("%[EFef]"+Or+"%"+Or+Or+"%"+Or+Or)+"|"+o("%[89A-Fa-f]"+Or+"%"+Or+Or)+"|"+o("%"+Or+Or)),jk="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Dk="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",qk=n(Dk,'[\\"\\\\]'),Mk="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Xk=new RegExp(am,"g"),$o=new RegExp(Ik,"g"),Wk=new RegExp(n("[^]",jk,"[\\.]",'[\\"]',qk),"g"),lm=new RegExp(n("[^]",am,Mk),"g"),zk=lm;function dd(x){var T=de(x);return T.match(Xk)?T:x}var cm={scheme:"mailto",parse:function(x,T){var N=x,j=N.to=N.path?N.path.split(","):[];if(N.path=void 0,N.query){for(var D=!1,te={},J=N.query.split("&"),ye=0,Ue=J.length;ye<Ue;++ye){var _e=J[ye].split("=");switch(_e[0]){case"to":for(var Oe=_e[1].split(","),Ne=0,De=Oe.length;Ne<De;++Ne)j.push(Oe[Ne]);break;case"subject":N.subject=Dt(_e[1],T);break;case"body":N.body=Dt(_e[1],T);break;default:D=!0,te[Dt(_e[0],T)]=Dt(_e[1],T);break}}D&&(N.headers=te)}N.query=void 0;for(var ie=0,Ye=j.length;ie<Ye;++ie){var Ce=j[ie].split("@");if(Ce[0]=Dt(Ce[0]),T.unicodeSupport)Ce[1]=Dt(Ce[1],T).toLowerCase();else try{Ce[1]=I.toASCII(Dt(Ce[1],T).toLowerCase())}catch(qt){N.error=N.error||"Email address's domain name can not be converted to ASCII via punycode: "+qt}j[ie]=Ce.join("@")}return N},serialize:function(x,T){var N=x,j=l(x.to);if(j){for(var D=0,te=j.length;D<te;++D){var J=String(j[D]),ye=J.lastIndexOf("@"),Ue=J.slice(0,ye).replace($o,dd).replace($o,a).replace(Wk,Y),_e=J.slice(ye+1);try{_e=T.iri?I.toUnicode(_e):I.toASCII(Dt(_e,T).toLowerCase())}catch(ie){N.error=N.error||"Email address's domain name can not be converted to "+(T.iri?"Unicode":"ASCII")+" via punycode: "+ie}j[D]=Ue+"@"+_e}N.path=j.join(",")}var Oe=x.headers=x.headers||{};x.subject&&(Oe.subject=x.subject),x.body&&(Oe.body=x.body);var Ne=[];for(var De in Oe)Oe[De]!==Zk[De]&&Ne.push(De.replace($o,dd).replace($o,a).replace(lm,Y)+"="+Oe[De].replace($o,dd).replace($o,a).replace(zk,Y));return Ne.length&&(N.query=Ne.join("&")),N}},Uk=/^([^\:]+)\:(.*)/,dm={scheme:"urn",parse:function(x,T){var N=x.path&&x.path.match(Uk),j=x;if(N){var D=T.scheme||j.scheme||"urn",te=N[1].toLowerCase(),J=N[2],ye=D+":"+(T.nid||te),Ue=z[ye];j.nid=te,j.nss=J,j.path=void 0,Ue&&(j=Ue.parse(j,T))}else j.error=j.error||"URN can not be parsed.";return j},serialize:function(x,T){var N=T.scheme||x.scheme||"urn",j=x.nid,D=N+":"+(T.nid||j),te=z[D];te&&(x=te.serialize(x,T));var J=x,ye=x.nss;return J.path=(j||T.nid)+":"+ye,J}},Yk=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,um={scheme:"urn:uuid",parse:function(x,T){var N=x;return N.uuid=N.nss,N.nss=void 0,!T.tolerant&&(!N.uuid||!N.uuid.match(Yk))&&(N.error=N.error||"UUID is not valid."),N},serialize:function(x,T){var N=x;return N.nss=(x.uuid||"").toLowerCase(),N}};z[jn.scheme]=jn,z[om.scheme]=om,z[Us.scheme]=Us,z[im.scheme]=im,z[cm.scheme]=cm,z[dm.scheme]=dm,z[um.scheme]=um,t.SCHEMES=z,t.pctEncChar=Y,t.pctDecChars=de,t.parse=Tt,t.removeDotSegments=gr,t.serialize=St,t.resolveComponents=So,t.resolve=Ws,t.normalize=In,t.equal=zs,t.escapeComponent=Sa,t.unescapeComponent=Dt,Object.defineProperty(t,"__esModule",{value:!0})})})(vh,vh.exports);var BR=vh.exports;Object.defineProperty(zf,"__esModule",{value:!0});const j1=BR;j1.code='require("ajv/dist/runtime/uri").default';zf.default=j1;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var e=Lt;Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=oe;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const n=Ss,o=$s,s=mo,a=yt,l=oe,c=ot,d=ca,u=me,h=RR,f=zf,p=(M,A)=>new RegExp(M,A);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),O={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function v(M){var A,Z,V,P,Q,I,z,Y,de,ue,$e,jt,mr,Ds,qs,Tt,Ms,vo,wo,ko,Xs,gr,St,So,Ws;const In=M.strict,zs=(A=M.code)===null||A===void 0?void 0:A.optimize,Sa=zs===!0||zs===void 0?1:zs||0,Dt=(V=(Z=M.code)===null||Z===void 0?void 0:Z.regExp)!==null&&V!==void 0?V:p,jn=(P=M.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(I=(Q=M.strictSchema)!==null&&Q!==void 0?Q:In)!==null&&I!==void 0?I:!0,strictNumbers:(Y=(z=M.strictNumbers)!==null&&z!==void 0?z:In)!==null&&Y!==void 0?Y:!0,strictTypes:(ue=(de=M.strictTypes)!==null&&de!==void 0?de:In)!==null&&ue!==void 0?ue:"log",strictTuples:(jt=($e=M.strictTuples)!==null&&$e!==void 0?$e:In)!==null&&jt!==void 0?jt:"log",strictRequired:(Ds=(mr=M.strictRequired)!==null&&mr!==void 0?mr:In)!==null&&Ds!==void 0?Ds:!1,code:M.code?{...M.code,optimize:Sa,regExp:Dt}:{optimize:Sa,regExp:Dt},loopRequired:(qs=M.loopRequired)!==null&&qs!==void 0?qs:b,loopEnum:(Tt=M.loopEnum)!==null&&Tt!==void 0?Tt:b,meta:(Ms=M.meta)!==null&&Ms!==void 0?Ms:!0,messages:(vo=M.messages)!==null&&vo!==void 0?vo:!0,inlineRefs:(wo=M.inlineRefs)!==null&&wo!==void 0?wo:!0,schemaId:(ko=M.schemaId)!==null&&ko!==void 0?ko:"$id",addUsedSchema:(Xs=M.addUsedSchema)!==null&&Xs!==void 0?Xs:!0,validateSchema:(gr=M.validateSchema)!==null&&gr!==void 0?gr:!0,validateFormats:(St=M.validateFormats)!==null&&St!==void 0?St:!0,unicodeRegExp:(So=M.unicodeRegExp)!==null&&So!==void 0?So:!0,int32range:(Ws=M.int32range)!==null&&Ws!==void 0?Ws:!0,uriResolver:jn}}class w{constructor(A={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,A=this.opts={...A,...v(A)};const{es5:Z,lines:V}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:g,es5:Z,lines:V}),this.logger=R(A.logger);const P=A.validateFormats;A.validateFormats=!1,this.RULES=(0,s.getRules)(),S.call(this,O,A,"NOT SUPPORTED"),S.call(this,y,A,"DEPRECATED","warn"),this._metaOpts=B.call(this),A.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),A.keywords&&E.call(this,A.keywords),typeof A.meta=="object"&&this.addMetaSchema(A.meta),$.call(this),A.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:A,meta:Z,schemaId:V}=this.opts;let P=h;V==="id"&&(P={...h},P.id=P.$id,delete P.$id),Z&&A&&this.addMetaSchema(P,P[V],!1)}defaultMeta(){const{meta:A,schemaId:Z}=this.opts;return this.opts.defaultMeta=typeof A=="object"?A[Z]||A:void 0}validate(A,Z){let V;if(typeof A=="string"){if(V=this.getSchema(A),!V)throw new Error(`no schema with key or ref "${A}"`)}else V=this.compile(A);const P=V(Z);return"$async"in V||(this.errors=V.errors),P}compile(A,Z){const V=this._addSchema(A,Z);return V.validate||this._compileSchemaEnv(V)}compileAsync(A,Z){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return P.call(this,A,Z);async function P(ue,$e){await Q.call(this,ue.$schema);const jt=this._addSchema(ue,$e);return jt.validate||I.call(this,jt)}async function Q(ue){ue&&!this.getSchema(ue)&&await P.call(this,{$ref:ue},!0)}async function I(ue){try{return this._compileSchemaEnv(ue)}catch($e){if(!($e instanceof o.default))throw $e;return z.call(this,$e),await Y.call(this,$e.missingSchema),I.call(this,ue)}}function z({missingSchema:ue,missingRef:$e}){if(this.refs[ue])throw new Error(`AnySchema ${ue} is loaded but ${$e} cannot be resolved`)}async function Y(ue){const $e=await de.call(this,ue);this.refs[ue]||await Q.call(this,$e.$schema),this.refs[ue]||this.addSchema($e,ue,Z)}async function de(ue){const $e=this._loading[ue];if($e)return $e;try{return await(this._loading[ue]=V(ue))}finally{delete this._loading[ue]}}}addSchema(A,Z,V,P=this.opts.validateSchema){if(Array.isArray(A)){for(const I of A)this.addSchema(I,void 0,V,P);return this}let Q;if(typeof A=="object"){const{schemaId:I}=this.opts;if(Q=A[I],Q!==void 0&&typeof Q!="string")throw new Error(`schema ${I} must be string`)}return Z=(0,c.normalizeId)(Z||Q),this._checkUnique(Z),this.schemas[Z]=this._addSchema(A,V,Z,P,!0),this}addMetaSchema(A,Z,V=this.opts.validateSchema){return this.addSchema(A,Z,!0,V),this}validateSchema(A,Z){if(typeof A=="boolean")return!0;let V;if(V=A.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(V,A);if(!P&&Z){const Q="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Q);else throw new Error(Q)}return P}getSchema(A){let Z;for(;typeof(Z=k.call(this,A))=="string";)A=Z;if(Z===void 0){const{schemaId:V}=this.opts,P=new a.SchemaEnv({schema:{},schemaId:V});if(Z=a.resolveSchema.call(this,P,A),!Z)return;this.refs[A]=Z}return Z.validate||this._compileSchemaEnv(Z)}removeSchema(A){if(A instanceof RegExp)return this._removeAllSchemas(this.schemas,A),this._removeAllSchemas(this.refs,A),this;switch(typeof A){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Z=k.call(this,A);return typeof Z=="object"&&this._cache.delete(Z.schema),delete this.schemas[A],delete this.refs[A],this}case"object":{const Z=A;this._cache.delete(Z);let V=A[this.opts.schemaId];return V&&(V=(0,c.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(A){for(const Z of A)this.addKeyword(Z);return this}addKeyword(A,Z){let V;if(typeof A=="string")V=A,typeof Z=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Z.keyword=V);else if(typeof A=="object"&&Z===void 0){if(Z=A,V=Z.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(F.call(this,V,Z),!Z)return(0,u.eachItem)(V,Q=>ge.call(this,Q)),this;se.call(this,Z);const P={...Z,type:(0,d.getJSONTypes)(Z.type),schemaType:(0,d.getJSONTypes)(Z.schemaType)};return(0,u.eachItem)(V,P.type.length===0?Q=>ge.call(this,Q,P):Q=>P.type.forEach(I=>ge.call(this,Q,P,I))),this}getKeyword(A){const Z=this.RULES.all[A];return typeof Z=="object"?Z.definition:!!Z}removeKeyword(A){const{RULES:Z}=this;delete Z.keywords[A],delete Z.all[A];for(const V of Z.rules){const P=V.rules.findIndex(Q=>Q.keyword===A);P>=0&&V.rules.splice(P,1)}return this}addFormat(A,Z){return typeof Z=="string"&&(Z=new RegExp(Z)),this.formats[A]=Z,this}errorsText(A=this.errors,{separator:Z=", ",dataVar:V="data"}={}){return!A||A.length===0?"No errors":A.map(P=>`${V}${P.instancePath} ${P.message}`).reduce((P,Q)=>P+Z+Q)}$dataMetaSchema(A,Z){const V=this.RULES.all;A=JSON.parse(JSON.stringify(A));for(const P of Z){const Q=P.split("/").slice(1);let I=A;for(const z of Q)I=I[z];for(const z in V){const Y=V[z];if(typeof Y!="object")continue;const{$data:de}=Y.definition,ue=I[z];de&&ue&&(I[z]=le(ue))}}return A}_removeAllSchemas(A,Z){for(const V in A){const P=A[V];(!Z||Z.test(V))&&(typeof P=="string"?delete A[V]:P&&!P.meta&&(this._cache.delete(P.schema),delete A[V]))}}_addSchema(A,Z,V,P=this.opts.validateSchema,Q=this.opts.addUsedSchema){let I;const{schemaId:z}=this.opts;if(typeof A=="object")I=A[z];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof A!="boolean")throw new Error("schema must be object or boolean")}let Y=this._cache.get(A);if(Y!==void 0)return Y;V=(0,c.normalizeId)(I||V);const de=c.getSchemaRefs.call(this,A,V);return Y=new a.SchemaEnv({schema:A,schemaId:z,meta:Z,baseId:V,localRefs:de}),this._cache.set(Y.schema,Y),Q&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=Y),P&&this.validateSchema(A,!0),Y}_checkUnique(A){if(this.schemas[A]||this.refs[A])throw new Error(`schema with key or id "${A}" already exists`)}_compileSchemaEnv(A){if(A.meta?this._compileMetaSchema(A):a.compileSchema.call(this,A),!A.validate)throw new Error("ajv implementation error");return A.validate}_compileMetaSchema(A){const Z=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,A)}finally{this.opts=Z}}}r.default=w,w.ValidationError=n.default,w.MissingRefError=o.default;function S(M,A,Z,V="error"){for(const P in M){const Q=P;Q in A&&this.logger[V](`${Z}: option ${P}. ${M[Q]}`)}}function k(M){return M=(0,c.normalizeId)(M),this.schemas[M]||this.refs[M]}function $(){const M=this.opts.schemas;if(M)if(Array.isArray(M))this.addSchema(M);else for(const A in M)this.addSchema(M[A],A)}function C(){for(const M in this.opts.formats){const A=this.opts.formats[M];A&&this.addFormat(M,A)}}function E(M){if(Array.isArray(M)){this.addVocabulary(M);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const A in M){const Z=M[A];Z.keyword||(Z.keyword=A),this.addKeyword(Z)}}function B(){const M={...this.opts};for(const A of m)delete M[A];return M}const q={log(){},warn(){},error(){}};function R(M){if(M===!1)return q;if(M===void 0)return console;if(M.log&&M.warn&&M.error)return M;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function F(M,A){const{RULES:Z}=this;if((0,u.eachItem)(M,V=>{if(Z.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!K.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!A&&A.$data&&!("code"in A||"validate"in A))throw new Error('$data keyword must have "code" or "validate" function')}function ge(M,A,Z){var V;const P=A==null?void 0:A.post;if(Z&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Q}=this;let I=P?Q.post:Q.rules.find(({type:Y})=>Y===Z);if(I||(I={type:Z,rules:[]},Q.rules.push(I)),Q.keywords[M]=!0,!A)return;const z={keyword:M,definition:{...A,type:(0,d.getJSONTypes)(A.type),schemaType:(0,d.getJSONTypes)(A.schemaType)}};A.before?Ee.call(this,I,z,A.before):I.rules.push(z),Q.all[M]=z,(V=A.implements)===null||V===void 0||V.forEach(Y=>this.addKeyword(Y))}function Ee(M,A,Z){const V=M.rules.findIndex(P=>P.keyword===Z);V>=0?M.rules.splice(V,0,A):(M.rules.push(A),this.logger.warn(`rule ${Z} is not defined`))}function se(M){let{metaSchema:A}=M;A!==void 0&&(M.$data&&this.opts.$data&&(A=le(A)),M.validateSchema=this.compile(A,!0))}const fe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function le(M){return{anyOf:[M,fe]}}})(co);var Uf={},Vc={},Yf={};Object.defineProperty(Yf,"__esModule",{value:!0});const ZR={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Yf.default=ZR;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.callRef=Ar.getValidate=void 0;const IR=$s,zO=he,Pt=oe,To=It,UO=yt,Ha=me,jR={keyword:"$ref",schemaType:"string",code(r){const{gen:e,schema:t,it:n}=r,{baseId:o,schemaEnv:s,validateName:a,opts:l,self:c}=n,{root:d}=s;if((t==="#"||t==="#/")&&o===d.baseId)return h();const u=UO.resolveRef.call(c,d,o,t);if(u===void 0)throw new IR.default(n.opts.uriResolver,o,t);if(u instanceof UO.SchemaEnv)return f(u);return p(u);function h(){if(s===d)return wl(r,a,s,s.$async);const m=e.scopeValue("root",{ref:d});return wl(r,(0,Pt._)`${m}.validate`,d,d.$async)}function f(m){const g=D1(r,m);wl(r,g,m,m.$async)}function p(m){const g=e.scopeValue("schema",l.code.source===!0?{ref:m,code:(0,Pt.stringify)(m)}:{ref:m}),O=e.name("valid"),y=r.subschema({schema:m,dataTypes:[],schemaPath:Pt.nil,topSchemaRef:g,errSchemaPath:t},O);r.mergeEvaluated(y),r.ok(O)}}};function D1(r,e){const{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,Pt._)`${t.scopeValue("wrapper",{ref:e})}.validate`}Ar.getValidate=D1;function wl(r,e,t,n){const{gen:o,it:s}=r,{allErrors:a,schemaEnv:l,opts:c}=s,d=c.passContext?To.default.this:Pt.nil;n?u():h();function u(){if(!l.$async)throw new Error("async schema referenced by sync schema");const m=o.let("valid");o.try(()=>{o.code((0,Pt._)`await ${(0,zO.callValidateCode)(r,e,d)}`),p(e),a||o.assign(m,!0)},g=>{o.if((0,Pt._)`!(${g} instanceof ${s.ValidationError})`,()=>o.throw(g)),f(g),a||o.assign(m,!1)}),r.ok(m)}function h(){r.result((0,zO.callValidateCode)(r,e,d),()=>p(e),()=>f(e))}function f(m){const g=(0,Pt._)`${m}.errors`;o.assign(To.default.vErrors,(0,Pt._)`${To.default.vErrors} === null ? ${g} : ${To.default.vErrors}.concat(${g})`),o.assign(To.default.errors,(0,Pt._)`${To.default.vErrors}.length`)}function p(m){var g;if(!s.opts.unevaluated)return;const O=(g=t==null?void 0:t.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(s.props=Ha.mergeEvaluated.props(o,O.props,s.props));else{const y=o.var("props",(0,Pt._)`${m}.evaluated.props`);s.props=Ha.mergeEvaluated.props(o,y,s.props,Pt.Name)}if(s.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(s.items=Ha.mergeEvaluated.items(o,O.items,s.items));else{const y=o.var("items",(0,Pt._)`${m}.evaluated.items`);s.items=Ha.mergeEvaluated.items(o,y,s.items,Pt.Name)}}}Ar.callRef=wl;Ar.default=jR;Object.defineProperty(Vc,"__esModule",{value:!0});const DR=Yf,qR=Ar,MR=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",DR.default,qR.default];Vc.default=MR;var Rc={},Lf={};Object.defineProperty(Lf,"__esModule",{value:!0});const nc=oe,sn=nc.operators,oc={maximum:{okStr:"<=",ok:sn.LTE,fail:sn.GT},minimum:{okStr:">=",ok:sn.GTE,fail:sn.LT},exclusiveMaximum:{okStr:"<",ok:sn.LT,fail:sn.GTE},exclusiveMinimum:{okStr:">",ok:sn.GT,fail:sn.LTE}},XR={message:({keyword:r,schemaCode:e})=>(0,nc.str)`must be ${oc[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,nc._)`{comparison: ${oc[r].okStr}, limit: ${e}}`},WR={keyword:Object.keys(oc),type:"number",schemaType:"number",$data:!0,error:XR,code(r){const{keyword:e,data:t,schemaCode:n}=r;r.fail$data((0,nc._)`${t} ${oc[e].fail} ${n} || isNaN(${t})`)}};Lf.default=WR;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});const Pi=oe,zR={message:({schemaCode:r})=>(0,Pi.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,Pi._)`{multipleOf: ${r}}`},UR={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:zR,code(r){const{gen:e,data:t,schemaCode:n,it:o}=r,s=o.opts.multipleOfPrecision,a=e.let("res"),l=s?(0,Pi._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Pi._)`${a} !== parseInt(${a})`;r.fail$data((0,Pi._)`(${n} === 0 || (${a} = ${t}/${n}, ${l}))`)}};Bc.default=UR;var Zc={},Ff={};Object.defineProperty(Ff,"__esModule",{value:!0});function q1(r){const e=r.length;let t=0,n=0,o;for(;n<e;)t++,o=r.charCodeAt(n++),o>=55296&&o<=56319&&n<e&&(o=r.charCodeAt(n),(o&64512)===56320&&n++);return t}Ff.default=q1;q1.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Zc,"__esModule",{value:!0});const Fn=oe,YR=me,LR=Ff,FR={message({keyword:r,schemaCode:e}){const t=r==="maxLength"?"more":"fewer";return(0,Fn.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,Fn._)`{limit: ${r}}`},HR={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:FR,code(r){const{keyword:e,data:t,schemaCode:n,it:o}=r,s=e==="maxLength"?Fn.operators.GT:Fn.operators.LT,a=o.opts.unicode===!1?(0,Fn._)`${t}.length`:(0,Fn._)`${(0,YR.useFunc)(r.gen,LR.default)}(${t})`;r.fail$data((0,Fn._)`${a} ${s} ${n}`)}};Zc.default=HR;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0});const GR=he,sc=oe,KR={message:({schemaCode:r})=>(0,sc.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,sc._)`{pattern: ${r}}`},JR={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:KR,code(r){const{data:e,$data:t,schema:n,schemaCode:o,it:s}=r,a=s.opts.unicodeRegExp?"u":"",l=t?(0,sc._)`(new RegExp(${o}, ${a}))`:(0,GR.usePattern)(r,n);r.fail$data((0,sc._)`!${l}.test(${e})`)}};Ic.default=JR;var jc={};Object.defineProperty(jc,"__esModule",{value:!0});const xi=oe,eB={message({keyword:r,schemaCode:e}){const t=r==="maxProperties"?"more":"fewer";return(0,xi.str)`must NOT have ${t} than ${e} properties`},params:({schemaCode:r})=>(0,xi._)`{limit: ${r}}`},tB={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:eB,code(r){const{keyword:e,data:t,schemaCode:n}=r,o=e==="maxProperties"?xi.operators.GT:xi.operators.LT;r.fail$data((0,xi._)`Object.keys(${t}).length ${o} ${n}`)}};jc.default=tB;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const si=he,_i=oe,rB=me,nB={message:({params:{missingProperty:r}})=>(0,_i.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,_i._)`{missingProperty: ${r}}`},oB={keyword:"required",type:"object",schemaType:"array",$data:!0,error:nB,code(r){const{gen:e,schema:t,schemaCode:n,data:o,$data:s,it:a}=r,{opts:l}=a;if(!s&&t.length===0)return;const c=t.length>=l.loopRequired;if(a.allErrors?d():u(),l.strictRequired){const p=r.parentSchema.properties,{definedProperties:m}=r.it;for(const g of t)if((p==null?void 0:p[g])===void 0&&!m.has(g)){const O=a.schemaEnv.baseId+a.errSchemaPath,y=`required property "${g}" is not defined at "${O}" (strictRequired)`;(0,rB.checkStrictMode)(a,y,a.opts.strictRequired)}}function d(){if(c||s)r.block$data(_i.nil,h);else for(const p of t)(0,si.checkReportMissingProp)(r,p)}function u(){const p=e.let("missing");if(c||s){const m=e.let("valid",!0);r.block$data(m,()=>f(p,m)),r.ok(m)}else e.if((0,si.checkMissingProp)(r,t,p)),(0,si.reportMissingProp)(r,p),e.else()}function h(){e.forOf("prop",n,p=>{r.setParams({missingProperty:p}),e.if((0,si.noPropertyInData)(e,o,p,l.ownProperties),()=>r.error())})}function f(p,m){r.setParams({missingProperty:p}),e.forOf(p,n,()=>{e.assign(m,(0,si.propertyInData)(e,o,p,l.ownProperties)),e.if((0,_i.not)(m),()=>{r.error(),e.break()})},_i.nil)}}};Dc.default=oB;var qc={};Object.defineProperty(qc,"__esModule",{value:!0});const Ci=oe,sB={message({keyword:r,schemaCode:e}){const t=r==="maxItems"?"more":"fewer";return(0,Ci.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,Ci._)`{limit: ${r}}`},iB={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:sB,code(r){const{keyword:e,data:t,schemaCode:n}=r,o=e==="maxItems"?Ci.operators.GT:Ci.operators.LT;r.fail$data((0,Ci._)`${t}.length ${o} ${n}`)}};qc.default=iB;var Mc={},da={};Object.defineProperty(da,"__esModule",{value:!0});const M1=k1;M1.code='require("ajv/dist/runtime/equal").default';da.default=M1;Object.defineProperty(Mc,"__esModule",{value:!0});const Fd=ca,tt=oe,aB=me,lB=da,cB={message:({params:{i:r,j:e}})=>(0,tt.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,tt._)`{i: ${r}, j: ${e}}`},dB={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:cB,code(r){const{gen:e,data:t,$data:n,schema:o,parentSchema:s,schemaCode:a,it:l}=r;if(!n&&!o)return;const c=e.let("valid"),d=s.items?(0,Fd.getSchemaTypes)(s.items):[];r.block$data(c,u,(0,tt._)`${a} === false`),r.ok(c);function u(){const m=e.let("i",(0,tt._)`${t}.length`),g=e.let("j");r.setParams({i:m,j:g}),e.assign(c,!0),e.if((0,tt._)`${m} > 1`,()=>(h()?f:p)(m,g))}function h(){return d.length>0&&!d.some(m=>m==="object"||m==="array")}function f(m,g){const O=e.name("item"),y=(0,Fd.checkDataTypes)(d,O,l.opts.strictNumbers,Fd.DataType.Wrong),b=e.const("indices",(0,tt._)`{}`);e.for((0,tt._)`;${m}--;`,()=>{e.let(O,(0,tt._)`${t}[${m}]`),e.if(y,(0,tt._)`continue`),d.length>1&&e.if((0,tt._)`typeof ${O} == "string"`,(0,tt._)`${O} += "_"`),e.if((0,tt._)`typeof ${b}[${O}] == "number"`,()=>{e.assign(g,(0,tt._)`${b}[${O}]`),r.error(),e.assign(c,!1).break()}).code((0,tt._)`${b}[${O}] = ${m}`)})}function p(m,g){const O=(0,aB.useFunc)(e,lB.default),y=e.name("outer");e.label(y).for((0,tt._)`;${m}--;`,()=>e.for((0,tt._)`${g} = ${m}; ${g}--;`,()=>e.if((0,tt._)`${O}(${t}[${m}], ${t}[${g}])`,()=>{r.error(),e.assign(c,!1).break(y)})))}}};Mc.default=dB;var Xc={};Object.defineProperty(Xc,"__esModule",{value:!0});const wh=oe,uB=me,hB=da,fB={message:"must be equal to constant",params:({schemaCode:r})=>(0,wh._)`{allowedValue: ${r}}`},pB={keyword:"const",$data:!0,error:fB,code(r){const{gen:e,data:t,$data:n,schemaCode:o,schema:s}=r;n||s&&typeof s=="object"?r.fail$data((0,wh._)`!${(0,uB.useFunc)(e,hB.default)}(${t}, ${o})`):r.fail((0,wh._)`${s} !== ${t}`)}};Xc.default=pB;var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});const fi=oe,mB=me,gB=da,OB={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,fi._)`{allowedValues: ${r}}`},yB={keyword:"enum",schemaType:"array",$data:!0,error:OB,code(r){const{gen:e,data:t,$data:n,schema:o,schemaCode:s,it:a}=r;if(!n&&o.length===0)throw new Error("enum must have non-empty array");const l=o.length>=a.opts.loopEnum;let c;const d=()=>c??(c=(0,mB.useFunc)(e,gB.default));let u;if(l||n)u=e.let("valid"),r.block$data(u,h);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const p=e.const("vSchema",s);u=(0,fi.or)(...o.map((m,g)=>f(p,g)))}r.pass(u);function h(){e.assign(u,!1),e.forOf("v",s,p=>e.if((0,fi._)`${d()}(${t}, ${p})`,()=>e.assign(u,!0).break()))}function f(p,m){const g=o[m];return typeof g=="object"&&g!==null?(0,fi._)`${d()}(${t}, ${p}[${m}])`:(0,fi._)`${t} === ${g}`}}};Wc.default=yB;Object.defineProperty(Rc,"__esModule",{value:!0});const bB=Lf,vB=Bc,wB=Zc,kB=Ic,SB=jc,$B=Dc,PB=qc,xB=Mc,_B=Xc,CB=Wc,TB=[bB.default,vB.default,wB.default,kB.default,SB.default,$B.default,PB.default,xB.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_B.default,CB.default];Rc.default=TB;var ua={},Ps={};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.validateAdditionalItems=void 0;const Hn=oe,kh=me,QB={message:({params:{len:r}})=>(0,Hn.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Hn._)`{limit: ${r}}`},EB={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:QB,code(r){const{parentSchema:e,it:t}=r,{items:n}=e;if(!Array.isArray(n)){(0,kh.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}X1(r,n)}};function X1(r,e){const{gen:t,schema:n,data:o,keyword:s,it:a}=r;a.items=!0;const l=t.const("len",(0,Hn._)`${o}.length`);if(n===!1)r.setParams({len:e.length}),r.pass((0,Hn._)`${l} <= ${e.length}`);else if(typeof n=="object"&&!(0,kh.alwaysValidSchema)(a,n)){const d=t.var("valid",(0,Hn._)`${l} <= ${e.length}`);t.if((0,Hn.not)(d),()=>c(d)),r.ok(d)}function c(d){t.forRange("i",e.length,l,u=>{r.subschema({keyword:s,dataProp:u,dataPropType:kh.Type.Num},d),a.allErrors||t.if((0,Hn.not)(d),()=>t.break())})}}Ps.validateAdditionalItems=X1;Ps.default=EB;var Hf={},xs={};Object.defineProperty(xs,"__esModule",{value:!0});xs.validateTuple=void 0;const YO=oe,kl=me,NB=he,AB={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:e,it:t}=r;if(Array.isArray(e))return W1(r,"additionalItems",e);t.items=!0,!(0,kl.alwaysValidSchema)(t,e)&&r.ok((0,NB.validateArray)(r))}};function W1(r,e,t=r.schema){const{gen:n,parentSchema:o,data:s,keyword:a,it:l}=r;u(o),l.opts.unevaluated&&t.length&&l.items!==!0&&(l.items=kl.mergeEvaluated.items(n,t.length,l.items));const c=n.name("valid"),d=n.const("len",(0,YO._)`${s}.length`);t.forEach((h,f)=>{(0,kl.alwaysValidSchema)(l,h)||(n.if((0,YO._)`${d} > ${f}`,()=>r.subschema({keyword:a,schemaProp:f,dataProp:f},c)),r.ok(c))});function u(h){const{opts:f,errSchemaPath:p}=l,m=t.length,g=m===h.minItems&&(m===h.maxItems||h[e]===!1);if(f.strictTuples&&!g){const O=`"${a}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${p}"`;(0,kl.checkStrictMode)(l,O,f.strictTuples)}}}xs.validateTuple=W1;xs.default=AB;Object.defineProperty(Hf,"__esModule",{value:!0});const VB=xs,RB={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,VB.validateTuple)(r,"items")};Hf.default=RB;var Gf={};Object.defineProperty(Gf,"__esModule",{value:!0});const LO=oe,BB=me,ZB=he,IB=Ps,jB={message:({params:{len:r}})=>(0,LO.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,LO._)`{limit: ${r}}`},DB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:jB,code(r){const{schema:e,parentSchema:t,it:n}=r,{prefixItems:o}=t;n.items=!0,!(0,BB.alwaysValidSchema)(n,e)&&(o?(0,IB.validateAdditionalItems)(r,o):r.ok((0,ZB.validateArray)(r)))}};Gf.default=DB;var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0});const Wt=oe,Ga=me,qB={message:({params:{min:r,max:e}})=>e===void 0?(0,Wt.str)`must contain at least ${r} valid item(s)`:(0,Wt.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,Wt._)`{minContains: ${r}}`:(0,Wt._)`{minContains: ${r}, maxContains: ${e}}`},MB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:qB,code(r){const{gen:e,schema:t,parentSchema:n,data:o,it:s}=r;let a,l;const{minContains:c,maxContains:d}=n;s.opts.next?(a=c===void 0?1:c,l=d):a=1;const u=e.const("len",(0,Wt._)`${o}.length`);if(r.setParams({min:a,max:l}),l===void 0&&a===0){(0,Ga.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&a>l){(0,Ga.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,Ga.alwaysValidSchema)(s,t)){let g=(0,Wt._)`${u} >= ${a}`;l!==void 0&&(g=(0,Wt._)`${g} && ${u} <= ${l}`),r.pass(g);return}s.items=!0;const h=e.name("valid");l===void 0&&a===1?p(h,()=>e.if(h,()=>e.break())):a===0?(e.let(h,!0),l!==void 0&&e.if((0,Wt._)`${o}.length > 0`,f)):(e.let(h,!1),f()),r.result(h,()=>r.reset());function f(){const g=e.name("_valid"),O=e.let("count",0);p(g,()=>e.if(g,()=>m(O)))}function p(g,O){e.forRange("i",0,u,y=>{r.subschema({keyword:"contains",dataProp:y,dataPropType:Ga.Type.Num,compositeRule:!0},g),O()})}function m(g){e.code((0,Wt._)`${g}++`),l===void 0?e.if((0,Wt._)`${g} >= ${a}`,()=>e.assign(h,!0).break()):(e.if((0,Wt._)`${g} > ${l}`,()=>e.assign(h,!1).break()),a===1?e.assign(h,!0):e.if((0,Wt._)`${g} >= ${a}`,()=>e.assign(h,!0)))}}};Kf.default=MB;var zc={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const e=oe,t=me,n=he;r.error={message:({params:{property:c,depsCount:d,deps:u}})=>{const h=d===1?"property":"properties";return(0,e.str)`must have ${h} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:d,deps:u,missingProperty:h}})=>(0,e._)`{property: ${c},
|
|
90
|
+
missingProperty: ${h},
|
|
91
|
+
depsCount: ${d},
|
|
92
|
+
deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(c){const[d,u]=s(c);a(c,d),l(c,u)}};function s({schema:c}){const d={},u={};for(const h in c){if(h==="__proto__")continue;const f=Array.isArray(c[h])?d:u;f[h]=c[h]}return[d,u]}function a(c,d=c.schema){const{gen:u,data:h,it:f}=c;if(Object.keys(d).length===0)return;const p=u.let("missing");for(const m in d){const g=d[m];if(g.length===0)continue;const O=(0,n.propertyInData)(u,h,m,f.opts.ownProperties);c.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(O,()=>{for(const y of g)(0,n.checkReportMissingProp)(c,y)}):(u.if((0,e._)`${O} && (${(0,n.checkMissingProp)(c,g,p)})`),(0,n.reportMissingProp)(c,p),u.else())}}r.validatePropertyDeps=a;function l(c,d=c.schema){const{gen:u,data:h,keyword:f,it:p}=c,m=u.name("valid");for(const g in d)(0,t.alwaysValidSchema)(p,d[g])||(u.if((0,n.propertyInData)(u,h,g,p.opts.ownProperties),()=>{const O=c.subschema({keyword:f,schemaProp:g},m);c.mergeValidEvaluated(O,m)},()=>u.var(m,!0)),c.ok(m))}r.validateSchemaDeps=l,r.default=o})(zc);var Jf={};Object.defineProperty(Jf,"__esModule",{value:!0});const z1=oe,XB=me,WB={message:"property name must be valid",params:({params:r})=>(0,z1._)`{propertyName: ${r.propertyName}}`},zB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:WB,code(r){const{gen:e,schema:t,data:n,it:o}=r;if((0,XB.alwaysValidSchema)(o,t))return;const s=e.name("valid");e.forIn("key",n,a=>{r.setParams({propertyName:a}),r.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),e.if((0,z1.not)(s),()=>{r.error(!0),o.allErrors||e.break()})}),r.ok(s)}};Jf.default=zB;var Uc={};Object.defineProperty(Uc,"__esModule",{value:!0});const Ka=he,tr=oe,UB=It,Ja=me,YB={message:"must NOT have additional properties",params:({params:r})=>(0,tr._)`{additionalProperty: ${r.additionalProperty}}`},LB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:YB,code(r){const{gen:e,schema:t,parentSchema:n,data:o,errsCount:s,it:a}=r;if(!s)throw new Error("ajv implementation error");const{allErrors:l,opts:c}=a;if(a.props=!0,c.removeAdditional!=="all"&&(0,Ja.alwaysValidSchema)(a,t))return;const d=(0,Ka.allSchemaProperties)(n.properties),u=(0,Ka.allSchemaProperties)(n.patternProperties);h(),r.ok((0,tr._)`${s} === ${UB.default.errors}`);function h(){e.forIn("key",o,O=>{!d.length&&!u.length?m(O):e.if(f(O),()=>m(O))})}function f(O){let y;if(d.length>8){const b=(0,Ja.schemaRefOrVal)(a,n.properties,"properties");y=(0,Ka.isOwnProperty)(e,b,O)}else d.length?y=(0,tr.or)(...d.map(b=>(0,tr._)`${O} === ${b}`)):y=tr.nil;return u.length&&(y=(0,tr.or)(y,...u.map(b=>(0,tr._)`${(0,Ka.usePattern)(r,b)}.test(${O})`))),(0,tr.not)(y)}function p(O){e.code((0,tr._)`delete ${o}[${O}]`)}function m(O){if(c.removeAdditional==="all"||c.removeAdditional&&t===!1){p(O);return}if(t===!1){r.setParams({additionalProperty:O}),r.error(),l||e.break();return}if(typeof t=="object"&&!(0,Ja.alwaysValidSchema)(a,t)){const y=e.name("valid");c.removeAdditional==="failing"?(g(O,y,!1),e.if((0,tr.not)(y),()=>{r.reset(),p(O)})):(g(O,y),l||e.if((0,tr.not)(y),()=>e.break()))}}function g(O,y,b){const v={keyword:"additionalProperties",dataProp:O,dataPropType:Ja.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(v,y)}}};Uc.default=LB;var ep={};Object.defineProperty(ep,"__esModule",{value:!0});const FB=Lt,FO=he,Hd=me,HO=Uc,HB={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,parentSchema:n,data:o,it:s}=r;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&HO.default.code(new FB.KeywordCxt(s,HO.default,"additionalProperties"));const a=(0,FO.allSchemaProperties)(t);for(const h of a)s.definedProperties.add(h);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=Hd.mergeEvaluated.props(e,(0,Hd.toHash)(a),s.props));const l=a.filter(h=>!(0,Hd.alwaysValidSchema)(s,t[h]));if(l.length===0)return;const c=e.name("valid");for(const h of l)d(h)?u(h):(e.if((0,FO.propertyInData)(e,o,h,s.opts.ownProperties)),u(h),s.allErrors||e.else().var(c,!0),e.endIf()),r.it.definedProperties.add(h),r.ok(c);function d(h){return s.opts.useDefaults&&!s.compositeRule&&t[h].default!==void 0}function u(h){r.subschema({keyword:"properties",schemaProp:h,dataProp:h},c)}}};ep.default=HB;var tp={};Object.defineProperty(tp,"__esModule",{value:!0});const GO=he,el=oe,KO=me,JO=me,GB={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:n,parentSchema:o,it:s}=r,{opts:a}=s,l=(0,GO.allSchemaProperties)(t),c=l.filter(g=>(0,KO.alwaysValidSchema)(s,t[g]));if(l.length===0||c.length===l.length&&(!s.opts.unevaluated||s.props===!0))return;const d=a.strictSchema&&!a.allowMatchingProperties&&o.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof el.Name)&&(s.props=(0,JO.evaluatedPropsToName)(e,s.props));const{props:h}=s;f();function f(){for(const g of l)d&&p(g),s.allErrors?m(g):(e.var(u,!0),m(g),e.if(u))}function p(g){for(const O in d)new RegExp(g).test(O)&&(0,KO.checkStrictMode)(s,`property ${O} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){e.forIn("key",n,O=>{e.if((0,el._)`${(0,GO.usePattern)(r,g)}.test(${O})`,()=>{const y=c.includes(g);y||r.subschema({keyword:"patternProperties",schemaProp:g,dataProp:O,dataPropType:JO.Type.Str},u),s.opts.unevaluated&&h!==!0?e.assign((0,el._)`${h}[${O}]`,!0):!y&&!s.allErrors&&e.if((0,el.not)(u),()=>e.break())})})}}};tp.default=GB;var rp={};Object.defineProperty(rp,"__esModule",{value:!0});const KB=me,JB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:n}=r;if((0,KB.alwaysValidSchema)(n,t)){r.fail();return}const o=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};rp.default=JB;var np={};Object.defineProperty(np,"__esModule",{value:!0});const eZ=he,tZ={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:eZ.validateUnion,error:{message:"must match a schema in anyOf"}};np.default=tZ;var op={};Object.defineProperty(op,"__esModule",{value:!0});const Sl=oe,rZ=me,nZ={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,Sl._)`{passingSchemas: ${r.passing}}`},oZ={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:nZ,code(r){const{gen:e,schema:t,parentSchema:n,it:o}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const s=t,a=e.let("valid",!1),l=e.let("passing",null),c=e.name("_valid");r.setParams({passing:l}),e.block(d),r.result(a,()=>r.reset(),()=>r.error(!0));function d(){s.forEach((u,h)=>{let f;(0,rZ.alwaysValidSchema)(o,u)?e.var(c,!0):f=r.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&e.if((0,Sl._)`${c} && ${a}`).assign(a,!1).assign(l,(0,Sl._)`[${l}, ${h}]`).else(),e.if(c,()=>{e.assign(a,!0),e.assign(l,h),f&&r.mergeEvaluated(f,Sl.Name)})})}}};op.default=oZ;var sp={};Object.defineProperty(sp,"__esModule",{value:!0});const sZ=me,iZ={keyword:"allOf",schemaType:"array",code(r){const{gen:e,schema:t,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");const o=e.name("valid");t.forEach((s,a)=>{if((0,sZ.alwaysValidSchema)(n,s))return;const l=r.subschema({keyword:"allOf",schemaProp:a},o);r.ok(o),r.mergeEvaluated(l)})}};sp.default=iZ;var ip={};Object.defineProperty(ip,"__esModule",{value:!0});const ic=oe,U1=me,aZ={message:({params:r})=>(0,ic.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,ic._)`{failingKeyword: ${r.ifClause}}`},lZ={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:aZ,code(r){const{gen:e,parentSchema:t,it:n}=r;t.then===void 0&&t.else===void 0&&(0,U1.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=e0(n,"then"),s=e0(n,"else");if(!o&&!s)return;const a=e.let("valid",!0),l=e.name("_valid");if(c(),r.reset(),o&&s){const u=e.let("ifClause");r.setParams({ifClause:u}),e.if(l,d("then",u),d("else",u))}else o?e.if(l,d("then")):e.if((0,ic.not)(l),d("else"));r.pass(a,()=>r.error(!0));function c(){const u=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);r.mergeEvaluated(u)}function d(u,h){return()=>{const f=r.subschema({keyword:u},l);e.assign(a,l),r.mergeValidEvaluated(f,a),h?e.assign(h,(0,ic._)`${u}`):r.setParams({ifClause:u})}}}};function e0(r,e){const t=r.schema[e];return t!==void 0&&!(0,U1.alwaysValidSchema)(r,t)}ip.default=lZ;var ap={};Object.defineProperty(ap,"__esModule",{value:!0});const cZ=me,dZ={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,cZ.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};ap.default=dZ;Object.defineProperty(ua,"__esModule",{value:!0});const uZ=Ps,hZ=Hf,fZ=xs,pZ=Gf,mZ=Kf,gZ=zc,OZ=Jf,yZ=Uc,bZ=ep,vZ=tp,wZ=rp,kZ=np,SZ=op,$Z=sp,PZ=ip,xZ=ap;function _Z(r=!1){const e=[wZ.default,kZ.default,SZ.default,$Z.default,PZ.default,xZ.default,OZ.default,yZ.default,gZ.default,bZ.default,vZ.default];return r?e.push(hZ.default,pZ.default):e.push(uZ.default,fZ.default),e.push(mZ.default),e}ua.default=_Z;var ha={},lp={};Object.defineProperty(lp,"__esModule",{value:!0});const qe=oe,CZ={message:({schemaCode:r})=>(0,qe.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,qe._)`{format: ${r}}`},TZ={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:CZ,code(r,e){const{gen:t,data:n,$data:o,schema:s,schemaCode:a,it:l}=r,{opts:c,errSchemaPath:d,schemaEnv:u,self:h}=l;if(!c.validateFormats)return;o?f():p();function f(){const m=t.scopeValue("formats",{ref:h.formats,code:c.code.formats}),g=t.const("fDef",(0,qe._)`${m}[${a}]`),O=t.let("fType"),y=t.let("format");t.if((0,qe._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>t.assign(O,(0,qe._)`${g}.type || "string"`).assign(y,(0,qe._)`${g}.validate`),()=>t.assign(O,(0,qe._)`"string"`).assign(y,g)),r.fail$data((0,qe.or)(b(),v()));function b(){return c.strictSchema===!1?qe.nil:(0,qe._)`${a} && !${y}`}function v(){const w=u.$async?(0,qe._)`(${g}.async ? await ${y}(${n}) : ${y}(${n}))`:(0,qe._)`${y}(${n})`,S=(0,qe._)`(typeof ${y} == "function" ? ${w} : ${y}.test(${n}))`;return(0,qe._)`${y} && ${y} !== true && ${O} === ${e} && !${S}`}}function p(){const m=h.formats[s];if(!m){b();return}if(m===!0)return;const[g,O,y]=v(m);g===e&&r.pass(w());function b(){if(c.strictSchema===!1){h.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${s}" ignored in schema at path "${d}"`}}function v(S){const k=S instanceof RegExp?(0,qe.regexpCode)(S):c.code.formats?(0,qe._)`${c.code.formats}${(0,qe.getProperty)(s)}`:void 0,$=t.scopeValue("formats",{key:s,ref:S,code:k});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,qe._)`${$}.validate`]:["string",S,$]}function w(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!u.$async)throw new Error("async format in sync schema");return(0,qe._)`await ${y}(${n})`}return typeof O=="function"?(0,qe._)`${y}(${n})`:(0,qe._)`${y}.test(${n})`}}}};lp.default=TZ;Object.defineProperty(ha,"__esModule",{value:!0});const QZ=lp,EZ=[QZ.default];ha.default=EZ;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.contentVocabulary=go.metadataVocabulary=void 0;go.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];go.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Uf,"__esModule",{value:!0});const NZ=Vc,AZ=Rc,VZ=ua,RZ=ha,t0=go,BZ=[NZ.default,AZ.default,(0,VZ.default)(),RZ.default,t0.metadataVocabulary,t0.contentVocabulary];Uf.default=BZ;var fa={},Y1={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r.DiscrError||(r.DiscrError={}))})(Y1);Object.defineProperty(fa,"__esModule",{value:!0});const Ro=oe,Sh=Y1,r0=yt,ZZ=me,IZ={message:({params:{discrError:r,tagName:e}})=>r===Sh.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,Ro._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},jZ={keyword:"discriminator",type:"object",schemaType:"object",error:IZ,code(r){const{gen:e,data:t,schema:n,parentSchema:o,it:s}=r,{oneOf:a}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=n.propertyName;if(typeof l!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),d=e.const("tag",(0,Ro._)`${t}${(0,Ro.getProperty)(l)}`);e.if((0,Ro._)`typeof ${d} == "string"`,()=>u(),()=>r.error(!1,{discrError:Sh.DiscrError.Tag,tag:d,tagName:l})),r.ok(c);function u(){const p=f();e.if(!1);for(const m in p)e.elseIf((0,Ro._)`${d} === ${m}`),e.assign(c,h(p[m]));e.else(),r.error(!1,{discrError:Sh.DiscrError.Mapping,tag:d,tagName:l}),e.endIf()}function h(p){const m=e.name("valid"),g=r.subschema({keyword:"oneOf",schemaProp:p},m);return r.mergeEvaluated(g,Ro.Name),m}function f(){var p;const m={},g=y(o);let O=!0;for(let w=0;w<a.length;w++){let S=a[w];S!=null&&S.$ref&&!(0,ZZ.schemaHasRulesButRef)(S,s.self.RULES)&&(S=r0.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,S==null?void 0:S.$ref),S instanceof r0.SchemaEnv&&(S=S.schema));const k=(p=S==null?void 0:S.properties)===null||p===void 0?void 0:p[l];if(typeof k!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);O=O&&(g||y(S)),b(k,w)}if(!O)throw new Error(`discriminator: "${l}" must be required`);return m;function y({required:w}){return Array.isArray(w)&&w.includes(l)}function b(w,S){if(w.const)v(w.const,S);else if(w.enum)for(const k of w.enum)v(k,S);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function v(w,S){if(typeof w!="string"||w in m)throw new Error(`discriminator: "${l}" values must be unique strings`);m[w]=S}}}};fa.default=jZ;const DZ="http://json-schema.org/draft-07/schema#",qZ="http://json-schema.org/draft-07/schema#",MZ="Core schema meta-schema",XZ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},WZ=["object","boolean"],zZ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},UZ={$schema:DZ,$id:qZ,title:MZ,definitions:XZ,type:WZ,properties:zZ,default:!0};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=co,n=Uf,o=fa,s=UZ,a=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends t.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(m,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=Lt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=oe;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var h=Ss;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=$s;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Oh,Oh.exports);var YZ=Oh.exports;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=YZ,t=oe,n=t.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:l,schemaCode:c})=>t.str`should be ${o[l].okStr} ${c}`,params:({keyword:l,schemaCode:c})=>t._`{comparison: ${o[l].okStr}, limit: ${c}}`};r.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(l){const{gen:c,data:d,schemaCode:u,keyword:h,it:f}=l,{opts:p,self:m}=f;if(!p.validateFormats)return;const g=new e.KeywordCxt(f,m.RULES.all.format.definition,"format");g.$data?O():y();function O(){const v=c.scopeValue("formats",{ref:m.formats,code:p.code.formats}),w=c.const("fmt",t._`${v}[${g.schemaCode}]`);l.fail$data(t.or(t._`typeof ${w} != "object"`,t._`${w} instanceof RegExp`,t._`typeof ${w}.compare != "function"`,b(w)))}function y(){const v=g.schema,w=m.formats[v];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${h}": format "${v}" does not define "compare" function`);const S=c.scopeValue("formats",{key:v,ref:w,code:p.code.formats?t._`${p.code.formats}${t.getProperty(v)}`:void 0});l.fail$data(b(S))}function b(v){return t._`${v}.compare(${d}, ${u}) ${o[h].fail} 0`}},dependencies:["format"]};const a=l=>(l.addKeyword(r.formatLimitDefinition),l);r.default=a})(p1);(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=f1,n=p1,o=oe,s=new o.Name("fullFormats"),a=new o.Name("fastFormats"),l=(d,u={keywords:!0})=>{if(Array.isArray(u))return c(d,u,t.fullFormats,s),d;const[h,f]=u.mode==="fast"?[t.fastFormats,a]:[t.fullFormats,s],p=u.formats||t.formatNames;return c(d,p,h,f),u.keywords&&n.default(d),d};l.get=(d,u="full")=>{const h=(u==="fast"?t.fastFormats:t.fullFormats)[d];if(!h)throw new Error(`Unknown format "${d}"`);return h};function c(d,u,h,f){var p,m;(p=(m=d.opts.code).formats)!==null&&p!==void 0||(m.formats=o._`require("ajv-formats/dist/formats").${f}`);for(const g of u)d.addFormat(g,h[g])}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l})(gh,gh.exports);var LZ=gh.exports;const FZ=If(LZ);var $h={exports:{}},cp={},dp={};Object.defineProperty(dp,"__esModule",{value:!0});const HZ=Ar,GZ=["$schema","id","$defs",{keyword:"$comment"},"definitions",HZ.default];dp.default=GZ;var up={},hp={};Object.defineProperty(hp,"__esModule",{value:!0});const Ph=co,KZ=oe,an=KZ.operators,xh={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:an.LTE,fail:an.GT},{okStr:"<",ok:an.LT,fail:an.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:an.GTE,fail:an.LT},{okStr:">",ok:an.GT,fail:an.LTE}]}},JZ={message:r=>Ph.str`must be ${_h(r).okStr} ${r.schemaCode}`,params:r=>Ph._`{comparison: ${_h(r).okStr}, limit: ${r.schemaCode}}`},eI={keyword:Object.keys(xh),type:"number",schemaType:"number",$data:!0,error:JZ,code(r){const{data:e,schemaCode:t}=r;r.fail$data(Ph._`${e} ${_h(r).fail} ${t} || isNaN(${e})`)}};function _h(r){var e;const t=r.keyword,n=!((e=r.parentSchema)===null||e===void 0)&&e[xh[t].exclusive]?1:0;return xh[t].ops[n]}hp.default=eI;var fp={};Object.defineProperty(fp,"__esModule",{value:!0});const n0={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},tI={keyword:Object.keys(n0),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:e}){const t=n0[r];if(e[t]===void 0)throw new Error(`${r} can only be used with ${t}`)}};fp.default=tI;Object.defineProperty(up,"__esModule",{value:!0});const rI=hp,nI=fp,oI=Bc,sI=Zc,iI=Ic,aI=jc,lI=Dc,cI=qc,dI=Mc,uI=Xc,hI=Wc,fI=[rI.default,nI.default,oI.default,sI.default,iI.default,aI.default,lI.default,cI.default,dI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},uI.default,hI.default];up.default=fI;Object.defineProperty(cp,"__esModule",{value:!0});const pI=dp,mI=up,gI=ua,OI=ha,yI=["title","description","default"],bI=[pI.default,mI.default,gI.default(),OI.default,yI];cp.default=bI;const vI="http://json-schema.org/draft-04/schema#",wI="http://json-schema.org/draft-04/schema#",kI="Core schema meta-schema",SI={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},$I="object",PI={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},xI={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},_I={id:vI,$schema:wI,description:kI,definitions:SI,type:$I,properties:PI,dependencies:xI,default:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=co,n=cp,o=fa,s=_I,a=["/properties"],l="http://json-schema.org/draft-04/schema";class c extends t.default{constructor(f={}){super({...f,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const f=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(f,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=co;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=co;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})($h,$h.exports);var CI=$h.exports;const TI=If(CI);var Ch={exports:{}},pp={},mp={},_s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.dynamicAnchor=void 0;const Gd=oe,QI=It,o0=yt,EI=Ar,NI={keyword:"$dynamicAnchor",schemaType:"string",code:r=>L1(r,r.schema)};function L1(r,e){const{gen:t,it:n}=r;n.schemaEnv.root.dynamicAnchors[e]=!0;const o=(0,Gd._)`${QI.default.dynamicAnchors}${(0,Gd.getProperty)(e)}`,s=n.errSchemaPath==="#"?n.validateName:AI(r);t.if((0,Gd._)`!${o}`,()=>t.assign(o,s))}_s.dynamicAnchor=L1;function AI(r){const{schemaEnv:e,schema:t,self:n}=r.it,{root:o,baseId:s,localRefs:a,meta:l}=e.root,{schemaId:c}=n.opts,d=new o0.SchemaEnv({schema:t,schemaId:c,root:o,baseId:s,localRefs:a,meta:l});return o0.compileSchema.call(n,d),(0,EI.getValidate)(r,d)}_s.default=NI;var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.dynamicRef=void 0;const s0=oe,VI=It,i0=Ar,RI={keyword:"$dynamicRef",schemaType:"string",code:r=>F1(r,r.schema)};function F1(r,e){const{gen:t,keyword:n,it:o}=r;if(e[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);const s=e.slice(1);if(o.allErrors)a();else{const c=t.let("valid",!1);a(c),r.ok(c)}function a(c){if(o.schemaEnv.root.dynamicAnchors[s]){const d=t.let("_v",(0,s0._)`${VI.default.dynamicAnchors}${(0,s0.getProperty)(s)}`);t.if(d,l(d,c),l(o.validateName,c))}else l(o.validateName,c)()}function l(c,d){return d?()=>t.block(()=>{(0,i0.callRef)(r,c),t.let(d,!0)}):()=>(0,i0.callRef)(r,c)}}Cs.dynamicRef=F1;Cs.default=RI;var gp={};Object.defineProperty(gp,"__esModule",{value:!0});const BI=_s,ZI=me,II={keyword:"$recursiveAnchor",schemaType:"boolean",code(r){r.schema?(0,BI.dynamicAnchor)(r,""):(0,ZI.checkStrictMode)(r.it,"$recursiveAnchor: false is ignored")}};gp.default=II;var Op={};Object.defineProperty(Op,"__esModule",{value:!0});const jI=Cs,DI={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,jI.dynamicRef)(r,r.schema)};Op.default=DI;Object.defineProperty(mp,"__esModule",{value:!0});const qI=_s,MI=Cs,XI=gp,WI=Op,zI=[qI.default,MI.default,XI.default,WI.default];mp.default=zI;var yp={},bp={};Object.defineProperty(bp,"__esModule",{value:!0});const a0=zc,UI={keyword:"dependentRequired",type:"object",schemaType:"object",error:a0.error,code:r=>(0,a0.validatePropertyDeps)(r)};bp.default=UI;var vp={};Object.defineProperty(vp,"__esModule",{value:!0});const YI=zc,LI={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,YI.validateSchemaDeps)(r)};vp.default=LI;var wp={};Object.defineProperty(wp,"__esModule",{value:!0});const FI=me,HI={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:e,it:t}){e.contains===void 0&&(0,FI.checkStrictMode)(t,`"${r}" without "contains" is ignored`)}};wp.default=HI;Object.defineProperty(yp,"__esModule",{value:!0});const GI=bp,KI=vp,JI=wp,e3=[GI.default,KI.default,JI.default];yp.default=e3;var kp={},Sp={};Object.defineProperty(Sp,"__esModule",{value:!0});const dn=oe,l0=me,t3=It,r3={message:"must NOT have unevaluated properties",params:({params:r})=>(0,dn._)`{unevaluatedProperty: ${r.unevaluatedProperty}}`},n3={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:r3,code(r){const{gen:e,schema:t,data:n,errsCount:o,it:s}=r;if(!o)throw new Error("ajv implementation error");const{allErrors:a,props:l}=s;l instanceof dn.Name?e.if((0,dn._)`${l} !== true`,()=>e.forIn("key",n,h=>e.if(d(l,h),()=>c(h)))):l!==!0&&e.forIn("key",n,h=>l===void 0?c(h):e.if(u(l,h),()=>c(h))),s.props=!0,r.ok((0,dn._)`${o} === ${t3.default.errors}`);function c(h){if(t===!1){r.setParams({unevaluatedProperty:h}),r.error(),a||e.break();return}if(!(0,l0.alwaysValidSchema)(s,t)){const f=e.name("valid");r.subschema({keyword:"unevaluatedProperties",dataProp:h,dataPropType:l0.Type.Str},f),a||e.if((0,dn.not)(f),()=>e.break())}}function d(h,f){return(0,dn._)`!${h} || !${h}[${f}]`}function u(h,f){const p=[];for(const m in h)h[m]===!0&&p.push((0,dn._)`${f} !== ${m}`);return(0,dn.and)(...p)}}};Sp.default=n3;var $p={};Object.defineProperty($p,"__esModule",{value:!0});const Gn=oe,c0=me,o3={message:({params:{len:r}})=>(0,Gn.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Gn._)`{limit: ${r}}`},s3={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:o3,code(r){const{gen:e,schema:t,data:n,it:o}=r,s=o.items||0;if(s===!0)return;const a=e.const("len",(0,Gn._)`${n}.length`);if(t===!1)r.setParams({len:s}),r.fail((0,Gn._)`${a} > ${s}`);else if(typeof t=="object"&&!(0,c0.alwaysValidSchema)(o,t)){const c=e.var("valid",(0,Gn._)`${a} <= ${s}`);e.if((0,Gn.not)(c),()=>l(c,s)),r.ok(c)}o.items=!0;function l(c,d){e.forRange("i",d,a,u=>{r.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:c0.Type.Num},c),o.allErrors||e.if((0,Gn.not)(c),()=>e.break())})}}};$p.default=s3;Object.defineProperty(kp,"__esModule",{value:!0});const i3=Sp,a3=$p,l3=[i3.default,a3.default];kp.default=l3;Object.defineProperty(pp,"__esModule",{value:!0});const c3=Vc,d3=Rc,u3=ua,h3=mp,f3=yp,p3=kp,m3=ha,d0=go,g3=[h3.default,c3.default,d3.default,(0,u3.default)(!0),m3.default,d0.metadataVocabulary,d0.contentVocabulary,f3.default,p3.default];pp.default=g3;var Pp={};const O3="https://json-schema.org/draft/2020-12/schema",y3="https://json-schema.org/draft/2020-12/schema",b3={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},v3="meta",w3="Core and Validation specifications meta-schema",k3=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],S3=["object","boolean"],$3="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",P3={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},x3={$schema:O3,$id:y3,$vocabulary:b3,$dynamicAnchor:v3,title:w3,allOf:k3,type:S3,$comment:$3,properties:P3},_3="https://json-schema.org/draft/2020-12/schema",C3="https://json-schema.org/draft/2020-12/meta/applicator",T3={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Q3="meta",E3="Applicator vocabulary meta-schema",N3=["object","boolean"],A3={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},V3={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},R3={$schema:_3,$id:C3,$vocabulary:T3,$dynamicAnchor:Q3,title:E3,type:N3,properties:A3,$defs:V3},B3="https://json-schema.org/draft/2020-12/schema",Z3="https://json-schema.org/draft/2020-12/meta/unevaluated",I3={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},j3="meta",D3="Unevaluated applicator vocabulary meta-schema",q3=["object","boolean"],M3={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},X3={$schema:B3,$id:Z3,$vocabulary:I3,$dynamicAnchor:j3,title:D3,type:q3,properties:M3},W3="https://json-schema.org/draft/2020-12/schema",z3="https://json-schema.org/draft/2020-12/meta/content",U3={"https://json-schema.org/draft/2020-12/vocab/content":!0},Y3="meta",L3="Content vocabulary meta-schema",F3=["object","boolean"],H3={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},G3={$schema:W3,$id:z3,$vocabulary:U3,$dynamicAnchor:Y3,title:L3,type:F3,properties:H3},K3="https://json-schema.org/draft/2020-12/schema",J3="https://json-schema.org/draft/2020-12/meta/core",ej={"https://json-schema.org/draft/2020-12/vocab/core":!0},tj="meta",rj="Core vocabulary meta-schema",nj=["object","boolean"],oj={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},sj={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},ij={$schema:K3,$id:J3,$vocabulary:ej,$dynamicAnchor:tj,title:rj,type:nj,properties:oj,$defs:sj},aj="https://json-schema.org/draft/2020-12/schema",lj="https://json-schema.org/draft/2020-12/meta/format-annotation",cj={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},dj="meta",uj="Format vocabulary meta-schema for annotation results",hj=["object","boolean"],fj={format:{type:"string"}},pj={$schema:aj,$id:lj,$vocabulary:cj,$dynamicAnchor:dj,title:uj,type:hj,properties:fj},mj="https://json-schema.org/draft/2020-12/schema",gj="https://json-schema.org/draft/2020-12/meta/meta-data",Oj={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},yj="meta",bj="Meta-data vocabulary meta-schema",vj=["object","boolean"],wj={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},kj={$schema:mj,$id:gj,$vocabulary:Oj,$dynamicAnchor:yj,title:bj,type:vj,properties:wj},Sj="https://json-schema.org/draft/2020-12/schema",$j="https://json-schema.org/draft/2020-12/meta/validation",Pj={"https://json-schema.org/draft/2020-12/vocab/validation":!0},xj="meta",_j="Validation vocabulary meta-schema",Cj=["object","boolean"],Tj={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},Qj={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Ej={$schema:Sj,$id:$j,$vocabulary:Pj,$dynamicAnchor:xj,title:_j,type:Cj,properties:Tj,$defs:Qj};Object.defineProperty(Pp,"__esModule",{value:!0});const Nj=x3,Aj=R3,Vj=X3,Rj=G3,Bj=ij,Zj=pj,Ij=kj,jj=Ej,Dj=["/properties"];function qj(r){return[Nj,Aj,Vj,Rj,Bj,e(this,Zj),Ij,e(this,jj)].forEach(t=>this.addMetaSchema(t,void 0,!1)),this;function e(t,n){return r?t.$dataMetaSchema(n,Dj):n}}Pp.default=qj;(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=co,n=pp,o=fa,s=Pp,a="https://json-schema.org/draft/2020-12/schema";class l extends t.default{constructor(p={}){super({...p,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:p,meta:m}=this.opts;m&&(s.default.call(this,p),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var c=Lt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=oe;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var u=Ss;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var h=$s;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(Ch,Ch.exports);var Mj=Ch.exports;const Xj=If(Mj),H1=["2.0","3.0","3.1"],Wj={"http://json-schema.org/draft-04/schema#":TI,"https://json-schema.org/draft/2020-12/schema":Xj},Th={EMPTY_OR_INVALID:"Cannot find JSON, YAML or filename in data",OPENAPI_VERSION_NOT_SUPPORTED:"Cannot find supported Swagger/OpenAPI version in specification, version must be a string.",INVALID_REFERENCE:"Can’t resolve URI: %s",EXTERNAL_REFERENCE_NOT_SUPPORTED:"External references are not supported yet: %s"},zj="x-inlined-refs";function $r(r,e){const t={};for(const[n,o]of Object.entries(r))Array.isArray(o)?t[n]=o.map(s=>typeof s=="object"&&s!==null?$r(s,e):s):typeof o=="object"&&o!==null?t[n]=$r(o,e):t[n]=o;return e(t)}function Uj(r,e){return $r(r,t=>e(t)?t:void 0)}function G1(r){return typeof r!==void 0&&Array.isArray(r)&&r.length>0&&r.some(e=>e.isEntrypoint===!0)}function Yj(r){const e=[];return!r||typeof r!="object"||$r(r,t=>(t.$ref&&typeof t.$ref=="string"&&!t.$ref.startsWith("#")&&e.push(t.$ref.split("#")[0]),t)),e}const xp=Symbol.for("yaml.alias"),Qh=Symbol.for("yaml.document"),Sn=Symbol.for("yaml.map"),K1=Symbol.for("yaml.pair"),Gr=Symbol.for("yaml.scalar"),Ts=Symbol.for("yaml.seq"),Gt=Symbol.for("yaml.node.type"),bo=r=>!!r&&typeof r=="object"&&r[Gt]===xp,Qs=r=>!!r&&typeof r=="object"&&r[Gt]===Qh,Es=r=>!!r&&typeof r=="object"&&r[Gt]===Sn,Ze=r=>!!r&&typeof r=="object"&&r[Gt]===K1,Qe=r=>!!r&&typeof r=="object"&&r[Gt]===Gr,Ns=r=>!!r&&typeof r=="object"&&r[Gt]===Ts;function Ie(r){if(r&&typeof r=="object")switch(r[Gt]){case Sn:case Ts:return!0}return!1}function We(r){if(r&&typeof r=="object")switch(r[Gt]){case xp:case Sn:case Gr:case Ts:return!0}return!1}const Lj=r=>(Qe(r)||Ie(r))&&!!r.anchor,_t=Symbol("break visit"),J1=Symbol("skip children"),Nr=Symbol("remove node");function Qn(r,e){const t=ew(e);Qs(r)?Mo(null,r.contents,t,Object.freeze([r]))===Nr&&(r.contents=null):Mo(null,r,t,Object.freeze([]))}Qn.BREAK=_t;Qn.SKIP=J1;Qn.REMOVE=Nr;function Mo(r,e,t,n){const o=tw(r,e,t,n);if(We(o)||Ze(o))return rw(r,n,o),Mo(r,o,t,n);if(typeof o!="symbol"){if(Ie(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const a=Mo(s,e.items[s],t,n);if(typeof a=="number")s=a-1;else{if(a===_t)return _t;a===Nr&&(e.items.splice(s,1),s-=1)}}}else if(Ze(e)){n=Object.freeze(n.concat(e));const s=Mo("key",e.key,t,n);if(s===_t)return _t;s===Nr&&(e.key=null);const a=Mo("value",e.value,t,n);if(a===_t)return _t;a===Nr&&(e.value=null)}}return o}async function Yc(r,e){const t=ew(e);Qs(r)?await Xo(null,r.contents,t,Object.freeze([r]))===Nr&&(r.contents=null):await Xo(null,r,t,Object.freeze([]))}Yc.BREAK=_t;Yc.SKIP=J1;Yc.REMOVE=Nr;async function Xo(r,e,t,n){const o=await tw(r,e,t,n);if(We(o)||Ze(o))return rw(r,n,o),Xo(r,o,t,n);if(typeof o!="symbol"){if(Ie(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const a=await Xo(s,e.items[s],t,n);if(typeof a=="number")s=a-1;else{if(a===_t)return _t;a===Nr&&(e.items.splice(s,1),s-=1)}}}else if(Ze(e)){n=Object.freeze(n.concat(e));const s=await Xo("key",e.key,t,n);if(s===_t)return _t;s===Nr&&(e.key=null);const a=await Xo("value",e.value,t,n);if(a===_t)return _t;a===Nr&&(e.value=null)}}return o}function ew(r){return typeof r=="object"&&(r.Collection||r.Node||r.Value)?Object.assign({Alias:r.Node,Map:r.Node,Scalar:r.Node,Seq:r.Node},r.Value&&{Map:r.Value,Scalar:r.Value,Seq:r.Value},r.Collection&&{Map:r.Collection,Seq:r.Collection},r):r}function tw(r,e,t,n){var o,s,a,l,c;if(typeof t=="function")return t(r,e,n);if(Es(e))return(o=t.Map)==null?void 0:o.call(t,r,e,n);if(Ns(e))return(s=t.Seq)==null?void 0:s.call(t,r,e,n);if(Ze(e))return(a=t.Pair)==null?void 0:a.call(t,r,e,n);if(Qe(e))return(l=t.Scalar)==null?void 0:l.call(t,r,e,n);if(bo(e))return(c=t.Alias)==null?void 0:c.call(t,r,e,n)}function rw(r,e,t){const n=e[e.length-1];if(Ie(n))n.items[r]=t;else if(Ze(n))r==="key"?n.key=t:n.value=t;else if(Qs(n))n.contents=t;else{const o=bo(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const Fj={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Hj=r=>r.replace(/[!,[\]{}]/g,e=>Fj[e]);class Ot{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Ot.defaultYaml,e),this.tags=Object.assign({},Ot.defaultTags,t)}clone(){const e=new Ot(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Ot(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Ot.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Ot.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Ot.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Ot.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[s,a]=n;return this.tags[s]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[s]=n;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const a=/^\d+\.\d+$/.test(s);return t(6,`Unsupported YAML version ${s}`,a),!1}}default:return t(0,`Unknown directive ${o}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const a=e.slice(2,-1);return a==="!"||a==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),a)}const[,n,o]=e.match(/^(.*!)([^!]*)$/s);o||t(`The ${e} tag has no suffix`);const s=this.tags[n];if(s)try{return s+decodeURIComponent(o)}catch(a){return t(String(a)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Hj(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(e&&n.length>0&&We(e.contents)){const s={};Qn(e.contents,(a,l)=>{We(l)&&l.tag&&(s[l.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,a]of n)s==="!!"&&a==="tag:yaml.org,2002:"||(!e||o.some(l=>l.startsWith(a)))&&t.push(`%TAG ${s} ${a}`);return t.join(`
|
|
93
|
+
`)}}Ot.defaultYaml={explicit:!1,version:"1.2"};Ot.defaultTags={"!!":"tag:yaml.org,2002:"};function nw(r){if(/[\x00-\x19\s,[\]{}]/.test(r)){const e=`Anchor must not contain whitespace or control characters: ${JSON.stringify(r)}`;throw new Error(e)}return!0}function ow(r){const e=new Set;return Qn(r,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function sw(r,e){for(let t=1;;++t){const n=`${r}${t}`;if(!e.has(n))return n}}function Gj(r,e){const t=[],n=new Map;let o=null;return{onAnchor:s=>{t.push(s),o||(o=ow(r));const a=sw(e,o);return o.add(a),a},setAnchors:()=>{for(const s of t){const a=n.get(s);if(typeof a=="object"&&a.anchor&&(Qe(a.node)||Ie(a.node)))a.node.anchor=a.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:n}}function Wo(r,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,s=n.length;o<s;++o){const a=n[o],l=Wo(r,n,String(o),a);l===void 0?delete n[o]:l!==a&&(n[o]=l)}else if(n instanceof Map)for(const o of Array.from(n.keys())){const s=n.get(o),a=Wo(r,n,o,s);a===void 0?n.delete(o):a!==s&&n.set(o,a)}else if(n instanceof Set)for(const o of Array.from(n)){const s=Wo(r,n,o,o);s===void 0?n.delete(o):s!==o&&(n.delete(o),n.add(s))}else for(const[o,s]of Object.entries(n)){const a=Wo(r,n,o,s);a===void 0?delete n[o]:a!==s&&(n[o]=a)}return r.call(e,t,n)}function Ft(r,e,t){if(Array.isArray(r))return r.map((n,o)=>Ft(n,String(o),t));if(r&&typeof r.toJSON=="function"){if(!t||!Lj(r))return r.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(r,n),t.onCreate=s=>{n.res=s,delete t.onCreate};const o=r.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof r=="bigint"&&!(t!=null&&t.keep)?Number(r):r}class _p{constructor(e){Object.defineProperty(this,Gt,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:o,reviver:s}={}){if(!Qs(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=Ft(this,"",a);if(typeof o=="function")for(const{count:c,res:d}of a.anchors.values())o(d,c);return typeof s=="function"?Wo(s,{"":l},"",l):l}}class Lc extends _p{constructor(e){super(xp),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Qn(e,{Node:(n,o)=>{if(o===this)return Qn.BREAK;o.anchor===this.source&&(t=o)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:s}=t,a=this.resolve(o);if(!a){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let l=n.get(a);if(l||(Ft(a,null,t),l=n.get(a)),!l||l.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=$l(o,a,n)),l.count*l.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return l.res}toString(e,t,n){const o=`*${this.source}`;if(e){if(nw(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${o} `}return o}}function $l(r,e,t){if(bo(e)){const n=e.resolve(r),o=t&&n&&t.get(n);return o?o.count*o.aliasCount:0}else if(Ie(e)){let n=0;for(const o of e.items){const s=$l(r,o,t);s>n&&(n=s)}return n}else if(Ze(e)){const n=$l(r,e.key,t),o=$l(r,e.value,t);return Math.max(n,o)}return 1}const iw=r=>!r||typeof r!="function"&&typeof r!="object";class ae extends _p{constructor(e){super(Gr),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:Ft(this.value,e,t)}toString(){return String(this.value)}}ae.BLOCK_FOLDED="BLOCK_FOLDED";ae.BLOCK_LITERAL="BLOCK_LITERAL";ae.PLAIN="PLAIN";ae.QUOTE_DOUBLE="QUOTE_DOUBLE";ae.QUOTE_SINGLE="QUOTE_SINGLE";const Kj="tag:yaml.org,2002:";function Jj(r,e,t){if(e){const n=t.filter(s=>s.tag===e),o=n.find(s=>!s.format)??n[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return t.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,r))&&!n.format})}function Li(r,e,t){var n,o,s;if(Qs(r)&&(r=r.contents),We(r))return r;if(Ze(r)){const m=(o=(n=t.schema[Sn]).createNode)==null?void 0:o.call(n,t.schema,null,t);return m.items.push(r),m}(r instanceof String||r instanceof Number||r instanceof Boolean||typeof BigInt<"u"&&r instanceof BigInt)&&(r=r.valueOf());const{aliasDuplicateObjects:a,onAnchor:l,onTagObj:c,schema:d,sourceObjects:u}=t;let h;if(a&&r&&typeof r=="object"){if(h=u.get(r),h)return h.anchor||(h.anchor=l(r)),new Lc(h.anchor);h={anchor:null,node:null},u.set(r,h)}e!=null&&e.startsWith("!!")&&(e=Kj+e.slice(2));let f=Jj(r,e,d.tags);if(!f){if(r&&typeof r.toJSON=="function"&&(r=r.toJSON()),!r||typeof r!="object"){const m=new ae(r);return h&&(h.node=m),m}f=r instanceof Map?d[Sn]:Symbol.iterator in Object(r)?d[Ts]:d[Sn]}c&&(c(f),delete t.onTagObj);const p=f!=null&&f.createNode?f.createNode(t.schema,r,t):typeof((s=f==null?void 0:f.nodeClass)==null?void 0:s.from)=="function"?f.nodeClass.from(t.schema,r,t):new ae(r);return e?p.tag=e:f.default||(p.tag=f.tag),h&&(h.node=p),p}function ac(r,e,t){let n=t;for(let o=e.length-1;o>=0;--o){const s=e[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const a=[];a[s]=n,n=a}else n=new Map([[s,n]])}return Li(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:r,sourceObjects:new Map})}const pi=r=>r==null||typeof r=="object"&&!!r[Symbol.iterator]().next().done;class Cp extends _p{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>We(n)||Ze(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(pi(e))this.add(t);else{const[n,...o]=e,s=this.get(n,!0);if(Ie(s))s.addIn(o,t);else if(s===void 0&&this.schema)this.set(n,ac(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const o=this.get(t,!0);if(Ie(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...o]=e,s=this.get(n,!0);return o.length===0?!t&&Qe(s)?s.value:s:Ie(s)?s.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Ze(t))return!1;const n=t.value;return n==null||e&&Qe(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const o=this.get(t,!0);return Ie(o)?o.hasIn(n):!1}setIn(e,t){const[n,...o]=e;if(o.length===0)this.set(n,t);else{const s=this.get(n,!0);if(Ie(s))s.setIn(o,t);else if(s===void 0&&this.schema)this.set(n,ac(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}Cp.maxFlowStringSingleLineLength=60;const eD=r=>r.replace(/^(?!$)(?: $)?/gm,"#");function qr(r,e){return/^\n+$/.test(r)?r.substring(1):e?r.replace(/^(?! *$)/gm,e):r}const oo=(r,e,t)=>r.endsWith(`
|
|
94
|
+
`)?qr(t,e):t.includes(`
|
|
95
|
+
`)?`
|
|
96
|
+
`+qr(t,e):(r.endsWith(" ")?"":" ")+t,aw="flow",Eh="block",Pl="quoted";function Fc(r,e,t="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:s=20,onFold:a,onOverflow:l}={}){if(!o||o<0)return r;const c=Math.max(1+s,1+o-e.length);if(r.length<=c)return r;const d=[],u={};let h=o-e.length;typeof n=="number"&&(n>o-Math.max(2,s)?d.push(0):h=o-n);let f,p,m=!1,g=-1,O=-1,y=-1;t===Eh&&(g=u0(r,g,e.length),g!==-1&&(h=g+c));for(let v;v=r[g+=1];){if(t===Pl&&v==="\\"){switch(O=g,r[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}y=g}if(v===`
|
|
97
|
+
`)t===Eh&&(g=u0(r,g,e.length)),h=g+e.length+c,f=void 0;else{if(v===" "&&p&&p!==" "&&p!==`
|
|
98
|
+
`&&p!==" "){const w=r[g+1];w&&w!==" "&&w!==`
|
|
99
|
+
`&&w!==" "&&(f=g)}if(g>=h)if(f)d.push(f),h=f+c,f=void 0;else if(t===Pl){for(;p===" "||p===" ";)p=v,v=r[g+=1],m=!0;const w=g>y+1?g-2:O-1;if(u[w])return r;d.push(w),u[w]=!0,h=w+c,f=void 0}else m=!0}p=v}if(m&&l&&l(),d.length===0)return r;a&&a();let b=r.slice(0,d[0]);for(let v=0;v<d.length;++v){const w=d[v],S=d[v+1]||r.length;w===0?b=`
|
|
100
|
+
${e}${r.slice(0,S)}`:(t===Pl&&u[w]&&(b+=`${r[w]}\\`),b+=`
|
|
101
|
+
${e}${r.slice(w+1,S)}`)}return b}function u0(r,e,t){let n=e,o=e+1,s=r[o];for(;s===" "||s===" ";)if(e<o+t)s=r[++e];else{do s=r[++e];while(s&&s!==`
|
|
102
|
+
`);n=e,o=e+1,s=r[o]}return n}const Hc=(r,e)=>({indentAtStart:e?r.indent.length:r.indentAtStart,lineWidth:r.options.lineWidth,minContentWidth:r.options.minContentWidth}),Gc=r=>/^(%|---|\.\.\.)/m.test(r);function tD(r,e,t){if(!e||e<0)return!1;const n=e-t,o=r.length;if(o<=n)return!1;for(let s=0,a=0;s<o;++s)if(r[s]===`
|
|
103
|
+
`){if(s-a>n)return!0;if(a=s+1,o-a<=n)return!1}return!0}function Ti(r,e){const t=JSON.stringify(r);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:n}=e,o=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(Gc(r)?" ":"");let a="",l=0;for(let c=0,d=t[c];d;d=t[++c])if(d===" "&&t[c+1]==="\\"&&t[c+2]==="n"&&(a+=t.slice(l,c)+"\\ ",c+=1,l=c,d="\\"),d==="\\")switch(t[c+1]){case"u":{a+=t.slice(l,c);const u=t.substr(c+2,4);switch(u){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:u.substr(0,2)==="00"?a+="\\x"+u.substr(2):a+=t.substr(c,6)}c+=5,l=c+1}break;case"n":if(n||t[c+2]==='"'||t.length<o)c+=1;else{for(a+=t.slice(l,c)+`
|
|
104
|
+
|
|
105
|
+
`;t[c+2]==="\\"&&t[c+3]==="n"&&t[c+4]!=='"';)a+=`
|
|
106
|
+
`,c+=2;a+=s,t[c+2]===" "&&(a+="\\"),c+=1,l=c+1}break;default:c+=1}return a=l?a+t.slice(l):t,n?a:Fc(a,s,Pl,Hc(e,!1))}function Nh(r,e){if(e.options.singleQuote===!1||e.implicitKey&&r.includes(`
|
|
107
|
+
`)||/[ \t]\n|\n[ \t]/.test(r))return Ti(r,e);const t=e.indent||(Gc(r)?" ":""),n="'"+r.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
108
|
+
${t}`)+"'";return e.implicitKey?n:Fc(n,t,aw,Hc(e,!1))}function zo(r,e){const{singleQuote:t}=e.options;let n;if(t===!1)n=Ti;else{const o=r.includes('"'),s=r.includes("'");o&&!s?n=Nh:s&&!o?n=Ti:n=t?Nh:Ti}return n(r,e)}let Ah;try{Ah=new RegExp(`(^|(?<!
|
|
109
|
+
))
|
|
110
|
+
+(?!
|
|
111
|
+
|$)`,"g")}catch{Ah=/\n+(?!\n|$)/g}function xl({comment:r,type:e,value:t},n,o,s){const{blockQuote:a,commentString:l,lineWidth:c}=n.options;if(!a||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return zo(t,n);const d=n.indent||(n.forceBlockIndent||Gc(t)?" ":""),u=a==="literal"?!0:a==="folded"||e===ae.BLOCK_FOLDED?!1:e===ae.BLOCK_LITERAL?!0:!tD(t,c,d.length);if(!t)return u?`|
|
|
112
|
+
`:`>
|
|
113
|
+
`;let h,f;for(f=t.length;f>0;--f){const S=t[f-1];if(S!==`
|
|
114
|
+
`&&S!==" "&&S!==" ")break}let p=t.substring(f);const m=p.indexOf(`
|
|
115
|
+
`);m===-1?h="-":t===p||m!==p.length-1?(h="+",s&&s()):h="",p&&(t=t.slice(0,-p.length),p[p.length-1]===`
|
|
116
|
+
`&&(p=p.slice(0,-1)),p=p.replace(Ah,`$&${d}`));let g=!1,O,y=-1;for(O=0;O<t.length;++O){const S=t[O];if(S===" ")g=!0;else if(S===`
|
|
117
|
+
`)y=O;else break}let b=t.substring(0,y<O?y+1:O);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${d}`));let v=(u?"|":">")+(g?d?"2":"1":"")+h;if(r&&(v+=" "+l(r.replace(/ ?[\r\n]+/g," ")),o&&o()),u)return t=t.replace(/\n+/g,`$&${d}`),`${v}
|
|
118
|
+
${d}${b}${t}${p}`;t=t.replace(/\n+/g,`
|
|
119
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const w=Fc(`${b}${t}${p}`,d,Eh,Hc(n,!0));return`${v}
|
|
120
|
+
${d}${w}`}function rD(r,e,t,n){const{type:o,value:s}=r,{actualString:a,implicitKey:l,indent:c,indentStep:d,inFlow:u}=e;if(l&&s.includes(`
|
|
121
|
+
`)||u&&/[[\]{},]/.test(s))return zo(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||u||!s.includes(`
|
|
122
|
+
`)?zo(s,e):xl(r,e,t,n);if(!l&&!u&&o!==ae.PLAIN&&s.includes(`
|
|
123
|
+
`))return xl(r,e,t,n);if(Gc(s)){if(c==="")return e.forceBlockIndent=!0,xl(r,e,t,n);if(l&&c===d)return zo(s,e)}const h=s.replace(/\n+/g,`$&
|
|
124
|
+
${c}`);if(a){const f=g=>{var O;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((O=g.test)==null?void 0:O.test(h))},{compat:p,tags:m}=e.doc.schema;if(m.some(f)||p!=null&&p.some(f))return zo(s,e)}return l?h:Fc(h,c,aw,Hc(e,!1))}function pa(r,e,t,n){const{implicitKey:o,inFlow:s}=e,a=typeof r.value=="string"?r:Object.assign({},r,{value:String(r.value)});let{type:l}=r;l!==ae.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(l=ae.QUOTE_DOUBLE);const c=u=>{switch(u){case ae.BLOCK_FOLDED:case ae.BLOCK_LITERAL:return o||s?zo(a.value,e):xl(a,e,t,n);case ae.QUOTE_DOUBLE:return Ti(a.value,e);case ae.QUOTE_SINGLE:return Nh(a.value,e);case ae.PLAIN:return rD(a,e,t,n);default:return null}};let d=c(l);if(d===null){const{defaultKeyType:u,defaultStringType:h}=e.options,f=o&&u||h;if(d=c(f),d===null)throw new Error(`Unsupported default string type ${f}`)}return d}function lw(r,e){const t=Object.assign({blockQuote:!0,commentString:eD,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},r.schema.toStringOptions,e);let n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:r,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function nD(r,e){var t;if(e.tag){const s=r.filter(a=>a.tag===e.tag);if(s.length>0)return s.find(a=>a.format===e.format)??s[0]}let n,o;if(Qe(e)){o=e.value;const s=r.filter(a=>{var l;return(l=a.identify)==null?void 0:l.call(a,o)});n=s.find(a=>a.format===e.format)??s.find(a=>!a.format)}else o=e,n=r.find(s=>s.nodeClass&&o instanceof s.nodeClass);if(!n){const s=((t=o==null?void 0:o.constructor)==null?void 0:t.name)??typeof o;throw new Error(`Tag not resolved for ${s} value`)}return n}function oD(r,e,{anchors:t,doc:n}){if(!n.directives)return"";const o=[],s=(Qe(r)||Ie(r))&&r.anchor;s&&nw(s)&&(t.add(s),o.push(`&${s}`));const a=r.tag?r.tag:e.default?null:e.tag;return a&&o.push(n.directives.tagString(a)),o.join(" ")}function fs(r,e,t,n){var o;if(Ze(r))return r.toString(e,t,n);if(bo(r)){if(e.doc.directives)return r.toString(e);if((o=e.resolvedAliases)!=null&&o.has(r))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(r):e.resolvedAliases=new Set([r]),r=r.resolve(e.doc)}let s;const a=We(r)?r:e.doc.createNode(r,{onTagObj:d=>s=d});s||(s=nD(e.doc.schema.tags,a));const l=oD(a,s,e);l.length>0&&(e.indentAtStart=(e.indentAtStart??0)+l.length+1);const c=typeof s.stringify=="function"?s.stringify(a,e,t,n):Qe(a)?pa(a,e,t,n):a.toString(e,t,n);return l?Qe(a)||c[0]==="{"||c[0]==="["?`${l} ${c}`:`${l}
|
|
125
|
+
${e.indent}${c}`:c}function sD({key:r,value:e},t,n,o){const{allNullValues:s,doc:a,indent:l,indentStep:c,options:{commentString:d,indentSeq:u,simpleKeys:h}}=t;let f=We(r)&&r.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(Ie(r)){const $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let p=!h&&(!r||f&&e==null&&!t.inFlow||Ie(r)||(Qe(r)?r.type===ae.BLOCK_FOLDED||r.type===ae.BLOCK_LITERAL:typeof r=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(h||!s),indent:l+c});let m=!1,g=!1,O=fs(r,t,()=>m=!0,()=>g=!0);if(!p&&!t.inFlow&&O.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(s||e==null)return m&&n&&n(),O===""?"?":p?`? ${O}`:O}else if(s&&!h||e==null&&p)return O=`? ${O}`,f&&!m?O+=oo(O,t.indent,d(f)):g&&o&&o(),O;m&&(f=null),p?(f&&(O+=oo(O,t.indent,d(f))),O=`? ${O}
|
|
126
|
+
${l}:`):(O=`${O}:`,f&&(O+=oo(O,t.indent,d(f))));let y,b,v;We(e)?(y=!!e.spaceBefore,b=e.commentBefore,v=e.comment):(y=!1,b=null,v=null,e&&typeof e=="object"&&(e=a.createNode(e))),t.implicitKey=!1,!p&&!f&&Qe(e)&&(t.indentAtStart=O.length+1),g=!1,!u&&c.length>=2&&!t.inFlow&&!p&&Ns(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let w=!1;const S=fs(e,t,()=>w=!0,()=>g=!0);let k=" ";if(f||y||b){if(k=y?`
|
|
127
|
+
`:"",b){const $=d(b);k+=`
|
|
128
|
+
${qr($,t.indent)}`}S===""&&!t.inFlow?k===`
|
|
129
|
+
`&&(k=`
|
|
130
|
+
|
|
131
|
+
`):k+=`
|
|
132
|
+
${t.indent}`}else if(!p&&Ie(e)){const $=S[0],C=S.indexOf(`
|
|
133
|
+
`),E=C!==-1,B=t.inFlow??e.flow??e.items.length===0;if(E||!B){let q=!1;if(E&&($==="&"||$==="!")){let R=S.indexOf(" ");$==="&"&&R!==-1&&R<C&&S[R+1]==="!"&&(R=S.indexOf(" ",R+1)),(R===-1||C<R)&&(q=!0)}q||(k=`
|
|
134
|
+
${t.indent}`)}}else(S===""||S[0]===`
|
|
135
|
+
`)&&(k="");return O+=k+S,t.inFlow?w&&n&&n():v&&!w?O+=oo(O,t.indent,d(v)):g&&o&&o(),O}function cw(r,e){(r==="debug"||r==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const h0="<<";function dw(r,e,{key:t,value:n}){if(r!=null&&r.doc.schema.merge&&iD(t))if(n=bo(n)?n.resolve(r.doc):n,Ns(n))for(const o of n.items)Kd(r,e,o);else if(Array.isArray(n))for(const o of n)Kd(r,e,o);else Kd(r,e,n);else{const o=Ft(t,"",r);if(e instanceof Map)e.set(o,Ft(n,o,r));else if(e instanceof Set)e.add(o);else{const s=aD(t,o,r),a=Ft(n,s,r);s in e?Object.defineProperty(e,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):e[s]=a}}return e}const iD=r=>r===h0||Qe(r)&&r.value===h0&&(!r.type||r.type===ae.PLAIN);function Kd(r,e,t){const n=r&&bo(t)?t.resolve(r.doc):t;if(!Es(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,r,Map);for(const[s,a]of o)e instanceof Map?e.has(s)||e.set(s,a):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:a,writable:!0,enumerable:!0,configurable:!0});return e}function aD(r,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(We(r)&&t!=null&&t.doc){const n=lw(t.doc,{});n.anchors=new Set;for(const s of t.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=r.toString(n);if(!t.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),cw(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function Tp(r,e,t){const n=Li(r,void 0,t),o=Li(e,void 0,t);return new pt(n,o)}class pt{constructor(e,t=null){Object.defineProperty(this,Gt,{value:K1}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return We(t)&&(t=t.clone(e)),We(n)&&(n=n.clone(e)),new pt(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return dw(t,n,this)}toString(e,t,n){return e!=null&&e.doc?sD(this,e,t,n):JSON.stringify(this)}}function uw(r,e,t){return(e.inFlow??r.flow?cD:lD)(r,e,t)}function lD({comment:r,items:e},t,{blockItemPrefix:n,flowChars:o,itemIndent:s,onChompKeep:a,onComment:l}){const{indent:c,options:{commentString:d}}=t,u=Object.assign({},t,{indent:s,type:null});let h=!1;const f=[];for(let m=0;m<e.length;++m){const g=e[m];let O=null;if(We(g))!h&&g.spaceBefore&&f.push(""),lc(t,f,g.commentBefore,h),g.comment&&(O=g.comment);else if(Ze(g)){const b=We(g.key)?g.key:null;b&&(!h&&b.spaceBefore&&f.push(""),lc(t,f,b.commentBefore,h))}h=!1;let y=fs(g,u,()=>O=null,()=>h=!0);O&&(y+=oo(y,s,d(O))),h&&O&&(h=!1),f.push(n+y)}let p;if(f.length===0)p=o.start+o.end;else{p=f[0];for(let m=1;m<f.length;++m){const g=f[m];p+=g?`
|
|
136
|
+
${c}${g}`:`
|
|
137
|
+
`}}return r?(p+=`
|
|
138
|
+
`+qr(d(r),c),l&&l()):h&&a&&a(),p}function cD({items:r},e,{flowChars:t,itemIndent:n}){const{indent:o,indentStep:s,flowCollectionPadding:a,options:{commentString:l}}=e;n+=s;const c=Object.assign({},e,{indent:n,inFlow:!0,type:null});let d=!1,u=0;const h=[];for(let m=0;m<r.length;++m){const g=r[m];let O=null;if(We(g))g.spaceBefore&&h.push(""),lc(e,h,g.commentBefore,!1),g.comment&&(O=g.comment);else if(Ze(g)){const b=We(g.key)?g.key:null;b&&(b.spaceBefore&&h.push(""),lc(e,h,b.commentBefore,!1),b.comment&&(d=!0));const v=We(g.value)?g.value:null;v?(v.comment&&(O=v.comment),v.commentBefore&&(d=!0)):g.value==null&&b!=null&&b.comment&&(O=b.comment)}O&&(d=!0);let y=fs(g,c,()=>O=null);m<r.length-1&&(y+=","),O&&(y+=oo(y,n,l(O))),!d&&(h.length>u||y.includes(`
|
|
139
|
+
`))&&(d=!0),h.push(y),u=h.length}const{start:f,end:p}=t;if(h.length===0)return f+p;if(!d){const m=h.reduce((g,O)=>g+O.length+2,2);d=e.options.lineWidth>0&&m>e.options.lineWidth}if(d){let m=f;for(const g of h)m+=g?`
|
|
140
|
+
${s}${o}${g}`:`
|
|
141
|
+
`;return`${m}
|
|
142
|
+
${o}${p}`}else return`${f}${a}${h.join(" ")}${a}${p}`}function lc({indent:r,options:{commentString:e}},t,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const s=qr(e(n),r);t.push(s.trimStart())}}function so(r,e){const t=Qe(e)?e.value:e;for(const n of r)if(Ze(n)&&(n.key===e||n.key===t||Qe(n.key)&&n.key.value===t))return n}class Bt extends Cp{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Sn,e),this.items=[]}static from(e,t,n){const{keepUndefined:o,replacer:s}=n,a=new this(e),l=(c,d)=>{if(typeof s=="function")d=s.call(t,c,d);else if(Array.isArray(s)&&!s.includes(c))return;(d!==void 0||o)&&a.items.push(Tp(c,d,n))};if(t instanceof Map)for(const[c,d]of t)l(c,d);else if(t&&typeof t=="object")for(const c of Object.keys(t))l(c,t[c]);return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}add(e,t){var n;let o;Ze(e)?o=e:!e||typeof e!="object"||!("key"in e)?o=new pt(e,e==null?void 0:e.value):o=new pt(e.key,e.value);const s=so(this.items,o.key),a=(n=this.schema)==null?void 0:n.sortMapEntries;if(s){if(!t)throw new Error(`Key ${o.key} already set`);Qe(s.value)&&iw(o.value)?s.value.value=o.value:s.value=o.value}else if(a){const l=this.items.findIndex(c=>a(o,c)<0);l===-1?this.items.push(o):this.items.splice(l,0,o)}else this.items.push(o)}delete(e){const t=so(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const n=so(this.items,e),o=n==null?void 0:n.value;return(!t&&Qe(o)?o.value:o)??void 0}has(e){return!!so(this.items,e)}set(e,t){this.add(new pt(e,t),!0)}toJSON(e,t,n){const o=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(o);for(const s of this.items)dw(t,o,s);return o}toString(e,t,n){if(!e)return JSON.stringify(this);for(const o of this.items)if(!Ze(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),uw(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const As={collection:"map",default:!0,nodeClass:Bt,tag:"tag:yaml.org,2002:map",resolve(r,e){return Es(r)||e("Expected a mapping for this tag"),r},createNode:(r,e,t)=>Bt.from(r,e,t)};class En extends Cp{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ts,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=tl(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=tl(e);if(typeof n!="number")return;const o=this.items[n];return!t&&Qe(o)?o.value:o}has(e){const t=tl(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=tl(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[n];Qe(o)&&iw(t)?o.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let o=0;for(const s of this.items)n.push(Ft(s,String(o++),t));return n}toString(e,t,n){return e?uw(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t)){let a=0;for(let l of t){if(typeof o=="function"){const c=t instanceof Set?l:String(a++);l=o.call(t,c,l)}s.items.push(Li(l,void 0,n))}}return s}}function tl(r){let e=Qe(r)?r.value:r;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const Vs={collection:"seq",default:!0,nodeClass:En,tag:"tag:yaml.org,2002:seq",resolve(r,e){return Ns(r)||e("Expected a sequence for this tag"),r},createNode:(r,e,t)=>En.from(r,e,t)},Kc={identify:r=>typeof r=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:r=>r,stringify(r,e,t,n){return e=Object.assign({actualString:!0},e),pa(r,e,t,n)}},Jc={identify:r=>r==null,createNode:()=>new ae(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ae(null),stringify:({source:r},e)=>typeof r=="string"&&Jc.test.test(r)?r:e.options.nullStr},Qp={identify:r=>typeof r=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:r=>new ae(r[0]==="t"||r[0]==="T"),stringify({source:r,value:e},t){if(r&&Qp.test.test(r)){const n=r[0]==="t"||r[0]==="T";if(e===n)return r}return e?t.options.trueStr:t.options.falseStr}};function pr({format:r,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);const o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(n);if(!r&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let a=s.indexOf(".");a<0&&(a=s.length,s+=".");let l=e-(s.length-a-1);for(;l-- >0;)s+="0"}return s}const hw={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:r=>r.slice(-3).toLowerCase()==="nan"?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:pr},fw={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:r=>parseFloat(r),stringify(r){const e=Number(r.value);return isFinite(e)?e.toExponential():pr(r)}},pw={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(r){const e=new ae(parseFloat(r)),t=r.indexOf(".");return t!==-1&&r[r.length-1]==="0"&&(e.minFractionDigits=r.length-t-1),e},stringify:pr},ed=r=>typeof r=="bigint"||Number.isInteger(r),Ep=(r,e,t,{intAsBigInt:n})=>n?BigInt(r):parseInt(r.substring(e),t);function mw(r,e,t){const{value:n}=r;return ed(n)&&n>=0?t+n.toString(e):pr(r)}const gw={identify:r=>ed(r)&&r>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(r,e,t)=>Ep(r,2,8,t),stringify:r=>mw(r,8,"0o")},Ow={identify:ed,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(r,e,t)=>Ep(r,0,10,t),stringify:pr},yw={identify:r=>ed(r)&&r>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(r,e,t)=>Ep(r,2,16,t),stringify:r=>mw(r,16,"0x")},dD=[As,Vs,Kc,Jc,Qp,gw,Ow,yw,hw,fw,pw];function f0(r){return typeof r=="bigint"||Number.isInteger(r)}const rl=({value:r})=>JSON.stringify(r),uD=[{identify:r=>typeof r=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:r=>r,stringify:rl},{identify:r=>r==null,createNode:()=>new ae(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:rl},{identify:r=>typeof r=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:r=>r==="true",stringify:rl},{identify:f0,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(r,e,{intAsBigInt:t})=>t?BigInt(r):parseInt(r,10),stringify:({value:r})=>f0(r)?r.toString():JSON.stringify(r)},{identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:r=>parseFloat(r),stringify:rl}],hD={default:!0,tag:"",test:/^/,resolve(r,e){return e(`Unresolved plain scalar ${JSON.stringify(r)}`),r}},fD=[As,Vs].concat(uD,hD),Np={identify:r=>r instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(r,e){if(typeof Buffer=="function")return Buffer.from(r,"base64");if(typeof atob=="function"){const t=atob(r.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let o=0;o<t.length;++o)n[o]=t.charCodeAt(o);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),r},stringify({comment:r,type:e,value:t},n,o,s){const a=t;let l;if(typeof Buffer=="function")l=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let d=0;d<a.length;++d)c+=String.fromCharCode(a[d]);l=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=ae.BLOCK_LITERAL),e!==ae.QUOTE_DOUBLE){const c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),d=Math.ceil(l.length/c),u=new Array(d);for(let h=0,f=0;h<d;++h,f+=c)u[h]=l.substr(f,c);l=u.join(e===ae.BLOCK_LITERAL?`
|
|
143
|
+
`:" ")}return pa({comment:r,type:e,value:l},n,o,s)}};function bw(r,e){if(Ns(r))for(let t=0;t<r.items.length;++t){let n=r.items[t];if(!Ze(n)){if(Es(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");const o=n.items[0]||new pt(new ae(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore}
|
|
144
|
+
${o.key.commentBefore}`:n.commentBefore),n.comment){const s=o.value??o.key;s.comment=s.comment?`${n.comment}
|
|
145
|
+
${s.comment}`:n.comment}n=o}r.items[t]=Ze(n)?n:new pt(n)}}else e("Expected a sequence for this tag");return r}function vw(r,e,t){const{replacer:n}=t,o=new En(r);o.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof n=="function"&&(a=n.call(e,String(s++),a));let l,c;if(Array.isArray(a))if(a.length===2)l=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const d=Object.keys(a);if(d.length===1)l=d[0],c=a[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=a;o.items.push(Tp(l,c,t))}return o}const Ap={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:bw,createNode:vw};class ts extends En{constructor(){super(),this.add=Bt.prototype.add.bind(this),this.delete=Bt.prototype.delete.bind(this),this.get=Bt.prototype.get.bind(this),this.has=Bt.prototype.has.bind(this),this.set=Bt.prototype.set.bind(this),this.tag=ts.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const o of this.items){let s,a;if(Ze(o)?(s=Ft(o.key,"",t),a=Ft(o.value,s,t)):s=Ft(o,"",t),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,a)}return n}static from(e,t,n){const o=vw(e,t,n),s=new this;return s.items=o.items,s}}ts.tag="tag:yaml.org,2002:omap";const Vp={collection:"seq",identify:r=>r instanceof Map,nodeClass:ts,default:!1,tag:"tag:yaml.org,2002:omap",resolve(r,e){const t=bw(r,e),n=[];for(const{key:o}of t.items)Qe(o)&&(n.includes(o.value)?e(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new ts,t)},createNode:(r,e,t)=>ts.from(r,e,t)};function ww({value:r,source:e},t){return e&&(r?kw:Sw).test.test(e)?e:r?t.options.trueStr:t.options.falseStr}const kw={identify:r=>r===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ae(!0),stringify:ww},Sw={identify:r=>r===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new ae(!1),stringify:ww},pD={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:r=>r.slice(-3).toLowerCase()==="nan"?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:pr},mD={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:r=>parseFloat(r.replace(/_/g,"")),stringify(r){const e=Number(r.value);return isFinite(e)?e.toExponential():pr(r)}},gD={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(r){const e=new ae(parseFloat(r.replace(/_/g,""))),t=r.indexOf(".");if(t!==-1){const n=r.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:pr},ma=r=>typeof r=="bigint"||Number.isInteger(r);function td(r,e,t,{intAsBigInt:n}){const o=r[0];if((o==="-"||o==="+")&&(e+=1),r=r.substring(e).replace(/_/g,""),n){switch(t){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}const a=BigInt(r);return o==="-"?BigInt(-1)*a:a}const s=parseInt(r,t);return o==="-"?-1*s:s}function Rp(r,e,t){const{value:n}=r;if(ma(n)){const o=n.toString(e);return n<0?"-"+t+o.substr(1):t+o}return pr(r)}const OD={identify:ma,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(r,e,t)=>td(r,2,2,t),stringify:r=>Rp(r,2,"0b")},yD={identify:ma,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(r,e,t)=>td(r,1,8,t),stringify:r=>Rp(r,8,"0")},bD={identify:ma,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(r,e,t)=>td(r,0,10,t),stringify:pr},vD={identify:ma,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(r,e,t)=>td(r,2,16,t),stringify:r=>Rp(r,16,"0x")};class rs extends Bt{constructor(e){super(e),this.tag=rs.tag}add(e){let t;Ze(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new pt(e.key,null):t=new pt(e,null),so(this.items,t.key)||this.items.push(t)}get(e,t){const n=so(this.items,e);return!t&&Ze(n)?Qe(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=so(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new pt(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let a of t)typeof o=="function"&&(a=o.call(t,a,a)),s.items.push(Tp(a,null,n));return s}}rs.tag="tag:yaml.org,2002:set";const Bp={collection:"map",identify:r=>r instanceof Set,nodeClass:rs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(r,e,t)=>rs.from(r,e,t),resolve(r,e){if(Es(r)){if(r.hasAllNullValues(!0))return Object.assign(new rs,r);e("Set items must all have null values")}else e("Expected a mapping for this tag");return r}};function Zp(r,e){const t=r[0],n=t==="-"||t==="+"?r.substring(1):r,o=a=>e?BigInt(a):Number(a),s=n.replace(/_/g,"").split(":").reduce((a,l)=>a*o(60)+o(l),o(0));return t==="-"?o(-1)*s:s}function $w(r){let{value:e}=r,t=a=>a;if(typeof e=="bigint")t=a=>BigInt(a);else if(isNaN(e)||!isFinite(e))return pr(r);let n="";e<0&&(n="-",e*=t(-1));const o=t(60),s=[e%o];return e<60?s.unshift(0):(e=(e-s[0])/o,s.unshift(e%o),e>=60&&(e=(e-s[0])/o,s.unshift(e))),n+s.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Pw={identify:r=>typeof r=="bigint"||Number.isInteger(r),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(r,e,{intAsBigInt:t})=>Zp(r,t),stringify:$w},xw={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:r=>Zp(r,!1),stringify:$w},rd={identify:r=>r instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(r){const e=r.match(rd.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,n,o,s,a,l]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let d=Date.UTC(t,n-1,o,s||0,a||0,l||0,c);const u=e[8];if(u&&u!=="Z"){let h=Zp(u,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:r})=>r.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},p0=[As,Vs,Kc,Jc,kw,Sw,OD,yD,bD,vD,pD,mD,gD,Np,Vp,Ap,Bp,Pw,xw,rd],m0=new Map([["core",dD],["failsafe",[As,Vs,Kc]],["json",fD],["yaml11",p0],["yaml-1.1",p0]]),g0={binary:Np,bool:Qp,float:pw,floatExp:fw,floatNaN:hw,floatTime:xw,int:Ow,intHex:yw,intOct:gw,intTime:Pw,map:As,null:Jc,omap:Vp,pairs:Ap,seq:Vs,set:Bp,timestamp:rd},wD={"tag:yaml.org,2002:binary":Np,"tag:yaml.org,2002:omap":Vp,"tag:yaml.org,2002:pairs":Ap,"tag:yaml.org,2002:set":Bp,"tag:yaml.org,2002:timestamp":rd};function Jd(r,e){let t=m0.get(e);if(!t)if(Array.isArray(r))t=[];else{const n=Array.from(m0.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(r))for(const n of r)t=t.concat(n);else typeof r=="function"&&(t=r(t.slice()));return t.map(n=>{if(typeof n!="string")return n;const o=g0[n];if(o)return o;const s=Object.keys(g0).map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${s}`)})}const kD=(r,e)=>r.key<e.key?-1:r.key>e.key?1:0;class nd{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:o,schema:s,sortMapEntries:a,toStringDefaults:l}){this.compat=Array.isArray(e)?Jd(e,"compat"):e?Jd(null,e):null,this.merge=!!n,this.name=typeof s=="string"&&s||"core",this.knownTags=o?wD:{},this.tags=Jd(t,this.name),this.toStringOptions=l??null,Object.defineProperty(this,Sn,{value:As}),Object.defineProperty(this,Gr,{value:Kc}),Object.defineProperty(this,Ts,{value:Vs}),this.sortMapEntries=typeof a=="function"?a:a===!0?kD:null}clone(){const e=Object.create(nd.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function SD(r,e){var t;const n=[];let o=e.directives===!0;if(e.directives!==!1&&r.directives){const d=r.directives.toString(r);d?(n.push(d),o=!0):r.directives.docStart&&(o=!0)}o&&n.push("---");const s=lw(r,e),{commentString:a}=s.options;if(r.commentBefore){n.length!==1&&n.unshift("");const d=a(r.commentBefore);n.unshift(qr(d,""))}let l=!1,c=null;if(r.contents){if(We(r.contents)){if(r.contents.spaceBefore&&o&&n.push(""),r.contents.commentBefore){const h=a(r.contents.commentBefore);n.push(qr(h,""))}s.forceBlockIndent=!!r.comment,c=r.contents.comment}const d=c?void 0:()=>l=!0;let u=fs(r.contents,s,()=>c=null,d);c&&(u+=oo(u,"",a(c))),(u[0]==="|"||u[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${u}`:n.push(u)}else n.push(fs(r.contents,s));if((t=r.directives)!=null&&t.docEnd)if(r.comment){const d=a(r.comment);d.includes(`
|
|
146
|
+
`)?(n.push("..."),n.push(qr(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=r.comment;d&&l&&(d=d.replace(/^\n+/,"")),d&&((!l||c)&&n[n.length-1]!==""&&n.push(""),n.push(qr(a(d),"")))}return n.join(`
|
|
147
|
+
`)+`
|
|
148
|
+
`}class Rs{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Gt,{value:Qh});let o=null;typeof t=="function"||Array.isArray(t)?o=t:n===void 0&&t&&(n=t,t=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:a}=s;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Ot({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,o,n)}clone(){const e=Object.create(Rs.prototype,{[Gt]:{value:Qh}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=We(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Qo(this.contents)&&this.contents.add(e)}addIn(e,t){Qo(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=ow(this);e.anchor=!t||n.has(t)?sw(t||"a",n):t}return new Lc(e.anchor)}createNode(e,t,n){let o;if(typeof t=="function")e=t.call({"":e},"",e),o=t;else if(Array.isArray(t)){const O=b=>typeof b=="number"||b instanceof String||b instanceof Number,y=t.filter(O).map(String);y.length>0&&(t=t.concat(y)),o=t}else n===void 0&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:s,anchorPrefix:a,flow:l,keepUndefined:c,onTagObj:d,tag:u}=n??{},{onAnchor:h,setAnchors:f,sourceObjects:p}=Gj(this,a||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:p},g=Li(e,u,m);return l&&Ie(g)&&(g.flow=!0),f(),g}createPair(e,t,n={}){const o=this.createNode(e,null,n),s=this.createNode(t,null,n);return new pt(o,s)}delete(e){return Qo(this.contents)?this.contents.delete(e):!1}deleteIn(e){return pi(e)?this.contents==null?!1:(this.contents=null,!0):Qo(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return Ie(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return pi(e)?!t&&Qe(this.contents)?this.contents.value:this.contents:Ie(this.contents)?this.contents.getIn(e,t):void 0}has(e){return Ie(this.contents)?this.contents.has(e):!1}hasIn(e){return pi(e)?this.contents!==void 0:Ie(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=ac(this.schema,[e],t):Qo(this.contents)&&this.contents.set(e,t)}setIn(e,t){pi(e)?this.contents=t:this.contents==null?this.contents=ac(this.schema,Array.from(e),t):Qo(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Ot({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Ot({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const o=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new nd(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:o,onAnchor:s,reviver:a}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=Ft(this.contents,t??"",l);if(typeof s=="function")for(const{count:d,res:u}of l.anchors.values())s(u,d);return typeof a=="function"?Wo(a,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return SD(this,e)}}function Qo(r){if(Ie(r))return!0;throw new Error("Expected a YAML collection as document contents")}class Ip extends Error{constructor(e,t,n,o){super(),this.name=e,this.code=n,this.message=o,this.pos=t}}class io extends Ip{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class _w extends Ip{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const cc=(r,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));const{line:n,col:o}=t.linePos[0];t.message+=` at line ${n}, column ${o}`;let s=o-1,a=r.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&a.length>80){const l=Math.min(s-39,a.length-79);a="…"+a.substring(l),s-=l-1}if(a.length>80&&(a=a.substring(0,79)+"…"),n>1&&/^ *$/.test(a.substring(0,s))){let l=r.substring(e.lineStarts[n-2],e.lineStarts[n-1]);l.length>80&&(l=l.substring(0,79)+`…
|
|
149
|
+
`),a=l+a}if(/[^ ]/.test(a)){let l=1;const c=t.linePos[1];c&&c.line===n&&c.col>o&&(l=Math.max(1,Math.min(c.col-o,80-s)));const d=" ".repeat(s)+"^".repeat(l);t.message+=`:
|
|
150
|
+
|
|
151
|
+
${a}
|
|
152
|
+
${d}
|
|
153
|
+
`}};function ps(r,{flow:e,indicator:t,next:n,offset:o,onError:s,startOnNewline:a}){let l=!1,c=a,d=a,u="",h="",f=!1,p=!1,m=!1,g=null,O=null,y=null,b=null,v=null;for(const k of r)switch(m&&(k.type!=="space"&&k.type!=="newline"&&k.type!=="comma"&&s(k.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),k.type){case"space":!e&&c&&t!=="doc-start"&&k.source[0]===" "&&s(k,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=!0;break;case"comment":{d||s(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const $=k.source.substring(1)||" ";u?u+=h+$:u=$,h="",c=!1;break}case"newline":c?u?u+=k.source:l=!0:h+=k.source,c=!0,f=!0,(g||O)&&(p=!0),d=!0;break;case"anchor":g&&s(k,"MULTIPLE_ANCHORS","A node can have at most one anchor"),k.source.endsWith(":")&&s(k.offset+k.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=k,v===null&&(v=k.offset),c=!1,d=!1,m=!0;break;case"tag":{O&&s(k,"MULTIPLE_TAGS","A node can have at most one tag"),O=k,v===null&&(v=k.offset),c=!1,d=!1,m=!0;break}case t:(g||O)&&s(k,"BAD_PROP_ORDER",`Anchors and tags must be after the ${k.source} indicator`),b&&s(k,"UNEXPECTED_TOKEN",`Unexpected ${k.source} in ${e??"collection"}`),b=k,c=!1,d=!1;break;case"comma":if(e){y&&s(k,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),y=k,c=!1,d=!1;break}default:s(k,"UNEXPECTED_TOKEN",`Unexpected ${k.type} token`),c=!1,d=!1}const w=r[r.length-1],S=w?w.offset+w.source.length:o;return m&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:b,spaceBefore:l,comment:u,hasNewline:f,hasNewlineAfterProp:p,anchor:g,tag:O,end:S,start:v??S}}function Fi(r){if(!r)return null;switch(r.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(r.source.includes(`
|
|
154
|
+
`))return!0;if(r.end){for(const e of r.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of r.items){for(const t of e.start)if(t.type==="newline")return!0;if(e.sep){for(const t of e.sep)if(t.type==="newline")return!0}if(Fi(e.key)||Fi(e.value))return!0}return!1;default:return!0}}function Vh(r,e,t){if((e==null?void 0:e.type)==="flow-collection"){const n=e.end[0];n.indent===r&&(n.source==="]"||n.source==="}")&&Fi(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Cw(r,e,t){const{uniqueKeys:n}=r.options;if(n===!1)return!1;const o=typeof n=="function"?n:(s,a)=>s===a||Qe(s)&&Qe(a)&&s.value===a.value&&!(s.value==="<<"&&r.schema.merge);return e.some(s=>o(s.key,t))}const O0="All mapping items must start at the same column";function $D({composeNode:r,composeEmptyNode:e},t,n,o,s){var a;const l=(s==null?void 0:s.nodeClass)??Bt,c=new l(t.schema);t.atRoot&&(t.atRoot=!1);let d=n.offset,u=null;for(const h of n.items){const{start:f,key:p,sep:m,value:g}=h,O=ps(f,{indicator:"explicit-key-ind",next:p??(m==null?void 0:m[0]),offset:d,onError:o,startOnNewline:!0}),y=!O.found;if(y){if(p&&(p.type==="block-seq"?o(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==n.indent&&o(d,"BAD_INDENT",O0)),!O.anchor&&!O.tag&&!m){u=O.end,O.comment&&(c.comment?c.comment+=`
|
|
155
|
+
`+O.comment:c.comment=O.comment);continue}(O.hasNewlineAfterProp||Fi(p))&&o(p??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((a=O.found)==null?void 0:a.indent)!==n.indent&&o(d,"BAD_INDENT",O0);const b=O.end,v=p?r(t,p,O,o):e(t,b,f,null,O,o);t.schema.compat&&Vh(n.indent,p,o),Cw(t,c.items,v)&&o(b,"DUPLICATE_KEY","Map keys must be unique");const w=ps(m??[],{indicator:"map-value-ind",next:g,offset:v.range[2],onError:o,startOnNewline:!p||p.type==="block-scalar"});if(d=w.end,w.found){y&&((g==null?void 0:g.type)==="block-map"&&!w.hasNewline&&o(d,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&O.start<w.found.offset-1024&&o(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const S=g?r(t,g,w,o):e(t,d,m,null,w,o);t.schema.compat&&Vh(n.indent,g,o),d=S.range[2];const k=new pt(v,S);t.options.keepSourceTokens&&(k.srcToken=h),c.items.push(k)}else{y&&o(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),w.comment&&(v.comment?v.comment+=`
|
|
156
|
+
`+w.comment:v.comment=w.comment);const S=new pt(v);t.options.keepSourceTokens&&(S.srcToken=h),c.items.push(S)}}return u&&u<d&&o(u,"IMPOSSIBLE","Map comment with trailing content"),c.range=[n.offset,d,u??d],c}function PD({composeNode:r,composeEmptyNode:e},t,n,o,s){const a=(s==null?void 0:s.nodeClass)??En,l=new a(t.schema);t.atRoot&&(t.atRoot=!1);let c=n.offset,d=null;for(const{start:u,value:h}of n.items){const f=ps(u,{indicator:"seq-item-ind",next:h,offset:c,onError:o,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||h)h&&h.type==="block-seq"?o(f.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{d=f.end,f.comment&&(l.comment=f.comment);continue}const p=h?r(t,h,f,o):e(t,f.end,u,null,f,o);t.schema.compat&&Vh(n.indent,h,o),c=p.range[2],l.items.push(p)}return l.range=[n.offset,c,d??c],l}function ga(r,e,t,n){let o="";if(r){let s=!1,a="";for(const l of r){const{source:c,type:d}=l;switch(d){case"space":s=!0;break;case"comment":{t&&!s&&n(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=c.substring(1)||" ";o?o+=a+u:o=u,a="";break}case"newline":o&&(a+=c),s=!0;break;default:n(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}e+=c.length}}return{comment:o,offset:e}}const eu="Block collections are not allowed within flow collections",tu=r=>r&&(r.type==="block-map"||r.type==="block-seq");function xD({composeNode:r,composeEmptyNode:e},t,n,o,s){const a=n.start.source==="{",l=a?"flow map":"flow sequence",c=(s==null?void 0:s.nodeClass)??(a?Bt:En),d=new c(t.schema);d.flow=!0;const u=t.atRoot;u&&(t.atRoot=!1);let h=n.offset+n.start.source.length;for(let O=0;O<n.items.length;++O){const y=n.items[O],{start:b,key:v,sep:w,value:S}=y,k=ps(b,{flow:l,indicator:"explicit-key-ind",next:v??(w==null?void 0:w[0]),offset:h,onError:o,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!w&&!S){O===0&&k.comma?o(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):O<n.items.length-1&&o(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),k.comment&&(d.comment?d.comment+=`
|
|
157
|
+
`+k.comment:d.comment=k.comment),h=k.end;continue}!a&&t.options.strict&&Fi(v)&&o(v,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(O===0)k.comma&&o(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(k.comma||o(k.start,"MISSING_CHAR",`Missing , between ${l} items`),k.comment){let $="";e:for(const C of b)switch(C.type){case"comma":case"space":break;case"comment":$=C.source.substring(1);break e;default:break e}if($){let C=d.items[d.items.length-1];Ze(C)&&(C=C.value??C.key),C.comment?C.comment+=`
|
|
158
|
+
`+$:C.comment=$,k.comment=k.comment.substring($.length+1)}}if(!a&&!w&&!k.found){const $=S?r(t,S,k,o):e(t,k.end,w,null,k,o);d.items.push($),h=$.range[2],tu(S)&&o($.range,"BLOCK_IN_FLOW",eu)}else{const $=k.end,C=v?r(t,v,k,o):e(t,$,b,null,k,o);tu(v)&&o(C.range,"BLOCK_IN_FLOW",eu);const E=ps(w??[],{flow:l,indicator:"map-value-ind",next:S,offset:C.range[2],onError:o,startOnNewline:!1});if(E.found){if(!a&&!k.found&&t.options.strict){if(w)for(const R of w){if(R===E.found)break;if(R.type==="newline"){o(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<E.found.offset-1024&&o(E.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else S&&("source"in S&&S.source&&S.source[0]===":"?o(S,"MISSING_CHAR",`Missing space after : in ${l}`):o(E.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const B=S?r(t,S,E,o):E.found?e(t,E.end,w,null,E,o):null;B?tu(S)&&o(B.range,"BLOCK_IN_FLOW",eu):E.comment&&(C.comment?C.comment+=`
|
|
159
|
+
`+E.comment:C.comment=E.comment);const q=new pt(C,B);if(t.options.keepSourceTokens&&(q.srcToken=y),a){const R=d;Cw(t,R.items,C)&&o($,"DUPLICATE_KEY","Map keys must be unique"),R.items.push(q)}else{const R=new Bt(t.schema);R.flow=!0,R.items.push(q),d.items.push(R)}h=B?B.range[2]:E.end}}const f=a?"}":"]",[p,...m]=n.end;let g=h;if(p&&p.source===f)g=p.offset+p.source.length;else{const O=l[0].toUpperCase()+l.substring(1),y=u?`${O} must end with a ${f}`:`${O} in block collection must be sufficiently indented and end with a ${f}`;o(h,u?"MISSING_CHAR":"BAD_INDENT",y),p&&p.source.length!==1&&m.unshift(p)}if(m.length>0){const O=ga(m,g,t.options.strict,o);O.comment&&(d.comment?d.comment+=`
|
|
160
|
+
`+O.comment:d.comment=O.comment),d.range=[n.offset,g,O.offset]}else d.range=[n.offset,g,g];return d}function ru(r,e,t,n,o,s){const a=t.type==="block-map"?$D(r,e,t,n,s):t.type==="block-seq"?PD(r,e,t,n,s):xD(r,e,t,n,s),l=a.constructor;return o==="!"||o===l.tagName?(a.tag=l.tagName,a):(o&&(a.tag=o),a)}function _D(r,e,t,n,o){var s;const a=n?e.directives.tagName(n.source,f=>o(n,"TAG_RESOLVE_FAILED",f)):null,l=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!n||!a||a==="!"||a===Bt.tagName&&l==="map"||a===En.tagName&&l==="seq"||!l)return ru(r,e,t,o,a);let c=e.schema.tags.find(f=>f.tag===a&&f.collection===l);if(!c){const f=e.schema.knownTags[a];if(f&&f.collection===l)e.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f!=null&&f.collection?o(n,"BAD_COLLECTION_TYPE",`${f.tag} used for ${l} collection, but expects ${f.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),ru(r,e,t,o,a)}const d=ru(r,e,t,o,a,c),u=((s=c.resolve)==null?void 0:s.call(c,d,f=>o(n,"TAG_RESOLVE_FAILED",f),e.options))??d,h=We(u)?u:new ae(u);return h.range=d.range,h.tag=a,c!=null&&c.format&&(h.format=c.format),h}function Tw(r,e,t){const n=r.offset,o=CD(r,e,t);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const s=o.mode===">"?ae.BLOCK_FOLDED:ae.BLOCK_LITERAL,a=r.source?TD(r.source):[];let l=a.length;for(let g=a.length-1;g>=0;--g){const O=a[g][1];if(O===""||O==="\r")l=g;else break}if(l===0){const g=o.chomp==="+"&&a.length>0?`
|
|
161
|
+
`.repeat(Math.max(1,a.length-1)):"";let O=n+o.length;return r.source&&(O+=r.source.length),{value:g,type:s,comment:o.comment,range:[n,O,O]}}let c=r.indent+o.indent,d=r.offset+o.length,u=0;for(let g=0;g<l;++g){const[O,y]=a[g];if(y===""||y==="\r")o.indent===0&&O.length>c&&(c=O.length);else{O.length<c&&t(d+O.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(c=O.length),u=g;break}d+=O.length+y.length+1}for(let g=a.length-1;g>=l;--g)a[g][0].length>c&&(l=g+1);let h="",f="",p=!1;for(let g=0;g<u;++g)h+=a[g][0].slice(c)+`
|
|
162
|
+
`;for(let g=u;g<l;++g){let[O,y]=a[g];d+=O.length+y.length+1;const b=y[y.length-1]==="\r";if(b&&(y=y.slice(0,-1)),y&&O.length<c){const v=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;t(d-y.length-(b?2:1),"BAD_INDENT",v),O=""}s===ae.BLOCK_LITERAL?(h+=f+O.slice(c)+y,f=`
|
|
163
|
+
`):O.length>c||y[0]===" "?(f===" "?f=`
|
|
164
|
+
`:!p&&f===`
|
|
165
|
+
`&&(f=`
|
|
166
|
+
|
|
167
|
+
`),h+=f+O.slice(c)+y,f=`
|
|
168
|
+
`,p=!0):y===""?f===`
|
|
169
|
+
`?h+=`
|
|
170
|
+
`:f=`
|
|
171
|
+
`:(h+=f+y,f=" ",p=!1)}switch(o.chomp){case"-":break;case"+":for(let g=l;g<a.length;++g)h+=`
|
|
172
|
+
`+a[g][0].slice(c);h[h.length-1]!==`
|
|
173
|
+
`&&(h+=`
|
|
174
|
+
`);break;default:h+=`
|
|
175
|
+
`}const m=n+o.length+r.source.length;return{value:h,type:s,comment:o.comment,range:[n,m,m]}}function CD({offset:r,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=e[0],s=o[0];let a=0,l="",c=-1;for(let f=1;f<o.length;++f){const p=o[f];if(!l&&(p==="-"||p==="+"))l=p;else{const m=Number(p);!a&&m?a=m:c===-1&&(c=r+f)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,u="",h=o.length;for(let f=1;f<e.length;++f){const p=e[f];switch(p.type){case"space":d=!0;case"newline":h+=p.source.length;break;case"comment":t&&!d&&n(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=p.source.length,u=p.source.substring(1);break;case"error":n(p,"UNEXPECTED_TOKEN",p.message),h+=p.source.length;break;default:{const m=`Unexpected token in block scalar header: ${p.type}`;n(p,"UNEXPECTED_TOKEN",m);const g=p.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:s,indent:a,chomp:l,comment:u,length:h}}function TD(r){const e=r.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),o=[n!=null&&n[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let s=1;s<e.length;s+=2)o.push([e[s],e[s+1]]);return o}function Qw(r,e,t){const{offset:n,type:o,source:s,end:a}=r;let l,c;const d=(f,p,m)=>t(n+f,p,m);switch(o){case"scalar":l=ae.PLAIN,c=QD(s,d);break;case"single-quoted-scalar":l=ae.QUOTE_SINGLE,c=ED(s,d);break;case"double-quoted-scalar":l=ae.QUOTE_DOUBLE,c=ND(s,d);break;default:return t(r,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}const u=n+s.length,h=ga(a,u,e,t);return{value:c,type:l,comment:h.comment,range:[n,u,h.offset]}}function QD(r,e){let t="";switch(r[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${r[0]}`;break}case"@":case"`":{t=`reserved character ${r[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Ew(r)}function ED(r,e){return(r[r.length-1]!=="'"||r.length===1)&&e(r.length,"MISSING_CHAR","Missing closing 'quote"),Ew(r.slice(1,-1)).replace(/''/g,"'")}function Ew(r){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
176
|
+
`,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
177
|
+
`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(r);if(!n)return r;let o=n[1],s=" ",a=e.lastIndex;for(t.lastIndex=a;n=t.exec(r);)n[1]===""?s===`
|
|
178
|
+
`?o+=s:s=`
|
|
179
|
+
`:(o+=s+n[1],s=" "),a=t.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=a,n=l.exec(r),o+s+((n==null?void 0:n[1])??"")}function ND(r,e){let t="";for(let n=1;n<r.length-1;++n){const o=r[n];if(!(o==="\r"&&r[n+1]===`
|
|
180
|
+
`))if(o===`
|
|
181
|
+
`){const{fold:s,offset:a}=AD(r,n);t+=s,n=a}else if(o==="\\"){let s=r[++n];const a=VD[s];if(a)t+=a;else if(s===`
|
|
182
|
+
`)for(s=r[n+1];s===" "||s===" ";)s=r[++n+1];else if(s==="\r"&&r[n+1]===`
|
|
183
|
+
`)for(s=r[++n+1];s===" "||s===" ";)s=r[++n+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];t+=RD(r,n+1,l,e),n+=l}else{const l=r.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),t+=l}}else if(o===" "||o===" "){const s=n;let a=r[n+1];for(;a===" "||a===" ";)a=r[++n+1];a!==`
|
|
184
|
+
`&&!(a==="\r"&&r[n+2]===`
|
|
185
|
+
`)&&(t+=n>s?r.slice(s,n+1):o)}else t+=o}return(r[r.length-1]!=='"'||r.length===1)&&e(r.length,"MISSING_CHAR",'Missing closing "quote'),t}function AD(r,e){let t="",n=r[e+1];for(;(n===" "||n===" "||n===`
|
|
186
|
+
`||n==="\r")&&!(n==="\r"&&r[e+2]!==`
|
|
187
|
+
`);)n===`
|
|
188
|
+
`&&(t+=`
|
|
189
|
+
`),e+=1,n=r[e+1];return t||(t=" "),{fold:t,offset:e}}const VD={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
190
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function RD(r,e,t,n){const o=r.substr(e,t),s=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const a=r.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function Nw(r,e,t,n){const{value:o,type:s,comment:a,range:l}=e.type==="block-scalar"?Tw(e,r.options.strict,n):Qw(e,r.options.strict,n),c=t?r.directives.tagName(t.source,h=>n(t,"TAG_RESOLVE_FAILED",h)):null,d=t&&c?BD(r.schema,o,c,t,n):e.type==="scalar"?ZD(r,o,e,n):r.schema[Gr];let u;try{const h=d.resolve(o,f=>n(t??e,"TAG_RESOLVE_FAILED",f),r.options);u=Qe(h)?h:new ae(h)}catch(h){const f=h instanceof Error?h.message:String(h);n(t??e,"TAG_RESOLVE_FAILED",f),u=new ae(o)}return u.range=l,u.source=o,s&&(u.type=s),c&&(u.tag=c),d.format&&(u.format=d.format),a&&(u.comment=a),u}function BD(r,e,t,n,o){var s;if(t==="!")return r[Gr];const a=[];for(const c of r.tags)if(!c.collection&&c.tag===t)if(c.default&&c.test)a.push(c);else return c;for(const c of a)if((s=c.test)!=null&&s.test(e))return c;const l=r.knownTags[t];return l&&!l.collection?(r.tags.push(Object.assign({},l,{default:!1,test:void 0})),l):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),r[Gr])}function ZD({directives:r,schema:e},t,n,o){const s=e.tags.find(a=>{var l;return a.default&&((l=a.test)==null?void 0:l.test(t))})||e[Gr];if(e.compat){const a=e.compat.find(l=>{var c;return l.default&&((c=l.test)==null?void 0:c.test(t))})??e[Gr];if(s.tag!==a.tag){const l=r.tagString(s.tag),c=r.tagString(a.tag),d=`Value may be parsed as either ${l} or ${c}`;o(n,"TAG_RESOLVE_FAILED",d,!0)}}return s}function ID(r,e,t){if(e){t===null&&(t=e.length);for(let n=t-1;n>=0;--n){let o=e[n];switch(o.type){case"space":case"comment":case"newline":r-=o.source.length;continue}for(o=e[++n];(o==null?void 0:o.type)==="space";)r+=o.source.length,o=e[++n];break}}return r}const jD={composeNode:Aw,composeEmptyNode:jp};function Aw(r,e,t,n){const{spaceBefore:o,comment:s,anchor:a,tag:l}=t;let c,d=!0;switch(e.type){case"alias":c=DD(r,e,n),(a||l)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Nw(r,e,l,n),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=_D(jD,r,e,l,n),a&&(c.anchor=a.source.substring(1));break;default:{const u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",u),c=jp(r,e.offset,void 0,null,t,n),d=!1}}return a&&c.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),s&&(e.type==="scalar"&&e.source===""?c.comment=s:c.commentBefore=s),r.options.keepSourceTokens&&d&&(c.srcToken=e),c}function jp(r,e,t,n,{spaceBefore:o,comment:s,anchor:a,tag:l,end:c},d){const u={type:"scalar",offset:ID(e,t,n),indent:-1,source:""},h=Nw(r,u,l,d);return a&&(h.anchor=a.source.substring(1),h.anchor===""&&d(a,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),s&&(h.comment=s,h.range[2]=c),h}function DD({options:r},{offset:e,source:t,end:n},o){const s=new Lc(t.substring(1));s.source===""&&o(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=e+t.length,l=ga(n,a,r.strict,o);return s.range=[e,a,l.offset],l.comment&&(s.comment=l.comment),s}function qD(r,e,{offset:t,start:n,value:o,end:s},a){const l=Object.assign({_directives:e},r),c=new Rs(void 0,l),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=ps(n,{indicator:"doc-start",next:o??(s==null?void 0:s[0]),offset:t,onError:a,startOnNewline:!0});u.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!u.hasNewline&&a(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?Aw(d,o,u,a):jp(d,u.end,n,null,u,a);const h=c.contents.range[2],f=ga(s,h,!1,a);return f.comment&&(c.comment=f.comment),c.range=[t,h,f.offset],c}function ii(r){if(typeof r=="number")return[r,r+1];if(Array.isArray(r))return r.length===2?r:[r[0],r[1]];const{offset:e,source:t}=r;return[e,e+(typeof t=="string"?t.length:1)]}function y0(r){var e;let t="",n=!1,o=!1;for(let s=0;s<r.length;++s){const a=r[s];switch(a[0]){case"#":t+=(t===""?"":o?`
|
|
191
|
+
|
|
192
|
+
`:`
|
|
193
|
+
`)+(a.substring(1)||" "),n=!0,o=!1;break;case"%":((e=r[s+1])==null?void 0:e[0])!=="#"&&(s+=1),n=!1;break;default:n||(o=!0),n=!1}}return{comment:t,afterEmptyLine:o}}class Dp{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,o,s)=>{const a=ii(t);s?this.warnings.push(new _w(a,n,o)):this.errors.push(new io(a,n,o))},this.directives=new Ot({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:o}=y0(this.prelude);if(n){const s=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
194
|
+
${n}`:n;else if(o||e.directives.docStart||!s)e.commentBefore=n;else if(Ie(s)&&!s.flow&&s.items.length>0){let a=s.items[0];Ze(a)&&(a=a.key);const l=a.commentBefore;a.commentBefore=l?`${n}
|
|
195
|
+
${l}`:n}else{const a=s.commentBefore;s.commentBefore=a?`${n}
|
|
196
|
+
${a}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:y0(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const o of e)yield*this.next(o);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,o)=>{const s=ii(e);s[0]+=t,this.onError(s,"BAD_DIRECTIVE",n,o)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=qD(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new io(ii(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new io(ii(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const t=ga(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
|
|
197
|
+
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new io(ii(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),o=new Rs(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,t,t],this.decorate(o,!1),yield o}}}function MD(r,e=!0,t){if(r){const n=(o,s,a)=>{const l=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(t)t(l,s,a);else throw new io([l,l+1],s,a)};switch(r.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Qw(r,e,n);case"block-scalar":return Tw(r,e,n)}}return null}function XD(r,e){const{implicitKey:t=!1,indent:n,inFlow:o=!1,offset:s=-1,type:a="PLAIN"}=e,l=pa({type:a,value:r},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=e.end??[{type:"newline",offset:-1,indent:n,source:`
|
|
198
|
+
`}];switch(l[0]){case"|":case">":{const d=l.indexOf(`
|
|
199
|
+
`),u=l.substring(0,d),h=l.substring(d+1)+`
|
|
200
|
+
`,f=[{type:"block-scalar-header",offset:s,indent:n,source:u}];return Vw(f,c)||f.push({type:"newline",offset:-1,indent:n,source:`
|
|
201
|
+
`}),{type:"block-scalar",offset:s,indent:n,props:f,source:h}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:l,end:c};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:l,end:c};default:return{type:"scalar",offset:s,indent:n,source:l,end:c}}}function WD(r,e,t={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:s=!1,type:a}=t,l="indent"in r?r.indent:null;if(n&&typeof l=="number"&&(l+=2),!a)switch(r.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{const d=r.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}const c=pa({type:a,value:e},{implicitKey:o||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":zD(r,c);break;case'"':nu(r,c,"double-quoted-scalar");break;case"'":nu(r,c,"single-quoted-scalar");break;default:nu(r,c,"scalar")}}function zD(r,e){const t=e.indexOf(`
|
|
202
|
+
`),n=e.substring(0,t),o=e.substring(t+1)+`
|
|
203
|
+
`;if(r.type==="block-scalar"){const s=r.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=n,r.source=o}else{const{offset:s}=r,a="indent"in r?r.indent:-1,l=[{type:"block-scalar-header",offset:s,indent:a,source:n}];Vw(l,"end"in r?r.end:void 0)||l.push({type:"newline",offset:-1,indent:a,source:`
|
|
204
|
+
`});for(const c of Object.keys(r))c!=="type"&&c!=="offset"&&delete r[c];Object.assign(r,{type:"block-scalar",indent:a,props:l,source:o})}}function Vw(r,e){if(e)for(const t of e)switch(t.type){case"space":case"comment":r.push(t);break;case"newline":return r.push(t),!0}return!1}function nu(r,e,t){switch(r.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":r.type=t,r.source=e;break;case"block-scalar":{const n=r.props.slice(1);let o=e.length;r.props[0].type==="block-scalar-header"&&(o-=r.props[0].source.length);for(const s of n)s.offset+=o;delete r.props,Object.assign(r,{type:t,source:e,end:n});break}case"block-map":case"block-seq":{const n={type:"newline",offset:r.offset+e.length,indent:r.indent,source:`
|
|
205
|
+
`};delete r.items,Object.assign(r,{type:t,source:e,end:[n]});break}default:{const n="indent"in r?r.indent:-1,o="end"in r&&Array.isArray(r.end)?r.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(r))s!=="type"&&s!=="offset"&&delete r[s];Object.assign(r,{type:t,indent:n,source:e,end:o})}}}const UD=r=>"type"in r?dc(r):_l(r);function dc(r){switch(r.type){case"block-scalar":{let e="";for(const t of r.props)e+=dc(t);return e+r.source}case"block-map":case"block-seq":{let e="";for(const t of r.items)e+=_l(t);return e}case"flow-collection":{let e=r.start.source;for(const t of r.items)e+=_l(t);for(const t of r.end)e+=t.source;return e}case"document":{let e=_l(r);if(r.end)for(const t of r.end)e+=t.source;return e}default:{let e=r.source;if("end"in r&&r.end)for(const t of r.end)e+=t.source;return e}}}function _l({start:r,key:e,sep:t,value:n}){let o="";for(const s of r)o+=s.source;if(e&&(o+=dc(e)),t)for(const s of t)o+=s.source;return n&&(o+=dc(n)),o}const Rh=Symbol("break visit"),YD=Symbol("skip children"),Rw=Symbol("remove item");function Oo(r,e){"type"in r&&r.type==="document"&&(r={start:r.start,value:r.value}),Bw(Object.freeze([]),r,e)}Oo.BREAK=Rh;Oo.SKIP=YD;Oo.REMOVE=Rw;Oo.itemAtPath=(r,e)=>{let t=r;for(const[n,o]of e){const s=t==null?void 0:t[n];if(s&&"items"in s)t=s.items[o];else return}return t};Oo.parentCollection=(r,e)=>{const t=Oo.itemAtPath(r,e.slice(0,-1)),n=e[e.length-1][0],o=t==null?void 0:t[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function Bw(r,e,t){let n=t(e,r);if(typeof n=="symbol")return n;for(const o of["key","value"]){const s=e[o];if(s&&"items"in s){for(let a=0;a<s.items.length;++a){const l=Bw(Object.freeze(r.concat([[o,a]])),s.items[a],t);if(typeof l=="number")a=l-1;else{if(l===Rh)return Rh;l===Rw&&(s.items.splice(a,1),a-=1)}}typeof n=="function"&&o==="key"&&(n=n(e,r))}}return typeof n=="function"?n(e,r):n}const od="\uFEFF",sd="",id="",Hi="",LD=r=>!!r&&"items"in r,FD=r=>!!r&&(r.type==="scalar"||r.type==="single-quoted-scalar"||r.type==="double-quoted-scalar"||r.type==="block-scalar");function HD(r){switch(r){case od:return"<BOM>";case sd:return"<DOC>";case id:return"<FLOW_END>";case Hi:return"<SCALAR>";default:return JSON.stringify(r)}}function Zw(r){switch(r){case od:return"byte-order-mark";case sd:return"doc-mode";case id:return"flow-error-end";case Hi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
206
|
+
`:case`\r
|
|
207
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(r[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const GD=Object.freeze(Object.defineProperty({__proto__:null,BOM:od,DOCUMENT:sd,FLOW_END:id,SCALAR:Hi,createScalarToken:XD,isCollection:LD,isScalar:FD,prettyToken:HD,resolveAsScalar:MD,setScalarValue:WD,stringify:UD,tokenType:Zw,visit:Oo},Symbol.toStringTag,{value:"Module"}));function Xt(r){switch(r){case void 0:case" ":case`
|
|
208
|
+
`:case"\r":case" ":return!0;default:return!1}}const b0="0123456789ABCDEFabcdef".split(""),KD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),ou=",[]{}".split(""),JD=` ,[]{}
|
|
209
|
+
\r `.split(""),su=r=>!r||JD.includes(r);class Iw{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
|
|
210
|
+
`?!0:t==="\r"?this.buffer[e+1]===`
|
|
211
|
+
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===" ";)t=this.buffer[++n+e];if(t==="\r"){const o=this.buffer[n+e+1];if(o===`
|
|
212
|
+
`||!o&&!this.atEnd)return e+n+1}return t===`
|
|
213
|
+
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){const n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&Xt(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
214
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===od&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length;const n=e.indexOf("#");if(n!==-1){const s=e[n-1];(s===" "||s===" ")&&(t=n-1)}for(;;){const s=e[t-1];if(s===" "||s===" ")t-=1;else break}const o=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield sd,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const t=this.peek(3);if(t==="---"&&Xt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(t==="..."&&Xt(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Xt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Xt(t)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(su),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&o[0]!=="#"||n===0&&(o.startsWith("---")||o.startsWith("..."))&&Xt(o[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield id,yield*this.parseLineStart();let s=0;for(;o[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),o[s]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(su),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||Xt(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let s=0;for(;this.buffer[t-1-s]==="\\";)s+=1;if(s%2===0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let o=n.indexOf(`
|
|
215
|
+
`,this.pos);if(o!==-1){for(;o!==-1;){const s=this.continueScalar(o+1);if(s===-1)break;o=n.indexOf(`
|
|
216
|
+
`,s)}o!==-1&&(t=o-(n[o-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>Xt(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,n;e:for(let o=this.pos;n=this.buffer[o];++o)switch(n){case" ":t+=1;break;case`
|
|
217
|
+
`:e=o,t=0;break;case"\r":{const s=this.buffer[o+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
|
|
218
|
+
`)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext+=this.blockScalarIndent;do{const o=this.continueScalar(e+1);if(o===-1)break;e=this.buffer.indexOf(`
|
|
219
|
+
`,o)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}if(!this.blockScalarKeep)do{let o=e-1,s=this.buffer[o];s==="\r"&&(s=this.buffer[--o]);const a=o;for(;s===" "||s===" ";)s=this.buffer[--o];if(s===`
|
|
220
|
+
`&&o>=this.pos&&o+1+t>a)e=o;else break}while(!0);return yield Hi,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){const s=this.buffer[n+1];if(Xt(s)||e&&s===",")break;t=n}else if(Xt(o)){let s=this.buffer[n+1];if(o==="\r"&&(s===`
|
|
221
|
+
`?(n+=1,o=`
|
|
222
|
+
`,s=this.buffer[n+1]):t=n),s==="#"||e&&ou.includes(s))break;if(o===`
|
|
223
|
+
`){const a=this.continueScalar(n+1);if(a===-1)break;n=Math.max(n,a-2)}}else{if(e&&ou.includes(o))break;t=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Hi,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(su))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(Xt(t)||e&&ou.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!Xt(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(KD.includes(t))t=this.buffer[++e];else if(t==="%"&&b0.includes(this.buffer[e+1])&&b0.includes(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
|
|
224
|
+
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
225
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===" "||e&&n===" ");const o=t-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=t),o}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class jw{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const o=this.lineStarts[t-1];return{line:t,col:e-o+1}}}}function rr(r,e){for(let t=0;t<r.length;++t)if(r[t].type===e)return!0;return!1}function v0(r){for(let e=0;e<r.length;++e)switch(r[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function Dw(r){switch(r==null?void 0:r.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function nl(r){switch(r.type){case"document":return r.start;case"block-map":{const e=r.items[r.items.length-1];return e.sep??e.start}case"block-seq":return r.items[r.items.length-1].start;default:return[]}}function Eo(r){var e;if(r.length===0)return[];let t=r.length;e:for(;--t>=0;)switch(r[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((e=r[++t])==null?void 0:e.type)==="space";);return r.splice(t,r.length)}function w0(r){if(r.start.type==="flow-seq-start")for(const e of r.items)e.sep&&!e.value&&!rr(e.start,"explicit-key-ind")&&!rr(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Dw(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class qp{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Iw,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const t=Zw(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{const n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&w0(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{const o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=t;else{Object.assign(o,{key:t,sep:[]}),this.onKeyLine=!rr(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:t}):o.value=t;break}case"flow-collection":{const o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:t,sep:[]}):o.sep?o.value=t:Object.assign(o,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const o=t.items[t.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&v0(o.start)===-1&&(t.indent===0||o.start.every(s=>s.type!=="comment"||s.indent<t.indent))&&(n.type==="document"?n.end=o.start:n.items.push({start:o.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{v0(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const t=nl(this.peek(2)),n=Eo(t);let o;e.end?(o=e.end,o.push(this.sourceToken),delete e.end):o=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
|
|
226
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
227
|
+
`,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const o=e.items[e.items.length-2],s=(t=o==null?void 0:o.value)==null?void 0:t.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const o=!this.onKeyLine&&this.indent===e.indent&&n.sep&&this.type!=="seq-item-ind";let s=[];if(o&&n.sep&&!n.value){const a=[];for(let l=0;l<n.sep.length;++l){const c=n.sep[l];switch(c.type){case"newline":a.push(l);break;case"space":break;case"comment":c.indent>e.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(s=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!rr(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(s.push(this.sourceToken),e.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(rr(n.start,"explicit-key-ind"))if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(rr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(Dw(n.key)&&!rr(n.sep,"newline")){const a=Eo(n.start),l=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:l,sep:c}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(rr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=Eo(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?e.items.push({start:s,key:null,sep:[this.sourceToken]}):rr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);o||n.value?(e.items.push({start:s,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(e);if(a){o&&a.type!=="block-seq"&&rr(n.start,"explicit-key-ind")&&e.items.push({start:s}),this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const o=e.items[e.items.length-2],s=(t=o==null?void 0:o.value)==null?void 0:t.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||rr(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const o=this.startBlockValue(e);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:o,sep:[]}):t.sep?this.stack.push(o):Object.assign(t,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const o=nl(n),s=Eo(o);w0(e);const a=e.end.splice(1,e.end.length);a.push(this.sourceToken);const l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
|
|
228
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
229
|
+
`,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=nl(e),n=Eo(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;const t=nl(e),n=Eo(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function qw(r){const e=r.prettyErrors!==!1;return{lineCounter:r.lineCounter||e&&new jw||null,prettyErrors:e}}function e4(r,e={}){const{lineCounter:t,prettyErrors:n}=qw(e),o=new qp(t==null?void 0:t.addNewLine),s=new Dp(e),a=Array.from(s.compose(o.parse(r)));if(n&&t)for(const l of a)l.errors.forEach(cc(r,t)),l.warnings.forEach(cc(r,t));return a.length>0?a:Object.assign([],{empty:!0},s.streamInfo())}function Mw(r,e={}){const{lineCounter:t,prettyErrors:n}=qw(e),o=new qp(t==null?void 0:t.addNewLine),s=new Dp(e);let a=null;for(const l of s.compose(o.parse(r),!0,r.length))if(!a)a=l;else if(a.options.logLevel!=="silent"){a.errors.push(new io(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(a.errors.forEach(cc(r,t)),a.warnings.forEach(cc(r,t))),a}function t4(r,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);const o=Mw(r,t);if(!o)return null;if(o.warnings.forEach(s=>cw(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},t))}function r4(r,e,t){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){const o=Math.round(t);t=o<1?void 0:o>8?{indent:8}:{indent:o}}if(r===void 0){const{keepUndefined:o}=t??e??{};if(!o)return}return new Rs(r,n,t).toString(t)}const Xw=Object.freeze(Object.defineProperty({__proto__:null,Alias:Lc,CST:GD,Composer:Dp,Document:Rs,Lexer:Iw,LineCounter:jw,Pair:pt,Parser:qp,Scalar:ae,Schema:nd,YAMLError:Ip,YAMLMap:Bt,YAMLParseError:io,YAMLSeq:En,YAMLWarning:_w,isAlias:bo,isCollection:Ie,isDocument:Qs,isMap:Es,isNode:We,isPair:Ze,isScalar:Qe,isSeq:Ns,parse:t4,parseAllDocuments:e4,parseDocument:Mw,stringify:r4,visit:Qn,visitAsync:Yc},Symbol.toStringTag,{value:"Module"}));function Ww(r){if(G1(r))return r;if(typeof r=="string")try{return JSON.parse(r)}catch{return Xw.parse(r)}return r}function zw(r){if(G1(r))return r;const e=Ww(r);return[{isEntrypoint:!0,specification:e,filename:"openapi.json",dir:"./",references:Yj(e)}]}async function n4(r){const e=new Wp,t=zw(r),n=await e.validate(t),o=structuredClone(e.specification),s=e.resolveReferences(t);return{valid:n.valid,version:e.version,errors:n.errors,specification:o,schema:s}}const o4=r=>JSON.stringify(r,null,2),s4=r=>Xw.stringify(r);function i4(r){var e;if((e=r.openapi)!=null&&e.startsWith("3.0"))r.openapi="3.1.0";else return r;return r=$r(r,t=>(t.type!=="undefined"&&t.nullable===!0&&(t.type=["null",t.type],delete t.nullable),t)),r=$r(r,t=>(t.exclusiveMinimum===!0?(t.exclusiveMinimum=t.minimum,delete t.minimum):t.exclusiveMinimum===!1&&delete t.exclusiveMinimum,t.exclusiveMaximum===!0?(t.exclusiveMaximum=t.maximum,delete t.maximum):t.exclusiveMaximum===!1&&delete t.exclusiveMaximum,t)),r=$r(r,t=>(t.example!==void 0&&(t.examples={default:t.example},delete t.example),t)),r=$r(r,t=>{if(t.type==="object"&&t.properties!==void 0)for(const[n,o]of Object.entries(t.properties))o!==void 0&&o.type==="string"&&o.format==="binary"&&(o.contentEncoding="application/octet-stream",delete o.format);return t}),r=$r(r,t=>{if(!(t.type==="string"&&t.format==="binary"))return t}),r=$r(r,t=>t.type==="string"&&t.format==="base64"?{type:"string",contentEncoding:"base64"}:t),r}function a4(r){return r}function l4(r){return[a4,i4].reduce((e,t)=>t(e),r)}async function c4(r){const e=new Wp,t=zw(r);return{...await e.validate(t),specification:e.specification,version:e.version}}function Uw(r){for(const e of new Set(H1)){const t=e==="2.0"?"swagger":"openapi",n=r[t];if(typeof n=="string"&&n.startsWith(e))return{version:e,specificationType:t,specificationVersion:n}}return{version:void 0,specificationType:void 0,specificationVersion:void 0}}function d4(r){return decodeURI(r.replace(/~1/g,"/").replace(/~0/g,"~"))}function Yw(r){const e=structuredClone(r);return t(e),t(e),e;function t(n){Object.entries(n??{}).forEach(([o,s])=>{if(n.$ref!==void 0){const a=h4(e,n.$ref);delete n.$ref,typeof a=="object"&&Object.keys(a).forEach(l=>{n[l]===void 0&&(n[l]=a[l])})}typeof s=="object"&&!u4(s)&&t(s)})}}function u4(r){try{return JSON.stringify(r),!1}catch{return!0}}function h4(r,e){if(typeof e!="string")return;const[t,n]=e.split("#",2);if(t)throw new Error(Th.EXTERNAL_REFERENCE_NOT_SUPPORTED.replace("%s",e));return d4(n).split("/").slice(1).reduce((o,s)=>o[s],r)}const f4="[",p4="]",m4="{",g4="}",O4=":",y4=",",Lw="true",Fw="false",Hw="null",k0='"',b4=new Map([["t",Lw],["f",Fw],["n",Hw]]),Bh=new Map([[k0,k0],["\\","\\"],["/","/"],["b","\b"],["n",`
|
|
230
|
+
`],["f","\f"],["r","\r"],["t"," "]]),iu=new Map([[f4,"LBracket"],[p4,"RBracket"],[m4,"LBrace"],[g4,"RBrace"],[O4,"Colon"],[y4,"Comma"],[Lw,"Boolean"],[Fw,"Boolean"],[Hw,"Null"]]);class Gi extends Error{constructor(e,{line:t,column:n,offset:o}){super(`${e} (${t}:${n})`),this.line=t,this.column=n,this.offset=o}}class v4 extends Gi{constructor(e,t){super(`Unexpected character '${e}' found.`,t)}}class au extends Gi{constructor(e){super(`Unexpected token ${e.type} found.`,e.loc.start)}}class w4 extends Gi{constructor(e){super("Unexpected end of input found.",e)}}const S0='"',$0="/",P0="*",k4={mode:"json",ranges:!1};function S4(r){return/[\s\n]/.test(r)}function pn(r){return r>="0"&&r<="9"}function $4(r){return pn(r)||/[a-f]/i.test(r)}function P4(r){return r>="1"&&r<="9"}function x4(r){return/[tfn]/.test(r)}function _4(r){return pn(r)||r==="."||r==="-"}function C4(r,e){e=Object.freeze({...k4,...e});let t=-1,n=1,o=0,s=!1;const a=[];function l(y,b,v,w){const S=v.offset+b.length;let k=e.ranges?{range:[v.offset,S]}:void 0;return{type:y,loc:{start:v,end:w||{line:v.line,column:v.column+b.length,offset:S}},...k}}function c(){let y=r.charAt(++t);return s?(n++,o=1,s=!1):o++,y==="\r"?(s=!0,r.charAt(t+1)===`
|
|
231
|
+
`&&t++):y===`
|
|
232
|
+
`&&(s=!0),y}function d(){return{line:n,column:o,offset:t}}function u(y){let b=b4.get(y);if(r.slice(t,t+b.length)===b)return t+=b.length-1,o+=b.length-1,{value:b,c:c()};for(let v=1;v<b.length;v++)b[v]!==r.charAt(t+v)&&m(c())}function h(y){let b=y;for(y=c();y&&y!==S0;){if(y==="\\")if(b+=y,y=c(),Bh.has(y))b+=y;else if(y==="u"){b+=y;for(let v=0;v<4;v++)y=c(),$4(y)?b+=y:m(y)}else m(y);else b+=y;y=c()}return y||g(),b+=y,{value:b,c:c()}}function f(y){let b="";if(y==="-"&&(b+=y,y=c(),pn(y)||m(y)),y==="0")b+=y,y=c(),pn(y)&&m(y);else{P4(y)||m(y);do b+=y,y=c();while(pn(y))}if(y===".")do b+=y,y=c();while(pn(y));if(y==="e"||y==="E")for(b+=y,y=c(),(y==="+"||y==="-")&&(b+=y,y=c()),y||g(),pn(y)||m(y);pn(y);)b+=y,y=c();return{value:b,c:y}}function p(y){let b=y;if(y=c(),y==="/"){do b+=y,y=c();while(y&&y!=="\r"&&y!==`
|
|
233
|
+
`);return{value:b,c:y}}if(y===P0){for(;y;)if(b+=y,y=c(),y===P0&&(b+=y,y=c(),y===$0))return b+=y,y=c(),{value:b,c:y};g()}m(y)}function m(y){throw new v4(y,d())}function g(){throw new w4(d())}let O=c();for(;t<r.length;){for(;S4(O);)O=c();if(!O)break;const y=d();if(iu.has(O))a.push(l(iu.get(O),O,y)),O=c();else if(x4(O)){const b=u(O);let v=b.value;O=b.c,a.push(l(iu.get(v),v,y))}else if(_4(O)){const b=f(O);let v=b.value;O=b.c,a.push(l("Number",v,y))}else if(O===S0){const b=h(O);let v=b.value;O=b.c,a.push(l("String",v,y))}else if(O===$0&&e.mode==="jsonc"){const b=p(O);let v=b.value;O=b.c,a.push(l(v.startsWith("//")?"LineComment":"BlockComment",v,y,d()))}else m(O)}return a}const Ir={document(r,e={}){return{type:"Document",body:r,...e}},string(r,e={}){return{type:"String",value:r,...e}},number(r,e={}){return{type:"Number",value:r,...e}},boolean(r,e={}){return{type:"Boolean",value:r,...e}},null(r={}){return{type:"Null",...r}},array(r,e={}){return{type:"Array",elements:r,...e}},element(r,e={}){return{type:"Element",value:r,...e}},object(r,e={}){return{type:"Object",members:r,...e}},member(r,e,t={}){return{type:"Member",name:r,value:e,...t}}},T4={mode:"json",ranges:!1,tokens:!1};function Q4(r,e){let t="",n=r.indexOf("\\"),o=0;for(;n>=0;){t+=r.slice(o,n);const s=r.charAt(n+1);if(Bh.has(s))t+=Bh.get(s),o=n+2;else if(s==="u"){const a=r.slice(n+2,n+6);if(a.length<4||/[^0-9a-f]/i.test(a))throw new Gi(`Invalid unicode escape \\u${a}.`,{line:e.loc.start.line,column:e.loc.start.column+n,offset:e.loc.start.offset+n});t+=String.fromCharCode(parseInt(a,16)),o=n+6}else throw new Gi(`Invalid escape \\${s}.`,{line:e.loc.start.line,column:e.loc.start.column+n,offset:e.loc.start.offset+n});n=r.indexOf("\\",o)}return t+=r.slice(o),t}function E4(r,e){switch(e.type){case"Boolean":return r==="true";case"Number":return Number(r);case"String":return Q4(r.slice(1,-1),e);default:throw new TypeError(`Unknown token type "${e.type}.`)}}function N4(r,e){e=Object.freeze({...T4,...e});const t=C4(r,{mode:e.mode,ranges:e.ranges});let n=0;function o(){return t[n++]}function s(){const b=t[n++];return b&&b.type.endsWith("Comment")?s():b}const a=e.mode==="jsonc"?s:o;function l(b,v){if(!b||b.type!==v)throw new au(b)}function c(b,v){return e.ranges?{range:[b.offset,v.offset]}:void 0}function d(b){const v=c(b.loc.start,b.loc.end),w=E4(r.slice(b.loc.start.offset,b.loc.end.offset),b),S={loc:{start:{...b.loc.start},end:{...b.loc.end}},...v};switch(b.type){case"String":return Ir.string(w,S);case"Number":return Ir.number(w,S);case"Boolean":return Ir.boolean(w,S);default:throw new TypeError(`Unknown token type ${b.type}.`)}}function u(b){const v=c(b.loc.start,b.loc.end);return Ir.null({loc:{start:{...b.loc.start},end:{...b.loc.end}},...v})}function h(b){l(b,"String");const v=d(b);b=a(),l(b,"Colon");const w=m(),S=c(v.loc.start,w.loc.end);return Ir.member(v,w,{loc:{start:{...v.loc.start},end:{...w.loc.end}},...S})}function f(b){l(b,"LBrace");const v=[];let w=a();if(w&&w.type!=="RBrace")do if(v.push(h(w)),w=a(),w.type==="Comma")w=a();else break;while(w);l(w,"RBrace");const S=c(b.loc.start,w.loc.end);return Ir.object(v,{loc:{start:{...b.loc.start},end:{...w.loc.end}},...S})}function p(b){l(b,"LBracket");const v=[];let w=a();if(w&&w.type!=="RBracket")do{const k=m(w);if(v.push(Ir.element(k,{loc:k.loc})),w=a(),w.type==="Comma")w=a();else break}while(w);l(w,"RBracket");const S=c(b.loc.start,w.loc.end);return Ir.array(v,{loc:{start:{...b.loc.start},end:{...w.loc.end}},...S})}function m(b){switch(b=b||a(),b.type){case"String":case"Boolean":case"Number":return d(b);case"Null":return u(b);case"LBrace":return f(b);case"LBracket":return p(b);default:throw new au(b)}}const g=m(),O=a();if(O)throw new au(O);const y={loc:{start:{line:1,column:1,offset:0},end:{...g.loc.end}}};return e.tokens&&(y.tokens=t),e.ranges&&(y.range=[y.loc.start.offset,y.loc.end.offset]),Ir.document(g,y)}const A4=r=>e=>r===e,V4=r=>e=>!r(e),R4=r=>Object.values(r),B4=r=>r!==void 0,Mp=r=>e=>e.keyword===r,Z4=Mp("required"),I4=Mp("anyOf"),Gw=Mp("enum"),mi=r=>r&&r.errors||[],Kw=r=>r&&R4(r.children)||[],j4=r=>e=>Kw(r).filter(V4(A4(e))),x0=r=>e=>e.reduce((t,n)=>t.concat(n),r),Jw=r=>{const e=r.split("/").slice(1);for(const t in e)e[t]=e[t].split("~1").join("/").split("~0").join("~");return e};function D4(r,e,t){const n=Jw(e),o=n.length-1;return n.reduce((s,a,l)=>{switch(s==null?void 0:s.type){case"Object":{const c=s.members.filter(h=>h.name.value===a);if(c.length!==1)throw new Error(`Couldn't find property ${a} of ${e}`);const{name:d,value:u}=c[0];return t&&l===o?d:u}case"Array":return s.elements[a];default:if(s.loc)return s}},r.body)}function q4(r){if(!r||!r.elements)return"";const e=r.elements.filter(t=>t&&t.name&&t.name.value==="type");return e.length&&e[0].value&&`:${e[0].value.value}`||""}function M4(r,e){let t="";return Jw(e).reduce((n,o)=>{switch(n==null?void 0:n.type){case"Object":{t+=`/${o}`;const s=n.members.filter(a=>a.name.value===o);if(s.length!==1)throw new Error(`Couldn't find property ${o} of ${e}`);return s[0].value}case"Array":return t+=`/${o}${q4(n.elements[o])}`,n.elements[o]}},r.body),t}class Bs{constructor(e={isIdentifierLocation:!1},{colorize:t,data:n,schema:o,jsonAst:s,jsonRaw:a}){this.options=e,this.colorize=!!(t||t===void 0),this.data=n,this.schema=o,this.jsonAst=s,this.jsonRaw=a}getChalk(){return this.colorize?chalk:new chalk.Instance({level:0})}getLocation(e=this.instancePath){const{isIdentifierLocation:t,isSkipEndLocation:n}=this.options,{loc:o}=D4(this.jsonAst,e,t);return{start:o.start,end:n?void 0:o.end}}getDecoratedPath(e=this.instancePath){return M4(this.jsonAst,e)}getCodeFrame(e,t=this.instancePath){return codeFrameColumns(this.jsonRaw,this.getLocation(t),{highlightCode:!1,message:e})}get instancePath(){return typeof this.options.instancePath<"u"?this.options.instancePath:this.options.dataPath}print(){throw new Error(`Implement the 'print' method inside ${this.constructor.name}!`)}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}}class X4 extends Bs{constructor(...e){super(...e),this.name="AdditionalPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold ADDITIONAL PROPERTY} ${e}}\n`].concat(this.getCodeFrame(n`😲 {magentaBright ${t.additionalProperty}} is not expected to be here!`,`${this.instancePath}/${t.additionalProperty}`))}getError(){const{params:e}=this.options;return{...this.getLocation(`${this.instancePath}/${e.additionalProperty}`),error:`${this.getDecoratedPath()} Property ${e.additionalProperty} is not expected to be here`,path:this.instancePath}}}class W4 extends Bs{constructor(...e){super(...e),this.name="DefaultValidationError",this.options.isSkipEndLocation=!0}print(){const{keyword:e,message:t}=this.options,n=this.getChalk();return[n`{red {bold ${e.toUpperCase()}} ${t}}\n`].concat(this.getCodeFrame(n`👈🏽 {magentaBright ${e}} ${t}`))}getError(){const{keyword:e,message:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()}: ${e} ${t}`,path:this.instancePath}}}var ad={},z4=/~/,U4=/~[01]/g;function Y4(r){switch(r){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+r)}function ek(r){return z4.test(r)?r.replace(U4,Y4):r}function L4(r,e,t){for(var n,o,s=1,a=e.length;s<a;){if(e[s]==="constructor"||e[s]==="prototype"||e[s]==="__proto__")return r;if(n=ek(e[s++]),o=a>s,typeof r[n]>"u"&&(Array.isArray(r)&&n==="-"&&(n=r.length),o&&(e[s]!==""&&e[s]<1/0||e[s]==="-"?r[n]=[]:r[n]={})),!o)break;r=r[n]}var l=r[n];return t===void 0?delete r[n]:r[n]=t,l}function Xp(r){if(typeof r=="string"){if(r=r.split("/"),r[0]==="")return r;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(r)){for(const e of r)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return r}throw new Error("Invalid JSON pointer.")}function tk(r,e){if(typeof r!="object")throw new Error("Invalid input object.");e=Xp(e);var t=e.length;if(t===1)return r;for(var n=1;n<t;){if(r=r[ek(e[n++])],t===n)return r;if(typeof r!="object"||r===null)return}}function rk(r,e,t){if(typeof r!="object")throw new Error("Invalid input object.");if(e=Xp(e),e.length===0)throw new Error("Invalid JSON pointer for set.");return L4(r,e,t)}function F4(r){var e=Xp(r);return{get:function(t){return tk(t,e)},set:function(t,n){return rk(t,e,n)}}}ad.get=tk;ad.set=rk;ad.compile=F4;const lu=[],_0=[];function H4(r,e){if(r===e)return 0;const t=r;r.length>e.length&&(r=e,e=t);let n=r.length,o=e.length;for(;n>0&&r.charCodeAt(~-n)===e.charCodeAt(~-o);)n--,o--;let s=0;for(;s<n&&r.charCodeAt(s)===e.charCodeAt(s);)s++;if(n-=s,o-=s,n===0)return o;let a,l,c,d,u=0,h=0;for(;u<n;)_0[u]=r.charCodeAt(s+u),lu[u]=++u;for(;h<o;)for(a=e.charCodeAt(s+h),c=h++,l=h,u=0;u<n;u++)d=a===_0[u]?c:c+1,c=lu[u],l=lu[u]=c>l?d>l?l+1:d:d>c?c+1:d;return l}class G4 extends Bs{constructor(...e){super(...e),this.name="EnumValidationError"}print(){const{message:e,params:{allowedValues:t}}=this.options,n=this.getChalk(),o=this.findBestMatch();return[n`{red {bold ENUM} ${e}}`,n`{red (${t.join(", ")})}\n`].concat(this.getCodeFrame(o!==null?n`👈🏽 Did you mean {magentaBright ${o}} here?`:n`👈🏽 Unexpected value, should be equal to one of the allowed values`))}getError(){const{message:e,params:t}=this.options,n=this.findBestMatch(),o=t.allowedValues.join(", "),s={...this.getLocation(),error:`${this.getDecoratedPath()} ${e}: ${o}`,path:this.instancePath};return n!==null&&(s.suggestion=`Did you mean ${n}?`),s}findBestMatch(){const{params:{allowedValues:e}}=this.options,t=this.instancePath===""?this.data:ad.get(this.data,this.instancePath);if(!t)return null;const n=e.map(o=>({value:o,weight:H4(o,t.toString())})).sort((o,s)=>o.weight>s.weight?1:o.weight<s.weight?-1:0)[0];return e.length===1||n.weight<n.value.length?n.value:null}}class K4 extends Bs{constructor(...e){super(...e),this.name="PatternValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t,propertyName:n}=this.options,o=this.getChalk();return[o`{red {bold PROPERTY} ${e}}\n`].concat(this.getCodeFrame(o`😲 must match pattern {magentaBright ${t.pattern}}`,`${this.instancePath}/${n}`))}getError(){const{params:e,propertyName:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} Property "${t}" must match pattern ${e.pattern}`,path:this.instancePath}}}class J4 extends Bs{constructor(...e){super(...e),this.name="RequiredValidationError"}getLocation(e=this.instancePath){const{start:t}=super.getLocation(e);return{start:t}}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold REQUIRED} ${e}}\n`].concat(this.getCodeFrame(n`☹️ {magentaBright ${t.missingProperty}} is missing here!`))}getError(){const{message:e}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} ${e}`,path:this.instancePath}}}class eq extends Bs{constructor(...e){super(...e),this.name="UnevaluatedPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold UNEVALUATED PROPERTY} ${e}}\n`].concat(this.getCodeFrame(n`😲 {magentaBright ${t.unevaluatedProperty}} is not expected to be here!`,`${this.instancePath}/${t.unevaluatedProperty}`))}getError(){const{params:e}=this.options;return{...this.getLocation(`${this.instancePath}/${e.unevaluatedProperty}`),error:`${this.getDecoratedPath()} Property ${e.unevaluatedProperty} is not expected to be here`,path:this.instancePath}}}const tq=/\/[\w_-]+(\/\d+)?/g;function rq(r=[]){const e={children:{}};return r.forEach(t=>{const n=typeof t.instancePath<"u"?t.instancePath:t.dataPath,o=n===""?[""]:n.match(tq);o&&o.reduce((s,a,l)=>(s.children[a]=s.children[a]||{children:{},errors:[]},l===o.length-1&&s.children[a].errors.push(t),s.children[a]),e)}),e}function nk(r,e,t){mi(r).forEach(n=>{Z4(n)&&(r.errors=[n],r.children={})}),mi(r).some(I4)&&Object.keys(r.children).length>0&&delete r.errors,r.errors&&r.errors.length&&mi(r).every(Gw)&&j4(e)(r).filter(B4).some(mi)&&delete e.children[t],Object.entries(r.children).forEach(([n,o])=>nk(o,r,n))}function ok(r,e){const t=mi(r);if(t.length&&t.every(Gw)){const n=[...new Set(x0([])(t.map(s=>s.params.allowedValues)))],o=t[0];return[new G4({...o,params:{allowedValues:n}},e)]}return x0(t.reduce((n,o)=>{switch(o.keyword){case"additionalProperties":return n.concat(new X4(o,e));case"pattern":return n.concat(new K4(o,e));case"required":return n.concat(new J4(o,e));case"unevaluatedProperties":return n.concat(new eq(o,e));default:return n.concat(new W4(o,e))}},[]))(Kw(r).map(n=>ok(n,e)))}function nq(r,e){const t=rq(r||[]);return nk(t),ok(t,e)}function oq(r,e,t,n={}){const{colorize:o=!0,format:s="cli",indent:a=null,json:l=null}=n,c=l||JSON.stringify(e,null,a),d=N4(c),u=p=>p.print().join(`
|
|
234
|
+
`),h=p=>p.getError(),f=nq(t,{colorize:o,data:e,schema:r,jsonAst:d,jsonRaw:c});return s==="cli"?f.map(u).join(`
|
|
235
|
+
|
|
236
|
+
`):f.map(h)}function gi(r,e){return typeof e=="string"?[{start:{line:1,column:1,offset:0},error:e,path:""}]:oq(r,null,e,{format:"js",indent:2,colorize:!1}).map(t=>(t.error=t.error.trim(),t))}function sq(r){try{return Yw(r),{valid:!0}}catch(e){return{valid:!1,errors:gi(r,e.message)}}}class Wp{constructor(){cn(this,"version"),cn(this,"ajvValidators",{}),cn(this,"externalRefs",{}),cn(this,"errors"),cn(this,"specificationVersion"),cn(this,"specificationType"),cn(this,"specification")}resolveReferences(e){return Yw(e.find(t=>t.isEntrypoint===!0).specification)}async validate(e){var t;const n=e.find(s=>s.isEntrypoint),o=n==null?void 0:n.specification;this.specification=o,(t=this.specification)!=null&&t.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(o==null)return{valid:!1,errors:gi(n,Th.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(o[zj]=this.externalRefs);const{version:s,specificationType:a,specificationVersion:l}=Uw(o);if(this.version=s,this.specificationVersion=l,this.specificationType=a,!s)return{valid:!1,errors:gi(n,Th.OPENAPI_VERSION_NOT_SUPPORTED)};const c=await this.getAjvValidator(s);return c(o)?sq(n.specification):c.errors&&c.errors.length>0?{valid:!1,errors:gi(n,c.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:gi(n,s.message??s)}}}async getAjvValidator(e){if(this.ajvValidators[e])return this.ajvValidators[e];const t=await tV(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${e}/schema.json`),n=Wj[t.$schema],o=new n({strict:!1});return FZ(o),e==="3.1"&&o.addFormat("media-range",!0),this.ajvValidators[e]=o.compile(t)}}cn(Wp,"supportedVersions",H1);function iq(){return{load:aq}}function aq(r){const e=Ww(r);return{get:()=>e,details:()=>cd(e),filter:t=>Oa(e,t),upgrade:()=>sk(e),validate:()=>zp(e),resolve:()=>ld(e),toJson:()=>ya(e),toYaml:()=>ba(e)}}function sk(r){const e=l4(r);return{get:()=>e,details:()=>cd(e),filter:t=>Oa(e,t),validate:()=>zp(e),resolve:()=>ld(e),toJson:()=>ya(e),toYaml:()=>ba(e)}}async function zp(r){return{...await c4(r),filter:e=>Oa(r,e),get:()=>r,details:()=>cd(r),resolve:()=>ld(r),toJson:()=>ya(r),toYaml:()=>ba(r)}}async function ld(r){return{...await n4(r),filter:e=>Oa(r,e),toJson:()=>ya(r),toYaml:()=>ba(r)}}function Oa(r,e){const t=Uj(r,e);return{get:()=>t,details:()=>cd(t),filter:()=>Oa(t,e),upgrade:()=>sk(t),validate:()=>zp(t),resolve:()=>ld(t),toJson:()=>ya(t),toYaml:()=>ba(t)}}function cd(r){return Uw(r)}function ya(r){return o4(r)}function ba(r){return s4(r)}const ik=r=>new Promise(async(e,t)=>{var n;try{const{schema:o,errors:s}=await iq().load(r).resolve();if(s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
|
|
237
|
+
`,`Scalar OpenAPI Parser Warning:
|
|
238
|
+
`,s),o===void 0){t(((n=s==null?void 0:s[0])==null?void 0:n.error)??"Failed to parse the OpenAPI file.");return}e(lq(structuredClone(o)))}catch(o){t(o)}}),lq=r=>{r.tags||(r.tags=[]),r.paths||(r.paths={});const e={};Object.keys(r.webhooks??{}).forEach(n=>{var o;Object.keys(((o=r.webhooks)==null?void 0:o[n])??{}).forEach(s=>{var l,c,d;const a=((l=r.webhooks)==null?void 0:l[n])[s];e[n]===void 0&&(e[n]={}),e[n][s]={httpVerb:s,path:n,operationId:(a==null?void 0:a.operationId)||n,name:(a==null?void 0:a.summary)||n||"",description:(a==null?void 0:a.description)||"",pathParameters:(d=(c=r.paths)==null?void 0:c[n])==null?void 0:d.parameters,information:{...a}}})}),Object.keys(r.paths).forEach(n=>{Object.keys(r.paths[n]).filter(s=>U0.includes(s.toUpperCase())).forEach(s=>{var c,d,u,h,f,p;const a=r.paths[n][s],l={httpVerb:s,path:n,operationId:a.operationId||n,name:a.summary||n||"",description:a.description||"",information:{...a},pathParameters:(d=(c=r.paths)==null?void 0:c[n])==null?void 0:d.parameters};if(!a.tags||a.tags.length===0){(u=r.tags)!=null&&u.find(g=>g.name==="default")||(h=r.tags)==null||h.push({name:"default",description:"",operations:[]});const m=(f=r.tags)==null?void 0:f.findIndex(g=>g.name==="default");m>=0&&((p=r.tags[m])==null||p.operations.push(l))}else a.tags.forEach(m=>{var y,b,v;const g=(y=r.tags)==null?void 0:y.findIndex(w=>w.name===m);g===-1&&((b=r.tags)==null||b.push({name:m,description:""}));const O=g!==-1?g:r.tags.length-1;typeof((v=r.tags[O])==null?void 0:v.operations)>"u"&&(r.tags[O].operations=[]),r.tags[O].operations.push(l)})})});const t={...r,webhooks:e};return cq(t)},cq=r=>{var e;return{...r,tags:(e=r.tags)==null?void 0:e.filter(t=>{var n;return((n=t.operations)==null?void 0:n.length)>0})}},uc=r=>new Promise(e=>setTimeout(e,r)),dq=Symbol("downloadSpec"),Up=Xe.useEventBus(dq);function ak(r){const e=Gl(r),t=e?new Blob([r],{type:"application/json"}):new Blob([r],{type:"application/x-yaml"}),n=URL.createObjectURL(t),o=document.createElement("a");o.href=n,o.download=e?"spec.json":"spec.yaml",o.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(n),o.remove()},100)}function lk(r,e=1){const t=new RegExp(`^(?=#{${e}} )`,"m");return r.split(t).map(n=>n.trim()).filter(Boolean)}const ck={toast:r=>null};function uq(r){ck.toast=r}function dk(){return{initializeToasts:uq,toast:ck.toast}}const Zs=()=>{const{toast:r}=dk();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{r("Copied to the clipboard.","info")})}}},ln=i.ref(!1);function hq(r){var o;const e=()=>{var a,l;const s=typeof window<"u"?(a=window.localStorage)==null?void 0:a.getItem("isDark"):null;return typeof s=="string"?!!JSON.parse(s):!!(typeof window<"u"&&((l=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&l.matches))},t=()=>{var s;ln.value=!ln.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(ln.value)))};function n(s){var a;ln.value=s,typeof window<"u"&&((a=window==null?void 0:window.localStorage)==null||a.setItem("isDark",JSON.stringify(ln.value)))}return ln.value=(typeof window>"u"?null:JSON.parse(((o=window.localStorage)==null?void 0:o.getItem("isDark"))||"null"))??r??e(),i.watch(ln,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:ln,toggleDarkMode:t,setDarkMode:n}}const Yp=i.ref(""),Zh=i.ref(!1),fq=r=>r.slug?`description/${r.slug}`:"",pq=(r,e)=>{if(!r)return"webhooks";const t=gc.slug(r),n=encodeURIComponent(t);return`webhook/${e}/${n}`},mq=r=>{if(!r)return"models";const e=gc.slug(r);return`model/${encodeURIComponent(e)}`},gq=(r,e)=>`${uk(e)}/${r.httpVerb}${r.path}`,uk=({name:r})=>{const e=gc.slug(r);return`tag/${encodeURIComponent(e)}`},Oq=(r=Yp.value)=>{var n;const e=(n=r.match(/(tag\/[^/]+)/))==null?void 0:n[0],t=r.startsWith("model")?"models":"";return e??t},C0=()=>Yp.value=window.location.hash.replace(/^#/,""),yq=()=>i.onMounted(async()=>{C0(),window.onhashchange=async()=>{Zh.value=!1,C0(),Zf(window.location.hash.replace(/^#/,"")),await uc(100),Zh.value=!0}}),kt=()=>({hash:Yp,getWebhookId:pq,getModelId:mq,getHeadingId:fq,getOperationId:gq,getSectionId:Oq,getTagId:uk,isIntersectionEnabled:Zh,enableHashListener:yq});function Lp(r){return{parameterMap:i.computed(()=>{var o;const t=((o=r.operation.information)==null?void 0:o.parameters)??[],n={path:[],query:[],header:[],body:[],formData:[]};return r.operation.pathParameters&&r.operation.pathParameters.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),t&&t.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),n})}}function bq(r){const e=i.ref(null);return i.onMounted(()=>{e.value=r()}),e}function Fp(r){return{responses:i.computed(()=>{if(!r.information)return[];const{responses:t}=r.information,n=[];return t&&Object.keys(t).forEach(o=>{n.push({name:o,description:t[o].description})}),n})}}const{getHeadingId:vq,getModelId:T0,getOperationId:Q0,getSectionId:wq,getTagId:hk,getWebhookId:cu,hash:kq}=kt(),He=i.ref(void 0),hc=i.reactive({});function Sq(r){hc[r]=!hc[r]}function du(r,e){hc[r]=e}const fk=i.ref([]),$q=async r=>{const e=await Ui(r),t=Nf(e);return e.filter(n=>n.depth===t)},pk=i.computed(()=>{var d,u,h,f,p,m,g,O,y,b,v,w,S;const{state:r}=Oc(),e={},t=fk.value.map(k=>({id:vq(k),title:k.value.toUpperCase(),show:!r.showApiClient})),n=(u=(d=He.value)==null?void 0:d.tags)==null?void 0:u[0],s=n&&(k=>(k==null?void 0:k.length)!==1||k[0].name!=="default"||k[0].description!=="")((h=He.value)==null?void 0:h.tags)&&((f=n.operations)==null?void 0:f.length)>0?(m=(p=He.value)==null?void 0:p.tags)==null?void 0:m.map(k=>{var $;return{id:hk(k),title:k.name.toUpperCase(),show:!0,children:($=k.operations)==null?void 0:$.map(C=>{var q;const E=Q0(C,k),B=C.name??C.path;return e[E]=B,{id:E,title:B,httpVerb:C.httpVerb,deprecated:((q=C.information)==null?void 0:q.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&tc(C)}}})}}):(g=n==null?void 0:n.operations)==null?void 0:g.map(k=>{var E;const $=Q0(k,n),C=k.name??k.path;return e[$]=C,{id:$,title:C,httpVerb:k.httpVerb,deprecated:((E=k.information)==null?void 0:E.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&tc(k)}}}),a=(O=He.value)!=null&&O["x-tagGroups"]?(b=(y=He.value)==null?void 0:y["x-tagGroups"])==null?void 0:b.map(k=>{const $=[];return k.tags.map(E=>{const B=s==null?void 0:s.find(q=>q.title===E.toUpperCase());B&&$.push(B)}),{id:k.name,title:k.name.toUpperCase(),children:$,show:!0,isGroup:!0}}):void 0,l=l1(He.value)?[{id:cu(),title:"WEBHOOKS",show:!r.showApiClient,children:Object.keys(((v=He.value)==null?void 0:v.webhooks)??{}).map(k=>{var C,E;const $=cu(k);return e[$]=k,Object.keys(((E=(C=He.value)==null?void 0:C.webhooks)==null?void 0:E[k])??{}).map(B=>{var q,R,K;return{id:cu(k,B),title:(K=(R=(q=He.value)==null?void 0:q.webhooks)==null?void 0:R[k][B])==null?void 0:K.name,httpVerb:B,show:!r.showApiClient}})}).flat()}]:[],c=Bf(He.value)?[{id:T0(),title:"MODELS",show:!r.showApiClient,children:Object.keys(((S=(w=He.value)==null?void 0:w.components)==null?void 0:S.schemas)??{}).map(k=>{var C,E,B;const $=T0(k);return e[$]=k,{id:$,title:((B=(E=(C=He==null?void 0:He.value)==null?void 0:C.components)==null?void 0:E.schemas)==null?void 0:B[k]).title??k,show:!r.showApiClient}})}]:[];return{entries:[...t,...a??s??[],...a?[]:l,...a?[]:c],titles:e}}),Pq=i.computed(()=>{var r,e;return((e=(r=pk.value)==null?void 0:r.titles)==null?void 0:e[kq.value])??""});function en(r){return r!=null&&r.parsedSpec&&(He.value=r.parsedSpec,i.watch(()=>{var e,t;return(t=(e=He.value)==null?void 0:e.tags)==null?void 0:t.length},()=>{var e,t;if(window!=null&&window.location.hash){const n=wq(window.location.hash);n||du(n,!0)}else{const n=(t=(e=He.value)==null?void 0:e.tags)==null?void 0:t[0];n&&du(hk(n),!0)}}),i.watch(()=>{var e,t;return(t=(e=He.value)==null?void 0:e.info)==null?void 0:t.description},async()=>{var t,n;const e=(n=(t=He.value)==null?void 0:t.info)==null?void 0:n.description;return e?fk.value=await $q(e):[]})),{breadcrumb:Pq,items:pk,collapsedSidebarItems:hc,toggleCollapsedSidebarItem:Sq,setCollapsedSidebarItem:du}}const xq=["unirest"],Ih=i.ref([...xq]),_q=j0.availableTargets().map(r=>(r.key==="node"&&(r.default="undici",r.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"})),r.clients=r.clients.filter(e=>!Ih.value.includes(e.key)),r)).filter(r=>r.clients.length);function va(){return{availableTargets:i.computed(()=>_q),excludedClients:i.readonly(Ih),setExcludedClients:e=>Ih.value=e}}const E0=()=>({info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},externalDocs:{description:"",url:""},components:{schemas:{},securitySchemes:{}},servers:[],tags:[]}),Cq=async({url:r,content:e},t)=>{if(r)return c1(r)?await wO(r,t):await wO(r);const n=typeof e=="function"?e():e;if(typeof n=="string")return n;if(typeof n=="object")return JSON.stringify(n)};function mk({specConfig:r,proxy:e}){const t=i.ref(""),n=i.reactive(E0()),o=i.ref(null);function s(a){return a?ik(a).then(l=>{o.value=null,Object.assign(n,{servers:[],...l})}).catch(l=>{o.value=l.toString()}):Object.assign(n,E0())}return i.watch(()=>i.toValue(r),async a=>{var l;if(a){const c=(l=await Cq(a,i.toValue(e)))==null?void 0:l.trim();typeof c=="string"&&(t.value=c)}},{immediate:!0,deep:!0}),i.watch(t,()=>{s(t.value)}),{rawSpec:t,parsedSpec:n,specErrors:o}}const Tq=["id"],Qq={key:0,class:"sidebar-heading-chevron"},Eq=["href"],Nq={class:"sidebar-heading-link-title"},Aq={key:1,class:"sidebar-heading-link-method"},Vq={key:1,class:"action-menu"},Rq=i.defineComponent({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(r,{emit:e}){const t=r,n=e,o=async()=>{var s,a;t.hasChildren&&n("toggleOpen"),(a=(s=t.item)==null?void 0:s.select)==null||a.call(s)};return(s,a)=>{var l,c;return i.openBlock(),i.createElementBlock("li",{id:s.id,class:"sidebar-group-item"},[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-heading",{"sidebar-group-item__folder":s.hasChildren,active_page:s.isActive,deprecated:s.item.deprecated??!1}]),onClick:o},[s.hasChildren?(i.openBlock(),i.createElementBlock("p",Qq,[i.createVNode(i.unref(Tf),{class:"toggle-nested-icon",icon:s.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"sm",onClick:i.withModifiers(o,["stop"])},null,8,["icon"]),i.createTextVNode(" ")])):i.createCommentVNode("",!0),i.createElementVNode("a",{class:"sidebar-heading-link",href:`#${s.item.id}`},[(c=(l=s.item)==null?void 0:l.icon)!=null&&c.src?(i.openBlock(),i.createBlock(i.unref(ze),{key:0,class:"sidebar-icon",icon:s.item.icon.src},null,8,["icon"])):i.createCommentVNode("",!0),i.createElementVNode("p",Nq,i.toDisplayString(s.item.title),1),s.item.httpVerb?(i.openBlock(),i.createElementBlock("p",Aq,[i.createTextVNode(" "),i.createVNode(i.unref(An),{as:"div",class:"sidebar-heading-type",method:s.item.httpVerb,property:"--method-color",short:""},null,8,["method"])])):i.createCommentVNode("",!0)],8,Eq)],2),s.open?i.renderSlot(s.$slots,"default",{key:0},void 0,!0):i.createCommentVNode("",!0),s.$slots["action-menu"]?(i.openBlock(),i.createElementBlock("div",Vq,[i.renderSlot(s.$slots,"action-menu",{},void 0,!0)])):i.createCommentVNode("",!0)],8,Tq)}}}),ol=X(Rq,[["__scopeId","data-v-dd9ebffb"]]),Bq=i.defineComponent({__name:"SidebarGroup",props:{level:{}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("ul",{class:"sidebar-group sidebar-indent-nested",style:i.normalizeStyle({"--sidebar-level":e.level})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),uu=X(Bq,[["__scopeId","data-v-3fac4969"]]),Zq={class:"sidebar"},Iq={class:"sidebar-group-title"},jq=-160,Dq=i.defineComponent({__name:"Sidebar",props:{parsedSpec:{}},setup(r){const e=r,{hash:t,isIntersectionEnabled:n}=kt(),{items:o,toggleCollapsedSidebarItem:s,collapsedSidebarItems:a}=en({parsedSpec:e.parsedSpec}),l=i.ref(null),c=i.ref(!0);i.watch(t,u=>{!n.value||c.value||d(u)});const d=u=>{var p,m,g,O;const h=document.getElementById(`sidebar-${u}`);if(!h||!l.value)return;let f=jq;h.getAttribute("data-sidebar-type")==="heading"?f+=h.offsetTop+((p=h.getElementsByClassName("sidebar-heading"))==null?void 0:p[0]).offsetHeight:f+=h.offsetTop+(((m=h.parentElement)==null?void 0:m.offsetTop)??0)+(((O=(g=h.parentElement)==null?void 0:g.parentElement)==null?void 0:O.offsetTop)??0),l.value.scrollTo({top:f,behavior:"smooth"})};return i.onMounted(()=>{setTimeout(()=>{d(window.location.hash.replace(/^#/,""))},500),c.value=!1}),(u,h)=>(i.openBlock(),i.createElementBlock("div",Zq,[i.renderSlot(u.$slots,"sidebar-start",{},void 0,!0),i.createElementVNode("div",{ref_key:"scrollerEl",ref:l,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[i.createVNode(uu,{level:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o).entries,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f.id},[f.isGroup?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("li",Iq,i.toDisplayString(f.title),1),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,p=>(i.openBlock(),i.createBlock(ol,{key:p.id,id:`sidebar-${p.id}`,"data-sidebar-type":"heading",hasChildren:p.children&&p.children.length>0,isActive:i.unref(t)===p.id,item:{id:p.id,title:p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1},open:i.unref(a)[p.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(p.id),await i.unref(uc)(100),c.value=!1}},{default:i.withCtx(()=>{var m;return[p.children&&((m=p.children)==null?void 0:m.length)>0?(i.openBlock(),i.createBlock(uu,{key:0,level:2},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.children,g=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:g.id},[f.show?(i.openBlock(),i.createBlock(ol,{key:0,id:`sidebar-${g.id}`,isActive:i.unref(t)===g.id,item:{id:g.id,title:g.title,select:g.select,httpVerb:g.httpVerb,deprecated:g.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[f.show?(i.openBlock(),i.createBlock(ol,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:i.unref(t)===f.id,item:{id:f.id,title:f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:i.unref(a)[f.id]??!1,onToggleOpen:async()=>{c.value=!0,i.unref(s)(f.id),await i.unref(uc)(100),c.value=!1}},{default:i.withCtx(()=>{var p;return[f.children&&((p=f.children)==null?void 0:p.length)>0?(i.openBlock(),i.createBlock(uu,{key:0,level:1},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.children,m=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:m.id},[f.show?(i.openBlock(),i.createBlock(ol,{key:0,id:`sidebar-${m.id}`,isActive:i.unref(t)===m.id,item:{id:m.id,title:m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):i.createCommentVNode("",!0)],64))),128))]),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):i.createCommentVNode("",!0)],64))],64))),128))]),_:1})],512),i.renderSlot(u.$slots,"sidebar-end",{},void 0,!0)]))}}),fc=X(Dq,[["__scopeId","data-v-2ab63047"]]),qq={key:0,class:"api-client-drawer"},Mq={class:"api-client-container"},Xq={class:"scalar-api-client-height"},Wq={key:0,class:"t-doc__sidebar"},zq={key:1,class:"t-doc__sidebar"},Uq=i.defineComponent({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},tabMode:{type:Boolean},activeTab:{},proxyUrl:{}},emits:["toggleDarkMode"],setup(r){const{hideApiClient:e,state:t}=Oc(),n=Xe.useMediaQuery("(max-width: 1000px)");return(o,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(t).showApiClient||o.overloadShow?(i.openBlock(),i.createElementBlock("div",qq,[i.createElementVNode("div",Mq,[i.renderSlot(o.$slots,"header",{},void 0,!0),i.createElementVNode("div",Xq,[o.tabMode?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.activeTab==="sidebar"?(i.openBlock(),i.createElementBlock("div",Wq,[i.withDirectives(i.createVNode(i.unref(fc),{parsedSpec:o.parsedSpec},null,8,["parsedSpec"]),[[i.vShow,!i.unref(n)]])])):i.renderSlot(o.$slots,"active-tab",{key:1},void 0,!0)],64)):(i.openBlock(),i.createElementBlock("div",zq,[i.withDirectives(i.createVNode(i.unref(fc),{parsedSpec:o.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(o.$slots,"sidebar-start",{},void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(o.$slots,"sidebar-end",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[i.vShow,!i.unref(n)]])])),i.createVNode(i.unref(j5),{proxyUrl:o.proxyUrl,theme:"none",onEscapeKeyPress:i.unref(e)},null,8,["proxyUrl","onEscapeKeyPress"])])])])):i.createCommentVNode("",!0),i.unref(t).showApiClient?(i.openBlock(),i.createElementBlock("div",{key:1,class:"api-client-drawer-exit",onClick:s[0]||(s[0]=(...a)=>i.unref(e)&&i.unref(e)(...a))})):i.createCommentVNode("",!0)],64))}}),gk=X(Uq,[["__scopeId","data-v-38835d0d"]]),Yq=i.defineComponent({__name:"CustomToaster",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(D0.Toaster),{toastOptions:{className:"toaster"}}))}}),Lq={},Fq={class:"scalar-card"};function Hq(r,e){return i.openBlock(),i.createElementBlock("div",Fq,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Vn=X(Lq,[["render",Hq],["__scopeId","data-v-f9d4a1f3"]]),Gq=i.defineComponent({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["scalar-card-content",{"scalar-card--muted":e.muted,"scalar-card--contrast":e.contrast,"scalar-card--frameless":e.frameless,"scalar-card--transparent":e.transparent,"scalar-card--borderless":e.borderless}])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),hr=X(Gq,[["__scopeId","data-v-47a41f7c"]]),Kq={class:"scalar-card-header-slots"},Jq={class:"scalar-card-header-slot scalar-card-header-title"},eM={class:"scalar-card-header-slot scalar-card-header-actions"},tM=i.defineComponent({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(hr,i.mergeProps(e,{class:"scalar-card-header"}),{default:i.withCtx(()=>[i.createElementVNode("div",Kq,[i.createElementVNode("div",Jq,[i.renderSlot(t.$slots,"default",{},void 0,!0)]),i.createElementVNode("div",eM,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),Rn=X(tM,[["__scopeId","data-v-403cccd4"]]),rM=i.defineComponent({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(i.openBlock(),i.createBlock(hr,i.normalizeProps(i.guardReactiveProps(e)),{default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16))}}),wa=X(rM,[["__scopeId","data-v-c179b8a4"]]),nM=i.defineComponent({__name:"CardTabHeader",emits:["change"],setup(r,{emit:e}){const t=e,n=o=>{t("change",o)};return(o,s)=>(i.openBlock(),i.createBlock(Rn,{class:"scalar-card-header-tabs"},{actions:i.withCtx(()=>[i.renderSlot(o.$slots,"actions",{},void 0,!0)]),default:i.withCtx(()=>[i.createVNode(i.unref(we.TabGroup),{onChange:n},{default:i.withCtx(()=>[i.createVNode(i.unref(we.TabList),{class:"tab-list custom-scroll"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),Ok=X(nM,[["__scopeId","data-v-6a91b57c"]]),oM=i.defineComponent({__name:"CardTab",setup(r){return(e,t)=>(i.openBlock(),i.createBlock(i.unref(we.Tab),{as:"template"},{default:i.withCtx(({selected:n})=>[i.createElementVNode("button",{class:i.normalizeClass({tab:!0,"tab-selected":n}),type:"button"},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),yk=X(oM,[["__scopeId","data-v-d044c876"]]),sM=["innerHTML"],iM=i.defineComponent({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(r){const e=r,t=i.ref(""),n=e.withImages?[]:["img","picture"];return i.watch(()=>e.value,async()=>{var o;I0.unified().use(Z0).use(nS).use(oS,{allowDangerousHtml:!0}).use(tS).use(hd,{...hd.defaultSchema,tagNames:(o=hd.defaultSchema.tagNames)==null?void 0:o.filter(s=>!n.includes(s))}).use(eS,{detect:!0}).use(Kk,{target:"_blank"}).use(Jk).use(rS).process(e.value).then(s=>t.value=String(s))},{immediate:!0}),(o,s)=>(i.openBlock(),i.createElementBlock("div",{class:"markdown",innerHTML:t.value},null,8,sM))}}),Kt=X(iM,[["__scopeId","data-v-4d274567"]]),aM={},lM={class:"card-form"};function cM(r,e){return i.openBlock(),i.createElementBlock("div",lM,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const N0=X(aM,[["render",cM],["__scopeId","data-v-d0caa558"]]),dM=i.defineComponent({__name:"CardFormButton",setup(r,{expose:e}){const t=i.ref();return e({el:t}),(n,o)=>(i.openBlock(),i.createElementBlock("button",{ref_key:"el",ref:t,class:"card-form-button",type:"button"},[i.renderSlot(n.$slots,"default",{},void 0,!0)],512))}}),jh=X(dM,[["__scopeId","data-v-05ca8905"]]),uM={},hM={class:"card-form-group"};function fM(r,e){return i.openBlock(),i.createElementBlock("div",hM,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const A0=X(uM,[["render",fM],["__scopeId","data-v-cadb0c16"]]),pM={class:"card-form-input"},mM=["for"],gM=["id","type"],OM=i.defineComponent({inheritAttrs:!1,__name:"CardFormTextInput",props:{id:{},type:{}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",pM,[i.createElementVNode("label",{for:e.id},[i.renderSlot(e.$slots,"default",{},void 0,!0)],8,mM),i.createElementVNode("input",i.mergeProps(e.$attrs,{id:e.id,autocomplete:"off",spellcheck:"false",type:e.type??"text"}),null,16,gM)]))}}),No=X(OM,[["__scopeId","data-v-88939d2d"]]),yM={},bM={class:"badge"};function vM(r,e){return i.openBlock(),i.createElementBlock("div",bM,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const ms=X(yM,[["render",vM],["__scopeId","data-v-08c68ac3"]]),wM=r=>(i.pushScopeId("data-v-9ad9d97a"),r=r(),i.popScopeId(),r),kM={class:"scopes-label"},SM=wM(()=>i.createElementVNode("em",null,"|",-1)),$M=["checked"],PM={class:"dropdown-item-title"},xM={class:"dropdown-item-description"},_M=i.defineComponent({__name:"SecuritySchemeScopes",props:{scopes:{},selected:{}},emits:["update:selected"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(),s=i.ref(),{floatingStyles:a}=Ls.useFloating(o,s,{placement:"bottom-end",whileElementsMounted:Ls.autoUpdate,middleware:[Ls.offset(5),Ls.flip(),Ls.shift()]}),l=i.computed({get:()=>t.selected,set:c=>n("update:selected",c)});return(c,d)=>(i.openBlock(),i.createBlock(i.unref(we.Listbox),{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=u=>l.value=u),multiple:""},{default:i.withCtx(({open:u})=>[i.createElementVNode("div",{ref_key:"trigger",ref:o,class:i.normalizeClass(["wrapper",{"wrapper-open":u}])},[i.createVNode(i.unref(we.ListboxButton),{as:jh},{default:i.withCtx(()=>[i.createElementVNode("div",kM,[i.createVNode(i.unref(ze),{icon:u?"ChevronUp":"ChevronDown",size:"sm"},null,8,["icon"]),i.createTextVNode(" Scopes "),i.createVNode(i.unref(ms),{class:"scopes-label-badge"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(l.value.length),1),SM,i.createTextVNode(i.toDisplayString(Object.entries(c.scopes).length),1)]),_:1})])]),_:2},1024)],2),(i.openBlock(),i.createBlock(i.Teleport,{to:"body"},[i.createVNode(i.unref(W0),null,{default:i.withCtx(({styles:h})=>[i.createElementVNode("div",{ref_key:"dropdown",ref:s,class:i.normalizeClass(["floating",h]),style:i.normalizeStyle(i.unref(a))},[i.createVNode(i.unref(we.ListboxOptions),{as:"dl",class:"dropdown"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(c.scopes),([f,p])=>(i.openBlock(),i.createBlock(i.unref(we.ListboxOption),{key:f,as:"div",class:"dropdown-item",value:f},{default:i.withCtx(({selected:m})=>[i.createElementVNode("input",{checked:m,class:"dropdown-item-check",tabindex:"-1",type:"checkbox"},null,8,$M),i.createElementVNode("dt",PM,i.toDisplayString(f),1),i.createElementVNode("dd",xM,i.toDisplayString(p),1)]),_:2},1032,["value"]))),128))]),_:1})],6)]),_:1})]))]),_:1},8,["modelValue"]))}}),CM=X(_M,[["__scopeId","data-v-9ad9d97a"]]),TM={class:"description"},QM=i.defineComponent({__name:"SecurityScheme",props:{value:{}},setup(r){const{authentication:e,setAuthentication:t}=Jr(),n=h=>{t({apiKey:{...e.apiKey,token:h.target.value}})},o=h=>{t({http:{...e.http,basic:{...e.http.basic,username:h.target.value}}})},s=h=>{t({http:{...e.http,basic:{...e.http.basic,password:h.target.value}}})},a=h=>{t({http:{...e.http,bearer:{...e.http.bearer,token:h.target.value}}})},l=h=>{t({oAuth2:{...e.oAuth2,clientId:h.target.value}})},c=h=>{const f=e.oAuth2.scopes.join(" "),p=(Math.random()+1).toString(36).substring(7),m=new URL(h.authorizationUrl);return t({oAuth2:{...e.oAuth2,state:p}}),m.searchParams.set("response_type","token"),m.searchParams.set("client_id",e.oAuth2.clientId),m.searchParams.set("redirect_uri",window.location.href),m.searchParams.set("scope",f),m.searchParams.set("state",p),m.toString()},d=i.computed({get:()=>e.oAuth2.scopes,set:h=>t({oAuth2:{...e.oAuth2,scopes:h}})}),u=h=>{const p=window.open(h,"openAuth2Window","left=100,top=100,width=800,height=600");if(p){const m=setInterval(function(){var g;try{const y=new URLSearchParams(p.location.href).get("access_token");if(p.closed||y){clearInterval(m);const b=(g=p.location.href.match(/state=([^&]*)/))==null?void 0:g[1];y&&e.oAuth2.state===b&&t({oAuth2:{...e.oAuth2,accessToken:y}}),p.close()}}catch{}},200)}};return(h,f)=>{var p,m;return i.openBlock(),i.createElementBlock(i.Fragment,null,[h.value&&((p=h.value)!=null&&p.type)?(i.openBlock(),i.createBlock(N0,{key:0},{default:i.withCtx(()=>[h.value.type==="apiKey"?(i.openBlock(),i.createBlock(No,{key:0,id:`security-scheme-${h.value.name}`,placeholder:"Token",type:"password",value:i.unref(e).apiKey.token,onInput:n},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(h.value.in.charAt(0).toUpperCase()+h.value.in.slice(1))+" API Key ",1)]),_:1},8,["id","value"])):h.value.type==="http"||h.value.type==="basic"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[h.value.type==="basic"||h.value.scheme==="basic"?(i.openBlock(),i.createBlock(A0,{key:0},{default:i.withCtx(()=>[i.createVNode(No,{id:"http.basic.username",placeholder:"Username",value:i.unref(e).http.basic.username,onInput:o},{default:i.withCtx(()=>[i.createTextVNode(" Username ")]),_:1},8,["value"]),i.createVNode(No,{id:"http.basic.password",placeholder:"Password",type:"password",value:i.unref(e).http.basic.password,onInput:s},{default:i.withCtx(()=>[i.createTextVNode(" Password ")]),_:1},8,["value"])]),_:1})):h.value.type==="http"&&h.value.scheme==="bearer"?(i.openBlock(),i.createBlock(No,{key:1,id:"http.bearer.token",placeholder:"Token",type:"password",value:i.unref(e).http.bearer.token,onInput:a},{default:i.withCtx(()=>[i.createTextVNode(" Bearer Token ")]),_:1},8,["value"])):i.createCommentVNode("",!0)],64)):h.value.type.toLowerCase()==="oauth2"&&h.value.flows&&h.value.flows.implicit?(i.openBlock(),i.createBlock(A0,{key:2},{default:i.withCtx(()=>[i.unref(e).oAuth2.accessToken?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(No,{id:"oAuth2.accessToken",placeholder:"xxxxx",type:"password",value:i.unref(e).oAuth2.accessToken},{default:i.withCtx(()=>[i.createTextVNode(" Access Token ")]),_:1},8,["value"]),i.createVNode(jh,{onClick:f[0]||(f[0]=()=>i.unref(t)({oAuth2:{...i.unref(e).oAuth2,accessToken:"",state:""}}))},{default:i.withCtx(()=>[i.createTextVNode(" Reset ")]),_:1})],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createVNode(No,{id:"oAuth2.clientId",placeholder:"12345",type:"text",value:i.unref(e).oAuth2.clientId,onInput:l},{default:i.withCtx(()=>[i.createTextVNode(" Client ID ")]),_:1},8,["value"]),h.value!==void 0?(i.openBlock(),i.createBlock(CM,{key:0,selected:d.value,"onUpdate:selected":f[1]||(f[1]=g=>d.value=g),scopes:h.value.flows.implicit.scopes},null,8,["selected","scopes"])):i.createCommentVNode("",!0),i.createVNode(jh,{onClick:f[2]||(f[2]=()=>{var g;return u(c((g=h.value)==null?void 0:g.flows.implicit))})},{default:i.withCtx(()=>[i.createTextVNode(" Authorize ")]),_:1})],64))]),_:1})):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0),(m=h.value)!=null&&m.description?(i.openBlock(),i.createBlock(N0,{key:1},{default:i.withCtx(()=>{var g;return[i.createElementVNode("div",TM,[i.createVNode(i.unref(Kt),{value:(g=h.value)==null?void 0:g.description},null,8,["value"])])]}),_:1})):i.createCommentVNode("",!0)],64)}}}),EM=X(QM,[["__scopeId","data-v-41c7b945"]]),NM={key:1,class:"security-scheme-selector"},AM=["value"],VM=i.defineComponent({__name:"SecuritySchemeSelector",props:{value:{}},emits:["input"],setup(r,{emit:e}){const t=r,n=e,{authentication:o,setAuthentication:s}=Jr(),a=O=>{l(O.target.value)};i.onMounted(()=>{o.securitySchemeKey||l(Object.keys(t.value??{})[0]??null)});const l=O=>{s({securitySchemeKey:O}),n("input",O)},c=O=>!(O!=null&&O.type),d=O=>O.type.toLowerCase()==="apikey",u=O=>O.type==="http"&&O.scheme.toLowerCase()==="basic"||O.type.toLowerCase()==="basic",h=O=>O.type==="http"&&O.scheme.toLowerCase()==="bearer",f=O=>O.type.toLowerCase()==="oauth2",p=(O,y)=>`${y} (${m(O)})`,m=O=>c(O)?"No Authentication":d(O)?"API Key":u(O)?"Basic Authentication":h(O)?"Bearer Authentication":f(O)?"OAuth 2.0":`${O.type} (not yet supported)`,g=i.computed(()=>Object.keys(t.value??{}));return(O,y)=>{var b,v;return g.value.length===1?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(p((b=O.value)==null?void 0:b[g.value[0]],g.value[0])),1)],64)):g.value.length>1?(i.openBlock(),i.createElementBlock("div",NM,[i.createElementVNode("span",null,i.toDisplayString(i.unref(o).securitySchemeKey?p((v=O.value)==null?void 0:v[i.unref(o).securitySchemeKey],i.unref(o).securitySchemeKey):""),1),i.createVNode(i.unref(ze),{icon:"ChevronDown"}),i.createElementVNode("select",{onInput:a,onValue:y[0]||(y[0]=(...w)=>i.unref(o).securitySchemeKey&&i.unref(o).securitySchemeKey(...w))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(g.value,w=>{var S;return i.openBlock(),i.createElementBlock("option",{key:w,value:w??null},i.toDisplayString(p((S=O.value)==null?void 0:S[w],w)),9,AM)}),128))],32)])):i.createCommentVNode("",!0)}}}),RM=X(VM,[["__scopeId","data-v-e925de7f"]]),BM={class:"selector"},ZM=i.defineComponent({__name:"Authentication",props:{parsedSpec:{}},setup(r){const e=r,{authentication:t,setAuthentication:n}=Jr(),o=i.computed(()=>{var a,l,c;if(!t.securitySchemeKey)return!1;const s=(c=(l=(a=e.parsedSpec)==null?void 0:a.components)==null?void 0:l.securitySchemes)==null?void 0:c[t.securitySchemeKey];return!!s&&"type"in s&&!!s.type});return i.watch(()=>{var s,a;return(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes},()=>{var s,a;n({securitySchemes:(a=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:a.securitySchemes})},{deep:!0,immediate:!0}),(s,a)=>i.unref(a1)(s.parsedSpec)?(i.openBlock(),i.createBlock(i.unref(Vn),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(Rn),{borderless:"",class:"authentication-header",transparent:""},{actions:i.withCtx(()=>{var l,c;return[i.createElementVNode("div",BM,[i.createVNode(RM,{value:(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes},null,8,["value"])])]}),default:i.withCtx(()=>[i.createTextVNode(" Authentication ")]),_:1}),o.value?(i.openBlock(),i.createBlock(i.unref(hr),{key:0,class:"authentication-content",transparent:""},{default:i.withCtx(()=>{var l,c,d;return[i.unref(t).securitySchemeKey?(i.openBlock(),i.createBlock(EM,{key:0,value:(d=(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes)==null?void 0:d[i.unref(t).securitySchemeKey]},null,8,["value"])):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0)}}),IM=X(ZM,[["__scopeId","data-v-1d141e07"]]),jM=["title","innerHTML"],DM=i.defineComponent({__name:"ServerItem",props:{value:{},variables:{}},setup(r){const e=r,{copyToClipboard:t}=Zs(),n=i.computed(()=>{var a;const s=(((a=e.value)==null?void 0:a.url)??"").replace(/(<([^>]+)>)/gi,"");return Rf(s,l=>{var d;const c=(d=e.variables)==null?void 0:d.find(u=>u.name===l);return`<span class="base-url-variable">${((c==null?void 0:c.value)??"")!==""?c==null?void 0:c.value:`{${l}}`}</span>`})});return(o,s)=>o.value?(i.openBlock(),i.createElementBlock("a",{key:0,class:"base-url",title:o.value.description,onClick:s[0]||(s[0]=a=>i.unref(t)(o.value.url)),innerHTML:n.value},null,8,jM)):i.createCommentVNode("",!0)}}),qM=X(DM,[["__scopeId","data-v-3be410d7"]]),MM={key:0},XM=["for"],WM=["id","value","onInput"],zM=["value"],UM={class:"input-value"},YM=["id","value","onInput"],LM=i.defineComponent({__name:"ServerVariables",props:{value:{}},setup(r){const{server:e,setServer:t}=Jr(),n=(s,a)=>{const l=a.target.value,c=[...e.variables],d=c.findIndex(u=>u.name===s);c[d].value=l,t({variables:c})},o=s=>{const a=e.variables.findIndex(l=>l.name===s);return e.variables[a].value??""};return(s,a)=>s.value?(i.openBlock(),i.createElementBlock("div",MM,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,l=>(i.openBlock(),i.createElementBlock("div",{key:l.name,class:"input"},[i.createElementVNode("label",{for:`variable-${l.name}`},[i.createElementVNode("code",null,i.toDisplayString(l.name),1)],8,XM),l.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("select",{id:`variable-${l.name}`,value:o(l.name),onInput:c=>n(l.name,c)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.enum,c=>(i.openBlock(),i.createElementBlock("option",{key:c,value:c},i.toDisplayString(c),9,zM))),128))],40,WM),i.createElementVNode("div",UM,i.toDisplayString(l.default),1)],64)):(i.openBlock(),i.createElementBlock("input",{key:1,id:`variable-${l.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:o(l.name),onInput:c=>n(l.name,c)},null,40,YM))]))),128))])):i.createCommentVNode("",!0)}}),FM=X(LM,[["__scopeId","data-v-d9d597ef"]]),HM={class:"scalar-card-serverlist-container"},GM={class:"server-item"},KM={class:"server-selector"},JM=["value"],e8=["value"],t8={class:"description"},r8=i.defineComponent({__name:"BaseUrl",props:{value:{}},setup(r){const e=r,{server:t,setServer:n}=Jr(),o=i.ref(0);return i.watch(o,()=>{var c,d,u;const s=((c=e.value[o.value])==null?void 0:c.variables)??{},a=s?Object.keys(s).map(h=>{var f;return{name:h,value:((f=s[h].default)==null?void 0:f.toString())??""}}):[];eQ((d=e.value[o.value])==null?void 0:d.url).filter(h=>!s[h]).forEach(h=>{a.push({name:h,value:""})}),n({selectedServer:o.value,description:(u=e.value[o.value])==null?void 0:u.description,servers:e.value,variables:a})},{immediate:!0}),i.watch(()=>e.value,()=>{n({servers:e.value})}),(s,a)=>s.value.length>0?(i.openBlock(),i.createBlock(i.unref(Vn),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(Rn),{borderless:"",muted:""},{default:i.withCtx(()=>[i.createTextVNode(" Base URL ")]),_:1}),i.createVNode(i.unref(hr),{class:"scalar-card-serverlist"},{default:i.withCtx(()=>[i.createElementVNode("div",HM,[i.createElementVNode("div",GM,[i.createElementVNode("div",KM,[s.value.length>1?(i.openBlock(),i.createElementBlock("select",{key:0,value:o.value,onInput:a[0]||(a[0]=l=>o.value=parseInt(l.target.value,10))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(l,c)=>(i.openBlock(),i.createElementBlock("option",{key:c,value:c},i.toDisplayString(l.url),9,e8))),128))],40,JM)):i.createCommentVNode("",!0),i.createVNode(qM,{value:s.value[o.value],variables:i.unref(t).variables},null,8,["value","variables"]),s.value.length>1?(i.openBlock(),i.createBlock(i.unref(ze),{key:1,icon:"ChevronDown"})):i.createCommentVNode("",!0)])]),i.createVNode(FM,{value:i.unref(t).variables},null,8,["value"])])]),_:1}),i.unref(t).description?(i.openBlock(),i.createBlock(i.unref(hr),{key:0,muted:""},{default:i.withCtx(()=>[i.createElementVNode("div",t8,[i.createVNode(i.unref(Kt),{value:i.unref(t).description},null,8,["value"])])]),_:1})):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0)}}),n8=X(r8,[["__scopeId","data-v-66aa4425"]]);function o8(r){return function(t,n){r[t]=n}}function s8(r){return function(t){typeof r[t]=="boolean"&&(r[t]=!r[t])}}const bk=()=>({isDark:!1,activeNavState:"Guide",selectedClient:{targetKey:"shell",clientKey:"curl"}}),Cl=i.reactive(bk());function i8(){d1(Cl,bk())}function a8(r){var t;const{availableTargets:e}=va();return((t=e.value.find(n=>n.key===r.targetKey))==null?void 0:t.title)??r.targetKey}function l8(r){var t,n;const{availableTargets:e}=va();return((n=(t=e.value.find(o=>o.key===r.targetKey))==null?void 0:t.clients.find(o=>o.key===r.clientKey))==null?void 0:n.title)??r.clientKey}const Hp=()=>({state:i.readonly(Cl),resetState:i8,setItem:o8(Cl),toggleItem:s8(Cl),getClientTitle:l8,getTargetTitle:a8}),vk=r=>(i.pushScopeId("data-v-418b63f8"),r=r(),i.popScopeId(),r),c8=["onClick"],d8=["value"],u8=["label"],h8=["value"],f8={class:"code-languages-background code-languages-icon__more"},p8={key:1,class:"code-languages-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},m8=vk(()=>i.createElementVNode("g",{fill:"currentColor","fill-rule":"nonzero"},[i.createElementVNode("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),g8=[m8],O8=vk(()=>i.createElementVNode("span",null,"More",-1)),y8=i.defineComponent({__name:"ClientSelector",setup(r){const{state:e,setItem:t,getClientTitle:n,getTargetTitle:o}=Hp(),{availableTargets:s}=va(),a=i.ref(),l=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"},{targetKey:"c",clientKey:"libcurl"}],c=h=>`programming-language-${h}`,d=h=>h.targetKey===e.selectedClient.targetKey&&h.clientKey===e.selectedClient.clientKey,u=h=>l.some(f=>f.targetKey===h.targetKey&&f.clientKey===h.clientKey);return(h,f)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"client-libraries-content"},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(l,p=>i.createElementVNode("div",{key:p.clientKey,class:i.normalizeClass(["code-languages rendered-code-sdks",{"code-languages__active":d(p)}]),onClick:()=>i.unref(t)("selectedClient",p)},[i.createElementVNode("div",{class:i.normalizeClass(["code-languages-background",`code-languages-icon__${p.targetKey}`])},[i.createVNode(i.unref(ze),{class:"code-languages-icon",icon:c(p.targetKey)},null,8,["icon"])],2),i.createElementVNode("span",null,i.toDisplayString(i.unref(o)(p)),1)],10,c8)),64)),i.createElementVNode("div",{class:i.normalizeClass(["code-languages code-languages__select",{"code-languages__active":i.unref(e).selectedClient&&!u(i.unref(e).selectedClient)}])},[i.createElementVNode("select",{class:"language-select",value:JSON.stringify(i.unref(e).selectedClient),onInput:f[0]||(f[0]=p=>i.unref(t)("selectedClient",JSON.parse(p.target.value)))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),p=>(i.openBlock(),i.createElementBlock("optgroup",{key:p.key,label:p.title},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(p.clients,m=>(i.openBlock(),i.createElementBlock("option",{key:m.key,value:JSON.stringify({targetKey:p.key,clientKey:m.key})},i.toDisplayString(i.unref(n)({targetKey:p.key,clientKey:m.key})),9,h8))),128))],8,u8))),128))],40,d8),i.createElementVNode("div",f8,[i.unref(e).selectedClient&&!u(i.unref(e).selectedClient)?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["code-languages-background",`code-languages-icon__${i.unref(e).selectedClient.targetKey}`])},[i.createVNode(i.unref(ze),{class:"code-languages-icon",icon:c(i.unref(e).selectedClient.targetKey)},null,8,["icon"])],2)):(i.openBlock(),i.createElementBlock("svg",p8,g8))]),O8],2)],512))}}),b8=X(y8,[["__scopeId","data-v-418b63f8"]]),v8=i.defineComponent({__name:"ClientLibraries",setup(r){const{state:e,getClientTitle:t,getTargetTitle:n}=Hp();return(o,s)=>(i.openBlock(),i.createBlock(i.unref(Vn),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Rn),{borderless:"",transparent:""},{default:i.withCtx(()=>[i.createTextVNode(" Client Libraries ")]),_:1}),i.createVNode(i.unref(hr),{frameless:"",transparent:""},{default:i.withCtx(()=>[i.createVNode(b8)]),_:1}),i.createVNode(i.unref(wa),{class:"selected-client card-footer",muted:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(n)(i.unref(e).selectedClient))+" "+i.toDisplayString(i.unref(t)(i.unref(e).selectedClient)),1)]),_:1})]),_:1}))}}),w8=X(v8,[["__scopeId","data-v-6359a4ee"]]),Gp=i.defineComponent({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(r,{emit:e}){const t=r,n=e,o=i.ref();return i.onMounted(()=>{Xe.useIntersectionObserver(o,([{isIntersecting:s}])=>{t.id&&s&&n("intersecting")},{rootMargin:"0px 0px 50% 0px",threshold:.2})}),(s,a)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(s.is??"div"),{id:s.id,ref_key:"intersectionObserverRef",ref:o},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:3},8,["id"]))}}),k8=i.defineComponent({__name:"Section",props:{id:{},label:{}},setup(r){const e=r,{getSectionId:t,hash:n,isIntersectionEnabled:o}=kt(),{setCollapsedSidebarItem:s}=en();function a(){var l;!e.label||!o.value||(window.history.replaceState({},"",`#${e.id}`),n.value=e.id??"",(l=e.id)!=null&&l.startsWith("model")&&s(t(e.id),!0))}return(l,c)=>(i.openBlock(),i.createBlock(Gp,{is:"section",id:l.id,class:"section",onIntersecting:a},{default:i.withCtx(()=>[i.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),Is=X(k8,[["__scopeId","data-v-e84ea29b"]]),S8={class:"section-accordion-button-content"},$8={key:0,class:"section-accordion-button-actions"},P8={key:0,class:"section-accordion-description"},x8={class:"section-accordion-content-card"},_8=i.defineComponent({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(r){const e=i.ref(),t=Xe.useElementHover(e);return(n,o)=>(i.openBlock(),i.createBlock(Gp,{id:n.id,class:"section-wrapper"},{default:i.withCtx(()=>[i.createVNode(i.unref(we.Disclosure),{as:"section",class:i.normalizeClass(["section-accordion",{"section-accordion-transparent":n.transparent}])},{default:i.withCtx(({open:s})=>[i.createVNode(i.unref(we.DisclosureButton),{ref_key:"button",ref:e,class:"section-accordion-button"},{default:i.withCtx(()=>[i.createElementVNode("div",S8,[i.renderSlot(n.$slots,"title",{},void 0,!0)]),n.$slots.actions?(i.openBlock(),i.createElementBlock("div",$8,[i.renderSlot(n.$slots,"actions",{active:i.unref(t)||s},void 0,!0)])):i.createCommentVNode("",!0),i.createVNode(i.unref(ze),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),i.createVNode(i.unref(we.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[n.$slots.description?(i.openBlock(),i.createElementBlock("div",P8,[i.renderSlot(n.$slots,"description",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",x8,[i.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),wk=X(_8,[["__scopeId","data-v-d82ba6d9"]]),C8={},T8={class:"section-column"};function Q8(r,e){return i.openBlock(),i.createElementBlock("div",T8,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const gs=X(C8,[["render",Q8],["__scopeId","data-v-d64e7382"]]),E8={},N8={class:"section-columns"};function A8(r,e){return i.openBlock(),i.createElementBlock("div",N8,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const Kp=X(E8,[["render",A8],["__scopeId","data-v-8b9602bf"]]),V8={},R8={class:"section-container"};function B8(r,e){return i.openBlock(),i.createElementBlock("div",R8,[i.renderSlot(r.$slots,"default",{},void 0,!0)])}const ka=X(V8,[["render",B8],["__scopeId","data-v-b630668c"]]),Z8={class:"section-accordion-wrapper"},I8={class:"section-accordion-title"},j8=i.defineComponent({__name:"SectionContainerAccordion",setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",Z8,[i.createVNode(i.unref(we.Disclosure),{as:"div",class:"section-accordion",defaultOpen:""},{default:i.withCtx(({open:n})=>[i.createVNode(i.unref(we.DisclosureButton),{class:"section-accordion-button"},{default:i.withCtx(()=>[i.createVNode(i.unref(ze),{class:"section-accordion-chevron",icon:n?"ChevronDown":"ChevronRight"},null,8,["icon"]),i.createElementVNode("div",I8,[i.renderSlot(e.$slots,"title",{},void 0,!0)])]),_:2},1024),i.createVNode(i.unref(we.DisclosurePanel),{class:"section-accordion-content"},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),kk=X(j8,[["__scopeId","data-v-42342baf"]]),D8=i.defineComponent({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(r){return(e,t)=>(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList([...Array(e.lines).keys()],n=>(i.openBlock(),i.createElementBlock("div",{key:n,class:i.normalizeClass(["loading",{"single-line":e.lines===1}])},null,2))),128))}}),Sk=X(D8,[["__scopeId","data-v-99d52311"]]),q8={class:"section-content"},M8=i.defineComponent({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",q8,[e.loading?(i.openBlock(),i.createBlock(Sk,{key:1,lines:8})):i.renderSlot(e.$slots,"default",{key:0},void 0,!0)]))}}),js=X(M8,[["__scopeId","data-v-9735459e"]]),X8=i.defineComponent({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(r){return(e,t)=>e.loading?(i.openBlock(),i.createBlock(Sk,{key:0})):(i.openBlock(),i.createBlock(i.resolveDynamicComponent(`h${e.level}`),{key:1,class:i.normalizeClass(["section-header",{tight:e.tight}])},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),Bn=X(X8,[["__scopeId","data-v-9e0df4d5"]]),W8={key:0,class:"introduction-description"},z8=i.defineComponent({__name:"Description",props:{value:{}},setup(r){const e=r,t=Xe.computedAsync(async()=>{if(!e.value)return[];const l=await Ui(e.value),c=Nf(l);return await Promise.all(lk(e.value,c).map(async d=>({heading:(await Ui(d))[0],content:d})))},[]),{getHeadingId:n,hash:o,isIntersectionEnabled:s}=kt();function a(l){s.value&&(window.history.replaceState({},"",`#${l}`),o.value=l??"")}return(l,c)=>l.value?(i.openBlock(),i.createElementBlock("div",W8,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t),(d,u)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:u},[d.heading?(i.openBlock(),i.createBlock(Gp,{key:0,id:i.unref(n)(d.heading),class:"introduction-description-heading",onIntersecting:()=>a(i.unref(n)(d.heading))},{default:i.withCtx(()=>[i.createVNode(i.unref(Kt),{value:d.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(i.openBlock(),i.createBlock(i.unref(Kt),{key:1,value:d.content,withImages:""},null,8,["value"]))],64))),128))])):i.createCommentVNode("",!0)}}),U8=X(z8,[["__scopeId","data-v-93c8cf28"]]),Y8={class:"download"},L8={class:"download-cta"},F8=i.defineComponent({__name:"DownloadSpec",setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",Y8,[i.createElementVNode("div",L8,[i.createElementVNode("button",{class:"download-button",type:"button",onClick:t[0]||(t[0]=n=>i.unref(Up).emit())}," Download OpenAPI Spec ")])]))}}),H8=X(F8,[["__scopeId","data-v-903fee61"]]),G8={class:"badges"},K8={class:"sticky-cards"},J8=i.defineComponent({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(r){const e=r,t=i.computed(()=>e.parsedSpec.openapi??e.parsedSpec.swagger??"");return(n,o)=>(i.openBlock(),i.createBlock(i.unref(ka),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Is),{class:"introduction-section"},{default:i.withCtx(()=>[i.createVNode(i.unref(js),{loading:!n.info.description&&!n.info.title},{default:i.withCtx(()=>[i.createVNode(i.unref(Kp),null,{default:i.withCtx(()=>[i.createVNode(i.unref(gs),null,{default:i.withCtx(()=>[i.createElementVNode("div",G8,[n.info.version?(i.openBlock(),i.createBlock(i.unref(ms),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.info.version),1)]),_:1})):i.createCommentVNode("",!0),t.value?(i.openBlock(),i.createBlock(i.unref(ms),{key:1},{default:i.withCtx(()=>[i.createTextVNode(" OAS "+i.toDisplayString(t.value),1)]),_:1})):i.createCommentVNode("",!0)]),i.createVNode(i.unref(Bn),{level:1,loading:!n.info.title,tight:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.info.title),1)]),_:1},8,["loading"]),i.createVNode(H8),i.createVNode(U8,{value:n.info.description},null,8,["value"])]),_:1}),n.$slots.aside?(i.openBlock(),i.createBlock(i.unref(gs),{key:0},{default:i.withCtx(()=>[i.createElementVNode("div",K8,[i.renderSlot(n.$slots,"aside",{},void 0,!0)])]),_:3})):i.createCommentVNode("",!0)]),_:3})]),_:3},8,["loading"]),i.renderSlot(n.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),eX=X(J8,[["__scopeId","data-v-af049f63"]]),tX=Symbol(),Dh=Xe.useEventBus(tX),pc=i.defineComponent({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(r){const e=r,t=(o=()=>{})=>{typeof window<"u"&&"requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(o),e.lazyTimeout):setTimeout(()=>i.nextTick(o),e.lazyTimeout??300)},n=i.ref(!e.isLazy);return e.isLazy?t(()=>{n.value=!0,e.id&&i.nextTick(()=>Dh.emit({id:e.id}))}):e.id&&i.nextTick(()=>Dh.emit({id:e.id})),(o,s)=>n.value?i.renderSlot(o.$slots,"default",{key:0}):i.createCommentVNode("",!0)}}),rX={key:0,class:"screenreader-only"},nX=i.defineComponent({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(r){return(e,t)=>e.$props.if?(i.openBlock(),i.createElementBlock("span",rX,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):i.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),$k=X(nX,[["__scopeId","data-v-681ebf2c"]]),oX=r=>(i.pushScopeId("data-v-6dd4d525"),r=r(),i.popScopeId(),r),sX={class:"label"},iX={class:"anchor"},aX=oX(()=>i.createElementVNode("span",null,"",-1)),lX=i.defineComponent({__name:"Anchor",props:{id:{}},setup(r){const{copyToClipboard:e}=Zs(),t=n=>{const o=new URL(window.location.href);return o.hash=n,o.toString()};return(n,o)=>(i.openBlock(),i.createElementBlock("span",sX,[i.renderSlot(n.$slots,"default",{},void 0,!0),i.createElementVNode("span",iX,[aX,i.createElementVNode("button",{class:"anchor-copy",type:"button",onClick:o[0]||(o[0]=i.withModifiers(s=>i.unref(e)(t(n.id)),["stop"]))},[i.createTextVNode(" # "),i.createVNode($k,null,{default:i.withCtx(()=>[i.createTextVNode('Copy link to "'),i.renderSlot(n.$slots,"default",{},void 0,!0),i.createTextVNode('"')]),_:3})])])]))}}),Zn=X(lX,[["__scopeId","data-v-6dd4d525"]]),cX=["value"],dX=["label"],uX=["value"],hX=["value"],Jp=i.defineComponent({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["text-select",e.options.length===1?"text-select--single-option":""])},[i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default")]),i.createElementVNode("select",{value:e.modelValue,onInput:t[0]||(t[0]=n=>e.$emit("update:modelValue",n.target.value))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.options,n=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:n.value},[n.options?(i.openBlock(),i.createElementBlock("optgroup",{key:0,label:n.label},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.options,o=>(i.openBlock(),i.createElementBlock("option",{key:o.value,value:o.value},i.toDisplayString(o.label),9,uX))),128))],8,dX)):(i.openBlock(),i.createElementBlock("option",{key:n.value,value:n.value},i.toDisplayString(n.label),9,hX))],64))),128))],40,cX)],2))}}),fX={class:"request-header"},pX=i.defineComponent({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(r){const e=r,t=i.ref(0),n=i.computed(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[e.examples[t.value].lang]??e.examples[t.value].lang),o=i.computed(()=>e.examples[t.value]);i.watch(e.examples,()=>{e.examples[t.value]==="undefined"&&(t.value=0)});const{copyToClipboard:s}=Zs();return(a,l)=>(i.openBlock(),i.createBlock(i.unref(Vn),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(Rn),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Jp,{class:"request-client-picker",modelValue:t.value,options:a.examples.map((c,d)=>({value:d.toString(),label:c.label})),"onUpdate:modelValue":l[0]||(l[0]=c=>(t.value=parseInt(c),10))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value.label),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:l[1]||(l[1]=c=>i.unref(s)(o.value.source.trim()))},[i.createVNode(i.unref(ze),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",fX,[i.createVNode(i.unref(An),{class:"request-method",method:a.operation.httpVerb},null,8,["method"]),i.renderSlot(a.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(hr),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createVNode(i.unref(Dr),{content:o.value.source.trim(),lang:n.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),a.$slots.footer?(i.openBlock(),i.createBlock(i.unref(wa),{key:0,class:"scalar-card-footer",contrast:""},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),mX=X(pX,[["__scopeId","data-v-71343148"]]),gX={class:"schema-type"},OX=["title"],yX=i.defineComponent({__name:"SchemaHeading",props:{value:{},name:{}},setup(r){return(e,t)=>{var n,o,s,a,l,c;return i.openBlock(),i.createElementBlock("span",gX,[i.createElementVNode("span",{class:"schema-type-icon",title:typeof e.value.type=="string"?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},[e.value.type==="object"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" {} ")],64)):i.createCommentVNode("",!0),e.value.type==="array"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(" [] ")],64)):i.createCommentVNode("",!0),e.value.enum?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(" enum ")],64)):i.createCommentVNode("",!0)],8,OX),(o=(n=e.value)==null?void 0:n.xml)!=null&&o.name&&((a=(s=e.value)==null?void 0:s.xml)==null?void 0:a.name)!=="##default"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(" <"+i.toDisplayString((c=(l=e.value)==null?void 0:l.xml)==null?void 0:c.name)+" /> ",1)],64)):e.name?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(e.name),1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(e.value.type),1)],64))])}}}),Pk=X(yX,[["__scopeId","data-v-066afd0e"]]),bX={key:0,class:"property-detail-prefix"},vX={key:1,class:"property-detail-value"},wX={key:2,class:"property-detail-value"},kX=i.defineComponent({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(i.openBlock(),i.createElementBlock("div",bX,[i.renderSlot(e.$slots,"prefix",{},void 0,!0),i.createTextVNode(" ")])):i.createCommentVNode("",!0),e.code?(i.openBlock(),i.createElementBlock("code",vX,[i.renderSlot(e.$slots,"default",{},void 0,!0)])):(i.openBlock(),i.createElementBlock("span",wX,[i.renderSlot(e.$slots,"default",{},void 0,!0)]))],2))}}),kr=X(kX,[["__scopeId","data-v-d3d50f2c"]]),SX={class:"property-heading"},$X={key:0,class:"property-name"},PX={key:1,class:"property-deprecated"},xX={key:2,class:"property-required"},_X={key:3,class:"property-details"},CX={key:4,class:"property-write-only"},TX={key:5,class:"property-read-only"},QX=i.defineComponent({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1}},setup(r){const e=["oneOf","anyOf","allOf","not"];return(t,n)=>{var o,s,a,l;return i.openBlock(),i.createElementBlock("div",SX,[t.$slots.name?(i.openBlock(),i.createElementBlock("div",$X,[i.renderSlot(t.$slots,"name",{},void 0,!0)])):i.createCommentVNode("",!0),(o=t.value)!=null&&o.deprecated?(i.openBlock(),i.createElementBlock("div",PX,[i.createVNode(i.unref(ms),null,{default:i.withCtx(()=>[i.createTextVNode("deprecated")]),_:1})])):i.createCommentVNode("",!0),t.required?(i.openBlock(),i.createElementBlock("div",xX," required ")):i.createCommentVNode("",!0),(s=t.value)!=null&&s.type?(i.openBlock(),i.createElementBlock("div",_X,[i.createVNode(kr,null,{default:i.withCtx(()=>{var c,d;return[(c=t.value)!=null&&c.items&&!["object"].includes(t.value.items.type)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(t.value.type)+" "+i.toDisplayString(t.value.items.type)+"[] ",1)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(Array.isArray(t.value.type)?t.value.type.join(" | "):t.value.type)+" "+i.toDisplayString((d=t.value)!=null&&d.nullable?" | nullable":""),1)],64)),t.value.minItems||t.value.maxItems?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(t.value.minItems)+"…"+i.toDisplayString(t.value.maxItems),1)],64)):i.createCommentVNode("",!0)]}),_:1}),t.value.minLength?(i.openBlock(),i.createBlock(kr,{key:0},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.maxLength?(i.openBlock(),i.createBlock(kr,{key:1},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maxLength),1)]),_:1})):i.createCommentVNode("",!0),t.value.uniqueItems?(i.openBlock(),i.createBlock(kr,{key:2},{default:i.withCtx(()=>[i.createTextVNode(" unique! ")]),_:1})):i.createCommentVNode("",!0),t.value.format?(i.openBlock(),i.createBlock(kr,{key:3},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.format),1)]),_:1})):i.createCommentVNode("",!0),t.value.minimum?(i.openBlock(),i.createBlock(kr,{key:4},{prefix:i.withCtx(()=>[i.createTextVNode("min:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.minimum),1)]),_:1})):i.createCommentVNode("",!0),t.value.maximum?(i.openBlock(),i.createBlock(kr,{key:5},{prefix:i.withCtx(()=>[i.createTextVNode("max:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.maximum),1)]),_:1})):i.createCommentVNode("",!0),t.value.pattern?(i.openBlock(),i.createBlock(kr,{key:6,code:"",truncate:""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.value.pattern),1)]),_:1})):i.createCommentVNode("",!0),t.$props.enum?(i.openBlock(),i.createBlock(kr,{key:7},{default:i.withCtx(()=>[i.createTextVNode("enum")]),_:1})):i.createCommentVNode("",!0),t.value.default?(i.openBlock(),i.createBlock(kr,{key:8,truncate:""},{prefix:i.withCtx(()=>[i.createTextVNode("default:")]),default:i.withCtx(()=>[i.createTextVNode(" "+i.toDisplayString(t.value.default),1)]),_:1})):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),(a=t.value)!=null&&a.writeOnly?(i.openBlock(),i.createElementBlock("div",CX," write-only ")):(l=t.value)!=null&&l.readOnly?(i.openBlock(),i.createElementBlock("div",TX," read-only ")):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filter(c=>{var d,u,h;return((d=t.value)==null?void 0:d[c])||((h=(u=t.value)==null?void 0:u.items)==null?void 0:h[c])}),c=>(i.openBlock(),i.createBlock(i.unref(ms),{key:c},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(c),1)]),_:2},1024))),128))])}}}),EX=X(QX,[["__scopeId","data-v-030ceccc"]]),NX=r=>(i.pushScopeId("data-v-6412eacb"),r=r(),i.popScopeId(),r),AX={key:0,class:"property-description"},VX={key:1,class:"property-description"},RX={key:2,class:"property-example custom-scroll"},BX=NX(()=>i.createElementVNode("span",{class:"property-example-label"},"Example",-1)),ZX={class:"property-example-value"},IX={key:3,class:"property-enum"},jX={class:"property-enum-values"},DX={key:4,class:"children"},qX={key:0,class:"children"},MX={key:0,class:"property-rule"},XX={key:1,class:"property-rule"},WX=i.defineComponent({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{}},setup(r){const e={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},t=function(s){return!s||!e[s.type]?null:e[s.type][s.format||"_default"]},n=function(s){var a;return(s==null?void 0:s.enum)||((a=s==null?void 0:s.items)==null?void 0:a.enum)||null},o=["oneOf","anyOf","allOf","not"];return(s,a)=>{var l,c,d,u,h,f,p,m,g,O,y;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["property",[`property--level-${s.level}`,{"property--compact":s.compact,"property--deprecated":(l=s.value)==null?void 0:l.deprecated}]])},[i.createVNode(EX,{enum:!!n(s.value),required:s.required,value:s.value},i.createSlots({_:2},[s.name?{name:"name",fn:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(s.name),1)]),key:"0"}:void 0]),1032,["enum","required","value"]),s.description||(c=s.value)!=null&&c.description?(i.openBlock(),i.createElementBlock("div",AX,[i.createVNode(i.unref(Kt),{value:s.description||((d=s.value)==null?void 0:d.description)},null,8,["value"])])):t(s.value)?(i.openBlock(),i.createElementBlock("div",VX,[i.createVNode(i.unref(Kt),{value:t(s.value)||""},null,8,["value"])])):i.createCommentVNode("",!0),(u=s.value)!=null&&u.example||(f=(h=s.value)==null?void 0:h.items)!=null&&f.example?(i.openBlock(),i.createElementBlock("div",RX,[BX,i.createElementVNode("code",ZX,i.toDisplayString(s.value.example||((p=s.value)==null?void 0:p.items.example)),1)])):i.createCommentVNode("",!0),n(s.value)?(i.openBlock(),i.createElementBlock("div",IX,[i.createElementVNode("ul",jX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n(s.value),b=>(i.openBlock(),i.createElementBlock("li",{key:b,class:"property-enum-value"},i.toDisplayString(b),1))),128))])])):i.createCommentVNode("",!0),((m=s.value)==null?void 0:m.type)==="object"&&((g=s.value)!=null&&g.properties||(O=s.value)!=null&&O.additionalProperties)?(i.openBlock(),i.createElementBlock("div",DX,[i.createVNode(ao,{compact:s.compact,level:s.level+1,value:s.value},null,8,["compact","level","value"])])):i.createCommentVNode("",!0),(y=s.value)!=null&&y.items?(i.openBlock(),i.createElementBlock(i.Fragment,{key:5},[["object"].includes(s.value.items.type)?(i.openBlock(),i.createElementBlock("div",qX,[i.createVNode(ao,{compact:s.compact,level:s.level+1,value:s.value.items},null,8,["compact","level","value"])])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(o,b=>{var v,w,S;return i.openBlock(),i.createElementBlock(i.Fragment,{key:b},[(v=s.value)!=null&&v[b]?(i.openBlock(),i.createElementBlock("div",MX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value[b],(k,$)=>(i.openBlock(),i.createBlock(ao,{key:$,compact:s.compact,level:s.level+1,value:k},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0),(S=(w=s.value)==null?void 0:w.items)!=null&&S[b]&&s.level<3?(i.openBlock(),i.createElementBlock("div",XX,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value.items[b],(k,$)=>(i.openBlock(),i.createBlock(ao,{key:$,compact:s.compact,level:s.level+1,value:k},null,8,["compact","level","value"]))),128))])):i.createCommentVNode("",!0)],64)}),64))],2)}}}),Ki=X(WX,[["__scopeId","data-v-6412eacb"]]),zX=r=>(i.pushScopeId("data-v-8d81362f"),r=r(),i.popScopeId(),r),UX={key:0,class:"schema-card-description"},YX=zX(()=>i.createElementVNode("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),LX=[YX],FX=i.defineComponent({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(r){const e=r,t=i.computed(()=>!(e.noncollapsible||e.level===0)),n=i.computed(()=>{var s,a;return{...typeof e.value=="object"?e.value:{},...typeof e.value=="object"&&typeof((s=e.value)==null?void 0:s.additionalProperties)=="object"?(a=e.value)==null?void 0:a.additionalProperties:{}}}),o=s=>e.noncollapsible&&s.stopPropagation();return(s,a)=>typeof s.value=="object"&&Object.keys(s.value).length?(i.openBlock(),i.createBlock(i.unref(we.Disclosure),{key:0,defaultOpen:s.noncollapsible},{default:i.withCtx(({open:l})=>{var c;return[i.createElementVNode("div",{class:i.normalizeClass(["schema-card",[`schema-card--level-${s.level}`,{"schema-card--compact":s.compact,"schema-card--open":l}]])},[(c=s.value)!=null&&c.description?(i.openBlock(),i.createElementBlock("div",UX,i.toDisplayString(s.value.description),1)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["schema-properties",{"schema-properties-open":l}])},[i.withDirectives(i.createVNode(i.unref(we.DisclosureButton),{as:s.noncollapsible?"div":"button",class:i.normalizeClass(["schema-card-title",{"schema-card-title--compact":s.compact}]),style:i.normalizeStyle({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${s.level}))`}),onClickCapture:o},{default:i.withCtx(()=>[s.compact?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.value?(i.openBlock(),i.createElementBlock("svg",{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":l}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},LX,2)):i.createCommentVNode("",!0),l?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode("Hide Child Attributes")],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode("Show Child Attributes")],64))],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[t.value?(i.openBlock(),i.createBlock(i.unref(ze),{key:0,class:i.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":l}]),icon:"ChevronRight",size:"md"},null,8,["class"])):i.createCommentVNode("",!0),i.createVNode(Pk,{name:s.name,value:n.value},null,8,["name","value"])],64))]),_:2},1032,["as","class","style"]),[[i.vShow,!(s.noncollapsible&&s.compact)]]),i.createVNode(i.unref(we.DisclosurePanel),{static:s.noncollapsible},{default:i.withCtx(()=>{var d,u,h;return[(d=n.value)!=null&&d.properties?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(Object.keys((u=n.value)==null?void 0:u.properties),f=>{var p;return i.openBlock(),i.createBlock(Ki,{key:f,compact:s.compact,level:s.level,name:f,required:n.value.required&&n.value.required.length&&n.value.required.includes(f),value:(p=n.value.properties)==null?void 0:p[f]},null,8,["compact","level","name","required","value"])}),128)):(i.openBlock(),i.createBlock(Ki,{key:1,compact:s.compact,level:s.level,name:(h=n.value)==null?void 0:h.name,value:n.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):i.createCommentVNode("",!0)}}),ao=X(FX,[["__scopeId","data-v-8d81362f"]]),HX={class:"parameter-item"},GX={class:"parameter-item-container"},KX=i.defineComponent({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("li",HX,[i.createElementVNode("div",GX,[i.createVNode(i.unref(Ki),{compact:"",description:e.parameter.description,level:0,name:e.parameter.name,noncollapsible:e.showChildren,required:e.parameter.required,value:e.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),JX=X(KX,[["__scopeId","data-v-8d726548"]]),e7={key:0,class:"parameters"},t7={class:"parameters-title"},r7={class:"parameter-list"},n7=i.defineComponent({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>{var n;return(n=e.parameters)!=null&&n.length?(i.openBlock(),i.createElementBlock("div",e7,[i.createElementVNode("div",t7,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("ul",r7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.parameters,o=>(i.openBlock(),i.createBlock(JX,{key:o.name,parameter:o,showChildren:e.showChildren},null,8,["parameter","showChildren"]))),128))])])):i.createCommentVNode("",!0)}}}),nr=X(n7,[["__scopeId","data-v-b53bea85"]]),o7={key:0},s7={class:"request-body-title"},i7=["value"],a7={key:0,class:"request-body-schema"},l7=i.defineComponent({__name:"RequestBody",props:{requestBody:{}},setup(r){var o;const e=r,t=i.computed(()=>{var s;return(s=e.requestBody)!=null&&s.content?Object.keys(e.requestBody.content):[]}),n=i.ref("application/json");return(o=e.requestBody)!=null&&o.content&&t.value.length>0&&(n.value=t.value[0]),(s,a)=>{var l,c,d,u;return e!=null&&e.requestBody?(i.openBlock(),i.createElementBlock("div",o7,[i.createElementVNode("div",s7,[i.renderSlot(s.$slots,"title",{},void 0,!0),i.createElementVNode("div",{class:i.normalizeClass(["request-body-title-select",{"request-body-title-no-select":t.value.length<=1}])},[i.createElementVNode("span",null,i.toDisplayString(n.value),1),e!=null&&e.requestBody&&t.value.length>1?i.withDirectives((i.openBlock(),i.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=h=>n.value=h)},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((l=e.requestBody)==null?void 0:l.content,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:f},i.toDisplayString(f),9,i7))),128))],512)),[[i.vModelSelect,n.value]]):i.createCommentVNode("",!0)],2)]),(c=e==null?void 0:e.requestBody.content)!=null&&c[n.value]?(i.openBlock(),i.createElementBlock("div",a7,[i.createVNode(i.unref(ao),{compact:"",noncollapsible:"",value:(u=(d=e==null?void 0:e.requestBody.content)==null?void 0:d[n.value])==null?void 0:u.schema},null,8,["value"])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0)}}}),em=X(l7,[["__scopeId","data-v-a68d9b3b"]]),c7={class:"endpoint-details"},d7={class:"endpoint-description"},u7=i.defineComponent({__name:"EndpointDetails",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Lp(e),{responses:n}=Fp(e.operation);return(o,s)=>{var a,l;return i.openBlock(),i.createElementBlock("div",c7,[i.createElementVNode("div",d7,[i.createVNode(i.unref(Kt),{value:o.operation.description},null,8,["value"])]),i.createVNode(nr,{parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(nr,{parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(nr,{parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(nr,{parameters:i.unref(t).body,showChildren:""},{title:i.withCtx(()=>[i.createTextVNode("Body Parameters")]),_:1},8,["parameters"]),i.createVNode(nr,{parameters:i.unref(t).formData},{title:i.withCtx(()=>[i.createTextVNode("Form Data")]),_:1},8,["parameters"]),(a=o.operation.information)!=null&&a.requestBody?(i.openBlock(),i.createBlock(em,{key:0,requestBody:(l=o.operation.information)==null?void 0:l.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"])):i.createCommentVNode("",!0),i.createVNode(nr,{parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),h7={key:0},f7=i.defineComponent({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(r){const e=r,t=o=>o.startsWith("{")&&o.endsWith("}"),n=i.computed(()=>e.path.split(/({[^}]+})/));return(o,s)=>(i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["endpoint-path",{deprecated:o.deprecated}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.value,(a,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:l},[t(a)?(i.openBlock(),i.createElementBlock("em",h7,i.toDisplayString(a),1)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createTextVNode(i.toDisplayString(a),1)],64))],64))),128))],2))}}),qh=X(f7,[["__scopeId","data-v-08374039"]]);function tm(r){return r.reduce((e,t)=>(e[t.name]=t.value,e),{})}function p7(r){return/\s|-/.test(r)}function Nn(r,e=0){let t=[],n=" ".repeat(e),o=" ".repeat(e+2);for(const[s,a]of Object.entries(r)){let l=p7(s)?`'${s}'`:s;if(Array.isArray(a)){const c=a.map(d=>typeof d=="string"?`'${d}'`:d&&typeof d=="object"?Nn(d,e+2):d).join(`, ${o}`);t.push(`${o}${l}: [${c}]`)}else if(a&&typeof a=="object")t.push(`${o}${l}: ${Nn(a,e+2)}`);else if(typeof a=="string"){let c=`${a}`;if(a.startsWith("JSON.stringify")){const d=a.split(`
|
|
239
|
+
`);d.length>1&&(c=d.map((u,h)=>h===0?u:`${o}${u}`).join(`
|
|
240
|
+
`))}else c=`'${a}'`;t.push(`${o}${l}: ${c}`)}else t.push(`${o}${l}: ${a}`)}return`{
|
|
241
|
+
${t.join(`,
|
|
242
|
+
`)}
|
|
243
|
+
${n}}`}function m7(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?tm(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${Nn(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${Nn(o)}`:"";return{target:"node",client:"undici",code:`import { request } from 'undici'
|
|
244
|
+
|
|
245
|
+
const { statusCode, body } = await request('${n.url}${a}'${l})`}}function g7(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?tm(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${Nn(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${Nn(o)}`:"";return{target:"node",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function O7(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?tm(n.queryString):void 0),a=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${Nn(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${Nn(o)}`:"";return{target:"js",client:"fetch",code:`fetch('${n.url}${a}'${l})`}}function V0(){const r=[m7,g7,O7];return{get(e,t,n){const o=this.findPlugin(e,t);if(o)return o(n)},print(e,t,n){var o;return(o=this.get(e,t,n))==null?void 0:o.code},targets(){return r.map(e=>e().target).filter((e,t,n)=>n.indexOf(e)===t)},clients(){return r.map(e=>e().client)},plugins(){return r.map(e=>{const t=e();return{target:t.target,client:t.client}})},findPlugin(e,t){return r.find(n=>{const o=n();return o.target===e&&o.client===t})},hasPlugin(e,t){return!!this.findPlugin(e,t)}}}const y7=i.defineComponent({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=e,o=i.ref(Object.keys(t.examples)[0]);function s(l){l&&(o.value=l)}i.watch(()=>t.examples,()=>{s(Object.keys(t.examples)[0])},{immediate:!0}),i.watch(o,()=>{o.value&&n("update:modelValue",o.value)},{immediate:!0});function a(l){if(!l)return"Select an example";const c=t.examples[l];return(c==null?void 0:c.summary)??l}return(l,c)=>(i.openBlock(),i.createBlock(Jp,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),class:"example-selector",options:Object.keys(l.examples).map(d=>({label:a(d),value:d}))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a(o.value)),1)]),_:1},8,["modelValue","options"]))}}),xk=X(y7,[["__scopeId","data-v-652a7e14"]]),b7={class:"request-header"},v7={class:"code-snippet"},w7={key:0,class:"request-card-footer-addon"},k7=i.defineComponent({__name:"ExampleRequest",props:{operation:{}},setup(r){const e=r,t=i.ref(""),n=i.ref(),{copyToClipboard:o}=Zs(),{state:s,setItem:a,getClientTitle:l,getTargetTitle:c}=Hp(),{availableTargets:d}=va(),{server:u,authentication:h}=Jr(),f=i.computed(()=>{var g,O,y,b,v,w,S;return((b=(y=(O=(g=e.operation.information)==null?void 0:g.requestBody)==null?void 0:O.content)==null?void 0:y["application/json"])==null?void 0:b.examples)&&Object.keys((S=(w=(v=e.operation.information)==null?void 0:v.requestBody)==null?void 0:w.content)==null?void 0:S["application/json"].examples).length>1}),p=i.inject(Qc),m=async()=>{var O;const g=Uv({url:ec(u)??window.location.origin},dh(e.operation,{replaceVariables:!0},n.value),Af(h,((O=e.operation.information)==null?void 0:O.security)??(p==null?void 0:p())));try{return V0().hasPlugin(s.selectedClient.targetKey.replace("javascript","js"),s.selectedClient.clientKey)?V0().print(s.selectedClient.targetKey.replace("javascript","js"),s.selectedClient.clientKey,g)??"":await new j0.HTTPSnippet(g).convert(s.selectedClient.targetKey,s.selectedClient.clientKey)}catch(y){return console.error("[ExampleRequest]",y),""}};return i.watch([()=>s.selectedClient,()=>u,()=>h,()=>n],async()=>{t.value=await m()},{deep:!0,immediate:!0}),i.computed(()=>Ef({serverState:u,authenticationState:h,operation:e.operation,globalSecurity:p==null?void 0:p()})),(g,O)=>(i.openBlock(),i.createBlock(i.unref(Vn),{class:"dark-mode"},{default:i.withCtx(()=>[i.createVNode(i.unref(Rn),{muted:""},{actions:i.withCtx(()=>[i.createVNode(Jp,{class:"request-client-picker",modelValue:JSON.stringify(i.unref(s).selectedClient),options:i.unref(d).map(y=>({value:y.key,label:y.title,options:y.clients.map(b=>({value:JSON.stringify({targetKey:y.key,clientKey:b.key}),label:b.title}))})),"onUpdate:modelValue":O[0]||(O[0]=y=>i.unref(a)("selectedClient",JSON.parse(y)))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(c)(i.unref(s).selectedClient))+" "+i.toDisplayString(i.unref(l)(i.unref(s).selectedClient)),1)]),_:1},8,["modelValue","options"]),i.createElementVNode("button",{class:"copy-button",type:"button",onClick:O[1]||(O[1]=y=>i.unref(o)(t.value))},[i.createVNode(i.unref(ze),{icon:"Clipboard",width:"10px"})])]),default:i.withCtx(()=>[i.createElementVNode("div",b7,[i.createVNode(i.unref(An),{as:"span",class:"request-method",method:g.operation.httpVerb},null,8,["method"]),i.renderSlot(g.$slots,"header",{},void 0,!0)])]),_:3}),i.createVNode(i.unref(hr),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:i.withCtx(()=>[i.createElementVNode("div",v7,[i.createVNode(i.unref(Dr),{content:t.value,hideCredentials:i.unref(i1)(i.unref(h)),lang:i.unref(s).selectedClient.targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),f.value||g.$slots.footer?(i.openBlock(),i.createBlock(i.unref(wa),{key:0,class:"request-card-footer",contrast:""},{default:i.withCtx(()=>{var y,b,v,w;return[f.value?(i.openBlock(),i.createElementBlock("div",w7,[i.createVNode(xk,{class:"request-example-selector",examples:((w=(v=(b=(y=g.operation.information)==null?void 0:y.requestBody)==null?void 0:b.content)==null?void 0:v["application/json"])==null?void 0:w.examples)??[],"onUpdate:modelValue":O[2]||(O[2]=S=>n.value=S)},null,8,["examples"])])):i.createCommentVNode("",!0),i.renderSlot(g.$slots,"footer",{},void 0,!0)]}),_:3})):i.createCommentVNode("",!0)]),_:3}))}}),_k=X(k7,[["__scopeId","data-v-e97b2985"]]),S7={key:0},$7={key:1},P7={key:0,class:"rule"},x7={class:"rule-title"},_7={class:"rule-items"},C7={key:2,class:"empty-state"},T7=i.defineComponent({__name:"ExampleResponse",props:{response:{}},setup(r){const e=["oneOf","anyOf","not"],t=n=>n.reduce((o,s)=>({...o,...s}),{});return(n,o)=>{var s,a,l,c,d,u,h;return(s=n.response)!=null&&s.example?(i.openBlock(),i.createElementBlock("div",S7,[i.createVNode(i.unref(Dr),{content:i.unref(Kl)((a=n.response)==null?void 0:a.example),lang:"json"},null,8,["content"])])):(l=n.response)!=null&&l.schema?(i.openBlock(),i.createElementBlock("div",$7,[(c=n.response)!=null&&c.schema.type?(i.openBlock(),i.createBlock(i.unref(Dr),{key:0,content:i.unref(Kl)(i.unref(Ge)((d=n.response)==null?void 0:d.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(e,f=>{var p,m,g,O,y,b;return i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[(p=n.response)!=null&&p.schema[f]&&(((m=n.response)==null?void 0:m.schema[f].length)>1||f==="not")?(i.openBlock(),i.createElementBlock("div",P7,[i.createElementVNode("div",x7,i.toDisplayString(f),1),i.createElementVNode("ol",_7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((g=n.response)==null?void 0:g.schema[f],(v,w)=>(i.openBlock(),i.createElementBlock("li",{key:w,class:"rule-item"},[i.createVNode(i.unref(Dr),{content:i.unref(Ge)(v,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(O=n.response)!=null&&O.schema[f]&&((y=n.response)==null?void 0:y.schema[f].length)===1?(i.openBlock(),i.createBlock(i.unref(Dr),{key:1,content:i.unref(Ge)((b=n.response)==null?void 0:b.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)],64)}),64)),(u=n.response)!=null&&u.schema.allOf?(i.openBlock(),i.createBlock(i.unref(Dr),{key:1,content:t((h=n.response)==null?void 0:h.schema.allOf.map(f=>i.unref(Ge)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",C7," No Body "))}}}),R0=X(T7,[["__scopeId","data-v-45bb5bcf"]]),Q7=r=>(i.pushScopeId("data-v-e8b8960d"),r=r(),i.popScopeId(),r),E7={key:1,class:"scalar-card-checkbox"},N7=Q7(()=>i.createElementVNode("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),A7={class:"scalar-card-container custom-scroll"},V7={key:1,class:"response-description"},R7=i.defineComponent({__name:"PathResponses",props:{operation:{}},setup(r){const e=r,{copyToClipboard:t}=Zs(),n=i.ref(),o=i.computed(()=>{var f,p;return Object.keys(((p=(f=e==null?void 0:e.operation)==null?void 0:f.information)==null?void 0:p.responses)??{}).sort(m=>m==="default"?-1:0)}),s=i.computed(()=>!!c.value.examples&&Object.keys(c.value.examples).length>1),a=i.ref(0),l=i.computed(()=>{var p,m;const f=o.value[a.value];return(m=(p=e.operation.information)==null?void 0:p.responses)==null?void 0:m[f]}),c=i.computed(()=>{var f,p,m,g,O,y,b,v;return((p=(f=l.value)==null?void 0:f.content)==null?void 0:p["application/json"])??((g=(m=l.value)==null?void 0:m.content)==null?void 0:g["application/json; charset=utf-8"])??((y=(O=l.value)==null?void 0:O.content)==null?void 0:y["application/problem+json"])??((v=(b=l.value)==null?void 0:b.content)==null?void 0:v["application/vnd.api+json"])??l.value}),d=i.computed(()=>({...c.value,example:s.value&&n.value?c.value.examples[n.value]:c.value.example})),u=f=>{a.value=f},h=i.ref(!1);return(f,p)=>o.value.length?(i.openBlock(),i.createBlock(i.unref(Vn),{key:0},{default:i.withCtx(()=>{var m;return[i.createVNode(i.unref(Ok),{muted:"",x:"as",onChange:u},{actions:i.withCtx(()=>{var g,O;return[(g=c.value)!=null&&g.example?(i.openBlock(),i.createElementBlock("button",{key:0,class:"code-copy",type:"button",onClick:p[0]||(p[0]=()=>{var y;return i.unref(t)((y=c.value)==null?void 0:y.example)})},[i.createVNode(i.unref(ze),{icon:"Clipboard",width:"10px",x:"asd"})])):i.createCommentVNode("",!0),(O=c.value)!=null&&O.schema?(i.openBlock(),i.createElementBlock("label",E7,[i.createTextVNode(" Show Schema "),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":p[1]||(p[1]=y=>h.value=y),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[i.vModelCheckbox,h.value]]),N7])):i.createCommentVNode("",!0)]}),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,g=>(i.openBlock(),i.createBlock(i.unref(yk),{key:g},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(g),1)]),_:2},1024))),128))]),_:1}),i.createElementVNode("div",A7,[i.createVNode(i.unref(hr),{muted:""},{default:i.withCtx(()=>{var g;return[(g=c.value)!=null&&g.schema?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[h.value&&d.value?(i.openBlock(),i.createBlock(i.unref(Dr),{key:0,content:d.value,lang:"json"},null,8,["content"])):(i.openBlock(),i.createBlock(R0,{key:1,response:d.value},null,8,["response"]))],64)):(i.openBlock(),i.createBlock(R0,{key:1,response:d.value},null,8,["response"]))]}),_:1})]),(m=l.value)!=null&&m.description||s.value?(i.openBlock(),i.createBlock(i.unref(wa),{key:0,class:"response-card-footer",muted:""},{default:i.withCtx(()=>{var g,O;return[s.value?(i.openBlock(),i.createBlock(xk,{key:0,class:"response-example-selector",examples:(g=c.value)==null?void 0:g.examples,"onUpdate:modelValue":p[2]||(p[2]=y=>n.value=y)},null,8,["examples"])):(O=l.value)!=null&&O.description?(i.openBlock(),i.createElementBlock("div",V7,[i.createVNode(i.unref(Kt),{class:"markdown",value:l.value.description},null,8,["value"])])):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)]}),_:1})):i.createCommentVNode("",!0)}}),Ck=X(R7,[["__scopeId","data-v-e8b8960d"]]),B7=r=>(i.pushScopeId("data-v-66fd6b46"),r=r(),i.popScopeId(),r),Z7=B7(()=>i.createElementVNode("span",null,"Test Request",-1)),I7=i.defineComponent({__name:"TryRequestButton",props:{operation:{}},setup(r){const e=i.inject(Qc);return(t,n)=>(i.openBlock(),i.createBlock(i.unref(An),{as:"button",class:"show-api-client-button",method:t.operation.httpVerb,property:"background",type:"button",onClick:n[0]||(n[0]=i.withModifiers(o=>{var s;return i.unref(tc)(t.operation,(s=i.unref(e))==null?void 0:s())},["stop"]))},{default:i.withCtx(()=>[Z7,i.createVNode(i.unref(ze),{icon:"PaperAirplane"})]),_:1},8,["method"]))}}),Mh=X(I7,[["__scopeId","data-v-66fd6b46"]]),j7={class:"examples"},D7=i.defineComponent({__name:"Operation",props:{id:{},operation:{}},setup(r){const e=r,t=i.computed(()=>{var o;const n=["x-custom-examples","x-codeSamples","x-code-samples"];for(const s of n)if((o=e.operation.information)!=null&&o[s])return e.operation.information[s];return null});return(n,o)=>(i.openBlock(),i.createBlock(i.unref(Is),{id:n.id,label:n.operation.name},{default:i.withCtx(()=>[i.createVNode(i.unref(js),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Kp),null,{default:i.withCtx(()=>[i.createVNode(i.unref(gs),null,{default:i.withCtx(()=>{var s,a;return[(s=n.operation.information)!=null&&s.deprecated?(i.openBlock(),i.createBlock(i.unref(ms),{key:0},{default:i.withCtx(()=>[i.createTextVNode(" Deprecated ")]),_:1})):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass((a=n.operation.information)!=null&&a.deprecated?"deprecated":"")},[i.createVNode(i.unref(Bn),{level:3},{default:i.withCtx(()=>[i.createVNode(i.unref(Zn),{id:n.id??""},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(n.operation.name),1)]),_:1},8,["id"])]),_:1})],2),i.createVNode(u7,{operation:n.operation},null,8,["operation"])]}),_:1}),i.createVNode(i.unref(gs),null,{default:i.withCtx(()=>[i.createElementVNode("div",j7,[t.value?(i.openBlock(),i.createBlock(mX,{key:0,examples:t.value,operation:n.operation},{header:i.withCtx(()=>{var s;return[i.createVNode(qh,{class:"example-path",deprecated:(s=n.operation.information)==null?void 0:s.deprecated,path:n.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Mh,{operation:n.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):(i.openBlock(),i.createBlock(_k,{key:1,operation:n.operation},{header:i.withCtx(()=>{var s;return[i.createVNode(qh,{class:"example-path",deprecated:(s=n.operation.information)==null?void 0:s.deprecated,path:n.operation.path},null,8,["deprecated","path"])]}),footer:i.withCtx(()=>[i.createVNode(Mh,{operation:n.operation},null,8,["operation"])]),_:1},8,["operation"])),i.createVNode(i.unref(Ck),{operation:n.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),Tk=X(D7,[["__scopeId","data-v-c8ee9da7"]]),q7={class:"endpoint-details-card"},M7=i.defineComponent({__name:"EndpointDetailsCard",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Lp(e),{responses:n}=Fp(e.operation);return(o,s)=>{var a;return i.openBlock(),i.createElementBlock("div",q7,[i.createVNode(nr,{class:"endpoint-details-card-item",parameters:i.unref(t).path},{title:i.withCtx(()=>[i.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),i.createVNode(nr,{class:"endpoint-details-card-item",parameters:i.unref(t).query},{title:i.withCtx(()=>[i.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),i.createVNode(nr,{class:"endpoint-details-card-item",parameters:i.unref(t).header},{title:i.withCtx(()=>[i.createTextVNode("Headers")]),_:1},8,["parameters"]),i.createVNode(em,{class:"endpoint-details-card-item",requestBody:(a=o.operation.information)==null?void 0:a.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Body")]),_:1},8,["requestBody"]),i.createVNode(nr,{class:"endpoint-details-card-item",parameters:i.unref(n)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),X7=X(M7,[["__scopeId","data-v-de9386b8"]]),W7={class:"endpoint-header"},z7={class:"endpoint-details"},U7={class:"endpoint-label"},Y7={class:"endpoint-label-path"},L7={class:"endpoint-label-name"},F7={class:"endpoint-content"},H7=i.defineComponent({__name:"OperationAccordion",props:{id:{},operation:{}},setup(r){const{copyToClipboard:e}=Zs();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(wk),{id:t.id,class:"reference-endpoint",transparent:""},i.createSlots({title:i.withCtx(()=>[i.createElementVNode("h3",W7,[i.createElementVNode("div",z7,[i.createVNode(i.unref(An),{class:"endpoint-type",method:t.operation.httpVerb,short:""},null,8,["method"]),i.createVNode(i.unref(Zn),{id:t.id??"",class:"endpoint-anchor"},{default:i.withCtx(()=>{var o;return[i.createElementVNode("div",U7,[i.createElementVNode("div",Y7,[i.createVNode(qh,{deprecated:(o=t.operation.information)==null?void 0:o.deprecated,path:t.operation.path},null,8,["deprecated","path"])]),i.createElementVNode("div",L7,i.toDisplayString(t.operation.name),1)])]}),_:1},8,["id"])])])]),actions:i.withCtx(({active:o})=>[o?(i.openBlock(),i.createBlock(Mh,{key:0,operation:t.operation},null,8,["operation"])):(i.openBlock(),i.createBlock(i.unref(ze),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),i.createVNode(i.unref(Tf),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"sm",variant:"ghost",onClick:n[0]||(n[0]=i.withModifiers(s=>i.unref(e)(t.operation.path),["stop"]))})]),default:i.withCtx(()=>[i.createElementVNode("div",F7,[i.createVNode(X7,{operation:t.operation},null,8,["operation"]),i.createVNode(i.unref(Ck),{operation:t.operation},null,8,["operation"]),i.createVNode(_k,{operation:t.operation},null,8,["operation"])])]),_:2},[t.operation.description?{name:"description",fn:i.withCtx(()=>[i.createVNode(i.unref(Kt),{value:t.operation.description},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),G7=X(H7,[["__scopeId","data-v-e48ec7fd"]]),K7=i.defineComponent({__name:"ShowMoreButton",props:{id:{}},setup(r){const{setCollapsedSidebarItem:e}=en();return(t,n)=>(i.openBlock(),i.createElementBlock("button",{class:"show-more",type:"button",onClick:n[0]||(n[0]=o=>i.unref(e)(t.id,!0))},[i.createTextVNode(" Show More "),i.createVNode(i.unref(ze),{class:"show-more-icon",icon:"ChevronDown"})]))}}),Qk=X(K7,[["__scopeId","data-v-c0788f2e"]]),J7={class:"endpoints"},eW=["onClick"],tW=i.defineComponent({__name:"Endpoints",props:{id:{},tag:{}},setup(r){const e=r,{getOperationId:t,getTagId:n}=kt(),{setCollapsedSidebarItem:o}=en();async function s(a){o(n(e.tag),!0),setTimeout(()=>{window.location.href=`#${t(a,e.tag)}`},0)}return(a,l)=>(i.openBlock(),i.createBlock(i.unref(Is),{id:a.id,label:a.tag.name.toUpperCase()},{default:i.withCtx(()=>[i.createVNode(i.unref(js),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Kp),null,{default:i.withCtx(()=>[i.createVNode(i.unref(gs),null,{default:i.withCtx(()=>[i.createVNode(i.unref(Bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(Zn),{id:i.unref(n)(a.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref(Kt),{value:a.tag.description},null,8,["value"])]),_:1}),i.createVNode(i.unref(gs),null,{default:i.withCtx(()=>{var c;return[((c=a.tag.operations)==null?void 0:c.length)>0?(i.openBlock(),i.createBlock(i.unref(Vn),{key:0,class:"scalar-card-sticky"},{default:i.withCtx(()=>[i.createVNode(i.unref(Rn),{muted:""},{default:i.withCtx(()=>[i.createTextVNode("Endpoints")]),_:1}),i.createVNode(i.unref(hr),{class:"custom-scroll",muted:""},{default:i.withCtx(()=>[i.createElementVNode("div",J7,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.tag.operations,d=>(i.openBlock(),i.createElementBlock("a",{key:i.unref(t)(d,a.tag),class:"endpoint",onClick:u=>s(d)},[i.createVNode(i.unref(An),{method:d.httpVerb},null,8,["method"]),i.createElementVNode("span",null,i.toDisplayString(d.path),1)],8,eW))),128))])]),_:1})]),_:1})):i.createCommentVNode("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),rW=X(tW,[["__scopeId","data-v-f019b5a1"]]),nW=i.defineComponent({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(r){const e=r,{collapsedSidebarItems:t}=en(),{getTagId:n}=kt(),o=s=>{var a;return((a=e.spec.tags)==null?void 0:a.length)!==1||(s==null?void 0:s.name)!=="default"||(s==null?void 0:s.description)!==""};return(s,a)=>(i.openBlock(),i.createBlock(i.unref(ka),{class:"tag-section-container"},{default:i.withCtx(()=>{var l;return[o(s.tag)?(i.openBlock(),i.createBlock(rW,{key:0,id:s.id,tag:s.tag},null,8,["id","tag"])):i.createCommentVNode("",!0),!i.unref(t)[i.unref(n)(s.tag)]&&((l=s.tag.operations)==null?void 0:l.length)>1?(i.openBlock(),i.createBlock(Qk,{key:1,id:s.id??""},null,8,["id"])):i.renderSlot(s.$slots,"default",{key:2},void 0,!0)]}),_:3}))}}),Ek=X(nW,[["__scopeId","data-v-0090f16b"]]),oW=i.defineComponent({__name:"TagAccordion",props:{tag:{},spec:{}},setup(r){const{getTagId:e}=kt();return(t,n)=>(i.openBlock(),i.createBlock(i.unref(kk),{class:"tag-section"},{title:i.withCtx(()=>[i.createVNode(i.unref(Bn),{class:"tag-name",level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(Zn),{id:i.unref(e)(t.tag)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.tag.name),1)]),_:1},8,["id"])]),_:1}),i.createVNode(i.unref(Kt),{class:"tag-description",value:t.tag.description},null,8,["value"])]),default:i.withCtx(()=>[i.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3}))}}),sW=X(oW,[["__scopeId","data-v-b06f5cf1"]]),iW=i.defineComponent({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{},server:{}},setup(r){const e=r,t=i.ref(!1),n=i.ref(typeof window<"u"&&!!window.location.hash&&e.layout!=="accordion"),o=i.ref([]),s=i.ref([]),{getModelId:a,getSectionId:l,getTagId:c,hash:d,isIntersectionEnabled:u}=kt();i.watch(()=>{var f;return(f=e.parsedSpec.tags)==null?void 0:f.length},f=>{var m,g,O;if(!d.value||typeof f!="number"||!e.parsedSpec.tags)return;const p=l();if(p.startsWith("tag")){let y=0;const b=((m=e.parsedSpec.tags)==null?void 0:m.findIndex(S=>c(S)===p))??0,v=d.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((v==null?void 0:v.length)===4){const S=v[2],k="/"+v[3];y=(g=e.parsedSpec.tags[b])==null?void 0:g.operations.findIndex(({httpVerb:$,path:C})=>S===$&&k===C)}const w=e.parsedSpec.tags[b];if(!w)return;w.name!=="default"&&(t.value=p!==d.value&&p.startsWith("tag")),o.value.push({...w,lazyOperations:w.operations.slice(y,y+2)})}else{const y=Object.keys(((O=e.parsedSpec.components)==null?void 0:O.schemas)??{}),[,b]=d.value.toLowerCase().split("/"),v=d.value==="models"?0:y.findIndex(w=>w.toLowerCase()===b);if(v===-1)return;s.value=y.slice(v,v+3)}},{immediate:!0});const h=Dh.on(({id:f})=>{const p=d.value;!p||f!==p||(h(),setTimeout(()=>{Zf(p),n.value=!1,setTimeout(()=>u.value=!0,1e3)},300))});return i.onMounted(()=>{d.value||setTimeout(()=>u.value=!0,1e3)}),(f,p)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["references-loading",{"references-loading-hidden-tag":t.value,"references-loading-top-spacer":o.value.length}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,m=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:m.id},[m.operations&&m.operations.length>0?(i.openBlock(),i.createBlock(i.unref(Ek),{key:0,spec:f.parsedSpec,tag:m},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m.lazyOperations,g=>(i.openBlock(),i.createBlock(i.unref(Tk),{key:`${g.httpVerb}-${g.operationId}`,operation:g,server:f.server,tag:m},null,8,["operation","server","tag"]))),128))]),_:2},1032,["spec","tag"])):i.createCommentVNode("",!0)],64))),128)),s.value.length?(i.openBlock(),i.createBlock(i.unref(ka),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,m=>(i.openBlock(),i.createBlock(i.unref(Is),{key:m,label:m},{default:i.withCtx(()=>{var g,O;return[(O=(g=f.parsedSpec.components)==null?void 0:g.schemas)!=null&&O[m]?(i.openBlock(),i.createBlock(i.unref(js),{key:0},{default:i.withCtx(()=>{var y,b;return[i.createVNode(i.unref(Bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(Zn),{id:i.unref(a)(m)},{default:i.withCtx(()=>{var v,w;return[i.createTextVNode(i.toDisplayString(((w=(v=f.parsedSpec.components)==null?void 0:v.schemas)==null?void 0:w[m]).title??m),1)]}),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(ao),{name:m,noncollapsible:"",value:(b=(y=f.parsedSpec.components)==null?void 0:y.schemas)==null?void 0:b[m]},null,8,["name","value"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):i.createCommentVNode("",!0)],2)),[[i.vShow,n.value]])}}),aW=r=>(i.pushScopeId("data-v-0b6d2ba2"),r=r(),i.popScopeId(),r),lW=aW(()=>i.createElementVNode("div",{id:"models"},null,-1)),cW=i.defineComponent({__name:"Models",props:{components:{}},setup(r){const e=r,{collapsedSidebarItems:t}=en(),{getModelId:n}=kt(),o=i.computed(()=>{var a;return Object.keys(((a=e.components)==null?void 0:a.schemas)??{}).length<=3||t[n()]}),s=i.computed(()=>{var l;const a=Object.keys(((l=e.components)==null?void 0:l.schemas)??{});return o.value?a:a.slice(0,3)});return(a,l)=>a.components?(i.openBlock(),i.createBlock(i.unref(ka),{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(pc),{id:"models",isLazy:!1},{default:i.withCtx(()=>[lW]),_:1}),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(c,d)=>(i.openBlock(),i.createBlock(i.unref(pc),{id:i.unref(n)(c),key:c,isLazy:""},{default:i.withCtx(()=>[i.createVNode(i.unref(Is),{id:i.unref(n)(c),label:c},{default:i.withCtx(()=>{var u,h;return[(h=(u=a.components)==null?void 0:u.schemas)!=null&&h[c]?(i.openBlock(),i.createBlock(i.unref(js),{key:0},{default:i.withCtx(()=>{var f,p;return[i.createVNode(i.unref(Bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(Zn),{id:i.unref(n)(c)},{default:i.withCtx(()=>{var m,g;return[i.createTextVNode(i.toDisplayString(((g=(m=a.components)==null?void 0:m.schemas)==null?void 0:g[c]).title??c),1)]}),_:2},1032,["id"])]),_:2},1024),i.createVNode(i.unref(ao),{name:c,noncollapsible:"",value:(p=(f=a.components)==null?void 0:f.schemas)==null?void 0:p[c]},null,8,["name","value"]),!o.value&&d===s.value.length-1?(i.openBlock(),i.createBlock(Qk,{key:0,id:i.unref(n)(),class:"something-special"},null,8,["id"])):i.createCommentVNode("",!0)]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),dW=X(cW,[["__scopeId","data-v-0b6d2ba2"]]),uW={key:0,class:"properties"},hW={key:1},fW=i.defineComponent({__name:"ModelsAccordion",props:{components:{}},setup(r){const e=r,t=i.computed(()=>{var o,s;return(o=e.components)!=null&&o.schemas?Object.entries((s=e.components)==null?void 0:s.schemas).map(([a,l])=>({name:a,schema:l})):[]}),{getModelId:n}=kt();return(o,s)=>o.components?(i.openBlock(),i.createBlock(i.unref(kk),{key:0,class:"reference-models"},{title:i.withCtx(()=>[i.createVNode(i.unref(Bn),{level:2},{default:i.withCtx(()=>[i.createTextVNode("Models")]),_:1})]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,({name:a,schema:l})=>(i.openBlock(),i.createBlock(i.unref(wk),{id:i.unref(n)(a),key:a,label:a},{title:i.withCtx(()=>[i.createVNode(i.unref(Zn),{id:i.unref(n)(a),class:"reference-models-anchor"},{default:i.withCtx(()=>[i.createVNode(i.unref(Pk),{class:"reference-models-label",name:a,value:l},null,8,["name","value"])]),_:2},1032,["id"])]),default:i.withCtx(()=>[l!=null&&l.properties?(i.openBlock(),i.createElementBlock("div",uW,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(l.properties),([c,d])=>(i.openBlock(),i.createBlock(i.unref(Ki),{key:c,name:c,required:l.required&&!!l.required.length&&l.required.includes(c),value:d},null,8,["name","required","value"]))),128))])):(i.openBlock(),i.createElementBlock("div",hW,[i.createVNode(i.unref(Ki),{value:l},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):i.createCommentVNode("",!0)}}),pW=X(fW,[["__scopeId","data-v-45255c49"]]),mW=i.defineComponent({__name:"Webhook",props:{webhook:{}},setup(r){const e=r,{responses:t}=Fp(e.webhook);return(n,o)=>{var s;return n.webhook?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(em,{requestBody:(s=n.webhook.information)==null?void 0:s.requestBody},{title:i.withCtx(()=>[i.createTextVNode("Payload")]),_:1},8,["requestBody"]),i.createVNode(nr,{parameters:i.unref(t)},{title:i.withCtx(()=>[i.createTextVNode("Responses")]),_:1},8,["parameters"])],64)):i.createCommentVNode("",!0)}}}),gW=i.defineComponent({__name:"Webhooks",props:{webhooks:{}},setup(r){const e=r,t=i.computed(()=>Object.keys(e.webhooks??{})),{getWebhookId:n}=kt();return(o,s)=>t.value.length?(i.openBlock(),i.createBlock(i.unref(ka),{key:0},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.value,a=>{var l;return i.openBlock(),i.createElementBlock(i.Fragment,{key:a},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.keys((l=o.webhooks)==null?void 0:l[a]),c=>(i.openBlock(),i.createBlock(i.unref(Is),{id:i.unref(n)(a,c),key:c,label:a},{default:i.withCtx(()=>{var d;return[(d=o.webhooks)!=null&&d[a]?(i.openBlock(),i.createBlock(i.unref(js),{key:0},{default:i.withCtx(()=>{var u,h;return[i.createVNode(i.unref(Bn),{level:2},{default:i.withCtx(()=>[i.createVNode(i.unref(Zn),{id:i.unref(n)(a,c)},{default:i.withCtx(()=>{var f;return[i.createTextVNode(i.toDisplayString((f=o.webhooks[a][c])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=o.webhooks[a][c])!=null&&u.description?(i.openBlock(),i.createBlock(i.unref(Kt),{key:0,value:(h=o.webhooks[a][c])==null?void 0:h.description},null,8,["value"])):i.createCommentVNode("",!0),i.createVNode(mW,{webhook:o.webhooks[a][c]},null,8,["webhook"])]}),_:2},1024)):i.createCommentVNode("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):i.createCommentVNode("",!0)}}),OW=i.createStaticVNode('<div class="section-flare" data-v-8a075016><div class="section-flare-item" data-v-8a075016></div><div class="section-flare-item" data-v-8a075016></div><div class="section-flare-item" data-v-8a075016></div><div class="section-flare-item" data-v-8a075016></div><div class="section-flare-item" data-v-8a075016></div><div class="section-flare-item" data-v-8a075016></div><div class="section-flare-item" data-v-8a075016></div><div class="section-flare-item" data-v-8a075016></div></div>',1),yW={class:"narrow-references-container"},bW=i.defineComponent({__name:"Content",props:{parsedSpec:{},layout:{}},setup(r){const e=r,{getOperationId:t,getTagId:n}=kt(),o=bq(()=>({url:window.location.origin})),s=i.computed(()=>{var u;return e.parsedSpec.servers&&e.parsedSpec.servers.length>0?e.parsedSpec.servers:e.parsedSpec.host&&e.parsedSpec.schemes&&e.parsedSpec.schemes.length>0?[{url:`${e.parsedSpec.schemes[0]}://${e.parsedSpec.host}${((u=e.parsedSpec)==null?void 0:u.basePath)??""}`}]:o.value?[o.value]:[{url:""}]}),a=i.computed(()=>e.layout==="accordion"?sW:Ek),l=i.computed(()=>e.layout==="accordion"?G7:Tk),c=i.computed(()=>e.layout==="accordion"?"after":"aside"),d=e.layout!=="accordion"&&typeof window<"u"&&!window.location.hash.startsWith("#model");return(u,h)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[OW,i.createElementVNode("div",yW,[i.renderSlot(u.$slots,"start",{},void 0,!0),i.createVNode(i.unref(iW),{layout:u.layout,parsedSpec:u.parsedSpec,server:s.value[0]},null,8,["layout","parsedSpec","server"]),u.parsedSpec.info.title||u.parsedSpec.info.description?(i.openBlock(),i.createBlock(i.unref(eX),{key:0,info:u.parsedSpec.info,parsedSpec:u.parsedSpec},{[c.value]:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["introduction-cards",{"introduction-cards-row":u.layout==="accordion"}])},[i.createVNode(i.unref(n8),{value:s.value},null,8,["value"]),i.createVNode(i.unref(w8)),i.createVNode(i.unref(IM),{parsedSpec:u.parsedSpec},null,8,["parsedSpec"])],2)]),_:2},1032,["info","parsedSpec"])):i.renderSlot(u.$slots,"empty-state",{key:1},void 0,!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.parsedSpec.tags,f=>(i.openBlock(),i.createBlock(i.unref(pc),{id:i.unref(n)(f),key:i.unref(n)(f),isLazy:i.unref(d)},{default:i.withCtx(()=>[f.operations&&f.operations.length>0?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{key:0,id:i.unref(n)(f),spec:u.parsedSpec,tag:f},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.operations,(p,m)=>(i.openBlock(),i.createBlock(i.unref(pc),{id:i.unref(t)(p,f),key:`${p.httpVerb}-${p.operationId}`,isLazy:m>0},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(l.value),{id:i.unref(t)(p,f),operation:p,server:s.value[0],tag:f},null,8,["id","operation","server","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"])):i.createCommentVNode("",!0)]),_:2},1032,["id","isLazy"]))),128)),u.parsedSpec.webhooks?(i.openBlock(),i.createBlock(i.unref(gW),{key:2,webhooks:u.parsedSpec.webhooks},null,8,["webhooks"])):i.createCommentVNode("",!0),i.unref(Bf)(u.parsedSpec)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[u.layout==="accordion"?(i.openBlock(),i.createBlock(i.unref(pW),{key:0,components:u.parsedSpec.components},null,8,["components"])):(i.openBlock(),i.createBlock(i.unref(dW),{key:1,components:u.parsedSpec.components},null,8,["components"]))],64)):i.createCommentVNode("",!0),i.renderSlot(u.$slots,"end",{},void 0,!0)])],64))}}),Nk=X(bW,[["__scopeId","data-v-8a075016"]]),vW=`{
|
|
246
|
+
"openapi": "3.0.2",
|
|
247
|
+
"info": {
|
|
248
|
+
"title": "Swagger Petstore - OpenAPI 3.0",
|
|
249
|
+
"description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\\n\\nSome useful links:\\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)",
|
|
250
|
+
"termsOfService": "http://swagger.io/terms/",
|
|
251
|
+
"contact": {
|
|
252
|
+
"email": "apiteam@swagger.io"
|
|
253
|
+
},
|
|
254
|
+
"license": {
|
|
255
|
+
"name": "Apache 2.0",
|
|
256
|
+
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
257
|
+
},
|
|
258
|
+
"version": "1.0.11"
|
|
259
|
+
},
|
|
260
|
+
"externalDocs": {
|
|
261
|
+
"description": "Find out more about Swagger",
|
|
262
|
+
"url": "http://swagger.io"
|
|
263
|
+
},
|
|
264
|
+
"servers": [
|
|
265
|
+
{
|
|
266
|
+
"url": "https://petstore3.swagger.io/api/v3"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"tags": [
|
|
270
|
+
{
|
|
271
|
+
"name": "pet",
|
|
272
|
+
"description": "Everything about your Pets",
|
|
273
|
+
"externalDocs": {
|
|
274
|
+
"description": "Find out more",
|
|
275
|
+
"url": "http://swagger.io"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "store",
|
|
280
|
+
"description": "Access to Petstore orders",
|
|
281
|
+
"externalDocs": {
|
|
282
|
+
"description": "Find out more about our store",
|
|
283
|
+
"url": "http://swagger.io"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "user",
|
|
288
|
+
"description": "Operations about user"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"paths": {
|
|
292
|
+
"/pet": {
|
|
293
|
+
"put": {
|
|
294
|
+
"tags": ["pet"],
|
|
295
|
+
"summary": "Update an existing pet",
|
|
296
|
+
"description": "Update an existing pet by Id",
|
|
297
|
+
"operationId": "updatePet",
|
|
298
|
+
"requestBody": {
|
|
299
|
+
"description": "Update an existent pet in the store",
|
|
300
|
+
"content": {
|
|
301
|
+
"application/json": {
|
|
302
|
+
"schema": {
|
|
303
|
+
"$ref": "#/components/schemas/Pet"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"application/xml": {
|
|
307
|
+
"schema": {
|
|
308
|
+
"$ref": "#/components/schemas/Pet"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"application/x-www-form-urlencoded": {
|
|
312
|
+
"schema": {
|
|
313
|
+
"$ref": "#/components/schemas/Pet"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"required": true
|
|
318
|
+
},
|
|
319
|
+
"responses": {
|
|
320
|
+
"200": {
|
|
321
|
+
"description": "Successful operation",
|
|
322
|
+
"content": {
|
|
323
|
+
"application/xml": {
|
|
324
|
+
"schema": {
|
|
325
|
+
"$ref": "#/components/schemas/Pet"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"application/json": {
|
|
329
|
+
"schema": {
|
|
330
|
+
"$ref": "#/components/schemas/Pet"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"400": {
|
|
336
|
+
"description": "Invalid ID supplied"
|
|
337
|
+
},
|
|
338
|
+
"404": {
|
|
339
|
+
"description": "Pet not found"
|
|
340
|
+
},
|
|
341
|
+
"405": {
|
|
342
|
+
"description": "Validation exception"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"security": [
|
|
346
|
+
{
|
|
347
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
"post": {
|
|
352
|
+
"tags": ["pet"],
|
|
353
|
+
"summary": "Add a new pet to the store",
|
|
354
|
+
"description": "Add a new pet to the store",
|
|
355
|
+
"operationId": "addPet",
|
|
356
|
+
"requestBody": {
|
|
357
|
+
"description": "Create a new pet in the store",
|
|
358
|
+
"content": {
|
|
359
|
+
"application/json": {
|
|
360
|
+
"schema": {
|
|
361
|
+
"$ref": "#/components/schemas/Pet"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"application/xml": {
|
|
365
|
+
"schema": {
|
|
366
|
+
"$ref": "#/components/schemas/Pet"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"application/x-www-form-urlencoded": {
|
|
370
|
+
"schema": {
|
|
371
|
+
"$ref": "#/components/schemas/Pet"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"required": true
|
|
376
|
+
},
|
|
377
|
+
"responses": {
|
|
378
|
+
"200": {
|
|
379
|
+
"description": "Successful operation",
|
|
380
|
+
"content": {
|
|
381
|
+
"application/xml": {
|
|
382
|
+
"schema": {
|
|
383
|
+
"$ref": "#/components/schemas/Pet"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"application/json": {
|
|
387
|
+
"schema": {
|
|
388
|
+
"$ref": "#/components/schemas/Pet"
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"405": {
|
|
394
|
+
"description": "Invalid input"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"security": [
|
|
398
|
+
{
|
|
399
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"/pet/findByStatus": {
|
|
405
|
+
"get": {
|
|
406
|
+
"tags": ["pet"],
|
|
407
|
+
"summary": "Finds Pets by status",
|
|
408
|
+
"description": "Multiple status values can be provided with comma separated strings",
|
|
409
|
+
"operationId": "findPetsByStatus",
|
|
410
|
+
"parameters": [
|
|
411
|
+
{
|
|
412
|
+
"name": "status",
|
|
413
|
+
"in": "query",
|
|
414
|
+
"description": "Status values that need to be considered for filter",
|
|
415
|
+
"required": false,
|
|
416
|
+
"explode": true,
|
|
417
|
+
"schema": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"default": "available",
|
|
420
|
+
"enum": ["available", "pending", "sold"]
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"responses": {
|
|
425
|
+
"200": {
|
|
426
|
+
"description": "successful operation",
|
|
427
|
+
"content": {
|
|
428
|
+
"application/xml": {
|
|
429
|
+
"schema": {
|
|
430
|
+
"type": "array",
|
|
431
|
+
"items": {
|
|
432
|
+
"$ref": "#/components/schemas/Pet"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"application/json": {
|
|
437
|
+
"schema": {
|
|
438
|
+
"type": "array",
|
|
439
|
+
"items": {
|
|
440
|
+
"$ref": "#/components/schemas/Pet"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"400": {
|
|
447
|
+
"description": "Invalid status value"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"security": [
|
|
451
|
+
{
|
|
452
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
453
|
+
}
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"/pet/findByTags": {
|
|
458
|
+
"get": {
|
|
459
|
+
"tags": ["pet"],
|
|
460
|
+
"summary": "Finds Pets by tags",
|
|
461
|
+
"description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
|
|
462
|
+
"operationId": "findPetsByTags",
|
|
463
|
+
"parameters": [
|
|
464
|
+
{
|
|
465
|
+
"name": "tags",
|
|
466
|
+
"in": "query",
|
|
467
|
+
"description": "Tags to filter by",
|
|
468
|
+
"required": false,
|
|
469
|
+
"explode": true,
|
|
470
|
+
"schema": {
|
|
471
|
+
"type": "array",
|
|
472
|
+
"items": {
|
|
473
|
+
"type": "string"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"responses": {
|
|
479
|
+
"200": {
|
|
480
|
+
"description": "successful operation",
|
|
481
|
+
"content": {
|
|
482
|
+
"application/xml": {
|
|
483
|
+
"schema": {
|
|
484
|
+
"type": "array",
|
|
485
|
+
"items": {
|
|
486
|
+
"$ref": "#/components/schemas/Pet"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"application/json": {
|
|
491
|
+
"schema": {
|
|
492
|
+
"type": "array",
|
|
493
|
+
"items": {
|
|
494
|
+
"$ref": "#/components/schemas/Pet"
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"400": {
|
|
501
|
+
"description": "Invalid tag value"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"security": [
|
|
505
|
+
{
|
|
506
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"/pet/{petId}": {
|
|
512
|
+
"get": {
|
|
513
|
+
"tags": ["pet"],
|
|
514
|
+
"summary": "Find pet by ID",
|
|
515
|
+
"description": "Returns a single pet",
|
|
516
|
+
"operationId": "getPetById",
|
|
517
|
+
"parameters": [
|
|
518
|
+
{
|
|
519
|
+
"name": "petId",
|
|
520
|
+
"in": "path",
|
|
521
|
+
"description": "ID of pet to return",
|
|
522
|
+
"required": true,
|
|
523
|
+
"schema": {
|
|
524
|
+
"type": "integer",
|
|
525
|
+
"format": "int64"
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"responses": {
|
|
530
|
+
"200": {
|
|
531
|
+
"description": "successful operation",
|
|
532
|
+
"content": {
|
|
533
|
+
"application/xml": {
|
|
534
|
+
"schema": {
|
|
535
|
+
"$ref": "#/components/schemas/Pet"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
"application/json": {
|
|
539
|
+
"schema": {
|
|
540
|
+
"$ref": "#/components/schemas/Pet"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"400": {
|
|
546
|
+
"description": "Invalid ID supplied"
|
|
547
|
+
},
|
|
548
|
+
"404": {
|
|
549
|
+
"description": "Pet not found"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"security": [
|
|
553
|
+
{
|
|
554
|
+
"api_key": []
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
558
|
+
}
|
|
559
|
+
]
|
|
560
|
+
},
|
|
561
|
+
"post": {
|
|
562
|
+
"tags": ["pet"],
|
|
563
|
+
"summary": "Updates a pet in the store with form data",
|
|
564
|
+
"description": "",
|
|
565
|
+
"operationId": "updatePetWithForm",
|
|
566
|
+
"parameters": [
|
|
567
|
+
{
|
|
568
|
+
"name": "petId",
|
|
569
|
+
"in": "path",
|
|
570
|
+
"description": "ID of pet that needs to be updated",
|
|
571
|
+
"required": true,
|
|
572
|
+
"schema": {
|
|
573
|
+
"type": "integer",
|
|
574
|
+
"format": "int64"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "name",
|
|
579
|
+
"in": "query",
|
|
580
|
+
"description": "Name of pet that needs to be updated",
|
|
581
|
+
"schema": {
|
|
582
|
+
"type": "string"
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "status",
|
|
587
|
+
"in": "query",
|
|
588
|
+
"description": "Status of pet that needs to be updated",
|
|
589
|
+
"schema": {
|
|
590
|
+
"type": "string"
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"responses": {
|
|
595
|
+
"405": {
|
|
596
|
+
"description": "Invalid input"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"security": [
|
|
600
|
+
{
|
|
601
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
602
|
+
}
|
|
603
|
+
]
|
|
604
|
+
},
|
|
605
|
+
"delete": {
|
|
606
|
+
"tags": ["pet"],
|
|
607
|
+
"summary": "Deletes a pet",
|
|
608
|
+
"description": "",
|
|
609
|
+
"operationId": "deletePet",
|
|
610
|
+
"parameters": [
|
|
611
|
+
{
|
|
612
|
+
"name": "api_key",
|
|
613
|
+
"in": "header",
|
|
614
|
+
"description": "",
|
|
615
|
+
"required": false,
|
|
616
|
+
"schema": {
|
|
617
|
+
"type": "string"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "petId",
|
|
622
|
+
"in": "path",
|
|
623
|
+
"description": "Pet id to delete",
|
|
624
|
+
"required": true,
|
|
625
|
+
"schema": {
|
|
626
|
+
"type": "integer",
|
|
627
|
+
"format": "int64"
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
],
|
|
631
|
+
"responses": {
|
|
632
|
+
"400": {
|
|
633
|
+
"description": "Invalid pet value"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
"security": [
|
|
637
|
+
{
|
|
638
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
639
|
+
}
|
|
640
|
+
]
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"/pet/{petId}/uploadImage": {
|
|
644
|
+
"post": {
|
|
645
|
+
"tags": ["pet"],
|
|
646
|
+
"summary": "uploads an image",
|
|
647
|
+
"description": "",
|
|
648
|
+
"operationId": "uploadFile",
|
|
649
|
+
"parameters": [
|
|
650
|
+
{
|
|
651
|
+
"name": "petId",
|
|
652
|
+
"in": "path",
|
|
653
|
+
"description": "ID of pet to update",
|
|
654
|
+
"required": true,
|
|
655
|
+
"schema": {
|
|
656
|
+
"type": "integer",
|
|
657
|
+
"format": "int64"
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"name": "additionalMetadata",
|
|
662
|
+
"in": "query",
|
|
663
|
+
"description": "Additional Metadata",
|
|
664
|
+
"required": false,
|
|
665
|
+
"schema": {
|
|
666
|
+
"type": "string"
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
"requestBody": {
|
|
671
|
+
"content": {
|
|
672
|
+
"application/octet-stream": {
|
|
673
|
+
"schema": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"format": "binary"
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"responses": {
|
|
681
|
+
"200": {
|
|
682
|
+
"description": "successful operation",
|
|
683
|
+
"content": {
|
|
684
|
+
"application/json": {
|
|
685
|
+
"schema": {
|
|
686
|
+
"$ref": "#/components/schemas/ApiResponse"
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"security": [
|
|
693
|
+
{
|
|
694
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
695
|
+
}
|
|
696
|
+
]
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"/pet/{petId}/uploadImageForm": {
|
|
700
|
+
"post": {
|
|
701
|
+
"tags": ["pet"],
|
|
702
|
+
"summary": "uploads an image using form data",
|
|
703
|
+
"description": "",
|
|
704
|
+
"operationId": "uploadFileForm",
|
|
705
|
+
"requestBody": {
|
|
706
|
+
"content": {
|
|
707
|
+
"multipart/form-data": {
|
|
708
|
+
"schema": {
|
|
709
|
+
"type": "object",
|
|
710
|
+
"properties": {
|
|
711
|
+
"petId": {
|
|
712
|
+
"type": "string",
|
|
713
|
+
"example": "1"
|
|
714
|
+
},
|
|
715
|
+
"additionalMetadata": {
|
|
716
|
+
"type": "string"
|
|
717
|
+
},
|
|
718
|
+
"file": {
|
|
719
|
+
"type": "string",
|
|
720
|
+
"format": "binary"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"required": ["petId"]
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"responses": {
|
|
729
|
+
"200": {
|
|
730
|
+
"description": "successful operation",
|
|
731
|
+
"content": {
|
|
732
|
+
"application/json": {
|
|
733
|
+
"schema": {
|
|
734
|
+
"$ref": "#/components/schemas/ApiResponse"
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
"security": [
|
|
741
|
+
{
|
|
742
|
+
"petstore_auth": ["write:pets", "read:pets"]
|
|
743
|
+
}
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
"/store/inventory": {
|
|
748
|
+
"get": {
|
|
749
|
+
"tags": ["store"],
|
|
750
|
+
"summary": "Returns pet inventories by status",
|
|
751
|
+
"description": "Returns a map of status codes to quantities",
|
|
752
|
+
"operationId": "getInventory",
|
|
753
|
+
"responses": {
|
|
754
|
+
"200": {
|
|
755
|
+
"description": "successful operation",
|
|
756
|
+
"content": {
|
|
757
|
+
"application/json": {
|
|
758
|
+
"schema": {
|
|
759
|
+
"type": "object",
|
|
760
|
+
"additionalProperties": {
|
|
761
|
+
"type": "integer",
|
|
762
|
+
"format": "int32"
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"security": [
|
|
770
|
+
{
|
|
771
|
+
"api_key": []
|
|
772
|
+
}
|
|
773
|
+
]
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"/store/order": {
|
|
777
|
+
"post": {
|
|
778
|
+
"tags": ["store"],
|
|
779
|
+
"summary": "Place an order for a pet",
|
|
780
|
+
"description": "Place a new order in the store",
|
|
781
|
+
"operationId": "placeOrder",
|
|
782
|
+
"requestBody": {
|
|
783
|
+
"content": {
|
|
784
|
+
"application/json": {
|
|
785
|
+
"schema": {
|
|
786
|
+
"$ref": "#/components/schemas/Order"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"application/xml": {
|
|
790
|
+
"schema": {
|
|
791
|
+
"$ref": "#/components/schemas/Order"
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
"application/x-www-form-urlencoded": {
|
|
795
|
+
"schema": {
|
|
796
|
+
"$ref": "#/components/schemas/Order"
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"responses": {
|
|
802
|
+
"200": {
|
|
803
|
+
"description": "successful operation",
|
|
804
|
+
"content": {
|
|
805
|
+
"application/json": {
|
|
806
|
+
"schema": {
|
|
807
|
+
"$ref": "#/components/schemas/Order"
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"405": {
|
|
813
|
+
"description": "Invalid input"
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"/store/order/{orderId}": {
|
|
819
|
+
"get": {
|
|
820
|
+
"tags": ["store"],
|
|
821
|
+
"summary": "Find purchase order by ID",
|
|
822
|
+
"description": "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.",
|
|
823
|
+
"operationId": "getOrderById",
|
|
824
|
+
"parameters": [
|
|
825
|
+
{
|
|
826
|
+
"name": "orderId",
|
|
827
|
+
"in": "path",
|
|
828
|
+
"description": "ID of order that needs to be fetched",
|
|
829
|
+
"required": true,
|
|
830
|
+
"schema": {
|
|
831
|
+
"type": "integer",
|
|
832
|
+
"format": "int64"
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
],
|
|
836
|
+
"responses": {
|
|
837
|
+
"200": {
|
|
838
|
+
"description": "successful operation",
|
|
839
|
+
"content": {
|
|
840
|
+
"application/xml": {
|
|
841
|
+
"schema": {
|
|
842
|
+
"$ref": "#/components/schemas/Order"
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"application/json": {
|
|
846
|
+
"schema": {
|
|
847
|
+
"$ref": "#/components/schemas/Order"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"400": {
|
|
853
|
+
"description": "Invalid ID supplied"
|
|
854
|
+
},
|
|
855
|
+
"404": {
|
|
856
|
+
"description": "Order not found"
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"delete": {
|
|
861
|
+
"tags": ["store"],
|
|
862
|
+
"summary": "Delete purchase order by ID",
|
|
863
|
+
"description": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
|
|
864
|
+
"operationId": "deleteOrder",
|
|
865
|
+
"parameters": [
|
|
866
|
+
{
|
|
867
|
+
"name": "orderId",
|
|
868
|
+
"in": "path",
|
|
869
|
+
"description": "ID of the order that needs to be deleted",
|
|
870
|
+
"required": true,
|
|
871
|
+
"schema": {
|
|
872
|
+
"type": "integer",
|
|
873
|
+
"format": "int64"
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
"responses": {
|
|
878
|
+
"400": {
|
|
879
|
+
"description": "Invalid ID supplied"
|
|
880
|
+
},
|
|
881
|
+
"404": {
|
|
882
|
+
"description": "Order not found"
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"/user": {
|
|
888
|
+
"post": {
|
|
889
|
+
"tags": ["user"],
|
|
890
|
+
"summary": "Create user",
|
|
891
|
+
"description": "This can only be done by the logged in user.",
|
|
892
|
+
"operationId": "createUser",
|
|
893
|
+
"requestBody": {
|
|
894
|
+
"description": "Created user object",
|
|
895
|
+
"content": {
|
|
896
|
+
"application/json": {
|
|
897
|
+
"schema": {
|
|
898
|
+
"$ref": "#/components/schemas/User"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"application/xml": {
|
|
902
|
+
"schema": {
|
|
903
|
+
"$ref": "#/components/schemas/User"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"application/x-www-form-urlencoded": {
|
|
907
|
+
"schema": {
|
|
908
|
+
"$ref": "#/components/schemas/User"
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
},
|
|
913
|
+
"responses": {
|
|
914
|
+
"default": {
|
|
915
|
+
"description": "successful operation",
|
|
916
|
+
"content": {
|
|
917
|
+
"application/json": {
|
|
918
|
+
"schema": {
|
|
919
|
+
"$ref": "#/components/schemas/User"
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
"application/xml": {
|
|
923
|
+
"schema": {
|
|
924
|
+
"$ref": "#/components/schemas/User"
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
"/user/createWithList": {
|
|
933
|
+
"post": {
|
|
934
|
+
"tags": ["user"],
|
|
935
|
+
"summary": "Creates list of users with given input array",
|
|
936
|
+
"description": "Creates list of users with given input array",
|
|
937
|
+
"operationId": "createUsersWithListInput",
|
|
938
|
+
"requestBody": {
|
|
939
|
+
"content": {
|
|
940
|
+
"application/json": {
|
|
941
|
+
"schema": {
|
|
942
|
+
"type": "array",
|
|
943
|
+
"items": {
|
|
944
|
+
"$ref": "#/components/schemas/User"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
"responses": {
|
|
951
|
+
"200": {
|
|
952
|
+
"description": "Successful operation",
|
|
953
|
+
"content": {
|
|
954
|
+
"application/xml": {
|
|
955
|
+
"schema": {
|
|
956
|
+
"$ref": "#/components/schemas/User"
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
"application/json": {
|
|
960
|
+
"schema": {
|
|
961
|
+
"$ref": "#/components/schemas/User"
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
"default": {
|
|
967
|
+
"description": "successful operation"
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
"/user/login": {
|
|
973
|
+
"get": {
|
|
974
|
+
"tags": ["user"],
|
|
975
|
+
"summary": "Logs user into the system",
|
|
976
|
+
"description": "",
|
|
977
|
+
"operationId": "loginUser",
|
|
978
|
+
"parameters": [
|
|
979
|
+
{
|
|
980
|
+
"name": "username",
|
|
981
|
+
"in": "query",
|
|
982
|
+
"description": "The user name for login",
|
|
983
|
+
"required": false,
|
|
984
|
+
"schema": {
|
|
985
|
+
"type": "string"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"name": "password",
|
|
990
|
+
"in": "query",
|
|
991
|
+
"description": "The password for login in clear text",
|
|
992
|
+
"required": false,
|
|
993
|
+
"schema": {
|
|
994
|
+
"type": "string"
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
],
|
|
998
|
+
"responses": {
|
|
999
|
+
"200": {
|
|
1000
|
+
"description": "successful operation",
|
|
1001
|
+
"headers": {
|
|
1002
|
+
"X-Rate-Limit": {
|
|
1003
|
+
"description": "calls per hour allowed by the user",
|
|
1004
|
+
"schema": {
|
|
1005
|
+
"type": "integer",
|
|
1006
|
+
"format": "int32"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
"X-Expires-After": {
|
|
1010
|
+
"description": "date in UTC when token expires",
|
|
1011
|
+
"schema": {
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"format": "date-time"
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
"content": {
|
|
1018
|
+
"application/xml": {
|
|
1019
|
+
"schema": {
|
|
1020
|
+
"type": "string"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"application/json": {
|
|
1024
|
+
"schema": {
|
|
1025
|
+
"type": "string"
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"400": {
|
|
1031
|
+
"description": "Invalid username/password supplied"
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
"/user/logout": {
|
|
1037
|
+
"get": {
|
|
1038
|
+
"tags": ["user"],
|
|
1039
|
+
"summary": "Logs out current logged in user session",
|
|
1040
|
+
"description": "",
|
|
1041
|
+
"operationId": "logoutUser",
|
|
1042
|
+
"parameters": [],
|
|
1043
|
+
"responses": {
|
|
1044
|
+
"default": {
|
|
1045
|
+
"description": "successful operation"
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"/user/{username}": {
|
|
1051
|
+
"get": {
|
|
1052
|
+
"tags": ["user"],
|
|
1053
|
+
"summary": "Get user by user name",
|
|
1054
|
+
"description": "",
|
|
1055
|
+
"operationId": "getUserByName",
|
|
1056
|
+
"parameters": [
|
|
1057
|
+
{
|
|
1058
|
+
"name": "username",
|
|
1059
|
+
"in": "path",
|
|
1060
|
+
"description": "The name that needs to be fetched. Use user1 for testing. ",
|
|
1061
|
+
"required": true,
|
|
1062
|
+
"schema": {
|
|
1063
|
+
"type": "string"
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
],
|
|
1067
|
+
"responses": {
|
|
1068
|
+
"200": {
|
|
1069
|
+
"description": "successful operation",
|
|
1070
|
+
"content": {
|
|
1071
|
+
"application/xml": {
|
|
1072
|
+
"schema": {
|
|
1073
|
+
"$ref": "#/components/schemas/User"
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
"application/json": {
|
|
1077
|
+
"schema": {
|
|
1078
|
+
"$ref": "#/components/schemas/User"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"400": {
|
|
1084
|
+
"description": "Invalid username supplied"
|
|
1085
|
+
},
|
|
1086
|
+
"404": {
|
|
1087
|
+
"description": "User not found"
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
"put": {
|
|
1092
|
+
"tags": ["user"],
|
|
1093
|
+
"summary": "Update user",
|
|
1094
|
+
"description": "This can only be done by the logged in user.",
|
|
1095
|
+
"operationId": "updateUser",
|
|
1096
|
+
"parameters": [
|
|
1097
|
+
{
|
|
1098
|
+
"name": "username",
|
|
1099
|
+
"in": "path",
|
|
1100
|
+
"description": "name that need to be deleted",
|
|
1101
|
+
"required": true,
|
|
1102
|
+
"schema": {
|
|
1103
|
+
"type": "string"
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
],
|
|
1107
|
+
"requestBody": {
|
|
1108
|
+
"description": "Update an existent user in the store",
|
|
1109
|
+
"content": {
|
|
1110
|
+
"application/json": {
|
|
1111
|
+
"schema": {
|
|
1112
|
+
"$ref": "#/components/schemas/User"
|
|
1113
|
+
}
|
|
1114
|
+
},
|
|
1115
|
+
"application/xml": {
|
|
1116
|
+
"schema": {
|
|
1117
|
+
"$ref": "#/components/schemas/User"
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
"application/x-www-form-urlencoded": {
|
|
1121
|
+
"schema": {
|
|
1122
|
+
"$ref": "#/components/schemas/User"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"responses": {
|
|
1128
|
+
"default": {
|
|
1129
|
+
"description": "successful operation"
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
"delete": {
|
|
1134
|
+
"tags": ["user"],
|
|
1135
|
+
"summary": "Delete user",
|
|
1136
|
+
"description": "This can only be done by the logged in user.",
|
|
1137
|
+
"operationId": "deleteUser",
|
|
1138
|
+
"parameters": [
|
|
1139
|
+
{
|
|
1140
|
+
"name": "username",
|
|
1141
|
+
"in": "path",
|
|
1142
|
+
"description": "The name that needs to be deleted",
|
|
1143
|
+
"required": true,
|
|
1144
|
+
"schema": {
|
|
1145
|
+
"type": "string"
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"responses": {
|
|
1150
|
+
"400": {
|
|
1151
|
+
"description": "Invalid username supplied"
|
|
1152
|
+
},
|
|
1153
|
+
"404": {
|
|
1154
|
+
"description": "User not found"
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
"components": {
|
|
1161
|
+
"schemas": {
|
|
1162
|
+
"Order": {
|
|
1163
|
+
"type": "object",
|
|
1164
|
+
"properties": {
|
|
1165
|
+
"id": {
|
|
1166
|
+
"type": "integer",
|
|
1167
|
+
"format": "int64",
|
|
1168
|
+
"example": 10
|
|
1169
|
+
},
|
|
1170
|
+
"petId": {
|
|
1171
|
+
"type": "integer",
|
|
1172
|
+
"format": "int64",
|
|
1173
|
+
"example": 198772
|
|
1174
|
+
},
|
|
1175
|
+
"quantity": {
|
|
1176
|
+
"type": "integer",
|
|
1177
|
+
"format": "int32",
|
|
1178
|
+
"example": 7
|
|
1179
|
+
},
|
|
1180
|
+
"shipDate": {
|
|
1181
|
+
"type": "string",
|
|
1182
|
+
"format": "date-time"
|
|
1183
|
+
},
|
|
1184
|
+
"status": {
|
|
1185
|
+
"type": "string",
|
|
1186
|
+
"description": "Order Status",
|
|
1187
|
+
"example": "approved",
|
|
1188
|
+
"enum": ["placed", "approved", "delivered"]
|
|
1189
|
+
},
|
|
1190
|
+
"complete": {
|
|
1191
|
+
"type": "boolean"
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
"xml": {
|
|
1195
|
+
"name": "order"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"Customer": {
|
|
1199
|
+
"type": "object",
|
|
1200
|
+
"properties": {
|
|
1201
|
+
"id": {
|
|
1202
|
+
"type": "integer",
|
|
1203
|
+
"format": "int64",
|
|
1204
|
+
"example": 100000
|
|
1205
|
+
},
|
|
1206
|
+
"username": {
|
|
1207
|
+
"type": "string",
|
|
1208
|
+
"example": "fehguy"
|
|
1209
|
+
},
|
|
1210
|
+
"address": {
|
|
1211
|
+
"type": "array",
|
|
1212
|
+
"xml": {
|
|
1213
|
+
"name": "addresses",
|
|
1214
|
+
"wrapped": true
|
|
1215
|
+
},
|
|
1216
|
+
"items": {
|
|
1217
|
+
"$ref": "#/components/schemas/Address"
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
"xml": {
|
|
1222
|
+
"name": "customer"
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
"Address": {
|
|
1226
|
+
"type": "object",
|
|
1227
|
+
"properties": {
|
|
1228
|
+
"street": {
|
|
1229
|
+
"type": "string",
|
|
1230
|
+
"example": "437 Lytton"
|
|
1231
|
+
},
|
|
1232
|
+
"city": {
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
"example": "Palo Alto"
|
|
1235
|
+
},
|
|
1236
|
+
"state": {
|
|
1237
|
+
"type": "string",
|
|
1238
|
+
"example": "CA"
|
|
1239
|
+
},
|
|
1240
|
+
"zip": {
|
|
1241
|
+
"type": "string",
|
|
1242
|
+
"example": "94301"
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
"xml": {
|
|
1246
|
+
"name": "address"
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
"Category": {
|
|
1250
|
+
"type": "object",
|
|
1251
|
+
"properties": {
|
|
1252
|
+
"id": {
|
|
1253
|
+
"type": "integer",
|
|
1254
|
+
"format": "int64",
|
|
1255
|
+
"example": 1
|
|
1256
|
+
},
|
|
1257
|
+
"name": {
|
|
1258
|
+
"type": "string",
|
|
1259
|
+
"example": "Dogs"
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
"xml": {
|
|
1263
|
+
"name": "category"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
"User": {
|
|
1267
|
+
"type": "object",
|
|
1268
|
+
"properties": {
|
|
1269
|
+
"id": {
|
|
1270
|
+
"type": "integer",
|
|
1271
|
+
"format": "int64",
|
|
1272
|
+
"example": 10
|
|
1273
|
+
},
|
|
1274
|
+
"username": {
|
|
1275
|
+
"type": "string",
|
|
1276
|
+
"example": "theUser"
|
|
1277
|
+
},
|
|
1278
|
+
"firstName": {
|
|
1279
|
+
"type": "string",
|
|
1280
|
+
"example": "John"
|
|
1281
|
+
},
|
|
1282
|
+
"lastName": {
|
|
1283
|
+
"type": "string",
|
|
1284
|
+
"example": "James"
|
|
1285
|
+
},
|
|
1286
|
+
"email": {
|
|
1287
|
+
"type": "string",
|
|
1288
|
+
"example": "john@email.com"
|
|
1289
|
+
},
|
|
1290
|
+
"password": {
|
|
1291
|
+
"type": "string",
|
|
1292
|
+
"example": "12345"
|
|
1293
|
+
},
|
|
1294
|
+
"phone": {
|
|
1295
|
+
"type": "string",
|
|
1296
|
+
"example": "12345"
|
|
1297
|
+
},
|
|
1298
|
+
"userStatus": {
|
|
1299
|
+
"type": "integer",
|
|
1300
|
+
"description": "User Status",
|
|
1301
|
+
"format": "int32",
|
|
1302
|
+
"example": 1
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
"xml": {
|
|
1306
|
+
"name": "user"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
"Tag": {
|
|
1310
|
+
"type": "object",
|
|
1311
|
+
"properties": {
|
|
1312
|
+
"id": {
|
|
1313
|
+
"type": "integer",
|
|
1314
|
+
"format": "int64"
|
|
1315
|
+
},
|
|
1316
|
+
"name": {
|
|
1317
|
+
"type": "string"
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1320
|
+
"xml": {
|
|
1321
|
+
"name": "tag"
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
"Pet": {
|
|
1325
|
+
"required": ["name", "photoUrls"],
|
|
1326
|
+
"type": "object",
|
|
1327
|
+
"properties": {
|
|
1328
|
+
"id": {
|
|
1329
|
+
"type": "integer",
|
|
1330
|
+
"format": "int64",
|
|
1331
|
+
"example": 10
|
|
1332
|
+
},
|
|
1333
|
+
"name": {
|
|
1334
|
+
"type": "string",
|
|
1335
|
+
"example": "doggie"
|
|
1336
|
+
},
|
|
1337
|
+
"category": {
|
|
1338
|
+
"$ref": "#/components/schemas/Category"
|
|
1339
|
+
},
|
|
1340
|
+
"photoUrls": {
|
|
1341
|
+
"type": "array",
|
|
1342
|
+
"xml": {
|
|
1343
|
+
"wrapped": true
|
|
1344
|
+
},
|
|
1345
|
+
"items": {
|
|
1346
|
+
"type": "string",
|
|
1347
|
+
"xml": {
|
|
1348
|
+
"name": "photoUrl"
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
"tags": {
|
|
1353
|
+
"type": "array",
|
|
1354
|
+
"xml": {
|
|
1355
|
+
"wrapped": true
|
|
1356
|
+
},
|
|
1357
|
+
"items": {
|
|
1358
|
+
"$ref": "#/components/schemas/Tag"
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
"status": {
|
|
1362
|
+
"type": "string",
|
|
1363
|
+
"description": "pet status in the store",
|
|
1364
|
+
"enum": ["available", "pending", "sold"]
|
|
1365
|
+
}
|
|
1366
|
+
},
|
|
1367
|
+
"xml": {
|
|
1368
|
+
"name": "pet"
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
"ApiResponse": {
|
|
1372
|
+
"type": "object",
|
|
1373
|
+
"properties": {
|
|
1374
|
+
"code": {
|
|
1375
|
+
"type": "integer",
|
|
1376
|
+
"format": "int32"
|
|
1377
|
+
},
|
|
1378
|
+
"type": {
|
|
1379
|
+
"type": "string"
|
|
1380
|
+
},
|
|
1381
|
+
"message": {
|
|
1382
|
+
"type": "string"
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
"xml": {
|
|
1386
|
+
"name": "##default"
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
"requestBodies": {
|
|
1391
|
+
"Pet": {
|
|
1392
|
+
"description": "Pet object that needs to be added to the store",
|
|
1393
|
+
"content": {
|
|
1394
|
+
"application/json": {
|
|
1395
|
+
"schema": {
|
|
1396
|
+
"$ref": "#/components/schemas/Pet"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"application/xml": {
|
|
1400
|
+
"schema": {
|
|
1401
|
+
"$ref": "#/components/schemas/Pet"
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
"UserArray": {
|
|
1407
|
+
"description": "List of user object",
|
|
1408
|
+
"content": {
|
|
1409
|
+
"application/json": {
|
|
1410
|
+
"schema": {
|
|
1411
|
+
"type": "array",
|
|
1412
|
+
"items": {
|
|
1413
|
+
"$ref": "#/components/schemas/User"
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"securitySchemes": {
|
|
1421
|
+
"petstore_auth": {
|
|
1422
|
+
"type": "oauth2",
|
|
1423
|
+
"flows": {
|
|
1424
|
+
"implicit": {
|
|
1425
|
+
"authorizationUrl": "https://petstore3.swagger.io/oauth/authorize",
|
|
1426
|
+
"scopes": {
|
|
1427
|
+
"write:pets": "modify pets in your account",
|
|
1428
|
+
"read:pets": "read your pets"
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
"api_key": {
|
|
1434
|
+
"type": "apiKey",
|
|
1435
|
+
"name": "api_key",
|
|
1436
|
+
"in": "header"
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
`,wW=r=>(i.pushScopeId("data-v-41b80963"),r=r(),i.popScopeId(),r),kW={class:"start custom-scroll"},SW={class:"start-copy"},$W=i.createStaticVNode('<div class="start-logo" data-v-41b80963><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-41b80963><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-41b80963></path></svg></div><h1 class="start-h1" data-v-41b80963>Swagger Editor</h1><p class="start-p" data-v-41b80963> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),PW={class:"start-cta"},xW={class:"start-row"},_W=i.createStaticVNode('<div class="start-section" data-v-41b80963><div class="start-h2" data-v-41b80963>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-41b80963><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-41b80963><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-41b80963></path></svg><span data-v-41b80963>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-41b80963><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-41b80963><g data-v-41b80963><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-41b80963></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-41b80963></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-41b80963></path></g></svg><span data-v-41b80963>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-41b80963><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-41b80963><g fill="currentColor" fill-rule="nonzero" data-v-41b80963><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-41b80963></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-41b80963></polygon></g></svg><span data-v-41b80963>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-41b80963><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-41b80963><g fill="none" fill-rule="evenodd" data-v-41b80963><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-41b80963></circle><g stroke="currentColor" data-v-41b80963><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-41b80963></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-41b80963></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-41b80963></ellipse></g></g></svg><span data-v-41b80963>React</span></a></div>',1),CW={class:"start-section start-section-colors"},TW=wW(()=>i.createElementVNode("p",{class:"start-h2"},"THEMING",-1)),QW=["onClick"],EW=i.createStaticVNode('<p class="start-h1" data-v-41b80963>Features</p><ul class="start-ul" data-v-41b80963><li data-v-41b80963><p class="start-h3" data-v-41b80963>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-41b80963><p class="start-h3" data-v-41b80963>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-41b80963><p class="start-h3" data-v-41b80963>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-41b80963><p class="start-h3" data-v-41b80963>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-41b80963><p class="start-h3" data-v-41b80963>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-41b80963><p class="start-h3" data-v-41b80963>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),NW=i.defineComponent({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(r,{emit:e}){const t=e,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];function o(){t("updateContent",vW)}return(s,a)=>(i.openBlock(),i.createElementBlock("div",kW,[i.createElementVNode("div",SW,[$W,i.createElementVNode("div",PW,[i.createVNode(i.unref(TO),{fullWidth:"",onClick:o},{default:i.withCtx(()=>[i.createTextVNode(" Test Petstore ")]),_:1}),i.createVNode(i.unref(TO),{fullWidth:"",variant:"outlined",onClick:a[0]||(a[0]=l=>s.$emit("loadSwaggerFile"))},{default:i.withCtx(()=>[i.createTextVNode(" Upload File ")]),_:1})])]),i.createElementVNode("div",xW,[_W,i.createElementVNode("div",CW,[TW,(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,l=>i.createElementVNode("div",{key:l,class:i.normalizeClass(["start-item",{"start-item-active":l===s.theme}]),onClick:c=>s.$emit("changeTheme",l)},i.toDisplayString(l.toLocaleLowerCase()),11,QW)),64))])]),EW]))}}),Ak=X(NW,[["__scopeId","data-v-41b80963"]]),AW={class:"references-header"},VW={class:"references-navigation t-doc__sidebar"},RW={class:"references-navigation-list"},BW={class:"references-editor"},ZW={class:"references-editor-textarea"},IW={class:"references-rendered"},jW={key:0,class:"references-footer"},DW=i.defineComponent({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(r){const e=r,t=Xe.useMediaQuery("(min-width: 1150px)"),n=i.ref(0),o=i.ref(null);Xe.useResizeObserver(o,m=>{n.value=m[0].contentRect.height});const{breadcrumb:s,setCollapsedSidebarItem:a}=en(),{enableHashListener:l,getSectionId:c,getTagId:d,hash:u}=kt();l(),i.onMounted(()=>{var O,y;u.value||(O=document.querySelector("#tippy"))==null||O.scrollTo({top:0,left:0});const m=(y=e.parsedSpec.tags)==null?void 0:y[0];let g=null;u.value?g=c(u.value):m&&(g=d(m)),g&&a(g,!0),Up.on(()=>ak(e.rawSpec))});const h=i.computed(()=>t.value||!e.configuration.isEditable),f=Xe.useDebounceFn(m=>{(m.target.scrollTop??0)<50&&(window.history.replaceState({},"",window.location.pathname+window.location.search),u.value="")}),p=i.computed(()=>({breadcrumb:s.value,spec:e.parsedSpec}));return i.provide(Qc,()=>e.parsedSpec.security),(m,g)=>{var O;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(M0),{id:(O=m.configuration)==null?void 0:O.theme},null,8,["id"]),i.createVNode(i.unref(W0),null,{default:i.withCtx(({styles:y})=>[i.createVNode(i.unref(SS),null,{default:i.withCtx(({styles:b})=>{var v,w;return[i.createElementVNode("div",{ref_key:"documentEl",ref:o,class:i.normalizeClass(["scalar-api-reference references-layout",[{"references-editable":m.configuration.isEditable,"references-sidebar":m.configuration.showSidebar,"references-classic":m.configuration.layout==="classic"},y,b,m.$attrs.class]]),style:i.normalizeStyle({"--full-height":`${n.value}px`}),onScrollPassive:g[4]||(g[4]=(...S)=>i.unref(f)&&i.unref(f)(...S))},[i.createElementVNode("div",AW,[i.renderSlot(m.$slots,"header",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)]),i.withDirectives(i.createElementVNode("aside",VW,[i.createElementVNode("div",RW,[i.createVNode(i.unref(fc),{parsedSpec:m.parsedSpec},{"sidebar-start":i.withCtx(()=>[i.renderSlot(m.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(m.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)]),_:3},8,["parsedSpec"])])],512),[[i.vShow,m.configuration.showSidebar]]),i.withDirectives(i.createElementVNode("div",BW,[i.createElementVNode("div",ZW,[i.renderSlot(m.$slots,"editor",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)])],512),[[i.vShow,m.configuration.isEditable]]),h.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",IW,[i.createVNode(i.unref(Nk),{layout:m.configuration.layout==="classic"?"accordion":"default",parsedSpec:m.parsedSpec},i.createSlots({start:i.withCtx(()=>[i.renderSlot(m.$slots,"content-start",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)]),end:i.withCtx(()=>[i.renderSlot(m.$slots,"content-end",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)]),_:2},[(v=m.configuration)!=null&&v.isEditable?{name:"empty-state",fn:i.withCtx(()=>{var S;return[i.createVNode(Ak,{theme:((S=m.configuration)==null?void 0:S.theme)||"default",onChangeTheme:g[0]||(g[0]=k=>m.$emit("changeTheme",k)),onLinkSwaggerFile:g[1]||(g[1]=k=>m.$emit("linkSwaggerFile")),onLoadSwaggerFile:g[2]||(g[2]=k=>m.$emit("loadSwaggerFile")),onUpdateContent:g[3]||(g[3]=k=>m.$emit("updateContent",k))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["layout","parsedSpec"])]),m.$slots.footer?(i.openBlock(),i.createElementBlock("div",jW,[i.renderSlot(m.$slots,"footer",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(gk,{parsedSpec:m.parsedSpec,proxyUrl:(w=m.configuration)==null?void 0:w.proxy},{"sidebar-start":i.withCtx(()=>[i.renderSlot(m.$slots,"sidebar-start",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)]),"sidebar-end":i.withCtx(()=>[i.renderSlot(m.$slots,"sidebar-end",i.normalizeProps(i.guardReactiveProps(p.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3})],64)}}}),rm=X(DW,[["__scopeId","data-v-b9c13e94"]]),qW={},MW={class:"references-classic-header-container"},XW={class:"references-classic-header"};function WW(r,e){return i.openBlock(),i.createElementBlock("div",MW,[i.createElementVNode("div",XW,[i.renderSlot(r.$slots,"default",{},void 0,!0),i.renderSlot(r.$slots,"dark-mode-toggle",{},void 0,!0)])])}const zW=X(qW,[["render",WW],["__scopeId","data-v-1c1eb708"]]),UW=r=>(i.pushScopeId("data-v-0acd62b8"),r=r(),i.popScopeId(),r),YW={class:"darklight-reference"},LW={key:0},FW={key:1},HW=UW(()=>i.createElementVNode("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),GW=i.defineComponent({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("div",YW,[i.createElementVNode("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(ze),{icon:"LightDarkModeToggle"}),e.isDarkMode?(i.openBlock(),i.createElementBlock("span",LW,"Light Mode")):(i.openBlock(),i.createElementBlock("span",FW,"Dark Mode"))]),HW]))}}),Vk=X(GW,[["__scopeId","data-v-0acd62b8"]]),KW=i.defineComponent({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(i.openBlock(),i.createElementBlock("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[i.createVNode(i.unref(ze),{icon:e.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),i.createVNode($k,null,{default:i.withCtx(()=>[i.createTextVNode(" Switch to "+i.toDisplayString(e.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),Rk=X(KW,[["__scopeId","data-v-b04e89bc"]]);function JW(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function e9(r,e){let t=r;const n=e.required&&e.required.includes(r);return t+=n?" REQUIRED ":" optional ",e.properties[r]&&(t+=e.properties[r].type,e.properties[r].description&&(t+=" "+e.properties[r].description)),t}function t9(r){var n;const e=["Body"],t=(n=r==null?void 0:r.schema)==null?void 0:n.properties;return t&&Object.keys(t).forEach(o=>{if(!r.schema)return;e.push(e9(o,r.schema));const s=t[o];s.type==="object"&&!!s.properties&&s.properties&&Object.keys(s.properties).forEach(l=>{var c,d;e.push(`${l} ${(d=(c=s.properties)==null?void 0:c[l])==null?void 0:d.type}`)})}),e}function r9(r){var e,t,n;try{const o=(n=(t=(e=r==null?void 0:r.information)==null?void 0:e.requestBody)==null?void 0:t.content)==null?void 0:n["application/json"];if(!o)throw new Error("Body not found");return t9(o)}catch{return!1}}const n9=r=>(i.pushScopeId("data-v-d95fdf00"),r=r(),i.popScopeId(),r),o9={key:0,class:"ref-search-list custom-scroll"},s9=["id","href","onClick","onFocus"],i9={key:0,class:"item-entry-title"},a9={key:1,class:"item-entry-path"},l9={key:2,class:"item-entry-description"},c9=n9(()=>i.createElementVNode("div",{class:"ref-search-meta"},[i.createElementVNode("span",null,"↑↓ Navigate"),i.createElementVNode("span",null,"⏎ Select")],-1)),d9=i.defineComponent({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(r){const e=r,t=i.toRef(e,"parsedSpec"),n=Xe.useMagicKeys(),o=i.ref([]),s=i.ref([]),a=i.ref(0),l=i.ref(""),c=i.ref(null),d=new sS(o.value,{keys:["title","description","body"]}),u=()=>{a.value=0,s.value=d.search(l.value)},h=i.computed(()=>y.value[a.value]),{getHeadingId:f,getWebhookId:p,getModelId:m,getOperationId:g,getTagId:O}=kt();i.watch(()=>e.modalState.open,S=>{S&&(l.value="",a.value=0,s.value=[])}),i.watch(t.value,async()=>{var q,R,K,F,ge,Ee;if(o.value=[],!((R=(q=e.parsedSpec)==null?void 0:q.tags)!=null&&R.length)&&!((K=e.parsedSpec)!=null&&K.webhooks)){d.setCollection([]);return}const S=[],k=await Ui(((F=e.parsedSpec.info)==null?void 0:F.description)??"");k.length&&(k.forEach(se=>{S.push({type:"heading",title:`Info > ${se.value}`,description:"",href:`#${f(se)}`,tag:se.slug,body:""})}),o.value=o.value.concat(S)),(ge=e.parsedSpec.tags)==null||ge.forEach(se=>{const fe={title:se.name,href:`#${O(se)}`,description:se.description,type:"req",tag:se.name,body:""};o.value.push(fe),se.operations&&se.operations.forEach(le=>{const{parameterMap:M}=Lp({operation:le}),A=r9(le)||M.value;let Z=null;typeof A!="boolean"&&(Z=A);const V={type:"req",title:le.name??le.path,href:`#${g(le,se)}`,operationId:le.operationId,description:le.description??"",httpVerb:le.httpVerb,path:le.path,tag:se.name,operation:le};Z&&(V.body=Z),o.value.push(V)})});const $=e.parsedSpec.webhooks,C=[];$&&Object.keys($).forEach(se=>{Object.keys($[se]).forEach(le=>{var M;C.push({type:"webhook",title:`Webhook: ${(M=$[se][le])==null?void 0:M.name}`,href:`#${p(se,le)}`,description:se,httpVerb:le,tag:se,body:""})}),o.value=o.value.concat(C)});const E=(Ee=e.parsedSpec.components)==null?void 0:Ee.schemas,B=[];E&&(Object.keys(E).forEach(se=>{B.push({type:"model",title:"Model",href:`#${m(se)}`,description:E[se].title??se,tag:se,body:""})}),o.value=o.value.concat(B)),d.setCollection(o.value)},{immediate:!0}),Xe.whenever(n.enter,()=>{e.modalState.open&&window&&(w(h.value),window.location.hash=h.value.item.href,e.modalState.hide())}),Xe.whenever(n.ArrowDown,()=>{var S;e.modalState.open&&window&&(a.value<y.value.length-1?a.value++:a.value=0,(S=document.getElementById(h.value.item.href))==null||S.scrollIntoView({behavior:"smooth",block:"center"}))}),Xe.whenever(n.ArrowUp,()=>{var S;e.modalState.open&&window&&(a.value>0?a.value--:a.value=y.value.length-1,(S=document.getElementById(h.value.item.href))==null||S.scrollIntoView({behavior:"smooth",block:"center"}))});const y=i.computed(()=>l.value.length===0?o.value.map(S=>({item:S})):s.value),b=/#(tag\/[^/]*)/,{setCollapsedSidebarItem:v}=en(),w=S=>{let k="models";const $=S.item.href.match(b);$!=null&&$.length&&$.length>1&&(k=$[1]),v(k,!0),e.modalState.hide()};return(S,k)=>(i.openBlock(),i.createBlock(i.unref(Vv),{state:S.modalState,variant:"search"},{default:i.withCtx(()=>[i.createElementVNode("div",{ref_key:"searchModalRef",ref:c,class:"ref-search-container"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":k[0]||(k[0]=$=>l.value=$),autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"ref-search-input",placeholder:"Search …",spellcheck:"false",type:"text",onInput:u},null,544),[[i.vModelText,l.value]])],512),y.value.length?(i.openBlock(),i.createElementBlock("div",o9,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(y.value,($,C)=>(i.openBlock(),i.createElementBlock("a",{id:$.item.href,key:$.refIndex,class:i.normalizeClass(["item-entry",{"item-entry--active":C===a.value,"item-entry--tag":!$.item.httpVerb}]),href:$.item.href,onClick:E=>w($),onFocus:E=>a.value=C},[i.createVNode(i.unref(An),{as:"div",class:"item-entry-http-verb",method:$.item.httpVerb??"get",short:""},null,8,["method"]),$.item.title?(i.openBlock(),i.createElementBlock("div",i9,i.toDisplayString($.item.title),1)):i.createCommentVNode("",!0),($.item.httpVerb||$.item.path)&&$.item.path!==$.item.title?(i.openBlock(),i.createElementBlock("div",a9,i.toDisplayString($.item.path),1)):$.item.description?(i.openBlock(),i.createElementBlock("div",l9,i.toDisplayString($.item.description),1)):i.createCommentVNode("",!0)],42,s9))),128))])):i.createCommentVNode("",!0),c9]),_:1},8,["state"]))}}),Bk=X(d9,[["__scopeId","data-v-d95fdf00"]]),u9=r=>(i.pushScopeId("data-v-fdb2c36b"),r=r(),i.popScopeId(),r),h9={class:"sidebar-search-input"},f9=u9(()=>i.createElementVNode("span",{class:"sidebar-search-placeholder"},"Search",-1)),p9={class:"sidebar-search-shortcut"},m9={class:"sidebar-search-key"},g9=i.defineComponent({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(r){const e=r,t=Rv(),n=Xe.useMagicKeys();return Xe.whenever(n[`meta_${e.searchHotKey}`],()=>t.open?t.hide():t.show()),(o,s)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("button",{class:i.normalizeClass(["sidebar-search",o.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...a)=>i.unref(t).show&&i.unref(t).show(...a))},[i.createVNode(i.unref(ze),{class:"search-icon",icon:"Search",size:"sm"}),i.createElementVNode("div",h9,[f9,i.createElementVNode("span",p9,[i.createElementVNode("span",m9,i.toDisplayString(i.unref(JW)()?"⌘":"⌃")+i.toDisplayString(o.searchHotKey),1)])])],2),i.createVNode(Bk,{modalState:i.unref(t),parsedSpec:o.spec},null,8,["modalState","parsedSpec"])],64))}}),nm=X(g9,[["__scopeId","data-v-fdb2c36b"]]),O9=i.defineComponent({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=i.computed(()=>({...e.configuration,showSidebar:!1}));return(n,o)=>(i.openBlock(),i.createBlock(rm,{configuration:t.value,parsedSpec:n.parsedSpec,rawSpec:n.rawSpec},{"content-start":i.withCtx(({spec:s})=>[i.createVNode(zW,null,{"dark-mode-toggle":i.withCtx(()=>[i.createVNode(i.unref(Rk),{isDarkMode:n.isDark,onToggleDarkMode:o[0]||(o[0]=a=>n.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:i.withCtx(()=>[i.createVNode(nm,{class:"t-doc__sidebar",searchHotKey:t.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":i.withCtx(()=>[i.renderSlot(n.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),y9={class:"references-mobile-header t-doc__header"},b9={class:"references-mobile-breadcrumbs"},v9={class:"references-mobile-header-actions"},w9=i.defineComponent({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(r){const{breadcrumb:e}=en();return(t,n)=>(i.openBlock(),i.createElementBlock("div",y9,[i.createVNode(i.unref(Tf),{icon:t.open?"Close":"Menu",label:t.open?"Close Menu":"Open Menu",size:"md",onClick:n[0]||(n[0]=o=>t.$emit("update:open",!t.open))},null,8,["icon","label"]),i.createElementVNode("span",b9,i.toDisplayString(i.unref(e)),1),i.createElementVNode("div",v9,[i.renderSlot(t.$slots,"actions",{},void 0,!0)])]))}}),k9=X(w9,[["__scopeId","data-v-f34d1ece"]]),S9={class:"scalar-api-references-standalone-search"},$9=i.defineComponent({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=i.ref(!1),n=Xe.useMediaQuery("(max-width: 1000px)");i.watch(n,(a,l)=>{a&&!l&&(t.value=!1)});const o=i.computed(()=>{var l;const a=n.value?t.value:(l=e.configuration)==null?void 0:l.showSidebar;return{...e.configuration,showSidebar:a}}),{hash:s}=kt();return i.watch(s,(a,l)=>{a&&a!==l&&(t.value=!1)}),(a,l)=>(i.openBlock(),i.createBlock(rm,{class:i.normalizeClass({"scalar-api-references-standalone-mobile":i.unref(n)}),configuration:o.value,parsedSpec:a.parsedSpec,rawSpec:a.rawSpec},i.createSlots({"sidebar-start":i.withCtx(({spec:c})=>{var d;return[i.createElementVNode("div",S9,[i.createVNode(nm,{searchHotKey:(d=e.configuration)==null?void 0:d.searchHotKey,spec:c},null,8,["searchHotKey","spec"])])]}),"sidebar-end":i.withCtx(()=>[i.createVNode(i.unref(Vk),{isDarkMode:a.isDark,onToggleDarkMode:l[1]||(l[1]=c=>a.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":i.withCtx(()=>[i.renderSlot(a.$slots,"footer",{},void 0,!0)]),_:2},[i.unref(n)?{name:"header",fn:i.withCtx(()=>[i.createVNode(k9,{open:t.value,"onUpdate:open":l[0]||(l[0]=c=>t.value=c)},null,8,["open"])]),key:"0"}:void 0]),1032,["class","configuration","parsedSpec","rawSpec"]))}}),P9=X($9,[["__scopeId","data-v-57d9ef08"]]),x9={modern:P9,classic:O9},_9=i.defineComponent({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(r){var h,f;const e=r,{toggleDarkMode:t,isDark:n}=hq((h=e.configuration)==null?void 0:h.darkMode),o=i.computed(()=>{var p;return{spec:{content:void 0,url:void 0,...(p=e.configuration)==null?void 0:p.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...e.configuration}}),{initializeToasts:s}=dk();s(p=>{D0.toast(p)}),(f=o.value)!=null&&f.metaData&&(mm.createHead(),mm.useSeoMeta(o.value.metaData));function a(p,m){i.watch(()=>{var g;return(g=o.value)==null?void 0:g[p]},g=>{typeof g<"u"&&m(g)},{immediate:!0})}const{setAuthentication:l}=Jr();a("authentication",l);const{setExcludedClients:c}=va();a("hiddenClients",c);const{parsedSpec:d,rawSpec:u}=mk({proxy:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.proxy)||""}),specConfig:i.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.spec)||{}})});return(p,m)=>{var g,O;return i.openBlock(),i.createElementBlock(i.Fragment,null,[(g=o.value)!=null&&g.customCss?(i.openBlock(),i.createBlock(i.resolveDynamicComponent("style"),{key:0},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value.customCss),1)]),_:1})):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(x9)[((O=o.value)==null?void 0:O.layout)||"modern"]),{configuration:o.value,isDark:i.unref(n),parsedSpec:i.unref(d),rawSpec:i.unref(u),onToggleDarkMode:m[0]||(m[0]=()=>i.unref(t)()),onUpdateContent:m[1]||(m[1]=y=>p.$emit("updateContent",y))},{footer:i.withCtx(()=>[i.renderSlot(p.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"])),i.createVNode(Yq)],64)}}});exports.ApiClientModal=gk;exports.ApiReference=_9;exports.ApiReferenceLayout=rm;exports.Card=Vn;exports.CardContent=hr;exports.CardFooter=wa;exports.CardHeader=Rn;exports.CardTab=yk;exports.CardTabHeader=Ok;exports.DarkModeIconToggle=Rk;exports.DarkModeToggle=Vk;exports.GLOBAL_SECURITY_SYMBOL=Qc;exports.GettingStarted=Ak;exports.RenderedReference=Nk;exports.SearchButton=nm;exports.SearchModal=Bk;exports.Sidebar=fc;exports.createEmptyAuthenticationState=u1;exports.createEmptyServerState=h1;exports.deepMerge=s1;exports.downloadSpecBus=Up;exports.downloadSpecFile=ak;exports.getApiClientRequest=Ef;exports.getBase64Token=Vf;exports.getHeadingsFromMarkdown=Ui;exports.getLowestHeadingLevel=Nf;exports.getRequestFromAuthentication=Af;exports.getSecretCredentialsFromAuthentication=i1;exports.getUrlFromServerState=ec;exports.getVariableNames=X5;exports.hasModels=Bf;exports.hasSecuritySchemes=a1;exports.hasWebhooks=l1;exports.isValidUrl=c1;exports.mapFromObject=W5;exports.mergeAllObjects=z5;exports.objectMerge=d1;exports.openClientFor=tc;exports.parse=ik;exports.replaceVariables=Rf;exports.scrollToId=Zf;exports.sleep=uc;exports.splitMarkdownInSections=lk;exports.useApiClientStore=Oc;exports.useGlobalStore=Jr;exports.useReactiveSpec=mk;
|