v-code-diff 1.2.0 → 1.3.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.
@@ -1,91 +1,91 @@
1
1
  (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view{--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #24292f;--color-diff-blob-addition-fg: #24292f;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #24292f;--color-diff-blob-deletion-fg: #24292f;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #2da44e;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(27,31,36,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(27,31,36,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(27,31,36,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .filename{font-size:13px;color:var(--color-fg-default)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import ke from "vue";
3
- import $n, { computed as ve } from "@vue/composition-api/dist/vue-composition-api.mjs";
4
- function Bn(e) {
5
- e = e || ke, e && !e.__composition_api_installed__ && e.use($n);
2
+ import $e from "vue";
3
+ import Un, { computed as we } from "@vue/composition-api/dist/vue-composition-api.mjs";
4
+ function Pn(e) {
5
+ e = e || $e, e && !e.__composition_api_installed__ && e.use(Un);
6
6
  }
7
- Bn(ke);
8
- ke.version;
9
- function Z() {
7
+ Pn($e);
8
+ $e.version;
9
+ function J() {
10
10
  }
11
- Z.prototype = {
12
- diff: function(n, t) {
13
- var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = s.callback;
14
- typeof s == "function" && (c = s, s = {}), this.options = s;
15
- var l = this;
16
- function r(g) {
17
- return c ? (setTimeout(function() {
18
- c(void 0, g);
19
- }, 0), !0) : g;
11
+ J.prototype = {
12
+ diff: function(n, a) {
13
+ var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, h = u.callback;
14
+ typeof u == "function" && (h = u, u = {}), this.options = u;
15
+ var t = this;
16
+ function r(d) {
17
+ return h ? (setTimeout(function() {
18
+ h(void 0, d);
19
+ }, 0), !0) : d;
20
20
  }
21
- n = this.castInput(n), t = this.castInput(t), n = this.removeEmpty(this.tokenize(n)), t = this.removeEmpty(this.tokenize(t));
22
- var i = t.length, a = n.length, o = 1, p = i + a;
23
- s.maxEditLength && (p = Math.min(p, s.maxEditLength));
24
- var d = [{
21
+ n = this.castInput(n), a = this.castInput(a), n = this.removeEmpty(this.tokenize(n)), a = this.removeEmpty(this.tokenize(a));
22
+ var i = a.length, s = n.length, o = 1, l = i + s;
23
+ u.maxEditLength && (l = Math.min(l, u.maxEditLength));
24
+ var c = [{
25
25
  newPos: -1,
26
26
  components: []
27
- }], b = this.extractCommon(d[0], t, n, 0);
28
- if (d[0].newPos + 1 >= i && b + 1 >= a)
27
+ }], f = this.extractCommon(c[0], a, n, 0);
28
+ if (c[0].newPos + 1 >= i && f + 1 >= s)
29
29
  return r([{
30
- value: this.join(t),
31
- count: t.length
30
+ value: this.join(a),
31
+ count: a.length
32
32
  }]);
33
- function E() {
34
- for (var g = -1 * o; g <= o; g += 2) {
35
- var m = void 0, S = d[g - 1], M = d[g + 1], x = (M ? M.newPos : 0) - g;
36
- S && (d[g - 1] = void 0);
37
- var A = S && S.newPos + 1 < i, L = M && 0 <= x && x < a;
38
- if (!A && !L) {
39
- d[g] = void 0;
33
+ function g() {
34
+ for (var d = -1 * o; d <= o; d += 2) {
35
+ var _ = void 0, v = c[d - 1], E = c[d + 1], w = (E ? E.newPos : 0) - d;
36
+ v && (c[d - 1] = void 0);
37
+ var m = v && v.newPos + 1 < i, T = E && 0 <= w && w < s;
38
+ if (!m && !T) {
39
+ c[d] = void 0;
40
40
  continue;
41
41
  }
42
- if (!A || L && S.newPos < M.newPos ? (m = Pn(M), l.pushComponent(m.components, void 0, !0)) : (m = S, m.newPos++, l.pushComponent(m.components, !0, void 0)), x = l.extractCommon(m, t, n, g), m.newPos + 1 >= i && x + 1 >= a)
43
- return r(Un(l, m.components, t, n, l.useLongestToken));
44
- d[g] = m;
42
+ if (!m || T && v.newPos < E.newPos ? (_ = Fn(E), t.pushComponent(_.components, void 0, !0)) : (_ = v, _.newPos++, t.pushComponent(_.components, !0, void 0)), w = t.extractCommon(_, a, n, d), _.newPos + 1 >= i && w + 1 >= s)
43
+ return r(xn(t, _.components, a, n, t.useLongestToken));
44
+ c[d] = _;
45
45
  }
46
46
  o++;
47
47
  }
48
- if (c)
49
- (function g() {
48
+ if (h)
49
+ (function d() {
50
50
  setTimeout(function() {
51
- if (o > p)
52
- return c();
53
- E() || g();
51
+ if (o > l)
52
+ return h();
53
+ g() || d();
54
54
  }, 0);
55
55
  })();
56
56
  else
57
- for (; o <= p; ) {
58
- var v = E();
59
- if (v)
60
- return v;
57
+ for (; o <= l; ) {
58
+ var p = g();
59
+ if (p)
60
+ return p;
61
61
  }
62
62
  },
63
- pushComponent: function(n, t, s) {
64
- var c = n[n.length - 1];
65
- c && c.added === t && c.removed === s ? n[n.length - 1] = {
66
- count: c.count + 1,
67
- added: t,
68
- removed: s
63
+ pushComponent: function(n, a, u) {
64
+ var h = n[n.length - 1];
65
+ h && h.added === a && h.removed === u ? n[n.length - 1] = {
66
+ count: h.count + 1,
67
+ added: a,
68
+ removed: u
69
69
  } : n.push({
70
70
  count: 1,
71
- added: t,
72
- removed: s
71
+ added: a,
72
+ removed: u
73
73
  });
74
74
  },
75
- extractCommon: function(n, t, s, c) {
76
- for (var l = t.length, r = s.length, i = n.newPos, a = i - c, o = 0; i + 1 < l && a + 1 < r && this.equals(t[i + 1], s[a + 1]); )
77
- i++, a++, o++;
75
+ extractCommon: function(n, a, u, h) {
76
+ for (var t = a.length, r = u.length, i = n.newPos, s = i - h, o = 0; i + 1 < t && s + 1 < r && this.equals(a[i + 1], u[s + 1]); )
77
+ i++, s++, o++;
78
78
  return o && n.components.push({
79
79
  count: o
80
- }), n.newPos = i, a;
80
+ }), n.newPos = i, s;
81
81
  },
82
- equals: function(n, t) {
83
- return this.options.comparator ? this.options.comparator(n, t) : n === t || this.options.ignoreCase && n.toLowerCase() === t.toLowerCase();
82
+ equals: function(n, a) {
83
+ return this.options.comparator ? this.options.comparator(n, a) : n === a || this.options.ignoreCase && n.toLowerCase() === a.toLowerCase();
84
84
  },
85
85
  removeEmpty: function(n) {
86
- for (var t = [], s = 0; s < n.length; s++)
87
- n[s] && t.push(n[s]);
88
- return t;
86
+ for (var a = [], u = 0; u < n.length; u++)
87
+ n[u] && a.push(n[u]);
88
+ return a;
89
89
  },
90
90
  castInput: function(n) {
91
91
  return n;
@@ -97,146 +97,791 @@ Z.prototype = {
97
97
  return n.join("");
98
98
  }
99
99
  };
100
- function Un(e, n, t, s, c) {
101
- for (var l = 0, r = n.length, i = 0, a = 0; l < r; l++) {
102
- var o = n[l];
100
+ function xn(e, n, a, u, h) {
101
+ for (var t = 0, r = n.length, i = 0, s = 0; t < r; t++) {
102
+ var o = n[t];
103
103
  if (o.removed) {
104
- if (o.value = e.join(s.slice(a, a + o.count)), a += o.count, l && n[l - 1].added) {
105
- var d = n[l - 1];
106
- n[l - 1] = n[l], n[l] = d;
104
+ if (o.value = e.join(u.slice(s, s + o.count)), s += o.count, t && n[t - 1].added) {
105
+ var c = n[t - 1];
106
+ n[t - 1] = n[t], n[t] = c;
107
107
  }
108
108
  } else {
109
- if (!o.added && c) {
110
- var p = t.slice(i, i + o.count);
111
- p = p.map(function(E, v) {
112
- var g = s[a + v];
113
- return g.length > E.length ? g : E;
114
- }), o.value = e.join(p);
109
+ if (!o.added && h) {
110
+ var l = a.slice(i, i + o.count);
111
+ l = l.map(function(g, p) {
112
+ var d = u[s + p];
113
+ return d.length > g.length ? d : g;
114
+ }), o.value = e.join(l);
115
115
  } else
116
- o.value = e.join(t.slice(i, i + o.count));
117
- i += o.count, o.added || (a += o.count);
116
+ o.value = e.join(a.slice(i, i + o.count));
117
+ i += o.count, o.added || (s += o.count);
118
118
  }
119
119
  }
120
- var b = n[r - 1];
121
- return r > 1 && typeof b.value == "string" && (b.added || b.removed) && e.equals("", b.value) && (n[r - 2].value += b.value, n.pop()), n;
120
+ var f = n[r - 1];
121
+ return r > 1 && typeof f.value == "string" && (f.added || f.removed) && e.equals("", f.value) && (n[r - 2].value += f.value, n.pop()), n;
122
122
  }
123
- function Pn(e) {
123
+ function Fn(e) {
124
124
  return {
125
125
  newPos: e.newPos,
126
126
  components: e.components.slice(0)
127
127
  };
128
128
  }
129
- var Hn = new Z();
130
- function zn(e, n, t) {
131
- return Hn.diff(e, n, t);
129
+ var Hn = new J();
130
+ function zn(e, n, a) {
131
+ return Hn.diff(e, n, a);
132
132
  }
133
- function Fn(e, n) {
133
+ function Gn(e, n) {
134
134
  if (typeof e == "function")
135
135
  n.callback = e;
136
136
  else if (e)
137
- for (var t in e)
138
- e.hasOwnProperty(t) && (n[t] = e[t]);
137
+ for (var a in e)
138
+ e.hasOwnProperty(a) && (n[a] = e[a]);
139
139
  return n;
140
140
  }
141
- var Xe = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Ve = /\S/, $e = new Z();
142
- $e.equals = function(e, n) {
143
- return this.options.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e === n || this.options.ignoreWhitespace && !Ve.test(e) && !Ve.test(n);
141
+ var Ve = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, je = /\S/, Ue = new J();
142
+ Ue.equals = function(e, n) {
143
+ return this.options.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e === n || this.options.ignoreWhitespace && !je.test(e) && !je.test(n);
144
144
  };
145
- $e.tokenize = function(e) {
146
- for (var n = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), t = 0; t < n.length - 1; t++)
147
- !n[t + 1] && n[t + 2] && Xe.test(n[t]) && Xe.test(n[t + 2]) && (n[t] += n[t + 2], n.splice(t + 1, 2), t--);
145
+ Ue.tokenize = function(e) {
146
+ for (var n = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), a = 0; a < n.length - 1; a++)
147
+ !n[a + 1] && n[a + 2] && Ve.test(n[a]) && Ve.test(n[a + 2]) && (n[a] += n[a + 2], n.splice(a + 1, 2), a--);
148
148
  return n;
149
149
  };
150
- function Gn(e, n, t) {
151
- return t = Fn(t, {
150
+ function Kn(e, n, a) {
151
+ return a = Gn(a, {
152
152
  ignoreWhitespace: !0
153
- }), $e.diff(e, n, t);
153
+ }), Ue.diff(e, n, a);
154
154
  }
155
- var Be = new Z();
156
- Be.tokenize = function(e) {
157
- var n = [], t = e.split(/(\n|\r\n)/);
158
- t[t.length - 1] || t.pop();
159
- for (var s = 0; s < t.length; s++) {
160
- var c = t[s];
161
- s % 2 && !this.options.newlineIsToken ? n[n.length - 1] += c : (this.options.ignoreWhitespace && (c = c.trim()), n.push(c));
155
+ var hn = new J();
156
+ hn.tokenize = function(e) {
157
+ var n = [], a = e.split(/(\n|\r\n)/);
158
+ a[a.length - 1] || a.pop();
159
+ for (var u = 0; u < a.length; u++) {
160
+ var h = a[u];
161
+ u % 2 && !this.options.newlineIsToken ? n[n.length - 1] += h : (this.options.ignoreWhitespace && (h = h.trim()), n.push(h));
162
162
  }
163
163
  return n;
164
164
  };
165
- function gn(e, n, t) {
166
- return Be.diff(e, n, t);
167
- }
168
- var Kn = new Z();
169
- Kn.tokenize = function(e) {
165
+ var Wn = new J();
166
+ Wn.tokenize = function(e) {
170
167
  return e.split(/(\S.+?[.!?])(?=\s+|$)/);
171
168
  };
172
- var Wn = new Z();
173
- Wn.tokenize = function(e) {
169
+ var Qn = new J();
170
+ Qn.tokenize = function(e) {
174
171
  return e.split(/([{}:;,]|\s+)/);
175
172
  };
176
- function we(e) {
177
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? we = function(n) {
173
+ function Te(e) {
174
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Te = function(n) {
178
175
  return typeof n;
179
- } : we = function(n) {
176
+ } : Te = function(n) {
180
177
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
181
- }, we(e);
178
+ }, Te(e);
182
179
  }
183
- var qn = Object.prototype.toString, le = new Z();
184
- le.useLongestToken = !0;
185
- le.tokenize = Be.tokenize;
186
- le.castInput = function(e) {
187
- var n = this.options, t = n.undefinedReplacement, s = n.stringifyReplacer, c = s === void 0 ? function(l, r) {
188
- return typeof r > "u" ? t : r;
189
- } : s;
190
- return typeof e == "string" ? e : JSON.stringify(De(e, null, null, c), c, " ");
180
+ var Zn = Object.prototype.toString, ue = new J();
181
+ ue.useLongestToken = !0;
182
+ ue.tokenize = hn.tokenize;
183
+ ue.castInput = function(e) {
184
+ var n = this.options, a = n.undefinedReplacement, u = n.stringifyReplacer, h = u === void 0 ? function(t, r) {
185
+ return typeof r > "u" ? a : r;
186
+ } : u;
187
+ return typeof e == "string" ? e : JSON.stringify(ke(e, null, null, h), h, " ");
191
188
  };
192
- le.equals = function(e, n) {
193
- return Z.prototype.equals.call(le, e.replace(/,([\r\n])/g, "$1"), n.replace(/,([\r\n])/g, "$1"));
189
+ ue.equals = function(e, n) {
190
+ return J.prototype.equals.call(ue, e.replace(/,([\r\n])/g, "$1"), n.replace(/,([\r\n])/g, "$1"));
194
191
  };
195
- function De(e, n, t, s, c) {
196
- n = n || [], t = t || [], s && (e = s(c, e));
197
- var l;
198
- for (l = 0; l < n.length; l += 1)
199
- if (n[l] === e)
200
- return t[l];
192
+ function ke(e, n, a, u, h) {
193
+ n = n || [], a = a || [], u && (e = u(h, e));
194
+ var t;
195
+ for (t = 0; t < n.length; t += 1)
196
+ if (n[t] === e)
197
+ return a[t];
201
198
  var r;
202
- if (qn.call(e) === "[object Array]") {
203
- for (n.push(e), r = new Array(e.length), t.push(r), l = 0; l < e.length; l += 1)
204
- r[l] = De(e[l], n, t, s, c);
205
- return n.pop(), t.pop(), r;
199
+ if (Zn.call(e) === "[object Array]") {
200
+ for (n.push(e), r = new Array(e.length), a.push(r), t = 0; t < e.length; t += 1)
201
+ r[t] = ke(e[t], n, a, u, h);
202
+ return n.pop(), a.pop(), r;
206
203
  }
207
- if (e && e.toJSON && (e = e.toJSON()), we(e) === "object" && e !== null) {
208
- n.push(e), r = {}, t.push(r);
209
- var i = [], a;
210
- for (a in e)
211
- e.hasOwnProperty(a) && i.push(a);
212
- for (i.sort(), l = 0; l < i.length; l += 1)
213
- a = i[l], r[a] = De(e[a], n, t, s, a);
214
- n.pop(), t.pop();
204
+ if (e && e.toJSON && (e = e.toJSON()), Te(e) === "object" && e !== null) {
205
+ n.push(e), r = {}, a.push(r);
206
+ var i = [], s;
207
+ for (s in e)
208
+ e.hasOwnProperty(s) && i.push(s);
209
+ for (i.sort(), t = 0; t < i.length; t += 1)
210
+ s = i[t], r[s] = ke(e[s], n, a, u, s);
211
+ n.pop(), a.pop();
215
212
  } else
216
213
  r = e;
217
214
  return r;
218
215
  }
219
- var Ie = new Z();
220
- Ie.tokenize = function(e) {
216
+ var Be = new J();
217
+ Be.tokenize = function(e) {
221
218
  return e.slice();
222
219
  };
223
- Ie.join = Ie.removeEmpty = function(e) {
220
+ Be.join = Be.removeEmpty = function(e) {
224
221
  return e;
225
222
  };
226
- var Ue = { exports: {} };
227
- function Pe(e) {
223
+ var ce = {}, Yn = {
224
+ get exports() {
225
+ return ce;
226
+ },
227
+ set exports(e) {
228
+ ce = e;
229
+ }
230
+ };
231
+ (function(e) {
232
+ var n = function() {
233
+ this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
234
+ }, a = -1, u = 1, h = 0;
235
+ n.Diff = function(t, r) {
236
+ return [t, r];
237
+ }, n.prototype.diff_main = function(t, r, i, s) {
238
+ typeof s > "u" && (this.Diff_Timeout <= 0 ? s = Number.MAX_VALUE : s = new Date().getTime() + this.Diff_Timeout * 1e3);
239
+ var o = s;
240
+ if (t == null || r == null)
241
+ throw new Error("Null input. (diff_main)");
242
+ if (t == r)
243
+ return t ? [new n.Diff(h, t)] : [];
244
+ typeof i > "u" && (i = !0);
245
+ var l = i, c = this.diff_commonPrefix(t, r), f = t.substring(0, c);
246
+ t = t.substring(c), r = r.substring(c), c = this.diff_commonSuffix(t, r);
247
+ var g = t.substring(t.length - c);
248
+ t = t.substring(0, t.length - c), r = r.substring(0, r.length - c);
249
+ var p = this.diff_compute_(t, r, l, o);
250
+ return f && p.unshift(new n.Diff(h, f)), g && p.push(new n.Diff(h, g)), this.diff_cleanupMerge(p), p;
251
+ }, n.prototype.diff_compute_ = function(t, r, i, s) {
252
+ var o;
253
+ if (!t)
254
+ return [new n.Diff(u, r)];
255
+ if (!r)
256
+ return [new n.Diff(a, t)];
257
+ var l = t.length > r.length ? t : r, c = t.length > r.length ? r : t, f = l.indexOf(c);
258
+ if (f != -1)
259
+ return o = [
260
+ new n.Diff(u, l.substring(0, f)),
261
+ new n.Diff(h, c),
262
+ new n.Diff(
263
+ u,
264
+ l.substring(f + c.length)
265
+ )
266
+ ], t.length > r.length && (o[0][0] = o[2][0] = a), o;
267
+ if (c.length == 1)
268
+ return [
269
+ new n.Diff(a, t),
270
+ new n.Diff(u, r)
271
+ ];
272
+ var g = this.diff_halfMatch_(t, r);
273
+ if (g) {
274
+ var p = g[0], d = g[1], _ = g[2], v = g[3], E = g[4], w = this.diff_main(p, _, i, s), m = this.diff_main(d, v, i, s);
275
+ return w.concat(
276
+ [new n.Diff(h, E)],
277
+ m
278
+ );
279
+ }
280
+ return i && t.length > 100 && r.length > 100 ? this.diff_lineMode_(t, r, s) : this.diff_bisect_(t, r, s);
281
+ }, n.prototype.diff_lineMode_ = function(t, r, i) {
282
+ var s = this.diff_linesToChars_(t, r);
283
+ t = s.chars1, r = s.chars2;
284
+ var o = s.lineArray, l = this.diff_main(t, r, !1, i);
285
+ this.diff_charsToLines_(l, o), this.diff_cleanupSemantic(l), l.push(new n.Diff(h, ""));
286
+ for (var c = 0, f = 0, g = 0, p = "", d = ""; c < l.length; ) {
287
+ switch (l[c][0]) {
288
+ case u:
289
+ g++, d += l[c][1];
290
+ break;
291
+ case a:
292
+ f++, p += l[c][1];
293
+ break;
294
+ case h:
295
+ if (f >= 1 && g >= 1) {
296
+ l.splice(
297
+ c - f - g,
298
+ f + g
299
+ ), c = c - f - g;
300
+ for (var _ = this.diff_main(p, d, !1, i), v = _.length - 1; v >= 0; v--)
301
+ l.splice(c, 0, _[v]);
302
+ c = c + _.length;
303
+ }
304
+ g = 0, f = 0, p = "", d = "";
305
+ break;
306
+ }
307
+ c++;
308
+ }
309
+ return l.pop(), l;
310
+ }, n.prototype.diff_bisect_ = function(t, r, i) {
311
+ for (var s = t.length, o = r.length, l = Math.ceil((s + o) / 2), c = l, f = 2 * l, g = new Array(f), p = new Array(f), d = 0; d < f; d++)
312
+ g[d] = -1, p[d] = -1;
313
+ g[c + 1] = 0, p[c + 1] = 0;
314
+ for (var _ = s - o, v = _ % 2 != 0, E = 0, w = 0, m = 0, T = 0, S = 0; S < l && !(new Date().getTime() > i); S++) {
315
+ for (var N = -S + E; N <= S - w; N += 2) {
316
+ var I = c + N, R;
317
+ N == -S || N != S && g[I - 1] < g[I + 1] ? R = g[I + 1] : R = g[I - 1] + 1;
318
+ for (var F = R - N; R < s && F < o && t.charAt(R) == r.charAt(F); )
319
+ R++, F++;
320
+ if (g[I] = R, R > s)
321
+ w += 2;
322
+ else if (F > o)
323
+ E += 2;
324
+ else if (v) {
325
+ var U = c + _ - N;
326
+ if (U >= 0 && U < f && p[U] != -1) {
327
+ var $ = s - p[U];
328
+ if (R >= $)
329
+ return this.diff_bisectSplit_(t, r, R, F, i);
330
+ }
331
+ }
332
+ }
333
+ for (var H = -S + m; H <= S - T; H += 2) {
334
+ var U = c + H, $;
335
+ H == -S || H != S && p[U - 1] < p[U + 1] ? $ = p[U + 1] : $ = p[U - 1] + 1;
336
+ for (var G = $ - H; $ < s && G < o && t.charAt(s - $ - 1) == r.charAt(o - G - 1); )
337
+ $++, G++;
338
+ if (p[U] = $, $ > s)
339
+ T += 2;
340
+ else if (G > o)
341
+ m += 2;
342
+ else if (!v) {
343
+ var I = c + _ - H;
344
+ if (I >= 0 && I < f && g[I] != -1) {
345
+ var R = g[I], F = c + R - I;
346
+ if ($ = s - $, R >= $)
347
+ return this.diff_bisectSplit_(t, r, R, F, i);
348
+ }
349
+ }
350
+ }
351
+ }
352
+ return [
353
+ new n.Diff(a, t),
354
+ new n.Diff(u, r)
355
+ ];
356
+ }, n.prototype.diff_bisectSplit_ = function(t, r, i, s, o) {
357
+ var l = t.substring(0, i), c = r.substring(0, s), f = t.substring(i), g = r.substring(s), p = this.diff_main(l, c, !1, o), d = this.diff_main(f, g, !1, o);
358
+ return p.concat(d);
359
+ }, n.prototype.diff_linesToChars_ = function(t, r) {
360
+ var i = [], s = {};
361
+ i[0] = "";
362
+ function o(g) {
363
+ for (var p = "", d = 0, _ = -1, v = i.length; _ < g.length - 1; ) {
364
+ _ = g.indexOf(`
365
+ `, d), _ == -1 && (_ = g.length - 1);
366
+ var E = g.substring(d, _ + 1);
367
+ (s.hasOwnProperty ? s.hasOwnProperty(E) : s[E] !== void 0) ? p += String.fromCharCode(s[E]) : (v == l && (E = g.substring(d), _ = g.length), p += String.fromCharCode(v), s[E] = v, i[v++] = E), d = _ + 1;
368
+ }
369
+ return p;
370
+ }
371
+ var l = 4e4, c = o(t);
372
+ l = 65535;
373
+ var f = o(r);
374
+ return { chars1: c, chars2: f, lineArray: i };
375
+ }, n.prototype.diff_charsToLines_ = function(t, r) {
376
+ for (var i = 0; i < t.length; i++) {
377
+ for (var s = t[i][1], o = [], l = 0; l < s.length; l++)
378
+ o[l] = r[s.charCodeAt(l)];
379
+ t[i][1] = o.join("");
380
+ }
381
+ }, n.prototype.diff_commonPrefix = function(t, r) {
382
+ if (!t || !r || t.charAt(0) != r.charAt(0))
383
+ return 0;
384
+ for (var i = 0, s = Math.min(t.length, r.length), o = s, l = 0; i < o; )
385
+ t.substring(l, o) == r.substring(l, o) ? (i = o, l = i) : s = o, o = Math.floor((s - i) / 2 + i);
386
+ return o;
387
+ }, n.prototype.diff_commonSuffix = function(t, r) {
388
+ if (!t || !r || t.charAt(t.length - 1) != r.charAt(r.length - 1))
389
+ return 0;
390
+ for (var i = 0, s = Math.min(t.length, r.length), o = s, l = 0; i < o; )
391
+ t.substring(t.length - o, t.length - l) == r.substring(r.length - o, r.length - l) ? (i = o, l = i) : s = o, o = Math.floor((s - i) / 2 + i);
392
+ return o;
393
+ }, n.prototype.diff_commonOverlap_ = function(t, r) {
394
+ var i = t.length, s = r.length;
395
+ if (i == 0 || s == 0)
396
+ return 0;
397
+ i > s ? t = t.substring(i - s) : i < s && (r = r.substring(0, i));
398
+ var o = Math.min(i, s);
399
+ if (t == r)
400
+ return o;
401
+ for (var l = 0, c = 1; ; ) {
402
+ var f = t.substring(o - c), g = r.indexOf(f);
403
+ if (g == -1)
404
+ return l;
405
+ c += g, (g == 0 || t.substring(o - c) == r.substring(0, c)) && (l = c, c++);
406
+ }
407
+ }, n.prototype.diff_halfMatch_ = function(t, r) {
408
+ if (this.Diff_Timeout <= 0)
409
+ return null;
410
+ var i = t.length > r.length ? t : r, s = t.length > r.length ? r : t;
411
+ if (i.length < 4 || s.length * 2 < i.length)
412
+ return null;
413
+ var o = this;
414
+ function l(w, m, T) {
415
+ for (var S = w.substring(T, T + Math.floor(w.length / 4)), N = -1, I = "", R, F, U, $; (N = m.indexOf(S, N + 1)) != -1; ) {
416
+ var H = o.diff_commonPrefix(
417
+ w.substring(T),
418
+ m.substring(N)
419
+ ), G = o.diff_commonSuffix(
420
+ w.substring(0, T),
421
+ m.substring(0, N)
422
+ );
423
+ I.length < G + H && (I = m.substring(N - G, N) + m.substring(N, N + H), R = w.substring(0, T - G), F = w.substring(T + H), U = m.substring(0, N - G), $ = m.substring(N + H));
424
+ }
425
+ return I.length * 2 >= w.length ? [
426
+ R,
427
+ F,
428
+ U,
429
+ $,
430
+ I
431
+ ] : null;
432
+ }
433
+ var c = l(
434
+ i,
435
+ s,
436
+ Math.ceil(i.length / 4)
437
+ ), f = l(
438
+ i,
439
+ s,
440
+ Math.ceil(i.length / 2)
441
+ ), g;
442
+ if (!c && !f)
443
+ return null;
444
+ f ? c ? g = c[4].length > f[4].length ? c : f : g = f : g = c;
445
+ var p, d, _, v;
446
+ t.length > r.length ? (p = g[0], d = g[1], _ = g[2], v = g[3]) : (_ = g[0], v = g[1], p = g[2], d = g[3]);
447
+ var E = g[4];
448
+ return [p, d, _, v, E];
449
+ }, n.prototype.diff_cleanupSemantic = function(t) {
450
+ for (var r = !1, i = [], s = 0, o = null, l = 0, c = 0, f = 0, g = 0, p = 0; l < t.length; )
451
+ t[l][0] == h ? (i[s++] = l, c = g, f = p, g = 0, p = 0, o = t[l][1]) : (t[l][0] == u ? g += t[l][1].length : p += t[l][1].length, o && o.length <= Math.max(c, f) && o.length <= Math.max(
452
+ g,
453
+ p
454
+ ) && (t.splice(
455
+ i[s - 1],
456
+ 0,
457
+ new n.Diff(a, o)
458
+ ), t[i[s - 1] + 1][0] = u, s--, s--, l = s > 0 ? i[s - 1] : -1, c = 0, f = 0, g = 0, p = 0, o = null, r = !0)), l++;
459
+ for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t), l = 1; l < t.length; ) {
460
+ if (t[l - 1][0] == a && t[l][0] == u) {
461
+ var d = t[l - 1][1], _ = t[l][1], v = this.diff_commonOverlap_(d, _), E = this.diff_commonOverlap_(_, d);
462
+ v >= E ? (v >= d.length / 2 || v >= _.length / 2) && (t.splice(l, 0, new n.Diff(
463
+ h,
464
+ _.substring(0, v)
465
+ )), t[l - 1][1] = d.substring(0, d.length - v), t[l + 1][1] = _.substring(v), l++) : (E >= d.length / 2 || E >= _.length / 2) && (t.splice(l, 0, new n.Diff(
466
+ h,
467
+ d.substring(0, E)
468
+ )), t[l - 1][0] = u, t[l - 1][1] = _.substring(0, _.length - E), t[l + 1][0] = a, t[l + 1][1] = d.substring(E), l++), l++;
469
+ }
470
+ l++;
471
+ }
472
+ }, n.prototype.diff_cleanupSemanticLossless = function(t) {
473
+ function r(E, w) {
474
+ if (!E || !w)
475
+ return 6;
476
+ var m = E.charAt(E.length - 1), T = w.charAt(0), S = m.match(n.nonAlphaNumericRegex_), N = T.match(n.nonAlphaNumericRegex_), I = S && m.match(n.whitespaceRegex_), R = N && T.match(n.whitespaceRegex_), F = I && m.match(n.linebreakRegex_), U = R && T.match(n.linebreakRegex_), $ = F && E.match(n.blanklineEndRegex_), H = U && w.match(n.blanklineStartRegex_);
477
+ return $ || H ? 5 : F || U ? 4 : S && !I && R ? 3 : I || R ? 2 : S || N ? 1 : 0;
478
+ }
479
+ for (var i = 1; i < t.length - 1; ) {
480
+ if (t[i - 1][0] == h && t[i + 1][0] == h) {
481
+ var s = t[i - 1][1], o = t[i][1], l = t[i + 1][1], c = this.diff_commonSuffix(s, o);
482
+ if (c) {
483
+ var f = o.substring(o.length - c);
484
+ s = s.substring(0, s.length - c), o = f + o.substring(0, o.length - c), l = f + l;
485
+ }
486
+ for (var g = s, p = o, d = l, _ = r(s, o) + r(o, l); o.charAt(0) === l.charAt(0); ) {
487
+ s += o.charAt(0), o = o.substring(1) + l.charAt(0), l = l.substring(1);
488
+ var v = r(s, o) + r(o, l);
489
+ v >= _ && (_ = v, g = s, p = o, d = l);
490
+ }
491
+ t[i - 1][1] != g && (g ? t[i - 1][1] = g : (t.splice(i - 1, 1), i--), t[i][1] = p, d ? t[i + 1][1] = d : (t.splice(i + 1, 1), i--));
492
+ }
493
+ i++;
494
+ }
495
+ }, n.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/, n.whitespaceRegex_ = /\s/, n.linebreakRegex_ = /[\r\n]/, n.blanklineEndRegex_ = /\n\r?\n$/, n.blanklineStartRegex_ = /^\r?\n\r?\n/, n.prototype.diff_cleanupEfficiency = function(t) {
496
+ for (var r = !1, i = [], s = 0, o = null, l = 0, c = !1, f = !1, g = !1, p = !1; l < t.length; )
497
+ t[l][0] == h ? (t[l][1].length < this.Diff_EditCost && (g || p) ? (i[s++] = l, c = g, f = p, o = t[l][1]) : (s = 0, o = null), g = p = !1) : (t[l][0] == a ? p = !0 : g = !0, o && (c && f && g && p || o.length < this.Diff_EditCost / 2 && c + f + g + p == 3) && (t.splice(
498
+ i[s - 1],
499
+ 0,
500
+ new n.Diff(a, o)
501
+ ), t[i[s - 1] + 1][0] = u, s--, o = null, c && f ? (g = p = !0, s = 0) : (s--, l = s > 0 ? i[s - 1] : -1, g = p = !1), r = !0)), l++;
502
+ r && this.diff_cleanupMerge(t);
503
+ }, n.prototype.diff_cleanupMerge = function(t) {
504
+ t.push(new n.Diff(h, ""));
505
+ for (var r = 0, i = 0, s = 0, o = "", l = "", c; r < t.length; )
506
+ switch (t[r][0]) {
507
+ case u:
508
+ s++, l += t[r][1], r++;
509
+ break;
510
+ case a:
511
+ i++, o += t[r][1], r++;
512
+ break;
513
+ case h:
514
+ i + s > 1 ? (i !== 0 && s !== 0 && (c = this.diff_commonPrefix(l, o), c !== 0 && (r - i - s > 0 && t[r - i - s - 1][0] == h ? t[r - i - s - 1][1] += l.substring(0, c) : (t.splice(0, 0, new n.Diff(
515
+ h,
516
+ l.substring(0, c)
517
+ )), r++), l = l.substring(c), o = o.substring(c)), c = this.diff_commonSuffix(l, o), c !== 0 && (t[r][1] = l.substring(l.length - c) + t[r][1], l = l.substring(0, l.length - c), o = o.substring(0, o.length - c))), r -= i + s, t.splice(r, i + s), o.length && (t.splice(
518
+ r,
519
+ 0,
520
+ new n.Diff(a, o)
521
+ ), r++), l.length && (t.splice(
522
+ r,
523
+ 0,
524
+ new n.Diff(u, l)
525
+ ), r++), r++) : r !== 0 && t[r - 1][0] == h ? (t[r - 1][1] += t[r][1], t.splice(r, 1)) : r++, s = 0, i = 0, o = "", l = "";
526
+ break;
527
+ }
528
+ t[t.length - 1][1] === "" && t.pop();
529
+ var f = !1;
530
+ for (r = 1; r < t.length - 1; )
531
+ t[r - 1][0] == h && t[r + 1][0] == h && (t[r][1].substring(t[r][1].length - t[r - 1][1].length) == t[r - 1][1] ? (t[r][1] = t[r - 1][1] + t[r][1].substring(0, t[r][1].length - t[r - 1][1].length), t[r + 1][1] = t[r - 1][1] + t[r + 1][1], t.splice(r - 1, 1), f = !0) : t[r][1].substring(0, t[r + 1][1].length) == t[r + 1][1] && (t[r - 1][1] += t[r + 1][1], t[r][1] = t[r][1].substring(t[r + 1][1].length) + t[r + 1][1], t.splice(r + 1, 1), f = !0)), r++;
532
+ f && this.diff_cleanupMerge(t);
533
+ }, n.prototype.diff_xIndex = function(t, r) {
534
+ var i = 0, s = 0, o = 0, l = 0, c;
535
+ for (c = 0; c < t.length && (t[c][0] !== u && (i += t[c][1].length), t[c][0] !== a && (s += t[c][1].length), !(i > r)); c++)
536
+ o = i, l = s;
537
+ return t.length != c && t[c][0] === a ? l : l + (r - o);
538
+ }, n.prototype.diff_prettyHtml = function(t) {
539
+ for (var r = [], i = /&/g, s = /</g, o = />/g, l = /\n/g, c = 0; c < t.length; c++) {
540
+ var f = t[c][0], g = t[c][1], p = g.replace(i, "&amp;").replace(s, "&lt;").replace(o, "&gt;").replace(l, "&para;<br>");
541
+ switch (f) {
542
+ case u:
543
+ r[c] = '<ins style="background:#e6ffe6;">' + p + "</ins>";
544
+ break;
545
+ case a:
546
+ r[c] = '<del style="background:#ffe6e6;">' + p + "</del>";
547
+ break;
548
+ case h:
549
+ r[c] = "<span>" + p + "</span>";
550
+ break;
551
+ }
552
+ }
553
+ return r.join("");
554
+ }, n.prototype.diff_text1 = function(t) {
555
+ for (var r = [], i = 0; i < t.length; i++)
556
+ t[i][0] !== u && (r[i] = t[i][1]);
557
+ return r.join("");
558
+ }, n.prototype.diff_text2 = function(t) {
559
+ for (var r = [], i = 0; i < t.length; i++)
560
+ t[i][0] !== a && (r[i] = t[i][1]);
561
+ return r.join("");
562
+ }, n.prototype.diff_levenshtein = function(t) {
563
+ for (var r = 0, i = 0, s = 0, o = 0; o < t.length; o++) {
564
+ var l = t[o][0], c = t[o][1];
565
+ switch (l) {
566
+ case u:
567
+ i += c.length;
568
+ break;
569
+ case a:
570
+ s += c.length;
571
+ break;
572
+ case h:
573
+ r += Math.max(i, s), i = 0, s = 0;
574
+ break;
575
+ }
576
+ }
577
+ return r += Math.max(i, s), r;
578
+ }, n.prototype.diff_toDelta = function(t) {
579
+ for (var r = [], i = 0; i < t.length; i++)
580
+ switch (t[i][0]) {
581
+ case u:
582
+ r[i] = "+" + encodeURI(t[i][1]);
583
+ break;
584
+ case a:
585
+ r[i] = "-" + t[i][1].length;
586
+ break;
587
+ case h:
588
+ r[i] = "=" + t[i][1].length;
589
+ break;
590
+ }
591
+ return r.join(" ").replace(/%20/g, " ");
592
+ }, n.prototype.diff_fromDelta = function(t, r) {
593
+ for (var i = [], s = 0, o = 0, l = r.split(/\t/g), c = 0; c < l.length; c++) {
594
+ var f = l[c].substring(1);
595
+ switch (l[c].charAt(0)) {
596
+ case "+":
597
+ try {
598
+ i[s++] = new n.Diff(u, decodeURI(f));
599
+ } catch {
600
+ throw new Error("Illegal escape in diff_fromDelta: " + f);
601
+ }
602
+ break;
603
+ case "-":
604
+ case "=":
605
+ var g = parseInt(f, 10);
606
+ if (isNaN(g) || g < 0)
607
+ throw new Error("Invalid number in diff_fromDelta: " + f);
608
+ var p = t.substring(o, o += g);
609
+ l[c].charAt(0) == "=" ? i[s++] = new n.Diff(h, p) : i[s++] = new n.Diff(a, p);
610
+ break;
611
+ default:
612
+ if (l[c])
613
+ throw new Error("Invalid diff operation in diff_fromDelta: " + l[c]);
614
+ }
615
+ }
616
+ if (o != t.length)
617
+ throw new Error("Delta length (" + o + ") does not equal source text length (" + t.length + ").");
618
+ return i;
619
+ }, n.prototype.match_main = function(t, r, i) {
620
+ if (t == null || r == null || i == null)
621
+ throw new Error("Null input. (match_main)");
622
+ return i = Math.max(0, Math.min(i, t.length)), t == r ? 0 : t.length ? t.substring(i, i + r.length) == r ? i : this.match_bitap_(t, r, i) : -1;
623
+ }, n.prototype.match_bitap_ = function(t, r, i) {
624
+ if (r.length > this.Match_MaxBits)
625
+ throw new Error("Pattern too long for this browser.");
626
+ var s = this.match_alphabet_(r), o = this;
627
+ function l(R, F) {
628
+ var U = R / r.length, $ = Math.abs(i - F);
629
+ return o.Match_Distance ? U + $ / o.Match_Distance : $ ? 1 : U;
630
+ }
631
+ var c = this.Match_Threshold, f = t.indexOf(r, i);
632
+ f != -1 && (c = Math.min(l(0, f), c), f = t.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(l(0, f), c)));
633
+ var g = 1 << r.length - 1;
634
+ f = -1;
635
+ for (var p, d, _ = r.length + t.length, v, E = 0; E < r.length; E++) {
636
+ for (p = 0, d = _; p < d; )
637
+ l(E, i + d) <= c ? p = d : _ = d, d = Math.floor((_ - p) / 2 + p);
638
+ _ = d;
639
+ var w = Math.max(1, i - d + 1), m = Math.min(i + d, t.length) + r.length, T = Array(m + 2);
640
+ T[m + 1] = (1 << E) - 1;
641
+ for (var S = m; S >= w; S--) {
642
+ var N = s[t.charAt(S - 1)];
643
+ if (E === 0 ? T[S] = (T[S + 1] << 1 | 1) & N : T[S] = (T[S + 1] << 1 | 1) & N | ((v[S + 1] | v[S]) << 1 | 1) | v[S + 1], T[S] & g) {
644
+ var I = l(E, S - 1);
645
+ if (I <= c)
646
+ if (c = I, f = S - 1, f > i)
647
+ w = Math.max(1, 2 * i - f);
648
+ else
649
+ break;
650
+ }
651
+ }
652
+ if (l(E + 1, i) > c)
653
+ break;
654
+ v = T;
655
+ }
656
+ return f;
657
+ }, n.prototype.match_alphabet_ = function(t) {
658
+ for (var r = {}, i = 0; i < t.length; i++)
659
+ r[t.charAt(i)] = 0;
660
+ for (var i = 0; i < t.length; i++)
661
+ r[t.charAt(i)] |= 1 << t.length - i - 1;
662
+ return r;
663
+ }, n.prototype.patch_addContext_ = function(t, r) {
664
+ if (r.length != 0) {
665
+ if (t.start2 === null)
666
+ throw Error("patch not initialized");
667
+ for (var i = r.substring(t.start2, t.start2 + t.length1), s = 0; r.indexOf(i) != r.lastIndexOf(i) && i.length < this.Match_MaxBits - this.Patch_Margin - this.Patch_Margin; )
668
+ s += this.Patch_Margin, i = r.substring(
669
+ t.start2 - s,
670
+ t.start2 + t.length1 + s
671
+ );
672
+ s += this.Patch_Margin;
673
+ var o = r.substring(t.start2 - s, t.start2);
674
+ o && t.diffs.unshift(new n.Diff(h, o));
675
+ var l = r.substring(
676
+ t.start2 + t.length1,
677
+ t.start2 + t.length1 + s
678
+ );
679
+ l && t.diffs.push(new n.Diff(h, l)), t.start1 -= o.length, t.start2 -= o.length, t.length1 += o.length + l.length, t.length2 += o.length + l.length;
680
+ }
681
+ }, n.prototype.patch_make = function(t, r, i) {
682
+ var s, o;
683
+ if (typeof t == "string" && typeof r == "string" && typeof i > "u")
684
+ s = /** @type {string} */
685
+ t, o = this.diff_main(
686
+ s,
687
+ /** @type {string} */
688
+ r,
689
+ !0
690
+ ), o.length > 2 && (this.diff_cleanupSemantic(o), this.diff_cleanupEfficiency(o));
691
+ else if (t && typeof t == "object" && typeof r > "u" && typeof i > "u")
692
+ o = /** @type {!Array.<!diff_match_patch.Diff>} */
693
+ t, s = this.diff_text1(o);
694
+ else if (typeof t == "string" && r && typeof r == "object" && typeof i > "u")
695
+ s = /** @type {string} */
696
+ t, o = /** @type {!Array.<!diff_match_patch.Diff>} */
697
+ r;
698
+ else if (typeof t == "string" && typeof r == "string" && i && typeof i == "object")
699
+ s = /** @type {string} */
700
+ t, o = /** @type {!Array.<!diff_match_patch.Diff>} */
701
+ i;
702
+ else
703
+ throw new Error("Unknown call format to patch_make.");
704
+ if (o.length === 0)
705
+ return [];
706
+ for (var l = [], c = new n.patch_obj(), f = 0, g = 0, p = 0, d = s, _ = s, v = 0; v < o.length; v++) {
707
+ var E = o[v][0], w = o[v][1];
708
+ switch (!f && E !== h && (c.start1 = g, c.start2 = p), E) {
709
+ case u:
710
+ c.diffs[f++] = o[v], c.length2 += w.length, _ = _.substring(0, p) + w + _.substring(p);
711
+ break;
712
+ case a:
713
+ c.length1 += w.length, c.diffs[f++] = o[v], _ = _.substring(0, p) + _.substring(p + w.length);
714
+ break;
715
+ case h:
716
+ w.length <= 2 * this.Patch_Margin && f && o.length != v + 1 ? (c.diffs[f++] = o[v], c.length1 += w.length, c.length2 += w.length) : w.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, d), l.push(c), c = new n.patch_obj(), f = 0, d = _, g = p);
717
+ break;
718
+ }
719
+ E !== u && (g += w.length), E !== a && (p += w.length);
720
+ }
721
+ return f && (this.patch_addContext_(c, d), l.push(c)), l;
722
+ }, n.prototype.patch_deepCopy = function(t) {
723
+ for (var r = [], i = 0; i < t.length; i++) {
724
+ var s = t[i], o = new n.patch_obj();
725
+ o.diffs = [];
726
+ for (var l = 0; l < s.diffs.length; l++)
727
+ o.diffs[l] = new n.Diff(s.diffs[l][0], s.diffs[l][1]);
728
+ o.start1 = s.start1, o.start2 = s.start2, o.length1 = s.length1, o.length2 = s.length2, r[i] = o;
729
+ }
730
+ return r;
731
+ }, n.prototype.patch_apply = function(t, r) {
732
+ if (t.length == 0)
733
+ return [r, []];
734
+ t = this.patch_deepCopy(t);
735
+ var i = this.patch_addPadding(t);
736
+ r = i + r + i, this.patch_splitMax(t);
737
+ for (var s = 0, o = [], l = 0; l < t.length; l++) {
738
+ var c = t[l].start2 + s, f = this.diff_text1(t[l].diffs), g, p = -1;
739
+ if (f.length > this.Match_MaxBits ? (g = this.match_main(
740
+ r,
741
+ f.substring(0, this.Match_MaxBits),
742
+ c
743
+ ), g != -1 && (p = this.match_main(
744
+ r,
745
+ f.substring(f.length - this.Match_MaxBits),
746
+ c + f.length - this.Match_MaxBits
747
+ ), (p == -1 || g >= p) && (g = -1))) : g = this.match_main(r, f, c), g == -1)
748
+ o[l] = !1, s -= t[l].length2 - t[l].length1;
749
+ else {
750
+ o[l] = !0, s = g - c;
751
+ var d;
752
+ if (p == -1 ? d = r.substring(g, g + f.length) : d = r.substring(g, p + this.Match_MaxBits), f == d)
753
+ r = r.substring(0, g) + this.diff_text2(t[l].diffs) + r.substring(g + f.length);
754
+ else {
755
+ var _ = this.diff_main(f, d, !1);
756
+ if (f.length > this.Match_MaxBits && this.diff_levenshtein(_) / f.length > this.Patch_DeleteThreshold)
757
+ o[l] = !1;
758
+ else {
759
+ this.diff_cleanupSemanticLossless(_);
760
+ for (var v = 0, E, w = 0; w < t[l].diffs.length; w++) {
761
+ var m = t[l].diffs[w];
762
+ m[0] !== h && (E = this.diff_xIndex(_, v)), m[0] === u ? r = r.substring(0, g + E) + m[1] + r.substring(g + E) : m[0] === a && (r = r.substring(0, g + E) + r.substring(g + this.diff_xIndex(
763
+ _,
764
+ v + m[1].length
765
+ ))), m[0] !== a && (v += m[1].length);
766
+ }
767
+ }
768
+ }
769
+ }
770
+ }
771
+ return r = r.substring(i.length, r.length - i.length), [r, o];
772
+ }, n.prototype.patch_addPadding = function(t) {
773
+ for (var r = this.Patch_Margin, i = "", s = 1; s <= r; s++)
774
+ i += String.fromCharCode(s);
775
+ for (var s = 0; s < t.length; s++)
776
+ t[s].start1 += r, t[s].start2 += r;
777
+ var o = t[0], l = o.diffs;
778
+ if (l.length == 0 || l[0][0] != h)
779
+ l.unshift(new n.Diff(h, i)), o.start1 -= r, o.start2 -= r, o.length1 += r, o.length2 += r;
780
+ else if (r > l[0][1].length) {
781
+ var c = r - l[0][1].length;
782
+ l[0][1] = i.substring(l[0][1].length) + l[0][1], o.start1 -= c, o.start2 -= c, o.length1 += c, o.length2 += c;
783
+ }
784
+ if (o = t[t.length - 1], l = o.diffs, l.length == 0 || l[l.length - 1][0] != h)
785
+ l.push(new n.Diff(h, i)), o.length1 += r, o.length2 += r;
786
+ else if (r > l[l.length - 1][1].length) {
787
+ var c = r - l[l.length - 1][1].length;
788
+ l[l.length - 1][1] += i.substring(0, c), o.length1 += c, o.length2 += c;
789
+ }
790
+ return i;
791
+ }, n.prototype.patch_splitMax = function(t) {
792
+ for (var r = this.Match_MaxBits, i = 0; i < t.length; i++)
793
+ if (!(t[i].length1 <= r)) {
794
+ var s = t[i];
795
+ t.splice(i--, 1);
796
+ for (var o = s.start1, l = s.start2, c = ""; s.diffs.length !== 0; ) {
797
+ var f = new n.patch_obj(), g = !0;
798
+ for (f.start1 = o - c.length, f.start2 = l - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new n.Diff(h, c))); s.diffs.length !== 0 && f.length1 < r - this.Patch_Margin; ) {
799
+ var p = s.diffs[0][0], d = s.diffs[0][1];
800
+ p === u ? (f.length2 += d.length, l += d.length, f.diffs.push(s.diffs.shift()), g = !1) : p === a && f.diffs.length == 1 && f.diffs[0][0] == h && d.length > 2 * r ? (f.length1 += d.length, o += d.length, g = !1, f.diffs.push(new n.Diff(p, d)), s.diffs.shift()) : (d = d.substring(
801
+ 0,
802
+ r - f.length1 - this.Patch_Margin
803
+ ), f.length1 += d.length, o += d.length, p === h ? (f.length2 += d.length, l += d.length) : g = !1, f.diffs.push(new n.Diff(p, d)), d == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(d.length));
804
+ }
805
+ c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
806
+ var _ = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
807
+ _ !== "" && (f.length1 += _.length, f.length2 += _.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === h ? f.diffs[f.diffs.length - 1][1] += _ : f.diffs.push(new n.Diff(h, _))), g || t.splice(++i, 0, f);
808
+ }
809
+ }
810
+ }, n.prototype.patch_toText = function(t) {
811
+ for (var r = [], i = 0; i < t.length; i++)
812
+ r[i] = t[i];
813
+ return r.join("");
814
+ }, n.prototype.patch_fromText = function(t) {
815
+ var r = [];
816
+ if (!t)
817
+ return r;
818
+ for (var i = t.split(`
819
+ `), s = 0, o = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; s < i.length; ) {
820
+ var l = i[s].match(o);
821
+ if (!l)
822
+ throw new Error("Invalid patch string: " + i[s]);
823
+ var c = new n.patch_obj();
824
+ for (r.push(c), c.start1 = parseInt(l[1], 10), l[2] === "" ? (c.start1--, c.length1 = 1) : l[2] == "0" ? c.length1 = 0 : (c.start1--, c.length1 = parseInt(l[2], 10)), c.start2 = parseInt(l[3], 10), l[4] === "" ? (c.start2--, c.length2 = 1) : l[4] == "0" ? c.length2 = 0 : (c.start2--, c.length2 = parseInt(l[4], 10)), s++; s < i.length; ) {
825
+ var f = i[s].charAt(0);
826
+ try {
827
+ var g = decodeURI(i[s].substring(1));
828
+ } catch {
829
+ throw new Error("Illegal escape in patch_fromText: " + g);
830
+ }
831
+ if (f == "-")
832
+ c.diffs.push(new n.Diff(a, g));
833
+ else if (f == "+")
834
+ c.diffs.push(new n.Diff(u, g));
835
+ else if (f == " ")
836
+ c.diffs.push(new n.Diff(h, g));
837
+ else {
838
+ if (f == "@")
839
+ break;
840
+ if (f !== "")
841
+ throw new Error('Invalid patch mode "' + f + '" in: ' + g);
842
+ }
843
+ s++;
844
+ }
845
+ }
846
+ return r;
847
+ }, n.patch_obj = function() {
848
+ this.diffs = [], this.start1 = null, this.start2 = null, this.length1 = 0, this.length2 = 0;
849
+ }, n.patch_obj.prototype.toString = function() {
850
+ var t, r;
851
+ this.length1 === 0 ? t = this.start1 + ",0" : this.length1 == 1 ? t = this.start1 + 1 : t = this.start1 + 1 + "," + this.length1, this.length2 === 0 ? r = this.start2 + ",0" : this.length2 == 1 ? r = this.start2 + 1 : r = this.start2 + 1 + "," + this.length2;
852
+ for (var i = ["@@ -" + t + " +" + r + ` @@
853
+ `], s, o = 0; o < this.diffs.length; o++) {
854
+ switch (this.diffs[o][0]) {
855
+ case u:
856
+ s = "+";
857
+ break;
858
+ case a:
859
+ s = "-";
860
+ break;
861
+ case h:
862
+ s = " ";
863
+ break;
864
+ }
865
+ i[o + 1] = s + encodeURI(this.diffs[o][1]) + `
866
+ `;
867
+ }
868
+ return i.join("").replace(/%20/g, " ");
869
+ }, e.exports = n, e.exports.diff_match_patch = n, e.exports.DIFF_DELETE = a, e.exports.DIFF_INSERT = u, e.exports.DIFF_EQUAL = h;
870
+ })(Yn);
871
+ var Pe = { exports: {} };
872
+ function xe(e) {
228
873
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
229
874
  throw new Error("map is read-only");
230
875
  } : e instanceof Set && (e.add = e.clear = e.delete = function() {
231
876
  throw new Error("set is read-only");
232
877
  }), Object.freeze(e), Object.getOwnPropertyNames(e).forEach(function(n) {
233
- var t = e[n];
234
- typeof t == "object" && !Object.isFrozen(t) && Pe(t);
878
+ var a = e[n];
879
+ typeof a == "object" && !Object.isFrozen(a) && xe(a);
235
880
  }), e;
236
881
  }
237
- Ue.exports = Pe;
238
- Ue.exports.default = Pe;
239
- class je {
882
+ Pe.exports = xe;
883
+ Pe.exports.default = xe;
884
+ class qe {
240
885
  /**
241
886
  * @param {CompiledMode} mode
242
887
  */
@@ -247,45 +892,45 @@ class je {
247
892
  this.isMatchIgnored = !0;
248
893
  }
249
894
  }
250
- function pn(e) {
895
+ function dn(e) {
251
896
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
252
897
  }
253
- function V(e, ...n) {
254
- const t = /* @__PURE__ */ Object.create(null);
255
- for (const s in e)
256
- t[s] = e[s];
257
- return n.forEach(function(s) {
258
- for (const c in s)
259
- t[c] = s[c];
898
+ function te(e, ...n) {
899
+ const a = /* @__PURE__ */ Object.create(null);
900
+ for (const u in e)
901
+ a[u] = e[u];
902
+ return n.forEach(function(u) {
903
+ for (const h in u)
904
+ a[h] = u[h];
260
905
  }), /** @type {T} */
261
- t;
906
+ a;
262
907
  }
263
- const Yn = "</span>", Je = (e) => !!e.scope || e.sublanguage && e.language, Zn = (e, { prefix: n }) => {
908
+ const Xn = "</span>", Je = (e) => !!e.scope || e.sublanguage && e.language, Vn = (e, { prefix: n }) => {
264
909
  if (e.includes(".")) {
265
- const t = e.split(".");
910
+ const a = e.split(".");
266
911
  return [
267
- `${n}${t.shift()}`,
268
- ...t.map((s, c) => `${s}${"_".repeat(c + 1)}`)
912
+ `${n}${a.shift()}`,
913
+ ...a.map((u, h) => `${u}${"_".repeat(h + 1)}`)
269
914
  ].join(" ");
270
915
  }
271
916
  return `${n}${e}`;
272
917
  };
273
- class Qn {
918
+ class jn {
274
919
  /**
275
920
  * Creates a new HTMLRenderer
276
921
  *
277
922
  * @param {Tree} parseTree - the parse tree (must support `walk` API)
278
923
  * @param {{classPrefix: string}} options
279
924
  */
280
- constructor(n, t) {
281
- this.buffer = "", this.classPrefix = t.classPrefix, n.walk(this);
925
+ constructor(n, a) {
926
+ this.buffer = "", this.classPrefix = a.classPrefix, n.walk(this);
282
927
  }
283
928
  /**
284
929
  * Adds texts to the output stream
285
930
  *
286
931
  * @param {string} text */
287
932
  addText(n) {
288
- this.buffer += pn(n);
933
+ this.buffer += dn(n);
289
934
  }
290
935
  /**
291
936
  * Adds a node open to the output stream (if needed)
@@ -294,15 +939,15 @@ class Qn {
294
939
  openNode(n) {
295
940
  if (!Je(n))
296
941
  return;
297
- let t = "";
298
- n.sublanguage ? t = `language-${n.language}` : t = Zn(n.scope, { prefix: this.classPrefix }), this.span(t);
942
+ let a = "";
943
+ n.sublanguage ? a = `language-${n.language}` : a = Vn(n.scope, { prefix: this.classPrefix }), this.span(a);
299
944
  }
300
945
  /**
301
946
  * Adds a node close to the output stream (if needed)
302
947
  *
303
948
  * @param {Node} node */
304
949
  closeNode(n) {
305
- Je(n) && (this.buffer += Yn);
950
+ Je(n) && (this.buffer += Xn);
306
951
  }
307
952
  /**
308
953
  * returns the accumulated buffer
@@ -323,7 +968,7 @@ const en = (e = {}) => {
323
968
  const n = { children: [] };
324
969
  return Object.assign(n, e), n;
325
970
  };
326
- class He {
971
+ class Fe {
327
972
  constructor() {
328
973
  this.rootNode = en(), this.stack = [this.rootNode];
329
974
  }
@@ -339,8 +984,8 @@ class He {
339
984
  }
340
985
  /** @param {string} scope */
341
986
  openNode(n) {
342
- const t = en({ scope: n });
343
- this.add(t), this.stack.push(t);
987
+ const a = en({ scope: n });
988
+ this.add(a), this.stack.push(a);
344
989
  }
345
990
  closeNode() {
346
991
  if (this.stack.length > 1)
@@ -364,19 +1009,19 @@ class He {
364
1009
  * @param {Renderer} builder
365
1010
  * @param {Node} node
366
1011
  */
367
- static _walk(n, t) {
368
- return typeof t == "string" ? n.addText(t) : t.children && (n.openNode(t), t.children.forEach((s) => this._walk(n, s)), n.closeNode(t)), n;
1012
+ static _walk(n, a) {
1013
+ return typeof a == "string" ? n.addText(a) : a.children && (n.openNode(a), a.children.forEach((u) => this._walk(n, u)), n.closeNode(a)), n;
369
1014
  }
370
1015
  /**
371
1016
  * @param {Node} node
372
1017
  */
373
1018
  static _collapse(n) {
374
- typeof n != "string" && n.children && (n.children.every((t) => typeof t == "string") ? n.children = [n.children.join("")] : n.children.forEach((t) => {
375
- He._collapse(t);
1019
+ typeof n != "string" && n.children && (n.children.every((a) => typeof a == "string") ? n.children = [n.children.join("")] : n.children.forEach((a) => {
1020
+ Fe._collapse(a);
376
1021
  }));
377
1022
  }
378
1023
  }
379
- class Xn extends He {
1024
+ class qn extends Fe {
380
1025
  /**
381
1026
  * @param {*} options
382
1027
  */
@@ -387,8 +1032,8 @@ class Xn extends He {
387
1032
  * @param {string} text
388
1033
  * @param {string} scope
389
1034
  */
390
- addKeyword(n, t) {
391
- n !== "" && (this.openNode(t), this.addText(n), this.closeNode());
1035
+ addKeyword(n, a) {
1036
+ n !== "" && (this.openNode(a), this.addText(n), this.closeNode());
392
1037
  }
393
1038
  /**
394
1039
  * @param {string} text
@@ -400,109 +1045,109 @@ class Xn extends He {
400
1045
  * @param {Emitter & {root: DataNode}} emitter
401
1046
  * @param {string} name
402
1047
  */
403
- addSublanguage(n, t) {
404
- const s = n.root;
405
- s.sublanguage = !0, s.language = t, this.add(s);
1048
+ addSublanguage(n, a) {
1049
+ const u = n.root;
1050
+ u.sublanguage = !0, u.language = a, this.add(u);
406
1051
  }
407
1052
  toHTML() {
408
- return new Qn(this, this.options).value();
1053
+ return new jn(this, this.options).value();
409
1054
  }
410
1055
  finalize() {
411
1056
  return !0;
412
1057
  }
413
1058
  }
414
- function ue(e) {
1059
+ function fe(e) {
415
1060
  return e ? typeof e == "string" ? e : e.source : null;
416
1061
  }
417
- function _n(e) {
418
- return ee("(?=", e, ")");
1062
+ function pn(e) {
1063
+ return se("(?=", e, ")");
419
1064
  }
420
- function Vn(e) {
421
- return ee("(?:", e, ")*");
1065
+ function Jn(e) {
1066
+ return se("(?:", e, ")*");
422
1067
  }
423
- function jn(e) {
424
- return ee("(?:", e, ")?");
1068
+ function et(e) {
1069
+ return se("(?:", e, ")?");
425
1070
  }
426
- function ee(...e) {
427
- return e.map((t) => ue(t)).join("");
1071
+ function se(...e) {
1072
+ return e.map((a) => fe(a)).join("");
428
1073
  }
429
- function Jn(e) {
1074
+ function nt(e) {
430
1075
  const n = e[e.length - 1];
431
1076
  return typeof n == "object" && n.constructor === Object ? (e.splice(e.length - 1, 1), n) : {};
432
1077
  }
433
- function ze(...e) {
434
- return "(" + (Jn(e).capture ? "" : "?:") + e.map((s) => ue(s)).join("|") + ")";
1078
+ function He(...e) {
1079
+ return "(" + (nt(e).capture ? "" : "?:") + e.map((u) => fe(u)).join("|") + ")";
435
1080
  }
436
- function hn(e) {
1081
+ function _n(e) {
437
1082
  return new RegExp(e.toString() + "|").exec("").length - 1;
438
1083
  }
439
- function et(e, n) {
440
- const t = e && e.exec(n);
441
- return t && t.index === 0;
1084
+ function tt(e, n) {
1085
+ const a = e && e.exec(n);
1086
+ return a && a.index === 0;
442
1087
  }
443
- const nt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
444
- function Fe(e, { joinWith: n }) {
445
- let t = 0;
446
- return e.map((s) => {
447
- t += 1;
448
- const c = t;
449
- let l = ue(s), r = "";
450
- for (; l.length > 0; ) {
451
- const i = nt.exec(l);
1088
+ const rt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1089
+ function ze(e, { joinWith: n }) {
1090
+ let a = 0;
1091
+ return e.map((u) => {
1092
+ a += 1;
1093
+ const h = a;
1094
+ let t = fe(u), r = "";
1095
+ for (; t.length > 0; ) {
1096
+ const i = rt.exec(t);
452
1097
  if (!i) {
453
- r += l;
1098
+ r += t;
454
1099
  break;
455
1100
  }
456
- r += l.substring(0, i.index), l = l.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? r += "\\" + String(Number(i[1]) + c) : (r += i[0], i[0] === "(" && t++);
1101
+ r += t.substring(0, i.index), t = t.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? r += "\\" + String(Number(i[1]) + h) : (r += i[0], i[0] === "(" && a++);
457
1102
  }
458
1103
  return r;
459
- }).map((s) => `(${s})`).join(n);
1104
+ }).map((u) => `(${u})`).join(n);
460
1105
  }
461
- const tt = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\\d+)?", mn = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", yn = "\\b(0b[01]+)", st = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", it = (e = {}) => {
1106
+ const it = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\\d+)?", En = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", mn = "\\b(0b[01]+)", st = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", at = (e = {}) => {
462
1107
  const n = /^#![ ]*\//;
463
- return e.binary && (e.begin = ee(
1108
+ return e.binary && (e.begin = se(
464
1109
  n,
465
1110
  /.*\b/,
466
1111
  e.binary,
467
1112
  /\b.*/
468
- )), V({
1113
+ )), te({
469
1114
  scope: "meta",
470
1115
  begin: n,
471
1116
  end: /$/,
472
1117
  relevance: 0,
473
1118
  /** @type {ModeCallback} */
474
- "on:begin": (t, s) => {
475
- t.index !== 0 && s.ignoreMatch();
1119
+ "on:begin": (a, u) => {
1120
+ a.index !== 0 && u.ignoreMatch();
476
1121
  }
477
1122
  }, e);
478
- }, fe = {
1123
+ }, ge = {
479
1124
  begin: "\\\\[\\s\\S]",
480
1125
  relevance: 0
481
- }, rt = {
1126
+ }, ot = {
482
1127
  scope: "string",
483
1128
  begin: "'",
484
1129
  end: "'",
485
1130
  illegal: "\\n",
486
- contains: [fe]
487
- }, at = {
1131
+ contains: [ge]
1132
+ }, lt = {
488
1133
  scope: "string",
489
1134
  begin: '"',
490
1135
  end: '"',
491
1136
  illegal: "\\n",
492
- contains: [fe]
493
- }, ot = {
1137
+ contains: [ge]
1138
+ }, ct = {
494
1139
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
495
- }, Re = function(e, n, t = {}) {
496
- const s = V(
1140
+ }, Re = function(e, n, a = {}) {
1141
+ const u = te(
497
1142
  {
498
1143
  scope: "comment",
499
1144
  begin: e,
500
1145
  end: n,
501
1146
  contains: []
502
1147
  },
503
- t
1148
+ a
504
1149
  );
505
- s.contains.push({
1150
+ u.contains.push({
506
1151
  scope: "doctag",
507
1152
  // hack to avoid the space from being included. the space is necessary to
508
1153
  // match here to prevent the plain text rule below from gobbling up doctags
@@ -511,7 +1156,7 @@ const tt = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\
511
1156
  excludeBegin: !0,
512
1157
  relevance: 0
513
1158
  });
514
- const c = ze(
1159
+ const h = He(
515
1160
  // list of common 1 and 2 letter words in English
516
1161
  "I",
517
1162
  "a",
@@ -532,7 +1177,7 @@ const tt = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\
532
1177
  /[A-Za-z][a-z]{2,}/
533
1178
  // allow capitalized words at beginning of sentences
534
1179
  );
535
- return s.contains.push(
1180
+ return u.contains.push(
536
1181
  {
537
1182
  // TODO: how to include ", (, ) without breaking grammars that use these for
538
1183
  // comment delimiters?
@@ -547,30 +1192,30 @@ const tt = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\
547
1192
  //
548
1193
  // for a visual example please see:
549
1194
  // https://github.com/highlightjs/highlight.js/issues/2827
550
- begin: ee(
1195
+ begin: se(
551
1196
  /[ ]+/,
552
1197
  // necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
553
1198
  "(",
554
- c,
1199
+ h,
555
1200
  /[.]?[:]?([.][ ]|[ ])/,
556
1201
  "){3}"
557
1202
  )
558
1203
  // look for 3 words in a row
559
1204
  }
560
- ), s;
561
- }, ct = Re("//", "$"), lt = Re("/\\*", "\\*/"), ut = Re("#", "$"), ft = {
1205
+ ), u;
1206
+ }, ut = Re("//", "$"), ft = Re("/\\*", "\\*/"), gt = Re("#", "$"), ht = {
562
1207
  scope: "number",
563
- begin: En,
1208
+ begin: vn,
564
1209
  relevance: 0
565
1210
  }, dt = {
566
1211
  scope: "number",
567
- begin: mn,
1212
+ begin: En,
568
1213
  relevance: 0
569
- }, gt = {
1214
+ }, pt = {
570
1215
  scope: "number",
571
- begin: yn,
1216
+ begin: mn,
572
1217
  relevance: 0
573
- }, pt = {
1218
+ }, _t = {
574
1219
  // this outer rule makes sure we actually have a WHOLE regex and not simply
575
1220
  // an expression such as:
576
1221
  //
@@ -584,106 +1229,106 @@ const tt = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\
584
1229
  end: /\/[gimuy]*/,
585
1230
  illegal: /\n/,
586
1231
  contains: [
587
- fe,
1232
+ ge,
588
1233
  {
589
1234
  begin: /\[/,
590
1235
  end: /\]/,
591
1236
  relevance: 0,
592
- contains: [fe]
1237
+ contains: [ge]
593
1238
  }
594
1239
  ]
595
1240
  }]
596
- }, _t = {
1241
+ }, bt = {
597
1242
  scope: "title",
598
1243
  begin: bn,
599
1244
  relevance: 0
600
- }, ht = {
1245
+ }, vt = {
601
1246
  scope: "title",
602
1247
  begin: Ge,
603
1248
  relevance: 0
604
- }, bt = {
1249
+ }, Et = {
605
1250
  // excludes method names from keyword processing
606
1251
  begin: "\\.\\s*" + Ge,
607
1252
  relevance: 0
608
- }, Et = function(e) {
1253
+ }, mt = function(e) {
609
1254
  return Object.assign(
610
1255
  e,
611
1256
  {
612
1257
  /** @type {ModeCallback} */
613
- "on:begin": (n, t) => {
614
- t.data._beginMatch = n[1];
1258
+ "on:begin": (n, a) => {
1259
+ a.data._beginMatch = n[1];
615
1260
  },
616
1261
  /** @type {ModeCallback} */
617
- "on:end": (n, t) => {
618
- t.data._beginMatch !== n[1] && t.ignoreMatch();
1262
+ "on:end": (n, a) => {
1263
+ a.data._beginMatch !== n[1] && a.ignoreMatch();
619
1264
  }
620
1265
  }
621
1266
  );
622
1267
  };
623
- var Ne = /* @__PURE__ */ Object.freeze({
1268
+ var Me = /* @__PURE__ */ Object.freeze({
624
1269
  __proto__: null,
625
- MATCH_NOTHING_RE: tt,
1270
+ MATCH_NOTHING_RE: it,
626
1271
  IDENT_RE: bn,
627
1272
  UNDERSCORE_IDENT_RE: Ge,
628
- NUMBER_RE: En,
629
- C_NUMBER_RE: mn,
630
- BINARY_NUMBER_RE: yn,
1273
+ NUMBER_RE: vn,
1274
+ C_NUMBER_RE: En,
1275
+ BINARY_NUMBER_RE: mn,
631
1276
  RE_STARTERS_RE: st,
632
- SHEBANG: it,
633
- BACKSLASH_ESCAPE: fe,
634
- APOS_STRING_MODE: rt,
635
- QUOTE_STRING_MODE: at,
636
- PHRASAL_WORDS_MODE: ot,
1277
+ SHEBANG: at,
1278
+ BACKSLASH_ESCAPE: ge,
1279
+ APOS_STRING_MODE: ot,
1280
+ QUOTE_STRING_MODE: lt,
1281
+ PHRASAL_WORDS_MODE: ct,
637
1282
  COMMENT: Re,
638
- C_LINE_COMMENT_MODE: ct,
639
- C_BLOCK_COMMENT_MODE: lt,
640
- HASH_COMMENT_MODE: ut,
641
- NUMBER_MODE: ft,
1283
+ C_LINE_COMMENT_MODE: ut,
1284
+ C_BLOCK_COMMENT_MODE: ft,
1285
+ HASH_COMMENT_MODE: gt,
1286
+ NUMBER_MODE: ht,
642
1287
  C_NUMBER_MODE: dt,
643
- BINARY_NUMBER_MODE: gt,
644
- REGEXP_MODE: pt,
645
- TITLE_MODE: _t,
646
- UNDERSCORE_TITLE_MODE: ht,
647
- METHOD_GUARD: bt,
648
- END_SAME_AS_BEGIN: Et
1288
+ BINARY_NUMBER_MODE: pt,
1289
+ REGEXP_MODE: _t,
1290
+ TITLE_MODE: bt,
1291
+ UNDERSCORE_TITLE_MODE: vt,
1292
+ METHOD_GUARD: Et,
1293
+ END_SAME_AS_BEGIN: mt
649
1294
  });
650
- function mt(e, n) {
1295
+ function yt(e, n) {
651
1296
  e.input[e.index - 1] === "." && n.ignoreMatch();
652
1297
  }
653
- function yt(e, n) {
1298
+ function wt(e, n) {
654
1299
  e.className !== void 0 && (e.scope = e.className, delete e.className);
655
1300
  }
656
- function vt(e, n) {
657
- n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = mt, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
1301
+ function Mt(e, n) {
1302
+ n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = yt, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
658
1303
  }
659
1304
  function Nt(e, n) {
660
- Array.isArray(e.illegal) && (e.illegal = ze(...e.illegal));
1305
+ Array.isArray(e.illegal) && (e.illegal = He(...e.illegal));
661
1306
  }
662
- function Tt(e, n) {
1307
+ function At(e, n) {
663
1308
  if (e.match) {
664
1309
  if (e.begin || e.end)
665
1310
  throw new Error("begin & end are not supported with match");
666
1311
  e.begin = e.match, delete e.match;
667
1312
  }
668
1313
  }
669
- function At(e, n) {
1314
+ function Tt(e, n) {
670
1315
  e.relevance === void 0 && (e.relevance = 1);
671
1316
  }
672
- const wt = (e, n) => {
1317
+ const St = (e, n) => {
673
1318
  if (!e.beforeMatch)
674
1319
  return;
675
1320
  if (e.starts)
676
1321
  throw new Error("beforeMatch cannot be used with starts");
677
- const t = Object.assign({}, e);
678
- Object.keys(e).forEach((s) => {
679
- delete e[s];
680
- }), e.keywords = t.keywords, e.begin = ee(t.beforeMatch, _n(t.begin)), e.starts = {
1322
+ const a = Object.assign({}, e);
1323
+ Object.keys(e).forEach((u) => {
1324
+ delete e[u];
1325
+ }), e.keywords = a.keywords, e.begin = se(a.beforeMatch, pn(a.begin)), e.starts = {
681
1326
  relevance: 0,
682
1327
  contains: [
683
- Object.assign(t, { endsParent: !0 })
1328
+ Object.assign(a, { endsParent: !0 })
684
1329
  ]
685
- }, e.relevance = 0, delete t.beforeMatch;
686
- }, St = [
1330
+ }, e.relevance = 0, delete a.beforeMatch;
1331
+ }, Dt = [
687
1332
  "of",
688
1333
  "and",
689
1334
  "for",
@@ -698,97 +1343,97 @@ const wt = (e, n) => {
698
1343
  // common variable name
699
1344
  "value"
700
1345
  // common variable name
701
- ], Mt = "keyword";
702
- function vn(e, n, t = Mt) {
703
- const s = /* @__PURE__ */ Object.create(null);
704
- return typeof e == "string" ? c(t, e.split(" ")) : Array.isArray(e) ? c(t, e) : Object.keys(e).forEach(function(l) {
1346
+ ], Rt = "keyword";
1347
+ function yn(e, n, a = Rt) {
1348
+ const u = /* @__PURE__ */ Object.create(null);
1349
+ return typeof e == "string" ? h(a, e.split(" ")) : Array.isArray(e) ? h(a, e) : Object.keys(e).forEach(function(t) {
705
1350
  Object.assign(
706
- s,
707
- vn(e[l], n, l)
1351
+ u,
1352
+ yn(e[t], n, t)
708
1353
  );
709
- }), s;
710
- function c(l, r) {
1354
+ }), u;
1355
+ function h(t, r) {
711
1356
  n && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
712
- const a = i.split("|");
713
- s[a[0]] = [l, Rt(a[0], a[1])];
1357
+ const s = i.split("|");
1358
+ u[s[0]] = [t, Ot(s[0], s[1])];
714
1359
  });
715
1360
  }
716
1361
  }
717
- function Rt(e, n) {
718
- return n ? Number(n) : Ot(e) ? 0 : 1;
1362
+ function Ot(e, n) {
1363
+ return n ? Number(n) : Ct(e) ? 0 : 1;
719
1364
  }
720
- function Ot(e) {
721
- return St.includes(e.toLowerCase());
1365
+ function Ct(e) {
1366
+ return Dt.includes(e.toLowerCase());
722
1367
  }
723
- const nn = {}, J = (e) => {
1368
+ const nn = {}, ie = (e) => {
724
1369
  console.error(e);
725
1370
  }, tn = (e, ...n) => {
726
1371
  console.log(`WARN: ${e}`, ...n);
727
- }, ie = (e, n) => {
1372
+ }, ae = (e, n) => {
728
1373
  nn[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), nn[`${e}/${n}`] = !0);
729
1374
  }, Se = new Error();
730
- function Nn(e, n, { key: t }) {
731
- let s = 0;
732
- const c = e[t], l = {}, r = {};
1375
+ function wn(e, n, { key: a }) {
1376
+ let u = 0;
1377
+ const h = e[a], t = {}, r = {};
733
1378
  for (let i = 1; i <= n.length; i++)
734
- r[i + s] = c[i], l[i + s] = !0, s += hn(n[i - 1]);
735
- e[t] = r, e[t]._emit = l, e[t]._multi = !0;
1379
+ r[i + u] = h[i], t[i + u] = !0, u += _n(n[i - 1]);
1380
+ e[a] = r, e[a]._emit = t, e[a]._multi = !0;
736
1381
  }
737
- function xt(e) {
1382
+ function Lt(e) {
738
1383
  if (Array.isArray(e.begin)) {
739
1384
  if (e.skip || e.excludeBegin || e.returnBegin)
740
- throw J("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Se;
1385
+ throw ie("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Se;
741
1386
  if (typeof e.beginScope != "object" || e.beginScope === null)
742
- throw J("beginScope must be object"), Se;
743
- Nn(e, e.begin, { key: "beginScope" }), e.begin = Fe(e.begin, { joinWith: "" });
1387
+ throw ie("beginScope must be object"), Se;
1388
+ wn(e, e.begin, { key: "beginScope" }), e.begin = ze(e.begin, { joinWith: "" });
744
1389
  }
745
1390
  }
746
- function Ct(e) {
1391
+ function It(e) {
747
1392
  if (Array.isArray(e.end)) {
748
1393
  if (e.skip || e.excludeEnd || e.returnEnd)
749
- throw J("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Se;
1394
+ throw ie("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Se;
750
1395
  if (typeof e.endScope != "object" || e.endScope === null)
751
- throw J("endScope must be object"), Se;
752
- Nn(e, e.end, { key: "endScope" }), e.end = Fe(e.end, { joinWith: "" });
1396
+ throw ie("endScope must be object"), Se;
1397
+ wn(e, e.end, { key: "endScope" }), e.end = ze(e.end, { joinWith: "" });
753
1398
  }
754
1399
  }
755
- function Lt(e) {
1400
+ function kt(e) {
756
1401
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
757
1402
  }
758
- function Dt(e) {
759
- Lt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), xt(e), Ct(e);
1403
+ function Bt(e) {
1404
+ kt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Lt(e), It(e);
760
1405
  }
761
- function It(e) {
1406
+ function $t(e) {
762
1407
  function n(r, i) {
763
1408
  return new RegExp(
764
- ue(r),
1409
+ fe(r),
765
1410
  "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (i ? "g" : "")
766
1411
  );
767
1412
  }
768
- class t {
1413
+ class a {
769
1414
  constructor() {
770
1415
  this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
771
1416
  }
772
1417
  // @ts-ignore
773
- addRule(i, a) {
774
- a.position = this.position++, this.matchIndexes[this.matchAt] = a, this.regexes.push([a, i]), this.matchAt += hn(i) + 1;
1418
+ addRule(i, s) {
1419
+ s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += _n(i) + 1;
775
1420
  }
776
1421
  compile() {
777
1422
  this.regexes.length === 0 && (this.exec = () => null);
778
- const i = this.regexes.map((a) => a[1]);
779
- this.matcherRe = n(Fe(i, { joinWith: "|" }), !0), this.lastIndex = 0;
1423
+ const i = this.regexes.map((s) => s[1]);
1424
+ this.matcherRe = n(ze(i, { joinWith: "|" }), !0), this.lastIndex = 0;
780
1425
  }
781
1426
  /** @param {string} s */
782
1427
  exec(i) {
783
1428
  this.matcherRe.lastIndex = this.lastIndex;
784
- const a = this.matcherRe.exec(i);
785
- if (!a)
1429
+ const s = this.matcherRe.exec(i);
1430
+ if (!s)
786
1431
  return null;
787
- const o = a.findIndex((d, b) => b > 0 && d !== void 0), p = this.matchIndexes[o];
788
- return a.splice(0, o), Object.assign(a, p);
1432
+ const o = s.findIndex((c, f) => f > 0 && c !== void 0), l = this.matchIndexes[o];
1433
+ return s.splice(0, o), Object.assign(s, l);
789
1434
  }
790
1435
  }
791
- class s {
1436
+ class u {
792
1437
  constructor() {
793
1438
  this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
794
1439
  }
@@ -796,8 +1441,8 @@ function It(e) {
796
1441
  getMatcher(i) {
797
1442
  if (this.multiRegexes[i])
798
1443
  return this.multiRegexes[i];
799
- const a = new t();
800
- return this.rules.slice(i).forEach(([o, p]) => a.addRule(o, p)), a.compile(), this.multiRegexes[i] = a, a;
1444
+ const s = new a();
1445
+ return this.rules.slice(i).forEach(([o, l]) => s.addRule(o, l)), s.compile(), this.multiRegexes[i] = s, s;
801
1446
  }
802
1447
  resumingScanAtSamePosition() {
803
1448
  return this.regexIndex !== 0;
@@ -806,86 +1451,86 @@ function It(e) {
806
1451
  this.regexIndex = 0;
807
1452
  }
808
1453
  // @ts-ignore
809
- addRule(i, a) {
810
- this.rules.push([i, a]), a.type === "begin" && this.count++;
1454
+ addRule(i, s) {
1455
+ this.rules.push([i, s]), s.type === "begin" && this.count++;
811
1456
  }
812
1457
  /** @param {string} s */
813
1458
  exec(i) {
814
- const a = this.getMatcher(this.regexIndex);
815
- a.lastIndex = this.lastIndex;
816
- let o = a.exec(i);
1459
+ const s = this.getMatcher(this.regexIndex);
1460
+ s.lastIndex = this.lastIndex;
1461
+ let o = s.exec(i);
817
1462
  if (this.resumingScanAtSamePosition() && !(o && o.index === this.lastIndex)) {
818
- const p = this.getMatcher(0);
819
- p.lastIndex = this.lastIndex + 1, o = p.exec(i);
1463
+ const l = this.getMatcher(0);
1464
+ l.lastIndex = this.lastIndex + 1, o = l.exec(i);
820
1465
  }
821
1466
  return o && (this.regexIndex += o.position + 1, this.regexIndex === this.count && this.considerAll()), o;
822
1467
  }
823
1468
  }
824
- function c(r) {
825
- const i = new s();
826
- return r.contains.forEach((a) => i.addRule(a.begin, { rule: a, type: "begin" })), r.terminatorEnd && i.addRule(r.terminatorEnd, { type: "end" }), r.illegal && i.addRule(r.illegal, { type: "illegal" }), i;
1469
+ function h(r) {
1470
+ const i = new u();
1471
+ return r.contains.forEach((s) => i.addRule(s.begin, { rule: s, type: "begin" })), r.terminatorEnd && i.addRule(r.terminatorEnd, { type: "end" }), r.illegal && i.addRule(r.illegal, { type: "illegal" }), i;
827
1472
  }
828
- function l(r, i) {
829
- const a = (
1473
+ function t(r, i) {
1474
+ const s = (
830
1475
  /** @type CompiledMode */
831
1476
  r
832
1477
  );
833
1478
  if (r.isCompiled)
834
- return a;
1479
+ return s;
835
1480
  [
836
- yt,
1481
+ wt,
837
1482
  // do this early so compiler extensions generally don't have to worry about
838
1483
  // the distinction between match/begin
839
- Tt,
840
- Dt,
841
- wt
842
- ].forEach((p) => p(r, i)), e.compilerExtensions.forEach((p) => p(r, i)), r.__beforeBegin = null, [
843
- vt,
1484
+ At,
1485
+ Bt,
1486
+ St
1487
+ ].forEach((l) => l(r, i)), e.compilerExtensions.forEach((l) => l(r, i)), r.__beforeBegin = null, [
1488
+ Mt,
844
1489
  // do this later so compiler extensions that come earlier have access to the
845
1490
  // raw array if they wanted to perhaps manipulate it, etc.
846
1491
  Nt,
847
1492
  // default to 1 relevance if not specified
848
- At
849
- ].forEach((p) => p(r, i)), r.isCompiled = !0;
1493
+ Tt
1494
+ ].forEach((l) => l(r, i)), r.isCompiled = !0;
850
1495
  let o = null;
851
- return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), o = r.keywords.$pattern, delete r.keywords.$pattern), o = o || /\w+/, r.keywords && (r.keywords = vn(r.keywords, e.case_insensitive)), a.keywordPatternRe = n(o, !0), i && (r.begin || (r.begin = /\B|\b/), a.beginRe = n(a.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (a.endRe = n(a.end)), a.terminatorEnd = ue(a.end) || "", r.endsWithParent && i.terminatorEnd && (a.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (a.illegalRe = n(
1496
+ return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), o = r.keywords.$pattern, delete r.keywords.$pattern), o = o || /\w+/, r.keywords && (r.keywords = yn(r.keywords, e.case_insensitive)), s.keywordPatternRe = n(o, !0), i && (r.begin || (r.begin = /\B|\b/), s.beginRe = n(s.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (s.endRe = n(s.end)), s.terminatorEnd = fe(s.end) || "", r.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (s.illegalRe = n(
852
1497
  /** @type {RegExp | string} */
853
1498
  r.illegal
854
- )), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(p) {
855
- return kt(p === "self" ? r : p);
856
- })), r.contains.forEach(function(p) {
857
- l(
1499
+ )), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(l) {
1500
+ return Ut(l === "self" ? r : l);
1501
+ })), r.contains.forEach(function(l) {
1502
+ t(
858
1503
  /** @type Mode */
859
- p,
860
- a
1504
+ l,
1505
+ s
861
1506
  );
862
- }), r.starts && l(r.starts, i), a.matcher = c(a), a;
1507
+ }), r.starts && t(r.starts, i), s.matcher = h(s), s;
863
1508
  }
864
1509
  if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
865
1510
  throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
866
- return e.classNameAliases = V(e.classNameAliases || {}), l(
1511
+ return e.classNameAliases = te(e.classNameAliases || {}), t(
867
1512
  /** @type Mode */
868
1513
  e
869
1514
  );
870
1515
  }
871
- function Tn(e) {
872
- return e ? e.endsWithParent || Tn(e.starts) : !1;
1516
+ function Mn(e) {
1517
+ return e ? e.endsWithParent || Mn(e.starts) : !1;
873
1518
  }
874
- function kt(e) {
1519
+ function Ut(e) {
875
1520
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
876
- return V(e, { variants: null }, n);
877
- })), e.cachedVariants ? e.cachedVariants : Tn(e) ? V(e, { starts: e.starts ? V(e.starts) : null }) : Object.isFrozen(e) ? V(e) : e;
1521
+ return te(e, { variants: null }, n);
1522
+ })), e.cachedVariants ? e.cachedVariants : Mn(e) ? te(e, { starts: e.starts ? te(e.starts) : null }) : Object.isFrozen(e) ? te(e) : e;
878
1523
  }
879
- var $t = "11.7.0";
880
- class Bt extends Error {
881
- constructor(n, t) {
882
- super(n), this.name = "HTMLInjectionError", this.html = t;
1524
+ var Pt = "11.7.0";
1525
+ class xt extends Error {
1526
+ constructor(n, a) {
1527
+ super(n), this.name = "HTMLInjectionError", this.html = a;
883
1528
  }
884
1529
  }
885
- const Le = pn, sn = V, rn = Symbol("nomatch"), Ut = 7, Pt = function(e) {
886
- const n = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
887
- let c = !0;
888
- const l = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
1530
+ const Ie = dn, rn = te, sn = Symbol("nomatch"), Ft = 7, Ht = function(e) {
1531
+ const n = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null), u = [];
1532
+ let h = !0;
1533
+ const t = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
889
1534
  let i = {
890
1535
  ignoreUnescapedHTML: !1,
891
1536
  throwUnescapedHTML: !1,
@@ -896,398 +1541,398 @@ const Le = pn, sn = V, rn = Symbol("nomatch"), Ut = 7, Pt = function(e) {
896
1541
  languages: null,
897
1542
  // beta configuration options, subject to change, welcome to discuss
898
1543
  // https://github.com/highlightjs/highlight.js/issues/1086
899
- __emitter: Xn
1544
+ __emitter: qn
900
1545
  };
901
- function a(u) {
902
- return i.noHighlightRe.test(u);
1546
+ function s(b) {
1547
+ return i.noHighlightRe.test(b);
903
1548
  }
904
- function o(u) {
905
- let _ = u.className + " ";
906
- _ += u.parentNode ? u.parentNode.className : "";
907
- const T = i.languageDetectRe.exec(_);
908
- if (T) {
909
- const O = $(T[1]);
910
- return O || (tn(l.replace("{}", T[1])), tn("Falling back to no-highlight mode for this block.", u)), O ? T[1] : "no-highlight";
1549
+ function o(b) {
1550
+ let M = b.className + " ";
1551
+ M += b.parentNode ? b.parentNode.className : "";
1552
+ const C = i.languageDetectRe.exec(M);
1553
+ if (C) {
1554
+ const k = R(C[1]);
1555
+ return k || (tn(t.replace("{}", C[1])), tn("Falling back to no-highlight mode for this block.", b)), k ? C[1] : "no-highlight";
911
1556
  }
912
- return _.split(/\s+/).find((O) => a(O) || $(O));
1557
+ return M.split(/\s+/).find((k) => s(k) || R(k));
913
1558
  }
914
- function p(u, _, T) {
915
- let O = "", I = "";
916
- typeof _ == "object" ? (O = u, T = _.ignoreIllegals, I = _.language) : (ie("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ie("10.7.0", `Please use highlight(code, options) instead.
917
- https://github.com/highlightjs/highlight.js/issues/2277`), I = u, O = _), T === void 0 && (T = !0);
918
- const P = {
919
- code: O,
920
- language: I
1559
+ function l(b, M, C) {
1560
+ let k = "", x = "";
1561
+ typeof M == "object" ? (k = b, C = M.ignoreIllegals, x = M.language) : (ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ae("10.7.0", `Please use highlight(code, options) instead.
1562
+ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C === void 0 && (C = !0);
1563
+ const W = {
1564
+ code: k,
1565
+ language: x
921
1566
  };
922
- se("before:highlight", P);
923
- const K = P.result ? P.result : d(P.language, P.code, T);
924
- return K.code = P.code, se("after:highlight", K), K;
1567
+ G("before:highlight", W);
1568
+ const X = W.result ? W.result : c(W.language, W.code, C);
1569
+ return X.code = W.code, G("after:highlight", X), X;
925
1570
  }
926
- function d(u, _, T, O) {
927
- const I = /* @__PURE__ */ Object.create(null);
928
- function P(f, h) {
929
- return f.keywords[h];
1571
+ function c(b, M, C, k) {
1572
+ const x = /* @__PURE__ */ Object.create(null);
1573
+ function W(y, A) {
1574
+ return y.keywords[A];
930
1575
  }
931
- function K() {
932
- if (!N.keywords) {
933
- B.addText(D);
1576
+ function X() {
1577
+ if (!O.keywords) {
1578
+ z.addText(P);
934
1579
  return;
935
1580
  }
936
- let f = 0;
937
- N.keywordPatternRe.lastIndex = 0;
938
- let h = N.keywordPatternRe.exec(D), w = "";
939
- for (; h; ) {
940
- w += D.substring(f, h.index);
941
- const C = X.case_insensitive ? h[0].toLowerCase() : h[0], U = P(N, C);
942
- if (U) {
943
- const [W, In] = U;
944
- if (B.addText(w), w = "", I[C] = (I[C] || 0) + 1, I[C] <= Ut && (ye += In), W.startsWith("_"))
945
- w += h[0];
1581
+ let y = 0;
1582
+ O.keywordPatternRe.lastIndex = 0;
1583
+ let A = O.keywordPatternRe.exec(P), L = "";
1584
+ for (; A; ) {
1585
+ L += P.substring(y, A.index);
1586
+ const B = ne.case_insensitive ? A[0].toLowerCase() : A[0], K = W(O, B);
1587
+ if (K) {
1588
+ const [V, Bn] = K;
1589
+ if (z.addText(L), L = "", x[B] = (x[B] || 0) + 1, x[B] <= Ft && (ye += Bn), V.startsWith("_"))
1590
+ L += A[0];
946
1591
  else {
947
- const kn = X.classNameAliases[W] || W;
948
- B.addKeyword(h[0], kn);
1592
+ const $n = ne.classNameAliases[V] || V;
1593
+ z.addKeyword(A[0], $n);
949
1594
  }
950
1595
  } else
951
- w += h[0];
952
- f = N.keywordPatternRe.lastIndex, h = N.keywordPatternRe.exec(D);
1596
+ L += A[0];
1597
+ y = O.keywordPatternRe.lastIndex, A = O.keywordPatternRe.exec(P);
953
1598
  }
954
- w += D.substring(f), B.addText(w);
1599
+ L += P.substring(y), z.addText(L);
955
1600
  }
956
1601
  function Ee() {
957
- if (D === "")
1602
+ if (P === "")
958
1603
  return;
959
- let f = null;
960
- if (typeof N.subLanguage == "string") {
961
- if (!n[N.subLanguage]) {
962
- B.addText(D);
1604
+ let y = null;
1605
+ if (typeof O.subLanguage == "string") {
1606
+ if (!n[O.subLanguage]) {
1607
+ z.addText(P);
963
1608
  return;
964
1609
  }
965
- f = d(N.subLanguage, D, !0, Qe[N.subLanguage]), Qe[N.subLanguage] = /** @type {CompiledMode} */
966
- f._top;
1610
+ y = c(O.subLanguage, P, !0, Xe[O.subLanguage]), Xe[O.subLanguage] = /** @type {CompiledMode} */
1611
+ y._top;
967
1612
  } else
968
- f = E(D, N.subLanguage.length ? N.subLanguage : null);
969
- N.relevance > 0 && (ye += f.relevance), B.addSublanguage(f._emitter, f.language);
1613
+ y = g(P, O.subLanguage.length ? O.subLanguage : null);
1614
+ O.relevance > 0 && (ye += y.relevance), z.addSublanguage(y._emitter, y.language);
970
1615
  }
971
- function H() {
972
- N.subLanguage != null ? Ee() : K(), D = "";
1616
+ function Q() {
1617
+ O.subLanguage != null ? Ee() : X(), P = "";
973
1618
  }
974
- function Q(f, h) {
975
- let w = 1;
976
- const C = h.length - 1;
977
- for (; w <= C; ) {
978
- if (!f._emit[w]) {
979
- w++;
1619
+ function ee(y, A) {
1620
+ let L = 1;
1621
+ const B = A.length - 1;
1622
+ for (; L <= B; ) {
1623
+ if (!y._emit[L]) {
1624
+ L++;
980
1625
  continue;
981
1626
  }
982
- const U = X.classNameAliases[f[w]] || f[w], W = h[w];
983
- U ? B.addKeyword(W, U) : (D = W, K(), D = ""), w++;
1627
+ const K = ne.classNameAliases[y[L]] || y[L], V = A[L];
1628
+ K ? z.addKeyword(V, K) : (P = V, X(), P = ""), L++;
984
1629
  }
985
1630
  }
986
- function qe(f, h) {
987
- return f.scope && typeof f.scope == "string" && B.openNode(X.classNameAliases[f.scope] || f.scope), f.beginScope && (f.beginScope._wrap ? (B.addKeyword(D, X.classNameAliases[f.beginScope._wrap] || f.beginScope._wrap), D = "") : f.beginScope._multi && (Q(f.beginScope, h), D = "")), N = Object.create(f, { parent: { value: N } }), N;
1631
+ function Qe(y, A) {
1632
+ return y.scope && typeof y.scope == "string" && z.openNode(ne.classNameAliases[y.scope] || y.scope), y.beginScope && (y.beginScope._wrap ? (z.addKeyword(P, ne.classNameAliases[y.beginScope._wrap] || y.beginScope._wrap), P = "") : y.beginScope._multi && (ee(y.beginScope, A), P = "")), O = Object.create(y, { parent: { value: O } }), O;
988
1633
  }
989
- function Ye(f, h, w) {
990
- let C = et(f.endRe, w);
991
- if (C) {
992
- if (f["on:end"]) {
993
- const U = new je(f);
994
- f["on:end"](h, U), U.isMatchIgnored && (C = !1);
1634
+ function Ze(y, A, L) {
1635
+ let B = tt(y.endRe, L);
1636
+ if (B) {
1637
+ if (y["on:end"]) {
1638
+ const K = new qe(y);
1639
+ y["on:end"](A, K), K.isMatchIgnored && (B = !1);
995
1640
  }
996
- if (C) {
997
- for (; f.endsParent && f.parent; )
998
- f = f.parent;
999
- return f;
1641
+ if (B) {
1642
+ for (; y.endsParent && y.parent; )
1643
+ y = y.parent;
1644
+ return y;
1000
1645
  }
1001
1646
  }
1002
- if (f.endsWithParent)
1003
- return Ye(f.parent, h, w);
1647
+ if (y.endsWithParent)
1648
+ return Ze(y.parent, A, L);
1004
1649
  }
1005
- function On(f) {
1006
- return N.matcher.regexIndex === 0 ? (D += f[0], 1) : (Ce = !0, 0);
1650
+ function On(y) {
1651
+ return O.matcher.regexIndex === 0 ? (P += y[0], 1) : (Le = !0, 0);
1007
1652
  }
1008
- function xn(f) {
1009
- const h = f[0], w = f.rule, C = new je(w), U = [w.__beforeBegin, w["on:begin"]];
1010
- for (const W of U)
1011
- if (W && (W(f, C), C.isMatchIgnored))
1012
- return On(h);
1013
- return w.skip ? D += h : (w.excludeBegin && (D += h), H(), !w.returnBegin && !w.excludeBegin && (D = h)), qe(w, f), w.returnBegin ? 0 : h.length;
1653
+ function Cn(y) {
1654
+ const A = y[0], L = y.rule, B = new qe(L), K = [L.__beforeBegin, L["on:begin"]];
1655
+ for (const V of K)
1656
+ if (V && (V(y, B), B.isMatchIgnored))
1657
+ return On(A);
1658
+ return L.skip ? P += A : (L.excludeBegin && (P += A), Q(), !L.returnBegin && !L.excludeBegin && (P = A)), Qe(L, y), L.returnBegin ? 0 : A.length;
1014
1659
  }
1015
- function Cn(f) {
1016
- const h = f[0], w = _.substring(f.index), C = Ye(N, f, w);
1017
- if (!C)
1018
- return rn;
1019
- const U = N;
1020
- N.endScope && N.endScope._wrap ? (H(), B.addKeyword(h, N.endScope._wrap)) : N.endScope && N.endScope._multi ? (H(), Q(N.endScope, f)) : U.skip ? D += h : (U.returnEnd || U.excludeEnd || (D += h), H(), U.excludeEnd && (D = h));
1660
+ function Ln(y) {
1661
+ const A = y[0], L = M.substring(y.index), B = Ze(O, y, L);
1662
+ if (!B)
1663
+ return sn;
1664
+ const K = O;
1665
+ O.endScope && O.endScope._wrap ? (Q(), z.addKeyword(A, O.endScope._wrap)) : O.endScope && O.endScope._multi ? (Q(), ee(O.endScope, y)) : K.skip ? P += A : (K.returnEnd || K.excludeEnd || (P += A), Q(), K.excludeEnd && (P = A));
1021
1666
  do
1022
- N.scope && B.closeNode(), !N.skip && !N.subLanguage && (ye += N.relevance), N = N.parent;
1023
- while (N !== C.parent);
1024
- return C.starts && qe(C.starts, f), U.returnEnd ? 0 : h.length;
1667
+ O.scope && z.closeNode(), !O.skip && !O.subLanguage && (ye += O.relevance), O = O.parent;
1668
+ while (O !== B.parent);
1669
+ return B.starts && Qe(B.starts, y), K.returnEnd ? 0 : A.length;
1025
1670
  }
1026
- function Ln() {
1027
- const f = [];
1028
- for (let h = N; h !== X; h = h.parent)
1029
- h.scope && f.unshift(h.scope);
1030
- f.forEach((h) => B.openNode(h));
1671
+ function In() {
1672
+ const y = [];
1673
+ for (let A = O; A !== ne; A = A.parent)
1674
+ A.scope && y.unshift(A.scope);
1675
+ y.forEach((A) => z.openNode(A));
1031
1676
  }
1032
1677
  let me = {};
1033
- function Ze(f, h) {
1034
- const w = h && h[0];
1035
- if (D += f, w == null)
1036
- return H(), 0;
1037
- if (me.type === "begin" && h.type === "end" && me.index === h.index && w === "") {
1038
- if (D += _.slice(h.index, h.index + 1), !c) {
1039
- const C = new Error(`0 width match regex (${u})`);
1040
- throw C.languageName = u, C.badRule = me.rule, C;
1678
+ function Ye(y, A) {
1679
+ const L = A && A[0];
1680
+ if (P += y, L == null)
1681
+ return Q(), 0;
1682
+ if (me.type === "begin" && A.type === "end" && me.index === A.index && L === "") {
1683
+ if (P += M.slice(A.index, A.index + 1), !h) {
1684
+ const B = new Error(`0 width match regex (${b})`);
1685
+ throw B.languageName = b, B.badRule = me.rule, B;
1041
1686
  }
1042
1687
  return 1;
1043
1688
  }
1044
- if (me = h, h.type === "begin")
1045
- return xn(h);
1046
- if (h.type === "illegal" && !T) {
1047
- const C = new Error('Illegal lexeme "' + w + '" for mode "' + (N.scope || "<unnamed>") + '"');
1048
- throw C.mode = N, C;
1049
- } else if (h.type === "end") {
1050
- const C = Cn(h);
1051
- if (C !== rn)
1052
- return C;
1689
+ if (me = A, A.type === "begin")
1690
+ return Cn(A);
1691
+ if (A.type === "illegal" && !C) {
1692
+ const B = new Error('Illegal lexeme "' + L + '" for mode "' + (O.scope || "<unnamed>") + '"');
1693
+ throw B.mode = O, B;
1694
+ } else if (A.type === "end") {
1695
+ const B = Ln(A);
1696
+ if (B !== sn)
1697
+ return B;
1053
1698
  }
1054
- if (h.type === "illegal" && w === "")
1699
+ if (A.type === "illegal" && L === "")
1055
1700
  return 1;
1056
- if (xe > 1e5 && xe > h.index * 3)
1701
+ if (Ce > 1e5 && Ce > A.index * 3)
1057
1702
  throw new Error("potential infinite loop, way more iterations than matches");
1058
- return D += w, w.length;
1703
+ return P += L, L.length;
1059
1704
  }
1060
- const X = $(u);
1061
- if (!X)
1062
- throw J(l.replace("{}", u)), new Error('Unknown language: "' + u + '"');
1063
- const Dn = It(X);
1064
- let Oe = "", N = O || Dn;
1065
- const Qe = {}, B = new i.__emitter(i);
1066
- Ln();
1067
- let D = "", ye = 0, j = 0, xe = 0, Ce = !1;
1705
+ const ne = R(b);
1706
+ if (!ne)
1707
+ throw ie(t.replace("{}", b)), new Error('Unknown language: "' + b + '"');
1708
+ const kn = $t(ne);
1709
+ let Oe = "", O = k || kn;
1710
+ const Xe = {}, z = new i.__emitter(i);
1711
+ In();
1712
+ let P = "", ye = 0, re = 0, Ce = 0, Le = !1;
1068
1713
  try {
1069
- for (N.matcher.considerAll(); ; ) {
1070
- xe++, Ce ? Ce = !1 : N.matcher.considerAll(), N.matcher.lastIndex = j;
1071
- const f = N.matcher.exec(_);
1072
- if (!f)
1714
+ for (O.matcher.considerAll(); ; ) {
1715
+ Ce++, Le ? Le = !1 : O.matcher.considerAll(), O.matcher.lastIndex = re;
1716
+ const y = O.matcher.exec(M);
1717
+ if (!y)
1073
1718
  break;
1074
- const h = _.substring(j, f.index), w = Ze(h, f);
1075
- j = f.index + w;
1719
+ const A = M.substring(re, y.index), L = Ye(A, y);
1720
+ re = y.index + L;
1076
1721
  }
1077
- return Ze(_.substring(j)), B.closeAllNodes(), B.finalize(), Oe = B.toHTML(), {
1078
- language: u,
1722
+ return Ye(M.substring(re)), z.closeAllNodes(), z.finalize(), Oe = z.toHTML(), {
1723
+ language: b,
1079
1724
  value: Oe,
1080
1725
  relevance: ye,
1081
1726
  illegal: !1,
1082
- _emitter: B,
1083
- _top: N
1727
+ _emitter: z,
1728
+ _top: O
1084
1729
  };
1085
- } catch (f) {
1086
- if (f.message && f.message.includes("Illegal"))
1730
+ } catch (y) {
1731
+ if (y.message && y.message.includes("Illegal"))
1087
1732
  return {
1088
- language: u,
1089
- value: Le(_),
1733
+ language: b,
1734
+ value: Ie(M),
1090
1735
  illegal: !0,
1091
1736
  relevance: 0,
1092
1737
  _illegalBy: {
1093
- message: f.message,
1094
- index: j,
1095
- context: _.slice(j - 100, j + 100),
1096
- mode: f.mode,
1738
+ message: y.message,
1739
+ index: re,
1740
+ context: M.slice(re - 100, re + 100),
1741
+ mode: y.mode,
1097
1742
  resultSoFar: Oe
1098
1743
  },
1099
- _emitter: B
1744
+ _emitter: z
1100
1745
  };
1101
- if (c)
1746
+ if (h)
1102
1747
  return {
1103
- language: u,
1104
- value: Le(_),
1748
+ language: b,
1749
+ value: Ie(M),
1105
1750
  illegal: !1,
1106
1751
  relevance: 0,
1107
- errorRaised: f,
1108
- _emitter: B,
1109
- _top: N
1752
+ errorRaised: y,
1753
+ _emitter: z,
1754
+ _top: O
1110
1755
  };
1111
- throw f;
1756
+ throw y;
1112
1757
  }
1113
1758
  }
1114
- function b(u) {
1115
- const _ = {
1116
- value: Le(u),
1759
+ function f(b) {
1760
+ const M = {
1761
+ value: Ie(b),
1117
1762
  illegal: !1,
1118
1763
  relevance: 0,
1119
1764
  _top: r,
1120
1765
  _emitter: new i.__emitter(i)
1121
1766
  };
1122
- return _._emitter.addText(u), _;
1767
+ return M._emitter.addText(b), M;
1123
1768
  }
1124
- function E(u, _) {
1125
- _ = _ || i.languages || Object.keys(n);
1126
- const T = b(u), O = _.filter($).filter(te).map(
1127
- (H) => d(H, u, !1)
1769
+ function g(b, M) {
1770
+ M = M || i.languages || Object.keys(n);
1771
+ const C = f(b), k = M.filter(R).filter(U).map(
1772
+ (Q) => c(Q, b, !1)
1128
1773
  );
1129
- O.unshift(T);
1130
- const I = O.sort((H, Q) => {
1131
- if (H.relevance !== Q.relevance)
1132
- return Q.relevance - H.relevance;
1133
- if (H.language && Q.language) {
1134
- if ($(H.language).supersetOf === Q.language)
1774
+ k.unshift(C);
1775
+ const x = k.sort((Q, ee) => {
1776
+ if (Q.relevance !== ee.relevance)
1777
+ return ee.relevance - Q.relevance;
1778
+ if (Q.language && ee.language) {
1779
+ if (R(Q.language).supersetOf === ee.language)
1135
1780
  return 1;
1136
- if ($(Q.language).supersetOf === H.language)
1781
+ if (R(ee.language).supersetOf === Q.language)
1137
1782
  return -1;
1138
1783
  }
1139
1784
  return 0;
1140
- }), [P, K] = I, Ee = P;
1141
- return Ee.secondBest = K, Ee;
1785
+ }), [W, X] = x, Ee = W;
1786
+ return Ee.secondBest = X, Ee;
1142
1787
  }
1143
- function v(u, _, T) {
1144
- const O = _ && t[_] || T;
1145
- u.classList.add("hljs"), u.classList.add(`language-${O}`);
1788
+ function p(b, M, C) {
1789
+ const k = M && a[M] || C;
1790
+ b.classList.add("hljs"), b.classList.add(`language-${k}`);
1146
1791
  }
1147
- function g(u) {
1148
- let _ = null;
1149
- const T = o(u);
1150
- if (a(T))
1792
+ function d(b) {
1793
+ let M = null;
1794
+ const C = o(b);
1795
+ if (s(C))
1151
1796
  return;
1152
- if (se(
1797
+ if (G(
1153
1798
  "before:highlightElement",
1154
- { el: u, language: T }
1155
- ), u.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(u)), i.throwUnescapedHTML))
1156
- throw new Bt(
1799
+ { el: b, language: C }
1800
+ ), b.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(b)), i.throwUnescapedHTML))
1801
+ throw new xt(
1157
1802
  "One of your code blocks includes unescaped HTML.",
1158
- u.innerHTML
1803
+ b.innerHTML
1159
1804
  );
1160
- _ = u;
1161
- const O = _.textContent, I = T ? p(O, { language: T, ignoreIllegals: !0 }) : E(O);
1162
- u.innerHTML = I.value, v(u, T, I.language), u.result = {
1163
- language: I.language,
1805
+ M = b;
1806
+ const k = M.textContent, x = C ? l(k, { language: C, ignoreIllegals: !0 }) : g(k);
1807
+ b.innerHTML = x.value, p(b, C, x.language), b.result = {
1808
+ language: x.language,
1164
1809
  // TODO: remove with version 11.0
1165
- re: I.relevance,
1166
- relevance: I.relevance
1167
- }, I.secondBest && (u.secondBest = {
1168
- language: I.secondBest.language,
1169
- relevance: I.secondBest.relevance
1170
- }), se("after:highlightElement", { el: u, result: I, text: O });
1810
+ re: x.relevance,
1811
+ relevance: x.relevance
1812
+ }, x.secondBest && (b.secondBest = {
1813
+ language: x.secondBest.language,
1814
+ relevance: x.secondBest.relevance
1815
+ }), G("after:highlightElement", { el: b, result: x, text: k });
1171
1816
  }
1172
- function m(u) {
1173
- i = sn(i, u);
1817
+ function _(b) {
1818
+ i = rn(i, b);
1174
1819
  }
1175
- const S = () => {
1176
- A(), ie("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
1820
+ const v = () => {
1821
+ m(), ae("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
1177
1822
  };
1178
- function M() {
1179
- A(), ie("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
1823
+ function E() {
1824
+ m(), ae("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
1180
1825
  }
1181
- let x = !1;
1182
- function A() {
1826
+ let w = !1;
1827
+ function m() {
1183
1828
  if (document.readyState === "loading") {
1184
- x = !0;
1829
+ w = !0;
1185
1830
  return;
1186
1831
  }
1187
- document.querySelectorAll(i.cssSelector).forEach(g);
1832
+ document.querySelectorAll(i.cssSelector).forEach(d);
1188
1833
  }
1189
- function L() {
1190
- x && A();
1834
+ function T() {
1835
+ w && m();
1191
1836
  }
1192
- typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", L, !1);
1193
- function k(u, _) {
1194
- let T = null;
1837
+ typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", T, !1);
1838
+ function S(b, M) {
1839
+ let C = null;
1195
1840
  try {
1196
- T = _(e);
1197
- } catch (O) {
1198
- if (J("Language definition for '{}' could not be registered.".replace("{}", u)), c)
1199
- J(O);
1841
+ C = M(e);
1842
+ } catch (k) {
1843
+ if (ie("Language definition for '{}' could not be registered.".replace("{}", b)), h)
1844
+ ie(k);
1200
1845
  else
1201
- throw O;
1202
- T = r;
1846
+ throw k;
1847
+ C = r;
1203
1848
  }
1204
- T.name || (T.name = u), n[u] = T, T.rawDefinition = _.bind(null, e), T.aliases && ne(T.aliases, { languageName: u });
1849
+ C.name || (C.name = b), n[b] = C, C.rawDefinition = M.bind(null, e), C.aliases && F(C.aliases, { languageName: b });
1205
1850
  }
1206
- function R(u) {
1207
- delete n[u];
1208
- for (const _ of Object.keys(t))
1209
- t[_] === u && delete t[_];
1851
+ function N(b) {
1852
+ delete n[b];
1853
+ for (const M of Object.keys(a))
1854
+ a[M] === b && delete a[M];
1210
1855
  }
1211
- function z() {
1856
+ function I() {
1212
1857
  return Object.keys(n);
1213
1858
  }
1214
- function $(u) {
1215
- return u = (u || "").toLowerCase(), n[u] || n[t[u]];
1859
+ function R(b) {
1860
+ return b = (b || "").toLowerCase(), n[b] || n[a[b]];
1216
1861
  }
1217
- function ne(u, { languageName: _ }) {
1218
- typeof u == "string" && (u = [u]), u.forEach((T) => {
1219
- t[T.toLowerCase()] = _;
1862
+ function F(b, { languageName: M }) {
1863
+ typeof b == "string" && (b = [b]), b.forEach((C) => {
1864
+ a[C.toLowerCase()] = M;
1220
1865
  });
1221
1866
  }
1222
- function te(u) {
1223
- const _ = $(u);
1224
- return _ && !_.disableAutodetect;
1867
+ function U(b) {
1868
+ const M = R(b);
1869
+ return M && !M.disableAutodetect;
1225
1870
  }
1226
- function oe(u) {
1227
- u["before:highlightBlock"] && !u["before:highlightElement"] && (u["before:highlightElement"] = (_) => {
1228
- u["before:highlightBlock"](
1229
- Object.assign({ block: _.el }, _)
1871
+ function $(b) {
1872
+ b["before:highlightBlock"] && !b["before:highlightElement"] && (b["before:highlightElement"] = (M) => {
1873
+ b["before:highlightBlock"](
1874
+ Object.assign({ block: M.el }, M)
1230
1875
  );
1231
- }), u["after:highlightBlock"] && !u["after:highlightElement"] && (u["after:highlightElement"] = (_) => {
1232
- u["after:highlightBlock"](
1233
- Object.assign({ block: _.el }, _)
1876
+ }), b["after:highlightBlock"] && !b["after:highlightElement"] && (b["after:highlightElement"] = (M) => {
1877
+ b["after:highlightBlock"](
1878
+ Object.assign({ block: M.el }, M)
1234
1879
  );
1235
1880
  });
1236
1881
  }
1237
- function ce(u) {
1238
- oe(u), s.push(u);
1882
+ function H(b) {
1883
+ $(b), u.push(b);
1239
1884
  }
1240
- function se(u, _) {
1241
- const T = u;
1242
- s.forEach(function(O) {
1243
- O[T] && O[T](_);
1885
+ function G(b, M) {
1886
+ const C = b;
1887
+ u.forEach(function(k) {
1888
+ k[C] && k[C](M);
1244
1889
  });
1245
1890
  }
1246
- function be(u) {
1247
- return ie("10.7.0", "highlightBlock will be removed entirely in v12.0"), ie("10.7.0", "Please use highlightElement now."), g(u);
1891
+ function ve(b) {
1892
+ return ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), ae("10.7.0", "Please use highlightElement now."), d(b);
1248
1893
  }
1249
1894
  Object.assign(e, {
1250
- highlight: p,
1251
- highlightAuto: E,
1252
- highlightAll: A,
1253
- highlightElement: g,
1895
+ highlight: l,
1896
+ highlightAuto: g,
1897
+ highlightAll: m,
1898
+ highlightElement: d,
1254
1899
  // TODO: Remove with v12 API
1255
- highlightBlock: be,
1256
- configure: m,
1257
- initHighlighting: S,
1258
- initHighlightingOnLoad: M,
1259
- registerLanguage: k,
1260
- unregisterLanguage: R,
1261
- listLanguages: z,
1262
- getLanguage: $,
1263
- registerAliases: ne,
1264
- autoDetection: te,
1265
- inherit: sn,
1266
- addPlugin: ce
1900
+ highlightBlock: ve,
1901
+ configure: _,
1902
+ initHighlighting: v,
1903
+ initHighlightingOnLoad: E,
1904
+ registerLanguage: S,
1905
+ unregisterLanguage: N,
1906
+ listLanguages: I,
1907
+ getLanguage: R,
1908
+ registerAliases: F,
1909
+ autoDetection: U,
1910
+ inherit: rn,
1911
+ addPlugin: H
1267
1912
  }), e.debugMode = function() {
1268
- c = !1;
1913
+ h = !1;
1269
1914
  }, e.safeMode = function() {
1270
- c = !0;
1271
- }, e.versionString = $t, e.regex = {
1272
- concat: ee,
1273
- lookahead: _n,
1274
- either: ze,
1275
- optional: jn,
1276
- anyNumberOfTimes: Vn
1915
+ h = !0;
1916
+ }, e.versionString = Pt, e.regex = {
1917
+ concat: se,
1918
+ lookahead: pn,
1919
+ either: He,
1920
+ optional: et,
1921
+ anyNumberOfTimes: Jn
1277
1922
  };
1278
- for (const u in Ne)
1279
- typeof Ne[u] == "object" && Ue.exports(Ne[u]);
1280
- return Object.assign(e, Ne), e;
1923
+ for (const b in Me)
1924
+ typeof Me[b] == "object" && Pe.exports(Me[b]);
1925
+ return Object.assign(e, Me), e;
1281
1926
  };
1282
- var de = Pt({}), Ht = de;
1283
- de.HighlightJS = de;
1284
- de.default = de;
1285
- const G = Ht;
1286
- function zt(e) {
1287
- const n = e.regex, t = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), s = /[\p{L}0-9._:-]+/u, c = {
1927
+ var he = Ht({}), zt = he;
1928
+ he.HighlightJS = he;
1929
+ he.default = he;
1930
+ const Y = zt;
1931
+ function Gt(e) {
1932
+ const n = e.regex, a = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, h = {
1288
1933
  className: "symbol",
1289
1934
  begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
1290
- }, l = {
1935
+ }, t = {
1291
1936
  begin: /\s/,
1292
1937
  contains: [
1293
1938
  {
@@ -1296,17 +1941,17 @@ function zt(e) {
1296
1941
  illegal: /\n/
1297
1942
  }
1298
1943
  ]
1299
- }, r = e.inherit(l, {
1944
+ }, r = e.inherit(t, {
1300
1945
  begin: /\(/,
1301
1946
  end: /\)/
1302
- }), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), a = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), o = {
1947
+ }), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), s = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), o = {
1303
1948
  endsWithParent: !0,
1304
1949
  illegal: /</,
1305
1950
  relevance: 0,
1306
1951
  contains: [
1307
1952
  {
1308
1953
  className: "attr",
1309
- begin: s,
1954
+ begin: u,
1310
1955
  relevance: 0
1311
1956
  },
1312
1957
  {
@@ -1320,12 +1965,12 @@ function zt(e) {
1320
1965
  {
1321
1966
  begin: /"/,
1322
1967
  end: /"/,
1323
- contains: [c]
1968
+ contains: [h]
1324
1969
  },
1325
1970
  {
1326
1971
  begin: /'/,
1327
1972
  end: /'/,
1328
- contains: [c]
1973
+ contains: [h]
1329
1974
  },
1330
1975
  { begin: /[^\s"'=<>`]+/ }
1331
1976
  ]
@@ -1357,8 +2002,8 @@ function zt(e) {
1357
2002
  end: />/,
1358
2003
  relevance: 10,
1359
2004
  contains: [
1360
- l,
1361
- a,
2005
+ t,
2006
+ s,
1362
2007
  i,
1363
2008
  r,
1364
2009
  {
@@ -1370,9 +2015,9 @@ function zt(e) {
1370
2015
  begin: /<![a-z]/,
1371
2016
  end: />/,
1372
2017
  contains: [
1373
- l,
2018
+ t,
1374
2019
  r,
1375
- a,
2020
+ s,
1376
2021
  i
1377
2022
  ]
1378
2023
  }
@@ -1390,7 +2035,7 @@ function zt(e) {
1390
2035
  end: /\]\]>/,
1391
2036
  relevance: 10
1392
2037
  },
1393
- c,
2038
+ h,
1394
2039
  // xml processing instructions
1395
2040
  {
1396
2041
  className: "meta",
@@ -1400,7 +2045,7 @@ function zt(e) {
1400
2045
  begin: /<\?xml/,
1401
2046
  relevance: 10,
1402
2047
  contains: [
1403
- a
2048
+ s
1404
2049
  ]
1405
2050
  },
1406
2051
  {
@@ -1456,7 +2101,7 @@ function zt(e) {
1456
2101
  begin: n.concat(
1457
2102
  /</,
1458
2103
  n.lookahead(n.concat(
1459
- t,
2104
+ a,
1460
2105
  // <tag/>
1461
2106
  // <tag>
1462
2107
  // <tag ...
@@ -1467,7 +2112,7 @@ function zt(e) {
1467
2112
  contains: [
1468
2113
  {
1469
2114
  className: "name",
1470
- begin: t,
2115
+ begin: a,
1471
2116
  relevance: 0,
1472
2117
  starts: o
1473
2118
  }
@@ -1479,14 +2124,14 @@ function zt(e) {
1479
2124
  begin: n.concat(
1480
2125
  /<\//,
1481
2126
  n.lookahead(n.concat(
1482
- t,
2127
+ a,
1483
2128
  />/
1484
2129
  ))
1485
2130
  ),
1486
2131
  contains: [
1487
2132
  {
1488
2133
  className: "name",
1489
- begin: t,
2134
+ begin: a,
1490
2135
  relevance: 0
1491
2136
  },
1492
2137
  {
@@ -1499,7 +2144,7 @@ function zt(e) {
1499
2144
  ]
1500
2145
  };
1501
2146
  }
1502
- const an = "[A-Za-z$_][0-9A-Za-z$_]*", Ft = [
2147
+ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Kt = [
1503
2148
  "as",
1504
2149
  // for exports
1505
2150
  "in",
@@ -1542,14 +2187,14 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Ft = [
1542
2187
  "from",
1543
2188
  "export",
1544
2189
  "extends"
1545
- ], Gt = [
2190
+ ], Wt = [
1546
2191
  "true",
1547
2192
  "false",
1548
2193
  "null",
1549
2194
  "undefined",
1550
2195
  "NaN",
1551
2196
  "Infinity"
1552
- ], An = [
2197
+ ], Nn = [
1553
2198
  // Fundamental objects
1554
2199
  "Object",
1555
2200
  "Function",
@@ -1599,7 +2244,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Ft = [
1599
2244
  "Intl",
1600
2245
  // WebAssembly
1601
2246
  "WebAssembly"
1602
- ], wn = [
2247
+ ], An = [
1603
2248
  "Error",
1604
2249
  "EvalError",
1605
2250
  "InternalError",
@@ -1608,7 +2253,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Ft = [
1608
2253
  "SyntaxError",
1609
2254
  "TypeError",
1610
2255
  "URIError"
1611
- ], Sn = [
2256
+ ], Tn = [
1612
2257
  "setInterval",
1613
2258
  "setTimeout",
1614
2259
  "clearInterval",
@@ -1626,7 +2271,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Ft = [
1626
2271
  "encodeURIComponent",
1627
2272
  "escape",
1628
2273
  "unescape"
1629
- ], Kt = [
2274
+ ], Qt = [
1630
2275
  "arguments",
1631
2276
  "this",
1632
2277
  "super",
@@ -1637,62 +2282,62 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Ft = [
1637
2282
  "module",
1638
2283
  "global"
1639
2284
  // Node.js
1640
- ], Wt = [].concat(
1641
- Sn,
1642
- An,
1643
- wn
2285
+ ], Zt = [].concat(
2286
+ Tn,
2287
+ Nn,
2288
+ An
1644
2289
  );
1645
- function qt(e) {
1646
- const n = e.regex, t = (_, { after: T }) => {
1647
- const O = "</" + _[0].slice(1);
1648
- return _.input.indexOf(O, T) !== -1;
1649
- }, s = an, c = {
2290
+ function Yt(e) {
2291
+ const n = e.regex, a = (M, { after: C }) => {
2292
+ const k = "</" + M[0].slice(1);
2293
+ return M.input.indexOf(k, C) !== -1;
2294
+ }, u = an, h = {
1650
2295
  begin: "<>",
1651
2296
  end: "</>"
1652
- }, l = /<[A-Za-z0-9\\._:-]+\s*\/>/, r = {
2297
+ }, t = /<[A-Za-z0-9\\._:-]+\s*\/>/, r = {
1653
2298
  begin: /<[A-Za-z0-9\\._:-]+/,
1654
2299
  end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
1655
2300
  /**
1656
2301
  * @param {RegExpMatchArray} match
1657
2302
  * @param {CallbackResponse} response
1658
2303
  */
1659
- isTrulyOpeningTag: (_, T) => {
1660
- const O = _[0].length + _.index, I = _.input[O];
2304
+ isTrulyOpeningTag: (M, C) => {
2305
+ const k = M[0].length + M.index, x = M.input[k];
1661
2306
  if (
1662
2307
  // HTML should not include another raw `<` inside a tag
1663
2308
  // nested type?
1664
2309
  // `<Array<Array<number>>`, etc.
1665
- I === "<" || // the , gives away that this is not HTML
2310
+ x === "<" || // the , gives away that this is not HTML
1666
2311
  // `<T, A extends keyof T, V>`
1667
- I === ","
2312
+ x === ","
1668
2313
  ) {
1669
- T.ignoreMatch();
2314
+ C.ignoreMatch();
1670
2315
  return;
1671
2316
  }
1672
- I === ">" && (t(_, { after: O }) || T.ignoreMatch());
1673
- let P;
1674
- const K = _.input.substring(O);
1675
- if (P = K.match(/^\s*=/)) {
1676
- T.ignoreMatch();
2317
+ x === ">" && (a(M, { after: k }) || C.ignoreMatch());
2318
+ let W;
2319
+ const X = M.input.substring(k);
2320
+ if (W = X.match(/^\s*=/)) {
2321
+ C.ignoreMatch();
1677
2322
  return;
1678
2323
  }
1679
- if ((P = K.match(/^\s+extends\s+/)) && P.index === 0) {
1680
- T.ignoreMatch();
2324
+ if ((W = X.match(/^\s+extends\s+/)) && W.index === 0) {
2325
+ C.ignoreMatch();
1681
2326
  return;
1682
2327
  }
1683
2328
  }
1684
2329
  }, i = {
1685
2330
  $pattern: an,
1686
- keyword: Ft,
1687
- literal: Gt,
1688
- built_in: Wt,
1689
- "variable.language": Kt
1690
- }, a = "[0-9](_?[0-9])*", o = `\\.(${a})`, p = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
2331
+ keyword: Kt,
2332
+ literal: Wt,
2333
+ built_in: Zt,
2334
+ "variable.language": Qt
2335
+ }, s = "[0-9](_?[0-9])*", o = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
1691
2336
  className: "number",
1692
2337
  variants: [
1693
2338
  // DecimalLiteral
1694
- { begin: `(\\b(${p})((${o})|\\.)?|(${o}))[eE][+-]?(${a})\\b` },
1695
- { begin: `\\b(${p})\\b((${o})\\b|\\.)?|(${o})\\b` },
2339
+ { begin: `(\\b(${l})((${o})|\\.)?|(${o}))[eE][+-]?(${s})\\b` },
2340
+ { begin: `\\b(${l})\\b((${o})\\b|\\.)?|(${o})\\b` },
1696
2341
  // DecimalBigIntegerLiteral
1697
2342
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
1698
2343
  // NonDecimalIntegerLiteral
@@ -1704,14 +2349,14 @@ function qt(e) {
1704
2349
  { begin: "\\b0[0-7]+n?\\b" }
1705
2350
  ],
1706
2351
  relevance: 0
1707
- }, b = {
2352
+ }, f = {
1708
2353
  className: "subst",
1709
2354
  begin: "\\$\\{",
1710
2355
  end: "\\}",
1711
2356
  keywords: i,
1712
2357
  contains: []
1713
2358
  // defined later
1714
- }, E = {
2359
+ }, g = {
1715
2360
  begin: "html`",
1716
2361
  end: "",
1717
2362
  starts: {
@@ -1719,11 +2364,11 @@ function qt(e) {
1719
2364
  returnEnd: !1,
1720
2365
  contains: [
1721
2366
  e.BACKSLASH_ESCAPE,
1722
- b
2367
+ f
1723
2368
  ],
1724
2369
  subLanguage: "xml"
1725
2370
  }
1726
- }, v = {
2371
+ }, p = {
1727
2372
  begin: "css`",
1728
2373
  end: "",
1729
2374
  starts: {
@@ -1731,19 +2376,19 @@ function qt(e) {
1731
2376
  returnEnd: !1,
1732
2377
  contains: [
1733
2378
  e.BACKSLASH_ESCAPE,
1734
- b
2379
+ f
1735
2380
  ],
1736
2381
  subLanguage: "css"
1737
2382
  }
1738
- }, g = {
2383
+ }, d = {
1739
2384
  className: "string",
1740
2385
  begin: "`",
1741
2386
  end: "`",
1742
2387
  contains: [
1743
2388
  e.BACKSLASH_ESCAPE,
1744
- b
2389
+ f
1745
2390
  ]
1746
- }, S = {
2391
+ }, v = {
1747
2392
  className: "comment",
1748
2393
  variants: [
1749
2394
  e.COMMENT(
@@ -1770,7 +2415,7 @@ function qt(e) {
1770
2415
  },
1771
2416
  {
1772
2417
  className: "variable",
1773
- begin: s + "(?=\\s*(-)|$)",
2418
+ begin: u + "(?=\\s*(-)|$)",
1774
2419
  endsParent: !0,
1775
2420
  relevance: 0
1776
2421
  },
@@ -1788,20 +2433,20 @@ function qt(e) {
1788
2433
  e.C_BLOCK_COMMENT_MODE,
1789
2434
  e.C_LINE_COMMENT_MODE
1790
2435
  ]
1791
- }, M = [
2436
+ }, E = [
1792
2437
  e.APOS_STRING_MODE,
1793
2438
  e.QUOTE_STRING_MODE,
1794
- E,
1795
- v,
1796
2439
  g,
2440
+ p,
2441
+ d,
1797
2442
  // Skip numbers when they are part of a variable name
1798
2443
  { match: /\$\d+/ },
1799
- d
2444
+ c
1800
2445
  // This is intentional:
1801
2446
  // See https://github.com/highlightjs/highlight.js/issues/3288
1802
2447
  // hljs.REGEXP_MODE
1803
2448
  ];
1804
- b.contains = M.concat({
2449
+ f.contains = E.concat({
1805
2450
  // we need to pair up {} inside our subst to prevent
1806
2451
  // it from ending too early by matching another }
1807
2452
  begin: /\{/,
@@ -1809,36 +2454,36 @@ function qt(e) {
1809
2454
  keywords: i,
1810
2455
  contains: [
1811
2456
  "self"
1812
- ].concat(M)
2457
+ ].concat(E)
1813
2458
  });
1814
- const x = [].concat(S, b.contains), A = x.concat([
2459
+ const w = [].concat(v, f.contains), m = w.concat([
1815
2460
  // eat recursive parens in sub expressions
1816
2461
  {
1817
2462
  begin: /\(/,
1818
2463
  end: /\)/,
1819
2464
  keywords: i,
1820
- contains: ["self"].concat(x)
2465
+ contains: ["self"].concat(w)
1821
2466
  }
1822
- ]), L = {
2467
+ ]), T = {
1823
2468
  className: "params",
1824
2469
  begin: /\(/,
1825
2470
  end: /\)/,
1826
2471
  excludeBegin: !0,
1827
2472
  excludeEnd: !0,
1828
2473
  keywords: i,
1829
- contains: A
1830
- }, k = {
2474
+ contains: m
2475
+ }, S = {
1831
2476
  variants: [
1832
2477
  // class Car extends vehicle
1833
2478
  {
1834
2479
  match: [
1835
2480
  /class/,
1836
2481
  /\s+/,
1837
- s,
2482
+ u,
1838
2483
  /\s+/,
1839
2484
  /extends/,
1840
2485
  /\s+/,
1841
- n.concat(s, "(", n.concat(/\./, s), ")*")
2486
+ n.concat(u, "(", n.concat(/\./, u), ")*")
1842
2487
  ],
1843
2488
  scope: {
1844
2489
  1: "keyword",
@@ -1852,7 +2497,7 @@ function qt(e) {
1852
2497
  match: [
1853
2498
  /class/,
1854
2499
  /\s+/,
1855
- s
2500
+ u
1856
2501
  ],
1857
2502
  scope: {
1858
2503
  1: "keyword",
@@ -1860,7 +2505,7 @@ function qt(e) {
1860
2505
  }
1861
2506
  }
1862
2507
  ]
1863
- }, R = {
2508
+ }, N = {
1864
2509
  relevance: 0,
1865
2510
  match: n.either(
1866
2511
  // Hard coded exceptions
@@ -1880,22 +2525,22 @@ function qt(e) {
1880
2525
  keywords: {
1881
2526
  _: [
1882
2527
  // se we still get relevance credit for JS library classes
1883
- ...An,
1884
- ...wn
2528
+ ...Nn,
2529
+ ...An
1885
2530
  ]
1886
2531
  }
1887
- }, z = {
2532
+ }, I = {
1888
2533
  label: "use_strict",
1889
2534
  className: "meta",
1890
2535
  relevance: 10,
1891
2536
  begin: /^\s*['"]use (strict|asm)['"]/
1892
- }, $ = {
2537
+ }, R = {
1893
2538
  variants: [
1894
2539
  {
1895
2540
  match: [
1896
2541
  /function/,
1897
2542
  /\s+/,
1898
- s,
2543
+ u,
1899
2544
  /(?=\s*\()/
1900
2545
  ]
1901
2546
  },
@@ -1912,43 +2557,43 @@ function qt(e) {
1912
2557
  3: "title.function"
1913
2558
  },
1914
2559
  label: "func.def",
1915
- contains: [L],
2560
+ contains: [T],
1916
2561
  illegal: /%/
1917
- }, ne = {
2562
+ }, F = {
1918
2563
  relevance: 0,
1919
2564
  match: /\b[A-Z][A-Z_0-9]+\b/,
1920
2565
  className: "variable.constant"
1921
2566
  };
1922
- function te(_) {
1923
- return n.concat("(?!", _.join("|"), ")");
2567
+ function U(M) {
2568
+ return n.concat("(?!", M.join("|"), ")");
1924
2569
  }
1925
- const oe = {
2570
+ const $ = {
1926
2571
  match: n.concat(
1927
2572
  /\b/,
1928
- te([
1929
- ...Sn,
2573
+ U([
2574
+ ...Tn,
1930
2575
  "super",
1931
2576
  "import"
1932
2577
  ]),
1933
- s,
2578
+ u,
1934
2579
  n.lookahead(/\(/)
1935
2580
  ),
1936
2581
  className: "title.function",
1937
2582
  relevance: 0
1938
- }, ce = {
2583
+ }, H = {
1939
2584
  begin: n.concat(/\./, n.lookahead(
1940
- n.concat(s, /(?![0-9A-Za-z$_(])/)
2585
+ n.concat(u, /(?![0-9A-Za-z$_(])/)
1941
2586
  )),
1942
- end: s,
2587
+ end: u,
1943
2588
  excludeBegin: !0,
1944
2589
  keywords: "prototype",
1945
2590
  className: "property",
1946
2591
  relevance: 0
1947
- }, se = {
2592
+ }, G = {
1948
2593
  match: [
1949
2594
  /get|set/,
1950
2595
  /\s+/,
1951
- s,
2596
+ u,
1952
2597
  /(?=\()/
1953
2598
  ],
1954
2599
  className: {
@@ -1960,18 +2605,18 @@ function qt(e) {
1960
2605
  // eat to avoid empty params
1961
2606
  begin: /\(\)/
1962
2607
  },
1963
- L
2608
+ T
1964
2609
  ]
1965
- }, be = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", u = {
2610
+ }, ve = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", b = {
1966
2611
  match: [
1967
2612
  /const|var|let/,
1968
2613
  /\s+/,
1969
- s,
2614
+ u,
1970
2615
  /\s*/,
1971
2616
  /=\s*/,
1972
2617
  /(async\s*)?/,
1973
2618
  // async is optional
1974
- n.lookahead(be)
2619
+ n.lookahead(ve)
1975
2620
  ],
1976
2621
  keywords: "async",
1977
2622
  className: {
@@ -1979,7 +2624,7 @@ function qt(e) {
1979
2624
  3: "title.function"
1980
2625
  },
1981
2626
  contains: [
1982
- L
2627
+ T
1983
2628
  ]
1984
2629
  };
1985
2630
  return {
@@ -1987,7 +2632,7 @@ function qt(e) {
1987
2632
  aliases: ["js", "jsx", "mjs", "cjs"],
1988
2633
  keywords: i,
1989
2634
  // this will be extended by TypeScript
1990
- exports: { PARAMS_CONTAINS: A, CLASS_REFERENCE: R },
2635
+ exports: { PARAMS_CONTAINS: m, CLASS_REFERENCE: N },
1991
2636
  illegal: /#(?![$_A-z])/,
1992
2637
  contains: [
1993
2638
  e.SHEBANG({
@@ -1995,37 +2640,37 @@ function qt(e) {
1995
2640
  binary: "node",
1996
2641
  relevance: 5
1997
2642
  }),
1998
- z,
2643
+ I,
1999
2644
  e.APOS_STRING_MODE,
2000
2645
  e.QUOTE_STRING_MODE,
2001
- E,
2002
- v,
2003
2646
  g,
2004
- S,
2647
+ p,
2648
+ d,
2649
+ v,
2005
2650
  // Skip numbers when they are part of a variable name
2006
2651
  { match: /\$\d+/ },
2007
- d,
2008
- R,
2652
+ c,
2653
+ N,
2009
2654
  {
2010
2655
  className: "attr",
2011
- begin: s + n.lookahead(":"),
2656
+ begin: u + n.lookahead(":"),
2012
2657
  relevance: 0
2013
2658
  },
2014
- u,
2659
+ b,
2015
2660
  {
2016
2661
  // "value" container
2017
2662
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
2018
2663
  keywords: "return throw case",
2019
2664
  relevance: 0,
2020
2665
  contains: [
2021
- S,
2666
+ v,
2022
2667
  e.REGEXP_MODE,
2023
2668
  {
2024
2669
  className: "function",
2025
2670
  // we have to count the parens to make sure we actually have the
2026
2671
  // correct bounding ( ) before the =>. There could be any number of
2027
2672
  // sub-expressions inside also surrounded by parens.
2028
- begin: be,
2673
+ begin: ve,
2029
2674
  returnBegin: !0,
2030
2675
  end: "\\s*=>",
2031
2676
  contains: [
@@ -2047,7 +2692,7 @@ function qt(e) {
2047
2692
  excludeBegin: !0,
2048
2693
  excludeEnd: !0,
2049
2694
  keywords: i,
2050
- contains: A
2695
+ contains: m
2051
2696
  }
2052
2697
  ]
2053
2698
  }
@@ -2065,8 +2710,8 @@ function qt(e) {
2065
2710
  {
2066
2711
  // JSX
2067
2712
  variants: [
2068
- { begin: c.begin, end: c.end },
2069
- { match: l },
2713
+ { begin: h.begin, end: h.end },
2714
+ { match: t },
2070
2715
  {
2071
2716
  begin: r.begin,
2072
2717
  // we carefully check the opening tag to see if it truly
@@ -2087,7 +2732,7 @@ function qt(e) {
2087
2732
  }
2088
2733
  ]
2089
2734
  },
2090
- $,
2735
+ R,
2091
2736
  {
2092
2737
  // prevent this from getting swallowed up by function
2093
2738
  // since they appear "function like"
@@ -2102,8 +2747,8 @@ function qt(e) {
2102
2747
  returnBegin: !0,
2103
2748
  label: "func.def",
2104
2749
  contains: [
2105
- L,
2106
- e.inherit(e.TITLE_MODE, { begin: s, className: "title.function" })
2750
+ T,
2751
+ e.inherit(e.TITLE_MODE, { begin: u, className: "title.function" })
2107
2752
  ]
2108
2753
  },
2109
2754
  // catch ... so it won't trigger the property rule below
@@ -2111,23 +2756,23 @@ function qt(e) {
2111
2756
  match: /\.\.\./,
2112
2757
  relevance: 0
2113
2758
  },
2114
- ce,
2759
+ H,
2115
2760
  // hack: prevents detection of keywords in some circumstances
2116
2761
  // .keyword()
2117
2762
  // $keyword = x
2118
2763
  {
2119
- match: "\\$" + s,
2764
+ match: "\\$" + u,
2120
2765
  relevance: 0
2121
2766
  },
2122
2767
  {
2123
2768
  match: [/\bconstructor(?=\s*\()/],
2124
2769
  className: { 1: "title.function" },
2125
- contains: [L]
2770
+ contains: [T]
2126
2771
  },
2127
- oe,
2128
- ne,
2129
- k,
2130
- se,
2772
+ $,
2773
+ F,
2774
+ S,
2775
+ G,
2131
2776
  {
2132
2777
  match: /\$[(.]/
2133
2778
  // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
@@ -2135,33 +2780,33 @@ function qt(e) {
2135
2780
  ]
2136
2781
  };
2137
2782
  }
2138
- function Yt(e) {
2783
+ function Xt(e) {
2139
2784
  const n = {
2140
2785
  className: "attr",
2141
2786
  begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
2142
2787
  relevance: 1.01
2143
- }, t = {
2788
+ }, a = {
2144
2789
  match: /[{}[\],:]/,
2145
2790
  className: "punctuation",
2146
2791
  relevance: 0
2147
- }, s = [
2792
+ }, u = [
2148
2793
  "true",
2149
2794
  "false",
2150
2795
  "null"
2151
- ], c = {
2796
+ ], h = {
2152
2797
  scope: "literal",
2153
- beginKeywords: s.join(" ")
2798
+ beginKeywords: u.join(" ")
2154
2799
  };
2155
2800
  return {
2156
2801
  name: "JSON",
2157
2802
  keywords: {
2158
- literal: s
2803
+ literal: u
2159
2804
  },
2160
2805
  contains: [
2161
2806
  n,
2162
- t,
2807
+ a,
2163
2808
  e.QUOTE_STRING_MODE,
2164
- c,
2809
+ h,
2165
2810
  e.C_NUMBER_MODE,
2166
2811
  e.C_LINE_COMMENT_MODE,
2167
2812
  e.C_BLOCK_COMMENT_MODE
@@ -2169,8 +2814,8 @@ function Yt(e) {
2169
2814
  illegal: "\\S"
2170
2815
  };
2171
2816
  }
2172
- function Zt(e) {
2173
- const n = "true false yes no null", t = "[\\w#;/?:@&=+$,.~*'()[\\]]+", s = {
2817
+ function Vt(e) {
2818
+ const n = "true false yes no null", a = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
2174
2819
  className: "attr",
2175
2820
  variants: [
2176
2821
  { begin: "\\w[\\w :\\/.-]*:(?=[ ]|$)" },
@@ -2183,7 +2828,7 @@ function Zt(e) {
2183
2828
  begin: "'\\w[\\w :\\/.-]*':(?=[ ]|$)"
2184
2829
  }
2185
2830
  ]
2186
- }, c = {
2831
+ }, h = {
2187
2832
  className: "template-variable",
2188
2833
  variants: [
2189
2834
  {
@@ -2197,7 +2842,7 @@ function Zt(e) {
2197
2842
  end: /\}/
2198
2843
  }
2199
2844
  ]
2200
- }, l = {
2845
+ }, t = {
2201
2846
  className: "string",
2202
2847
  relevance: 0,
2203
2848
  variants: [
@@ -2213,9 +2858,9 @@ function Zt(e) {
2213
2858
  ],
2214
2859
  contains: [
2215
2860
  e.BACKSLASH_ESCAPE,
2216
- c
2861
+ h
2217
2862
  ]
2218
- }, r = e.inherit(l, { variants: [
2863
+ }, r = e.inherit(t, { variants: [
2219
2864
  {
2220
2865
  begin: /'/,
2221
2866
  end: /'/
@@ -2225,29 +2870,29 @@ function Zt(e) {
2225
2870
  end: /"/
2226
2871
  },
2227
2872
  { begin: /[^\s,{}[\]]+/ }
2228
- ] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", a = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", o = "(\\.[0-9]*)?", p = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", d = {
2873
+ ] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", s = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", o = "(\\.[0-9]*)?", l = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", c = {
2229
2874
  className: "number",
2230
- begin: "\\b" + i + a + o + p + "\\b"
2231
- }, b = {
2875
+ begin: "\\b" + i + s + o + l + "\\b"
2876
+ }, f = {
2232
2877
  end: ",",
2233
2878
  endsWithParent: !0,
2234
2879
  excludeEnd: !0,
2235
2880
  keywords: n,
2236
2881
  relevance: 0
2237
- }, E = {
2882
+ }, g = {
2238
2883
  begin: /\{/,
2239
2884
  end: /\}/,
2240
- contains: [b],
2885
+ contains: [f],
2241
2886
  illegal: "\\n",
2242
2887
  relevance: 0
2243
- }, v = {
2888
+ }, p = {
2244
2889
  begin: "\\[",
2245
2890
  end: "\\]",
2246
- contains: [b],
2891
+ contains: [f],
2247
2892
  illegal: "\\n",
2248
2893
  relevance: 0
2249
- }, g = [
2250
- s,
2894
+ }, d = [
2895
+ u,
2251
2896
  {
2252
2897
  className: "meta",
2253
2898
  begin: "^---\\s*$",
@@ -2274,23 +2919,23 @@ function Zt(e) {
2274
2919
  {
2275
2920
  // named tags
2276
2921
  className: "type",
2277
- begin: "!\\w+!" + t
2922
+ begin: "!\\w+!" + a
2278
2923
  },
2279
2924
  // https://yaml.org/spec/1.2/spec.html#id2784064
2280
2925
  {
2281
2926
  // verbatim tags
2282
2927
  className: "type",
2283
- begin: "!<" + t + ">"
2928
+ begin: "!<" + a + ">"
2284
2929
  },
2285
2930
  {
2286
2931
  // primary tags
2287
2932
  className: "type",
2288
- begin: "!" + t
2933
+ begin: "!" + a
2289
2934
  },
2290
2935
  {
2291
2936
  // secondary tags
2292
2937
  className: "type",
2293
- begin: "!!" + t
2938
+ begin: "!!" + a
2294
2939
  },
2295
2940
  {
2296
2941
  // fragment id &ref
@@ -2314,7 +2959,7 @@ function Zt(e) {
2314
2959
  beginKeywords: n,
2315
2960
  keywords: { literal: n }
2316
2961
  },
2317
- d,
2962
+ c,
2318
2963
  // numbers are any valid C-style number that
2319
2964
  // sit isolated from other words
2320
2965
  {
@@ -2322,18 +2967,18 @@ function Zt(e) {
2322
2967
  begin: e.C_NUMBER_RE + "\\b",
2323
2968
  relevance: 0
2324
2969
  },
2325
- E,
2326
- v,
2327
- l
2328
- ], m = [...g];
2329
- return m.pop(), m.push(r), b.contains = m, {
2970
+ g,
2971
+ p,
2972
+ t
2973
+ ], _ = [...d];
2974
+ return _.pop(), _.push(r), f.contains = _, {
2330
2975
  name: "YAML",
2331
2976
  case_insensitive: !0,
2332
2977
  aliases: ["yml"],
2333
- contains: g
2978
+ contains: d
2334
2979
  };
2335
2980
  }
2336
- function Qt(e) {
2981
+ function jt(e) {
2337
2982
  return {
2338
2983
  name: "Plain text",
2339
2984
  aliases: [
@@ -2343,8 +2988,8 @@ function Qt(e) {
2343
2988
  disableAutodetect: !0
2344
2989
  };
2345
2990
  }
2346
- function Xt(e) {
2347
- const n = e.regex, t = /[\p{XID_Start}_]\p{XID_Continue}*/u, s = [
2991
+ function qt(e) {
2992
+ const n = e.regex, a = /[\p{XID_Start}_]\p{XID_Continue}*/u, u = [
2348
2993
  "and",
2349
2994
  "as",
2350
2995
  "assert",
@@ -2381,7 +3026,7 @@ function Xt(e) {
2381
3026
  "yield"
2382
3027
  ], i = {
2383
3028
  $pattern: /[A-Za-z]\w+|__\w+__/,
2384
- keyword: s,
3029
+ keyword: u,
2385
3030
  built_in: [
2386
3031
  "__import__",
2387
3032
  "abs",
@@ -2476,7 +3121,7 @@ function Xt(e) {
2476
3121
  "Type",
2477
3122
  "Union"
2478
3123
  ]
2479
- }, a = {
3124
+ }, s = {
2480
3125
  className: "meta",
2481
3126
  begin: /^(>>>|\.\.\.) /
2482
3127
  }, o = {
@@ -2485,10 +3130,10 @@ function Xt(e) {
2485
3130
  end: /\}/,
2486
3131
  keywords: i,
2487
3132
  illegal: /#/
2488
- }, p = {
3133
+ }, l = {
2489
3134
  begin: /\{\{/,
2490
3135
  relevance: 0
2491
- }, d = {
3136
+ }, c = {
2492
3137
  className: "string",
2493
3138
  contains: [e.BACKSLASH_ESCAPE],
2494
3139
  variants: [
@@ -2497,7 +3142,7 @@ function Xt(e) {
2497
3142
  end: /'''/,
2498
3143
  contains: [
2499
3144
  e.BACKSLASH_ESCAPE,
2500
- a
3145
+ s
2501
3146
  ],
2502
3147
  relevance: 10
2503
3148
  },
@@ -2506,7 +3151,7 @@ function Xt(e) {
2506
3151
  end: /"""/,
2507
3152
  contains: [
2508
3153
  e.BACKSLASH_ESCAPE,
2509
- a
3154
+ s
2510
3155
  ],
2511
3156
  relevance: 10
2512
3157
  },
@@ -2515,8 +3160,8 @@ function Xt(e) {
2515
3160
  end: /'''/,
2516
3161
  contains: [
2517
3162
  e.BACKSLASH_ESCAPE,
2518
- a,
2519
- p,
3163
+ s,
3164
+ l,
2520
3165
  o
2521
3166
  ]
2522
3167
  },
@@ -2525,8 +3170,8 @@ function Xt(e) {
2525
3170
  end: /"""/,
2526
3171
  contains: [
2527
3172
  e.BACKSLASH_ESCAPE,
2528
- a,
2529
- p,
3173
+ s,
3174
+ l,
2530
3175
  o
2531
3176
  ]
2532
3177
  },
@@ -2553,7 +3198,7 @@ function Xt(e) {
2553
3198
  end: /'/,
2554
3199
  contains: [
2555
3200
  e.BACKSLASH_ESCAPE,
2556
- p,
3201
+ l,
2557
3202
  o
2558
3203
  ]
2559
3204
  },
@@ -2562,14 +3207,14 @@ function Xt(e) {
2562
3207
  end: /"/,
2563
3208
  contains: [
2564
3209
  e.BACKSLASH_ESCAPE,
2565
- p,
3210
+ l,
2566
3211
  o
2567
3212
  ]
2568
3213
  },
2569
3214
  e.APOS_STRING_MODE,
2570
3215
  e.QUOTE_STRING_MODE
2571
3216
  ]
2572
- }, b = "[0-9](_?[0-9])*", E = `(\\b(${b}))?\\.(${b})|\\b(${b})\\.`, v = `\\b|${s.join("|")}`, g = {
3217
+ }, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, p = `\\b|${u.join("|")}`, d = {
2573
3218
  className: "number",
2574
3219
  relevance: 0,
2575
3220
  variants: [
@@ -2584,10 +3229,10 @@ function Xt(e) {
2584
3229
  // because both MUST contain a decimal point and so cannot be confused with
2585
3230
  // the interior part of an identifier
2586
3231
  {
2587
- begin: `(\\b(${b})|(${E}))[eE][+-]?(${b})[jJ]?(?=${v})`
3232
+ begin: `(\\b(${f})|(${g}))[eE][+-]?(${f})[jJ]?(?=${p})`
2588
3233
  },
2589
3234
  {
2590
- begin: `(${E})[jJ]?`
3235
+ begin: `(${g})[jJ]?`
2591
3236
  },
2592
3237
  // decinteger, bininteger, octinteger, hexinteger
2593
3238
  // https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
@@ -2596,24 +3241,24 @@ function Xt(e) {
2596
3241
  // decinteger is optionally imaginary
2597
3242
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
2598
3243
  {
2599
- begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${v})`
3244
+ begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`
2600
3245
  },
2601
3246
  {
2602
- begin: `\\b0[bB](_?[01])+[lL]?(?=${v})`
3247
+ begin: `\\b0[bB](_?[01])+[lL]?(?=${p})`
2603
3248
  },
2604
3249
  {
2605
- begin: `\\b0[oO](_?[0-7])+[lL]?(?=${v})`
3250
+ begin: `\\b0[oO](_?[0-7])+[lL]?(?=${p})`
2606
3251
  },
2607
3252
  {
2608
- begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${v})`
3253
+ begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`
2609
3254
  },
2610
3255
  // imagnumber (digitpart-based)
2611
3256
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
2612
3257
  {
2613
- begin: `\\b(${b})[jJ](?=${v})`
3258
+ begin: `\\b(${f})[jJ](?=${p})`
2614
3259
  }
2615
3260
  ]
2616
- }, m = {
3261
+ }, _ = {
2617
3262
  className: "comment",
2618
3263
  begin: n.lookahead(/# type:/),
2619
3264
  end: /$/,
@@ -2630,7 +3275,7 @@ function Xt(e) {
2630
3275
  endsWithParent: !0
2631
3276
  }
2632
3277
  ]
2633
- }, S = {
3278
+ }, v = {
2634
3279
  className: "params",
2635
3280
  variants: [
2636
3281
  // Exclude params in functions without params
@@ -2647,18 +3292,18 @@ function Xt(e) {
2647
3292
  keywords: i,
2648
3293
  contains: [
2649
3294
  "self",
2650
- a,
2651
- g,
3295
+ s,
2652
3296
  d,
3297
+ c,
2653
3298
  e.HASH_COMMENT_MODE
2654
3299
  ]
2655
3300
  }
2656
3301
  ]
2657
3302
  };
2658
3303
  return o.contains = [
3304
+ c,
2659
3305
  d,
2660
- g,
2661
- a
3306
+ s
2662
3307
  ], {
2663
3308
  name: "Python",
2664
3309
  aliases: [
@@ -2670,8 +3315,8 @@ function Xt(e) {
2670
3315
  keywords: i,
2671
3316
  illegal: /(<\/|->|\?)|=>/,
2672
3317
  contains: [
2673
- a,
2674
- g,
3318
+ s,
3319
+ d,
2675
3320
  {
2676
3321
  // very common convention
2677
3322
  begin: /\bself\b/
@@ -2682,20 +3327,20 @@ function Xt(e) {
2682
3327
  beginKeywords: "if",
2683
3328
  relevance: 0
2684
3329
  },
2685
- d,
2686
- m,
3330
+ c,
3331
+ _,
2687
3332
  e.HASH_COMMENT_MODE,
2688
3333
  {
2689
3334
  match: [
2690
3335
  /\bdef/,
2691
3336
  /\s+/,
2692
- t
3337
+ a
2693
3338
  ],
2694
3339
  scope: {
2695
3340
  1: "keyword",
2696
3341
  3: "title.function"
2697
3342
  },
2698
- contains: [S]
3343
+ contains: [v]
2699
3344
  },
2700
3345
  {
2701
3346
  variants: [
@@ -2703,10 +3348,10 @@ function Xt(e) {
2703
3348
  match: [
2704
3349
  /\bclass/,
2705
3350
  /\s+/,
2706
- t,
3351
+ a,
2707
3352
  /\s*/,
2708
3353
  /\(\s*/,
2709
- t,
3354
+ a,
2710
3355
  /\s*\)/
2711
3356
  ]
2712
3357
  },
@@ -2714,7 +3359,7 @@ function Xt(e) {
2714
3359
  match: [
2715
3360
  /\bclass/,
2716
3361
  /\s+/,
2717
- t
3362
+ a
2718
3363
  ]
2719
3364
  }
2720
3365
  ],
@@ -2729,26 +3374,26 @@ function Xt(e) {
2729
3374
  begin: /^[\t ]*@/,
2730
3375
  end: /(?=#)|$/,
2731
3376
  contains: [
2732
- g,
2733
- S,
2734
- d
3377
+ d,
3378
+ v,
3379
+ c
2735
3380
  ]
2736
3381
  }
2737
3382
  ]
2738
3383
  };
2739
3384
  }
2740
- var re = "[0-9](_*[0-9])*", Te = `\\.(${re})`, Ae = "[0-9a-fA-F](_*[0-9a-fA-F])*", on = {
3385
+ var oe = "[0-9](_*[0-9])*", Ne = `\\.(${oe})`, Ae = "[0-9a-fA-F](_*[0-9a-fA-F])*", on = {
2741
3386
  className: "number",
2742
3387
  variants: [
2743
3388
  // DecimalFloatingPointLiteral
2744
3389
  // including ExponentPart
2745
- { begin: `(\\b(${re})((${Te})|\\.)?|(${Te}))[eE][+-]?(${re})[fFdD]?\\b` },
3390
+ { begin: `(\\b(${oe})((${Ne})|\\.)?|(${Ne}))[eE][+-]?(${oe})[fFdD]?\\b` },
2746
3391
  // excluding ExponentPart
2747
- { begin: `\\b(${re})((${Te})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
2748
- { begin: `(${Te})[fFdD]?\\b` },
2749
- { begin: `\\b(${re})[fFdD]\\b` },
3392
+ { begin: `\\b(${oe})((${Ne})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
3393
+ { begin: `(${Ne})[fFdD]?\\b` },
3394
+ { begin: `\\b(${oe})[fFdD]\\b` },
2750
3395
  // HexadecimalFloatingPointLiteral
2751
- { begin: `\\b0[xX]((${Ae})\\.?|(${Ae})?\\.(${Ae}))[pP][+-]?(${re})[fFdD]?\\b` },
3396
+ { begin: `\\b0[xX]((${Ae})\\.?|(${Ae})?\\.(${Ae}))[pP][+-]?(${oe})[fFdD]?\\b` },
2752
3397
  // DecimalIntegerLiteral
2753
3398
  { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
2754
3399
  // HexIntegerLiteral
@@ -2760,11 +3405,11 @@ var re = "[0-9](_*[0-9])*", Te = `\\.(${re})`, Ae = "[0-9a-fA-F](_*[0-9a-fA-F])*
2760
3405
  ],
2761
3406
  relevance: 0
2762
3407
  };
2763
- function Mn(e, n, t) {
2764
- return t === -1 ? "" : e.replace(n, (s) => Mn(e, n, t - 1));
3408
+ function Sn(e, n, a) {
3409
+ return a === -1 ? "" : e.replace(n, (u) => Sn(e, n, a - 1));
2765
3410
  }
2766
- function Vt(e) {
2767
- const n = e.regex, t = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", s = t + Mn("(?:<" + t + "~~~(?:\\s*,\\s*" + t + "~~~)*>)?", /~~~/g, 2), a = {
3411
+ function Jt(e) {
3412
+ const n = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = a + Sn("(?:<" + a + "~~~(?:\\s*,\\s*" + a + "~~~)*>)?", /~~~/g, 2), s = {
2768
3413
  keyword: [
2769
3414
  "synchronized",
2770
3415
  "abstract",
@@ -2830,7 +3475,7 @@ function Vt(e) {
2830
3475
  ]
2831
3476
  }, o = {
2832
3477
  className: "meta",
2833
- begin: "@" + t,
3478
+ begin: "@" + a,
2834
3479
  contains: [
2835
3480
  {
2836
3481
  begin: /\(/,
@@ -2839,11 +3484,11 @@ function Vt(e) {
2839
3484
  // allow nested () inside our annotation
2840
3485
  }
2841
3486
  ]
2842
- }, p = {
3487
+ }, l = {
2843
3488
  className: "params",
2844
3489
  begin: /\(/,
2845
3490
  end: /\)/,
2846
- keywords: a,
3491
+ keywords: s,
2847
3492
  relevance: 0,
2848
3493
  contains: [e.C_BLOCK_COMMENT_MODE],
2849
3494
  endsParent: !0
@@ -2851,7 +3496,7 @@ function Vt(e) {
2851
3496
  return {
2852
3497
  name: "Java",
2853
3498
  aliases: ["jsp"],
2854
- keywords: a,
3499
+ keywords: s,
2855
3500
  illegal: /<\/|#/,
2856
3501
  contains: [
2857
3502
  e.COMMENT(
@@ -2892,7 +3537,7 @@ function Vt(e) {
2892
3537
  match: [
2893
3538
  /\b(?:class|interface|enum|extends|implements|new)/,
2894
3539
  /\s+/,
2895
- t
3540
+ a
2896
3541
  ],
2897
3542
  className: {
2898
3543
  1: "keyword",
@@ -2906,9 +3551,9 @@ function Vt(e) {
2906
3551
  },
2907
3552
  {
2908
3553
  begin: [
2909
- n.concat(/(?!else)/, t),
3554
+ n.concat(/(?!else)/, a),
2910
3555
  /\s+/,
2911
- t,
3556
+ a,
2912
3557
  /\s+/,
2913
3558
  /=(?!=)/
2914
3559
  ],
@@ -2922,14 +3567,14 @@ function Vt(e) {
2922
3567
  begin: [
2923
3568
  /record/,
2924
3569
  /\s+/,
2925
- t
3570
+ a
2926
3571
  ],
2927
3572
  className: {
2928
3573
  1: "keyword",
2929
3574
  3: "title.class"
2930
3575
  },
2931
3576
  contains: [
2932
- p,
3577
+ l,
2933
3578
  e.C_LINE_COMMENT_MODE,
2934
3579
  e.C_BLOCK_COMMENT_MODE
2935
3580
  ]
@@ -2942,18 +3587,18 @@ function Vt(e) {
2942
3587
  },
2943
3588
  {
2944
3589
  begin: [
2945
- "(?:" + s + "\\s+)",
3590
+ "(?:" + u + "\\s+)",
2946
3591
  e.UNDERSCORE_IDENT_RE,
2947
3592
  /\s*(?=\()/
2948
3593
  ],
2949
3594
  className: { 2: "title.function" },
2950
- keywords: a,
3595
+ keywords: s,
2951
3596
  contains: [
2952
3597
  {
2953
3598
  className: "params",
2954
3599
  begin: /\(/,
2955
3600
  end: /\)/,
2956
- keywords: a,
3601
+ keywords: s,
2957
3602
  relevance: 0,
2958
3603
  contains: [
2959
3604
  o,
@@ -2972,20 +3617,20 @@ function Vt(e) {
2972
3617
  ]
2973
3618
  };
2974
3619
  }
2975
- function jt(e) {
2976
- const n = e.regex, t = {}, s = {
3620
+ function er(e) {
3621
+ const n = e.regex, a = {}, u = {
2977
3622
  begin: /\$\{/,
2978
3623
  end: /\}/,
2979
3624
  contains: [
2980
3625
  "self",
2981
3626
  {
2982
3627
  begin: /:-/,
2983
- contains: [t]
3628
+ contains: [a]
2984
3629
  }
2985
3630
  // default values
2986
3631
  ]
2987
3632
  };
2988
- Object.assign(t, {
3633
+ Object.assign(a, {
2989
3634
  className: "variable",
2990
3635
  variants: [
2991
3636
  { begin: n.concat(
@@ -2994,15 +3639,15 @@ function jt(e) {
2994
3639
  // Perl at all like $ident$, @ident@, etc.
2995
3640
  "(?![\\w\\d])(?![$])"
2996
3641
  ) },
2997
- s
3642
+ u
2998
3643
  ]
2999
3644
  });
3000
- const c = {
3645
+ const h = {
3001
3646
  className: "subst",
3002
3647
  begin: /\$\(/,
3003
3648
  end: /\)/,
3004
3649
  contains: [e.BACKSLASH_ESCAPE]
3005
- }, l = {
3650
+ }, t = {
3006
3651
  begin: /<<-?\s*(?=\w+)/,
3007
3652
  starts: { contains: [
3008
3653
  e.END_SAME_AS_BEGIN({
@@ -3017,15 +3662,15 @@ function jt(e) {
3017
3662
  end: /"/,
3018
3663
  contains: [
3019
3664
  e.BACKSLASH_ESCAPE,
3020
- t,
3021
- c
3665
+ a,
3666
+ h
3022
3667
  ]
3023
3668
  };
3024
- c.contains.push(r);
3669
+ h.contains.push(r);
3025
3670
  const i = {
3026
3671
  className: "",
3027
3672
  begin: /\\"/
3028
- }, a = {
3673
+ }, s = {
3029
3674
  className: "string",
3030
3675
  begin: /'/,
3031
3676
  end: /'/
@@ -3038,9 +3683,9 @@ function jt(e) {
3038
3683
  className: "number"
3039
3684
  },
3040
3685
  e.NUMBER_MODE,
3041
- t
3686
+ a
3042
3687
  ]
3043
- }, p = [
3688
+ }, l = [
3044
3689
  "fish",
3045
3690
  "bash",
3046
3691
  "zsh",
@@ -3050,16 +3695,16 @@ function jt(e) {
3050
3695
  "tcsh",
3051
3696
  "dash",
3052
3697
  "scsh"
3053
- ], d = e.SHEBANG({
3054
- binary: `(${p.join("|")})`,
3698
+ ], c = e.SHEBANG({
3699
+ binary: `(${l.join("|")})`,
3055
3700
  relevance: 10
3056
- }), b = {
3701
+ }), f = {
3057
3702
  className: "function",
3058
3703
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
3059
3704
  returnBegin: !0,
3060
3705
  contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
3061
3706
  relevance: 0
3062
- }, E = [
3707
+ }, g = [
3063
3708
  "if",
3064
3709
  "then",
3065
3710
  "else",
@@ -3073,10 +3718,10 @@ function jt(e) {
3073
3718
  "case",
3074
3719
  "esac",
3075
3720
  "function"
3076
- ], v = [
3721
+ ], p = [
3077
3722
  "true",
3078
3723
  "false"
3079
- ], g = { match: /(\/[a-z._-]+)+/ }, m = [
3724
+ ], d = { match: /(\/[a-z._-]+)+/ }, _ = [
3080
3725
  "break",
3081
3726
  "cd",
3082
3727
  "continue",
@@ -3095,7 +3740,7 @@ function jt(e) {
3095
3740
  "trap",
3096
3741
  "umask",
3097
3742
  "unset"
3098
- ], S = [
3743
+ ], v = [
3099
3744
  "alias",
3100
3745
  "bind",
3101
3746
  "builtin",
@@ -3117,7 +3762,7 @@ function jt(e) {
3117
3762
  "typeset",
3118
3763
  "ulimit",
3119
3764
  "unalias"
3120
- ], M = [
3765
+ ], E = [
3121
3766
  "autoload",
3122
3767
  "bg",
3123
3768
  "bindkey",
@@ -3186,7 +3831,7 @@ function jt(e) {
3186
3831
  "zsocket",
3187
3832
  "zstyle",
3188
3833
  "ztcp"
3189
- ], x = [
3834
+ ], w = [
3190
3835
  "chcon",
3191
3836
  "chgrp",
3192
3837
  "chown",
@@ -3296,37 +3941,37 @@ function jt(e) {
3296
3941
  aliases: ["sh"],
3297
3942
  keywords: {
3298
3943
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
3299
- keyword: E,
3300
- literal: v,
3944
+ keyword: g,
3945
+ literal: p,
3301
3946
  built_in: [
3302
- ...m,
3303
- ...S,
3947
+ ..._,
3948
+ ...v,
3304
3949
  // Shell modifiers
3305
3950
  "set",
3306
3951
  "shopt",
3307
- ...M,
3308
- ...x
3952
+ ...E,
3953
+ ...w
3309
3954
  ]
3310
3955
  },
3311
3956
  contains: [
3312
- d,
3957
+ c,
3313
3958
  // to catch known shells and boost relevancy
3314
3959
  e.SHEBANG(),
3315
3960
  // to catch unknown shells but still highlight the shebang
3316
- b,
3961
+ f,
3317
3962
  o,
3318
3963
  e.HASH_COMMENT_MODE,
3319
- l,
3320
- g,
3964
+ t,
3965
+ d,
3321
3966
  r,
3322
3967
  i,
3323
- a,
3324
- t
3968
+ s,
3969
+ a
3325
3970
  ]
3326
3971
  };
3327
3972
  }
3328
- function Jt(e) {
3329
- const n = e.regex, t = e.COMMENT("--", "$"), s = {
3973
+ function nr(e) {
3974
+ const n = e.regex, a = e.COMMENT("--", "$"), u = {
3330
3975
  className: "string",
3331
3976
  variants: [
3332
3977
  {
@@ -3335,11 +3980,11 @@ function Jt(e) {
3335
3980
  contains: [{ begin: /''/ }]
3336
3981
  }
3337
3982
  ]
3338
- }, c = {
3983
+ }, h = {
3339
3984
  begin: /"/,
3340
3985
  end: /"/,
3341
3986
  contains: [{ begin: /""/ }]
3342
- }, l = [
3987
+ }, t = [
3343
3988
  "true",
3344
3989
  "false",
3345
3990
  // Not sure it's correct to call NULL literal, and clauses like IS [NOT] NULL look strange that way.
@@ -3379,7 +4024,7 @@ function Jt(e) {
3379
4024
  "varying",
3380
4025
  // modifier (character varying)
3381
4026
  "varbinary"
3382
- ], a = [
4027
+ ], s = [
3383
4028
  "add",
3384
4029
  "asc",
3385
4030
  "collation",
@@ -3755,7 +4400,7 @@ function Jt(e) {
3755
4400
  "within",
3756
4401
  "without",
3757
4402
  "year"
3758
- ], p = [
4403
+ ], l = [
3759
4404
  "abs",
3760
4405
  "acos",
3761
4406
  "array_agg",
@@ -3841,7 +4486,7 @@ function Jt(e) {
3841
4486
  "var_pop",
3842
4487
  "var_samp",
3843
4488
  "width_bucket"
3844
- ], d = [
4489
+ ], c = [
3845
4490
  "current_catalog",
3846
4491
  "current_date",
3847
4492
  "current_default_transform_group",
@@ -3857,7 +4502,7 @@ function Jt(e) {
3857
4502
  "localtime",
3858
4503
  "current_timestamp",
3859
4504
  "localtimestamp"
3860
- ], b = [
4505
+ ], f = [
3861
4506
  "create table",
3862
4507
  "insert into",
3863
4508
  "primary key",
@@ -3874,27 +4519,27 @@ function Jt(e) {
3874
4519
  "nulls last",
3875
4520
  "depth first",
3876
4521
  "breadth first"
3877
- ], E = p, v = [
4522
+ ], g = l, p = [
3878
4523
  ...o,
3879
- ...a
3880
- ].filter((x) => !p.includes(x)), g = {
4524
+ ...s
4525
+ ].filter((w) => !l.includes(w)), d = {
3881
4526
  className: "variable",
3882
4527
  begin: /@[a-z0-9]+/
3883
- }, m = {
4528
+ }, _ = {
3884
4529
  className: "operator",
3885
4530
  begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
3886
4531
  relevance: 0
3887
- }, S = {
3888
- begin: n.concat(/\b/, n.either(...E), /\s*\(/),
4532
+ }, v = {
4533
+ begin: n.concat(/\b/, n.either(...g), /\s*\(/),
3889
4534
  relevance: 0,
3890
- keywords: { built_in: E }
4535
+ keywords: { built_in: g }
3891
4536
  };
3892
- function M(x, {
3893
- exceptions: A,
3894
- when: L
4537
+ function E(w, {
4538
+ exceptions: m,
4539
+ when: T
3895
4540
  } = {}) {
3896
- const k = L;
3897
- return A = A || [], x.map((R) => R.match(/\|\d+$/) || A.includes(R) ? R : k(R) ? `${R}|0` : R);
4541
+ const S = T;
4542
+ return m = m || [], w.map((N) => N.match(/\|\d+$/) || m.includes(N) ? N : S(N) ? `${N}|0` : N);
3898
4543
  }
3899
4544
  return {
3900
4545
  name: "SQL",
@@ -3903,19 +4548,19 @@ function Jt(e) {
3903
4548
  illegal: /[{}]|<\//,
3904
4549
  keywords: {
3905
4550
  $pattern: /\b[\w\.]+/,
3906
- keyword: M(v, { when: (x) => x.length < 3 }),
3907
- literal: l,
4551
+ keyword: E(p, { when: (w) => w.length < 3 }),
4552
+ literal: t,
3908
4553
  type: i,
3909
- built_in: d
4554
+ built_in: c
3910
4555
  },
3911
4556
  contains: [
3912
4557
  {
3913
- begin: n.either(...b),
4558
+ begin: n.either(...f),
3914
4559
  relevance: 0,
3915
4560
  keywords: {
3916
4561
  $pattern: /[\w\.]+/,
3917
- keyword: v.concat(b),
3918
- literal: l,
4562
+ keyword: p.concat(f),
4563
+ literal: t,
3919
4564
  type: i
3920
4565
  }
3921
4566
  },
@@ -3923,240 +4568,254 @@ function Jt(e) {
3923
4568
  className: "type",
3924
4569
  begin: n.either(...r)
3925
4570
  },
3926
- S,
3927
- g,
3928
- s,
3929
- c,
4571
+ v,
4572
+ d,
4573
+ u,
4574
+ h,
3930
4575
  e.C_NUMBER_MODE,
3931
4576
  e.C_BLOCK_COMMENT_MODE,
3932
- t,
3933
- m
4577
+ a,
4578
+ _
3934
4579
  ]
3935
4580
  };
3936
4581
  }
3937
- G.registerLanguage("xml", zt);
3938
- G.registerLanguage("javascript", qt);
3939
- G.registerLanguage("json", Yt);
3940
- G.registerLanguage("yaml", Zt);
3941
- G.registerLanguage("plaintext", Qt);
3942
- G.registerLanguage("python", Xt);
3943
- G.registerLanguage("java", Vt);
3944
- G.registerLanguage("bash", jt);
3945
- G.registerLanguage("sql", Jt);
3946
- var y = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(y || {});
3947
- const q = "<code-diff-modified>", Y = "</code-diff-modified>", es = q.replace("<", "&lt;").replace(">", "&gt;"), ns = Y.replace("<", "&lt;").replace(">", "&gt;"), ae = (e) => e === void 0 ? y.EQUAL : e.added ? y.ADD : e.removed ? y.DELETE : y.EQUAL, Me = (e, n, t = "word") => typeof e > "u" ? n : typeof n > "u" ? e : (t === "char" ? zn : Gn)(e, n).filter((c) => ae(c) !== y.DELETE).map(
3948
- (c) => ae(c) === y.ADD ? `${q}${c.value}${Y}` : c.value
3949
- ).join(""), F = (e, n) => {
3950
- if (!n.match(new RegExp(`(${q}|${Y})`, "g")))
3951
- return G.highlight(n, { language: e }).value;
3952
- let s = n;
3953
- const c = n.replace(new RegExp(`(${q}|${Y})`, "g"), ""), l = document.createElement("div");
3954
- l.innerHTML = G.highlight(c, { language: e }).value;
4582
+ Y.registerLanguage("xml", Gt);
4583
+ Y.registerLanguage("javascript", Yt);
4584
+ Y.registerLanguage("json", Xt);
4585
+ Y.registerLanguage("yaml", Vt);
4586
+ Y.registerLanguage("plaintext", jt);
4587
+ Y.registerLanguage("python", qt);
4588
+ Y.registerLanguage("java", Jt);
4589
+ Y.registerLanguage("bash", er);
4590
+ Y.registerLanguage("sql", nr);
4591
+ var D = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(D || {});
4592
+ const j = "<code-diff-modified>", q = "</code-diff-modified>", tr = j.replace("<", "&lt;").replace(">", "&gt;"), rr = q.replace("<", "&lt;").replace(">", "&gt;"), le = (e) => e === void 0 ? D.EQUAL : e.added ? D.ADD : e.removed ? D.DELETE : D.EQUAL, De = (e, n, a = "word") => typeof e > "u" ? n : typeof n > "u" ? e : (a === "char" ? zn : Kn)(e, n).filter((h) => le(h) !== D.DELETE).map(
4593
+ (h) => le(h) === D.ADD ? `${j}${h.value}${q}` : h.value
4594
+ ).join("");
4595
+ function Dn(e, n) {
4596
+ const a = new ce.diff_match_patch(), u = a.diff_linesToChars_(e, n), h = u.chars1, t = u.chars2, r = u.lineArray, i = a.diff_main(h, t, !1);
4597
+ return a.diff_charsToLines_(i, r), i.map((s) => {
4598
+ const [o, l] = s;
4599
+ return {
4600
+ count: l.trim().split(`
4601
+ `).length,
4602
+ value: l,
4603
+ removed: o === ce.DIFF_DELETE,
4604
+ added: o === ce.DIFF_INSERT
4605
+ };
4606
+ });
4607
+ }
4608
+ const Z = (e, n) => {
4609
+ if (!n.match(new RegExp(`(${j}|${q})`, "g")))
4610
+ return Y.highlight(n, { language: e }).value;
4611
+ let u = n;
4612
+ const h = n.replace(new RegExp(`(${j}|${q})`, "g"), ""), t = document.createElement("div");
4613
+ t.innerHTML = Y.highlight(h, { language: e }).value;
3955
4614
  let r = !1;
3956
- const i = (a) => {
3957
- a.childNodes.forEach((o) => {
4615
+ const i = (s) => {
4616
+ s.childNodes.forEach((o) => {
3958
4617
  if (o.nodeType === Node.ELEMENT_NODE && i(o), o.nodeType === Node.TEXT_NODE) {
3959
4618
  if (!o.textContent)
3960
4619
  return;
3961
- let p = o.textContent, d = "";
3962
- for (r && (d = d + q); p.length; ) {
3963
- if (s.startsWith(q)) {
3964
- s = s.slice(q.length), d = d + q, r = !0;
4620
+ let l = o.textContent, c = "";
4621
+ for (r && (c = c + j); l.length; ) {
4622
+ if (u.startsWith(j)) {
4623
+ u = u.slice(j.length), c = c + j, r = !0;
3965
4624
  continue;
3966
4625
  }
3967
- if (s.startsWith(Y)) {
3968
- s = s.slice(Y.length), d = d + Y, r = !1;
4626
+ if (u.startsWith(q)) {
4627
+ u = u.slice(q.length), c = c + q, r = !1;
3969
4628
  continue;
3970
4629
  }
3971
- const b = s.match(new RegExp(`(${q}|${Y})`)), E = b && b.index ? b.index : s.length, v = Math.min(E, p.length);
3972
- d = d + s.substring(0, v), s = s.slice(v), p = p.slice(v);
4630
+ const f = u.match(new RegExp(`(${j}|${q})`)), g = f && f.index ? f.index : u.length, p = Math.min(g, l.length);
4631
+ c = c + u.substring(0, p), u = u.slice(p), l = l.slice(p);
3973
4632
  }
3974
- r && (d = d + Y), o.textContent = d;
4633
+ r && (c = c + q), o.textContent = c;
3975
4634
  }
3976
4635
  });
3977
4636
  };
3978
- return i(l), l.innerHTML.replace(new RegExp(es, "g"), '<span class="x">').replace(new RegExp(ns, "g"), "</span>");
4637
+ return i(t), t.innerHTML.replace(new RegExp(tr, "g"), '<span class="x">').replace(new RegExp(rr, "g"), "</span>");
3979
4638
  };
3980
4639
  function Rn(e) {
3981
- const n = (c, l) => (c.match(new RegExp(l, "g")) || []).length;
3982
- let t = 0, s = 0;
3983
- for (const c of e)
3984
- c.added && (t += n(c.value.trim(), `
3985
- `) + 1), c.removed && (s += n(c.value.trim(), `
4640
+ const n = (h, t) => (h.match(new RegExp(t, "g")) || []).length;
4641
+ let a = 0, u = 0;
4642
+ for (const h of e)
4643
+ h.added && (a += n(h.value.trim(), `
4644
+ `) + 1), h.removed && (u += n(h.value.trim(), `
3986
4645
  `) + 1);
3987
- return { additionsNum: t, deletionsNum: s };
4646
+ return { additionsNum: a, deletionsNum: u };
3988
4647
  }
3989
- function ts(e, n, t = "plaintext", s = "word", c = 10) {
3990
- var v;
3991
- const l = () => ({ type: y.EMPTY }), r = (g, m, S) => ({ type: g, num: m, code: S }), i = gn(e, n);
3992
- let a = 0, o = 0, p = !1;
3993
- const d = [], b = {
3994
- changes: d,
4648
+ function ir(e, n, a = "plaintext", u = "word", h = 10) {
4649
+ var p;
4650
+ const t = () => ({ type: D.EMPTY }), r = (d, _, v) => ({ type: d, num: _, code: v }), i = Dn(e, n);
4651
+ let s = 0, o = 0, l = !1;
4652
+ const c = [], f = {
4653
+ changes: c,
3995
4654
  stat: Rn(i)
3996
4655
  };
3997
- for (let g = 0; g < i.length; g++) {
3998
- if (p) {
3999
- p = !1;
4656
+ for (let d = 0; d < i.length; d++) {
4657
+ if (l) {
4658
+ l = !1;
4000
4659
  continue;
4001
4660
  }
4002
- const [m, S] = [i[g], i[g + 1]], [M, x] = [ae(m), ae(S)], A = m.value.replace(/\n$/, "").split(`
4661
+ const [_, v] = [i[d], i[d + 1]], [E, w] = [le(_), le(v)], m = _.value.replace(/\n$/, "").split(`
4003
4662
  `);
4004
- if (S === void 0) {
4005
- for (const k of A) {
4006
- let R = l(), z = l();
4007
- const $ = F(t, k);
4008
- M === y.EQUAL && (a++, o++, R = r(y.EQUAL, a, $), z = r(y.EQUAL, o, $)), M === y.DELETE && (a++, R = r(y.DELETE, a, $), z = l()), M === y.ADD && (o++, R = l(), z = r(y.ADD, o, $)), d.push({ left: R, right: z });
4663
+ if (v === void 0) {
4664
+ for (const S of m) {
4665
+ let N = t(), I = t();
4666
+ const R = Z(a, S);
4667
+ E === D.EQUAL && (s++, o++, N = r(D.EQUAL, s, R), I = r(D.EQUAL, o, R)), E === D.DELETE && (s++, N = r(D.DELETE, s, R), I = t()), E === D.ADD && (o++, N = t(), I = r(D.ADD, o, R)), c.push({ left: N, right: I });
4009
4668
  }
4010
4669
  break;
4011
4670
  }
4012
- if (M === y.EQUAL)
4013
- for (const k of A) {
4014
- a++, o++;
4015
- const R = F(t, k);
4016
- d.push({
4017
- left: r(y.EQUAL, a, R),
4018
- right: r(y.EQUAL, o, R)
4671
+ if (E === D.EQUAL)
4672
+ for (const S of m) {
4673
+ s++, o++;
4674
+ const N = Z(a, S);
4675
+ c.push({
4676
+ left: r(D.EQUAL, s, N),
4677
+ right: r(D.EQUAL, o, N)
4019
4678
  });
4020
4679
  }
4021
- const L = S.value.replace(/\n$/, "").split(`
4680
+ const T = v.value.replace(/\n$/, "").split(`
4022
4681
  `);
4023
- if (M === y.DELETE) {
4024
- if (x === y.EQUAL)
4025
- for (const k of A)
4026
- a++, d.push({
4027
- left: r(y.DELETE, a, F(t, k)),
4028
- right: l()
4682
+ if (E === D.DELETE) {
4683
+ if (w === D.EQUAL)
4684
+ for (const S of m)
4685
+ s++, c.push({
4686
+ left: r(D.DELETE, s, Z(a, S)),
4687
+ right: t()
4029
4688
  });
4030
- if (x === y.ADD) {
4031
- p = !0;
4032
- const k = Math.max(m.count, S.count);
4033
- for (let R = 0; R < k; R++) {
4034
- R < m.count && a++, R < S.count && o++;
4035
- const [z, $] = [A[R], L[R]], ne = A.length === L.length ? Me($, z, s) : z, te = A.length === L.length ? Me(z, $, s) : $, oe = R < m.count ? r(y.DELETE, a, F(t, ne)) : l(), ce = R < S.count ? r(y.ADD, o, F(t, te)) : l();
4036
- d.push({ left: oe, right: ce });
4689
+ if (w === D.ADD) {
4690
+ l = !0;
4691
+ const S = Math.max(_.count, v.count);
4692
+ for (let N = 0; N < S; N++) {
4693
+ N < _.count && s++, N < v.count && o++;
4694
+ const [I, R] = [m[N], T[N]], F = m.length === T.length ? De(R, I, u) : I, U = m.length === T.length ? De(I, R, u) : R, $ = N < _.count ? r(D.DELETE, s, Z(a, F)) : t(), H = N < v.count ? r(D.ADD, o, Z(a, U)) : t();
4695
+ c.push({ left: $, right: H });
4037
4696
  }
4038
4697
  }
4039
4698
  }
4040
- if (M === y.ADD)
4041
- for (const k of A)
4042
- o++, d.push({
4043
- left: l(),
4044
- right: r(y.ADD, o, F(t, k))
4699
+ if (E === D.ADD)
4700
+ for (const S of m)
4701
+ o++, c.push({
4702
+ left: t(),
4703
+ right: r(D.ADD, o, Z(a, S))
4045
4704
  });
4046
4705
  }
4047
4706
  if (e === n) {
4048
- for (let g = 0; g < d.length; g++)
4049
- d[g].fold = !1;
4050
- return b;
4707
+ for (let d = 0; d < c.length; d++)
4708
+ c[d].fold = !1;
4709
+ return f;
4051
4710
  }
4052
- for (let g = 0; g < d.length; g++) {
4053
- const m = d[g];
4054
- if (m.left.type === y.DELETE || m.right.type === y.ADD) {
4055
- const [S, M] = [Math.max(g - c, 0), Math.min(g + c + 1, d.length)];
4056
- for (let x = S; x < M; x++)
4057
- d[x].fold = !1;
4711
+ for (let d = 0; d < c.length; d++) {
4712
+ const _ = c[d];
4713
+ if (_.left.type === D.DELETE || _.right.type === D.ADD) {
4714
+ const [v, E] = [Math.max(d - h, 0), Math.min(d + h + 1, c.length)];
4715
+ for (let w = v; w < E; w++)
4716
+ c[w].fold = !1;
4058
4717
  }
4059
- m.fold === void 0 && (m.fold = !0);
4718
+ _.fold === void 0 && (_.fold = !0);
4060
4719
  }
4061
- const E = [];
4062
- for (let g = 0; g < d.length; g++) {
4063
- const m = d[g];
4064
- if (m.fold === !1) {
4065
- E.push(m);
4720
+ const g = [];
4721
+ for (let d = 0; d < c.length; d++) {
4722
+ const _ = c[d];
4723
+ if (_.fold === !1) {
4724
+ g.push(_);
4066
4725
  continue;
4067
4726
  }
4068
- m.fold === !0 && ((v = E[E.length - 1]) == null ? void 0 : v.fold) !== !0 && E.push(m);
4727
+ _.fold === !0 && ((p = g[g.length - 1]) == null ? void 0 : p.fold) !== !0 && g.push(_);
4069
4728
  }
4070
- return b.changes = E, b;
4729
+ return f.changes = g, f;
4071
4730
  }
4072
- function ss(e, n, t = "plaintext", s = "word", c = 2) {
4073
- var b;
4074
- const l = gn(e, n);
4075
- let r = 0, i = 0, a = !1;
4076
- const o = [], p = {
4731
+ function sr(e, n, a = "plaintext", u = "word", h = 10) {
4732
+ var f;
4733
+ const t = Dn(e, n);
4734
+ let r = 0, i = 0, s = !1;
4735
+ const o = [], l = {
4077
4736
  changes: o,
4078
- stat: Rn(l)
4737
+ stat: Rn(t)
4079
4738
  };
4080
- for (let E = 0; E < l.length; E++) {
4081
- if (a) {
4082
- a = !1;
4739
+ for (let g = 0; g < t.length; g++) {
4740
+ if (s) {
4741
+ s = !1;
4083
4742
  continue;
4084
4743
  }
4085
- const [v, g] = [l[E], l[E + 1]], [m, S] = [ae(v), ae(g)], M = v.value.replace(/\n$/, "").split(`
4744
+ const [p, d] = [t[g], t[g + 1]], [_, v] = [le(p), le(d)], E = p.value.replace(/\n$/, "").split(`
4086
4745
  `);
4087
- if (g === void 0) {
4088
- for (const A of M) {
4089
- m === y.EQUAL && (r++, i++), m === y.DELETE && r++, m === y.ADD && i++;
4090
- const L = F(t, A);
4746
+ if (d === void 0) {
4747
+ for (const m of E) {
4748
+ _ === D.EQUAL && (r++, i++), _ === D.DELETE && r++, _ === D.ADD && i++;
4749
+ const T = Z(a, m);
4091
4750
  o.push({
4092
- type: m,
4093
- code: L,
4094
- addNum: m === y.DELETE ? void 0 : i,
4095
- delNum: m === y.ADD ? void 0 : r
4751
+ type: _,
4752
+ code: T,
4753
+ addNum: _ === D.DELETE ? void 0 : i,
4754
+ delNum: _ === D.ADD ? void 0 : r
4096
4755
  });
4097
4756
  }
4098
4757
  break;
4099
4758
  }
4100
- if (m === y.EQUAL)
4101
- for (const A of M) {
4759
+ if (_ === D.EQUAL)
4760
+ for (const m of E) {
4102
4761
  r++, i++;
4103
- const L = F(t, A);
4104
- o.push({ type: y.EQUAL, code: L, delNum: r, addNum: i });
4762
+ const T = Z(a, m);
4763
+ o.push({ type: D.EQUAL, code: T, delNum: r, addNum: i });
4105
4764
  }
4106
- const x = g.value.replace(/\n$/, "").split(`
4765
+ const w = d.value.replace(/\n$/, "").split(`
4107
4766
  `);
4108
- if (m === y.DELETE)
4109
- if (S === y.ADD && M.length === x.length) {
4110
- for (let A = 0; A < M.length; A++) {
4111
- const L = M[A], k = x[A];
4767
+ if (_ === D.DELETE)
4768
+ if (v === D.ADD && E.length === w.length) {
4769
+ for (let m = 0; m < E.length; m++) {
4770
+ const T = E[m], S = w[m];
4112
4771
  r++;
4113
- const R = F(t, Me(k, L, s));
4114
- o.push({ type: y.DELETE, code: R, delNum: r });
4772
+ const N = Z(a, De(S, T, u));
4773
+ o.push({ type: D.DELETE, code: N, delNum: r });
4115
4774
  }
4116
- for (let A = 0; A < x.length; A++) {
4117
- const L = M[A], k = x[A];
4775
+ for (let m = 0; m < w.length; m++) {
4776
+ const T = E[m], S = w[m];
4118
4777
  i++;
4119
- const R = F(t, Me(L, k, s));
4120
- o.push({ type: y.ADD, code: R, addNum: i });
4778
+ const N = Z(a, De(T, S, u));
4779
+ o.push({ type: D.ADD, code: N, addNum: i });
4121
4780
  }
4122
- a = !0;
4781
+ s = !0;
4123
4782
  } else
4124
- for (const A of M) {
4783
+ for (const m of E) {
4125
4784
  r++;
4126
- const L = F(t, A);
4127
- o.push({ type: y.DELETE, code: L, delNum: r });
4785
+ const T = Z(a, m);
4786
+ o.push({ type: D.DELETE, code: T, delNum: r });
4128
4787
  }
4129
- if (m === y.ADD)
4130
- for (const A of M) {
4788
+ if (_ === D.ADD)
4789
+ for (const m of E) {
4131
4790
  i++;
4132
- const L = F(t, A);
4133
- o.push({ type: y.ADD, code: L, addNum: i });
4791
+ const T = Z(a, m);
4792
+ o.push({ type: D.ADD, code: T, addNum: i });
4134
4793
  }
4135
4794
  }
4136
- for (let E = 0; E < o.length; E++) {
4137
- const v = o[E];
4138
- if (v.type === y.DELETE || v.type === y.ADD) {
4139
- const [g, m] = [Math.max(E - c, 0), Math.min(E + c + 1, o.length)];
4140
- for (let S = g; S < m; S++)
4141
- o[S].fold = !1;
4795
+ for (let g = 0; g < o.length; g++) {
4796
+ const p = o[g];
4797
+ if (p.type === D.DELETE || p.type === D.ADD) {
4798
+ const [d, _] = [Math.max(g - h, 0), Math.min(g + h + 1, o.length)];
4799
+ for (let v = d; v < _; v++)
4800
+ o[v].fold = !1;
4142
4801
  }
4143
- v.fold === void 0 && (v.fold = !0);
4802
+ p.fold === void 0 && (p.fold = !0);
4144
4803
  }
4145
4804
  if (e === n) {
4146
- for (let E = 0; E < o.length; E++)
4147
- o[E].fold = !1;
4148
- return p;
4805
+ for (let g = 0; g < o.length; g++)
4806
+ o[g].fold = !1;
4807
+ return l;
4149
4808
  }
4150
- const d = [];
4151
- for (let E = 0; E < o.length; E++) {
4152
- const v = o[E];
4153
- if (v.fold === !1) {
4154
- d.push(v);
4809
+ const c = [];
4810
+ for (let g = 0; g < o.length; g++) {
4811
+ const p = o[g];
4812
+ if (p.fold === !1) {
4813
+ c.push(p);
4155
4814
  continue;
4156
4815
  }
4157
- v.fold === !0 && (E === 0 || ((b = d[d.length - 1]) == null ? void 0 : b.fold) !== !0) && d.push(v);
4816
+ p.fold === !0 && (g === 0 || ((f = c[c.length - 1]) == null ? void 0 : f.fold) !== !0) && c.push(p);
4158
4817
  }
4159
- return p.changes = d, p;
4818
+ return l.changes = c, l;
4160
4819
  }
4161
4820
  const Ke = {};
4162
4821
  Ke.props = {
@@ -4167,42 +4826,42 @@ Ke.props = {
4167
4826
  }
4168
4827
  };
4169
4828
  Ke.setup = (e, n) => ({
4170
- DiffType: y,
4171
- getCodeMarker: (s) => s === y.DELETE ? "-" : s === y.ADD ? "+" : ""
4829
+ DiffType: D,
4830
+ getCodeMarker: (u) => u === D.DELETE ? "-" : u === D.ADD ? "+" : ""
4172
4831
  });
4173
- var is = function() {
4174
- var e = this, n = e.$createElement, t = e._self._c || n;
4175
- return e.line.fold ? t("tr", [t("td", {
4832
+ var ar = function() {
4833
+ var e = this, n = e.$createElement, a = e._self._c || n;
4834
+ return e.line.fold ? a("tr", [a("td", {
4176
4835
  staticClass: "blob-num blob-num-hunk"
4177
- }, [e._v(" > ")]), t("td", {
4836
+ }, [e._v(" > ")]), a("td", {
4178
4837
  staticClass: "blob-num blob-num-hunk"
4179
- }, [e._v(" > ")]), t("td", {
4838
+ }, [e._v(" > ")]), a("td", {
4180
4839
  staticClass: "blob-code blob-code-hunk",
4181
4840
  attrs: {
4182
4841
  align: "left"
4183
4842
  }
4184
- }, [e._v(" ⋯ ")])]) : t("tr", [t("td", {
4843
+ }, [e._v(" ⋯ ")])]) : a("tr", [a("td", {
4185
4844
  staticClass: "blob-num",
4186
4845
  class: {
4187
4846
  "blob-num-deletion": e.line.type === e.DiffType.DELETE,
4188
4847
  "blob-num-addition": e.line.type === e.DiffType.ADD,
4189
4848
  "blob-num-context": e.line.type === e.DiffType.EQUAL
4190
4849
  }
4191
- }, [e._v(" " + e._s(e.line.delNum) + " ")]), t("td", {
4850
+ }, [e._v(" " + e._s(e.line.delNum) + " ")]), a("td", {
4192
4851
  staticClass: "blob-num",
4193
4852
  class: {
4194
4853
  "blob-num-deletion": e.line.type === e.DiffType.DELETE,
4195
4854
  "blob-num-addition": e.line.type === e.DiffType.ADD,
4196
4855
  "blob-num-context": e.line.type === e.DiffType.EQUAL
4197
4856
  }
4198
- }, [e._v(" " + e._s(e.line.addNum) + " ")]), t("td", {
4857
+ }, [e._v(" " + e._s(e.line.addNum) + " ")]), a("td", {
4199
4858
  staticClass: "blob-code",
4200
4859
  class: {
4201
4860
  "blob-code-deletion": e.line.type === e.DiffType.DELETE,
4202
4861
  "blob-code-addition": e.line.type === e.DiffType.ADD,
4203
4862
  "blob-code-context": e.line.type === e.DiffType.EQUAL
4204
4863
  }
4205
- }, [t("span", {
4864
+ }, [a("span", {
4206
4865
  staticClass: "blob-code-inner blob-code-marker",
4207
4866
  attrs: {
4208
4867
  "data-code-marker": e.getCodeMarker(e.line.type)
@@ -4211,95 +4870,95 @@ var is = function() {
4211
4870
  innerHTML: e._s(e.line.code)
4212
4871
  }
4213
4872
  })])]);
4214
- }, rs = [];
4215
- function he(e, n, t, s, c, l, r, i) {
4216
- var a = typeof e == "function" ? e.options : e;
4217
- n && (a.render = n, a.staticRenderFns = t, a._compiled = !0), s && (a.functional = !0), l && (a._scopeId = "data-v-" + l);
4873
+ }, or = [];
4874
+ function be(e, n, a, u, h, t, r, i) {
4875
+ var s = typeof e == "function" ? e.options : e;
4876
+ n && (s.render = n, s.staticRenderFns = a, s._compiled = !0), u && (s.functional = !0), t && (s._scopeId = "data-v-" + t);
4218
4877
  var o;
4219
- if (r ? (o = function(b) {
4220
- b = b || // cached call
4878
+ if (r ? (o = function(f) {
4879
+ f = f || // cached call
4221
4880
  this.$vnode && this.$vnode.ssrContext || // stateful
4222
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !b && typeof __VUE_SSR_CONTEXT__ < "u" && (b = __VUE_SSR_CONTEXT__), c && c.call(this, b), b && b._registeredComponents && b._registeredComponents.add(r);
4223
- }, a._ssrRegister = o) : c && (o = i ? function() {
4224
- c.call(
4881
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < "u" && (f = __VUE_SSR_CONTEXT__), h && h.call(this, f), f && f._registeredComponents && f._registeredComponents.add(r);
4882
+ }, s._ssrRegister = o) : h && (o = i ? function() {
4883
+ h.call(
4225
4884
  this,
4226
- (a.functional ? this.parent : this).$root.$options.shadowRoot
4885
+ (s.functional ? this.parent : this).$root.$options.shadowRoot
4227
4886
  );
4228
- } : c), o)
4229
- if (a.functional) {
4230
- a._injectStyles = o;
4231
- var p = a.render;
4232
- a.render = function(E, v) {
4233
- return o.call(v), p(E, v);
4887
+ } : h), o)
4888
+ if (s.functional) {
4889
+ s._injectStyles = o;
4890
+ var l = s.render;
4891
+ s.render = function(g, p) {
4892
+ return o.call(p), l(g, p);
4234
4893
  };
4235
4894
  } else {
4236
- var d = a.beforeCreate;
4237
- a.beforeCreate = d ? [].concat(d, o) : [o];
4895
+ var c = s.beforeCreate;
4896
+ s.beforeCreate = c ? [].concat(c, o) : [o];
4238
4897
  }
4239
4898
  return {
4240
4899
  exports: e,
4241
- options: a
4900
+ options: s
4242
4901
  };
4243
4902
  }
4244
- const cn = {};
4245
- var as = /* @__PURE__ */ he(
4903
+ const ln = {};
4904
+ var lr = /* @__PURE__ */ be(
4246
4905
  Ke,
4247
- is,
4248
- rs,
4906
+ ar,
4907
+ or,
4249
4908
  !1,
4250
- os,
4909
+ cr,
4251
4910
  null,
4252
4911
  null,
4253
4912
  null
4254
4913
  );
4255
- function os(e) {
4256
- for (let n in cn)
4257
- this[n] = cn[n];
4914
+ function cr(e) {
4915
+ for (let n in ln)
4916
+ this[n] = ln[n];
4258
4917
  }
4259
- const cs = /* @__PURE__ */ function() {
4260
- return as.exports;
4261
- }(), ge = {};
4262
- ge.props = {
4918
+ const ur = /* @__PURE__ */ function() {
4919
+ return lr.exports;
4920
+ }(), de = {};
4921
+ de.props = {
4263
4922
  diffChange: {
4264
4923
  key: "diffChange",
4265
4924
  required: !0,
4266
- type: null
4925
+ type: Array
4267
4926
  }
4268
4927
  };
4269
- ge.setup = (e, n) => ({});
4270
- ge.components = Object.assign({
4271
- UnifiedLine: cs
4272
- }, ge.components);
4273
- var ls = function() {
4274
- var e = this, n = e.$createElement, t = e._self._c || n;
4275
- return t("table", {
4928
+ de.setup = (e, n) => ({});
4929
+ de.components = Object.assign({
4930
+ UnifiedLine: ur
4931
+ }, de.components);
4932
+ var fr = function() {
4933
+ var e = this, n = e.$createElement, a = e._self._c || n;
4934
+ return a("table", {
4276
4935
  staticClass: "diff-table"
4277
- }, [t("tbody", e._l(e.diffChange, function(s, c) {
4278
- return t("UnifiedLine", {
4279
- key: c,
4936
+ }, [a("tbody", e._l(e.diffChange, function(u, h) {
4937
+ return a("UnifiedLine", {
4938
+ key: h,
4280
4939
  attrs: {
4281
- line: s
4940
+ line: u
4282
4941
  }
4283
4942
  });
4284
4943
  }), 1)]);
4285
- }, us = [];
4286
- const ln = {};
4287
- var fs = /* @__PURE__ */ he(
4288
- ge,
4289
- ls,
4290
- us,
4944
+ }, gr = [];
4945
+ const cn = {};
4946
+ var hr = /* @__PURE__ */ be(
4947
+ de,
4948
+ fr,
4949
+ gr,
4291
4950
  !1,
4292
- ds,
4951
+ dr,
4293
4952
  null,
4294
4953
  null,
4295
4954
  null
4296
4955
  );
4297
- function ds(e) {
4298
- for (let n in ln)
4299
- this[n] = ln[n];
4956
+ function dr(e) {
4957
+ for (let n in cn)
4958
+ this[n] = cn[n];
4300
4959
  }
4301
- const gs = /* @__PURE__ */ function() {
4302
- return fs.exports;
4960
+ const pr = /* @__PURE__ */ function() {
4961
+ return hr.exports;
4303
4962
  }(), We = {};
4304
4963
  We.props = {
4305
4964
  splitLine: {
@@ -4309,69 +4968,69 @@ We.props = {
4309
4968
  }
4310
4969
  };
4311
4970
  We.setup = (e, n) => ({
4312
- DiffType: y,
4313
- getCodeMarker: (s) => s === y.DELETE ? "-" : s === y.ADD ? "+" : ""
4971
+ DiffType: D,
4972
+ getCodeMarker: (u) => u === D.DELETE ? "-" : u === D.ADD ? "+" : ""
4314
4973
  });
4315
- var ps = function() {
4316
- var e = this, n = e.$createElement, t = e._self._c || n;
4317
- return e.splitLine.fold ? t("tr", [t("td", {
4974
+ var _r = function() {
4975
+ var e = this, n = e.$createElement, a = e._self._c || n;
4976
+ return e.splitLine.fold ? a("tr", [a("td", {
4318
4977
  staticClass: "blob-num blob-num-hunk",
4319
4978
  attrs: {
4320
4979
  colspan: "1"
4321
4980
  }
4322
- }, [e._v(" > ")]), t("td", {
4981
+ }, [e._v(" > ")]), a("td", {
4323
4982
  staticClass: "blob-code blob-code-inner blob-code-hunk",
4324
4983
  attrs: {
4325
4984
  colspan: "3",
4326
4985
  align: "left"
4327
4986
  }
4328
- }, [e._v(" ⋯ ")])]) : t("tr", [e._l([e.splitLine.left, e.splitLine.right], function(s) {
4329
- return [s.type === e.DiffType.EMPTY ? [t("td", {
4987
+ }, [e._v(" ⋯ ")])]) : a("tr", [e._l([e.splitLine.left, e.splitLine.right], function(u) {
4988
+ return [u.type === e.DiffType.EMPTY ? [a("td", {
4330
4989
  staticClass: "blob-num blob-num-empty empty-cell"
4331
- }), t("td", {
4990
+ }), a("td", {
4332
4991
  staticClass: "blob-code blob-code-empty empty-cell"
4333
- })] : [t("td", {
4992
+ })] : [a("td", {
4334
4993
  staticClass: "blob-num",
4335
4994
  class: {
4336
- "blob-num-deletion": s.type === e.DiffType.DELETE,
4337
- "blob-num-addition": s.type === e.DiffType.ADD,
4338
- "blob-num-context": s.type === e.DiffType.EQUAL
4995
+ "blob-num-deletion": u.type === e.DiffType.DELETE,
4996
+ "blob-num-addition": u.type === e.DiffType.ADD,
4997
+ "blob-num-context": u.type === e.DiffType.EQUAL
4339
4998
  }
4340
- }, [e._v(" " + e._s(s.num) + " ")]), t("td", {
4999
+ }, [e._v(" " + e._s(u.num) + " ")]), a("td", {
4341
5000
  staticClass: "blob-code",
4342
5001
  class: {
4343
- "blob-code-deletion": s.type === e.DiffType.DELETE,
4344
- "blob-code-addition": s.type === e.DiffType.ADD,
4345
- "blob-code-context": s.type === e.DiffType.EQUAL
5002
+ "blob-code-deletion": u.type === e.DiffType.DELETE,
5003
+ "blob-code-addition": u.type === e.DiffType.ADD,
5004
+ "blob-code-context": u.type === e.DiffType.EQUAL
4346
5005
  }
4347
- }, [t("span", {
5006
+ }, [a("span", {
4348
5007
  staticClass: "blob-code-inner blob-code-marker",
4349
5008
  attrs: {
4350
- "data-code-marker": e.getCodeMarker(s.type)
5009
+ "data-code-marker": e.getCodeMarker(u.type)
4351
5010
  },
4352
5011
  domProps: {
4353
- innerHTML: e._s(s.code)
5012
+ innerHTML: e._s(u.code)
4354
5013
  }
4355
5014
  })])]];
4356
5015
  })], 2);
4357
- }, _s = [];
5016
+ }, br = [];
4358
5017
  const un = {};
4359
- var hs = /* @__PURE__ */ he(
5018
+ var vr = /* @__PURE__ */ be(
4360
5019
  We,
4361
- ps,
4362
- _s,
5020
+ _r,
5021
+ br,
4363
5022
  !1,
4364
- bs,
5023
+ Er,
4365
5024
  null,
4366
5025
  null,
4367
5026
  null
4368
5027
  );
4369
- function bs(e) {
5028
+ function Er(e) {
4370
5029
  for (let n in un)
4371
5030
  this[n] = un[n];
4372
5031
  }
4373
- const Es = /* @__PURE__ */ function() {
4374
- return hs.exports;
5032
+ const mr = /* @__PURE__ */ function() {
5033
+ return vr.exports;
4375
5034
  }(), pe = {};
4376
5035
  pe.props = {
4377
5036
  diffChange: {
@@ -4382,49 +5041,49 @@ pe.props = {
4382
5041
  };
4383
5042
  pe.setup = (e, n) => ({});
4384
5043
  pe.components = Object.assign({
4385
- SplitLine: Es
5044
+ SplitLine: mr
4386
5045
  }, pe.components);
4387
- var ms = function() {
4388
- var e = this, n = e.$createElement, t = e._self._c || n;
4389
- return t("table", {
5046
+ var yr = function() {
5047
+ var e = this, n = e.$createElement, a = e._self._c || n;
5048
+ return a("table", {
4390
5049
  staticClass: "file-diff-split diff-table"
4391
- }, [e._m(0), t("tbody", e._l(e.diffChange, function(s, c) {
4392
- return t("SplitLine", {
4393
- key: c,
5050
+ }, [e._m(0), a("tbody", e._l(e.diffChange, function(u, h) {
5051
+ return a("SplitLine", {
5052
+ key: h,
4394
5053
  attrs: {
4395
- "split-line": s
5054
+ "split-line": u
4396
5055
  }
4397
5056
  });
4398
5057
  }), 1)]);
4399
- }, ys = [function() {
4400
- var e = this, n = e.$createElement, t = e._self._c || n;
4401
- return t("colgroup", [t("col", {
5058
+ }, wr = [function() {
5059
+ var e = this, n = e.$createElement, a = e._self._c || n;
5060
+ return a("colgroup", [a("col", {
4402
5061
  attrs: {
4403
5062
  width: "44"
4404
5063
  }
4405
- }), t("col"), t("col", {
5064
+ }), a("col"), a("col", {
4406
5065
  attrs: {
4407
5066
  width: "44"
4408
5067
  }
4409
- }), t("col")]);
5068
+ }), a("col")]);
4410
5069
  }];
4411
5070
  const fn = {};
4412
- var vs = /* @__PURE__ */ he(
5071
+ var Mr = /* @__PURE__ */ be(
4413
5072
  pe,
4414
- ms,
4415
- ys,
5073
+ yr,
5074
+ wr,
4416
5075
  !1,
4417
- Ns,
5076
+ Nr,
4418
5077
  null,
4419
5078
  null,
4420
5079
  null
4421
5080
  );
4422
- function Ns(e) {
5081
+ function Nr(e) {
4423
5082
  for (let n in fn)
4424
5083
  this[n] = fn[n];
4425
5084
  }
4426
- const Ts = /* @__PURE__ */ function() {
4427
- return vs.exports;
5085
+ const Ar = /* @__PURE__ */ function() {
5086
+ return Mr.exports;
4428
5087
  }();
4429
5088
  const _e = {};
4430
5089
  _e.props = {
@@ -4477,7 +5136,7 @@ _e.props = {
4477
5136
  maxHeight: {
4478
5137
  key: "maxHeight",
4479
5138
  required: !1,
4480
- type: Number,
5139
+ type: String,
4481
5140
  default: void 0
4482
5141
  },
4483
5142
  filename: {
@@ -4488,80 +5147,80 @@ _e.props = {
4488
5147
  }
4489
5148
  };
4490
5149
  _e.setup = (e, n) => {
4491
- const t = e, s = ve(() => t.outputFormat === "line-by-line"), c = ve(() => {
4492
- const i = t.trim ? t.oldString.trim() : t.oldString;
4493
- return t.noDiffLineFeed ? i.replace(/(\r\n)/g, `
5150
+ const a = e, u = we(() => a.outputFormat === "line-by-line"), h = we(() => {
5151
+ const i = a.trim ? a.oldString.trim() : a.oldString;
5152
+ return a.noDiffLineFeed ? i.replace(/(\r\n)/g, `
4494
5153
  `) : i;
4495
- }), l = ve(() => {
4496
- const i = t.trim ? t.newString.trim() : t.newString;
4497
- return t.noDiffLineFeed ? i.replace(/(\r\n)/g, `
5154
+ }), t = we(() => {
5155
+ const i = a.trim ? a.newString.trim() : a.newString;
5156
+ return a.noDiffLineFeed ? i.replace(/(\r\n)/g, `
4498
5157
  `) : i;
4499
- }), r = ve(() => s.value ? ss(c.value, l.value, t.language, t.diffStyle, t.context) : ts(c.value, l.value, t.language, t.diffStyle, t.context));
5158
+ }), r = we(() => u.value ? sr(h.value, t.value, a.language, a.diffStyle, a.context) : ir(h.value, t.value, a.language, a.diffStyle, a.context));
4500
5159
  return {
4501
- isUnifiedViewer: s,
5160
+ isUnifiedViewer: u,
4502
5161
  diffChange: r
4503
5162
  };
4504
5163
  };
4505
5164
  _e.components = Object.assign({
4506
- UnifiedViewer: gs,
4507
- SplitViewer: Ts
5165
+ UnifiedViewer: pr,
5166
+ SplitViewer: Ar
4508
5167
  }, _e.components);
4509
- var As = function() {
4510
- var e = this, n = e.$createElement, t = e._self._c || n;
4511
- return t("div", {
5168
+ var Tr = function() {
5169
+ var e = this, n = e.$createElement, a = e._self._c || n;
5170
+ return a("div", {
4512
5171
  staticClass: "code-diff-view",
4513
5172
  style: {
4514
5173
  maxHeight: e.maxHeight
4515
5174
  }
4516
- }, [t("div", {
5175
+ }, [a("div", {
4517
5176
  staticClass: "file-header"
4518
- }, [t("div", {
5177
+ }, [a("div", {
4519
5178
  staticClass: "file-info"
4520
- }, [t("span", {
5179
+ }, [a("span", {
4521
5180
  staticClass: "filename"
4522
- }, [e._v(e._s(e.filename))]), t("span", {
5181
+ }, [e._v(e._s(e.filename))]), a("span", {
4523
5182
  staticClass: "diff-stat"
4524
- }, [t("span", {
5183
+ }, [a("span", {
4525
5184
  staticClass: "diff-stat-added"
4526
- }, [e._v("+" + e._s(e.diffChange.stat.additionsNum) + " additions")]), t("span", {
5185
+ }, [e._v("+" + e._s(e.diffChange.stat.additionsNum) + " additions")]), a("span", {
4527
5186
  staticClass: "diff-stat-deleted",
4528
5187
  staticStyle: {
4529
5188
  "margin-left": "8px"
4530
5189
  }
4531
- }, [e._v("-" + e._s(e.diffChange.stat.deletionsNum) + " deletions")])])])]), e.isUnifiedViewer ? t("UnifiedViewer", {
5190
+ }, [e._v("-" + e._s(e.diffChange.stat.deletionsNum) + " deletions")])])])]), e.isUnifiedViewer ? a("UnifiedViewer", {
4532
5191
  attrs: {
4533
5192
  "diff-change": e.diffChange.changes
4534
5193
  }
4535
- }) : t("SplitViewer", {
5194
+ }) : a("SplitViewer", {
4536
5195
  attrs: {
4537
5196
  "diff-change": e.diffChange.changes
4538
5197
  }
4539
5198
  })], 1);
4540
- }, ws = [];
4541
- const dn = {};
4542
- var Ss = /* @__PURE__ */ he(
5199
+ }, Sr = [];
5200
+ const gn = {};
5201
+ var Dr = /* @__PURE__ */ be(
4543
5202
  _e,
4544
- As,
4545
- ws,
5203
+ Tr,
5204
+ Sr,
4546
5205
  !1,
4547
- Ms,
5206
+ Rr,
4548
5207
  null,
4549
5208
  null,
4550
5209
  null
4551
5210
  );
4552
- function Ms(e) {
4553
- for (let n in dn)
4554
- this[n] = dn[n];
5211
+ function Rr(e) {
5212
+ for (let n in gn)
5213
+ this[n] = gn[n];
4555
5214
  }
4556
- const Rs = /* @__PURE__ */ function() {
4557
- return Ss.exports;
4558
- }(), Os = (e) => {
4559
- e.component("CodeDiff", Rs);
4560
- }, Ls = {
4561
- install: Os,
4562
- hljs: G
5215
+ const Or = /* @__PURE__ */ function() {
5216
+ return Dr.exports;
5217
+ }(), Cr = (e) => {
5218
+ e.component("CodeDiff", Or);
5219
+ }, kr = {
5220
+ install: Cr,
5221
+ hljs: Y
4563
5222
  };
4564
5223
  export {
4565
- Rs as CodeDiff,
4566
- Ls as default
5224
+ Or as CodeDiff,
5225
+ kr as default
4567
5226
  };