vitepress-openapi 0.1.18 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/types/src/client.d.ts +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/lib/utils/minifyHtml.d.ts +5 -0
- package/dist/{useOpenapi-DUT_WkQ8.js → useOpenapi-B4Uu-BLL.js} +111 -104
- package/dist/{useOpenapi-CKx0hILD.cjs → useOpenapi-CcNxVvye.cjs} +53 -51
- package/dist/vitepress-openapi.client.cjs.js +21 -21
- package/dist/vitepress-openapi.client.es.js +3 -2
- package/dist/vitepress-openapi.css +1 -1
- package/dist/vitepress-openapi.node.cjs.js +1 -1
- package/dist/vitepress-openapi.node.es.js +6 -5
- package/package.json +1 -1
- package/src/client.ts +1 -0
- package/src/composables/useSidebar.ts +5 -2
- package/src/index.ts +1 -0
- package/src/lib/sidebar/ensureGroupTextSlashPrefix.ts +1 -1
- package/src/lib/utils/minifyHtml.ts +9 -0
- package/src/style.css +3 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRef as di, readonly as Yt, customRef as er, ref as I, onMounted as tr, nextTick as Kt, getCurrentInstance as gt, watch as Ce, getCurrentScope as Qt, hasInjectionContext as nr, inject as rr, toValue as Z, onScopeDispose as fi, onBeforeUnmount as pi, shallowRef as Oe, shallowReadonly as mi, effectScope as or, watchEffect as ir, computed as se, unref as Ne, isRef as ar } from "vue";
|
|
2
2
|
const gi = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#4d9375","activityBar.background":"#121212","activityBar.border":"#191919","activityBar.foreground":"#dbd7caee","activityBar.inactiveForeground":"#dedcd550","activityBarBadge.background":"#bfbaaa","activityBarBadge.foreground":"#121212","badge.background":"#dedcd590","badge.foreground":"#121212","breadcrumb.activeSelectionForeground":"#eeeeee18","breadcrumb.background":"#181818","breadcrumb.focusForeground":"#dbd7caee","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#121212","button.background":"#4d9375","button.foreground":"#121212","button.hoverBackground":"#4d9375","checkbox.background":"#181818","checkbox.border":"#2f363d","debugToolBar.background":"#121212","descriptionForeground":"#dedcd590","diffEditor.insertedTextBackground":"#4d937550","diffEditor.removedTextBackground":"#ab595950","dropdown.background":"#121212","dropdown.border":"#191919","dropdown.foreground":"#dbd7caee","dropdown.listBackground":"#181818","editor.background":"#121212","editor.findMatchBackground":"#e6cc7722","editor.findMatchHighlightBackground":"#e6cc7744","editor.focusedStackFrameHighlightBackground":"#b808","editor.foldBackground":"#eeeeee10","editor.foreground":"#dbd7caee","editor.inactiveSelectionBackground":"#eeeeee10","editor.lineHighlightBackground":"#181818","editor.selectionBackground":"#eeeeee18","editor.selectionHighlightBackground":"#eeeeee10","editor.stackFrameHighlightBackground":"#a707","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#5eaab5","editorBracketHighlight.foreground2":"#4d9375","editorBracketHighlight.foreground3":"#d4976c","editorBracketHighlight.foreground4":"#d9739f","editorBracketHighlight.foreground5":"#e6cc77","editorBracketHighlight.foreground6":"#6394bf","editorBracketMatch.background":"#4d937520","editorError.foreground":"#cb7676","editorGroup.border":"#191919","editorGroupHeader.tabsBackground":"#121212","editorGroupHeader.tabsBorder":"#191919","editorGutter.addedBackground":"#4d9375","editorGutter.commentRangeForeground":"#dedcd550","editorGutter.deletedBackground":"#cb7676","editorGutter.foldingControlForeground":"#dedcd590","editorGutter.modifiedBackground":"#6394bf","editorHint.foreground":"#4d9375","editorIndentGuide.activeBackground":"#ffffff30","editorIndentGuide.background":"#ffffff15","editorInfo.foreground":"#6394bf","editorInlayHint.background":"#181818","editorInlayHint.foreground":"#666666","editorLineNumber.activeForeground":"#bfbaaa","editorLineNumber.foreground":"#dedcd550","editorOverviewRuler.border":"#111","editorStickyScroll.background":"#181818","editorStickyScrollHover.background":"#181818","editorWarning.foreground":"#d4976c","editorWhitespace.foreground":"#ffffff15","editorWidget.background":"#121212","errorForeground":"#cb7676","focusBorder":"#00000000","foreground":"#dbd7caee","gitDecoration.addedResourceForeground":"#4d9375","gitDecoration.conflictingResourceForeground":"#d4976c","gitDecoration.deletedResourceForeground":"#cb7676","gitDecoration.ignoredResourceForeground":"#dedcd550","gitDecoration.modifiedResourceForeground":"#6394bf","gitDecoration.submoduleResourceForeground":"#dedcd590","gitDecoration.untrackedResourceForeground":"#5eaab5","input.background":"#181818","input.border":"#191919","input.foreground":"#dbd7caee","input.placeholderForeground":"#dedcd590","inputOption.activeBackground":"#dedcd550","list.activeSelectionBackground":"#181818","list.activeSelectionForeground":"#dbd7caee","list.focusBackground":"#181818","list.highlightForeground":"#4d9375","list.hoverBackground":"#181818","list.hoverForeground":"#dbd7caee","list.inactiveFocusBackground":"#121212","list.inactiveSelectionBackground":"#181818","list.inactiveSelectionForeground":"#dbd7caee","menu.separatorBackground":"#191919","notificationCenterHeader.background":"#121212","notificationCenterHeader.foreground":"#959da5","notifications.background":"#121212","notifications.border":"#191919","notifications.foreground":"#dbd7caee","notificationsErrorIcon.foreground":"#cb7676","notificationsInfoIcon.foreground":"#6394bf","notificationsWarningIcon.foreground":"#d4976c","panel.background":"#121212","panel.border":"#191919","panelInput.border":"#2f363d","panelTitle.activeBorder":"#4d9375","panelTitle.activeForeground":"#dbd7caee","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#121212","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#121212","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#191919","pickerGroup.foreground":"#dbd7caee","problemsErrorIcon.foreground":"#cb7676","problemsInfoIcon.foreground":"#6394bf","problemsWarningIcon.foreground":"#d4976c","progressBar.background":"#4d9375","quickInput.background":"#121212","quickInput.foreground":"#dbd7caee","quickInputList.focusBackground":"#181818","scrollbar.shadow":"#0000","scrollbarSlider.activeBackground":"#dedcd550","scrollbarSlider.background":"#dedcd510","scrollbarSlider.hoverBackground":"#dedcd550","settings.headerForeground":"#dbd7caee","settings.modifiedItemIndicator":"#4d9375","sideBar.background":"#121212","sideBar.border":"#191919","sideBar.foreground":"#bfbaaa","sideBarSectionHeader.background":"#121212","sideBarSectionHeader.border":"#191919","sideBarSectionHeader.foreground":"#dbd7caee","sideBarTitle.foreground":"#dbd7caee","statusBar.background":"#121212","statusBar.border":"#191919","statusBar.debuggingBackground":"#181818","statusBar.debuggingForeground":"#bfbaaa","statusBar.foreground":"#bfbaaa","statusBar.noFolderBackground":"#121212","statusBarItem.prominentBackground":"#181818","tab.activeBackground":"#121212","tab.activeBorder":"#191919","tab.activeBorderTop":"#dedcd590","tab.activeForeground":"#dbd7caee","tab.border":"#191919","tab.hoverBackground":"#181818","tab.inactiveBackground":"#121212","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#191919","tab.unfocusedActiveBorderTop":"#191919","tab.unfocusedHoverBackground":"#121212","terminal.ansiBlack":"#393a34","terminal.ansiBlue":"#6394bf","terminal.ansiBrightBlack":"#777777","terminal.ansiBrightBlue":"#6394bf","terminal.ansiBrightCyan":"#5eaab5","terminal.ansiBrightGreen":"#4d9375","terminal.ansiBrightMagenta":"#d9739f","terminal.ansiBrightRed":"#cb7676","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e6cc77","terminal.ansiCyan":"#5eaab5","terminal.ansiGreen":"#4d9375","terminal.ansiMagenta":"#d9739f","terminal.ansiRed":"#cb7676","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#e6cc77","terminal.foreground":"#dbd7caee","terminal.selectionBackground":"#eeeeee18","textBlockQuote.background":"#121212","textBlockQuote.border":"#191919","textCodeBlock.background":"#121212","textLink.activeForeground":"#4d9375","textLink.foreground":"#4d9375","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#121212","titleBar.activeForeground":"#bfbaaa","titleBar.border":"#181818","titleBar.inactiveBackground":"#121212","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"Vitesse Dark","name":"vitesse-dark","semanticHighlighting":true,"semanticTokenColors":{"class":"#6872ab","interface":"#5d99a9","namespace":"#db889a","property":"#b8a965","type":"#5d99a9"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#758575dd"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#666666"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#c99076"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#80a665"}},{"scope":"variable.parameter.function","settings":{"foreground":"#dbd7caee"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#4d9375"}},{"scope":"entity.name.function","settings":{"foreground":"#80a665"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#4d9375"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#cb7676"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#dbd7caee"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#c98a7d"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#c98a7d77"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#b8a96577"}},{"scope":"support","settings":{"foreground":"#b8a965"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#b8a965"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#bd976a"}},{"scope":["variable","identifier"],"settings":{"foreground":"#bd976a"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#5DA994"}},{"scope":"namespace","settings":{"foreground":"#db889a"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#cb7676"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#c98a7d"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#c4704f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#c98a7d"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#e6cc77"}},{"scope":["support.constant"],"settings":{"foreground":"#c99076"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#4C9A91"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#cb7676"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#4d9375"}},{"scope":"meta.module-reference","settings":{"foreground":"#4d9375"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#d4976c"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#4d9375"}},{"scope":"markup.quote","settings":{"foreground":"#5d99a9"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#dbd7caee"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#dbd7caee"}},{"scope":"markup.raw","settings":{"foreground":"#4d9375"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#c98a7d"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#dedcd590"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#6872ab"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#80a665"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"dark"}')), hi = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1c6b48","activityBar.background":"#ffffff","activityBar.border":"#f0f0f0","activityBar.foreground":"#393a34","activityBar.inactiveForeground":"#393a3450","activityBarBadge.background":"#4e4f47","activityBarBadge.foreground":"#ffffff","badge.background":"#393a3490","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#22222218","breadcrumb.background":"#f7f7f7","breadcrumb.focusForeground":"#393a34","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#ffffff","button.background":"#1c6b48","button.foreground":"#ffffff","button.hoverBackground":"#1c6b48","checkbox.background":"#f7f7f7","checkbox.border":"#d1d5da","debugToolBar.background":"#ffffff","descriptionForeground":"#393a3490","diffEditor.insertedTextBackground":"#1c6b4830","diffEditor.removedTextBackground":"#ab595940","dropdown.background":"#ffffff","dropdown.border":"#f0f0f0","dropdown.foreground":"#393a34","dropdown.listBackground":"#f7f7f7","editor.background":"#ffffff","editor.findMatchBackground":"#e6cc7744","editor.findMatchHighlightBackground":"#e6cc7766","editor.focusedStackFrameHighlightBackground":"#fff5b1","editor.foldBackground":"#22222210","editor.foreground":"#393a34","editor.inactiveSelectionBackground":"#22222210","editor.lineHighlightBackground":"#f7f7f7","editor.selectionBackground":"#22222218","editor.selectionHighlightBackground":"#22222210","editor.stackFrameHighlightBackground":"#fffbdd","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#2993a3","editorBracketHighlight.foreground2":"#1e754f","editorBracketHighlight.foreground3":"#a65e2b","editorBracketHighlight.foreground4":"#a13865","editorBracketHighlight.foreground5":"#bda437","editorBracketHighlight.foreground6":"#296aa3","editorBracketMatch.background":"#1c6b4820","editorError.foreground":"#ab5959","editorGroup.border":"#f0f0f0","editorGroupHeader.tabsBackground":"#ffffff","editorGroupHeader.tabsBorder":"#f0f0f0","editorGutter.addedBackground":"#1e754f","editorGutter.commentRangeForeground":"#393a3450","editorGutter.deletedBackground":"#ab5959","editorGutter.foldingControlForeground":"#393a3490","editorGutter.modifiedBackground":"#296aa3","editorHint.foreground":"#1e754f","editorIndentGuide.activeBackground":"#00000030","editorIndentGuide.background":"#00000015","editorInfo.foreground":"#296aa3","editorInlayHint.background":"#f7f7f7","editorInlayHint.foreground":"#999999","editorLineNumber.activeForeground":"#4e4f47","editorLineNumber.foreground":"#393a3450","editorOverviewRuler.border":"#fff","editorStickyScroll.background":"#f7f7f7","editorStickyScrollHover.background":"#f7f7f7","editorWarning.foreground":"#a65e2b","editorWhitespace.foreground":"#00000015","editorWidget.background":"#ffffff","errorForeground":"#ab5959","focusBorder":"#00000000","foreground":"#393a34","gitDecoration.addedResourceForeground":"#1e754f","gitDecoration.conflictingResourceForeground":"#a65e2b","gitDecoration.deletedResourceForeground":"#ab5959","gitDecoration.ignoredResourceForeground":"#393a3450","gitDecoration.modifiedResourceForeground":"#296aa3","gitDecoration.submoduleResourceForeground":"#393a3490","gitDecoration.untrackedResourceForeground":"#2993a3","input.background":"#f7f7f7","input.border":"#f0f0f0","input.foreground":"#393a34","input.placeholderForeground":"#393a3490","inputOption.activeBackground":"#393a3450","list.activeSelectionBackground":"#f7f7f7","list.activeSelectionForeground":"#393a34","list.focusBackground":"#f7f7f7","list.highlightForeground":"#1c6b48","list.hoverBackground":"#f7f7f7","list.hoverForeground":"#393a34","list.inactiveFocusBackground":"#ffffff","list.inactiveSelectionBackground":"#f7f7f7","list.inactiveSelectionForeground":"#393a34","menu.separatorBackground":"#f0f0f0","notificationCenterHeader.background":"#ffffff","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#ffffff","notifications.border":"#f0f0f0","notifications.foreground":"#393a34","notificationsErrorIcon.foreground":"#ab5959","notificationsInfoIcon.foreground":"#296aa3","notificationsWarningIcon.foreground":"#a65e2b","panel.background":"#ffffff","panel.border":"#f0f0f0","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#1c6b48","panelTitle.activeForeground":"#393a34","panelTitle.inactiveForeground":"#6a737d","peekViewEditor.background":"#ffffff","peekViewResult.background":"#ffffff","pickerGroup.border":"#f0f0f0","pickerGroup.foreground":"#393a34","problemsErrorIcon.foreground":"#ab5959","problemsInfoIcon.foreground":"#296aa3","problemsWarningIcon.foreground":"#a65e2b","progressBar.background":"#1c6b48","quickInput.background":"#ffffff","quickInput.foreground":"#393a34","quickInputList.focusBackground":"#f7f7f7","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#393a3450","scrollbarSlider.background":"#393a3410","scrollbarSlider.hoverBackground":"#393a3450","settings.headerForeground":"#393a34","settings.modifiedItemIndicator":"#1c6b48","sideBar.background":"#ffffff","sideBar.border":"#f0f0f0","sideBar.foreground":"#4e4f47","sideBarSectionHeader.background":"#ffffff","sideBarSectionHeader.border":"#f0f0f0","sideBarSectionHeader.foreground":"#393a34","sideBarTitle.foreground":"#393a34","statusBar.background":"#ffffff","statusBar.border":"#f0f0f0","statusBar.debuggingBackground":"#f7f7f7","statusBar.debuggingForeground":"#4e4f47","statusBar.foreground":"#4e4f47","statusBar.noFolderBackground":"#ffffff","statusBarItem.prominentBackground":"#f7f7f7","tab.activeBackground":"#ffffff","tab.activeBorder":"#f0f0f0","tab.activeBorderTop":"#393a3490","tab.activeForeground":"#393a34","tab.border":"#f0f0f0","tab.hoverBackground":"#f7f7f7","tab.inactiveBackground":"#ffffff","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#f0f0f0","tab.unfocusedActiveBorderTop":"#f0f0f0","tab.unfocusedHoverBackground":"#ffffff","terminal.ansiBlack":"#121212","terminal.ansiBlue":"#296aa3","terminal.ansiBrightBlack":"#aaaaaa","terminal.ansiBrightBlue":"#296aa3","terminal.ansiBrightCyan":"#2993a3","terminal.ansiBrightGreen":"#1e754f","terminal.ansiBrightMagenta":"#a13865","terminal.ansiBrightRed":"#ab5959","terminal.ansiBrightWhite":"#dddddd","terminal.ansiBrightYellow":"#bda437","terminal.ansiCyan":"#2993a3","terminal.ansiGreen":"#1e754f","terminal.ansiMagenta":"#a13865","terminal.ansiRed":"#ab5959","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#bda437","terminal.foreground":"#393a34","terminal.selectionBackground":"#22222218","textBlockQuote.background":"#ffffff","textBlockQuote.border":"#f0f0f0","textCodeBlock.background":"#ffffff","textLink.activeForeground":"#1c6b48","textLink.foreground":"#1c6b48","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#4e4f47","titleBar.border":"#f7f7f7","titleBar.inactiveBackground":"#ffffff","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"Vitesse Light","name":"vitesse-light","semanticHighlighting":true,"semanticTokenColors":{"class":"#5a6aa6","interface":"#2e808f","namespace":"#b05a78","property":"#998418","type":"#2e808f"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#a0ada0"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#999999"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#a65e2b"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#59873a"}},{"scope":"variable.parameter.function","settings":{"foreground":"#393a34"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#1e754f"}},{"scope":"entity.name.function","settings":{"foreground":"#59873a"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#1e754f"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#ab5959"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#393a34"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#b56959"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#b5695977"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#99841877"}},{"scope":"support","settings":{"foreground":"#998418"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#998418"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#b07d48"}},{"scope":["variable","identifier"],"settings":{"foreground":"#b07d48"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#2e8f82"}},{"scope":"namespace","settings":{"foreground":"#b05a78"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#ab5959"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#b56959"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#ab5e3f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#b56959"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#bda437"}},{"scope":["support.constant"],"settings":{"foreground":"#a65e2b"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#2f798a"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#ab5959"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#1e754f"}},{"scope":"meta.module-reference","settings":{"foreground":"#1c6b48"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#a65e2b"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#1c6b48"}},{"scope":"markup.quote","settings":{"foreground":"#2e808f"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#393a34"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#393a34"}},{"scope":"markup.raw","settings":{"foreground":"#1c6b48"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#b56959"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#393a3490"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#5a6aa6"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#59873a"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"light"}'));
|
|
3
|
-
function
|
|
3
|
+
function ig(e, t) {
|
|
4
4
|
var n;
|
|
5
5
|
const r = Oe();
|
|
6
6
|
return ir(() => {
|
|
@@ -14,7 +14,7 @@ function Qe(e, t) {
|
|
|
14
14
|
return Qt() ? (fi(e, t), !0) : !1;
|
|
15
15
|
}
|
|
16
16
|
// @__NO_SIDE_EFFECTS__
|
|
17
|
-
function
|
|
17
|
+
function ag() {
|
|
18
18
|
const e = /* @__PURE__ */ new Set(), t = (a) => {
|
|
19
19
|
e.delete(a);
|
|
20
20
|
};
|
|
@@ -32,7 +32,7 @@ function og() {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
// @__NO_SIDE_EFFECTS__
|
|
35
|
-
function
|
|
35
|
+
function sg(e) {
|
|
36
36
|
let t = !1, n;
|
|
37
37
|
const r = or(!0);
|
|
38
38
|
return ((...o) => (t || (n = r.run(() => e(...o)), t = !0), n));
|
|
@@ -45,7 +45,7 @@ const wt = /* @__PURE__ */ new WeakMap(), yi = /* @__NO_SIDE_EFFECTS__ */ (...e)
|
|
|
45
45
|
}, ht = typeof window < "u" && typeof document < "u";
|
|
46
46
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
47
47
|
const bi = (e) => typeof e < "u", vi = Object.prototype.toString, Si = (e) => vi.call(e) === "[object Object]", $i = () => {
|
|
48
|
-
},
|
|
48
|
+
}, cg = /* @__PURE__ */ wi();
|
|
49
49
|
function wi() {
|
|
50
50
|
var e, t, n;
|
|
51
51
|
return ht && !!(!((e = window) === null || e === void 0 || (e = e.navigator) === null || e === void 0) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) === null || t === void 0 || (t = t.navigator) === null || t === void 0 ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test((n = window) === null || n === void 0 ? void 0 : n.navigator.userAgent));
|
|
@@ -99,7 +99,7 @@ function lr(e) {
|
|
|
99
99
|
return gt();
|
|
100
100
|
}
|
|
101
101
|
// @__NO_SIDE_EFFECTS__
|
|
102
|
-
function
|
|
102
|
+
function lg(e) {
|
|
103
103
|
if (!ht) return e;
|
|
104
104
|
let t = 0, n, r;
|
|
105
105
|
const o = () => {
|
|
@@ -107,7 +107,7 @@ function sg(e) {
|
|
|
107
107
|
};
|
|
108
108
|
return ((...a) => (t += 1, r || (r = or(!0), n = r.run(() => e(...a))), Qe(o), n));
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ug(e, t = 1e4) {
|
|
111
111
|
return er((n, r) => {
|
|
112
112
|
let o = Z(e), a;
|
|
113
113
|
const i = () => setTimeout(() => {
|
|
@@ -141,13 +141,13 @@ function Oi(e, t, n = {}) {
|
|
|
141
141
|
isActive: l
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function dg(e, t) {
|
|
145
145
|
lr() && pi(e, t);
|
|
146
146
|
}
|
|
147
147
|
function ur(e, t = !0, n) {
|
|
148
148
|
lr() ? tr(e, n) : t ? e() : Kt(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function fg(e, t, n = {}) {
|
|
151
151
|
const { immediate: r = !0, immediateCallback: o = !1 } = n, a = Oe(!1);
|
|
152
152
|
let i;
|
|
153
153
|
function s() {
|
|
@@ -215,7 +215,7 @@ function dr(e) {
|
|
|
215
215
|
function ji(e) {
|
|
216
216
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function pg(...e) {
|
|
219
219
|
let t, n, r = {};
|
|
220
220
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
221
221
|
const { target: o = me, eventName: a = "keydown", passive: i = !1, dedupe: s = !1 } = r, c = ji(t);
|
|
@@ -460,7 +460,7 @@ function Hi(e = {}) {
|
|
|
460
460
|
}
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function mg(e, t, n = {}) {
|
|
464
464
|
const { window: r = me, ...o } = n;
|
|
465
465
|
let a;
|
|
466
466
|
const i = /* @__PURE__ */ dr(() => r && "ResizeObserver" in r), s = () => {
|
|
@@ -486,7 +486,7 @@ function fg(e, t, n = {}) {
|
|
|
486
486
|
}
|
|
487
487
|
const Ue = /* @__PURE__ */ new Map();
|
|
488
488
|
// @__NO_SIDE_EFFECTS__
|
|
489
|
-
function
|
|
489
|
+
function gg(e) {
|
|
490
490
|
const t = Qt();
|
|
491
491
|
function n(s) {
|
|
492
492
|
var c;
|
|
@@ -521,7 +521,7 @@ function pg(e) {
|
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
// @__NO_SIDE_EFFECTS__
|
|
524
|
-
function
|
|
524
|
+
function hg(e, t, n, r = {}) {
|
|
525
525
|
var o, a;
|
|
526
526
|
const { clone: i = !1, passive: s = !1, eventName: c, deep: l = !1, defaultValue: d, shouldEmit: u } = r, p = gt(), f = n || p?.emit || (p == null || (o = p.$emit) === null || o === void 0 ? void 0 : o.bind(p)) || (p == null || (a = p.proxy) === null || a === void 0 || (a = a.$emit) === null || a === void 0 ? void 0 : a.bind(p?.proxy));
|
|
527
527
|
let g = c;
|
|
@@ -6153,7 +6153,7 @@ function tt(e = {}) {
|
|
|
6153
6153
|
getFilteredTags: N
|
|
6154
6154
|
};
|
|
6155
6155
|
}
|
|
6156
|
-
function
|
|
6156
|
+
function Sg({
|
|
6157
6157
|
spec: e,
|
|
6158
6158
|
defaultTag: t = void 0,
|
|
6159
6159
|
defaultTagDescription: n = void 0
|
|
@@ -6182,7 +6182,7 @@ function zt(e) {
|
|
|
6182
6182
|
} : e;
|
|
6183
6183
|
}
|
|
6184
6184
|
function ao(e) {
|
|
6185
|
-
return e.map((t) => (t.items ? (t.items = ao(t.items), t.text = t.text?.startsWith("/") ? t.text : `/${t.text}`) : t.text && !t.isOperation && !t.text.startsWith("/") && !t.text.includes("<
|
|
6185
|
+
return e.map((t) => (t.items ? (t.items = ao(t.items), t.text = t.text?.startsWith("/") ? t.text : `/${t.text}`) : t.text && !t.isOperation && !t.text.startsWith("/") && !t.text.includes("<") && (t.text = `/${t.text}`), t));
|
|
6186
6186
|
}
|
|
6187
6187
|
function bm(e, t, n, r = 1, o = "") {
|
|
6188
6188
|
return co(so(e, t, n, r, o));
|
|
@@ -6281,15 +6281,19 @@ function $m(e, t, n) {
|
|
|
6281
6281
|
function uo(e, t, n = 1) {
|
|
6282
6282
|
return e.map((r) => (r.text && r.path && r.items && r.items.length && (r.text = t({ path: r.path, depth: n })), r.items && (r.items = uo(r.items, t, n + 1)), r));
|
|
6283
6283
|
}
|
|
6284
|
+
const wm = /\s+/g;
|
|
6285
|
+
function km(e) {
|
|
6286
|
+
return e.replace(wm, " ").trim();
|
|
6287
|
+
}
|
|
6284
6288
|
const Nt = {
|
|
6285
6289
|
linkPrefix: "/operations/",
|
|
6286
6290
|
tagLinkPrefix: "/tags/",
|
|
6287
6291
|
defaultTag: "Default"
|
|
6288
6292
|
};
|
|
6289
|
-
function
|
|
6293
|
+
function Tm({ path: e }) {
|
|
6290
6294
|
return e;
|
|
6291
6295
|
}
|
|
6292
|
-
function
|
|
6296
|
+
function $g({
|
|
6293
6297
|
spec: e,
|
|
6294
6298
|
linkPrefix: t = Nt.linkPrefix,
|
|
6295
6299
|
tagLinkPrefix: n = Nt.tagLinkPrefix,
|
|
@@ -6311,11 +6315,13 @@ function vg({
|
|
|
6311
6315
|
}
|
|
6312
6316
|
const l = a || (({ method: v, path: y, title: $ }) => {
|
|
6313
6317
|
const E = o[v] || v.toUpperCase(), T = $ || y;
|
|
6314
|
-
return
|
|
6318
|
+
return km(`
|
|
6319
|
+
<span class="OASidebarItem group/oaOperationLink">
|
|
6315
6320
|
<span class="OASidebarItem-badge OAMethodBadge--${v.toLowerCase()}">${E}</span>
|
|
6316
6321
|
<span class="OASidebarItem-text text">${T}</span>
|
|
6317
|
-
</span
|
|
6318
|
-
|
|
6322
|
+
</span>
|
|
6323
|
+
`);
|
|
6324
|
+
}), d = i || Tm;
|
|
6319
6325
|
function u({
|
|
6320
6326
|
method: v,
|
|
6321
6327
|
path: y,
|
|
@@ -6436,8 +6442,8 @@ function vg({
|
|
|
6436
6442
|
// TODO: Add `itemsByOperations` function
|
|
6437
6443
|
};
|
|
6438
6444
|
}
|
|
6439
|
-
const G = ["get", "put", "post", "delete", "options", "head", "patch", "trace"], fo = ["string", "number", "integer", "boolean", "null"],
|
|
6440
|
-
async function
|
|
6445
|
+
const G = ["get", "put", "post", "delete", "options", "head", "patch", "trace"], fo = ["string", "number", "integer", "boolean", "null"], wg = tt;
|
|
6446
|
+
async function xm(e) {
|
|
6441
6447
|
if (!e?.paths)
|
|
6442
6448
|
return e;
|
|
6443
6449
|
const t = kr(e.servers?.[0]?.url || "");
|
|
@@ -6472,19 +6478,19 @@ async function km(e) {
|
|
|
6472
6478
|
}
|
|
6473
6479
|
return e;
|
|
6474
6480
|
}
|
|
6475
|
-
const
|
|
6476
|
-
function
|
|
6481
|
+
const Om = /\//g;
|
|
6482
|
+
function Em(e) {
|
|
6477
6483
|
e.paths = e.paths || {};
|
|
6478
6484
|
for (const t of Object.keys(e.paths)) {
|
|
6479
6485
|
const n = e.paths[t];
|
|
6480
6486
|
for (const r of G) {
|
|
6481
6487
|
const o = n[r];
|
|
6482
|
-
o && (o.operationId || (o.operationId = `${r}${t.replace(
|
|
6488
|
+
o && (o.operationId || (o.operationId = `${r}${t.replace(Om, "-")}`));
|
|
6483
6489
|
}
|
|
6484
6490
|
}
|
|
6485
6491
|
return e;
|
|
6486
6492
|
}
|
|
6487
|
-
function
|
|
6493
|
+
function Cm(e) {
|
|
6488
6494
|
e.paths = e.paths || {};
|
|
6489
6495
|
for (const t of Object.keys(e.paths)) {
|
|
6490
6496
|
const n = e.paths[t];
|
|
@@ -6495,7 +6501,7 @@ function Om(e) {
|
|
|
6495
6501
|
}
|
|
6496
6502
|
return e;
|
|
6497
6503
|
}
|
|
6498
|
-
function
|
|
6504
|
+
function jm({
|
|
6499
6505
|
spec: e,
|
|
6500
6506
|
defaultTag: t = "Default",
|
|
6501
6507
|
defaultTagDescription: n = ""
|
|
@@ -6515,16 +6521,16 @@ function Em({
|
|
|
6515
6521
|
}), e;
|
|
6516
6522
|
}
|
|
6517
6523
|
function po(e, t = !1) {
|
|
6518
|
-
return
|
|
6524
|
+
return Am(e, t);
|
|
6519
6525
|
}
|
|
6520
|
-
function
|
|
6526
|
+
function Am(e, t) {
|
|
6521
6527
|
return Array.isArray(e) ? e.map((n) => Ke(n, t)) : Ke(e, t);
|
|
6522
6528
|
}
|
|
6523
6529
|
function Ke(e, t) {
|
|
6524
|
-
return e.meta?.isCircularReference ? "[Circular Reference]" : e.meta?.isConstant ?
|
|
6530
|
+
return e.meta?.isCircularReference ? "[Circular Reference]" : e.meta?.isConstant ? Pm(e) : go(e, "array") ? mo(e, t) : Lm(e) ? zn(e, t) : Rm(e) ? zn({
|
|
6525
6531
|
...e,
|
|
6526
6532
|
types: [e.types.find((n) => n !== "null") ?? "null"]
|
|
6527
|
-
}, t) : ho(e) ? yo(e, t) :
|
|
6533
|
+
}, t) : ho(e) ? yo(e, t) : Bm(e, "object") ? Wt(e.properties || [], t) : Ie(e.types[0] ?? "string", e.defaultValue);
|
|
6528
6534
|
}
|
|
6529
6535
|
function mo(e, t) {
|
|
6530
6536
|
return ho(e) ? [yo(e, t)] : e.meta?.hasPrefixItems && e.properties && Array.isArray(e.properties) ? e.properties.map((n) => Ke(n, t)) : e.properties && Array.isArray(e.properties) ? [Wt(e.properties, t)] : e.subtype ? e.subtype === "object" && e.properties ? [Wt(e.properties, t)] : t ? [Ze(e) ?? Ie(e.subtype, e.defaultValue)] : [Ie(e.subtype, e.defaultValue)] : [];
|
|
@@ -6540,7 +6546,7 @@ function zn(e, t) {
|
|
|
6540
6546
|
}
|
|
6541
6547
|
return e.constraints?.format === "binary" ? "" : Ie(e.types[0] ?? "string", e.defaultValue);
|
|
6542
6548
|
}
|
|
6543
|
-
function
|
|
6549
|
+
function Pm(e) {
|
|
6544
6550
|
const t = Ze(e);
|
|
6545
6551
|
return t ?? Ie(e.types[0] ?? "string", e.defaultValue);
|
|
6546
6552
|
}
|
|
@@ -6570,23 +6576,23 @@ function Ie(e, t) {
|
|
|
6570
6576
|
function go(e, t) {
|
|
6571
6577
|
return e.types?.length === 1 && e.types[0] === t;
|
|
6572
6578
|
}
|
|
6573
|
-
function
|
|
6579
|
+
function Lm(e) {
|
|
6574
6580
|
return e.types?.length === 1 && e.types[0] != null && fo.includes(e.types[0]);
|
|
6575
6581
|
}
|
|
6576
|
-
function
|
|
6582
|
+
function Rm(e) {
|
|
6577
6583
|
return e.types?.every((t) => t && fo.includes(t));
|
|
6578
6584
|
}
|
|
6579
|
-
function
|
|
6585
|
+
function Bm(e, t) {
|
|
6580
6586
|
return e.types?.includes(t) ?? !1;
|
|
6581
6587
|
}
|
|
6582
|
-
function
|
|
6588
|
+
function Im(e) {
|
|
6583
6589
|
return !!e.meta?.isOneOf && Array.isArray(e.properties);
|
|
6584
6590
|
}
|
|
6585
|
-
function
|
|
6591
|
+
function Nm(e) {
|
|
6586
6592
|
return !!e.meta?.isAnyOf && Array.isArray(e.properties);
|
|
6587
6593
|
}
|
|
6588
6594
|
function ho(e) {
|
|
6589
|
-
return
|
|
6595
|
+
return Im(e) || Nm(e);
|
|
6590
6596
|
}
|
|
6591
6597
|
function yo(e, t) {
|
|
6592
6598
|
return e.properties && e.properties.length > 0 ? Ke(e.properties[0], t) : t ? Ze(e) : Ie(e.types[0] ?? "string", e.defaultValue);
|
|
@@ -6661,7 +6667,7 @@ function vo() {
|
|
|
6661
6667
|
})(Mt)), Mt;
|
|
6662
6668
|
}
|
|
6663
6669
|
var Yn;
|
|
6664
|
-
function
|
|
6670
|
+
function Um() {
|
|
6665
6671
|
return Yn || (Yn = 1, (function(e) {
|
|
6666
6672
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.setDeclaration = e.setAttributes = e.setStringVal = e.createTag = e.checkChildTags = e.createEntityHandler = e.beautify = void 0;
|
|
6667
6673
|
const t = bo(), n = vo(), r = (l, d = t.DEFAULTS.LEVEL.INIT, u = t.DEFAULTS.BEAUTIFY.ENABLE) => {
|
|
@@ -6714,10 +6720,10 @@ function Im() {
|
|
|
6714
6720
|
})(Ut)), Ut;
|
|
6715
6721
|
}
|
|
6716
6722
|
var Kn;
|
|
6717
|
-
function
|
|
6723
|
+
function Mm() {
|
|
6718
6724
|
if (Kn) return it;
|
|
6719
6725
|
Kn = 1, Object.defineProperty(it, "__esModule", { value: !0 });
|
|
6720
|
-
const e =
|
|
6726
|
+
const e = Um(), t = vo(), n = bo();
|
|
6721
6727
|
return it.default = (r = n.DEFAULTS.EMPTY_OBJ, o = n.DEFAULTS.EMPTY_OBJ) => {
|
|
6722
6728
|
const a = o?.attrKey || n.DEFAULTS.ATTR_KEY, i = o?.contentKey || n.DEFAULTS.CONTENT_KEY, s = (0, e.createEntityHandler)(Object.assign({}, (0, t.isObj)(o?.entityMap) ? o?.entityMap : n.DEFAULTS.ENTITY_MAP));
|
|
6723
6729
|
let c = (0, e.setDeclaration)(o?.declaration, s, o?.beautify);
|
|
@@ -6741,18 +6747,18 @@ function Nm() {
|
|
|
6741
6747
|
}, it;
|
|
6742
6748
|
}
|
|
6743
6749
|
var Qn;
|
|
6744
|
-
function
|
|
6750
|
+
function _m() {
|
|
6745
6751
|
if (Qn) return Se;
|
|
6746
6752
|
Qn = 1;
|
|
6747
6753
|
var e = Se && Se.__importDefault || function(n) {
|
|
6748
6754
|
return n && n.__esModule ? n : { default: n };
|
|
6749
6755
|
};
|
|
6750
6756
|
Object.defineProperty(Se, "__esModule", { value: !0 }), Se.toXmlString = void 0;
|
|
6751
|
-
const t = e(
|
|
6757
|
+
const t = e(Mm());
|
|
6752
6758
|
return Se.toXmlString = t.default, Se;
|
|
6753
6759
|
}
|
|
6754
6760
|
var Xn;
|
|
6755
|
-
function
|
|
6761
|
+
function Dm() {
|
|
6756
6762
|
if (Xn) return ae;
|
|
6757
6763
|
Xn = 1;
|
|
6758
6764
|
var e = ae && ae.__createBinding || (Object.create ? (function(o, a, i, s) {
|
|
@@ -6774,19 +6780,19 @@ function Mm() {
|
|
|
6774
6780
|
return t(a, o), a;
|
|
6775
6781
|
};
|
|
6776
6782
|
Object.defineProperty(ae, "__esModule", { value: !0 }), ae.jsXml = void 0;
|
|
6777
|
-
const r = n(
|
|
6783
|
+
const r = n(_m());
|
|
6778
6784
|
return ae.jsXml = r, ae;
|
|
6779
6785
|
}
|
|
6780
|
-
var
|
|
6781
|
-
function
|
|
6786
|
+
var Fm = Dm();
|
|
6787
|
+
function Hm(e, t = !1) {
|
|
6782
6788
|
const n = po(e, t);
|
|
6783
|
-
return
|
|
6789
|
+
return Fm.jsXml.toXmlString(n);
|
|
6784
6790
|
}
|
|
6785
|
-
function
|
|
6791
|
+
function qm(e) {
|
|
6786
6792
|
return wr(e) ? {
|
|
6787
6793
|
key: "XML",
|
|
6788
6794
|
summary: "XML",
|
|
6789
|
-
valueGenerator:
|
|
6795
|
+
valueGenerator: Hm,
|
|
6790
6796
|
lang: "xml"
|
|
6791
6797
|
} : {
|
|
6792
6798
|
key: "JSON",
|
|
@@ -6797,12 +6803,12 @@ function Fm(e) {
|
|
|
6797
6803
|
};
|
|
6798
6804
|
}
|
|
6799
6805
|
function So(e, t, n = !1) {
|
|
6800
|
-
const r =
|
|
6806
|
+
const r = qm(e);
|
|
6801
6807
|
return {
|
|
6802
|
-
[r.key]:
|
|
6808
|
+
[r.key]: Vm(r, t, n)
|
|
6803
6809
|
};
|
|
6804
6810
|
}
|
|
6805
|
-
function
|
|
6811
|
+
function Vm(e, t, n = !1) {
|
|
6806
6812
|
return {
|
|
6807
6813
|
summary: e.summary,
|
|
6808
6814
|
description: "",
|
|
@@ -6832,13 +6838,13 @@ const $o = [
|
|
|
6832
6838
|
"uniqueItems",
|
|
6833
6839
|
"default"
|
|
6834
6840
|
];
|
|
6835
|
-
function
|
|
6841
|
+
function Jm(e) {
|
|
6836
6842
|
return Object.keys(e).some((t) => $o.includes(t));
|
|
6837
6843
|
}
|
|
6838
|
-
function
|
|
6844
|
+
function zm(e) {
|
|
6839
6845
|
return Object.entries(e).filter(([t]) => $o.includes(t)).reduce((t, [n, r]) => (t[n] = r, t), {});
|
|
6840
6846
|
}
|
|
6841
|
-
function
|
|
6847
|
+
function Gm(e) {
|
|
6842
6848
|
return wo({
|
|
6843
6849
|
key: "root",
|
|
6844
6850
|
value: e,
|
|
@@ -6849,7 +6855,7 @@ function wo(e) {
|
|
|
6849
6855
|
const { value: t } = e;
|
|
6850
6856
|
if (typeof t != "object" || t === null)
|
|
6851
6857
|
return;
|
|
6852
|
-
const n =
|
|
6858
|
+
const n = Wm(e.parent, t);
|
|
6853
6859
|
if (n)
|
|
6854
6860
|
e.parent.value[e.key] = {
|
|
6855
6861
|
type: "object",
|
|
@@ -6863,7 +6869,7 @@ function wo(e) {
|
|
|
6863
6869
|
parent: e
|
|
6864
6870
|
});
|
|
6865
6871
|
}
|
|
6866
|
-
function
|
|
6872
|
+
function Wm(e, t) {
|
|
6867
6873
|
const n = t && t[xe] ? t[xe] : t;
|
|
6868
6874
|
for (; e; ) {
|
|
6869
6875
|
const r = e.value;
|
|
@@ -6889,7 +6895,7 @@ class D {
|
|
|
6889
6895
|
...a && { examples: a },
|
|
6890
6896
|
...n.nullable && { nullable: n.nullable }
|
|
6891
6897
|
};
|
|
6892
|
-
return n.const !== void 0 && (i.meta = { ...i.meta || {}, isConstant: !0 }),
|
|
6898
|
+
return n.const !== void 0 && (i.meta = { ...i.meta || {}, isConstant: !0 }), Jm(n) && (i.constraints = zm(n)), Object.keys(n).forEach((s) => {
|
|
6893
6899
|
s.startsWith("x-") && (i.meta = i.meta || {}, i.meta.extra = i.meta.extra || {}, i.meta.extra[s] = n[s]);
|
|
6894
6900
|
}), i;
|
|
6895
6901
|
}
|
|
@@ -6944,7 +6950,7 @@ class D {
|
|
|
6944
6950
|
}
|
|
6945
6951
|
if (n.enum) {
|
|
6946
6952
|
let a = [];
|
|
6947
|
-
n.type ? a = Array.isArray(n.type) ? n.type : [n.type] : a =
|
|
6953
|
+
n.type ? a = Array.isArray(n.type) ? n.type : [n.type] : a = Ym(n.enum), a.length === 0 && (a = ["string"]);
|
|
6948
6954
|
const i = D.createBaseProperty(t, n, r);
|
|
6949
6955
|
return i.enum = n.enum, i.types = a, i;
|
|
6950
6956
|
}
|
|
@@ -7031,10 +7037,10 @@ class D {
|
|
|
7031
7037
|
function To(e) {
|
|
7032
7038
|
if (!e || Object.keys(e).length === 0)
|
|
7033
7039
|
return [];
|
|
7034
|
-
const t =
|
|
7040
|
+
const t = Gm(e);
|
|
7035
7041
|
return D.schemaToUiProperty("", t);
|
|
7036
7042
|
}
|
|
7037
|
-
function
|
|
7043
|
+
function Ym(e) {
|
|
7038
7044
|
const t = /* @__PURE__ */ new Set();
|
|
7039
7045
|
return e.forEach((n) => {
|
|
7040
7046
|
n === null ? t.add("null") : Array.isArray(n) ? t.add("array") : typeof n == "object" ? t.add("object") : typeof n == "string" ? t.add("string") : typeof n == "boolean" ? t.add("boolean") : typeof n == "number" && t.add(Number.isInteger(n) ? "integer" : "number");
|
|
@@ -7043,7 +7049,7 @@ function Gm(e) {
|
|
|
7043
7049
|
function Dt(e) {
|
|
7044
7050
|
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;
|
|
7045
7051
|
}
|
|
7046
|
-
function
|
|
7052
|
+
function Km(e) {
|
|
7047
7053
|
if (!e.paths)
|
|
7048
7054
|
return e;
|
|
7049
7055
|
for (const t of Object.values(e.paths))
|
|
@@ -7060,7 +7066,7 @@ function Wm(e) {
|
|
|
7060
7066
|
}
|
|
7061
7067
|
return e;
|
|
7062
7068
|
}
|
|
7063
|
-
function
|
|
7069
|
+
function Qm(e) {
|
|
7064
7070
|
if (!e.paths)
|
|
7065
7071
|
return e;
|
|
7066
7072
|
for (const t of Object.values(e.paths))
|
|
@@ -7079,7 +7085,7 @@ function Ym(e) {
|
|
|
7079
7085
|
return e;
|
|
7080
7086
|
}
|
|
7081
7087
|
const Zn = "None";
|
|
7082
|
-
function
|
|
7088
|
+
function Xm(e, t) {
|
|
7083
7089
|
const n = [];
|
|
7084
7090
|
return e ? (e.forEach((r) => {
|
|
7085
7091
|
const o = {
|
|
@@ -7091,13 +7097,13 @@ function Km(e, t) {
|
|
|
7091
7097
|
}), n.push(o);
|
|
7092
7098
|
}), n.length === 1 && n[0].id === Zn && Object.keys(n[0].schemes).length === 0 ? [] : n) : n;
|
|
7093
7099
|
}
|
|
7094
|
-
function
|
|
7100
|
+
function Zm(e) {
|
|
7095
7101
|
if (!e?.paths)
|
|
7096
7102
|
return e;
|
|
7097
7103
|
for (const t of Object.values(e.paths))
|
|
7098
7104
|
for (const n of G) {
|
|
7099
7105
|
const r = t[n];
|
|
7100
|
-
r && (r.securityUi =
|
|
7106
|
+
r && (r.securityUi = Xm(r.security ?? e.security ?? [], e.components?.securitySchemes || {}));
|
|
7101
7107
|
}
|
|
7102
7108
|
return e;
|
|
7103
7109
|
}
|
|
@@ -7108,13 +7114,13 @@ function $t() {
|
|
|
7108
7114
|
defaultTagDescription: i = void 0
|
|
7109
7115
|
}) {
|
|
7110
7116
|
let s = Ge(o);
|
|
7111
|
-
return s ? !s.openapi || !String(s.openapi).startsWith("3.") ? (console.warn("Only OpenAPI 3.x is supported"), {}) : (s?.paths && (s =
|
|
7117
|
+
return s ? !s.openapi || !String(s.openapi).startsWith("3.") ? (console.warn("Only OpenAPI 3.x is supported"), {}) : (s?.paths && (s = Em(s), s = Cm(s), s = jm({ spec: s, defaultTag: a, defaultTagDescription: i })), s.externalDocs = s.externalDocs || {}, s.info = s.info || {}, s.servers = s.servers || [], s.tags = s.tags || [], { ...s }) : {};
|
|
7112
7118
|
}
|
|
7113
7119
|
async function t({
|
|
7114
7120
|
spec: o
|
|
7115
7121
|
}) {
|
|
7116
7122
|
let a = Ge(o);
|
|
7117
|
-
const [i, s] = await Ae(() =>
|
|
7123
|
+
const [i, s] = await Ae(() => xm(a));
|
|
7118
7124
|
return a = s ? a : i, a;
|
|
7119
7125
|
}
|
|
7120
7126
|
function n({
|
|
@@ -7133,11 +7139,11 @@ function $t() {
|
|
|
7133
7139
|
c = d ? c : l;
|
|
7134
7140
|
const [u, p] = Ae(() => ym(c));
|
|
7135
7141
|
c = p ? c : u;
|
|
7136
|
-
const [f, g] = Ae(() =>
|
|
7142
|
+
const [f, g] = Ae(() => Zm(c));
|
|
7137
7143
|
c = g ? c : f;
|
|
7138
|
-
const [h, S] = Ae(() =>
|
|
7144
|
+
const [h, S] = Ae(() => Km(c));
|
|
7139
7145
|
c = S ? c : h;
|
|
7140
|
-
const [v, y] = Ae(() =>
|
|
7146
|
+
const [v, y] = Ae(() => Qm(c));
|
|
7141
7147
|
return c = y ? c : v, c.externalDocs = c.externalDocs || c.externalDocs || {}, c.info = c.info || c.info || {}, c.servers = c.servers || c.servers || [], c.tags = c.tags || c.tags || [], { ...c };
|
|
7142
7148
|
}
|
|
7143
7149
|
async function r({
|
|
@@ -7161,12 +7167,12 @@ function $t() {
|
|
|
7161
7167
|
parseAsync: r
|
|
7162
7168
|
};
|
|
7163
7169
|
}
|
|
7164
|
-
const
|
|
7170
|
+
const eg = /* @__PURE__ */ Symbol("openapiLocal");
|
|
7165
7171
|
let He = null;
|
|
7166
7172
|
function xo(e, t) {
|
|
7167
7173
|
return tt({ spec: e, originalSpec: t });
|
|
7168
7174
|
}
|
|
7169
|
-
function
|
|
7175
|
+
function tg(e) {
|
|
7170
7176
|
const t = Ge(e.spec), n = $t().parseSync({
|
|
7171
7177
|
spec: e.spec,
|
|
7172
7178
|
defaultTag: e.defaultTag,
|
|
@@ -7174,7 +7180,7 @@ function Zm(e) {
|
|
|
7174
7180
|
});
|
|
7175
7181
|
return xo(n, t);
|
|
7176
7182
|
}
|
|
7177
|
-
async function
|
|
7183
|
+
async function ng(e) {
|
|
7178
7184
|
const t = Ge(e.spec), n = await $t().parseAsync({
|
|
7179
7185
|
spec: e.spec,
|
|
7180
7186
|
defaultTag: e.defaultTag,
|
|
@@ -7182,24 +7188,24 @@ async function eg(e) {
|
|
|
7182
7188
|
});
|
|
7183
7189
|
return xo(n, t);
|
|
7184
7190
|
}
|
|
7185
|
-
function
|
|
7186
|
-
return rr(
|
|
7191
|
+
function rg() {
|
|
7192
|
+
return rr(eg, null);
|
|
7187
7193
|
}
|
|
7188
|
-
function
|
|
7194
|
+
function kg() {
|
|
7189
7195
|
return He;
|
|
7190
7196
|
}
|
|
7191
|
-
function
|
|
7192
|
-
e.config && Rr(e.config), e.spec && (He =
|
|
7197
|
+
function Tg(e = {}) {
|
|
7198
|
+
e.config && Rr(e.config), e.spec && (He = tg({
|
|
7193
7199
|
spec: e.spec,
|
|
7194
7200
|
defaultTag: e.config?.spec?.defaultTag,
|
|
7195
7201
|
defaultTagDescription: e.config?.spec?.defaultTagDescription
|
|
7196
7202
|
}));
|
|
7197
|
-
const t =
|
|
7203
|
+
const t = rg() ?? He ?? tt({});
|
|
7198
7204
|
async function n(r = {}) {
|
|
7199
7205
|
const o = r.spec ?? e.spec;
|
|
7200
7206
|
if (!o)
|
|
7201
7207
|
throw new Error("No spec provided");
|
|
7202
|
-
return He = await
|
|
7208
|
+
return He = await ng({
|
|
7203
7209
|
spec: o,
|
|
7204
7210
|
defaultTag: e.config?.spec?.defaultTag,
|
|
7205
7211
|
defaultTagDescription: e.config?.spec?.defaultTagDescription
|
|
@@ -7211,7 +7217,7 @@ function wg(e = {}) {
|
|
|
7211
7217
|
};
|
|
7212
7218
|
}
|
|
7213
7219
|
export {
|
|
7214
|
-
|
|
7220
|
+
zm as A,
|
|
7215
7221
|
Tc as B,
|
|
7216
7222
|
xc as C,
|
|
7217
7223
|
vc as D,
|
|
@@ -7220,42 +7226,43 @@ export {
|
|
|
7220
7226
|
wr as G,
|
|
7221
7227
|
Or as H,
|
|
7222
7228
|
kr as I,
|
|
7223
|
-
|
|
7229
|
+
gg as J,
|
|
7224
7230
|
Zd as K,
|
|
7225
7231
|
Tr as L,
|
|
7226
7232
|
Er as M,
|
|
7227
7233
|
Xd as N,
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7234
|
+
eg as O,
|
|
7235
|
+
km as P,
|
|
7236
|
+
wg as Q,
|
|
7237
|
+
G as R,
|
|
7238
|
+
fo as S,
|
|
7239
|
+
Ge as T,
|
|
7240
|
+
Sg as U,
|
|
7241
|
+
$g as V,
|
|
7242
|
+
Tg as a,
|
|
7243
|
+
rg as b,
|
|
7237
7244
|
tt as c,
|
|
7238
|
-
|
|
7245
|
+
lg as d,
|
|
7239
7246
|
ht as e,
|
|
7240
|
-
|
|
7241
|
-
|
|
7247
|
+
cg as f,
|
|
7248
|
+
kg as g,
|
|
7242
7249
|
lt as h,
|
|
7243
7250
|
pm as i,
|
|
7244
7251
|
ct as j,
|
|
7245
7252
|
Qe as k,
|
|
7246
|
-
|
|
7253
|
+
ag as l,
|
|
7247
7254
|
me as m,
|
|
7248
|
-
|
|
7249
|
-
|
|
7255
|
+
hg as n,
|
|
7256
|
+
pg as o,
|
|
7250
7257
|
$t as p,
|
|
7251
|
-
|
|
7252
|
-
|
|
7258
|
+
sg as q,
|
|
7259
|
+
ug as r,
|
|
7253
7260
|
Ci as s,
|
|
7254
|
-
|
|
7261
|
+
dg as t,
|
|
7255
7262
|
Rr as u,
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7263
|
+
ig as v,
|
|
7264
|
+
mg as w,
|
|
7265
|
+
fg as x,
|
|
7259
7266
|
_i as y,
|
|
7260
7267
|
_t as z
|
|
7261
7268
|
};
|