@p4code/cli 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/bin.mjs +726 -72
  2. package/dist/client/assets/{DiffPanel-CkrZfPGI.js → DiffPanel-BooVz7M0.js} +3 -3
  3. package/dist/client/assets/FilePreviewPanel-CctHlOR7.js +2230 -0
  4. package/dist/client/assets/PreviewPanel-iNGC0YrW.js +2 -0
  5. package/dist/client/assets/{PullRequestCodeTab-DXvCq9PN.js → PullRequestCodeTab-ilyykLSQ.js} +4 -4
  6. package/dist/client/assets/arrow-right-CB1n5rpS.js +2 -0
  7. package/dist/client/assets/{fileCommentAnnotations-jIuAO40K.js → fileCommentAnnotations-Ckjc-0ZU.js} +2 -2
  8. package/dist/client/assets/{index-BZdqP0xD.js → index-Cvhs37GD.js} +1539 -241
  9. package/dist/client/assets/pierre-dark-CpLgRqie.js +2 -0
  10. package/dist/client/assets/pierre-dark-protanopia-deuteranopia-B35FxJx-.js +2 -0
  11. package/dist/client/assets/pierre-dark-soft-kZQmAZld.js +2 -0
  12. package/dist/client/assets/pierre-dark-tritanopia-CpjhbsIL.js +2 -0
  13. package/dist/client/assets/pierre-dark-vibrant-CpQYzh95.js +2 -0
  14. package/dist/client/assets/pierre-light-CoaEpmwp.js +2 -0
  15. package/dist/client/assets/pierre-light-protanopia-deuteranopia-0fSaH845.js +2 -0
  16. package/dist/client/assets/pierre-light-soft-lWLdNTOI.js +2 -0
  17. package/dist/client/assets/pierre-light-tritanopia-CEbqgOJL.js +2 -0
  18. package/dist/client/assets/pierre-light-vibrant-D80Fkn33.js +2 -0
  19. package/dist/client/assets/renderFileChildren-1GxlP08z.js +2 -0
  20. package/dist/client/assets/terminal-links-Dcw5kSW5.js +47 -0
  21. package/dist/client/assets/toggle-group-DngghwoH.js +2 -0
  22. package/dist/client/assets/{worker-aIZfs-9q.js → worker-CTbBhd8-.js} +24 -21
  23. package/dist/client/index.html +2 -2
  24. package/package.json +2 -2
  25. package/dist/client/assets/FilePreviewPanel-ExZ7jSHB.js +0 -1778
  26. package/dist/client/assets/PreviewPanel-DFC5gUqR.js +0 -2
  27. package/dist/client/assets/arrow-right-BsoyxJft.js +0 -2
  28. package/dist/client/assets/pierre-dark-sU4Zdns8.js +0 -2
  29. package/dist/client/assets/pierre-dark-soft-HXgun5vs.js +0 -2
  30. package/dist/client/assets/pierre-dark-vibrant-D4RhcSIK.js +0 -2
  31. package/dist/client/assets/pierre-light-DWBk51d8.js +0 -2
  32. package/dist/client/assets/pierre-light-soft-CodEzPxf.js +0 -2
  33. package/dist/client/assets/pierre-light-vibrant-B76X7i5Y.js +0 -2
  34. package/dist/client/assets/renderFileChildren-CbnyGaFt.js +0 -2
  35. package/dist/client/assets/terminal-links-CaZNZumK.js +0 -47
  36. package/dist/client/assets/toggle-group-Aw7xeuHS.js +0 -2
@@ -0,0 +1,2 @@
1
+ var e=Object.freeze(JSON.parse(`{"name":"pierre-light-vibrant","displayName":"Pierre Light Vibrant","type":"light","colors":{"editor.background":"color(display-p3 1.000000 1.000000 1.000000)","editor.foreground":"color(display-p3 0.039216 0.039216 0.039216)","foreground":"color(display-p3 0.039216 0.039216 0.039216)","focusBorder":"color(display-p3 0.308664 0.645271 1.000000)","selection.background":"color(display-p3 0.883107 0.920057 0.992610)","editor.selectionBackground":"color(display-p3 0.308664 0.645271 1.000000 / 0.180000)","editor.lineHighlightBackground":"color(display-p3 0.883107 0.920057 0.992610 / 0.550000)","editorCursor.foreground":"color(display-p3 0.308664 0.645271 1.000000)","editorLineNumber.foreground":"color(display-p3 0.450980 0.450980 0.450980)","editorLineNumber.activeForeground":"color(display-p3 0.321569 0.321569 0.321569)","editorIndentGuide.background":"color(display-p3 0.898039 0.898039 0.898039)","editorIndentGuide.activeBackground":"color(display-p3 0.831373 0.831373 0.831373)","diffEditor.insertedTextBackground":"color(display-p3 0.266455 0.667541 0.435918 / 0.200000)","diffEditor.deletedTextBackground":"color(display-p3 0.838044 0.219378 0.220424 / 0.200000)","sideBar.background":"color(display-p3 0.960784 0.960784 0.960784)","sideBar.foreground":"color(display-p3 0.321569 0.321569 0.321569)","sideBar.border":"color(display-p3 0.898039 0.898039 0.898039)","sideBarTitle.foreground":"color(display-p3 0.039216 0.039216 0.039216)","sideBarSectionHeader.background":"color(display-p3 0.960784 0.960784 0.960784)","sideBarSectionHeader.foreground":"color(display-p3 0.321569 0.321569 0.321569)","sideBarSectionHeader.border":"color(display-p3 0.898039 0.898039 0.898039)","activityBar.background":"color(display-p3 0.960784 0.960784 0.960784)","activityBar.foreground":"color(display-p3 0.039216 0.039216 0.039216)","activityBar.border":"color(display-p3 0.898039 0.898039 0.898039)","activityBar.activeBorder":"color(display-p3 0.308664 0.645271 1.000000)","activityBarBadge.background":"color(display-p3 0.308664 0.645271 1.000000)","activityBarBadge.foreground":"color(display-p3 1.000000 1.000000 1.000000)","titleBar.activeBackground":"color(display-p3 0.960784 0.960784 0.960784)","titleBar.activeForeground":"color(display-p3 0.039216 0.039216 0.039216)","titleBar.inactiveBackground":"color(display-p3 0.960784 0.960784 0.960784)","titleBar.inactiveForeground":"color(display-p3 0.450980 0.450980 0.450980)","titleBar.border":"color(display-p3 0.898039 0.898039 0.898039)","list.activeSelectionBackground":"color(display-p3 0.883107 0.920057 0.992610 / 0.800000)","list.activeSelectionForeground":"color(display-p3 0.039216 0.039216 0.039216)","list.inactiveSelectionBackground":"color(display-p3 0.883107 0.920057 0.992610 / 0.450000)","list.hoverBackground":"color(display-p3 0.883107 0.920057 0.992610 / 0.350000)","list.focusOutline":"color(display-p3 0.308664 0.645271 1.000000)","tab.activeBackground":"color(display-p3 1.000000 1.000000 1.000000)","tab.activeForeground":"color(display-p3 0.039216 0.039216 0.039216)","tab.activeBorderTop":"color(display-p3 0.308664 0.645271 1.000000)","tab.inactiveBackground":"color(display-p3 0.960784 0.960784 0.960784)","tab.inactiveForeground":"color(display-p3 0.450980 0.450980 0.450980)","tab.border":"color(display-p3 0.898039 0.898039 0.898039)","editorGroupHeader.tabsBackground":"color(display-p3 0.960784 0.960784 0.960784)","editorGroupHeader.tabsBorder":"color(display-p3 0.898039 0.898039 0.898039)","panel.background":"color(display-p3 0.960784 0.960784 0.960784)","panel.border":"color(display-p3 0.898039 0.898039 0.898039)","panelTitle.activeBorder":"color(display-p3 0.308664 0.645271 1.000000)","panelTitle.activeForeground":"color(display-p3 0.039216 0.039216 0.039216)","panelTitle.inactiveForeground":"color(display-p3 0.450980 0.450980 0.450980)","statusBar.background":"color(display-p3 0.960784 0.960784 0.960784)","statusBar.foreground":"color(display-p3 0.321569 0.321569 0.321569)","statusBar.border":"color(display-p3 0.898039 0.898039 0.898039)","statusBar.noFolderBackground":"color(display-p3 0.960784 0.960784 0.960784)","statusBar.debuggingBackground":"color(display-p3 0.883654 0.721037 0.210874)","statusBar.debuggingForeground":"color(display-p3 1.000000 1.000000 1.000000)","statusBarItem.remoteBackground":"color(display-p3 0.960784 0.960784 0.960784)","statusBarItem.remoteForeground":"color(display-p3 0.321569 0.321569 0.321569)","input.background":"color(display-p3 0.929412 0.929412 0.929412)","input.border":"color(display-p3 0.831373 0.831373 0.831373)","input.foreground":"color(display-p3 0.039216 0.039216 0.039216)","input.placeholderForeground":"color(display-p3 0.541176 0.541176 0.541176)","dropdown.background":"color(display-p3 0.929412 0.929412 0.929412)","dropdown.border":"color(display-p3 0.831373 0.831373 0.831373)","dropdown.foreground":"color(display-p3 0.039216 0.039216 0.039216)","button.background":"color(display-p3 0.308664 0.645271 1.000000)","button.foreground":"color(display-p3 1.000000 1.000000 1.000000)","button.hoverBackground":"color(display-p3 0.376471 0.682353 1.000000)","textLink.foreground":"color(display-p3 0.308664 0.645271 1.000000)","textLink.activeForeground":"color(display-p3 0.308664 0.645271 1.000000)","notifications.background":"color(display-p3 0.968627 0.968627 0.968627)","notifications.foreground":"color(display-p3 0.039216 0.039216 0.039216)","notifications.border":"color(display-p3 0.898039 0.898039 0.898039)","notificationToast.border":"color(display-p3 0.898039 0.898039 0.898039)","notificationCenter.border":"color(display-p3 0.898039 0.898039 0.898039)","notificationCenterHeader.background":"color(display-p3 0.968627 0.968627 0.968627)","notificationCenterHeader.foreground":"color(display-p3 0.321569 0.321569 0.321569)","notificationLink.foreground":"color(display-p3 0.308664 0.645271 1.000000)","notificationsErrorIcon.foreground":"color(display-p3 0.838044 0.219378 0.220424)","notificationsWarningIcon.foreground":"color(display-p3 0.883654 0.721037 0.210874)","notificationsInfoIcon.foreground":"color(display-p3 0.246852 0.642335 0.817202)","quickInput.background":"color(display-p3 0.968627 0.968627 0.968627)","quickInput.foreground":"color(display-p3 0.039216 0.039216 0.039216)","quickInputTitle.background":"color(display-p3 0.968627 0.968627 0.968627)","widget.border":"color(display-p3 0.898039 0.898039 0.898039)","gitDecoration.addedResourceForeground":"color(display-p3 0.266455 0.667541 0.435918)","gitDecoration.conflictingResourceForeground":"color(display-p3 0.391345 0.215644 0.853560)","gitDecoration.modifiedResourceForeground":"color(display-p3 0.308664 0.645271 1.000000)","gitDecoration.deletedResourceForeground":"color(display-p3 0.838044 0.219378 0.220424)","gitDecoration.untrackedResourceForeground":"color(display-p3 0.266455 0.667541 0.435918)","gitDecoration.ignoredResourceForeground":"color(display-p3 0.450980 0.450980 0.450980)","merge.currentHeaderBackground":"color(display-p3 0.391345 0.215644 0.853560 / 0.200000)","merge.currentContentBackground":"color(display-p3 0.391345 0.215644 0.853560 / 0.080000)","merge.incomingHeaderBackground":"color(display-p3 0.246852 0.642335 0.817202 / 0.200000)","merge.incomingContentBackground":"color(display-p3 0.246852 0.642335 0.817202 / 0.080000)","editorOverviewRuler.currentContentForeground":"color(display-p3 0.391345 0.215644 0.853560)","editorOverviewRuler.incomingContentForeground":"color(display-p3 0.246852 0.642335 0.817202)","terminal.titleForeground":"color(display-p3 0.321569 0.321569 0.321569)","terminal.titleInactiveForeground":"color(display-p3 0.450980 0.450980 0.450980)","terminal.background":"color(display-p3 0.960784 0.960784 0.960784)","terminal.foreground":"color(display-p3 0.321569 0.321569 0.321569)","terminal.ansiBlack":"color(display-p3 0.113725 0.113725 0.113725)","terminal.ansiRed":"color(display-p3 0.838044 0.219378 0.220424)","terminal.ansiGreen":"color(display-p3 0.266455 0.667541 0.435918)","terminal.ansiYellow":"color(display-p3 0.883654 0.721037 0.210874)","terminal.ansiBlue":"color(display-p3 0.227104 0.537899 0.881328)","terminal.ansiMagenta":"color(display-p3 0.733164 0.179473 0.572580)","terminal.ansiCyan":"color(display-p3 0.246852 0.642335 0.817202)","terminal.ansiWhite":"color(display-p3 0.737255 0.737255 0.737255)","terminal.ansiBrightBlack":"color(display-p3 0.113725 0.113725 0.113725)","terminal.ansiBrightRed":"color(display-p3 0.838044 0.219378 0.220424)","terminal.ansiBrightGreen":"color(display-p3 0.516667 0.680013 0.208825)","terminal.ansiBrightYellow":"color(display-p3 0.883654 0.721037 0.210874)","terminal.ansiBrightBlue":"color(display-p3 0.227104 0.537899 0.881328)","terminal.ansiBrightMagenta":"color(display-p3 0.733164 0.179473 0.572580)","terminal.ansiBrightCyan":"color(display-p3 0.246852 0.642335 0.817202)","terminal.ansiBrightWhite":"color(display-p3 0.737255 0.737255 0.737255)"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"color(display-p3 0.450980 0.450980 0.450980)"}},{"scope":"comment markup.link","settings":{"foreground":"color(display-p3 0.450980 0.450980 0.450980)"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"color(display-p3 0.246852 0.642335 0.817202)"}},{"scope":"constant","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"constant.language","settings":{"foreground":"color(display-p3 0.246852 0.642335 0.817202)"}},{"scope":"variable.other.constant","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"keyword","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"keyword.control","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"token.storage","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"keyword.operator.delete","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"color(display-p3 0.854172 0.502144 0.209646)"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"color(display-p3 0.854172 0.502144 0.209646)"}},{"scope":"variable.language","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"variable.parameter.function","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"function.parameter","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"variable.parameter","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"keyword.other.special-method","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"entity.name.function","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"support.function.console","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"color(display-p3 0.660755 0.179954 0.815400)"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"color(display-p3 0.660755 0.179954 0.815400)"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"color(display-p3 0.660755 0.179954 0.815400)"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"color(display-p3 0.660755 0.179954 0.815400)"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"color(display-p3 0.660755 0.179954 0.815400)"}},{"scope":"entity.name.namespace","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"keyword.operator","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"keyword.operator.optional","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"punctuation","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"punctuation.terminator","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"meta.brace","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"meta.brace.square","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"meta.brace.round","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"function.brace","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"keyword.operator.module","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"support.type.object.console","settings":{"foreground":"color(display-p3 0.854172 0.502144 0.209646)"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"support.constant.math","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"support.constant.property.math","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"support.constant.json","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"support.type.object.dom","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"color(display-p3 0.854172 0.502144 0.209646)"}},{"scope":"support.variable.property.process","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"meta.property.object","settings":{"foreground":"color(display-p3 0.854172 0.502144 0.209646)"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"color(display-p3 0.854172 0.502144 0.209646)"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"meta.template.expression","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"color(display-p3 0.854172 0.502144 0.209646)"}},{"scope":"variable.interpolation","settings":{"foreground":"color(display-p3 0.854172 0.502144 0.209646)"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"color(display-p3 0.660755 0.179954 0.815400)"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"support.type.primitive","settings":{"foreground":"color(display-p3 0.660755 0.179954 0.815400)"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"color(display-p3 0.227104 0.537899 0.881328)"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"color(display-p3 0.227104 0.537899 0.881328)"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"color(display-p3 0.227104 0.537899 0.881328)"}},{"scope":"support.variable.magic.python","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"support.type.python","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"support.function.std.rust","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"variable.language.rust","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"support.constant.core.rust","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"variable.c","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"source.java","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"meta.method.java","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"import.storage.java","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"token.package.keyword","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"token.package","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"token.storage.type.java","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"entity.name.package.go","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"variable.other.class.php","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"color(display-p3 0.039216 0.039216 0.039216)"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"storage.type.haskell","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"storage.type.cs","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"entity.name.label.cs","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"support.constant.edge","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"support.constant.elm","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"entity.global.clojure","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"meta.method.groovy","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"source.makefile","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"source.ini","settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"entity.name.function.xi","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"entity.name.class.xi","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"constant.regexp.xi","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"keyword.control.xi","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"invalid.xi","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"color(display-p3 0.450980 0.450980 0.450980)"}},{"scope":"constant.character.xi","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"accent.xi","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"wikiword.xi","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"color(display-p3 0.039216 0.039216 0.039216)"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"color(display-p3 0.450980 0.450980 0.450980)"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"support.type.property-name.css","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"support.type.property-name","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"support.constant.property-value","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"support.constant.font-name","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"color(display-p3 0.266455 0.667541 0.435918)","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"meta.selector","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"selector.sass","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"rgb-value","settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"less rgb-value","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"control.elements","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"keyword.operator.less","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"entity.name.tag","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"color(display-p3 0.266455 0.667541 0.435918)","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"meta.tag","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"markup.heading","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"markup.heading.setext","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"markup.quote.markdown","settings":{"foreground":"color(display-p3 0.450980 0.450980 0.450980)"}},{"scope":"keyword.other.unit","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"markup.changed.diff","settings":{"foreground":"color(display-p3 0.870477 0.613222 0.203432)"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"markup.inserted.diff","settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":"markup.deleted.diff","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"string.regexp","settings":{"foreground":"color(display-p3 0.262058 0.668164 0.717478)"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"constant.character.escape","settings":{"foreground":"color(display-p3 0.272343 0.688141 0.603353)"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"color(display-p3 0.259723 0.647032 0.276349)"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"color(display-p3 0.327292 0.790977 0.995660)"}},{"scope":"support.type.property-name.json","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"color(display-p3 0.846123 0.351499 0.208754)"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"block.scope.end","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"block.scope.begin","settings":{"foreground":"color(display-p3 0.388235 0.388235 0.388235)"}},{"scope":"token.info-token","settings":{"foreground":"color(display-p3 0.391345 0.215644 0.853560)"}},{"scope":"token.warn-token","settings":{"foreground":"color(display-p3 0.883654 0.721037 0.210874)"}},{"scope":"token.error-token","settings":{"foreground":"color(display-p3 0.039216 0.039216 0.039216)"}},{"scope":"token.debug-token","settings":{"foreground":"color(display-p3 0.834880 0.207921 0.387456)"}},{"scope":"invalid.illegal","settings":{"foreground":"color(display-p3 0.039216 0.039216 0.039216)"}},{"scope":"invalid.broken","settings":{"foreground":"color(display-p3 0.039216 0.039216 0.039216)"}},{"scope":"invalid.deprecated","settings":{"foreground":"color(display-p3 0.039216 0.039216 0.039216)"}},{"scope":"invalid.unimplemented","settings":{"foreground":"color(display-p3 0.039216 0.039216 0.039216)"}}],"semanticTokenColors":{"comment":"color(display-p3 0.450980 0.450980 0.450980)","string":"color(display-p3 0.259723 0.647032 0.276349)","number":"color(display-p3 0.246852 0.642335 0.817202)","regexp":"color(display-p3 0.262058 0.668164 0.717478)","keyword":"color(display-p3 0.834880 0.207921 0.387456)","variable":"color(display-p3 0.854172 0.502144 0.209646)","parameter":"color(display-p3 0.388235 0.388235 0.388235)","property":"color(display-p3 0.854172 0.502144 0.209646)","function":"color(display-p3 0.391345 0.215644 0.853560)","method":"color(display-p3 0.391345 0.215644 0.853560)","type":"color(display-p3 0.660755 0.179954 0.815400)","class":"color(display-p3 0.660755 0.179954 0.815400)","namespace":"color(display-p3 0.870477 0.613222 0.203432)","enumMember":"color(display-p3 0.327292 0.790977 0.995660)","variable.constant":"color(display-p3 0.883654 0.721037 0.210874)","variable.defaultLibrary":"color(display-p3 0.870477 0.613222 0.203432)","decorator":"color(display-p3 0.227104 0.537899 0.881328)"}}`));export{e as default};
2
+ //# sourceMappingURL=pierre-light-vibrant-D80Fkn33.js.map
@@ -0,0 +1,2 @@
1
+ import{n as e}from"./compiler-runtime-CLAvuQ-D.js";import{$t as t,At as n,Bn as r,Bt as i,C as a,Cn as o,Ct as s,Dt as c,Et as l,Fn as u,Ft as d,Ht as f,It as p,Jt as m,Kt as h,Lt as g,Mn as _,Mt as v,Nt as y,Ot as b,Pn as x,Pt as S,Qt as C,Rn as w,Rt as T,Sn as E,St as D,Tt as O,Ut as k,Vn as A,Vt as j,Xt as M,Yt as ee,Zt as N,_n as P,_t as F,an as I,bt as L,dn as R,en as z,fn as B,gn as te,gt as V,hn as H,ht as ne,in as re,jt as ie,kn as U,kt as ae,ln as W,nn as oe,on as se,pn as G,rn as K,tn as q,un as ce,vn as J,wn as le,wt as ue,xt as de,yn as Y,yt as fe,zn as pe,zt as me}from"./index-Cvhs37GD.js";function X(e,t){return t.cacheKey==null?e.file===t&&e.sourceContents===t.contents:e.cacheKey===t.cacheKey}var he=-1,ge=class{options;onRenderUpdate;workerManager;__id=`file-renderer:${++he}`;highlighter;renderCache;computedLang=`text`;lineAnnotations={};lineCache;pendingStructuralRows;textDocumentCache=new WeakMap;editSessionActive=!1;constructor(e={theme:x},t,n){this.options=e,this.onRenderUpdate=t,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=K(e.theme??x)?I():void 0)}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}setLineAnnotations(e){this.lineAnnotations={};for(let t of e){let e=this.lineAnnotations[t.lineNumber]??[];this.lineAnnotations[t.lineNumber]=e,e.push(t)}}cleanUp(){this.recycle(),this.workerManager=void 0,this.onRenderUpdate=void 0}beginEditSession(){this.editSessionActive=!0}endEditSession(){this.editSessionActive=!1}editorRenderReady(){return this.renderCache?.options.useTokenTransformer===!0&&this.renderCache.highlighted&&this.renderCache.result!=null}recycle(){this.clearRenderCache(),this.highlighter=void 0,this.workerManager?.cleanUpTasks(this),this.lineCache=void 0,this.endEditSession(),this.textDocumentCache=new WeakMap}syncEditedContentsToFile(){let{renderCache:e,lineCache:t}=this;e?.isDirty!==!0||t==null||!X(t,e.file)||(e.file.contents=t.lines.join(``))}hasUnkeyedFileContentsChanged(e){let{lineCache:t}=this;return e.cacheKey==null&&t!=null&&t.file===e&&t.sourceContents!==e.contents}invalidateChangedUnkeyedFile(e){this.hasUnkeyedFileContentsChanged(e)&&(this.workerManager?.cleanUpTasks(this),this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap)}clearRenderCache(){this.syncEditedContentsToFile(),this.pendingStructuralRows=void 0;let e=this.renderCache;this.renderCache=void 0,e!=null&&e.isDirty===!0&&e.file.cacheKey!=null&&this.workerManager?.evictFileFromCache(e.file.cacheKey)}hydrate(e){let{options:t}=this.getRenderOptions(e),n=Z(this.getOrCreateLineCache(e).length,this.getTokenizeMaxLength()),r=this.workerManager?.getFileResultCache(e);r!=null&&!q(t,r.options)&&(r=void 0),this.renderCache??={file:e,options:t,highlighted:!n&&!p(e),result:n?void 0:r?.result,renderRange:void 0},!this.editSessionActive&&this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&!n&&this.workerManager.highlightFileAST(this,e):this.highlighter??(this.computedLang=e.lang??M(e.name),this.initializeHighlighter())}getLocalHighlightTheme(){return this.workerManager?.getFileRenderOptions().theme??this.options.theme??x}getEffectiveCodeOptions(){let e=this.workerManager?.isWorkingPool()===!0?this.workerManager.getFileRenderOptions():void 0;return{theme:this.getLocalHighlightTheme(),tokenizeMaxLineLength:e?.tokenizeMaxLineLength??this.options.tokenizeMaxLineLength}}getRenderOptions(e){let t=(()=>{if(this.workerManager?.isWorkingPool()===!0){let e=this.workerManager.getFileRenderOptions();return this.editSessionActive&&e.useTokenTransformer!==!0?{...e,useTokenTransformer:!0}:e}let{tokenizeMaxLineLength:e=1e3}=this.options;return{theme:this.getLocalHighlightTheme(),useTokenTransformer:this.editSessionActive||this.options.useTokenTransformer===!0,tokenizeMaxLineLength:e}})(),{renderCache:n}=this;return n?.result==null||!Y(e,n.file)||!q(t,n.options)?{options:t,forceHighlight:!0}:{options:t,forceHighlight:!1}}getOrCreateLineCache(e){this.invalidateChangedUnkeyedFile(e);let{lineCache:t}=this;return(t==null||!X(t,e))&&(t={cacheKey:e.cacheKey,file:e,sourceContents:e.contents,lines:h(e.contents)}),this.lineCache=t,t.lines}getLineCount(e){let t=this.getOrCreateLineCache(e);return this.textDocumentCache.get(e)?.lineCount??t.length}updateRenderCache(e,t,n=!1){if(this.pendingStructuralRows=void 0,this.renderCache==null)return;let{file:r,result:i}=this.renderCache;if(i==null)return;let a=n?new Map:void 0;this.pendingStructuralRows=a;let o=this.lineCache!=null&&X(this.lineCache,r)?this.lineCache:void 0;for(let[t,n]of e){if(a===void 0&&o!=null&&t<o.lines.length){let e=n.map(e=>e[2]).join(``);o.lines[t]=T(o.lines[t]??``,e)}let e={type:`element`,tagName:`div`,properties:{"data-line":t+1,"data-line-type":`context`,"data-line-index":t},children:n.map(([e,t,n])=>e===0&&t===``?n===``?{type:`element`,tagName:`br`,properties:{},children:[]}:{type:`text`,value:n}:{type:`element`,tagName:`span`,properties:{"data-char":e,style:`color:${t};`},children:[{type:`text`,value:n}]})};a===void 0?i.code[t]=e:a.set(t,e)}i.baseThemeType=t,this.renderCache.isDirty=!0}applyDocumentChange(e){let t=this.pendingStructuralRows;if(this.pendingStructuralRows=void 0,this.renderCache==null)return;let{file:n,result:r}=this.renderCache;if(r==null)return;let i=this.lineCache!=null&&X(this.lineCache,n)?this.lineCache.lines:h(n.contents),a=h(e.getText());if(i.length!==a.length){let n=Math.min(i.length,a.length),o=0;for(;o<n&&i[o]===a[o];)o++;let s=0;for(;s<n-o&&i[i.length-1-s]===a[a.length-1-s];)s++;let c=r.code;r.code=Array(a.length);for(let e=0;e<o;e++)r.code[e]=c[e];for(let e=0;e<s;e++)r.code[a.length-1-e]=c[i.length-1-e];if(t!==void 0)for(let[e,n]of t)e<a.length&&(r.code[e]=n);for(let t=o;t<a.length-s;t++)r.code[t]??={type:`element`,tagName:`div`,properties:{"data-line":t+1,"data-line-type":`context`,"data-line-index":t},children:[{type:`element`,tagName:`span`,properties:{"data-char":0},children:[{type:`text`,value:e.getLineText(t)}]}]};for(let e=0;e<r.code.length;e++){let t=r.code[e];t?.type===`element`&&(t.properties[`data-line`]=e+1,t.properties[`data-line-index`]=e)}this.renderCache.isDirty=!0}this.lineCache={cacheKey:n.cacheKey,file:n,sourceContents:n.contents,lines:a},this.textDocumentCache.set(n,e)}renderFile(e=this.renderCache?.file,t=_){if(e==null)return;this.invalidateChangedUnkeyedFile(e),this.renderCache?.isDirty===!0&&!Y(e,this.renderCache.file)&&(this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap);let{options:n,forceHighlight:r}=this.getRenderOptions(e);this.renderCache?.isDirty===!0&&!q(n,this.renderCache.options)&&this.clearRenderCache();let i=this.getMatchingWorkerResultCache(e,n);i!=null&&!this.hasHighlightedRenderCache(e,n)&&(this.renderCache={file:e,highlighted:!0,renderRange:void 0,...i},r=!1),this.renderCache??={file:e,highlighted:!1,options:n,result:void 0,renderRange:void 0};let a=this.getOrCreateLineCache(e),o=e.contents.length>0,s=!o||p(e)||Z(a.length,this.getTokenizeMaxLength()),c=!Y(e,this.renderCache.file),l=!z(this.renderCache.renderRange,t);if(!this.editSessionActive&&this.workerManager?.isWorkingPool()===!0)(s||this.renderCache.result==null||!this.renderCache.highlighted&&(c||l))&&(this.renderCache.file=e,this.renderCache.options=n,this.renderCache.highlighted=!1,(this.renderCache.result==null||c||l||r)&&(this.renderCache.result=this.workerManager.getPlainFileAST(e,t.startingLine,t.totalLines,a)),this.renderCache.renderRange=t),!s&&o&&(!this.renderCache.highlighted||r)&&this.workerManager.highlightFileAST(this,e);else{this.computedLang=e.lang??M(e.name);let t=this.highlighter!=null&&K(n.theme),i=this.highlighter!=null&&W(this.computedLang),a=!s&&i;if(this.highlighter!=null&&t&&(r||s||!this.renderCache.highlighted&&a||this.renderCache.result==null)){let{result:t,options:n}=this.renderFileWithHighlighter(e,this.highlighter,s||!i);this.renderCache={file:e,options:n,highlighted:a,result:t,renderRange:void 0}}(!t||!s&&!i)&&this.asyncHighlight(e).then(({result:t,options:n})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.applyHighlightResult(e,t,n,!s)})}return this.renderCache.result==null?void 0:this.processFileResult(this.renderCache.file,t,this.renderCache.result)}async asyncRender(e,t=_){let{result:n}=await this.asyncHighlight(e);return this.processFileResult(e,t,n)}async asyncHighlight(e){let t=Z(this.getOrCreateLineCache(e).length,this.getTokenizeMaxLength());this.computedLang=t?`text`:e.lang??M(e.name);let n=this.highlighter!=null&&oe(re(this.getLocalHighlightTheme())),r=t||this.highlighter!=null&&W(this.computedLang);return(this.highlighter==null||!n||!r)&&(this.highlighter=await this.initializeHighlighter()),this.renderFileWithHighlighter(e,this.highlighter,t)}renderFileWithHighlighter(e,t,n=!1){let{options:r}=this.getRenderOptions(e);return{result:k(e,t,r,{forcePlainText:n}),options:r}}processFileResult(e,n,{code:r,themeStyles:a,baseThemeType:o}){let s=this.getLineCount(e),{disableFileHeader:c=!1}=this.options,l=[],u=P(),d=Math.min(n.startingLine+n.totalLines,s),p=0,h=f(n)?i(this.lineAnnotations):void 0;h!=null&&(u.children.push(H(`context`,`annotation`,1)),l.push(t({type:`annotation`,hunkIndex:-1,lineIndex:-1,annotations:h.map(e=>m(e))})),p++);for(let i=n.startingLine;i<d;i++){let n=i+1,a=r[i];if(a==null){let t=`FileRenderer.processFileResult: Line doesnt exist`;throw console.error(t,{name:e.name,lineIndex:i,lineNumber:n}),Error(t)}u.children.push(te(`context`,n,`${i}`)),l.push(a),p++;let o=this.lineAnnotations[n];o!=null&&(u.children.push(H(`context`,`annotation`,1)),l.push(t({type:`annotation`,hunkIndex:0,lineIndex:n,annotations:o.map(e=>m(e))})),p++)}return u.properties.style=`grid-row: span ${p}`,{gutterAST:u.children??[],contentAST:l,preAST:this.createPreElement(s),headerAST:c?void 0:this.renderHeader(e),totalLines:s,rowCount:p,themeStyles:a,baseThemeType:o,bufferBefore:n.bufferBefore,bufferAfter:n.bufferAfter,css:``}}renderHeader(e){let{headerRenderMode:t=`default`,stickyHeader:n=!1}=this.options;return C({fileOrDiff:e,mode:t,stickyHeader:n})}renderFullHTML(e){return G(this.renderFullAST(e))}renderFullAST(e,t=[]){return t.push(J({tagName:`code`,children:this.renderCodeAST(e),properties:{"data-code":``}})),{...e.preAST,children:t}}renderCodeAST(e){let t=P();return t.children=e.gutterAST,t.properties.style=`grid-row: span ${e.rowCount}`,[t,g(e.contentAST,e.rowCount)]}renderPartialHTML(e,t=!1){return G(t?J({tagName:`code`,children:e,properties:{"data-code":``}}):e)}async initializeHighlighter(){return this.highlighter=await se(ee(this.computedLang,{theme:this.getLocalHighlightTheme(),preferredHighlighter:this.workerManager?.getPreferredHighlighter()??this.options.preferredHighlighter})),this.highlighter}onHighlightSuccess(e,t,n,r=!0){this.editSessionActive||this.applyHighlightResult(e,t,n,r)}applyHighlightResult(e,t,n,r=!0){if(this.renderCache==null)return;let i=!Y(e,this.renderCache.file)||!this.renderCache.highlighted||!q(n,this.renderCache.options);this.renderCache={file:e,options:n,highlighted:r,result:t,renderRange:void 0},i&&this.onRenderUpdate?.()}getMatchingWorkerResultCache(e,t){if(this.editSessionActive)return;let n=this.workerManager?.getFileResultCache(e);if(!(n==null||!q(t,n.options)))return n}hasHighlightedRenderCache(e,t){let{renderCache:n}=this;return n?.result!=null&&n.highlighted&&Y(e,n.file)&&q(t,n.options)}onHighlightError(e){console.error(e)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??1e5}createPreElement(e){let{disableLineNumbers:t=!1,overflow:n=`scroll`}=this.options;return N({type:`file`,diffIndicators:`none`,disableBackground:!0,disableLineNumbers:t,overflow:n,split:!1,totalLines:e})}};function Z(e,t){return e>t}function _e(e,t){return e.lineNumber===t.lineNumber&&e.metadata===t.metadata}function Q(e){return{theme:e?.theme,disableLineNumbers:e?.disableLineNumbers,overflow:e?.overflow,themeType:e?.themeType,collapsed:e?.collapsed,disableFileHeader:e?.disableFileHeader,disableVirtualizationBuffers:e?.disableVirtualizationBuffers,stickyHeader:e?.stickyHeader,preferredHighlighter:e?.preferredHighlighter,useCSSClasses:e?.useCSSClasses,useTokenTransformer:D(e),tokenizeMaxLineLength:e?.tokenizeMaxLineLength,tokenizeMaxLength:e?.tokenizeMaxLength,unsafeCSS:e?.unsafeCSS,headerRenderMode:e?.renderCustomHeader==null?`default`:`custom`}}var ve=[``],ye=-1,be=class{options;workerManager;isContainerManaged;static LoadedCustomComponent=!0;__id=`file:${++ye}`;type=`file`;fileContainer;spriteSVG;pre;code;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;hasAdoptedThemeCSS=!1;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;errorWrapper;placeHolder;lastRenderedHeaderHTML;cachedHeaderHTML;appliedPreAttributes;lastRowCount;mounted=!1;headerElement;headerCustom;headerPrefix;headerFilenameSuffix;headerMetadata;fileRenderer;resizeManager;interactionManager;annotationCache=new Map;lineAnnotations=[];managersDirty=!1;file;renderRange;enabled=!0;editor;constructor(e={theme:x},t,n=!1){this.options=e,this.workerManager=t,this.isContainerManaged=n,this.fileRenderer=new ge(e,this.handleHighlightRender,this.workerManager),this.resizeManager=new ce,this.interactionManager=new R(`file`,B(e)),this.workerManager?.subscribeToThemeChanges(this)}handleHighlightRender=()=>{this.rerender()};rerender(){!this.enabled||this.file==null||this.render({file:this.file,forceRender:!0,renderRange:this.renderRange})}__getCurrentFile(){return this.file}onThemeChange(){this.fileRenderer.clearRenderCache(),this.rerender()}setOptions(e){e!=null&&(this.options=e,this.cachedHeaderHTML=void 0,this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(B(this.options))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){(this.options.themeType??`system`)!==e&&(this.mergeOptions({themeType:e}),this.applyCachedThemeState(e))}applyCachedThemeState(e){if(typeof this.options.theme==`string`||this.fileContainer==null||this.appliedThemeCSS==null)return!1;let t=this.appliedThemeCSS.baseThemeType??e;return this.appliedThemeCSS.themeType===t?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!o(this.appliedThemeCSS.theme,this.options.theme??x)}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(e){this.lineAnnotations=e}setSelectedLines(e,t){this.interactionManager.setSelection(e,t)}setEditorActiveLine(e,t){this.interactionManager.setEditorActiveLine(e,{lineNumberOnly:t?.lineNumberOnly,side:t?.side??`additions`})}getCodeScrollLeft(){return this.code?.scrollLeft??0}setCodeScrollLeft(e){this.code!=null&&(this.code.scrollLeft=e)}__getEffectiveCodeOptions(){return{...this.options,...this.fileRenderer.getEffectiveCodeOptions()}}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}let{overflow:e=`scroll`}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,{disableAnnotations:e===`wrap`,columnVariables:this.shouldApplyColumnVariables(e)?`apply`:`measure`}),this.managersDirty=!1}shouldApplyColumnVariables(e){return e===`scroll`&&this.lineAnnotations.length>0}cleanUp(e=!1){this.emitPostRender(!0),this.editor?.cleanUp(e),this.editor=void 0,this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.managersDirty=!1,this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer=void 0,this.mounted=!1,e||(this.lineAnnotations=[]),this.clearAuxiliaryNodes(),this.pre=void 0,this.code=void 0,this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,e||(this.cachedHeaderHTML=void 0),this.errorWrapper?.remove(),this.errorWrapper=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.placeHolder?.remove(),this.placeHolder=void 0,e?this.fileRenderer.recycle():(this.fileRenderer.cleanUp(),this.workerManager=void 0,this.file=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(e){let{fileContainer:t,prerenderedHTML:n,preventEmit:r=!1,file:i,lineAnnotations:a}=e;if(!this.enabled)throw Error(`File.hydrate: attempting to call hydrate after cleaned up`);if(this.fileContainer!=null)throw Error(`File.hydrate: hydrate can only be called before the instance has rendered or hydrated`);this.hydrateElements(t,n),xe(this.pre,i,this.options.collapsed)||Se(this.headerElement,i,this.options.disableFileHeader)?this.render({...e,preventEmit:!0}):this.hydrationSetup({file:i,lineAnnotations:a}),r||this.emitPostRender()}hydrateElements(e,t){this.fileContainer!==e&&this.emitPostRender(!0),O(e,t);for(let t of Array.from(e.shadowRoot?.children??[])){if(t instanceof SVGElement){this.spriteSVG=t;continue}if(t instanceof HTMLElement){if(t instanceof HTMLPreElement){this.pre=t,this.appliedPreAttributes=void 0;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-theme-css`)){this.themeCSSStyle=t;continue}if(t instanceof HTMLStyleElement&&t.hasAttribute(`data-unsafe-css`)){this.unsafeCSSStyle=t,this.appliedUnsafeCSS=t.textContent;continue}if(`diffsHeader`in t.dataset){this.headerElement=t,this.lastRenderedHeaderHTML=void 0;continue}}}this.pre!=null&&(this.syncCodeNodeFromPre(this.pre),this.pre.removeAttribute(`data-dehydrated`)),this.fileContainer=e,this.hydrateMeasuredScrollbar()}hydrationSetup({file:e,lineAnnotations:t}){this.lineAnnotations=t??this.lineAnnotations,this.file=e,this.fileRenderer.setOptions(Q(this.options)),this.syncInteractionOptions(),this.pre!=null&&(this.fileRenderer.hydrate(e),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}getOrCreateLineCache(e=this.file){return e==null?ve:this.fileRenderer.getOrCreateLineCache(e)}updateBuffers(e){this.pre!=null&&this.applyBuffers(this.pre,e)}syncRenderViewToEditor(){let e=this.editor,t=this.fileContainer,n=this.file,r=this.lineAnnotations,i=this.renderRange;e!=null&&t!=null&&n!=null&&this.fileRenderer.initializeHighlighter().then(a=>{!this.enabled||this.editor!==e||this.fileContainer!==t||this.file!==n||e.__syncRenderView(a,t,n,r,i)})}attachEditor(e){this.editor?.cleanUp(),this.editor=e,this.fileRenderer.beginEditSession();let t=this.file==null?void 0:e.__prepareFile?.(this.file);return t!==void 0&&t!==this.file?this.renderPreparedFile({file:t,forceRender:!0,preventEmit:!0,renderRange:this.renderRange}):this.fileRenderer.editorRenderReady()?this.syncRenderViewToEditor():this.rerender(),()=>{this.editor=void 0,this.fileRenderer.endEditSession()}}applyDocumentChange(e,t){this.fileRenderer.applyDocumentChange(e),t!=null&&t!==this.lineAnnotations&&this.file!=null&&(this.setLineAnnotations(t),this.fileRenderer.setLineAnnotations(this.lineAnnotations),this.renderAnnotations())}updateRenderCache(e,t,n){this.fileRenderer.updateRenderCache(e,t,n?.lineCountChangeInFlight)}render(e){if(!this.enabled)throw Error(`File.render: attempting to call render after cleaned up`);let t=this.editor?.__prepareFile?.(e.file)??e.file;return this.renderPreparedFile(t===e.file?e:{...e,file:t})}renderPreparedFile({file:e,fileContainer:t,forceRender:n=!1,preventEmit:r=!1,containerWrapper:i,deferManagers:a=!1,lineAnnotations:o,renderRange:s}){this.editor?.__postponeBgTokenizeToNextFrame();let{collapsed:c=!1,themeType:l=`system`}=this.options,u=c?void 0:s,d=this.renderRange,f=this.hasThemeChanged(),p=o!=null&&(o.length>0||this.lineAnnotations.length>0)?o!==this.lineAnnotations:!1,m=!Y(this.file,e)||this.fileRenderer.hasUnkeyedFileContentsChanged(e);if(!c&&!n&&z(u,this.renderRange)&&!m&&!p&&!f)return this.applyCachedThemeState(l);this.renderRange=u,m&&(this.cachedHeaderHTML=void 0),this.file=e,this.fileRenderer.setOptions(Q(this.options)),this.syncInteractionOptions(),o!=null&&this.setLineAnnotations(o),this.fileRenderer.setLineAnnotations(this.lineAnnotations);let{disableErrorHandling:h=!1,disableFileHeader:g=!1}=this.options;if(g&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),t=this.getOrCreateFileContainerNode(t,i),this.applyCachedThemeState(l),c){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let n=this.fileRenderer.renderFile(e,w);n!=null&&this.applyThemeState(t,n.themeStyles,l,n.baseThemeType),n?.headerAST!=null&&this.applyHeaderToDOM(n.headerAST,t),this.injectUnsafeCSS()}catch(e){if(h)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,t)}return r||this.emitPostRender(),!0}try{let r=this.getOrCreatePreNode(t);if(!this.canPartiallyRender(n,p,m||f)||!this.applyPartialRender(d,u)){let n=this.fileRenderer.renderFile(e,u);if(n==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(t,n.themeStyles,l,n.baseThemeType),n.headerAST!=null&&this.applyHeaderToDOM(n.headerAST,t),this.applyFullRender(n,r)}this.applyBuffers(r,u),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.managersDirty=!0,a||this.flushManagers(),this.editor!=null&&this.syncRenderViewToEditor()}catch(e){if(h)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,t)}return r||this.emitPostRender(),!0}emitPostRender(e=!1){let{fileContainer:t,options:{onPostRender:n}}=this;if(e){if(!this.mounted||(this.mounted=!1,t==null))return;n?.(t,this,`unmount`);return}if(t==null)return;let r=this.mounted?`update`:`mount`;this.mounted=!0,n?.(t,this,r)}removeRenderedCode(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.code?.remove(),this.code=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}canPartiallyRender(e,t,n){return!(e||t||n)}renderPlaceholder(e){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:`open`});this.placeHolder=document.createElement(`div`),this.placeHolder.dataset.placeholder=``,e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty(`height`,`${e}px`),!0}async primeHighlightCache(e=this.file){let{workerManager:t}=this;if(e==null||t==null||!t.isWorkingPool()||e.cacheKey==null||p(e))return;let n=this.options.tokenizeMaxLength??1e5;this.fileRenderer.getOrCreateLineCache(e).length>n||await t.primeFileHighlightCache(e).catch(e=>{console.error(e)})}cleanChildNodes(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.clearAuxiliaryNodes(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.code?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.code=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear();return}let e=new Map(this.annotationCache),{renderAnnotation:t}=this.options;if(t!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${m(r)}`,a=this.annotationCache.get(i);if(a==null||!_e(r,a.annotation)){a?.element.remove();let e=t(r);if(e==null)continue;a={element:y(m(r)),annotation:r},a.element.appendChild(e),this.fileContainer.appendChild(a.element),this.annotationCache.set(i,a)}e.delete(i)}for(let[t,{element:n}]of e.entries())this.annotationCache.delete(t),n.remove()}renderGutterUtility(){let{renderGutterUtility:e}=this.options;if(this.fileContainer==null||e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let t=e(this.interactionManager.getHoveredLine);if(t!=null&&this.gutterUtilityContent!=null)return;if(t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=v();n.appendChild(t),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}injectUnsafeCSS(){let{unsafeCSS:e}=this.options,t=this.fileContainer?.shadowRoot;if(t!=null){if(e==null||e===``){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===t&&this.appliedUnsafeCSS===e||(this.unsafeCSSStyle??=ie(),this.unsafeCSSStyle.parentNode!==t&&t.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=ae(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,t,r,i){let a=e.shadowRoot??e.attachShadow({mode:`open`}),o=i??r,s=this.options.theme??x,c=typeof s==`string`?s:{...s},l=n(a);if(this.themeCSSStyle?.parentNode===a&&this.appliedThemeCSS?.themeStyles===t&&this.appliedThemeCSS.themeType===o&&this.appliedThemeCSS.scrollbarGutter===l){this.appliedThemeCSS.theme=c;return}if(this.hasAdoptedThemeCSS&&this.themeCSSStyle?.parentNode===a){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:c,themeStyles:t,themeType:o,baseThemeType:i,scrollbarGutter:l};return}this.themeCSSStyle=L({shadowRoot:a,currentNode:this.themeCSSStyle,themeCSS:b(t,o,l)}),this.appliedThemeCSS=this.themeCSSStyle==null?void 0:{theme:c,themeStyles:t,themeType:o,baseThemeType:i,scrollbarGutter:l}}hydrateMeasuredScrollbar(){let e=this.fileContainer?.shadowRoot;e==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=c(this.themeCSSStyle.textContent??``,n(e)))}shouldGuardRebuildScroll(){return this.editor!=null&&fe()}applyFullRender(e,t){this.cleanupErrorWrapper(),this.applyPreNodeAttributes(t,e);let n=this.code=l({code:this.code}),r=this.fileRenderer.renderCodeAST(e);this.editor?.__captureFocusForDOMReplacement();let i=()=>{if(n.childElementCount>=2)for(let e=0;e<2;e++){let t=n.children[e],i=r[e];t.innerHTML=G(i.children),t.style.cssText=i.properties.style}else n.innerHTML=G(r);t.contains(n)||t.replaceChildren(n)};this.shouldGuardRebuildScroll()?de(t,i):i(),this.lastRowCount=e.rowCount}applyPartialRender(e,t){if(e==null||t==null)return!1;let{file:n,code:r}=this,i=r==null?void 0:this.getColumns(r);if(n==null||r==null||i==null)return!1;let a=e.startingLine,o=t.startingLine,s=e.totalLines===1/0?1/0:a+e.totalLines,c=t.totalLines===1/0?1/0:o+t.totalLines,l=Math.max(a,o),u=Math.min(s,c);if(u<=l)return!1;if(!this.trimDOMToOverlap(i.gutter,l,u)||!this.trimDOMToOverlap(i.content,l,u))throw Error(`File.applyPartialRender: failed to trim to overlap`);let{length:d}=i.content.children,f=(e,t)=>{if(!(t<=0))return this.fileRenderer.renderFile(n,{startingLine:e,totalLines:t,bufferBefore:0,bufferAfter:0})},p=o<l?f(o,l-o):void 0;if(p===void 0&&o<l)return!1;let m=c===1/0?1/0:Math.max(0,c-u),h=c>u?f(u,m):void 0;return h===void 0&&c>u?!1:(this.cleanupErrorWrapper(),p!=null&&(i.gutter.insertAdjacentHTML(`afterbegin`,this.fileRenderer.renderPartialHTML(p.gutterAST)),i.content.insertAdjacentHTML(`afterbegin`,this.fileRenderer.renderPartialHTML(p.contentAST)),d+=p.rowCount),h!=null&&(i.gutter.insertAdjacentHTML(`beforeend`,this.fileRenderer.renderPartialHTML(h.gutterAST)),i.content.insertAdjacentHTML(`beforeend`,this.fileRenderer.renderPartialHTML(h.contentAST)),d+=h.rowCount),this.lastRowCount!==d&&(i.gutter.style.setProperty(`grid-row`,`span ${d}`),i.content.style.setProperty(`grid-row`,`span ${d}`),this.lastRowCount=d),!0)}getColumns(e){let t=e.children[0],n=e.children[1];if(!(!(t instanceof HTMLElement)||!(n instanceof HTMLElement)||t.dataset.gutter==null||n.dataset.content==null))return{gutter:t,content:n}}trimDOMToOverlap(e,t,n){let r=this.getDOMBoundaryIndices(e,[t,n]),i=r.get(t)??e.children.length,a=r.get(n)??e.children.length;if(i>a)return!1;for(let t=e.children.length-1;t>=a;--t)e.children[t]?.remove();for(let t=i-1;t>=0;--t)e.children[t]?.remove();return!0}getDOMBoundaryIndices(e,t){let n=[...new Set(t)].sort((e,t)=>e-t),r=new Map;if(n.length===0)return r;let i=0,a=n[i],{children:o}=e;a===0&&(r.set(0,0),i+=1,a=n[i]);for(let e=0;e<o.length;e+=1){let t=o[e];if(!(t instanceof HTMLElement))continue;let s=this.getLineIndexFromDOMNode(t);if(s!=null){for(;a!=null&&s>=a;)r.set(a,e),i+=1,a=n[i];if(i>=n.length)break}}for(let e of n)r.has(e)||r.set(e,o.length);return r}getLineIndexFromDOMNode(e){let t=e.dataset.lineIndex;if(t==null)return;let n=Number(t);return Number.isNaN(n)?void 0:n}applyBuffers(e,t){if(t==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}t.bufferBefore>0?(this.bufferBefore??(this.bufferBefore=document.createElement(`div`),this.bufferBefore.dataset.virtualizerBuffer=`before`,e.before(this.bufferBefore)),this.bufferBefore.style.setProperty(`height`,`${t.bufferBefore}px`),this.bufferBefore.style.setProperty(`contain`,`strict`)):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),t.bufferAfter>0?(this.bufferAfter??(this.bufferAfter=document.createElement(`div`),this.bufferAfter.dataset.virtualizerBuffer=`after`,e.after(this.bufferAfter)),this.bufferAfter.style.setProperty(`height`,`${t.bufferAfter}px`),this.bufferAfter.style.setProperty(`contain`,`strict`)):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyHeaderToDOM(e,t){let{file:n}=this;if(n==null)return;this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let i=this.cachedHeaderHTML??G(e);if(this.cachedHeaderHTML=i,i!==this.lastRenderedHeaderHTML){let e=document.createElement(`div`);e.innerHTML=i;let n=e.firstElementChild;if(!(n instanceof HTMLElement))return;this.headerElement==null?t.shadowRoot?.prepend(n):t.shadowRoot?.replaceChild(n,this.headerElement),this.headerElement=n,this.lastRenderedHeaderHTML=i}if(this.isContainerManaged)return;let{renderHeaderPrefix:a,renderHeaderFilenameSuffix:o,renderCustomHeader:s,renderHeaderMetadata:c}=this.options;if(s!=null){let e=s(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(t,this.headerCustom,U,e),this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0}else{let e=a?.(n)??void 0,i=o?.(n)??void 0,s=c?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(t,this.headerPrefix,A,e),this.headerFilenameSuffix=this.upsertHeaderSlotElement(t,this.headerFilenameSuffix,pe,i),this.headerMetadata=this.upsertHeaderSlotElement(t,this.headerMetadata,r,s),this.headerCustom?.remove(),this.headerCustom=void 0}}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerFilenameSuffix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,t,n,r){if(r==null){t?.remove();return}let i=t??this.createHeaderSlotElement(n);return t??e.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(e,t){e.replaceChildren(),t instanceof Element?e.appendChild(t):e.innerText=`${t}`}createHeaderSlotElement(e){let t=document.createElement(`div`);return t.slot=e,t}getOrCreateFileContainerNode(e,t){let{fileContainer:n}=this,r=e??n??document.createElement(`diffs-container`),i=n!==r;return n!=null&&i&&this.editor?.__captureFocusForDOMReplacement(),i&&this.emitPostRender(!0),this.fileContainer=r,n!=null&&i&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),t!=null&&this.fileContainer.parentNode!==t&&t.appendChild(this.fileContainer),i&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(e){let{shadowRoot:t}=e;if(t!=null)for(let e of t.children)e instanceof SVGElement?this.spriteSVG??=e:s(e)&&e.hasAttribute(`data-theme-css`)?(this.themeCSSStyle??=e,this.hasAdoptedThemeCSS=!0):s(e)&&e.hasAttribute(`data-unsafe-css`)&&(this.unsafeCSSStyle??=e,this.appliedUnsafeCSS??=this.options.unsafeCSS??void 0)}ensureSpriteSVG(e){let t=e.shadowRoot??e.attachShadow({mode:`open`});if(this.spriteSVG==null){let e=document.createElement(`div`);e.innerHTML=d;let t=e.firstChild;t instanceof SVGElement&&(this.spriteSVG=t)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==t&&t.appendChild(this.spriteSVG)}getOrCreatePreNode(e){let t=e.shadowRoot??e.attachShadow({mode:`open`});return this.pre==null?(this.pre=document.createElement(`pre`),this.appliedPreAttributes=void 0,this.code=void 0,t.appendChild(this.pre)):this.pre.parentNode!==t&&(this.editor?.__captureFocusForDOMReplacement(),e.shadowRoot?.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodeFromPre(e){this.code=void 0;for(let t of Array.from(e.children))if(t instanceof HTMLElement&&t.hasAttribute(`data-code`)){this.code=t;return}}applyPreNodeAttributes(e,{totalLines:t}){let{overflow:n=`scroll`,disableLineNumbers:r=!1}=this.options,i={type:`file`,split:!1,overflow:n,disableLineNumbers:r,diffIndicators:`none`,disableBackground:!0,totalLines:t};S(i,this.appliedPreAttributes)||(ue(e,i),this.appliedPreAttributes=i)}applyErrorToDOM(e,t){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=t.shadowRoot??t.attachShadow({mode:`open`});this.errorWrapper??=document.createElement(`div`),this.errorWrapper.dataset.errorWrapper=``,this.errorWrapper.textContent=``,n.appendChild(this.errorWrapper);let r=document.createElement(`div`);r.dataset.errorMessage=``,r.innerText=e.message,this.errorWrapper.appendChild(r);let i=document.createElement(`pre`);i.dataset.errorStack=``,i.innerText=e.stack??`No Error Stack`,this.errorWrapper.appendChild(i)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function xe(e,t,n=!1){return!n&&e==null&&t!=null}function Se(e,t,n=!1){return e==null&&t!=null&&!n}var Ce=5e3,we=-1;function Te(e,t){return(e.overflow??`scroll`)!==(t.overflow??`scroll`)||(e.collapsed??!1)!==(t.collapsed??!1)||(e.disableLineNumbers??!1)!==(t.disableLineNumbers??!1)||(e.disableFileHeader??!1)!==(t.disableFileHeader??!1)||e.unsafeCSS!==t.unsafeCSS}var Ee=class extends be{virtualizer;metrics;__id=`virtualized-file:${++we}`;top;height=0;cache={heights:new Map,checkpoints:[],fileAnnotationHeight:0};isVisible=!1;isSetup=!1;layoutDirty=!0;forceRenderOverride;currentCollapsed;constructor(e,t,n=u,r,i=!1){super(e,r,i),this.virtualizer=t,this.metrics=n}setMetrics(e,t=!1){let n=ne(e);!t&&le(this.metrics,n)||(this.metrics=n,this.resetLayoutCache())}setLineAnnotations(e){this.syncLineAnnotations(e)&&this.resetLayoutCache()}syncLineAnnotations(e){return e==null||e===this.lineAnnotations||e.length===0&&this.lineAnnotations.length===0?!1:(super.setLineAnnotations(e),!0)}hasLineAnnotations(){return this.lineAnnotations.some(e=>e.lineNumber>0)}getLineHeight(e,t=!1){let n=this.cache.heights.get(e);if(n!=null)return n;let r=t?2:1;return this.metrics.lineHeight*r}setOptions(e){if(this.isAdvancedMode())throw Error(`VirtualizedFile.setOptions cannot be used inside CodeView. Update CodeView options instead.`);if(e==null)return;let{options:t}=this,n=!E(t,e),r=Te(t,e);super.setOptions(e),r&&this.resetLayoutCache(!0),n&&(this.forceRenderOverride=!0),n&&this.virtualizer.instanceChanged(this,r)}setThemeType(e){if(this.isAdvancedMode())throw Error(`VirtualizedFile.setThemeType cannot be used inside CodeView. Update CodeView options instead.`);super.setThemeType(e)}resetLayoutCache(e=!1,t=!0){this.layoutDirty=!0,this.cache.fileAnnotationHeight=0,this.cache.heights.size>0&&this.cache.heights.clear(),this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),this.renderRange!=null&&t&&(this.renderRange=void 0),e&&this.isSimpleMode()&&this.computeApproximateSize()}reconcileHeights(){let e=!1;if(this.fileContainer==null||this.file==null)return this.height!==0&&(e=!0),this.height=0,e;let{overflow:t=`scroll`}=this.options;if(this.top=this.getVirtualizedTop(),t===`scroll`&&this.lineAnnotations.length===0&&!this.isResizeDebuggingEnabled()||this.code==null)return e;let n=this.code.children[1];if(!(n instanceof HTMLElement))return e;let r=j(this.lineAnnotations);if(this.renderRange!=null&&r&&f(this.renderRange)){let t=De(n)??0;t!==this.cache.fileAnnotationHeight&&(this.cache.fileAnnotationHeight=t,e=!0)}else!r&&this.cache.fileAnnotationHeight!==0&&(this.cache.fileAnnotationHeight=0,e=!0);for(let t of n.children){if(!(t instanceof HTMLElement))continue;let n=t.dataset.lineIndex;if(n==null)continue;let r=Number(n),i=t.getBoundingClientRect().height,a=!1;t.nextElementSibling instanceof HTMLElement&&(`lineAnnotation`in t.nextElementSibling.dataset||`noNewline`in t.nextElementSibling.dataset)&&(`noNewline`in t.nextElementSibling.dataset&&(a=!0),i+=t.nextElementSibling.getBoundingClientRect().height);let o=this.getLineHeight(r,a);i!==o&&(e=!0,i===this.metrics.lineHeight*(a?2:1)?this.cache.heights.delete(r):this.cache.heights.set(r,i))}return(e||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),e}onRender=e=>this.fileContainer==null||this.file==null?!1:(e&&(this.top=this.getVirtualizedTop()),this.render({file:this.file}));prepareCodeViewItem(e,t,n,r){let i=this.syncLineAnnotations(r),a=!Y(this.file,e)||this.fileRenderer.hasUnkeyedFileContentsChanged(e),o=n?.resetFileLayoutCache===!0||a||i;n?.metrics!=null&&(this.metrics=n.metrics,o=!0);let{collapsed:s=!1}=this.options;return this.currentCollapsed!==s&&(this.currentCollapsed=s,o=!0),o&&this.resetLayoutCache(),this.file!==e&&(this.layoutDirty=!0),this.file=e,this.top=t,this.computeApproximateSize(),this.height}getLinePosition(e){if(this.file==null||e<1)return;let{disableFileHeader:t=!1,collapsed:n=!1}=this.options,r=this.fileRenderer.getLineCount(this.file)-1,i=V(this.metrics,t);if(n||r<0)return{top:i,height:0};let a=Math.min(Math.max(e-1,0),r),{overflow:o=`scroll`}=this.options,{lineHeight:s}=this.metrics;if(i+=this.cache.fileAnnotationHeight,o===`scroll`&&!this.hasLineAnnotations())return{top:i+a*s,height:s};let c=this.getLayoutCheckpointBeforeLineIndex(a);i=c?.top??i;for(let e=c?.lineIndex??0;e<a;e++)i+=this.getLineHeight(e,!1);return{top:i,height:this.getLineHeight(a,!1)}}getEditorViewport(){return this.virtualizer.type===`simple`?this.virtualizer.getRoot():this.virtualizer.getContainerElement()}getNumericScrollAnchor(e){if(this.file==null||this.renderRange==null)return;let{disableFileHeader:t=!1,collapsed:n=!1,overflow:r=`scroll`}=this.options;if(n||this.renderRange.totalLines<=0)return;let i=this.fileRenderer.getLineCount(this.file)-1;if(i<0)return;let a=V(this.metrics,t),o=Math.min(this.renderRange.startingLine,i),s=Math.min(o+this.renderRange.totalLines-1,i);if(s<o)return;let{fileAnnotationHeight:c}=this.cache;if(r===`scroll`&&!this.hasLineAnnotations()){let{lineHeight:t}=this.metrics,n=a+(o===0?c:this.renderRange.bufferBefore),r=o+Math.max(Math.ceil((e-n)/t),0);return r>s?void 0:{lineNumber:r+1,top:a+c+r*t}}let l=a+(o===0?c:this.renderRange.bufferBefore);for(let t=o;t<=s;t++){if(l>=e)return{lineNumber:t+1,top:l};l+=this.getLineHeight(t)}}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(e){if(this.top==null||this.file==null)return;if(this.options.collapsed===!0)return{topOffset:this.top,height:this.height};let t=e==null?this.renderRange:this.computeRenderRangeFromWindow(this.file,this.top,e);if(t==null)return;let{bufferBefore:n,bufferAfter:r,totalLines:i}=t,a=0;if(i===0){let t=e??this.virtualizer.getWindowSpecs();this.top<t.top&&(a=r)}return{topOffset:this.top+n+a,height:this.height-(n+r)}}cleanUp(e=!1){this.fileContainer!=null&&this.isSimpleMode()&&this.getSimpleVirtualizer()?.disconnect(this.fileContainer),e||this.resetLayoutCache(),this.isSetup=!1,super.cleanUp(e)}computeApproximateSize(e=!1,t=this.file){let n=this.isResizeDebuggingEnabled();if(!e&&!this.layoutDirty&&!n)return;let r=this.height===0;if(this.height=0,this.cache.checkpoints=[],t==null){this.layoutDirty=!1;return}let{disableFileHeader:i=!1,collapsed:a=!1,overflow:o=`scroll`}=this.options,{lineHeight:s}=this.metrics,c=this.fileRenderer.getLineCount(t),l=V(this.metrics,i),u=F(this.metrics);if(this.height+=l,a){this.layoutDirty=!1;return}if(this.height+=this.cache.fileAnnotationHeight,o===`scroll`&&!this.hasLineAnnotations())this.height+=c*s;else for(let e=0;e<c;e++)this.addLayoutCheckpoint(e,this.height),this.height+=this.getLineHeight(e,!1);if(c>0&&(this.height+=u),this.fileContainer!=null&&n&&!r){let e=this.fileContainer.getBoundingClientRect();e.height===this.height?console.log(`VirtualizedFile.computeApproximateSize: computed height IS CORRECT`):console.log(`VirtualizedFile.computeApproximateSize: computed height doesnt match`,{name:t.name,elementHeight:e.height,computedHeight:this.height})}this.layoutDirty=!1}setVisibility(e){this.isAdvancedMode()||this.fileContainer==null||(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){!this.enabled||this.file==null||(this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!1))}applyDocumentChange(e,t,n=!1){let{renderRange:r}=this;if(this.getAdvancedVirtualizer()?.capturePendingLayoutAnchor(),super.applyDocumentChange(e,t),this.getSimpleVirtualizer()?.markDOMDirty(),this.resetLayoutCache(this.isSimpleMode(),!1),!this.isSimpleMode())this.computeApproximateSize(!0);else if(n&&r!==void 0&&this.file!==void 0){let e=this.virtualizer.getWindowSpecs(),t=this.computeRenderRangeFromWindow(this.file,this.top??0,e);t.bufferAfter!==r.bufferAfter&&this.updateBuffers(t)}this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!0)}renderPreparedFile({fileContainer:e,file:t,forceRender:n=!1,lineAnnotations:r,...i}){let a=this.file==null||!Y(this.file,t)||this.fileRenderer.hasUnkeyedFileContentsChanged(t),{forceRenderOverride:o,isSetup:s}=this;this.forceRenderOverride=void 0;let c=this.syncLineAnnotations(r);if(c&&this.resetLayoutCache(),e=this.getOrCreateFileContainerNode(e),t==null)return console.error(`VirtualizedFile.render: attempting to virtually render when we dont have file`),!1;if(s)this.top??=this.getVirtualizedTop(),a&&this.isSimpleMode()&&(this.getSimpleVirtualizer()?.markDOMDirty(),this.resetLayoutCache(!1),this.computeApproximateSize(!1,t));else{this.computeApproximateSize(!1,t);let n=this.getSimpleVirtualizer();if(this.top??=this.getVirtualizedTop(),this.isAdvancedMode())this.isVisible=!0;else{if(n==null)throw Error(`VirtualizedFile.render: simple virtualizer is not available`);n.connect(e,this),this.isVisible=n.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode()&&(!a||!s))return this.file=t,a&&(this.cachedHeaderHTML=void 0),this.renderPlaceholder(this.height);let l=this.virtualizer.getWindowSpecs(),u=this.top??0,d=this.computeRenderRangeFromWindow(t,u,l),f=super.renderPreparedFile({file:t,fileContainer:e,renderRange:d,lineAnnotations:r,forceRender:(o??n)||c||a,...i});return this.isSimpleMode()&&f&&this.getSimpleVirtualizer()?.requestHeightReconcile(this),f}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}shouldGuardRebuildScroll(){return!1}isSimpleMode(){return this.virtualizer.type===`simple`}isAdvancedMode(){return this.virtualizer.type===`advanced`}addLayoutCheckpoint(e,t){e%Ce===0&&this.cache.checkpoints.push({lineIndex:e,top:t})}getLayoutCheckpointBeforeLineIndex(e){if(e<=0||this.cache.checkpoints.length===0)return;let t=0,n=this.cache.checkpoints.length-1,r;for(;t<=n;){let i=t+n>>1,a=this.cache.checkpoints[i];if(a==null)throw Error(`VirtualizedFile: invalid checkpoint index`);a.lineIndex<=e?(r=a,t=i+1):n=i-1}return r}getLayoutCheckpointBeforeTop(e,t){let n=0,r=this.cache.checkpoints.length-1,i=-1;for(;n<=r;){let t=n+r>>1,a=this.cache.checkpoints[t];if(a==null)throw Error(`VirtualizedFile: invalid checkpoint index`);a.top<=e?(i=t,n=t+1):r=t-1}if(t==null)return i>=0?this.cache.checkpoints[i]:void 0;for(let e=i;e>=0;e--){let n=this.cache.checkpoints[e];if(n==null)throw Error(`VirtualizedFile: invalid checkpoint index`);if(n.lineIndex%t===0)return n}}getVirtualizedTop(){return this.virtualizer.type===`advanced`?this.virtualizer.getLocalTopForInstance(this):this.fileContainer==null?0:this.virtualizer.getOffsetInScrollContainer(this.fileContainer)}getSimpleVirtualizer(){return this.virtualizer.type===`simple`?this.virtualizer:void 0}getAdvancedVirtualizer(){return this.virtualizer.type===`advanced`?this.virtualizer:void 0}isResizeDebuggingEnabled(){return this.getSimpleVirtualizer()?.config.resizeDebugging??!1}computeRenderRangeFromWindow(e,t,{top:n,bottom:r}){let{disableFileHeader:i=!1,overflow:a=`scroll`}=this.options,{hunkLineCount:o,lineHeight:s}=this.metrics,c=this.fileRenderer.getLineCount(e),l=this.height,u=V(this.metrics,i),d=c>0?F(this.metrics):0,{fileAnnotationHeight:f}=this.cache,p=u+f,m=Math.max(0,l-u-f-d),h=j(this.lineAnnotations),g=t+u,_=f>0&&h&&g<r&&g+f>n;if(t<n-l||t>r)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};if(c<=o)return{startingLine:0,totalLines:o,bufferBefore:0,bufferAfter:0};let v=Math.ceil(Math.max(r-n,0)/s),y=Math.ceil(v/o)*o+o,b=y/o,x=(n+r)/2;if(a===`scroll`&&!this.hasLineAnnotations()){let e=t+p,i=e+m;if(!_&&!(e<r&&i>n))return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};let a=Math.floor(_&&x<t+p?0:(x-(t+p))/s),h=Math.floor(a/o)-Math.floor(b/2),g=Math.ceil(c/o),v=Math.max(0,Math.min(h,g))*o,S=h<0?y+h*o:y,C=v===0?0:f+v*s,w=Math.min(S,c-v);return{startingLine:v,totalLines:S,bufferBefore:C,bufferAfter:Math.max(0,(c-v-w)*s)}}let S=b,C=[],w=this.getLayoutCheckpointBeforeTop(Math.max(0,n-t-y*s*2),o),T=t+(w?.top??p),E=w?.lineIndex??0,D,O,k,A=w?.lineIndex??0;for(let e=A;e<c;e++){let i=E%o===0,a=Math.floor(E/o);if(i&&(C[a]=T-(t+p),k!=null)){if(k<=0)break;k--}let s=this.getLineHeight(e,!1);T>n-s&&T<r&&(D??=a),T+s>x&&(O??=a),k==null&&T>=r&&i&&(k=S),E++,T+=s}if(D==null)if(_)D=0,O=0;else return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:l-u-d};O??=D;let M=Math.round(O-b/2),ee=Math.max(0,Math.ceil(c/o)-b),N=Math.max(0,Math.min(M,ee)),P=N*o,I=M<0?y+M*o:y,L=C[N]??0,R=P===0?0:f+L,z=N+I/o,B=z<C.length?m-C[z]:m-(T-t-p);return{startingLine:P,totalLines:I,bufferBefore:R,bufferAfter:Math.max(0,B)}}};function De(e){let t;for(let n of e.children)n instanceof HTMLElement&&n.dataset.lineAnnotation===me&&(t=Math.max(t??0,n.getBoundingClientRect().height));return t}var $=e();function Oe({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:o,lineAnnotations:s,renderGutterUtility:c,getHoveredLine:l}){let u=t?.(e),d=n?.(e),f=r?.(e),p=i?.(e);return(0,$.jsxs)($.Fragment,{children:[u==null?(0,$.jsxs)($.Fragment,{children:[d!=null&&(0,$.jsx)(`div`,{slot:`header-prefix`,children:d}),f!=null&&(0,$.jsx)(`div`,{slot:`header-filename-suffix`,children:f}),p!=null&&(0,$.jsx)(`div`,{slot:`header-metadata`,children:p})]}):(0,$.jsx)(`div`,{slot:U,children:u}),o!=null&&s?.map((e,t)=>(0,$.jsx)(`div`,{slot:m(e),children:o(e)},t)),c!=null&&(0,$.jsx)(`div`,{slot:`gutter-utility-slot`,style:a,children:c(l)})]})}export{Ee as n,be as r,Oe as t};
2
+ //# sourceMappingURL=renderFileChildren-1GxlP08z.js.map