@seaveyon/harness-switch 0.5.0 → 0.6.1

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 (37) hide show
  1. package/README.md +20 -3
  2. package/dist/harness-switch.js +407 -51
  3. package/package.json +1 -1
  4. package/public/06ac09dcb8ec7d56.woff2 +0 -0
  5. package/public/110e2a7693b4a5f3.woff2 +0 -0
  6. package/public/192d14b24f70b621.woff2 +0 -0
  7. package/public/2258ff2f7eae77c2.woff +0 -0
  8. package/public/2a0db5363856276c.woff2 +0 -0
  9. package/public/5a49cbe35ab2dd3c.woff2 +0 -0
  10. package/public/60bbe6c85a6afad1.woff2 +0 -0
  11. package/public/651bc97e3669e21f.woff2 +0 -0
  12. package/public/66a2e8650a2dcd92.woff2 +0 -0
  13. package/public/7d495472d32ca07d.woff +0 -0
  14. package/public/88f8fd5b09b976bb.woff +0 -0
  15. package/public/9533b5204f120066.woff +0 -0
  16. package/public/994c96595d20046b.woff +0 -0
  17. package/public/9faee8e8b774991c.woff2 +0 -0
  18. package/public/a7358d2e3dd919a9.woff2 +0 -0
  19. package/public/a8a9073d6f10c294.woff2 +0 -0
  20. package/public/assets/{4952.5b132c3d.js → 4952.58f3b893.js} +1 -1
  21. package/public/assets/{5646.a72b2c1e.js → 5646.1b33e69c.js} +1 -1
  22. package/public/assets/{6150.910aaed9.js → 6150.5cb126a5.js} +1 -1
  23. package/public/assets/main.5b6d51f1.css +2 -0
  24. package/public/assets/main.5e14383f.js +1 -0
  25. package/public/b0b919fcf36c2073.woff2 +0 -0
  26. package/public/bdc4ddcb892cb87b.woff2 +0 -0
  27. package/public/cd8df815c9344be0.woff2 +0 -0
  28. package/public/d2ac083e197becc1.woff +0 -0
  29. package/public/dece0821e8ed059f.woff2 +0 -0
  30. package/public/e32cf7a40c90e778.woff +0 -0
  31. package/public/e53d79b9a7d8ae7b.woff +0 -0
  32. package/public/ef1c8a30e0ed6275.woff2 +0 -0
  33. package/public/f14ffb91743624fd.woff +0 -0
  34. package/public/f9f2cfdc8f44d943.woff +0 -0
  35. package/public/index.html +1 -1
  36. package/public/assets/main.9128def8.css +0 -2
  37. package/public/assets/main.95434834.js +0 -1
@@ -53,7 +53,7 @@
53
53
  <symbol id="diffs-icon-symbol-ref" viewBox="0 0 16 16">
54
54
  <path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z"/>
55
55
  </symbol>
56
- </svg>`,nL={};function nA(e){if(null!=r)return r;let t=e.host;if("u">typeof HTMLElement&&t instanceof HTMLElement&&!t.isConnected)return;let n=document.createElement("div");n.setAttribute("data-code",""),n.setAttribute("data-diffs-scrollbar-measure","true");let i=document.createElement("div");return i.style.position="relative",i.style.width="200%",i.style.height="200%",n.appendChild(i),e.appendChild(n),r=Math.max(n.offsetHeight-n.clientHeight,0),n.remove(),r}function nE(e){return`${R}: ${null==e?"var(--diffs-scrollbar-gutter-fallback)":`${e}px`};`}let nP="@layer base, theme, rendered, unsafe;",nR=RegExp(`${R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\s*:\\s*[^;]+;`);function nT({code:e,pre:t,columnType:n,rowSpan:i,containerSize:r=!1}={}){return null==e&&((e=document.createElement("code")).setAttribute("data-code",""),null!=n&&e.setAttribute(`data-${n}`,""),t?.appendChild(e)),null!=i?e.style.setProperty("grid-row",`span ${i}`):e.style.removeProperty("grid-row"),r?e.setAttribute("data-container-size",""):e.removeAttribute("data-container-size"),e}function n_(e,t){let n=e?.offsetHeight??0;if(null==e||0===n)return void t();e.style.minHeight=`${n}px`;try{t(),e.offsetHeight}finally{e.style.minHeight=""}}if("u">typeof HTMLElement&&null==customElements.get("diffs-container")){let e;class t extends HTMLElement{constructor(){if(super(),null!=this.shadowRoot)return;const t=this.attachShadow({mode:"open"});null==e&&(e=new CSSStyleSheet).replaceSync('@layer base {\n :host {\n --diffs-font-fallback: "SF Mono", Monaco, Consolas, "Ubuntu Mono", "Liberation Mono",\n "Courier New", monospace;\n --diffs-header-font-fallback: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",\n "Noto Sans", "Liberation Sans", Arial, sans-serif;\n --diffs-mixer: light-dark(#000, #fff);\n --diffs-gap-fallback: 8px;\n --diffs-scrollbar-gutter-fallback: 6px;\n --diffs-scrollbar-gutter: var(--diffs-scrollbar-gutter-override, var(--diffs-scrollbar-gutter-measured, var(--diffs-scrollbar-gutter-fallback)));\n --diffs-added-light: #0dbe4e;\n --diffs-added-dark: #5ecc71;\n --diffs-modified-light: #009fff;\n --diffs-modified-dark: #69b1ff;\n --diffs-deleted-light: #ff2e3f;\n --diffs-deleted-dark: #ff6762;\n --diffs-warning-light: #d5a910;\n --diffs-warning-dark: #ffd452;\n color-scheme: light dark;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n font-size: var(--diffs-font-size, 13px);\n line-height: var(--diffs-line-height, 20px);\n font-feature-settings: var(--diffs-font-features);\n --diffs-bg: light-dark(var(--diffs-light-bg, #fff), var(--diffs-dark-bg, #000));\n --diffs-bg-buffer: var(--diffs-bg-buffer-override, light-dark(color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))));\n --diffs-bg-context: var(--diffs-bg-context-override, light-dark(color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))));\n --diffs-bg-context-gutter: var(--diffs-bg-context-gutter-override, light-dark(color-mix(in lab, var(--diffs-bg-context) 90%, var(--diffs-bg)), color-mix(in lab, var(--diffs-bg-context) 45%, var(--diffs-bg))));\n --diffs-bg-separator: var(--diffs-bg-separator-override, light-dark(color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))));\n --diffs-fg: light-dark(var(--diffs-light, #000), var(--diffs-dark, #fff));\n --diffs-fg-number: var(--diffs-fg-number-override, light-dark(color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)), color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))));\n --diffs-fg-conflict-marker: var(--diffs-fg-conflict-marker-override, var(--diffs-fg-number));\n --diffs-deletion-base: var(--diffs-deletion-color-override, light-dark(var(--diffs-light-deletion-color, var(--diffs-deletion-color, var(--diffs-deleted-light))), var(--diffs-dark-deletion-color, var(--diffs-deletion-color, var(--diffs-deleted-dark)))));\n --diffs-addition-base: var(--diffs-addition-color-override, light-dark(var(--diffs-light-addition-color, var(--diffs-addition-color, var(--diffs-added-light))), var(--diffs-dark-addition-color, var(--diffs-addition-color, var(--diffs-added-dark)))));\n --diffs-modified-base: var(--diffs-modified-color-override, light-dark(var(--diffs-light-modified-color, var(--diffs-modified-color, var(--diffs-modified-light))), var(--diffs-dark-modified-color, var(--diffs-modified-color, var(--diffs-modified-dark)))));\n --diffs-bg-deletion: var(--diffs-bg-deletion-override, light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)), color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))));\n --diffs-bg-deletion-emphasis: var(--diffs-bg-deletion-emphasis-override, light-dark(rgb(from var(--diffs-deletion-base) r g b / .15), rgb(from var(--diffs-deletion-base) r g b / .2)));\n --diffs-bg-addition: var(--diffs-bg-addition-override, light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)), color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))));\n --diffs-bg-addition-emphasis: var(--diffs-bg-addition-emphasis-override, light-dark(rgb(from var(--diffs-addition-base) r g b / .15), rgb(from var(--diffs-addition-base) r g b / .2)));\n --diffs-selection-base: var(--diffs-modified-base);\n --diffs-selection-number-fg: light-dark(color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer)));\n background-color: var(--diffs-bg);\n color: var(--diffs-fg);\n display: block;\n }\n\n pre, code, [data-error-wrapper] {\n isolation: isolate;\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n outline: none;\n margin: 0;\n padding: 0;\n display: block;\n }\n\n pre, code {\n background-color: var(--diffs-bg);\n }\n\n code {\n contain: content;\n }\n\n input, button {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n }\n\n *, :before, :after {\n box-sizing: border-box;\n }\n\n [data-icon-sprite] {\n display: none;\n }\n\n [data-diffs-header], [data-separator] {\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n }\n\n [data-diffs-header][data-sticky] {\n z-index: 1;\n background-color: var(--diffs-bg);\n position: sticky;\n top: 0;\n }\n\n [data-file-info] {\n color: var(--fg);\n background-color: color-mix(in lab, var(--bg) 98%, var(--fg));\n border-block: 1px solid color-mix(in lab, var(--bg) 95%, var(--fg));\n padding: 10px;\n font-weight: 700;\n }\n\n [data-diff], [data-file] {\n --diffs-grid-number-column-width: minmax(min-content, max-content);\n --diffs-code-grid: var(--diffs-grid-number-column-width) 1fr;\n\n &[data-dehydrated] {\n --diffs-code-grid: var(--diffs-grid-number-column-width) minmax(0, 1fr);\n }\n\n &:hover [data-code]::-webkit-scrollbar-thumb {\n background-color: var(--diffs-bg-context);\n }\n }\n\n @supports (-webkit-touch-callout: none) {\n :host {\n --diffs-scrollbar-gutter-fallback: 0px;\n }\n }\n\n [data-line] span {\n color: light-dark(var(--diffs-token-light, var(--diffs-light)), var(--diffs-token-dark, var(--diffs-dark)));\n background-color: light-dark(var(--diffs-token-light-bg, inherit), var(--diffs-token-dark-bg, inherit));\n font-weight: light-dark(var(--diffs-token-light-font-weight, inherit), var(--diffs-token-dark-font-weight, inherit));\n font-style: light-dark(var(--diffs-token-light-font-style, inherit), var(--diffs-token-dark-font-style, inherit));\n text-decoration: light-dark(var(--diffs-token-light-text-decoration, inherit), var(--diffs-token-dark-text-decoration, inherit));\n }\n\n [data-line], [data-gutter-buffer], [data-column-number], [data-line-annotation], [data-no-newline], [data-merge-conflict], [data-merge-conflict-actions], [data-editor-overlay] {\n --diffs-computed-decoration-bg: var(--diffs-bg);\n --diffs-computed-diff-line-bg: var(--diffs-computed-decoration-bg);\n --diffs-computed-selected-line-bg: var(--diffs-computed-diff-line-bg);\n --diffs-computed-editor-active-line-bg: var(--diffs-computed-selected-line-bg);\n --diffs-computed-hovered-line-bg: var(--diffs-computed-editor-active-line-bg);\n --diffs-hover-mix-target: var(--diffs-bg-hover-override, var(--diffs-mixer));\n --diffs-line-bg: var(--diffs-computed-hovered-line-bg);\n color: var(--diffs-fg);\n background-color: var(--diffs-line-bg, var(--diffs-bg));\n }\n\n [data-line], [data-no-newline] {\n &[data-decoration-bg] {\n --mix-deco-light: 92%;\n --mix-deco-dark: 85%;\n\n &[data-decoration-bg-depth="2"] {\n --mix-deco-light: 88%;\n --mix-deco-dark: 80%;\n }\n\n &[data-decoration-bg-depth="3"] {\n --mix-deco-light: 85%;\n --mix-deco-dark: 78%;\n }\n\n --diffs-hover-mix-target: var(--diffs-decoration-bg);\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) var(--mix-deco-light),\n var(--diffs-decoration-bg)), color-mix(in lab,\n var(--diffs-bg) var(--mix-deco-dark),\n var(--diffs-decoration-bg)));\n }\n }\n\n [data-line-annotation], [data-gutter-buffer="annotation"] {\n --diffs-annotation-bg: var(--diffs-bg-context);\n --diffs-computed-decoration-bg: var(--diffs-annotation-bg);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-merge-conflict-actions], [data-gutter-buffer="merge-conflict-action"], [data-gutter-buffer="merge-conflict-marker-base"], [data-gutter-buffer="merge-conflict-marker-separator"], [data-merge-conflict="marker-base"], [data-merge-conflict="marker-separator"] {\n --diffs-computed-decoration-bg: var(--diffs-bg-context);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-gutter-buffer="merge-conflict-marker-start"], [data-merge-conflict="marker-start"] {\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) 78%,\n var(--conflict-bg-current-header-override, var(--diffs-addition-base))), color-mix(in lab,\n var(--diffs-bg) 68%,\n var(--conflict-bg-current-header-override, var(--diffs-addition-base))));\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-gutter-buffer="merge-conflict-marker-end"], [data-merge-conflict="marker-end"] {\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) 78%,\n var(--conflict-bg-incoming-header-override, var(--diffs-modified-base))), color-mix(in lab,\n var(--diffs-bg) 68%,\n var(--conflict-bg-incoming-header-override, var(--diffs-modified-base))));\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-has-merge-conflict] [data-line-annotation], [data-has-merge-conflict] [data-gutter-buffer="annotation"] {\n --diffs-computed-decoration-bg: var(--diffs-bg);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n :where([data-background]) {\n & [data-gutter-buffer], & [data-column-number] {\n --mix-light: 91%;\n --mix-dark: 85%;\n }\n\n & [data-line], & [data-no-newline] {\n --mix-light: 88%;\n --mix-dark: 80%;\n }\n\n & [data-gutter-buffer], & [data-column-number], & [data-line], & [data-no-newline] {\n --diffs-diff-line-mix-target: var(--diffs-bg);\n\n &[data-line-type="change-deletion"] {\n --diffs-diff-line-mix-target: var(--diffs-bg-deletion-override, var(--diffs-deletion-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-deletion-override, var(--diffs-deletion-base));\n --diffs-diff-line-mix-target: var(--diffs-bg-deletion-number-override, var(--diffs-deletion-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-line-type="change-addition"] {\n --diffs-diff-line-mix-target: var(--diffs-bg-addition-override, var(--diffs-addition-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-addition-override, var(--diffs-addition-base));\n --diffs-diff-line-mix-target: var(--diffs-bg-addition-number-override, var(--diffs-addition-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-merge-conflict="current"] {\n --diffs-diff-line-mix-target: var(--conflict-bg-current-override, var(--diffs-addition-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-addition-override, var(--diffs-addition-base));\n --diffs-diff-line-mix-target: var(--conflict-bg-current-number-override, var(--diffs-addition-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-merge-conflict="incoming"] {\n --diffs-diff-line-mix-target: var(--conflict-bg-incoming-override, var(--diffs-modified-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-modified-base);\n --diffs-diff-line-mix-target: var(--conflict-bg-incoming-number-override, var(--diffs-modified-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n }\n }\n\n [data-gutter-buffer], [data-column-number], [data-line], [data-line-annotation], [data-merge-conflict], [data-merge-conflict-actions], [data-no-newline], [data-editor-overlay] {\n --diffs-selection-mix-target: var(--diffs-bg-selection-override, var(--diffs-selection-base));\n --diffs-selection-emphasis-mix-target: var(--diffs-selection-mix-target);\n\n &:where([data-editor-overlay]), &:where([data-line], [data-line-annotation], [data-merge-conflict], [data-merge-conflict-actions], [data-no-newline])[data-selected-line] {\n --mix-selection-light: 82%;\n --mix-selection-dark: 75%;\n --diffs-hover-mix-target: var(--diffs-selection-mix-target);\n }\n\n &:where([data-gutter-buffer][data-selected-line], [data-column-number]:is([data-selected-line], [data-editor-active-line])) {\n --mix-selection-light: 75%;\n --mix-selection-dark: 60%;\n --diffs-selection-mix-target: var(--diffs-bg-selection-number-override, var(--diffs-selection-base));\n --diffs-hover-mix-target: var(--diffs-selection-mix-target);\n }\n\n &:where([data-line][data-selected-line]):is([data-line-type="change-addition"], [data-line-type="change-deletion"]) {\n --diffs-selection-emphasis-mix-target: light-dark(color-mix(in lab,\n var(--diffs-diff-line-mix-target, var(--diffs-selection-mix-target))\n var(--mix-selection-light),\n var(--diffs-selection-mix-target)), var(--diffs-selection-mix-target));\n }\n\n &:where([data-editor-overlay]), &[data-selected-line] {\n --diffs-computed-selected-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-diff-line-bg) var(--mix-selection-light),\n var(--diffs-selection-mix-target)), color-mix(in lab,\n var(--diffs-computed-diff-line-bg) var(--mix-selection-dark),\n var(--diffs-selection-mix-target)));\n }\n }\n\n [data-line][data-editor-active-line], [data-column-number][data-editor-active-line] {\n --diffs-computed-editor-active-line-bg: color-mix(in lab,\n var(--diffs-computed-selected-line-bg)\n var(--diffs-editor-active-line-source-mix, 100%),\n var(--diffs-selection-emphasis-mix-target));\n }\n\n @media (pointer: fine) {\n [data-line][data-hovered], [data-gutter-buffer][data-hovered], [data-column-number][data-hovered], [data-line-annotation][data-hovered], [data-no-newline][data-hovered], [data-merge-conflict][data-hovered], [data-merge-conflict-actions][data-hovered], [data-editor-overlay][data-hovered] {\n --diffs-computed-hovered-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-editor-active-line-bg) 97%,\n var(--diffs-hover-mix-target)), color-mix(in lab,\n var(--diffs-computed-editor-active-line-bg) 91%,\n var(--diffs-hover-mix-target)));\n }\n }\n\n [data-gutter-buffer][data-selected-line], [data-column-number]:is([data-selected-line], [data-editor-active-line]) {\n color: var(--diffs-selection-number-fg);\n }\n\n [data-no-newline] {\n user-select: none;\n\n & span {\n opacity: .6;\n }\n }\n\n [data-diff-type="split"][data-overflow="scroll"] {\n grid-template-columns: 1fr 1fr;\n display: grid;\n\n & [data-additions] {\n border-left: 1px solid var(--diffs-bg);\n }\n\n & [data-deletions] {\n border-right: 1px solid var(--diffs-bg);\n }\n }\n\n [data-code] {\n grid-auto-flow: dense;\n grid-template-columns: var(--diffs-code-grid);\n overflow: var(--diffs-overflow-override, scroll) clip;\n overscroll-behavior-x: none;\n tab-size: var(--diffs-tab-size, 2);\n padding-top: var(--diffs-gap-block, var(--diffs-gap-fallback));\n padding-bottom: max(0px,\n calc(var(--diffs-gap-block, var(--diffs-gap-fallback)) -\n var(--diffs-scrollbar-gutter)));\n scrollbar-gutter: stable;\n align-self: flex-start;\n display: grid;\n }\n\n [data-diffs-scrollbar-measure] {\n opacity: 0;\n pointer-events: none;\n scrollbar-gutter: auto;\n grid-template-columns: none;\n width: 100px;\n height: 100px;\n padding: 0;\n position: absolute;\n top: -200px;\n left: -200px;\n }\n\n [data-container-size] {\n container-type: inline-size;\n }\n\n [data-code]::-webkit-scrollbar {\n width: 0;\n height: var(--diffs-scrollbar-gutter);\n }\n\n [data-code]::-webkit-scrollbar-track {\n background: none;\n }\n\n [data-code]::-webkit-scrollbar-thumb {\n background-color: #0000;\n background-clip: content-box;\n border: 1px solid #0000;\n border-radius: 3px;\n }\n\n [data-code]::-webkit-scrollbar-corner {\n background-color: #0000;\n }\n\n @supports ((-moz-appearance: none)) {\n [data-code] {\n scrollbar-width: thin;\n scrollbar-color: var(--diffs-bg-context) transparent;\n padding-bottom: var(--diffs-gap-block, var(--diffs-gap-fallback));\n }\n }\n\n [data-diffs-header] ~ [data-diff], [data-diffs-header] ~ [data-file] {\n & [data-code], &[data-overflow="wrap"], &[data-dehydrated][data-diff-type="split"][data-overflow="scroll"] {\n padding-top: 0;\n }\n }\n\n [data-gutter] {\n grid-template-rows: subgrid;\n grid-template-columns: subgrid;\n z-index: 3;\n background-color: var(--diffs-bg);\n grid-column: 1;\n display: grid;\n position: relative;\n\n & [data-gutter-buffer], & [data-column-number] {\n border-right: var(--diffs-gap-style, 2px solid var(--diffs-bg));\n }\n }\n\n [data-content] {\n grid-template-rows: subgrid;\n grid-template-columns: subgrid;\n background-color: var(--diffs-bg);\n grid-column: 2;\n min-width: 0;\n display: grid;\n }\n\n [data-diff-type="split"][data-overflow="wrap"], [data-dehydrated][data-diff-type="split"][data-overflow="scroll"] {\n grid-auto-flow: dense;\n grid-template-columns: repeat(2, var(--diffs-code-grid));\n padding-block: var(--diffs-gap-block, var(--diffs-gap-fallback));\n display: grid;\n\n & [data-code] {\n display: contents;\n }\n\n & [data-deletions] {\n & [data-gutter] {\n grid-column: 1;\n }\n\n & [data-content] {\n border-right: 1px solid var(--diffs-bg);\n grid-column: 2;\n }\n }\n\n & [data-additions] {\n & [data-gutter] {\n border-left: 1px solid var(--diffs-bg);\n grid-column: 3;\n }\n\n & [data-content] {\n grid-column: 4;\n }\n }\n }\n\n [data-dehydrated][data-diff-type="split"][data-overflow="scroll"] [data-content] {\n overflow: clip;\n }\n\n [data-overflow="scroll"] [data-gutter] {\n position: sticky;\n left: 0;\n }\n\n [data-interactive-lines] [data-line] {\n cursor: pointer;\n }\n\n [data-interactive-line-numbers] [data-column-number] {\n cursor: pointer;\n touch-action: none;\n }\n\n [data-content-buffer], [data-gutter-buffer] {\n user-select: none;\n min-height: 1lh;\n position: relative;\n }\n\n [data-gutter-buffer] {\n padding-left: 2ch;\n padding-right: 1ch;\n\n &:before {\n content: "";\n min-width: var(--diffs-min-number-column-width, var(--diffs-min-number-column-width-default, 3ch));\n display: block;\n }\n }\n\n [data-gutter-buffer="annotation"] {\n --diffs-annotation-bg: var(--diffs-bg-context-gutter);\n min-height: 0;\n }\n\n [data-gutter-buffer="buffer"] {\n --diffs-line-bg: var(--diffs-bg-context-gutter);\n }\n\n [data-content-buffer] {\n background-position: 5px 0;\n background-size: 8px 8px;\n background-origin: border-box;\n background-image: repeating-linear-gradient(-45deg,\n transparent,\n transparent calc(3px * 1.414),\n var(--diffs-bg-buffer) calc(3px * 1.414),\n var(--diffs-bg-buffer) calc(4px * 1.414));\n grid-column: 1;\n }\n\n [data-separator] {\n box-sizing: content-box;\n background-color: var(--diffs-bg);\n }\n\n [data-separator="simple"] {\n min-height: 4px;\n }\n\n [data-separator="line-info"], [data-separator="line-info-basic"], [data-separator="metadata"], [data-separator="simple"] {\n background-color: var(--diffs-bg-separator);\n }\n\n [data-separator="line-info"], [data-separator="line-info-basic"], [data-separator="metadata"] {\n height: 32px;\n position: relative;\n }\n\n [data-separator-wrapper] {\n user-select: none;\n fill: currentColor;\n background-color: var(--diffs-bg);\n align-items: center;\n height: 100%;\n display: flex;\n position: absolute;\n inset-inline: 0;\n }\n\n [data-content] [data-separator-wrapper] {\n display: none;\n }\n\n [data-separator="metadata"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n height: 100%;\n color: var(--diffs-fg-number);\n white-space: nowrap;\n text-overflow: ellipsis;\n min-width: min-content;\n padding-inline: 1ch;\n inset-inline: 100% auto;\n overflow: hidden;\n }\n\n [data-separator="line-info"] {\n margin-block: var(--diffs-gap-block, var(--diffs-gap-fallback));\n\n & [data-separator-wrapper] {\n min-width: 16px;\n }\n }\n\n [data-separator="line-info-basic"], [data-separator="metadata"] {\n margin-block: 0;\n }\n\n [data-separator="line-info"][data-separator-first] {\n margin-top: 0;\n }\n\n [data-separator="line-info"][data-separator-last] {\n margin-bottom: 0;\n }\n\n [data-expand-index] [data-separator-wrapper] {\n grid-template-columns: 32px auto;\n display: grid;\n }\n\n [data-expand-index] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 32px 32px auto;\n }\n\n [data-expand-button], [data-separator-content] {\n background-color: var(--diffs-bg-separator);\n flex: none;\n align-items: center;\n display: flex;\n }\n\n [data-expand-index] [data-separator-content]:hover {\n cursor: pointer;\n text-decoration: underline;\n }\n\n [data-expand-button] {\n cursor: pointer;\n min-width: 32px;\n color: var(--diffs-fg-number);\n border-right: 2px solid var(--diffs-bg);\n flex-shrink: 0;\n justify-content: center;\n align-self: stretch;\n\n &:hover {\n color: var(--diffs-fg);\n }\n\n &[data-expand-all-button] {\n display: none;\n }\n }\n\n [data-expand-down] [data-icon] {\n transform: scaleY(-1);\n }\n\n [data-separator-content] {\n height: 100%;\n color: var(--diffs-fg-number);\n flex: auto;\n justify-content: flex-start;\n padding: 0 1ch;\n overflow: hidden;\n }\n\n [data-separator="line-info"], [data-separator="line-info-basic"] {\n & [data-separator-content] {\n user-select: none;\n height: 100%;\n overflow: clip;\n }\n }\n\n [data-unmodified-lines] {\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 0 auto;\n min-width: 0;\n display: block;\n overflow: hidden;\n }\n\n @supports (width: 1cqi) {\n [data-unified] {\n & [data-separator="line-info"] [data-separator-wrapper] {\n padding-inline: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n width: 100cqi;\n\n & [data-separator-content] {\n border-radius: 6px;\n }\n }\n\n & [data-separator="line-info"][data-expand-index] [data-separator-wrapper] [data-separator-content] {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n [data-gutter] {\n & [data-separator="line-info"] [data-separator-wrapper] {\n padding-left: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n }\n\n & [data-separator="line-info"] [data-separator-content] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n & [data-separator="line-info"][data-expand-index] [data-separator-content] {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n [data-additions] {\n & [data-content] [data-separator="line-info"] {\n background-color: var(--diffs-bg);\n\n & [data-separator-wrapper] {\n display: none;\n }\n }\n\n & [data-gutter] [data-separator="line-info"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n height: 100%;\n display: block;\n\n & [data-separator-content], & [data-expand-button] {\n display: none;\n }\n }\n }\n\n [data-overflow="scroll"] [data-additions] [data-gutter] [data-separator="line-info"] [data-separator-wrapper] {\n width: calc(100cqi - var(--diffs-gap-inline, var(--diffs-gap-fallback)));\n }\n\n [data-overflow="wrap"] [data-additions] [data-content] [data-separator="line-info"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n height: 100%;\n margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n display: block;\n\n & [data-separator-content], & [data-expand-button] {\n display: none;\n }\n }\n\n [data-separator="line-info"] [data-separator-wrapper] {\n & [data-expand-both], & [data-expand-down], & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n }\n\n @media (pointer: fine) {\n [data-separator="line-info"] [data-separator-wrapper] {\n &[data-separator-multi-button] {\n & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: unset;\n }\n\n & [data-expand-down] {\n border-bottom-left-radius: 6px;\n border-top-left-radius: unset;\n }\n }\n }\n }\n }\n\n @media (pointer: coarse) {\n [data-separator="line-info-basic"] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 34px 34px auto;\n\n & [data-separator-content] {\n grid-column: unset;\n grid-row: unset;\n }\n }\n\n @supports (width: 1cqi) {\n [data-separator="line-info"] [data-separator-wrapper] {\n & [data-expand-both], & [data-expand-down], & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &[data-separator-multi-button] {\n & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n & [data-expand-down] {\n border-bottom-left-radius: unset;\n border-top-left-radius: unset;\n }\n }\n }\n }\n }\n\n @media (pointer: fine) {\n [data-separator-wrapper][data-separator-multi-button] {\n grid-template-rows: 50% 50%;\n display: grid;\n\n & [data-separator-content] {\n grid-area: 1 / 2 / -1;\n min-width: min-content;\n }\n\n & [data-expand-button] {\n grid-column: 1;\n }\n }\n\n [data-separator="line-info"] [data-separator-wrapper], [data-separator="line-info"] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 34px auto;\n }\n\n [data-separator="line-info-basic"][data-expand-index] [data-separator-wrapper] {\n grid-template-columns: 100% auto;\n }\n\n [data-separator="line-info"], [data-separator="line-info-basic"] {\n & [data-separator-multi-button] {\n & [data-expand-up] {\n border-bottom: 1px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n }\n\n & [data-expand-down] {\n border-top: 1px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n }\n }\n }\n }\n\n [data-additions] [data-gutter] [data-separator-wrapper], [data-additions] [data-separator="line-info-basic"] [data-separator-wrapper], [data-content] [data-separator-wrapper] {\n display: none;\n }\n\n [data-line-annotation] {\n min-height: var(--diffs-annotation-min-height, 0);\n z-index: 2;\n }\n\n [data-merge-conflict-actions] {\n z-index: 2;\n }\n\n [data-separator="custom"] {\n grid-template-columns: subgrid;\n display: grid;\n }\n\n [data-line], [data-column-number], [data-no-newline] {\n padding-inline: 1ch;\n position: relative;\n }\n\n [data-indicators="classic"] [data-line] {\n padding-inline-start: 2ch;\n }\n\n [data-indicators="classic"] {\n & [data-line-type="change-addition"], & [data-line-type="change-deletion"] {\n &[data-no-newline], &[data-line] {\n &:before {\n user-select: none;\n width: 1ch;\n height: 1lh;\n display: inline-block;\n position: absolute;\n top: 0;\n left: 0;\n }\n }\n }\n\n & [data-line-type="change-addition"] {\n &[data-line], &[data-no-newline] {\n &:before {\n content: "+";\n color: var(--diffs-addition-base);\n }\n }\n }\n\n & [data-line-type="change-deletion"] {\n &[data-line], &[data-no-newline] {\n &:before {\n content: "-";\n color: var(--diffs-deletion-base);\n }\n }\n }\n }\n\n [data-indicators="bars"] {\n & [data-line-type="change-deletion"], & [data-line-type="change-addition"] {\n &[data-column-number] {\n &:before {\n content: "";\n user-select: none;\n contain: strict;\n width: 4px;\n height: 100%;\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n }\n }\n }\n\n & [data-line-type="change-deletion"] {\n &[data-column-number] {\n &:before {\n background-image: linear-gradient(0deg,\n var(--diffs-bg-deletion) 50%,\n var(--diffs-deletion-base) 50%);\n background-repeat: repeat;\n background-size: 2px 2px;\n background-size: calc(1lh / round(1lh / 2px))\n calc(1lh / round(1lh / 2px));\n }\n }\n }\n\n & [data-line-type="change-addition"] {\n &[data-column-number] {\n &:before {\n background-color: var(--diffs-addition-base);\n }\n }\n }\n }\n\n [data-overflow="wrap"] {\n & [data-line] {\n white-space: pre-wrap;\n word-break: break-word;\n }\n\n & [data-annotation-content] {\n word-break: break-word;\n }\n }\n\n [data-overflow="scroll"] [data-line] {\n white-space: pre;\n min-height: 1lh;\n }\n\n [data-column-number] {\n box-sizing: content-box;\n text-align: right;\n user-select: none;\n color: var(--diffs-fg-number);\n padding-left: 2ch;\n }\n\n [data-line-number-content] {\n min-width: var(--diffs-min-number-column-width, var(--diffs-min-number-column-width-default, 3ch));\n z-index: 1;\n display: inline-block;\n position: relative;\n }\n\n [data-disable-line-numbers] {\n & [data-gutter-buffer], & [data-column-number] {\n min-width: 4px;\n padding: 0;\n\n &:before {\n min-width: 0;\n }\n }\n\n & [data-line-number-content] {\n display: none;\n }\n\n & [data-gutter-utility-slot] {\n right: unset;\n justify-content: flex-start;\n left: 0;\n }\n\n &[data-indicators="bars"] [data-gutter-utility-slot] {\n left: 6px;\n }\n }\n\n [data-file][data-disable-line-numbers] {\n & [data-gutter-buffer], & [data-column-number] {\n border-right: 0;\n min-width: 0;\n }\n }\n\n [data-diff-span] {\n box-decoration-break: clone;\n border-radius: 3px;\n }\n\n [data-line-type="change-addition"] [data-diff-span] {\n background-color: var(--diffs-bg-addition-emphasis);\n }\n\n [data-line-type="change-deletion"] [data-diff-span] {\n background-color: var(--diffs-bg-deletion-emphasis);\n }\n\n [data-merge-conflict="marker-start"], [data-merge-conflict="marker-base"], [data-merge-conflict="marker-separator"], [data-merge-conflict="marker-end"] {\n color: var(--diffs-fg);\n padding-left: 1ch;\n }\n\n [data-merge-conflict="marker-start"], [data-merge-conflict="marker-end"] {\n align-items: center;\n display: flex;\n\n &:after {\n color: var(--diffs-fg-conflict-marker);\n font-size: .75rem;\n font-style: normal;\n line-height: 1.25rem;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n padding-left: 1ch;\n }\n }\n\n [data-merge-conflict="marker-start"]:after {\n content: "(Current Change)";\n }\n\n [data-merge-conflict="marker-end"]:after {\n content: "(Incoming Change)";\n }\n\n [data-merge-conflict-actions-content] {\n min-height: 1.75rem;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n color: var(--diffs-fg);\n align-items: center;\n gap: .25rem;\n padding-inline: .5rem;\n font-size: .75rem;\n line-height: 1.2;\n display: flex;\n }\n\n [data-merge-conflict-action] {\n appearance: none;\n color: var(--diffs-fg-number);\n font: inherit;\n cursor: pointer;\n background: none;\n border: 0;\n padding: 0;\n font-style: normal;\n }\n\n [data-merge-conflict-action]:hover {\n color: var(--diffs-fg);\n }\n\n [data-merge-conflict-action="current"]:hover {\n color: var(--diffs-addition-base);\n }\n\n [data-merge-conflict-action="incoming"]:hover {\n color: var(--diffs-modified-base);\n }\n\n [data-merge-conflict-action-separator] {\n color: var(--diffs-fg-number);\n opacity: .6;\n user-select: none;\n }\n\n [data-diffs-header="default"] {\n background-color: var(--diffs-bg);\n justify-content: space-between;\n align-items: center;\n gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n min-height: calc(1lh + (var(--diffs-gap-block, var(--diffs-gap-fallback)) * 3));\n z-index: 2;\n flex-direction: row;\n padding-inline: 16px;\n display: flex;\n position: relative;\n top: 0;\n }\n\n [data-header-content] {\n align-items: center;\n gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n white-space: nowrap;\n flex-direction: row;\n min-width: 0;\n display: flex;\n }\n\n [data-header-content] [data-prev-name], [data-header-content] [data-title] {\n text-overflow: ellipsis;\n white-space: nowrap;\n direction: rtl;\n min-width: 0;\n overflow: hidden;\n }\n\n [data-prev-name] {\n opacity: .7;\n }\n\n [data-rename-icon] {\n fill: currentColor;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n [data-diffs-header="default"] [data-metadata] {\n white-space: nowrap;\n align-items: center;\n gap: 1ch;\n display: flex;\n }\n\n [data-diffs-header="default"] [data-additions-count] {\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n color: var(--diffs-addition-base);\n }\n\n [data-diffs-header="default"] [data-deletions-count] {\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n color: var(--diffs-deletion-base);\n }\n\n [data-change-icon] {\n fill: currentColor;\n flex-shrink: 0;\n }\n\n [data-change-icon="change"], [data-change-icon="rename-pure"], [data-change-icon="rename-changed"] {\n color: var(--diffs-modified-base);\n }\n\n [data-change-icon="new"] {\n color: var(--diffs-addition-base);\n }\n\n [data-change-icon="deleted"] {\n color: var(--diffs-deletion-base);\n }\n\n [data-change-icon="file"] {\n opacity: .6;\n }\n\n [data-annotation-content] {\n z-index: 2;\n isolation: isolate;\n white-space: normal;\n align-self: flex-start;\n min-width: 0;\n display: flow-root;\n position: relative;\n }\n\n [data-overflow="scroll"] [data-annotation-content], [data-overflow="scroll"] [data-merge-conflict-actions-content] {\n width: var(--diffs-column-content-width, auto);\n left: var(--diffs-column-number-width, 0);\n position: sticky;\n }\n\n [data-annotation-slot] {\n text-wrap-mode: wrap;\n word-break: normal;\n white-space-collapse: collapse;\n }\n\n [data-gutter-utility-slot] {\n touch-action: none;\n justify-content: flex-end;\n display: flex;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n }\n\n [data-utility-button] {\n appearance: none;\n cursor: pointer;\n width: 1lh;\n height: 1lh;\n font-size: var(--diffs-font-size, 13px);\n line-height: var(--diffs-line-height, 20px);\n background-color: var(--diffs-modified-base);\n color: var(--diffs-bg);\n fill: currentColor;\n z-index: 4;\n touch-action: none;\n border: none;\n border-radius: 4px;\n justify-content: center;\n align-items: center;\n margin-right: calc(-1lh + 1ch);\n padding: 0;\n display: flex;\n position: relative;\n\n &:before {\n content: "";\n display: block;\n position: absolute;\n inset: 0 0 0 -4px;\n }\n }\n\n [data-decoration-bar-stack] {\n pointer-events: none;\n isolation: isolate;\n z-index: 1;\n background-color: var(--diffs-decoration-bar-color, transparent);\n box-sizing: content-box;\n border-left: 2px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n width: 6px;\n position: absolute;\n top: 0;\n bottom: 0;\n right: -2px;\n\n [data-decoration-bar-depth="1"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 20%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-depth="2"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 45%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-depth="3"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 65%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-start] & {\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n }\n\n [data-decoration-bar-end] & {\n z-index: 3;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 5px;\n }\n }\n\n [data-placeholder] {\n contain: strict;\n }\n\n [data-error-wrapper] {\n padding: var(--diffs-gap-block, var(--diffs-gap-fallback))\n var(--diffs-gap-inline, var(--diffs-gap-fallback));\n scrollbar-width: none;\n max-height: 400px;\n overflow: auto;\n\n & [data-error-message] {\n color: var(--diffs-deletion-base);\n font-size: 18px;\n font-weight: bold;\n }\n\n & [data-error-stack] {\n color: var(--diffs-fg-number);\n }\n }\n}\n\n@layer theme, rendered, unsafe;\n'),t.adoptedStyleSheets=[e]}connectedCallback(){nA(this.shadowRoot??this.attachShadow({mode:"open"}))}}customElements.define(b,t)}async function nN(e,t=300){let n;try{await Promise.race([e(),new Promise(e=>{n=setTimeout(e,t)})])}finally{null!=n&&clearTimeout(n)}}function nM({oldFile:e,newFile:t},n){if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)throw Error(`${n}: Pass null for an intentionally missing oldFile or newFile side`);if(null===e&&null===t)throw Error(`${n}: You must pass oldFile, newFile, or both`);return{oldFile:e,newFile:t}}}function nI(e){return""!==e?e.split(v):[]}function nD(e,t,n){let i="clone"===e?{...t,hunks:t.hunks.map(e=>({...e,hunkContent:e.hunkContent.map(e=>({...e}))})),deletionLines:[...t.deletionLines],additionLines:[...t.additionLines]}:t;if(!i.isPartial)throw Error("hydratePartialDiff: fileDiff must be partial");switch(i.type){case"change":case"rename-changed":return function(e,t,n){let i=nI(t.contents),r=nI(n.contents),{hunks:o,splitLineCount:a,unifiedLineCount:l}=function(e,t){let n=0,i=0,r=0,o=[];for(let t of e){var a;let e=Math.max(t.additionStart-1,0),l=Math.max(t.deletionStart-1,0),s=e,d=l,u=0,h=0,c=0,f=0,p=[];for(let e of t.hunkContent){if("context"===e.type){p.push({...e,additionLineIndex:s,deletionLineIndex:d}),s+=e.lines,d+=e.lines,c+=e.lines,f+=e.lines;continue}p.push({...e,additionLineIndex:s,deletionLineIndex:d}),s+=e.additions,d+=e.deletions,u+=e.additions,h+=e.deletions,c+=Math.max(e.additions,e.deletions),f+=e.additions+e.deletions}let m=Math.max((a=t.additionStart,a-(0!==t.additionCount)-r),0);o.push({...t,collapsedBefore:m,additionLineIndex:e,deletionLineIndex:l,additionLines:u,deletionLines:h,hunkContent:p,splitLineStart:n+m,unifiedLineStart:i+m,splitLineCount:c,unifiedLineCount:f}),n+=m+c,i+=m+f,r=I(t.additionStart,t.additionCount)}if(o.length>0){let e=o[o.length-1],r=Math.max(t-I(e.additionStart,e.additionCount),0);n+=r,i+=r}return{hunks:o,splitLineCount:n,unifiedLineCount:i}}(e.hunks,r.length);return e.hunks=o,e.splitLineCount=a,e.unifiedLineCount=l,e.isPartial=!1,e.deletionLines=i,e.additionLines=r,nO(e,t,n),e}(i,function(e,t){if(null==t.oldFile)throw Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires oldFile`);return t.oldFile}(i,n),nH(i,n));case"rename-pure":{let e=nH(i,n);var r=i,o=n;if(null!==o.oldFile)throw Error(`hydratePartialDiff: ${r.type} diff for ${r.name} requires oldFile to be null`);let t=nI(e.contents);return i.isPartial=!1,i.deletionLines=t,i.additionLines=t,nO(i,null,e),i}}throw Error(`hydratePartialDiff: ${i.type} diffs cannot be hydrated from loaded files`)}function nH(e,t){if(null==t.newFile)throw Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires newFile`);return t.newFile}function nO(e,t,n){var i,r;let o=null!=e.cacheKey?`${e.cacheKey}:hydrated`:(i=t,r=n,null!=i&&null!=r?null!=i.cacheKey&&null!=r.cacheKey?`${i.cacheKey}:${r.cacheKey}`:void 0:i?.cacheKey??r?.cacheKey);null==o?delete e.cacheKey:e.cacheKey=o}function nF({diff:e,diffStyle:t,startingLine:n=0,totalLines:i=1/0,expandedHunks:r,collapsedContextThreshold:o=1,callback:a}){let l=function({diff:e,diffStyle:t,startingLine:n,expandedHunks:i,collapsedContextThreshold:r}){if(n<=0||"both"===t)return{hunkIndex:0,splitCount:0,unifiedCount:0};let o=function({diff:e,expandedHunks:t,collapsedContextThreshold:n}){let i=0,r=0,o=e.hunks.length-1,a=[{splitCount:0,unifiedCount:0}];for(let l=0;l<e.hunks.length;l++){let s=e.hunks[l];if(null==s)throw Error("iterateOverDiff: invalid hunk summary index");let d=ex({isPartial:e.isPartial,rangeSize:s.collapsedBefore,expandedHunks:t,hunkIndex:l,collapsedContextThreshold:n}),u=d.fromStart+d.fromEnd;i+=u+s.splitLineCount,r+=u+s.unifiedLineCount;let h=l===o?eL({fileDiff:e,hunkIndex:l,expandedHunks:t,collapsedContextThreshold:n,errorPrefix:"iterateOverDiff"}):void 0;if(null!=h){let e=h.fromStart+h.fromEnd;i+=e,r+=e}a.push({splitCount:i,unifiedCount:r})}return a}({diff:e,expandedHunks:i,collapsedContextThreshold:r}),a=0,l=e.hunks.length-1,s=e.hunks.length;for(;a<=l;){let e=a+l>>1,i=o[e+1];if(null==i)throw Error("iterateOverDiff: invalid hunk prefix index");("unified"===t?i.unifiedCount:i.splitCount)>n?(s=e,l=e-1):a=e+1}if(s>=e.hunks.length){let t=o[e.hunks.length];if(null==t)throw Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:e.hunks.length,splitCount:t.splitCount,unifiedCount:t.unifiedCount}}let d=o[s];if(null==d)throw Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:s,splitCount:d.splitCount,unifiedCount:d.unifiedCount}}({diff:e,diffStyle:t,startingLine:n,expandedHunks:r,collapsedContextThreshold:o}),s={viewportStart:n,viewportEnd:n+i,isWindowedHighlight:n>0||i<1/0,splitCount:l.splitCount,unifiedCount:l.unifiedCount,finalHunkIndex:e.hunks.length-1,shouldBreak(){if(!s.isWindowedHighlight)return!1;let e=s.unifiedCount>=n+i,r=s.splitCount>=n+i;return"unified"===t?e:"split"===t?r:e&&r},shouldSkip(e,i){if(!s.isWindowedHighlight)return!1;let r=e>0&&s.unifiedCount+e<=n,o=i>0&&s.splitCount+i<=n;return"unified"===t?r:"split"===t?o:r&&o},incrementCounts(e,n){("unified"===t||"both"===t)&&(s.unifiedCount+=e),("split"===t||"both"===t)&&(s.splitCount+=n)},isInWindow(e,n){if(!s.isWindowedHighlight)return!0;let i=s.isInUnifiedWindow(e),r=s.isInSplitWindow(n);return"unified"===t?i:"split"===t?r:i||r},isInUnifiedWindow:e=>!s.isWindowedHighlight||s.unifiedCount>=n-e&&s.unifiedCount<n+i,isInSplitWindow:e=>!s.isWindowedHighlight||s.splitCount>=n-e&&s.splitCount<n+i,emit:(e,n=!1)=>(n||("unified"===t?s.incrementCounts(1,0):"split"===t?s.incrementCounts(0,1):s.incrementCounts(1,1)),a(e)??!1)};e:for(let n=l.hunkIndex;n<e.hunks.length;n++){var d,u;let i=e.hunks[n];if(null==i)throw Error("iterateOverDiff: invalid hunk index");if(s.shouldBreak())break;let a=(d=i.deletionStart,d-(0!==i.deletionCount)),l=(u=i.additionStart,u-(0!==i.additionCount)),f=e.isPartial||0!==i.deletionCount?i.deletionLineIndex:a,p=e.isPartial||0!==i.additionCount?i.additionLineIndex:l,m=ex({isPartial:e.isPartial,rangeSize:i.collapsedBefore,expandedHunks:r,hunkIndex:n,collapsedContextThreshold:o}),g=n===s.finalHunkIndex?eL({fileDiff:e,hunkIndex:n,expandedHunks:r,collapsedContextThreshold:o,errorPrefix:"iterateOverDiff"}):void 0,b=m.fromStart+m.fromEnd;function h(e,n){return null==g||g.collapsedLines<=0||g.fromStart+g.fromEnd>0?0:"unified"===t?e===i.unifiedLineStart+i.unifiedLineCount-1?g.collapsedLines:0:n===i.splitLineStart+i.splitLineCount-1?g.collapsedLines:0}let y=0===m.collapsedLines;function c(){return y?0:(y=!0,m.collapsedLines)}if(s.shouldSkip(b,b))s.incrementCounts(b,b),c();else{let e=i.unifiedLineStart-m.rangeSize,r=i.splitLineStart-m.rangeSize,o=f-m.rangeSize,d=p-m.rangeSize,u=a+1-m.rangeSize,h=l+1-m.rangeSize;if(n$(s,m.fromStart,t,t=>s.emit({hunkIndex:n,hunk:i,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:u+t,lineIndex:o+t,noEOFCR:!1,unifiedLineIndex:e+t,splitLineIndex:r+t},additionLine:{unifiedLineIndex:e+t,splitLineIndex:r+t,lineIndex:d+t,lineNumber:h+t,noEOFCR:!1}}))||(e=i.unifiedLineStart-m.fromEnd,r=i.splitLineStart-m.fromEnd,o=f-m.fromEnd,d=p-m.fromEnd,u=a+1-m.fromEnd,h=l+1-m.fromEnd,n$(s,m.fromEnd,t,t=>s.emit({hunkIndex:n,hunk:i,collapsedBefore:c(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:u+t,lineIndex:o+t,noEOFCR:!1,unifiedLineIndex:e+t,splitLineIndex:r+t},additionLine:{unifiedLineIndex:e+t,splitLineIndex:r+t,lineIndex:d+t,lineNumber:h+t,noEOFCR:!1}}),()=>{c()})))break}let v=i.unifiedLineStart,k=i.splitLineStart,S=f,C=p,x=a+1,w=l+1,L=i.hunkContent.at(-1);for(let e of i.hunkContent){if(s.shouldBreak())break e;let r=e===L;if("context"===e.type){if(s.shouldSkip(e.lines,e.lines))s.incrementCounts(e.lines,e.lines),c();else if(n$(s,e.lines,t,t=>{let o=r&&t===e.lines-1,a=v+t,l=k+t;return s.emit({hunkIndex:n,hunk:i,collapsedBefore:c(),collapsedAfter:h(a,l),type:"context",deletionLine:{lineNumber:x+t,lineIndex:S+t,noEOFCR:o&&i.noEOFCRDeletions,unifiedLineIndex:a,splitLineIndex:l},additionLine:{unifiedLineIndex:a,splitLineIndex:l,lineIndex:C+t,lineNumber:w+t,noEOFCR:o&&i.noEOFCRAdditions}})},()=>{c()}))break e;v+=e.lines,k+=e.lines,S+=e.lines,C+=e.lines,x+=e.lines,w+=e.lines}else{let o=Math.max(e.deletions,e.additions),a=e.deletions+e.additions;if(!s.shouldSkip(a,o)){let l=function(e,t,n){if(!e.isWindowedHighlight)return[[0,"unified"===n?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];let i="unified"===n?"unified":"split",r=[];function o(t,n){if(t+n<=e.viewportStart||t>=e.viewportEnd)return;let i=Math.max(0,e.viewportStart-t),r=Math.min(n,e.viewportEnd-t);return r>i?[i,r]:void 0}function a(e,n){if(null==e)return;let[o,a]="split"===i?e:"additions"===n?[e[0]+t.deletions,e[1]+t.deletions]:e;a>o&&r.push([o,a])}if("split"!==n&&(a(o(e.unifiedCount,t.deletions),"deletions"),a(o(e.unifiedCount+t.deletions,t.additions),"additions")),"unified"!==n&&(a(o(e.splitCount,t.deletions),"deletions"),a(o(e.splitCount,t.additions),"additions")),0===r.length)return r;r.sort((e,t)=>e[0]-t[0]);let l=[r[0]];for(let[e,t]of r.slice(1)){let n=l[l.length-1];e<=n[1]?n[1]=Math.max(n[1],t):l.push([e,t])}return l}(s,e,t);for(let[d,u]of((l[0]?.[0]??0)>0&&c(),l))for(let l=d;l<u;l++){let d=h(v+l,"unified"===t?k+(l<e.deletions?l:l-e.deletions):k+l);if(s.emit(function({hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,diffStyle:r,index:o,unifiedLineIndex:a,splitLineIndex:l,additionLineIndex:s,deletionLineIndex:d,additionLineNumber:u,deletionLineNumber:h,content:c,isLastContent:f,unifiedCount:p,splitCount:m}){let g=o<c.deletions?a+o:void 0,b="unified"===r?o>=c.deletions?a+o:void 0:o<c.additions?a+c.deletions+o:void 0,y="unified"===r?l+(o<c.deletions?o:o-c.deletions):l+o,v=o<c.deletions?d+o:void 0,k=o<c.deletions?h+o:void 0,S="unified"===r?o>=c.deletions?s+(o-c.deletions):void 0:o<c.additions?s+o:void 0,C="unified"===r?o>=c.deletions?u+(o-c.deletions):void 0:o<c.additions?u+o:void 0,x="unified"===r?f&&o===c.deletions-1&&t.noEOFCRDeletions:f&&o===m-1&&t.noEOFCRDeletions,w="unified"===r?f&&o===p-1&&t.noEOFCRAdditions:f&&o===m-1&&t.noEOFCRAdditions,L=null!=v&&null!=k&&null!=g?{lineNumber:k,lineIndex:v,noEOFCR:x,unifiedLineIndex:g,splitLineIndex:y}:void 0,A=null!=S&&null!=C&&null!=b?{unifiedLineIndex:b,splitLineIndex:y,lineIndex:S,lineNumber:C,noEOFCR:w}:void 0;if(null==L&&null!=A)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:void 0,additionLine:A};if(null!=L&&null==A)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:L,additionLine:void 0};if(null==L||null==A)throw Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:L,additionLine:A}}({hunkIndex:n,hunk:i,collapsedBefore:c(),collapsedAfter:d,diffStyle:t,index:l,unifiedLineIndex:v,splitLineIndex:k,additionLineIndex:C,deletionLineIndex:S,additionLineNumber:w,deletionLineNumber:x,content:e,isLastContent:r,unifiedCount:a,splitCount:o}),!0))break e}}c(),s.incrementCounts(a,o),v+=a,k+=o,S+=e.deletions,C+=e.additions,x+=e.deletions,w+=e.additions}}if(null!=g){let{collapsedLines:n,fromStart:i,fromEnd:r}=g,o=i+r;if(n$(s,o,t,t=>{let i=t===o-1;return s.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:i?n:0,type:"context-expanded",deletionLine:{lineNumber:x+t,lineIndex:S+t,noEOFCR:!1,unifiedLineIndex:v+t,splitLineIndex:k+t},additionLine:{unifiedLineIndex:v+t,splitLineIndex:k+t,lineIndex:C+t,lineNumber:w+t,noEOFCR:!1}})},void 0,()=>s.shouldBreak()))break}}}function n$(e,t,n,i,r,o){let[a,l]=function(e,t,n){if(!e.isWindowedHighlight||t<=0)return[0,t];let i=[];function r(n){let r=Math.max(0,e.viewportStart-n),o=Math.min(t,e.viewportEnd-n);o>r&&i.push([r,o])}if("split"!==n&&r(e.unifiedCount),"unified"!==n&&r(e.splitCount),0===i.length)return[0,0];let o=i[0][0],a=i[0][1];for(let e=1;e<i.length;e++){let t=i[e];o=Math.min(o,t[0]),a=Math.max(a,t[1])}return[o,a]}(e,t,n);a>0&&(e.incrementCounts(a,a),r?.());let s=a;for(;s<t;){if(o?.()===!0)return!0;if(s>=l){e.incrementCounts(t-s,t-s);break}if(e.isInWindow(0,0)){if(!0===i(s))return!0}else e.incrementCounts(1,1);s++}return!1}var nU=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(e,t,n){if(null==t||null==n)for(let i of e.children??[])i instanceof HTMLElement&&("deletions"in i.dataset?t=i:"additions"in i.dataset&&(n=i));null==n||null==t?this.cleanUp():(this.codeDeletions!==t&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=t,t.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==n&&(this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=n,n.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0)}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};function nz(e){return 0===e.startingLine&&e.totalLines===1/0&&0===e.bufferBefore&&0===e.bufferAfter}let nB=new Map,nG={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","\uD83D\uDD25":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",mts:"typescript",cts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function nj(e){if(nB.has(e))return nB.get(e)??"text";if(null!=nG[e])return nG[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(null!=t){if(nB.has(t[1]))return nB.get(t[1])??"text";if(null!=nG[t[1]])return nG[t[1]]??"text"}let n=e.match(/\.([^.]+)$/)?.[1]??"";return nB.has(n)?nB.get(n)??"text":nG[n]??"text"}function nW(e){let t=e.lang??nj(e.name),n=e.lang??(null!=e.prevName?nj(e.prevName):"text");return"text"===t&&"text"===n}function nV(e){let t=e[0];return null!=t&&t.length>0?t:void 0}function nq(e){return 0===e.startingLine&&e.totalLines>0}let nK=new Map,nX=new Map,nQ=new Map,nJ=new Set;function nY(e){for(let t of Array.isArray(e)?e:[e])if("text"!==t&&"ansi"!==t&&!nJ.has(t))return!1;return!0}function nZ(e,t){for(let n of e=Array.isArray(e)?e:[e]){if(nJ.has(n.name))continue;let e=nK.get(n.name);null==e&&(e=n,nK.set(n.name,e)),nJ.add(e.name),t.loadLanguageSync(e.data)}}function n0(){return"u">typeof WorkerGlobalScope&&"u">typeof self&&self instanceof WorkerGlobalScope}let n1=[{id:"abap",name:"ABAP",import:()=>n.e("5319").then(n.bind(n,6698))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:()=>n.e("4704").then(n.bind(n,9571))},{id:"ada",name:"Ada",import:()=>n.e("5453").then(n.bind(n,172))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:()=>n.e("9671").then(n.bind(n,7162))},{id:"ahk2",name:"AutoHotkey2",import:()=>n.e("857").then(n.bind(n,3488))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("829")]).then(n.bind(n,8124))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("4489"),n.e("829"),n.e("4996")]).then(n.bind(n,495))},{id:"apache",name:"Apache Conf",import:()=>n.e("8423").then(n.bind(n,970))},{id:"apex",name:"Apex",import:()=>n.e("7993").then(n.bind(n,1344))},{id:"apl",name:"APL",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("7822")]).then(n.bind(n,2701))},{id:"applescript",name:"AppleScript",import:()=>n.e("7774").then(n.bind(n,5677))},{id:"ara",name:"Ara",import:()=>n.e("7135").then(n.bind(n,6130))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e("2810").then(n.bind(n,9153))},{id:"asm",name:"Assembly",import:()=>n.e("7714").then(n.bind(n,3081))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("1274"),n.e("8250"),n.e("5458")]).then(n.bind(n,7097))},{id:"awk",name:"AWK",import:()=>n.e("1680").then(n.bind(n,2563))},{id:"ballerina",name:"Ballerina",import:()=>n.e("4301").then(n.bind(n,6748))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:()=>n.e("3886").then(n.bind(n,5645))},{id:"beancount",name:"Beancount",import:()=>n.e("5752").then(n.bind(n,4139))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e("2301").then(n.bind(n,5212))},{id:"bibtex",name:"BibTeX",import:()=>n.e("9623").then(n.bind(n,4634))},{id:"bicep",name:"Bicep",import:()=>n.e("5518").then(n.bind(n,29))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e("9990").then(n.bind(n,1013))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("8601"),n.e("7459")]).then(n.bind(n,3742))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e("8252").then(n.bind(n,4679))},{id:"c",name:"C",import:()=>n.e("9048").then(n.bind(n,507))},{id:"c3",name:"C3",import:()=>n.e("5687").then(n.bind(n,2826))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e("2918").then(n.bind(n,5861))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e("1875"),n.e("8481")]).then(n.bind(n,9144))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:()=>Promise.all([n.e("9048"),n.e("658")]).then(n.bind(n,553))},{id:"clarity",name:"Clarity",import:()=>n.e("117").then(n.bind(n,8532))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e("2645").then(n.bind(n,4868))},{id:"cmake",name:"CMake",import:()=>n.e("7330").then(n.bind(n,5593))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("1498")]).then(n.bind(n,4945))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e("4496").then(n.bind(n,1715))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e("6781").then(n.bind(n,9404))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e("7858"),n.e("4049")]).then(n.bind(n,4728))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e("9557").then(n.bind(n,1748))},{id:"coq",name:"Rocq",import:()=>n.e("9020").then(n.bind(n,8615))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e("9048"),n.e("2082")]).then(n.bind(n,8393))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9048"),n.e("8601"),n.e("1044"),n.e("379")]).then(n.bind(n,8278))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e("6106").then(n.bind(n,5777))},{id:"css",name:"CSS",import:()=>n.e("5466").then(n.bind(n,2593))},{id:"csv",name:"CSV",import:()=>n.e("8861").then(n.bind(n,7948))},{id:"cue",name:"CUE",import:()=>n.e("5542").then(n.bind(n,3781))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e("4994").then(n.bind(n,8585))},{id:"d",name:"D",import:()=>n.e("4445").then(n.bind(n,7916))},{id:"dart",name:"Dart",import:()=>n.e("5596").then(n.bind(n,2055))},{id:"dax",name:"DAX",import:()=>n.e("3712").then(n.bind(n,2355))},{id:"desktop",name:"Desktop",import:()=>n.e("9285").then(n.bind(n,1892))},{id:"diff",name:"Diff",import:()=>n.e("1050").then(n.bind(n,8257))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e("233").then(n.bind(n,5536))},{id:"dotenv",name:"dotEnv",import:()=>n.e("8767").then(n.bind(n,210))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e("8095").then(n.bind(n,5906))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("616")]).then(n.bind(n,7899))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("8346")]).then(n.bind(n,7745))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e("9048"),n.e("5661")]).then(n.bind(n,4764))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e("8295").then(n.bind(n,8826))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("8349"),n.e("5294")]).then(n.bind(n,1005))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e("6380"),n.e("7454")]).then(n.bind(n,5357))},{id:"fennel",name:"Fennel",import:()=>n.e("4613").then(n.bind(n,9908))},{id:"fish",name:"Fish",import:()=>n.e("3123").then(n.bind(n,702))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e("2067").then(n.bind(n,3758))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e("1045"),n.e("4447")]).then(n.bind(n,4370))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e("1045").then(n.bind(n,2420))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e("6380"),n.e("855")]).then(n.bind(n,9386))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>Promise.all([n.e("1297"),n.e("5530")]).then(n.bind(n,1953))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e("1297").then(n.bind(n,7480))},{id:"gdshader",name:"GDShader",import:()=>n.e("3323").then(n.bind(n,9494))},{id:"genie",name:"Genie",import:()=>n.e("1565").then(n.bind(n,4108))},{id:"gherkin",name:"Gherkin",import:()=>n.e("2707").then(n.bind(n,7918))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e("8115").then(n.bind(n,5326))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e("1044"),n.e("7662")]).then(n.bind(n,6477))},{id:"gleam",name:"Gleam",import:()=>n.e("7113").then(n.bind(n,7856))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9120")]).then(n.bind(n,2963))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("6226")]).then(n.bind(n,5545))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e("9048"),n.e("3945")]).then(n.bind(n,9552))},{id:"gn",name:"GN",import:()=>n.e("5280").then(n.bind(n,6099))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e("198").then(n.bind(n,1365))},{id:"go",name:"Go",import:()=>n.e("7655").then(n.bind(n,5498))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e("7858"),n.e("1274"),n.e("8250"),n.e("3008"),n.e("1852")]).then(n.bind(n,1047))},{id:"groovy",name:"Groovy",import:()=>n.e("8375").then(n.bind(n,4922))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("8601"),n.e("2816")]).then(n.bind(n,83))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("9467")]).then(n.bind(n,7942))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("4025")]).then(n.bind(n,1792))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e("5917").then(n.bind(n,2028))},{id:"haxe",name:"Haxe",import:()=>n.e("4145").then(n.bind(n,4232))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e("6122").then(n.bind(n,1489))},{id:"hjson",name:"Hjson",import:()=>n.e("7143").then(n.bind(n,3162))},{id:"hlsl",name:"HLSL",import:()=>n.e("3474").then(n.bind(n,8281))},{id:"html",name:"HTML",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844")]).then(n.bind(n,4735))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("5712")]).then(n.bind(n,9251))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e("7858"),n.e("1274"),n.e("9109"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("5813")]).then(n.bind(n,9972))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e("7858"),n.e("1274"),n.e("9109"),n.e("8250"),n.e("3008"),n.e("1852"),n.e("5708")]).then(n.bind(n,647))},{id:"hxml",name:"HXML",import:()=>Promise.all([n.e("4145"),n.e("3520")]).then(n.bind(n,4595))},{id:"hy",name:"Hy",import:()=>n.e("8286").then(n.bind(n,5517))},{id:"imba",name:"Imba",import:()=>n.e("9770").then(n.bind(n,769))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e("6883").then(n.bind(n,4094))},{id:"java",name:"Java",import:()=>n.e("9109").then(n.bind(n,9524))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e("7858").then(n.bind(n,5065))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1348")]).then(n.bind(n,7407))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e("7858"),n.e("2202")]).then(n.bind(n,4833))},{id:"json",name:"JSON",import:()=>n.e("6563").then(n.bind(n,4190))},{id:"json5",name:"JSON5",import:()=>n.e("3432").then(n.bind(n,4283))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e("4798").then(n.bind(n,2621))},{id:"jsonl",name:"JSON Lines",import:()=>n.e("9927").then(n.bind(n,4682))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e("9940").then(n.bind(n,8799))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e("5970").then(n.bind(n,2345))},{id:"jsx",name:"JSX",import:()=>n.e("3008").then(n.bind(n,8755))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e("7858"),n.e("9048"),n.e("8601"),n.e("2082"),n.e("1875"),n.e("9328"),n.e("5631")]).then(n.bind(n,9795))},{id:"just",name:"Just",aliases:["justfile"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("9060"),n.e("9663")]).then(n.bind(n,6530))},{id:"kdl",name:"KDL",import:()=>n.e("7880").then(n.bind(n,1243))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e("544").then(n.bind(n,9459))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e("5393").then(n.bind(n,8344))},{id:"latex",name:"LaTeX",import:()=>n.e("4525").then(n.bind(n,9628))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e("7921").then(n.bind(n,4888))},{id:"less",name:"Less",import:()=>n.e("1064").then(n.bind(n,5819))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("109")]).then(n.bind(n,6380))},{id:"llvm",name:"LLVM IR",import:()=>n.e("1216").then(n.bind(n,7619))},{id:"log",name:"Log file",import:()=>n.e("8447").then(n.bind(n,5394))},{id:"logo",name:"Logo",import:()=>n.e("7950").then(n.bind(n,3341))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e("9048"),n.e("4179")]).then(n.bind(n,8974))},{id:"luau",name:"Luau",import:()=>n.e("2536").then(n.bind(n,571))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e("8943").then(n.bind(n,5202))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e("6380").then(n.bind(n,8311))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e("5466"),n.e("1274"),n.e("4489"),n.e("1064"),n.e("6427")]).then(n.bind(n,2982))},{id:"matlab",name:"MATLAB",import:()=>n.e("2748").then(n.bind(n,9991))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("6380"),n.e("6231")]).then(n.bind(n,2138))},{id:"mdx",name:"MDX",import:()=>n.e("4058").then(n.bind(n,5393))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e("1446").then(n.bind(n,8757))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e("8799").then(n.bind(n,2146))},{id:"mojo",name:"Mojo",import:()=>n.e("8178").then(n.bind(n,6025))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e("4261").then(n.bind(n,7876))},{id:"move",name:"Move",import:()=>n.e("7404").then(n.bind(n,6007))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e("485").then(n.bind(n,5540))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e("96").then(n.bind(n,5043))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>n.e("655").then(n.bind(n,2130))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e("9048"),n.e("3121")]).then(n.bind(n,3848))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("9048"),n.e("6380"),n.e("2881"),n.e("2227")]).then(n.bind(n,88))},{id:"nix",name:"Nix",import:()=>n.e("3115").then(n.bind(n,3222))},{id:"nsis",name:"NSIS",import:()=>n.e("1558").then(n.bind(n,2373))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e("1284").then(n.bind(n,9935))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e("7234").then(n.bind(n,7401))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e("8698").then(n.bind(n,9793))},{id:"ocaml",name:"OCaml",import:()=>n.e("1473").then(n.bind(n,4984))},{id:"odin",name:"Odin",import:()=>n.e("6829").then(n.bind(n,572))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e("5462").then(n.bind(n,4997))},{id:"org",name:"Org Markup",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("6380"),n.e("4489"),n.e("1064"),n.e("193"),n.e("6106"),n.e("7655"),n.e("9060"),n.e("7234"),n.e("4525"),n.e("7454"),n.e("3707"),n.e("4049"),n.e("8375"),n.e("1473"),n.e("2881"),n.e("2247")]).then(n.bind(n,8666))},{id:"pascal",name:"Pascal",import:()=>n.e("4705").then(n.bind(n,2360))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("8601"),n.e("9060"),n.e("6468")]).then(n.bind(n,4959))},{id:"php",name:"PHP",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("8601"),n.e("193"),n.e("4087")]).then(n.bind(n,2408))},{id:"pkl",name:"Pkl",import:()=>n.e("2426").then(n.bind(n,641))},{id:"plsql",name:"PL/SQL",import:()=>n.e("6157").then(n.bind(n,8684))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e("6739").then(n.bind(n,3571))},{id:"polar",name:"Polar",import:()=>n.e("2605").then(n.bind(n,3484))},{id:"postcss",name:"PostCSS",import:()=>n.e("7992").then(n.bind(n,363))},{id:"powerquery",name:"PowerQuery",import:()=>n.e("7698").then(n.bind(n,137))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:()=>n.e("452").then(n.bind(n,5503))},{id:"prisma",name:"Prisma",import:()=>n.e("4609").then(n.bind(n,840))},{id:"prolog",name:"Prolog",import:()=>n.e("702").then(n.bind(n,9341))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e("6959").then(n.bind(n,2002))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9597")]).then(n.bind(n,1196))},{id:"puppet",name:"Puppet",import:()=>n.e("5703").then(n.bind(n,7562))},{id:"purescript",name:"PureScript",import:()=>n.e("5068").then(n.bind(n,5047))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e("1875").then(n.bind(n,2510))},{id:"qml",name:"QML",import:()=>Promise.all([n.e("7858"),n.e("703")]).then(n.bind(n,226))},{id:"qmldir",name:"QML Directory",import:()=>n.e("4796").then(n.bind(n,5207))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e("7372").then(n.bind(n,8903))},{id:"r",name:"R",import:()=>n.e("8012").then(n.bind(n,3554))},{id:"racket",name:"Racket",import:()=>n.e("575").then(n.bind(n,9618))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e("940").then(n.bind(n,8759))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("6106"),n.e("6309")]).then(n.bind(n,3908))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:()=>n.e("7620").then(n.bind(n,335))},{id:"reg",name:"Windows Registry Script",import:()=>n.e("8439").then(n.bind(n,4330))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e("6956").then(n.bind(n,9255))},{id:"rel",name:"Rel",import:()=>n.e("3370").then(n.bind(n,3409))},{id:"riscv",name:"RISC-V",import:()=>n.e("8014").then(n.bind(n,45))},{id:"ron",name:"RON",import:()=>n.e("6378").then(n.bind(n,2849))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e("6308").then(n.bind(n,1967))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("6084")]).then(n.bind(n,3935))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("8349")]).then(n.bind(n,8972))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e("231").then(n.bind(n,5466))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e("8601"),n.e("9172")]).then(n.bind(n,1551))},{id:"sass",name:"Sass",import:()=>n.e("7403").then(n.bind(n,1318))},{id:"scala",name:"Scala",import:()=>n.e("3707").then(n.bind(n,8038))},{id:"scheme",name:"Scheme",import:()=>n.e("4498").then(n.bind(n,9449))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e("5466"),n.e("4489")]).then(n.bind(n,7136))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e("3384").then(n.bind(n,8731))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e("4885").then(n.bind(n,9764))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e("1044").then(n.bind(n,1215))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e("1044"),n.e("1495")]).then(n.bind(n,5066))},{id:"smalltalk",name:"GNU Smalltalk",import:()=>n.e("312").then(n.bind(n,155))},{id:"smithy",name:"Smithy",import:()=>n.e("7827").then(n.bind(n,1006))},{id:"solidity",name:"Solidity",import:()=>n.e("2872").then(n.bind(n,1147))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("2948")]).then(n.bind(n,879))},{id:"sparql",name:"SPARQL",import:()=>n.e("6024").then(n.bind(n,9259))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e("8306").then(n.bind(n,9145))},{id:"sql",name:"SQL",import:()=>n.e("8601").then(n.bind(n,1120))},{id:"ssh-config",name:"SSH Config",import:()=>n.e("7342").then(n.bind(n,6077))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e("8601"),n.e("7104")]).then(n.bind(n,8227))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e("3339").then(n.bind(n,886))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e("7858"),n.e("9842")]).then(n.bind(n,633))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("1274"),n.e("4458")]).then(n.bind(n,657))},{id:"swift",name:"Swift",import:()=>n.e("438").then(n.bind(n,5605))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e("7387").then(n.bind(n,4214))},{id:"systemd",name:"Systemd Units",import:()=>n.e("6254").then(n.bind(n,5389))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e("234").then(n.bind(n,2321))},{id:"tasl",name:"Tasl",import:()=>n.e("3793").then(n.bind(n,7096))},{id:"tcl",name:"Tcl",import:()=>n.e("5281").then(n.bind(n,8365))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("7655"),n.e("459")]).then(n.bind(n,582))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e("8725").then(n.bind(n,1124))},{id:"tex",name:"TeX",import:()=>n.e("3724").then(n.bind(n,2423))},{id:"toml",name:"TOML",import:()=>n.e("9297").then(n.bind(n,7176))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("331")]).then(n.bind(n,2918))},{id:"tsv",name:"TSV",import:()=>n.e("9556").then(n.bind(n,1327))},{id:"tsx",name:"TSX",import:()=>n.e("8250").then(n.bind(n,4609))},{id:"turtle",name:"Turtle",import:()=>n.e("6551").then(n.bind(n,8650))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("4489"),n.e("193"),n.e("1972")]).then(n.bind(n,1775))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e("1274").then(n.bind(n,2449))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e("8134").then(n.bind(n,8565))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("6380"),n.e("4489"),n.e("1064"),n.e("193"),n.e("6106"),n.e("7655"),n.e("9060"),n.e("7234"),n.e("4525"),n.e("7454"),n.e("3707"),n.e("4049"),n.e("8375"),n.e("438"),n.e("9328"),n.e("7387"),n.e("855"),n.e("1972"),n.e("452"),n.e("4795")]).then(n.bind(n,6614))},{id:"v",name:"V",import:()=>n.e("8531").then(n.bind(n,7502))},{id:"vala",name:"Vala",import:()=>n.e("6855").then(n.bind(n,9242))},{id:"vb",name:"Visual Basic",import:()=>n.e("877").then(n.bind(n,4908))},{id:"verilog",name:"Verilog",import:()=>n.e("7091").then(n.bind(n,5694))},{id:"vhdl",name:"VHDL",import:()=>n.e("9403").then(n.bind(n,9398))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e("3809").then(n.bind(n,3128))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("1337")]).then(n.bind(n,256))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e("7858"),n.e("4655")]).then(n.bind(n,2290))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("4489"),n.e("1064"),n.e("3339"),n.e("670")]).then(n.bind(n,1917))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e("4785").then(n.bind(n,4776))},{id:"wasm",name:"WebAssembly",import:()=>n.e("1981").then(n.bind(n,4444))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e("5415").then(n.bind(n,2541))},{id:"wgsl",name:"WGSL",import:()=>n.e("7228").then(n.bind(n,6551))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e("6766").then(n.bind(n,1165))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e("2725").then(n.bind(n,1236))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e("5865").then(n.bind(n,2784))},{id:"xml",name:"XML",import:()=>Promise.all([n.e("9109"),n.e("1706")]).then(n.bind(n,9135))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e("9109"),n.e("2378")]).then(n.bind(n,1425))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e("826").then(n.bind(n,7729))},{id:"zenscript",name:"ZenScript",import:()=>n.e("8387").then(n.bind(n,7886))},{id:"zig",name:"Zig",import:()=>n.e("9619").then(n.bind(n,2174))}],n8=Object.fromEntries(n1.map(e=>[e.id,e.import])),n2=Object.fromEntries(n1.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),n5={...n8,...n2};async function n6(e){if(n0())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=nX.get(e);if(null!=t)return t;try{let t=nQ.get(e);if(null==t&&Object.prototype.hasOwnProperty.call(n5,e)&&(t=n5[e]),null==t)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return nK.has(e)||nK.set(e,n),n});return nX.set(e,n),await n}finally{nX.delete(e)}}function n4(e){return null!==e&&"object"==typeof e&&"default"in e?e.default:e}var n7=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},n3=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},n9=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};let ie=function(){let e=new Map,t=new Map,n=new Map,i=0;function r(r){let o=t.get(r);if(void 0!==o)return Promise.resolve(o);let a=n.get(r);if(void 0!==a)return a;let l=e.get(r);if(void 0===l)return Promise.reject(new n3(r));let s=i,d=l().then(e=>{let o=n4(e);return s===i&&t.set(r,o),n.get(r)===d&&n.delete(r),o}).catch(e=>{throw n.get(r)===d&&n.delete(r),e});return n.set(r,d),d}function o(e,n){t.set(e,n)}return{clearResolvedThemes:function(){i++,t.clear(),n.clear()},getResolvedOrResolveTheme:function(e){let n=t.get(e);return void 0!==n?n:r(e)},getResolvedTheme:function(e){return t.get(e)},getResolvedThemes:function(e){let n=[];for(let i of e){let e=t.get(i);if(void 0===e)throw new n9(i);n.push(e)}return n},hasRegisteredTheme:function(t){return e.has(t)},hasResolvedTheme:function(e){return t.has(e)},hasResolvedThemes:function(e){for(let n of e)if(!t.has(n))return!1;return!0},registerTheme:function(t,n){if(e.has(t))throw new n7(t);e.set(t,n)},registerThemeIfAbsent:function(t,n){return!e.has(t)&&(e.set(t,n),!0)},resolveTheme:r,resolveThemes:function(e){return Promise.all(e.map(e=>r(e)))},seedResolvedTheme:o,seedResolvedThemes:function(e){for(let[t,n]of e)o(t,n)}}}(),it=new Set;function ii(e,t){for(let n of e=Array.isArray(e)?e:[e]){let e;if("string"==typeof n){if(null==(e=ie.getResolvedTheme(n)))throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,null==ie.getResolvedTheme(n)&&ie.seedResolvedTheme(n,e);it.has(n)||(it.add(n),t.loadThemeSync(e))}}function ir(e){var t,n,i;let r=[],o=new Set;for(let a of io(n=t=e.themes)||"string"==typeof(i=n).name&&"function"==typeof i.load?[t]:t)for(let e of io(a)?a.getThemes():[a]){if(o.has(e.name))throw Error(`Theme collection already contains theme "${e.name}"`);o.add(e.name),r.push(e)}let a=Object.freeze([...r]),l=Object.freeze(a.filter(e=>"light"===e.colorScheme)),s=Object.freeze(a.filter(e=>"dark"===e.colorScheme)),d=new Map(a.map(e=>[e.name,e])),u=Object.freeze(a.map(e=>e.name)),h=Object.freeze(l.map(e=>e.name)),c=Object.freeze(s.map(e=>e.name));function f(e){if(null==e)return a;let{colorScheme:t,collection:n}=e;return null==n?"light"===t?l:"dark"===t?s:a:a.filter(e=>e.collection===n&&(null==t||e.colorScheme===t))}return{getTheme:e=>d.get(e),getThemes:e=>f(e),getThemeNames:e=>e?.collection==null?e?.colorScheme==="light"?h:e?.colorScheme==="dark"?c:u:f(e).map(e=>e.name),hasTheme:e=>d.has(e),orderBy:e=>ir({themes:a.map((e,t)=>({descriptor:e,index:t})).sort((t,n)=>{let i=e(t.descriptor,n.descriptor);return 0!==i?i:t.index-n.index}).map(e=>e.descriptor)}),pick(e){let t=[],n=new Set;for(let i of e){if(n.has(i))throw Error(`Theme collection pick already includes theme "${i}"`);n.add(i);let e=d.get(i);if(null==e)throw Error(`Theme collection does not contain theme "${i}"`);t.push(e)}return ir({themes:t})},registerInto(e){for(let t of a)e.registerThemeIfAbsent(t.name,t.load)}}}function io(e){return"function"==typeof e.getThemes}var ia=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function il(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var is=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,id=class{static hasCaptures(e){return null!==e&&(is.lastIndex=0,is.test(e))}static replaceCaptures(e,t,n){return e.replace(is,(e,i,r,o)=>{let a=n[parseInt(i||r,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(o){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function iu(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let i=0;i<n;i++){var r,o;let n=(r=e[i],r<(o=t[i])?-1:+(r>o));if(0!==n)return n}return 0}return n-i}function ih(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function ic(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ip=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},im=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;r=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let a=-1;if("string"==typeof o.settings.fontStyle){a=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let l=null;"string"==typeof o.settings.foreground&&ih(o.settings.foreground)&&(l=o.settings.foreground);let s=null;"string"==typeof o.settings.background&&ih(o.settings.background)&&(s=o.settings.background);for(let t=0,o=r.length;t<o;t++){let o=r[t].trim().split(" "),d=o[o.length-1],u=null;o.length>1&&(u=o.slice(0,o.length-1)).reverse(),n[i++]=new iy(d,u,e,a,l,s)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,i;let r=(n=e.scope,n<(i=t.scope)?-1:+(n>i));return 0!==r||0!==(r=iu(e.parentScopes,t.parentScopes))?r:e.index-t.index});let n=0,i="#000000",r="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(r=t.background)}let o=new ik(t),a=new ib(n,o.getId(i),o.getId(r)),l=new ix(new iC(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];l.insert(0,n.scope,n.parentScopes,n.fontStyle,o.getId(n.foreground),o.getId(n.background))}return new im(o,a,l)}(e,t)}_cachedMatchRoot=new ip(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let r=0;r<t.length;r++){var n,i;let o=t[r],a=!1;if(">"===o){if(r===t.length-1)return!1;o=t[++r],a=!0}for(;e&&(n=e.scopeName,!((i=o)===n||n.startsWith(i)&&"."===n[i.length]));){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new ib(n.fontStyle,n.foreground,n.background):null}},ig=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let i of n)t=new e(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new e(n,t[i]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},ib=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},iy=class{constructor(e,t,n,i,r,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o}},iv=((f=iv||{})[f.NotSet=-1]="NotSet",f[f.None=0]="None",f[f.Italic=1]="Italic",f[f.Bold=2]="Bold",f[f.Underline=4]="Underline",f[f.Strikethrough=8]="Strikethrough",f),ik=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},iS=Object.freeze([]),iC=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,i,r){this.scopeDepth=e,this.parentScopes=t||iS,this.fontStyle=n,this.foreground=i,this.background=r}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==i&&(this.background=i)}},ix=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[i]&&i++,!(n>=e.parentScopes.length)&&!(i>=t.parentScopes.length);){let r=t.parentScopes[i].length-e.parentScopes[n].length;if(0!==r)return r;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,i=t.indexOf(".");if(-1===i?(e=t,n=""):(e=t.substring(0,i),n=t.substring(i+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,i,r,o,a){let l,s,d;if(""===n)return void this._doInsertHere(t,i,r,o,a);let u=n.indexOf(".");-1===u?(l=n,s=""):(l=n.substring(0,u),s=n.substring(u+1)),this._children.hasOwnProperty(l)?d=this._children[l]:(d=new e(this._mainRule.clone(),iC.cloneArr(this._rulesWithParentScopes)),this._children[l]=d),d.insert(t+1,s,i,r,o,a)}_doInsertHere(e,t,n,i,r){if(null===t)return void this._mainRule.acceptOverwrite(e,n,i,r);for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let a=this._rulesWithParentScopes[o];if(0===iu(a.parentScopes,t))return void a.acceptOverwrite(e,n,i,r)}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new iC(e,t,n,i,r))}},iw=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),i=e.getTokenType(t),r=e.getFontStyle(t);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,i,r,o,a,l){let s=e.getLanguageId(t),d=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),c=e.getForeground(t),f=e.getBackground(t);return 0!==n&&(s=n),8!==i&&(d=i),null!==r&&(u=+!!r),-1!==o&&(h=o),0!==a&&(c=a),0!==l&&(f=l),(s|d<<8|u<<10|h<<11|c<<15|f<<24)>>>0}};function iL(e,t){var n;let i,r,o=[],a=(n=e,r=(i=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!r)return null;let e=r[0];return r=i.exec(n),e}}),l=a.next();for(;null!==l;){let e=0;if(2===l.length&&":"===l.charAt(1)){switch(l.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${l} in scope selector`)}l=a.next()}let t=d();if(o.push({matcher:t,priority:e}),","!==l)break;l=a.next()}return o;function s(){if("-"===l){l=a.next();let e=s();return t=>!!e&&!e(t)}if("("===l){l=a.next();let e=function(){let e=[],t=d();for(;t&&(e.push(t),"|"===l||","===l);){do l=a.next();while("|"===l||","===l);t=d()}return t=>e.some(e=>e(t))}();return")"===l&&(l=a.next()),e}if(iA(l)){let e=[];do e.push(l),l=a.next();while(iA(l));return n=>t(e,n)}return null}function d(){let e=[],t=s();for(;t;)e.push(t),t=s();return t=>e.every(e=>e(t))}}function iA(e){return!!e&&!!e.match(/[\w\.:]+/)}function iE(e){"function"==typeof e.dispose&&e.dispose()}var iP=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},iR=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},iT=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},i_=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new iP(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new iT;for(let n of e)!function(e,t,n,i){let r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let o=n.lookup(t);e instanceof iP?iM({baseGrammar:o,selfGrammar:r},i):iN(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);let a=n.injections(e.scopeName);if(a)for(let e of a)i.add(new iP(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof iP){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function iN(e,t,n){t.repository&&t.repository[e]&&iI([t.repository[e]],t,n)}function iM(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&iI(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&iI(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function iI(e,t,n){for(let i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);let e=i.repository?il({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&iI(i.patterns,{...t,repository:e},n);let r=i.include;if(!r)continue;let o=iU(r);switch(o.kind){case 0:iM({...t,selfGrammar:t.baseGrammar},n);break;case 1:iM(t,n);break;case 2:iN(o.ruleName,{...t,repository:e},n);break;case 3:case 4:let a=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let i={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===o.kind?iN(o.ruleName,i,n):iM(i,n)}else 4===o.kind?n.add(new iR(o.scopeName,o.ruleName)):n.add(new iP(o.scopeName))}}}var iD=class{kind=0},iH=class{kind=1},iO=class{constructor(e){this.ruleName=e}kind=2},iF=class{constructor(e){this.scopeName=e}kind=3},i$=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function iU(e){if("$base"===e)return new iD;if("$self"===e)return new iH;let t=e.indexOf("#");return -1===t?new iF(e):0===t?new iO(e.substring(1)):new i$(e.substring(0,t),e.substring(t+1))}var iz=/\\(\d+)/,iB=/\\(\d+)/g;Symbol("RuleId");var iG=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,i){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=id.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=id.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?id.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?id.replaceCaptures(this._contentName,e,t):this._contentName}},ij=class extends iG{retokenizeCapturedWithRuleId;constructor(e,t,n,i,r){super(e,t,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,i){throw Error("Not supported!")}},iW=class extends iG{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,null),this._match=new iQ(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new iJ,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},iV=class extends iG{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new iJ,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},iq=class extends iG{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r,o,a,l,s,d){super(e,t,n,i),this._begin=new iQ(r,this.id),this.beginCaptures=o,this._end=new iQ(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new iJ,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},iK=class extends iG{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,i,r,o,a,l,s){super(e,t,n,i),this._begin=new iQ(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new iQ(a,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new iJ,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new iJ,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},iX=class e{static createCaptureRule(e,t,n,i,r){return e.registerRule(e=>new ij(t,e,n,i,r))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new iW(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,i));if(void 0===t.begin){t.repository&&(i=il({},i,t.repository));let r=t.patterns;return void 0===r&&t.include&&(r=[{include:t.include}]),new iV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(r,n,i))}return t.while?new iK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,i),e._compilePatterns(t.patterns,n,i)):new iq(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,e._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let r=[];if(t){let o=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>o&&(o=t)}for(let e=0;e<=o;e++)r[e]=null;for(let o in t){if("$vscodeTextmateLocation"===o)continue;let a=parseInt(o,10),l=0;t[o].patterns&&(l=e.getCompiledRuleId(t[o],n,i)),r[a]=e.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,l)}}return r}static _compilePatterns(t,n,i){let r=[];if(t)for(let o=0,a=t.length;o<a;o++){let a=t[o],l=-1;if(a.include){let t=iU(a.include);switch(t.kind){case 0:case 1:l=e.getCompiledRuleId(i[a.include],n,i);break;case 2:let r=i[t.ruleName];r&&(l=e.getCompiledRuleId(r,n,i));break;case 3:case 4:let o=t.scopeName,s=4===t.kind?t.ruleName:null,d=n.getExternalGrammar(o,i);if(d)if(s){let t=d.repository[s];t&&(l=e.getCompiledRuleId(t,n,d.repository))}else l=e.getCompiledRuleId(d.repository.$self,n,d.repository)}}else l=e.getCompiledRuleId(a,n,i);if(-1!==l){let e=n.getRule(l),t=!1;if((e instanceof iV||e instanceof iq||e instanceof iK)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;r.push(l)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},iQ=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,i=[],r=!1;for(let o=0;o<t;o++)if("\\"===e.charAt(o)&&o+1<t){const t=e.charAt(o+1);"z"===t?(i.push(e.substring(n,o)),i.push("$(?!\\n)(?<!\\n)"),n=o+2):("A"===t||"G"===t)&&(r=!0),o++}this.hasAnchor=r,0===n?this.source=e:(i.push(e.substring(n,t)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=iz.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return iB.lastIndex=0,this.source.replace(iB,(e,t)=>ic(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,i;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=[],o=[],a=[],l=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),r[e]=n,o[e]=n,a[e]=n,l[e]=n,"\\"===n&&e+1<t&&("A"===(i=this.source.charAt(e+1))?(r[e+1]="￿",o[e+1]="￿",a[e+1]="A",l[e+1]="A"):"G"===i?(r[e+1]="￿",o[e+1]="G",a[e+1]="￿",l[e+1]="G"):(r[e+1]=i,o[e+1]=i,a[e+1]=i,l[e+1]=i),e++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:a.join(""),A1_G1:l.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},iJ=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new iY(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new iY(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},iY=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},iZ=class{constructor(e,t){this.languageId=e,this.tokenType=t}},i0=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new iZ(e,8),this._embeddedLanguagesMatcher=new i1(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new iZ(0,0);_getBasicScopeAttributes=new ip(e=>new iZ(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},i1=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>ic(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};"u">typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;var i8=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function i2(e,t,n,i,r,o,a,l){let s=t.content.length,d=!1,u=-1;if(a){let a=function(e,t,n,i,r,o){let a=r.beginRuleCapturedEOL?0:-1,l=[];for(let t=r;t;t=t.pop()){let n=t.getRule(e);n instanceof iK&&l.push({rule:n,stack:t})}for(let f=l.pop();f;f=l.pop()){var s,d,u,h,c;let{ruleScanner:l,findOptions:p}=(s=f.rule,d=e,u=f.stack.endRule,h=n,c=i===a,{ruleScanner:s.compileWhileAG(d,u,h,c),findOptions:0}),m=l.findNextMatchSync(t,i,p);if(m){if(-2!==m.ruleId){r=f.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(f.stack,m.captureIndices[0].start),i6(e,t,n,f.stack,o,f.rule.whileCaptures,m.captureIndices),o.produce(f.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>i&&(i=m.captureIndices[0].end,n=!1))}else{r=f.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:a,isFirstLine:n}}(e,t,n,i,r,o);r=a.stack,i=a.linePos,n=a.isFirstLine,u=a.anchorPosition}let h=Date.now();for(;!d;){if(0!==l&&Date.now()-h>l)return new i8(r,!0);!function(){let a=function(e,t,n,i,r,o){let a=function(e,t,n,i,r,o){let{ruleScanner:a,findOptions:l}=i5(r.getRule(e),e,r.endRule,n,i===o),s=a.findNextMatchSync(t,i,l);return s?{captureIndices:s.captureIndices,matchedRuleId:s.ruleId}:null}(e,t,n,i,r,o),l=e.getInjections();if(0===l.length)return a;let s=function(e,t,n,i,r,o,a){let l,s=Number.MAX_VALUE,d=null,u=0,h=o.contentNameScopesList.getScopeNames();for(let o=0,c=e.length;o<c;o++){let c=e[o];if(!c.matcher(h))continue;let{ruleScanner:f,findOptions:p}=i5(t.getRule(c.ruleId),t,null,i,r===a),m=f.findNextMatchSync(n,r,p);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=s)&&(s=g,d=m.captureIndices,l=m.ruleId,u=c.priority,s===r))break}return d?{priorityMatch:-1===u,captureIndices:d,matchedRuleId:l}:null}(l,e,t,n,i,r,o);if(!s)return a;if(!a)return s;let d=a.captureIndices[0].start,u=s.captureIndices[0].start;return u<d||s.priorityMatch&&u===d?s:a}(e,t,n,i,r,u);if(!a){o.produce(r,s),d=!0;return}let l=a.captureIndices,h=a.matchedRuleId,c=!!l&&l.length>0&&l[0].end>i;if(-1===h){let a=r.getRule(e);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),i6(e,t,n,r,o,a.endCaptures,l),o.produce(r,l[0].end);let h=r;if(r=r.parent,u=h.getAnchorPos(),!c&&h.getEnterPos()===i){r=h,o.produce(r,s),d=!0;return}}else{let a=e.getRule(h);o.produce(r,l[0].start);let f=r,p=a.getName(t.content,l),m=r.contentNameScopesList.pushAttributed(p,e);if(r=r.push(h,i,u,l[0].end===s,null,m,m),a instanceof iq){i6(e,t,n,r,o,a.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;let i=a.getContentName(t.content,l),h=m.pushAttributed(i,e);if(r=r.withContentNameScopesList(h),a.endHasBackReferences&&(r=r.withEndRule(a.getEndWithResolvedBackReferences(t.content,l))),!c&&f.hasSameRuleAs(r)){r=r.pop(),o.produce(r,s),d=!0;return}}else if(a instanceof iK){i6(e,t,n,r,o,a.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;let i=a.getContentName(t.content,l),h=m.pushAttributed(i,e);if(r=r.withContentNameScopesList(h),a.whileHasBackReferences&&(r=r.withEndRule(a.getWhileWithResolvedBackReferences(t.content,l))),!c&&f.hasSameRuleAs(r)){r=r.pop(),o.produce(r,s),d=!0;return}}else if(i6(e,t,n,r,o,a.captures,l),o.produce(r,l[0].end),r=r.pop(),!c){r=r.safePop(),o.produce(r,s),d=!0;return}}l[0].end>i&&(i=l[0].end,n=!1)}()}return new i8(r,!1)}function i5(e,t,n,i,r){return{ruleScanner:e.compileAG(t,n,i,r),findOptions:0}}function i6(e,t,n,i,r,o,a){if(0===o.length)return;let l=t.content,s=Math.min(o.length,a.length),d=[],u=a[0].end;for(let t=0;t<s;t++){let s=o[t];if(null===s)continue;let h=a[t];if(0===h.length)continue;if(h.start>u)break;for(;d.length>0&&d[d.length-1].endPos<=h.start;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?r.produceFromScopes(d[d.length-1].scopes,h.start):r.produce(i,h.start),s.retokenizeCapturedWithRuleId){let t=s.getName(l,a),o=i.contentNameScopesList.pushAttributed(t,e),d=s.getContentName(l,a),u=o.pushAttributed(d,e),c=i.push(s.retokenizeCapturedWithRuleId,h.start,-1,!1,null,o,u),f=e.createOnigString(l.substring(0,h.end));i2(e,f,n&&0===h.start,h.start,c,r,!1,0),iE(f);continue}let c=s.getName(l,a);if(null!==c){let t=(d.length>0?d[d.length-1].scopes:i.contentNameScopesList).pushAttributed(c,e);d.push(new i4(t,h.end))}}for(;d.length>0;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var i4=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function i7(e,t,n,i,r){let o=iL(t,i3),a=iX.getCompiledRuleId(n,i,r.repository);for(let n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:a,grammar:r,priority:n.priority})}function i3(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let i=n;i<t.length;i++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[i],e))return n=i+1,!0;return!1})}var i9=class{constructor(e,t,n,i,r,o,a,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new i0(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=re(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const e of Object.keys(r))for(const t of iL(e,i3))this._tokenTypeMatchers.push({matcher:t.matcher,type:r[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let i=n.injections;if(i)for(let t in i)i7(e,t,i[t],this,n);let r=this._grammarRepository.injections(t);r&&r.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&i7(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=re(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){let i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){let r;if(-1===this._rootId&&(this._rootId=iX.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==rn.NULL)r=!1,t.reset();else{let e;r=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),i=this.themeProvider.getDefaults(),o=iw.set(0,n.languageId,n.tokenType,null,i.fontStyle,i.foregroundId,i.backgroundId),a=this.getRule(this._rootId).getName(null,null);e=a?rt.createRootAndLookUpScopeName(a,o,this):rt.createRoot("unknown",o),t=new rn(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let o=this.createOnigString(e),a=o.content.length,l=new rr(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=i2(this,o,r,0,t,l,!0,i);return iE(o),{lineLength:a,lineTokens:l,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function re(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=e(t[i]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let i in t)n[i]=e(t[i]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var rt=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let i=t,r=t?.scopePath??null;for(let t of n)i=new e(i,r=ig.push(r,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,n){return new e(null,new ig(null,t),n)}static createRootAndLookUpScopeName(t,n,i){let r=i.getMetadataForScope(t),o=new ig(null,t),a=i.themeProvider.themeMatch(o),l=e.mergeAttributes(n,r,a);return new e(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),iw.set(e,t.languageId,t.tokenType,null,i,r,o)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let i=t.split(/ /g),r=this;for(let t of i)r=e._pushAttributed(r,t,n);return r}static _pushAttributed(t,n,i){let r=i.getMetadataForScope(n),o=t.scopePath.push(n),a=i.themeProvider.themeMatch(o),l=e.mergeAttributes(t.tokenAttributes,r,a);return new e(t,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},rn=class e{constructor(e,t,n,i,r,o,a,l){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&rt.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,r,o,a,l){return new e(this,t,n,i,r,o,a,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let i=rt.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,rt.fromExtension(i,n.contentNameScopesList))}},ri=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):iL(e,i3).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>iL(e,i3).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},rr=class{constructor(e,t,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=iw.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(t))}if(i&&(n=iw.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},ro=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,new i9(e,o,t,n,i,r,this,this._onigLib))}return this._grammars.get(e)}},ra=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ro(im.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(im.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ri(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,i,r){let o=new i_(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(e=>this._loadSingleGrammar(e.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,n,i,r)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,t=0,n=null,i=null,r=null){return this._syncRegistry.grammarForScopeName(e,t,n,i,r)}},rl=rn.NULL;function rs(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},i="string"==typeof e?e:e.name;for(let[e,r]of Object.entries(t?.colorReplacements||{}))"string"==typeof r?n[e]=r:e===i&&Object.assign(n,r);return n}function rd(e,t){return e&&t?.[e?.toLowerCase()]||e}async function ru(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function rh(e){return!e||["plaintext","txt","text","plain"].includes(e)}function rc(e){return"ansi"===e||rh(e)}function rf(e){return"none"===e}let rp=/(\r?\n)/g;function rm(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(rp),i=0,r=[];for(let e=0;e<n.length;e+=2){let o=t?n[e]+(n[e+1]||""):n[e];r.push([o,i]),i+=n[e].length,i+=n[e+1]?.length||0}return r}let rg="__shiki_resolved";function rb(e){if(e?.[rg])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:i}=t;if(!n||!i){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(i=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0,o=new Map;function a(e){if(o.has(e))return o.get(e);r+=1;let n=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?a(e):(o.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),i=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!i)return e;let r={...e,settings:{...e.settings}};if(n){let n=a(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,r.settings.foreground=n}if(i){let n=a(e.settings.background);t.colorReplacements[n]=e.settings.background,r.settings.background=n}return r}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=a(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,rg,{enumerable:!1,writable:!1,value:!0}),t}async function ry(e){return[...new Set((await Promise.all(e.filter(e=>!rc(e)).map(async e=>await ru(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function rv(e){return(await Promise.all(e.map(async e=>rf(e)?null:rb(await ru(e))))).filter(e=>!!e)}function rk(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ia(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var rS=class extends ra{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,i={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=rb(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=im.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=rk(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new ia(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},rC=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let i=t.slice(0,e).join(".");n=[...n,...this._injections.get(i)||[]]}return n}};let rx=0;async function rw(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,i]=await Promise.all([rv(e.themes||[]),ry(e.langs||[]),e.engine]);return function(e){let t;rx+=1,!1!==e.warnings&&rx>=10&&rx%10==0&&console.warn(`[Shiki] ${rx} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new ia("`engine` option is required for synchronous mode");let i=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(rb),o=new rS(new rC(e.engine,i),r,i,e.langAlias);function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};d();let t=o.getTheme(e);if(!t)throw new ia(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(...e){d(),o.loadLanguages(e.flat(1))}function s(...e){for(let t of(d(),e.flat(1)))o.loadTheme(t)}function d(){if(n)throw new ia("Shiki instance has been disposed")}function u(){n||(n=!0,o.dispose(),rx-=1)}return{setTheme:function(e){d();let n=a(e);return t!==e&&(o.setTheme(n),t=e),{theme:n,colorMap:o.getColorMap()}},getTheme:a,getLanguage:function(e){d();let t=o.getGrammar("string"==typeof e?e:e.name);if(!t)throw new ia(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return d(),o.getLoadedThemes()},getLoadedLanguages:function(){return d(),o.getLoadedLanguages()},resolveLangAlias:function(t){return rk(t,e.langAlias)},loadLanguage:async function(...e){return l(await ry(e))},loadLanguageSync:l,loadTheme:async function(...e){return d(),s(await rv(e))},loadThemeSync:s,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:n,engine:i})}let rL=new WeakMap;function rA(e,t){rL.set(e,t)}function rE(e){return rL.get(e)}var rP=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries((Array.isArray(n)?n:[n]).map(e=>[e,rl])),t)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,i]=e;this.lang=n,this._stacks={[i]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,i;return t=this._stacks[e],n=[],i=new Set,!function e(t){if(i.has(t))return;i.add(t);let r=t?.nameScopesList?.scopeName;r&&n.push(r),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};let rR=/,/,rT=/ /;function r_(e,t,n={}){var i,r;let o,a,{theme:l=e.getLoadedThemes()[0]}=n;if(rh(e.resolveLangAlias(n.lang||"text"))||rf(l))return rm(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:s,colorMap:d}=e.setTheme(l),u=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==u.name)throw new ia(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(s.name))throw new ia(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return a=new rP((o=rN(t,i=u,r=s,d,n)).stateStack,i.name,r.name),rA(o.tokens,a),o.tokens}function rN(e,t,n,i,r){let o=rs(n,r),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:l=500,includeExplanation:s=!1}=r,d=rm(e),u=r.grammarState?function(e,t){if(!(e instanceof rP))throw new ia("Invalid grammar state");return e.getInternalStack(t)}(r.grammarState,n.name)??rl:null!=r.grammarContextCode?rN(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:rl,h=[],c=[];for(let e=0,r=d.length;e<r;e++){let r,f,[p,m]=d[e];if(""===p){h=[],c.push([]);continue}if(a>0&&p.length>=a){h=[],c.push([{content:p,offset:m,color:"",fontStyle:0}]);continue}s&&"tokenType"!==s&&(r=t.tokenizeLine(p,u,l).tokens,f=0);let g=t.tokenizeLine2(p,u,l),b=g.tokens.length/2;for(let e=0;e<b;e++){let t=g.tokens[2*e],a=e+1<b?g.tokens[2*e+2]:p.length;if(t===a)continue;let l=g.tokens[2*e+1],d=rd(i[iw.getForeground(l)],o),u=iw.getFontStyle(l),c={content:p.substring(t,a),offset:m+t,color:d,fontStyle:u};if("tokenType"===s)c.type=iw.getTokenType(l);else if(s){let e=[];if("scopeName"!==s)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(rR).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(rT))})}c.explanation=[];let i=0;for(;t+i<a;){let t=r[f],n=p.substring(t.startIndex,t.endIndex);i+=n.length,c.explanation.push({content:n,scopes:"scopeName"===s?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){let r=t[i];n[i]={scopeName:r,themeMatches:function(e,t,n){let i=[];for(let{selectors:r,settings:o}of e)for(let e of r)if(function(e,t,n){if(!rM(e.at(-1),t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)rM(e[i],n[r])&&(i-=1),r-=1;return -1===i}(e,t,n)){i.push(o);break}return i}(e,r,t.slice(0,i))}}return n}(e,t.scopes)}),f+=1}}h.push(c)}c.push(h),h=[],u=g.ruleStack}return{tokens:c,stateStack:u}}function rM(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function rI(e,t,n,i=r_){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),o=r.map(r=>{let o=i(e,t,{...n,theme:r.theme});return{tokens:o,state:rE(o),theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){let r=e.map(e=>e[i]),o=t.map(()=>[]);t.forEach((e,t)=>e.push(o[t]));let a=r.map(()=>0),l=r.map(e=>e[0]);for(;l.every(e=>e);){let e=Math.min(...l.map(e=>e.content.length));for(let t=0;t<n;t++){let n=l[t];n.content.length===e?(o[t].push(n),a[t]+=1,l[t]=r[t][a[t]]):(o[t].push({...n,content:n.content.slice(0,e)}),l[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...o.map(e=>e.tokens)),l=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:l,offset:s,...d}=e[t][i];o.variants[r[n].color]=d}),o})),s=o[0].state?new rP(Object.fromEntries(o.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),o[0].state.lang):void 0;return s&&rA(l,s),l}function rD({name:e,load:t,colorScheme:n,collection:i,displayName:r}){var o;return{name:e,colorScheme:n,collection:i,displayName:r,load:(o=t,async()=>rb(n4(await o())))}}let rH=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],rO=new Set(rH),rF={andromeeda:()=>n.e("6900").then(n.bind(n,9247)),"aurora-x":()=>n.e("8805").then(n.bind(n,8340)),"ayu-dark":()=>n.e("4992").then(n.bind(n,7875)),"ayu-light":()=>n.e("382").then(n.bind(n,2909)),"ayu-mirage":()=>n.e("4983").then(n.bind(n,3482)),"catppuccin-frappe":()=>n.e("6093").then(n.bind(n,5068)),"catppuccin-latte":()=>n.e("6729").then(n.bind(n,8496)),"catppuccin-macchiato":()=>n.e("3808").then(n.bind(n,4643)),"catppuccin-mocha":()=>n.e("5593").then(n.bind(n,2960)),"dark-plus":()=>n.e("1541").then(n.bind(n,6948)),dracula:()=>n.e("8336").then(n.bind(n,1075)),"dracula-soft":()=>n.e("465").then(n.bind(n,3832)),"everforest-dark":()=>n.e("590").then(n.bind(n,2285)),"everforest-light":()=>n.e("9412").then(n.bind(n,7359)),"github-dark":()=>n.e("2048").then(n.bind(n,6163)),"github-dark-default":()=>n.e("3260").then(n.bind(n,7175)),"github-dark-dimmed":()=>n.e("8437").then(n.bind(n,5268)),"github-dark-high-contrast":()=>n.e("3168").then(n.bind(n,7024)),"github-light":()=>n.e("1822").then(n.bind(n,5965)),"github-light-default":()=>n.e("5398").then(n.bind(n,661)),"github-light-high-contrast":()=>n.e("278").then(n.bind(n,2725)),"gruvbox-dark-hard":()=>n.e("9918").then(n.bind(n,4061)),"gruvbox-dark-medium":()=>n.e("5108").then(n.bind(n,911)),"gruvbox-dark-soft":()=>n.e("2743").then(n.bind(n,8010)),"gruvbox-light-hard":()=>n.e("9420").then(n.bind(n,7767)),"gruvbox-light-medium":()=>n.e("5678").then(n.bind(n,3741)),"gruvbox-light-soft":()=>n.e("197").then(n.bind(n,4164)),horizon:()=>n.e("333").then(n.bind(n,5980)),"horizon-bright":()=>n.e("7350").then(n.bind(n,9285)),houston:()=>n.e("2332").then(n.bind(n,7047)),"kanagawa-dragon":()=>n.e("6005").then(n.bind(n,196)),"kanagawa-lotus":()=>n.e("2895").then(n.bind(n,7570)),"kanagawa-wave":()=>n.e("5879").then(n.bind(n,781)),laserwave:()=>n.e("920").then(n.bind(n,7419)),"light-plus":()=>n.e("659").then(n.bind(n,2142)),"material-theme":()=>n.e("969").then(n.bind(n,3968)),"material-theme-darker":()=>n.e("3381").then(n.bind(n,1988)),"material-theme-lighter":()=>n.e("9695").then(n.bind(n,4482)),"material-theme-ocean":()=>n.e("9886").then(n.bind(n,13)),"material-theme-palenight":()=>n.e("3502").then(n.bind(n,9917)),"min-dark":()=>n.e("7015").then(n.bind(n,9418)),"min-light":()=>n.e("8671").then(n.bind(n,3426)),monokai:()=>n.e("2368").then(n.bind(n,8947)),"night-owl":()=>n.e("311").then(n.bind(n,4106)),"night-owl-light":()=>n.e("2234").then(n.bind(n,3169)),nord:()=>n.e("6629").then(n.bind(n,9460)),"one-dark-pro":()=>n.e("3853").then(n.bind(n,1804)),"one-light":()=>n.e("2411").then(n.bind(n,6886)),plastic:()=>n.e("1266").then(n.bind(n,2761)),poimandres:()=>n.e("5646").then(n.bind(n,3005)),red:()=>n.e("2185").then(n.bind(n,6608)),"rose-pine":()=>n.e("1942").then(n.bind(n,3394)),"rose-pine-dawn":()=>n.e("4429").then(n.bind(n,7756)),"rose-pine-moon":()=>n.e("698").then(n.bind(n,3569)),"slack-dark":()=>n.e("9279").then(n.bind(n,8178)),"slack-ochin":()=>n.e("7198").then(n.bind(n,4157)),"snazzy-light":()=>n.e("9502").then(n.bind(n,5082)),"solarized-dark":()=>n.e("6070").then(n.bind(n,629)),"solarized-light":()=>n.e("3420").then(n.bind(n,6583)),"synthwave-84":()=>n.e("4846").then(n.bind(n,925)),"tokyo-night":()=>n.e("1811").then(n.bind(n,2686)),vesper:()=>n.e("8173").then(n.bind(n,508)),"vitesse-black":()=>n.e("3663").then(n.bind(n,9218)),"vitesse-dark":()=>n.e("1506").then(n.bind(n,4809)),"vitesse-light":()=>n.e("9888").then(n.bind(n,5923))};function r$(e){return rD({name:e,collection:"shiki",colorScheme:rO.has(e)?"light":"dark",load:rF[e]})}let rU=ir({themes:Object.freeze([...rH.map(e=>r$(e)),...["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"].map(e=>r$(e))])});async function rz(e){!function(e){if(n0())throw Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(ie.hasRegisteredTheme(e))return;let t=rU.getTheme(e);if(null!=t)return ie.registerThemeIfAbsent(t.name,t.load);throw Error(`No valid theme loader registered for "${e}"`)}(e);let t=await ie.resolveTheme(e);if(t.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`);return t}var rB=Object.defineProperty,rG=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyNames,rW=Object.prototype.hasOwnProperty,rV=(e,t,n,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var r,o=rj(t),a=0,l=o.length;a<l;a++)r=o[a],rW.call(e,r)||r===n||rB(e,r,{get:(e=>t[e]).bind(null,r),enumerable:!(i=rG(t,r))||i.enumerable});return e},rq=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rK(){return"u">typeof performance?performance.now():Date.now()}let rX=(e,t)=>e+(t-e%t)%t;async function rQ(e){let t,n,i={};function r(e){n=e,i.HEAPU8=new Uint8Array(e),i.HEAPU32=new Uint32Array(e)}let o="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,n=1024){let i=t+n,r=t;for(;e[r]&&!(r>=i);)++r;if(r-t>16&&e.buffer&&o)return o.decode(e.subarray(t,r));let a="";for(;t<r;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}let i=63&e[t++];if((224&n)==192){a+=String.fromCharCode((31&n)<<6|i);continue}let r=63&e[t++];if((n=(240&n)==224?(15&n)<<12|i<<6|r:(7&n)<<18|i<<12|r<<6|63&e[t++])<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(i.HEAPU8,e,t):""}let l={emscripten_get_now:rK,emscripten_memcpy_big:function(e,t,n){i.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let o=i.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let i=1;i<=4;i*=2){let a=o*(1+.2/i);if(a=Math.min(a,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}(Math.min(0x80000000,rX(Math.max(e,a),65536))))return!0}return!1},fd_write:()=>0};async function s(){let n=await e({env:l,wasi_snapshot_preview1:l});r((t=n.memory).buffer),Object.assign(i,n),i.UTF8ToString=a}return await s(),i}var rJ=Object.defineProperty,rY=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?rJ(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n};let rZ=null;class r0{constructor(e){rY(this,"utf16Length"),rY(this,"utf8Length"),rY(this,"utf16Value"),rY(this,"utf8Value"),rY(this,"utf16OffsetToUtf8"),rY(this,"utf8OffsetToUtf16");const t=e.length,n=r0._utf8ByteLength(e),i=n!==t,r=i?new Uint32Array(t+1):null;i&&(r[t]=n);const o=i?new Uint32Array(n+1):null;i&&(o[n]=t);const a=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const s=e.charCodeAt(n);let d=s,u=!1;if(s>=55296&&s<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(d=(s-55296<<10)+65536|t-56320,u=!0)}i&&(r[n]=l,u&&(r[n+1]=l),d<=127?o[l+0]=n:d<=2047?(o[l+0]=n,o[l+1]=n):d<=65535?(o[l+0]=n,o[l+1]=n,o[l+2]=n):(o[l+0]=n,o[l+1]=n,o[l+2]=n,o[l+3]=n)),d<=127?a[l++]=d:(d<=2047?a[l++]=192|(1984&d)>>>6:(d<=65535?a[l++]=224|(61440&d)>>>12:(a[l++]=240|(1835008&d)>>>18,a[l++]=128|(258048&d)>>>12),a[l++]=128|(4032&d)>>>6),a[l++]=128|(63&d)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,i=e.length;n<i;n++){let r=e.charCodeAt(n),o=r,a=!1;if(r>=55296&&r<=56319&&n+1<i){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(o=(r-55296<<10)+65536|t-56320,a=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,a&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let r1=class e{constructor(t){if(rY(this,"id",++e.LAST_ID),rY(this,"_onigBinding"),rY(this,"content"),rY(this,"utf16Length"),rY(this,"utf8Length"),rY(this,"utf16OffsetToUtf8"),rY(this,"utf8OffsetToUtf16"),rY(this,"ptr"),!rZ)throw new rq("Must invoke loadWasm first.");this._onigBinding=rZ,this.content=t;const n=new r0(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=rZ.omalloc(1e4)),e._sharedPtrInUse=!0,rZ.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(rZ)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};rY(r1,"LAST_ID",0),rY(r1,"_sharedPtr",0),rY(r1,"_sharedPtrInUse",!1);class r8{constructor(e){if(rY(this,"_onigBinding"),rY(this,"_ptr"),!rZ)throw new rq("Must invoke loadWasm first.");const t=[],n=[];for(let i=0,r=e.length;i<r;i++){const r=new r0(e[i]);t[i]=r.createString(rZ),n[i]=r.utf8Length}const i=rZ.omalloc(4*e.length);rZ.HEAPU32.set(t,i/4);const r=rZ.omalloc(4*e.length);rZ.HEAPU32.set(n,r/4);const o=rZ.createOnigScanner(i,r,e.length);for(let n=0,i=e.length;n<i;n++)rZ.ofree(t[n]);rZ.ofree(r),rZ.ofree(i),0===o&&function(e){throw new rq(e.UTF8ToString(e.getLastOnigError()))}(rZ),this._onigBinding=rZ,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let i=0;if("number"==typeof n&&(i=n),"string"==typeof e){e=new r1(e);let n=this._findNextMatchSync(e,t,!1,i);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,n,i){let r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(0===o)return null;let a=r.HEAPU32,l=o/4,s=a[l++],d=a[l++],u=[];for(let t=0;t<d;t++){let n=e.convertUtf8OffsetToUtf16(a[l++]),i=e.convertUtf8OffsetToUtf16(a[l++]);u[t]={start:n,end:i,length:i-n}}return{index:s,captureIndices:u}}}function r2(e){return o||(o=async function(){rZ=await rQ(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var i,r,o,a;if(void 0!==n.data&&(n=n.data),i=n,"u">typeof Response&&i instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (o=n,e=>WebAssembly.instantiateStreaming(o,e))(t):await (a=n,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(r=n,"u">typeof ArrayBuffer&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||"u">typeof Buffer&&Buffer.isBuffer?.(r)||"u">typeof SharedArrayBuffer&&r instanceof SharedArrayBuffer||"u">typeof Uint32Array&&r instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await r5(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await r5(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function r5(e){return t=>WebAssembly.instantiate(e,t)}function r6(e){a=e}function r4(){return a}async function r7(e){return e&&await r2(e),{createScanner:e=>new r8(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new r1(e)}}var r3=((e,t)=>{let n={};for(var i in e)rB(n,i,{get:e[i],enumerable:!0});return t||rB(n,Symbol.toStringTag,{value:"Module"}),n})({});rV(r3,g,"default"),d&&rV(d,g,"default");let r9=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e("6900").then(n.bind(n,9247))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e("8805").then(n.bind(n,8340))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e("4992").then(n.bind(n,7875))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e("382").then(n.bind(n,2909))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e("4983").then(n.bind(n,3482))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e("6093").then(n.bind(n,5068))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e("6729").then(n.bind(n,8496))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e("3808").then(n.bind(n,4643))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e("5593").then(n.bind(n,2960))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e("1541").then(n.bind(n,6948))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e("8336").then(n.bind(n,1075))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e("465").then(n.bind(n,3832))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e("590").then(n.bind(n,2285))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e("9412").then(n.bind(n,7359))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e("2048").then(n.bind(n,6163))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e("3260").then(n.bind(n,7175))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e("8437").then(n.bind(n,5268))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e("3168").then(n.bind(n,7024))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e("1822").then(n.bind(n,5965))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e("5398").then(n.bind(n,661))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e("278").then(n.bind(n,2725))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e("9918").then(n.bind(n,4061))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e("5108").then(n.bind(n,911))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e("2743").then(n.bind(n,8010))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e("9420").then(n.bind(n,7767))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e("5678").then(n.bind(n,3741))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e("197").then(n.bind(n,4164))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e("333").then(n.bind(n,5980))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>n.e("7350").then(n.bind(n,9285))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e("2332").then(n.bind(n,7047))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e("6005").then(n.bind(n,196))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e("2895").then(n.bind(n,7570))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e("5879").then(n.bind(n,781))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e("920").then(n.bind(n,7419))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e("659").then(n.bind(n,2142))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e("969").then(n.bind(n,3968))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e("3381").then(n.bind(n,1988))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e("9695").then(n.bind(n,4482))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e("9886").then(n.bind(n,13))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e("3502").then(n.bind(n,9917))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e("7015").then(n.bind(n,9418))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e("8671").then(n.bind(n,3426))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e("2368").then(n.bind(n,8947))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e("311").then(n.bind(n,4106))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e("2234").then(n.bind(n,3169))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e("6629").then(n.bind(n,9460))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e("3853").then(n.bind(n,1804))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e("2411").then(n.bind(n,6886))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e("1266").then(n.bind(n,2761))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e("5646").then(n.bind(n,3005))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e("2185").then(n.bind(n,6608))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e("1942").then(n.bind(n,3394))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e("4429").then(n.bind(n,7756))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e("698").then(n.bind(n,3569))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e("9279").then(n.bind(n,8178))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e("7198").then(n.bind(n,4157))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e("9502").then(n.bind(n,5082))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e("6070").then(n.bind(n,629))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e("3420").then(n.bind(n,6583))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e("4846").then(n.bind(n,925))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e("1811").then(n.bind(n,2686))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e("8173").then(n.bind(n,508))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e("3663").then(n.bind(n,9218))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e("1506").then(n.bind(n,4809))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e("9888").then(n.bind(n,5923))}].map(e=>[e.id,e.import])),oe=/\s+/g;function ot(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(oe)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(oe)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}let on=["color","background-color"];function oi(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&iv.Italic&&(t["font-style"]="italic"),e.fontStyle&iv.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&iv.Underline&&n.push("underline"),e.fontStyle&iv.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function or(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let oo=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let r,o={lines:r=rm(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:r.length-1,character:r.at(-1).length};let t=e,i=0;for(let e of r){if(t<e.length)break;t-=e.length,i++}return{line:i,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=r[t].length;return n+t}};function i(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new ia(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...o.indexToPos(e),offset:e}}{let t=o.lines[e.line];if(void 0===t)throw new ia(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${o.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new ia(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:o.posToIndex(e.line,n)}}}let a=(t.options.decorations||[]).map(e=>({...e,start:i(e.start),end:i(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new ia(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){let t=e[i],r=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,o=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,a=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(r||o||a||l){if(r&&o||a&&l||a&&n.start.offset===n.end.offset||o&&t.start.offset===t.end.offset)continue;throw new ia(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(a),e.set(t.meta,{decorations:a,converter:o,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length){var n;let i;return(i=[...(n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))instanceof Set?n:new Set(n)].sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,n=function(e,t){let n=0,i=e.length;for(;n<i;){let r=n+(i-n>>1);e[r]<=t?n=r+1:i=r}return n}(i,e.offset),r=n;for(;r<i.length&&i[r]<t;)r++;if(n===r)return e;let o=i.slice(n,r);for(let t=0;t<o.length;t++)o[t]-=e.offset;let a=0,l=[];for(let t of o)t>a&&l.push({...e,content:e.content.slice(a,t),offset:e.offset+a}),a=t;return a<e.content.length&&l.push({...e,content:e.content.slice(a),offset:e.offset+a}),l})):e}},code(e){if(!this.options.decorations?.length)return;let n=t(this),i=[...e.children].filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==n.converter.lines.length)throw new ia(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function r(e,t,n,r){let a=i[e],l="",s=-1,d=-1;if(0===t&&(s=0),0===n&&(d=0),n===1/0&&(d=a.children.length),-1===s||-1===d)for(let e=0;e<a.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===s&&l.length===t&&(s=e+1),-1===d&&l.length===n&&(d=e+1);if(-1===s)throw new ia(`Failed to find start index for decoration ${JSON.stringify(r.start)}`);if(-1===d)throw new ia(`Failed to find end index for decoration ${JSON.stringify(r.end)}`);let u=a.children.slice(s,d);if(r.alwaysWrap||u.length!==a.children.length)if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};o(e,r,"wrapper"),a.children.splice(s,u.length,e)}else o(u[0],r,"token");else o(a,r,"line")}function o(e,t,n){let i=t.properties||{},r=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},t.properties?.class&&ot(e,t.properties.class),e=r(e,n)||e}let a=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)r(t.line,t.character,n.character,e);else if(t.line<n.line){r(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)a.unshift(()=>{var t;i[t=r]=o(i[t],e,"line")});r(n.line,0,n.character,e)}}a.forEach(e=>e())}}}()];function oa(e){let t=function(e){let t=[],n=[],i=[];for(let r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...oo]}var ol=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],os={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function od(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var ou={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let oh=/#([0-9a-f]{3,8})/i,oc=/var\((--[\w-]+-ansi-[\w-]+)\)/,of={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function op(e,t,n={}){let i=e.resolveLangAlias(n.lang||"text"),{theme:r=e.getLoadedThemes()[0]}=n;if(!rh(i)&&!rf(r)&&"ansi"===i){let i,o,a,l,s,d,u,{theme:h}=e.setTheme(r);return i=rs(h,n),o=rm(t),a=function(e=ou){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(i){switch(i.type){case"named":return e[i.name];case"rgb":return n(i.rgb);case"table":var r;return r=i.index,function(){if(t)return t;t=[];for(let n=0;n<ol.length;n++)t.push(e[ol[n]]);let i=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let r=0;r<6;r++)for(let o=0;o<6;o++)t.push(n([i[e],i[r],i[o]]));let r=8;for(let e=0;e<24;e++,r+=10)t.push(n([r,r,r]));return t}()[r]}}}}(Object.fromEntries(ol.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,h.colors?.[t]||of[e]]}))),l=null,s=null,d=new Set,u={parse(e){let t=[],n=0;do{let i=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),r=i.sequence?e.substring(n,i.startPosition):e.substring(n);if(r.length>0&&t.push({value:r,foreground:l,background:s,decorations:new Set(d)}),i.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let i=Number.parseInt(n);if(!Number.isNaN(i))if(0===i)t.push({type:"resetAll"});else if(i<=9)os[i]&&t.push({type:"setDecoration",value:os[i]});else if(i<=29){let e=os[i-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ol[i-30]}});else if(38===i){let n=od(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===i)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ol[i-40]}});else if(48===i){let n=od(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===i?t.push({type:"resetBackgroundColor"}):53===i?t.push({type:"setDecoration",value:"overline"}):55===i?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ol[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ol[i-100+8]}})}return t}(i.sequence);for(let t of e)"resetAll"===t.type?(l=null,s=null,d.clear()):"resetForegroundColor"===t.type?l=null:"resetBackgroundColor"===t.type?s=null:"resetDecoration"===t.type&&d.delete(t.value);for(let t of e)"setForegroundColor"===t.type?l=t.value:"setBackgroundColor"===t.type?s=t.value:"setDecoration"===t.type&&d.add(t.value)}n=i.position}while(n<e.length);return t}},o.map(e=>u.parse(e[0]).map(t=>{let n,r;t.decorations.has("reverse")?(n=t.background?a.value(t.background):h.bg,r=t.foreground?a.value(t.foreground):h.fg):(n=t.foreground?a.value(t.foreground):h.fg,r=t.background?a.value(t.background):void 0),n=rd(n,i),r=rd(r,i),t.decorations.has("dim")&&(n=function(e){let t=e.match(oh);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],i=e[2],r=e[3];return`#${t}${t}${n}${n}${i}${i}${Math.round(Number.parseInt(`${r}${r}`,16)/2).toString(16).padStart(2,"0")}`}else if(3===e.length){let t=e[0],n=e[1],i=e[2];return`#${t}${t}${n}${n}${i}${i}80`}}let n=e.match(oc);return n?`var(${n[1]}-dim)`:e}(n));let o=iv.None;return t.decorations.has("bold")&&(o|=iv.Bold),t.decorations.has("italic")&&(o|=iv.Italic),t.decorations.has("underline")&&(o|=iv.Underline),t.decorations.has("strikethrough")&&(o|=iv.Strikethrough),{content:t.value,offset:e[1],color:n,bgColor:r,fontStyle:o}}))}return r_(e,t,n)}function om(e,t,n){let i,r,o,a,l,s;if("themes"in n){let{defaultColor:d="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,c=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===d?-1:+(t.color===d));if(0===c.length)throw new ia("`themes` option must not be empty");let f=rI(e,t,n,op);if(s=rE(f),d&&"light-dark()"!==d&&!c.some(e=>e.color===d))throw new ia(`\`themes\` option must contain the defaultColor key \`${d}\``);let p=c.map(t=>e.getTheme(t.theme)),m=c.map(e=>e.color);o=f.map(e=>e.map(e=>(function(e,t,n,i,r="css-vars"){let o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>oi(e.variants[t])),l=new Set(a.flatMap(e=>Object.keys(e))),s={},d=(e,i)=>{let r="color"===i?"":"background-color"===i?"-bg":`-${i}`;return n+t[e]+("color"===i?"":r)};return a.forEach((e,n)=>{for(let o of l){let l=e[o]||"inherit";if(0===n&&i&&on.includes(o))if("light-dark()"===i&&a.length>1){let e=t.findIndex(e=>"light"===e),i=t.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new ia('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=a[e][o]||"inherit",h=a[i][o]||"inherit";s[o]=`light-dark(${u}, ${h})`,"css-vars"===r&&(s[d(n,o)]=l)}else s[o]=l;else"css-vars"===r&&(s[d(n,o)]=l)}}),o.htmlStyle=s,o})(e,m,u,d,h))),s&&rA(o,s);let g=c.map(e=>rs(e.theme,n));r=og(c,p,g,u,d,"fg",h),i=og(c,p,g,u,d,"bg",h),a=`shiki-themes ${p.map(e=>e.name).join(" ")}`,l=d?void 0:[r,i].join(";")}else if("theme"in n){let l=rs(n.theme,n);o=op(e,t,n);let d=e.getTheme(n.theme);i=rd(d.bg,l),r=rd(d.fg,l),a=d.name,s=rE(o)}else throw new ia("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:r,bg:i,themeName:a,rootStyle:l,grammarState:s}}function og(e,t,n,i,r,o,a){return e.map((l,s)=>{let d=rd(t[s][o],n[s])||"inherit",u=`${i+l.color}${"bg"===o?"-bg":""}:${d}`;if(0===s&&r){if("light-dark()"===r&&e.length>1){let i=e.findIndex(e=>"light"===e.color),r=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===r)throw new ia('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${rd(t[i][o],n[i])||"inherit"}, ${rd(t[r][o],n[r])||"inherit"});${u}`}return d}return"css-vars"===a?u:null}).filter(e=>!!e).join(";")}let ob=/^\s+$/,oy=/^(\s*)(.*?)(\s*)$/;function ov(e,t,n,i={meta:{},options:n,codeToHast:(t,n)=>ov(e,t,n),codeToTokens:(t,n)=>om(e,t,n)}){let r=t;for(let e of oa(n))r=e.preprocess?.call(i,r,n)||r;let{tokens:o,fg:a,bg:l,themeName:s,rootStyle:d,grammarState:u}=om(e,r,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:c=!1}=n;!0===h?o=o.map(e=>{let t,n=[],i="";return e.forEach((r,o)=>{let a=!(r.fontStyle&&(r.fontStyle&iv.Underline||r.fontStyle&iv.Strikethrough));a&&ob.test(r.content)&&e[o+1]?(void 0===t&&(t=r.offset),i+=r.content):i?(a?n.push({...r,offset:t,content:i+r.content}):n.push({content:i,offset:t},r),t=void 0,i=""):n.push(r)}),n}):"never"===h&&(o=o.map(e=>e.flatMap(e=>{if(ob.test(e.content))return e;let t=e.content.match(oy);if(!t)return e;let[,n,i,r]=t;if(!n&&!r)return e;let o=[{...e,offset:e.offset+n.length,content:i}];return n&&o.unshift({content:n,offset:e.offset}),r&&o.push({content:r,offset:e.offset+n.length+i.length}),o}))),c&&(o=o.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t.at(-1),i=or(e.htmlStyle||oi(e)),r=or(n.htmlStyle||oi(n)),o=e.fontStyle&&(e.fontStyle&iv.Underline||e.fontStyle&iv.Strikethrough),a=n.fontStyle&&(n.fontStyle&iv.Underline||n.fontStyle&iv.Strikethrough);o||a||i!==r?t.push({...n}):e.content+=n.content}return t}));let f={...i,get source(){return r}};for(let e of oa(n))o=e.tokens?.call(f,o)||o;return function(e,t,n,i=rE(e)){let r=oa(t),o=[],a={type:"root",children:[]},{structure:l="classic",tabindex:s="0"}=t,d={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),!1!==s&&null!=s&&(d.tabindex=s.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(d[e]=n);let u={type:"element",tagName:"pre",properties:d,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:o},c=[],f={...n,structure:l,addClassToHast:ot,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return u},get code(){return h},get lines(){return c}};if(e.forEach((e,t)=>{t&&("inline"===l?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&o.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(let o of e){let e={type:"element",tagName:"span",properties:{...o.htmlAttrs},children:[{type:"text",value:o.content}]},s=or(o.htmlStyle||oi(o));for(let a of(s&&(e.properties.style=s),r))e=a?.span?.call(f,e,t+1,i,n,o)||e;"inline"===l?a.children.push(e):"classic"===l&&n.children.push(e),i+=o.content.length}if("classic"===l){for(let e of r)n=e?.line?.call(f,n,t+1)||n;c.push(n),o.push(n)}else"inline"===l&&c.push(n)}),"classic"===l){for(let e of r)h=e?.code?.call(f,h)||h;for(let e of(u.children.push(h),r))u=e?.pre?.call(f,u)||u;a.children.push(u)}else if("inline"===l){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of a.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of r)n=e?.code?.call(f,n)||n;a.children=[];for(let e=0;e<n.children.length;e++){e>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&a.children.push(...t.children)}}let p=a;for(let e of r)p=e?.root?.call(f,p)||p;return i&&rA(p,i),p}(o,{...n,fg:a,bg:l,themeName:s,rootStyle:!1!==n.rootStyle&&(n.rootStyle??d)},f,u)}async function ok(e){let t=await rw(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return rE(e[1]);let[t,n,i={}]=e,{lang:r="text",theme:o=t.getLoadedThemes()[0]}=i;if(rh(r)||rf(o))throw new ia("Plain language does not have grammar state");if("ansi"===r)throw new ia("ANSI language does not have grammar state");let{theme:a,colorMap:l}=t.setTheme(o),s=t.getLanguage(r);return new rP(rN(n,s,a,l,i).stateStack,s.name,a.name)})(t,...e),codeToTokensBase:(e,n)=>op(t,e,n),codeToTokensWithThemes:(e,n)=>rI(t,e,n),codeToTokens:(e,n)=>om(t,e,n),codeToHast:(e,n)=>ov(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let i={meta:{},options:n,codeToHast:(t,n)=>ov(e,t,n),codeToTokens:(t,n)=>om(e,t,n)},r=no(ov(e,t,n,i));for(let e of oa(n))r=e.postprocess?.call(i,r,n)||r;return r})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let oS=(u=(p={langs:n5,themes:r9,engine:()=>(0,r3.createOnigurumaEngine)(n.e("4405").then(n.bind(n,5380)))}).langs,h=p.themes,c=p.engine,async function(e){function t(t){if("string"==typeof t){if(rc(t=e.langAlias?.[t]||t))return[];let n=u[t];if(!n)throw new ia(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}function n(e){if(rf(e))return"none";if("string"==typeof e){let t=h[e];if(!t)throw new ia(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let i=(e.themes??[]).map(e=>n(e)),r=(e.langs??[]).map(e=>t(e)),o=await ok({engine:e.engine??c(),...e,themes:i,langs:r});return{...o,loadLanguage:(...e)=>o.loadLanguage(...e.map(t)),loadTheme:(...e)=>o.loadTheme(...e.map(n)),getBundledLanguages:()=>u,getBundledThemes:()=>h}});var oC=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:i,regexConstructor:r}=t;if(!r)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=i?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=r(e);return i?.set(e,t),t}catch(t){if(i?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let i="string"==typeof e?e:e.content,r=[];function o(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let a=n.exec(i);if(!a)continue;if(a.index===t)return o(e,a,0);r.push([e,a,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(r.length){let e=Math.min(...r.map(e=>e[1].index));for(let[t,n,i]of r)if(n.index===e)return o(t,n,i)}return null}};function ox(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let ow=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),oL=String.raw;function oA(e,t){if(null==e)throw Error(t??"Value expected");return e}let oE=oL`\[\^?`,oP=`c.? | C(?:-.?)?|${oL`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${oL`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${oL`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${oL`o\{[^\}]*\}?`}|${oL`\d{1,3}`}`,oR=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,oT=RegExp(oL`
56
+ </svg>`,nL={};function nA(e){if(null!=r)return r;let t=e.host;if("u">typeof HTMLElement&&t instanceof HTMLElement&&!t.isConnected)return;let n=document.createElement("div");n.setAttribute("data-code",""),n.setAttribute("data-diffs-scrollbar-measure","true");let i=document.createElement("div");return i.style.position="relative",i.style.width="200%",i.style.height="200%",n.appendChild(i),e.appendChild(n),r=Math.max(n.offsetHeight-n.clientHeight,0),n.remove(),r}function nE(e){return`${R}: ${null==e?"var(--diffs-scrollbar-gutter-fallback)":`${e}px`};`}let nP="@layer base, theme, rendered, unsafe;",nR=RegExp(`${R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\s*:\\s*[^;]+;`);function nT({code:e,pre:t,columnType:n,rowSpan:i,containerSize:r=!1}={}){return null==e&&((e=document.createElement("code")).setAttribute("data-code",""),null!=n&&e.setAttribute(`data-${n}`,""),t?.appendChild(e)),null!=i?e.style.setProperty("grid-row",`span ${i}`):e.style.removeProperty("grid-row"),r?e.setAttribute("data-container-size",""):e.removeAttribute("data-container-size"),e}function n_(e,t){let n=e?.offsetHeight??0;if(null==e||0===n)return void t();e.style.minHeight=`${n}px`;try{t(),e.offsetHeight}finally{e.style.minHeight=""}}if("u">typeof HTMLElement&&null==customElements.get("diffs-container")){let e;class t extends HTMLElement{constructor(){if(super(),null!=this.shadowRoot)return;const t=this.attachShadow({mode:"open"});null==e&&(e=new CSSStyleSheet).replaceSync('@layer base {\n :host {\n --diffs-font-fallback: "SF Mono", Monaco, Consolas, "Ubuntu Mono", "Liberation Mono",\n "Courier New", monospace;\n --diffs-header-font-fallback: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",\n "Noto Sans", "Liberation Sans", Arial, sans-serif;\n --diffs-mixer: light-dark(#000, #fff);\n --diffs-gap-fallback: 8px;\n --diffs-scrollbar-gutter-fallback: 6px;\n --diffs-scrollbar-gutter: var(--diffs-scrollbar-gutter-override, var(--diffs-scrollbar-gutter-measured, var(--diffs-scrollbar-gutter-fallback)));\n --diffs-added-light: #0dbe4e;\n --diffs-added-dark: #5ecc71;\n --diffs-modified-light: #009fff;\n --diffs-modified-dark: #69b1ff;\n --diffs-deleted-light: #ff2e3f;\n --diffs-deleted-dark: #ff6762;\n --diffs-warning-light: #d5a910;\n --diffs-warning-dark: #ffd452;\n color-scheme: light dark;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n font-size: var(--diffs-font-size, 13px);\n line-height: var(--diffs-line-height, 20px);\n font-feature-settings: var(--diffs-font-features);\n --diffs-bg: light-dark(var(--diffs-light-bg, #fff), var(--diffs-dark-bg, #000));\n --diffs-bg-buffer: var(--diffs-bg-buffer-override, light-dark(color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))));\n --diffs-bg-context: var(--diffs-bg-context-override, light-dark(color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))));\n --diffs-bg-context-gutter: var(--diffs-bg-context-gutter-override, light-dark(color-mix(in lab, var(--diffs-bg-context) 90%, var(--diffs-bg)), color-mix(in lab, var(--diffs-bg-context) 45%, var(--diffs-bg))));\n --diffs-bg-separator: var(--diffs-bg-separator-override, light-dark(color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))));\n --diffs-fg: light-dark(var(--diffs-light, #000), var(--diffs-dark, #fff));\n --diffs-fg-number: var(--diffs-fg-number-override, light-dark(color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)), color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))));\n --diffs-fg-conflict-marker: var(--diffs-fg-conflict-marker-override, var(--diffs-fg-number));\n --diffs-deletion-base: var(--diffs-deletion-color-override, light-dark(var(--diffs-light-deletion-color, var(--diffs-deletion-color, var(--diffs-deleted-light))), var(--diffs-dark-deletion-color, var(--diffs-deletion-color, var(--diffs-deleted-dark)))));\n --diffs-addition-base: var(--diffs-addition-color-override, light-dark(var(--diffs-light-addition-color, var(--diffs-addition-color, var(--diffs-added-light))), var(--diffs-dark-addition-color, var(--diffs-addition-color, var(--diffs-added-dark)))));\n --diffs-modified-base: var(--diffs-modified-color-override, light-dark(var(--diffs-light-modified-color, var(--diffs-modified-color, var(--diffs-modified-light))), var(--diffs-dark-modified-color, var(--diffs-modified-color, var(--diffs-modified-dark)))));\n --diffs-bg-deletion: var(--diffs-bg-deletion-override, light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)), color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))));\n --diffs-bg-deletion-emphasis: var(--diffs-bg-deletion-emphasis-override, light-dark(rgb(from var(--diffs-deletion-base) r g b / .15), rgb(from var(--diffs-deletion-base) r g b / .2)));\n --diffs-bg-addition: var(--diffs-bg-addition-override, light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)), color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))));\n --diffs-bg-addition-emphasis: var(--diffs-bg-addition-emphasis-override, light-dark(rgb(from var(--diffs-addition-base) r g b / .15), rgb(from var(--diffs-addition-base) r g b / .2)));\n --diffs-selection-base: var(--diffs-modified-base);\n --diffs-selection-number-fg: light-dark(color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)), color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer)));\n background-color: var(--diffs-bg);\n color: var(--diffs-fg);\n display: block;\n }\n\n pre, code, [data-error-wrapper] {\n isolation: isolate;\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n outline: none;\n margin: 0;\n padding: 0;\n display: block;\n }\n\n pre, code {\n background-color: var(--diffs-bg);\n }\n\n code {\n contain: content;\n }\n\n input, button {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n }\n\n *, :before, :after {\n box-sizing: border-box;\n }\n\n [data-icon-sprite] {\n display: none;\n }\n\n [data-diffs-header], [data-separator] {\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n }\n\n [data-diffs-header][data-sticky] {\n z-index: 1;\n background-color: var(--diffs-bg);\n position: sticky;\n top: 0;\n }\n\n [data-file-info] {\n color: var(--fg);\n background-color: color-mix(in lab, var(--bg) 98%, var(--fg));\n border-block: 1px solid color-mix(in lab, var(--bg) 95%, var(--fg));\n padding: 10px;\n font-weight: 700;\n }\n\n [data-diff], [data-file] {\n --diffs-grid-number-column-width: minmax(min-content, max-content);\n --diffs-code-grid: var(--diffs-grid-number-column-width) 1fr;\n\n &[data-dehydrated] {\n --diffs-code-grid: var(--diffs-grid-number-column-width) minmax(0, 1fr);\n }\n\n &:hover [data-code]::-webkit-scrollbar-thumb {\n background-color: var(--diffs-bg-context);\n }\n }\n\n @supports (-webkit-touch-callout: none) {\n :host {\n --diffs-scrollbar-gutter-fallback: 0px;\n }\n }\n\n [data-line] span {\n color: light-dark(var(--diffs-token-light, var(--diffs-light)), var(--diffs-token-dark, var(--diffs-dark)));\n background-color: light-dark(var(--diffs-token-light-bg, inherit), var(--diffs-token-dark-bg, inherit));\n font-weight: light-dark(var(--diffs-token-light-font-weight, inherit), var(--diffs-token-dark-font-weight, inherit));\n font-style: light-dark(var(--diffs-token-light-font-style, inherit), var(--diffs-token-dark-font-style, inherit));\n text-decoration: light-dark(var(--diffs-token-light-text-decoration, inherit), var(--diffs-token-dark-text-decoration, inherit));\n }\n\n [data-line], [data-gutter-buffer], [data-column-number], [data-line-annotation], [data-no-newline], [data-merge-conflict], [data-merge-conflict-actions], [data-editor-overlay] {\n --diffs-computed-decoration-bg: var(--diffs-bg);\n --diffs-computed-diff-line-bg: var(--diffs-computed-decoration-bg);\n --diffs-computed-selected-line-bg: var(--diffs-computed-diff-line-bg);\n --diffs-computed-editor-active-line-bg: var(--diffs-computed-selected-line-bg);\n --diffs-computed-hovered-line-bg: var(--diffs-computed-editor-active-line-bg);\n --diffs-hover-mix-target: var(--diffs-bg-hover-override, var(--diffs-mixer));\n --diffs-line-bg: var(--diffs-computed-hovered-line-bg);\n color: var(--diffs-fg);\n background-color: var(--diffs-line-bg, var(--diffs-bg));\n }\n\n [data-line], [data-no-newline] {\n &[data-decoration-bg] {\n --mix-deco-light: 92%;\n --mix-deco-dark: 85%;\n\n &[data-decoration-bg-depth="2"] {\n --mix-deco-light: 88%;\n --mix-deco-dark: 80%;\n }\n\n &[data-decoration-bg-depth="3"] {\n --mix-deco-light: 85%;\n --mix-deco-dark: 78%;\n }\n\n --diffs-hover-mix-target: var(--diffs-decoration-bg);\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) var(--mix-deco-light),\n var(--diffs-decoration-bg)), color-mix(in lab,\n var(--diffs-bg) var(--mix-deco-dark),\n var(--diffs-decoration-bg)));\n }\n }\n\n [data-line-annotation], [data-gutter-buffer="annotation"] {\n --diffs-annotation-bg: var(--diffs-bg-context);\n --diffs-computed-decoration-bg: var(--diffs-annotation-bg);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-merge-conflict-actions], [data-gutter-buffer="merge-conflict-action"], [data-gutter-buffer="merge-conflict-marker-base"], [data-gutter-buffer="merge-conflict-marker-separator"], [data-merge-conflict="marker-base"], [data-merge-conflict="marker-separator"] {\n --diffs-computed-decoration-bg: var(--diffs-bg-context);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-gutter-buffer="merge-conflict-marker-start"], [data-merge-conflict="marker-start"] {\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) 78%,\n var(--conflict-bg-current-header-override, var(--diffs-addition-base))), color-mix(in lab,\n var(--diffs-bg) 68%,\n var(--conflict-bg-current-header-override, var(--diffs-addition-base))));\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-gutter-buffer="merge-conflict-marker-end"], [data-merge-conflict="marker-end"] {\n --diffs-computed-decoration-bg: light-dark(color-mix(in lab,\n var(--diffs-bg) 78%,\n var(--conflict-bg-incoming-header-override, var(--diffs-modified-base))), color-mix(in lab,\n var(--diffs-bg) 68%,\n var(--conflict-bg-incoming-header-override, var(--diffs-modified-base))));\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n [data-has-merge-conflict] [data-line-annotation], [data-has-merge-conflict] [data-gutter-buffer="annotation"] {\n --diffs-computed-decoration-bg: var(--diffs-bg);\n --diffs-hover-mix-target: var(--diffs-computed-editor-active-line-bg);\n }\n\n :where([data-background]) {\n & [data-gutter-buffer], & [data-column-number] {\n --mix-light: 91%;\n --mix-dark: 85%;\n }\n\n & [data-line], & [data-no-newline] {\n --mix-light: 88%;\n --mix-dark: 80%;\n }\n\n & [data-gutter-buffer], & [data-column-number], & [data-line], & [data-no-newline] {\n --diffs-diff-line-mix-target: var(--diffs-bg);\n\n &[data-line-type="change-deletion"] {\n --diffs-diff-line-mix-target: var(--diffs-bg-deletion-override, var(--diffs-deletion-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-deletion-override, var(--diffs-deletion-base));\n --diffs-diff-line-mix-target: var(--diffs-bg-deletion-number-override, var(--diffs-deletion-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-line-type="change-addition"] {\n --diffs-diff-line-mix-target: var(--diffs-bg-addition-override, var(--diffs-addition-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-addition-override, var(--diffs-addition-base));\n --diffs-diff-line-mix-target: var(--diffs-bg-addition-number-override, var(--diffs-addition-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-merge-conflict="current"] {\n --diffs-diff-line-mix-target: var(--conflict-bg-current-override, var(--diffs-addition-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-fg-number-addition-override, var(--diffs-addition-base));\n --diffs-diff-line-mix-target: var(--conflict-bg-current-number-override, var(--diffs-addition-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n\n &[data-merge-conflict="incoming"] {\n --diffs-diff-line-mix-target: var(--conflict-bg-incoming-override, var(--diffs-modified-base));\n --diffs-hover-mix-target: var(--diffs-diff-line-mix-target);\n\n &:where([data-gutter-buffer], [data-column-number]) {\n color: var(--diffs-modified-base);\n --diffs-diff-line-mix-target: var(--conflict-bg-incoming-number-override, var(--diffs-modified-base));\n }\n\n --diffs-computed-diff-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-light),\n var(--diffs-diff-line-mix-target)), color-mix(in lab,\n var(--diffs-computed-decoration-bg) var(--mix-dark),\n var(--diffs-diff-line-mix-target)));\n }\n }\n }\n\n [data-gutter-buffer], [data-column-number], [data-line], [data-line-annotation], [data-merge-conflict], [data-merge-conflict-actions], [data-no-newline], [data-editor-overlay] {\n --diffs-selection-mix-target: var(--diffs-bg-selection-override, var(--diffs-selection-base));\n --diffs-selection-emphasis-mix-target: var(--diffs-selection-mix-target);\n\n &:where([data-editor-overlay]), &:where([data-line], [data-line-annotation], [data-merge-conflict], [data-merge-conflict-actions], [data-no-newline])[data-selected-line] {\n --mix-selection-light: 82%;\n --mix-selection-dark: 75%;\n --diffs-hover-mix-target: var(--diffs-selection-mix-target);\n }\n\n &:where([data-gutter-buffer][data-selected-line], [data-column-number]:is([data-selected-line], [data-editor-active-line])) {\n --mix-selection-light: 75%;\n --mix-selection-dark: 60%;\n --diffs-selection-mix-target: var(--diffs-bg-selection-number-override, var(--diffs-selection-base));\n --diffs-hover-mix-target: var(--diffs-selection-mix-target);\n }\n\n &:where([data-line][data-selected-line]):is([data-line-type="change-addition"], [data-line-type="change-deletion"]) {\n --diffs-selection-emphasis-mix-target: light-dark(color-mix(in lab,\n var(--diffs-diff-line-mix-target, var(--diffs-selection-mix-target))\n var(--mix-selection-light),\n var(--diffs-selection-mix-target)), var(--diffs-selection-mix-target));\n }\n\n &:where([data-editor-overlay]), &[data-selected-line] {\n --diffs-computed-selected-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-diff-line-bg) var(--mix-selection-light),\n var(--diffs-selection-mix-target)), color-mix(in lab,\n var(--diffs-computed-diff-line-bg) var(--mix-selection-dark),\n var(--diffs-selection-mix-target)));\n }\n }\n\n [data-line][data-editor-active-line], [data-column-number][data-editor-active-line] {\n --diffs-computed-editor-active-line-bg: color-mix(in lab,\n var(--diffs-computed-selected-line-bg)\n var(--diffs-editor-active-line-source-mix, 100%),\n var(--diffs-selection-emphasis-mix-target));\n }\n\n @media (pointer: fine) {\n [data-line][data-hovered], [data-gutter-buffer][data-hovered], [data-column-number][data-hovered], [data-line-annotation][data-hovered], [data-no-newline][data-hovered], [data-merge-conflict][data-hovered], [data-merge-conflict-actions][data-hovered], [data-editor-overlay][data-hovered] {\n --diffs-computed-hovered-line-bg: light-dark(color-mix(in lab,\n var(--diffs-computed-editor-active-line-bg) 97%,\n var(--diffs-hover-mix-target)), color-mix(in lab,\n var(--diffs-computed-editor-active-line-bg) 91%,\n var(--diffs-hover-mix-target)));\n }\n }\n\n [data-gutter-buffer][data-selected-line], [data-column-number]:is([data-selected-line], [data-editor-active-line]) {\n color: var(--diffs-selection-number-fg);\n }\n\n [data-no-newline] {\n user-select: none;\n\n & span {\n opacity: .6;\n }\n }\n\n [data-diff-type="split"][data-overflow="scroll"] {\n grid-template-columns: 1fr 1fr;\n display: grid;\n\n & [data-additions] {\n border-left: 1px solid var(--diffs-bg);\n }\n\n & [data-deletions] {\n border-right: 1px solid var(--diffs-bg);\n }\n }\n\n [data-code] {\n grid-auto-flow: dense;\n grid-template-columns: var(--diffs-code-grid);\n overflow: var(--diffs-overflow-override, scroll) clip;\n overscroll-behavior-x: none;\n tab-size: var(--diffs-tab-size, 2);\n padding-top: var(--diffs-gap-block, var(--diffs-gap-fallback));\n padding-bottom: max(0px,\n calc(var(--diffs-gap-block, var(--diffs-gap-fallback)) -\n var(--diffs-scrollbar-gutter)));\n scrollbar-gutter: stable;\n align-self: flex-start;\n display: grid;\n }\n\n [data-diffs-scrollbar-measure] {\n opacity: 0;\n pointer-events: none;\n scrollbar-gutter: auto;\n grid-template-columns: none;\n width: 100px;\n height: 100px;\n padding: 0;\n position: absolute;\n top: -200px;\n left: -200px;\n }\n\n [data-container-size] {\n container-type: inline-size;\n }\n\n [data-code]::-webkit-scrollbar {\n width: 0;\n height: var(--diffs-scrollbar-gutter);\n }\n\n [data-code]::-webkit-scrollbar-track {\n background: none;\n }\n\n [data-code]::-webkit-scrollbar-thumb {\n background-color: #0000;\n background-clip: content-box;\n border: 1px solid #0000;\n border-radius: 3px;\n }\n\n [data-code]::-webkit-scrollbar-corner {\n background-color: #0000;\n }\n\n @supports ((-moz-appearance: none)) {\n [data-code] {\n scrollbar-width: thin;\n scrollbar-color: var(--diffs-bg-context) transparent;\n padding-bottom: var(--diffs-gap-block, var(--diffs-gap-fallback));\n }\n }\n\n [data-diffs-header] ~ [data-diff], [data-diffs-header] ~ [data-file] {\n & [data-code], &[data-overflow="wrap"], &[data-dehydrated][data-diff-type="split"][data-overflow="scroll"] {\n padding-top: 0;\n }\n }\n\n [data-gutter] {\n grid-template-rows: subgrid;\n grid-template-columns: subgrid;\n z-index: 3;\n background-color: var(--diffs-bg);\n grid-column: 1;\n display: grid;\n position: relative;\n\n & [data-gutter-buffer], & [data-column-number] {\n border-right: var(--diffs-gap-style, 2px solid var(--diffs-bg));\n }\n }\n\n [data-content] {\n grid-template-rows: subgrid;\n grid-template-columns: subgrid;\n background-color: var(--diffs-bg);\n grid-column: 2;\n min-width: 0;\n display: grid;\n }\n\n [data-diff-type="split"][data-overflow="wrap"], [data-dehydrated][data-diff-type="split"][data-overflow="scroll"] {\n grid-auto-flow: dense;\n grid-template-columns: repeat(2, var(--diffs-code-grid));\n padding-block: var(--diffs-gap-block, var(--diffs-gap-fallback));\n display: grid;\n\n & [data-code] {\n display: contents;\n }\n\n & [data-deletions] {\n & [data-gutter] {\n grid-column: 1;\n }\n\n & [data-content] {\n border-right: 1px solid var(--diffs-bg);\n grid-column: 2;\n }\n }\n\n & [data-additions] {\n & [data-gutter] {\n border-left: 1px solid var(--diffs-bg);\n grid-column: 3;\n }\n\n & [data-content] {\n grid-column: 4;\n }\n }\n }\n\n [data-dehydrated][data-diff-type="split"][data-overflow="scroll"] [data-content] {\n overflow: clip;\n }\n\n [data-overflow="scroll"] [data-gutter] {\n position: sticky;\n left: 0;\n }\n\n [data-interactive-lines] [data-line] {\n cursor: pointer;\n }\n\n [data-interactive-line-numbers] [data-column-number] {\n cursor: pointer;\n touch-action: none;\n }\n\n [data-content-buffer], [data-gutter-buffer] {\n user-select: none;\n min-height: 1lh;\n position: relative;\n }\n\n [data-gutter-buffer] {\n padding-left: 2ch;\n padding-right: 1ch;\n\n &:before {\n content: "";\n min-width: var(--diffs-min-number-column-width, var(--diffs-min-number-column-width-default, 3ch));\n display: block;\n }\n }\n\n [data-gutter-buffer="annotation"] {\n --diffs-annotation-bg: var(--diffs-bg-context-gutter);\n min-height: 0;\n }\n\n [data-gutter-buffer="buffer"] {\n --diffs-line-bg: var(--diffs-bg-context-gutter);\n }\n\n [data-content-buffer] {\n background-position: 5px 0;\n background-size: 8px 8px;\n background-origin: border-box;\n background-image: repeating-linear-gradient(-45deg,\n transparent,\n transparent calc(3px * 1.414),\n var(--diffs-bg-buffer) calc(3px * 1.414),\n var(--diffs-bg-buffer) calc(4px * 1.414));\n grid-column: 1;\n }\n\n [data-separator] {\n box-sizing: content-box;\n background-color: var(--diffs-bg);\n }\n\n [data-separator="simple"] {\n min-height: 4px;\n }\n\n [data-separator="line-info"], [data-separator="line-info-basic"], [data-separator="metadata"], [data-separator="simple"] {\n background-color: var(--diffs-bg-separator);\n }\n\n [data-separator="line-info"], [data-separator="line-info-basic"], [data-separator="metadata"] {\n height: 32px;\n position: relative;\n }\n\n [data-separator-wrapper] {\n user-select: none;\n fill: currentColor;\n background-color: var(--diffs-bg);\n align-items: center;\n height: 100%;\n display: flex;\n position: absolute;\n inset-inline: 0;\n }\n\n [data-content] [data-separator-wrapper] {\n display: none;\n }\n\n [data-separator="metadata"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n height: 100%;\n color: var(--diffs-fg-number);\n white-space: nowrap;\n text-overflow: ellipsis;\n min-width: min-content;\n padding-inline: 1ch;\n inset-inline: 100% auto;\n overflow: hidden;\n }\n\n [data-separator="line-info"] {\n margin-block: var(--diffs-gap-block, var(--diffs-gap-fallback));\n\n & [data-separator-wrapper] {\n min-width: 16px;\n }\n }\n\n [data-separator="line-info-basic"], [data-separator="metadata"] {\n margin-block: 0;\n }\n\n [data-separator="line-info"][data-separator-first] {\n margin-top: 0;\n }\n\n [data-separator="line-info"][data-separator-last] {\n margin-bottom: 0;\n }\n\n [data-expand-index] [data-separator-wrapper] {\n grid-template-columns: 32px auto;\n display: grid;\n }\n\n [data-expand-index] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 32px 32px auto;\n }\n\n [data-expand-button], [data-separator-content] {\n background-color: var(--diffs-bg-separator);\n flex: none;\n align-items: center;\n display: flex;\n }\n\n [data-expand-index] [data-separator-content]:hover {\n cursor: pointer;\n text-decoration: underline;\n }\n\n [data-expand-button] {\n cursor: pointer;\n min-width: 32px;\n color: var(--diffs-fg-number);\n border-right: 2px solid var(--diffs-bg);\n flex-shrink: 0;\n justify-content: center;\n align-self: stretch;\n\n &:hover {\n color: var(--diffs-fg);\n }\n\n &[data-expand-all-button] {\n display: none;\n }\n }\n\n [data-expand-down] [data-icon] {\n transform: scaleY(-1);\n }\n\n [data-separator-content] {\n height: 100%;\n color: var(--diffs-fg-number);\n flex: auto;\n justify-content: flex-start;\n padding: 0 1ch;\n overflow: hidden;\n }\n\n [data-separator="line-info"], [data-separator="line-info-basic"] {\n & [data-separator-content] {\n user-select: none;\n height: 100%;\n overflow: clip;\n }\n }\n\n [data-unmodified-lines] {\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 0 auto;\n min-width: 0;\n display: block;\n overflow: hidden;\n }\n\n @supports (width: 1cqi) {\n [data-unified] {\n & [data-separator="line-info"] [data-separator-wrapper] {\n padding-inline: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n width: 100cqi;\n\n & [data-separator-content] {\n border-radius: 6px;\n }\n }\n\n & [data-separator="line-info"][data-expand-index] [data-separator-wrapper] [data-separator-content] {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n [data-gutter] {\n & [data-separator="line-info"] [data-separator-wrapper] {\n padding-left: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n }\n\n & [data-separator="line-info"] [data-separator-content] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n & [data-separator="line-info"][data-expand-index] [data-separator-content] {\n border-top-left-radius: unset;\n border-bottom-left-radius: unset;\n }\n }\n\n [data-additions] {\n & [data-content] [data-separator="line-info"] {\n background-color: var(--diffs-bg);\n\n & [data-separator-wrapper] {\n display: none;\n }\n }\n\n & [data-gutter] [data-separator="line-info"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n height: 100%;\n display: block;\n\n & [data-separator-content], & [data-expand-button] {\n display: none;\n }\n }\n }\n\n [data-overflow="scroll"] [data-additions] [data-gutter] [data-separator="line-info"] [data-separator-wrapper] {\n width: calc(100cqi - var(--diffs-gap-inline, var(--diffs-gap-fallback)));\n }\n\n [data-overflow="wrap"] [data-additions] [data-content] [data-separator="line-info"] [data-separator-wrapper] {\n background-color: var(--diffs-bg-separator);\n height: 100%;\n margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n display: block;\n\n & [data-separator-content], & [data-expand-button] {\n display: none;\n }\n }\n\n [data-separator="line-info"] [data-separator-wrapper] {\n & [data-expand-both], & [data-expand-down], & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n }\n\n @media (pointer: fine) {\n [data-separator="line-info"] [data-separator-wrapper] {\n &[data-separator-multi-button] {\n & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: unset;\n }\n\n & [data-expand-down] {\n border-bottom-left-radius: 6px;\n border-top-left-radius: unset;\n }\n }\n }\n }\n }\n\n @media (pointer: coarse) {\n [data-separator="line-info-basic"] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 34px 34px auto;\n\n & [data-separator-content] {\n grid-column: unset;\n grid-row: unset;\n }\n }\n\n @supports (width: 1cqi) {\n [data-separator="line-info"] [data-separator-wrapper] {\n & [data-expand-both], & [data-expand-down], & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &[data-separator-multi-button] {\n & [data-expand-up] {\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n & [data-expand-down] {\n border-bottom-left-radius: unset;\n border-top-left-radius: unset;\n }\n }\n }\n }\n }\n\n @media (pointer: fine) {\n [data-separator-wrapper][data-separator-multi-button] {\n grid-template-rows: 50% 50%;\n display: grid;\n\n & [data-separator-content] {\n grid-area: 1 / 2 / -1;\n min-width: min-content;\n }\n\n & [data-expand-button] {\n grid-column: 1;\n }\n }\n\n [data-separator="line-info"] [data-separator-wrapper], [data-separator="line-info"] [data-separator-wrapper][data-separator-multi-button] {\n grid-template-columns: 34px auto;\n }\n\n [data-separator="line-info-basic"][data-expand-index] [data-separator-wrapper] {\n grid-template-columns: 100% auto;\n }\n\n [data-separator="line-info"], [data-separator="line-info-basic"] {\n & [data-separator-multi-button] {\n & [data-expand-up] {\n border-bottom: 1px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n }\n\n & [data-expand-down] {\n border-top: 1px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n }\n }\n }\n }\n\n [data-additions] [data-gutter] [data-separator-wrapper], [data-additions] [data-separator="line-info-basic"] [data-separator-wrapper], [data-content] [data-separator-wrapper] {\n display: none;\n }\n\n [data-line-annotation] {\n min-height: var(--diffs-annotation-min-height, 0);\n z-index: 2;\n }\n\n [data-merge-conflict-actions] {\n z-index: 2;\n }\n\n [data-separator="custom"] {\n grid-template-columns: subgrid;\n display: grid;\n }\n\n [data-line], [data-column-number], [data-no-newline] {\n padding-inline: 1ch;\n position: relative;\n }\n\n [data-indicators="classic"] [data-line] {\n padding-inline-start: 2ch;\n }\n\n [data-indicators="classic"] {\n & [data-line-type="change-addition"], & [data-line-type="change-deletion"] {\n &[data-no-newline], &[data-line] {\n &:before {\n user-select: none;\n width: 1ch;\n height: 1lh;\n display: inline-block;\n position: absolute;\n top: 0;\n left: 0;\n }\n }\n }\n\n & [data-line-type="change-addition"] {\n &[data-line], &[data-no-newline] {\n &:before {\n content: "+";\n color: var(--diffs-addition-base);\n }\n }\n }\n\n & [data-line-type="change-deletion"] {\n &[data-line], &[data-no-newline] {\n &:before {\n content: "-";\n color: var(--diffs-deletion-base);\n }\n }\n }\n }\n\n [data-indicators="bars"] {\n & [data-line-type="change-deletion"], & [data-line-type="change-addition"] {\n &[data-column-number] {\n &:before {\n content: "";\n user-select: none;\n contain: strict;\n width: 4px;\n height: 100%;\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n }\n }\n }\n\n & [data-line-type="change-deletion"] {\n &[data-column-number] {\n &:before {\n background-image: linear-gradient(0deg,\n var(--diffs-bg-deletion) 50%,\n var(--diffs-deletion-base) 50%);\n background-repeat: repeat;\n background-size: 2px 2px;\n background-size: calc(1lh / round(1lh / 2px))\n calc(1lh / round(1lh / 2px));\n }\n }\n }\n\n & [data-line-type="change-addition"] {\n &[data-column-number] {\n &:before {\n background-color: var(--diffs-addition-base);\n }\n }\n }\n }\n\n [data-overflow="wrap"] {\n & [data-line] {\n white-space: pre-wrap;\n word-break: break-word;\n }\n\n & [data-annotation-content] {\n word-break: break-word;\n }\n }\n\n [data-overflow="scroll"] [data-line] {\n white-space: pre;\n min-height: 1lh;\n }\n\n [data-column-number] {\n box-sizing: content-box;\n text-align: right;\n user-select: none;\n color: var(--diffs-fg-number);\n padding-left: 2ch;\n }\n\n [data-line-number-content] {\n min-width: var(--diffs-min-number-column-width, var(--diffs-min-number-column-width-default, 3ch));\n z-index: 1;\n display: inline-block;\n position: relative;\n }\n\n [data-disable-line-numbers] {\n & [data-gutter-buffer], & [data-column-number] {\n min-width: 4px;\n padding: 0;\n\n &:before {\n min-width: 0;\n }\n }\n\n & [data-line-number-content] {\n display: none;\n }\n\n & [data-gutter-utility-slot] {\n right: unset;\n justify-content: flex-start;\n left: 0;\n }\n\n &[data-indicators="bars"] [data-gutter-utility-slot] {\n left: 6px;\n }\n }\n\n [data-file][data-disable-line-numbers] {\n & [data-gutter-buffer], & [data-column-number] {\n border-right: 0;\n min-width: 0;\n }\n }\n\n [data-diff-span] {\n box-decoration-break: clone;\n border-radius: 3px;\n }\n\n [data-line-type="change-addition"] [data-diff-span] {\n background-color: var(--diffs-bg-addition-emphasis);\n }\n\n [data-line-type="change-deletion"] [data-diff-span] {\n background-color: var(--diffs-bg-deletion-emphasis);\n }\n\n [data-merge-conflict="marker-start"], [data-merge-conflict="marker-base"], [data-merge-conflict="marker-separator"], [data-merge-conflict="marker-end"] {\n color: var(--diffs-fg);\n padding-left: 1ch;\n }\n\n [data-merge-conflict="marker-start"], [data-merge-conflict="marker-end"] {\n align-items: center;\n display: flex;\n\n &:after {\n color: var(--diffs-fg-conflict-marker);\n font-size: .75rem;\n font-style: normal;\n line-height: 1.25rem;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n padding-left: 1ch;\n }\n }\n\n [data-merge-conflict="marker-start"]:after {\n content: "(Current Change)";\n }\n\n [data-merge-conflict="marker-end"]:after {\n content: "(Incoming Change)";\n }\n\n [data-merge-conflict-actions-content] {\n min-height: 1.75rem;\n font-family: var(--diffs-header-font-family, var(--diffs-header-font-fallback));\n color: var(--diffs-fg);\n align-items: center;\n gap: .25rem;\n padding-inline: .5rem;\n font-size: .75rem;\n line-height: 1.2;\n display: flex;\n }\n\n [data-merge-conflict-action] {\n appearance: none;\n color: var(--diffs-fg-number);\n font: inherit;\n cursor: pointer;\n background: none;\n border: 0;\n padding: 0;\n font-style: normal;\n }\n\n [data-merge-conflict-action]:hover {\n color: var(--diffs-fg);\n }\n\n [data-merge-conflict-action="current"]:hover {\n color: var(--diffs-addition-base);\n }\n\n [data-merge-conflict-action="incoming"]:hover {\n color: var(--diffs-modified-base);\n }\n\n [data-merge-conflict-action-separator] {\n color: var(--diffs-fg-number);\n opacity: .6;\n user-select: none;\n }\n\n [data-diffs-header="default"] {\n background-color: var(--diffs-bg);\n justify-content: space-between;\n align-items: center;\n gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n min-height: calc(1lh + (var(--diffs-gap-block, var(--diffs-gap-fallback)) * 3));\n z-index: 2;\n flex-direction: row;\n padding-inline: 16px;\n display: flex;\n position: relative;\n top: 0;\n }\n\n [data-header-content] {\n align-items: center;\n gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));\n white-space: nowrap;\n flex-direction: row;\n min-width: 0;\n display: flex;\n }\n\n [data-header-content] [data-prev-name], [data-header-content] [data-title] {\n text-overflow: ellipsis;\n white-space: nowrap;\n direction: rtl;\n min-width: 0;\n overflow: hidden;\n }\n\n [data-prev-name] {\n opacity: .7;\n }\n\n [data-rename-icon] {\n fill: currentColor;\n flex-grow: 0;\n flex-shrink: 0;\n }\n\n [data-diffs-header="default"] [data-metadata] {\n white-space: nowrap;\n align-items: center;\n gap: 1ch;\n display: flex;\n }\n\n [data-diffs-header="default"] [data-additions-count] {\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n color: var(--diffs-addition-base);\n }\n\n [data-diffs-header="default"] [data-deletions-count] {\n font-family: var(--diffs-font-family, var(--diffs-font-fallback));\n color: var(--diffs-deletion-base);\n }\n\n [data-change-icon] {\n fill: currentColor;\n flex-shrink: 0;\n }\n\n [data-change-icon="change"], [data-change-icon="rename-pure"], [data-change-icon="rename-changed"] {\n color: var(--diffs-modified-base);\n }\n\n [data-change-icon="new"] {\n color: var(--diffs-addition-base);\n }\n\n [data-change-icon="deleted"] {\n color: var(--diffs-deletion-base);\n }\n\n [data-change-icon="file"] {\n opacity: .6;\n }\n\n [data-annotation-content] {\n z-index: 2;\n isolation: isolate;\n white-space: normal;\n align-self: flex-start;\n min-width: 0;\n display: flow-root;\n position: relative;\n }\n\n [data-overflow="scroll"] [data-annotation-content], [data-overflow="scroll"] [data-merge-conflict-actions-content] {\n width: var(--diffs-column-content-width, auto);\n left: var(--diffs-column-number-width, 0);\n position: sticky;\n }\n\n [data-annotation-slot] {\n text-wrap-mode: wrap;\n word-break: normal;\n white-space-collapse: collapse;\n }\n\n [data-gutter-utility-slot] {\n touch-action: none;\n justify-content: flex-end;\n display: flex;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n }\n\n [data-utility-button] {\n appearance: none;\n cursor: pointer;\n width: 1lh;\n height: 1lh;\n font-size: var(--diffs-font-size, 13px);\n line-height: var(--diffs-line-height, 20px);\n background-color: var(--diffs-modified-base);\n color: var(--diffs-bg);\n fill: currentColor;\n z-index: 4;\n touch-action: none;\n border: none;\n border-radius: 4px;\n justify-content: center;\n align-items: center;\n margin-right: calc(-1lh + 1ch);\n padding: 0;\n display: flex;\n position: relative;\n\n &:before {\n content: "";\n display: block;\n position: absolute;\n inset: 0 0 0 -4px;\n }\n }\n\n [data-decoration-bar-stack] {\n pointer-events: none;\n isolation: isolate;\n z-index: 1;\n background-color: var(--diffs-decoration-bar-color, transparent);\n box-sizing: content-box;\n border-left: 2px solid var(--diffs-bg);\n border-right: 2px solid var(--diffs-bg);\n width: 6px;\n position: absolute;\n top: 0;\n bottom: 0;\n right: -2px;\n\n [data-decoration-bar-depth="1"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 20%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-depth="2"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 45%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-depth="3"] & {\n background-color: color-mix(in lab,\n var(--diffs-bg) 65%,\n var(--diffs-decoration-bar-color, transparent));\n }\n\n [data-decoration-bar-start] & {\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n }\n\n [data-decoration-bar-end] & {\n z-index: 3;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 5px;\n }\n }\n\n [data-placeholder] {\n contain: strict;\n }\n\n [data-error-wrapper] {\n padding: var(--diffs-gap-block, var(--diffs-gap-fallback))\n var(--diffs-gap-inline, var(--diffs-gap-fallback));\n scrollbar-width: none;\n max-height: 400px;\n overflow: auto;\n\n & [data-error-message] {\n color: var(--diffs-deletion-base);\n font-size: 18px;\n font-weight: bold;\n }\n\n & [data-error-stack] {\n color: var(--diffs-fg-number);\n }\n }\n}\n\n@layer theme, rendered, unsafe;\n'),t.adoptedStyleSheets=[e]}connectedCallback(){nA(this.shadowRoot??this.attachShadow({mode:"open"}))}}customElements.define(b,t)}async function nN(e,t=300){let n;try{await Promise.race([e(),new Promise(e=>{n=setTimeout(e,t)})])}finally{null!=n&&clearTimeout(n)}}function nM({oldFile:e,newFile:t},n){if(void 0!==e||void 0!==t){if(void 0===e||void 0===t)throw Error(`${n}: Pass null for an intentionally missing oldFile or newFile side`);if(null===e&&null===t)throw Error(`${n}: You must pass oldFile, newFile, or both`);return{oldFile:e,newFile:t}}}function nI(e){return""!==e?e.split(v):[]}function nD(e,t,n){let i="clone"===e?{...t,hunks:t.hunks.map(e=>({...e,hunkContent:e.hunkContent.map(e=>({...e}))})),deletionLines:[...t.deletionLines],additionLines:[...t.additionLines]}:t;if(!i.isPartial)throw Error("hydratePartialDiff: fileDiff must be partial");switch(i.type){case"change":case"rename-changed":return function(e,t,n){let i=nI(t.contents),r=nI(n.contents),{hunks:o,splitLineCount:a,unifiedLineCount:l}=function(e,t){let n=0,i=0,r=0,o=[];for(let t of e){var a;let e=Math.max(t.additionStart-1,0),l=Math.max(t.deletionStart-1,0),s=e,d=l,u=0,h=0,c=0,f=0,p=[];for(let e of t.hunkContent){if("context"===e.type){p.push({...e,additionLineIndex:s,deletionLineIndex:d}),s+=e.lines,d+=e.lines,c+=e.lines,f+=e.lines;continue}p.push({...e,additionLineIndex:s,deletionLineIndex:d}),s+=e.additions,d+=e.deletions,u+=e.additions,h+=e.deletions,c+=Math.max(e.additions,e.deletions),f+=e.additions+e.deletions}let m=Math.max((a=t.additionStart,a-(0!==t.additionCount)-r),0);o.push({...t,collapsedBefore:m,additionLineIndex:e,deletionLineIndex:l,additionLines:u,deletionLines:h,hunkContent:p,splitLineStart:n+m,unifiedLineStart:i+m,splitLineCount:c,unifiedLineCount:f}),n+=m+c,i+=m+f,r=I(t.additionStart,t.additionCount)}if(o.length>0){let e=o[o.length-1],r=Math.max(t-I(e.additionStart,e.additionCount),0);n+=r,i+=r}return{hunks:o,splitLineCount:n,unifiedLineCount:i}}(e.hunks,r.length);return e.hunks=o,e.splitLineCount=a,e.unifiedLineCount=l,e.isPartial=!1,e.deletionLines=i,e.additionLines=r,nO(e,t,n),e}(i,function(e,t){if(null==t.oldFile)throw Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires oldFile`);return t.oldFile}(i,n),nH(i,n));case"rename-pure":{let e=nH(i,n);var r=i,o=n;if(null!==o.oldFile)throw Error(`hydratePartialDiff: ${r.type} diff for ${r.name} requires oldFile to be null`);let t=nI(e.contents);return i.isPartial=!1,i.deletionLines=t,i.additionLines=t,nO(i,null,e),i}}throw Error(`hydratePartialDiff: ${i.type} diffs cannot be hydrated from loaded files`)}function nH(e,t){if(null==t.newFile)throw Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires newFile`);return t.newFile}function nO(e,t,n){var i,r;let o=null!=e.cacheKey?`${e.cacheKey}:hydrated`:(i=t,r=n,null!=i&&null!=r?null!=i.cacheKey&&null!=r.cacheKey?`${i.cacheKey}:${r.cacheKey}`:void 0:i?.cacheKey??r?.cacheKey);null==o?delete e.cacheKey:e.cacheKey=o}function nF({diff:e,diffStyle:t,startingLine:n=0,totalLines:i=1/0,expandedHunks:r,collapsedContextThreshold:o=1,callback:a}){let l=function({diff:e,diffStyle:t,startingLine:n,expandedHunks:i,collapsedContextThreshold:r}){if(n<=0||"both"===t)return{hunkIndex:0,splitCount:0,unifiedCount:0};let o=function({diff:e,expandedHunks:t,collapsedContextThreshold:n}){let i=0,r=0,o=e.hunks.length-1,a=[{splitCount:0,unifiedCount:0}];for(let l=0;l<e.hunks.length;l++){let s=e.hunks[l];if(null==s)throw Error("iterateOverDiff: invalid hunk summary index");let d=ex({isPartial:e.isPartial,rangeSize:s.collapsedBefore,expandedHunks:t,hunkIndex:l,collapsedContextThreshold:n}),u=d.fromStart+d.fromEnd;i+=u+s.splitLineCount,r+=u+s.unifiedLineCount;let h=l===o?eL({fileDiff:e,hunkIndex:l,expandedHunks:t,collapsedContextThreshold:n,errorPrefix:"iterateOverDiff"}):void 0;if(null!=h){let e=h.fromStart+h.fromEnd;i+=e,r+=e}a.push({splitCount:i,unifiedCount:r})}return a}({diff:e,expandedHunks:i,collapsedContextThreshold:r}),a=0,l=e.hunks.length-1,s=e.hunks.length;for(;a<=l;){let e=a+l>>1,i=o[e+1];if(null==i)throw Error("iterateOverDiff: invalid hunk prefix index");("unified"===t?i.unifiedCount:i.splitCount)>n?(s=e,l=e-1):a=e+1}if(s>=e.hunks.length){let t=o[e.hunks.length];if(null==t)throw Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:e.hunks.length,splitCount:t.splitCount,unifiedCount:t.unifiedCount}}let d=o[s];if(null==d)throw Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:s,splitCount:d.splitCount,unifiedCount:d.unifiedCount}}({diff:e,diffStyle:t,startingLine:n,expandedHunks:r,collapsedContextThreshold:o}),s={viewportStart:n,viewportEnd:n+i,isWindowedHighlight:n>0||i<1/0,splitCount:l.splitCount,unifiedCount:l.unifiedCount,finalHunkIndex:e.hunks.length-1,shouldBreak(){if(!s.isWindowedHighlight)return!1;let e=s.unifiedCount>=n+i,r=s.splitCount>=n+i;return"unified"===t?e:"split"===t?r:e&&r},shouldSkip(e,i){if(!s.isWindowedHighlight)return!1;let r=e>0&&s.unifiedCount+e<=n,o=i>0&&s.splitCount+i<=n;return"unified"===t?r:"split"===t?o:r&&o},incrementCounts(e,n){("unified"===t||"both"===t)&&(s.unifiedCount+=e),("split"===t||"both"===t)&&(s.splitCount+=n)},isInWindow(e,n){if(!s.isWindowedHighlight)return!0;let i=s.isInUnifiedWindow(e),r=s.isInSplitWindow(n);return"unified"===t?i:"split"===t?r:i||r},isInUnifiedWindow:e=>!s.isWindowedHighlight||s.unifiedCount>=n-e&&s.unifiedCount<n+i,isInSplitWindow:e=>!s.isWindowedHighlight||s.splitCount>=n-e&&s.splitCount<n+i,emit:(e,n=!1)=>(n||("unified"===t?s.incrementCounts(1,0):"split"===t?s.incrementCounts(0,1):s.incrementCounts(1,1)),a(e)??!1)};e:for(let n=l.hunkIndex;n<e.hunks.length;n++){var d,u;let i=e.hunks[n];if(null==i)throw Error("iterateOverDiff: invalid hunk index");if(s.shouldBreak())break;let a=(d=i.deletionStart,d-(0!==i.deletionCount)),l=(u=i.additionStart,u-(0!==i.additionCount)),f=e.isPartial||0!==i.deletionCount?i.deletionLineIndex:a,p=e.isPartial||0!==i.additionCount?i.additionLineIndex:l,m=ex({isPartial:e.isPartial,rangeSize:i.collapsedBefore,expandedHunks:r,hunkIndex:n,collapsedContextThreshold:o}),g=n===s.finalHunkIndex?eL({fileDiff:e,hunkIndex:n,expandedHunks:r,collapsedContextThreshold:o,errorPrefix:"iterateOverDiff"}):void 0,b=m.fromStart+m.fromEnd;function h(e,n){return null==g||g.collapsedLines<=0||g.fromStart+g.fromEnd>0?0:"unified"===t?e===i.unifiedLineStart+i.unifiedLineCount-1?g.collapsedLines:0:n===i.splitLineStart+i.splitLineCount-1?g.collapsedLines:0}let y=0===m.collapsedLines;function c(){return y?0:(y=!0,m.collapsedLines)}if(s.shouldSkip(b,b))s.incrementCounts(b,b),c();else{let e=i.unifiedLineStart-m.rangeSize,r=i.splitLineStart-m.rangeSize,o=f-m.rangeSize,d=p-m.rangeSize,u=a+1-m.rangeSize,h=l+1-m.rangeSize;if(n$(s,m.fromStart,t,t=>s.emit({hunkIndex:n,hunk:i,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:u+t,lineIndex:o+t,noEOFCR:!1,unifiedLineIndex:e+t,splitLineIndex:r+t},additionLine:{unifiedLineIndex:e+t,splitLineIndex:r+t,lineIndex:d+t,lineNumber:h+t,noEOFCR:!1}}))||(e=i.unifiedLineStart-m.fromEnd,r=i.splitLineStart-m.fromEnd,o=f-m.fromEnd,d=p-m.fromEnd,u=a+1-m.fromEnd,h=l+1-m.fromEnd,n$(s,m.fromEnd,t,t=>s.emit({hunkIndex:n,hunk:i,collapsedBefore:c(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:u+t,lineIndex:o+t,noEOFCR:!1,unifiedLineIndex:e+t,splitLineIndex:r+t},additionLine:{unifiedLineIndex:e+t,splitLineIndex:r+t,lineIndex:d+t,lineNumber:h+t,noEOFCR:!1}}),()=>{c()})))break}let v=i.unifiedLineStart,k=i.splitLineStart,S=f,C=p,x=a+1,w=l+1,L=i.hunkContent.at(-1);for(let e of i.hunkContent){if(s.shouldBreak())break e;let r=e===L;if("context"===e.type){if(s.shouldSkip(e.lines,e.lines))s.incrementCounts(e.lines,e.lines),c();else if(n$(s,e.lines,t,t=>{let o=r&&t===e.lines-1,a=v+t,l=k+t;return s.emit({hunkIndex:n,hunk:i,collapsedBefore:c(),collapsedAfter:h(a,l),type:"context",deletionLine:{lineNumber:x+t,lineIndex:S+t,noEOFCR:o&&i.noEOFCRDeletions,unifiedLineIndex:a,splitLineIndex:l},additionLine:{unifiedLineIndex:a,splitLineIndex:l,lineIndex:C+t,lineNumber:w+t,noEOFCR:o&&i.noEOFCRAdditions}})},()=>{c()}))break e;v+=e.lines,k+=e.lines,S+=e.lines,C+=e.lines,x+=e.lines,w+=e.lines}else{let o=Math.max(e.deletions,e.additions),a=e.deletions+e.additions;if(!s.shouldSkip(a,o)){let l=function(e,t,n){if(!e.isWindowedHighlight)return[[0,"unified"===n?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];let i="unified"===n?"unified":"split",r=[];function o(t,n){if(t+n<=e.viewportStart||t>=e.viewportEnd)return;let i=Math.max(0,e.viewportStart-t),r=Math.min(n,e.viewportEnd-t);return r>i?[i,r]:void 0}function a(e,n){if(null==e)return;let[o,a]="split"===i?e:"additions"===n?[e[0]+t.deletions,e[1]+t.deletions]:e;a>o&&r.push([o,a])}if("split"!==n&&(a(o(e.unifiedCount,t.deletions),"deletions"),a(o(e.unifiedCount+t.deletions,t.additions),"additions")),"unified"!==n&&(a(o(e.splitCount,t.deletions),"deletions"),a(o(e.splitCount,t.additions),"additions")),0===r.length)return r;r.sort((e,t)=>e[0]-t[0]);let l=[r[0]];for(let[e,t]of r.slice(1)){let n=l[l.length-1];e<=n[1]?n[1]=Math.max(n[1],t):l.push([e,t])}return l}(s,e,t);for(let[d,u]of((l[0]?.[0]??0)>0&&c(),l))for(let l=d;l<u;l++){let d=h(v+l,"unified"===t?k+(l<e.deletions?l:l-e.deletions):k+l);if(s.emit(function({hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,diffStyle:r,index:o,unifiedLineIndex:a,splitLineIndex:l,additionLineIndex:s,deletionLineIndex:d,additionLineNumber:u,deletionLineNumber:h,content:c,isLastContent:f,unifiedCount:p,splitCount:m}){let g=o<c.deletions?a+o:void 0,b="unified"===r?o>=c.deletions?a+o:void 0:o<c.additions?a+c.deletions+o:void 0,y="unified"===r?l+(o<c.deletions?o:o-c.deletions):l+o,v=o<c.deletions?d+o:void 0,k=o<c.deletions?h+o:void 0,S="unified"===r?o>=c.deletions?s+(o-c.deletions):void 0:o<c.additions?s+o:void 0,C="unified"===r?o>=c.deletions?u+(o-c.deletions):void 0:o<c.additions?u+o:void 0,x="unified"===r?f&&o===c.deletions-1&&t.noEOFCRDeletions:f&&o===m-1&&t.noEOFCRDeletions,w="unified"===r?f&&o===p-1&&t.noEOFCRAdditions:f&&o===m-1&&t.noEOFCRAdditions,L=null!=v&&null!=k&&null!=g?{lineNumber:k,lineIndex:v,noEOFCR:x,unifiedLineIndex:g,splitLineIndex:y}:void 0,A=null!=S&&null!=C&&null!=b?{unifiedLineIndex:b,splitLineIndex:y,lineIndex:S,lineNumber:C,noEOFCR:w}:void 0;if(null==L&&null!=A)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:void 0,additionLine:A};if(null!=L&&null==A)return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:L,additionLine:void 0};if(null==L||null==A)throw Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:i,deletionLine:L,additionLine:A}}({hunkIndex:n,hunk:i,collapsedBefore:c(),collapsedAfter:d,diffStyle:t,index:l,unifiedLineIndex:v,splitLineIndex:k,additionLineIndex:C,deletionLineIndex:S,additionLineNumber:w,deletionLineNumber:x,content:e,isLastContent:r,unifiedCount:a,splitCount:o}),!0))break e}}c(),s.incrementCounts(a,o),v+=a,k+=o,S+=e.deletions,C+=e.additions,x+=e.deletions,w+=e.additions}}if(null!=g){let{collapsedLines:n,fromStart:i,fromEnd:r}=g,o=i+r;if(n$(s,o,t,t=>{let i=t===o-1;return s.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:i?n:0,type:"context-expanded",deletionLine:{lineNumber:x+t,lineIndex:S+t,noEOFCR:!1,unifiedLineIndex:v+t,splitLineIndex:k+t},additionLine:{unifiedLineIndex:v+t,splitLineIndex:k+t,lineIndex:C+t,lineNumber:w+t,noEOFCR:!1}})},void 0,()=>s.shouldBreak()))break}}}function n$(e,t,n,i,r,o){let[a,l]=function(e,t,n){if(!e.isWindowedHighlight||t<=0)return[0,t];let i=[];function r(n){let r=Math.max(0,e.viewportStart-n),o=Math.min(t,e.viewportEnd-n);o>r&&i.push([r,o])}if("split"!==n&&r(e.unifiedCount),"unified"!==n&&r(e.splitCount),0===i.length)return[0,0];let o=i[0][0],a=i[0][1];for(let e=1;e<i.length;e++){let t=i[e];o=Math.min(o,t[0]),a=Math.max(a,t[1])}return[o,a]}(e,t,n);a>0&&(e.incrementCounts(a,a),r?.());let s=a;for(;s<t;){if(o?.()===!0)return!0;if(s>=l){e.incrementCounts(t-s,t-s);break}if(e.isInWindow(0,0)){if(!0===i(s))return!0}else e.incrementCounts(1,1);s++}return!1}var nU=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(e,t,n){if(null==t||null==n)for(let i of e.children??[])i instanceof HTMLElement&&("deletions"in i.dataset?t=i:"additions"in i.dataset&&(n=i));null==n||null==t?this.cleanUp():(this.codeDeletions!==t&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=t,t.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==n&&(this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=n,n.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0)}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};function nz(e){return 0===e.startingLine&&e.totalLines===1/0&&0===e.bufferBefore&&0===e.bufferAfter}let nB=new Map,nG={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","\uD83D\uDD25":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",mts:"typescript",cts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function nj(e){if(nB.has(e))return nB.get(e)??"text";if(null!=nG[e])return nG[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(null!=t){if(nB.has(t[1]))return nB.get(t[1])??"text";if(null!=nG[t[1]])return nG[t[1]]??"text"}let n=e.match(/\.([^.]+)$/)?.[1]??"";return nB.has(n)?nB.get(n)??"text":nG[n]??"text"}function nW(e){let t=e.lang??nj(e.name),n=e.lang??(null!=e.prevName?nj(e.prevName):"text");return"text"===t&&"text"===n}function nV(e){let t=e[0];return null!=t&&t.length>0?t:void 0}function nq(e){return 0===e.startingLine&&e.totalLines>0}let nK=new Map,nX=new Map,nQ=new Map,nJ=new Set;function nY(e){for(let t of Array.isArray(e)?e:[e])if("text"!==t&&"ansi"!==t&&!nJ.has(t))return!1;return!0}function nZ(e,t){for(let n of e=Array.isArray(e)?e:[e]){if(nJ.has(n.name))continue;let e=nK.get(n.name);null==e&&(e=n,nK.set(n.name,e)),nJ.add(e.name),t.loadLanguageSync(e.data)}}function n0(){return"u">typeof WorkerGlobalScope&&"u">typeof self&&self instanceof WorkerGlobalScope}let n1=[{id:"abap",name:"ABAP",import:()=>n.e("5319").then(n.bind(n,6698))},{id:"actionscript-3",name:"ActionScript",aliases:["actionscript","as3"],import:()=>n.e("4704").then(n.bind(n,9571))},{id:"ada",name:"Ada",import:()=>n.e("5453").then(n.bind(n,172))},{id:"ahk",name:"AutoHotkey",aliases:["ahk1"],import:()=>n.e("9671").then(n.bind(n,7162))},{id:"ahk2",name:"AutoHotkey2",import:()=>n.e("857").then(n.bind(n,3488))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("829")]).then(n.bind(n,8124))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("4489"),n.e("829"),n.e("4996")]).then(n.bind(n,495))},{id:"apache",name:"Apache Conf",import:()=>n.e("8423").then(n.bind(n,970))},{id:"apex",name:"Apex",import:()=>n.e("7993").then(n.bind(n,1344))},{id:"apl",name:"APL",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("7822")]).then(n.bind(n,2701))},{id:"applescript",name:"AppleScript",import:()=>n.e("7774").then(n.bind(n,5677))},{id:"ara",name:"Ara",import:()=>n.e("7135").then(n.bind(n,6130))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e("2810").then(n.bind(n,9153))},{id:"asm",name:"Assembly",import:()=>n.e("7714").then(n.bind(n,3081))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("1274"),n.e("8250"),n.e("5458")]).then(n.bind(n,7097))},{id:"awk",name:"AWK",import:()=>n.e("1680").then(n.bind(n,2563))},{id:"ballerina",name:"Ballerina",import:()=>n.e("4301").then(n.bind(n,6748))},{id:"bat",name:"Batch File",aliases:["batch","cmd"],import:()=>n.e("3886").then(n.bind(n,5645))},{id:"beancount",name:"Beancount",import:()=>n.e("5752").then(n.bind(n,4139))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e("2301").then(n.bind(n,5212))},{id:"bibtex",name:"BibTeX",import:()=>n.e("9623").then(n.bind(n,4634))},{id:"bicep",name:"Bicep",import:()=>n.e("5518").then(n.bind(n,29))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e("9990").then(n.bind(n,1013))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("8601"),n.e("7459")]).then(n.bind(n,3742))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e("8252").then(n.bind(n,4679))},{id:"c",name:"C",import:()=>n.e("9048").then(n.bind(n,507))},{id:"c3",name:"C3",import:()=>n.e("5687").then(n.bind(n,2826))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e("2918").then(n.bind(n,5861))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e("1875"),n.e("8481")]).then(n.bind(n,9144))},{id:"chapel",name:"Chapel",aliases:["chpl"],import:()=>Promise.all([n.e("9048"),n.e("658")]).then(n.bind(n,553))},{id:"clarity",name:"Clarity",import:()=>n.e("117").then(n.bind(n,8532))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e("2645").then(n.bind(n,4868))},{id:"cmake",name:"CMake",import:()=>n.e("7330").then(n.bind(n,5593))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("1498")]).then(n.bind(n,4945))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e("4496").then(n.bind(n,1715))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e("6781").then(n.bind(n,9404))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e("7858"),n.e("4049")]).then(n.bind(n,4728))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e("9557").then(n.bind(n,1748))},{id:"coq",name:"Rocq",import:()=>n.e("9020").then(n.bind(n,8615))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e("9048"),n.e("2082")]).then(n.bind(n,8393))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9048"),n.e("8601"),n.e("1044"),n.e("379")]).then(n.bind(n,8278))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e("6106").then(n.bind(n,5777))},{id:"css",name:"CSS",import:()=>n.e("5466").then(n.bind(n,2593))},{id:"csv",name:"CSV",import:()=>n.e("8861").then(n.bind(n,7948))},{id:"cue",name:"CUE",import:()=>n.e("5542").then(n.bind(n,3781))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e("4994").then(n.bind(n,8585))},{id:"d",name:"D",import:()=>n.e("4445").then(n.bind(n,7916))},{id:"dart",name:"Dart",import:()=>n.e("5596").then(n.bind(n,2055))},{id:"dax",name:"DAX",import:()=>n.e("3712").then(n.bind(n,2355))},{id:"desktop",name:"Desktop",import:()=>n.e("9285").then(n.bind(n,1892))},{id:"diff",name:"Diff",import:()=>n.e("1050").then(n.bind(n,8257))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e("233").then(n.bind(n,5536))},{id:"dotenv",name:"dotEnv",import:()=>n.e("8767").then(n.bind(n,210))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e("8095").then(n.bind(n,5906))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("616")]).then(n.bind(n,7899))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("8346")]).then(n.bind(n,7745))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e("9048"),n.e("5661")]).then(n.bind(n,4764))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e("8295").then(n.bind(n,8826))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("8349"),n.e("5294")]).then(n.bind(n,1005))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e("6380"),n.e("7454")]).then(n.bind(n,5357))},{id:"fennel",name:"Fennel",import:()=>n.e("4613").then(n.bind(n,9908))},{id:"fish",name:"Fish",import:()=>n.e("3123").then(n.bind(n,702))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e("2067").then(n.bind(n,3758))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e("1045"),n.e("4447")]).then(n.bind(n,4370))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e("1045").then(n.bind(n,2420))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e("6380"),n.e("855")]).then(n.bind(n,9386))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>Promise.all([n.e("1297"),n.e("5530")]).then(n.bind(n,1953))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e("1297").then(n.bind(n,7480))},{id:"gdshader",name:"GDShader",import:()=>n.e("3323").then(n.bind(n,9494))},{id:"genie",name:"Genie",import:()=>n.e("1565").then(n.bind(n,4108))},{id:"gherkin",name:"Gherkin",import:()=>n.e("2707").then(n.bind(n,7918))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e("8115").then(n.bind(n,5326))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e("1044"),n.e("7662")]).then(n.bind(n,6477))},{id:"gleam",name:"Gleam",import:()=>n.e("7113").then(n.bind(n,7856))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9120")]).then(n.bind(n,2963))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("6226")]).then(n.bind(n,5545))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e("9048"),n.e("3945")]).then(n.bind(n,9552))},{id:"gn",name:"GN",import:()=>n.e("5280").then(n.bind(n,6099))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e("198").then(n.bind(n,1365))},{id:"go",name:"Go",import:()=>n.e("7655").then(n.bind(n,5498))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e("7858"),n.e("1274"),n.e("8250"),n.e("3008"),n.e("1852")]).then(n.bind(n,1047))},{id:"groovy",name:"Groovy",import:()=>n.e("8375").then(n.bind(n,4922))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("8601"),n.e("2816")]).then(n.bind(n,83))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("9467")]).then(n.bind(n,7942))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("4025")]).then(n.bind(n,1792))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e("5917").then(n.bind(n,2028))},{id:"haxe",name:"Haxe",import:()=>n.e("4145").then(n.bind(n,4232))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e("6122").then(n.bind(n,1489))},{id:"hjson",name:"Hjson",import:()=>n.e("7143").then(n.bind(n,3162))},{id:"hlsl",name:"HLSL",import:()=>n.e("3474").then(n.bind(n,8281))},{id:"html",name:"HTML",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844")]).then(n.bind(n,4735))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("5712")]).then(n.bind(n,9251))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e("7858"),n.e("1274"),n.e("9109"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("5813")]).then(n.bind(n,9972))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e("7858"),n.e("1274"),n.e("9109"),n.e("8250"),n.e("3008"),n.e("1852"),n.e("5708")]).then(n.bind(n,647))},{id:"hxml",name:"HXML",import:()=>Promise.all([n.e("4145"),n.e("3520")]).then(n.bind(n,4595))},{id:"hy",name:"Hy",import:()=>n.e("8286").then(n.bind(n,5517))},{id:"imba",name:"Imba",import:()=>n.e("9770").then(n.bind(n,769))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e("6883").then(n.bind(n,4094))},{id:"java",name:"Java",import:()=>n.e("9109").then(n.bind(n,9524))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e("7858").then(n.bind(n,5065))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1348")]).then(n.bind(n,7407))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e("7858"),n.e("2202")]).then(n.bind(n,4833))},{id:"json",name:"JSON",import:()=>n.e("6563").then(n.bind(n,4190))},{id:"json5",name:"JSON5",import:()=>n.e("3432").then(n.bind(n,4283))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e("4798").then(n.bind(n,2621))},{id:"jsonl",name:"JSON Lines",import:()=>n.e("9927").then(n.bind(n,4682))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e("9940").then(n.bind(n,8799))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e("5970").then(n.bind(n,2345))},{id:"jsx",name:"JSX",import:()=>n.e("3008").then(n.bind(n,8755))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e("7858"),n.e("9048"),n.e("8601"),n.e("2082"),n.e("1875"),n.e("9328"),n.e("5631")]).then(n.bind(n,9795))},{id:"just",name:"Just",aliases:["justfile"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("9060"),n.e("9663")]).then(n.bind(n,6530))},{id:"kdl",name:"KDL",import:()=>n.e("7880").then(n.bind(n,1243))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e("544").then(n.bind(n,9459))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e("5393").then(n.bind(n,8344))},{id:"latex",name:"LaTeX",import:()=>n.e("4525").then(n.bind(n,9628))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e("7921").then(n.bind(n,4888))},{id:"less",name:"Less",import:()=>n.e("1064").then(n.bind(n,5819))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("109")]).then(n.bind(n,6380))},{id:"llvm",name:"LLVM IR",import:()=>n.e("1216").then(n.bind(n,7619))},{id:"log",name:"Log file",import:()=>n.e("8447").then(n.bind(n,5394))},{id:"logo",name:"Logo",import:()=>n.e("7950").then(n.bind(n,3341))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e("9048"),n.e("4179")]).then(n.bind(n,8974))},{id:"luau",name:"Luau",import:()=>n.e("2536").then(n.bind(n,571))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e("8943").then(n.bind(n,5202))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e("6380").then(n.bind(n,8311))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e("5466"),n.e("1274"),n.e("4489"),n.e("1064"),n.e("6427")]).then(n.bind(n,2982))},{id:"matlab",name:"MATLAB",import:()=>n.e("2748").then(n.bind(n,9991))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("6380"),n.e("6231")]).then(n.bind(n,2138))},{id:"mdx",name:"MDX",import:()=>n.e("4058").then(n.bind(n,5393))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e("1446").then(n.bind(n,8757))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e("8799").then(n.bind(n,2146))},{id:"mojo",name:"Mojo",import:()=>n.e("8178").then(n.bind(n,6025))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e("4261").then(n.bind(n,7876))},{id:"move",name:"Move",import:()=>n.e("7404").then(n.bind(n,6007))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e("485").then(n.bind(n,5540))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e("96").then(n.bind(n,5043))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>n.e("655").then(n.bind(n,2130))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e("9048"),n.e("3121")]).then(n.bind(n,3848))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("9048"),n.e("6380"),n.e("2881"),n.e("2227")]).then(n.bind(n,88))},{id:"nix",name:"Nix",import:()=>n.e("3115").then(n.bind(n,3222))},{id:"nsis",name:"NSIS",import:()=>n.e("1558").then(n.bind(n,2373))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e("1284").then(n.bind(n,9935))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e("7234").then(n.bind(n,7401))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e("8698").then(n.bind(n,9793))},{id:"ocaml",name:"OCaml",import:()=>n.e("1473").then(n.bind(n,4984))},{id:"odin",name:"Odin",import:()=>n.e("6829").then(n.bind(n,572))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e("5462").then(n.bind(n,4997))},{id:"org",name:"Org Markup",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("6380"),n.e("4489"),n.e("1064"),n.e("193"),n.e("6106"),n.e("7655"),n.e("9060"),n.e("7234"),n.e("4525"),n.e("7454"),n.e("3707"),n.e("4049"),n.e("8375"),n.e("1473"),n.e("2881"),n.e("2247")]).then(n.bind(n,8666))},{id:"pascal",name:"Pascal",import:()=>n.e("4705").then(n.bind(n,2360))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("8601"),n.e("9060"),n.e("6468")]).then(n.bind(n,4959))},{id:"php",name:"PHP",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9109"),n.e("8601"),n.e("193"),n.e("4087")]).then(n.bind(n,2408))},{id:"pkl",name:"Pkl",import:()=>n.e("2426").then(n.bind(n,641))},{id:"plsql",name:"PL/SQL",import:()=>n.e("6157").then(n.bind(n,8684))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e("6739").then(n.bind(n,3571))},{id:"polar",name:"Polar",import:()=>n.e("2605").then(n.bind(n,3484))},{id:"postcss",name:"PostCSS",import:()=>n.e("7992").then(n.bind(n,363))},{id:"powerquery",name:"PowerQuery",import:()=>n.e("7698").then(n.bind(n,137))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1","pwsh"],import:()=>n.e("452").then(n.bind(n,5503))},{id:"prisma",name:"Prisma",import:()=>n.e("4609").then(n.bind(n,840))},{id:"prolog",name:"Prolog",import:()=>n.e("702").then(n.bind(n,9341))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e("6959").then(n.bind(n,2002))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("9597")]).then(n.bind(n,1196))},{id:"puppet",name:"Puppet",import:()=>n.e("5703").then(n.bind(n,7562))},{id:"purescript",name:"PureScript",import:()=>n.e("5068").then(n.bind(n,5047))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e("1875").then(n.bind(n,2510))},{id:"qml",name:"QML",import:()=>Promise.all([n.e("7858"),n.e("703")]).then(n.bind(n,226))},{id:"qmldir",name:"QML Directory",import:()=>n.e("4796").then(n.bind(n,5207))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e("7372").then(n.bind(n,8903))},{id:"r",name:"R",import:()=>n.e("8012").then(n.bind(n,3554))},{id:"racket",name:"Racket",import:()=>n.e("575").then(n.bind(n,9618))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e("940").then(n.bind(n,8759))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("6106"),n.e("6309")]).then(n.bind(n,3908))},{id:"rbs",name:"RBS",aliases:["ruby-signature"],import:()=>n.e("7620").then(n.bind(n,335))},{id:"reg",name:"Windows Registry Script",import:()=>n.e("8439").then(n.bind(n,4330))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e("6956").then(n.bind(n,9255))},{id:"rel",name:"Rel",import:()=>n.e("3370").then(n.bind(n,3409))},{id:"riscv",name:"RISC-V",import:()=>n.e("8014").then(n.bind(n,45))},{id:"ron",name:"RON",import:()=>n.e("6378").then(n.bind(n,2849))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e("6308").then(n.bind(n,1967))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("6084")]).then(n.bind(n,3935))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("8349")]).then(n.bind(n,8972))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e("231").then(n.bind(n,5466))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e("8601"),n.e("9172")]).then(n.bind(n,1551))},{id:"sass",name:"Sass",import:()=>n.e("7403").then(n.bind(n,1318))},{id:"scala",name:"Scala",import:()=>n.e("3707").then(n.bind(n,8038))},{id:"scheme",name:"Scheme",import:()=>n.e("4498").then(n.bind(n,9449))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e("5466"),n.e("4489")]).then(n.bind(n,7136))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e("3384").then(n.bind(n,8731))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e("4885").then(n.bind(n,9764))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e("1044").then(n.bind(n,1215))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e("1044"),n.e("1495")]).then(n.bind(n,5066))},{id:"smalltalk",name:"GNU Smalltalk",import:()=>n.e("312").then(n.bind(n,155))},{id:"smithy",name:"Smithy",import:()=>n.e("7827").then(n.bind(n,1006))},{id:"solidity",name:"Solidity",import:()=>n.e("2872").then(n.bind(n,1147))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("2948")]).then(n.bind(n,879))},{id:"sparql",name:"SPARQL",import:()=>n.e("6024").then(n.bind(n,9259))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e("8306").then(n.bind(n,9145))},{id:"sql",name:"SQL",import:()=>n.e("8601").then(n.bind(n,1120))},{id:"ssh-config",name:"SSH Config",import:()=>n.e("7342").then(n.bind(n,6077))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e("8601"),n.e("7104")]).then(n.bind(n,8227))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e("3339").then(n.bind(n,886))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e("7858"),n.e("9842")]).then(n.bind(n,633))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("1274"),n.e("4458")]).then(n.bind(n,657))},{id:"swift",name:"Swift",import:()=>n.e("438").then(n.bind(n,5605))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e("7387").then(n.bind(n,4214))},{id:"systemd",name:"Systemd Units",import:()=>n.e("6254").then(n.bind(n,5389))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e("234").then(n.bind(n,2321))},{id:"tasl",name:"Tasl",import:()=>n.e("3793").then(n.bind(n,7096))},{id:"tcl",name:"Tcl",import:()=>n.e("5281").then(n.bind(n,8365))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("7655"),n.e("459")]).then(n.bind(n,582))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e("8725").then(n.bind(n,1124))},{id:"tex",name:"TeX",import:()=>n.e("3724").then(n.bind(n,2423))},{id:"toml",name:"TOML",import:()=>n.e("9297").then(n.bind(n,7176))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("331")]).then(n.bind(n,2918))},{id:"tsv",name:"TSV",import:()=>n.e("9556").then(n.bind(n,1327))},{id:"tsx",name:"TSX",import:()=>n.e("8250").then(n.bind(n,4609))},{id:"turtle",name:"Turtle",import:()=>n.e("6551").then(n.bind(n,8650))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("4489"),n.e("193"),n.e("1972")]).then(n.bind(n,1775))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e("1274").then(n.bind(n,2449))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e("8134").then(n.bind(n,8565))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("9109"),n.e("9048"),n.e("8601"),n.e("8250"),n.e("1044"),n.e("3008"),n.e("1852"),n.e("2082"),n.e("1875"),n.e("8349"),n.e("6380"),n.e("4489"),n.e("1064"),n.e("193"),n.e("6106"),n.e("7655"),n.e("9060"),n.e("7234"),n.e("4525"),n.e("7454"),n.e("3707"),n.e("4049"),n.e("8375"),n.e("438"),n.e("9328"),n.e("7387"),n.e("855"),n.e("1972"),n.e("452"),n.e("4795")]).then(n.bind(n,6614))},{id:"v",name:"V",import:()=>n.e("8531").then(n.bind(n,7502))},{id:"vala",name:"Vala",import:()=>n.e("6855").then(n.bind(n,9242))},{id:"vb",name:"Visual Basic",import:()=>n.e("877").then(n.bind(n,4908))},{id:"verilog",name:"Verilog",import:()=>n.e("7091").then(n.bind(n,5694))},{id:"vhdl",name:"VHDL",import:()=>n.e("9403").then(n.bind(n,9398))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e("3809").then(n.bind(n,3128))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("3844"),n.e("1274"),n.e("1337")]).then(n.bind(n,256))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e("7858"),n.e("4655")]).then(n.bind(n,2290))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e("7858"),n.e("5466"),n.e("4489"),n.e("1064"),n.e("3339"),n.e("670")]).then(n.bind(n,1917))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e("4785").then(n.bind(n,4776))},{id:"wasm",name:"WebAssembly",import:()=>n.e("1981").then(n.bind(n,4444))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e("5415").then(n.bind(n,2541))},{id:"wgsl",name:"WGSL",import:()=>n.e("7228").then(n.bind(n,6551))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e("6766").then(n.bind(n,1165))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e("2725").then(n.bind(n,1236))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e("5865").then(n.bind(n,2784))},{id:"xml",name:"XML",import:()=>Promise.all([n.e("9109"),n.e("1706")]).then(n.bind(n,9135))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e("9109"),n.e("2378")]).then(n.bind(n,1425))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e("826").then(n.bind(n,7729))},{id:"zenscript",name:"ZenScript",import:()=>n.e("8387").then(n.bind(n,7886))},{id:"zig",name:"Zig",import:()=>n.e("9619").then(n.bind(n,2174))}],n8=Object.fromEntries(n1.map(e=>[e.id,e.import])),n2=Object.fromEntries(n1.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),n5={...n8,...n2};async function n6(e){if(n0())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=nX.get(e);if(null!=t)return t;try{let t=nQ.get(e);if(null==t&&Object.prototype.hasOwnProperty.call(n5,e)&&(t=n5[e]),null==t)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return nK.has(e)||nK.set(e,n),n});return nX.set(e,n),await n}finally{nX.delete(e)}}function n4(e){return null!==e&&"object"==typeof e&&"default"in e?e.default:e}var n7=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},n3=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},n9=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};let ie=function(){let e=new Map,t=new Map,n=new Map,i=0;function r(r){let o=t.get(r);if(void 0!==o)return Promise.resolve(o);let a=n.get(r);if(void 0!==a)return a;let l=e.get(r);if(void 0===l)return Promise.reject(new n3(r));let s=i,d=l().then(e=>{let o=n4(e);return s===i&&t.set(r,o),n.get(r)===d&&n.delete(r),o}).catch(e=>{throw n.get(r)===d&&n.delete(r),e});return n.set(r,d),d}function o(e,n){t.set(e,n)}return{clearResolvedThemes:function(){i++,t.clear(),n.clear()},getResolvedOrResolveTheme:function(e){let n=t.get(e);return void 0!==n?n:r(e)},getResolvedTheme:function(e){return t.get(e)},getResolvedThemes:function(e){let n=[];for(let i of e){let e=t.get(i);if(void 0===e)throw new n9(i);n.push(e)}return n},hasRegisteredTheme:function(t){return e.has(t)},hasResolvedTheme:function(e){return t.has(e)},hasResolvedThemes:function(e){for(let n of e)if(!t.has(n))return!1;return!0},registerTheme:function(t,n){if(e.has(t))throw new n7(t);e.set(t,n)},registerThemeIfAbsent:function(t,n){return!e.has(t)&&(e.set(t,n),!0)},resolveTheme:r,resolveThemes:function(e){return Promise.all(e.map(e=>r(e)))},seedResolvedTheme:o,seedResolvedThemes:function(e){for(let[t,n]of e)o(t,n)}}}(),it=new Set;function ii(e,t){for(let n of e=Array.isArray(e)?e:[e]){let e;if("string"==typeof n){if(null==(e=ie.getResolvedTheme(n)))throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,null==ie.getResolvedTheme(n)&&ie.seedResolvedTheme(n,e);it.has(n)||(it.add(n),t.loadThemeSync(e))}}function ir(e){var t,n,i;let r=[],o=new Set;for(let a of io(n=t=e.themes)||"string"==typeof(i=n).name&&"function"==typeof i.load?[t]:t)for(let e of io(a)?a.getThemes():[a]){if(o.has(e.name))throw Error(`Theme collection already contains theme "${e.name}"`);o.add(e.name),r.push(e)}let a=Object.freeze([...r]),l=Object.freeze(a.filter(e=>"light"===e.colorScheme)),s=Object.freeze(a.filter(e=>"dark"===e.colorScheme)),d=new Map(a.map(e=>[e.name,e])),u=Object.freeze(a.map(e=>e.name)),h=Object.freeze(l.map(e=>e.name)),c=Object.freeze(s.map(e=>e.name));function f(e){if(null==e)return a;let{colorScheme:t,collection:n}=e;return null==n?"light"===t?l:"dark"===t?s:a:a.filter(e=>e.collection===n&&(null==t||e.colorScheme===t))}return{getTheme:e=>d.get(e),getThemes:e=>f(e),getThemeNames:e=>e?.collection==null?e?.colorScheme==="light"?h:e?.colorScheme==="dark"?c:u:f(e).map(e=>e.name),hasTheme:e=>d.has(e),orderBy:e=>ir({themes:a.map((e,t)=>({descriptor:e,index:t})).sort((t,n)=>{let i=e(t.descriptor,n.descriptor);return 0!==i?i:t.index-n.index}).map(e=>e.descriptor)}),pick(e){let t=[],n=new Set;for(let i of e){if(n.has(i))throw Error(`Theme collection pick already includes theme "${i}"`);n.add(i);let e=d.get(i);if(null==e)throw Error(`Theme collection does not contain theme "${i}"`);t.push(e)}return ir({themes:t})},registerInto(e){for(let t of a)e.registerThemeIfAbsent(t.name,t.load)}}}function io(e){return"function"==typeof e.getThemes}var ia=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function il(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var is=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,id=class{static hasCaptures(e){return null!==e&&(is.lastIndex=0,is.test(e))}static replaceCaptures(e,t,n){return e.replace(is,(e,i,r,o)=>{let a=n[parseInt(i||r,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(o){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function iu(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let i=0;i<n;i++){var r,o;let n=(r=e[i],r<(o=t[i])?-1:+(r>o));if(0!==n)return n}return 0}return n-i}function ih(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function ic(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ip=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},im=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let e=0,r=t.length;e<r;e++){let r,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;r=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let a=-1;if("string"==typeof o.settings.fontStyle){a=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let l=null;"string"==typeof o.settings.foreground&&ih(o.settings.foreground)&&(l=o.settings.foreground);let s=null;"string"==typeof o.settings.background&&ih(o.settings.background)&&(s=o.settings.background);for(let t=0,o=r.length;t<o;t++){let o=r[t].trim().split(" "),d=o[o.length-1],u=null;o.length>1&&(u=o.slice(0,o.length-1)).reverse(),n[i++]=new iy(d,u,e,a,l,s)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,i;let r=(n=e.scope,n<(i=t.scope)?-1:+(n>i));return 0!==r||0!==(r=iu(e.parentScopes,t.parentScopes))?r:e.index-t.index});let n=0,i="#000000",r="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(r=t.background)}let o=new ik(t),a=new ib(n,o.getId(i),o.getId(r)),l=new ix(new iC(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];l.insert(0,n.scope,n.parentScopes,n.fontStyle,o.getId(n.foreground),o.getId(n.background))}return new im(o,a,l)}(e,t)}_cachedMatchRoot=new ip(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let r=0;r<t.length;r++){var n,i;let o=t[r],a=!1;if(">"===o){if(r===t.length-1)return!1;o=t[++r],a=!0}for(;e&&(n=e.scopeName,!((i=o)===n||n.startsWith(i)&&"."===n[i.length]));){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new ib(n.fontStyle,n.foreground,n.background):null}},ig=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let i of n)t=new e(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new e(n,t[i]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},ib=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},iy=class{constructor(e,t,n,i,r,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o}},iv=((f=iv||{})[f.NotSet=-1]="NotSet",f[f.None=0]="None",f[f.Italic=1]="Italic",f[f.Bold=2]="Bold",f[f.Underline=4]="Underline",f[f.Strikethrough=8]="Strikethrough",f),ik=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},iS=Object.freeze([]),iC=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,i,r){this.scopeDepth=e,this.parentScopes=t||iS,this.fontStyle=n,this.foreground=i,this.background=r}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==i&&(this.background=i)}},ix=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[i]&&i++,!(n>=e.parentScopes.length)&&!(i>=t.parentScopes.length);){let r=t.parentScopes[i].length-e.parentScopes[n].length;if(0!==r)return r;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,i=t.indexOf(".");if(-1===i?(e=t,n=""):(e=t.substring(0,i),n=t.substring(i+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,i,r,o,a){let l,s,d;if(""===n)return void this._doInsertHere(t,i,r,o,a);let u=n.indexOf(".");-1===u?(l=n,s=""):(l=n.substring(0,u),s=n.substring(u+1)),this._children.hasOwnProperty(l)?d=this._children[l]:(d=new e(this._mainRule.clone(),iC.cloneArr(this._rulesWithParentScopes)),this._children[l]=d),d.insert(t+1,s,i,r,o,a)}_doInsertHere(e,t,n,i,r){if(null===t)return void this._mainRule.acceptOverwrite(e,n,i,r);for(let o=0,a=this._rulesWithParentScopes.length;o<a;o++){let a=this._rulesWithParentScopes[o];if(0===iu(a.parentScopes,t))return void a.acceptOverwrite(e,n,i,r)}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new iC(e,t,n,i,r))}},iw=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),i=e.getTokenType(t),r=e.getFontStyle(t);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,i,r,o,a,l){let s=e.getLanguageId(t),d=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),c=e.getForeground(t),f=e.getBackground(t);return 0!==n&&(s=n),8!==i&&(d=i),null!==r&&(u=+!!r),-1!==o&&(h=o),0!==a&&(c=a),0!==l&&(f=l),(s|d<<8|u<<10|h<<11|c<<15|f<<24)>>>0}};function iL(e,t){var n;let i,r,o=[],a=(n=e,r=(i=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!r)return null;let e=r[0];return r=i.exec(n),e}}),l=a.next();for(;null!==l;){let e=0;if(2===l.length&&":"===l.charAt(1)){switch(l.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${l} in scope selector`)}l=a.next()}let t=d();if(o.push({matcher:t,priority:e}),","!==l)break;l=a.next()}return o;function s(){if("-"===l){l=a.next();let e=s();return t=>!!e&&!e(t)}if("("===l){l=a.next();let e=function(){let e=[],t=d();for(;t&&(e.push(t),"|"===l||","===l);){do l=a.next();while("|"===l||","===l);t=d()}return t=>e.some(e=>e(t))}();return")"===l&&(l=a.next()),e}if(iA(l)){let e=[];do e.push(l),l=a.next();while(iA(l));return n=>t(e,n)}return null}function d(){let e=[],t=s();for(;t;)e.push(t),t=s();return t=>e.every(e=>e(t))}}function iA(e){return!!e&&!!e.match(/[\w\.:]+/)}function iE(e){"function"==typeof e.dispose&&e.dispose()}var iP=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},iR=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},iT=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},i_=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new iP(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new iT;for(let n of e)!function(e,t,n,i){let r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let o=n.lookup(t);e instanceof iP?iM({baseGrammar:o,selfGrammar:r},i):iN(e.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);let a=n.injections(e.scopeName);if(a)for(let e of a)i.add(new iP(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof iP){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function iN(e,t,n){t.repository&&t.repository[e]&&iI([t.repository[e]],t,n)}function iM(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&iI(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&iI(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function iI(e,t,n){for(let i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);let e=i.repository?il({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&iI(i.patterns,{...t,repository:e},n);let r=i.include;if(!r)continue;let o=iU(r);switch(o.kind){case 0:iM({...t,selfGrammar:t.baseGrammar},n);break;case 1:iM(t,n);break;case 2:iN(o.ruleName,{...t,repository:e},n);break;case 3:case 4:let a=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let i={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===o.kind?iN(o.ruleName,i,n):iM(i,n)}else 4===o.kind?n.add(new iR(o.scopeName,o.ruleName)):n.add(new iP(o.scopeName))}}}var iD=class{kind=0},iH=class{kind=1},iO=class{constructor(e){this.ruleName=e}kind=2},iF=class{constructor(e){this.scopeName=e}kind=3},i$=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function iU(e){if("$base"===e)return new iD;if("$self"===e)return new iH;let t=e.indexOf("#");return -1===t?new iF(e):0===t?new iO(e.substring(1)):new i$(e.substring(0,t),e.substring(t+1))}var iz=/\\(\d+)/,iB=/\\(\d+)/g;Symbol("RuleId");var iG=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,i){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=id.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=id.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?id.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?id.replaceCaptures(this._contentName,e,t):this._contentName}},ij=class extends iG{retokenizeCapturedWithRuleId;constructor(e,t,n,i,r){super(e,t,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,i){throw Error("Not supported!")}},iW=class extends iG{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,null),this._match=new iQ(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new iJ,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},iV=class extends iG{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new iJ,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},iq=class extends iG{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r,o,a,l,s,d){super(e,t,n,i),this._begin=new iQ(r,this.id),this.beginCaptures=o,this._end=new iQ(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new iJ,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},iK=class extends iG{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,i,r,o,a,l,s){super(e,t,n,i),this._begin=new iQ(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new iQ(a,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new iJ,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new iJ,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},iX=class e{static createCaptureRule(e,t,n,i,r){return e.registerRule(e=>new ij(t,e,n,i,r))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new iW(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,i));if(void 0===t.begin){t.repository&&(i=il({},i,t.repository));let r=t.patterns;return void 0===r&&t.include&&(r=[{include:t.include}]),new iV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(r,n,i))}return t.while?new iK(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,i),e._compilePatterns(t.patterns,n,i)):new iq(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,e._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let r=[];if(t){let o=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>o&&(o=t)}for(let e=0;e<=o;e++)r[e]=null;for(let o in t){if("$vscodeTextmateLocation"===o)continue;let a=parseInt(o,10),l=0;t[o].patterns&&(l=e.getCompiledRuleId(t[o],n,i)),r[a]=e.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,l)}}return r}static _compilePatterns(t,n,i){let r=[];if(t)for(let o=0,a=t.length;o<a;o++){let a=t[o],l=-1;if(a.include){let t=iU(a.include);switch(t.kind){case 0:case 1:l=e.getCompiledRuleId(i[a.include],n,i);break;case 2:let r=i[t.ruleName];r&&(l=e.getCompiledRuleId(r,n,i));break;case 3:case 4:let o=t.scopeName,s=4===t.kind?t.ruleName:null,d=n.getExternalGrammar(o,i);if(d)if(s){let t=d.repository[s];t&&(l=e.getCompiledRuleId(t,n,d.repository))}else l=e.getCompiledRuleId(d.repository.$self,n,d.repository)}}else l=e.getCompiledRuleId(a,n,i);if(-1!==l){let e=n.getRule(l),t=!1;if((e instanceof iV||e instanceof iq||e instanceof iK)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;r.push(l)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},iQ=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,i=[],r=!1;for(let o=0;o<t;o++)if("\\"===e.charAt(o)&&o+1<t){const t=e.charAt(o+1);"z"===t?(i.push(e.substring(n,o)),i.push("$(?!\\n)(?<!\\n)"),n=o+2):("A"===t||"G"===t)&&(r=!0),o++}this.hasAnchor=r,0===n?this.source=e:(i.push(e.substring(n,t)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=iz.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return iB.lastIndex=0,this.source.replace(iB,(e,t)=>ic(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,i;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=[],o=[],a=[],l=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),r[e]=n,o[e]=n,a[e]=n,l[e]=n,"\\"===n&&e+1<t&&("A"===(i=this.source.charAt(e+1))?(r[e+1]="￿",o[e+1]="￿",a[e+1]="A",l[e+1]="A"):"G"===i?(r[e+1]="￿",o[e+1]="G",a[e+1]="￿",l[e+1]="G"):(r[e+1]=i,o[e+1]=i,a[e+1]=i,l[e+1]=i),e++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:a.join(""),A1_G1:l.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},iJ=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new iY(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new iY(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},iY=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},iZ=class{constructor(e,t){this.languageId=e,this.tokenType=t}},i0=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new iZ(e,8),this._embeddedLanguagesMatcher=new i1(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new iZ(0,0);_getBasicScopeAttributes=new ip(e=>new iZ(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},i1=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>ic(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};"u">typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;var i8=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function i2(e,t,n,i,r,o,a,l){let s=t.content.length,d=!1,u=-1;if(a){let a=function(e,t,n,i,r,o){let a=r.beginRuleCapturedEOL?0:-1,l=[];for(let t=r;t;t=t.pop()){let n=t.getRule(e);n instanceof iK&&l.push({rule:n,stack:t})}for(let f=l.pop();f;f=l.pop()){var s,d,u,h,c;let{ruleScanner:l,findOptions:p}=(s=f.rule,d=e,u=f.stack.endRule,h=n,c=i===a,{ruleScanner:s.compileWhileAG(d,u,h,c),findOptions:0}),m=l.findNextMatchSync(t,i,p);if(m){if(-2!==m.ruleId){r=f.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(f.stack,m.captureIndices[0].start),i6(e,t,n,f.stack,o,f.rule.whileCaptures,m.captureIndices),o.produce(f.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>i&&(i=m.captureIndices[0].end,n=!1))}else{r=f.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:a,isFirstLine:n}}(e,t,n,i,r,o);r=a.stack,i=a.linePos,n=a.isFirstLine,u=a.anchorPosition}let h=Date.now();for(;!d;){if(0!==l&&Date.now()-h>l)return new i8(r,!0);!function(){let a=function(e,t,n,i,r,o){let a=function(e,t,n,i,r,o){let{ruleScanner:a,findOptions:l}=i5(r.getRule(e),e,r.endRule,n,i===o),s=a.findNextMatchSync(t,i,l);return s?{captureIndices:s.captureIndices,matchedRuleId:s.ruleId}:null}(e,t,n,i,r,o),l=e.getInjections();if(0===l.length)return a;let s=function(e,t,n,i,r,o,a){let l,s=Number.MAX_VALUE,d=null,u=0,h=o.contentNameScopesList.getScopeNames();for(let o=0,c=e.length;o<c;o++){let c=e[o];if(!c.matcher(h))continue;let{ruleScanner:f,findOptions:p}=i5(t.getRule(c.ruleId),t,null,i,r===a),m=f.findNextMatchSync(n,r,p);if(!m)continue;let g=m.captureIndices[0].start;if(!(g>=s)&&(s=g,d=m.captureIndices,l=m.ruleId,u=c.priority,s===r))break}return d?{priorityMatch:-1===u,captureIndices:d,matchedRuleId:l}:null}(l,e,t,n,i,r,o);if(!s)return a;if(!a)return s;let d=a.captureIndices[0].start,u=s.captureIndices[0].start;return u<d||s.priorityMatch&&u===d?s:a}(e,t,n,i,r,u);if(!a){o.produce(r,s),d=!0;return}let l=a.captureIndices,h=a.matchedRuleId,c=!!l&&l.length>0&&l[0].end>i;if(-1===h){let a=r.getRule(e);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),i6(e,t,n,r,o,a.endCaptures,l),o.produce(r,l[0].end);let h=r;if(r=r.parent,u=h.getAnchorPos(),!c&&h.getEnterPos()===i){r=h,o.produce(r,s),d=!0;return}}else{let a=e.getRule(h);o.produce(r,l[0].start);let f=r,p=a.getName(t.content,l),m=r.contentNameScopesList.pushAttributed(p,e);if(r=r.push(h,i,u,l[0].end===s,null,m,m),a instanceof iq){i6(e,t,n,r,o,a.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;let i=a.getContentName(t.content,l),h=m.pushAttributed(i,e);if(r=r.withContentNameScopesList(h),a.endHasBackReferences&&(r=r.withEndRule(a.getEndWithResolvedBackReferences(t.content,l))),!c&&f.hasSameRuleAs(r)){r=r.pop(),o.produce(r,s),d=!0;return}}else if(a instanceof iK){i6(e,t,n,r,o,a.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;let i=a.getContentName(t.content,l),h=m.pushAttributed(i,e);if(r=r.withContentNameScopesList(h),a.whileHasBackReferences&&(r=r.withEndRule(a.getWhileWithResolvedBackReferences(t.content,l))),!c&&f.hasSameRuleAs(r)){r=r.pop(),o.produce(r,s),d=!0;return}}else if(i6(e,t,n,r,o,a.captures,l),o.produce(r,l[0].end),r=r.pop(),!c){r=r.safePop(),o.produce(r,s),d=!0;return}}l[0].end>i&&(i=l[0].end,n=!1)}()}return new i8(r,!1)}function i5(e,t,n,i,r){return{ruleScanner:e.compileAG(t,n,i,r),findOptions:0}}function i6(e,t,n,i,r,o,a){if(0===o.length)return;let l=t.content,s=Math.min(o.length,a.length),d=[],u=a[0].end;for(let t=0;t<s;t++){let s=o[t];if(null===s)continue;let h=a[t];if(0===h.length)continue;if(h.start>u)break;for(;d.length>0&&d[d.length-1].endPos<=h.start;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?r.produceFromScopes(d[d.length-1].scopes,h.start):r.produce(i,h.start),s.retokenizeCapturedWithRuleId){let t=s.getName(l,a),o=i.contentNameScopesList.pushAttributed(t,e),d=s.getContentName(l,a),u=o.pushAttributed(d,e),c=i.push(s.retokenizeCapturedWithRuleId,h.start,-1,!1,null,o,u),f=e.createOnigString(l.substring(0,h.end));i2(e,f,n&&0===h.start,h.start,c,r,!1,0),iE(f);continue}let c=s.getName(l,a);if(null!==c){let t=(d.length>0?d[d.length-1].scopes:i.contentNameScopesList).pushAttributed(c,e);d.push(new i4(t,h.end))}}for(;d.length>0;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var i4=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function i7(e,t,n,i,r){let o=iL(t,i3),a=iX.getCompiledRuleId(n,i,r.repository);for(let n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:a,grammar:r,priority:n.priority})}function i3(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let i=n;i<t.length;i++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[i],e))return n=i+1,!0;return!1})}var i9=class{constructor(e,t,n,i,r,o,a,l){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new i0(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=re(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const e of Object.keys(r))for(const t of iL(e,i3))this._tokenTypeMatchers.push({matcher:t.matcher,type:r[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let i=n.injections;if(i)for(let t in i)i7(e,t,i[t],this,n);let r=this._grammarRepository.injections(t);r&&r.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&i7(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=re(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){let i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){let r;if(-1===this._rootId&&(this._rootId=iX.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==rn.NULL)r=!1,t.reset();else{let e;r=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),i=this.themeProvider.getDefaults(),o=iw.set(0,n.languageId,n.tokenType,null,i.fontStyle,i.foregroundId,i.backgroundId),a=this.getRule(this._rootId).getName(null,null);e=a?rt.createRootAndLookUpScopeName(a,o,this):rt.createRoot("unknown",o),t=new rn(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let o=this.createOnigString(e),a=o.content.length,l=new rr(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=i2(this,o,r,0,t,l,!0,i);return iE(o),{lineLength:a,lineTokens:l,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}};function re(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=e(t[i]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let i in t)n[i]=e(t[i]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var rt=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let i=t,r=t?.scopePath??null;for(let t of n)i=new e(i,r=ig.push(r,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,n){return new e(null,new ig(null,t),n)}static createRootAndLookUpScopeName(t,n,i){let r=i.getMetadataForScope(t),o=new ig(null,t),a=i.themeProvider.themeMatch(o),l=e.mergeAttributes(n,r,a);return new e(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),iw.set(e,t.languageId,t.tokenType,null,i,r,o)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let i=t.split(/ /g),r=this;for(let t of i)r=e._pushAttributed(r,t,n);return r}static _pushAttributed(t,n,i){let r=i.getMetadataForScope(n),o=t.scopePath.push(n),a=i.themeProvider.themeMatch(o),l=e.mergeAttributes(t.tokenAttributes,r,a);return new e(t,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},rn=class e{constructor(e,t,n,i,r,o,a,l){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&rt.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,r,o,a,l){return new e(this,t,n,i,r,o,a,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let i=rt.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,rt.fromExtension(i,n.contentNameScopesList))}},ri=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):iL(e,i3).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>iL(e,i3).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},rr=class{constructor(e,t,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=iw.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(t))}if(i&&(n=iw.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},ro=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,r){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,new i9(e,o,t,n,i,r,this,this._onigLib))}return this._grammars.get(e)}},ra=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ro(im.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(im.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ri(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,i,r){let o=new i_(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(e=>this._loadSingleGrammar(e.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,n,i,r)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,t=0,n=null,i=null,r=null){return this._syncRegistry.grammarForScopeName(e,t,n,i,r)}},rl=rn.NULL;function rs(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},i="string"==typeof e?e:e.name;for(let[e,r]of Object.entries(t?.colorReplacements||{}))"string"==typeof r?n[e]=r:e===i&&Object.assign(n,r);return n}function rd(e,t){return e&&t?.[e?.toLowerCase()]||e}async function ru(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function rh(e){return!e||["plaintext","txt","text","plain"].includes(e)}function rc(e){return"ansi"===e||rh(e)}function rf(e){return"none"===e}let rp=/(\r?\n)/g;function rm(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(rp),i=0,r=[];for(let e=0;e<n.length;e+=2){let o=t?n[e]+(n[e+1]||""):n[e];r.push([o,i]),i+=n[e].length,i+=n[e+1]?.length||0}return r}let rg="__shiki_resolved";function rb(e){if(e?.[rg])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:i}=t;if(!n||!i){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(i=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0,o=new Map;function a(e){if(o.has(e))return o.get(e);r+=1;let n=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?a(e):(o.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),i=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!i)return e;let r={...e,settings:{...e.settings}};if(n){let n=a(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,r.settings.foreground=n}if(i){let n=a(e.settings.background);t.colorReplacements[n]=e.settings.background,r.settings.background=n}return r}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=a(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,rg,{enumerable:!1,writable:!1,value:!0}),t}async function ry(e){return[...new Set((await Promise.all(e.filter(e=>!rc(e)).map(async e=>await ru(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function rv(e){return(await Promise.all(e.map(async e=>rf(e)?null:rb(await ru(e))))).filter(e=>!!e)}function rk(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ia(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var rS=class extends ra{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,i={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=rb(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=im.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=rk(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new ia(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},rC=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let i=t.slice(0,e).join(".");n=[...n,...this._injections.get(i)||[]]}return n}};let rx=0;async function rw(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,i]=await Promise.all([rv(e.themes||[]),ry(e.langs||[]),e.engine]);return function(e){let t;rx+=1,!1!==e.warnings&&rx>=10&&rx%10==0&&console.warn(`[Shiki] ${rx} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new ia("`engine` option is required for synchronous mode");let i=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(rb),o=new rS(new rC(e.engine,i),r,i,e.langAlias);function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};d();let t=o.getTheme(e);if(!t)throw new ia(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(...e){d(),o.loadLanguages(e.flat(1))}function s(...e){for(let t of(d(),e.flat(1)))o.loadTheme(t)}function d(){if(n)throw new ia("Shiki instance has been disposed")}function u(){n||(n=!0,o.dispose(),rx-=1)}return{setTheme:function(e){d();let n=a(e);return t!==e&&(o.setTheme(n),t=e),{theme:n,colorMap:o.getColorMap()}},getTheme:a,getLanguage:function(e){d();let t=o.getGrammar("string"==typeof e?e:e.name);if(!t)throw new ia(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return d(),o.getLoadedThemes()},getLoadedLanguages:function(){return d(),o.getLoadedLanguages()},resolveLangAlias:function(t){return rk(t,e.langAlias)},loadLanguage:async function(...e){return l(await ry(e))},loadLanguageSync:l,loadTheme:async function(...e){return d(),s(await rv(e))},loadThemeSync:s,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:n,engine:i})}let rL=new WeakMap;function rA(e,t){rL.set(e,t)}function rE(e){return rL.get(e)}var rP=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries((Array.isArray(n)?n:[n]).map(e=>[e,rl])),t)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,i]=e;this.lang=n,this._stacks={[i]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,i;return t=this._stacks[e],n=[],i=new Set,!function e(t){if(i.has(t))return;i.add(t);let r=t?.nameScopesList?.scopeName;r&&n.push(r),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};let rR=/,/,rT=/ /;function r_(e,t,n={}){var i,r;let o,a,{theme:l=e.getLoadedThemes()[0]}=n;if(rh(e.resolveLangAlias(n.lang||"text"))||rf(l))return rm(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:s,colorMap:d}=e.setTheme(l),u=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==u.name)throw new ia(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(s.name))throw new ia(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return a=new rP((o=rN(t,i=u,r=s,d,n)).stateStack,i.name,r.name),rA(o.tokens,a),o.tokens}function rN(e,t,n,i,r){let o=rs(n,r),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:l=500,includeExplanation:s=!1}=r,d=rm(e),u=r.grammarState?function(e,t){if(!(e instanceof rP))throw new ia("Invalid grammar state");return e.getInternalStack(t)}(r.grammarState,n.name)??rl:null!=r.grammarContextCode?rN(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:rl,h=[],c=[];for(let e=0,r=d.length;e<r;e++){let r,f,[p,m]=d[e];if(""===p){h=[],c.push([]);continue}if(a>0&&p.length>=a){h=[],c.push([{content:p,offset:m,color:"",fontStyle:0}]);continue}s&&"tokenType"!==s&&(r=t.tokenizeLine(p,u,l).tokens,f=0);let g=t.tokenizeLine2(p,u,l),b=g.tokens.length/2;for(let e=0;e<b;e++){let t=g.tokens[2*e],a=e+1<b?g.tokens[2*e+2]:p.length;if(t===a)continue;let l=g.tokens[2*e+1],d=rd(i[iw.getForeground(l)],o),u=iw.getFontStyle(l),c={content:p.substring(t,a),offset:m+t,color:d,fontStyle:u};if("tokenType"===s)c.type=iw.getTokenType(l);else if(s){let e=[];if("scopeName"!==s)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(rR).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(rT))})}c.explanation=[];let i=0;for(;t+i<a;){let t=r[f],n=p.substring(t.startIndex,t.endIndex);i+=n.length,c.explanation.push({content:n,scopes:"scopeName"===s?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){let r=t[i];n[i]={scopeName:r,themeMatches:function(e,t,n){let i=[];for(let{selectors:r,settings:o}of e)for(let e of r)if(function(e,t,n){if(!rM(e.at(-1),t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)rM(e[i],n[r])&&(i-=1),r-=1;return -1===i}(e,t,n)){i.push(o);break}return i}(e,r,t.slice(0,i))}}return n}(e,t.scopes)}),f+=1}}h.push(c)}c.push(h),h=[],u=g.ruleStack}return{tokens:c,stateStack:u}}function rM(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function rI(e,t,n,i=r_){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),o=r.map(r=>{let o=i(e,t,{...n,theme:r.theme});return{tokens:o,state:rE(o),theme:"string"==typeof r.theme?r.theme:r.theme.name}}),a=function(...e){let t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){let r=e.map(e=>e[i]),o=t.map(()=>[]);t.forEach((e,t)=>e.push(o[t]));let a=r.map(()=>0),l=r.map(e=>e[0]);for(;l.every(e=>e);){let e=Math.min(...l.map(e=>e.content.length));for(let t=0;t<n;t++){let n=l[t];n.content.length===e?(o[t].push(n),a[t]+=1,l[t]=r[t][a[t]]):(o[t].push({...n,content:n.content.slice(0,e)}),l[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...o.map(e=>e.tokens)),l=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:l,offset:s,...d}=e[t][i];o.variants[r[n].color]=d}),o})),s=o[0].state?new rP(Object.fromEntries(o.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),o[0].state.lang):void 0;return s&&rA(l,s),l}function rD({name:e,load:t,colorScheme:n,collection:i,displayName:r}){var o;return{name:e,colorScheme:n,collection:i,displayName:r,load:(o=t,async()=>rb(n4(await o())))}}let rH=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],rO=new Set(rH),rF={andromeeda:()=>n.e("6900").then(n.bind(n,9247)),"aurora-x":()=>n.e("8805").then(n.bind(n,8340)),"ayu-dark":()=>n.e("4992").then(n.bind(n,7875)),"ayu-light":()=>n.e("382").then(n.bind(n,2909)),"ayu-mirage":()=>n.e("4983").then(n.bind(n,3482)),"catppuccin-frappe":()=>n.e("6093").then(n.bind(n,5068)),"catppuccin-latte":()=>n.e("6729").then(n.bind(n,8496)),"catppuccin-macchiato":()=>n.e("3808").then(n.bind(n,4643)),"catppuccin-mocha":()=>n.e("5593").then(n.bind(n,2960)),"dark-plus":()=>n.e("1541").then(n.bind(n,6948)),dracula:()=>n.e("8336").then(n.bind(n,1075)),"dracula-soft":()=>n.e("465").then(n.bind(n,3832)),"everforest-dark":()=>n.e("590").then(n.bind(n,2285)),"everforest-light":()=>n.e("9412").then(n.bind(n,7359)),"github-dark":()=>n.e("2048").then(n.bind(n,6163)),"github-dark-default":()=>n.e("3260").then(n.bind(n,7175)),"github-dark-dimmed":()=>n.e("8437").then(n.bind(n,5268)),"github-dark-high-contrast":()=>n.e("3168").then(n.bind(n,7024)),"github-light":()=>n.e("1822").then(n.bind(n,5965)),"github-light-default":()=>n.e("5398").then(n.bind(n,661)),"github-light-high-contrast":()=>n.e("278").then(n.bind(n,2725)),"gruvbox-dark-hard":()=>n.e("9918").then(n.bind(n,4061)),"gruvbox-dark-medium":()=>n.e("5108").then(n.bind(n,911)),"gruvbox-dark-soft":()=>n.e("2743").then(n.bind(n,8010)),"gruvbox-light-hard":()=>n.e("9420").then(n.bind(n,7767)),"gruvbox-light-medium":()=>n.e("5678").then(n.bind(n,3741)),"gruvbox-light-soft":()=>n.e("197").then(n.bind(n,4164)),horizon:()=>n.e("333").then(n.bind(n,5980)),"horizon-bright":()=>n.e("7350").then(n.bind(n,9285)),houston:()=>n.e("2332").then(n.bind(n,7047)),"kanagawa-dragon":()=>n.e("6005").then(n.bind(n,196)),"kanagawa-lotus":()=>n.e("2895").then(n.bind(n,7570)),"kanagawa-wave":()=>n.e("5879").then(n.bind(n,781)),laserwave:()=>n.e("920").then(n.bind(n,7419)),"light-plus":()=>n.e("659").then(n.bind(n,2142)),"material-theme":()=>n.e("969").then(n.bind(n,3968)),"material-theme-darker":()=>n.e("3381").then(n.bind(n,1988)),"material-theme-lighter":()=>n.e("9695").then(n.bind(n,4482)),"material-theme-ocean":()=>n.e("9886").then(n.bind(n,13)),"material-theme-palenight":()=>n.e("3502").then(n.bind(n,9917)),"min-dark":()=>n.e("7015").then(n.bind(n,9418)),"min-light":()=>n.e("8671").then(n.bind(n,3426)),monokai:()=>n.e("2368").then(n.bind(n,8947)),"night-owl":()=>n.e("311").then(n.bind(n,4106)),"night-owl-light":()=>n.e("2234").then(n.bind(n,3169)),nord:()=>n.e("6629").then(n.bind(n,9460)),"one-dark-pro":()=>n.e("3853").then(n.bind(n,1804)),"one-light":()=>n.e("2411").then(n.bind(n,6886)),plastic:()=>n.e("1266").then(n.bind(n,2761)),poimandres:()=>n.e("5646").then(n.bind(n,5386)),red:()=>n.e("2185").then(n.bind(n,6608)),"rose-pine":()=>n.e("1942").then(n.bind(n,3394)),"rose-pine-dawn":()=>n.e("4429").then(n.bind(n,7756)),"rose-pine-moon":()=>n.e("698").then(n.bind(n,3569)),"slack-dark":()=>n.e("9279").then(n.bind(n,8178)),"slack-ochin":()=>n.e("7198").then(n.bind(n,4157)),"snazzy-light":()=>n.e("9502").then(n.bind(n,5082)),"solarized-dark":()=>n.e("6070").then(n.bind(n,629)),"solarized-light":()=>n.e("3420").then(n.bind(n,6583)),"synthwave-84":()=>n.e("4846").then(n.bind(n,925)),"tokyo-night":()=>n.e("1811").then(n.bind(n,2686)),vesper:()=>n.e("8173").then(n.bind(n,508)),"vitesse-black":()=>n.e("3663").then(n.bind(n,9218)),"vitesse-dark":()=>n.e("1506").then(n.bind(n,4809)),"vitesse-light":()=>n.e("9888").then(n.bind(n,5923))};function r$(e){return rD({name:e,collection:"shiki",colorScheme:rO.has(e)?"light":"dark",load:rF[e]})}let rU=ir({themes:Object.freeze([...rH.map(e=>r$(e)),...["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"].map(e=>r$(e))])});async function rz(e){!function(e){if(n0())throw Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(ie.hasRegisteredTheme(e))return;let t=rU.getTheme(e);if(null!=t)return ie.registerThemeIfAbsent(t.name,t.load);throw Error(`No valid theme loader registered for "${e}"`)}(e);let t=await ie.resolveTheme(e);if(t.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`);return t}var rB=Object.defineProperty,rG=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyNames,rW=Object.prototype.hasOwnProperty,rV=(e,t,n,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var r,o=rj(t),a=0,l=o.length;a<l;a++)r=o[a],rW.call(e,r)||r===n||rB(e,r,{get:(e=>t[e]).bind(null,r),enumerable:!(i=rG(t,r))||i.enumerable});return e},rq=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rK(){return"u">typeof performance?performance.now():Date.now()}let rX=(e,t)=>e+(t-e%t)%t;async function rQ(e){let t,n,i={};function r(e){n=e,i.HEAPU8=new Uint8Array(e),i.HEAPU32=new Uint32Array(e)}let o="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,n=1024){let i=t+n,r=t;for(;e[r]&&!(r>=i);)++r;if(r-t>16&&e.buffer&&o)return o.decode(e.subarray(t,r));let a="";for(;t<r;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}let i=63&e[t++];if((224&n)==192){a+=String.fromCharCode((31&n)<<6|i);continue}let r=63&e[t++];if((n=(240&n)==224?(15&n)<<12|i<<6|r:(7&n)<<18|i<<12|r<<6|63&e[t++])<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(i.HEAPU8,e,t):""}let l={emscripten_get_now:rK,emscripten_memcpy_big:function(e,t,n){i.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let o=i.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let i=1;i<=4;i*=2){let a=o*(1+.2/i);if(a=Math.min(a,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}(Math.min(0x80000000,rX(Math.max(e,a),65536))))return!0}return!1},fd_write:()=>0};async function s(){let n=await e({env:l,wasi_snapshot_preview1:l});r((t=n.memory).buffer),Object.assign(i,n),i.UTF8ToString=a}return await s(),i}var rJ=Object.defineProperty,rY=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?rJ(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n};let rZ=null;class r0{constructor(e){rY(this,"utf16Length"),rY(this,"utf8Length"),rY(this,"utf16Value"),rY(this,"utf8Value"),rY(this,"utf16OffsetToUtf8"),rY(this,"utf8OffsetToUtf16");const t=e.length,n=r0._utf8ByteLength(e),i=n!==t,r=i?new Uint32Array(t+1):null;i&&(r[t]=n);const o=i?new Uint32Array(n+1):null;i&&(o[n]=t);const a=new Uint8Array(n);let l=0;for(let n=0;n<t;n++){const s=e.charCodeAt(n);let d=s,u=!1;if(s>=55296&&s<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(d=(s-55296<<10)+65536|t-56320,u=!0)}i&&(r[n]=l,u&&(r[n+1]=l),d<=127?o[l+0]=n:d<=2047?(o[l+0]=n,o[l+1]=n):d<=65535?(o[l+0]=n,o[l+1]=n,o[l+2]=n):(o[l+0]=n,o[l+1]=n,o[l+2]=n,o[l+3]=n)),d<=127?a[l++]=d:(d<=2047?a[l++]=192|(1984&d)>>>6:(d<=65535?a[l++]=224|(61440&d)>>>12:(a[l++]=240|(1835008&d)>>>18,a[l++]=128|(258048&d)>>>12),a[l++]=128|(4032&d)>>>6),a[l++]=128|(63&d)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,i=e.length;n<i;n++){let r=e.charCodeAt(n),o=r,a=!1;if(r>=55296&&r<=56319&&n+1<i){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(o=(r-55296<<10)+65536|t-56320,a=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,a&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let r1=class e{constructor(t){if(rY(this,"id",++e.LAST_ID),rY(this,"_onigBinding"),rY(this,"content"),rY(this,"utf16Length"),rY(this,"utf8Length"),rY(this,"utf16OffsetToUtf8"),rY(this,"utf8OffsetToUtf16"),rY(this,"ptr"),!rZ)throw new rq("Must invoke loadWasm first.");this._onigBinding=rZ,this.content=t;const n=new r0(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=rZ.omalloc(1e4)),e._sharedPtrInUse=!0,rZ.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(rZ)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};rY(r1,"LAST_ID",0),rY(r1,"_sharedPtr",0),rY(r1,"_sharedPtrInUse",!1);class r8{constructor(e){if(rY(this,"_onigBinding"),rY(this,"_ptr"),!rZ)throw new rq("Must invoke loadWasm first.");const t=[],n=[];for(let i=0,r=e.length;i<r;i++){const r=new r0(e[i]);t[i]=r.createString(rZ),n[i]=r.utf8Length}const i=rZ.omalloc(4*e.length);rZ.HEAPU32.set(t,i/4);const r=rZ.omalloc(4*e.length);rZ.HEAPU32.set(n,r/4);const o=rZ.createOnigScanner(i,r,e.length);for(let n=0,i=e.length;n<i;n++)rZ.ofree(t[n]);rZ.ofree(r),rZ.ofree(i),0===o&&function(e){throw new rq(e.UTF8ToString(e.getLastOnigError()))}(rZ),this._onigBinding=rZ,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let i=0;if("number"==typeof n&&(i=n),"string"==typeof e){e=new r1(e);let n=this._findNextMatchSync(e,t,!1,i);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,n,i){let r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(0===o)return null;let a=r.HEAPU32,l=o/4,s=a[l++],d=a[l++],u=[];for(let t=0;t<d;t++){let n=e.convertUtf8OffsetToUtf16(a[l++]),i=e.convertUtf8OffsetToUtf16(a[l++]);u[t]={start:n,end:i,length:i-n}}return{index:s,captureIndices:u}}}function r2(e){return o||(o=async function(){rZ=await rQ(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var i,r,o,a;if(void 0!==n.data&&(n=n.data),i=n,"u">typeof Response&&i instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (o=n,e=>WebAssembly.instantiateStreaming(o,e))(t):await (a=n,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(r=n,"u">typeof ArrayBuffer&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||"u">typeof Buffer&&Buffer.isBuffer?.(r)||"u">typeof SharedArrayBuffer&&r instanceof SharedArrayBuffer||"u">typeof Uint32Array&&r instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await r5(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await r5(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function r5(e){return t=>WebAssembly.instantiate(e,t)}function r6(e){a=e}function r4(){return a}async function r7(e){return e&&await r2(e),{createScanner:e=>new r8(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new r1(e)}}var r3=((e,t)=>{let n={};for(var i in e)rB(n,i,{get:e[i],enumerable:!0});return t||rB(n,Symbol.toStringTag,{value:"Module"}),n})({});rV(r3,g,"default"),d&&rV(d,g,"default");let r9=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e("6900").then(n.bind(n,9247))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e("8805").then(n.bind(n,8340))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e("4992").then(n.bind(n,7875))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e("382").then(n.bind(n,2909))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e("4983").then(n.bind(n,3482))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e("6093").then(n.bind(n,5068))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e("6729").then(n.bind(n,8496))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e("3808").then(n.bind(n,4643))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e("5593").then(n.bind(n,2960))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e("1541").then(n.bind(n,6948))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e("8336").then(n.bind(n,1075))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e("465").then(n.bind(n,3832))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e("590").then(n.bind(n,2285))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e("9412").then(n.bind(n,7359))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e("2048").then(n.bind(n,6163))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e("3260").then(n.bind(n,7175))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e("8437").then(n.bind(n,5268))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e("3168").then(n.bind(n,7024))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e("1822").then(n.bind(n,5965))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e("5398").then(n.bind(n,661))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e("278").then(n.bind(n,2725))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e("9918").then(n.bind(n,4061))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e("5108").then(n.bind(n,911))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e("2743").then(n.bind(n,8010))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e("9420").then(n.bind(n,7767))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e("5678").then(n.bind(n,3741))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e("197").then(n.bind(n,4164))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e("333").then(n.bind(n,5980))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>n.e("7350").then(n.bind(n,9285))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e("2332").then(n.bind(n,7047))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e("6005").then(n.bind(n,196))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e("2895").then(n.bind(n,7570))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e("5879").then(n.bind(n,781))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e("920").then(n.bind(n,7419))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e("659").then(n.bind(n,2142))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e("969").then(n.bind(n,3968))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e("3381").then(n.bind(n,1988))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e("9695").then(n.bind(n,4482))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e("9886").then(n.bind(n,13))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e("3502").then(n.bind(n,9917))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e("7015").then(n.bind(n,9418))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e("8671").then(n.bind(n,3426))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e("2368").then(n.bind(n,8947))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e("311").then(n.bind(n,4106))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e("2234").then(n.bind(n,3169))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e("6629").then(n.bind(n,9460))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e("3853").then(n.bind(n,1804))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e("2411").then(n.bind(n,6886))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e("1266").then(n.bind(n,2761))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e("5646").then(n.bind(n,5386))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e("2185").then(n.bind(n,6608))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e("1942").then(n.bind(n,3394))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e("4429").then(n.bind(n,7756))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e("698").then(n.bind(n,3569))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e("9279").then(n.bind(n,8178))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e("7198").then(n.bind(n,4157))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e("9502").then(n.bind(n,5082))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e("6070").then(n.bind(n,629))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e("3420").then(n.bind(n,6583))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e("4846").then(n.bind(n,925))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e("1811").then(n.bind(n,2686))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e("8173").then(n.bind(n,508))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e("3663").then(n.bind(n,9218))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e("1506").then(n.bind(n,4809))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e("9888").then(n.bind(n,5923))}].map(e=>[e.id,e.import])),oe=/\s+/g;function ot(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(oe)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(oe)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}let on=["color","background-color"];function oi(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&iv.Italic&&(t["font-style"]="italic"),e.fontStyle&iv.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&iv.Underline&&n.push("underline"),e.fontStyle&iv.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function or(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let oo=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let r,o={lines:r=rm(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:r.length-1,character:r.at(-1).length};let t=e,i=0;for(let e of r){if(t<e.length)break;t-=e.length,i++}return{line:i,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=r[t].length;return n+t}};function i(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new ia(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...o.indexToPos(e),offset:e}}{let t=o.lines[e.line];if(void 0===t)throw new ia(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${o.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new ia(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:o.posToIndex(e.line,n)}}}let a=(t.options.decorations||[]).map(e=>({...e,start:i(e.start),end:i(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new ia(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){let t=e[i],r=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,o=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,a=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(r||o||a||l){if(r&&o||a&&l||a&&n.start.offset===n.end.offset||o&&t.start.offset===t.end.offset)continue;throw new ia(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(a),e.set(t.meta,{decorations:a,converter:o,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length){var n;let i;return(i=[...(n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))instanceof Set?n:new Set(n)].sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,n=function(e,t){let n=0,i=e.length;for(;n<i;){let r=n+(i-n>>1);e[r]<=t?n=r+1:i=r}return n}(i,e.offset),r=n;for(;r<i.length&&i[r]<t;)r++;if(n===r)return e;let o=i.slice(n,r);for(let t=0;t<o.length;t++)o[t]-=e.offset;let a=0,l=[];for(let t of o)t>a&&l.push({...e,content:e.content.slice(a,t),offset:e.offset+a}),a=t;return a<e.content.length&&l.push({...e,content:e.content.slice(a),offset:e.offset+a}),l})):e}},code(e){if(!this.options.decorations?.length)return;let n=t(this),i=[...e.children].filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==n.converter.lines.length)throw new ia(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function r(e,t,n,r){let a=i[e],l="",s=-1,d=-1;if(0===t&&(s=0),0===n&&(d=0),n===1/0&&(d=a.children.length),-1===s||-1===d)for(let e=0;e<a.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===s&&l.length===t&&(s=e+1),-1===d&&l.length===n&&(d=e+1);if(-1===s)throw new ia(`Failed to find start index for decoration ${JSON.stringify(r.start)}`);if(-1===d)throw new ia(`Failed to find end index for decoration ${JSON.stringify(r.end)}`);let u=a.children.slice(s,d);if(r.alwaysWrap||u.length!==a.children.length)if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};o(e,r,"wrapper"),a.children.splice(s,u.length,e)}else o(u[0],r,"token");else o(a,r,"line")}function o(e,t,n){let i=t.properties||{},r=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},t.properties?.class&&ot(e,t.properties.class),e=r(e,n)||e}let a=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)r(t.line,t.character,n.character,e);else if(t.line<n.line){r(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)a.unshift(()=>{var t;i[t=r]=o(i[t],e,"line")});r(n.line,0,n.character,e)}}a.forEach(e=>e())}}}()];function oa(e){let t=function(e){let t=[],n=[],i=[];for(let r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...oo]}var ol=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],os={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function od(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var ou={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let oh=/#([0-9a-f]{3,8})/i,oc=/var\((--[\w-]+-ansi-[\w-]+)\)/,of={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function op(e,t,n={}){let i=e.resolveLangAlias(n.lang||"text"),{theme:r=e.getLoadedThemes()[0]}=n;if(!rh(i)&&!rf(r)&&"ansi"===i){let i,o,a,l,s,d,u,{theme:h}=e.setTheme(r);return i=rs(h,n),o=rm(t),a=function(e=ou){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(i){switch(i.type){case"named":return e[i.name];case"rgb":return n(i.rgb);case"table":var r;return r=i.index,function(){if(t)return t;t=[];for(let n=0;n<ol.length;n++)t.push(e[ol[n]]);let i=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let r=0;r<6;r++)for(let o=0;o<6;o++)t.push(n([i[e],i[r],i[o]]));let r=8;for(let e=0;e<24;e++,r+=10)t.push(n([r,r,r]));return t}()[r]}}}}(Object.fromEntries(ol.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,h.colors?.[t]||of[e]]}))),l=null,s=null,d=new Set,u={parse(e){let t=[],n=0;do{let i=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),r=i.sequence?e.substring(n,i.startPosition):e.substring(n);if(r.length>0&&t.push({value:r,foreground:l,background:s,decorations:new Set(d)}),i.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let i=Number.parseInt(n);if(!Number.isNaN(i))if(0===i)t.push({type:"resetAll"});else if(i<=9)os[i]&&t.push({type:"setDecoration",value:os[i]});else if(i<=29){let e=os[i-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ol[i-30]}});else if(38===i){let n=od(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===i)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ol[i-40]}});else if(48===i){let n=od(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===i?t.push({type:"resetBackgroundColor"}):53===i?t.push({type:"setDecoration",value:"overline"}):55===i?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ol[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ol[i-100+8]}})}return t}(i.sequence);for(let t of e)"resetAll"===t.type?(l=null,s=null,d.clear()):"resetForegroundColor"===t.type?l=null:"resetBackgroundColor"===t.type?s=null:"resetDecoration"===t.type&&d.delete(t.value);for(let t of e)"setForegroundColor"===t.type?l=t.value:"setBackgroundColor"===t.type?s=t.value:"setDecoration"===t.type&&d.add(t.value)}n=i.position}while(n<e.length);return t}},o.map(e=>u.parse(e[0]).map(t=>{let n,r;t.decorations.has("reverse")?(n=t.background?a.value(t.background):h.bg,r=t.foreground?a.value(t.foreground):h.fg):(n=t.foreground?a.value(t.foreground):h.fg,r=t.background?a.value(t.background):void 0),n=rd(n,i),r=rd(r,i),t.decorations.has("dim")&&(n=function(e){let t=e.match(oh);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],i=e[2],r=e[3];return`#${t}${t}${n}${n}${i}${i}${Math.round(Number.parseInt(`${r}${r}`,16)/2).toString(16).padStart(2,"0")}`}else if(3===e.length){let t=e[0],n=e[1],i=e[2];return`#${t}${t}${n}${n}${i}${i}80`}}let n=e.match(oc);return n?`var(${n[1]}-dim)`:e}(n));let o=iv.None;return t.decorations.has("bold")&&(o|=iv.Bold),t.decorations.has("italic")&&(o|=iv.Italic),t.decorations.has("underline")&&(o|=iv.Underline),t.decorations.has("strikethrough")&&(o|=iv.Strikethrough),{content:t.value,offset:e[1],color:n,bgColor:r,fontStyle:o}}))}return r_(e,t,n)}function om(e,t,n){let i,r,o,a,l,s;if("themes"in n){let{defaultColor:d="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,c=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===d?-1:+(t.color===d));if(0===c.length)throw new ia("`themes` option must not be empty");let f=rI(e,t,n,op);if(s=rE(f),d&&"light-dark()"!==d&&!c.some(e=>e.color===d))throw new ia(`\`themes\` option must contain the defaultColor key \`${d}\``);let p=c.map(t=>e.getTheme(t.theme)),m=c.map(e=>e.color);o=f.map(e=>e.map(e=>(function(e,t,n,i,r="css-vars"){let o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>oi(e.variants[t])),l=new Set(a.flatMap(e=>Object.keys(e))),s={},d=(e,i)=>{let r="color"===i?"":"background-color"===i?"-bg":`-${i}`;return n+t[e]+("color"===i?"":r)};return a.forEach((e,n)=>{for(let o of l){let l=e[o]||"inherit";if(0===n&&i&&on.includes(o))if("light-dark()"===i&&a.length>1){let e=t.findIndex(e=>"light"===e),i=t.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new ia('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=a[e][o]||"inherit",h=a[i][o]||"inherit";s[o]=`light-dark(${u}, ${h})`,"css-vars"===r&&(s[d(n,o)]=l)}else s[o]=l;else"css-vars"===r&&(s[d(n,o)]=l)}}),o.htmlStyle=s,o})(e,m,u,d,h))),s&&rA(o,s);let g=c.map(e=>rs(e.theme,n));r=og(c,p,g,u,d,"fg",h),i=og(c,p,g,u,d,"bg",h),a=`shiki-themes ${p.map(e=>e.name).join(" ")}`,l=d?void 0:[r,i].join(";")}else if("theme"in n){let l=rs(n.theme,n);o=op(e,t,n);let d=e.getTheme(n.theme);i=rd(d.bg,l),r=rd(d.fg,l),a=d.name,s=rE(o)}else throw new ia("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:r,bg:i,themeName:a,rootStyle:l,grammarState:s}}function og(e,t,n,i,r,o,a){return e.map((l,s)=>{let d=rd(t[s][o],n[s])||"inherit",u=`${i+l.color}${"bg"===o?"-bg":""}:${d}`;if(0===s&&r){if("light-dark()"===r&&e.length>1){let i=e.findIndex(e=>"light"===e.color),r=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===r)throw new ia('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${rd(t[i][o],n[i])||"inherit"}, ${rd(t[r][o],n[r])||"inherit"});${u}`}return d}return"css-vars"===a?u:null}).filter(e=>!!e).join(";")}let ob=/^\s+$/,oy=/^(\s*)(.*?)(\s*)$/;function ov(e,t,n,i={meta:{},options:n,codeToHast:(t,n)=>ov(e,t,n),codeToTokens:(t,n)=>om(e,t,n)}){let r=t;for(let e of oa(n))r=e.preprocess?.call(i,r,n)||r;let{tokens:o,fg:a,bg:l,themeName:s,rootStyle:d,grammarState:u}=om(e,r,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:c=!1}=n;!0===h?o=o.map(e=>{let t,n=[],i="";return e.forEach((r,o)=>{let a=!(r.fontStyle&&(r.fontStyle&iv.Underline||r.fontStyle&iv.Strikethrough));a&&ob.test(r.content)&&e[o+1]?(void 0===t&&(t=r.offset),i+=r.content):i?(a?n.push({...r,offset:t,content:i+r.content}):n.push({content:i,offset:t},r),t=void 0,i=""):n.push(r)}),n}):"never"===h&&(o=o.map(e=>e.flatMap(e=>{if(ob.test(e.content))return e;let t=e.content.match(oy);if(!t)return e;let[,n,i,r]=t;if(!n&&!r)return e;let o=[{...e,offset:e.offset+n.length,content:i}];return n&&o.unshift({content:n,offset:e.offset}),r&&o.push({content:r,offset:e.offset+n.length+i.length}),o}))),c&&(o=o.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t.at(-1),i=or(e.htmlStyle||oi(e)),r=or(n.htmlStyle||oi(n)),o=e.fontStyle&&(e.fontStyle&iv.Underline||e.fontStyle&iv.Strikethrough),a=n.fontStyle&&(n.fontStyle&iv.Underline||n.fontStyle&iv.Strikethrough);o||a||i!==r?t.push({...n}):e.content+=n.content}return t}));let f={...i,get source(){return r}};for(let e of oa(n))o=e.tokens?.call(f,o)||o;return function(e,t,n,i=rE(e)){let r=oa(t),o=[],a={type:"root",children:[]},{structure:l="classic",tabindex:s="0"}=t,d={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?d.style=t.rootStyle:d.style=`background-color:${t.bg};color:${t.fg}`),!1!==s&&null!=s&&(d.tabindex=s.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(d[e]=n);let u={type:"element",tagName:"pre",properties:d,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:o},c=[],f={...n,structure:l,addClassToHast:ot,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return u},get code(){return h},get lines(){return c}};if(e.forEach((e,t)=>{t&&("inline"===l?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&o.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(let o of e){let e={type:"element",tagName:"span",properties:{...o.htmlAttrs},children:[{type:"text",value:o.content}]},s=or(o.htmlStyle||oi(o));for(let a of(s&&(e.properties.style=s),r))e=a?.span?.call(f,e,t+1,i,n,o)||e;"inline"===l?a.children.push(e):"classic"===l&&n.children.push(e),i+=o.content.length}if("classic"===l){for(let e of r)n=e?.line?.call(f,n,t+1)||n;c.push(n),o.push(n)}else"inline"===l&&c.push(n)}),"classic"===l){for(let e of r)h=e?.code?.call(f,h)||h;for(let e of(u.children.push(h),r))u=e?.pre?.call(f,u)||u;a.children.push(u)}else if("inline"===l){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of a.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of r)n=e?.code?.call(f,n)||n;a.children=[];for(let e=0;e<n.children.length;e++){e>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&a.children.push(...t.children)}}let p=a;for(let e of r)p=e?.root?.call(f,p)||p;return i&&rA(p,i),p}(o,{...n,fg:a,bg:l,themeName:s,rootStyle:!1!==n.rootStyle&&(n.rootStyle??d)},f,u)}async function ok(e){let t=await rw(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return rE(e[1]);let[t,n,i={}]=e,{lang:r="text",theme:o=t.getLoadedThemes()[0]}=i;if(rh(r)||rf(o))throw new ia("Plain language does not have grammar state");if("ansi"===r)throw new ia("ANSI language does not have grammar state");let{theme:a,colorMap:l}=t.setTheme(o),s=t.getLanguage(r);return new rP(rN(n,s,a,l,i).stateStack,s.name,a.name)})(t,...e),codeToTokensBase:(e,n)=>op(t,e,n),codeToTokensWithThemes:(e,n)=>rI(t,e,n),codeToTokens:(e,n)=>om(t,e,n),codeToHast:(e,n)=>ov(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let i={meta:{},options:n,codeToHast:(t,n)=>ov(e,t,n),codeToTokens:(t,n)=>om(e,t,n)},r=no(ov(e,t,n,i));for(let e of oa(n))r=e.postprocess?.call(i,r,n)||r;return r})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let oS=(u=(p={langs:n5,themes:r9,engine:()=>(0,r3.createOnigurumaEngine)(n.e("4405").then(n.bind(n,5380)))}).langs,h=p.themes,c=p.engine,async function(e){function t(t){if("string"==typeof t){if(rc(t=e.langAlias?.[t]||t))return[];let n=u[t];if(!n)throw new ia(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}function n(e){if(rf(e))return"none";if("string"==typeof e){let t=h[e];if(!t)throw new ia(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let i=(e.themes??[]).map(e=>n(e)),r=(e.langs??[]).map(e=>t(e)),o=await ok({engine:e.engine??c(),...e,themes:i,langs:r});return{...o,loadLanguage:(...e)=>o.loadLanguage(...e.map(t)),loadTheme:(...e)=>o.loadTheme(...e.map(n)),getBundledLanguages:()=>u,getBundledThemes:()=>h}});var oC=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:i,regexConstructor:r}=t;if(!r)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=i?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=r(e);return i?.set(e,t),t}catch(t){if(i?.set(e,t),n)return null;throw t}})}findNextMatchSync(e,t,n){let i="string"==typeof e?e:e.content,r=[];function o(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let a=n.exec(i);if(!a)continue;if(a.index===t)return o(e,a,0);r.push([e,a,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(r.length){let e=Math.min(...r.map(e=>e[1].index));for(let[t,n,i]of r)if(n.index===e)return o(t,n,i)}return null}};function ox(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let ow=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),oL=String.raw;function oA(e,t){if(null==e)throw Error(t??"Value expected");return e}let oE=oL`\[\^?`,oP=`c.? | C(?:-.?)?|${oL`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${oL`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${oL`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${oL`o\{[^\}]*\}?`}|${oL`\d{1,3}`}`,oR=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,oT=RegExp(oL`
57
57
  \\ (?:
58
58
  ${oP}
59
59
  | [gk]<[^>]*>?