v-code-diff 1.4.0 → 1.5.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,10 +1,10 @@
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;box-sizing:border-box}.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
2
  import $e from "vue";
3
- import Un, { computed as we } from "@vue/composition-api/dist/vue-composition-api.mjs";
4
- function Pn(e) {
3
+ import Un, { computed as we, ref as Pn, watch as xn } from "@vue/composition-api/dist/vue-composition-api.mjs";
4
+ function Hn(e) {
5
5
  e = e || $e, e && !e.__composition_api_installed__ && e.use(Un);
6
6
  }
7
- Pn($e);
7
+ Hn($e);
8
8
  $e.version;
9
9
  function J() {
10
10
  }
@@ -13,10 +13,10 @@ J.prototype = {
13
13
  var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, h = u.callback;
14
14
  typeof u == "function" && (h = u, u = {}), this.options = u;
15
15
  var t = this;
16
- function r(d) {
16
+ function r(p) {
17
17
  return h ? (setTimeout(function() {
18
- h(void 0, d);
19
- }, 0), !0) : d;
18
+ h(void 0, p);
19
+ }, 0), !0) : p;
20
20
  }
21
21
  n = this.castInput(n), a = this.castInput(a), n = this.removeEmpty(this.tokenize(n)), a = this.removeEmpty(this.tokenize(a));
22
22
  var i = a.length, s = n.length, o = 1, l = i + s;
@@ -31,33 +31,33 @@ J.prototype = {
31
31
  count: a.length
32
32
  }]);
33
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);
34
+ for (var p = -1 * o; p <= o; p += 2) {
35
+ var _ = void 0, v = c[p - 1], E = c[p + 1], w = (E ? E.newPos : 0) - p;
36
+ v && (c[p - 1] = void 0);
37
37
  var m = v && v.newPos + 1 < i, T = E && 0 <= w && w < s;
38
38
  if (!m && !T) {
39
- c[d] = void 0;
39
+ c[p] = void 0;
40
40
  continue;
41
41
  }
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] = _;
42
+ if (!m || T && v.newPos < E.newPos ? (_ = zn(E), t.pushComponent(_.components, void 0, !0)) : (_ = v, _.newPos++, t.pushComponent(_.components, !0, void 0)), w = t.extractCommon(_, a, n, p), _.newPos + 1 >= i && w + 1 >= s)
43
+ return r(Fn(t, _.components, a, n, t.useLongestToken));
44
+ c[p] = _;
45
45
  }
46
46
  o++;
47
47
  }
48
48
  if (h)
49
- (function d() {
49
+ (function p() {
50
50
  setTimeout(function() {
51
51
  if (o > l)
52
52
  return h();
53
- g() || d();
53
+ g() || p();
54
54
  }, 0);
55
55
  })();
56
56
  else
57
57
  for (; o <= l; ) {
58
- var p = g();
59
- if (p)
60
- return p;
58
+ var d = g();
59
+ if (d)
60
+ return d;
61
61
  }
62
62
  },
63
63
  pushComponent: function(n, a, u) {
@@ -97,7 +97,7 @@ J.prototype = {
97
97
  return n.join("");
98
98
  }
99
99
  };
100
- function xn(e, n, a, u, h) {
100
+ function Fn(e, n, a, u, h) {
101
101
  for (var t = 0, r = n.length, i = 0, s = 0; t < r; t++) {
102
102
  var o = n[t];
103
103
  if (o.removed) {
@@ -108,9 +108,9 @@ function xn(e, n, a, u, h) {
108
108
  } else {
109
109
  if (!o.added && h) {
110
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;
111
+ l = l.map(function(g, d) {
112
+ var p = u[s + d];
113
+ return p.length > g.length ? p : g;
114
114
  }), o.value = e.join(l);
115
115
  } else
116
116
  o.value = e.join(a.slice(i, i + o.count));
@@ -120,17 +120,17 @@ function xn(e, n, a, u, h) {
120
120
  var f = n[r - 1];
121
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 Fn(e) {
123
+ function zn(e) {
124
124
  return {
125
125
  newPos: e.newPos,
126
126
  components: e.components.slice(0)
127
127
  };
128
128
  }
129
- var Hn = new J();
130
- function zn(e, n, a) {
131
- return Hn.diff(e, n, a);
129
+ var Gn = new J();
130
+ function Kn(e, n, a) {
131
+ return Gn.diff(e, n, a);
132
132
  }
133
- function Gn(e, n) {
133
+ function Wn(e, n) {
134
134
  if (typeof e == "function")
135
135
  n.callback = e;
136
136
  else if (e)
@@ -147,8 +147,8 @@ Ue.tokenize = function(e) {
147
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 Kn(e, n, a) {
151
- return a = Gn(a, {
150
+ function Qn(e, n, a) {
151
+ return a = Wn(a, {
152
152
  ignoreWhitespace: !0
153
153
  }), Ue.diff(e, n, a);
154
154
  }
@@ -162,12 +162,12 @@ hn.tokenize = function(e) {
162
162
  }
163
163
  return n;
164
164
  };
165
- var Wn = new J();
166
- Wn.tokenize = function(e) {
165
+ var Zn = new J();
166
+ Zn.tokenize = function(e) {
167
167
  return e.split(/(\S.+?[.!?])(?=\s+|$)/);
168
168
  };
169
- var Qn = new J();
170
- Qn.tokenize = function(e) {
169
+ var Yn = new J();
170
+ Yn.tokenize = function(e) {
171
171
  return e.split(/([{}:;,]|\s+)/);
172
172
  };
173
173
  function Te(e) {
@@ -177,7 +177,7 @@ function Te(e) {
177
177
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
178
178
  }, Te(e);
179
179
  }
180
- var Zn = Object.prototype.toString, ue = new J();
180
+ var Xn = Object.prototype.toString, ue = new J();
181
181
  ue.useLongestToken = !0;
182
182
  ue.tokenize = hn.tokenize;
183
183
  ue.castInput = function(e) {
@@ -196,7 +196,7 @@ function ke(e, n, a, u, h) {
196
196
  if (n[t] === e)
197
197
  return a[t];
198
198
  var r;
199
- if (Zn.call(e) === "[object Array]") {
199
+ if (Xn.call(e) === "[object Array]") {
200
200
  for (n.push(e), r = new Array(e.length), a.push(r), t = 0; t < e.length; t += 1)
201
201
  r[t] = ke(e[t], n, a, u, h);
202
202
  return n.pop(), a.pop(), r;
@@ -220,7 +220,7 @@ Be.tokenize = function(e) {
220
220
  Be.join = Be.removeEmpty = function(e) {
221
221
  return e;
222
222
  };
223
- var ce = {}, Yn = {
223
+ var ce = {}, Vn = {
224
224
  get exports() {
225
225
  return ce;
226
226
  },
@@ -246,8 +246,8 @@ var ce = {}, Yn = {
246
246
  t = t.substring(c), r = r.substring(c), c = this.diff_commonSuffix(t, r);
247
247
  var g = t.substring(t.length - c);
248
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;
249
+ var d = this.diff_compute_(t, r, l, o);
250
+ return f && d.unshift(new n.Diff(h, f)), g && d.push(new n.Diff(h, g)), this.diff_cleanupMerge(d), d;
251
251
  }, n.prototype.diff_compute_ = function(t, r, i, s) {
252
252
  var o;
253
253
  if (!t)
@@ -271,7 +271,7 @@ var ce = {}, Yn = {
271
271
  ];
272
272
  var g = this.diff_halfMatch_(t, r);
273
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);
274
+ var d = g[0], p = g[1], _ = g[2], v = g[3], E = g[4], w = this.diff_main(d, _, i, s), m = this.diff_main(p, v, i, s);
275
275
  return w.concat(
276
276
  [new n.Diff(h, E)],
277
277
  m
@@ -283,13 +283,13 @@ var ce = {}, Yn = {
283
283
  t = s.chars1, r = s.chars2;
284
284
  var o = s.lineArray, l = this.diff_main(t, r, !1, i);
285
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; ) {
286
+ for (var c = 0, f = 0, g = 0, d = "", p = ""; c < l.length; ) {
287
287
  switch (l[c][0]) {
288
288
  case u:
289
- g++, d += l[c][1];
289
+ g++, p += l[c][1];
290
290
  break;
291
291
  case a:
292
- f++, p += l[c][1];
292
+ f++, d += l[c][1];
293
293
  break;
294
294
  case h:
295
295
  if (f >= 1 && g >= 1) {
@@ -297,54 +297,54 @@ var ce = {}, Yn = {
297
297
  c - f - g,
298
298
  f + g
299
299
  ), c = c - f - g;
300
- for (var _ = this.diff_main(p, d, !1, i), v = _.length - 1; v >= 0; v--)
300
+ for (var _ = this.diff_main(d, p, !1, i), v = _.length - 1; v >= 0; v--)
301
301
  l.splice(c, 0, _[v]);
302
302
  c = c + _.length;
303
303
  }
304
- g = 0, f = 0, p = "", d = "";
304
+ g = 0, f = 0, d = "", p = "";
305
305
  break;
306
306
  }
307
307
  c++;
308
308
  }
309
309
  return l.pop(), l;
310
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) {
311
+ for (var s = t.length, o = r.length, l = Math.ceil((s + o) / 2), c = l, f = 2 * l, g = new Array(f), d = new Array(f), p = 0; p < f; p++)
312
+ g[p] = -1, d[p] = -1;
313
+ g[c + 1] = 0, d[c + 1] = 0;
314
+ for (var _ = s - o, v = _ % 2 != 0, E = 0, w = 0, m = 0, T = 0, D = 0; D < l && !(new Date().getTime() > i); D++) {
315
+ for (var N = -D + E; N <= D - w; N += 2) {
316
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++;
317
+ N == -D || N != D && g[I - 1] < g[I + 1] ? R = g[I + 1] : R = g[I - 1] + 1;
318
+ for (var H = R - N; R < s && H < o && t.charAt(R) == r.charAt(H); )
319
+ R++, H++;
320
320
  if (g[I] = R, R > s)
321
321
  w += 2;
322
- else if (F > o)
322
+ else if (H > o)
323
323
  E += 2;
324
324
  else if (v) {
325
325
  var U = c + _ - N;
326
- if (U >= 0 && U < f && p[U] != -1) {
327
- var $ = s - p[U];
326
+ if (U >= 0 && U < f && d[U] != -1) {
327
+ var $ = s - d[U];
328
328
  if (R >= $)
329
- return this.diff_bisectSplit_(t, r, R, F, i);
329
+ return this.diff_bisectSplit_(t, r, R, H, i);
330
330
  }
331
331
  }
332
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); )
333
+ for (var F = -D + m; F <= D - T; F += 2) {
334
+ var U = c + F, $;
335
+ F == -D || F != D && d[U - 1] < d[U + 1] ? $ = d[U + 1] : $ = d[U - 1] + 1;
336
+ for (var G = $ - F; $ < s && G < o && t.charAt(s - $ - 1) == r.charAt(o - G - 1); )
337
337
  $++, G++;
338
- if (p[U] = $, $ > s)
338
+ if (d[U] = $, $ > s)
339
339
  T += 2;
340
340
  else if (G > o)
341
341
  m += 2;
342
342
  else if (!v) {
343
- var I = c + _ - H;
343
+ var I = c + _ - F;
344
344
  if (I >= 0 && I < f && g[I] != -1) {
345
- var R = g[I], F = c + R - I;
345
+ var R = g[I], H = c + R - I;
346
346
  if ($ = s - $, R >= $)
347
- return this.diff_bisectSplit_(t, r, R, F, i);
347
+ return this.diff_bisectSplit_(t, r, R, H, i);
348
348
  }
349
349
  }
350
350
  }
@@ -354,19 +354,19 @@ var ce = {}, Yn = {
354
354
  new n.Diff(u, r)
355
355
  ];
356
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);
357
+ var l = t.substring(0, i), c = r.substring(0, s), f = t.substring(i), g = r.substring(s), d = this.diff_main(l, c, !1, o), p = this.diff_main(f, g, !1, o);
358
+ return d.concat(p);
359
359
  }, n.prototype.diff_linesToChars_ = function(t, r) {
360
360
  var i = [], s = {};
361
361
  i[0] = "";
362
362
  function o(g) {
363
- for (var p = "", d = 0, _ = -1, v = i.length; _ < g.length - 1; ) {
363
+ for (var d = "", p = 0, _ = -1, v = i.length; _ < g.length - 1; ) {
364
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;
365
+ `, p), _ == -1 && (_ = g.length - 1);
366
+ var E = g.substring(p, _ + 1);
367
+ (s.hasOwnProperty ? s.hasOwnProperty(E) : s[E] !== void 0) ? d += String.fromCharCode(s[E]) : (v == l && (E = g.substring(p), _ = g.length), d += String.fromCharCode(v), s[E] = v, i[v++] = E), p = _ + 1;
368
368
  }
369
- return p;
369
+ return d;
370
370
  }
371
371
  var l = 4e4, c = o(t);
372
372
  l = 65535;
@@ -412,19 +412,19 @@ var ce = {}, Yn = {
412
412
  return null;
413
413
  var o = this;
414
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(
415
+ for (var D = w.substring(T, T + Math.floor(w.length / 4)), N = -1, I = "", R, H, U, $; (N = m.indexOf(D, N + 1)) != -1; ) {
416
+ var F = o.diff_commonPrefix(
417
417
  w.substring(T),
418
418
  m.substring(N)
419
419
  ), G = o.diff_commonSuffix(
420
420
  w.substring(0, T),
421
421
  m.substring(0, N)
422
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));
423
+ I.length < G + F && (I = m.substring(N - G, N) + m.substring(N, N + F), R = w.substring(0, T - G), H = w.substring(T + F), U = m.substring(0, N - G), $ = m.substring(N + F));
424
424
  }
425
425
  return I.length * 2 >= w.length ? [
426
426
  R,
427
- F,
427
+ H,
428
428
  U,
429
429
  $,
430
430
  I
@@ -442,30 +442,30 @@ var ce = {}, Yn = {
442
442
  if (!c && !f)
443
443
  return null;
444
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]);
445
+ var d, p, _, v;
446
+ t.length > r.length ? (d = g[0], p = g[1], _ = g[2], v = g[3]) : (_ = g[0], v = g[1], d = g[2], p = g[3]);
447
447
  var E = g[4];
448
- return [p, d, _, v, E];
448
+ return [d, p, _, v, E];
449
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(
450
+ for (var r = !1, i = [], s = 0, o = null, l = 0, c = 0, f = 0, g = 0, d = 0; l < t.length; )
451
+ t[l][0] == h ? (i[s++] = l, c = g, f = d, g = 0, d = 0, o = t[l][1]) : (t[l][0] == u ? g += t[l][1].length : d += t[l][1].length, o && o.length <= Math.max(c, f) && o.length <= Math.max(
452
452
  g,
453
- p
453
+ d
454
454
  ) && (t.splice(
455
455
  i[s - 1],
456
456
  0,
457
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++;
458
+ ), t[i[s - 1] + 1][0] = u, s--, s--, l = s > 0 ? i[s - 1] : -1, c = 0, f = 0, g = 0, d = 0, o = null, r = !0)), l++;
459
459
  for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t), l = 1; l < t.length; ) {
460
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(
461
+ var p = t[l - 1][1], _ = t[l][1], v = this.diff_commonOverlap_(p, _), E = this.diff_commonOverlap_(_, p);
462
+ v >= E ? (v >= p.length / 2 || v >= _.length / 2) && (t.splice(l, 0, new n.Diff(
463
463
  h,
464
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(
465
+ )), t[l - 1][1] = p.substring(0, p.length - v), t[l + 1][1] = _.substring(v), l++) : (E >= p.length / 2 || E >= _.length / 2) && (t.splice(l, 0, new n.Diff(
466
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++;
467
+ p.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] = p.substring(E), l++), l++;
469
469
  }
470
470
  l++;
471
471
  }
@@ -473,8 +473,8 @@ var ce = {}, Yn = {
473
473
  function r(E, w) {
474
474
  if (!E || !w)
475
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;
476
+ var m = E.charAt(E.length - 1), T = w.charAt(0), D = m.match(n.nonAlphaNumericRegex_), N = T.match(n.nonAlphaNumericRegex_), I = D && m.match(n.whitespaceRegex_), R = N && T.match(n.whitespaceRegex_), H = I && m.match(n.linebreakRegex_), U = R && T.match(n.linebreakRegex_), $ = H && E.match(n.blanklineEndRegex_), F = U && w.match(n.blanklineStartRegex_);
477
+ return $ || F ? 5 : H || U ? 4 : D && !I && R ? 3 : I || R ? 2 : D || N ? 1 : 0;
478
478
  }
479
479
  for (var i = 1; i < t.length - 1; ) {
480
480
  if (t[i - 1][0] == h && t[i + 1][0] == h) {
@@ -483,22 +483,22 @@ var ce = {}, Yn = {
483
483
  var f = o.substring(o.length - c);
484
484
  s = s.substring(0, s.length - c), o = f + o.substring(0, o.length - c), l = f + l;
485
485
  }
486
- for (var g = s, p = o, d = l, _ = r(s, o) + r(o, l); o.charAt(0) === l.charAt(0); ) {
486
+ for (var g = s, d = o, p = l, _ = r(s, o) + r(o, l); o.charAt(0) === l.charAt(0); ) {
487
487
  s += o.charAt(0), o = o.substring(1) + l.charAt(0), l = l.substring(1);
488
488
  var v = r(s, o) + r(o, l);
489
- v >= _ && (_ = v, g = s, p = o, d = l);
489
+ v >= _ && (_ = v, g = s, d = o, p = l);
490
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--));
491
+ t[i - 1][1] != g && (g ? t[i - 1][1] = g : (t.splice(i - 1, 1), i--), t[i][1] = d, p ? t[i + 1][1] = p : (t.splice(i + 1, 1), i--));
492
492
  }
493
493
  i++;
494
494
  }
495
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(
496
+ for (var r = !1, i = [], s = 0, o = null, l = 0, c = !1, f = !1, g = !1, d = !1; l < t.length; )
497
+ t[l][0] == h ? (t[l][1].length < this.Diff_EditCost && (g || d) ? (i[s++] = l, c = g, f = d, o = t[l][1]) : (s = 0, o = null), g = d = !1) : (t[l][0] == a ? d = !0 : g = !0, o && (c && f && g && d || o.length < this.Diff_EditCost / 2 && c + f + g + d == 3) && (t.splice(
498
498
  i[s - 1],
499
499
  0,
500
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++;
501
+ ), t[i[s - 1] + 1][0] = u, s--, o = null, c && f ? (g = d = !0, s = 0) : (s--, l = s > 0 ? i[s - 1] : -1, g = d = !1), r = !0)), l++;
502
502
  r && this.diff_cleanupMerge(t);
503
503
  }, n.prototype.diff_cleanupMerge = function(t) {
504
504
  t.push(new n.Diff(h, ""));
@@ -537,16 +537,16 @@ var ce = {}, Yn = {
537
537
  return t.length != c && t[c][0] === a ? l : l + (r - o);
538
538
  }, n.prototype.diff_prettyHtml = function(t) {
539
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>");
540
+ var f = t[c][0], g = t[c][1], d = g.replace(i, "&amp;").replace(s, "&lt;").replace(o, "&gt;").replace(l, "&para;<br>");
541
541
  switch (f) {
542
542
  case u:
543
- r[c] = '<ins style="background:#e6ffe6;">' + p + "</ins>";
543
+ r[c] = '<ins style="background:#e6ffe6;">' + d + "</ins>";
544
544
  break;
545
545
  case a:
546
- r[c] = '<del style="background:#ffe6e6;">' + p + "</del>";
546
+ r[c] = '<del style="background:#ffe6e6;">' + d + "</del>";
547
547
  break;
548
548
  case h:
549
- r[c] = "<span>" + p + "</span>";
549
+ r[c] = "<span>" + d + "</span>";
550
550
  break;
551
551
  }
552
552
  }
@@ -596,7 +596,7 @@ var ce = {}, Yn = {
596
596
  case "+":
597
597
  try {
598
598
  i[s++] = new n.Diff(u, decodeURI(f));
599
- } catch (d) {
599
+ } catch (p) {
600
600
  throw new Error("Illegal escape in diff_fromDelta: " + f);
601
601
  }
602
602
  break;
@@ -605,8 +605,8 @@ var ce = {}, Yn = {
605
605
  var g = parseInt(f, 10);
606
606
  if (isNaN(g) || g < 0)
607
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);
608
+ var d = t.substring(o, o += g);
609
+ l[c].charAt(0) == "=" ? i[s++] = new n.Diff(h, d) : i[s++] = new n.Diff(a, d);
610
610
  break;
611
611
  default:
612
612
  if (l[c])
@@ -624,26 +624,26 @@ var ce = {}, Yn = {
624
624
  if (r.length > this.Match_MaxBits)
625
625
  throw new Error("Pattern too long for this browser.");
626
626
  var s = this.match_alphabet_(r), o = this;
627
- function l(R, F) {
628
- var U = R / r.length, $ = Math.abs(i - F);
627
+ function l(R, H) {
628
+ var U = R / r.length, $ = Math.abs(i - H);
629
629
  return o.Match_Distance ? U + $ / o.Match_Distance : $ ? 1 : U;
630
630
  }
631
631
  var c = this.Match_Threshold, f = t.indexOf(r, i);
632
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
633
  var g = 1 << r.length - 1;
634
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);
635
+ for (var d, p, _ = r.length + t.length, v, E = 0; E < r.length; E++) {
636
+ for (d = 0, p = _; d < p; )
637
+ l(E, i + p) <= c ? d = p : _ = p, p = Math.floor((_ - d) / 2 + d);
638
+ _ = p;
639
+ var w = Math.max(1, i - p + 1), m = Math.min(i + p, t.length) + r.length, T = Array(m + 2);
640
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);
641
+ for (var D = m; D >= w; D--) {
642
+ var N = s[t.charAt(D - 1)];
643
+ if (E === 0 ? T[D] = (T[D + 1] << 1 | 1) & N : T[D] = (T[D + 1] << 1 | 1) & N | ((v[D + 1] | v[D]) << 1 | 1) | v[D + 1], T[D] & g) {
644
+ var I = l(E, D - 1);
645
645
  if (I <= c)
646
- if (c = I, f = S - 1, f > i)
646
+ if (c = I, f = D - 1, f > i)
647
647
  w = Math.max(1, 2 * i - f);
648
648
  else
649
649
  break;
@@ -703,22 +703,22 @@ var ce = {}, Yn = {
703
703
  throw new Error("Unknown call format to patch_make.");
704
704
  if (o.length === 0)
705
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++) {
706
+ for (var l = [], c = new n.patch_obj(), f = 0, g = 0, d = 0, p = s, _ = s, v = 0; v < o.length; v++) {
707
707
  var E = o[v][0], w = o[v][1];
708
- switch (!f && E !== h && (c.start1 = g, c.start2 = p), E) {
708
+ switch (!f && E !== h && (c.start1 = g, c.start2 = d), E) {
709
709
  case u:
710
- c.diffs[f++] = o[v], c.length2 += w.length, _ = _.substring(0, p) + w + _.substring(p);
710
+ c.diffs[f++] = o[v], c.length2 += w.length, _ = _.substring(0, d) + w + _.substring(d);
711
711
  break;
712
712
  case a:
713
- c.length1 += w.length, c.diffs[f++] = o[v], _ = _.substring(0, p) + _.substring(p + w.length);
713
+ c.length1 += w.length, c.diffs[f++] = o[v], _ = _.substring(0, d) + _.substring(d + w.length);
714
714
  break;
715
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);
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, p), l.push(c), c = new n.patch_obj(), f = 0, p = _, g = d);
717
717
  break;
718
718
  }
719
- E !== u && (g += w.length), E !== a && (p += w.length);
719
+ E !== u && (g += w.length), E !== a && (d += w.length);
720
720
  }
721
- return f && (this.patch_addContext_(c, d), l.push(c)), l;
721
+ return f && (this.patch_addContext_(c, p), l.push(c)), l;
722
722
  }, n.prototype.patch_deepCopy = function(t) {
723
723
  for (var r = [], i = 0; i < t.length; i++) {
724
724
  var s = t[i], o = new n.patch_obj();
@@ -735,24 +735,24 @@ var ce = {}, Yn = {
735
735
  var i = this.patch_addPadding(t);
736
736
  r = i + r + i, this.patch_splitMax(t);
737
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;
738
+ var c = t[l].start2 + s, f = this.diff_text1(t[l].diffs), g, d = -1;
739
739
  if (f.length > this.Match_MaxBits ? (g = this.match_main(
740
740
  r,
741
741
  f.substring(0, this.Match_MaxBits),
742
742
  c
743
- ), g != -1 && (p = this.match_main(
743
+ ), g != -1 && (d = this.match_main(
744
744
  r,
745
745
  f.substring(f.length - this.Match_MaxBits),
746
746
  c + f.length - this.Match_MaxBits
747
- ), (p == -1 || g >= p) && (g = -1))) : g = this.match_main(r, f, c), g == -1)
747
+ ), (d == -1 || g >= d) && (g = -1))) : g = this.match_main(r, f, c), g == -1)
748
748
  o[l] = !1, s -= t[l].length2 - t[l].length1;
749
749
  else {
750
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)
751
+ var p;
752
+ if (d == -1 ? p = r.substring(g, g + f.length) : p = r.substring(g, d + this.Match_MaxBits), f == p)
753
753
  r = r.substring(0, g) + this.diff_text2(t[l].diffs) + r.substring(g + f.length);
754
754
  else {
755
- var _ = this.diff_main(f, d, !1);
755
+ var _ = this.diff_main(f, p, !1);
756
756
  if (f.length > this.Match_MaxBits && this.diff_levenshtein(_) / f.length > this.Patch_DeleteThreshold)
757
757
  o[l] = !1;
758
758
  else {
@@ -796,11 +796,11 @@ var ce = {}, Yn = {
796
796
  for (var o = s.start1, l = s.start2, c = ""; s.diffs.length !== 0; ) {
797
797
  var f = new n.patch_obj(), g = !0;
798
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(
799
+ var d = s.diffs[0][0], p = s.diffs[0][1];
800
+ d === u ? (f.length2 += p.length, l += p.length, f.diffs.push(s.diffs.shift()), g = !1) : d === a && f.diffs.length == 1 && f.diffs[0][0] == h && p.length > 2 * r ? (f.length1 += p.length, o += p.length, g = !1, f.diffs.push(new n.Diff(d, p)), s.diffs.shift()) : (p = p.substring(
801
801
  0,
802
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));
803
+ ), f.length1 += p.length, o += p.length, d === h ? (f.length2 += p.length, l += p.length) : g = !1, f.diffs.push(new n.Diff(d, p)), p == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(p.length));
804
804
  }
805
805
  c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
806
806
  var _ = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
@@ -825,7 +825,7 @@ var ce = {}, Yn = {
825
825
  var f = i[s].charAt(0);
826
826
  try {
827
827
  var g = decodeURI(i[s].substring(1));
828
- } catch (p) {
828
+ } catch (d) {
829
829
  throw new Error("Illegal escape in patch_fromText: " + g);
830
830
  }
831
831
  if (f == "-")
@@ -867,7 +867,7 @@ var ce = {}, Yn = {
867
867
  }
868
868
  return i.join("").replace(/%20/g, " ");
869
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);
870
+ })(Vn);
871
871
  var Pe = { exports: {} };
872
872
  function xe(e) {
873
873
  return e instanceof Map ? e.clear = e.delete = e.set = function() {
@@ -905,7 +905,7 @@ function te(e, ...n) {
905
905
  }), /** @type {T} */
906
906
  a;
907
907
  }
908
- const Xn = "</span>", Je = (e) => !!e.scope || e.sublanguage && e.language, Vn = (e, { prefix: n }) => {
908
+ const jn = "</span>", Je = (e) => !!e.scope || e.sublanguage && e.language, qn = (e, { prefix: n }) => {
909
909
  if (e.includes(".")) {
910
910
  const a = e.split(".");
911
911
  return [
@@ -915,7 +915,7 @@ const Xn = "</span>", Je = (e) => !!e.scope || e.sublanguage && e.language, Vn =
915
915
  }
916
916
  return `${n}${e}`;
917
917
  };
918
- class jn {
918
+ class Jn {
919
919
  /**
920
920
  * Creates a new HTMLRenderer
921
921
  *
@@ -940,14 +940,14 @@ class jn {
940
940
  if (!Je(n))
941
941
  return;
942
942
  let a = "";
943
- n.sublanguage ? a = `language-${n.language}` : a = Vn(n.scope, { prefix: this.classPrefix }), this.span(a);
943
+ n.sublanguage ? a = `language-${n.language}` : a = qn(n.scope, { prefix: this.classPrefix }), this.span(a);
944
944
  }
945
945
  /**
946
946
  * Adds a node close to the output stream (if needed)
947
947
  *
948
948
  * @param {Node} node */
949
949
  closeNode(n) {
950
- Je(n) && (this.buffer += Xn);
950
+ Je(n) && (this.buffer += jn);
951
951
  }
952
952
  /**
953
953
  * returns the accumulated buffer
@@ -968,7 +968,7 @@ const en = (e = {}) => {
968
968
  const n = { children: [] };
969
969
  return Object.assign(n, e), n;
970
970
  };
971
- class Fe {
971
+ class He {
972
972
  constructor() {
973
973
  this.rootNode = en(), this.stack = [this.rootNode];
974
974
  }
@@ -1017,11 +1017,11 @@ class Fe {
1017
1017
  */
1018
1018
  static _collapse(n) {
1019
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);
1020
+ He._collapse(a);
1021
1021
  }));
1022
1022
  }
1023
1023
  }
1024
- class qn extends Fe {
1024
+ class et extends He {
1025
1025
  /**
1026
1026
  * @param {*} options
1027
1027
  */
@@ -1050,7 +1050,7 @@ class qn extends Fe {
1050
1050
  u.sublanguage = !0, u.language = a, this.add(u);
1051
1051
  }
1052
1052
  toHTML() {
1053
- return new jn(this, this.options).value();
1053
+ return new Jn(this, this.options).value();
1054
1054
  }
1055
1055
  finalize() {
1056
1056
  return !0;
@@ -1062,30 +1062,30 @@ function fe(e) {
1062
1062
  function pn(e) {
1063
1063
  return se("(?=", e, ")");
1064
1064
  }
1065
- function Jn(e) {
1065
+ function nt(e) {
1066
1066
  return se("(?:", e, ")*");
1067
1067
  }
1068
- function et(e) {
1068
+ function tt(e) {
1069
1069
  return se("(?:", e, ")?");
1070
1070
  }
1071
1071
  function se(...e) {
1072
1072
  return e.map((a) => fe(a)).join("");
1073
1073
  }
1074
- function nt(e) {
1074
+ function rt(e) {
1075
1075
  const n = e[e.length - 1];
1076
1076
  return typeof n == "object" && n.constructor === Object ? (e.splice(e.length - 1, 1), n) : {};
1077
1077
  }
1078
- function He(...e) {
1079
- return "(" + (nt(e).capture ? "" : "?:") + e.map((u) => fe(u)).join("|") + ")";
1078
+ function Fe(...e) {
1079
+ return "(" + (rt(e).capture ? "" : "?:") + e.map((u) => fe(u)).join("|") + ")";
1080
1080
  }
1081
1081
  function _n(e) {
1082
1082
  return new RegExp(e.toString() + "|").exec("").length - 1;
1083
1083
  }
1084
- function tt(e, n) {
1084
+ function it(e, n) {
1085
1085
  const a = e && e.exec(n);
1086
1086
  return a && a.index === 0;
1087
1087
  }
1088
- const rt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1088
+ const st = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1089
1089
  function ze(e, { joinWith: n }) {
1090
1090
  let a = 0;
1091
1091
  return e.map((u) => {
@@ -1093,7 +1093,7 @@ function ze(e, { joinWith: n }) {
1093
1093
  const h = a;
1094
1094
  let t = fe(u), r = "";
1095
1095
  for (; t.length > 0; ) {
1096
- const i = rt.exec(t);
1096
+ const i = st.exec(t);
1097
1097
  if (!i) {
1098
1098
  r += t;
1099
1099
  break;
@@ -1103,7 +1103,7 @@ function ze(e, { joinWith: n }) {
1103
1103
  return r;
1104
1104
  }).map((u) => `(${u})`).join(n);
1105
1105
  }
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 = {}) => {
1106
+ const at = /\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]+)", ot = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", lt = (e = {}) => {
1107
1107
  const n = /^#![ ]*\//;
1108
1108
  return e.binary && (e.begin = se(
1109
1109
  n,
@@ -1123,19 +1123,19 @@ const it = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
1123
1123
  }, ge = {
1124
1124
  begin: "\\\\[\\s\\S]",
1125
1125
  relevance: 0
1126
- }, ot = {
1126
+ }, ct = {
1127
1127
  scope: "string",
1128
1128
  begin: "'",
1129
1129
  end: "'",
1130
1130
  illegal: "\\n",
1131
1131
  contains: [ge]
1132
- }, lt = {
1132
+ }, ut = {
1133
1133
  scope: "string",
1134
1134
  begin: '"',
1135
1135
  end: '"',
1136
1136
  illegal: "\\n",
1137
1137
  contains: [ge]
1138
- }, ct = {
1138
+ }, ft = {
1139
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/
1140
1140
  }, Re = function(e, n, a = {}) {
1141
1141
  const u = te(
@@ -1156,7 +1156,7 @@ const it = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
1156
1156
  excludeBegin: !0,
1157
1157
  relevance: 0
1158
1158
  });
1159
- const h = He(
1159
+ const h = Fe(
1160
1160
  // list of common 1 and 2 letter words in English
1161
1161
  "I",
1162
1162
  "a",
@@ -1203,19 +1203,19 @@ const it = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
1203
1203
  // look for 3 words in a row
1204
1204
  }
1205
1205
  ), u;
1206
- }, ut = Re("//", "$"), ft = Re("/\\*", "\\*/"), gt = Re("#", "$"), ht = {
1206
+ }, gt = Re("//", "$"), ht = Re("/\\*", "\\*/"), dt = Re("#", "$"), pt = {
1207
1207
  scope: "number",
1208
1208
  begin: vn,
1209
1209
  relevance: 0
1210
- }, dt = {
1210
+ }, _t = {
1211
1211
  scope: "number",
1212
1212
  begin: En,
1213
1213
  relevance: 0
1214
- }, pt = {
1214
+ }, bt = {
1215
1215
  scope: "number",
1216
1216
  begin: mn,
1217
1217
  relevance: 0
1218
- }, _t = {
1218
+ }, vt = {
1219
1219
  // this outer rule makes sure we actually have a WHOLE regex and not simply
1220
1220
  // an expression such as:
1221
1221
  //
@@ -1238,19 +1238,19 @@ const it = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
1238
1238
  }
1239
1239
  ]
1240
1240
  }]
1241
- }, bt = {
1241
+ }, Et = {
1242
1242
  scope: "title",
1243
1243
  begin: bn,
1244
1244
  relevance: 0
1245
- }, vt = {
1245
+ }, mt = {
1246
1246
  scope: "title",
1247
1247
  begin: Ge,
1248
1248
  relevance: 0
1249
- }, Et = {
1249
+ }, yt = {
1250
1250
  // excludes method names from keyword processing
1251
1251
  begin: "\\.\\s*" + Ge,
1252
1252
  relevance: 0
1253
- }, mt = function(e) {
1253
+ }, wt = function(e) {
1254
1254
  return Object.assign(
1255
1255
  e,
1256
1256
  {
@@ -1267,54 +1267,54 @@ const it = /\b\B/, bn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
1267
1267
  };
1268
1268
  var Me = /* @__PURE__ */ Object.freeze({
1269
1269
  __proto__: null,
1270
- MATCH_NOTHING_RE: it,
1270
+ MATCH_NOTHING_RE: at,
1271
1271
  IDENT_RE: bn,
1272
1272
  UNDERSCORE_IDENT_RE: Ge,
1273
1273
  NUMBER_RE: vn,
1274
1274
  C_NUMBER_RE: En,
1275
1275
  BINARY_NUMBER_RE: mn,
1276
- RE_STARTERS_RE: st,
1277
- SHEBANG: at,
1276
+ RE_STARTERS_RE: ot,
1277
+ SHEBANG: lt,
1278
1278
  BACKSLASH_ESCAPE: ge,
1279
- APOS_STRING_MODE: ot,
1280
- QUOTE_STRING_MODE: lt,
1281
- PHRASAL_WORDS_MODE: ct,
1279
+ APOS_STRING_MODE: ct,
1280
+ QUOTE_STRING_MODE: ut,
1281
+ PHRASAL_WORDS_MODE: ft,
1282
1282
  COMMENT: Re,
1283
- C_LINE_COMMENT_MODE: ut,
1284
- C_BLOCK_COMMENT_MODE: ft,
1285
- HASH_COMMENT_MODE: gt,
1286
- NUMBER_MODE: ht,
1287
- C_NUMBER_MODE: dt,
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
1283
+ C_LINE_COMMENT_MODE: gt,
1284
+ C_BLOCK_COMMENT_MODE: ht,
1285
+ HASH_COMMENT_MODE: dt,
1286
+ NUMBER_MODE: pt,
1287
+ C_NUMBER_MODE: _t,
1288
+ BINARY_NUMBER_MODE: bt,
1289
+ REGEXP_MODE: vt,
1290
+ TITLE_MODE: Et,
1291
+ UNDERSCORE_TITLE_MODE: mt,
1292
+ METHOD_GUARD: yt,
1293
+ END_SAME_AS_BEGIN: wt
1294
1294
  });
1295
- function yt(e, n) {
1295
+ function Mt(e, n) {
1296
1296
  e.input[e.index - 1] === "." && n.ignoreMatch();
1297
1297
  }
1298
- function wt(e, n) {
1298
+ function Nt(e, n) {
1299
1299
  e.className !== void 0 && (e.scope = e.className, delete e.className);
1300
1300
  }
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));
1301
+ function At(e, n) {
1302
+ 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));
1303
1303
  }
1304
- function Nt(e, n) {
1305
- Array.isArray(e.illegal) && (e.illegal = He(...e.illegal));
1304
+ function Tt(e, n) {
1305
+ Array.isArray(e.illegal) && (e.illegal = Fe(...e.illegal));
1306
1306
  }
1307
- function At(e, n) {
1307
+ function Dt(e, n) {
1308
1308
  if (e.match) {
1309
1309
  if (e.begin || e.end)
1310
1310
  throw new Error("begin & end are not supported with match");
1311
1311
  e.begin = e.match, delete e.match;
1312
1312
  }
1313
1313
  }
1314
- function Tt(e, n) {
1314
+ function St(e, n) {
1315
1315
  e.relevance === void 0 && (e.relevance = 1);
1316
1316
  }
1317
- const St = (e, n) => {
1317
+ const Rt = (e, n) => {
1318
1318
  if (!e.beforeMatch)
1319
1319
  return;
1320
1320
  if (e.starts)
@@ -1328,7 +1328,7 @@ const St = (e, n) => {
1328
1328
  Object.assign(a, { endsParent: !0 })
1329
1329
  ]
1330
1330
  }, e.relevance = 0, delete a.beforeMatch;
1331
- }, Dt = [
1331
+ }, Ot = [
1332
1332
  "of",
1333
1333
  "and",
1334
1334
  "for",
@@ -1343,8 +1343,8 @@ const St = (e, n) => {
1343
1343
  // common variable name
1344
1344
  "value"
1345
1345
  // common variable name
1346
- ], Rt = "keyword";
1347
- function yn(e, n, a = Rt) {
1346
+ ], Ct = "keyword";
1347
+ function yn(e, n, a = Ct) {
1348
1348
  const u = /* @__PURE__ */ Object.create(null);
1349
1349
  return typeof e == "string" ? h(a, e.split(" ")) : Array.isArray(e) ? h(a, e) : Object.keys(e).forEach(function(t) {
1350
1350
  Object.assign(
@@ -1355,15 +1355,15 @@ function yn(e, n, a = Rt) {
1355
1355
  function h(t, r) {
1356
1356
  n && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
1357
1357
  const s = i.split("|");
1358
- u[s[0]] = [t, Ot(s[0], s[1])];
1358
+ u[s[0]] = [t, Lt(s[0], s[1])];
1359
1359
  });
1360
1360
  }
1361
1361
  }
1362
- function Ot(e, n) {
1363
- return n ? Number(n) : Ct(e) ? 0 : 1;
1362
+ function Lt(e, n) {
1363
+ return n ? Number(n) : It(e) ? 0 : 1;
1364
1364
  }
1365
- function Ct(e) {
1366
- return Dt.includes(e.toLowerCase());
1365
+ function It(e) {
1366
+ return Ot.includes(e.toLowerCase());
1367
1367
  }
1368
1368
  const nn = {}, ie = (e) => {
1369
1369
  console.error(e);
@@ -1371,7 +1371,7 @@ const nn = {}, ie = (e) => {
1371
1371
  console.log(`WARN: ${e}`, ...n);
1372
1372
  }, ae = (e, n) => {
1373
1373
  nn[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), nn[`${e}/${n}`] = !0);
1374
- }, Se = new Error();
1374
+ }, De = new Error();
1375
1375
  function wn(e, n, { key: a }) {
1376
1376
  let u = 0;
1377
1377
  const h = e[a], t = {}, r = {};
@@ -1379,31 +1379,31 @@ function wn(e, n, { key: a }) {
1379
1379
  r[i + u] = h[i], t[i + u] = !0, u += _n(n[i - 1]);
1380
1380
  e[a] = r, e[a]._emit = t, e[a]._multi = !0;
1381
1381
  }
1382
- function Lt(e) {
1382
+ function kt(e) {
1383
1383
  if (Array.isArray(e.begin)) {
1384
1384
  if (e.skip || e.excludeBegin || e.returnBegin)
1385
- throw ie("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Se;
1385
+ throw ie("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), De;
1386
1386
  if (typeof e.beginScope != "object" || e.beginScope === null)
1387
- throw ie("beginScope must be object"), Se;
1387
+ throw ie("beginScope must be object"), De;
1388
1388
  wn(e, e.begin, { key: "beginScope" }), e.begin = ze(e.begin, { joinWith: "" });
1389
1389
  }
1390
1390
  }
1391
- function It(e) {
1391
+ function Bt(e) {
1392
1392
  if (Array.isArray(e.end)) {
1393
1393
  if (e.skip || e.excludeEnd || e.returnEnd)
1394
- throw ie("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Se;
1394
+ throw ie("skip, excludeEnd, returnEnd not compatible with endScope: {}"), De;
1395
1395
  if (typeof e.endScope != "object" || e.endScope === null)
1396
- throw ie("endScope must be object"), Se;
1396
+ throw ie("endScope must be object"), De;
1397
1397
  wn(e, e.end, { key: "endScope" }), e.end = ze(e.end, { joinWith: "" });
1398
1398
  }
1399
1399
  }
1400
- function kt(e) {
1400
+ function $t(e) {
1401
1401
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
1402
1402
  }
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);
1403
+ function Ut(e) {
1404
+ $t(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), kt(e), Bt(e);
1405
1405
  }
1406
- function $t(e) {
1406
+ function Pt(e) {
1407
1407
  function n(r, i) {
1408
1408
  return new RegExp(
1409
1409
  fe(r),
@@ -1478,26 +1478,26 @@ function $t(e) {
1478
1478
  if (r.isCompiled)
1479
1479
  return s;
1480
1480
  [
1481
- wt,
1481
+ Nt,
1482
1482
  // do this early so compiler extensions generally don't have to worry about
1483
1483
  // the distinction between match/begin
1484
- At,
1485
- Bt,
1486
- St
1484
+ Dt,
1485
+ Ut,
1486
+ Rt
1487
1487
  ].forEach((l) => l(r, i)), e.compilerExtensions.forEach((l) => l(r, i)), r.__beforeBegin = null, [
1488
- Mt,
1488
+ At,
1489
1489
  // do this later so compiler extensions that come earlier have access to the
1490
1490
  // raw array if they wanted to perhaps manipulate it, etc.
1491
- Nt,
1491
+ Tt,
1492
1492
  // default to 1 relevance if not specified
1493
- Tt
1493
+ St
1494
1494
  ].forEach((l) => l(r, i)), r.isCompiled = !0;
1495
1495
  let o = null;
1496
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(
1497
1497
  /** @type {RegExp | string} */
1498
1498
  r.illegal
1499
1499
  )), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(l) {
1500
- return Ut(l === "self" ? r : l);
1500
+ return xt(l === "self" ? r : l);
1501
1501
  })), r.contains.forEach(function(l) {
1502
1502
  t(
1503
1503
  /** @type Mode */
@@ -1516,18 +1516,18 @@ function $t(e) {
1516
1516
  function Mn(e) {
1517
1517
  return e ? e.endsWithParent || Mn(e.starts) : !1;
1518
1518
  }
1519
- function Ut(e) {
1519
+ function xt(e) {
1520
1520
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
1521
1521
  return te(e, { variants: null }, n);
1522
1522
  })), e.cachedVariants ? e.cachedVariants : Mn(e) ? te(e, { starts: e.starts ? te(e.starts) : null }) : Object.isFrozen(e) ? te(e) : e;
1523
1523
  }
1524
- var Pt = "11.7.0";
1525
- class xt extends Error {
1524
+ var Ht = "11.7.0";
1525
+ class Ft extends Error {
1526
1526
  constructor(n, a) {
1527
1527
  super(n), this.name = "HTMLInjectionError", this.html = a;
1528
1528
  }
1529
1529
  }
1530
- const Ie = dn, rn = te, sn = Symbol("nomatch"), Ft = 7, Ht = function(e) {
1530
+ const Ie = dn, rn = te, sn = Symbol("nomatch"), zt = 7, Gt = function(e) {
1531
1531
  const n = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null), u = [];
1532
1532
  let h = !0;
1533
1533
  const t = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -1541,7 +1541,7 @@ const Ie = dn, rn = te, sn = Symbol("nomatch"), Ft = 7, Ht = function(e) {
1541
1541
  languages: null,
1542
1542
  // beta configuration options, subject to change, welcome to discuss
1543
1543
  // https://github.com/highlightjs/highlight.js/issues/1086
1544
- __emitter: qn
1544
+ __emitter: et
1545
1545
  };
1546
1546
  function s(b) {
1547
1547
  return i.noHighlightRe.test(b);
@@ -1586,7 +1586,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1586
1586
  const B = ne.case_insensitive ? A[0].toLowerCase() : A[0], K = W(O, B);
1587
1587
  if (K) {
1588
1588
  const [V, Bn] = K;
1589
- if (z.addText(L), L = "", x[B] = (x[B] || 0) + 1, x[B] <= Ft && (ye += Bn), V.startsWith("_"))
1589
+ if (z.addText(L), L = "", x[B] = (x[B] || 0) + 1, x[B] <= zt && (ye += Bn), V.startsWith("_"))
1590
1590
  L += A[0];
1591
1591
  else {
1592
1592
  const $n = ne.classNameAliases[V] || V;
@@ -1632,7 +1632,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1632
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;
1633
1633
  }
1634
1634
  function Ze(y, A, L) {
1635
- let B = tt(y.endRe, L);
1635
+ let B = it(y.endRe, L);
1636
1636
  if (B) {
1637
1637
  if (y["on:end"]) {
1638
1638
  const K = new qe(y);
@@ -1705,7 +1705,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1705
1705
  const ne = R(b);
1706
1706
  if (!ne)
1707
1707
  throw ie(t.replace("{}", b)), new Error('Unknown language: "' + b + '"');
1708
- const kn = $t(ne);
1708
+ const kn = Pt(ne);
1709
1709
  let Oe = "", O = k || kn;
1710
1710
  const Xe = {}, z = new i.__emitter(i);
1711
1711
  In();
@@ -1785,11 +1785,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1785
1785
  }), [W, X] = x, Ee = W;
1786
1786
  return Ee.secondBest = X, Ee;
1787
1787
  }
1788
- function p(b, M, C) {
1788
+ function d(b, M, C) {
1789
1789
  const k = M && a[M] || C;
1790
1790
  b.classList.add("hljs"), b.classList.add(`language-${k}`);
1791
1791
  }
1792
- function d(b) {
1792
+ function p(b) {
1793
1793
  let M = null;
1794
1794
  const C = o(b);
1795
1795
  if (s(C))
@@ -1798,13 +1798,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1798
1798
  "before:highlightElement",
1799
1799
  { el: b, language: C }
1800
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(
1801
+ throw new Ft(
1802
1802
  "One of your code blocks includes unescaped HTML.",
1803
1803
  b.innerHTML
1804
1804
  );
1805
1805
  M = b;
1806
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 = {
1807
+ b.innerHTML = x.value, d(b, C, x.language), b.result = {
1808
1808
  language: x.language,
1809
1809
  // TODO: remove with version 11.0
1810
1810
  re: x.relevance,
@@ -1829,13 +1829,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1829
1829
  w = !0;
1830
1830
  return;
1831
1831
  }
1832
- document.querySelectorAll(i.cssSelector).forEach(d);
1832
+ document.querySelectorAll(i.cssSelector).forEach(p);
1833
1833
  }
1834
1834
  function T() {
1835
1835
  w && m();
1836
1836
  }
1837
1837
  typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", T, !1);
1838
- function S(b, M) {
1838
+ function D(b, M) {
1839
1839
  let C = null;
1840
1840
  try {
1841
1841
  C = M(e);
@@ -1846,7 +1846,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1846
1846
  throw k;
1847
1847
  C = r;
1848
1848
  }
1849
- C.name || (C.name = b), n[b] = C, C.rawDefinition = M.bind(null, e), C.aliases && F(C.aliases, { languageName: b });
1849
+ C.name || (C.name = b), n[b] = C, C.rawDefinition = M.bind(null, e), C.aliases && H(C.aliases, { languageName: b });
1850
1850
  }
1851
1851
  function N(b) {
1852
1852
  delete n[b];
@@ -1859,7 +1859,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1859
1859
  function R(b) {
1860
1860
  return b = (b || "").toLowerCase(), n[b] || n[a[b]];
1861
1861
  }
1862
- function F(b, { languageName: M }) {
1862
+ function H(b, { languageName: M }) {
1863
1863
  typeof b == "string" && (b = [b]), b.forEach((C) => {
1864
1864
  a[C.toLowerCase()] = M;
1865
1865
  });
@@ -1879,7 +1879,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1879
1879
  );
1880
1880
  });
1881
1881
  }
1882
- function H(b) {
1882
+ function F(b) {
1883
1883
  $(b), u.push(b);
1884
1884
  }
1885
1885
  function G(b, M) {
@@ -1889,46 +1889,46 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = M), C ===
1889
1889
  });
1890
1890
  }
1891
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);
1892
+ return ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), ae("10.7.0", "Please use highlightElement now."), p(b);
1893
1893
  }
1894
1894
  Object.assign(e, {
1895
1895
  highlight: l,
1896
1896
  highlightAuto: g,
1897
1897
  highlightAll: m,
1898
- highlightElement: d,
1898
+ highlightElement: p,
1899
1899
  // TODO: Remove with v12 API
1900
1900
  highlightBlock: ve,
1901
1901
  configure: _,
1902
1902
  initHighlighting: v,
1903
1903
  initHighlightingOnLoad: E,
1904
- registerLanguage: S,
1904
+ registerLanguage: D,
1905
1905
  unregisterLanguage: N,
1906
1906
  listLanguages: I,
1907
1907
  getLanguage: R,
1908
- registerAliases: F,
1908
+ registerAliases: H,
1909
1909
  autoDetection: U,
1910
1910
  inherit: rn,
1911
- addPlugin: H
1911
+ addPlugin: F
1912
1912
  }), e.debugMode = function() {
1913
1913
  h = !1;
1914
1914
  }, e.safeMode = function() {
1915
1915
  h = !0;
1916
- }, e.versionString = Pt, e.regex = {
1916
+ }, e.versionString = Ht, e.regex = {
1917
1917
  concat: se,
1918
1918
  lookahead: pn,
1919
- either: He,
1920
- optional: et,
1921
- anyNumberOfTimes: Jn
1919
+ either: Fe,
1920
+ optional: tt,
1921
+ anyNumberOfTimes: nt
1922
1922
  };
1923
1923
  for (const b in Me)
1924
1924
  typeof Me[b] == "object" && Pe.exports(Me[b]);
1925
1925
  return Object.assign(e, Me), e;
1926
1926
  };
1927
- var he = Ht({}), zt = he;
1927
+ var he = Gt({}), Kt = he;
1928
1928
  he.HighlightJS = he;
1929
1929
  he.default = he;
1930
- const Y = zt;
1931
- function Gt(e) {
1930
+ const Y = Kt;
1931
+ function Wt(e) {
1932
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 = {
1933
1933
  className: "symbol",
1934
1934
  begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
@@ -2144,7 +2144,7 @@ function Gt(e) {
2144
2144
  ]
2145
2145
  };
2146
2146
  }
2147
- const an = "[A-Za-z$_][0-9A-Za-z$_]*", Kt = [
2147
+ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Qt = [
2148
2148
  "as",
2149
2149
  // for exports
2150
2150
  "in",
@@ -2187,7 +2187,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Kt = [
2187
2187
  "from",
2188
2188
  "export",
2189
2189
  "extends"
2190
- ], Wt = [
2190
+ ], Zt = [
2191
2191
  "true",
2192
2192
  "false",
2193
2193
  "null",
@@ -2271,7 +2271,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Kt = [
2271
2271
  "encodeURIComponent",
2272
2272
  "escape",
2273
2273
  "unescape"
2274
- ], Qt = [
2274
+ ], Yt = [
2275
2275
  "arguments",
2276
2276
  "this",
2277
2277
  "super",
@@ -2282,12 +2282,12 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Kt = [
2282
2282
  "module",
2283
2283
  "global"
2284
2284
  // Node.js
2285
- ], Zt = [].concat(
2285
+ ], Xt = [].concat(
2286
2286
  Tn,
2287
2287
  Nn,
2288
2288
  An
2289
2289
  );
2290
- function Yt(e) {
2290
+ function Vt(e) {
2291
2291
  const n = e.regex, a = (M, { after: C }) => {
2292
2292
  const k = "</" + M[0].slice(1);
2293
2293
  return M.input.indexOf(k, C) !== -1;
@@ -2328,10 +2328,10 @@ function Yt(e) {
2328
2328
  }
2329
2329
  }, i = {
2330
2330
  $pattern: an,
2331
- keyword: Kt,
2332
- literal: Wt,
2333
- built_in: Zt,
2334
- "variable.language": Qt
2331
+ keyword: Qt,
2332
+ literal: Zt,
2333
+ built_in: Xt,
2334
+ "variable.language": Yt
2335
2335
  }, s = "[0-9](_?[0-9])*", o = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
2336
2336
  className: "number",
2337
2337
  variants: [
@@ -2368,7 +2368,7 @@ function Yt(e) {
2368
2368
  ],
2369
2369
  subLanguage: "xml"
2370
2370
  }
2371
- }, p = {
2371
+ }, d = {
2372
2372
  begin: "css`",
2373
2373
  end: "",
2374
2374
  starts: {
@@ -2380,7 +2380,7 @@ function Yt(e) {
2380
2380
  ],
2381
2381
  subLanguage: "css"
2382
2382
  }
2383
- }, d = {
2383
+ }, p = {
2384
2384
  className: "string",
2385
2385
  begin: "`",
2386
2386
  end: "`",
@@ -2437,8 +2437,8 @@ function Yt(e) {
2437
2437
  e.APOS_STRING_MODE,
2438
2438
  e.QUOTE_STRING_MODE,
2439
2439
  g,
2440
- p,
2441
2440
  d,
2441
+ p,
2442
2442
  // Skip numbers when they are part of a variable name
2443
2443
  { match: /\$\d+/ },
2444
2444
  c
@@ -2472,7 +2472,7 @@ function Yt(e) {
2472
2472
  excludeEnd: !0,
2473
2473
  keywords: i,
2474
2474
  contains: m
2475
- }, S = {
2475
+ }, D = {
2476
2476
  variants: [
2477
2477
  // class Car extends vehicle
2478
2478
  {
@@ -2559,7 +2559,7 @@ function Yt(e) {
2559
2559
  label: "func.def",
2560
2560
  contains: [T],
2561
2561
  illegal: /%/
2562
- }, F = {
2562
+ }, H = {
2563
2563
  relevance: 0,
2564
2564
  match: /\b[A-Z][A-Z_0-9]+\b/,
2565
2565
  className: "variable.constant"
@@ -2580,7 +2580,7 @@ function Yt(e) {
2580
2580
  ),
2581
2581
  className: "title.function",
2582
2582
  relevance: 0
2583
- }, H = {
2583
+ }, F = {
2584
2584
  begin: n.concat(/\./, n.lookahead(
2585
2585
  n.concat(u, /(?![0-9A-Za-z$_(])/)
2586
2586
  )),
@@ -2644,8 +2644,8 @@ function Yt(e) {
2644
2644
  e.APOS_STRING_MODE,
2645
2645
  e.QUOTE_STRING_MODE,
2646
2646
  g,
2647
- p,
2648
2647
  d,
2648
+ p,
2649
2649
  v,
2650
2650
  // Skip numbers when they are part of a variable name
2651
2651
  { match: /\$\d+/ },
@@ -2756,7 +2756,7 @@ function Yt(e) {
2756
2756
  match: /\.\.\./,
2757
2757
  relevance: 0
2758
2758
  },
2759
- H,
2759
+ F,
2760
2760
  // hack: prevents detection of keywords in some circumstances
2761
2761
  // .keyword()
2762
2762
  // $keyword = x
@@ -2770,8 +2770,8 @@ function Yt(e) {
2770
2770
  contains: [T]
2771
2771
  },
2772
2772
  $,
2773
- F,
2774
- S,
2773
+ H,
2774
+ D,
2775
2775
  G,
2776
2776
  {
2777
2777
  match: /\$[(.]/
@@ -2780,7 +2780,7 @@ function Yt(e) {
2780
2780
  ]
2781
2781
  };
2782
2782
  }
2783
- function Xt(e) {
2783
+ function jt(e) {
2784
2784
  const n = {
2785
2785
  className: "attr",
2786
2786
  begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
@@ -2814,7 +2814,7 @@ function Xt(e) {
2814
2814
  illegal: "\\S"
2815
2815
  };
2816
2816
  }
2817
- function Vt(e) {
2817
+ function qt(e) {
2818
2818
  const n = "true false yes no null", a = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
2819
2819
  className: "attr",
2820
2820
  variants: [
@@ -2885,13 +2885,13 @@ function Vt(e) {
2885
2885
  contains: [f],
2886
2886
  illegal: "\\n",
2887
2887
  relevance: 0
2888
- }, p = {
2888
+ }, d = {
2889
2889
  begin: "\\[",
2890
2890
  end: "\\]",
2891
2891
  contains: [f],
2892
2892
  illegal: "\\n",
2893
2893
  relevance: 0
2894
- }, d = [
2894
+ }, p = [
2895
2895
  u,
2896
2896
  {
2897
2897
  className: "meta",
@@ -2968,17 +2968,17 @@ function Vt(e) {
2968
2968
  relevance: 0
2969
2969
  },
2970
2970
  g,
2971
- p,
2971
+ d,
2972
2972
  t
2973
- ], _ = [...d];
2973
+ ], _ = [...p];
2974
2974
  return _.pop(), _.push(r), f.contains = _, {
2975
2975
  name: "YAML",
2976
2976
  case_insensitive: !0,
2977
2977
  aliases: ["yml"],
2978
- contains: d
2978
+ contains: p
2979
2979
  };
2980
2980
  }
2981
- function jt(e) {
2981
+ function Jt(e) {
2982
2982
  return {
2983
2983
  name: "Plain text",
2984
2984
  aliases: [
@@ -2988,7 +2988,7 @@ function jt(e) {
2988
2988
  disableAutodetect: !0
2989
2989
  };
2990
2990
  }
2991
- function qt(e) {
2991
+ function er(e) {
2992
2992
  const n = e.regex, a = /[\p{XID_Start}_]\p{XID_Continue}*/u, u = [
2993
2993
  "and",
2994
2994
  "as",
@@ -3214,7 +3214,7 @@ function qt(e) {
3214
3214
  e.APOS_STRING_MODE,
3215
3215
  e.QUOTE_STRING_MODE
3216
3216
  ]
3217
- }, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, p = `\\b|${u.join("|")}`, d = {
3217
+ }, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`, p = {
3218
3218
  className: "number",
3219
3219
  relevance: 0,
3220
3220
  variants: [
@@ -3229,7 +3229,7 @@ function qt(e) {
3229
3229
  // because both MUST contain a decimal point and so cannot be confused with
3230
3230
  // the interior part of an identifier
3231
3231
  {
3232
- begin: `(\\b(${f})|(${g}))[eE][+-]?(${f})[jJ]?(?=${p})`
3232
+ begin: `(\\b(${f})|(${g}))[eE][+-]?(${f})[jJ]?(?=${d})`
3233
3233
  },
3234
3234
  {
3235
3235
  begin: `(${g})[jJ]?`
@@ -3241,21 +3241,21 @@ function qt(e) {
3241
3241
  // decinteger is optionally imaginary
3242
3242
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
3243
3243
  {
3244
- begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`
3244
+ begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`
3245
3245
  },
3246
3246
  {
3247
- begin: `\\b0[bB](_?[01])+[lL]?(?=${p})`
3247
+ begin: `\\b0[bB](_?[01])+[lL]?(?=${d})`
3248
3248
  },
3249
3249
  {
3250
- begin: `\\b0[oO](_?[0-7])+[lL]?(?=${p})`
3250
+ begin: `\\b0[oO](_?[0-7])+[lL]?(?=${d})`
3251
3251
  },
3252
3252
  {
3253
- begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`
3253
+ begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`
3254
3254
  },
3255
3255
  // imagnumber (digitpart-based)
3256
3256
  // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
3257
3257
  {
3258
- begin: `\\b(${f})[jJ](?=${p})`
3258
+ begin: `\\b(${f})[jJ](?=${d})`
3259
3259
  }
3260
3260
  ]
3261
3261
  }, _ = {
@@ -3293,7 +3293,7 @@ function qt(e) {
3293
3293
  contains: [
3294
3294
  "self",
3295
3295
  s,
3296
- d,
3296
+ p,
3297
3297
  c,
3298
3298
  e.HASH_COMMENT_MODE
3299
3299
  ]
@@ -3302,7 +3302,7 @@ function qt(e) {
3302
3302
  };
3303
3303
  return o.contains = [
3304
3304
  c,
3305
- d,
3305
+ p,
3306
3306
  s
3307
3307
  ], {
3308
3308
  name: "Python",
@@ -3316,7 +3316,7 @@ function qt(e) {
3316
3316
  illegal: /(<\/|->|\?)|=>/,
3317
3317
  contains: [
3318
3318
  s,
3319
- d,
3319
+ p,
3320
3320
  {
3321
3321
  // very common convention
3322
3322
  begin: /\bself\b/
@@ -3374,7 +3374,7 @@ function qt(e) {
3374
3374
  begin: /^[\t ]*@/,
3375
3375
  end: /(?=#)|$/,
3376
3376
  contains: [
3377
- d,
3377
+ p,
3378
3378
  v,
3379
3379
  c
3380
3380
  ]
@@ -3405,11 +3405,11 @@ var oe = "[0-9](_*[0-9])*", Ne = `\\.(${oe})`, Ae = "[0-9a-fA-F](_*[0-9a-fA-F])*
3405
3405
  ],
3406
3406
  relevance: 0
3407
3407
  };
3408
- function Sn(e, n, a) {
3409
- return a === -1 ? "" : e.replace(n, (u) => Sn(e, n, a - 1));
3408
+ function Dn(e, n, a) {
3409
+ return a === -1 ? "" : e.replace(n, (u) => Dn(e, n, a - 1));
3410
3410
  }
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 = {
3411
+ function nr(e) {
3412
+ const n = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = a + Dn("(?:<" + a + "~~~(?:\\s*,\\s*" + a + "~~~)*>)?", /~~~/g, 2), s = {
3413
3413
  keyword: [
3414
3414
  "synchronized",
3415
3415
  "abstract",
@@ -3617,7 +3617,7 @@ function Jt(e) {
3617
3617
  ]
3618
3618
  };
3619
3619
  }
3620
- function er(e) {
3620
+ function tr(e) {
3621
3621
  const n = e.regex, a = {}, u = {
3622
3622
  begin: /\$\{/,
3623
3623
  end: /\}/,
@@ -3718,10 +3718,10 @@ function er(e) {
3718
3718
  "case",
3719
3719
  "esac",
3720
3720
  "function"
3721
- ], p = [
3721
+ ], d = [
3722
3722
  "true",
3723
3723
  "false"
3724
- ], d = { match: /(\/[a-z._-]+)+/ }, _ = [
3724
+ ], p = { match: /(\/[a-z._-]+)+/ }, _ = [
3725
3725
  "break",
3726
3726
  "cd",
3727
3727
  "continue",
@@ -3942,7 +3942,7 @@ function er(e) {
3942
3942
  keywords: {
3943
3943
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
3944
3944
  keyword: g,
3945
- literal: p,
3945
+ literal: d,
3946
3946
  built_in: [
3947
3947
  ..._,
3948
3948
  ...v,
@@ -3962,7 +3962,7 @@ function er(e) {
3962
3962
  o,
3963
3963
  e.HASH_COMMENT_MODE,
3964
3964
  t,
3965
- d,
3965
+ p,
3966
3966
  r,
3967
3967
  i,
3968
3968
  s,
@@ -3970,7 +3970,7 @@ function er(e) {
3970
3970
  ]
3971
3971
  };
3972
3972
  }
3973
- function nr(e) {
3973
+ function rr(e) {
3974
3974
  const n = e.regex, a = e.COMMENT("--", "$"), u = {
3975
3975
  className: "string",
3976
3976
  variants: [
@@ -4519,10 +4519,10 @@ function nr(e) {
4519
4519
  "nulls last",
4520
4520
  "depth first",
4521
4521
  "breadth first"
4522
- ], g = l, p = [
4522
+ ], g = l, d = [
4523
4523
  ...o,
4524
4524
  ...s
4525
- ].filter((w) => !l.includes(w)), d = {
4525
+ ].filter((w) => !l.includes(w)), p = {
4526
4526
  className: "variable",
4527
4527
  begin: /@[a-z0-9]+/
4528
4528
  }, _ = {
@@ -4538,8 +4538,8 @@ function nr(e) {
4538
4538
  exceptions: m,
4539
4539
  when: T
4540
4540
  } = {}) {
4541
- const S = T;
4542
- return m = m || [], w.map((N) => N.match(/\|\d+$/) || m.includes(N) ? N : S(N) ? `${N}|0` : N);
4541
+ const D = T;
4542
+ return m = m || [], w.map((N) => N.match(/\|\d+$/) || m.includes(N) ? N : D(N) ? `${N}|0` : N);
4543
4543
  }
4544
4544
  return {
4545
4545
  name: "SQL",
@@ -4548,7 +4548,7 @@ function nr(e) {
4548
4548
  illegal: /[{}]|<\//,
4549
4549
  keywords: {
4550
4550
  $pattern: /\b[\w\.]+/,
4551
- keyword: E(p, { when: (w) => w.length < 3 }),
4551
+ keyword: E(d, { when: (w) => w.length < 3 }),
4552
4552
  literal: t,
4553
4553
  type: i,
4554
4554
  built_in: c
@@ -4559,7 +4559,7 @@ function nr(e) {
4559
4559
  relevance: 0,
4560
4560
  keywords: {
4561
4561
  $pattern: /[\w\.]+/,
4562
- keyword: p.concat(f),
4562
+ keyword: d.concat(f),
4563
4563
  literal: t,
4564
4564
  type: i
4565
4565
  }
@@ -4569,7 +4569,7 @@ function nr(e) {
4569
4569
  begin: n.either(...r)
4570
4570
  },
4571
4571
  v,
4572
- d,
4572
+ p,
4573
4573
  u,
4574
4574
  h,
4575
4575
  e.C_NUMBER_MODE,
@@ -4579,20 +4579,20 @@ function nr(e) {
4579
4579
  ]
4580
4580
  };
4581
4581
  }
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 == "undefined" ? n : typeof n == "undefined" ? 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
4582
+ Y.registerLanguage("xml", Wt);
4583
+ Y.registerLanguage("javascript", Vt);
4584
+ Y.registerLanguage("json", jt);
4585
+ Y.registerLanguage("yaml", qt);
4586
+ Y.registerLanguage("plaintext", Jt);
4587
+ Y.registerLanguage("python", er);
4588
+ Y.registerLanguage("java", nr);
4589
+ Y.registerLanguage("bash", tr);
4590
+ Y.registerLanguage("sql", rr);
4591
+ var S = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(S || {});
4592
+ const j = "<code-diff-modified>", q = "</code-diff-modified>", ir = j.replace("<", "&lt;").replace(">", "&gt;"), sr = q.replace("<", "&lt;").replace(">", "&gt;"), le = (e) => e === void 0 ? S.EQUAL : e.added ? S.ADD : e.removed ? S.DELETE : S.EQUAL, Se = (e, n, a = "word") => typeof e == "undefined" ? n : typeof n == "undefined" ? e : (a === "char" ? Kn : Qn)(e, n).filter((h) => le(h) !== S.DELETE).map(
4593
+ (h) => le(h) === S.ADD ? `${j}${h.value}${q}` : h.value
4594
4594
  ).join("");
4595
- function Dn(e, n) {
4595
+ function Sn(e, n) {
4596
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
4597
  return a.diff_charsToLines_(i, r), i.map((s) => {
4598
4598
  const [o, l] = s;
@@ -4627,14 +4627,14 @@ const Z = (e, n) => {
4627
4627
  u = u.slice(q.length), c = c + q, r = !1;
4628
4628
  continue;
4629
4629
  }
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);
4630
+ const f = u.match(new RegExp(`(${j}|${q})`)), g = f && f.index ? f.index : u.length, d = Math.min(g, l.length);
4631
+ c = c + u.substring(0, d), u = u.slice(d), l = l.slice(d);
4632
4632
  }
4633
4633
  r && (c = c + q), o.textContent = c;
4634
4634
  }
4635
4635
  });
4636
4636
  };
4637
- return i(t), t.innerHTML.replace(new RegExp(tr, "g"), '<span class="x">').replace(new RegExp(rr, "g"), "</span>");
4637
+ return i(t), t.innerHTML.replace(new RegExp(ir, "g"), '<span class="x">').replace(new RegExp(sr, "g"), "</span>");
4638
4638
  };
4639
4639
  function Rn(e) {
4640
4640
  const n = (h, t) => (h.match(new RegExp(t, "g")) || []).length;
@@ -4645,95 +4645,102 @@ function Rn(e) {
4645
4645
  `) + 1);
4646
4646
  return { additionsNum: a, deletionsNum: u };
4647
4647
  }
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);
4648
+ function ar(e, n, a = "plaintext", u = "word", h = 10) {
4649
+ const t = () => ({ type: S.EMPTY }), r = (p, _, v) => ({ type: p, num: _, code: v }), i = Sn(e, n);
4651
4650
  let s = 0, o = 0, l = !1;
4652
4651
  const c = [], f = {
4653
4652
  changes: c,
4653
+ collector: [],
4654
4654
  stat: Rn(i)
4655
4655
  };
4656
- for (let d = 0; d < i.length; d++) {
4656
+ for (let p = 0; p < i.length; p++) {
4657
4657
  if (l) {
4658
4658
  l = !1;
4659
4659
  continue;
4660
4660
  }
4661
- const [_, v] = [i[d], i[d + 1]], [E, w] = [le(_), le(v)], m = _.value.replace(/\n$/, "").split(`
4661
+ const [_, v] = [i[p], i[p + 1]], [E, w] = [le(_), le(v)], m = _.value.replace(/\n$/, "").split(`
4662
4662
  `);
4663
4663
  if (v === void 0) {
4664
- for (const S of m) {
4664
+ for (const D of m) {
4665
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 });
4666
+ const R = Z(a, D);
4667
+ E === S.EQUAL && (s++, o++, N = r(S.EQUAL, s, R), I = r(S.EQUAL, o, R)), E === S.DELETE && (s++, N = r(S.DELETE, s, R), I = t()), E === S.ADD && (o++, N = t(), I = r(S.ADD, o, R)), c.push({ left: N, right: I });
4668
4668
  }
4669
4669
  break;
4670
4670
  }
4671
- if (E === D.EQUAL)
4672
- for (const S of m) {
4671
+ if (E === S.EQUAL)
4672
+ for (const D of m) {
4673
4673
  s++, o++;
4674
- const N = Z(a, S);
4674
+ const N = Z(a, D);
4675
4675
  c.push({
4676
- left: r(D.EQUAL, s, N),
4677
- right: r(D.EQUAL, o, N)
4676
+ left: r(S.EQUAL, s, N),
4677
+ right: r(S.EQUAL, o, N)
4678
4678
  });
4679
4679
  }
4680
4680
  const T = v.value.replace(/\n$/, "").split(`
4681
4681
  `);
4682
- if (E === D.DELETE) {
4683
- if (w === D.EQUAL)
4684
- for (const S of m)
4682
+ if (E === S.DELETE) {
4683
+ if (w === S.EQUAL)
4684
+ for (const D of m)
4685
4685
  s++, c.push({
4686
- left: r(D.DELETE, s, Z(a, S)),
4686
+ left: r(S.DELETE, s, Z(a, D)),
4687
4687
  right: t()
4688
4688
  });
4689
- if (w === D.ADD) {
4689
+ if (w === S.ADD) {
4690
4690
  l = !0;
4691
- const S = Math.max(_.count, v.count);
4692
- for (let N = 0; N < S; N++) {
4691
+ const D = Math.max(_.count, v.count);
4692
+ for (let N = 0; N < D; N++) {
4693
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 });
4694
+ const [I, R] = [m[N], T[N]], H = m.length === T.length ? Se(R, I, u) : I, U = m.length === T.length ? Se(I, R, u) : R, $ = N < _.count ? r(S.DELETE, s, Z(a, H)) : t(), F = N < v.count ? r(S.ADD, o, Z(a, U)) : t();
4695
+ c.push({ left: $, right: F });
4696
4696
  }
4697
4697
  }
4698
4698
  }
4699
- if (E === D.ADD)
4700
- for (const S of m)
4699
+ if (E === S.ADD)
4700
+ for (const D of m)
4701
4701
  o++, c.push({
4702
4702
  left: t(),
4703
- right: r(D.ADD, o, Z(a, S))
4703
+ right: r(S.ADD, o, Z(a, D))
4704
4704
  });
4705
4705
  }
4706
4706
  if (e === n) {
4707
- for (let d = 0; d < c.length; d++)
4708
- c[d].fold = !1;
4707
+ for (let p = 0; p < c.length; p++)
4708
+ c[p].fold = !1;
4709
4709
  return f;
4710
4710
  }
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)];
4711
+ for (let p = 0; p < c.length; p++) {
4712
+ const _ = c[p];
4713
+ if (_.left.type === S.DELETE || _.right.type === S.ADD) {
4714
+ const [v, E] = [Math.max(p - h, 0), Math.min(p + h + 1, c.length)];
4715
4715
  for (let w = v; w < E; w++)
4716
4716
  c[w].fold = !1;
4717
4717
  }
4718
4718
  _.fold === void 0 && (_.fold = !0);
4719
4719
  }
4720
4720
  const g = [];
4721
- for (let d = 0; d < c.length; d++) {
4722
- const _ = c[d];
4721
+ let d = [];
4722
+ for (let p = 0; p < c.length; p++) {
4723
+ const _ = c[p];
4723
4724
  if (_.fold === !1) {
4724
- g.push(_);
4725
+ d.length && (d[0].hideIndex = f.collector.length, f.collector.push({
4726
+ lines: d,
4727
+ fold: !0
4728
+ }), d = []), g.push(_);
4725
4729
  continue;
4726
4730
  }
4727
- _.fold === !0 && ((p = g[g.length - 1]) == null ? void 0 : p.fold) !== !0 && g.push(_);
4731
+ _.hide = !0, d.push(_), g.push(_);
4728
4732
  }
4729
- return f.changes = g, f;
4733
+ return d.length && (d[0].hideIndex = f.collector.length, f.collector.push({
4734
+ lines: d,
4735
+ fold: !0
4736
+ }), d = []), f.changes = g, f;
4730
4737
  }
4731
- function sr(e, n, a = "plaintext", u = "word", h = 10) {
4732
- var f;
4733
- const t = Dn(e, n);
4738
+ function or(e, n, a = "plaintext", u = "word", h = 10) {
4739
+ const t = Sn(e, n);
4734
4740
  let r = 0, i = 0, s = !1;
4735
4741
  const o = [], l = {
4736
4742
  changes: o,
4743
+ collector: [],
4737
4744
  stat: Rn(t)
4738
4745
  };
4739
4746
  for (let g = 0; g < t.length; g++) {
@@ -4741,65 +4748,65 @@ function sr(e, n, a = "plaintext", u = "word", h = 10) {
4741
4748
  s = !1;
4742
4749
  continue;
4743
4750
  }
4744
- const [p, d] = [t[g], t[g + 1]], [_, v] = [le(p), le(d)], E = p.value.replace(/\n$/, "").split(`
4751
+ const [d, p] = [t[g], t[g + 1]], [_, v] = [le(d), le(p)], E = d.value.replace(/\n$/, "").split(`
4745
4752
  `);
4746
- if (d === void 0) {
4753
+ if (p === void 0) {
4747
4754
  for (const m of E) {
4748
- _ === D.EQUAL && (r++, i++), _ === D.DELETE && r++, _ === D.ADD && i++;
4755
+ _ === S.EQUAL && (r++, i++), _ === S.DELETE && r++, _ === S.ADD && i++;
4749
4756
  const T = Z(a, m);
4750
4757
  o.push({
4751
4758
  type: _,
4752
4759
  code: T,
4753
- addNum: _ === D.DELETE ? void 0 : i,
4754
- delNum: _ === D.ADD ? void 0 : r
4760
+ addNum: _ === S.DELETE ? void 0 : i,
4761
+ delNum: _ === S.ADD ? void 0 : r
4755
4762
  });
4756
4763
  }
4757
4764
  break;
4758
4765
  }
4759
- if (_ === D.EQUAL)
4766
+ if (_ === S.EQUAL)
4760
4767
  for (const m of E) {
4761
4768
  r++, i++;
4762
4769
  const T = Z(a, m);
4763
- o.push({ type: D.EQUAL, code: T, delNum: r, addNum: i });
4770
+ o.push({ type: S.EQUAL, code: T, delNum: r, addNum: i });
4764
4771
  }
4765
- const w = d.value.replace(/\n$/, "").split(`
4772
+ const w = p.value.replace(/\n$/, "").split(`
4766
4773
  `);
4767
- if (_ === D.DELETE)
4768
- if (v === D.ADD && E.length === w.length) {
4774
+ if (_ === S.DELETE)
4775
+ if (v === S.ADD && E.length === w.length) {
4769
4776
  for (let m = 0; m < E.length; m++) {
4770
- const T = E[m], S = w[m];
4777
+ const T = E[m], D = w[m];
4771
4778
  r++;
4772
- const N = Z(a, De(S, T, u));
4773
- o.push({ type: D.DELETE, code: N, delNum: r });
4779
+ const N = Z(a, Se(D, T, u));
4780
+ o.push({ type: S.DELETE, code: N, delNum: r });
4774
4781
  }
4775
4782
  for (let m = 0; m < w.length; m++) {
4776
- const T = E[m], S = w[m];
4783
+ const T = E[m], D = w[m];
4777
4784
  i++;
4778
- const N = Z(a, De(T, S, u));
4779
- o.push({ type: D.ADD, code: N, addNum: i });
4785
+ const N = Z(a, Se(T, D, u));
4786
+ o.push({ type: S.ADD, code: N, addNum: i });
4780
4787
  }
4781
4788
  s = !0;
4782
4789
  } else
4783
4790
  for (const m of E) {
4784
4791
  r++;
4785
4792
  const T = Z(a, m);
4786
- o.push({ type: D.DELETE, code: T, delNum: r });
4793
+ o.push({ type: S.DELETE, code: T, delNum: r });
4787
4794
  }
4788
- if (_ === D.ADD)
4795
+ if (_ === S.ADD)
4789
4796
  for (const m of E) {
4790
4797
  i++;
4791
4798
  const T = Z(a, m);
4792
- o.push({ type: D.ADD, code: T, addNum: i });
4799
+ o.push({ type: S.ADD, code: T, addNum: i });
4793
4800
  }
4794
4801
  }
4795
4802
  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++)
4803
+ const d = o[g];
4804
+ if (d.type === S.DELETE || d.type === S.ADD) {
4805
+ const [p, _] = [Math.max(g - h, 0), Math.min(g + h + 1, o.length)];
4806
+ for (let v = p; v < _; v++)
4800
4807
  o[v].fold = !1;
4801
4808
  }
4802
- p.fold === void 0 && (p.fold = !0);
4809
+ d.fold === void 0 && (d.fold = !0);
4803
4810
  }
4804
4811
  if (e === n) {
4805
4812
  for (let g = 0; g < o.length; g++)
@@ -4807,15 +4814,22 @@ function sr(e, n, a = "plaintext", u = "word", h = 10) {
4807
4814
  return l;
4808
4815
  }
4809
4816
  const c = [];
4817
+ let f = [];
4810
4818
  for (let g = 0; g < o.length; g++) {
4811
- const p = o[g];
4812
- if (p.fold === !1) {
4813
- c.push(p);
4819
+ const d = o[g];
4820
+ if (d.fold === !1) {
4821
+ f.length && (f[0].hideIndex = l.collector.length, l.collector.push({
4822
+ lines: f,
4823
+ fold: !0
4824
+ }), f = []), c.push(d);
4814
4825
  continue;
4815
4826
  }
4816
- p.fold === !0 && (g === 0 || ((f = c[c.length - 1]) == null ? void 0 : f.fold) !== !0) && c.push(p);
4827
+ d.type === "equal" && (d.hide = !0, f.push(d)), c.push(d);
4817
4828
  }
4818
- return l.changes = c, l;
4829
+ return f.length && (f[0].hideIndex = l.collector.length, l.collector.push({
4830
+ lines: f,
4831
+ fold: !0
4832
+ }), f = []), l.changes = c, l;
4819
4833
  }
4820
4834
  const Ke = {};
4821
4835
  Ke.props = {
@@ -4825,41 +4839,54 @@ Ke.props = {
4825
4839
  type: null
4826
4840
  }
4827
4841
  };
4828
- Ke.setup = (e, n) => ({
4829
- DiffType: D,
4830
- getCodeMarker: (u) => u === D.DELETE ? "-" : u === D.ADD ? "+" : ""
4831
- });
4832
- var ar = function() {
4842
+ Ke.setup = (e, n) => {
4843
+ const a = n.emit;
4844
+ return {
4845
+ DiffType: S,
4846
+ emit: a,
4847
+ getCodeMarker: (h) => h === S.DELETE ? "-" : h === S.ADD ? "+" : ""
4848
+ };
4849
+ };
4850
+ var lr = function() {
4833
4851
  var e = this, n = e.$createElement, a = e._self._c || n;
4834
- return e.line.fold ? a("tr", [a("td", {
4835
- staticClass: "blob-num blob-num-hunk"
4836
- }, [e._v(" > ")]), a("td", {
4837
- staticClass: "blob-num blob-num-hunk"
4852
+ return e.line.hideIndex !== void 0 && e.line.hide ? a("tr", [a("td", {
4853
+ staticClass: "blob-num blob-num-hunk text-center",
4854
+ attrs: {
4855
+ colspan: "2"
4856
+ },
4857
+ on: {
4858
+ click: function(u) {
4859
+ return e.emit("expand", e.line);
4860
+ }
4861
+ }
4838
4862
  }, [e._v(" > ")]), a("td", {
4839
4863
  staticClass: "blob-code blob-code-hunk",
4840
4864
  attrs: {
4841
4865
  align: "left"
4842
4866
  }
4843
- }, [e._v(" ⋯ ")])]) : a("tr", [a("td", {
4867
+ }, [e._v(" ⋯ ")])]) : e.line.hide ? e._e() : a("tr", [a("td", {
4844
4868
  staticClass: "blob-num",
4845
4869
  class: {
4846
4870
  "blob-num-deletion": e.line.type === e.DiffType.DELETE,
4847
4871
  "blob-num-addition": e.line.type === e.DiffType.ADD,
4848
- "blob-num-context": e.line.type === e.DiffType.EQUAL
4872
+ "blob-num-context": e.line.type === e.DiffType.EQUAL,
4873
+ "blob-num-hunk": e.line.hide !== void 0
4849
4874
  }
4850
4875
  }, [e._v(" " + e._s(e.line.delNum) + " ")]), a("td", {
4851
4876
  staticClass: "blob-num",
4852
4877
  class: {
4853
4878
  "blob-num-deletion": e.line.type === e.DiffType.DELETE,
4854
4879
  "blob-num-addition": e.line.type === e.DiffType.ADD,
4855
- "blob-num-context": e.line.type === e.DiffType.EQUAL
4880
+ "blob-num-context": e.line.type === e.DiffType.EQUAL,
4881
+ "blob-num-hunk": e.line.hide !== void 0
4856
4882
  }
4857
4883
  }, [e._v(" " + e._s(e.line.addNum) + " ")]), a("td", {
4858
4884
  staticClass: "blob-code",
4859
4885
  class: {
4860
4886
  "blob-code-deletion": e.line.type === e.DiffType.DELETE,
4861
4887
  "blob-code-addition": e.line.type === e.DiffType.ADD,
4862
- "blob-code-context": e.line.type === e.DiffType.EQUAL
4888
+ "blob-code-context": e.line.type === e.DiffType.EQUAL,
4889
+ "blob-code-hunk": e.line.hide !== void 0
4863
4890
  }
4864
4891
  }, [a("span", {
4865
4892
  staticClass: "blob-code-inner blob-code-marker",
@@ -4870,7 +4897,7 @@ var ar = function() {
4870
4897
  innerHTML: e._s(e.line.code)
4871
4898
  }
4872
4899
  })])]);
4873
- }, or = [];
4900
+ }, cr = [];
4874
4901
  function be(e, n, a, u, h, t, r, i) {
4875
4902
  var s = typeof e == "function" ? e.options : e;
4876
4903
  n && (s.render = n, s.staticRenderFns = a, s._compiled = !0), u && (s.functional = !0), t && (s._scopeId = "data-v-" + t);
@@ -4888,8 +4915,8 @@ function be(e, n, a, u, h, t, r, i) {
4888
4915
  if (s.functional) {
4889
4916
  s._injectStyles = o;
4890
4917
  var l = s.render;
4891
- s.render = function(g, p) {
4892
- return o.call(p), l(g, p);
4918
+ s.render = function(g, d) {
4919
+ return o.call(d), l(g, d);
4893
4920
  };
4894
4921
  } else {
4895
4922
  var c = s.beforeCreate;
@@ -4901,64 +4928,79 @@ function be(e, n, a, u, h, t, r, i) {
4901
4928
  };
4902
4929
  }
4903
4930
  const ln = {};
4904
- var lr = /* @__PURE__ */ be(
4931
+ var ur = /* @__PURE__ */ be(
4905
4932
  Ke,
4906
- ar,
4907
- or,
4908
- !1,
4933
+ lr,
4909
4934
  cr,
4935
+ !1,
4936
+ fr,
4910
4937
  null,
4911
4938
  null,
4912
4939
  null
4913
4940
  );
4914
- function cr(e) {
4941
+ function fr(e) {
4915
4942
  for (let n in ln)
4916
4943
  this[n] = ln[n];
4917
4944
  }
4918
- const ur = /* @__PURE__ */ function() {
4919
- return lr.exports;
4945
+ const gr = /* @__PURE__ */ function() {
4946
+ return ur.exports;
4920
4947
  }(), de = {};
4921
4948
  de.props = {
4922
4949
  diffChange: {
4923
4950
  key: "diffChange",
4924
4951
  required: !0,
4925
- type: Array
4952
+ type: null
4953
+ }
4954
+ };
4955
+ de.setup = (e, n) => {
4956
+ const a = e;
4957
+ function u({
4958
+ hideIndex: h
4959
+ }) {
4960
+ h !== void 0 && a.diffChange.collector[h].lines.forEach((t) => {
4961
+ t.hide = !1, t.fold = !1;
4962
+ });
4926
4963
  }
4964
+ return {
4965
+ expandHandler: u
4966
+ };
4927
4967
  };
4928
- de.setup = (e, n) => ({});
4929
4968
  de.components = Object.assign({
4930
- UnifiedLine: ur
4969
+ UnifiedLine: gr
4931
4970
  }, de.components);
4932
- var fr = function() {
4933
- var e = this, n = e.$createElement, a = e._self._c || n;
4934
- return a("table", {
4971
+ var hr = function() {
4972
+ var e, n = this, a = n.$createElement, u = n._self._c || a;
4973
+ return u("table", {
4935
4974
  staticClass: "diff-table"
4936
- }, [a("tbody", e._l(e.diffChange, function(u, h) {
4937
- return a("UnifiedLine", {
4938
- key: h,
4975
+ }, [u("tbody", n._l((e = n.diffChange) === null || e === void 0 ? void 0 : e.changes, function(h, t) {
4976
+ return u("UnifiedLine", {
4977
+ key: t,
4939
4978
  attrs: {
4940
- line: u
4979
+ line: h
4980
+ },
4981
+ on: {
4982
+ expand: n.expandHandler
4941
4983
  }
4942
4984
  });
4943
4985
  }), 1)]);
4944
- }, gr = [];
4986
+ }, dr = [];
4945
4987
  const cn = {};
4946
- var hr = /* @__PURE__ */ be(
4988
+ var pr = /* @__PURE__ */ be(
4947
4989
  de,
4948
- fr,
4949
- gr,
4950
- !1,
4990
+ hr,
4951
4991
  dr,
4992
+ !1,
4993
+ _r,
4952
4994
  null,
4953
4995
  null,
4954
4996
  null
4955
4997
  );
4956
- function dr(e) {
4998
+ function _r(e) {
4957
4999
  for (let n in cn)
4958
5000
  this[n] = cn[n];
4959
5001
  }
4960
- const pr = /* @__PURE__ */ function() {
4961
- return hr.exports;
5002
+ const br = /* @__PURE__ */ function() {
5003
+ return pr.exports;
4962
5004
  }(), We = {};
4963
5005
  We.props = {
4964
5006
  splitLine: {
@@ -4967,16 +5009,25 @@ We.props = {
4967
5009
  type: null
4968
5010
  }
4969
5011
  };
4970
- We.setup = (e, n) => ({
4971
- DiffType: D,
4972
- getCodeMarker: (u) => u === D.DELETE ? "-" : u === D.ADD ? "+" : ""
4973
- });
4974
- var _r = function() {
5012
+ We.setup = (e, n) => {
5013
+ const a = n.emit;
5014
+ return {
5015
+ DiffType: S,
5016
+ emit: a,
5017
+ getCodeMarker: (h) => h === S.DELETE ? "-" : h === S.ADD ? "+" : ""
5018
+ };
5019
+ };
5020
+ var vr = function() {
4975
5021
  var e = this, n = e.$createElement, a = e._self._c || n;
4976
- return e.splitLine.fold ? a("tr", [a("td", {
5022
+ return e.splitLine.hideIndex !== void 0 && e.splitLine.hide ? a("tr", [a("td", {
4977
5023
  staticClass: "blob-num blob-num-hunk",
4978
5024
  attrs: {
4979
5025
  colspan: "1"
5026
+ },
5027
+ on: {
5028
+ click: function(u) {
5029
+ return e.emit("expand", e.splitLine);
5030
+ }
4980
5031
  }
4981
5032
  }, [e._v(" > ")]), a("td", {
4982
5033
  staticClass: "blob-code blob-code-inner blob-code-hunk",
@@ -4984,7 +5035,7 @@ var _r = function() {
4984
5035
  colspan: "3",
4985
5036
  align: "left"
4986
5037
  }
4987
- }, [e._v(" ⋯ ")])]) : a("tr", [e._l([e.splitLine.left, e.splitLine.right], function(u) {
5038
+ }, [e._v(" ⋯ ")])]) : e.splitLine.hide ? e._e() : a("tr", [e._l([e.splitLine.left, e.splitLine.right], function(u) {
4988
5039
  return [u.type === e.DiffType.EMPTY ? [a("td", {
4989
5040
  staticClass: "blob-num blob-num-empty empty-cell"
4990
5041
  }), a("td", {
@@ -4994,14 +5045,16 @@ var _r = function() {
4994
5045
  class: {
4995
5046
  "blob-num-deletion": u.type === e.DiffType.DELETE,
4996
5047
  "blob-num-addition": u.type === e.DiffType.ADD,
4997
- "blob-num-context": u.type === e.DiffType.EQUAL
5048
+ "blob-num-context": u.type === e.DiffType.EQUAL,
5049
+ "blob-num-hunk": e.splitLine.hide !== void 0
4998
5050
  }
4999
5051
  }, [e._v(" " + e._s(u.num) + " ")]), a("td", {
5000
5052
  staticClass: "blob-code",
5001
5053
  class: {
5002
5054
  "blob-code-deletion": u.type === e.DiffType.DELETE,
5003
5055
  "blob-code-addition": u.type === e.DiffType.ADD,
5004
- "blob-code-context": u.type === e.DiffType.EQUAL
5056
+ "blob-code-context": u.type === e.DiffType.EQUAL,
5057
+ "blob-code-hunk": e.splitLine.hide !== void 0
5005
5058
  }
5006
5059
  }, [a("span", {
5007
5060
  staticClass: "blob-code-inner blob-code-marker",
@@ -5013,24 +5066,24 @@ var _r = function() {
5013
5066
  }
5014
5067
  })])]];
5015
5068
  })], 2);
5016
- }, br = [];
5069
+ }, Er = [];
5017
5070
  const un = {};
5018
- var vr = /* @__PURE__ */ be(
5071
+ var mr = /* @__PURE__ */ be(
5019
5072
  We,
5020
- _r,
5021
- br,
5022
- !1,
5073
+ vr,
5023
5074
  Er,
5075
+ !1,
5076
+ yr,
5024
5077
  null,
5025
5078
  null,
5026
5079
  null
5027
5080
  );
5028
- function Er(e) {
5081
+ function yr(e) {
5029
5082
  for (let n in un)
5030
5083
  this[n] = un[n];
5031
5084
  }
5032
- const mr = /* @__PURE__ */ function() {
5033
- return vr.exports;
5085
+ const wr = /* @__PURE__ */ function() {
5086
+ return mr.exports;
5034
5087
  }(), pe = {};
5035
5088
  pe.props = {
5036
5089
  diffChange: {
@@ -5039,23 +5092,38 @@ pe.props = {
5039
5092
  type: null
5040
5093
  }
5041
5094
  };
5042
- pe.setup = (e, n) => ({});
5095
+ pe.setup = (e, n) => {
5096
+ const a = e;
5097
+ function u({
5098
+ hideIndex: h
5099
+ }) {
5100
+ h !== void 0 && a.diffChange.collector[h].lines.forEach((t) => {
5101
+ t.hide = !1, t.fold = !1;
5102
+ });
5103
+ }
5104
+ return {
5105
+ expandHandler: u
5106
+ };
5107
+ };
5043
5108
  pe.components = Object.assign({
5044
- SplitLine: mr
5109
+ SplitLine: wr
5045
5110
  }, pe.components);
5046
- var yr = function() {
5047
- var e = this, n = e.$createElement, a = e._self._c || n;
5048
- return a("table", {
5111
+ var Mr = function() {
5112
+ var e, n = this, a = n.$createElement, u = n._self._c || a;
5113
+ return u("table", {
5049
5114
  staticClass: "file-diff-split diff-table"
5050
- }, [e._m(0), a("tbody", e._l(e.diffChange, function(u, h) {
5051
- return a("SplitLine", {
5052
- key: h,
5115
+ }, [n._m(0), u("tbody", n._l((e = n.diffChange) === null || e === void 0 ? void 0 : e.changes, function(h, t) {
5116
+ return u("SplitLine", {
5117
+ key: t,
5053
5118
  attrs: {
5054
- "split-line": u
5119
+ "split-line": h
5120
+ },
5121
+ on: {
5122
+ expand: n.expandHandler
5055
5123
  }
5056
5124
  });
5057
5125
  }), 1)]);
5058
- }, wr = [function() {
5126
+ }, Nr = [function() {
5059
5127
  var e = this, n = e.$createElement, a = e._self._c || n;
5060
5128
  return a("colgroup", [a("col", {
5061
5129
  attrs: {
@@ -5068,22 +5136,22 @@ var yr = function() {
5068
5136
  }), a("col")]);
5069
5137
  }];
5070
5138
  const fn = {};
5071
- var Mr = /* @__PURE__ */ be(
5139
+ var Ar = /* @__PURE__ */ be(
5072
5140
  pe,
5073
- yr,
5074
- wr,
5075
- !1,
5141
+ Mr,
5076
5142
  Nr,
5143
+ !1,
5144
+ Tr,
5077
5145
  null,
5078
5146
  null,
5079
5147
  null
5080
5148
  );
5081
- function Nr(e) {
5149
+ function Tr(e) {
5082
5150
  for (let n in fn)
5083
5151
  this[n] = fn[n];
5084
5152
  }
5085
- const Ar = /* @__PURE__ */ function() {
5086
- return Mr.exports;
5153
+ const Dr = /* @__PURE__ */ function() {
5154
+ return Ar.exports;
5087
5155
  }();
5088
5156
  const _e = {};
5089
5157
  _e.props = {
@@ -5148,24 +5216,28 @@ _e.props = {
5148
5216
  };
5149
5217
  _e.setup = (e, n) => {
5150
5218
  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, `
5153
- `) : i;
5219
+ let s = a.oldString || "";
5220
+ return s = a.trim ? s.trim() : s, s = a.noDiffLineFeed ? s.replace(/(\r\n)/g, `
5221
+ `) : s, s;
5154
5222
  }), t = we(() => {
5155
- const i = a.trim ? a.newString.trim() : a.newString;
5156
- return a.noDiffLineFeed ? i.replace(/(\r\n)/g, `
5157
- `) : i;
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));
5159
- return {
5223
+ let s = a.newString || "";
5224
+ return s = a.trim ? s.trim() : s, s = a.noDiffLineFeed ? s.replace(/(\r\n)/g, `
5225
+ `) : s, s;
5226
+ }), r = we(() => u.value ? or(h.value, t.value, a.language, a.diffStyle, a.context) : ar(h.value, t.value, a.language, a.diffStyle, a.context)), i = Pn(r.value);
5227
+ return xn(() => a, () => {
5228
+ i.value = r.value;
5229
+ }, {
5230
+ deep: !0
5231
+ }), {
5160
5232
  isUnifiedViewer: u,
5161
- diffChange: r
5233
+ diffChange: i
5162
5234
  };
5163
5235
  };
5164
5236
  _e.components = Object.assign({
5165
- UnifiedViewer: pr,
5166
- SplitViewer: Ar
5237
+ UnifiedViewer: br,
5238
+ SplitViewer: Dr
5167
5239
  }, _e.components);
5168
- var Tr = function() {
5240
+ var Sr = function() {
5169
5241
  var e = this, n = e.$createElement, a = e._self._c || n;
5170
5242
  return a("div", {
5171
5243
  staticClass: "code-diff-view",
@@ -5189,38 +5261,38 @@ var Tr = function() {
5189
5261
  }
5190
5262
  }, [e._v("-" + e._s(e.diffChange.stat.deletionsNum) + " deletions")])])])]), e.isUnifiedViewer ? a("UnifiedViewer", {
5191
5263
  attrs: {
5192
- "diff-change": e.diffChange.changes
5264
+ "diff-change": e.diffChange
5193
5265
  }
5194
5266
  }) : a("SplitViewer", {
5195
5267
  attrs: {
5196
- "diff-change": e.diffChange.changes
5268
+ "diff-change": e.diffChange
5197
5269
  }
5198
5270
  })], 1);
5199
- }, Sr = [];
5271
+ }, Rr = [];
5200
5272
  const gn = {};
5201
- var Dr = /* @__PURE__ */ be(
5273
+ var Or = /* @__PURE__ */ be(
5202
5274
  _e,
5203
- Tr,
5204
5275
  Sr,
5205
- !1,
5206
5276
  Rr,
5277
+ !1,
5278
+ Cr,
5207
5279
  null,
5208
5280
  null,
5209
5281
  null
5210
5282
  );
5211
- function Rr(e) {
5283
+ function Cr(e) {
5212
5284
  for (let n in gn)
5213
5285
  this[n] = gn[n];
5214
5286
  }
5215
- const Or = /* @__PURE__ */ function() {
5216
- return Dr.exports;
5217
- }(), Cr = (e) => {
5218
- e.component("CodeDiff", Or);
5219
- }, kr = {
5220
- install: Cr,
5287
+ const Lr = /* @__PURE__ */ function() {
5288
+ return Or.exports;
5289
+ }(), Ir = (e) => {
5290
+ e.component("CodeDiff", Lr);
5291
+ }, $r = {
5292
+ install: Ir,
5221
5293
  hljs: Y
5222
5294
  };
5223
5295
  export {
5224
- Or as CodeDiff,
5225
- kr as default
5296
+ Lr as CodeDiff,
5297
+ $r as default
5226
5298
  };