vitepress-openapi 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/dist/{angular-html-CGsuZc6a.cjs → angular-html-IrYiNUL5.cjs} +1 -1
  2. package/dist/{angular-html-DARb335O.js → angular-html-uv0a0QNn.js} +2 -2
  3. package/dist/{angular-ts-CrrEVOLQ.js → angular-ts-CVTzQ4yM.js} +2 -2
  4. package/dist/{angular-ts-Bg4b1K8o.cjs → angular-ts-CmalYPic.cjs} +1 -1
  5. package/dist/{apl-D9ujzlDe.cjs → apl-Cp2eHb5H.cjs} +1 -1
  6. package/dist/{apl-BUNzB7iS.js → apl-G7yswX6Q.js} +5 -5
  7. package/dist/{astro-DuWrFiiv.cjs → astro-CRpTyG5K.cjs} +1 -1
  8. package/dist/{astro-CT6LVfZb.js → astro-DUi5zMa4.js} +5 -5
  9. package/dist/{blade-DEZwhTmz.cjs → blade-DMsLIvGX.cjs} +1 -1
  10. package/dist/{blade-CT3BYEkw.js → blade-uJ4Xa5wc.js} +7 -7
  11. package/dist/{c-Df26Rt3n.js → c-CtMd0n5W.js} +1 -1
  12. package/dist/{c-DDdF0YXr.cjs → c-DJDNxT35.cjs} +1 -1
  13. package/dist/{chapel-BGl0pLYE.cjs → chapel-CCgxhb9n.cjs} +1 -1
  14. package/dist/{chapel-7XVmedRB.js → chapel-DGgSBAIm.js} +1 -1
  15. package/dist/{cobol-7e4lFVpj.js → cobol-CDcij9i2.js} +2 -2
  16. package/dist/{cobol-BgGrvcfE.cjs → cobol-DP8yLe0J.cjs} +1 -1
  17. package/dist/{coffee-D2EFnoK3.js → coffee-Bcg2ycks.js} +1 -1
  18. package/dist/{coffee-CnTOT7qi.cjs → coffee-D3hXAm0d.cjs} +1 -1
  19. package/dist/{cpp-BdIhYOqJ.cjs → cpp-CEMyuz0Z.cjs} +1 -1
  20. package/dist/{cpp-BrJ3qayw.js → cpp-CfsSSf1b.js} +3 -3
  21. package/dist/{crystal-CijsJH2S.js → crystal-B76s5RL_.js} +6 -6
  22. package/dist/{crystal-C0oOOTvI.cjs → crystal-BPjfGQfv.cjs} +1 -1
  23. package/dist/{css-BJ4fQgJY.cjs → css-B_5YxPHw.cjs} +1 -1
  24. package/dist/{css-BDLPKt_n.js → css-Dnve9eIF.js} +1 -1
  25. package/dist/{edge-D7t7tSii.cjs → edge-DEHYswlE.cjs} +1 -1
  26. package/dist/{edge-CWCiEXP9.js → edge-Dlu9JAOU.js} +3 -3
  27. package/dist/{elixir-CEVCh53I.cjs → elixir-CKhKSpjp.cjs} +1 -1
  28. package/dist/{elixir-8Qtl7ev_.js → elixir-CSK8G02U.js} +1 -1
  29. package/dist/{elm-CQNq4BKy.js → elm-CsVe-drn.js} +1 -1
  30. package/dist/{elm-BktTaRPW.cjs → elm-oUMNo4dE.cjs} +1 -1
  31. package/dist/{erb-DCFD7vrt.js → erb-3PcpbjWs.js} +2 -2
  32. package/dist/{erb-Bas_b7PL.cjs → erb-B8WJz_Ls.cjs} +1 -1
  33. package/dist/{git-rebase-CSFTH0sQ.js → git-rebase-BFPUa7RP.js} +1 -1
  34. package/dist/{git-rebase-DGo4nA7C.cjs → git-rebase-CBj8NRO-.cjs} +1 -1
  35. package/dist/{glimmer-js-Z7E0DaWX.cjs → glimmer-js-BkM2LzJ_.cjs} +1 -1
  36. package/dist/{glimmer-js-Ce8bwdpO.js → glimmer-js-C06d46qf.js} +4 -4
  37. package/dist/{glimmer-ts-osenBmqR.cjs → glimmer-ts-B9TsQ9YM.cjs} +1 -1
  38. package/dist/{glimmer-ts-CdP0Y2rr.js → glimmer-ts-BfZJAJhH.js} +4 -4
  39. package/dist/{glsl-gQ2PTprT.js → glsl-Bl7M-IPe.js} +2 -2
  40. package/dist/{glsl-DqSyLtjd.cjs → glsl-uL1y-Bk6.cjs} +1 -1
  41. package/dist/{graphql-DTkt67qx.cjs → graphql-UjpB-MIz.cjs} +1 -1
  42. package/dist/{graphql-D9d0A3NW.js → graphql-j5wYAqtD.js} +5 -5
  43. package/dist/{hack-D2t7w518.js → hack-BN-XE31l.js} +2 -2
  44. package/dist/{hack-BsFtI2Eg.cjs → hack-DC3gQB4E.cjs} +1 -1
  45. package/dist/{haml-BBf8fdr9.cjs → haml-Bhy5P-KC.cjs} +1 -1
  46. package/dist/{haml-DtrHnXyI.js → haml-CDfF0h4F.js} +3 -3
  47. package/dist/{handlebars-BFrhjavm.js → handlebars-BRDXZqV4.js} +4 -4
  48. package/dist/{handlebars-DPepJR-F.cjs → handlebars-CNE9oFMe.cjs} +1 -1
  49. package/dist/{html-CZSxUh6E.js → html-CPA7KoKg.js} +3 -3
  50. package/dist/{html-tDTTwBjP.cjs → html-DF6ZRDg_.cjs} +1 -1
  51. package/dist/{html-derivative-1D9rMziY.js → html-derivative-61htNTyH.js} +1 -1
  52. package/dist/{html-derivative-CiU9WY3_.cjs → html-derivative-D7b_E1PX.cjs} +1 -1
  53. package/dist/{http-BEeboTha.cjs → http-BjRzGfMq.cjs} +1 -1
  54. package/dist/{http-_yCM4LFM.js → http-CR6vxe-f.js} +4 -4
  55. package/dist/{hurl-CjTriWW3.js → hurl-DR3Ao4uN.js} +2 -2
  56. package/dist/{hurl-CzW0xtQK.cjs → hurl-Dz53E_EO.cjs} +1 -1
  57. package/dist/{java-BBWcloI5.js → java-BCOO6DGx.js} +1 -1
  58. package/dist/{java-DEV9nIzf.cjs → java-rdA6e0wp.cjs} +1 -1
  59. package/dist/{javascript-COXg7KRK.cjs → javascript-4PA_CVZC.cjs} +1 -1
  60. package/dist/{javascript-BtdwTU5l.js → javascript-B0H0Bm6m.js} +1 -1
  61. package/dist/{jinja-SDapQ1jF.cjs → jinja-BcxYV4gu.cjs} +1 -1
  62. package/dist/{jinja-0Fph51Wu.js → jinja-DdO6Tf4t.js} +1 -1
  63. package/dist/{jison-C6HvDI82.cjs → jison-BJENBrIF.cjs} +1 -1
  64. package/dist/{jison-DKkCHBi3.js → jison-CmQksr2y.js} +1 -1
  65. package/dist/{json-D9-BN10e.cjs → json-BJ_bvg_A.cjs} +1 -1
  66. package/dist/{json-1Shnxn5T.js → json-Dd3OP7m9.js} +1 -1
  67. package/dist/{jsx-DMGrwzK7.js → jsx-BhoiPRal.js} +1 -1
  68. package/dist/{jsx-CJ8AuAld.cjs → jsx-CaK8syd3.cjs} +1 -1
  69. package/dist/{julia-CtGveS0F.js → julia-CDeyMHwa.js} +4 -4
  70. package/dist/{julia-BOWoqzWb.cjs → julia-DdPKjdf7.cjs} +1 -1
  71. package/dist/{just-DJBTWvtH.cjs → just-B3mF2_pd.cjs} +1 -1
  72. package/dist/{just-Ocglo-Ta.js → just-Db1lRieD.js} +5 -5
  73. package/dist/{latex-CwRnFmhO.js → latex-D73GL9tM.js} +1 -1
  74. package/dist/{latex-jmD-x2Sw.cjs → latex-DyUb8gG5.cjs} +1 -1
  75. package/dist/{liquid-B0j0Ojr6.cjs → liquid-CztsYCRo.cjs} +1 -1
  76. package/dist/{liquid-BUvHlsu4.js → liquid-DF-tIke9.js} +4 -4
  77. package/dist/{lua-Cx8wh7Cx.cjs → lua-Cg38zrfV.cjs} +1 -1
  78. package/dist/{lua-CCwV5A-2.js → lua-xXZSPcKB.js} +2 -2
  79. package/dist/{marko-DgvX-ocG.cjs → marko-BuXulXH5.cjs} +1 -1
  80. package/dist/{marko-B7d7a75U.js → marko-D-oNtuqC.js} +3 -3
  81. package/dist/{mdc-T8GMGcnF.cjs → mdc-CXK0bw8f.cjs} +1 -1
  82. package/dist/{mdc-qWBp3e-g.js → mdc-FTCNLElJ.js} +2 -2
  83. package/dist/{nginx-BbITQOFT.js → nginx-C7lNZZWT.js} +1 -1
  84. package/dist/{nginx-CJ6LIx1U.cjs → nginx-Cgnh7QO-.cjs} +1 -1
  85. package/dist/{nim-_u7AMou0.cjs → nim-D3q9r1nf.cjs} +1 -1
  86. package/dist/{nim-jrsjoy8-.js → nim-DIkmkdRK.js} +6 -6
  87. package/dist/{org-BlOpuc2_.cjs → org-Be03OJi3.cjs} +1 -1
  88. package/dist/{org-BvB9eDZB.js → org-CsORUXsX.js} +26 -26
  89. package/dist/{perl-Db3mBsuQ.js → perl-DzKqYwtD.js} +5 -5
  90. package/dist/{perl-D8XroKo0.cjs → perl-jEpH5QnN.cjs} +1 -1
  91. package/dist/{php-C8SG25Wa.cjs → php-Cd0xNNLC.cjs} +1 -1
  92. package/dist/{php-DXAFydNe.js → php-MrcCGNBb.js} +6 -6
  93. package/dist/{pug-DUGE64tE.js → pug-7jPx_35W.js} +3 -3
  94. package/dist/{pug-DGLtElT2.cjs → pug-tintEWep.cjs} +1 -1
  95. package/dist/{qml-BI8Qke4k.js → qml-6QUtoeWA.js} +1 -1
  96. package/dist/{qml-f8YoerFJ.cjs → qml-BYzhsmnS.cjs} +1 -1
  97. package/dist/{r-DTie9Nyk.cjs → r-Bwq_agHo.cjs} +1 -1
  98. package/dist/{r-BqUCIOdg.js → r-DSFCAodN.js} +1 -1
  99. package/dist/{razor-Cznq4CrH.cjs → razor-GHEO8ZrJ.cjs} +1 -1
  100. package/dist/{razor-DzYuKCwQ.js → razor-kZ9VMhh7.js} +1 -1
  101. package/dist/{regexp-W6uDzT_l.cjs → regexp-BTPSBkuS.cjs} +1 -1
  102. package/dist/{regexp-CCkYPv1N.js → regexp-C4cLyNsj.js} +1 -1
  103. package/dist/{rst-DkdHGABB.js → rst-Celv7pzQ.js} +6 -6
  104. package/dist/{rst-CjRZqYHL.cjs → rst-DC596VAb.cjs} +1 -1
  105. package/dist/{ruby-SrIlbOFE.js → ruby-CMUkZc4V.js} +12 -12
  106. package/dist/{ruby-DYZIHus3.cjs → ruby-CkA4Oavu.cjs} +1 -1
  107. package/dist/{sas-D4DC5Y7L.cjs → sas-CWtZaM4y.cjs} +1 -1
  108. package/dist/{sas-BgMaDA2M.js → sas-DM3UyDFg.js} +1 -1
  109. package/dist/{scss-Cy7mHhKR.js → scss-Ce0za1qK.js} +2 -2
  110. package/dist/{scss-D2afYGNC.cjs → scss-LkHhJo18.cjs} +1 -1
  111. package/dist/{shellscript-DL7dA6YH.cjs → shellscript-CiDBNSSV.cjs} +1 -1
  112. package/dist/{shellscript-Dc7jtvdg.js → shellscript-DfQbZbZv.js} +1 -1
  113. package/dist/{shellsession-BZTJuggn.js → shellsession-B-u2-M3U.js} +1 -1
  114. package/dist/{shellsession-CGkCOuFx.cjs → shellsession-VJTxH3Qp.cjs} +1 -1
  115. package/dist/{soy-B2OqotLG.cjs → soy-CFhgAJvR.cjs} +1 -1
  116. package/dist/{soy-X1cLpGrT.js → soy-K4I5GWmG.js} +1 -1
  117. package/dist/{sql-BLxweCea.cjs → sql-CySKVD8Q.cjs} +1 -1
  118. package/dist/{sql-DRYM5A-g.js → sql-jusQgRuy.js} +1 -1
  119. package/dist/{stata-DUfnFR7t.cjs → stata-9iclJTGl.cjs} +1 -1
  120. package/dist/{stata-mshAKmrC.js → stata-B0U1mDy6.js} +1 -1
  121. package/dist/{surrealql-DQzrI0uj.js → surrealql-6aGCR7SU.js} +1 -1
  122. package/dist/{surrealql-Zfoia8BY.cjs → surrealql-DysQv_VH.cjs} +1 -1
  123. package/dist/{svelte-D2bLGYCT.js → svelte-B9UOpTL8.js} +3 -3
  124. package/dist/{svelte-aFul1Jy8.cjs → svelte-ZhIemg1n.cjs} +1 -1
  125. package/dist/{templ-Dx8bEvea.cjs → templ-BaKkruXs.cjs} +1 -1
  126. package/dist/{templ-BT5bFFZC.js → templ-CwElXEjo.js} +2 -2
  127. package/dist/{tex-DLVxreb-.cjs → tex-CwQDQCX_.cjs} +1 -1
  128. package/dist/{tex-BGjRDs2m.js → tex-kQHmfFkX.js} +2 -2
  129. package/dist/{ts-tags-Ck5aGNIn.js → ts-tags-BkcgKPdU.js} +7 -7
  130. package/dist/{ts-tags-BIebym7V.cjs → ts-tags-Dqqv0wS7.cjs} +1 -1
  131. package/dist/{tsx-B4QBkk0q.cjs → tsx-TxRbY_MS.cjs} +1 -1
  132. package/dist/{tsx-G3EWmL7D.js → tsx-tC9_eQM0.js} +1 -1
  133. package/dist/{twig-BgwYNE2l.cjs → twig-Dsriugp3.cjs} +1 -1
  134. package/dist/{twig-CHwtVyR-.js → twig-zezbIase.js} +5 -5
  135. package/dist/types/src/components/Common/OAJSONEditor.vue.d.ts +2 -2
  136. package/dist/types/src/composables/useShiki.d.ts +13 -2
  137. package/dist/types/src/composables/useTheme.d.ts +53 -0
  138. package/dist/types/src/lib/parser/generateRequestBodyUi.d.ts +2 -1
  139. package/dist/types/src/lib/parser/generateResponseUi.d.ts +2 -1
  140. package/dist/types/src/lib/parser/getSchemaUi.d.ts +5 -1
  141. package/dist/types/src/lib/parser/mergeAllOf.d.ts +6 -0
  142. package/dist/types/src/lib/parser/resolveCircularRef.d.ts +1 -1
  143. package/dist/types/src/lib/shiki/resolveGrammar.d.ts +11 -0
  144. package/dist/{typescript-DoW3h951.cjs → typescript-BoS6yqrz.cjs} +1 -1
  145. package/dist/{typescript-DAazdaCE.js → typescript-KKVXItRs.js} +1 -1
  146. package/dist/{typst-9vf_wdP8.cjs → typst-B_783qIn.cjs} +1 -1
  147. package/dist/{typst-BLT0Jxqy.js → typst-DsM2L8MG.js} +29 -29
  148. package/dist/{useOpenapi-zUwxozsv.cjs → useOpenapi-DOw8b0Cm.cjs} +83 -83
  149. package/dist/{useOpenapi-DyGwf6EG.js → useOpenapi-tKaw3COz.js} +1526 -1467
  150. package/dist/vitepress-openapi.client.cjs.js +126 -126
  151. package/dist/vitepress-openapi.client.es.js +12914 -12832
  152. package/dist/vitepress-openapi.node.cjs.js +1 -1
  153. package/dist/vitepress-openapi.node.es.js +1 -1
  154. package/dist/{vue-CpqLnHVY.js → vue-B58kMEAQ.js} +6 -6
  155. package/dist/{vue-BRjGF9q6.cjs → vue-C-ymR46K.cjs} +1 -1
  156. package/dist/{vue-html-Zve9lhNA.js → vue-html-B8vwCoQU.js} +1 -1
  157. package/dist/{vue-html-5pJeWJlE.cjs → vue-html-qs-Ree4R.cjs} +1 -1
  158. package/dist/{vue-vine-BIyjr9Yw.js → vue-vine-B95XCKNF.js} +3 -3
  159. package/dist/{vue-vine-D8sXouna.cjs → vue-vine-Nsb-fhNk.cjs} +1 -1
  160. package/dist/{xml-B4yjP0re.js → xml-B119d3-g.js} +2 -2
  161. package/dist/{xml-DfteIxKp.cjs → xml-DzTGxXsy.cjs} +1 -1
  162. package/dist/{xsl-BfNOhnnx.js → xsl-CEz1476V.js} +1 -1
  163. package/dist/{xsl-BaF5pye5.cjs → xsl-xWljPYeJ.cjs} +1 -1
  164. package/dist/{yaml-BMWpYE45.js → yaml-B9YlAzUe.js} +1 -1
  165. package/dist/{yaml-BWP6Z5iN.cjs → yaml-Cd_AUGXn.cjs} +1 -1
  166. package/package.json +1 -1
  167. package/src/components/Common/OAJSONEditor.vue +2 -1
  168. package/src/composables/useOpenapi.ts +2 -2
  169. package/src/composables/usePlayground.ts +4 -2
  170. package/src/composables/useShiki.ts +226 -105
  171. package/src/composables/useTheme.ts +57 -0
  172. package/src/lib/parser/dereferenceWithAnnotations.ts +22 -5
  173. package/src/lib/parser/generateRequestBodyUi.ts +3 -3
  174. package/src/lib/parser/generateResponseUi.ts +3 -3
  175. package/src/lib/parser/getSchemaUi.ts +50 -22
  176. package/src/lib/parser/mergeAllOf.ts +45 -0
  177. package/src/lib/parser/parseOpenapi.ts +12 -7
  178. package/src/lib/parser/resolveCircularRef.ts +25 -45
  179. package/src/lib/shiki/resolveGrammar.ts +42 -0
  180. package/src/lib/spec/createOpenApiSpec.ts +27 -51
@@ -4868,11 +4868,11 @@ var Ro = [
4868
4868
  function Wo(e = {}) {
4869
4869
  t(e);
4870
4870
  function t(e) {
4871
- var t, n, r, i, a, o, c, l, u, d, f, p, m, h, g, _, v, y, x, S, C, ee;
4872
- !e || !Object.keys(e).length || ((t = e.theme) != null && t.highlighterTheme && s(e.theme.highlighterTheme), ((n = e.path) == null ? void 0 : n.showBaseURL) !== void 0 && L(B, "path", "showBaseURL", e.path.showBaseURL), ((r = e.requestBody) == null ? void 0 : r.defaultView) !== void 0 && L(B, "requestBody", "defaultView", e.requestBody.defaultView), ((i = e.jsonViewer) == null ? void 0 : i.deep) !== void 0 && L(B, "jsonViewer", "deep", e.jsonViewer.deep), ((a = e.jsonViewer) == null ? void 0 : a.renderer) !== void 0 && L(B, "jsonViewer", "renderer", e.jsonViewer.renderer), ((o = e.schemaViewer) == null ? void 0 : o.deep) !== void 0 && L(B, "schemaViewer", "deep", e.schemaViewer.deep), e.headingLevels !== void 0 && b(e.headingLevels), ((c = e.response) == null ? void 0 : c.responseCodeSelector) !== void 0 && L(B, "response", "responseCodeSelector", e.response.responseCodeSelector), ((l = e.response) == null ? void 0 : l.maxTabs) !== void 0 && L(B, "response", "maxTabs", e.response.maxTabs), ((u = e.response) == null || (u = u.body) == null ? void 0 : u.defaultView) !== void 0 && R(B, ["response", "body"], "defaultView", e.response.body.defaultView), ((d = e.playground) == null || (d = d.jsonEditor) == null ? void 0 : d.mode) !== void 0 && R(B, ["playground", "jsonEditor"], "mode", e.playground.jsonEditor.mode), ((f = e.playground) == null || (f = f.jsonEditor) == null ? void 0 : f.mainMenuBar) !== void 0 && R(B, ["playground", "jsonEditor"], "mainMenuBar", e.playground.jsonEditor.mainMenuBar), ((p = e.playground) == null || (p = p.jsonEditor) == null ? void 0 : p.navigationBar) !== void 0 && R(B, ["playground", "jsonEditor"], "navigationBar", e.playground.jsonEditor.navigationBar), ((m = e.playground) == null || (m = m.jsonEditor) == null ? void 0 : m.statusBar) !== void 0 && R(B, ["playground", "jsonEditor"], "statusBar", e.playground.jsonEditor.statusBar), ((h = e.playground) == null || (h = h.examples) == null ? void 0 : h.behavior) !== void 0 && R(B, ["playground", "examples"], "behavior", e.playground.examples.behavior), ((g = e.playground) == null || (g = g.examples) == null ? void 0 : g.playgroundExampleBehavior) !== void 0 && R(B, ["playground", "examples"], "playgroundExampleBehavior", e.playground.examples.playgroundExampleBehavior), ((_ = e.security) == null ? void 0 : _.defaultScheme) !== void 0 && L(B, "security", "defaultScheme", e.security.defaultScheme), ((v = e.operation) == null ? void 0 : v.badges) !== void 0 && L(B, "operation", "badges", e.operation.badges), ((y = e.operation) == null ? void 0 : y.slots) !== void 0 && L(B, "operation", "slots", e.operation.slots), ((x = e.operation) == null ? void 0 : x.hiddenSlots) !== void 0 && L(B, "operation", "hiddenSlots", e.operation.hiddenSlots), ((S = e.operation) == null ? void 0 : S.cols) !== void 0 && L(B, "operation", "cols", e.operation.cols), ((C = e.operation) == null ? void 0 : C.defaultBaseUrl) !== void 0 && Te(e.operation.defaultBaseUrl), ((ee = e.operation) == null ? void 0 : ee.getServers) !== void 0 && De(e.operation.getServers), e.i18n !== void 0 && ke(e.i18n), e.spec !== void 0 && Ne(e.spec), e.codeSamples !== void 0 && Re(e.codeSamples), e.linksPrefixes !== void 0 && Ve(e.linksPrefixes), e.server !== void 0 && Ge(e.server), e.storage !== void 0 && Qe(e.storage), e.markdown !== void 0 && Ye(e.markdown));
4871
+ var t, n, r, i, a, o, c, l, d, f, p, m, h, g, _, v, y, b, x, S, ee, te, w;
4872
+ !e || !Object.keys(e).length || ((t = e.theme) != null && t.highlighterTheme && s(e.theme.highlighterTheme), (n = e.theme) != null && n.shikiLanguages && u(e.theme.shikiLanguages), ((r = e.path) == null ? void 0 : r.showBaseURL) !== void 0 && L(B, "path", "showBaseURL", e.path.showBaseURL), ((i = e.requestBody) == null ? void 0 : i.defaultView) !== void 0 && L(B, "requestBody", "defaultView", e.requestBody.defaultView), ((a = e.jsonViewer) == null ? void 0 : a.deep) !== void 0 && L(B, "jsonViewer", "deep", e.jsonViewer.deep), ((o = e.jsonViewer) == null ? void 0 : o.renderer) !== void 0 && L(B, "jsonViewer", "renderer", e.jsonViewer.renderer), ((c = e.schemaViewer) == null ? void 0 : c.deep) !== void 0 && L(B, "schemaViewer", "deep", e.schemaViewer.deep), e.headingLevels !== void 0 && C(e.headingLevels), ((l = e.response) == null ? void 0 : l.responseCodeSelector) !== void 0 && L(B, "response", "responseCodeSelector", e.response.responseCodeSelector), ((d = e.response) == null ? void 0 : d.maxTabs) !== void 0 && L(B, "response", "maxTabs", e.response.maxTabs), ((f = e.response) == null || (f = f.body) == null ? void 0 : f.defaultView) !== void 0 && R(B, ["response", "body"], "defaultView", e.response.body.defaultView), ((p = e.playground) == null || (p = p.jsonEditor) == null ? void 0 : p.mode) !== void 0 && R(B, ["playground", "jsonEditor"], "mode", e.playground.jsonEditor.mode), ((m = e.playground) == null || (m = m.jsonEditor) == null ? void 0 : m.mainMenuBar) !== void 0 && R(B, ["playground", "jsonEditor"], "mainMenuBar", e.playground.jsonEditor.mainMenuBar), ((h = e.playground) == null || (h = h.jsonEditor) == null ? void 0 : h.navigationBar) !== void 0 && R(B, ["playground", "jsonEditor"], "navigationBar", e.playground.jsonEditor.navigationBar), ((g = e.playground) == null || (g = g.jsonEditor) == null ? void 0 : g.statusBar) !== void 0 && R(B, ["playground", "jsonEditor"], "statusBar", e.playground.jsonEditor.statusBar), ((_ = e.playground) == null || (_ = _.examples) == null ? void 0 : _.behavior) !== void 0 && R(B, ["playground", "examples"], "behavior", e.playground.examples.behavior), ((v = e.playground) == null || (v = v.examples) == null ? void 0 : v.playgroundExampleBehavior) !== void 0 && R(B, ["playground", "examples"], "playgroundExampleBehavior", e.playground.examples.playgroundExampleBehavior), ((y = e.security) == null ? void 0 : y.defaultScheme) !== void 0 && L(B, "security", "defaultScheme", e.security.defaultScheme), ((b = e.operation) == null ? void 0 : b.badges) !== void 0 && L(B, "operation", "badges", e.operation.badges), ((x = e.operation) == null ? void 0 : x.slots) !== void 0 && L(B, "operation", "slots", e.operation.slots), ((S = e.operation) == null ? void 0 : S.hiddenSlots) !== void 0 && L(B, "operation", "hiddenSlots", e.operation.hiddenSlots), ((ee = e.operation) == null ? void 0 : ee.cols) !== void 0 && L(B, "operation", "cols", e.operation.cols), ((te = e.operation) == null ? void 0 : te.defaultBaseUrl) !== void 0 && Oe(e.operation.defaultBaseUrl), ((w = e.operation) == null ? void 0 : w.getServers) !== void 0 && Ae(e.operation.getServers), e.i18n !== void 0 && Me(e.i18n), e.spec !== void 0 && Ie(e.spec), e.codeSamples !== void 0 && Ve(e.codeSamples), e.linksPrefixes !== void 0 && We(e.linksPrefixes), e.server !== void 0 && Je(e.server), e.storage !== void 0 && tt(e.storage), e.markdown !== void 0 && Qe(e.markdown));
4873
4873
  }
4874
4874
  function n() {
4875
- t(z);
4875
+ t(z), B.theme && (B.theme.shikiLanguages = {});
4876
4876
  }
4877
4877
  function r() {
4878
4878
  return ko(B);
@@ -4896,50 +4896,65 @@ function Wo(e = {}) {
4896
4896
  };
4897
4897
  }
4898
4898
  function c() {
4899
+ var e, t;
4900
+ return (e = (t = B.theme) == null ? void 0 : t.shikiLanguages) == null ? {} : e;
4901
+ }
4902
+ function l(e) {
4903
+ var t;
4904
+ return (t = B.theme) == null || (t = t.shikiLanguages) == null ? void 0 : t[e];
4905
+ }
4906
+ function u(e) {
4907
+ let t = I(B, "theme");
4908
+ t.shikiLanguages = {
4909
+ ...t.shikiLanguages,
4910
+ ...e
4911
+ };
4912
+ }
4913
+ function d() {
4899
4914
  var e;
4900
4915
  return B == null || (e = B.requestBody) == null || (e = e.defaultView) == null ? void 0 : e.value;
4901
4916
  }
4902
- function l(e) {
4917
+ function f(e) {
4903
4918
  L(B, "requestBody", "defaultView", e);
4904
4919
  }
4905
- function u() {
4920
+ function p() {
4906
4921
  var e;
4907
4922
  return B == null || (e = B.path) == null || (e = e.showBaseURL) == null ? void 0 : e.value;
4908
4923
  }
4909
- function d(e) {
4924
+ function m(e) {
4910
4925
  L(B, "path", "showBaseURL", e);
4911
4926
  }
4912
- function f() {
4927
+ function h() {
4913
4928
  var e;
4914
4929
  return B == null || (e = B.jsonViewer) == null || (e = e.deep) == null ? void 0 : e.value;
4915
4930
  }
4916
- function p(e) {
4931
+ function g(e) {
4917
4932
  L(B, "jsonViewer", "deep", e);
4918
4933
  }
4919
- function m() {
4934
+ function _() {
4920
4935
  var e;
4921
4936
  return (B == null || (e = B.jsonViewer) == null || (e = e.renderer) == null ? void 0 : e.value) || "vue-json-pretty";
4922
4937
  }
4923
- function h(e) {
4938
+ function v(e) {
4924
4939
  L(B, "jsonViewer", "renderer", e);
4925
4940
  }
4926
- function g() {
4941
+ function y() {
4927
4942
  var e;
4928
4943
  return B == null || (e = B.schemaViewer) == null || (e = e.deep) == null ? void 0 : e.value;
4929
4944
  }
4930
- function _(e) {
4945
+ function b(e) {
4931
4946
  L(B, "schemaViewer", "deep", e);
4932
4947
  }
4933
- function v() {
4948
+ function x() {
4934
4949
  return B.headingLevels;
4935
4950
  }
4936
- function y(e) {
4951
+ function S(e) {
4937
4952
  if (!B.headingLevels) return `h${e}`;
4938
4953
  let t = B.headingLevels[e];
4939
4954
  if (t < 1 || t > 6) throw Error(`Heading level for ${e} must be between 1 and 6.`);
4940
4955
  return `h${t}`;
4941
4956
  }
4942
- function b(e) {
4957
+ function C(e) {
4943
4958
  B.headingLevels || (B.headingLevels = {});
4944
4959
  for (let t of Object.keys(e)) {
4945
4960
  let n = e[t];
@@ -4947,147 +4962,147 @@ function Wo(e = {}) {
4947
4962
  }
4948
4963
  Object.assign(B.headingLevels, e);
4949
4964
  }
4950
- function x() {
4965
+ function ee() {
4951
4966
  var e;
4952
4967
  return B == null || (e = B.response) == null || (e = e.responseCodeSelector) == null ? void 0 : e.value;
4953
4968
  }
4954
- function S(e) {
4969
+ function te(e) {
4955
4970
  L(B, "response", "responseCodeSelector", e);
4956
4971
  }
4957
- function C() {
4972
+ function w() {
4958
4973
  var e;
4959
4974
  return B == null || (e = B.response) == null || (e = e.maxTabs) == null ? void 0 : e.value;
4960
4975
  }
4961
- function ee(e) {
4976
+ function ne(e) {
4962
4977
  L(B, "response", "maxTabs", e);
4963
4978
  }
4964
- function te() {
4979
+ function re() {
4965
4980
  var e;
4966
4981
  return B == null || (e = B.response) == null || (e = e.body) == null || (e = e.defaultView) == null ? void 0 : e.value;
4967
4982
  }
4968
- function w(e) {
4983
+ function ie(e) {
4969
4984
  R(B, ["response", "body"], "defaultView", e);
4970
4985
  }
4971
- function ne() {
4986
+ function ae() {
4972
4987
  var e;
4973
4988
  return B == null || (e = B.playground) == null || (e = e.jsonEditor) == null || (e = e.mode) == null ? void 0 : e.value;
4974
4989
  }
4975
- function re(e) {
4990
+ function oe(e) {
4976
4991
  R(B, ["playground", "jsonEditor"], "mode", e);
4977
4992
  }
4978
- function ie() {
4993
+ function se() {
4979
4994
  var e;
4980
4995
  return B == null || (e = B.playground) == null || (e = e.jsonEditor) == null || (e = e.mainMenuBar) == null ? void 0 : e.value;
4981
4996
  }
4982
- function ae(e) {
4997
+ function ce(e) {
4983
4998
  R(B, ["playground", "jsonEditor"], "mainMenuBar", e);
4984
4999
  }
4985
- function oe() {
5000
+ function le() {
4986
5001
  var e;
4987
5002
  return B == null || (e = B.playground) == null || (e = e.jsonEditor) == null || (e = e.navigationBar) == null ? void 0 : e.value;
4988
5003
  }
4989
- function se(e) {
5004
+ function ue(e) {
4990
5005
  R(B, ["playground", "jsonEditor"], "navigationBar", e);
4991
5006
  }
4992
- function ce() {
5007
+ function de() {
4993
5008
  var e;
4994
5009
  return B == null || (e = B.playground) == null || (e = e.jsonEditor) == null || (e = e.statusBar) == null ? void 0 : e.value;
4995
5010
  }
4996
- function le(e) {
5011
+ function fe(e) {
4997
5012
  R(B, ["playground", "jsonEditor"], "statusBar", e);
4998
5013
  }
4999
- function ue() {
5014
+ function pe() {
5000
5015
  var e, t;
5001
5016
  return (e = B == null || (t = B.playground) == null || (t = t.examples) == null || (t = t.behavior) == null ? void 0 : t.value) == null ? "value" : e;
5002
5017
  }
5003
- function de(e) {
5018
+ function me(e) {
5004
5019
  R(B, ["playground", "examples"], "behavior", e);
5005
5020
  }
5006
- function fe() {
5021
+ function he() {
5007
5022
  var e, t;
5008
5023
  return (e = B == null || (t = B.playground) == null || (t = t.examples) == null || (t = t.playgroundExampleBehavior) == null ? void 0 : t.value) == null ? "value" : e;
5009
5024
  }
5010
- function pe(e) {
5025
+ function ge(e) {
5011
5026
  R(B, ["playground", "examples"], "playgroundExampleBehavior", e);
5012
5027
  }
5013
- function me() {
5028
+ function _e() {
5014
5029
  var e;
5015
5030
  return B == null || (e = B.security) == null || (e = e.defaultScheme) == null ? void 0 : e.value;
5016
5031
  }
5017
- function he(e) {
5032
+ function ve(e) {
5018
5033
  L(B, "security", "defaultScheme", e);
5019
5034
  }
5020
- function ge() {
5035
+ function ye() {
5021
5036
  var e;
5022
5037
  return [...(B == null || (e = B.operation) == null || (e = e.badges) == null ? void 0 : e.value) || []];
5023
5038
  }
5024
- function _e(e) {
5039
+ function be(e) {
5025
5040
  L(B, "operation", "badges", e);
5026
5041
  }
5027
- function ve() {
5042
+ function xe() {
5028
5043
  var e;
5029
5044
  return B == null || (e = B.operation) == null || (e = e.slots) == null ? void 0 : e.value;
5030
5045
  }
5031
- function ye(e) {
5046
+ function Se(e) {
5032
5047
  L(B, "operation", "slots", e);
5033
5048
  }
5034
- function be() {
5049
+ function Ce() {
5035
5050
  var e;
5036
5051
  return B == null || (e = B.operation) == null || (e = e.hiddenSlots) == null ? void 0 : e.value;
5037
5052
  }
5038
- function xe(e) {
5053
+ function we(e) {
5039
5054
  L(B, "operation", "hiddenSlots", e);
5040
5055
  }
5041
- function Se() {
5056
+ function Te() {
5042
5057
  var e;
5043
5058
  return B == null || (e = B.operation) == null || (e = e.cols) == null ? void 0 : e.value;
5044
5059
  }
5045
- function Ce(e) {
5060
+ function Ee(e) {
5046
5061
  L(B, "operation", "cols", e);
5047
5062
  }
5048
- function we() {
5063
+ function De() {
5049
5064
  var e;
5050
5065
  return (B == null || (e = B.operation) == null ? void 0 : e.defaultBaseUrl) || "http://localhost";
5051
5066
  }
5052
- function Te(e) {
5067
+ function Oe(e) {
5053
5068
  let t = I(B, "operation");
5054
5069
  t.defaultBaseUrl = e;
5055
5070
  }
5056
- function Ee() {
5071
+ function ke() {
5057
5072
  var e, t;
5058
5073
  return B != null && (e = B.operation) != null && e.getServers ? (console.warn("operation.getServers is deprecated. Use server.getServers instead."), B.operation.getServers) : (B == null || (t = B.server) == null ? void 0 : t.getServers) || null;
5059
5074
  }
5060
- function De(e) {
5075
+ function Ae(e) {
5061
5076
  let t = I(B, "operation");
5062
5077
  t.getServers = e;
5063
5078
  }
5064
- function Oe() {
5079
+ function je() {
5065
5080
  return B.i18n;
5066
5081
  }
5067
- function ke(e) {
5082
+ function Me(e) {
5068
5083
  let t = I(B, "i18n");
5069
5084
  e.locale && L(B, "i18n", "locale", e.locale), e.fallbackLocale && L(B, "i18n", "fallbackLocale", e.fallbackLocale), e.messages && (t.messages = e.messages), e.availableLocales && (t.availableLocales = e.availableLocales);
5070
5085
  }
5071
- function Ae() {
5086
+ function Ne() {
5072
5087
  return B.spec;
5073
5088
  }
5074
- function je() {
5089
+ function Pe() {
5075
5090
  var e;
5076
5091
  return B == null || (e = B.spec) == null ? void 0 : e.wrapExamples;
5077
5092
  }
5078
- function Me() {
5093
+ function Fe() {
5079
5094
  var e;
5080
5095
  return B == null || (e = B.spec) == null || (e = e.disableDownload) == null ? void 0 : e.value;
5081
5096
  }
5082
- function Ne(e) {
5097
+ function Ie(e) {
5083
5098
  let t = I(B, "spec");
5084
5099
  e.groupByTags !== void 0 && L(B, "spec", "groupByTags", e.groupByTags), e.collapsePaths !== void 0 && L(B, "spec", "collapsePaths", e.collapsePaths), e.showPathsSummary !== void 0 && L(B, "spec", "showPathsSummary", e.showPathsSummary), e.avoidCirculars !== void 0 && L(B, "spec", "avoidCirculars", e.avoidCirculars), e.lazyRendering !== void 0 && L(B, "spec", "lazyRendering", e.lazyRendering), e.defaultTag !== void 0 && (t.defaultTag = e.defaultTag), e.defaultTagDescription !== void 0 && (t.defaultTagDescription = e.defaultTagDescription), e.wrapExamples !== void 0 && (t.wrapExamples = e.wrapExamples), e.disableDownload !== void 0 && L(B, "spec", "disableDownload", e.disableDownload);
5085
5100
  }
5086
- function Pe() {
5087
- let e = Fe(), t = I(B, "codeSamples"), n = e.map((e) => e.lang);
5101
+ function Le() {
5102
+ let e = Re(), t = I(B, "codeSamples"), n = e.map((e) => e.lang);
5088
5103
  return t.defaultLang && n.includes(t.defaultLang) ? t.defaultLang : n[0];
5089
5104
  }
5090
- function Fe(e = []) {
5105
+ function Re(e = []) {
5091
5106
  let t = I(B, "codeSamples");
5092
5107
  if (e.length) {
5093
5108
  var n;
@@ -5095,56 +5110,56 @@ function Wo(e = {}) {
5095
5110
  }
5096
5111
  return t.availableLanguages || [];
5097
5112
  }
5098
- function Ie() {
5113
+ function ze() {
5099
5114
  let e = I(B, "codeSamples");
5100
5115
  return e.generator || (e.generator = z.codeSamples.generator), e.generator;
5101
5116
  }
5102
- function Le() {
5117
+ function Be() {
5103
5118
  let e = I(B, "codeSamples");
5104
5119
  return e.defaultHeaders || (e.defaultHeaders = z.codeSamples.defaultHeaders), e.defaultHeaders;
5105
5120
  }
5106
- function Re(e) {
5121
+ function Ve(e) {
5107
5122
  let t = I(B, "codeSamples");
5108
- e.defaultLang && (t.defaultLang = e.defaultLang), e.availableLanguages && ze(e.availableLanguages), e.generator && (t.generator = e.generator), e.defaultHeaders && (t.defaultHeaders = e.defaultHeaders);
5123
+ e.defaultLang && (t.defaultLang = e.defaultLang), e.availableLanguages && He(e.availableLanguages), e.generator && (t.generator = e.generator), e.defaultHeaders && (t.defaultHeaders = e.defaultHeaders);
5109
5124
  }
5110
- function ze(e) {
5125
+ function He(e) {
5111
5126
  let t = I(B, "codeSamples");
5112
5127
  t.availableLanguages = e;
5113
5128
  }
5114
- function Be() {
5129
+ function Ue() {
5115
5130
  return B.linksPrefixes;
5116
5131
  }
5117
- function Ve(e) {
5132
+ function We(e) {
5118
5133
  let t = I(B, "linksPrefixes");
5119
5134
  e.tags && (t.tags = e.tags), e.operations && (t.operations = e.operations);
5120
5135
  }
5121
- function He() {
5136
+ function Ge() {
5122
5137
  var e;
5123
5138
  return B == null || (e = B.linksPrefixes) == null ? void 0 : e.tags;
5124
5139
  }
5125
- function Ue() {
5140
+ function Ke() {
5126
5141
  var e;
5127
5142
  return B == null || (e = B.linksPrefixes) == null ? void 0 : e.operations;
5128
5143
  }
5129
- function We() {
5144
+ function qe() {
5130
5145
  return B.server;
5131
5146
  }
5132
- function Ge(e) {
5147
+ function Je(e) {
5133
5148
  let t = I(B, "server");
5134
5149
  e.allowCustomServer !== void 0 && (t.allowCustomServer = e.allowCustomServer), e.getServers !== void 0 && (t.getServers = e.getServers);
5135
5150
  }
5136
- function Ke() {
5151
+ function Ye() {
5137
5152
  var e;
5138
5153
  return ((e = B.server) == null ? void 0 : e.allowCustomServer) || !1;
5139
5154
  }
5140
- function qe() {
5155
+ function Xe() {
5141
5156
  return B.markdown;
5142
5157
  }
5143
- function Je() {
5158
+ function Ze() {
5144
5159
  var e, t;
5145
5160
  return (e = (t = B.markdown) == null ? void 0 : t.externalLinksNewTab) != null && e;
5146
5161
  }
5147
- function Ye(e) {
5162
+ function Qe(e) {
5148
5163
  let t = I(B, "markdown");
5149
5164
  if (e.operationLink !== void 0) {
5150
5165
  if (e.operationLink === !1) t.operationLink = !1;
@@ -5155,19 +5170,19 @@ function Wo(e = {}) {
5155
5170
  }
5156
5171
  e.externalLinksNewTab !== void 0 && (t.externalLinksNewTab = e.externalLinksNewTab), e.config !== void 0 && (t.config = e.config);
5157
5172
  }
5158
- function Xe() {
5173
+ function $e() {
5159
5174
  var e;
5160
5175
  return (e = B.markdown) == null ? void 0 : e.operationLink;
5161
5176
  }
5162
- function Ze() {
5177
+ function et() {
5163
5178
  var e, t;
5164
5179
  return (e = B == null || (t = B.storage) == null ? void 0 : t.prefix) == null ? Bo : e;
5165
5180
  }
5166
- function Qe(e) {
5181
+ function tt(e) {
5167
5182
  let t = I(B, "storage");
5168
5183
  e.prefix !== void 0 && (t.prefix = e.prefix), e.persistAuth !== void 0 && (t.persistAuth = e.persistAuth);
5169
5184
  }
5170
- function $e() {
5185
+ function nt() {
5171
5186
  var e, t;
5172
5187
  return (e = B == null || (t = B.storage) == null ? void 0 : t.persistAuth) == null || e;
5173
5188
  }
@@ -5179,76 +5194,80 @@ function Wo(e = {}) {
5179
5194
  getLocale: i,
5180
5195
  setLocale: a,
5181
5196
  getHighlighterTheme: o,
5182
- getSchemaDefaultView: c,
5183
- getRequestBodyDefaultView: c,
5184
- setSchemaDefaultView: l,
5185
- setRequestBodyDefaultView: l,
5186
- getShowBaseURL: u,
5187
- setShowBaseURL: d,
5188
- getJsonViewerDeep: f,
5189
- setJsonViewerDeep: p,
5190
- getJsonViewerRenderer: m,
5191
- setJsonViewerRenderer: h,
5192
- getSchemaViewerDeep: g,
5193
- setSchemaViewerDeep: _,
5194
- getHeadingLevels: v,
5195
- getHeadingLevel: y,
5196
- setHeadingLevels: b,
5197
- getResponseCodeSelector: x,
5198
- setResponseCodeSelector: S,
5199
- getResponseCodeMaxTabs: C,
5200
- setResponseCodeMaxTabs: ee,
5201
- getResponseBodyDefaultView: te,
5202
- setResponseBodyDefaultView: w,
5203
- getPlaygroundJsonEditorMode: ne,
5204
- setPlaygroundJsonEditorMode: re,
5205
- getPlaygroundJsonEditorMainMenuBar: ie,
5206
- setPlaygroundJsonEditorMainMenuBar: ae,
5207
- getPlaygroundJsonEditorNavigationBar: oe,
5208
- setPlaygroundJsonEditorNavigationBar: se,
5209
- getPlaygroundJsonEditorStatusBar: ce,
5210
- setPlaygroundJsonEditorStatusBar: le,
5211
- getPlaygroundExamplesBehavior: ue,
5212
- setPlaygroundExamplesBehavior: de,
5213
- getPlaygroundXExampleBehavior: fe,
5214
- setPlaygroundXExampleBehavior: pe,
5215
- getSecurityDefaultScheme: me,
5216
- setSecurityDefaultScheme: he,
5217
- getOperationBadges: ge,
5218
- setOperationBadges: _e,
5219
- getOperationSlots: ve,
5220
- setOperationSlots: ye,
5221
- getOperationHiddenSlots: be,
5222
- setOperationHiddenSlots: xe,
5223
- getOperationCols: Se,
5224
- setOperationCols: Ce,
5225
- getOperationDefaultBaseUrl: we,
5226
- getOperationServers: Ee,
5227
- getI18nConfig: Oe,
5228
- setI18nConfig: ke,
5229
- getSpecConfig: Ae,
5230
- getWrapExamples: je,
5231
- getSpecDisableDownload: Me,
5232
- setSpecConfig: Ne,
5233
- getCodeSamplesDefaultLang: Pe,
5234
- getCodeSamplesAvailableLanguages: Fe,
5235
- getCodeSamplesGenerator: Ie,
5236
- getCodeSamplesDefaultHeaders: Le,
5237
- setCodeSamplesConfig: Re,
5238
- getLinksPrefixesConfig: Be,
5239
- setLinksPrefixesConfig: Ve,
5240
- getTagsLinkPrefix: He,
5241
- getOperationsLinkPrefix: Ue,
5242
- getServerConfig: We,
5243
- setServerConfig: Ge,
5244
- getServerAllowCustomServer: Ke,
5245
- getMarkdownConfig: qe,
5246
- getExternalLinksNewTab: Je,
5247
- setMarkdownConfig: Ye,
5248
- getOperationLinkConfig: Xe,
5249
- getStoragePrefix: Ze,
5250
- getStoragePersistAuth: $e,
5251
- setStorageConfig: Qe
5197
+ setHighlighterTheme: s,
5198
+ getShikiLanguages: c,
5199
+ getShikiLanguage: l,
5200
+ setShikiLanguages: u,
5201
+ getSchemaDefaultView: d,
5202
+ getRequestBodyDefaultView: d,
5203
+ setSchemaDefaultView: f,
5204
+ setRequestBodyDefaultView: f,
5205
+ getShowBaseURL: p,
5206
+ setShowBaseURL: m,
5207
+ getJsonViewerDeep: h,
5208
+ setJsonViewerDeep: g,
5209
+ getJsonViewerRenderer: _,
5210
+ setJsonViewerRenderer: v,
5211
+ getSchemaViewerDeep: y,
5212
+ setSchemaViewerDeep: b,
5213
+ getHeadingLevels: x,
5214
+ getHeadingLevel: S,
5215
+ setHeadingLevels: C,
5216
+ getResponseCodeSelector: ee,
5217
+ setResponseCodeSelector: te,
5218
+ getResponseCodeMaxTabs: w,
5219
+ setResponseCodeMaxTabs: ne,
5220
+ getResponseBodyDefaultView: re,
5221
+ setResponseBodyDefaultView: ie,
5222
+ getPlaygroundJsonEditorMode: ae,
5223
+ setPlaygroundJsonEditorMode: oe,
5224
+ getPlaygroundJsonEditorMainMenuBar: se,
5225
+ setPlaygroundJsonEditorMainMenuBar: ce,
5226
+ getPlaygroundJsonEditorNavigationBar: le,
5227
+ setPlaygroundJsonEditorNavigationBar: ue,
5228
+ getPlaygroundJsonEditorStatusBar: de,
5229
+ setPlaygroundJsonEditorStatusBar: fe,
5230
+ getPlaygroundExamplesBehavior: pe,
5231
+ setPlaygroundExamplesBehavior: me,
5232
+ getPlaygroundXExampleBehavior: he,
5233
+ setPlaygroundXExampleBehavior: ge,
5234
+ getSecurityDefaultScheme: _e,
5235
+ setSecurityDefaultScheme: ve,
5236
+ getOperationBadges: ye,
5237
+ setOperationBadges: be,
5238
+ getOperationSlots: xe,
5239
+ setOperationSlots: Se,
5240
+ getOperationHiddenSlots: Ce,
5241
+ setOperationHiddenSlots: we,
5242
+ getOperationCols: Te,
5243
+ setOperationCols: Ee,
5244
+ getOperationDefaultBaseUrl: De,
5245
+ getOperationServers: ke,
5246
+ getI18nConfig: je,
5247
+ setI18nConfig: Me,
5248
+ getSpecConfig: Ne,
5249
+ getWrapExamples: Pe,
5250
+ getSpecDisableDownload: Fe,
5251
+ setSpecConfig: Ie,
5252
+ getCodeSamplesDefaultLang: Le,
5253
+ getCodeSamplesAvailableLanguages: Re,
5254
+ getCodeSamplesGenerator: ze,
5255
+ getCodeSamplesDefaultHeaders: Be,
5256
+ setCodeSamplesConfig: Ve,
5257
+ getLinksPrefixesConfig: Ue,
5258
+ setLinksPrefixesConfig: We,
5259
+ getTagsLinkPrefix: Ge,
5260
+ getOperationsLinkPrefix: Ke,
5261
+ getServerConfig: qe,
5262
+ setServerConfig: Je,
5263
+ getServerAllowCustomServer: Ye,
5264
+ getMarkdownConfig: Xe,
5265
+ getExternalLinksNewTab: Ze,
5266
+ setMarkdownConfig: Qe,
5267
+ getOperationLinkConfig: $e,
5268
+ getStoragePrefix: et,
5269
+ getStoragePersistAuth: nt,
5270
+ setStorageConfig: tt
5252
5271
  };
5253
5272
  }
5254
5273
  //#endregion
@@ -8188,633 +8207,90 @@ var Gu = (e) => [e, null], Ku = (e) => [null, new qu(e)], qu = class e extends E
8188
8207
  constructor(t) {
8189
8208
  super("thrown error", { cause: t }), this.cause = t, Error.captureStackTrace && Error.captureStackTrace(this, e);
8190
8209
  }
8191
- };
8210
+ }, Ju = Symbol.for("__confbox_fmt__"), Yu = /^(\s+)/, Xu = /(\s+)$/;
8211
+ function Zu(e, t = {}) {
8212
+ var n, r;
8213
+ return {
8214
+ sample: t.indent === void 0 && t.preserveIndentation !== !1 && e.slice(0, (t == null ? void 0 : t.sampleSize) || 1024),
8215
+ whiteSpace: t.preserveWhitespace === !1 ? void 0 : {
8216
+ start: ((n = Yu.exec(e)) == null ? void 0 : n[0]) || "",
8217
+ end: ((r = Xu.exec(e)) == null ? void 0 : r[0]) || ""
8218
+ }
8219
+ };
8220
+ }
8221
+ function Qu(e, t, n) {
8222
+ !t || typeof t != "object" || Object.defineProperty(t, Ju, {
8223
+ enumerable: !1,
8224
+ configurable: !0,
8225
+ writable: !0,
8226
+ value: Zu(e, n)
8227
+ });
8228
+ }
8192
8229
  //#endregion
8193
- //#region node_modules/.pnpm/allof-merge@0.6.8/node_modules/allof-merge/dist/index.mjs
8194
- function Ju(e, t) {
8195
- var n = {};
8196
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
8197
- if (e != null && typeof Object.getOwnPropertySymbols == "function") {
8198
- var i = 0;
8199
- for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
8200
- }
8201
- return n;
8230
+ //#region node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs
8231
+ function $u(e) {
8232
+ return e == null;
8202
8233
  }
8203
- function Yu(e, t) {
8204
- var n = {};
8205
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
8206
- if (e != null && typeof Object.getOwnPropertySymbols == "function") {
8207
- var i = 0;
8208
- for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
8209
- }
8210
- return n;
8234
+ function ed(e) {
8235
+ return typeof e == "object" && !!e;
8211
8236
  }
8212
- var Xu = (e = {}, t, n, r) => {
8213
- let i = `/${t}`, a = typeof e["/**"] == "function" ? e["/**"]({
8214
- key: t,
8215
- path: n,
8216
- value: r
8217
- }) : e["/**"], o = typeof e["/*"] == "function" ? e["/*"]({
8218
- key: t,
8219
- path: n,
8220
- value: r
8221
- }) : e["/*"], s = {};
8222
- if (i in e) s = e[i];
8223
- else if (!a && !o) return;
8224
- return s = typeof s == "function" ? s({
8225
- key: t,
8226
- path: n,
8227
- value: r
8228
- }) : s, o && (s = Object.assign(Object.assign({}, o), s)), a ? Object.assign(Object.assign({ "/**": e["/**"] }, a), s) : s;
8229
- }, Zu = (e) => {
8230
- let t = {}, n = e.reduce(((e, t) => (Object.keys(t).forEach(((t) => e.add(t))), e)), /* @__PURE__ */ new Set());
8231
- for (let r of n.keys()) {
8232
- let n = e.filter(((e) => r in e));
8233
- if (n.length !== 1) {
8234
- if (r.charAt(0) !== "/") throw Error(`Cannot merge rules. Duplicate key: ${r}. Rules should not have same Rule key`);
8235
- t[r] = (e, t) => Zu(n.map(((n) => typeof n[r] == "function" ? n[r](e, t) : n[r])));
8236
- } else t[r] = n[0][r];
8237
- }
8238
- return t;
8239
- }, Qu = (e) => typeof e == "object" && !!e, $u = (e) => Array.isArray(e), ed = (e, t, n = {}) => {
8240
- var r, i;
8241
- t = $u(t) ? t : [t];
8242
- let a = $u(n.rules) ? Zu(n.rules) : n.rules, o = [{
8243
- data: e,
8244
- state: n.state,
8245
- path: [],
8246
- keys: [],
8247
- keyIndex: -1,
8248
- rules: a
8249
- }];
8250
- for (; o.length > 0;) {
8251
- let e = o[o.length - 1];
8252
- if (e.keyIndex >= e.keys.length) {
8253
- for (; (r = e.hooks) != null && r.length;) e.hooks.pop()();
8254
- o.pop();
8255
- continue;
8256
- }
8257
- let n = e.keys[e.keyIndex++], [s, c, l] = o.length > 1 ? [
8258
- e.data[n],
8259
- [...e.path, n],
8260
- Xu(e.rules, n, [...e.path, n], e.data[n])
8261
- ] : [
8262
- e.data,
8263
- e.path,
8264
- a
8265
- ], u = {
8266
- value: s,
8267
- path: c,
8268
- key: n,
8269
- state: e.state,
8270
- rules: l
8271
- }, d = [];
8272
- for (let e of t) {
8273
- if (!e || typeof e != "function") continue;
8274
- let t = (i = e(u)) == null ? {} : i, { terminate: n, done: r, exitHook: a } = t, o = Yu(t, [
8275
- "terminate",
8276
- "done",
8277
- "exitHook"
8278
- ]);
8279
- if (n) return;
8280
- if (a && d.push(a), u = Object.assign(Object.assign({}, u), o), r) {
8281
- u = null;
8282
- break;
8283
- }
8284
- }
8285
- if (u && Qu(u.value)) {
8286
- let e = $u(u.value) ? [...u.value.keys()] : Object.keys(u.value);
8287
- o.push({
8288
- hooks: d,
8289
- state: u.state,
8290
- data: u.value,
8291
- path: c,
8292
- keys: e,
8293
- keyIndex: 0,
8294
- rules: u.rules
8295
- });
8296
- } else for (; d.length;) d.pop()();
8297
- }
8298
- }, td = () => {
8299
- let e = /* @__PURE__ */ new WeakMap(), t;
8300
- return [({ value: e }) => {
8301
- t = e;
8302
- }, ({ value: n, path: r, key: i, state: a }) => {
8303
- if (i = r.length ? i : "#", Qu(t) && Qu(n)) {
8304
- if (e.has(t)) return a.node[i] = e.get(t), { done: !0 };
8305
- let r = Array.isArray(n) ? [] : {};
8306
- a.node[i] = r, e.set(t, r);
8307
- } else a.node[i] = n;
8308
- return {
8309
- value: n,
8310
- state: Object.assign(Object.assign({}, a), { node: a.node[i] })
8311
- };
8312
- }];
8313
- }, nd = class extends Map {
8314
- add(e, t) {
8315
- let n = this.get(e);
8316
- return n ? n.push(t) : this.set(e, [t]), this;
8317
- }
8318
- }, rd = (e, t) => {
8319
- let n = {};
8320
- for (let r of t) r in e && (n[r] = e[r], delete e[r]);
8237
+ function td(e) {
8238
+ return Array.isArray(e) ? e : $u(e) ? [] : [e];
8239
+ }
8240
+ function nd(e, t) {
8241
+ var n, r, i, a;
8242
+ if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
8243
+ return e;
8244
+ }
8245
+ function rd(e, t) {
8246
+ var n = "", r;
8247
+ for (r = 0; r < t; r += 1) n += e;
8321
8248
  return n;
8322
- }, id = (e, t) => {
8323
- if (Array.isArray(e) && Array.isArray(t)) return [...e, ...t];
8324
- if (Qu(e) && Qu(t)) {
8325
- let n = Object.assign({}, e);
8326
- for (let e of Object.keys(t)) n[e] = id(n[e], t[e]);
8327
- return n;
8328
- }
8329
- return t;
8330
- }, ad = (e) => e && e.$ref && typeof e.$ref == "string", od = (e) => e && e.anyOf && Array.isArray(e.anyOf), sd = (e) => e && e.oneOf && Array.isArray(e.oneOf), cd = (e, t = "") => {
8331
- let [n = t, r] = e.split("#"), i = r && r !== "/" ? r : "";
8332
- return {
8333
- filePath: n,
8334
- pointer: i,
8335
- normalized: ld(n, i),
8336
- jsonPath: fd(i)
8337
- };
8338
- }, ld = (e, t) => e ? `${e}${t ? "#" + t : ""}` : t ? `#${t}` : "#", ud = (e, t, n = [t]) => {
8339
- if (!Qu(e)) return;
8340
- let r = e, i = fd(t);
8341
- for (let t of i) if (Array.isArray(r) && r.length > +t) r = r[+t];
8342
- else if (Qu(r) && t in r) r = r[t];
8343
- else {
8344
- if (!ad(r)) return;
8345
- {
8346
- let t = cd(r.$ref);
8347
- r = t.filePath || n.includes(t.pointer) ? void 0 : ud(e, t.pointer, [...n, t.pointer]);
8348
- }
8349
- }
8350
- return r;
8351
- }, dd = {
8352
- slash: /\//g,
8353
- tilde: /~/g,
8354
- escapedSlash: /~1/g,
8355
- escapedTilde: /~0/g
8356
- }, fd = (e) => e.split("/").map(((e) => decodeURIComponent(e.replace(dd.escapedSlash, "/").replace(dd.escapedTilde, "~")))).slice(1), pd = (e) => e.length ? "/" + e.map(((e) => encodeURIComponent(String(e).replace(dd.tilde, "~0").replace(dd.slash, "~1")))).join("/") : "", md = (e, t) => JSON.stringify(e) == JSON.stringify(t), hd = (e) => {
8357
- let t = 1;
8358
- for (; e * t % 1 != 0;) t *= 10;
8359
- return t;
8249
+ }
8250
+ function id(e) {
8251
+ return e === 0 && 1 / e == -1 / 0;
8252
+ }
8253
+ var K = {
8254
+ isNothing: $u,
8255
+ isObject: ed,
8256
+ toArray: td,
8257
+ repeat: rd,
8258
+ isNegativeZero: id,
8259
+ extend: nd
8360
8260
  };
8361
- function gd(e) {
8362
- let t = e.reduce(((e, t) => Math.max(e, hd(t))), 0);
8363
- return e.reduce(((e, n) => Math.round(e * t * n * t / _d(e * t, n * t)) / t));
8261
+ function ad(e, t) {
8262
+ var n = "", r = e.reason || "(unknown reason)";
8263
+ return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
8364
8264
  }
8365
- function _d(e, t) {
8366
- return t === 0 ? e : _d(t, e % t);
8265
+ function od(e, t) {
8266
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = ad(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = Error().stack || "";
8367
8267
  }
8368
- var vd = (e) => {
8369
- if (e.length === 0) return [[]];
8370
- let t = e[0], n = vd(e.slice(1)), r = [];
8371
- for (let e of t) for (let t of n) r.push([e, ...t]);
8372
- return r;
8373
- }, yd = (e) => {
8374
- let t = [];
8375
- for (let n of e) {
8376
- if (!("properties" in n)) continue;
8377
- let r = new Set(Object.keys(n.properties)), i = new nd();
8378
- for (let t of r.values()) for (let a of e) if (!(a == n || a.properties && t in a.properties)) {
8379
- if ("patternProperties" in a && a.patternProperties) for (let e of Object.keys(a.patternProperties)) new RegExp(e).test(t) || r.delete(t);
8380
- else "additionalProperties" in a && (!1 === a.additionalProperties ? r.delete(t) : typeof a.additionalProperties == "object" && i.add(t, a.additionalProperties));
8381
- }
8382
- if (!r.size) continue;
8383
- let a = {};
8384
- for (let e of r.values()) a[e] = i.has(e) ? { allOf: [n.properties[e], ...i.get(e)] } : n.properties[e];
8385
- t.push(a);
8386
- }
8387
- return t;
8388
- }, bd = (e) => {
8389
- let t = [];
8390
- for (let n of e) {
8391
- if (!("patternProperties" in n)) continue;
8392
- let r = new Set(Object.keys(n.patternProperties));
8393
- for (let t of e) if (t != n && "additionalProperties" in t && !t.additionalProperties) for (let e of r.values()) t.patternProperties && e in t.patternProperties || r.delete(e);
8394
- if (!r.size) continue;
8395
- let i = {};
8396
- for (let e of r.values()) i[e] = n.patternProperties[e];
8397
- t.push(i);
8398
- }
8399
- return t;
8400
- }, xd = (e) => {
8401
- let t = {}, n = Td(e);
8402
- for (let [e, r] of Object.entries(n)) t[e] = r.includes(!1) ? !1 : r.length > 1 ? { allOf: r } : r[0];
8403
- return t;
8404
- }, Sd = (e, t) => !!e.reduce(((e, t) => e && !0 === t), !0) || Ed(e, t), Cd = () => "Could not merge values, they are probably incompatible", wd = (e) => `Merge rule not found for key: ${e}`, Td = (e) => {
8405
- let t = {};
8406
- for (let n of e) for (let e of Object.keys(n)) Array.isArray(t[e]) ? t[e].push(n[e]) : t[e] = [n[e]];
8407
- return t;
8408
- }, Ed = (e, t) => {
8409
- if (e.includes(!1)) return !1;
8410
- let n = {}, r = Td(e);
8411
- "properties" in r && (r.properties = yd(e)), "patternProperties" in r && (r.patternProperties = bd(e));
8412
- for (let [i, a] of Object.entries(r)) {
8413
- if (!a.length) continue;
8414
- let r = t.mergeRules, o = `/${i}` in r ? r[`/${i}`] : r["/?"];
8415
- o = o && !("$" in o) && "/" in o ? o["/"] : o, o = typeof o == "function" ? o() : o;
8416
- let s = o && "$" in o ? o.$ : void 0;
8417
- if (!s) throw Error(wd(i));
8418
- let c = a.length > 1 ? s(a, Object.assign(Object.assign({}, t), { allOfItems: e })) : a[0];
8419
- c === void 0 ? t.mergeError(a) : n[i] = c;
8420
- }
8421
- return Object.keys(n).length ? n : void 0;
8422
- }, Dd = (e) => e[e.length - 1], Od = (e) => e.reduce(((e, t) => e || t), !1), kd = (e) => Math.min(...e), Ad = (e) => Math.max(...e), jd = (e) => e.length > 1 ? e.reduce(((e, t) => `${e}(?=${t})`), "") : e[0], Md = ([e, ...t]) => t.reduce(((e, t) => e.filter(((e) => t.includes(e)))), e), Nd = ([e, ...t]) => t.find(((t) => !md(t, e))) ? void 0 : e, Pd = ([e, ...t]) => t.reduce(((e, t) => id(e, t)), e), Fd = (e) => vd(e).map(((e) => ({ allOf: e }))), Id = (e) => ({ anyOf: e }), Ld = (e) => gd(e), Rd = (e, t) => {
8423
- let n = Md(e.map(((e) => e.map(((e) => JSON.stringify(e)))))).map(((e) => JSON.parse(e))).sort();
8424
- return n.length || t.mergeError(e), n;
8425
- }, zd = (e, t) => {
8426
- let n = Md(e.map(((e) => Array.isArray(e) ? e : [e])));
8427
- return n.length === 1 ? n[0] : n.length ? n : void 0;
8428
- }, Bd = (e) => {
8429
- let t = /* @__PURE__ */ new Set();
8430
- for (let n of e) for (let e of n) t.add(e);
8431
- return Array.from(t).sort();
8432
- }, Vd = (e, t) => {
8433
- let n = {}, r = Td(e);
8434
- for (let [e, t] of Object.entries(r)) if (t.reduce(((e, t) => e && Array.isArray(t)), !0)) n[e] = Bd(t);
8435
- else {
8436
- let r = t.map(((e) => Array.isArray(e) ? { required: e } : e));
8437
- n[e] = r.length > 1 ? { allOf: r } : r[0];
8438
- }
8439
- return n;
8440
- }, Hd = (e, t) => {
8441
- if (!e.reduce(((e, t) => Array.isArray(t) || e), !1)) return Ed(e, t);
8442
- let n = [], r = 1 / 0, i = 0, a = new nd();
8443
- for (let e of t.allOfItems) "additionalItems" in e && e.additionalItems && "items" in e && Array.isArray(e.items) && a.add(e.items.length, e.additionalItems), "items" in e && (n.push(e.items), Array.isArray(e.items) && (i = Math.max(i, e.items.length), "additionalItems" in e && !1 === e.additionalItems && (r = Math.min(r, e.items.length))));
8444
- let o = Math.min(i, r), s = [...Array(o)].map((() => ({ allOf: [] })));
8445
- for (let e of n) if (Array.isArray(e)) for (let t = 0; t < o; t++) {
8446
- let n = [];
8447
- for (let e = 0; e <= t; e++) a.has(e) && n.push(...a.get(e));
8448
- t < e.length ? s[t].allOf.push(n.length ? Object.assign(Object.assign({}, e[t]), { allOf: n }) : e[t]) : s[t].allOf.push(!n.length || { allOf: n });
8449
- }
8450
- else s.forEach((({ allOf: t }) => t.push(e)));
8451
- return s;
8452
- }, Ud = (e, t) => {
8453
- let n = [], r = [];
8454
- for (let e of t.allOfItems) "items" in e && !Array.isArray(e.items) && r.push(e.items), "additionalItems" in e && "items" in e && Array.isArray(e.items) && n.push(e.additionalItems);
8455
- return r.length && n.forEach(((e) => e.allOf = r)), Ed(n, t);
8456
- }, K = (e = "draft-06", t = {}) => Object.assign(Object.assign(Object.assign(Object.assign({
8457
- "/maximum": { $: kd },
8458
- "/exclusiveMaximum": { $: Od },
8459
- "/minimum": { $: Ad },
8460
- "/exclusiveMinimum": { $: Od },
8461
- "/maxLength": { $: kd },
8462
- "/minLength": { $: Ad },
8463
- "/maxItems": { $: kd },
8464
- "/minItems": { $: Ad },
8465
- "/uniqueItems": { $: Od },
8466
- "/maxProperties": { $: kd },
8467
- "/minProperties": { $: Ad },
8468
- "/required": { $: Bd },
8469
- "/multipleOf": { $: Ld },
8470
- "/enum": { $: Rd },
8471
- "/type": { $: zd },
8472
- "/allOf": {
8473
- "/*": () => K(e, t),
8474
- $: Fd
8475
- },
8476
- "/not": { $: Id },
8477
- "/oneOf": {
8478
- "/*": () => K(e, t),
8479
- $: Fd,
8480
- sibling: [
8481
- "definitions",
8482
- "$defs",
8483
- "$id",
8484
- "$schema"
8485
- ]
8486
- },
8487
- "/anyOf": {
8488
- "/*": () => K(e, t),
8489
- $: Fd,
8490
- sibling: [
8491
- "definitions",
8492
- "$defs",
8493
- "$id",
8494
- "$schema"
8495
- ]
8496
- },
8497
- "/properties": {
8498
- "/*": () => K(e, t),
8499
- $: xd
8500
- },
8501
- "/items": () => Object.assign(Object.assign({}, K(e, t)), {
8502
- $: Hd,
8503
- "/*": ({ key: n }) => typeof n == "number" ? K(e, t) : {}
8504
- }),
8505
- "/additionalProperties": () => Object.assign(Object.assign({}, K(e, t)), { $: Sd }),
8506
- "/additionalItems": () => Object.assign(Object.assign({}, K(e, t)), { $: Ud }),
8507
- "/patternProperties": {
8508
- "/*": () => K(e, t),
8509
- $: xd
8510
- },
8511
- "/pattern": { $: jd },
8512
- "/readOnly": { $: Od },
8513
- "/writeOnly": { $: Od },
8514
- "/example": { $: Pd },
8515
- "/examples": { $: Pd },
8516
- "/deprecated": { $: Od }
8517
- }, e === "draft-04" ? {} : {
8518
- "/propertyNames": () => K(e, t),
8519
- "/contains": () => K(e, t),
8520
- "/dependencies": {
8521
- "/*": () => K(e, t),
8522
- $: Vd
8523
- },
8524
- "/const": { $: Nd },
8525
- "/exclusiveMaximum": { $: kd },
8526
- "/exclusiveMinimum": { $: Ad },
8527
- "/$defs": {
8528
- "/*": () => K(e, t),
8529
- $: Pd
8530
- }
8531
- }), {
8532
- "/definitions": {
8533
- "/*": () => K(e, t),
8534
- $: Pd
8535
- },
8536
- "/xml": { $: Pd },
8537
- "/externalDocs": { $: Dd },
8538
- "/description": { $: Dd },
8539
- "/title": { $: Dd },
8540
- "/format": { $: Dd },
8541
- "/default": { $: Dd },
8542
- "/?": { $: Dd }
8543
- }), t), { $: Ed }), Wd = (e) => K(e, {
8544
- "/discriminator": { $: Pd },
8545
- "/oneOf": {
8546
- "/*": () => Wd(e),
8547
- $: Fd,
8548
- sibling: ["discriminator"]
8549
- },
8550
- "/anyOf": {
8551
- "/*": () => Wd(e),
8552
- $: Fd,
8553
- sibling: ["discriminator"]
8554
- }
8555
- }), Gd = (e) => e === "3.0.x" ? Object.assign(Object.assign({}, Wd("draft-04")), { "/items": ({ key: e }) => Object.assign(Object.assign({}, Wd("draft-04")), { $: Hd }) }) : Wd("draft-06"), Kd = (e) => ({ "/*": { "/schema": Gd(e) } }), qd = (e) => ({ "/content": { "/*": {
8556
- "/schema": Gd(e),
8557
- "/encoding": { "/headers": Kd(e) }
8558
- } } }), Jd = (e) => ({ "/*": {
8559
- "/headers": Kd(e),
8560
- "/content": { "/*": {
8561
- "/schema": Gd(e),
8562
- "/encoding": { "/headers": Kd(e) }
8563
- } }
8564
- } }), Yd = (e = "3.0.x") => ({
8565
- "/paths": { "/*": {
8566
- "/*": {
8567
- "/parameters": Kd(e),
8568
- "/requestBody": qd(e),
8569
- "/responses": Jd(e)
8570
- },
8571
- "/parameters": Kd(e)
8572
- } },
8573
- "/components": {
8574
- "/schemas": { "/*": Gd(e) },
8575
- "/responses": Jd(e),
8576
- "/parameters": Kd(e),
8577
- "/requestBodies": { "/*": qd(e) },
8578
- "/headers": Kd(e)
8579
- }
8580
- }), Xd = K("draft-06", {
8581
- "/args": () => Xd,
8582
- "/nullable": { $: Od },
8583
- "/specifiedByURL": { $: Dd },
8584
- "/values": {
8585
- $: Pd,
8586
- "/*": {
8587
- $: Pd,
8588
- "/description": { $: Dd },
8589
- "/deprecated": {
8590
- $: Dd,
8591
- "/reason": { $: Dd }
8592
- }
8593
- }
8594
- },
8595
- "/interfaces": {
8596
- $: Pd,
8597
- "/*": { $: Pd }
8598
- },
8599
- "/directives": {
8600
- $: Pd,
8601
- "/*": () => Object.assign(Object.assign({}, Xd), { "/meta": { $: Pd } })
8602
- }
8603
- }), Zd = {
8604
- "/queries": { "/*": () => Xd },
8605
- "/mutations": { "/*": () => Xd },
8606
- "/subscriptions": { "/*": () => Xd },
8607
- "/components": {
8608
- "/*": { "/*": Xd },
8609
- "/directives": { "/*": { "/args": () => Xd } }
8610
- }
8611
- }, Qd = (e, t, n) => {
8612
- let r = n.sibling || [], i = e, a = t, o = i[a], s = Ju(i, [typeof a == "symbol" ? a : a + ""]), c = rd(s, r);
8613
- return Object.keys(s).length ? Object.assign({ [t]: o.map(((e) => ({ allOf: [s, e] }))) }, c) : e;
8614
- }, $d = (e, t, n, r) => {
8615
- let i = [], a = pd(t), o = [], s = {
8616
- pointer: a,
8617
- data: "",
8618
- refs: []
8619
- };
8620
- for (let t of e) if (ad(t) && !o.includes(t.$ref)) {
8621
- s.data === "" && (s.data = JSON.stringify(e));
8622
- let { $ref: c } = t, l = Ju(t, ["$ref"]), { filePath: u, normalized: d, pointer: f } = cd(c);
8623
- if (a === f) continue;
8624
- let p = r.find(((e) => e.refs.includes(t.$ref) && e.data === s.data && f !== e.pointer));
8625
- if (p) return {
8626
- allOfItems: [{ $ref: `#${p.pointer}` }],
8627
- brokenRefs: o
8628
- };
8629
- if (!s.refs.includes(d)) {
8630
- s.refs.push(d);
8631
- let e = u ? void 0 : ud(n, f);
8632
- e === void 0 ? (o.push(d), i.push(t)) : i.push(e);
8633
- }
8634
- Object.keys(l).length && i.push(l);
8635
- } else i.push(t);
8636
- s.refs.length && r.push(s);
8637
- let c = ef(i);
8638
- return c.find(((e) => ad(e) && !o.includes(e.$ref))) ? $d(c, t, n, r) : {
8639
- allOfItems: c,
8640
- brokenRefs: o
8641
- };
8642
- }, ef = (e) => {
8643
- let t = [];
8644
- for (let n of e) if (Qu(n)) {
8645
- if (n.allOf && Array.isArray(n.allOf)) {
8646
- let { allOf: e } = n, r = Ju(n, ["allOf"]), i = Object.keys(r).length ? [...e, r] : e;
8647
- t.push(...ef(i));
8648
- } else t.push(n);
8649
- }
8650
- return t;
8651
- }, tf = (e) => typeof e != "object" || !e ? K() : "openapi" in e && typeof e.openapi == "string" && /3.+/.test(e.openapi) ? Yd(e.openapi.startsWith("3.1") ? "3.1.x" : "3.0.x") : "graphapi" in e && typeof e.graphapi == "string" ? Zd : K(), nf = (e, t) => {
8652
- var n;
8653
- let r = (n = t == null ? void 0 : t.rules) == null ? tf(e) : n;
8654
- return ((e, t = [], n = {}) => {
8655
- var r;
8656
- t = Array.isArray(t) ? t : [t];
8657
- let i = { "#": void 0 }, a = Object.assign({ state: Object.assign(Object.assign({}, (r = n.state) == null ? {} : r), {
8658
- root: i,
8659
- node: i
8660
- }) }, n.rules ? { rules: n.rules } : {}), [o, s] = td();
8661
- return ed(e, [
8662
- o,
8663
- ...t,
8664
- s
8665
- ], a), i["#"];
8666
- })(e, rf(t), { rules: r });
8667
- }, rf = (e) => {
8668
- let t = /* @__PURE__ */ new Map(), n = e == null ? void 0 : e.source, r = [];
8669
- return ({ value: i, key: a, path: o, rules: s, state: c }) => {
8670
- var l;
8671
- o.length || e != null && e.source || (n = i);
8672
- let u = (n) => {
8673
- var r;
8674
- let i = af(o);
8675
- i ? t.set(...i) : (r = e == null ? void 0 : e.onMergeError) == null || r.call(e, Cd(), o, n);
8676
- }, d = () => {
8677
- let { node: e } = c, n = pd(o);
8678
- if (t.has(n)) {
8679
- let r = t.get(n), o = e[a];
8680
- Array.isArray(o) && (o.length < 2 && u((i == null ? void 0 : i.allOf) || []), o.splice(r, 1));
8681
- }
8682
- };
8683
- if (!Qu(i) || Array.isArray(i) || !((e) => !!e && e["/allOf"] && "$" in e["/allOf"])(s)) return { exitHook: d };
8684
- let { allOf: f } = i, p = Ju(i, ["allOf"]), m = [];
8685
- if (Array.isArray(f) && m.push(...f), m.length) Object.keys(p).length && m.push(p);
8686
- else {
8687
- let { $ref: t } = p, n = Ju(p, ["$ref"]);
8688
- if (e != null && e.mergeRefSibling && t && Object.keys(n).length > 0) m.push({ $ref: t }, n);
8689
- else if (e != null && e.mergeCombinarySibling) {
8690
- if (od(p) && s["/anyOf"]) return {
8691
- value: Qd(p, "anyOf", s["/anyOf"]),
8692
- exitHook: d
8693
- };
8694
- if (sd(p) && s["/oneOf"]) return {
8695
- value: Qd(p, "oneOf", s["/oneOf"]),
8696
- exitHook: d
8697
- };
8698
- }
8699
- }
8700
- if (!m.length) return {
8701
- value: p,
8702
- exitHook: d
8703
- };
8704
- let { allOfItems: h, brokenRefs: g } = $d(m, o, n, r);
8705
- if (g.length) {
8706
- for (let t of g) (l = e == null ? void 0 : e.onRefResolveError) == null || l.call(e, "Cannot resolve $ref", o, t);
8707
- return {
8708
- value: { allOf: h },
8709
- exitHook: d
8710
- };
8711
- }
8712
- if (h.length < 2) return {
8713
- value: h.length ? h[0] : {},
8714
- exitHook: d
8715
- };
8716
- let _ = Ed(h, {
8717
- allOfItems: h,
8718
- mergeRules: s,
8719
- mergeError: u
8720
- });
8721
- return e != null && e.mergeCombinarySibling && od(_) ? {
8722
- value: Qd(_, "anyOf", s["/anyOf"]),
8723
- exitHook: d
8724
- } : e != null && e.mergeCombinarySibling && sd(_) ? {
8725
- value: Qd(_, "oneOf", s["/oneOf"]),
8726
- exitHook: d
8727
- } : {
8728
- value: _,
8729
- exitHook: d
8730
- };
8731
- };
8732
- }, af = (e) => {
8733
- for (let t = e.length - 2; t >= 0; t--) if (e[t] === "anyOf" || e[t] === "oneOf") return [pd(e.slice(0, t + 1)), e[t + 1]];
8734
- }, of = Symbol.for("__confbox_fmt__"), sf = /^(\s+)/, cf = /(\s+)$/;
8735
- function lf(e, t = {}) {
8736
- var n, r;
8737
- return {
8738
- sample: t.indent === void 0 && t.preserveIndentation !== !1 && e.slice(0, (t == null ? void 0 : t.sampleSize) || 1024),
8739
- whiteSpace: t.preserveWhitespace === !1 ? void 0 : {
8740
- start: ((n = sf.exec(e)) == null ? void 0 : n[0]) || "",
8741
- end: ((r = cf.exec(e)) == null ? void 0 : r[0]) || ""
8742
- }
8743
- };
8744
- }
8745
- function uf(e, t, n) {
8746
- !t || typeof t != "object" || Object.defineProperty(t, of, {
8747
- enumerable: !1,
8748
- configurable: !0,
8749
- writable: !0,
8750
- value: lf(e, n)
8751
- });
8752
- }
8753
- //#endregion
8754
- //#region node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs
8755
- function df(e) {
8756
- return e == null;
8757
- }
8758
- function ff(e) {
8759
- return typeof e == "object" && !!e;
8760
- }
8761
- function pf(e) {
8762
- return Array.isArray(e) ? e : df(e) ? [] : [e];
8763
- }
8764
- function mf(e, t) {
8765
- var n, r, i, a;
8766
- if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
8767
- return e;
8768
- }
8769
- function hf(e, t) {
8770
- var n = "", r;
8771
- for (r = 0; r < t; r += 1) n += e;
8772
- return n;
8773
- }
8774
- function gf(e) {
8775
- return e === 0 && 1 / e == -1 / 0;
8776
- }
8777
- var q = {
8778
- isNothing: df,
8779
- isObject: ff,
8780
- toArray: pf,
8781
- repeat: hf,
8782
- isNegativeZero: gf,
8783
- extend: mf
8784
- };
8785
- function _f(e, t) {
8786
- var n = "", r = e.reason || "(unknown reason)";
8787
- return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
8788
- }
8789
- function vf(e, t) {
8790
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = _f(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = Error().stack || "";
8791
- }
8792
- vf.prototype = Object.create(Error.prototype), vf.prototype.constructor = vf, vf.prototype.toString = function(e) {
8793
- return this.name + ": " + _f(this, e);
8268
+ od.prototype = Object.create(Error.prototype), od.prototype.constructor = od, od.prototype.toString = function(e) {
8269
+ return this.name + ": " + ad(this, e);
8794
8270
  };
8795
- var yf = vf;
8796
- function bf(e, t, n, r, i) {
8271
+ var q = od;
8272
+ function sd(e, t, n, r, i) {
8797
8273
  var a = "", o = "", s = Math.floor(i / 2) - 1;
8798
8274
  return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
8799
8275
  str: a + e.slice(t, n).replace(/\t/g, "→") + o,
8800
8276
  pos: r - t + a.length
8801
8277
  };
8802
8278
  }
8803
- function xf(e, t) {
8804
- return q.repeat(" ", t - e.length) + e;
8279
+ function cd(e, t) {
8280
+ return K.repeat(" ", t - e.length) + e;
8805
8281
  }
8806
- function Sf(e, t) {
8282
+ function ld(e, t) {
8807
8283
  var n;
8808
8284
  if (t = Object.create(t || null), !e.buffer) return null;
8809
8285
  (n = t).maxLength || (n.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
8810
8286
  for (var r = /\r?\n|\r|\0/g, i = [0], a = [], o, s = -1; o = r.exec(e.buffer);) a.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && s < 0 && (s = i.length - 2);
8811
8287
  s < 0 && (s = i.length - 1);
8812
8288
  var c = "", l, u, d = Math.min(e.line + t.linesAfter, a.length).toString().length, f = t.maxLength - (t.indent + d + 3);
8813
- for (l = 1; l <= t.linesBefore && !(s - l < 0); l++) u = bf(e.buffer, i[s - l], a[s - l], e.position - (i[s] - i[s - l]), f), c = q.repeat(" ", t.indent) + xf((e.line - l + 1).toString(), d) + " | " + u.str + "\n" + c;
8814
- for (u = bf(e.buffer, i[s], a[s], e.position, f), c += q.repeat(" ", t.indent) + xf((e.line + 1).toString(), d) + " | " + u.str + "\n", c += q.repeat("-", t.indent + d + 3 + u.pos) + "^\n", l = 1; l <= t.linesAfter && !(s + l >= a.length); l++) u = bf(e.buffer, i[s + l], a[s + l], e.position - (i[s] - i[s + l]), f), c += q.repeat(" ", t.indent) + xf((e.line + l + 1).toString(), d) + " | " + u.str + "\n";
8289
+ for (l = 1; l <= t.linesBefore && !(s - l < 0); l++) u = sd(e.buffer, i[s - l], a[s - l], e.position - (i[s] - i[s - l]), f), c = K.repeat(" ", t.indent) + cd((e.line - l + 1).toString(), d) + " | " + u.str + "\n" + c;
8290
+ for (u = sd(e.buffer, i[s], a[s], e.position, f), c += K.repeat(" ", t.indent) + cd((e.line + 1).toString(), d) + " | " + u.str + "\n", c += K.repeat("-", t.indent + d + 3 + u.pos) + "^\n", l = 1; l <= t.linesAfter && !(s + l >= a.length); l++) u = sd(e.buffer, i[s + l], a[s + l], e.position - (i[s] - i[s + l]), f), c += K.repeat(" ", t.indent) + cd((e.line + l + 1).toString(), d) + " | " + u.str + "\n";
8815
8291
  return c.replace(/\n$/, "");
8816
8292
  }
8817
- var Cf = Sf, wf = [
8293
+ var ud = ld, dd = [
8818
8294
  "kind",
8819
8295
  "multi",
8820
8296
  "resolve",
@@ -8825,12 +8301,12 @@ var Cf = Sf, wf = [
8825
8301
  "representName",
8826
8302
  "defaultStyle",
8827
8303
  "styleAliases"
8828
- ], Tf = [
8304
+ ], fd = [
8829
8305
  "scalar",
8830
8306
  "sequence",
8831
8307
  "mapping"
8832
8308
  ];
8833
- function Ef(e) {
8309
+ function pd(e) {
8834
8310
  var t = {};
8835
8311
  return e !== null && Object.keys(e).forEach(function(n) {
8836
8312
  e[n].forEach(function(e) {
@@ -8838,17 +8314,17 @@ function Ef(e) {
8838
8314
  });
8839
8315
  }), t;
8840
8316
  }
8841
- function Df(e, t) {
8317
+ function md(e, t) {
8842
8318
  if (t || (t = {}), Object.keys(t).forEach(function(t) {
8843
- if (wf.indexOf(t) === -1) throw new yf("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
8319
+ if (dd.indexOf(t) === -1) throw new q("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
8844
8320
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
8845
8321
  return !0;
8846
8322
  }, this.construct = t.construct || function(e) {
8847
8323
  return e;
8848
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Ef(t.styleAliases || null), Tf.indexOf(this.kind) === -1) throw new yf("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
8324
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = pd(t.styleAliases || null), fd.indexOf(this.kind) === -1) throw new q("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
8849
8325
  }
8850
- var J = Df;
8851
- function Of(e, t) {
8326
+ var J = md;
8327
+ function hd(e, t) {
8852
8328
  var n = [];
8853
8329
  return e[t].forEach(function(e) {
8854
8330
  var t = n.length;
@@ -8857,7 +8333,7 @@ function Of(e, t) {
8857
8333
  }), n[t] = e;
8858
8334
  }), n;
8859
8335
  }
8860
- function kf() {
8336
+ function gd() {
8861
8337
  var e = {
8862
8338
  scalar: {},
8863
8339
  sequence: {},
@@ -8876,26 +8352,26 @@ function kf() {
8876
8352
  for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
8877
8353
  return e;
8878
8354
  }
8879
- function Af(e) {
8355
+ function _d(e) {
8880
8356
  return this.extend(e);
8881
8357
  }
8882
- Af.prototype.extend = function(e) {
8358
+ _d.prototype.extend = function(e) {
8883
8359
  var t = [], n = [];
8884
8360
  if (e instanceof J) n.push(e);
8885
8361
  else if (Array.isArray(e)) n = n.concat(e);
8886
8362
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
8887
- else throw new yf("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
8363
+ else throw new q("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
8888
8364
  t.forEach(function(e) {
8889
- if (!(e instanceof J)) throw new yf("Specified list of YAML types (or a single Type object) contains a non-Type object.");
8890
- if (e.loadKind && e.loadKind !== "scalar") throw new yf("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
8891
- if (e.multi) throw new yf("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
8365
+ if (!(e instanceof J)) throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
8366
+ if (e.loadKind && e.loadKind !== "scalar") throw new q("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
8367
+ if (e.multi) throw new q("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
8892
8368
  }), n.forEach(function(e) {
8893
- if (!(e instanceof J)) throw new yf("Specified list of YAML types (or a single Type object) contains a non-Type object.");
8369
+ if (!(e instanceof J)) throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.");
8894
8370
  });
8895
- var r = Object.create(Af.prototype);
8896
- return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Of(r, "implicit"), r.compiledExplicit = Of(r, "explicit"), r.compiledTypeMap = kf(r.compiledImplicit, r.compiledExplicit), r;
8371
+ var r = Object.create(_d.prototype);
8372
+ return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = hd(r, "implicit"), r.compiledExplicit = hd(r, "explicit"), r.compiledTypeMap = gd(r.compiledImplicit, r.compiledExplicit), r;
8897
8373
  };
8898
- var jf = new Af({ explicit: [
8374
+ var vd = new _d({ explicit: [
8899
8375
  new J("tag:yaml.org,2002:str", {
8900
8376
  kind: "scalar",
8901
8377
  construct: function(e) {
@@ -8915,22 +8391,22 @@ var jf = new Af({ explicit: [
8915
8391
  }
8916
8392
  })
8917
8393
  ] });
8918
- function Mf(e) {
8394
+ function yd(e) {
8919
8395
  if (e === null) return !0;
8920
8396
  var t = e.length;
8921
8397
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
8922
8398
  }
8923
- function Nf() {
8399
+ function bd() {
8924
8400
  return null;
8925
8401
  }
8926
- function Pf(e) {
8402
+ function xd(e) {
8927
8403
  return e === null;
8928
8404
  }
8929
- var Ff = new J("tag:yaml.org,2002:null", {
8405
+ var Sd = new J("tag:yaml.org,2002:null", {
8930
8406
  kind: "scalar",
8931
- resolve: Mf,
8932
- construct: Nf,
8933
- predicate: Pf,
8407
+ resolve: yd,
8408
+ construct: bd,
8409
+ predicate: xd,
8934
8410
  represent: {
8935
8411
  canonical: function() {
8936
8412
  return "~";
@@ -8950,22 +8426,22 @@ var Ff = new J("tag:yaml.org,2002:null", {
8950
8426
  },
8951
8427
  defaultStyle: "lowercase"
8952
8428
  });
8953
- function If(e) {
8429
+ function Cd(e) {
8954
8430
  if (e === null) return !1;
8955
8431
  var t = e.length;
8956
8432
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
8957
8433
  }
8958
- function Lf(e) {
8434
+ function wd(e) {
8959
8435
  return e === "true" || e === "True" || e === "TRUE";
8960
8436
  }
8961
- function Rf(e) {
8437
+ function Td(e) {
8962
8438
  return Object.prototype.toString.call(e) === "[object Boolean]";
8963
8439
  }
8964
- var zf = new J("tag:yaml.org,2002:bool", {
8440
+ var Ed = new J("tag:yaml.org,2002:bool", {
8965
8441
  kind: "scalar",
8966
- resolve: If,
8967
- construct: Lf,
8968
- predicate: Rf,
8442
+ resolve: Cd,
8443
+ construct: wd,
8444
+ predicate: Td,
8969
8445
  represent: {
8970
8446
  lowercase: function(e) {
8971
8447
  return e ? "true" : "false";
@@ -8979,16 +8455,16 @@ var zf = new J("tag:yaml.org,2002:bool", {
8979
8455
  },
8980
8456
  defaultStyle: "lowercase"
8981
8457
  });
8982
- function Bf(e) {
8458
+ function Dd(e) {
8983
8459
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
8984
8460
  }
8985
- function Vf(e) {
8461
+ function Od(e) {
8986
8462
  return 48 <= e && e <= 55;
8987
8463
  }
8988
- function Hf(e) {
8464
+ function kd(e) {
8989
8465
  return 48 <= e && e <= 57;
8990
8466
  }
8991
- function Uf(e) {
8467
+ function Ad(e) {
8992
8468
  if (e === null) return !1;
8993
8469
  var t = e.length, n = 0, r = !1, i;
8994
8470
  if (!t) return !1;
@@ -9003,14 +8479,14 @@ function Uf(e) {
9003
8479
  }
9004
8480
  if (i === "x") {
9005
8481
  for (n++; n < t; n++) if (i = e[n], i !== "_") {
9006
- if (!Bf(e.charCodeAt(n))) return !1;
8482
+ if (!Dd(e.charCodeAt(n))) return !1;
9007
8483
  r = !0;
9008
8484
  }
9009
8485
  return r && i !== "_";
9010
8486
  }
9011
8487
  if (i === "o") {
9012
8488
  for (n++; n < t; n++) if (i = e[n], i !== "_") {
9013
- if (!Vf(e.charCodeAt(n))) return !1;
8489
+ if (!Od(e.charCodeAt(n))) return !1;
9014
8490
  r = !0;
9015
8491
  }
9016
8492
  return r && i !== "_";
@@ -9018,12 +8494,12 @@ function Uf(e) {
9018
8494
  }
9019
8495
  if (i === "_") return !1;
9020
8496
  for (; n < t; n++) if (i = e[n], i !== "_") {
9021
- if (!Hf(e.charCodeAt(n))) return !1;
8497
+ if (!kd(e.charCodeAt(n))) return !1;
9022
8498
  r = !0;
9023
8499
  }
9024
8500
  return !(!r || i === "_");
9025
8501
  }
9026
- function Wf(e) {
8502
+ function jd(e) {
9027
8503
  var t = e, n = 1, r;
9028
8504
  if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
9029
8505
  if (r === "0") {
@@ -9033,14 +8509,14 @@ function Wf(e) {
9033
8509
  }
9034
8510
  return n * parseInt(t, 10);
9035
8511
  }
9036
- function Gf(e) {
9037
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !q.isNegativeZero(e);
8512
+ function Md(e) {
8513
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !K.isNegativeZero(e);
9038
8514
  }
9039
- var Kf = new J("tag:yaml.org,2002:int", {
8515
+ var Nd = new J("tag:yaml.org,2002:int", {
9040
8516
  kind: "scalar",
9041
- resolve: Uf,
9042
- construct: Wf,
9043
- predicate: Gf,
8517
+ resolve: Ad,
8518
+ construct: jd,
8519
+ predicate: Md,
9044
8520
  represent: {
9045
8521
  binary: function(e) {
9046
8522
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -9062,16 +8538,16 @@ var Kf = new J("tag:yaml.org,2002:int", {
9062
8538
  decimal: [10, "dec"],
9063
8539
  hexadecimal: [16, "hex"]
9064
8540
  }
9065
- }), qf = RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
9066
- function Jf(e) {
9067
- return !(e === null || !qf.test(e) || e[e.length - 1] === "_");
8541
+ }), Pd = RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
8542
+ function Fd(e) {
8543
+ return !(e === null || !Pd.test(e) || e[e.length - 1] === "_");
9068
8544
  }
9069
- function Yf(e) {
8545
+ function Id(e) {
9070
8546
  var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
9071
8547
  return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? 1 / 0 : -1 / 0 : t === ".nan" ? NaN : n * parseFloat(t, 10);
9072
8548
  }
9073
- var Xf = /^[-+]?[0-9]+e/;
9074
- function Zf(e, t) {
8549
+ var Ld = /^[-+]?[0-9]+e/;
8550
+ function Rd(e, t) {
9075
8551
  var n;
9076
8552
  if (isNaN(e)) switch (t) {
9077
8553
  case "lowercase": return ".nan";
@@ -9088,31 +8564,31 @@ function Zf(e, t) {
9088
8564
  case "uppercase": return "-.INF";
9089
8565
  case "camelcase": return "-.Inf";
9090
8566
  }
9091
- else if (q.isNegativeZero(e)) return "-0.0";
9092
- return n = e.toString(10), Xf.test(n) ? n.replace("e", ".e") : n;
8567
+ else if (K.isNegativeZero(e)) return "-0.0";
8568
+ return n = e.toString(10), Ld.test(n) ? n.replace("e", ".e") : n;
9093
8569
  }
9094
- function Qf(e) {
9095
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || q.isNegativeZero(e));
8570
+ function zd(e) {
8571
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || K.isNegativeZero(e));
9096
8572
  }
9097
- var $f = new J("tag:yaml.org,2002:float", {
8573
+ var Bd = new J("tag:yaml.org,2002:float", {
9098
8574
  kind: "scalar",
9099
- resolve: Jf,
9100
- construct: Yf,
9101
- predicate: Qf,
9102
- represent: Zf,
8575
+ resolve: Fd,
8576
+ construct: Id,
8577
+ predicate: zd,
8578
+ represent: Rd,
9103
8579
  defaultStyle: "lowercase"
9104
- }), ep = jf.extend({ implicit: [
9105
- Ff,
9106
- zf,
9107
- Kf,
9108
- $f
9109
- ] }), tp = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), np = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
9110
- function rp(e) {
9111
- return e === null ? !1 : tp.exec(e) !== null || np.exec(e) !== null;
9112
- }
9113
- function ip(e) {
8580
+ }), Vd = vd.extend({ implicit: [
8581
+ Sd,
8582
+ Ed,
8583
+ Nd,
8584
+ Bd
8585
+ ] }), Hd = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Ud = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
8586
+ function Wd(e) {
8587
+ return e === null ? !1 : Hd.exec(e) !== null || Ud.exec(e) !== null;
8588
+ }
8589
+ function Gd(e) {
9114
8590
  var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
9115
- if (t = tp.exec(e), t === null && (t = np.exec(e)), t === null) throw Error("Date resolve error");
8591
+ if (t = Hd.exec(e), t === null && (t = Ud.exec(e)), t === null) throw Error("Date resolve error");
9116
8592
  if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
9117
8593
  if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
9118
8594
  for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
@@ -9120,58 +8596,58 @@ function ip(e) {
9120
8596
  }
9121
8597
  return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
9122
8598
  }
9123
- function ap(e) {
8599
+ function Kd(e) {
9124
8600
  return e.toISOString();
9125
8601
  }
9126
- var op = new J("tag:yaml.org,2002:timestamp", {
8602
+ var qd = new J("tag:yaml.org,2002:timestamp", {
9127
8603
  kind: "scalar",
9128
- resolve: rp,
9129
- construct: ip,
8604
+ resolve: Wd,
8605
+ construct: Gd,
9130
8606
  instanceOf: Date,
9131
- represent: ap
8607
+ represent: Kd
9132
8608
  });
9133
- function sp(e) {
8609
+ function Jd(e) {
9134
8610
  return e === "<<" || e === null;
9135
8611
  }
9136
- var cp = new J("tag:yaml.org,2002:merge", {
8612
+ var Yd = new J("tag:yaml.org,2002:merge", {
9137
8613
  kind: "scalar",
9138
- resolve: sp
9139
- }), lp = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
9140
- function up(e) {
8614
+ resolve: Jd
8615
+ }), Xd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
8616
+ function Zd(e) {
9141
8617
  if (e === null) return !1;
9142
- var t, n, r = 0, i = e.length, a = lp;
8618
+ var t, n, r = 0, i = e.length, a = Xd;
9143
8619
  for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
9144
8620
  if (t < 0) return !1;
9145
8621
  r += 6;
9146
8622
  }
9147
8623
  return r % 8 == 0;
9148
8624
  }
9149
- function dp(e) {
9150
- var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = lp, o = 0, s = [];
8625
+ function Qd(e) {
8626
+ var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = Xd, o = 0, s = [];
9151
8627
  for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
9152
8628
  return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
9153
8629
  }
9154
- function fp(e) {
9155
- var t = "", n = 0, r, i, a = e.length, o = lp;
8630
+ function $d(e) {
8631
+ var t = "", n = 0, r, i, a = e.length, o = Xd;
9156
8632
  for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
9157
8633
  return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
9158
8634
  }
9159
- function pp(e) {
8635
+ function ef(e) {
9160
8636
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
9161
8637
  }
9162
- var mp = new J("tag:yaml.org,2002:binary", {
8638
+ var tf = new J("tag:yaml.org,2002:binary", {
9163
8639
  kind: "scalar",
9164
- resolve: up,
9165
- construct: dp,
9166
- predicate: pp,
9167
- represent: fp
9168
- }), hp = Object.prototype.hasOwnProperty, gp = Object.prototype.toString;
9169
- function _p(e) {
8640
+ resolve: Zd,
8641
+ construct: Qd,
8642
+ predicate: ef,
8643
+ represent: $d
8644
+ }), nf = Object.prototype.hasOwnProperty, rf = Object.prototype.toString;
8645
+ function af(e) {
9170
8646
  if (e === null) return !0;
9171
8647
  var t = [], n, r, i, a, o, s = e;
9172
8648
  for (n = 0, r = s.length; n < r; n += 1) {
9173
- if (i = s[n], o = !1, gp.call(i) !== "[object Object]") return !1;
9174
- for (a in i) if (hp.call(i, a)) {
8649
+ if (i = s[n], o = !1, rf.call(i) !== "[object Object]") return !1;
8650
+ for (a in i) if (nf.call(i, a)) {
9175
8651
  if (!o) o = !0;
9176
8652
  else return !1;
9177
8653
  }
@@ -9181,88 +8657,88 @@ function _p(e) {
9181
8657
  }
9182
8658
  return !0;
9183
8659
  }
9184
- function vp(e) {
8660
+ function of(e) {
9185
8661
  return e === null ? [] : e;
9186
8662
  }
9187
- var yp = new J("tag:yaml.org,2002:omap", {
8663
+ var sf = new J("tag:yaml.org,2002:omap", {
9188
8664
  kind: "sequence",
9189
- resolve: _p,
9190
- construct: vp
9191
- }), bp = Object.prototype.toString;
9192
- function xp(e) {
8665
+ resolve: af,
8666
+ construct: of
8667
+ }), cf = Object.prototype.toString;
8668
+ function lf(e) {
9193
8669
  if (e === null) return !0;
9194
8670
  var t, n, r, i, a, o = e;
9195
8671
  for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
9196
- if (r = o[t], bp.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
8672
+ if (r = o[t], cf.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
9197
8673
  a[t] = [i[0], r[i[0]]];
9198
8674
  }
9199
8675
  return !0;
9200
8676
  }
9201
- function Sp(e) {
8677
+ function uf(e) {
9202
8678
  if (e === null) return [];
9203
8679
  var t, n, r, i, a, o = e;
9204
8680
  for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
9205
8681
  return a;
9206
8682
  }
9207
- var Cp = new J("tag:yaml.org,2002:pairs", {
8683
+ var df = new J("tag:yaml.org,2002:pairs", {
9208
8684
  kind: "sequence",
9209
- resolve: xp,
9210
- construct: Sp
9211
- }), wp = Object.prototype.hasOwnProperty;
9212
- function Tp(e) {
8685
+ resolve: lf,
8686
+ construct: uf
8687
+ }), ff = Object.prototype.hasOwnProperty;
8688
+ function pf(e) {
9213
8689
  if (e === null) return !0;
9214
8690
  var t, n = e;
9215
- for (t in n) if (wp.call(n, t) && n[t] !== null) return !1;
8691
+ for (t in n) if (ff.call(n, t) && n[t] !== null) return !1;
9216
8692
  return !0;
9217
8693
  }
9218
- function Ep(e) {
8694
+ function mf(e) {
9219
8695
  return e === null ? {} : e;
9220
8696
  }
9221
- var Dp = new J("tag:yaml.org,2002:set", {
8697
+ var hf = new J("tag:yaml.org,2002:set", {
9222
8698
  kind: "mapping",
9223
- resolve: Tp,
9224
- construct: Ep
9225
- }), Op = ep.extend({
9226
- implicit: [op, cp],
8699
+ resolve: pf,
8700
+ construct: mf
8701
+ }), gf = Vd.extend({
8702
+ implicit: [qd, Yd],
9227
8703
  explicit: [
9228
- mp,
9229
- yp,
9230
- Cp,
9231
- Dp
8704
+ tf,
8705
+ sf,
8706
+ df,
8707
+ hf
9232
8708
  ]
9233
- }), kp = Object.prototype.hasOwnProperty, Ap = 1, jp = 2, Mp = 3, Np = 4, Pp = 1, Fp = 2, Ip = 3, Lp = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Rp = /[\x85\u2028\u2029]/, zp = /[,\[\]\{\}]/, Bp = /^(?:!|!!|![a-z\-]+!)$/i, Vp = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
9234
- function Hp(e) {
8709
+ }), _f = Object.prototype.hasOwnProperty, vf = 1, yf = 2, bf = 3, xf = 4, Sf = 1, Cf = 2, wf = 3, Tf = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ef = /[\x85\u2028\u2029]/, Df = /[,\[\]\{\}]/, Of = /^(?:!|!!|![a-z\-]+!)$/i, kf = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
8710
+ function Af(e) {
9235
8711
  return Object.prototype.toString.call(e);
9236
8712
  }
9237
- function Up(e) {
8713
+ function jf(e) {
9238
8714
  return e === 10 || e === 13;
9239
8715
  }
9240
- function Wp(e) {
8716
+ function Mf(e) {
9241
8717
  return e === 9 || e === 32;
9242
8718
  }
9243
8719
  function Y(e) {
9244
8720
  return e === 9 || e === 32 || e === 10 || e === 13;
9245
8721
  }
9246
- function Gp(e) {
8722
+ function Nf(e) {
9247
8723
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
9248
8724
  }
9249
- function Kp(e) {
8725
+ function Pf(e) {
9250
8726
  var t;
9251
8727
  return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
9252
8728
  }
9253
- function qp(e) {
8729
+ function Ff(e) {
9254
8730
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
9255
8731
  }
9256
- function Jp(e) {
8732
+ function If(e) {
9257
8733
  return 48 <= e && e <= 57 ? e - 48 : -1;
9258
8734
  }
9259
- function Yp(e) {
8735
+ function Lf(e) {
9260
8736
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
9261
8737
  }
9262
- function Xp(e) {
8738
+ function Rf(e) {
9263
8739
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
9264
8740
  }
9265
- function Zp(e, t, n) {
8741
+ function zf(e, t, n) {
9266
8742
  t === "__proto__" ? Object.defineProperty(e, t, {
9267
8743
  configurable: !0,
9268
8744
  enumerable: !0,
@@ -9270,11 +8746,11 @@ function Zp(e, t, n) {
9270
8746
  value: n
9271
8747
  }) : e[t] = n;
9272
8748
  }
9273
- for (var Qp = Array(256), $p = Array(256), em = 0; em < 256; em++) Qp[em] = +!!Yp(em), $p[em] = Yp(em);
9274
- function tm(e, t) {
9275
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || Op, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
8749
+ for (var Bf = Array(256), Vf = Array(256), Hf = 0; Hf < 256; Hf++) Bf[Hf] = +!!Lf(Hf), Vf[Hf] = Lf(Hf);
8750
+ function Uf(e, t) {
8751
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || gf, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
9276
8752
  }
9277
- function nm(e, t) {
8753
+ function Wf(e, t) {
9278
8754
  var n = {
9279
8755
  name: e.filename,
9280
8756
  buffer: e.input.slice(0, -1),
@@ -9282,22 +8758,22 @@ function nm(e, t) {
9282
8758
  line: e.line,
9283
8759
  column: e.position - e.lineStart
9284
8760
  };
9285
- return n.snippet = Cf(n), new yf(t, n);
8761
+ return n.snippet = ud(n), new q(t, n);
9286
8762
  }
9287
8763
  function X(e, t) {
9288
- throw nm(e, t);
8764
+ throw Wf(e, t);
9289
8765
  }
9290
- function rm(e, t) {
9291
- e.onWarning && e.onWarning.call(null, nm(e, t));
8766
+ function Gf(e, t) {
8767
+ e.onWarning && e.onWarning.call(null, Wf(e, t));
9292
8768
  }
9293
- var im = {
8769
+ var Kf = {
9294
8770
  YAML: function(e, t, n) {
9295
8771
  var r, i, a;
9296
- e.version !== null && X(e, "duplication of %YAML directive"), n.length !== 1 && X(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && X(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && X(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && rm(e, "unsupported YAML version of the document");
8772
+ e.version !== null && X(e, "duplication of %YAML directive"), n.length !== 1 && X(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && X(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && X(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Gf(e, "unsupported YAML version of the document");
9297
8773
  },
9298
8774
  TAG: function(e, t, n) {
9299
8775
  var r, i;
9300
- n.length !== 2 && X(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Bp.test(r) || X(e, "ill-formed tag handle (first argument) of the TAG directive"), kp.call(e.tagMap, r) && X(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Vp.test(i) || X(e, "ill-formed tag prefix (second argument) of the TAG directive");
8776
+ n.length !== 2 && X(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Of.test(r) || X(e, "ill-formed tag handle (first argument) of the TAG directive"), _f.call(e.tagMap, r) && X(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), kf.test(i) || X(e, "ill-formed tag prefix (second argument) of the TAG directive");
9301
8777
  try {
9302
8778
  i = decodeURIComponent(i);
9303
8779
  } catch {
@@ -9306,59 +8782,59 @@ var im = {
9306
8782
  e.tagMap[r] = i;
9307
8783
  }
9308
8784
  };
9309
- function am(e, t, n, r) {
8785
+ function qf(e, t, n, r) {
9310
8786
  var i, a, o, s;
9311
8787
  if (t < n) {
9312
8788
  if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || X(e, "expected valid JSON character");
9313
- else Lp.test(s) && X(e, "the stream contains non-printable characters");
8789
+ else Tf.test(s) && X(e, "the stream contains non-printable characters");
9314
8790
  e.result += s;
9315
8791
  }
9316
8792
  }
9317
- function om(e, t, n, r) {
8793
+ function Jf(e, t, n, r) {
9318
8794
  var i, a, o, s;
9319
- for (q.isObject(n) || X(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], kp.call(t, a) || (Zp(t, a, n[a]), r[a] = !0);
8795
+ for (K.isObject(n) || X(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], _f.call(t, a) || (zf(t, a, n[a]), r[a] = !0);
9320
8796
  }
9321
- function sm(e, t, n, r, i, a, o, s, c) {
8797
+ function Yf(e, t, n, r, i, a, o, s, c) {
9322
8798
  var l, u;
9323
- if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && X(e, "nested arrays are not supported inside keys"), typeof i == "object" && Hp(i[l]) === "[object Object]" && (i[l] = "[object Object]");
9324
- if (typeof i == "object" && Hp(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
9325
- if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) om(e, t, a[l], n);
9326
- else om(e, t, a, n);
9327
- } else !e.json && !kp.call(n, i) && kp.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, X(e, "duplicated mapping key")), Zp(t, i, a), delete n[i];
8799
+ if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && X(e, "nested arrays are not supported inside keys"), typeof i == "object" && Af(i[l]) === "[object Object]" && (i[l] = "[object Object]");
8800
+ if (typeof i == "object" && Af(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
8801
+ if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) Jf(e, t, a[l], n);
8802
+ else Jf(e, t, a, n);
8803
+ } else !e.json && !_f.call(n, i) && _f.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, X(e, "duplicated mapping key")), zf(t, i, a), delete n[i];
9328
8804
  return t;
9329
8805
  }
9330
- function cm(e) {
8806
+ function Xf(e) {
9331
8807
  var t = e.input.charCodeAt(e.position);
9332
8808
  t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : X(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
9333
8809
  }
9334
8810
  function Z(e, t, n) {
9335
8811
  for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
9336
- for (; Wp(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
8812
+ for (; Mf(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
9337
8813
  if (t && i === 35) do
9338
8814
  i = e.input.charCodeAt(++e.position);
9339
8815
  while (i !== 10 && i !== 13 && i !== 0);
9340
- if (Up(i)) for (cm(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
8816
+ if (jf(i)) for (Xf(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
9341
8817
  else break;
9342
8818
  }
9343
- return n !== -1 && r !== 0 && e.lineIndent < n && rm(e, "deficient indentation"), r;
8819
+ return n !== -1 && r !== 0 && e.lineIndent < n && Gf(e, "deficient indentation"), r;
9344
8820
  }
9345
- function lm(e) {
8821
+ function Zf(e) {
9346
8822
  var t = e.position, n = e.input.charCodeAt(t);
9347
8823
  return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || Y(n)));
9348
8824
  }
9349
- function um(e, t) {
9350
- t === 1 ? e.result += " " : t > 1 && (e.result += q.repeat("\n", t - 1));
8825
+ function Qf(e, t) {
8826
+ t === 1 ? e.result += " " : t > 1 && (e.result += K.repeat("\n", t - 1));
9351
8827
  }
9352
- function dm(e, t, n) {
8828
+ function $f(e, t, n) {
9353
8829
  var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
9354
- if (Y(p) || Gp(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), Y(i) || n && Gp(i))) return !1;
8830
+ if (Y(p) || Nf(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), Y(i) || n && Nf(i))) return !1;
9355
8831
  for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
9356
8832
  if (p === 58) {
9357
- if (i = e.input.charCodeAt(e.position + 1), Y(i) || n && Gp(i)) break;
8833
+ if (i = e.input.charCodeAt(e.position + 1), Y(i) || n && Nf(i)) break;
9358
8834
  } else if (p === 35) {
9359
8835
  if (r = e.input.charCodeAt(e.position - 1), Y(r)) break;
9360
- } else if (e.position === e.lineStart && lm(e) || n && Gp(p)) break;
9361
- else if (Up(p)) {
8836
+ } else if (e.position === e.lineStart && Zf(e) || n && Nf(p)) break;
8837
+ else if (jf(p)) {
9362
8838
  if (c = e.line, l = e.lineStart, u = e.lineIndent, Z(e, !1, -1), e.lineIndent >= t) {
9363
8839
  s = !0, p = e.input.charCodeAt(e.position);
9364
8840
  continue;
@@ -9366,77 +8842,77 @@ function dm(e, t, n) {
9366
8842
  e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
9367
8843
  break;
9368
8844
  }
9369
- s && (s = (am(e, a, o, !1), um(e, e.line - c), a = o = e.position, !1)), Wp(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
8845
+ s && (s = (qf(e, a, o, !1), Qf(e, e.line - c), a = o = e.position, !1)), Mf(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
9370
8846
  }
9371
- return am(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
8847
+ return qf(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
9372
8848
  }
9373
- function fm(e, t) {
8849
+ function ep(e, t) {
9374
8850
  var n = e.input.charCodeAt(e.position), r, i;
9375
8851
  if (n !== 39) return !1;
9376
8852
  for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) {
9377
- if (am(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
8853
+ if (qf(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
9378
8854
  else return !0;
9379
- } else Up(n) ? (am(e, r, i, !0), um(e, Z(e, !1, t)), r = i = e.position) : e.position === e.lineStart && lm(e) ? X(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
8855
+ } else jf(n) ? (qf(e, r, i, !0), Qf(e, Z(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Zf(e) ? X(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
9380
8856
  X(e, "unexpected end of the stream within a single quoted scalar");
9381
8857
  }
9382
- function pm(e, t) {
8858
+ function tp(e, t) {
9383
8859
  var n, r, i, a, o, s = e.input.charCodeAt(e.position);
9384
8860
  if (s !== 34) return !1;
9385
- for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return am(e, n, e.position, !0), e.position++, !0;
8861
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return qf(e, n, e.position, !0), e.position++, !0;
9386
8862
  else if (s === 92) {
9387
- if (am(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), Up(s)) Z(e, !1, t);
9388
- else if (s < 256 && Qp[s]) e.result += $p[s], e.position++;
9389
- else if ((o = qp(s)) > 0) {
9390
- for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Kp(s)) >= 0 ? a = (a << 4) + o : X(e, "expected hexadecimal character");
9391
- e.result += Xp(a), e.position++;
8863
+ if (qf(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), jf(s)) Z(e, !1, t);
8864
+ else if (s < 256 && Bf[s]) e.result += Vf[s], e.position++;
8865
+ else if ((o = Ff(s)) > 0) {
8866
+ for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Pf(s)) >= 0 ? a = (a << 4) + o : X(e, "expected hexadecimal character");
8867
+ e.result += Rf(a), e.position++;
9392
8868
  } else X(e, "unknown escape sequence");
9393
8869
  n = r = e.position;
9394
- } else Up(s) ? (am(e, n, r, !0), um(e, Z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && lm(e) ? X(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
8870
+ } else jf(s) ? (qf(e, n, r, !0), Qf(e, Z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && Zf(e) ? X(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
9395
8871
  X(e, "unexpected end of the stream within a double quoted scalar");
9396
8872
  }
9397
- function mm(e, t) {
8873
+ function np(e, t) {
9398
8874
  var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
9399
8875
  if (v === 91) u = 93, p = !1, s = [];
9400
8876
  else if (v === 123) u = 125, p = !0, s = {};
9401
8877
  else return !1;
9402
8878
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
9403
8879
  if (Z(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
9404
- n ? v === 44 && X(e, "expected the node content, but found ','") : X(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), Y(l) && (d = f = !0, e.position++, Z(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, xm(e, t, Ap, !1, !0), g = e.tag, h = e.result, Z(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), Z(e, !0, t), xm(e, t, Ap, !1, !0), _ = e.result), p ? sm(e, s, m, g, h, _, r, i, a) : d ? s.push(sm(e, null, m, g, h, _, r, i, a)) : s.push(h), Z(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
8880
+ n ? v === 44 && X(e, "expected the node content, but found ','") : X(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), Y(l) && (d = f = !0, e.position++, Z(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, lp(e, t, vf, !1, !0), g = e.tag, h = e.result, Z(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), Z(e, !0, t), lp(e, t, vf, !1, !0), _ = e.result), p ? Yf(e, s, m, g, h, _, r, i, a) : d ? s.push(Yf(e, null, m, g, h, _, r, i, a)) : s.push(h), Z(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
9405
8881
  }
9406
8882
  X(e, "unexpected end of the stream within a flow collection");
9407
8883
  }
9408
- function hm(e, t) {
9409
- var n, r, i = Pp, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
8884
+ function rp(e, t) {
8885
+ var n, r, i = Sf, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
9410
8886
  if (d === 124) r = !1;
9411
8887
  else if (d === 62) r = !0;
9412
8888
  else return !1;
9413
- for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Pp === i ? i = d === 43 ? Ip : Fp : X(e, "repeat of a chomping mode identifier");
9414
- else if ((u = Jp(d)) >= 0) u === 0 ? X(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? X(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
8889
+ for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Sf === i ? i = d === 43 ? wf : Cf : X(e, "repeat of a chomping mode identifier");
8890
+ else if ((u = If(d)) >= 0) u === 0 ? X(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? X(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
9415
8891
  else break;
9416
- if (Wp(d)) {
8892
+ if (Mf(d)) {
9417
8893
  do
9418
8894
  d = e.input.charCodeAt(++e.position);
9419
- while (Wp(d));
8895
+ while (Mf(d));
9420
8896
  if (d === 35) do
9421
8897
  d = e.input.charCodeAt(++e.position);
9422
- while (!Up(d) && d !== 0);
8898
+ while (!jf(d) && d !== 0);
9423
8899
  }
9424
8900
  for (; d !== 0;) {
9425
- for (cm(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
9426
- if (!o && e.lineIndent > s && (s = e.lineIndent), Up(d)) {
8901
+ for (Xf(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
8902
+ if (!o && e.lineIndent > s && (s = e.lineIndent), jf(d)) {
9427
8903
  c++;
9428
8904
  continue;
9429
8905
  }
9430
8906
  if (e.lineIndent < s) {
9431
- i === Ip ? e.result += q.repeat("\n", a ? 1 + c : c) : i === Pp && a && (e.result += "\n");
8907
+ i === wf ? e.result += K.repeat("\n", a ? 1 + c : c) : i === Sf && a && (e.result += "\n");
9432
8908
  break;
9433
8909
  }
9434
- for (r ? Wp(d) ? (l = !0, e.result += q.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += q.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += q.repeat("\n", c) : e.result += q.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !Up(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
9435
- am(e, n, e.position, !1);
8910
+ for (r ? Mf(d) ? (l = !0, e.result += K.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += K.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += K.repeat("\n", c) : e.result += K.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !jf(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
8911
+ qf(e, n, e.position, !1);
9436
8912
  }
9437
8913
  return !0;
9438
8914
  }
9439
- function gm(e, t) {
8915
+ function ip(e, t) {
9440
8916
  var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
9441
8917
  if (e.firstTabInLine !== -1) return !1;
9442
8918
  for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !Y(o))));) {
@@ -9444,32 +8920,32 @@ function gm(e, t) {
9444
8920
  a.push(null), c = e.input.charCodeAt(e.position);
9445
8921
  continue;
9446
8922
  }
9447
- if (n = e.line, xm(e, t, Mp, !1, !0), a.push(e.result), Z(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) X(e, "bad indentation of a sequence entry");
8923
+ if (n = e.line, lp(e, t, bf, !1, !0), a.push(e.result), Z(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) X(e, "bad indentation of a sequence entry");
9448
8924
  else if (e.lineIndent < t) break;
9449
8925
  }
9450
8926
  return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
9451
8927
  }
9452
- function _m(e, t, n) {
8928
+ function ap(e, t, n) {
9453
8929
  var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
9454
8930
  if (e.firstTabInLine !== -1) return !1;
9455
8931
  for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
9456
- if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && Y(r)) v === 63 ? (g && (sm(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : X(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
8932
+ if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && Y(r)) v === 63 ? (g && (Yf(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : X(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
9457
8933
  else {
9458
- if (o = e.line, s = e.lineStart, c = e.position, !xm(e, n, jp, !1, !0)) break;
8934
+ if (o = e.line, s = e.lineStart, c = e.position, !lp(e, n, yf, !1, !0)) break;
9459
8935
  if (e.line === a) {
9460
- for (v = e.input.charCodeAt(e.position); Wp(v);) v = e.input.charCodeAt(++e.position);
9461
- if (v === 58) v = e.input.charCodeAt(++e.position), Y(v) || X(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (sm(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
8936
+ for (v = e.input.charCodeAt(e.position); Mf(v);) v = e.input.charCodeAt(++e.position);
8937
+ if (v === 58) v = e.input.charCodeAt(++e.position), Y(v) || X(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (Yf(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
9462
8938
  else if (_) X(e, "can not read an implicit mapping pair; a colon is missed");
9463
8939
  else return e.tag = l, e.anchor = u, !0;
9464
8940
  } else if (_) X(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
9465
8941
  else return e.tag = l, e.anchor = u, !0;
9466
8942
  }
9467
- if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), xm(e, t, Np, !0, i) && (g ? m = e.result : h = e.result), g || (sm(e, d, f, p, m, h, o, s, c), p = m = h = null), Z(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) X(e, "bad indentation of a mapping entry");
8943
+ if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), lp(e, t, xf, !0, i) && (g ? m = e.result : h = e.result), g || (Yf(e, d, f, p, m, h, o, s, c), p = m = h = null), Z(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) X(e, "bad indentation of a mapping entry");
9468
8944
  else if (e.lineIndent < t) break;
9469
8945
  }
9470
- return g && sm(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
8946
+ return g && Yf(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
9471
8947
  }
9472
- function vm(e) {
8948
+ function op(e) {
9473
8949
  var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
9474
8950
  if (o !== 33) return !1;
9475
8951
  if (e.tag !== null && X(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
@@ -9478,40 +8954,40 @@ function vm(e) {
9478
8954
  while (o !== 0 && o !== 62);
9479
8955
  e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : X(e, "unexpected end of the stream within a verbatim tag");
9480
8956
  } else {
9481
- for (; o !== 0 && !Y(o);) o === 33 && (r ? X(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Bp.test(i) || X(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
9482
- a = e.input.slice(t, e.position), zp.test(a) && X(e, "tag suffix cannot contain flow indicator characters");
8957
+ for (; o !== 0 && !Y(o);) o === 33 && (r ? X(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Of.test(i) || X(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
8958
+ a = e.input.slice(t, e.position), Df.test(a) && X(e, "tag suffix cannot contain flow indicator characters");
9483
8959
  }
9484
- a && !Vp.test(a) && X(e, "tag name cannot contain such characters: " + a);
8960
+ a && !kf.test(a) && X(e, "tag name cannot contain such characters: " + a);
9485
8961
  try {
9486
8962
  a = decodeURIComponent(a);
9487
8963
  } catch {
9488
8964
  X(e, "tag name is malformed: " + a);
9489
8965
  }
9490
- return n ? e.tag = a : kp.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : X(e, "undeclared tag handle \"" + i + "\""), !0;
8966
+ return n ? e.tag = a : _f.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : X(e, "undeclared tag handle \"" + i + "\""), !0;
9491
8967
  }
9492
- function ym(e) {
8968
+ function sp(e) {
9493
8969
  var t, n = e.input.charCodeAt(e.position);
9494
8970
  if (n !== 38) return !1;
9495
- for (e.anchor !== null && X(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !Y(n) && !Gp(n);) n = e.input.charCodeAt(++e.position);
8971
+ for (e.anchor !== null && X(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !Y(n) && !Nf(n);) n = e.input.charCodeAt(++e.position);
9496
8972
  return e.position === t && X(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
9497
8973
  }
9498
- function bm(e) {
8974
+ function cp(e) {
9499
8975
  var t, n, r = e.input.charCodeAt(e.position);
9500
8976
  if (r !== 42) return !1;
9501
- for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !Y(r) && !Gp(r);) r = e.input.charCodeAt(++e.position);
9502
- return e.position === t && X(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), kp.call(e.anchorMap, n) || X(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
8977
+ for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !Y(r) && !Nf(r);) r = e.input.charCodeAt(++e.position);
8978
+ return e.position === t && X(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), _f.call(e.anchorMap, n) || X(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
9503
8979
  }
9504
- function xm(e, t, n, r, i) {
8980
+ function lp(e, t, n, r, i) {
9505
8981
  var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
9506
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Np === n || Mp === n, r && Z(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; vm(e) || ym(e);) Z(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
9507
- if (s && (s = l || i), (c === 1 || Np === n) && (h = Ap === n || jp === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (gm(e, g) || _m(e, g, h)) || mm(e, h) ? u = !0 : (o && hm(e, h) || fm(e, h) || pm(e, h) ? u = !0 : bm(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && X(e, "alias node should not have any properties")) : dm(e, h, Ap === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && gm(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
8982
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = xf === n || bf === n, r && Z(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; op(e) || sp(e);) Z(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
8983
+ if (s && (s = l || i), (c === 1 || xf === n) && (h = vf === n || yf === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (ip(e, g) || ap(e, g, h)) || np(e, h) ? u = !0 : (o && rp(e, h) || ep(e, h) || tp(e, h) ? u = !0 : cp(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && X(e, "alias node should not have any properties")) : $f(e, h, vf === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && ip(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
9508
8984
  else if (e.tag === "?") {
9509
8985
  for (e.result !== null && e.kind !== "scalar" && X(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
9510
8986
  e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
9511
8987
  break;
9512
8988
  }
9513
8989
  } else if (e.tag !== "!") {
9514
- if (kp.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
8990
+ if (_f.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
9515
8991
  else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
9516
8992
  m = p[d];
9517
8993
  break;
@@ -9520,57 +8996,57 @@ function xm(e, t, n, r, i) {
9520
8996
  }
9521
8997
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
9522
8998
  }
9523
- function Sm(e) {
8999
+ function up(e) {
9524
9000
  var t = e.position, n, r, i, a = !1, o;
9525
9001
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (Z(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
9526
9002
  for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !Y(o);) o = e.input.charCodeAt(++e.position);
9527
9003
  for (r = e.input.slice(n, e.position), i = [], r.length < 1 && X(e, "directive name must not be less than one character in length"); o !== 0;) {
9528
- for (; Wp(o);) o = e.input.charCodeAt(++e.position);
9004
+ for (; Mf(o);) o = e.input.charCodeAt(++e.position);
9529
9005
  if (o === 35) {
9530
9006
  do
9531
9007
  o = e.input.charCodeAt(++e.position);
9532
- while (o !== 0 && !Up(o));
9008
+ while (o !== 0 && !jf(o));
9533
9009
  break;
9534
9010
  }
9535
- if (Up(o)) break;
9011
+ if (jf(o)) break;
9536
9012
  for (n = e.position; o !== 0 && !Y(o);) o = e.input.charCodeAt(++e.position);
9537
9013
  i.push(e.input.slice(n, e.position));
9538
9014
  }
9539
- o !== 0 && cm(e), kp.call(im, r) ? im[r](e, r, i) : rm(e, "unknown document directive \"" + r + "\"");
9015
+ o !== 0 && Xf(e), _f.call(Kf, r) ? Kf[r](e, r, i) : Gf(e, "unknown document directive \"" + r + "\"");
9540
9016
  }
9541
- if (Z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Z(e, !0, -1)) : a && X(e, "directives end mark is expected"), xm(e, e.lineIndent - 1, Np, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Rp.test(e.input.slice(t, e.position)) && rm(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && lm(e)) {
9017
+ if (Z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Z(e, !0, -1)) : a && X(e, "directives end mark is expected"), lp(e, e.lineIndent - 1, xf, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Ef.test(e.input.slice(t, e.position)) && Gf(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Zf(e)) {
9542
9018
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
9543
9019
  return;
9544
9020
  }
9545
9021
  if (e.position < e.length - 1) X(e, "end of the stream or a document separator is expected");
9546
9022
  else return;
9547
9023
  }
9548
- function Cm(e, t) {
9024
+ function dp(e, t) {
9549
9025
  e = String(e), t || (t = {}), e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
9550
- var n = new tm(e, t), r = e.indexOf("\0");
9026
+ var n = new Uf(e, t), r = e.indexOf("\0");
9551
9027
  for (r !== -1 && (n.position = r, X(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
9552
- for (; n.position < n.length - 1;) Sm(n);
9028
+ for (; n.position < n.length - 1;) up(n);
9553
9029
  return n.documents;
9554
9030
  }
9555
- function wm(e, t, n) {
9031
+ function fp(e, t, n) {
9556
9032
  typeof t == "object" && t && n === void 0 && (n = t, t = null);
9557
- var r = Cm(e, n);
9033
+ var r = dp(e, n);
9558
9034
  if (typeof t != "function") return r;
9559
9035
  for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
9560
9036
  }
9561
- function Tm(e, t) {
9562
- var n = Cm(e, t);
9037
+ function pp(e, t) {
9038
+ var n = dp(e, t);
9563
9039
  if (n.length !== 0) {
9564
9040
  if (n.length === 1) return n[0];
9565
- throw new yf("expected a single document in the stream, but found more");
9041
+ throw new q("expected a single document in the stream, but found more");
9566
9042
  }
9567
9043
  }
9568
- var Em = {
9569
- loadAll: wm,
9570
- load: Tm
9571
- }, Dm = Object.prototype.toString, Om = Object.prototype.hasOwnProperty, km = 65279, Am = 9, jm = 10, Mm = 13, Nm = 32, Pm = 33, Fm = 34, Im = 35, Lm = 37, Rm = 38, zm = 39, Bm = 42, Vm = 44, Hm = 45, Um = 58, Wm = 61, Gm = 62, Km = 63, qm = 64, Jm = 91, Ym = 93, Xm = 96, Zm = 123, Qm = 124, $m = 125, Q = {};
9044
+ var mp = {
9045
+ loadAll: fp,
9046
+ load: pp
9047
+ }, hp = Object.prototype.toString, gp = Object.prototype.hasOwnProperty, _p = 65279, vp = 9, yp = 10, bp = 13, xp = 32, Sp = 33, Cp = 34, wp = 35, Tp = 37, Ep = 38, Dp = 39, Op = 42, kp = 44, Ap = 45, jp = 58, Mp = 61, Np = 62, Pp = 63, Fp = 64, Ip = 91, Lp = 93, Rp = 96, zp = 123, Bp = 124, Vp = 125, Q = {};
9572
9048
  Q[0] = "\\0", Q[7] = "\\a", Q[8] = "\\b", Q[9] = "\\t", Q[10] = "\\n", Q[11] = "\\v", Q[12] = "\\f", Q[13] = "\\r", Q[27] = "\\e", Q[34] = "\\\"", Q[92] = "\\\\", Q[133] = "\\N", Q[160] = "\\_", Q[8232] = "\\L", Q[8233] = "\\P";
9573
- var eh = [
9049
+ var Hp = [
9574
9050
  "y",
9575
9051
  "Y",
9576
9052
  "yes",
@@ -9587,212 +9063,212 @@ var eh = [
9587
9063
  "off",
9588
9064
  "Off",
9589
9065
  "OFF"
9590
- ], th = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
9591
- function nh(e, t) {
9066
+ ], Up = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
9067
+ function Wp(e, t) {
9592
9068
  var n, r, i, a, o, s, c;
9593
9069
  if (t === null) return {};
9594
- for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Om.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
9070
+ for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && gp.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
9595
9071
  return n;
9596
9072
  }
9597
- function rh(e) {
9073
+ function Gp(e) {
9598
9074
  var t = e.toString(16).toUpperCase(), n, r;
9599
9075
  if (e <= 255) n = "x", r = 2;
9600
9076
  else if (e <= 65535) n = "u", r = 4;
9601
9077
  else if (e <= 4294967295) n = "U", r = 8;
9602
- else throw new yf("code point within a string may not be greater than 0xFFFFFFFF");
9603
- return "\\" + n + q.repeat("0", r - t.length) + t;
9078
+ else throw new q("code point within a string may not be greater than 0xFFFFFFFF");
9079
+ return "\\" + n + K.repeat("0", r - t.length) + t;
9604
9080
  }
9605
- var ih = 1, ah = 2;
9606
- function oh(e) {
9607
- this.schema = e.schema || Op, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = q.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = nh(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? ah : ih, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
9081
+ var Kp = 1, qp = 2;
9082
+ function Jp(e) {
9083
+ this.schema = e.schema || gf, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = K.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Wp(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? qp : Kp, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
9608
9084
  }
9609
- function sh(e, t) {
9610
- for (var n = q.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
9085
+ function Yp(e, t) {
9086
+ for (var n = K.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
9611
9087
  return a;
9612
9088
  }
9613
- function ch(e, t) {
9614
- return "\n" + q.repeat(" ", e.indent * t);
9089
+ function Xp(e, t) {
9090
+ return "\n" + K.repeat(" ", e.indent * t);
9615
9091
  }
9616
- function lh(e, t) {
9092
+ function Zp(e, t) {
9617
9093
  var n, r, i;
9618
9094
  for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
9619
9095
  return !1;
9620
9096
  }
9621
- function uh(e) {
9622
- return e === Nm || e === Am;
9097
+ function Qp(e) {
9098
+ return e === xp || e === vp;
9623
9099
  }
9624
- function dh(e) {
9625
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== km || 65536 <= e && e <= 1114111;
9100
+ function $p(e) {
9101
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== _p || 65536 <= e && e <= 1114111;
9626
9102
  }
9627
- function fh(e) {
9628
- return dh(e) && e !== km && e !== Mm && e !== jm;
9103
+ function em(e) {
9104
+ return $p(e) && e !== _p && e !== bp && e !== yp;
9629
9105
  }
9630
- function ph(e, t, n) {
9631
- var r = fh(e), i = r && !uh(e);
9632
- return (n ? r : r && e !== Vm && e !== Jm && e !== Ym && e !== Zm && e !== $m) && e !== Im && !(t === Um && !i) || fh(t) && !uh(t) && e === Im || t === Um && i;
9106
+ function tm(e, t, n) {
9107
+ var r = em(e), i = r && !Qp(e);
9108
+ return (n ? r : r && e !== kp && e !== Ip && e !== Lp && e !== zp && e !== Vp) && e !== wp && !(t === jp && !i) || em(t) && !Qp(t) && e === wp || t === jp && i;
9633
9109
  }
9634
- function mh(e) {
9635
- return dh(e) && e !== km && !uh(e) && e !== Hm && e !== Km && e !== Um && e !== Vm && e !== Jm && e !== Ym && e !== Zm && e !== $m && e !== Im && e !== Rm && e !== Bm && e !== Pm && e !== Qm && e !== Wm && e !== Gm && e !== zm && e !== Fm && e !== Lm && e !== qm && e !== Xm;
9110
+ function nm(e) {
9111
+ return $p(e) && e !== _p && !Qp(e) && e !== Ap && e !== Pp && e !== jp && e !== kp && e !== Ip && e !== Lp && e !== zp && e !== Vp && e !== wp && e !== Ep && e !== Op && e !== Sp && e !== Bp && e !== Mp && e !== Np && e !== Dp && e !== Cp && e !== Tp && e !== Fp && e !== Rp;
9636
9112
  }
9637
- function hh(e) {
9638
- return !uh(e) && e !== Um;
9113
+ function rm(e) {
9114
+ return !Qp(e) && e !== jp;
9639
9115
  }
9640
- function gh(e, t) {
9116
+ function im(e, t) {
9641
9117
  var n = e.charCodeAt(t), r;
9642
9118
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
9643
9119
  }
9644
- function _h(e) {
9120
+ function am(e) {
9645
9121
  return /^\n* /.test(e);
9646
9122
  }
9647
- var vh = 1, yh = 2, bh = 3, xh = 4, Sh = 5;
9648
- function Ch(e, t, n, r, i, a, o, s) {
9649
- var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = mh(gh(e, 0)) && hh(gh(e, e.length - 1));
9123
+ var om = 1, sm = 2, cm = 3, lm = 4, um = 5;
9124
+ function dm(e, t, n, r, i, a, o, s) {
9125
+ var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = nm(im(e, 0)) && rm(im(e, e.length - 1));
9650
9126
  if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
9651
- if (l = gh(e, c), !dh(l)) return Sh;
9652
- h && (h = ph(l, u, s)), u = l;
9127
+ if (l = im(e, c), !$p(l)) return um;
9128
+ h && (h = tm(l, u, s)), u = l;
9653
9129
  }
9654
9130
  else {
9655
9131
  for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
9656
- if (l = gh(e, c), l === jm) d = !0, p && (f || (f = c - m - 1 > r && e[m + 1] !== " "), m = c);
9657
- else if (!dh(l)) return Sh;
9658
- h && (h = ph(l, u, s)), u = l;
9132
+ if (l = im(e, c), l === yp) d = !0, p && (f || (f = c - m - 1 > r && e[m + 1] !== " "), m = c);
9133
+ else if (!$p(l)) return um;
9134
+ h && (h = tm(l, u, s)), u = l;
9659
9135
  }
9660
9136
  f || (f = p && c - m - 1 > r && e[m + 1] !== " ");
9661
9137
  }
9662
- return !d && !f ? h && !o && !i(e) ? vh : a === ah ? Sh : yh : n > 9 && _h(e) ? Sh : o ? a === ah ? Sh : yh : f ? xh : bh;
9138
+ return !d && !f ? h && !o && !i(e) ? om : a === qp ? um : sm : n > 9 && am(e) ? um : o ? a === qp ? um : sm : f ? lm : cm;
9663
9139
  }
9664
- function wh(e, t, n, r, i) {
9140
+ function fm(e, t, n, r, i) {
9665
9141
  e.dump = function() {
9666
- if (t.length === 0) return e.quotingType === ah ? "\"\"" : "''";
9667
- if (!e.noCompatMode && (eh.indexOf(t) !== -1 || th.test(t))) return e.quotingType === ah ? "\"" + t + "\"" : "'" + t + "'";
9142
+ if (t.length === 0) return e.quotingType === qp ? "\"\"" : "''";
9143
+ if (!e.noCompatMode && (Hp.indexOf(t) !== -1 || Up.test(t))) return e.quotingType === qp ? "\"" + t + "\"" : "'" + t + "'";
9668
9144
  var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && n >= e.flowLevel;
9669
9145
  function c(t) {
9670
- return lh(e, t);
9146
+ return Zp(e, t);
9671
9147
  }
9672
- switch (Ch(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
9673
- case vh: return t;
9674
- case yh: return "'" + t.replace(/'/g, "''") + "'";
9675
- case bh: return "|" + Th(t, e.indent) + Eh(sh(t, a));
9676
- case xh: return ">" + Th(t, e.indent) + Eh(sh(Dh(t, o), a));
9677
- case Sh: return "\"" + kh(t) + "\"";
9678
- default: throw new yf("impossible error: invalid scalar style");
9148
+ switch (dm(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
9149
+ case om: return t;
9150
+ case sm: return "'" + t.replace(/'/g, "''") + "'";
9151
+ case cm: return "|" + pm(t, e.indent) + mm(Yp(t, a));
9152
+ case lm: return ">" + pm(t, e.indent) + mm(Yp(hm(t, o), a));
9153
+ case um: return "\"" + _m(t) + "\"";
9154
+ default: throw new q("impossible error: invalid scalar style");
9679
9155
  }
9680
9156
  }();
9681
9157
  }
9682
- function Th(e, t) {
9683
- var n = _h(e) ? String(t) : "", r = e[e.length - 1] === "\n";
9158
+ function pm(e, t) {
9159
+ var n = am(e) ? String(t) : "", r = e[e.length - 1] === "\n";
9684
9160
  return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
9685
9161
  }
9686
- function Eh(e) {
9162
+ function mm(e) {
9687
9163
  return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
9688
9164
  }
9689
- function Dh(e, t) {
9165
+ function hm(e, t) {
9690
9166
  for (var n = /(\n+)([^\n]*)/g, r = function() {
9691
9167
  var r = e.indexOf("\n");
9692
- return r = r === -1 ? e.length : r, n.lastIndex = r, Oh(e.slice(0, r), t);
9168
+ return r = r === -1 ? e.length : r, n.lastIndex = r, gm(e.slice(0, r), t);
9693
9169
  }(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
9694
9170
  var s = o[1], c = o[2];
9695
- a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Oh(c, t), i = a;
9171
+ a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + gm(c, t), i = a;
9696
9172
  }
9697
9173
  return r;
9698
9174
  }
9699
- function Oh(e, t) {
9175
+ function gm(e, t) {
9700
9176
  if (e === "" || e[0] === " ") return e;
9701
9177
  for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
9702
9178
  return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
9703
9179
  }
9704
- function kh(e) {
9705
- for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = gh(e, i), r = Q[n], !r && dh(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || rh(n);
9180
+ function _m(e) {
9181
+ for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = im(e, i), r = Q[n], !r && $p(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Gp(n);
9706
9182
  return t;
9707
9183
  }
9708
- function Ah(e, t, n) {
9184
+ function vm(e, t, n) {
9709
9185
  var r = "", i = e.tag, a, o, s;
9710
- for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Fh(e, t, s, !1, !1) || s === void 0 && Fh(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
9186
+ for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Cm(e, t, s, !1, !1) || s === void 0 && Cm(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
9711
9187
  e.tag = i, e.dump = "[" + r + "]";
9712
9188
  }
9713
- function jh(e, t, n, r) {
9189
+ function ym(e, t, n, r) {
9714
9190
  var i = "", a = e.tag, o, s, c;
9715
- for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Fh(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Fh(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += ch(e, t)), e.dump && jm === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
9191
+ for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Cm(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Cm(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Xp(e, t)), e.dump && yp === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
9716
9192
  e.tag = a, e.dump = i || "[]";
9717
9193
  }
9718
- function Mh(e, t, n) {
9194
+ function bm(e, t, n) {
9719
9195
  var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
9720
- for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Fh(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Fh(e, t, l, !1, !1) && (u += e.dump, r += u));
9196
+ for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Cm(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Cm(e, t, l, !1, !1) && (u += e.dump, r += u));
9721
9197
  e.tag = i, e.dump = "{" + r + "}";
9722
9198
  }
9723
- function Nh(e, t, n, r) {
9199
+ function xm(e, t, n, r) {
9724
9200
  var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
9725
9201
  if (e.sortKeys === !0) o.sort();
9726
9202
  else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
9727
- else if (e.sortKeys) throw new yf("sortKeys must be a boolean or a function");
9728
- for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += ch(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Fh(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && jm === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += ch(e, t)), Fh(e, t + 1, u, !0, d) && (e.dump && jm === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
9203
+ else if (e.sortKeys) throw new q("sortKeys must be a boolean or a function");
9204
+ for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += Xp(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Cm(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && yp === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += Xp(e, t)), Cm(e, t + 1, u, !0, d) && (e.dump && yp === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
9729
9205
  e.tag = a, e.dump = i || "{}";
9730
9206
  }
9731
- function Ph(e, t, n) {
9207
+ function Sm(e, t, n) {
9732
9208
  var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
9733
9209
  for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
9734
9210
  if (e.tag = n ? s.multi && s.representName ? s.representName(t) : s.tag : "?", s.represent) {
9735
- if (c = e.styleMap[s.tag] || s.defaultStyle, Dm.call(s.represent) === "[object Function]") r = s.represent(t, c);
9736
- else if (Om.call(s.represent, c)) r = s.represent[c](t, c);
9737
- else throw new yf("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
9211
+ if (c = e.styleMap[s.tag] || s.defaultStyle, hp.call(s.represent) === "[object Function]") r = s.represent(t, c);
9212
+ else if (gp.call(s.represent, c)) r = s.represent[c](t, c);
9213
+ else throw new q("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
9738
9214
  e.dump = r;
9739
9215
  }
9740
9216
  return !0;
9741
9217
  }
9742
9218
  return !1;
9743
9219
  }
9744
- function Fh(e, t, n, r, i, a, o) {
9745
- e.tag = null, e.dump = n, Ph(e, n, !1) || Ph(e, n, !0);
9746
- var s = Dm.call(e.dump), c = r, l;
9220
+ function Cm(e, t, n, r, i, a, o) {
9221
+ e.tag = null, e.dump = n, Sm(e, n, !1) || Sm(e, n, !0);
9222
+ var s = hp.call(e.dump), c = r, l;
9747
9223
  r && (r = e.flowLevel < 0 || e.flowLevel > t);
9748
9224
  var u = s === "[object Object]" || s === "[object Array]", d, f;
9749
9225
  if (u && (d = e.duplicates.indexOf(n), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[d]) e.dump = "*ref_" + d;
9750
9226
  else {
9751
- if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Nh(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Mh(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
9752
- else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? jh(e, t - 1, e.dump, i) : jh(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Ah(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
9753
- else if (s === "[object String]") e.tag !== "?" && wh(e, e.dump, t, a, c);
9227
+ if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (xm(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (bm(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
9228
+ else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? ym(e, t - 1, e.dump, i) : ym(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (vm(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
9229
+ else if (s === "[object String]") e.tag !== "?" && fm(e, e.dump, t, a, c);
9754
9230
  else if (s === "[object Undefined]") return !1;
9755
9231
  else {
9756
9232
  if (e.skipInvalid) return !1;
9757
- throw new yf("unacceptable kind of an object to dump " + s);
9233
+ throw new q("unacceptable kind of an object to dump " + s);
9758
9234
  }
9759
9235
  e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
9760
9236
  }
9761
9237
  return !0;
9762
9238
  }
9763
- function Ih(e, t) {
9239
+ function wm(e, t) {
9764
9240
  var n = [], r = [], i, a;
9765
- for (Lh(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
9241
+ for (Tm(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
9766
9242
  t.usedDuplicates = Array(a);
9767
9243
  }
9768
- function Lh(e, t, n) {
9244
+ function Tm(e, t, n) {
9769
9245
  var r, i, a;
9770
9246
  if (typeof e == "object" && e) {
9771
9247
  if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
9772
- else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Lh(e[i], t, n);
9773
- else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Lh(e[r[i]], t, n);
9248
+ else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) Tm(e[i], t, n);
9249
+ else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) Tm(e[r[i]], t, n);
9774
9250
  }
9775
9251
  }
9776
- function Rh(e, t) {
9252
+ function Em(e, t) {
9777
9253
  t || (t = {});
9778
- var n = new oh(t);
9779
- n.noRefs || Ih(e, n);
9254
+ var n = new Jp(t);
9255
+ n.noRefs || wm(e, n);
9780
9256
  var r = e;
9781
- return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Fh(n, 0, r, !0, !0) ? n.dump + "\n" : "";
9257
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Cm(n, 0, r, !0, !0) ? n.dump + "\n" : "";
9782
9258
  }
9783
- var zh = { dump: Rh }, Bh = Em.load;
9784
- Em.loadAll, zh.dump;
9259
+ var Dm = { dump: Em }, Om = mp.load;
9260
+ mp.loadAll, Dm.dump;
9785
9261
  //#endregion
9786
9262
  //#region node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs
9787
- function Vh(e, t) {
9788
- let n = Bh(e, t);
9789
- return uf(e, n, t), n;
9263
+ function km(e, t) {
9264
+ let n = Om(e, t);
9265
+ return Qu(e, n, t), n;
9790
9266
  }
9791
9267
  //#endregion
9792
9268
  //#region src/lib/utils/parseSpec.ts
9793
- function Hh(e) {
9269
+ function Am(e) {
9794
9270
  if (typeof e == "string") try {
9795
- let t = Vh(e);
9271
+ let t = km(e);
9796
9272
  return t == null ? {} : t;
9797
9273
  } catch (e) {
9798
9274
  return console.error("Error parsing spec", e), {};
@@ -9801,12 +9277,12 @@ function Hh(e) {
9801
9277
  }
9802
9278
  //#endregion
9803
9279
  //#region src/lib/parser/dereferenceWithAnnotations.ts
9804
- var Uh = Symbol("origin"), Wh = /* @__PURE__ */ new Map();
9805
- function Gh(e, t) {
9806
- Wh.has(e) || Wh.set(e, /* @__PURE__ */ new Map());
9807
- let n = Wh.get(e);
9280
+ var jm = Symbol("origin"), Mm = /* @__PURE__ */ new Map();
9281
+ function Nm(e, t) {
9282
+ Mm.has(e) || Mm.set(e, /* @__PURE__ */ new Map());
9283
+ let n = Mm.get(e);
9808
9284
  if (n.has(t)) return n.get(t);
9809
- let r = t.split("/").slice(1), i = e;
9285
+ let r = t.split("/").slice(1).map(Pm), i = e;
9810
9286
  for (let e of r) {
9811
9287
  var a;
9812
9288
  if (!i || typeof i != "object") {
@@ -9817,46 +9293,52 @@ function Gh(e, t) {
9817
9293
  }
9818
9294
  return n.set(t, i), i;
9819
9295
  }
9820
- function Kh(e) {
9296
+ function Pm(e) {
9297
+ try {
9298
+ e = decodeURIComponent(e);
9299
+ } catch {}
9300
+ return e.replace(/~1/g, "/").replace(/~0/g, "~");
9301
+ }
9302
+ function Fm(e) {
9821
9303
  if (Array.isArray(e)) {
9822
9304
  let t = Array.from({ length: e.length });
9823
- for (let n = 0; n < e.length; n++) t[n] = e[n] && typeof e[n] == "object" ? Kh(e[n]) : e[n];
9305
+ for (let n = 0; n < e.length; n++) t[n] = e[n] && typeof e[n] == "object" ? Fm(e[n]) : e[n];
9824
9306
  return t;
9825
9307
  }
9826
9308
  if (Object.prototype.toString.call(e) === "[object Object]") {
9827
9309
  let t = {};
9828
9310
  for (let n in e) if (n === "__proto__") Object.defineProperty(t, n, {
9829
- value: Kh(e[n]),
9311
+ value: Fm(e[n]),
9830
9312
  configurable: !0,
9831
9313
  enumerable: !0,
9832
9314
  writable: !0
9833
9315
  });
9834
9316
  else {
9835
9317
  let r = e[n];
9836
- t[n] = r && typeof r == "object" ? Kh(r) : r;
9318
+ t[n] = r && typeof r == "object" ? Fm(r) : r;
9837
9319
  }
9838
9320
  return t;
9839
9321
  }
9840
9322
  return e;
9841
9323
  }
9842
- function qh(e, t = /* @__PURE__ */ new WeakSet()) {
9324
+ function Im(e, t = /* @__PURE__ */ new WeakSet()) {
9843
9325
  if (e && typeof e == "object" && !t.has(e)) {
9844
- t.add(e), Object.defineProperty(e, Uh, {
9326
+ t.add(e), Object.defineProperty(e, jm, {
9845
9327
  value: e,
9846
9328
  enumerable: !1
9847
9329
  });
9848
9330
  let n = Array.isArray(e) ? e : Object.values(e);
9849
- for (let e of n) qh(e, t);
9331
+ for (let e of n) Im(e, t);
9850
9332
  }
9851
9333
  }
9852
- function Jh(e) {
9334
+ function Lm(e) {
9853
9335
  let t = Array.isArray(e) ? [...e] : { ...e };
9854
- return Object.defineProperty(t, Uh, {
9855
- value: e[Uh] || e,
9336
+ return Object.defineProperty(t, jm, {
9337
+ value: e[jm] || e,
9856
9338
  enumerable: !1
9857
9339
  }), t;
9858
9340
  }
9859
- var Yh = /* @__PURE__ */ new Set([
9341
+ var Rm = /* @__PURE__ */ new Set([
9860
9342
  "title",
9861
9343
  "description",
9862
9344
  "summary",
@@ -9866,94 +9348,93 @@ var Yh = /* @__PURE__ */ new Set([
9866
9348
  "writeOnly",
9867
9349
  "examples",
9868
9350
  "example"
9869
- ]), Xh = /* @__PURE__ */ new Map();
9870
- function Zh(e) {
9871
- if (Xh.has(e)) return Xh.get(e);
9872
- let t = /* @__PURE__ */ new Set(), n = Kh(e);
9873
- qh(n);
9351
+ ]), zm = /* @__PURE__ */ new Map();
9352
+ function Bm(e) {
9353
+ if (zm.has(e)) return zm.get(e);
9354
+ let t = /* @__PURE__ */ new Map(), n = Fm(e);
9355
+ Im(n);
9874
9356
  let r = (e) => {
9875
9357
  if (typeof e == "object" && e) {
9876
- if (t.has(e)) return e;
9877
- if (t.add(e), Array.isArray(e)) for (let t = 0; t < e.length; t++) e[t] = r(e[t]);
9358
+ if (t.has(e)) return t.get(e);
9359
+ if (t.set(e, e), Array.isArray(e)) for (let t = 0; t < e.length; t++) e[t] = r(e[t]);
9878
9360
  else {
9879
9361
  if ("$ref" in e && typeof e.$ref == "string") {
9880
- let t = e;
9362
+ let i = e;
9881
9363
  do
9882
- t = Gh(n, t.$ref);
9883
- while (t != null && t.$ref);
9884
- t = Jh(t), t = r(t);
9885
- for (let n in e) n !== "$ref" && Yh.has(n) && (t[n] = e[n]);
9886
- return t;
9364
+ i = Nm(n, i.$ref);
9365
+ while (i != null && i.$ref);
9366
+ if (i == null) return e;
9367
+ i = Lm(i), i = r(i);
9368
+ for (let t in e) t !== "$ref" && Rm.has(t) && (i[t] = e[t]);
9369
+ return t.set(e, i), i;
9887
9370
  }
9888
9371
  for (let t in e) e[t] = r(e[t]);
9889
9372
  }
9890
9373
  }
9891
9374
  return e;
9892
9375
  }, i = r(n);
9893
- return Xh.set(e, i), i;
9376
+ return zm.set(e, i), i;
9894
9377
  }
9895
9378
  //#endregion
9896
9379
  //#region src/lib/spec/createOpenApiSpec.ts
9897
- function Qh(e = {}) {
9380
+ function Vm(e = {}) {
9898
9381
  var t;
9899
- let n = null, r = (t = e.originalSpec) == null ? null : t;
9900
- function i(e) {
9901
- n = e;
9382
+ let n = null, r = (t = e.originalSpec) == null ? null : t, i = null;
9383
+ function a(e) {
9384
+ n = e, i = null;
9902
9385
  }
9903
- function a() {
9386
+ function o() {
9904
9387
  if (!n) {
9905
9388
  var t;
9906
- i((t = e.spec) == null ? {} : t);
9389
+ a((t = e.spec) == null ? {} : t);
9907
9390
  }
9908
9391
  if (!n) throw Error("OpenAPI spec is not defined");
9909
9392
  return n;
9910
9393
  }
9911
- function o() {
9394
+ function s() {
9912
9395
  return r;
9913
9396
  }
9914
- function s(e) {
9397
+ function c(e) {
9915
9398
  r = e;
9916
9399
  }
9917
- function c(e, t) {
9918
- for (let r of Object.values(e)) for (let e of $) {
9919
- var n;
9920
- if (r && ((n = r[e]) == null ? void 0 : n.operationId) === t) return r[e];
9921
- }
9922
- return null;
9923
- }
9924
9400
  function l(e) {
9925
- let t = a().paths;
9926
- return t ? c(t, e) : null;
9401
+ var t;
9402
+ if (!i) {
9403
+ i = /* @__PURE__ */ new Map();
9404
+ for (let [e, t] of Object.entries(m())) for (let n of ph) {
9405
+ let r = t == null ? void 0 : t[n];
9406
+ (r == null ? void 0 : r.operationId) !== void 0 && !i.has(r.operationId) && i.set(r.operationId, {
9407
+ path: e,
9408
+ method: n,
9409
+ operation: r
9410
+ });
9411
+ }
9412
+ }
9413
+ return (t = i.get(e)) == null ? null : t;
9927
9414
  }
9928
9415
  function u(e) {
9929
- let t = a().paths;
9930
- if (!t) return null;
9931
- for (let [r, i] of Object.entries(t)) for (let t of $) {
9932
- var n;
9933
- if (i && ((n = i[t]) == null ? void 0 : n.operationId) === e) return r;
9934
- }
9935
- return null;
9416
+ var t, n;
9417
+ return (t = (n = l(e)) == null ? void 0 : n.operation) == null ? null : t;
9936
9418
  }
9937
9419
  function d(e) {
9938
- let t = a().paths;
9939
- if (!t) return null;
9940
- for (let r of Object.values(t)) for (let t of $) {
9941
- var n;
9942
- if (r && ((n = r[t]) == null ? void 0 : n.operationId) === e) return t;
9943
- }
9944
- return null;
9420
+ var t, n;
9421
+ return (t = (n = l(e)) == null ? void 0 : n.path) == null ? null : t;
9945
9422
  }
9946
9423
  function f(e) {
9947
- let t = l(e);
9424
+ var t, n;
9425
+ return (t = (n = l(e)) == null ? void 0 : n.method) == null ? null : t;
9426
+ }
9427
+ function p(e) {
9428
+ let t = u(e);
9948
9429
  return t && t.parameters || [];
9949
9430
  }
9950
- function p() {
9431
+ function m() {
9951
9432
  var e;
9952
- return (e = a().paths) == null ? {} : e;
9433
+ return (e = o().paths) == null ? {} : e;
9953
9434
  }
9954
- function m() {
9955
- let e = p();
9956
- return Object.keys(e).flatMap((t) => $.filter((n) => e && e[t] && e[t][n]).map((n) => {
9435
+ function h() {
9436
+ let e = m();
9437
+ return Object.keys(e).flatMap((t) => ph.filter((n) => e && e[t] && e[t][n]).map((n) => {
9957
9438
  if (!e || !e[t] || !e[t][n]) return null;
9958
9439
  let { operationId: r, summary: i, description: a, tags: o } = e[t][n];
9959
9440
  return {
@@ -9966,60 +9447,56 @@ function Qh(e = {}) {
9966
9447
  };
9967
9448
  }));
9968
9449
  }
9969
- function h() {
9970
- var e;
9971
- return (e = a().info) == null ? {} : e;
9972
- }
9973
9450
  function g() {
9974
9451
  var e;
9975
- return (e = a().externalDocs) == null ? {} : e;
9452
+ return (e = o().info) == null ? {} : e;
9976
9453
  }
9977
9454
  function _() {
9978
9455
  var e;
9979
- return (e = a().servers) == null ? [] : e;
9456
+ return (e = o().externalDocs) == null ? {} : e;
9980
9457
  }
9981
- function v(e) {
9458
+ function v() {
9459
+ var e;
9460
+ return (e = o().servers) == null ? [] : e;
9461
+ }
9462
+ function y(e) {
9982
9463
  var t, n;
9983
- let r = c(p(), e);
9464
+ let r = l(e);
9984
9465
  if (!r) return [];
9985
- let i = u(e), o = (t = a().paths[i == null ? "" : i]) == null ? void 0 : t.servers;
9986
- return (r == null ? void 0 : r.servers) === void 0 ? o === void 0 ? (n = a().servers) == null ? [] : n : o : r.servers;
9466
+ let i = r.operation, a = (t = m()[r.path]) == null ? void 0 : t.servers;
9467
+ return (i == null ? void 0 : i.servers) === void 0 ? a === void 0 ? (n = o().servers) == null ? [] : n : a : i.servers;
9987
9468
  }
9988
- function y() {
9989
- if (!a().paths) return [];
9990
- let e = a().paths;
9991
- return Object.values(e).reduce((e, t) => {
9992
- for (let r of $) {
9993
- var n;
9994
- t && (n = t[r]) != null && n.tags && t[r].tags.forEach((t) => {
9995
- e.includes(t) || e.push(t);
9996
- });
9997
- }
9998
- return e;
9999
- }, []);
9469
+ function b() {
9470
+ if (!o().paths) return [];
9471
+ let e = /* @__PURE__ */ new Set();
9472
+ for (let n of Object.values(m())) for (let r of ph) {
9473
+ var t;
9474
+ n == null || (t = n[r]) == null || (t = t.tags) == null || t.forEach((t) => e.add(t));
9475
+ }
9476
+ return [...e];
10000
9477
  }
10001
- function b(e) {
9478
+ function x(e) {
10002
9479
  var t;
10003
- let n = (t = p()) == null ? {} : t, r = {};
10004
- for (let [t, i] of Object.entries(n)) if (i) for (let n of $) {
9480
+ let n = (t = m()) == null ? {} : t, r = {};
9481
+ for (let [t, i] of Object.entries(n)) if (i) for (let n of ph) {
10005
9482
  let a = i[n];
10006
9483
  a && e(a) && (r[t] = r[t] || {}, r[t][n] = a);
10007
9484
  }
10008
9485
  return r;
10009
9486
  }
10010
- function x(e) {
9487
+ function S(e) {
10011
9488
  let t = typeof e == "string" ? [e] : e;
10012
- return b((e) => {
9489
+ return x((e) => {
10013
9490
  var n;
10014
9491
  return e == null || (n = e.tags) == null ? void 0 : n.some((e) => t.includes(e));
10015
9492
  });
10016
9493
  }
10017
- function S() {
10018
- return b((e) => !(e != null && e.tags) || e.tags.length === 0);
10019
- }
10020
9494
  function C() {
9495
+ return x((e) => !(e != null && e.tags) || e.tags.length === 0);
9496
+ }
9497
+ function ee() {
10021
9498
  var e;
10022
- return ((e = a().tags) == null ? [] : e).map((e) => {
9499
+ return ((e = o().tags) == null ? [] : e).map((e) => {
10023
9500
  var t, n;
10024
9501
  return {
10025
9502
  name: (t = e.name) == null ? null : t,
@@ -10027,8 +9504,8 @@ function Qh(e = {}) {
10027
9504
  };
10028
9505
  });
10029
9506
  }
10030
- function ee() {
10031
- let e = y(), t = C().filter((t) => {
9507
+ function te() {
9508
+ let e = b(), t = ee().filter((t) => {
10032
9509
  var n;
10033
9510
  return e.includes((n = t.name) == null ? "" : n);
10034
9511
  });
@@ -10038,33 +9515,33 @@ function Qh(e = {}) {
10038
9515
  }))];
10039
9516
  }
10040
9517
  return {
10041
- spec: a(),
10042
- originalSpec: o(),
10043
- setSpec: i,
10044
- getSpec: a,
10045
- getOriginalSpec: o,
10046
- setOriginalSpec: s,
10047
- getOperation: l,
10048
- getOperationPath: u,
10049
- getOperationMethod: d,
10050
- getOperationParameters: f,
10051
- getPaths: p,
10052
- getPathsByVerbs: m,
10053
- getInfo: h,
10054
- getExternalDocs: g,
10055
- getServers: _,
10056
- getOperationServers: v,
10057
- getOperationsTags: y,
10058
- getPathsByTags: x,
10059
- getPathsWithoutTags: S,
10060
- getTags: C,
10061
- getFilteredTags: ee
9518
+ spec: o(),
9519
+ originalSpec: s(),
9520
+ setSpec: a,
9521
+ getSpec: o,
9522
+ getOriginalSpec: s,
9523
+ setOriginalSpec: c,
9524
+ getOperation: u,
9525
+ getOperationPath: d,
9526
+ getOperationMethod: f,
9527
+ getOperationParameters: p,
9528
+ getPaths: m,
9529
+ getPathsByVerbs: h,
9530
+ getInfo: g,
9531
+ getExternalDocs: _,
9532
+ getServers: v,
9533
+ getOperationServers: y,
9534
+ getOperationsTags: b,
9535
+ getPathsByTags: S,
9536
+ getPathsWithoutTags: C,
9537
+ getTags: ee,
9538
+ getFilteredTags: te
10062
9539
  };
10063
9540
  }
10064
9541
  //#endregion
10065
9542
  //#region src/composables/usePaths.ts
10066
- function $h({ spec: e, defaultTag: t = void 0, defaultTagDescription: n = void 0 }) {
10067
- let r = Qh({ spec: b_().transformSync({
9543
+ function Hm({ spec: e, defaultTag: t = void 0, defaultTagDescription: n = void 0 }) {
9544
+ let r = Vm({ spec: T_().transformSync({
10068
9545
  spec: e,
10069
9546
  defaultTag: t,
10070
9547
  defaultTagDescription: n
@@ -10079,31 +9556,31 @@ function $h({ spec: e, defaultTag: t = void 0, defaultTagDescription: n = void 0
10079
9556
  }
10080
9557
  //#endregion
10081
9558
  //#region src/lib/sidebar/cleanSidebarItems.ts
10082
- function eg(e) {
10083
- return Array.isArray(e) ? e.map(eg) : typeof e == "object" ? {
9559
+ function Um(e) {
9560
+ return Array.isArray(e) ? e.map(Um) : typeof e == "object" ? {
10084
9561
  text: e.text,
10085
9562
  ...e.collapsed === void 0 ? {} : { collapsed: e.collapsed },
10086
9563
  ...e.link ? { link: e.link } : {},
10087
- ...e.items ? { items: eg(e.items) } : {}
9564
+ ...e.items ? { items: Um(e.items) } : {}
10088
9565
  } : e;
10089
9566
  }
10090
9567
  //#endregion
10091
9568
  //#region src/lib/sidebar/ensureGroupTextSlashPrefix.ts
10092
- function tg(e) {
9569
+ function Wm(e) {
10093
9570
  return e.map((e) => {
10094
9571
  if (e.items) {
10095
9572
  var t;
10096
- e.items = tg(e.items), e.text = (t = e.text) != null && t.startsWith("/") ? e.text : `/${e.text}`;
9573
+ e.items = Wm(e.items), e.text = (t = e.text) != null && t.startsWith("/") ? e.text : `/${e.text}`;
10097
9574
  } else e.text && !e.isOperation && !e.text.startsWith("/") && !e.text.includes("<") && (e.text = `/${e.text}`);
10098
9575
  return e;
10099
9576
  });
10100
9577
  }
10101
9578
  //#endregion
10102
9579
  //#region src/lib/sidebar/flatSidebarItems.ts
10103
- function ng(e, t, n, r = 1, i = "") {
10104
- return ig(rg(e, t, n, r, i));
9580
+ function Gm(e, t, n, r = 1, i = "") {
9581
+ return qm(Km(e, t, n, r, i));
10105
9582
  }
10106
- function rg(e, t, n, r, i = "") {
9583
+ function Km(e, t, n, r, i = "") {
10107
9584
  return e.map((e) => {
10108
9585
  if (e.items) {
10109
9586
  let a = i + e.text;
@@ -10114,12 +9591,12 @@ function rg(e, t, n, r, i = "") {
10114
9591
  ...r,
10115
9592
  items: (n = r.items) == null ? void 0 : n.filter((e) => e.isOperation)
10116
9593
  };
10117
- }) : e.items = rg(e.items, t, n, r + 1, a);
9594
+ }) : e.items = Km(e.items, t, n, r + 1, a);
10118
9595
  }
10119
9596
  return e;
10120
9597
  });
10121
9598
  }
10122
- function ig(e, t = "") {
9599
+ function qm(e, t = "") {
10123
9600
  let n = [];
10124
9601
  return e.forEach((e) => {
10125
9602
  e.flattenedItems ? n.push(...e.flattenedItems.map((n) => {
@@ -10129,40 +9606,40 @@ function ig(e, t = "") {
10129
9606
  n.text = (e.text || "") + a;
10130
9607
  }
10131
9608
  return n;
10132
- })) : n.push(e), e.items && (e.items = ig(e.items, t + e.text));
9609
+ })) : n.push(e), e.items && (e.items = qm(e.items, t + e.text));
10133
9610
  }), n;
10134
9611
  }
10135
9612
  //#endregion
10136
9613
  //#region src/lib/sidebar/mergeAdjacentGroups.ts
10137
- function ag(e) {
9614
+ function Jm(e) {
10138
9615
  return Array.isArray(e) ? e.reduce((e, t) => {
10139
9616
  var n;
10140
9617
  if (!((n = t.items) != null && n.length)) return e.push(t), e;
10141
9618
  if (t.items.length === 1 && !t.items.some((e) => "link" in e)) {
10142
- let n = t.items[0], r = ag([n])[0];
10143
- return r.text = og(t.text, r.text), r.path = r.path || t.path, e.push(r), e;
9619
+ let n = t.items[0], r = Jm([n])[0];
9620
+ return r.text = Ym(t.text, r.text), r.path = r.path || t.path, e.push(r), e;
10144
9621
  }
10145
- return t.items = ag(t.items), e.push(t), e;
9622
+ return t.items = Jm(t.items), e.push(t), e;
10146
9623
  }, []) : e;
10147
9624
  }
10148
- function og(e, t) {
9625
+ function Ym(e, t) {
10149
9626
  return e + (t.startsWith("/") ? t : `/${t}`);
10150
9627
  }
10151
9628
  //#endregion
10152
9629
  //#region src/lib/sidebar/setItemCollapsedState.ts
10153
- function sg(e) {
10154
- return e.map((e) => (e.items && (e.collapsed = !e.items.length, e.items.some((e) => "items" in e) && (e.items = sg(e.items))), e));
9630
+ function Xm(e) {
9631
+ return e.map((e) => (e.items && (e.collapsed = !e.items.length, e.items.some((e) => "items" in e) && (e.items = Xm(e.items))), e));
10155
9632
  }
10156
9633
  //#endregion
10157
9634
  //#region src/lib/sidebar/generateSidebarItemsByPaths.ts
10158
- function cg({ paths: e, startsWith: t = "", collapsible: n = !0, itemLinkPrefix: r = "", depth: i = 6, sidebarItemTemplate: a, sidebarGroupTemplate: o } = { paths: {} }) {
9635
+ function Zm({ paths: e, startsWith: t = "", collapsible: n = !0, itemLinkPrefix: r = "", depth: i = 6, sidebarItemTemplate: a, sidebarGroupTemplate: o } = { paths: {} }) {
10159
9636
  let s = [], c = {};
10160
9637
  return Object.keys(e).filter((e) => e.startsWith(t)).forEach((t) => {
10161
9638
  let n = t.split("/").filter(Boolean), i = s;
10162
9639
  n.forEach((o, s) => {
10163
- let l = s === n.length - 1, u = `/${n.slice(0, s + 1).join("/")}`, d = lg(i, o, u);
9640
+ let l = s === n.length - 1, u = `/${n.slice(0, s + 1).join("/")}`, d = Qm(i, o, u);
10164
9641
  if (l) {
10165
- let n = $.map((n) => {
9642
+ let n = ph.map((n) => {
10166
9643
  let i = e[t] ? e[t][n] : null;
10167
9644
  return i ? {
10168
9645
  text: a ? a({
@@ -10181,9 +9658,9 @@ function cg({ paths: e, startsWith: t = "", collapsible: n = !0, itemLinkPrefix:
10181
9658
  }
10182
9659
  i = d.items;
10183
9660
  });
10184
- }), s = ag(s), s = tg(s), n && (s = sg(s)), s = ng(s, c, i), o && (s = ug(s, o)), s;
9661
+ }), s = Jm(s), s = Wm(s), n && (s = Xm(s)), s = Gm(s, c, i), o && (s = $m(s, o)), s;
10185
9662
  }
10186
- function lg(e, t, n) {
9663
+ function Qm(e, t, n) {
10187
9664
  let r = e.find((e) => e.text === t && e.path === n);
10188
9665
  return r || (r = {
10189
9666
  text: t,
@@ -10191,46 +9668,46 @@ function lg(e, t, n) {
10191
9668
  items: []
10192
9669
  }, e.push(r)), r;
10193
9670
  }
10194
- function ug(e, t, n = 1) {
9671
+ function $m(e, t, n = 1) {
10195
9672
  return e.map((e) => (e.text && e.path && e.items && e.items.length && (e.text = t({
10196
9673
  path: e.path,
10197
9674
  depth: n
10198
- })), e.items && (e.items = ug(e.items, t, n + 1)), e));
9675
+ })), e.items && (e.items = $m(e.items, t, n + 1)), e));
10199
9676
  }
10200
9677
  //#endregion
10201
9678
  //#region src/lib/utils/minifyHtml.ts
10202
- var dg = /\s+/g;
10203
- function fg(e) {
10204
- return e.replace(dg, " ").trim();
9679
+ var eh = /\s+/g;
9680
+ function th(e) {
9681
+ return e.replace(eh, " ").trim();
10205
9682
  }
10206
9683
  //#endregion
10207
9684
  //#region src/composables/useSidebar.ts
10208
- var pg = {
9685
+ var nh = {
10209
9686
  linkPrefix: "/operations/",
10210
9687
  tagLinkPrefix: "/tags/",
10211
9688
  defaultTag: "Default"
10212
9689
  };
10213
- function mg({ path: e }) {
9690
+ function rh({ path: e }) {
10214
9691
  return e;
10215
9692
  }
10216
- function hg({ spec: e, linkPrefix: t = pg.linkPrefix, tagLinkPrefix: n = pg.tagLinkPrefix, defaultTag: r = pg.defaultTag, methodAliases: i = {}, sidebarItemTemplate: a, sidebarGroupTemplate: o } = {}) {
9693
+ function ih({ spec: e, linkPrefix: t = nh.linkPrefix, tagLinkPrefix: n = nh.tagLinkPrefix, defaultTag: r = nh.defaultTag, methodAliases: i = {}, sidebarItemTemplate: a, sidebarGroupTemplate: o } = {}) {
10217
9694
  let s = null;
10218
9695
  function c() {
10219
9696
  if (!e) throw Error("OpenAPI spec is not provided.");
10220
- return s || (s = Qh({ spec: b_().transformSync({
9697
+ return s || (s = Vm({ spec: T_().transformSync({
10221
9698
  spec: e,
10222
9699
  defaultTag: r
10223
9700
  }) })), s;
10224
9701
  }
10225
9702
  let l = a || (({ method: e, path: t, title: n }) => {
10226
9703
  let r = i[e] || e.toUpperCase(), a = n || t;
10227
- return fg(`
9704
+ return th(`
10228
9705
  <span class="OASidebarItem group/oaOperationLink">
10229
9706
  <span class="OASidebarItem-badge OAMethodBadge--${e.toLowerCase()}">${r}</span>
10230
9707
  <span class="OASidebarItem-text text">${a}</span>
10231
9708
  </span>
10232
9709
  `);
10233
- }), u = o || mg;
9710
+ }), u = o || rh;
10234
9711
  function d({ method: e, path: t, sidebarItemTemplate: n }) {
10235
9712
  var r;
10236
9713
  let i = (r = c().getPaths()) == null || (r = r[t]) == null ? void 0 : r[e];
@@ -10262,7 +9739,7 @@ function hg({ spec: e, linkPrefix: t = pg.linkPrefix, tagLinkPrefix: n = pg.tagL
10262
9739
  text: "",
10263
9740
  items: []
10264
9741
  };
10265
- let s = Array.isArray(e) ? e : [e], l = Object.entries(o).flatMap(([e, t]) => $.map((n) => {
9742
+ let s = Array.isArray(e) ? e : [e], l = Object.entries(o).flatMap(([e, t]) => ph.map((n) => {
10266
9743
  let a = t == null ? void 0 : t[n];
10267
9744
  return a && (s.length === 0 || s.every((e) => {
10268
9745
  var t;
@@ -10306,7 +9783,7 @@ function hg({ spec: e, linkPrefix: t = pg.linkPrefix, tagLinkPrefix: n = pg.tagL
10306
9783
  }));
10307
9784
  }
10308
9785
  function g({ startsWith: e = "", collapsible: n = !0, depth: r = 6, linkPrefix: i = t, sidebarItemTemplate: a, sidebarGroupTemplate: o } = {}) {
10309
- return eg(cg({
9786
+ return Um(Zm({
10310
9787
  paths: c().getPaths(),
10311
9788
  startsWith: e,
10312
9789
  collapsible: n,
@@ -10332,22 +9809,22 @@ function hg({ spec: e, linkPrefix: t = pg.linkPrefix, tagLinkPrefix: n = pg.tagL
10332
9809
  }
10333
9810
  //#endregion
10334
9811
  //#region src/lib/markdown/markdownToPlainText.ts
10335
- var gg = new Uu({ html: !0 }), _g = {
9812
+ var ah = new Uu({ html: !0 }), oh = {
10336
9813
  "&amp;": "&",
10337
9814
  "&lt;": "<",
10338
9815
  "&gt;": ">",
10339
9816
  "&quot;": "\"",
10340
9817
  "&#39;": "'"
10341
- }, vg = /<\/(?:p|div|h[1-6]|li|blockquote|td|th|tr)>|<(?:br|hr)\s*\/?>/g, yg = /<(?:"[^"]*"|'[^']*'|[^'">])*>/g, bg = /&(?:amp|lt|gt|quot|#39);/g, xg = /\s+/g, Sg = /\s*\S*$/;
10342
- function Cg(e, t = {}) {
10343
- let n = gg.render(e == null ? "" : e).replace(vg, " ").replace(yg, "").replace(bg, (e) => _g[e]).replace(xg, " ").trim(), { maxLength: r } = t;
9818
+ }, sh = /<\/(?:p|div|h[1-6]|li|blockquote|td|th|tr)>|<(?:br|hr)\s*\/?>/g, ch = /<(?:"[^"]*"|'[^']*'|[^'">])*>/g, lh = /&(?:amp|lt|gt|quot|#39);/g, uh = /\s+/g, dh = /\s*\S*$/;
9819
+ function fh(e, t = {}) {
9820
+ let n = ah.render(e == null ? "" : e).replace(sh, " ").replace(ch, "").replace(lh, (e) => oh[e]).replace(uh, " ").trim(), { maxLength: r } = t;
10344
9821
  if (r === void 0) return n;
10345
9822
  if (!Number.isInteger(r) || r < 0) throw TypeError("markdownToPlainText: maxLength must be a non-negative integer");
10346
- return r === 0 ? "" : n.length <= r ? n : `${n.slice(0, r - 1).replace(Sg, "")}…`;
9823
+ return r === 0 ? "" : n.length <= r ? n : `${n.slice(0, r - 1).replace(dh, "")}…`;
10347
9824
  }
10348
9825
  //#endregion
10349
9826
  //#region src/index.ts
10350
- var $ = [
9827
+ var ph = [
10351
9828
  "get",
10352
9829
  "put",
10353
9830
  "post",
@@ -10356,20 +9833,20 @@ var $ = [
10356
9833
  "head",
10357
9834
  "patch",
10358
9835
  "trace"
10359
- ], wg = [
9836
+ ], mh = [
10360
9837
  "string",
10361
9838
  "number",
10362
9839
  "integer",
10363
9840
  "boolean",
10364
9841
  "null"
10365
- ], Tg = Qh;
9842
+ ], hh = Vm;
10366
9843
  //#endregion
10367
9844
  //#region src/lib/parser/generateCodeSamples.ts
10368
- async function Eg(e) {
9845
+ async function gh(e) {
10369
9846
  var t;
10370
9847
  if (!(e != null && e.paths)) return e;
10371
9848
  let n = uo(((t = e.servers) == null || (t = t[0]) == null ? void 0 : t.url) || "");
10372
- for (let [t, a] of Object.entries(e.paths)) for (let e of $) {
9849
+ for (let [t, a] of Object.entries(e.paths)) for (let e of ph) {
10373
9850
  var r, i;
10374
9851
  let o = a[e];
10375
9852
  if (!o) continue;
@@ -10403,25 +9880,25 @@ async function Eg(e) {
10403
9880
  }
10404
9881
  //#endregion
10405
9882
  //#region src/lib/parser/generateMissingOperationIds.ts
10406
- var Dg = /\//g;
10407
- function Og(e) {
9883
+ var _h = /\//g;
9884
+ function vh(e) {
10408
9885
  e.paths = e.paths || {};
10409
9886
  for (let t of Object.keys(e.paths)) {
10410
9887
  let n = e.paths[t];
10411
- for (let e of $) {
9888
+ for (let e of ph) {
10412
9889
  let r = n[e];
10413
- r && (r.operationId || (r.operationId = `${e}${t.replace(Dg, "-")}`));
9890
+ r && (r.operationId || (r.operationId = `${e}${t.replace(_h, "-")}`));
10414
9891
  }
10415
9892
  }
10416
9893
  return e;
10417
9894
  }
10418
9895
  //#endregion
10419
9896
  //#region src/lib/parser/generateMissingSummary.ts
10420
- function kg(e) {
9897
+ function yh(e) {
10421
9898
  e.paths = e.paths || {};
10422
9899
  for (let t of Object.keys(e.paths)) {
10423
9900
  let n = e.paths[t];
10424
- for (let e of $) {
9901
+ for (let e of ph) {
10425
9902
  let r = n[e];
10426
9903
  r && (r.summary || (r.summary = `${e.toUpperCase()} ${t}`));
10427
9904
  }
@@ -10430,10 +9907,10 @@ function kg(e) {
10430
9907
  }
10431
9908
  //#endregion
10432
9909
  //#region src/lib/parser/generateMissingTags.ts
10433
- function Ag({ spec: e, defaultTag: t = "Default", defaultTagDescription: n = "" }) {
9910
+ function bh({ spec: e, defaultTag: t = "Default", defaultTagDescription: n = "" }) {
10434
9911
  let r = /* @__PURE__ */ new Set();
10435
9912
  e.paths = e.paths || {};
10436
- for (let [, n] of Object.entries(e.paths)) for (let e of $) {
9913
+ for (let [, n] of Object.entries(e.paths)) for (let e of ph) {
10437
9914
  if (!n || !n[e]) continue;
10438
9915
  let i = n[e], a = i.tags || [t];
10439
9916
  i.tags = a, a.forEach((e) => r.add(e));
@@ -10445,55 +9922,55 @@ function Ag({ spec: e, defaultTag: t = "Default", defaultTagDescription: n = ""
10445
9922
  }
10446
9923
  //#endregion
10447
9924
  //#region src/lib/examples/getSchemaUiJson.ts
10448
- function jg(e, t = !1) {
10449
- return Mg(e, t);
9925
+ function xh(e, t = !1) {
9926
+ return Sh(e, t);
10450
9927
  }
10451
- function Mg(e, t) {
10452
- return Array.isArray(e) ? e.map((e) => Ng(e, t)) : Ng(e, t);
9928
+ function Sh(e, t) {
9929
+ return Array.isArray(e) ? e.map((e) => Ch(e, t)) : Ch(e, t);
10453
9930
  }
10454
- function Ng(e, t) {
9931
+ function Ch(e, t) {
10455
9932
  var n, r, i;
10456
9933
  if ((n = e.meta) != null && n.isCircularReference) return "[Circular Reference]";
10457
- if ((r = e.meta) != null && r.isConstant) return Lg(e);
10458
- if (zg(e, "array")) return Pg(e, t);
10459
- if (Bg(e)) return Ig(e, t);
10460
- if (Vg(e)) {
9934
+ if ((r = e.meta) != null && r.isConstant) return Dh(e);
9935
+ if (kh(e, "array")) return wh(e, t);
9936
+ if (Ah(e)) return Eh(e, t);
9937
+ if (jh(e)) {
10461
9938
  var a;
10462
- return Ig({
9939
+ return Eh({
10463
9940
  ...e,
10464
9941
  types: [(a = e.types.find((e) => e !== "null")) == null ? "null" : a]
10465
9942
  }, t);
10466
9943
  }
10467
- return Gg(e) ? Kg(e, t) : Hg(e, "object") ? Fg(e.properties || [], t) : Rg((i = e.types[0]) == null ? "string" : i, e.defaultValue);
9944
+ return Fh(e) ? Ih(e, t) : Mh(e, "object") ? Th(e.properties || [], t) : Oh((i = e.types[0]) == null ? "string" : i, e.defaultValue);
10468
9945
  }
10469
- function Pg(e, t) {
9946
+ function wh(e, t) {
10470
9947
  var n;
10471
- if (Gg(e)) return [Kg(e, t)];
10472
- if ((n = e.meta) != null && n.hasPrefixItems && e.properties && Array.isArray(e.properties)) return e.properties.map((e) => Ng(e, t));
10473
- if (e.properties && Array.isArray(e.properties)) return [Fg(e.properties, t)];
9948
+ if (Fh(e)) return [Ih(e, t)];
9949
+ if ((n = e.meta) != null && n.hasPrefixItems && e.properties && Array.isArray(e.properties)) return e.properties.map((e) => Ch(e, t));
9950
+ if (e.properties && Array.isArray(e.properties)) return [Th(e.properties, t)];
10474
9951
  if (e.subtype) {
10475
9952
  var r;
10476
- return e.subtype === "object" && e.properties ? [Fg(e.properties, t)] : t ? [(r = oo(e)) == null ? Rg(e.subtype, e.defaultValue) : r] : [Rg(e.subtype, e.defaultValue)];
9953
+ return e.subtype === "object" && e.properties ? [Th(e.properties, t)] : t ? [(r = oo(e)) == null ? Oh(e.subtype, e.defaultValue) : r] : [Oh(e.subtype, e.defaultValue)];
10477
9954
  }
10478
9955
  return [];
10479
9956
  }
10480
- function Fg(e, t) {
10481
- return e.reduce((e, n) => (zg(n, "array") ? e[n.name] = Pg(n, t) : e[n.name] = Ng(n, t), e), {});
9957
+ function Th(e, t) {
9958
+ return e.reduce((e, n) => (kh(n, "array") ? e[n.name] = wh(n, t) : e[n.name] = Ch(n, t), e), {});
10482
9959
  }
10483
- function Ig(e, t) {
9960
+ function Eh(e, t) {
10484
9961
  var n, r;
10485
9962
  if (t) {
10486
9963
  let t = oo(e);
10487
9964
  if (t != null) return t;
10488
9965
  }
10489
- return ((n = e.constraints) == null ? void 0 : n.format) === "binary" ? "" : Rg((r = e.types[0]) == null ? "string" : r, e.defaultValue);
9966
+ return ((n = e.constraints) == null ? void 0 : n.format) === "binary" ? "" : Oh((r = e.types[0]) == null ? "string" : r, e.defaultValue);
10490
9967
  }
10491
- function Lg(e) {
9968
+ function Dh(e) {
10492
9969
  var t;
10493
9970
  let n = oo(e);
10494
- return n == null ? Rg((t = e.types[0]) == null ? "string" : t, e.defaultValue) : n;
9971
+ return n == null ? Oh((t = e.types[0]) == null ? "string" : t, e.defaultValue) : n;
10495
9972
  }
10496
- function Rg(e, t) {
9973
+ function Oh(e, t) {
10497
9974
  if (t !== void 0) return t;
10498
9975
  switch (e) {
10499
9976
  case "string": return "string";
@@ -10507,41 +9984,41 @@ function Rg(e, t) {
10507
9984
  default: return;
10508
9985
  }
10509
9986
  }
10510
- function zg(e, t) {
9987
+ function kh(e, t) {
10511
9988
  var n;
10512
9989
  return ((n = e.types) == null ? void 0 : n.length) === 1 && e.types[0] === t;
10513
9990
  }
10514
- function Bg(e) {
9991
+ function Ah(e) {
10515
9992
  var t;
10516
- return ((t = e.types) == null ? void 0 : t.length) === 1 && e.types[0] != null && wg.includes(e.types[0]);
9993
+ return ((t = e.types) == null ? void 0 : t.length) === 1 && e.types[0] != null && mh.includes(e.types[0]);
10517
9994
  }
10518
- function Vg(e) {
9995
+ function jh(e) {
10519
9996
  var t;
10520
- return (t = e.types) == null ? void 0 : t.every((e) => e && wg.includes(e));
9997
+ return (t = e.types) == null ? void 0 : t.every((e) => e && mh.includes(e));
10521
9998
  }
10522
- function Hg(e, t) {
9999
+ function Mh(e, t) {
10523
10000
  var n, r;
10524
10001
  return (n = (r = e.types) == null ? void 0 : r.includes(t)) != null && n;
10525
10002
  }
10526
- function Ug(e) {
10003
+ function Nh(e) {
10527
10004
  var t;
10528
10005
  return !!((t = e.meta) != null && t.isOneOf) && Array.isArray(e.properties);
10529
10006
  }
10530
- function Wg(e) {
10007
+ function Ph(e) {
10531
10008
  var t;
10532
10009
  return !!((t = e.meta) != null && t.isAnyOf) && Array.isArray(e.properties);
10533
10010
  }
10534
- function Gg(e) {
10535
- return Ug(e) || Wg(e);
10011
+ function Fh(e) {
10012
+ return Nh(e) || Ph(e);
10536
10013
  }
10537
- function Kg(e, t) {
10538
- if (e.properties && e.properties.length > 0) return Ng(e.properties[0], t);
10014
+ function Ih(e, t) {
10015
+ if (e.properties && e.properties.length > 0) return Ch(e.properties[0], t);
10539
10016
  var n;
10540
- return t ? oo(e) : Rg((n = e.types[0]) == null ? "string" : n, e.defaultValue);
10017
+ return t ? oo(e) : Oh((n = e.types[0]) == null ? "string" : n, e.defaultValue);
10541
10018
  }
10542
10019
  //#endregion
10543
10020
  //#region node_modules/.pnpm/json-xml-parse@1.3.0/node_modules/json-xml-parse/lib/constants.js
10544
- var qg = /* @__PURE__ */ ne(((e) => {
10021
+ var Lh = /* @__PURE__ */ ne(((e) => {
10545
10022
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DEFAULTS = e.TAGS = void 0, e.TAGS = {
10546
10023
  OPENING: "OPENING",
10547
10024
  CLOSING: "CLOSING",
@@ -10585,13 +10062,13 @@ var qg = /* @__PURE__ */ ne(((e) => {
10585
10062
  return [];
10586
10063
  }
10587
10064
  };
10588
- })), Jg = /* @__PURE__ */ ne(((e) => {
10065
+ })), Rh = /* @__PURE__ */ ne(((e) => {
10589
10066
  Object.defineProperty(e, "__esModule", { value: !0 }), e.objIsEmpty = e.keyExists = e.isUndef = e.isArr = e.isStr = e.isFunc = e.isObj = void 0;
10590
10067
  var t = "{}", n = "[]";
10591
10068
  e.isObj = (e) => !!e && typeof e == "object", e.isFunc = (e) => typeof e == "function", e.isStr = (e) => typeof e == "string", e.isArr = (e) => Array.isArray(e), e.isUndef = (e) => e === void 0, e.keyExists = (t, n) => (0, e.isObj)(t) && n in t, e.objIsEmpty = (r) => (0, e.isObj)(r) && [t, n].includes(JSON.stringify(r));
10592
- })), Yg = /* @__PURE__ */ ne(((e) => {
10069
+ })), zh = /* @__PURE__ */ ne(((e) => {
10593
10070
  Object.defineProperty(e, "__esModule", { value: !0 }), e.setDeclaration = e.setAttributes = e.setStringVal = e.createTag = e.checkChildTags = e.createEntityHandler = e.beautify = void 0;
10594
- var t = qg(), n = Jg();
10071
+ var t = Lh(), n = Rh();
10595
10072
  e.beautify = (e, n = t.DEFAULTS.LEVEL.INIT, r = t.DEFAULTS.BEAUTIFY.ENABLE) => {
10596
10073
  let i = e;
10597
10074
  if (!r) return t.DEFAULTS.EMPTY_STR;
@@ -10624,9 +10101,9 @@ var qg = /* @__PURE__ */ ne(((e) => {
10624
10101
  let o = Object.assign({}, (0, n.isObj)(r) ? r : t.DEFAULTS.DECLARATION);
10625
10102
  return `<?xml${(0, e.setAttributes)(o, i)}?>${(0, e.beautify)(t.DEFAULTS.NEW_LINE, t.DEFAULTS.LEVEL.INIT, a)}`;
10626
10103
  };
10627
- })), Xg = /* @__PURE__ */ ne(((e) => {
10104
+ })), Bh = /* @__PURE__ */ ne(((e) => {
10628
10105
  Object.defineProperty(e, "__esModule", { value: !0 });
10629
- var t = Yg(), n = Jg(), r = qg();
10106
+ var t = zh(), n = Rh(), r = Lh();
10630
10107
  e.default = (e = r.DEFAULTS.EMPTY_OBJ, i = r.DEFAULTS.EMPTY_OBJ) => {
10631
10108
  let a = (i == null ? void 0 : i.attrKey) || r.DEFAULTS.ATTR_KEY, o = (i == null ? void 0 : i.contentKey) || r.DEFAULTS.CONTENT_KEY, s = (0, t.createEntityHandler)(Object.assign({}, (0, n.isObj)(i == null ? void 0 : i.entityMap) ? i == null ? void 0 : i.entityMap : r.DEFAULTS.ENTITY_MAP)), c = (0, t.setDeclaration)(i == null ? void 0 : i.declaration, s, i == null ? void 0 : i.beautify), l = (e, u, d) => {
10632
10109
  var f;
@@ -10662,12 +10139,12 @@ var qg = /* @__PURE__ */ ne(((e) => {
10662
10139
  l(t, e[t], r.DEFAULTS.LEVEL.INIT);
10663
10140
  }), c))(e);
10664
10141
  };
10665
- })), Zg = /* @__PURE__ */ ne(((e) => {
10142
+ })), Vh = /* @__PURE__ */ ne(((e) => {
10666
10143
  var t = e && e.__importDefault || function(e) {
10667
10144
  return e && e.__esModule ? e : { default: e };
10668
10145
  };
10669
- Object.defineProperty(e, "__esModule", { value: !0 }), e.toXmlString = void 0, e.toXmlString = t(Xg()).default;
10670
- })), Qg = (/* @__PURE__ */ ne(((e) => {
10146
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.toXmlString = void 0, e.toXmlString = t(Bh()).default;
10147
+ })), Hh = (/* @__PURE__ */ ne(((e) => {
10671
10148
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
10672
10149
  r === void 0 && (r = n);
10673
10150
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -10692,33 +10169,33 @@ var qg = /* @__PURE__ */ ne(((e) => {
10692
10169
  if (e != null) for (var i in e) i !== "default" && Object.prototype.hasOwnProperty.call(e, i) && t(r, e, i);
10693
10170
  return n(r, e), r;
10694
10171
  };
10695
- Object.defineProperty(e, "__esModule", { value: !0 }), e.jsXml = void 0, e.jsXml = r(Zg());
10172
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.jsXml = void 0, e.jsXml = r(Vh());
10696
10173
  })))();
10697
- function $g(e, t = !1) {
10698
- let n = jg(e, t);
10699
- return Qg.jsXml.toXmlString(n);
10174
+ function Uh(e, t = !1) {
10175
+ let n = xh(e, t);
10176
+ return Hh.jsXml.toXmlString(n);
10700
10177
  }
10701
10178
  //#endregion
10702
10179
  //#region src/lib/examples/getSchemaExample.ts
10703
- function e_(e) {
10180
+ function Wh(e) {
10704
10181
  return Ya(e) ? {
10705
10182
  key: "XML",
10706
10183
  summary: "XML",
10707
- valueGenerator: $g,
10184
+ valueGenerator: Uh,
10708
10185
  lang: "xml"
10709
10186
  } : {
10710
10187
  key: "JSON",
10711
10188
  summary: "JSON",
10712
- valueGenerator: jg,
10189
+ valueGenerator: xh,
10713
10190
  lang: "json",
10714
10191
  hideOnSchemaTabs: Xa(e) || Za(e) || $a(e)
10715
10192
  };
10716
10193
  }
10717
- function t_(e, t, n = !1) {
10718
- let r = e_(e);
10719
- return { [r.key]: n_(r, t, n) };
10194
+ function Gh(e, t, n = !1) {
10195
+ let r = Wh(e);
10196
+ return { [r.key]: Kh(r, t, n) };
10720
10197
  }
10721
- function n_(e, t, n = !1) {
10198
+ function Kh(e, t, n = !1) {
10722
10199
  var r, i;
10723
10200
  return {
10724
10201
  summary: e.summary,
@@ -10731,13 +10208,13 @@ function n_(e, t, n = !1) {
10731
10208
  }
10732
10209
  //#endregion
10733
10210
  //#region src/lib/examples/getPropertyExamples.ts
10734
- function r_(e) {
10211
+ function qh(e) {
10735
10212
  var t, n;
10736
10213
  return (e == null ? void 0 : e.examples) === void 0 ? (e == null || (t = e.schema) == null ? void 0 : t.examples) === void 0 ? (e == null ? void 0 : e.example) === void 0 ? (e == null ? void 0 : e.subexamples) === void 0 ? (e == null || (n = e.schema) == null ? void 0 : n.example) === void 0 ? (e == null ? void 0 : e.subexample) === void 0 ? null : [e.subexample] : [e.schema.example] : e.subexamples : [e.example] : e.schema.examples : e.examples;
10737
10214
  }
10738
10215
  //#endregion
10739
10216
  //#region src/lib/parser/constraintsParser.ts
10740
- var i_ = [
10217
+ var Jh = [
10741
10218
  "exclusiveMaximum",
10742
10219
  "exclusiveMinimum",
10743
10220
  "format",
@@ -10754,52 +10231,58 @@ var i_ = [
10754
10231
  "uniqueItems",
10755
10232
  "default"
10756
10233
  ];
10757
- function a_(e) {
10758
- return Object.keys(e).some((e) => i_.includes(e));
10234
+ function Yh(e) {
10235
+ return Object.keys(e).some((e) => Jh.includes(e));
10759
10236
  }
10760
- function o_(e) {
10761
- return Object.entries(e).filter(([e]) => i_.includes(e)).reduce((e, [t, n]) => (e[t] = n, e), {});
10237
+ function Xh(e) {
10238
+ return Object.entries(e).filter(([e]) => Jh.includes(e)).reduce((e, [t, n]) => (e[t] = n, e), {});
10762
10239
  }
10763
10240
  //#endregion
10764
10241
  //#region src/lib/parser/resolveCircularRef.ts
10765
- function s_(e) {
10766
- return c_({
10242
+ function Zh(e, t = /* @__PURE__ */ new WeakSet()) {
10243
+ return Qh({
10767
10244
  key: "root",
10768
10245
  value: e,
10769
10246
  parent: null
10770
- }), e;
10247
+ }, /* @__PURE__ */ new Map(), t), e;
10771
10248
  }
10772
- function c_(e) {
10773
- let { value: t } = e;
10774
- if (typeof t != "object" || !t) return;
10775
- let n = l_(e.parent, t);
10776
- if (n) e.parent.value[e.key] = {
10777
- type: "object",
10778
- circularReference: n
10779
- };
10780
- else for (let [n, r] of Object.entries(t)) c_({
10781
- key: n,
10782
- value: r,
10783
- parent: e
10784
- });
10785
- }
10786
- function l_(e, t) {
10787
- let n = t && t[Uh] ? t[Uh] : t;
10788
- for (; e;) {
10789
- let t = e.value;
10790
- if ((t && t[Uh] ? t[Uh] : t) === n) return u_(e);
10791
- e = e.parent;
10249
+ function Qh(e, t, n) {
10250
+ var r;
10251
+ let { value: i } = e;
10252
+ if (typeof i != "object" || !i) return;
10253
+ let a = (r = i[jm]) == null ? i : r, o = t.get(a);
10254
+ if (o) {
10255
+ e.parent.value[e.key] = {
10256
+ type: "object",
10257
+ circularReference: $h(o)
10258
+ };
10259
+ return;
10260
+ }
10261
+ if (!n.has(i)) {
10262
+ t.set(a, e);
10263
+ for (let [r, a] of Object.entries(i)) Qh({
10264
+ key: r,
10265
+ value: a,
10266
+ parent: e
10267
+ }, t, n);
10268
+ t.delete(a), n.add(i);
10792
10269
  }
10793
- return null;
10794
10270
  }
10795
- function u_(e) {
10796
- return e ? `${u_(e.parent)}/${e.key}` : "";
10271
+ function $h(e) {
10272
+ return e ? `${$h(e.parent)}/${e.key}` : "";
10797
10273
  }
10798
10274
  //#endregion
10799
10275
  //#region src/lib/parser/getSchemaUi.ts
10800
- var d_ = class e {
10276
+ var eg = class {
10277
+ constructor() {
10278
+ T(this, "walked", /* @__PURE__ */ new WeakSet()), T(this, "ui", /* @__PURE__ */ new WeakMap());
10279
+ }
10280
+ }, tg = class e {
10281
+ constructor(e) {
10282
+ T(this, "memo", void 0), this.memo = e;
10283
+ }
10801
10284
  static createBaseProperty(e, t = {}, n = !1) {
10802
- let r = Array.isArray(t.type) ? t.type : [t.type || "string"], i = r_(t), a = {
10285
+ let r = Array.isArray(t.type) ? t.type : [t.type || "string"], i = qh(t), a = {
10803
10286
  name: e,
10804
10287
  types: r,
10805
10288
  required: n,
@@ -10813,7 +10296,7 @@ var d_ = class e {
10813
10296
  return t.const !== void 0 && (a.meta = {
10814
10297
  ...a.meta || {},
10815
10298
  isConstant: !0
10816
- }), a_(t) && (a.constraints = o_(t)), Object.keys(t).forEach((e) => {
10299
+ }), Yh(t) && (a.constraints = Xh(t)), Object.keys(t).forEach((e) => {
10817
10300
  e.startsWith("x-") && (a.meta = a.meta || {}, a.meta.extra = a.meta.extra || {}, a.meta.extra[e] = t[e]);
10818
10301
  }), a;
10819
10302
  }
@@ -10826,144 +10309,152 @@ var d_ = class e {
10826
10309
  meta: { isCircularReference: !0 }
10827
10310
  };
10828
10311
  }
10829
- static createUnionProperty(t, n, r = "", i = {}, a = !1) {
10830
- let o = e.createBaseProperty(r, i, a), s = [...new Set(t.map((e) => m_(e)).filter(Boolean))];
10312
+ createUnionProperty(t, n, r = "", i = {}, a = !1) {
10313
+ let o = e.createBaseProperty(r, i, a), s = [...new Set(t.map((e) => ig(e)).filter(Boolean))];
10831
10314
  s.length > 0 && (o.types = s);
10832
10315
  let c = n === "oneOf", l = c ? "isOneOfItem" : "isAnyOfItem", u = c ? "isOneOf" : "isAnyOf";
10833
- return o.properties = t.map((t) => {
10834
- let n = e.schemaToUiProperty("", t);
10835
- return n.meta = {
10836
- ...n.meta || {},
10316
+ return o.properties = t.map((e) => {
10317
+ let t = this.schemaToUiProperty("", e);
10318
+ return t.meta = {
10319
+ ...t.meta || {},
10837
10320
  [l]: !0
10838
- }, n;
10321
+ }, t;
10839
10322
  }), o.meta = {
10840
10323
  ...o.meta || {},
10841
10324
  [u]: !0
10842
10325
  }, o;
10843
10326
  }
10844
- static createOneOfProperty(t, n = "", r = {}, i = !1) {
10845
- return e.createUnionProperty(t, "oneOf", n, r, i);
10327
+ createOneOfProperty(e, t = "", n = {}, r = !1) {
10328
+ return this.createUnionProperty(e, "oneOf", t, n, r);
10846
10329
  }
10847
- static createAnyOfProperty(t, n = "", r = {}, i = !1) {
10848
- return e.createUnionProperty(t, "anyOf", n, r, i);
10330
+ createAnyOfProperty(e, t = "", n = {}, r = !1) {
10331
+ return this.createUnionProperty(e, "anyOf", t, n, r);
10849
10332
  }
10850
- static schemaToUiProperty(t, n, r = !1) {
10333
+ schemaToUiProperty(t, n, r = !1) {
10851
10334
  if (!n || Object.keys(n).length === 0) return {
10852
10335
  name: t,
10853
10336
  types: [],
10854
10337
  required: r
10855
10338
  };
10856
10339
  if (n.circularReference) return e.createCircularReferenceProperty(t, n.circularReference);
10857
- if (n.oneOf) return e.createOneOfProperty(n.oneOf, t, n, r);
10858
- if (n.anyOf) return e.createAnyOfProperty(n.anyOf, t, n, r);
10859
- if (n.const !== void 0) {
10860
- let i = e.createBaseProperty(t, n, r), a = m_(n);
10340
+ let i = this.memo.get(n);
10341
+ return i || (i = this.buildUiProperty(n), this.memo.set(n, i)), {
10342
+ ...i,
10343
+ name: t,
10344
+ required: r
10345
+ };
10346
+ }
10347
+ buildUiProperty(t, n = "", r = !1) {
10348
+ if (t.oneOf) return this.createOneOfProperty(t.oneOf, n, t, r);
10349
+ if (t.anyOf) return this.createAnyOfProperty(t.anyOf, n, t, r);
10350
+ if (t.const !== void 0) {
10351
+ let i = e.createBaseProperty(n, t, r), a = ig(t);
10861
10352
  a && (i.types = [a]);
10862
- let o = r_(n) || n.const;
10353
+ let o = qh(t) || t.const;
10863
10354
  return o !== void 0 && (i.examples = Array.isArray(o) ? o : [o]), i.meta = {
10864
10355
  ...i.meta || {},
10865
10356
  isConstant: !0
10866
10357
  }, i;
10867
10358
  }
10868
- if (n.enum) {
10359
+ if (t.enum) {
10869
10360
  let i = [];
10870
- i = n.type ? Array.isArray(n.type) ? n.type : [n.type] : p_(n.enum), i.length === 0 && (i = ["string"]);
10871
- let a = e.createBaseProperty(t, n, r);
10872
- return a.enum = n.enum, a.types = i, a;
10873
- }
10874
- let i = e.createBaseProperty(t, n, r);
10875
- if (Array.isArray(n.type) ? n.type.includes("array") : n.type === "array") {
10876
- if (n.items) {
10877
- let t = m_(n.items);
10878
- i.properties = t === "object" ? e.extractProperties(n.items.properties, n.items.required || [], n.items.additionalProperties, n.items["x-additionalPropertiesName"]) : void 0, t !== void 0 && (i.subtype = t);
10879
- let r = r_(n.items);
10880
- if (r && (i.subexamples = r), n.items.const !== void 0 && (i.meta = {
10361
+ i = t.type ? Array.isArray(t.type) ? t.type : [t.type] : rg(t.enum), i.length === 0 && (i = ["string"]);
10362
+ let a = e.createBaseProperty(n, t, r);
10363
+ return a.enum = t.enum, a.types = i, a;
10364
+ }
10365
+ let i = e.createBaseProperty(n, t, r);
10366
+ if (Array.isArray(t.type) ? t.type.includes("array") : t.type === "array") {
10367
+ if (t.items) {
10368
+ let e = ig(t.items);
10369
+ i.properties = e === "object" ? this.extractProperties(t.items.properties, t.items.required || [], t.items.additionalProperties, t.items["x-additionalPropertiesName"]) : void 0, e !== void 0 && (i.subtype = e);
10370
+ let n = qh(t.items);
10371
+ if (n && (i.subexamples = n), t.items.const !== void 0 && (i.meta = {
10881
10372
  ...i.meta || {},
10882
10373
  isConstant: !0
10883
- }), n.items.oneOf || n.items.anyOf) {
10884
- let t = !!n.items.oneOf, r = t ? n.items.oneOf : n.items.anyOf, a = t ? "isOneOf" : "isAnyOf", o = t ? "isOneOfItem" : "isAnyOfItem";
10374
+ }), t.items.oneOf || t.items.anyOf) {
10375
+ let e = !!t.items.oneOf, n = e ? t.items.oneOf : t.items.anyOf, r = e ? "isOneOf" : "isAnyOf", a = e ? "isOneOfItem" : "isAnyOfItem";
10885
10376
  i.meta = {
10886
10377
  ...i.meta || {},
10887
- [a]: !0
10888
- }, i.properties = r.map((t) => {
10889
- let r = {
10890
- ...t,
10891
- type: n.items.type
10378
+ [r]: !0
10379
+ }, i.properties = n.map((e) => {
10380
+ let n = {
10381
+ ...e,
10382
+ type: t.items.type
10892
10383
  };
10893
10384
  return {
10894
- ...e.schemaToUiProperty("", r),
10385
+ ...this.schemaToUiProperty("", n),
10895
10386
  meta: {
10896
- ...t.meta || {},
10897
- [o]: !0
10387
+ ...e.meta || {},
10388
+ [a]: !0
10898
10389
  }
10899
10390
  };
10900
10391
  });
10901
10392
  }
10902
- if (t !== "object" && t !== "array" && !n.items.oneOf && !n.items.anyOf) {
10903
- let t = e.schemaToUiProperty("[item]", n.items);
10904
- (t.description || t.enum || t.constraints || t.docs) && (i.items = t);
10393
+ if (e !== "object" && e !== "array" && !t.items.oneOf && !t.items.anyOf) {
10394
+ let e = this.schemaToUiProperty("[item]", t.items);
10395
+ (e.description || e.enum || e.constraints || e.docs) && (i.items = e);
10905
10396
  }
10906
10397
  }
10907
- if (n.prefixItems && Array.isArray(n.prefixItems) && (i.properties = n.prefixItems.map((t, n) => {
10908
- let r = e.schemaToUiProperty(`[${n}]`, t, !1);
10909
- return r.meta = {
10910
- ...r.meta || {},
10398
+ if (t.prefixItems && Array.isArray(t.prefixItems) && (i.properties = t.prefixItems.map((e, t) => {
10399
+ let n = this.schemaToUiProperty(`[${t}]`, e, !1);
10400
+ return n.meta = {
10401
+ ...n.meta || {},
10911
10402
  isPrefixItem: !0,
10912
- prefixItemIndex: n
10913
- }, r;
10403
+ prefixItemIndex: t
10404
+ }, n;
10914
10405
  }), i.meta = {
10915
10406
  ...i.meta || {},
10916
10407
  hasPrefixItems: !0
10917
- }), n.prefixItems && Array.isArray(n.prefixItems) && n.items) {
10918
- let t = e.schemaToUiProperty("[n+]", n.items, !1);
10919
- t.meta = {
10920
- ...t.meta || {},
10408
+ }), t.prefixItems && Array.isArray(t.prefixItems) && t.items) {
10409
+ let e = this.schemaToUiProperty("[n+]", t.items, !1);
10410
+ e.meta = {
10411
+ ...e.meta || {},
10921
10412
  isAdditionalItems: !0
10922
- }, i.properties = [...i.properties || [], t], i.subtype = void 0;
10413
+ }, i.properties = [...i.properties || [], e], i.subtype = void 0;
10923
10414
  }
10924
- } else (Array.isArray(n.type) ? n.type.includes("object") : n.type === "object") ? i.properties = e.extractProperties(n.properties, n.required || [], n.additionalProperties, n["x-additionalPropertiesName"]) : n.type === void 0 && (n.properties || n.additionalProperties) && (i.types = ["object"], i.properties = e.extractProperties(n.properties, n.required || [], n.additionalProperties, n["x-additionalPropertiesName"]));
10415
+ } else (Array.isArray(t.type) ? t.type.includes("object") : t.type === "object") ? i.properties = this.extractProperties(t.properties, t.required || [], t.additionalProperties, t["x-additionalPropertiesName"]) : t.type === void 0 && (t.properties || t.additionalProperties) && (i.types = ["object"], i.properties = this.extractProperties(t.properties, t.required || [], t.additionalProperties, t["x-additionalPropertiesName"]));
10925
10416
  return i;
10926
10417
  }
10927
- static extractProperties(t, n = [], r, i) {
10928
- let a = [];
10929
- if (t && Object.entries(t).forEach(([t, r]) => {
10930
- let i = n.includes(t);
10931
- a.push(e.schemaToUiProperty(t, r, i));
10932
- }), r) {
10933
- let t = typeof r == "object" ? r : { type: "string" }, n = i || "additionalProperties", o = e.schemaToUiProperty(n, t);
10934
- o.required = !1, o.meta = {
10935
- ...o.meta || {},
10418
+ extractProperties(e, t = [], n, r) {
10419
+ let i = [];
10420
+ if (e && Object.entries(e).forEach(([e, n]) => {
10421
+ let r = t.includes(e);
10422
+ i.push(this.schemaToUiProperty(e, n, r));
10423
+ }), n) {
10424
+ let e = typeof n == "object" ? n : { type: "string" }, t = r || "additionalProperties", a = this.schemaToUiProperty(t, e);
10425
+ a.required = !1, a.meta = {
10426
+ ...a.meta || {},
10936
10427
  isAdditionalProperties: !0
10937
- }, a.push(o);
10428
+ }, i.push(a);
10938
10429
  }
10939
- return a;
10430
+ return i;
10940
10431
  }
10941
10432
  };
10942
- function f_(e) {
10433
+ function ng(e, t = new eg()) {
10943
10434
  if (!e || Object.keys(e).length === 0) return [];
10944
- let t = s_(e);
10945
- return d_.schemaToUiProperty("", t);
10435
+ let n = Zh(e, t.walked);
10436
+ return new tg(t.ui).schemaToUiProperty("", n);
10946
10437
  }
10947
- function p_(e) {
10438
+ function rg(e) {
10948
10439
  let t = /* @__PURE__ */ new Set();
10949
10440
  return e.forEach((e) => {
10950
10441
  e === null ? t.add("null") : Array.isArray(e) ? t.add("array") : typeof e == "object" ? t.add("object") : typeof e == "string" ? t.add("string") : typeof e == "boolean" ? t.add("boolean") : typeof e == "number" && t.add(Number.isInteger(e) ? "integer" : "number");
10951
10442
  }), t.has("number") && t.delete("integer"), [...t];
10952
10443
  }
10953
- function m_(e) {
10444
+ function ig(e) {
10954
10445
  return !e.type && e.properties ? "object" : !e.type && e.items ? "array" : !e.type && e.const !== void 0 ? Array.isArray(e.const) ? "array" : typeof e.const == "object" && e.const !== null ? "object" : typeof e.const == "string" ? "string" : typeof e.const == "number" ? "number" : typeof e.const == "boolean" ? "boolean" : "null" : e.type;
10955
10446
  }
10956
10447
  //#endregion
10957
10448
  //#region src/lib/parser/generateRequestBodyUi.ts
10958
- function h_(e) {
10449
+ function ag(e, t = new eg()) {
10959
10450
  if (!e.paths) return e;
10960
- for (let t of Object.values(e.paths)) for (let e of $) {
10961
- let n = t[e];
10962
- if (n && n.requestBody) for (let [e, t] of Object.entries(n.requestBody.content || {})) {
10963
- let n = t;
10964
- n.schema && (n.ui = f_(n.schema), n.examples = {
10965
- ...n.examples || {},
10966
- ...t_(e, n.ui, !0)
10451
+ for (let n of Object.values(e.paths)) for (let e of ph) {
10452
+ let r = n[e];
10453
+ if (r && r.requestBody) for (let [e, n] of Object.entries(r.requestBody.content || {})) {
10454
+ let r = n;
10455
+ r.schema && (r.ui = ng(r.schema, t), r.examples = {
10456
+ ...r.examples || {},
10457
+ ...Gh(e, r.ui, !0)
10967
10458
  });
10968
10459
  }
10969
10460
  }
@@ -10971,15 +10462,15 @@ function h_(e) {
10971
10462
  }
10972
10463
  //#endregion
10973
10464
  //#region src/lib/parser/generateResponseUi.ts
10974
- function g_(e) {
10465
+ function og(e, t = new eg()) {
10975
10466
  if (!e.paths) return e;
10976
- for (let t of Object.values(e.paths)) for (let e of $) {
10977
- let n = t[e];
10978
- if (n && n.responses) for (let e of Object.values(n.responses)) for (let [t, n] of Object.entries(e.content || {})) {
10979
- let e = n;
10980
- e.schema && (e.ui = f_(e.schema), e.examples = {
10467
+ for (let n of Object.values(e.paths)) for (let e of ph) {
10468
+ let r = n[e];
10469
+ if (r && r.responses) for (let e of Object.values(r.responses)) for (let [n, r] of Object.entries(e.content || {})) {
10470
+ let e = r;
10471
+ e.schema && (e.ui = ng(e.schema, t), e.examples = {
10981
10472
  ...e.examples || {},
10982
- ...t_(t, e.ui, !0)
10473
+ ...Gh(n, e.ui, !0)
10983
10474
  });
10984
10475
  }
10985
10476
  }
@@ -10987,60 +10478,628 @@ function g_(e) {
10987
10478
  }
10988
10479
  //#endregion
10989
10480
  //#region src/lib/parser/getSecurityUi.ts
10990
- var __ = "None";
10991
- function v_(e, t) {
10481
+ var sg = "None";
10482
+ function cg(e, t) {
10992
10483
  let n = [];
10993
10484
  return e ? (e.forEach((e) => {
10994
10485
  let r = {
10995
- id: Object.keys(e).length ? Object.keys(e).join("|") : __,
10486
+ id: Object.keys(e).length ? Object.keys(e).join("|") : sg,
10996
10487
  schemes: {}
10997
10488
  };
10998
10489
  Object.keys(e).forEach((e) => {
10999
10490
  t && t[e] && (r.schemes[e] = t[e]);
11000
10491
  }), n.push(r);
11001
- }), n.length === 1 && n[0].id === __ && Object.keys(n[0].schemes).length === 0 ? [] : n) : n;
10492
+ }), n.length === 1 && n[0].id === sg && Object.keys(n[0].schemes).length === 0 ? [] : n) : n;
11002
10493
  }
11003
10494
  //#endregion
11004
10495
  //#region src/lib/parser/generateSecurityUi.ts
11005
- function y_(e) {
10496
+ function lg(e) {
11006
10497
  if (!(e != null && e.paths)) return e;
11007
- for (let i of Object.values(e.paths)) for (let a of $) {
10498
+ for (let i of Object.values(e.paths)) for (let a of ph) {
11008
10499
  var t, n, r;
11009
10500
  let o = i[a];
11010
- o && (o.securityUi = v_((t = (n = o.security) == null ? e.security : n) == null ? [] : t, ((r = e.components) == null ? void 0 : r.securitySchemes) || {}));
10501
+ o && (o.securityUi = cg((t = (n = o.security) == null ? e.security : n) == null ? [] : t, ((r = e.components) == null ? void 0 : r.securitySchemes) || {}));
11011
10502
  }
11012
10503
  return e;
11013
10504
  }
11014
10505
  //#endregion
10506
+ //#region node_modules/.pnpm/allof-merge@0.6.8/node_modules/allof-merge/dist/index.mjs
10507
+ function ug(e, t) {
10508
+ var n = {};
10509
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
10510
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") {
10511
+ var i = 0;
10512
+ for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
10513
+ }
10514
+ return n;
10515
+ }
10516
+ function dg(e, t) {
10517
+ var n = {};
10518
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
10519
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") {
10520
+ var i = 0;
10521
+ for (r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
10522
+ }
10523
+ return n;
10524
+ }
10525
+ var fg = (e = {}, t, n, r) => {
10526
+ let i = `/${t}`, a = typeof e["/**"] == "function" ? e["/**"]({
10527
+ key: t,
10528
+ path: n,
10529
+ value: r
10530
+ }) : e["/**"], o = typeof e["/*"] == "function" ? e["/*"]({
10531
+ key: t,
10532
+ path: n,
10533
+ value: r
10534
+ }) : e["/*"], s = {};
10535
+ if (i in e) s = e[i];
10536
+ else if (!a && !o) return;
10537
+ return s = typeof s == "function" ? s({
10538
+ key: t,
10539
+ path: n,
10540
+ value: r
10541
+ }) : s, o && (s = Object.assign(Object.assign({}, o), s)), a ? Object.assign(Object.assign({ "/**": e["/**"] }, a), s) : s;
10542
+ }, pg = (e) => {
10543
+ let t = {}, n = e.reduce(((e, t) => (Object.keys(t).forEach(((t) => e.add(t))), e)), /* @__PURE__ */ new Set());
10544
+ for (let r of n.keys()) {
10545
+ let n = e.filter(((e) => r in e));
10546
+ if (n.length !== 1) {
10547
+ if (r.charAt(0) !== "/") throw Error(`Cannot merge rules. Duplicate key: ${r}. Rules should not have same Rule key`);
10548
+ t[r] = (e, t) => pg(n.map(((n) => typeof n[r] == "function" ? n[r](e, t) : n[r])));
10549
+ } else t[r] = n[0][r];
10550
+ }
10551
+ return t;
10552
+ }, mg = (e) => typeof e == "object" && !!e, hg = (e) => Array.isArray(e), gg = (e, t, n = {}) => {
10553
+ var r, i;
10554
+ t = hg(t) ? t : [t];
10555
+ let a = hg(n.rules) ? pg(n.rules) : n.rules, o = [{
10556
+ data: e,
10557
+ state: n.state,
10558
+ path: [],
10559
+ keys: [],
10560
+ keyIndex: -1,
10561
+ rules: a
10562
+ }];
10563
+ for (; o.length > 0;) {
10564
+ let e = o[o.length - 1];
10565
+ if (e.keyIndex >= e.keys.length) {
10566
+ for (; (r = e.hooks) != null && r.length;) e.hooks.pop()();
10567
+ o.pop();
10568
+ continue;
10569
+ }
10570
+ let n = e.keys[e.keyIndex++], [s, c, l] = o.length > 1 ? [
10571
+ e.data[n],
10572
+ [...e.path, n],
10573
+ fg(e.rules, n, [...e.path, n], e.data[n])
10574
+ ] : [
10575
+ e.data,
10576
+ e.path,
10577
+ a
10578
+ ], u = {
10579
+ value: s,
10580
+ path: c,
10581
+ key: n,
10582
+ state: e.state,
10583
+ rules: l
10584
+ }, d = [];
10585
+ for (let e of t) {
10586
+ if (!e || typeof e != "function") continue;
10587
+ let t = (i = e(u)) == null ? {} : i, { terminate: n, done: r, exitHook: a } = t, o = dg(t, [
10588
+ "terminate",
10589
+ "done",
10590
+ "exitHook"
10591
+ ]);
10592
+ if (n) return;
10593
+ if (a && d.push(a), u = Object.assign(Object.assign({}, u), o), r) {
10594
+ u = null;
10595
+ break;
10596
+ }
10597
+ }
10598
+ if (u && mg(u.value)) {
10599
+ let e = hg(u.value) ? [...u.value.keys()] : Object.keys(u.value);
10600
+ o.push({
10601
+ hooks: d,
10602
+ state: u.state,
10603
+ data: u.value,
10604
+ path: c,
10605
+ keys: e,
10606
+ keyIndex: 0,
10607
+ rules: u.rules
10608
+ });
10609
+ } else for (; d.length;) d.pop()();
10610
+ }
10611
+ }, _g = () => {
10612
+ let e = /* @__PURE__ */ new WeakMap(), t;
10613
+ return [({ value: e }) => {
10614
+ t = e;
10615
+ }, ({ value: n, path: r, key: i, state: a }) => {
10616
+ if (i = r.length ? i : "#", mg(t) && mg(n)) {
10617
+ if (e.has(t)) return a.node[i] = e.get(t), { done: !0 };
10618
+ let r = Array.isArray(n) ? [] : {};
10619
+ a.node[i] = r, e.set(t, r);
10620
+ } else a.node[i] = n;
10621
+ return {
10622
+ value: n,
10623
+ state: Object.assign(Object.assign({}, a), { node: a.node[i] })
10624
+ };
10625
+ }];
10626
+ }, vg = class extends Map {
10627
+ add(e, t) {
10628
+ let n = this.get(e);
10629
+ return n ? n.push(t) : this.set(e, [t]), this;
10630
+ }
10631
+ }, yg = (e, t) => {
10632
+ let n = {};
10633
+ for (let r of t) r in e && (n[r] = e[r], delete e[r]);
10634
+ return n;
10635
+ }, bg = (e, t) => {
10636
+ if (Array.isArray(e) && Array.isArray(t)) return [...e, ...t];
10637
+ if (mg(e) && mg(t)) {
10638
+ let n = Object.assign({}, e);
10639
+ for (let e of Object.keys(t)) n[e] = bg(n[e], t[e]);
10640
+ return n;
10641
+ }
10642
+ return t;
10643
+ }, xg = (e) => e && e.$ref && typeof e.$ref == "string", Sg = (e) => e && e.anyOf && Array.isArray(e.anyOf), Cg = (e) => e && e.oneOf && Array.isArray(e.oneOf), wg = (e, t = "") => {
10644
+ let [n = t, r] = e.split("#"), i = r && r !== "/" ? r : "";
10645
+ return {
10646
+ filePath: n,
10647
+ pointer: i,
10648
+ normalized: Tg(n, i),
10649
+ jsonPath: Og(i)
10650
+ };
10651
+ }, Tg = (e, t) => e ? `${e}${t ? "#" + t : ""}` : t ? `#${t}` : "#", Eg = (e, t, n = [t]) => {
10652
+ if (!mg(e)) return;
10653
+ let r = e, i = Og(t);
10654
+ for (let t of i) if (Array.isArray(r) && r.length > +t) r = r[+t];
10655
+ else if (mg(r) && t in r) r = r[t];
10656
+ else {
10657
+ if (!xg(r)) return;
10658
+ {
10659
+ let t = wg(r.$ref);
10660
+ r = t.filePath || n.includes(t.pointer) ? void 0 : Eg(e, t.pointer, [...n, t.pointer]);
10661
+ }
10662
+ }
10663
+ return r;
10664
+ }, Dg = {
10665
+ slash: /\//g,
10666
+ tilde: /~/g,
10667
+ escapedSlash: /~1/g,
10668
+ escapedTilde: /~0/g
10669
+ }, Og = (e) => e.split("/").map(((e) => decodeURIComponent(e.replace(Dg.escapedSlash, "/").replace(Dg.escapedTilde, "~")))).slice(1), kg = (e) => e.length ? "/" + e.map(((e) => encodeURIComponent(String(e).replace(Dg.tilde, "~0").replace(Dg.slash, "~1")))).join("/") : "", Ag = (e, t) => JSON.stringify(e) == JSON.stringify(t), jg = (e) => {
10670
+ let t = 1;
10671
+ for (; e * t % 1 != 0;) t *= 10;
10672
+ return t;
10673
+ };
10674
+ function Mg(e) {
10675
+ let t = e.reduce(((e, t) => Math.max(e, jg(t))), 0);
10676
+ return e.reduce(((e, n) => Math.round(e * t * n * t / Ng(e * t, n * t)) / t));
10677
+ }
10678
+ function Ng(e, t) {
10679
+ return t === 0 ? e : Ng(t, e % t);
10680
+ }
10681
+ var Pg = (e) => {
10682
+ if (e.length === 0) return [[]];
10683
+ let t = e[0], n = Pg(e.slice(1)), r = [];
10684
+ for (let e of t) for (let t of n) r.push([e, ...t]);
10685
+ return r;
10686
+ }, Fg = (e) => {
10687
+ let t = [];
10688
+ for (let n of e) {
10689
+ if (!("properties" in n)) continue;
10690
+ let r = new Set(Object.keys(n.properties)), i = new vg();
10691
+ for (let t of r.values()) for (let a of e) if (!(a == n || a.properties && t in a.properties)) {
10692
+ if ("patternProperties" in a && a.patternProperties) for (let e of Object.keys(a.patternProperties)) new RegExp(e).test(t) || r.delete(t);
10693
+ else "additionalProperties" in a && (!1 === a.additionalProperties ? r.delete(t) : typeof a.additionalProperties == "object" && i.add(t, a.additionalProperties));
10694
+ }
10695
+ if (!r.size) continue;
10696
+ let a = {};
10697
+ for (let e of r.values()) a[e] = i.has(e) ? { allOf: [n.properties[e], ...i.get(e)] } : n.properties[e];
10698
+ t.push(a);
10699
+ }
10700
+ return t;
10701
+ }, Ig = (e) => {
10702
+ let t = [];
10703
+ for (let n of e) {
10704
+ if (!("patternProperties" in n)) continue;
10705
+ let r = new Set(Object.keys(n.patternProperties));
10706
+ for (let t of e) if (t != n && "additionalProperties" in t && !t.additionalProperties) for (let e of r.values()) t.patternProperties && e in t.patternProperties || r.delete(e);
10707
+ if (!r.size) continue;
10708
+ let i = {};
10709
+ for (let e of r.values()) i[e] = n.patternProperties[e];
10710
+ t.push(i);
10711
+ }
10712
+ return t;
10713
+ }, Lg = (e) => {
10714
+ let t = {}, n = Vg(e);
10715
+ for (let [e, r] of Object.entries(n)) t[e] = r.includes(!1) ? !1 : r.length > 1 ? { allOf: r } : r[0];
10716
+ return t;
10717
+ }, Rg = (e, t) => !!e.reduce(((e, t) => e && !0 === t), !0) || Hg(e, t), zg = () => "Could not merge values, they are probably incompatible", Bg = (e) => `Merge rule not found for key: ${e}`, Vg = (e) => {
10718
+ let t = {};
10719
+ for (let n of e) for (let e of Object.keys(n)) Array.isArray(t[e]) ? t[e].push(n[e]) : t[e] = [n[e]];
10720
+ return t;
10721
+ }, Hg = (e, t) => {
10722
+ if (e.includes(!1)) return !1;
10723
+ let n = {}, r = Vg(e);
10724
+ "properties" in r && (r.properties = Fg(e)), "patternProperties" in r && (r.patternProperties = Ig(e));
10725
+ for (let [i, a] of Object.entries(r)) {
10726
+ if (!a.length) continue;
10727
+ let r = t.mergeRules, o = `/${i}` in r ? r[`/${i}`] : r["/?"];
10728
+ o = o && !("$" in o) && "/" in o ? o["/"] : o, o = typeof o == "function" ? o() : o;
10729
+ let s = o && "$" in o ? o.$ : void 0;
10730
+ if (!s) throw Error(Bg(i));
10731
+ let c = a.length > 1 ? s(a, Object.assign(Object.assign({}, t), { allOfItems: e })) : a[0];
10732
+ c === void 0 ? t.mergeError(a) : n[i] = c;
10733
+ }
10734
+ return Object.keys(n).length ? n : void 0;
10735
+ }, Ug = (e) => e[e.length - 1], Wg = (e) => e.reduce(((e, t) => e || t), !1), Gg = (e) => Math.min(...e), Kg = (e) => Math.max(...e), qg = (e) => e.length > 1 ? e.reduce(((e, t) => `${e}(?=${t})`), "") : e[0], Jg = ([e, ...t]) => t.reduce(((e, t) => e.filter(((e) => t.includes(e)))), e), Yg = ([e, ...t]) => t.find(((t) => !Ag(t, e))) ? void 0 : e, Xg = ([e, ...t]) => t.reduce(((e, t) => bg(e, t)), e), Zg = (e) => Pg(e).map(((e) => ({ allOf: e }))), Qg = (e) => ({ anyOf: e }), $g = (e) => Mg(e), e_ = (e, t) => {
10736
+ let n = Jg(e.map(((e) => e.map(((e) => JSON.stringify(e)))))).map(((e) => JSON.parse(e))).sort();
10737
+ return n.length || t.mergeError(e), n;
10738
+ }, t_ = (e, t) => {
10739
+ let n = Jg(e.map(((e) => Array.isArray(e) ? e : [e])));
10740
+ return n.length === 1 ? n[0] : n.length ? n : void 0;
10741
+ }, n_ = (e) => {
10742
+ let t = /* @__PURE__ */ new Set();
10743
+ for (let n of e) for (let e of n) t.add(e);
10744
+ return Array.from(t).sort();
10745
+ }, r_ = (e, t) => {
10746
+ let n = {}, r = Vg(e);
10747
+ for (let [e, t] of Object.entries(r)) if (t.reduce(((e, t) => e && Array.isArray(t)), !0)) n[e] = n_(t);
10748
+ else {
10749
+ let r = t.map(((e) => Array.isArray(e) ? { required: e } : e));
10750
+ n[e] = r.length > 1 ? { allOf: r } : r[0];
10751
+ }
10752
+ return n;
10753
+ }, i_ = (e, t) => {
10754
+ if (!e.reduce(((e, t) => Array.isArray(t) || e), !1)) return Hg(e, t);
10755
+ let n = [], r = 1 / 0, i = 0, a = new vg();
10756
+ for (let e of t.allOfItems) "additionalItems" in e && e.additionalItems && "items" in e && Array.isArray(e.items) && a.add(e.items.length, e.additionalItems), "items" in e && (n.push(e.items), Array.isArray(e.items) && (i = Math.max(i, e.items.length), "additionalItems" in e && !1 === e.additionalItems && (r = Math.min(r, e.items.length))));
10757
+ let o = Math.min(i, r), s = [...Array(o)].map((() => ({ allOf: [] })));
10758
+ for (let e of n) if (Array.isArray(e)) for (let t = 0; t < o; t++) {
10759
+ let n = [];
10760
+ for (let e = 0; e <= t; e++) a.has(e) && n.push(...a.get(e));
10761
+ t < e.length ? s[t].allOf.push(n.length ? Object.assign(Object.assign({}, e[t]), { allOf: n }) : e[t]) : s[t].allOf.push(!n.length || { allOf: n });
10762
+ }
10763
+ else s.forEach((({ allOf: t }) => t.push(e)));
10764
+ return s;
10765
+ }, a_ = (e, t) => {
10766
+ let n = [], r = [];
10767
+ for (let e of t.allOfItems) "items" in e && !Array.isArray(e.items) && r.push(e.items), "additionalItems" in e && "items" in e && Array.isArray(e.items) && n.push(e.additionalItems);
10768
+ return r.length && n.forEach(((e) => e.allOf = r)), Hg(n, t);
10769
+ }, $ = (e = "draft-06", t = {}) => Object.assign(Object.assign(Object.assign(Object.assign({
10770
+ "/maximum": { $: Gg },
10771
+ "/exclusiveMaximum": { $: Wg },
10772
+ "/minimum": { $: Kg },
10773
+ "/exclusiveMinimum": { $: Wg },
10774
+ "/maxLength": { $: Gg },
10775
+ "/minLength": { $: Kg },
10776
+ "/maxItems": { $: Gg },
10777
+ "/minItems": { $: Kg },
10778
+ "/uniqueItems": { $: Wg },
10779
+ "/maxProperties": { $: Gg },
10780
+ "/minProperties": { $: Kg },
10781
+ "/required": { $: n_ },
10782
+ "/multipleOf": { $: $g },
10783
+ "/enum": { $: e_ },
10784
+ "/type": { $: t_ },
10785
+ "/allOf": {
10786
+ "/*": () => $(e, t),
10787
+ $: Zg
10788
+ },
10789
+ "/not": { $: Qg },
10790
+ "/oneOf": {
10791
+ "/*": () => $(e, t),
10792
+ $: Zg,
10793
+ sibling: [
10794
+ "definitions",
10795
+ "$defs",
10796
+ "$id",
10797
+ "$schema"
10798
+ ]
10799
+ },
10800
+ "/anyOf": {
10801
+ "/*": () => $(e, t),
10802
+ $: Zg,
10803
+ sibling: [
10804
+ "definitions",
10805
+ "$defs",
10806
+ "$id",
10807
+ "$schema"
10808
+ ]
10809
+ },
10810
+ "/properties": {
10811
+ "/*": () => $(e, t),
10812
+ $: Lg
10813
+ },
10814
+ "/items": () => Object.assign(Object.assign({}, $(e, t)), {
10815
+ $: i_,
10816
+ "/*": ({ key: n }) => typeof n == "number" ? $(e, t) : {}
10817
+ }),
10818
+ "/additionalProperties": () => Object.assign(Object.assign({}, $(e, t)), { $: Rg }),
10819
+ "/additionalItems": () => Object.assign(Object.assign({}, $(e, t)), { $: a_ }),
10820
+ "/patternProperties": {
10821
+ "/*": () => $(e, t),
10822
+ $: Lg
10823
+ },
10824
+ "/pattern": { $: qg },
10825
+ "/readOnly": { $: Wg },
10826
+ "/writeOnly": { $: Wg },
10827
+ "/example": { $: Xg },
10828
+ "/examples": { $: Xg },
10829
+ "/deprecated": { $: Wg }
10830
+ }, e === "draft-04" ? {} : {
10831
+ "/propertyNames": () => $(e, t),
10832
+ "/contains": () => $(e, t),
10833
+ "/dependencies": {
10834
+ "/*": () => $(e, t),
10835
+ $: r_
10836
+ },
10837
+ "/const": { $: Yg },
10838
+ "/exclusiveMaximum": { $: Gg },
10839
+ "/exclusiveMinimum": { $: Kg },
10840
+ "/$defs": {
10841
+ "/*": () => $(e, t),
10842
+ $: Xg
10843
+ }
10844
+ }), {
10845
+ "/definitions": {
10846
+ "/*": () => $(e, t),
10847
+ $: Xg
10848
+ },
10849
+ "/xml": { $: Xg },
10850
+ "/externalDocs": { $: Ug },
10851
+ "/description": { $: Ug },
10852
+ "/title": { $: Ug },
10853
+ "/format": { $: Ug },
10854
+ "/default": { $: Ug },
10855
+ "/?": { $: Ug }
10856
+ }), t), { $: Hg }), o_ = (e) => $(e, {
10857
+ "/discriminator": { $: Xg },
10858
+ "/oneOf": {
10859
+ "/*": () => o_(e),
10860
+ $: Zg,
10861
+ sibling: ["discriminator"]
10862
+ },
10863
+ "/anyOf": {
10864
+ "/*": () => o_(e),
10865
+ $: Zg,
10866
+ sibling: ["discriminator"]
10867
+ }
10868
+ }), s_ = (e) => e === "3.0.x" ? Object.assign(Object.assign({}, o_("draft-04")), { "/items": ({ key: e }) => Object.assign(Object.assign({}, o_("draft-04")), { $: i_ }) }) : o_("draft-06"), c_ = (e) => ({ "/*": { "/schema": s_(e) } }), l_ = (e) => ({ "/content": { "/*": {
10869
+ "/schema": s_(e),
10870
+ "/encoding": { "/headers": c_(e) }
10871
+ } } }), u_ = (e) => ({ "/*": {
10872
+ "/headers": c_(e),
10873
+ "/content": { "/*": {
10874
+ "/schema": s_(e),
10875
+ "/encoding": { "/headers": c_(e) }
10876
+ } }
10877
+ } }), d_ = (e = "3.0.x") => ({
10878
+ "/paths": { "/*": {
10879
+ "/*": {
10880
+ "/parameters": c_(e),
10881
+ "/requestBody": l_(e),
10882
+ "/responses": u_(e)
10883
+ },
10884
+ "/parameters": c_(e)
10885
+ } },
10886
+ "/components": {
10887
+ "/schemas": { "/*": s_(e) },
10888
+ "/responses": u_(e),
10889
+ "/parameters": c_(e),
10890
+ "/requestBodies": { "/*": l_(e) },
10891
+ "/headers": c_(e)
10892
+ }
10893
+ }), f_ = $("draft-06", {
10894
+ "/args": () => f_,
10895
+ "/nullable": { $: Wg },
10896
+ "/specifiedByURL": { $: Ug },
10897
+ "/values": {
10898
+ $: Xg,
10899
+ "/*": {
10900
+ $: Xg,
10901
+ "/description": { $: Ug },
10902
+ "/deprecated": {
10903
+ $: Ug,
10904
+ "/reason": { $: Ug }
10905
+ }
10906
+ }
10907
+ },
10908
+ "/interfaces": {
10909
+ $: Xg,
10910
+ "/*": { $: Xg }
10911
+ },
10912
+ "/directives": {
10913
+ $: Xg,
10914
+ "/*": () => Object.assign(Object.assign({}, f_), { "/meta": { $: Xg } })
10915
+ }
10916
+ }), p_ = {
10917
+ "/queries": { "/*": () => f_ },
10918
+ "/mutations": { "/*": () => f_ },
10919
+ "/subscriptions": { "/*": () => f_ },
10920
+ "/components": {
10921
+ "/*": { "/*": f_ },
10922
+ "/directives": { "/*": { "/args": () => f_ } }
10923
+ }
10924
+ }, m_ = (e, t, n) => {
10925
+ let r = n.sibling || [], i = e, a = t, o = i[a], s = ug(i, [typeof a == "symbol" ? a : a + ""]), c = yg(s, r);
10926
+ return Object.keys(s).length ? Object.assign({ [t]: o.map(((e) => ({ allOf: [s, e] }))) }, c) : e;
10927
+ }, h_ = (e, t, n, r) => {
10928
+ let i = [], a = kg(t), o = [], s = {
10929
+ pointer: a,
10930
+ data: "",
10931
+ refs: []
10932
+ };
10933
+ for (let t of e) if (xg(t) && !o.includes(t.$ref)) {
10934
+ s.data === "" && (s.data = JSON.stringify(e));
10935
+ let { $ref: c } = t, l = ug(t, ["$ref"]), { filePath: u, normalized: d, pointer: f } = wg(c);
10936
+ if (a === f) continue;
10937
+ let p = r.find(((e) => e.refs.includes(t.$ref) && e.data === s.data && f !== e.pointer));
10938
+ if (p) return {
10939
+ allOfItems: [{ $ref: `#${p.pointer}` }],
10940
+ brokenRefs: o
10941
+ };
10942
+ if (!s.refs.includes(d)) {
10943
+ s.refs.push(d);
10944
+ let e = u ? void 0 : Eg(n, f);
10945
+ e === void 0 ? (o.push(d), i.push(t)) : i.push(e);
10946
+ }
10947
+ Object.keys(l).length && i.push(l);
10948
+ } else i.push(t);
10949
+ s.refs.length && r.push(s);
10950
+ let c = g_(i);
10951
+ return c.find(((e) => xg(e) && !o.includes(e.$ref))) ? h_(c, t, n, r) : {
10952
+ allOfItems: c,
10953
+ brokenRefs: o
10954
+ };
10955
+ }, g_ = (e) => {
10956
+ let t = [];
10957
+ for (let n of e) if (mg(n)) {
10958
+ if (n.allOf && Array.isArray(n.allOf)) {
10959
+ let { allOf: e } = n, r = ug(n, ["allOf"]), i = Object.keys(r).length ? [...e, r] : e;
10960
+ t.push(...g_(i));
10961
+ } else t.push(n);
10962
+ }
10963
+ return t;
10964
+ }, __ = (e) => typeof e != "object" || !e ? $() : "openapi" in e && typeof e.openapi == "string" && /3.+/.test(e.openapi) ? d_(e.openapi.startsWith("3.1") ? "3.1.x" : "3.0.x") : "graphapi" in e && typeof e.graphapi == "string" ? p_ : $(), v_ = (e, t) => {
10965
+ var n;
10966
+ let r = (n = t == null ? void 0 : t.rules) == null ? __(e) : n;
10967
+ return ((e, t = [], n = {}) => {
10968
+ var r;
10969
+ t = Array.isArray(t) ? t : [t];
10970
+ let i = { "#": void 0 }, a = Object.assign({ state: Object.assign(Object.assign({}, (r = n.state) == null ? {} : r), {
10971
+ root: i,
10972
+ node: i
10973
+ }) }, n.rules ? { rules: n.rules } : {}), [o, s] = _g();
10974
+ return gg(e, [
10975
+ o,
10976
+ ...t,
10977
+ s
10978
+ ], a), i["#"];
10979
+ })(e, y_(t), { rules: r });
10980
+ }, y_ = (e) => {
10981
+ let t = /* @__PURE__ */ new Map(), n = e == null ? void 0 : e.source, r = [];
10982
+ return ({ value: i, key: a, path: o, rules: s, state: c }) => {
10983
+ var l;
10984
+ o.length || e != null && e.source || (n = i);
10985
+ let u = (n) => {
10986
+ var r;
10987
+ let i = b_(o);
10988
+ i ? t.set(...i) : (r = e == null ? void 0 : e.onMergeError) == null || r.call(e, zg(), o, n);
10989
+ }, d = () => {
10990
+ let { node: e } = c, n = kg(o);
10991
+ if (t.has(n)) {
10992
+ let r = t.get(n), o = e[a];
10993
+ Array.isArray(o) && (o.length < 2 && u((i == null ? void 0 : i.allOf) || []), o.splice(r, 1));
10994
+ }
10995
+ };
10996
+ if (!mg(i) || Array.isArray(i) || !((e) => !!e && e["/allOf"] && "$" in e["/allOf"])(s)) return { exitHook: d };
10997
+ let { allOf: f } = i, p = ug(i, ["allOf"]), m = [];
10998
+ if (Array.isArray(f) && m.push(...f), m.length) Object.keys(p).length && m.push(p);
10999
+ else {
11000
+ let { $ref: t } = p, n = ug(p, ["$ref"]);
11001
+ if (e != null && e.mergeRefSibling && t && Object.keys(n).length > 0) m.push({ $ref: t }, n);
11002
+ else if (e != null && e.mergeCombinarySibling) {
11003
+ if (Sg(p) && s["/anyOf"]) return {
11004
+ value: m_(p, "anyOf", s["/anyOf"]),
11005
+ exitHook: d
11006
+ };
11007
+ if (Cg(p) && s["/oneOf"]) return {
11008
+ value: m_(p, "oneOf", s["/oneOf"]),
11009
+ exitHook: d
11010
+ };
11011
+ }
11012
+ }
11013
+ if (!m.length) return {
11014
+ value: p,
11015
+ exitHook: d
11016
+ };
11017
+ let { allOfItems: h, brokenRefs: g } = h_(m, o, n, r);
11018
+ if (g.length) {
11019
+ for (let t of g) (l = e == null ? void 0 : e.onRefResolveError) == null || l.call(e, "Cannot resolve $ref", o, t);
11020
+ return {
11021
+ value: { allOf: h },
11022
+ exitHook: d
11023
+ };
11024
+ }
11025
+ if (h.length < 2) return {
11026
+ value: h.length ? h[0] : {},
11027
+ exitHook: d
11028
+ };
11029
+ let _ = Hg(h, {
11030
+ allOfItems: h,
11031
+ mergeRules: s,
11032
+ mergeError: u
11033
+ });
11034
+ return e != null && e.mergeCombinarySibling && Sg(_) ? {
11035
+ value: m_(_, "anyOf", s["/anyOf"]),
11036
+ exitHook: d
11037
+ } : e != null && e.mergeCombinarySibling && Cg(_) ? {
11038
+ value: m_(_, "oneOf", s["/oneOf"]),
11039
+ exitHook: d
11040
+ } : {
11041
+ value: _,
11042
+ exitHook: d
11043
+ };
11044
+ };
11045
+ }, b_ = (e) => {
11046
+ for (let t = e.length - 2; t >= 0; t--) if (e[t] === "anyOf" || e[t] === "oneOf") return [kg(e.slice(0, t + 1)), e[t + 1]];
11047
+ };
11048
+ //#endregion
11049
+ //#region src/lib/parser/mergeAllOf.ts
11050
+ function x_(e) {
11051
+ var t;
11052
+ let n = [["paths"], ...Object.keys((t = e.components) == null ? {} : t).map((e) => ["components", e])].flatMap((t) => {
11053
+ var n;
11054
+ return Object.entries((n = C_(e, t)) == null ? {} : n).filter(([, e]) => S_(e)).map(([e]) => [...t, e]);
11055
+ });
11056
+ if (!n.length) return e;
11057
+ let r = { openapi: e.openapi };
11058
+ n.forEach((t) => w_(r, t, C_(e, t)));
11059
+ let i = v_(r, { source: e }), a = { ...e };
11060
+ return n.forEach((e) => w_(a, e, C_(i, e))), a;
11061
+ }
11062
+ function S_(e) {
11063
+ return !e || typeof e != "object" ? !1 : "allOf" in e || Object.values(e).some(S_);
11064
+ }
11065
+ function C_(e, t) {
11066
+ return t.reduce((e, t) => e == null ? void 0 : e[t], e);
11067
+ }
11068
+ function w_(e, t, n) {
11069
+ let r = e;
11070
+ for (let e of t.slice(0, -1)) r = r[e] = { ...r[e] };
11071
+ r[t[t.length - 1]] = n;
11072
+ }
11073
+ //#endregion
11015
11074
  //#region src/lib/parser/parseOpenapi.ts
11016
- function b_() {
11075
+ function T_() {
11017
11076
  function e({ spec: e, defaultTag: t = void 0, defaultTagDescription: n = void 0 }) {
11018
- let r = Hh(e);
11019
- return r ? !r.openapi || !String(r.openapi).startsWith("3.") ? (console.warn("Only OpenAPI 3.x is supported"), {}) : (r != null && r.paths && (r = Og(r), r = kg(r), r = Ag({
11077
+ let r = Am(e);
11078
+ return r ? !r.openapi || !String(r.openapi).startsWith("3.") ? (console.warn("Only OpenAPI 3.x is supported"), {}) : (r != null && r.paths && (r = vh(r), r = yh(r), r = bh({
11020
11079
  spec: r,
11021
11080
  defaultTag: t,
11022
11081
  defaultTagDescription: n
11023
11082
  })), r.externalDocs = r.externalDocs || {}, r.info = r.info || {}, r.servers = r.servers || [], r.tags = r.tags || [], { ...r }) : {};
11024
11083
  }
11025
11084
  async function t({ spec: e }) {
11026
- let t = Hh(e), [n, r] = await Wu(() => Eg(t));
11085
+ let t = Am(e), [n, r] = await Wu(() => gh(t));
11027
11086
  return t = r ? t : n, t;
11028
11087
  }
11029
11088
  function n({ spec: t, defaultTag: n = void 0, defaultTagDescription: r = void 0 }) {
11030
- let i = { ...Hh(t) }, [a, o] = Wu(() => nf(e({
11089
+ let i = { ...Am(t) }, [a, o] = Wu(() => x_(e({
11031
11090
  spec: t,
11032
11091
  defaultTag: n,
11033
11092
  defaultTagDescription: r
11034
11093
  })));
11035
11094
  i = o ? i : a;
11036
- let [s, c] = Wu(() => Zh(i));
11095
+ let [s, c] = Wu(() => Bm(i));
11037
11096
  i = c ? i : s;
11038
- let [l, u] = Wu(() => y_(i));
11097
+ let [l, u] = Wu(() => lg(i));
11039
11098
  i = u ? i : l;
11040
- let [d, f] = Wu(() => h_(i));
11041
- i = f ? i : d;
11042
- let [p, m] = Wu(() => g_(i));
11043
- return i = m ? i : p, i.externalDocs = i.externalDocs || i.externalDocs || {}, i.info = i.info || i.info || {}, i.servers = i.servers || i.servers || [], i.tags = i.tags || i.tags || [], { ...i };
11099
+ let d = new eg(), [f, p] = Wu(() => ag(i, d));
11100
+ i = p ? i : f;
11101
+ let [m, h] = Wu(() => og(i, d));
11102
+ return i = h ? i : m, i.externalDocs = i.externalDocs || i.externalDocs || {}, i.info = i.info || i.info || {}, i.servers = i.servers || i.servers || [], i.tags = i.tags || i.tags || [], { ...i };
11044
11103
  }
11045
11104
  async function r({ spec: e, defaultTag: r = void 0, defaultTagDescription: i = void 0 }) {
11046
11105
  let a = n({
@@ -11059,55 +11118,55 @@ function b_() {
11059
11118
  }
11060
11119
  //#endregion
11061
11120
  //#region src/composables/useOpenapi.ts
11062
- var x_ = Symbol("openapiLocal"), S_ = null;
11063
- function C_(e, t) {
11064
- return Qh({
11121
+ var E_ = Symbol("openapiLocal"), D_ = null;
11122
+ function O_(e, t) {
11123
+ return Vm({
11065
11124
  spec: e,
11066
11125
  originalSpec: t
11067
11126
  });
11068
11127
  }
11069
- function w_(e) {
11070
- let t = Hh(e.spec);
11071
- return C_(b_().parseSync({
11128
+ function k_(e) {
11129
+ let t = Am(e.spec);
11130
+ return O_(T_().parseSync({
11072
11131
  spec: e.spec,
11073
11132
  defaultTag: e.defaultTag,
11074
11133
  defaultTagDescription: e.defaultTagDescription
11075
11134
  }), t);
11076
11135
  }
11077
- async function T_(e) {
11078
- let t = Hh(e.spec);
11079
- return C_(await b_().parseAsync({
11136
+ async function A_(e) {
11137
+ let t = Am(e.spec);
11138
+ return O_(await T_().parseAsync({
11080
11139
  spec: e.spec,
11081
11140
  defaultTag: e.defaultTag,
11082
11141
  defaultTagDescription: e.defaultTagDescription
11083
11142
  }), t);
11084
11143
  }
11085
- function E_() {
11086
- return o(x_, null);
11144
+ function j_() {
11145
+ return a() ? o(E_, null) : null;
11087
11146
  }
11088
- function D_() {
11089
- return S_;
11147
+ function M_() {
11148
+ return D_;
11090
11149
  }
11091
- function O_(e = {}) {
11150
+ function N_(e = {}) {
11092
11151
  var t, n;
11093
11152
  if (e.config && Wo(e.config), e.spec) {
11094
11153
  var r, i;
11095
- S_ = w_({
11154
+ D_ = k_({
11096
11155
  spec: e.spec,
11097
11156
  defaultTag: (r = e.config) == null || (r = r.spec) == null ? void 0 : r.defaultTag,
11098
11157
  defaultTagDescription: (i = e.config) == null || (i = i.spec) == null ? void 0 : i.defaultTagDescription
11099
11158
  });
11100
11159
  }
11101
- let a = (t = (n = E_()) == null ? S_ : n) == null ? Qh({}) : t;
11160
+ let a = (t = (n = j_()) == null ? D_ : n) == null ? Vm({}) : t;
11102
11161
  async function o(t = {}) {
11103
11162
  var n, r, i;
11104
11163
  let a = (n = t.spec) == null ? e.spec : n;
11105
11164
  if (!a) throw Error("No spec provided");
11106
- return S_ = await T_({
11165
+ return D_ = await A_({
11107
11166
  spec: a,
11108
11167
  defaultTag: (r = e.config) == null || (r = r.spec) == null ? void 0 : r.defaultTag,
11109
11168
  defaultTagDescription: (i = e.config) == null || (i = i.spec) == null ? void 0 : i.defaultTagDescription
11110
- }), S_;
11169
+ }), D_;
11111
11170
  }
11112
11171
  return {
11113
11172
  ...a,
@@ -11115,4 +11174,4 @@ function O_(e = {}) {
11115
11174
  };
11116
11175
  }
11117
11176
  //#endregion
11118
- export { re as $, Ja as A, ot as B, To as C, io as D, lo as E, He as F, Oe as G, lt as H, Le as I, ke as J, me as K, ct as L, Ya as M, T as N, ao as O, Ie as P, ne as Q, Re as R, Eo as S, uo as T, ue as U, nt as V, de as W, le as X, Me as Y, Pe as Z, Vh as _, b_ as a, Wo as b, Tg as c, Cg as d, ae as et, hg as f, Hh as g, Qh as h, O_ as i, Za as j, Xa as k, $ as l, $h as m, D_ as n, o_ as o, fg as p, ye as q, E_ as r, r_ as s, x_ as t, oe as tt, wg as u, Uu as v, fo as w, No as x, Ro as y, ze as z };
11177
+ export { re as $, Ja as A, ot as B, To as C, io as D, lo as E, He as F, Oe as G, lt as H, Le as I, ke as J, me as K, ct as L, Ya as M, T as N, ao as O, Ie as P, ne as Q, Re as R, Eo as S, uo as T, ue as U, nt as V, de as W, le as X, Me as Y, Pe as Z, km as _, T_ as a, Wo as b, hh as c, fh as d, ae as et, ih as f, Am as g, Vm as h, N_ as i, Za as j, Xa as k, ph as l, Hm as m, M_ as n, Xh as o, th as p, ye as q, j_ as r, qh as s, E_ as t, oe as tt, mh as u, Uu as v, fo as w, No as x, Ro as y, ze as z };