@nuxt/hints 1.0.0-alpha.2 → 1.0.0-alpha.3
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 +1 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{DU4nAREn.js → 3uZvltmj.js} +1 -1
- package/dist/client/_nuxt/{sLvN_949.js → BAIAvlAa.js} +1 -1
- package/dist/client/_nuxt/{Do-INFgi.js → BTIAbEX4.js} +1 -1
- package/dist/client/_nuxt/{2GP93Pxi.js → BYW8DJWC.js} +1 -1
- package/dist/client/_nuxt/{eOWES_5F.js → C3mMm8J8.js} +1 -1
- package/dist/client/_nuxt/{tqtdBwhO.js → CXsvEkWC.js} +1 -1
- package/dist/client/_nuxt/{DH652Aoo.js → CeyKylGo.js} +3 -3
- package/dist/client/_nuxt/Ckm7x3qc.js +6 -0
- package/dist/client/_nuxt/{MKoRwnMq.js → CsLEpyV7.js} +1 -1
- package/dist/client/_nuxt/{DJJ7OUMB.js → CzzNqrSg.js} +1 -1
- package/dist/client/_nuxt/{NleAzG8P.js → D4_iv3hh.js} +1 -1
- package/dist/client/_nuxt/{Cw07ACep.js → DBrXuSAZ.js} +1 -1
- package/dist/client/_nuxt/DDotc1jX.js +21 -0
- package/dist/client/_nuxt/{qj2RPQZX.js → DE7yhJ9n.js} +1 -1
- package/dist/client/_nuxt/{CnK8MTSM.js → DHQR4-dF.js} +1 -1
- package/dist/client/_nuxt/{nO2mFgKf.js → DxmC8vYz.js} +1 -1
- package/dist/client/_nuxt/{z9IIGYC-.js → DyZ7ilof.js} +1 -1
- package/dist/client/_nuxt/{rlWm2Bc0.js → REBTOKr5.js} +1 -1
- package/dist/client/_nuxt/aF-l9SMX.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/b0fc6608-9102-4a88-9842-0a2ed6526798.json +1 -0
- package/dist/client/_nuxt/{CEG3Q07z.js → cgN_UPQ0.js} +1 -1
- package/dist/client/_nuxt/error-404.MLlw4bJt.css +1 -0
- package/dist/client/_nuxt/error-500.CBQQ1PSP.css +1 -0
- package/dist/client/_nuxt/{BHrmToEH.js → qdsjHGoJ.js} +1 -1
- package/dist/client/_nuxt/{CJC4nrSc.js → s2_R2YM5.js} +1 -1
- package/dist/client/hydration/index.html +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/third-party-scripts/index.html +1 -1
- package/dist/client/web-vitals/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +107 -36
- package/dist/runtime/hydration/component.d.ts +3 -0
- package/dist/runtime/hydration/component.js +23 -0
- package/dist/runtime/hydration/composables.js +3 -3
- package/package.json +5 -2
- package/dist/client/_nuxt/CGQlbfJh.js +0 -6
- package/dist/client/_nuxt/D7VJQ_DO.js +0 -1
- package/dist/client/_nuxt/builds/meta/13453bb2-1adb-44c7-ac19-ec44784e7219.json +0 -1
- package/dist/client/_nuxt/error-404.CrTd3IxL.css +0 -1
- package/dist/client/_nuxt/error-500.evxQRSU6.css +0 -1
- package/dist/client/_nuxt/umNIi3wV.js +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#e0def4","activityBar.background":"#232136","activityBar.dropBorder":"#393552","activityBar.foreground":"#e0def4","activityBar.inactiveForeground":"#908caa","activityBarBadge.background":"#ea9a97","activityBarBadge.foreground":"#232136","badge.background":"#ea9a97","badge.foreground":"#232136","banner.background":"#2a273f","banner.foreground":"#e0def4","banner.iconForeground":"#908caa","breadcrumb.activeSelectionForeground":"#ea9a97","breadcrumb.background":"#232136","breadcrumb.focusForeground":"#908caa","breadcrumb.foreground":"#6e6a86","breadcrumbPicker.background":"#2a273f","button.background":"#ea9a97","button.foreground":"#232136","button.hoverBackground":"#ea9a97e6","button.secondaryBackground":"#2a273f","button.secondaryForeground":"#e0def4","button.secondaryHoverBackground":"#393552","charts.blue":"#9ccfd8","charts.foreground":"#e0def4","charts.green":"#3e8fb0","charts.lines":"#908caa","charts.orange":"#ea9a97","charts.purple":"#c4a7e7","charts.red":"#eb6f92","charts.yellow":"#f6c177","checkbox.background":"#2a273f","checkbox.border":"#817c9c26","checkbox.foreground":"#e0def4","debugExceptionWidget.background":"#2a273f","debugExceptionWidget.border":"#817c9c26","debugIcon.breakpointCurrentStackframeForeground":"#908caa","debugIcon.breakpointDisabledForeground":"#908caa","debugIcon.breakpointForeground":"#908caa","debugIcon.breakpointStackframeForeground":"#908caa","debugIcon.breakpointUnverifiedForeground":"#908caa","debugIcon.continueForeground":"#908caa","debugIcon.disconnectForeground":"#908caa","debugIcon.pauseForeground":"#908caa","debugIcon.restartForeground":"#908caa","debugIcon.startForeground":"#908caa","debugIcon.stepBackForeground":"#908caa","debugIcon.stepIntoForeground":"#908caa","debugIcon.stepOutForeground":"#908caa","debugIcon.stepOverForeground":"#908caa","debugIcon.stopForeground":"#eb6f92","debugToolBar.background":"#2a273f","debugToolBar.border":"#393552","descriptionForeground":"#908caa","diffEditor.border":"#393552","diffEditor.diagonalFill":"#817c9c4d","diffEditor.insertedLineBackground":"#9ccfd826","diffEditor.insertedTextBackground":"#9ccfd826","diffEditor.removedLineBackground":"#eb6f9226","diffEditor.removedTextBackground":"#eb6f9226","diffEditorOverview.insertedForeground":"#9ccfd880","diffEditorOverview.removedForeground":"#eb6f9280","dropdown.background":"#2a273f","dropdown.border":"#817c9c26","dropdown.foreground":"#e0def4","dropdown.listBackground":"#2a273f","editor.background":"#232136","editor.findMatchBackground":"#f6c17733","editor.findMatchBorder":"#f6c17780","editor.findMatchForeground":"#e0def4","editor.findMatchHighlightBackground":"#817c9c4d","editor.findMatchHighlightForeground":"#e0def4cc","editor.findRangeHighlightBackground":"#817c9c4d","editor.findRangeHighlightBorder":"#0000","editor.focusedStackFrameHighlightBackground":"#817c9c26","editor.foldBackground":"#817c9c26","editor.foreground":"#e0def4","editor.hoverHighlightBackground":"#0000","editor.inactiveSelectionBackground":"#817c9c14","editor.inlineValuesBackground":"#0000","editor.inlineValuesForeground":"#908caa","editor.lineHighlightBackground":"#817c9c14","editor.lineHighlightBorder":"#0000","editor.linkedEditingBackground":"#817c9c26","editor.rangeHighlightBackground":"#817c9c14","editor.selectionBackground":"#817c9c26","editor.selectionForeground":"#e0def4","editor.selectionHighlightBackground":"#817c9c26","editor.selectionHighlightBorder":"#232136","editor.snippetFinalTabstopHighlightBackground":"#817c9c26","editor.snippetFinalTabstopHighlightBorder":"#2a273f","editor.snippetTabstopHighlightBackground":"#817c9c26","editor.snippetTabstopHighlightBorder":"#2a273f","editor.stackFrameHighlightBackground":"#817c9c26","editor.symbolHighlightBackground":"#817c9c26","editor.symbolHighlightBorder":"#0000","editor.wordHighlightBackground":"#817c9c26","editor.wordHighlightBorder":"#0000","editor.wordHighlightStrongBackground":"#817c9c26","editor.wordHighlightStrongBorder":"#817c9c26","editorBracketHighlight.foreground1":"#eb6f9280","editorBracketHighlight.foreground2":"#3e8fb080","editorBracketHighlight.foreground3":"#f6c17780","editorBracketHighlight.foreground4":"#9ccfd880","editorBracketHighlight.foreground5":"#ea9a9780","editorBracketHighlight.foreground6":"#c4a7e780","editorBracketMatch.background":"#0000","editorBracketMatch.border":"#908caa","editorBracketPairGuide.activeBackground1":"#3e8fb0","editorBracketPairGuide.activeBackground2":"#ea9a97","editorBracketPairGuide.activeBackground3":"#c4a7e7","editorBracketPairGuide.activeBackground4":"#9ccfd8","editorBracketPairGuide.activeBackground5":"#f6c177","editorBracketPairGuide.activeBackground6":"#eb6f92","editorBracketPairGuide.background1":"#3e8fb080","editorBracketPairGuide.background2":"#ea9a9780","editorBracketPairGuide.background3":"#c4a7e780","editorBracketPairGuide.background4":"#9ccfd880","editorBracketPairGuide.background5":"#f6c17780","editorBracketPairGuide.background6":"#eb6f9280","editorCodeLens.foreground":"#ea9a97","editorCursor.background":"#e0def4","editorCursor.foreground":"#6e6a86","editorError.border":"#0000","editorError.foreground":"#eb6f92","editorGhostText.foreground":"#908caa","editorGroup.border":"#0000","editorGroup.dropBackground":"#2a273f","editorGroup.emptyBackground":"#0000","editorGroup.focusedEmptyBorder":"#0000","editorGroupHeader.noTabsBackground":"#0000","editorGroupHeader.tabsBackground":"#0000","editorGroupHeader.tabsBorder":"#0000","editorGutter.addedBackground":"#9ccfd8","editorGutter.background":"#232136","editorGutter.commentRangeForeground":"#393552","editorGutter.deletedBackground":"#eb6f92","editorGutter.foldingControlForeground":"#c4a7e7","editorGutter.modifiedBackground":"#ea9a97","editorHint.border":"#0000","editorHint.foreground":"#908caa","editorHoverWidget.background":"#2a273f","editorHoverWidget.border":"#6e6a8680","editorHoverWidget.foreground":"#908caa","editorHoverWidget.highlightForeground":"#e0def4","editorHoverWidget.statusBarBackground":"#0000","editorIndentGuide.activeBackground1":"#6e6a86","editorIndentGuide.background1":"#817c9c4d","editorInfo.border":"#393552","editorInfo.foreground":"#9ccfd8","editorInlayHint.background":"#39355280","editorInlayHint.foreground":"#908caa80","editorInlayHint.parameterBackground":"#39355280","editorInlayHint.parameterForeground":"#c4a7e780","editorInlayHint.typeBackground":"#39355280","editorInlayHint.typeForeground":"#9ccfd880","editorLightBulb.foreground":"#3e8fb0","editorLightBulbAutoFix.foreground":"#ea9a97","editorLineNumber.activeForeground":"#e0def4","editorLineNumber.foreground":"#908caa","editorLink.activeForeground":"#ea9a97","editorMarkerNavigation.background":"#2a273f","editorMarkerNavigationError.background":"#2a273f","editorMarkerNavigationInfo.background":"#2a273f","editorMarkerNavigationWarning.background":"#2a273f","editorOverviewRuler.addedForeground":"#9ccfd880","editorOverviewRuler.background":"#232136","editorOverviewRuler.border":"#817c9c4d","editorOverviewRuler.bracketMatchForeground":"#908caa","editorOverviewRuler.commentForeground":"#908caa80","editorOverviewRuler.commentUnresolvedForeground":"#f6c17780","editorOverviewRuler.commonContentForeground":"#817c9c14","editorOverviewRuler.currentContentForeground":"#817c9c26","editorOverviewRuler.deletedForeground":"#eb6f9280","editorOverviewRuler.errorForeground":"#eb6f9280","editorOverviewRuler.findMatchForeground":"#817c9c4d","editorOverviewRuler.incomingContentForeground":"#c4a7e780","editorOverviewRuler.infoForeground":"#9ccfd880","editorOverviewRuler.modifiedForeground":"#ea9a9780","editorOverviewRuler.rangeHighlightForeground":"#817c9c4d","editorOverviewRuler.selectionHighlightForeground":"#817c9c4d","editorOverviewRuler.warningForeground":"#f6c17780","editorOverviewRuler.wordHighlightForeground":"#817c9c26","editorOverviewRuler.wordHighlightStrongForeground":"#817c9c4d","editorPane.background":"#0000","editorRuler.foreground":"#817c9c4d","editorSuggestWidget.background":"#2a273f","editorSuggestWidget.border":"#0000","editorSuggestWidget.focusHighlightForeground":"#ea9a97","editorSuggestWidget.foreground":"#908caa","editorSuggestWidget.highlightForeground":"#ea9a97","editorSuggestWidget.selectedBackground":"#817c9c26","editorSuggestWidget.selectedForeground":"#e0def4","editorSuggestWidget.selectedIconForeground":"#e0def4","editorUnnecessaryCode.border":"#0000","editorUnnecessaryCode.opacity":"#e0def480","editorWarning.border":"#0000","editorWarning.foreground":"#f6c177","editorWhitespace.foreground":"#6e6a8680","editorWidget.background":"#2a273f","editorWidget.border":"#393552","editorWidget.foreground":"#908caa","editorWidget.resizeBorder":"#6e6a86","errorForeground":"#eb6f92","extensionBadge.remoteBackground":"#c4a7e7","extensionBadge.remoteForeground":"#232136","extensionButton.prominentBackground":"#ea9a97","extensionButton.prominentForeground":"#232136","extensionButton.prominentHoverBackground":"#ea9a97e6","extensionIcon.preReleaseForeground":"#3e8fb0","extensionIcon.starForeground":"#ea9a97","extensionIcon.verifiedForeground":"#c4a7e7","focusBorder":"#817c9c26","foreground":"#e0def4","git.blame.editorDecorationForeground":"#6e6a86","gitDecoration.addedResourceForeground":"#9ccfd8","gitDecoration.conflictingResourceForeground":"#eb6f92","gitDecoration.deletedResourceForeground":"#908caa","gitDecoration.ignoredResourceForeground":"#6e6a86","gitDecoration.modifiedResourceForeground":"#ea9a97","gitDecoration.renamedResourceForeground":"#3e8fb0","gitDecoration.stageDeletedResourceForeground":"#eb6f92","gitDecoration.stageModifiedResourceForeground":"#c4a7e7","gitDecoration.submoduleResourceForeground":"#f6c177","gitDecoration.untrackedResourceForeground":"#f6c177","icon.foreground":"#908caa","input.background":"#39355280","input.border":"#817c9c26","input.foreground":"#e0def4","input.placeholderForeground":"#908caa","inputOption.activeBackground":"#ea9a9726","inputOption.activeBorder":"#0000","inputOption.activeForeground":"#ea9a97","inputValidation.errorBackground":"#2a273f","inputValidation.errorBorder":"#817c9c4d","inputValidation.errorForeground":"#eb6f92","inputValidation.infoBackground":"#2a273f","inputValidation.infoBorder":"#817c9c4d","inputValidation.infoForeground":"#9ccfd8","inputValidation.warningBackground":"#2a273f","inputValidation.warningBorder":"#817c9c4d","inputValidation.warningForeground":"#9ccfd880","keybindingLabel.background":"#393552","keybindingLabel.border":"#817c9c4d","keybindingLabel.bottomBorder":"#817c9c4d","keybindingLabel.foreground":"#c4a7e7","keybindingTable.headerBackground":"#393552","keybindingTable.rowsBackground":"#2a273f","list.activeSelectionBackground":"#817c9c26","list.activeSelectionForeground":"#e0def4","list.deemphasizedForeground":"#908caa","list.dropBackground":"#2a273f","list.errorForeground":"#eb6f92","list.filterMatchBackground":"#2a273f","list.filterMatchBorder":"#ea9a97","list.focusBackground":"#817c9c4d","list.focusForeground":"#e0def4","list.focusOutline":"#817c9c26","list.highlightForeground":"#ea9a97","list.hoverBackground":"#817c9c14","list.hoverForeground":"#e0def4","list.inactiveFocusBackground":"#817c9c14","list.inactiveSelectionBackground":"#2a273f","list.inactiveSelectionForeground":"#e0def4","list.invalidItemForeground":"#eb6f92","list.warningForeground":"#f6c177","listFilterWidget.background":"#2a273f","listFilterWidget.noMatchesOutline":"#eb6f92","listFilterWidget.outline":"#393552","menu.background":"#2a273f","menu.border":"#817c9c14","menu.foreground":"#e0def4","menu.selectionBackground":"#817c9c26","menu.selectionBorder":"#393552","menu.selectionForeground":"#e0def4","menu.separatorBackground":"#817c9c4d","menubar.selectionBackground":"#817c9c26","menubar.selectionBorder":"#817c9c14","menubar.selectionForeground":"#e0def4","merge.border":"#393552","merge.commonContentBackground":"#817c9c26","merge.commonHeaderBackground":"#817c9c26","merge.currentContentBackground":"#f6c17780","merge.currentHeaderBackground":"#f6c17780","merge.incomingContentBackground":"#9ccfd880","merge.incomingHeaderBackground":"#9ccfd880","minimap.background":"#2a273f","minimap.errorHighlight":"#eb6f9280","minimap.findMatchHighlight":"#817c9c26","minimap.selectionHighlight":"#817c9c26","minimap.warningHighlight":"#f6c17780","minimapGutter.addedBackground":"#9ccfd8","minimapGutter.deletedBackground":"#eb6f92","minimapGutter.modifiedBackground":"#ea9a97","minimapSlider.activeBackground":"#817c9c4d","minimapSlider.background":"#817c9c26","minimapSlider.hoverBackground":"#817c9c26","notebook.cellBorderColor":"#9ccfd880","notebook.cellEditorBackground":"#2a273f","notebook.cellHoverBackground":"#39355280","notebook.focusedCellBackground":"#817c9c14","notebook.focusedCellBorder":"#9ccfd8","notebook.outputContainerBackgroundColor":"#817c9c14","notificationCenter.border":"#817c9c26","notificationCenterHeader.background":"#2a273f","notificationCenterHeader.foreground":"#908caa","notificationLink.foreground":"#c4a7e7","notificationToast.border":"#817c9c26","notifications.background":"#2a273f","notifications.border":"#817c9c26","notifications.foreground":"#e0def4","notificationsErrorIcon.foreground":"#eb6f92","notificationsInfoIcon.foreground":"#9ccfd8","notificationsWarningIcon.foreground":"#f6c177","panel.background":"#2a273f","panel.border":"#0000","panel.dropBorder":"#393552","panelInput.border":"#2a273f","panelSection.dropBackground":"#817c9c26","panelSectionHeader.background":"#2a273f","panelSectionHeader.foreground":"#e0def4","panelTitle.activeBorder":"#817c9c4d","panelTitle.activeForeground":"#e0def4","panelTitle.inactiveForeground":"#908caa","peekView.border":"#393552","peekViewEditor.background":"#2a273f","peekViewEditor.matchHighlightBackground":"#817c9c4d","peekViewResult.background":"#2a273f","peekViewResult.fileForeground":"#908caa","peekViewResult.lineForeground":"#908caa","peekViewResult.matchHighlightBackground":"#817c9c4d","peekViewResult.selectionBackground":"#817c9c26","peekViewResult.selectionForeground":"#e0def4","peekViewTitle.background":"#393552","peekViewTitleDescription.foreground":"#908caa","pickerGroup.border":"#817c9c4d","pickerGroup.foreground":"#c4a7e7","ports.iconRunningProcessForeground":"#ea9a97","problemsErrorIcon.foreground":"#eb6f92","problemsInfoIcon.foreground":"#9ccfd8","problemsWarningIcon.foreground":"#f6c177","progressBar.background":"#ea9a97","quickInput.background":"#2a273f","quickInput.foreground":"#908caa","quickInputList.focusBackground":"#817c9c26","quickInputList.focusForeground":"#e0def4","quickInputList.focusIconForeground":"#e0def4","scrollbar.shadow":"#2a273f4d","scrollbarSlider.activeBackground":"#3e8fb080","scrollbarSlider.background":"#817c9c26","scrollbarSlider.hoverBackground":"#817c9c4d","searchEditor.findMatchBackground":"#817c9c26","selection.background":"#817c9c4d","settings.focusedRowBackground":"#2a273f","settings.focusedRowBorder":"#817c9c26","settings.headerForeground":"#e0def4","settings.modifiedItemIndicator":"#ea9a97","settings.rowHoverBackground":"#2a273f","sideBar.background":"#232136","sideBar.dropBackground":"#2a273f","sideBar.foreground":"#908caa","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#817c9c26","statusBar.background":"#232136","statusBar.debuggingBackground":"#c4a7e7","statusBar.debuggingForeground":"#232136","statusBar.foreground":"#908caa","statusBar.noFolderBackground":"#232136","statusBar.noFolderForeground":"#908caa","statusBarItem.activeBackground":"#817c9c4d","statusBarItem.errorBackground":"#232136","statusBarItem.errorForeground":"#eb6f92","statusBarItem.hoverBackground":"#817c9c26","statusBarItem.prominentBackground":"#393552","statusBarItem.prominentForeground":"#e0def4","statusBarItem.prominentHoverBackground":"#817c9c26","statusBarItem.remoteBackground":"#232136","statusBarItem.remoteForeground":"#f6c177","symbolIcon.arrayForeground":"#908caa","symbolIcon.classForeground":"#908caa","symbolIcon.colorForeground":"#908caa","symbolIcon.constantForeground":"#908caa","symbolIcon.constructorForeground":"#908caa","symbolIcon.enumeratorForeground":"#908caa","symbolIcon.enumeratorMemberForeground":"#908caa","symbolIcon.eventForeground":"#908caa","symbolIcon.fieldForeground":"#908caa","symbolIcon.fileForeground":"#908caa","symbolIcon.folderForeground":"#908caa","symbolIcon.functionForeground":"#908caa","symbolIcon.interfaceForeground":"#908caa","symbolIcon.keyForeground":"#908caa","symbolIcon.keywordForeground":"#908caa","symbolIcon.methodForeground":"#908caa","symbolIcon.moduleForeground":"#908caa","symbolIcon.namespaceForeground":"#908caa","symbolIcon.nullForeground":"#908caa","symbolIcon.numberForeground":"#908caa","symbolIcon.objectForeground":"#908caa","symbolIcon.operatorForeground":"#908caa","symbolIcon.packageForeground":"#908caa","symbolIcon.propertyForeground":"#908caa","symbolIcon.referenceForeground":"#908caa","symbolIcon.snippetForeground":"#908caa","symbolIcon.stringForeground":"#908caa","symbolIcon.structForeground":"#908caa","symbolIcon.textForeground":"#908caa","symbolIcon.typeParameterForeground":"#908caa","symbolIcon.unitForeground":"#908caa","symbolIcon.variableForeground":"#908caa","tab.activeBackground":"#817c9c14","tab.activeForeground":"#e0def4","tab.activeModifiedBorder":"#9ccfd8","tab.border":"#0000","tab.hoverBackground":"#817c9c26","tab.inactiveBackground":"#0000","tab.inactiveForeground":"#908caa","tab.inactiveModifiedBorder":"#9ccfd880","tab.lastPinnedBorder":"#6e6a86","tab.unfocusedActiveBackground":"#0000","tab.unfocusedHoverBackground":"#0000","tab.unfocusedInactiveBackground":"#0000","tab.unfocusedInactiveModifiedBorder":"#9ccfd880","terminal.ansiBlack":"#393552","terminal.ansiBlue":"#9ccfd8","terminal.ansiBrightBlack":"#908caa","terminal.ansiBrightBlue":"#9ccfd8","terminal.ansiBrightCyan":"#ea9a97","terminal.ansiBrightGreen":"#3e8fb0","terminal.ansiBrightMagenta":"#c4a7e7","terminal.ansiBrightRed":"#eb6f92","terminal.ansiBrightWhite":"#e0def4","terminal.ansiBrightYellow":"#f6c177","terminal.ansiCyan":"#ea9a97","terminal.ansiGreen":"#3e8fb0","terminal.ansiMagenta":"#c4a7e7","terminal.ansiRed":"#eb6f92","terminal.ansiWhite":"#e0def4","terminal.ansiYellow":"#f6c177","terminal.dropBackground":"#817c9c26","terminal.foreground":"#e0def4","terminal.selectionBackground":"#817c9c26","terminal.tab.activeBorder":"#e0def4","terminalCursor.background":"#e0def4","terminalCursor.foreground":"#6e6a86","textBlockQuote.background":"#2a273f","textBlockQuote.border":"#817c9c26","textCodeBlock.background":"#2a273f","textLink.activeForeground":"#c4a7e7e6","textLink.foreground":"#c4a7e7","textPreformat.foreground":"#f6c177","textSeparator.foreground":"#908caa","titleBar.activeBackground":"#232136","titleBar.activeForeground":"#908caa","titleBar.inactiveBackground":"#2a273f","titleBar.inactiveForeground":"#908caa","toolbar.activeBackground":"#817c9c4d","toolbar.hoverBackground":"#817c9c26","tree.indentGuidesStroke":"#908caa","walkThrough.embeddedEditorBackground":"#232136","welcomePage.background":"#232136","widget.shadow":"#2a273f4d","window.activeBorder":"#2a273f","window.inactiveBorder":"#2a273f"},"displayName":"Rosé Pine Moon","name":"rose-pine-moon","tokenColors":[{"scope":["comment"],"settings":{"fontStyle":"italic","foreground":"#6e6a86"}},{"scope":["constant"],"settings":{"foreground":"#3e8fb0"}},{"scope":["constant.numeric","constant.language"],"settings":{"foreground":"#ea9a97"}},{"scope":["entity.name"],"settings":{"foreground":"#ea9a97"}},{"scope":["entity.name.section","entity.name.tag","entity.name.namespace","entity.name.type"],"settings":{"foreground":"#9ccfd8"}},{"scope":["entity.other.attribute-name","entity.other.inherited-class"],"settings":{"fontStyle":"italic","foreground":"#c4a7e7"}},{"scope":["invalid"],"settings":{"foreground":"#eb6f92"}},{"scope":["invalid.deprecated"],"settings":{"foreground":"#908caa"}},{"scope":["keyword","variable.language.this"],"settings":{"foreground":"#3e8fb0"}},{"scope":["markup.inserted.diff"],"settings":{"foreground":"#9ccfd8"}},{"scope":["markup.deleted.diff"],"settings":{"foreground":"#eb6f92"}},{"scope":"markup.heading","settings":{"fontStyle":"bold"}},{"scope":"markup.bold.markdown","settings":{"fontStyle":"bold"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["meta.diff.range"],"settings":{"foreground":"#c4a7e7"}},{"scope":["meta.tag","meta.brace"],"settings":{"foreground":"#e0def4"}},{"scope":["meta.import","meta.export"],"settings":{"foreground":"#3e8fb0"}},{"scope":"meta.directive.vue","settings":{"fontStyle":"italic","foreground":"#c4a7e7"}},{"scope":"meta.property-name.css","settings":{"foreground":"#9ccfd8"}},{"scope":"meta.property-value.css","settings":{"foreground":"#f6c177"}},{"scope":"meta.tag.other.html","settings":{"foreground":"#908caa"}},{"scope":["punctuation"],"settings":{"foreground":"#908caa"}},{"scope":["punctuation.accessor"],"settings":{"foreground":"#3e8fb0"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#f6c177"}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#6e6a86"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#3e8fb0"}},{"scope":["string"],"settings":{"foreground":"#f6c177"}},{"scope":["support"],"settings":{"foreground":"#9ccfd8"}},{"scope":["support.constant"],"settings":{"foreground":"#f6c177"}},{"scope":["support.function"],"settings":{"fontStyle":"italic","foreground":"#eb6f92"}},{"scope":["variable"],"settings":{"fontStyle":"italic","foreground":"#ea9a97"}},{"scope":["variable.other","variable.language","variable.function","variable.argument"],"settings":{"foreground":"#e0def4"}},{"scope":["variable.parameter"],"settings":{"foreground":"#c4a7e7"}}],"type":"dark"}'));export{e as default};
|
|
1
|
+
const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#e0def4","activityBar.background":"#232136","activityBar.dropBorder":"#393552","activityBar.foreground":"#e0def4","activityBar.inactiveForeground":"#908caa","activityBarBadge.background":"#ea9a97","activityBarBadge.foreground":"#232136","badge.background":"#ea9a97","badge.foreground":"#232136","banner.background":"#2a273f","banner.foreground":"#e0def4","banner.iconForeground":"#908caa","breadcrumb.activeSelectionForeground":"#ea9a97","breadcrumb.background":"#232136","breadcrumb.focusForeground":"#908caa","breadcrumb.foreground":"#6e6a86","breadcrumbPicker.background":"#2a273f","button.background":"#ea9a97","button.foreground":"#232136","button.hoverBackground":"#ea9a97e6","button.secondaryBackground":"#2a273f","button.secondaryForeground":"#e0def4","button.secondaryHoverBackground":"#393552","charts.blue":"#9ccfd8","charts.foreground":"#e0def4","charts.green":"#3e8fb0","charts.lines":"#908caa","charts.orange":"#ea9a97","charts.purple":"#c4a7e7","charts.red":"#eb6f92","charts.yellow":"#f6c177","checkbox.background":"#2a273f","checkbox.border":"#817c9c26","checkbox.foreground":"#e0def4","debugExceptionWidget.background":"#2a273f","debugExceptionWidget.border":"#817c9c26","debugIcon.breakpointCurrentStackframeForeground":"#908caa","debugIcon.breakpointDisabledForeground":"#908caa","debugIcon.breakpointForeground":"#908caa","debugIcon.breakpointStackframeForeground":"#908caa","debugIcon.breakpointUnverifiedForeground":"#908caa","debugIcon.continueForeground":"#908caa","debugIcon.disconnectForeground":"#908caa","debugIcon.pauseForeground":"#908caa","debugIcon.restartForeground":"#908caa","debugIcon.startForeground":"#908caa","debugIcon.stepBackForeground":"#908caa","debugIcon.stepIntoForeground":"#908caa","debugIcon.stepOutForeground":"#908caa","debugIcon.stepOverForeground":"#908caa","debugIcon.stopForeground":"#eb6f92","debugToolBar.background":"#2a273f","debugToolBar.border":"#393552","descriptionForeground":"#908caa","diffEditor.border":"#393552","diffEditor.diagonalFill":"#817c9c4d","diffEditor.insertedLineBackground":"#9ccfd826","diffEditor.insertedTextBackground":"#9ccfd826","diffEditor.removedLineBackground":"#eb6f9226","diffEditor.removedTextBackground":"#eb6f9226","diffEditorOverview.insertedForeground":"#9ccfd880","diffEditorOverview.removedForeground":"#eb6f9280","dropdown.background":"#2a273f","dropdown.border":"#817c9c26","dropdown.foreground":"#e0def4","dropdown.listBackground":"#2a273f","editor.background":"#232136","editor.findMatchBackground":"#f6c17733","editor.findMatchBorder":"#f6c17780","editor.findMatchForeground":"#e0def4","editor.findMatchHighlightBackground":"#817c9c4d","editor.findMatchHighlightForeground":"#e0def4cc","editor.findRangeHighlightBackground":"#817c9c4d","editor.findRangeHighlightBorder":"#0000","editor.focusedStackFrameHighlightBackground":"#817c9c26","editor.foldBackground":"#817c9c26","editor.foreground":"#e0def4","editor.hoverHighlightBackground":"#0000","editor.inactiveSelectionBackground":"#817c9c14","editor.inlineValuesBackground":"#0000","editor.inlineValuesForeground":"#908caa","editor.lineHighlightBackground":"#817c9c14","editor.lineHighlightBorder":"#0000","editor.linkedEditingBackground":"#817c9c26","editor.rangeHighlightBackground":"#817c9c14","editor.selectionBackground":"#817c9c26","editor.selectionForeground":"#e0def4","editor.selectionHighlightBackground":"#817c9c26","editor.selectionHighlightBorder":"#232136","editor.snippetFinalTabstopHighlightBackground":"#817c9c26","editor.snippetFinalTabstopHighlightBorder":"#2a273f","editor.snippetTabstopHighlightBackground":"#817c9c26","editor.snippetTabstopHighlightBorder":"#2a273f","editor.stackFrameHighlightBackground":"#817c9c26","editor.symbolHighlightBackground":"#817c9c26","editor.symbolHighlightBorder":"#0000","editor.wordHighlightBackground":"#817c9c26","editor.wordHighlightBorder":"#0000","editor.wordHighlightStrongBackground":"#817c9c26","editor.wordHighlightStrongBorder":"#817c9c26","editorBracketHighlight.foreground1":"#eb6f9280","editorBracketHighlight.foreground2":"#3e8fb080","editorBracketHighlight.foreground3":"#f6c17780","editorBracketHighlight.foreground4":"#9ccfd880","editorBracketHighlight.foreground5":"#ea9a9780","editorBracketHighlight.foreground6":"#c4a7e780","editorBracketMatch.background":"#0000","editorBracketMatch.border":"#908caa","editorBracketPairGuide.activeBackground1":"#3e8fb0","editorBracketPairGuide.activeBackground2":"#ea9a97","editorBracketPairGuide.activeBackground3":"#c4a7e7","editorBracketPairGuide.activeBackground4":"#9ccfd8","editorBracketPairGuide.activeBackground5":"#f6c177","editorBracketPairGuide.activeBackground6":"#eb6f92","editorBracketPairGuide.background1":"#3e8fb080","editorBracketPairGuide.background2":"#ea9a9780","editorBracketPairGuide.background3":"#c4a7e780","editorBracketPairGuide.background4":"#9ccfd880","editorBracketPairGuide.background5":"#f6c17780","editorBracketPairGuide.background6":"#eb6f9280","editorCodeLens.foreground":"#ea9a97","editorCursor.background":"#e0def4","editorCursor.foreground":"#6e6a86","editorError.border":"#0000","editorError.foreground":"#eb6f92","editorGhostText.foreground":"#908caa","editorGroup.border":"#0000","editorGroup.dropBackground":"#2a273f","editorGroup.emptyBackground":"#0000","editorGroup.focusedEmptyBorder":"#0000","editorGroupHeader.noTabsBackground":"#0000","editorGroupHeader.tabsBackground":"#0000","editorGroupHeader.tabsBorder":"#0000","editorGutter.addedBackground":"#9ccfd8","editorGutter.background":"#232136","editorGutter.commentRangeForeground":"#393552","editorGutter.deletedBackground":"#eb6f92","editorGutter.foldingControlForeground":"#c4a7e7","editorGutter.modifiedBackground":"#ea9a97","editorHint.border":"#0000","editorHint.foreground":"#908caa","editorHoverWidget.background":"#2a273f","editorHoverWidget.border":"#6e6a8680","editorHoverWidget.foreground":"#908caa","editorHoverWidget.highlightForeground":"#e0def4","editorHoverWidget.statusBarBackground":"#0000","editorIndentGuide.activeBackground1":"#6e6a86","editorIndentGuide.background1":"#817c9c4d","editorInfo.border":"#393552","editorInfo.foreground":"#9ccfd8","editorInlayHint.background":"#39355280","editorInlayHint.foreground":"#908caa80","editorInlayHint.parameterBackground":"#39355280","editorInlayHint.parameterForeground":"#c4a7e780","editorInlayHint.typeBackground":"#39355280","editorInlayHint.typeForeground":"#9ccfd880","editorLightBulb.foreground":"#3e8fb0","editorLightBulbAutoFix.foreground":"#ea9a97","editorLineNumber.activeForeground":"#e0def4","editorLineNumber.foreground":"#908caa","editorLink.activeForeground":"#ea9a97","editorMarkerNavigation.background":"#2a273f","editorMarkerNavigationError.background":"#2a273f","editorMarkerNavigationInfo.background":"#2a273f","editorMarkerNavigationWarning.background":"#2a273f","editorOverviewRuler.addedForeground":"#9ccfd880","editorOverviewRuler.background":"#232136","editorOverviewRuler.border":"#817c9c4d","editorOverviewRuler.bracketMatchForeground":"#908caa","editorOverviewRuler.commentForeground":"#908caa80","editorOverviewRuler.commentUnresolvedForeground":"#f6c17780","editorOverviewRuler.commonContentForeground":"#817c9c14","editorOverviewRuler.currentContentForeground":"#817c9c26","editorOverviewRuler.deletedForeground":"#eb6f9280","editorOverviewRuler.errorForeground":"#eb6f9280","editorOverviewRuler.findMatchForeground":"#817c9c4d","editorOverviewRuler.incomingContentForeground":"#c4a7e780","editorOverviewRuler.infoForeground":"#9ccfd880","editorOverviewRuler.modifiedForeground":"#ea9a9780","editorOverviewRuler.rangeHighlightForeground":"#817c9c4d","editorOverviewRuler.selectionHighlightForeground":"#817c9c4d","editorOverviewRuler.warningForeground":"#f6c17780","editorOverviewRuler.wordHighlightForeground":"#817c9c26","editorOverviewRuler.wordHighlightStrongForeground":"#817c9c4d","editorPane.background":"#0000","editorRuler.foreground":"#817c9c4d","editorSuggestWidget.background":"#2a273f","editorSuggestWidget.border":"#0000","editorSuggestWidget.focusHighlightForeground":"#ea9a97","editorSuggestWidget.foreground":"#908caa","editorSuggestWidget.highlightForeground":"#ea9a97","editorSuggestWidget.selectedBackground":"#817c9c26","editorSuggestWidget.selectedForeground":"#e0def4","editorSuggestWidget.selectedIconForeground":"#e0def4","editorUnnecessaryCode.border":"#0000","editorUnnecessaryCode.opacity":"#e0def480","editorWarning.border":"#0000","editorWarning.foreground":"#f6c177","editorWhitespace.foreground":"#6e6a8680","editorWidget.background":"#2a273f","editorWidget.border":"#393552","editorWidget.foreground":"#908caa","editorWidget.resizeBorder":"#6e6a86","errorForeground":"#eb6f92","extensionBadge.remoteBackground":"#c4a7e7","extensionBadge.remoteForeground":"#232136","extensionButton.prominentBackground":"#ea9a97","extensionButton.prominentForeground":"#232136","extensionButton.prominentHoverBackground":"#ea9a97e6","extensionIcon.preReleaseForeground":"#3e8fb0","extensionIcon.starForeground":"#ea9a97","extensionIcon.verifiedForeground":"#c4a7e7","focusBorder":"#817c9c26","foreground":"#e0def4","git.blame.editorDecorationForeground":"#6e6a86","gitDecoration.addedResourceForeground":"#9ccfd8","gitDecoration.conflictingResourceForeground":"#eb6f92","gitDecoration.deletedResourceForeground":"#908caa","gitDecoration.ignoredResourceForeground":"#6e6a86","gitDecoration.modifiedResourceForeground":"#ea9a97","gitDecoration.renamedResourceForeground":"#3e8fb0","gitDecoration.stageDeletedResourceForeground":"#eb6f92","gitDecoration.stageModifiedResourceForeground":"#c4a7e7","gitDecoration.submoduleResourceForeground":"#f6c177","gitDecoration.untrackedResourceForeground":"#f6c177","icon.foreground":"#908caa","input.background":"#39355280","input.border":"#817c9c26","input.foreground":"#e0def4","input.placeholderForeground":"#908caa","inputOption.activeBackground":"#ea9a9726","inputOption.activeBorder":"#0000","inputOption.activeForeground":"#ea9a97","inputValidation.errorBackground":"#2a273f","inputValidation.errorBorder":"#817c9c4d","inputValidation.errorForeground":"#eb6f92","inputValidation.infoBackground":"#2a273f","inputValidation.infoBorder":"#817c9c4d","inputValidation.infoForeground":"#9ccfd8","inputValidation.warningBackground":"#2a273f","inputValidation.warningBorder":"#817c9c4d","inputValidation.warningForeground":"#9ccfd880","keybindingLabel.background":"#393552","keybindingLabel.border":"#817c9c4d","keybindingLabel.bottomBorder":"#817c9c4d","keybindingLabel.foreground":"#c4a7e7","keybindingTable.headerBackground":"#393552","keybindingTable.rowsBackground":"#2a273f","list.activeSelectionBackground":"#817c9c26","list.activeSelectionForeground":"#e0def4","list.deemphasizedForeground":"#908caa","list.dropBackground":"#2a273f","list.errorForeground":"#eb6f92","list.filterMatchBackground":"#2a273f","list.filterMatchBorder":"#ea9a97","list.focusBackground":"#817c9c4d","list.focusForeground":"#e0def4","list.focusOutline":"#817c9c26","list.highlightForeground":"#ea9a97","list.hoverBackground":"#817c9c14","list.hoverForeground":"#e0def4","list.inactiveFocusBackground":"#817c9c14","list.inactiveSelectionBackground":"#2a273f","list.inactiveSelectionForeground":"#e0def4","list.invalidItemForeground":"#eb6f92","list.warningForeground":"#f6c177","listFilterWidget.background":"#2a273f","listFilterWidget.noMatchesOutline":"#eb6f92","listFilterWidget.outline":"#393552","menu.background":"#2a273f","menu.border":"#817c9c14","menu.foreground":"#e0def4","menu.selectionBackground":"#817c9c26","menu.selectionBorder":"#393552","menu.selectionForeground":"#e0def4","menu.separatorBackground":"#817c9c4d","menubar.selectionBackground":"#817c9c26","menubar.selectionBorder":"#817c9c14","menubar.selectionForeground":"#e0def4","merge.border":"#393552","merge.commonContentBackground":"#817c9c26","merge.commonHeaderBackground":"#817c9c26","merge.currentContentBackground":"#f6c17733","merge.currentHeaderBackground":"#f6c17733","merge.incomingContentBackground":"#9ccfd833","merge.incomingHeaderBackground":"#9ccfd833","minimap.background":"#2a273f","minimap.errorHighlight":"#eb6f9280","minimap.findMatchHighlight":"#817c9c26","minimap.selectionHighlight":"#817c9c26","minimap.warningHighlight":"#f6c17780","minimapGutter.addedBackground":"#9ccfd8","minimapGutter.deletedBackground":"#eb6f92","minimapGutter.modifiedBackground":"#ea9a97","minimapSlider.activeBackground":"#817c9c4d","minimapSlider.background":"#817c9c26","minimapSlider.hoverBackground":"#817c9c26","notebook.cellBorderColor":"#9ccfd880","notebook.cellEditorBackground":"#2a273f","notebook.cellHoverBackground":"#39355280","notebook.focusedCellBackground":"#817c9c14","notebook.focusedCellBorder":"#9ccfd8","notebook.outputContainerBackgroundColor":"#817c9c14","notificationCenter.border":"#817c9c26","notificationCenterHeader.background":"#2a273f","notificationCenterHeader.foreground":"#908caa","notificationLink.foreground":"#c4a7e7","notificationToast.border":"#817c9c26","notifications.background":"#2a273f","notifications.border":"#817c9c26","notifications.foreground":"#e0def4","notificationsErrorIcon.foreground":"#eb6f92","notificationsInfoIcon.foreground":"#9ccfd8","notificationsWarningIcon.foreground":"#f6c177","panel.background":"#2a273f","panel.border":"#0000","panel.dropBorder":"#393552","panelInput.border":"#2a273f","panelSection.dropBackground":"#817c9c26","panelSectionHeader.background":"#2a273f","panelSectionHeader.foreground":"#e0def4","panelTitle.activeBorder":"#817c9c4d","panelTitle.activeForeground":"#e0def4","panelTitle.inactiveForeground":"#908caa","peekView.border":"#393552","peekViewEditor.background":"#2a273f","peekViewEditor.matchHighlightBackground":"#817c9c4d","peekViewResult.background":"#2a273f","peekViewResult.fileForeground":"#908caa","peekViewResult.lineForeground":"#908caa","peekViewResult.matchHighlightBackground":"#817c9c4d","peekViewResult.selectionBackground":"#817c9c26","peekViewResult.selectionForeground":"#e0def4","peekViewTitle.background":"#393552","peekViewTitleDescription.foreground":"#908caa","pickerGroup.border":"#817c9c4d","pickerGroup.foreground":"#c4a7e7","ports.iconRunningProcessForeground":"#ea9a97","problemsErrorIcon.foreground":"#eb6f92","problemsInfoIcon.foreground":"#9ccfd8","problemsWarningIcon.foreground":"#f6c177","progressBar.background":"#ea9a97","quickInput.background":"#2a273f","quickInput.foreground":"#908caa","quickInputList.focusBackground":"#817c9c26","quickInputList.focusForeground":"#e0def4","quickInputList.focusIconForeground":"#e0def4","scrollbar.shadow":"#2a273f4d","scrollbarSlider.activeBackground":"#3e8fb080","scrollbarSlider.background":"#817c9c26","scrollbarSlider.hoverBackground":"#817c9c4d","searchEditor.findMatchBackground":"#817c9c26","selection.background":"#817c9c4d","settings.focusedRowBackground":"#2a273f","settings.focusedRowBorder":"#817c9c26","settings.headerForeground":"#e0def4","settings.modifiedItemIndicator":"#ea9a97","settings.rowHoverBackground":"#2a273f","sideBar.background":"#232136","sideBar.dropBackground":"#2a273f","sideBar.foreground":"#908caa","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#817c9c26","statusBar.background":"#232136","statusBar.debuggingBackground":"#c4a7e7","statusBar.debuggingForeground":"#232136","statusBar.foreground":"#908caa","statusBar.noFolderBackground":"#232136","statusBar.noFolderForeground":"#908caa","statusBarItem.activeBackground":"#817c9c4d","statusBarItem.errorBackground":"#232136","statusBarItem.errorForeground":"#eb6f92","statusBarItem.hoverBackground":"#817c9c26","statusBarItem.prominentBackground":"#393552","statusBarItem.prominentForeground":"#e0def4","statusBarItem.prominentHoverBackground":"#817c9c26","statusBarItem.remoteBackground":"#232136","statusBarItem.remoteForeground":"#f6c177","symbolIcon.arrayForeground":"#908caa","symbolIcon.classForeground":"#908caa","symbolIcon.colorForeground":"#908caa","symbolIcon.constantForeground":"#908caa","symbolIcon.constructorForeground":"#908caa","symbolIcon.enumeratorForeground":"#908caa","symbolIcon.enumeratorMemberForeground":"#908caa","symbolIcon.eventForeground":"#908caa","symbolIcon.fieldForeground":"#908caa","symbolIcon.fileForeground":"#908caa","symbolIcon.folderForeground":"#908caa","symbolIcon.functionForeground":"#908caa","symbolIcon.interfaceForeground":"#908caa","symbolIcon.keyForeground":"#908caa","symbolIcon.keywordForeground":"#908caa","symbolIcon.methodForeground":"#908caa","symbolIcon.moduleForeground":"#908caa","symbolIcon.namespaceForeground":"#908caa","symbolIcon.nullForeground":"#908caa","symbolIcon.numberForeground":"#908caa","symbolIcon.objectForeground":"#908caa","symbolIcon.operatorForeground":"#908caa","symbolIcon.packageForeground":"#908caa","symbolIcon.propertyForeground":"#908caa","symbolIcon.referenceForeground":"#908caa","symbolIcon.snippetForeground":"#908caa","symbolIcon.stringForeground":"#908caa","symbolIcon.structForeground":"#908caa","symbolIcon.textForeground":"#908caa","symbolIcon.typeParameterForeground":"#908caa","symbolIcon.unitForeground":"#908caa","symbolIcon.variableForeground":"#908caa","tab.activeBackground":"#817c9c14","tab.activeForeground":"#e0def4","tab.activeModifiedBorder":"#9ccfd8","tab.border":"#0000","tab.hoverBackground":"#817c9c26","tab.inactiveBackground":"#0000","tab.inactiveForeground":"#908caa","tab.inactiveModifiedBorder":"#9ccfd880","tab.lastPinnedBorder":"#6e6a86","tab.unfocusedActiveBackground":"#0000","tab.unfocusedHoverBackground":"#0000","tab.unfocusedInactiveBackground":"#0000","tab.unfocusedInactiveModifiedBorder":"#9ccfd880","terminal.ansiBlack":"#393552","terminal.ansiBlue":"#9ccfd8","terminal.ansiBrightBlack":"#908caa","terminal.ansiBrightBlue":"#9ccfd8","terminal.ansiBrightCyan":"#ea9a97","terminal.ansiBrightGreen":"#3e8fb0","terminal.ansiBrightMagenta":"#c4a7e7","terminal.ansiBrightRed":"#eb6f92","terminal.ansiBrightWhite":"#e0def4","terminal.ansiBrightYellow":"#f6c177","terminal.ansiCyan":"#ea9a97","terminal.ansiGreen":"#3e8fb0","terminal.ansiMagenta":"#c4a7e7","terminal.ansiRed":"#eb6f92","terminal.ansiWhite":"#e0def4","terminal.ansiYellow":"#f6c177","terminal.dropBackground":"#817c9c26","terminal.foreground":"#e0def4","terminal.selectionBackground":"#817c9c26","terminal.tab.activeBorder":"#e0def4","terminalCursor.background":"#e0def4","terminalCursor.foreground":"#6e6a86","textBlockQuote.background":"#2a273f","textBlockQuote.border":"#817c9c26","textCodeBlock.background":"#2a273f","textLink.activeForeground":"#c4a7e7e6","textLink.foreground":"#c4a7e7","textPreformat.foreground":"#f6c177","textSeparator.foreground":"#908caa","titleBar.activeBackground":"#232136","titleBar.activeForeground":"#908caa","titleBar.inactiveBackground":"#2a273f","titleBar.inactiveForeground":"#908caa","toolbar.activeBackground":"#817c9c4d","toolbar.hoverBackground":"#817c9c26","tree.indentGuidesStroke":"#908caa","walkThrough.embeddedEditorBackground":"#232136","welcomePage.background":"#232136","widget.shadow":"#2a273f4d","window.activeBorder":"#2a273f","window.inactiveBorder":"#2a273f"},"displayName":"Rosé Pine Moon","name":"rose-pine-moon","tokenColors":[{"scope":["comment"],"settings":{"fontStyle":"italic","foreground":"#6e6a86"}},{"scope":["constant"],"settings":{"foreground":"#3e8fb0"}},{"scope":["constant.numeric","constant.language"],"settings":{"foreground":"#ea9a97"}},{"scope":["entity.name"],"settings":{"foreground":"#ea9a97"}},{"scope":["entity.name.section","entity.name.tag","entity.name.namespace","entity.name.type"],"settings":{"foreground":"#9ccfd8"}},{"scope":["entity.other.attribute-name","entity.other.inherited-class"],"settings":{"fontStyle":"italic","foreground":"#c4a7e7"}},{"scope":["invalid"],"settings":{"foreground":"#eb6f92"}},{"scope":["invalid.deprecated"],"settings":{"foreground":"#908caa"}},{"scope":["keyword","variable.language.this"],"settings":{"foreground":"#3e8fb0"}},{"scope":["markup.inserted.diff"],"settings":{"foreground":"#9ccfd8"}},{"scope":["markup.deleted.diff"],"settings":{"foreground":"#eb6f92"}},{"scope":"markup.heading","settings":{"fontStyle":"bold"}},{"scope":"markup.bold.markdown","settings":{"fontStyle":"bold"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["meta.diff.range"],"settings":{"foreground":"#c4a7e7"}},{"scope":["meta.tag","meta.brace"],"settings":{"foreground":"#e0def4"}},{"scope":["meta.import","meta.export"],"settings":{"foreground":"#3e8fb0"}},{"scope":"meta.directive.vue","settings":{"fontStyle":"italic","foreground":"#c4a7e7"}},{"scope":"meta.property-name.css","settings":{"foreground":"#9ccfd8"}},{"scope":"meta.property-value.css","settings":{"foreground":"#f6c177"}},{"scope":"meta.tag.other.html","settings":{"foreground":"#908caa"}},{"scope":["punctuation"],"settings":{"foreground":"#908caa"}},{"scope":["punctuation.accessor"],"settings":{"foreground":"#3e8fb0"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#f6c177"}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#6e6a86"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#3e8fb0"}},{"scope":["string"],"settings":{"foreground":"#f6c177"}},{"scope":["support"],"settings":{"foreground":"#9ccfd8"}},{"scope":["support.constant"],"settings":{"foreground":"#f6c177"}},{"scope":["support.function"],"settings":{"fontStyle":"italic","foreground":"#eb6f92"}},{"scope":["variable"],"settings":{"fontStyle":"italic","foreground":"#ea9a97"}},{"scope":["variable.other","variable.language","variable.function","variable.argument"],"settings":{"foreground":"#e0def4"}},{"scope":["variable.parameter"],"settings":{"foreground":"#c4a7e7"}}],"type":"dark"}'));export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as S,_ as D}from"./
|
|
1
|
+
import{b as S,_ as D}from"./CzzNqrSg.js";import{_ as E}from"./REBTOKr5.js";import H from"./CeyKylGo.js";import{_ as q}from"./DxmC8vYz.js";import{g as A,j as f,c as b,o as d,a as t,k as a,l as m,b as u,w as n,m as p,F as I,s as M,t as i,d as c}from"./Ckm7x3qc.js";import"./s2_R2YM5.js";const U={class:"p-4 space-y-4"},V={class:"grid gap-3 md:grid-cols-5 grid-cols-2"},$={class:"text-2xl font-bold"},F={class:"text-2xl font-bold"},j={class:"text-xs text-neutral-500"},O={class:"text-2xl font-bold text-yellow-600"},G={class:"text-xs text-neutral-500"},J={class:"text-2xl font-bold text-orange-600"},K={class:"text-2xl font-bold text-red-600"},Q={class:"grid gap-3 md:grid-cols-2"},W={class:"flex items-start justify-between gap-3"},X={class:"min-w-0"},Y={class:"text-xs text-neutral-500"},Z=["href"],ee={class:"flex items-center gap-2 shrink-0"},te={class:"mt-2 flex flex-wrap gap-2 text-[11px]"},se={class:"mt-3 grid grid-cols-2 gap-2"},oe={class:"n-border-base border rounded p-2"},re={class:"font-mono"},ne={class:"n-border-base border rounded p-2"},ie={class:"font-mono"},le={class:"n-border-base border rounded p-2"},de={class:"font-mono"},ae={class:"n-border-base border rounded p-2"},ce={class:"font-mono"},ue={class:"mt-3 flex items-center gap-2"},ke=A({__name:"third-party-scripts",setup(me){const{scripts:w,isUsingNuxtScripts:T}=S(),g={network:300,parse:200},x=f(()=>(w.value||[]).map(e=>{const s=e.element,l=s.src,_=new URL(l,location.href),o=!!(s.ownerDocument&&s.ownerDocument.head&&s.ownerDocument.head.contains(s))&&!s.async&&!s.defer&&s.type!=="module";return{element:s,url:l,domain:_.host,https:_.protocol==="https:",loaded:e.loaded,renderBlocking:o,requestTime:s.requestTime,downloadTime:s.downloadTime,totalNetworkTime:s.totalNetworkTime,parseExecuteTime:s.parseExecuteTime,crossorigin:s.getAttribute("crossorigin"),integrity:s.getAttribute("integrity"),referrerPolicy:s.getAttribute("referrerpolicy"),async:s.async,defer:s.defer,isModule:s.type==="module"}})),h=f(()=>x.value.slice().sort((r,e)=>{const s=(r.totalNetworkTime||0)+(r.parseExecuteTime||0);return(e.totalNetworkTime||0)+(e.parseExecuteTime||0)-s})),v=f(()=>x.value.length),C=f(()=>x.value.filter(r=>r.loaded).length),N=f(()=>x.value.filter(r=>(r.totalNetworkTime||0)>g.network).length),z=f(()=>x.value.filter(r=>(r.parseExecuteTime||0)>g.parse).length),P=f(()=>x.value.filter(r=>r.renderBlocking).length);function y(r){return typeof r=="number"?`${r.toFixed(0)}ms`:"N/A"}function B(r){console.log("[@nuxt/hints]: Third-party script element",r)}async function L(r){try{await navigator.clipboard.writeText(r)}catch{}}return(r,e)=>{const s=D,l=E,_=H,k=q;return d(),b("div",U,[t("div",V,[u(s,{"p-3":""},{default:n(()=>[e[0]||(e[0]=t("div",{class:"text-xs text-neutral-500"}," 3rd-party scripts ",-1)),t("div",$,i(p(v)),1)]),_:1}),u(s,{"p-3":""},{default:n(()=>[e[1]||(e[1]=t("div",{class:"text-xs text-neutral-500"}," Loaded ",-1)),t("div",F,i(p(C)),1)]),_:1}),u(s,{"p-3":""},{default:n(()=>[t("div",j," Slow network (>"+i(g.network)+"ms) ",1),t("div",O,i(p(N)),1)]),_:1}),u(s,{"p-3":""},{default:n(()=>[t("div",G," Long parse (>"+i(g.parse)+"ms) ",1),t("div",J,i(p(z)),1)]),_:1}),u(s,{"p-3":""},{default:n(()=>[e[2]||(e[2]=t("div",{class:"text-xs text-neutral-500"}," Render-blocking ",-1)),t("div",K,i(p(P)),1)]),_:1})]),p(v)>0&&!p(T)?(d(),a(l,{key:0,n:"yellow6"},{default:n(()=>[...e[3]||(e[3]=[c(" Third-party scripts detected. Consider using @nuxt/scripts for best-practice loading and management. ",-1)])]),_:1})):m("",!0),t("div",Q,[(d(!0),b(I,null,M(p(h),o=>(d(),a(s,{key:o.url,"p-3":""},{default:n(()=>[t("div",W,[t("div",X,[t("div",Y,i(o.domain),1),t("a",{href:o.url,target:"_blank",rel:"noopener",class:"block truncate text-sm text-blue-600"},i(o.url),9,Z)]),t("div",ee,[u(l,{type:o.loaded?"success":"warning",size:"small"},{default:n(()=>[c(i(o.loaded?"Loaded":"Pending"),1)]),_:2},1032,["type"])])]),t("div",te,[o.renderBlocking?(d(),a(l,{key:0,type:"error",size:"small",title:"In document head and not async/defer/module; blocks HTML parsing and delays first paint. Prefer defer or type=module."},{default:n(()=>[...e[4]||(e[4]=[c(" render-blocking ",-1)])]),_:1})):m("",!0),o.isModule?(d(),a(l,{key:1,size:"small",title:"Module scripts are deferred by default and don't block parsing; execution order differs from classic scripts."},{default:n(()=>[...e[5]||(e[5]=[c(" module ",-1)])]),_:1})):m("",!0),o.async?(d(),a(l,{key:2,size:"small",title:"Doesn't block parsing; executes as soon as it's downloaded. Order is not guaranteed."},{default:n(()=>[...e[6]||(e[6]=[c(" async ",-1)])]),_:1})):m("",!0),o.defer?(d(),a(l,{key:3,size:"small",title:"Doesn't block parsing; executes after document parsing, preserving script order."},{default:n(()=>[...e[7]||(e[7]=[c(" defer ",-1)])]),_:1})):m("",!0),o.crossorigin?(d(),a(l,{key:4,size:"small",title:"CORS mode for this script. Use 'anonymous' for cross-origin with SRI and better error reporting."},{default:n(()=>[c(" crossorigin="+i(o.crossorigin),1)]),_:2},1024)):(d(),a(l,{key:5,type:"warning",size:"small",title:"Cross-origin script without crossorigin. Add crossorigin='anonymous' for SRI and better error reporting."},{default:n(()=>[...e[8]||(e[8]=[c(" missing crossorigin ",-1)])]),_:1})),o.integrity?(d(),a(l,{key:6,size:"small",title:"Subresource Integrity: protects against CDN/script tampering."},{default:n(()=>[...e[9]||(e[9]=[c(" sri ",-1)])]),_:1})):m("",!0),o.referrerPolicy?(d(),a(l,{key:7,size:"small",title:"Referrer policy controls the Referer header for this request."},{default:n(()=>[c(" referrer="+i(o.referrerPolicy),1)]),_:2},1024)):m("",!0),o.https===!1?(d(),a(l,{key:8,type:"error",size:"small",title:"Loaded over HTTP; use HTTPS to avoid mixed content and security risks."},{default:n(()=>[...e[10]||(e[10]=[c(" insecure http ",-1)])]),_:1})):m("",!0)]),t("div",se,[t("div",oe,[e[11]||(e[11]=t("div",{class:"text-xs text-neutral-500"}," Total network ",-1)),t("div",re,i(y(o.totalNetworkTime)),1)]),t("div",ne,[e[12]||(e[12]=t("div",{class:"text-xs text-neutral-500"}," Parse + execute ",-1)),t("div",ie,i(y(o.parseExecuteTime)),1)]),t("div",le,[e[13]||(e[13]=t("div",{class:"text-xs text-neutral-500"}," Request ",-1)),t("div",de,i(y(o.requestTime)),1)]),t("div",ae,[e[14]||(e[14]=t("div",{class:"text-xs text-neutral-500"}," Download ",-1)),t("div",ce,i(y(o.downloadTime)),1)])]),t("div",ue,[u(k,{onClick:R=>B(o.element)},{default:n(()=>[u(_,{name:"material-symbols:terminal",class:"text-lg"}),e[15]||(e[15]=t("span",{class:"ml-1"},"Log element",-1))]),_:1},8,["onClick"]),u(k,{onClick:R=>L(o.url)},{default:n(()=>[u(_,{name:"material-symbols:content-copy-outline",class:"text-lg"}),e[16]||(e[16]=t("span",{class:"ml-1"},"Copy URL",-1))]),_:1},8,["onClick"])])]),_:2},1024))),128))])])}}});export{ke as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./CnnebwVN.js","./wDzz0qaB.js","./DPfMkruS.js","./Cl0AqbOI.js","./2EtD6e53.js","./DxSwrfjg.js","./Cp-IABpG.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./DNMeEaky.js","./DGP4VlC8.js","./BGJmEYvX.js","./CylS5w8V.js","./BLtJtn59.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./C9oPPf7i.js","./g9-lgVsj.js","./CmIQRyeF.js","./m17aaUwq.js","./Buea-lGh.js","./CufHLc7y.js","./Yzrsuije.js","./CYsAdtH9.js","./fuZLfV_i.js","./CXZktZb0.js","./Br6cN0cg.js","./CgjmDhmW.js","./B6aJPvgy.js","./DiinP2Uv.js","./CMFEf1DS.js","./B1dDrJ26.js","./TsXTqZ29.js","./Cvjx9yec.js","./Xqf5ue2O.js","./BLmx8bSh.js","./DDBovgxi.js","./Cm3UrAx6.js","./aF-l9SMX.js","./CXsvEkWC.js","./cgN_UPQ0.js","./BEDo0Tqx.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as In}from"./REBTOKr5.js";import xn from"./CeyKylGo.js";import{_ as On}from"./DxmC8vYz.js";import{_ as Nn,a as Dn}from"./CzzNqrSg.js";import{n as f,g as $t,j as J,p as Mn,q as Bn,k as Ut,o as oe,w as re,a as U,t as Be,m as M,b as W,d as Gn,_ as Vn,c as Ge,F as jn,s as $n}from"./Ckm7x3qc.js";import{u as Un}from"./3uZvltmj.js";import"./s2_R2YM5.js";let R=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Hn(n){return st(n)}function st(n){return Array.isArray(n)?Wn(n):n instanceof RegExp?n:typeof n=="object"?Fn(n):n}function Wn(n){let e=[];for(let t=0,r=n.length;t<r;t++)e[t]=st(n[t]);return e}function Fn(n){let e={};for(let t in n)e[t]=st(n[t]);return e}function Ht(n,...e){return e.forEach(t=>{for(let r in t)n[r]=t[r]}),n}function Wt(n){const e=~n.lastIndexOf("/")||~n.lastIndexOf("\\");return e===0?n:~e===n.length-1?Wt(n.substring(0,n.length-1)):n.substr(~e+1)}var Ve=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,pe=class{static hasCaptures(n){return n===null?!1:(Ve.lastIndex=0,Ve.test(n))}static replaceCaptures(n,e,t){return n.replace(Ve,(r,i,o,s)=>{let l=t[parseInt(i||o,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(s){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function Ft(n,e){return n<e?-1:n>e?1:0}function zt(n,e){if(n===null&&e===null)return 0;if(!n)return-1;if(!e)return 1;let t=n.length,r=e.length;if(t===r){for(let i=0;i<t;i++){let o=Ft(n[i],e[i]);if(o!==0)return o}return 0}return t-r}function yt(n){return!!(/^#[0-9a-f]{6}$/i.test(n)||/^#[0-9a-f]{8}$/i.test(n)||/^#[0-9a-f]{3}$/i.test(n)||/^#[0-9a-f]{4}$/i.test(n))}function qt(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Kt=class{constructor(n){this.fn=n}cache=new Map;get(n){if(this.cache.has(n))return this.cache.get(n);const e=this.fn(n);return this.cache.set(n,e),e}},be=class{constructor(n,e,t){this._colorMap=n,this._defaults=e,this._root=t}static createFromRawTheme(n,e){return this.createFromParsedTheme(Kn(n),e)}static createFromParsedTheme(n,e){return Yn(n,e)}_cachedMatchRoot=new Kt(n=>this._root.match(n));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(n){if(n===null)return this._defaults;const e=n.scopeName,r=this._cachedMatchRoot.get(e).find(i=>zn(n.parent,i.parentScopes));return r?new Jt(r.fontStyle,r.foreground,r.background):null}},je=class ye{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ye(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ye(t,e[r]);return t}push(e){return new ye(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function zn(n,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],i=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],i=!0}for(;n&&!qn(n.scopeName,r);){if(i)return!1;n=n.parent}if(!n)return!1;n=n.parent}return!0}function qn(n,e){return e===n||n.startsWith(e)&&n[e.length]==="."}var Jt=class{constructor(n,e,t){this.fontStyle=n,this.foregroundId=e,this.backgroundId=t}};function Kn(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let e=n.settings,t=[],r=0;for(let i=0,o=e.length;i<o;i++){let s=e[i];if(!s.settings)continue;let l;if(typeof s.scope=="string"){let h=s.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),l=h.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let h=s.settings.fontStyle.split(" ");for(let p=0,d=h.length;p<d;p++)switch(h[p]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let c=null;typeof s.settings.foreground=="string"&&yt(s.settings.foreground)&&(c=s.settings.foreground);let u=null;typeof s.settings.background=="string"&&yt(s.settings.background)&&(u=s.settings.background);for(let h=0,p=l.length;h<p;h++){let m=l[h].trim().split(" "),v=m[m.length-1],y=null;m.length>1&&(y=m.slice(0,m.length-1),y.reverse()),t[r++]=new Jn(v,y,i,a,c,u)}}return t}var Jn=class{constructor(n,e,t,r,i,o){this.scope=n,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=i,this.background=o}},x=(n=>(n[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n))(x||{});function Yn(n,e){n.sort((a,c)=>{let u=Ft(a.scope,c.scope);return u!==0||(u=zt(a.parentScopes,c.parentScopes),u!==0)?u:a.index-c.index});let t=0,r="#000000",i="#ffffff";for(;n.length>=1&&n[0].scope==="";){let a=n.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(i=a.background)}let o=new Xn(e),s=new Jt(t,o.getId(r),o.getId(i)),l=new Zn(new Ke(0,null,-1,0,0),[]);for(let a=0,c=n.length;a<c;a++){let u=n[a];l.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new be(o,s,l)}var Xn=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(n){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(n)){this._isFrozen=!0;for(let e=0,t=n.length;e<t;e++)this._color2id[n[e]]=e,this._id2color[e]=n[e]}else this._isFrozen=!1}getId(n){if(n===null)return 0;n=n.toUpperCase();let e=this._color2id[n];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${n}`);return e=++this._lastColorId,this._color2id[n]=e,this._id2color[e]=n,e}getColorMap(){return this._id2color.slice(0)}},Qn=Object.freeze([]),Ke=class Yt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,i,o){this.scopeDepth=e,this.parentScopes=t||Qn,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new Yt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,i=e.length;r<i;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},Zn=class Je{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=t.parentScopes.length);){const o=t.parentScopes[i].length-e.parentScopes[r].length;if(o!==0)return o;r++,i++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,o;if(r===-1?(i=e,o=""):(i=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(Je._cmpBySpecificity),t}insert(e,t,r,i,o,s){if(t===""){this._doInsertHere(e,r,i,o,s);return}let l=t.indexOf("."),a,c;l===-1?(a=t,c=""):(a=t.substring(0,l),c=t.substring(l+1));let u;this._children.hasOwnProperty(a)?u=this._children[a]:(u=new Je(this._mainRule.clone(),Ke.cloneArr(this._rulesWithParentScopes)),this._children[a]=u),u.insert(e+1,c,r,i,o,s)}_doInsertHere(e,t,r,i,o){if(t===null){this._mainRule.acceptOverwrite(e,r,i,o);return}for(let s=0,l=this._rulesWithParentScopes.length;s<l;s++){let a=this._rulesWithParentScopes[s];if(zt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Ke(e,t,r,i,o))}},Z=class B{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=B.getLanguageId(e),r=B.getTokenType(e),i=B.getFontStyle(e),o=B.getForeground(e),s=B.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:i,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,i,o,s,l){let a=B.getLanguageId(e),c=B.getTokenType(e),u=B.containsBalancedBrackets(e)?1:0,h=B.getFontStyle(e),p=B.getForeground(e),d=B.getBackground(e);return t!==0&&(a=t),r!==8&&(c=r),i!==null&&(u=i?1:0),o!==-1&&(h=o),s!==0&&(p=s),l!==0&&(d=l),(a<<0|c<<8|u<<10|h<<11|p<<15|d<<24)>>>0}};function Se(n,e){const t=[],r=er(n);let i=r.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=s();if(t.push({matcher:c,priority:a}),i!==",")break;i=r.next()}return t;function o(){if(i==="-"){i=r.next();const a=o();return c=>!!a&&!a(c)}if(i==="("){i=r.next();const a=l();return i===")"&&(i=r.next()),a}if(vt(i)){const a=[];do a.push(i),i=r.next();while(vt(i));return c=>e(a,c)}return null}function s(){const a=[];let c=o();for(;c;)a.push(c),c=o();return u=>a.every(h=>h(u))}function l(){const a=[];let c=s();for(;c&&(a.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=s()}return u=>a.some(h=>h(u))}}function vt(n){return!!n&&!!n.match(/[\w\.:]+/)}function er(n){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(n);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(n),r}}}function Xt(n){typeof n.dispose=="function"&&n.dispose()}var le=class{constructor(n){this.scopeName=n}toKey(){return this.scopeName}},tr=class{constructor(n,e){this.scopeName=n,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},nr=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(n){const e=n.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(n))}},rr=class{constructor(n,e){this.repo=n,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new le(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const n=this.Q;this.Q=[];const e=new nr;for(const t of n)ir(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof le){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function ir(n,e,t,r){const i=t.lookup(n.scopeName);if(!i){if(n.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=t.lookup(e);n instanceof le?ve({baseGrammar:o,selfGrammar:i},r):Ye(n.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const s=t.injections(n.scopeName);if(s)for(const l of s)r.add(new le(l))}function Ye(n,e,t){if(e.repository&&e.repository[n]){const r=e.repository[n];Ce([r],e,t)}}function ve(n,e){n.selfGrammar.patterns&&Array.isArray(n.selfGrammar.patterns)&&Ce(n.selfGrammar.patterns,{...n,repository:n.selfGrammar.repository},e),n.selfGrammar.injections&&Ce(Object.values(n.selfGrammar.injections),{...n,repository:n.selfGrammar.repository},e)}function Ce(n,e,t){for(const r of n){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const i=r.repository?Ht({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&Ce(r.patterns,{...e,repository:i},t);const o=r.include;if(!o)continue;const s=Qt(o);switch(s.kind){case 0:ve({...e,selfGrammar:e.baseGrammar},t);break;case 1:ve(e,t);break;case 2:Ye(s.ruleName,{...e,repository:i},t);break;case 3:case 4:const l=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:i};s.kind===4?Ye(s.ruleName,a,t):ve(a,t)}else s.kind===4?t.add(new tr(s.scopeName,s.ruleName)):t.add(new le(s.scopeName));break}}}var or=class{kind=0},sr=class{kind=1},ar=class{constructor(n){this.ruleName=n}kind=2},lr=class{constructor(n){this.scopeName=n}kind=3},cr=class{constructor(n,e){this.scopeName=n,this.ruleName=e}kind=4};function Qt(n){if(n==="$base")return new or;if(n==="$self")return new sr;const e=n.indexOf("#");if(e===-1)return new lr(n);if(e===0)return new ar(n.substring(1));{const t=n.substring(0,e),r=n.substring(e+1);return new cr(t,r)}}var ur=/\\(\d+)/,bt=/\\(\d+)/g,hr=-1,Zt=-2;var de=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(n,e,t,r){this.$location=n,this.id=e,this._name=t||null,this._nameIsCapturing=pe.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=pe.hasCaptures(this._contentName)}get debugName(){const n=this.$location?`${Wt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${n}`}getName(n,e){return!this._nameIsCapturing||this._name===null||n===null||e===null?this._name:pe.replaceCaptures(this._name,n,e)}getContentName(n,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:pe.replaceCaptures(this._contentName,n,e)}},dr=class extends de{retokenizeCapturedWithRuleId;constructor(n,e,t,r,i){super(n,e,t,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(n,e){throw new Error("Not supported!")}compile(n,e){throw new Error("Not supported!")}compileAG(n,e,t,r){throw new Error("Not supported!")}},mr=class extends de{_match;captures;_cachedCompiledPatterns;constructor(n,e,t,r,i){super(n,e,t,null),this._match=new ce(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(n,e){e.push(this._match)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ue,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},St=class extends de{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,r,i){super(n,e,t,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(n,e){for(const t of this.patterns)n.getRule(t).collectPatterns(n,e)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ue,this.collectPatterns(n,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xe=class extends de{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(n,e,t,r,i,o,s,l,a,c){super(n,e,t,r),this._begin=new ce(i,this.id),this.beginCaptures=o,this._end=new ce(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(n,e){return this._end.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n,e).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n,e).compileAG(n,t,r)}_getCachedCompiledPatterns(n,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ue;for(const t of this.patterns)n.getRule(t).collectPatterns(n,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},we=class extends de{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(n,e,t,r,i,o,s,l,a){super(n,e,t,r),this._begin=new ce(i,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new ce(s,Zt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(n,e){return this._while.resolveBackReferences(n,e)}collectPatterns(n,e){e.push(this._begin)}compile(n,e){return this._getCachedCompiledPatterns(n).compile(n)}compileAG(n,e,t,r){return this._getCachedCompiledPatterns(n).compileAG(n,t,r)}_getCachedCompiledPatterns(n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ue;for(const e of this.patterns)n.getRule(e).collectPatterns(n,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(n,e){return this._getCachedCompiledWhilePatterns(n,e).compile(n)}compileWhileAG(n,e,t,r){return this._getCachedCompiledWhilePatterns(n,e).compileAG(n,t,r)}_getCachedCompiledWhilePatterns(n,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ue,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},en=class I{static createCaptureRule(e,t,r,i,o){return e.registerRule(s=>new dr(t,s,r,i,o))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(i=>{if(e.id=i,e.match)return new mr(e.$vscodeTextmateLocation,e.id,e.name,e.match,I._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=Ht({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new St(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,I._compilePatterns(o,t,r))}return e.while?new we(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,I._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,I._compileCaptures(e.whileCaptures||e.captures,t,r),I._compilePatterns(e.patterns,t,r)):new Xe(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,I._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,I._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,I._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let i=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);l>o&&(o=l)}for(let s=0;s<=o;s++)i[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let a=0;e[s].patterns&&(a=I.getCompiledRuleId(e[s],t,r)),i[l]=I.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,a)}}return i}static _compilePatterns(e,t,r){let i=[];if(e)for(let o=0,s=e.length;o<s;o++){const l=e[o];let a=-1;if(l.include){const c=Qt(l.include);switch(c.kind){case 0:case 1:a=I.getCompiledRuleId(r[l.include],t,r);break;case 2:let u=r[c.ruleName];u&&(a=I.getCompiledRuleId(u,t,r));break;case 3:case 4:const h=c.scopeName,p=c.kind===4?c.ruleName:null,d=t.getExternalGrammar(h,r);if(d)if(p){let m=d.repository[p];m&&(a=I.getCompiledRuleId(m,t,d.repository))}else a=I.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else a=I.getCompiledRuleId(l,t,r);if(a!==-1){const c=t.getRule(a);let u=!1;if((c instanceof St||c instanceof Xe||c instanceof we)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},ce=class tn{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const r=e.length;let i=0,o=[],s=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const c=e.charAt(l+1);c==="z"?(o.push(e.substring(i,l)),o.push("$(?!\\n)(?<!\\n)"),i=l+2):(c==="A"||c==="G")&&(s=!0),l++}this.hasAnchor=s,i===0?this.source=e:(o.push(e.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=ur.test(this.source):this.hasBackReferences=!1}clone(){return new tn(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(i=>e.substring(i.start,i.end));return bt.lastIndex=0,this.source.replace(bt,(i,o)=>qt(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],i=[],o,s,l,a;for(o=0,s=this.source.length;o<s;o++)l=this.source.charAt(o),e[o]=l,t[o]=l,r[o]=l,i[o]=l,l==="\\"&&o+1<s&&(a=this.source.charAt(o+1),a==="A"?(e[o+1]="",t[o+1]="",r[o+1]="A",i[o+1]="A"):a==="G"?(e[o+1]="",t[o+1]="G",r[o+1]="",i[o+1]="G"):(e[o+1]=a,t[o+1]=a,r[o+1]=a,i[o+1]=a),o++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ue=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(n){this._items.push(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}unshift(n){this._items.unshift(n),this._hasAnchors=this._hasAnchors||n.hasAnchor}length(){return this._items.length}setSource(n,e){this._items[n].source!==e&&(this._disposeCaches(),this._items[n].setSource(e))}compile(n){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new Ct(n,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(n,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(n,e,t)),this._anchorCache.A0_G0):this.compile(n)}_resolveAnchors(n,e,t){let r=this._items.map(i=>i.resolveAnchors(e,t));return new Ct(n,r,this._items.map(i=>i.ruleId))}},Ct=class{constructor(n,e,t){this.regExps=e,this.rules=t,this.scanner=n.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const n=[];for(let e=0,t=this.rules.length;e<t;e++)n.push(" - "+this.rules[e]+": "+this.regExps[e]);return n.join(`
|
|
3
|
+
`)}findNextMatchSync(n,e,t){const r=this.scanner.findNextMatchSync(n,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},$e=class{constructor(n,e){this.languageId=n,this.tokenType=e}},pr=class Qe{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new $e(e,8),this._embeddedLanguagesMatcher=new fr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Qe._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new $e(0,0);_getBasicScopeAttributes=new Kt(e=>{const t=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new $e(t,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(Qe.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},fr=class{values;scopesRegExp;constructor(n){if(n.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(n);const e=n.map(([t,r])=>qt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(n){if(!this.scopesRegExp)return;const e=n.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},wt=class{constructor(n,e){this.stack=n,this.stoppedEarly=e}};function nn(n,e,t,r,i,o,s,l){const a=e.content.length;let c=!1,u=-1;if(s){const d=gr(n,e,t,r,i,o);i=d.stack,r=d.linePos,t=d.isFirstLine,u=d.anchorPosition}const h=Date.now();for(;!c;){if(l!==0&&Date.now()-h>l)return new wt(i,!0);p()}return new wt(i,!1);function p(){const d=_r(n,e,t,r,i,u);if(!d){o.produce(i,a),c=!0;return}const m=d.captureIndices,v=d.matchedRuleId,y=m&&m.length>0?m[0].end>r:!1;if(v===hr){const b=i.getRule(n);o.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),se(n,e,t,i,o,b.endCaptures,m),o.produce(i,m[0].end);const g=i;if(i=i.parent,u=g.getAnchorPos(),!y&&g.getEnterPos()===r){i=g,o.produce(i,a),c=!0;return}}else{const b=n.getRule(v);o.produce(i,m[0].start);const g=i,S=b.getName(e.content,m),E=i.contentNameScopesList.pushAttributed(S,n);if(i=i.push(v,r,u,m[0].end===a,null,E,E),b instanceof Xe){const w=b;se(n,e,t,i,o,w.beginCaptures,m),o.produce(i,m[0].end),u=m[0].end;const O=w.getContentName(e.content,m),G=E.pushAttributed(O,n);if(i=i.withContentNameScopesList(G),w.endHasBackReferences&&(i=i.withEndRule(w.getEndWithResolvedBackReferences(e.content,m))),!y&&g.hasSameRuleAs(i)){i=i.pop(),o.produce(i,a),c=!0;return}}else if(b instanceof we){const w=b;se(n,e,t,i,o,w.beginCaptures,m),o.produce(i,m[0].end),u=m[0].end;const O=w.getContentName(e.content,m),G=E.pushAttributed(O,n);if(i=i.withContentNameScopesList(G),w.whileHasBackReferences&&(i=i.withEndRule(w.getWhileWithResolvedBackReferences(e.content,m))),!y&&g.hasSameRuleAs(i)){i=i.pop(),o.produce(i,a),c=!0;return}}else if(se(n,e,t,i,o,b.captures,m),o.produce(i,m[0].end),i=i.pop(),!y){i=i.safePop(),o.produce(i,a),c=!0;return}}m[0].end>r&&(r=m[0].end,t=!1)}}function gr(n,e,t,r,i,o){let s=i.beginRuleCapturedEOL?0:-1;const l=[];for(let a=i;a;a=a.pop()){const c=a.getRule(n);c instanceof we&&l.push({rule:c,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:c,findOptions:u}=br(a.rule,n,a.stack.endRule,t,r===s),h=c.findNextMatchSync(e,r,u);if(h){if(h.ruleId!==Zt){i=a.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(a.stack,h.captureIndices[0].start),se(n,e,t,a.stack,o,a.rule.whileCaptures,h.captureIndices),o.produce(a.stack,h.captureIndices[0].end),s=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,t=!1))}else{i=a.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:t}}function _r(n,e,t,r,i,o){const s=yr(n,e,t,r,i,o),l=n.getInjections();if(l.length===0)return s;const a=vr(l,n,e,t,r,i,o);if(!a)return s;if(!s)return a;const c=s.captureIndices[0].start,u=a.captureIndices[0].start;return u<c||a.priorityMatch&&u===c?a:s}function yr(n,e,t,r,i,o){const s=i.getRule(n),{ruleScanner:l,findOptions:a}=rn(s,n,i.endRule,t,r===o),c=l.findNextMatchSync(e,r,a);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function vr(n,e,t,r,i,o,s){let l=Number.MAX_VALUE,a=null,c,u=0;const h=o.contentNameScopesList.getScopeNames();for(let p=0,d=n.length;p<d;p++){const m=n[p];if(!m.matcher(h))continue;const v=e.getRule(m.ruleId),{ruleScanner:y,findOptions:b}=rn(v,e,null,r,i===s),g=y.findNextMatchSync(t,i,b);if(!g)continue;const S=g.captureIndices[0].start;if(!(S>=l)&&(l=S,a=g.captureIndices,c=g.ruleId,u=m.priority,l===i))break}return a?{priorityMatch:u===-1,captureIndices:a,matchedRuleId:c}:null}function rn(n,e,t,r,i){return{ruleScanner:n.compileAG(e,t,r,i),findOptions:0}}function br(n,e,t,r,i){return{ruleScanner:n.compileWhileAG(e,t,r,i),findOptions:0}}function se(n,e,t,r,i,o,s){if(o.length===0)return;const l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(let h=0;h<a;h++){const p=o[h];if(p===null)continue;const d=s[h];if(d.length===0)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),p.retokenizeCapturedWithRuleId){const v=p.getName(l,s),y=r.contentNameScopesList.pushAttributed(v,n),b=p.getContentName(l,s),g=y.pushAttributed(b,n),S=r.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,y,g),E=n.createOnigString(l.substring(0,d.end));nn(n,E,t&&d.start===0,d.start,S,i,!1,0),Xt(E);continue}const m=p.getName(l,s);if(m!==null){const y=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(m,n);c.push(new Sr(y,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Sr=class{scopes;endPos;constructor(n,e){this.scopes=n,this.endPos=e}};function Cr(n,e,t,r,i,o,s,l){return new Er(n,e,t,r,i,o,s,l)}function Et(n,e,t,r,i){const o=Se(e,Ee),s=en.getCompiledRuleId(t,r,i.repository);for(const l of o)n.push({debugSelector:e,matcher:l.matcher,ruleId:s,grammar:i,priority:l.priority})}function Ee(n,e){if(e.length<n.length)return!1;let t=0;return n.every(r=>{for(let i=t;i<e.length;i++)if(wr(e[i],r))return t=i+1,!0;return!1})}function wr(n,e){if(!n)return!1;if(n===e)return!0;const t=e.length;return n.length>t&&n.substr(0,t)===e&&n[t]==="."}var Er=class{constructor(n,e,t,r,i,o,s,l){if(this._rootScopeName=n,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new pr(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=kt(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const c=Se(a,Ee);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:i[a]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const n of this._ruleId2desc)n&&n.dispose()}createOnigScanner(n){return this._onigLib.createOnigScanner(n)}createOnigString(n){return this._onigLib.createOnigString(n)}getMetadataForScope(n){return this._basicScopeAttributesProvider.getBasicScopeAttributes(n)}_collectInjections(){const n={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],t=this._rootScopeName,r=n.lookup(t);if(r){const i=r.injections;if(i)for(let s in i)Et(e,s,i[s],this,r);const o=this._grammarRepository.injections(t);o&&o.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const a=l.injectionSelector;a&&Et(e,a,l,this,l)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(n){const e=++this._lastRuleId,t=n(e);return this._ruleId2desc[e]=t,t}getRule(n){return this._ruleId2desc[n]}getExternalGrammar(n,e){if(this._includedGrammars[n])return this._includedGrammars[n];if(this._grammarRepository){const t=this._grammarRepository.lookup(n);if(t)return this._includedGrammars[n]=kt(t,e&&e.$base),this._includedGrammars[n]}}tokenizeLine(n,e,t=0){const r=this._tokenize(n,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(n,e,t=0){const r=this._tokenize(n,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(n,e,t,r){this._rootId===-1&&(this._rootId=en.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===Ze.NULL){i=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=Z.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null);let d;p?d=ae.createRootAndLookUpScopeName(p,h,this):d=ae.createRoot("unknown",h),e=new Ze(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,e.reset();n=n+`
|
|
4
|
+
`;const o=this.createOnigString(n),s=o.content.length,l=new Tr(t,n,this._tokenTypeMatchers,this.balancedBracketSelectors),a=nn(this,o,i,0,e,l,!0,r);return Xt(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function kt(n,e){return n=Hn(n),n.repository=n.repository||{},n.repository.$self={$vscodeTextmateLocation:n.$vscodeTextmateLocation,patterns:n.patterns,name:n.scopeName},n.repository.$base=e||n.repository.$self,n}var ae=class V{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,i=e?.scopePath??null;for(const o of t)i=je.push(i,o.scopeNames),r=new V(r,i,o.encodedTokenAttributes);return r}static createRoot(e,t){return new V(null,new je(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const i=r.getMetadataForScope(e),o=new je(null,e),s=r.themeProvider.themeMatch(o),l=V.mergeAttributes(t,i,s);return new V(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return V.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let i=-1,o=0,s=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,s=r.backgroundId),Z.set(e,t.languageId,t.tokenType,null,i,o,s)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return V._pushAttributed(this,e,t);const r=e.split(/ /g);let i=this;for(const o of r)i=V._pushAttributed(i,o,t);return i}static _pushAttributed(e,t,r){const i=r.getMetadataForScope(t),o=e.scopePath.push(t),s=r.themeProvider.themeMatch(o),l=V.mergeAttributes(e.tokenAttributes,i,s);return new V(e,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},Ze=class F{constructor(e,t,r,i,o,s,l,a){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new F(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:F._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?ae.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){F._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,i,o,s,l){return new F(this,e,t,r,i,o,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new F(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,t){const r=ae.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new F(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,ae.fromExtension(r,t.contentNameScopesList))}},kr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(n,e){this.balancedBracketScopes=n.flatMap(t=>t==="*"?(this.allowAny=!0,[]):Se(t,Ee).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>Se(t,Ee).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(n){for(const e of this.unbalancedBracketScopes)if(e(n))return!1;for(const e of this.balancedBracketScopes)if(e(n))return!0;return this.allowAny}},Tr=class{constructor(n,e,t,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=n,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(n,e){this.produceFromScopes(n.contentNameScopesList,e)}produceFromScopes(n,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=n?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=n?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(r=Z.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(r=Z.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}const t=n?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(n,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(n,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(n,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)t[r]=this._binaryTokens[r];return t}},Rr=class{constructor(n,e){this._onigLib=e,this._theme=n}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const n of this._grammars.values())n.dispose()}setTheme(n){this._theme=n}getColorMap(){return this._theme.getColorMap()}addGrammar(n,e){this._rawGrammars.set(n.scopeName,n),e&&this._injectionGrammars.set(n.scopeName,e)}lookup(n){return this._rawGrammars.get(n)}injections(n){return this._injectionGrammars.get(n)}getDefaults(){return this._theme.getDefaults()}themeMatch(n){return this._theme.match(n)}grammarForScopeName(n,e,t,r,i){if(!this._grammars.has(n)){let o=this._rawGrammars.get(n);if(!o)return null;this._grammars.set(n,Cr(n,o,e,t,r,i,this,this._onigLib))}return this._grammars.get(n)}},Lr=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Rr(be.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(be.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new kr(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,i,o){const s=new rr(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(l=>this._loadSingleGrammar(l.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,r,i,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,i)}_grammarForScopeName(e,t=0,r=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,r,i,o)}},et=Ze.NULL;const Pr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class me{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}}me.prototype.normal={};me.prototype.property={};me.prototype.space=void 0;function on(n,e){const t={},r={};for(const i of n)Object.assign(t,i.property),Object.assign(r,i.normal);return new me(t,r,e)}function tt(n){return n.toLowerCase()}class N{constructor(e,t){this.attribute=t,this.property=e}}N.prototype.attribute="";N.prototype.booleanish=!1;N.prototype.boolean=!1;N.prototype.commaOrSpaceSeparated=!1;N.prototype.commaSeparated=!1;N.prototype.defined=!1;N.prototype.mustUseProperty=!1;N.prototype.number=!1;N.prototype.overloadedBoolean=!1;N.prototype.property="";N.prototype.spaceSeparated=!1;N.prototype.space=void 0;let Ar=0;const C=q(),T=q(),nt=q(),_=q(),k=q(),X=q(),D=q();function q(){return 2**++Ar}const rt=Object.freeze(Object.defineProperty({__proto__:null,boolean:C,booleanish:T,commaOrSpaceSeparated:D,commaSeparated:X,number:_,overloadedBoolean:nt,spaceSeparated:k},Symbol.toStringTag,{value:"Module"})),Ue=Object.keys(rt);class at extends N{constructor(e,t,r,i){let o=-1;if(super(e,t),Tt(this,"space",i),typeof r=="number")for(;++o<Ue.length;){const s=Ue[o];Tt(this,Ue[o],(r&rt[s])===rt[s])}}}at.prototype.defined=!0;function Tt(n,e,t){t&&(n[e]=t)}function ee(n){const e={},t={};for(const[r,i]of Object.entries(n.properties)){const o=new at(r,n.transform(n.attributes||{},r),i,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,t[tt(r)]=r,t[tt(o.attribute)]=r}return new me(e,t,n.space)}const sn=ee({properties:{ariaActiveDescendant:null,ariaAtomic:T,ariaAutoComplete:null,ariaBusy:T,ariaChecked:T,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:T,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:T,ariaFlowTo:k,ariaGrabbed:T,ariaHasPopup:null,ariaHidden:T,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:_,ariaLive:null,ariaModal:T,ariaMultiLine:T,ariaMultiSelectable:T,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:T,ariaReadOnly:T,ariaRelevant:null,ariaRequired:T,ariaRoleDescription:k,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:T,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(n,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function an(n,e){return e in n?n[e]:e}function ln(n,e){return an(n,e.toLowerCase())}const Ir=ee({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:X,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:C,allowPaymentRequest:C,allowUserMedia:C,alt:null,as:null,async:C,autoCapitalize:null,autoComplete:k,autoFocus:C,autoPlay:C,blocking:k,capture:null,charSet:null,checked:C,cite:null,className:k,cols:_,colSpan:null,content:null,contentEditable:T,controls:C,controlsList:k,coords:_|X,crossOrigin:null,data:null,dateTime:null,decoding:null,default:C,defer:C,dir:null,dirName:null,disabled:C,download:nt,draggable:T,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:C,formTarget:null,headers:k,height:_,hidden:nt,high:_,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:C,inputMode:null,integrity:null,is:null,isMap:C,itemId:null,itemProp:k,itemRef:k,itemScope:C,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:C,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:C,muted:C,name:null,nonce:null,noModule:C,noValidate:C,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:C,optimum:_,pattern:null,ping:k,placeholder:null,playsInline:C,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:C,referrerPolicy:null,rel:k,required:C,reversed:C,rows:_,rowSpan:_,sandbox:k,scope:null,scoped:C,seamless:C,selected:C,shadowRootClonable:C,shadowRootDelegatesFocus:C,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:T,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:C,useMap:null,value:T,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:C,declare:C,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:C,noHref:C,noShade:C,noWrap:C,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:T,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:C,disableRemotePlayback:C,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:ln}),xr=ee({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:D,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:C,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:X,g2:X,glyphName:X,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:D,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D,rev:D,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D,requiredFeatures:D,requiredFonts:D,requiredFormats:D,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:D,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:an}),cn=ee({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,e){return"xlink:"+e.slice(5).toLowerCase()}}),un=ee({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ln}),hn=ee({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,e){return"xml:"+e.slice(3).toLowerCase()}}),Or=/[A-Z]/g,Rt=/-[a-z]/g,Nr=/^data[-\w.:]+$/i;function Dr(n,e){const t=tt(e);let r=e,i=N;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Nr.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(Rt,Br);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!Rt.test(o)){let s=o.replace(Or,Mr);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=at}return new i(r,e)}function Mr(n){return"-"+n.toLowerCase()}function Br(n){return n.charAt(1).toUpperCase()}const Gr=on([sn,Ir,cn,un,hn],"html"),dn=on([sn,xr,cn,un,hn],"svg"),Lt={}.hasOwnProperty;function Vr(n,e){const t=e||{};function r(i,...o){let s=r.invalid;const l=r.handlers;if(i&&Lt.call(i,n)){const a=String(i[n]);s=Lt.call(l,a)?l[a]:r.unknown}if(s)return s.call(this,i,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const jr=/["&'<>`]/g,$r=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Hr=/[|\\{}()[\]^$+*?.]/g,Pt=new WeakMap;function Wr(n,e){if(n=n.replace(e.subset?Fr(e.subset):jr,r),e.subset||e.escapeOnly)return n;return n.replace($r,t).replace(Ur,r);function t(i,o,s){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function r(i,o,s){return e.format(i.charCodeAt(0),s.charCodeAt(o+1),e)}}function Fr(n){let e=Pt.get(n);return e||(e=zr(n),Pt.set(n,e)),e}function zr(n){const e=[];let t=-1;for(;++t<n.length;)e.push(n[t].replace(Hr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const qr=/[\dA-Fa-f]/;function Kr(n,e,t){const r="&#x"+n.toString(16).toUpperCase();return t&&e&&!qr.test(String.fromCharCode(e))?r:r+";"}const Jr=/\d/;function Yr(n,e,t){const r="&#"+String(n);return t&&e&&!Jr.test(String.fromCharCode(e))?r:r+";"}const Xr=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],He={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Qr=["cent","copy","divide","gt","lt","not","para","times"],mn={}.hasOwnProperty,it={};let fe;for(fe in He)mn.call(He,fe)&&(it[He[fe]]=fe);const Zr=/[^\dA-Za-z]/;function ei(n,e,t,r){const i=String.fromCharCode(n);if(mn.call(it,i)){const o=it[i],s="&"+o;return t&&Xr.includes(o)&&!Qr.includes(o)&&(!r||e&&e!==61&&Zr.test(String.fromCharCode(e)))?s:s+";"}return""}function ti(n,e,t){let r=Kr(n,e,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=ei(n,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const o=Yr(n,e,t.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!t.useShortestReferences||i.length<r.length)?i:r}function Q(n,e){return Wr(n,Object.assign({format:ti},e))}const ni=/^>|^->|<!--|-->|--!>|<!-$/g,ri=[">"],ii=["<",">"];function oi(n,e,t,r){return r.settings.bogusComments?"<?"+Q(n.value,Object.assign({},r.settings.characterReferences,{subset:ri}))+">":"<!--"+n.value.replace(ni,i)+"-->";function i(o){return Q(o,Object.assign({},r.settings.characterReferences,{subset:ii}))}}function si(n,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function At(n,e){const t=String(n);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(e);for(;i!==-1;)r++,i=t.indexOf(e,i+e.length);return r}function ai(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function li(n){return n.join(" ").trim()}const ci=/[ \t\n\f\r]/g;function lt(n){return typeof n=="object"?n.type==="text"?It(n.value):!1:It(n)}function It(n){return n.replace(ci,"")===""}const P=fn(1),pn=fn(-1),ui=[];function fn(n){return e;function e(t,r,i){const o=t?t.children:ui;let s=(r||0)+n,l=o[s];if(!i)for(;l&<(l);)s+=n,l=o[s];return l}}const hi={}.hasOwnProperty;function gn(n){return e;function e(t,r,i){return hi.call(n,t.tagName)&&n[t.tagName](t,r,i)}}const ct=gn({body:mi,caption:We,colgroup:We,dd:_i,dt:gi,head:We,html:di,li:fi,optgroup:yi,option:vi,p:pi,rp:xt,rt:xt,tbody:Si,td:Ot,tfoot:Ci,th:Ot,thead:bi,tr:wi});function We(n,e,t){const r=P(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&<(r.value.charAt(0)))}function di(n,e,t){const r=P(t,e);return!r||r.type!=="comment"}function mi(n,e,t){const r=P(t,e);return!r||r.type!=="comment"}function pi(n,e,t){const r=P(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function fi(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="li"}function gi(n,e,t){const r=P(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function _i(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function xt(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function yi(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function vi(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function bi(n,e,t){const r=P(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Si(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ci(n,e,t){return!P(t,e)}function wi(n,e,t){const r=P(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function Ot(n,e,t){const r=P(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Ei=gn({body:Ri,colgroup:Li,head:Ti,html:ki,tbody:Pi});function ki(n){const e=P(n,-1);return!e||e.type!=="comment"}function Ti(n){const e=new Set;for(const r of n.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=n.children[0];return!t||t.type==="element"}function Ri(n){const e=P(n,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&<(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Li(n,e,t){const r=pn(t,e),i=P(n,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&ct(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Pi(n,e,t){const r=pn(t,e),i=P(n,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ct(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ge={name:[[`
|
|
5
|
+
\f\r &/=>`.split(""),`
|
|
6
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
7
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
8
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
9
|
+
\f\r &>`.split(""),`\0
|
|
10
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
11
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
12
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Ai(n,e,t,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let s=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(n.tagName.toLowerCase());const l=[];let a;i.space==="html"&&n.tagName==="svg"&&(r.schema=dn);const c=Ii(r,n.properties),u=r.all(i.space==="html"&&n.tagName==="template"?n.content:n);return r.schema=i,u&&(s=!1),(c||!o||!Ei(n,e,t))&&(l.push("<",n.tagName,c?" "+c:""),s&&(i.space==="svg"||r.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(u),!s&&(!o||!ct(n,e,t))&&l.push("</"+n.tagName+">"),l.join("")}function Ii(n,e){const t=[];let r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=xi(n,i,e[i]);o&&t.push(o)}}for(;++r<t.length;){const o=n.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&o!=='"'&&o!=="'"&&(t[r]+=" ")}return t.join("")}function xi(n,e,t){const r=Dr(n.schema,e),i=n.settings.allowParseErrors&&n.schema.space==="html"?0:1,o=n.settings.allowDangerousCharacters?0:1;let s=n.quote,l;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const a=Q(r.attribute,Object.assign({},n.settings.characterReferences,{subset:ge.name[i][o]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?ai:li)(t,{padLeft:!n.settings.tightCommaSeparatedLists}):String(t),n.settings.collapseEmptyAttributes&&!t)?a:(n.settings.preferUnquoted&&(l=Q(t,Object.assign({},n.settings.characterReferences,{attribute:!0,subset:ge.unquoted[i][o]}))),l!==t&&(n.settings.quoteSmart&&At(t,s)>At(t,n.alternative)&&(s=n.alternative),l=s+Q(t,Object.assign({},n.settings.characterReferences,{subset:(s==="'"?ge.single:ge.double)[i][o],attribute:!0}))+s),a+(l&&"="+l))}const Oi=["<","&"];function _n(n,e,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?n.value:Q(n.value,Object.assign({},r.settings.characterReferences,{subset:Oi}))}function Ni(n,e,t,r){return r.settings.allowDangerousHtml?n.value:_n(n,e,t,r)}function Di(n,e,t,r){return r.all(n)}const Mi=Vr("type",{invalid:Bi,unknown:Gi,handlers:{comment:oi,doctype:si,element:Ai,raw:Ni,root:Di,text:_n}});function Bi(n){throw new Error("Expected node, not `"+n+"`")}function Gi(n){const e=n;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Vi={},ji={},$i=[];function Ui(n,e){const t=e||Vi,r=t.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Hi,all:Wi,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Pr,characterReferences:t.characterReferences||ji,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?dn:Gr,quote:r,alternative:i}.one(Array.isArray(n)?{type:"root",children:n}:n,void 0,void 0)}function Hi(n,e,t){return Mi(n,e,t,this)}function Wi(n){const e=[],t=n&&n.children||$i;let r=-1;for(;++r<t.length;)e[r]=this.one(t[r],r,n);return e.join("")}function ke(n,e){const t=typeof n=="string"?{}:{...n.colorReplacements},r=typeof n=="string"?n:n.name;for(const[i,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?t[i]=o:i===r&&Object.assign(t,o);return t}function H(n,e){return n&&(e?.[n?.toLowerCase()]||n)}function Fi(n){return Array.isArray(n)?n:[n]}async function yn(n){return Promise.resolve(typeof n=="function"?n():n).then(e=>e.default||e)}function ut(n){return!n||["plaintext","txt","text","plain"].includes(n)}function vn(n){return n==="ansi"||ut(n)}function ht(n){return n==="none"}function bn(n){return ht(n)}function Sn(n,e){if(!e)return n;n.properties||={},n.properties.class||=[],typeof n.properties.class=="string"&&(n.properties.class=n.properties.class.split(/\s+/g)),Array.isArray(n.properties.class)||(n.properties.class=[]);const t=Array.isArray(e)?e:e.split(/\s+/g);for(const r of t)r&&!n.properties.class.includes(r)&&n.properties.class.push(r);return n}function Ie(n,e=!1){const t=n.split(/(\r?\n)/g);let r=0;const i=[];for(let o=0;o<t.length;o+=2){const s=e?t[o]+(t[o+1]||""):t[o];i.push([s,r]),r+=t[o].length,r+=t[o+1]?.length||0}return i}function zi(n){const e=Ie(n,!0).map(([i])=>i);function t(i){if(i===n.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,s=0;for(const l of e){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function r(i,o){let s=0;for(let l=0;l<i;l++)s+=e[l].length;return s+=o,s}return{lines:e,indexToPos:t,posToIndex:r}}function qi(n,e,t){const r=new Set;for(const o of n.matchAll(/lang=["']([\w-]+)["']/g))r.add(o[1]);for(const o of n.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(o[1]);for(const o of n.matchAll(/\\begin\{([\w-]+)\}/g))r.add(o[1]);if(!t)return Array.from(r);const i=t.getBundledLanguages();return Array.from(r).filter(o=>o&&i[o])}const dt="light-dark()",Ki=["color","background-color"];function Ji(n,e){let t=0;const r=[];for(const i of e)i>t&&r.push({...n,content:n.content.slice(t,i),offset:n.offset+t}),t=i;return t<n.content.length&&r.push({...n,content:n.content.slice(t),offset:n.offset+t}),r}function Yi(n,e){const t=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return t.length?n.map(r=>r.flatMap(i=>{const o=t.filter(s=>i.offset<s&&s<i.offset+i.content.length).map(s=>s-i.offset).sort((s,l)=>s-l);return o.length?Ji(i,o):i})):n}function Xi(n,e,t,r,i="css-vars"){const o={content:n.content,explanation:n.explanation,offset:n.offset},s=e.map(u=>Te(n.variants[u])),l=new Set(s.flatMap(u=>Object.keys(u))),a={},c=(u,h)=>{const p=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return t+e[u]+(h==="color"?"":p)};return s.forEach((u,h)=>{for(const p of l){const d=u[p]||"inherit";if(h===0&&r&&Ki.includes(p))if(r===dt&&s.length>1){const m=e.findIndex(g=>g==="light"),v=e.findIndex(g=>g==="dark");if(m===-1||v===-1)throw new R('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=s[m][p]||"inherit",b=s[v][p]||"inherit";a[p]=`light-dark(${y}, ${b})`,i==="css-vars"&&(a[c(h,p)]=d)}else a[p]=d;else i==="css-vars"&&(a[c(h,p)]=d)}}),o.htmlStyle=a,o}function Te(n){const e={};if(n.color&&(e.color=n.color),n.bgColor&&(e["background-color"]=n.bgColor),n.fontStyle){n.fontStyle&x.Italic&&(e["font-style"]="italic"),n.fontStyle&x.Bold&&(e["font-weight"]="bold");const t=[];n.fontStyle&x.Underline&&t.push("underline"),n.fontStyle&x.Strikethrough&&t.push("line-through"),t.length&&(e["text-decoration"]=t.join(" "))}return e}function ot(n){return typeof n=="string"?n:Object.entries(n).map(([e,t])=>`${e}:${t}`).join(";")}const Cn=new WeakMap;function xe(n,e){Cn.set(n,e)}function he(n){return Cn.get(n)}class te{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new te(Object.fromEntries(Fi(t).map(r=>[r,et])),e)}constructor(...e){if(e.length===2){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,i]=e;this.lang=r,this._stacks={[i]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Qi(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Qi(n){const e=[],t=new Set;function r(i){if(t.has(i))return;t.add(i);const o=i?.nameScopesList?.scopeName;o&&e.push(o),i.parent&&r(i.parent)}return r(n),e}function Zi(n,e){if(!(n instanceof te))throw new R("Invalid grammar state");return n.getInternalStack(e)}function eo(){const n=new WeakMap;function e(t){if(!n.has(t.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>t.source.length)throw new R(`Invalid decoration offset: ${s}. Code length: ${t.source.length}`);return{...i.indexToPos(s),offset:s}}else{const l=i.lines[s.line];if(l===void 0)throw new R(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let a=s.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new R(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:a,offset:i.posToIndex(s.line,a)}}};const i=zi(t.source),o=(t.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));to(o),n.set(t.meta,{decorations:o,converter:i,source:t.source})}return n.get(t.meta)}return{name:"shiki:decorations",tokens(t){if(!this.options.decorations?.length)return;const i=e(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return Yi(t,i)},code(t){if(!this.options.decorations?.length)return;const r=e(this),i=Array.from(t.children).filter(u=>u.type==="element"&&u.tagName==="span");if(i.length!==r.converter.lines.length)throw new R(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,h,p,d){const m=i[u];let v="",y=-1,b=-1;if(h===0&&(y=0),p===0&&(b=0),p===Number.POSITIVE_INFINITY&&(b=m.children.length),y===-1||b===-1)for(let S=0;S<m.children.length;S++)v+=wn(m.children[S]),y===-1&&v.length===h&&(y=S+1),b===-1&&v.length===p&&(b=S+1);if(y===-1)throw new R(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(b===-1)throw new R(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);const g=m.children.slice(y,b);if(!d.alwaysWrap&&g.length===m.children.length)l(m,d,"line");else if(!d.alwaysWrap&&g.length===1&&g[0].type==="element")l(g[0],d,"token");else{const S={type:"element",tagName:"span",properties:{},children:g};l(S,d,"wrapper"),m.children.splice(y,g.length,S)}}function s(u,h){i[u]=l(i[u],h,"line")}function l(u,h,p){const d=h.properties||{},m=h.transform||(v=>v);return u.tagName=h.tagName||"span",u.properties={...u.properties,...d,class:u.properties.class},h.properties?.class&&Sn(u,h.properties.class),u=m(u,p)||u,u}const a=[],c=r.decorations.sort((u,h)=>h.start.offset-u.start.offset||u.end.offset-h.end.offset);for(const u of c){const{start:h,end:p}=u;if(h.line===p.line)o(h.line,h.character,p.character,u);else if(h.line<p.line){o(h.line,h.character,Number.POSITIVE_INFINITY,u);for(let d=h.line+1;d<p.line;d++)a.unshift(()=>s(d,u));o(p.line,0,p.character,u)}}a.forEach(u=>u())}}}function to(n){for(let e=0;e<n.length;e++){const t=n[e];if(t.start.offset>t.end.offset)throw new R(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let r=e+1;r<n.length;r++){const i=n[r],o=t.start.offset<=i.start.offset&&i.start.offset<t.end.offset,s=t.start.offset<i.end.offset&&i.end.offset<=t.end.offset,l=i.start.offset<=t.start.offset&&t.start.offset<i.end.offset,a=i.start.offset<t.end.offset&&t.end.offset<=i.end.offset;if(o||s||l||a){if(o&&s||l&&a||l&&t.start.offset===t.end.offset||s&&i.start.offset===i.end.offset)continue;throw new R(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function wn(n){return n.type==="text"?n.value:n.type==="element"?n.children.map(wn).join(""):""}const no=[eo()];function Re(n){const e=ro(n.transformers||[]);return[...e.pre,...e.normal,...e.post,...no]}function ro(n){const e=[],t=[],r=[];for(const i of n)switch(i.enforce){case"pre":e.push(i);break;case"post":t.push(i);break;default:r.push(i)}return{pre:e,post:t,normal:r}}var z=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Fe={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function io(n,e){const t=n.indexOf("\x1B",e);if(t!==-1&&n[t+1]==="["){const r=n.indexOf("m",t);if(r!==-1)return{sequence:n.substring(t+2,r).split(";"),startPosition:t,position:r+1}}return{position:n.length}}function Nt(n){const e=n.shift();if(e==="2"){const t=n.splice(0,3).map(r=>Number.parseInt(r));return t.length!==3||t.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:t}}else if(e==="5"){const t=n.shift();if(t)return{type:"table",index:Number(t)}}}function oo(n){const e=[];for(;n.length>0;){const t=n.shift();if(!t)continue;const r=Number.parseInt(t);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)Fe[r]&&e.push({type:"setDecoration",value:Fe[r]});else if(r<=29){const i=Fe[r-20];i&&(e.push({type:"resetDecoration",value:i}),i==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:z[r-30]}});else if(r===38){const i=Nt(n);i&&e.push({type:"setForegroundColor",value:i})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:z[r-40]}});else if(r===48){const i=Nt(n);i&&e.push({type:"setBackgroundColor",value:i})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:z[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:z[r-100+8]}})}return e}function so(){let n=null,e=null,t=new Set;return{parse(r){const i=[];let o=0;do{const s=io(r,o),l=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(l.length>0&&i.push({value:l,foreground:n,background:e,decorations:new Set(t)}),s.sequence){const a=oo(s.sequence);for(const c of a)c.type==="resetAll"?(n=null,e=null,t.clear()):c.type==="resetForegroundColor"?n=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&t.delete(c.value);for(const c of a)c.type==="setForegroundColor"?n=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&t.add(c.value)}o=s.position}while(o<r.length);return i}}}var ao={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function lo(n=ao){function e(l){return n[l]}function t(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let c=0;c<z.length;c++)r.push(e(z[c]));let l=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let h=0;h<6;h++)r.push(t([l[c],l[u],l[h]]));let a=8;for(let c=0;c<24;c++,a+=10)r.push(t([a,a,a]));return r}function o(l){return i()[l]}function s(l){switch(l.type){case"named":return e(l.name);case"rgb":return t(l.rgb);case"table":return o(l.index)}}return{value:s}}const co={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function uo(n,e,t){const r=ke(n,t),i=Ie(e),o=Object.fromEntries(z.map(a=>{const c=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`,u=n.colors?.[c];return[a,u||co[a]]})),s=lo(o),l=so();return i.map(a=>l.parse(a[0]).map(c=>{let u,h;c.decorations.has("reverse")?(u=c.background?s.value(c.background):n.bg,h=c.foreground?s.value(c.foreground):n.fg):(u=c.foreground?s.value(c.foreground):n.fg,h=c.background?s.value(c.background):void 0),u=H(u,r),h=H(h,r),c.decorations.has("dim")&&(u=ho(u));let p=x.None;return c.decorations.has("bold")&&(p|=x.Bold),c.decorations.has("italic")&&(p|=x.Italic),c.decorations.has("underline")&&(p|=x.Underline),c.decorations.has("strikethrough")&&(p|=x.Strikethrough),{content:c.value,offset:a[1],color:u,bgColor:h,fontStyle:p}}))}function ho(n){const e=n.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(e)if(e[3]){const r=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${r}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(r=>`${r}${r}`).join("")}80`;const t=n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:n}function mt(n,e,t={}){const{lang:r="text",theme:i=n.getLoadedThemes()[0]}=t;if(ut(r)||ht(i))return Ie(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:o,colorMap:s}=n.setTheme(i);if(r==="ansi")return uo(o,e,t);const l=n.getLanguage(r);if(t.grammarState){if(t.grammarState.lang!==l.name)throw new R(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${l.name}"`);if(!t.grammarState.themes.includes(o.name))throw new R(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return po(e,l,o,s,t)}function mo(...n){if(n.length===2)return he(n[1]);const[e,t,r={}]=n,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=r;if(ut(i)||ht(o))throw new R("Plain language does not have grammar state");if(i==="ansi")throw new R("ANSI language does not have grammar state");const{theme:s,colorMap:l}=e.setTheme(o),a=e.getLanguage(i);return new te(Le(t,a,s,l,r).stateStack,a.name,s.name)}function po(n,e,t,r,i){const o=Le(n,e,t,r,i),s=new te(Le(n,e,t,r,i).stateStack,e.name,t.name);return xe(o.tokens,s),o.tokens}function Le(n,e,t,r,i){const o=ke(t,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=i,a=Ie(n);let c=i.grammarState?Zi(i.grammarState,t.name)??et:i.grammarContextCode!=null?Le(i.grammarContextCode,e,t,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:et,u=[];const h=[];for(let p=0,d=a.length;p<d;p++){const[m,v]=a[p];if(m===""){u=[],h.push([]);continue}if(s>0&&m.length>=s){u=[],h.push([{content:m,offset:v,color:"",fontStyle:0}]);continue}let y,b,g;i.includeExplanation&&(y=e.tokenizeLine(m,c,l),b=y.tokens,g=0);const S=e.tokenizeLine2(m,c,l),E=S.tokens.length/2;for(let w=0;w<E;w++){const O=S.tokens[2*w],G=w+1<E?S.tokens[2*w+2]:m.length;if(O===G)continue;const ne=S.tokens[2*w+1],Pn=H(r[Z.getForeground(ne)],o),An=Z.getFontStyle(ne),De={content:m.substring(O,G),offset:v+O,color:Pn,fontStyle:An};if(i.includeExplanation){const gt=[];if(i.includeExplanation!=="scopeName")for(const $ of t.settings){let K;switch(typeof $.scope){case"string":K=$.scope.split(/,/).map(Me=>Me.trim());break;case"object":K=$.scope;break;default:continue}gt.push({settings:$,selectors:K.map(Me=>Me.split(/ /))})}De.explanation=[];let _t=0;for(;O+_t<G;){const $=b[g],K=m.substring($.startIndex,$.endIndex);_t+=K.length,De.explanation.push({content:K,scopes:i.includeExplanation==="scopeName"?fo($.scopes):go(gt,$.scopes)}),g+=1}}u.push(De)}h.push(u),u=[],c=S.ruleStack}return{tokens:h,stateStack:c}}function fo(n){return n.map(e=>({scopeName:e}))}function go(n,e){const t=[];for(let r=0,i=e.length;r<i;r++){const o=e[r];t[r]={scopeName:o,themeMatches:yo(n,o,e.slice(0,r))}}return t}function Dt(n,e){return n===e||e.substring(0,n.length)===n&&e[n.length]==="."}function _o(n,e,t){if(!Dt(n[n.length-1],e))return!1;let r=n.length-2,i=t.length-1;for(;r>=0&&i>=0;)Dt(n[r],t[i])&&(r-=1),i-=1;return r===-1}function yo(n,e,t){const r=[];for(const{selectors:i,settings:o}of n)for(const s of i)if(_o(s,e,t)){r.push(o);break}return r}function En(n,e,t){const r=Object.entries(t.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),i=r.map(a=>{const c=mt(n,e,{...t,theme:a.theme}),u=he(c),h=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:c,state:u,theme:h}}),o=vo(...i.map(a=>a.tokens)),s=o[0].map((a,c)=>a.map((u,h)=>{const p={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in t&&t.includeExplanation&&(p.explanation=u.explanation),o.forEach((d,m)=>{const{content:v,explanation:y,offset:b,...g}=d[c][h];p.variants[r[m].color]=g}),p})),l=i[0].state?new te(Object.fromEntries(i.map(a=>[a.theme,a.state?.getInternalStack(a.theme)])),i[0].state.lang):void 0;return l&&xe(s,l),s}function vo(...n){const e=n.map(()=>[]),t=n.length;for(let r=0;r<n[0].length;r++){const i=n.map(a=>a[r]),o=e.map(()=>[]);e.forEach((a,c)=>a.push(o[c]));const s=i.map(()=>0),l=i.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(c=>c.content.length));for(let c=0;c<t;c++){const u=l[c];u.content.length===a?(o[c].push(u),s[c]+=1,l[c]=i[c][s[c]]):(o[c].push({...u,content:u.content.slice(0,a)}),l[c]={...u,content:u.content.slice(a),offset:u.offset+a})}}}return e}function Pe(n,e,t){let r,i,o,s,l,a;if("themes"in t){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=t,p=Object.entries(t.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,g)=>b.color===c?-1:g.color===c?1:0);if(p.length===0)throw new R("`themes` option must not be empty");const d=En(n,e,t);if(a=he(d),c&&dt!==c&&!p.find(b=>b.color===c))throw new R(`\`themes\` option must contain the defaultColor key \`${c}\``);const m=p.map(b=>n.getTheme(b.theme)),v=p.map(b=>b.color);o=d.map(b=>b.map(g=>Xi(g,v,u,c,h))),a&&xe(o,a);const y=p.map(b=>ke(b.theme,t));i=Mt(p,m,y,u,c,"fg",h),r=Mt(p,m,y,u,c,"bg",h),s=`shiki-themes ${m.map(b=>b.name).join(" ")}`,l=c?void 0:[i,r].join(";")}else if("theme"in t){const c=ke(t.theme,t);o=mt(n,e,t);const u=n.getTheme(t.theme);r=H(u.bg,c),i=H(u.fg,c),s=u.name,a=he(o)}else throw new R("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:s,rootStyle:l,grammarState:a}}function Mt(n,e,t,r,i,o,s){return n.map((l,a)=>{const c=H(e[a][o],t[a])||"inherit",u=`${r+l.color}${o==="bg"?"-bg":""}:${c}`;if(a===0&&i){if(i===dt&&n.length>1){const h=n.findIndex(v=>v.color==="light"),p=n.findIndex(v=>v.color==="dark");if(h===-1||p===-1)throw new R('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const d=H(e[h][o],t[h])||"inherit",m=H(e[p][o],t[p])||"inherit";return`light-dark(${d}, ${m});${u}`}return c}return s==="css-vars"?u:null}).filter(l=>!!l).join(";")}function Ae(n,e,t,r={meta:{},options:t,codeToHast:(i,o)=>Ae(n,i,o),codeToTokens:(i,o)=>Pe(n,i,o)}){let i=e;for(const m of Re(t))i=m.preprocess?.call(r,i,t)||i;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:c,grammarState:u}=Pe(n,i,t);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=t;h===!0?o=So(o):h==="never"&&(o=Co(o)),p&&(o=wo(o));const d={...r,get source(){return i}};for(const m of Re(t))o=m.tokens?.call(d,o)||o;return bo(o,{...t,fg:s,bg:l,themeName:a,rootStyle:c},d,u)}function bo(n,e,t,r=he(n)){const i=Re(e),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=e;let c={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...a!==!1&&a!=null?{tabindex:a.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([m])=>!m.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const h=[],p={...t,structure:l,addClassToHast:Sn,get source(){return t.source},get tokens(){return n},get options(){return e},get root(){return s},get pre(){return c},get code(){return u},get lines(){return h}};if(n.forEach((m,v)=>{v&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
13
|
+
`}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const g of m){let S={type:"element",tagName:"span",properties:{...g.htmlAttrs},children:[{type:"text",value:g.content}]};const E=ot(g.htmlStyle||Te(g));E&&(S.properties.style=E);for(const w of i)S=w?.span?.call(p,S,v+1,b,y,g)||S;l==="inline"?s.children.push(S):l==="classic"&&y.children.push(S),b+=g.content.length}if(l==="classic"){for(const g of i)y=g?.line?.call(p,y,v+1)||y;h.push(y),o.push(y)}else l==="inline"&&h.push(y)}),l==="classic"){for(const m of i)u=m?.code?.call(p,u)||u;c.children.push(u);for(const m of i)c=m?.pre?.call(p,c)||c;s.children.push(c)}else if(l==="inline"){const m=[];let v={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const g of s.children)g.type==="element"&&g.tagName==="br"?(m.push(v),v={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(g.type==="element"||g.type==="text")&&v.children.push(g);m.push(v);let b={type:"element",tagName:"code",properties:{},children:m};for(const g of i)b=g?.code?.call(p,b)||b;s.children=[];for(let g=0;g<b.children.length;g++){g>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const S=b.children[g];S.type==="element"&&s.children.push(...S.children)}}let d=s;for(const m of i)d=m?.root?.call(p,d)||d;return r&&xe(d,r),d}function So(n){return n.map(e=>{const t=[];let r="",i=0;return e.forEach((o,s)=>{const a=!(o.fontStyle&&(o.fontStyle&x.Underline||o.fontStyle&x.Strikethrough));a&&o.content.match(/^\s+$/)&&e[s+1]?(i||(i=o.offset),r+=o.content):r?(a?t.push({...o,offset:i,content:r+o.content}):t.push({content:r,offset:i},o),i=0,r=""):t.push(o)}),t})}function Co(n){return n.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const r=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return t;const[,i,o,s]=r;if(!i&&!s)return t;const l=[{...t,offset:t.offset+i.length,content:o}];return i&&l.unshift({content:i,offset:t.offset}),s&&l.push({content:s,offset:t.offset+i.length+o.length}),l}))}function wo(n){return n.map(e=>{const t=[];for(const r of e){if(t.length===0){t.push({...r});continue}const i=t[t.length-1],o=ot(i.htmlStyle||Te(i)),s=ot(r.htmlStyle||Te(r)),l=i.fontStyle&&(i.fontStyle&x.Underline||i.fontStyle&x.Strikethrough),a=r.fontStyle&&(r.fontStyle&x.Underline||r.fontStyle&x.Strikethrough);!l&&!a&&o===s?i.content+=r.content:t.push({...r})}return t})}const Eo=Ui;function ko(n,e,t){const r={meta:{},options:t,codeToHast:(o,s)=>Ae(n,o,s),codeToTokens:(o,s)=>Pe(n,o,s)};let i=Eo(Ae(n,e,t,r));for(const o of Re(t))i=o.postprocess?.call(r,i,t)||i;return i}const Bt={light:"#333333",dark:"#bbbbbb"},Gt={light:"#fffffe",dark:"#1e1e1e"},Vt="__shiki_resolved";function pt(n){if(n?.[Vt])return n;const e={...n};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:t,fg:r}=e;if(!t||!r){const l=e.settings?e.settings.find(a=>!a.name&&!a.scope):void 0;l?.settings?.foreground&&(r=l.settings.foreground),l?.settings?.background&&(t=l.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!t&&e?.colors?.["editor.background"]&&(t=e.colors["editor.background"]),r||(r=e.type==="light"?Bt.light:Bt.dark),t||(t=e.type==="light"?Gt.light:Gt.dark),e.fg=r,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function s(l){if(o.has(l))return o.get(l);i+=1;const a=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${a}`]?s(l):(o.set(l,a),a)}e.settings=e.settings.map(l=>{const a=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),c=l.settings?.background&&!l.settings.background.startsWith("#");if(!a&&!c)return l;const u={...l,settings:{...l.settings}};if(a){const h=s(l.settings.foreground);e.colorReplacements[h]=l.settings.foreground,u.settings.foreground=h}if(c){const h=s(l.settings.background);e.colorReplacements[h]=l.settings.background,u.settings.background=h}return u});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const a=s(e.colors[l]);e.colorReplacements[a]=e.colors[l],e.colors[l]=a}return Object.defineProperty(e,Vt,{enumerable:!1,writable:!1,value:!0}),e}async function kn(n){return Array.from(new Set((await Promise.all(n.filter(e=>!vn(e)).map(async e=>await yn(e).then(t=>Array.isArray(t)?t:[t])))).flat()))}async function Tn(n){return(await Promise.all(n.map(async t=>bn(t)?null:pt(await yn(t))))).filter(t=>!!t)}let To=3;function Ro(n,e=3){e>To||console.trace(`[SHIKI DEPRECATE]: ${n}`)}let Y=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class Lo extends Lr{constructor(e,t,r,i={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=pt(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=be.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){const t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new Y(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,t.size)for(const o of t)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const t=Array.from(this._langGraph.entries()),r=t.filter(([i,o])=>!o);if(r.length){const i=t.filter(([o,s])=>s&&s.embeddedLangs?.some(l=>r.map(([a])=>a).includes(l))).filter(o=>!r.includes(o));throw new Y(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of t)this._resolver.addLanguage(o);for(const[i,o]of t)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const r of t)this._langGraph.set(r,this._langMap.get(r))}}class Po{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let i=1;i<=t.length;i++){const o=t.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let ie=0;function Ao(n){ie+=1,n.warnings!==!1&&ie>=10&&ie%10===0&&console.warn(`[Shiki] ${ie} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!n.engine)throw new Y("`engine` option is required for synchronous mode");const t=(n.langs||[]).flat(1),r=(n.themes||[]).flat(1).map(pt),i=new Po(n.engine,t),o=new Lo(i,r,t,n.langAlias);let s;function l(g){y();const S=o.getGrammar(typeof g=="string"?g:g.name);if(!S)throw new Y(`Language \`${g}\` not found, you may need to load it first`);return S}function a(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const S=o.getTheme(g);if(!S)throw new Y(`Theme \`${g}\` not found, you may need to load it first`);return S}function c(g){y();const S=a(g);s!==g&&(o.setTheme(S),s=g);const E=o.getColorMap();return{theme:S,colorMap:E}}function u(){return y(),o.getLoadedThemes()}function h(){return y(),o.getLoadedLanguages()}function p(...g){y(),o.loadLanguages(g.flat(1))}async function d(...g){return p(await kn(g))}function m(...g){y();for(const S of g.flat(1))o.loadTheme(S)}async function v(...g){return y(),m(await Tn(g))}function y(){if(e)throw new Y("Shiki instance has been disposed")}function b(){e||(e=!0,o.dispose(),ie-=1)}return{setTheme:c,getTheme:a,getLanguage:l,getLoadedThemes:u,getLoadedLanguages:h,loadLanguage:d,loadLanguageSync:p,loadTheme:v,loadThemeSync:m,dispose:b,[Symbol.dispose]:b}}async function Io(n){n.engine||Ro("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,r]=await Promise.all([Tn(n.themes||[]),kn(n.langs||[]),n.engine]);return Ao({...n,themes:e,langs:t,engine:r})}async function xo(n){const e=await Io(n);return{getLastGrammarState:(...t)=>mo(e,...t),codeToTokensBase:(t,r)=>mt(e,t,r),codeToTokensWithThemes:(t,r)=>En(e,t,r),codeToTokens:(t,r)=>Pe(e,t,r),codeToHast:(t,r)=>Ae(e,t,r),codeToHtml:(t,r)=>ko(e,t,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function Oo(n){const e=n.langs,t=n.themes,r=n.engine;async function i(o){function s(h){if(typeof h=="string"){if(vn(h))return[];h=o.langAlias?.[h]||h;const p=e[h];if(!p)throw new R(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return p}return h}function l(h){if(bn(h))return"none";if(typeof h=="string"){const p=t[h];if(!p)throw new R(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return p}return h}const a=(o.themes??[]).map(h=>l(h)),c=(o.langs??[]).map(h=>s(h)),u=await xo({engine:o.engine??r(),...o,themes:a,langs:c});return{...u,loadLanguage(...h){return u.loadLanguage(...h.map(s))},loadTheme(...h){return u.loadTheme(...h.map(l))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return i}function No(n){let e;async function t(r={}){if(e){const i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{e=n({...r,themes:[],langs:[]});const i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return t}function Do(n,e){const t=No(n);async function r(i,o){const s=await t({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),l=await e?.guessEmbeddedLanguages?.(i,o.lang,s);return l&&await s.loadLanguage(...l),s}return{getSingletonHighlighter(i){return t(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await t({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}const Mo=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>f(()=>import("./C-Jbm3Hp.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>f(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>f(()=>import("./Cv9koXgw.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>f(()=>import("./DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>f(()=>import("./C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>f(()=>import("./DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>f(()=>import("./D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>f(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>f(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>f(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>f(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>f(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>f(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>f(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>f(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>f(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>f(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>f(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>f(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>f(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>f(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>f(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>f(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>f(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>f(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>f(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>f(()=>import("./CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>f(()=>import("./CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>f(()=>import("./DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>f(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>f(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>f(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>f(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>f(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>f(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>f(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>f(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>f(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>f(()=>import("./D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>f(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>f(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>f(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>f(()=>import("./PoHY5YXO.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>f(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>f(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>f(()=>import("./bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>f(()=>import("./qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>f(()=>import("./DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>f(()=>import("./D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>f(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>f(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>f(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>f(()=>import("./DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>f(()=>import("./L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>f(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>f(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>f(()=>import("./DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>f(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>f(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>f(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],Bo=Object.fromEntries(Mo.map(n=>[n.id,n.import]));class ft extends Error{constructor(e){super(e),this.name="ShikiError"}}function Go(){return 2147483648}function Vo(){return typeof performance<"u"?performance.now():Date.now()}const jo=(n,e)=>n+(e-n%e)%e;async function $o(n){let e,t;const r={};function i(d){t=d,r.HEAPU8=new Uint8Array(d),r.HEAPU32=new Uint32Array(d)}function o(d,m,v){r.HEAPU8.copyWithin(d,m,m+v)}function s(d){try{return e.grow(d-t.byteLength+65535>>>16),i(e.buffer),1}catch{}}function l(d){const m=r.HEAPU8.length;d=d>>>0;const v=Go();if(d>v)return!1;for(let y=1;y<=4;y*=2){let b=m*(1+.2/y);b=Math.min(b,d+100663296);const g=Math.min(v,jo(Math.max(d,b),65536));if(s(g))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(d,m,v=1024){const y=m+v;let b=m;for(;d[b]&&!(b>=y);)++b;if(b-m>16&&d.buffer&&a)return a.decode(d.subarray(m,b));let g="";for(;m<b;){let S=d[m++];if(!(S&128)){g+=String.fromCharCode(S);continue}const E=d[m++]&63;if((S&224)===192){g+=String.fromCharCode((S&31)<<6|E);continue}const w=d[m++]&63;if((S&240)===224?S=(S&15)<<12|E<<6|w:S=(S&7)<<18|E<<12|w<<6|d[m++]&63,S<65536)g+=String.fromCharCode(S);else{const O=S-65536;g+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return g}function u(d,m){return d?c(r.HEAPU8,d,m):""}const h={emscripten_get_now:Vo,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function p(){const m=await n({env:h,wasi_snapshot_preview1:h});e=m.memory,i(e.buffer),Object.assign(r,m),r.UTF8ToString=u}return await p(),r}var Uo=Object.defineProperty,Ho=(n,e,t)=>e in n?Uo(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,L=(n,e,t)=>Ho(n,typeof e!="symbol"?e+"":e,t);let A=null;function Wo(n){throw new ft(n.UTF8ToString(n.getLastOnigError()))}class Oe{constructor(e){L(this,"utf16Length"),L(this,"utf8Length"),L(this,"utf16Value"),L(this,"utf8Value"),L(this,"utf16OffsetToUtf8"),L(this,"utf8OffsetToUtf16");const t=e.length,r=Oe._utf8ByteLength(e),i=r!==t,o=i?new Uint32Array(t+1):null;i&&(o[t]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=t);const l=new Uint8Array(r);let a=0;for(let c=0;c<t;c++){const u=e.charCodeAt(c);let h=u,p=!1;if(u>=55296&&u<=56319&&c+1<t){const d=e.charCodeAt(c+1);d>=56320&&d<=57343&&(h=(u-55296<<10)+65536|d-56320,p=!0)}i&&(o[c]=a,p&&(o[c+1]=a),h<=127?s[a+0]=c:h<=2047?(s[a+0]=c,s[a+1]=c):h<=65535?(s[a+0]=c,s[a+1]=c,s[a+2]=c):(s[a+0]=c,s[a+1]=c,s[a+2]=c,s[a+3]=c)),h<=127?l[a++]=h:h<=2047?(l[a++]=192|(h&1984)>>>6,l[a++]=128|(h&63)>>>0):h<=65535?(l[a++]=224|(h&61440)>>>12,l[a++]=128|(h&4032)>>>6,l[a++]=128|(h&63)>>>0):(l[a++]=240|(h&1835008)>>>18,l[a++]=128|(h&258048)>>>12,l[a++]=128|(h&4032)>>>6,l[a++]=128|(h&63)>>>0),p&&c++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let r=0,i=e.length;r<i;r++){const o=e.charCodeAt(r);let s=o,l=!1;if(o>=55296&&o<=56319&&r+1<i){const a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,l&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const Ne=class j{constructor(e){if(L(this,"id",++j.LAST_ID),L(this,"_onigBinding"),L(this,"content"),L(this,"utf16Length"),L(this,"utf8Length"),L(this,"utf16OffsetToUtf8"),L(this,"utf8OffsetToUtf16"),L(this,"ptr"),!A)throw new ft("Must invoke loadWasm first.");this._onigBinding=A,this.content=e;const t=new Oe(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!j._sharedPtrInUse?(j._sharedPtr||(j._sharedPtr=A.omalloc(1e4)),j._sharedPtrInUse=!0,A.HEAPU8.set(t.utf8Value,j._sharedPtr),this.ptr=j._sharedPtr):this.ptr=t.createString(A)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===j._sharedPtr?j._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};L(Ne,"LAST_ID",0);L(Ne,"_sharedPtr",0);L(Ne,"_sharedPtrInUse",!1);let Rn=Ne;class Fo{constructor(e){if(L(this,"_onigBinding"),L(this,"_ptr"),!A)throw new ft("Must invoke loadWasm first.");const t=[],r=[];for(let l=0,a=e.length;l<a;l++){const c=new Oe(e[l]);t[l]=c.createString(A),r[l]=c.utf8Length}const i=A.omalloc(4*e.length);A.HEAPU32.set(t,i/4);const o=A.omalloc(4*e.length);A.HEAPU32.set(r,o/4);const s=A.createOnigScanner(i,o,e.length);for(let l=0,a=e.length;l<a;l++)A.ofree(t[l]);A.ofree(o),A.ofree(i),s===0&&Wo(A),this._onigBinding=A,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let i=0;if(typeof r=="number"&&(i=r),typeof e=="string"){e=new Rn(e);const o=this._findNextMatchSync(e,t,!1,i);return e.dispose(),o}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,r,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const c=l[a++],u=l[a++],h=[];for(let p=0;p<u;p++){const d=e.convertUtf8OffsetToUtf16(l[a++]),m=e.convertUtf8OffsetToUtf16(l[a++]);h[p]={start:d,end:m,length:m-d}}return{index:c,captureIndices:h}}}function zo(n){return typeof n.instantiator=="function"}function qo(n){return typeof n.default=="function"}function Ko(n){return typeof n.data<"u"}function Jo(n){return typeof Response<"u"&&n instanceof Response}function Yo(n){return typeof ArrayBuffer<"u"&&(n instanceof ArrayBuffer||ArrayBuffer.isView(n))||typeof Buffer<"u"&&Buffer.isBuffer?.(n)||typeof SharedArrayBuffer<"u"&&n instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&n instanceof Uint32Array}let _e;function Xo(n){if(_e)return _e;async function e(){A=await $o(async t=>{let r=n;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),zo(r)?r=await r.instantiator(t):qo(r)?r=await r.default(t):(Ko(r)&&(r=r.data),Jo(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Qo(r)(t):r=await Zo(r)(t):Yo(r)?r=await ze(r)(t):r instanceof WebAssembly.Module?r=await ze(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await ze(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return _e=e(),_e}function ze(n){return e=>WebAssembly.instantiate(n,e)}function Qo(n){return e=>WebAssembly.instantiateStreaming(n,e)}function Zo(n){return async e=>{const t=await n.arrayBuffer();return WebAssembly.instantiate(t,e)}}async function es(n){return n&&await Xo(n),{createScanner(e){return new Fo(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new Rn(e)}}}const Ln=[{id:"angular-html",name:"Angular HTML",import:(()=>f(()=>import("./DxNHbxmM.js").then(n=>n.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>f(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"astro",name:"Astro",import:(()=>f(()=>import("./DxSwrfjg.js"),__vite__mapDeps([6,7,2,8,3,9,10]),import.meta.url))},{id:"blade",name:"Blade",import:(()=>f(()=>import("./DNMeEaky.js"),__vite__mapDeps([11,12,1,2,3,13,14,15,7]),import.meta.url))},{id:"c",name:"C",import:(()=>f(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>f(()=>import("./CxbxFI8M.js"),__vite__mapDeps([16,2]),import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>f(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([17,18,19,20,15]),import.meta.url))},{id:"css",name:"CSS",import:(()=>f(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>f(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>f(()=>import("./DZxFcAj9.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>f(()=>import("./C9oPPf7i.js"),__vite__mapDeps([21,2,8,22,10]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>f(()=>import("./CmIQRyeF.js"),__vite__mapDeps([23,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>f(()=>import("./m17aaUwq.js"),__vite__mapDeps([24,1,2,3,25]),import.meta.url))},{id:"html",name:"HTML",import:(()=>f(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>f(()=>import("./DGP4VlC8.js"),__vite__mapDeps([12,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>f(()=>import("./CufHLc7y.js"),__vite__mapDeps([26,27,7,13,14,21,2,8,22,10]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>f(()=>import("./CYsAdtH9.js"),__vite__mapDeps([28,21,2,8,22,10,13,14,29]),import.meta.url))},{id:"imba",name:"Imba",import:(()=>f(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>f(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>f(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>f(()=>import("./CXZktZb0.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>f(()=>import("./Br6cN0cg.js"),__vite__mapDeps([31,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>f(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>f(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>f(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>f(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>f(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>f(()=>import("./CgjmDhmW.js"),__vite__mapDeps([32,17,18,19,20,15,33,2,34]),import.meta.url))},{id:"less",name:"Less",import:(()=>f(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>f(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>f(()=>import("./CMFEf1DS.js"),__vite__mapDeps([35,3,36,5,8]),import.meta.url))},{id:"mdc",name:"MDC",import:(()=>f(()=>import("./TsXTqZ29.js"),__vite__mapDeps([37,38,25,12,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>f(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"php",name:"PHP",import:(()=>f(()=>import("./Xqf5ue2O.js"),__vite__mapDeps([39,1,2,3,13,14,15,7]),import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>f(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>f(()=>import("./BLmx8bSh.js"),__vite__mapDeps([40,2,3,1]),import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>f(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>f(()=>import("./DiinP2Uv.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>f(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"sass",name:"Sass",import:(()=>f(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>f(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>f(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>f(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>f(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>f(()=>import("./DDBovgxi.js"),__vite__mapDeps([41,2,8,3,9]),import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>f(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([42,8,3,2,19,20,1,15,13,14]),import.meta.url))},{id:"tsx",name:"TSX",import:(()=>f(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>f(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>f(()=>import("./aF-l9SMX.js"),__vite__mapDeps([43,3,2,8,7,12,1]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>f(()=>import("./CXsvEkWC.js"),__vite__mapDeps([44,43,3,2,8,7,12,1]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>f(()=>import("./cgN_UPQ0.js"),__vite__mapDeps([45,3,5,36,46,9,43,2,8,7,12,1]),import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>f(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>f(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>f(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>f(()=>import("./BGJmEYvX.js"),__vite__mapDeps([13,14]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>f(()=>import("./Buea-lGh.js"),[],import.meta.url))}],ts=Object.fromEntries(Ln.map(n=>[n.id,n.import])),ns=Object.fromEntries(Ln.flatMap(n=>n.aliases?.map(e=>[e,n.import])||[])),rs={...ts,...ns},is=Oo({langs:rs,themes:Bo,engine:()=>es(f(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:os}=Do(is,{guessEmbeddedLanguages:qi});class ss{diff(e,t,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);const o=this.castInput(e,r),s=this.castInput(t,r),l=this.removeEmpty(this.tokenize(o,r)),a=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(l,a,r,i)}diffWithOptionsObj(e,t,r,i){var o;const s=g=>{if(g=this.postProcess(g,r),i){setTimeout(function(){i(g)},0);return}else return g},l=t.length,a=e.length;let c=1,u=l+a;r.maxEditLength!=null&&(u=Math.min(u,r.maxEditLength));const h=(o=r.timeout)!==null&&o!==void 0?o:1/0,p=Date.now()+h,d=[{oldPos:-1,lastComponent:void 0}];let m=this.extractCommon(d[0],t,e,0,r);if(d[0].oldPos+1>=a&&m+1>=l)return s(this.buildValues(d[0].lastComponent,t,e));let v=-1/0,y=1/0;const b=()=>{for(let g=Math.max(v,-c);g<=Math.min(y,c);g+=2){let S;const E=d[g-1],w=d[g+1];E&&(d[g-1]=void 0);let O=!1;if(w){const ne=w.oldPos-g;O=w&&0<=ne&&ne<l}const G=E&&E.oldPos+1<a;if(!O&&!G){d[g]=void 0;continue}if(!G||O&&E.oldPos<w.oldPos?S=this.addToPath(w,!0,!1,0,r):S=this.addToPath(E,!1,!0,1,r),m=this.extractCommon(S,t,e,g,r),S.oldPos+1>=a&&m+1>=l)return s(this.buildValues(S.lastComponent,t,e))||!0;d[g]=S,S.oldPos+1>=a&&(y=Math.min(y,g-1)),m+1>=l&&(v=Math.max(v,g+1))}c++};if(i)(function g(){setTimeout(function(){if(c>u||Date.now()>p)return i(void 0);b()||g()},0)})();else for(;c<=u&&Date.now()<=p;){const g=b();if(g)return g}}addToPath(e,t,r,i,o){const s=e.lastComponent;return s&&!o.oneChangePerToken&&s.added===t&&s.removed===r?{oldPos:e.oldPos+i,lastComponent:{count:s.count+1,added:t,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:t,removed:r,previousComponent:s}}}extractCommon(e,t,r,i,o){const s=t.length,l=r.length;let a=e.oldPos,c=a-i,u=0;for(;c+1<s&&a+1<l&&this.equals(r[a+1],t[c+1],o);)c++,a++,u++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!o.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,c}equals(e,t,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,r){const i=[];let o;for(;e;)i.push(e),o=e.previousComponent,delete e.previousComponent,e=o;i.reverse();const s=i.length;let l=0,a=0,c=0;for(;l<s;l++){const u=i[l];if(u.removed)u.value=this.join(r.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let h=t.slice(a,a+u.count);h=h.map(function(p,d){const m=r[c+d];return m.length>p.length?m:p}),u.value=this.join(h)}else u.value=this.join(t.slice(a,a+u.count));a+=u.count,u.added||(c+=u.count)}}return i}}class as extends ss{constructor(){super(...arguments),this.tokenize=us}equals(e,t,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(`
|
|
14
|
+
`))&&(e=e.trim()),(!r.newlineIsToken||!t.includes(`
|
|
15
|
+
`))&&(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith(`
|
|
16
|
+
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
17
|
+
`)&&(t=t.slice(0,-1))),super.equals(e,t,r)}}const ls=new as;function cs(n,e,t){return ls.diff(n,e,t)}function us(n,e){e.stripTrailingCr&&(n=n.replace(/\r\n/g,`
|
|
18
|
+
`));const t=[],r=n.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let i=0;i<r.length;i++){const o=r[i];i%2&&!e.newlineIsToken?t[t.length-1]+=o:t.push(o)}return t}const hs=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function ds(n,e,t){const r=[];for(const i of n){if(t==="v3"){const l=i.children.flatMap((a,c)=>{if(a.type!=="element")return a;const u=a.children[0];if(u.type!=="text")return a;const h=c===i.children.length-1;if(!qe(u.value,h))return a;const d=u.value.split(/(\s+\/\/)/);if(d.length<=1)return a;let m=[d[0]];for(let v=1;v<d.length;v+=2)m.push(d[v]+(d[v+1]||""));return m=m.filter(Boolean),m.length<=1?a:m.map(v=>({...a,children:[{type:"text",value:v}]}))});l.length!==i.children.length&&(i.children=l)}const o=i.children;let s=o.length-1;t==="v1"?s=0:e&&(s=o.length-2);for(let l=Math.max(s,0);l<o.length;l++){const a=o[l];if(a.type!=="element")continue;const c=a.children.at(0);if(c?.type!=="text")continue;const u=l===o.length-1;let h=qe(c.value,u),p;if(!h&&l>0&&c.value.trim().startsWith("[!code")){const d=o[l-1];if(d?.type==="element"){const m=d.children.at(0);if(m?.type==="text"&&m.value.includes("//")){const v=m.value+c.value,y=qe(v,u);if(y){h=y,r.push({info:y,line:i,token:d,isLineCommentOnly:o.length===2&&d.children.length===1&&a.children.length===1,isJsxStyle:!1,additionalTokens:[a]});continue}}}}if(h)if(e&&!u&&l!==0){const d=jt(o[l-1],"{")&&jt(o[l+1],"}");r.push({info:h,line:i,token:a,isLineCommentOnly:o.length===3&&a.children.length===1,isJsxStyle:d,additionalTokens:p})}else r.push({info:h,line:i,token:a,isLineCommentOnly:o.length===1&&a.children.length===1,isJsxStyle:!1,additionalTokens:p})}}return r}function jt(n,e){if(n.type!=="element")return!1;const t=n.children[0];return t.type!=="text"?!1:t.value.trim()===e}function qe(n,e){let t=n.trimStart();const r=n.length-t.length;t=t.trimEnd();const i=n.length-t.length-r;for(const[o,s]of hs){if(s&&!e)continue;const l=o.exec(t);if(l)return[" ".repeat(r)+l[1],l[2],l[3]?l[3]+" ".repeat(i):void 0]}}function ms(n){const e=n.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return e&&e[1].trim().length===0?n.slice(0,e.index):n}function ps(n,e,t,r){return r==null&&(r="v3"),{name:n,code(i){const o=i.children.filter(c=>c.type==="element"),s=[];i.data??={};const l=i.data;l._shiki_notation??=ds(o,["jsx","tsx"].includes(this.options.lang),r);const a=l._shiki_notation;for(const c of a){if(c.info[1].length===0)continue;let u=o.indexOf(c.line);c.isLineCommentOnly&&r!=="v1"&&u++;let h=!1;if(c.info[1]=c.info[1].replace(e,(...d)=>t.call(this,d,c.line,c.token,o,u)?(h=!0,""):d[0]),!h)continue;r==="v1"&&(c.info[1]=ms(c.info[1]));const p=c.info[1].trim().length===0;if(p&&(c.info[1]=""),p&&c.isLineCommentOnly)s.push(c.line);else if(p&&c.isJsxStyle)c.line.children.splice(c.line.children.indexOf(c.token)-1,3);else if(p){if(c.additionalTokens)for(let d=c.additionalTokens.length-1;d>=0;d--){const m=c.additionalTokens[d],v=c.line.children.indexOf(m);v!==-1&&c.line.children.splice(v,1)}c.line.children.splice(c.line.children.indexOf(c.token),1)}else{const d=c.token.children[0];if(d.type==="text"&&(d.value=c.info.join(""),c.additionalTokens))for(const m of c.additionalTokens){const v=m.children[0];v?.type==="text"&&(v.value="")}}}for(const c of s){const u=i.children.indexOf(c),h=i.children[u+1];let p=1;h?.type==="text"&&h?.value===`
|
|
19
|
+
`&&(p=2),i.children.splice(u,p)}}}}function fs(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gs(n={},e="@shikijs/transformers:notation-map"){const{classMap:t={},classActivePre:r=void 0}=n;return ps(e,new RegExp(`#?\\s*\\[!code (${Object.keys(t).map(fs).join("|")})(:\\d+)?\\]`,"gi"),function([i,o,s=":1"],l,a,c,u){const h=Number.parseInt(s.slice(1),10);for(let p=u;p<Math.min(u+h,c.length);p++)this.addClassToHast(c[p],t[o]);return r&&this.addClassToHast(this.pre,r),!0},n.matchAlgorithm)}function _s(n={}){const{classLineAdd:e="diff add",classLineRemove:t="diff remove",classActivePre:r="has-diff"}=n;return gs({classMap:{"++":e,"--":t},classActivePre:r,matchAlgorithm:n.matchAlgorithm},"@shikijs/transformers:notation-diff")}const ys={class:"flex items-start justify-between gap-3"},vs={class:"min-w-0"},bs={class:"text-sm font-semibold"},Ss={class:"text-xs text-neutral-500 truncate"},Cs={class:"mt-1 flex flex-wrap gap-2 text-[11px]"},ws={class:"shrink-0 flex items-center gap-2"},Es=["innerHTML"],ks=$t({__name:"HydrationIssue",props:{issue:{}},setup(n){const e=n,t=J(()=>e.issue.instance.type.name??e.issue.instance.type.__name??"AnonymousComponent"),r=J(()=>e.issue.instance.type.__file),i=J(()=>e.issue.instance.vnode.el?.tagName?.toLowerCase()||"unknown"),o=J(()=>e.issue.instance.vnode.el),{highlightElement:s,inspectElementInEditor:l,clearHighlight:a}=Un(),c=Mn("");async function u(v,y){const b=cs(v,y,{stripTrailingCr:!0,ignoreNewlineAtEof:!0});c.value=await os(h(b),{theme:"github-dark",lang:"html",transformers:[_s()]})}function h(v){return v.map(y=>y.added?`// [!code ++]
|
|
20
|
+
${y.value}`:y.removed?`// [!code --]
|
|
21
|
+
${y.value} `:y.value).join("")}const p=J(()=>e.issue.htmlPreHydration??""),d=J(()=>e.issue.htmlPostHydration??"");Bn([p,d],([v,y])=>{u(v,y)},{immediate:!0});function m(v){navigator.clipboard?.writeText(v).catch(()=>{})}return(v,y)=>{const b=In,g=xn,S=On,E=Nn;return oe(),Ut(E,{"p-4":"",relative:""},{default:re(()=>[U("div",ys,[U("div",vs,[U("div",bs,Be(M(t)),1),U("div",Ss,Be(M(r)),1),U("div",Cs,[W(b,{size:"small",title:"Root element tag where mismatch was detected."},{default:re(()=>[Gn(" root: "+Be(M(i)),1)]),_:1})])]),U("div",ws,[W(S,{size:"small",quaternary:"",title:"Open in editor",onMouseover:y[0]||(y[0]=w=>M(s)(M(o))),onMouseleave:y[1]||(y[1]=w=>M(a)()),onClick:y[2]||(y[2]=w=>M(l)(M(o)))},{default:re(()=>[W(g,{name:"material-symbols:file-open-outline",class:"text-lg"})]),_:1}),W(S,{size:"small",quaternary:"",onClick:y[3]||(y[3]=w=>m(M(p)))},{default:re(()=>[W(g,{name:"material-symbols:content-copy-outline",class:"text-lg"}),y[5]||(y[5]=U("span",{class:"ml-1"},"Copy pre",-1))]),_:1}),W(S,{size:"small",quaternary:"",onClick:y[4]||(y[4]=w=>m(M(d)))},{default:re(()=>[W(g,{name:"material-symbols:content-copy-outline",class:"text-lg"}),y[6]||(y[6]=U("span",{class:"ml-1"},"Copy post",-1))]),_:1})])]),U("div",{class:"w-full mt-3 overflow-auto rounded-lg",innerHTML:M(c)},null,8,Es)]),_:1})}}}),Ts=Object.assign(Vn(ks,[["__scopeId","data-v-a61f8c06"]]),{__name:"HydrationIssue"}),Rs={grid:"","gap-4":"","p-4":""},Ls={key:1,class:"text-neutral-500 dark:text-neutral-400"},Vs=$t({__name:"hydration",setup(n){const{hydration:e}=Dn();return(t,r)=>{const i=Ts;return oe(),Ge("div",Rs,[M(e).length?(oe(!0),Ge(jn,{key:0},$n(M(e),o=>(oe(),Ut(i,{issue:o},null,8,["issue"]))),256)):(oe(),Ge("div",Ls," No hydration issues found "))])}}});export{Vs as default};
|