v-code-diff 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -5
- package/dist/v2/{index.cjs.js → index.cjs} +17 -17
- package/dist/v2/index.es.js +1119 -1097
- package/dist/v2/index.umd.js +17 -17
- package/dist/v2.7/{index.cjs.js → index.cjs} +14 -14
- package/dist/v2.7/index.es.js +625 -613
- package/dist/v2.7/index.umd.js +13 -13
- package/dist/v3/{index.cjs.js → index.cjs} +14 -14
- package/dist/v3/index.es.js +860 -840
- package/dist/v3/index.umd.js +15 -15
- package/package.json +21 -13
- package/scripts/perf-test.ts +40 -0
- package/scripts/postinstall.cjs +15 -18
- package/scripts/utils.cjs +4 -19
- package/src/CodeDiff.vue +7 -5
- package/src/split/SplitLine.vue +9 -5
- package/src/unified/UnifiedLine.vue +1 -1
- package/src/utils.ts +17 -0
package/dist/v2/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--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: #1F2328;--color-diff-blob-addition-fg: #1F2328;--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: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--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: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--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: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--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: #1f883d;--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(31,35,40,.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-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px 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(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--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(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,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(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.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(31,35,40,.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-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.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(31,35,40,.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-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--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: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--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: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--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(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.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: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--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: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--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(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.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-scale-black: #1F2328;--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[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#fff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.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{position:sticky;top:0;z-index:1;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 .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.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 .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar{margin-left:auto;margin-right:1rem}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button{background-color:transparent;color:var(--color-fg-subtle);border:none}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button svg{fill:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button:hover{background-color:var(--color-btn-outline-hover-border)}.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 .current-diff{border:1px solid var(--color-border-muted)}.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 .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}.code-diff-view[data-v-8b22b876] :deep(td:nth-child(1)){display:none}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import Ue from "vue";
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
e = e || Ue, e && !e.__composition_api_installed__ && e.use(
|
|
3
|
+
import jn, { computed as he, ref as ke, watch as Zn } from "@vue/composition-api";
|
|
4
|
+
function Yn(e) {
|
|
5
|
+
e = e || Ue, e && !e.__composition_api_installed__ && e.use(jn);
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
Yn(Ue);
|
|
8
8
|
Ue.version;
|
|
9
9
|
function ne() {
|
|
10
10
|
}
|
|
11
11
|
ne.prototype = {
|
|
12
12
|
diff: function(n, s) {
|
|
13
|
-
var u,
|
|
14
|
-
typeof
|
|
13
|
+
var u, h = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = h.callback;
|
|
14
|
+
typeof h == "function" && (t = h, h = {}), this.options = h;
|
|
15
15
|
var r = this;
|
|
16
16
|
function i(y) {
|
|
17
17
|
return t ? (setTimeout(function() {
|
|
@@ -19,57 +19,57 @@ ne.prototype = {
|
|
|
19
19
|
}, 0), !0) : y;
|
|
20
20
|
}
|
|
21
21
|
n = this.castInput(n), s = this.castInput(s), n = this.removeEmpty(this.tokenize(n)), s = this.removeEmpty(this.tokenize(s));
|
|
22
|
-
var a = s.length,
|
|
23
|
-
|
|
24
|
-
var f = (u =
|
|
22
|
+
var a = s.length, l = n.length, o = 1, c = a + l;
|
|
23
|
+
h.maxEditLength && (c = Math.min(c, h.maxEditLength));
|
|
24
|
+
var f = (u = h.timeout) !== null && u !== void 0 ? u : 1 / 0, g = Date.now() + f, d = [{
|
|
25
25
|
oldPos: -1,
|
|
26
26
|
lastComponent: void 0
|
|
27
|
-
}], p = this.extractCommon(
|
|
28
|
-
if (
|
|
27
|
+
}], p = this.extractCommon(d[0], s, n, 0);
|
|
28
|
+
if (d[0].oldPos + 1 >= l && p + 1 >= a)
|
|
29
29
|
return i([{
|
|
30
30
|
value: this.join(s),
|
|
31
31
|
count: s.length
|
|
32
32
|
}]);
|
|
33
|
-
var _ = -1 / 0,
|
|
33
|
+
var _ = -1 / 0, b = 1 / 0;
|
|
34
34
|
function m() {
|
|
35
|
-
for (var y = Math.max(_, -
|
|
36
|
-
var T = void 0, N =
|
|
37
|
-
N && (
|
|
35
|
+
for (var y = Math.max(_, -o); y <= Math.min(b, o); y += 2) {
|
|
36
|
+
var T = void 0, N = d[y - 1], M = d[y + 1];
|
|
37
|
+
N && (d[y - 1] = void 0);
|
|
38
38
|
var R = !1;
|
|
39
|
-
if (
|
|
40
|
-
var C =
|
|
41
|
-
R =
|
|
39
|
+
if (M) {
|
|
40
|
+
var C = M.oldPos - y;
|
|
41
|
+
R = M && 0 <= C && C < a;
|
|
42
42
|
}
|
|
43
|
-
var L = N && N.oldPos + 1 <
|
|
43
|
+
var L = N && N.oldPos + 1 < l;
|
|
44
44
|
if (!R && !L) {
|
|
45
|
-
|
|
45
|
+
d[y] = void 0;
|
|
46
46
|
continue;
|
|
47
47
|
}
|
|
48
|
-
if (!L || R && N.oldPos + 1 <
|
|
49
|
-
return i(
|
|
50
|
-
|
|
48
|
+
if (!L || R && N.oldPos + 1 < M.oldPos ? T = r.addToPath(M, !0, void 0, 0) : T = r.addToPath(N, void 0, !0, 1), p = r.extractCommon(T, s, n, y), T.oldPos + 1 >= l && p + 1 >= a)
|
|
49
|
+
return i(Vn(r, T.lastComponent, s, n, r.useLongestToken));
|
|
50
|
+
d[y] = T, T.oldPos + 1 >= l && (b = Math.min(b, y - 1)), p + 1 >= a && (_ = Math.max(_, y + 1));
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
o++;
|
|
53
53
|
}
|
|
54
54
|
if (t)
|
|
55
55
|
(function y() {
|
|
56
56
|
setTimeout(function() {
|
|
57
|
-
if (
|
|
57
|
+
if (o > c || Date.now() > g)
|
|
58
58
|
return t();
|
|
59
59
|
m() || y();
|
|
60
60
|
}, 0);
|
|
61
61
|
})();
|
|
62
62
|
else
|
|
63
|
-
for (;
|
|
63
|
+
for (; o <= c && Date.now() <= g; ) {
|
|
64
64
|
var E = m();
|
|
65
65
|
if (E)
|
|
66
66
|
return E;
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
addToPath: function(n, s, u,
|
|
69
|
+
addToPath: function(n, s, u, h) {
|
|
70
70
|
var t = n.lastComponent;
|
|
71
71
|
return t && t.added === s && t.removed === u ? {
|
|
72
|
-
oldPos: n.oldPos +
|
|
72
|
+
oldPos: n.oldPos + h,
|
|
73
73
|
lastComponent: {
|
|
74
74
|
count: t.count + 1,
|
|
75
75
|
added: s,
|
|
@@ -77,7 +77,7 @@ ne.prototype = {
|
|
|
77
77
|
previousComponent: t.previousComponent
|
|
78
78
|
}
|
|
79
79
|
} : {
|
|
80
|
-
oldPos: n.oldPos +
|
|
80
|
+
oldPos: n.oldPos + h,
|
|
81
81
|
lastComponent: {
|
|
82
82
|
count: 1,
|
|
83
83
|
added: s,
|
|
@@ -86,11 +86,11 @@ ne.prototype = {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
},
|
|
89
|
-
extractCommon: function(n, s, u,
|
|
90
|
-
for (var t = s.length, r = u.length, i = n.oldPos, a = i -
|
|
91
|
-
a++, i++,
|
|
92
|
-
return
|
|
93
|
-
count:
|
|
89
|
+
extractCommon: function(n, s, u, h) {
|
|
90
|
+
for (var t = s.length, r = u.length, i = n.oldPos, a = i - h, l = 0; a + 1 < t && i + 1 < r && this.equals(s[a + 1], u[i + 1]); )
|
|
91
|
+
a++, i++, l++;
|
|
92
|
+
return l && (n.lastComponent = {
|
|
93
|
+
count: l,
|
|
94
94
|
previousComponent: n.lastComponent
|
|
95
95
|
}), n.oldPos = i, a;
|
|
96
96
|
},
|
|
@@ -112,37 +112,37 @@ ne.prototype = {
|
|
|
112
112
|
return n.join("");
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
-
function
|
|
115
|
+
function Vn(e, n, s, u, h) {
|
|
116
116
|
for (var t = [], r; n; )
|
|
117
117
|
t.push(n), r = n.previousComponent, delete n.previousComponent, n = r;
|
|
118
118
|
t.reverse();
|
|
119
|
-
for (var i = 0, a = t.length,
|
|
119
|
+
for (var i = 0, a = t.length, l = 0, o = 0; i < a; i++) {
|
|
120
120
|
var c = t[i];
|
|
121
121
|
if (c.removed) {
|
|
122
|
-
if (c.value = e.join(u.slice(
|
|
123
|
-
var
|
|
124
|
-
t[i - 1] = t[i], t[i] =
|
|
122
|
+
if (c.value = e.join(u.slice(o, o + c.count)), o += c.count, i && t[i - 1].added) {
|
|
123
|
+
var g = t[i - 1];
|
|
124
|
+
t[i - 1] = t[i], t[i] = g;
|
|
125
125
|
}
|
|
126
126
|
} else {
|
|
127
|
-
if (!c.added &&
|
|
128
|
-
var f = s.slice(
|
|
127
|
+
if (!c.added && h) {
|
|
128
|
+
var f = s.slice(l, l + c.count);
|
|
129
129
|
f = f.map(function(p, _) {
|
|
130
|
-
var
|
|
131
|
-
return
|
|
130
|
+
var b = u[o + _];
|
|
131
|
+
return b.length > p.length ? b : p;
|
|
132
132
|
}), c.value = e.join(f);
|
|
133
133
|
} else
|
|
134
|
-
c.value = e.join(s.slice(
|
|
135
|
-
|
|
134
|
+
c.value = e.join(s.slice(l, l + c.count));
|
|
135
|
+
l += c.count, c.added || (o += c.count);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
var
|
|
139
|
-
return a > 1 && typeof
|
|
138
|
+
var d = t[a - 1];
|
|
139
|
+
return a > 1 && typeof d.value == "string" && (d.added || d.removed) && e.equals("", d.value) && (t[a - 2].value += d.value, t.pop()), t;
|
|
140
140
|
}
|
|
141
|
-
var
|
|
142
|
-
function
|
|
143
|
-
return
|
|
141
|
+
var Xn = new ne();
|
|
142
|
+
function Jn(e, n, s) {
|
|
143
|
+
return Xn.diff(e, n, s);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function et(e, n) {
|
|
146
146
|
if (typeof e == "function")
|
|
147
147
|
n.callback = e;
|
|
148
148
|
else if (e)
|
|
@@ -150,141 +150,141 @@ function Xn(e, n) {
|
|
|
150
150
|
e.hasOwnProperty(s) && (n[s] = e[s]);
|
|
151
151
|
return n;
|
|
152
152
|
}
|
|
153
|
-
var Xe = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Je = /\S/,
|
|
154
|
-
|
|
153
|
+
var Xe = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Je = /\S/, Fe = new ne();
|
|
154
|
+
Fe.equals = function(e, n) {
|
|
155
155
|
return this.options.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e === n || this.options.ignoreWhitespace && !Je.test(e) && !Je.test(n);
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
Fe.tokenize = function(e) {
|
|
158
158
|
for (var n = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), s = 0; s < n.length - 1; s++)
|
|
159
159
|
!n[s + 1] && n[s + 2] && Xe.test(n[s]) && Xe.test(n[s + 2]) && (n[s] += n[s + 2], n.splice(s + 1, 2), s--);
|
|
160
160
|
return n;
|
|
161
161
|
};
|
|
162
|
-
function
|
|
163
|
-
return s =
|
|
162
|
+
function nt(e, n, s) {
|
|
163
|
+
return s = et(s, {
|
|
164
164
|
ignoreWhitespace: !0
|
|
165
|
-
}),
|
|
165
|
+
}), Fe.diff(e, n, s);
|
|
166
166
|
}
|
|
167
|
-
var
|
|
168
|
-
|
|
167
|
+
var En = new ne();
|
|
168
|
+
En.tokenize = function(e) {
|
|
169
169
|
this.options.stripTrailingCr && (e = e.replace(/\r\n/g, `
|
|
170
170
|
`));
|
|
171
171
|
var n = [], s = e.split(/(\n|\r\n)/);
|
|
172
172
|
s[s.length - 1] || s.pop();
|
|
173
173
|
for (var u = 0; u < s.length; u++) {
|
|
174
|
-
var
|
|
175
|
-
u % 2 && !this.options.newlineIsToken ? n[n.length - 1] +=
|
|
174
|
+
var h = s[u];
|
|
175
|
+
u % 2 && !this.options.newlineIsToken ? n[n.length - 1] += h : (this.options.ignoreWhitespace && (h = h.trim()), n.push(h));
|
|
176
176
|
}
|
|
177
177
|
return n;
|
|
178
178
|
};
|
|
179
|
-
var
|
|
180
|
-
|
|
179
|
+
var tt = new ne();
|
|
180
|
+
tt.tokenize = function(e) {
|
|
181
181
|
return e.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
182
182
|
};
|
|
183
|
-
var
|
|
184
|
-
|
|
183
|
+
var rt = new ne();
|
|
184
|
+
rt.tokenize = function(e) {
|
|
185
185
|
return e.split(/([{}:;,]|\s+)/);
|
|
186
186
|
};
|
|
187
|
-
function
|
|
187
|
+
function De(e) {
|
|
188
188
|
"@babel/helpers - typeof";
|
|
189
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
189
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? De = function(n) {
|
|
190
190
|
return typeof n;
|
|
191
|
-
} :
|
|
191
|
+
} : De = function(n) {
|
|
192
192
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
193
|
-
},
|
|
193
|
+
}, De(e);
|
|
194
194
|
}
|
|
195
|
-
var
|
|
195
|
+
var it = Object.prototype.toString, de = new ne();
|
|
196
196
|
de.useLongestToken = !0;
|
|
197
|
-
de.tokenize =
|
|
197
|
+
de.tokenize = En.tokenize;
|
|
198
198
|
de.castInput = function(e) {
|
|
199
|
-
var n = this.options, s = n.undefinedReplacement, u = n.stringifyReplacer,
|
|
199
|
+
var n = this.options, s = n.undefinedReplacement, u = n.stringifyReplacer, h = u === void 0 ? function(t, r) {
|
|
200
200
|
return typeof r == "undefined" ? s : r;
|
|
201
201
|
} : u;
|
|
202
|
-
return typeof e == "string" ? e : JSON.stringify(
|
|
202
|
+
return typeof e == "string" ? e : JSON.stringify(Pe(e, null, null, h), h, " ");
|
|
203
203
|
};
|
|
204
204
|
de.equals = function(e, n) {
|
|
205
205
|
return ne.prototype.equals.call(de, e.replace(/,([\r\n])/g, "$1"), n.replace(/,([\r\n])/g, "$1"));
|
|
206
206
|
};
|
|
207
|
-
function
|
|
208
|
-
n = n || [], s = s || [], u && (e = u(
|
|
207
|
+
function Pe(e, n, s, u, h) {
|
|
208
|
+
n = n || [], s = s || [], u && (e = u(h, e));
|
|
209
209
|
var t;
|
|
210
210
|
for (t = 0; t < n.length; t += 1)
|
|
211
211
|
if (n[t] === e)
|
|
212
212
|
return s[t];
|
|
213
213
|
var r;
|
|
214
|
-
if (
|
|
214
|
+
if (it.call(e) === "[object Array]") {
|
|
215
215
|
for (n.push(e), r = new Array(e.length), s.push(r), t = 0; t < e.length; t += 1)
|
|
216
|
-
r[t] =
|
|
216
|
+
r[t] = Pe(e[t], n, s, u, h);
|
|
217
217
|
return n.pop(), s.pop(), r;
|
|
218
218
|
}
|
|
219
|
-
if (e && e.toJSON && (e = e.toJSON()),
|
|
219
|
+
if (e && e.toJSON && (e = e.toJSON()), De(e) === "object" && e !== null) {
|
|
220
220
|
n.push(e), r = {}, s.push(r);
|
|
221
221
|
var i = [], a;
|
|
222
222
|
for (a in e)
|
|
223
223
|
e.hasOwnProperty(a) && i.push(a);
|
|
224
224
|
for (i.sort(), t = 0; t < i.length; t += 1)
|
|
225
|
-
a = i[t], r[a] =
|
|
225
|
+
a = i[t], r[a] = Pe(e[a], n, s, u, a);
|
|
226
226
|
n.pop(), s.pop();
|
|
227
227
|
} else
|
|
228
228
|
r = e;
|
|
229
229
|
return r;
|
|
230
230
|
}
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var xe = new ne();
|
|
232
|
+
xe.tokenize = function(e) {
|
|
233
233
|
return e.slice();
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
xe.join = xe.removeEmpty = function(e) {
|
|
236
236
|
return e;
|
|
237
237
|
};
|
|
238
|
-
function
|
|
238
|
+
function st(e) {
|
|
239
239
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var yn = { exports: {} };
|
|
242
242
|
(function(e) {
|
|
243
243
|
var n = function() {
|
|
244
244
|
this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
|
|
245
|
-
}, s = -1, u = 1,
|
|
245
|
+
}, s = -1, u = 1, h = 0;
|
|
246
246
|
n.Diff = function(t, r) {
|
|
247
247
|
return [t, r];
|
|
248
248
|
}, n.prototype.diff_main = function(t, r, i, a) {
|
|
249
249
|
typeof a == "undefined" && (this.Diff_Timeout <= 0 ? a = Number.MAX_VALUE : a = (/* @__PURE__ */ new Date()).getTime() + this.Diff_Timeout * 1e3);
|
|
250
|
-
var
|
|
250
|
+
var l = a;
|
|
251
251
|
if (t == null || r == null)
|
|
252
252
|
throw new Error("Null input. (diff_main)");
|
|
253
253
|
if (t == r)
|
|
254
|
-
return t ? [new n.Diff(
|
|
254
|
+
return t ? [new n.Diff(h, t)] : [];
|
|
255
255
|
typeof i == "undefined" && (i = !0);
|
|
256
|
-
var
|
|
256
|
+
var o = i, c = this.diff_commonPrefix(t, r), f = t.substring(0, c);
|
|
257
257
|
t = t.substring(c), r = r.substring(c), c = this.diff_commonSuffix(t, r);
|
|
258
|
-
var
|
|
258
|
+
var g = t.substring(t.length - c);
|
|
259
259
|
t = t.substring(0, t.length - c), r = r.substring(0, r.length - c);
|
|
260
|
-
var
|
|
261
|
-
return f &&
|
|
260
|
+
var d = this.diff_compute_(t, r, o, l);
|
|
261
|
+
return f && d.unshift(new n.Diff(h, f)), g && d.push(new n.Diff(h, g)), this.diff_cleanupMerge(d), d;
|
|
262
262
|
}, n.prototype.diff_compute_ = function(t, r, i, a) {
|
|
263
|
-
var
|
|
263
|
+
var l;
|
|
264
264
|
if (!t)
|
|
265
265
|
return [new n.Diff(u, r)];
|
|
266
266
|
if (!r)
|
|
267
267
|
return [new n.Diff(s, t)];
|
|
268
|
-
var
|
|
268
|
+
var o = t.length > r.length ? t : r, c = t.length > r.length ? r : t, f = o.indexOf(c);
|
|
269
269
|
if (f != -1)
|
|
270
|
-
return
|
|
271
|
-
new n.Diff(u,
|
|
272
|
-
new n.Diff(
|
|
270
|
+
return l = [
|
|
271
|
+
new n.Diff(u, o.substring(0, f)),
|
|
272
|
+
new n.Diff(h, c),
|
|
273
273
|
new n.Diff(
|
|
274
274
|
u,
|
|
275
|
-
|
|
275
|
+
o.substring(f + c.length)
|
|
276
276
|
)
|
|
277
|
-
], t.length > r.length && (
|
|
277
|
+
], t.length > r.length && (l[0][0] = l[2][0] = s), l;
|
|
278
278
|
if (c.length == 1)
|
|
279
279
|
return [
|
|
280
280
|
new n.Diff(s, t),
|
|
281
281
|
new n.Diff(u, r)
|
|
282
282
|
];
|
|
283
|
-
var
|
|
284
|
-
if (
|
|
285
|
-
var
|
|
283
|
+
var g = this.diff_halfMatch_(t, r);
|
|
284
|
+
if (g) {
|
|
285
|
+
var d = g[0], p = g[1], _ = g[2], b = g[3], m = g[4], E = this.diff_main(d, _, i, a), y = this.diff_main(p, b, i, a);
|
|
286
286
|
return E.concat(
|
|
287
|
-
[new n.Diff(
|
|
287
|
+
[new n.Diff(h, m)],
|
|
288
288
|
y
|
|
289
289
|
);
|
|
290
290
|
}
|
|
@@ -292,50 +292,50 @@ var mn = { exports: {} };
|
|
|
292
292
|
}, n.prototype.diff_lineMode_ = function(t, r, i) {
|
|
293
293
|
var a = this.diff_linesToChars_(t, r);
|
|
294
294
|
t = a.chars1, r = a.chars2;
|
|
295
|
-
var
|
|
296
|
-
this.diff_charsToLines_(
|
|
297
|
-
for (var c = 0, f = 0,
|
|
298
|
-
switch (
|
|
295
|
+
var l = a.lineArray, o = this.diff_main(t, r, !1, i);
|
|
296
|
+
this.diff_charsToLines_(o, l), this.diff_cleanupSemantic(o), o.push(new n.Diff(h, ""));
|
|
297
|
+
for (var c = 0, f = 0, g = 0, d = "", p = ""; c < o.length; ) {
|
|
298
|
+
switch (o[c][0]) {
|
|
299
299
|
case u:
|
|
300
|
-
|
|
300
|
+
g++, p += o[c][1];
|
|
301
301
|
break;
|
|
302
302
|
case s:
|
|
303
|
-
f++,
|
|
303
|
+
f++, d += o[c][1];
|
|
304
304
|
break;
|
|
305
|
-
case
|
|
306
|
-
if (f >= 1 &&
|
|
307
|
-
|
|
308
|
-
c - f -
|
|
309
|
-
f +
|
|
310
|
-
), c = c - f -
|
|
311
|
-
for (var _ = this.diff_main(
|
|
312
|
-
|
|
305
|
+
case h:
|
|
306
|
+
if (f >= 1 && g >= 1) {
|
|
307
|
+
o.splice(
|
|
308
|
+
c - f - g,
|
|
309
|
+
f + g
|
|
310
|
+
), c = c - f - g;
|
|
311
|
+
for (var _ = this.diff_main(d, p, !1, i), b = _.length - 1; b >= 0; b--)
|
|
312
|
+
o.splice(c, 0, _[b]);
|
|
313
313
|
c = c + _.length;
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
g = 0, f = 0, d = "", p = "";
|
|
316
316
|
break;
|
|
317
317
|
}
|
|
318
318
|
c++;
|
|
319
319
|
}
|
|
320
|
-
return
|
|
320
|
+
return o.pop(), o;
|
|
321
321
|
}, n.prototype.diff_bisect_ = function(t, r, i) {
|
|
322
|
-
for (var a = t.length,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
for (var _ = a -
|
|
326
|
-
for (var
|
|
327
|
-
var R = c +
|
|
328
|
-
|
|
329
|
-
for (var L = C -
|
|
322
|
+
for (var a = t.length, l = r.length, o = Math.ceil((a + l) / 2), c = o, f = 2 * o, g = new Array(f), d = new Array(f), p = 0; p < f; p++)
|
|
323
|
+
g[p] = -1, d[p] = -1;
|
|
324
|
+
g[c + 1] = 0, d[c + 1] = 0;
|
|
325
|
+
for (var _ = a - l, b = _ % 2 != 0, m = 0, E = 0, y = 0, T = 0, N = 0; N < o && !((/* @__PURE__ */ new Date()).getTime() > i); N++) {
|
|
326
|
+
for (var M = -N + m; M <= N - E; M += 2) {
|
|
327
|
+
var R = c + M, C;
|
|
328
|
+
M == -N || M != N && g[R - 1] < g[R + 1] ? C = g[R + 1] : C = g[R - 1] + 1;
|
|
329
|
+
for (var L = C - M; C < a && L < l && t.charAt(C) == r.charAt(L); )
|
|
330
330
|
C++, L++;
|
|
331
|
-
if (
|
|
331
|
+
if (g[R] = C, C > a)
|
|
332
332
|
E += 2;
|
|
333
|
-
else if (L >
|
|
333
|
+
else if (L > l)
|
|
334
334
|
m += 2;
|
|
335
|
-
else if (
|
|
336
|
-
var B = c + _ -
|
|
337
|
-
if (B >= 0 && B < f &&
|
|
338
|
-
var $ = a -
|
|
335
|
+
else if (b) {
|
|
336
|
+
var B = c + _ - M;
|
|
337
|
+
if (B >= 0 && B < f && d[B] != -1) {
|
|
338
|
+
var $ = a - d[B];
|
|
339
339
|
if (C >= $)
|
|
340
340
|
return this.diff_bisectSplit_(t, r, C, L, i);
|
|
341
341
|
}
|
|
@@ -343,17 +343,17 @@ var mn = { exports: {} };
|
|
|
343
343
|
}
|
|
344
344
|
for (var H = -N + y; H <= N - T; H += 2) {
|
|
345
345
|
var B = c + H, $;
|
|
346
|
-
H == -N || H != N &&
|
|
347
|
-
for (var K = $ - H; $ < a && K <
|
|
346
|
+
H == -N || H != N && d[B - 1] < d[B + 1] ? $ = d[B + 1] : $ = d[B - 1] + 1;
|
|
347
|
+
for (var K = $ - H; $ < a && K < l && t.charAt(a - $ - 1) == r.charAt(l - K - 1); )
|
|
348
348
|
$++, K++;
|
|
349
|
-
if (
|
|
349
|
+
if (d[B] = $, $ > a)
|
|
350
350
|
T += 2;
|
|
351
|
-
else if (K >
|
|
351
|
+
else if (K > l)
|
|
352
352
|
y += 2;
|
|
353
|
-
else if (!
|
|
353
|
+
else if (!b) {
|
|
354
354
|
var R = c + _ - H;
|
|
355
|
-
if (R >= 0 && R < f &&
|
|
356
|
-
var C =
|
|
355
|
+
if (R >= 0 && R < f && g[R] != -1) {
|
|
356
|
+
var C = g[R], L = c + C - R;
|
|
357
357
|
if ($ = a - $, C >= $)
|
|
358
358
|
return this.diff_bisectSplit_(t, r, C, L, i);
|
|
359
359
|
}
|
|
@@ -364,56 +364,56 @@ var mn = { exports: {} };
|
|
|
364
364
|
new n.Diff(s, t),
|
|
365
365
|
new n.Diff(u, r)
|
|
366
366
|
];
|
|
367
|
-
}, n.prototype.diff_bisectSplit_ = function(t, r, i, a,
|
|
368
|
-
var
|
|
369
|
-
return
|
|
367
|
+
}, n.prototype.diff_bisectSplit_ = function(t, r, i, a, l) {
|
|
368
|
+
var o = t.substring(0, i), c = r.substring(0, a), f = t.substring(i), g = r.substring(a), d = this.diff_main(o, c, !1, l), p = this.diff_main(f, g, !1, l);
|
|
369
|
+
return d.concat(p);
|
|
370
370
|
}, n.prototype.diff_linesToChars_ = function(t, r) {
|
|
371
371
|
var i = [], a = {};
|
|
372
372
|
i[0] = "";
|
|
373
|
-
function
|
|
374
|
-
for (var
|
|
375
|
-
_ =
|
|
376
|
-
`, p), _ == -1 && (_ =
|
|
377
|
-
var m =
|
|
378
|
-
(a.hasOwnProperty ? a.hasOwnProperty(m) : a[m] !== void 0) ?
|
|
373
|
+
function l(g) {
|
|
374
|
+
for (var d = "", p = 0, _ = -1, b = i.length; _ < g.length - 1; ) {
|
|
375
|
+
_ = g.indexOf(`
|
|
376
|
+
`, p), _ == -1 && (_ = g.length - 1);
|
|
377
|
+
var m = g.substring(p, _ + 1);
|
|
378
|
+
(a.hasOwnProperty ? a.hasOwnProperty(m) : a[m] !== void 0) ? d += String.fromCharCode(a[m]) : (b == o && (m = g.substring(p), _ = g.length), d += String.fromCharCode(b), a[m] = b, i[b++] = m), p = _ + 1;
|
|
379
379
|
}
|
|
380
|
-
return
|
|
380
|
+
return d;
|
|
381
381
|
}
|
|
382
|
-
var
|
|
383
|
-
|
|
384
|
-
var f =
|
|
382
|
+
var o = 4e4, c = l(t);
|
|
383
|
+
o = 65535;
|
|
384
|
+
var f = l(r);
|
|
385
385
|
return { chars1: c, chars2: f, lineArray: i };
|
|
386
386
|
}, n.prototype.diff_charsToLines_ = function(t, r) {
|
|
387
387
|
for (var i = 0; i < t.length; i++) {
|
|
388
|
-
for (var a = t[i][1],
|
|
389
|
-
o
|
|
390
|
-
t[i][1] =
|
|
388
|
+
for (var a = t[i][1], l = [], o = 0; o < a.length; o++)
|
|
389
|
+
l[o] = r[a.charCodeAt(o)];
|
|
390
|
+
t[i][1] = l.join("");
|
|
391
391
|
}
|
|
392
392
|
}, n.prototype.diff_commonPrefix = function(t, r) {
|
|
393
393
|
if (!t || !r || t.charAt(0) != r.charAt(0))
|
|
394
394
|
return 0;
|
|
395
|
-
for (var i = 0, a = Math.min(t.length, r.length),
|
|
396
|
-
t.substring(
|
|
397
|
-
return
|
|
395
|
+
for (var i = 0, a = Math.min(t.length, r.length), l = a, o = 0; i < l; )
|
|
396
|
+
t.substring(o, l) == r.substring(o, l) ? (i = l, o = i) : a = l, l = Math.floor((a - i) / 2 + i);
|
|
397
|
+
return l;
|
|
398
398
|
}, n.prototype.diff_commonSuffix = function(t, r) {
|
|
399
399
|
if (!t || !r || t.charAt(t.length - 1) != r.charAt(r.length - 1))
|
|
400
400
|
return 0;
|
|
401
|
-
for (var i = 0, a = Math.min(t.length, r.length),
|
|
402
|
-
t.substring(t.length -
|
|
403
|
-
return
|
|
401
|
+
for (var i = 0, a = Math.min(t.length, r.length), l = a, o = 0; i < l; )
|
|
402
|
+
t.substring(t.length - l, t.length - o) == r.substring(r.length - l, r.length - o) ? (i = l, o = i) : a = l, l = Math.floor((a - i) / 2 + i);
|
|
403
|
+
return l;
|
|
404
404
|
}, n.prototype.diff_commonOverlap_ = function(t, r) {
|
|
405
405
|
var i = t.length, a = r.length;
|
|
406
406
|
if (i == 0 || a == 0)
|
|
407
407
|
return 0;
|
|
408
408
|
i > a ? t = t.substring(i - a) : i < a && (r = r.substring(0, i));
|
|
409
|
-
var
|
|
409
|
+
var l = Math.min(i, a);
|
|
410
410
|
if (t == r)
|
|
411
|
-
return
|
|
412
|
-
for (var
|
|
413
|
-
var f = t.substring(
|
|
414
|
-
if (
|
|
415
|
-
return
|
|
416
|
-
c +=
|
|
411
|
+
return l;
|
|
412
|
+
for (var o = 0, c = 1; ; ) {
|
|
413
|
+
var f = t.substring(l - c), g = r.indexOf(f);
|
|
414
|
+
if (g == -1)
|
|
415
|
+
return o;
|
|
416
|
+
c += g, (g == 0 || t.substring(l - c) == r.substring(0, c)) && (o = c, c++);
|
|
417
417
|
}
|
|
418
418
|
}, n.prototype.diff_halfMatch_ = function(t, r) {
|
|
419
419
|
if (this.Diff_Timeout <= 0)
|
|
@@ -421,17 +421,17 @@ var mn = { exports: {} };
|
|
|
421
421
|
var i = t.length > r.length ? t : r, a = t.length > r.length ? r : t;
|
|
422
422
|
if (i.length < 4 || a.length * 2 < i.length)
|
|
423
423
|
return null;
|
|
424
|
-
var
|
|
425
|
-
function
|
|
426
|
-
for (var N = E.substring(T, T + Math.floor(E.length / 4)),
|
|
427
|
-
var H =
|
|
424
|
+
var l = this;
|
|
425
|
+
function o(E, y, T) {
|
|
426
|
+
for (var N = E.substring(T, T + Math.floor(E.length / 4)), M = -1, R = "", C, L, B, $; (M = y.indexOf(N, M + 1)) != -1; ) {
|
|
427
|
+
var H = l.diff_commonPrefix(
|
|
428
428
|
E.substring(T),
|
|
429
|
-
y.substring(
|
|
430
|
-
), K =
|
|
429
|
+
y.substring(M)
|
|
430
|
+
), K = l.diff_commonSuffix(
|
|
431
431
|
E.substring(0, T),
|
|
432
|
-
y.substring(0,
|
|
432
|
+
y.substring(0, M)
|
|
433
433
|
);
|
|
434
|
-
R.length < K + H && (R = y.substring(
|
|
434
|
+
R.length < K + H && (R = y.substring(M - K, M) + y.substring(M, M + H), C = E.substring(0, T - K), L = E.substring(T + H), B = y.substring(0, M - K), $ = y.substring(M + H));
|
|
435
435
|
}
|
|
436
436
|
return R.length * 2 >= E.length ? [
|
|
437
437
|
C,
|
|
@@ -441,123 +441,123 @@ var mn = { exports: {} };
|
|
|
441
441
|
R
|
|
442
442
|
] : null;
|
|
443
443
|
}
|
|
444
|
-
var c =
|
|
444
|
+
var c = o(
|
|
445
445
|
i,
|
|
446
446
|
a,
|
|
447
447
|
Math.ceil(i.length / 4)
|
|
448
|
-
), f =
|
|
448
|
+
), f = o(
|
|
449
449
|
i,
|
|
450
450
|
a,
|
|
451
451
|
Math.ceil(i.length / 2)
|
|
452
|
-
),
|
|
452
|
+
), g;
|
|
453
453
|
if (!c && !f)
|
|
454
454
|
return null;
|
|
455
|
-
f ? c ?
|
|
456
|
-
var
|
|
457
|
-
t.length > r.length ? (
|
|
458
|
-
var m =
|
|
459
|
-
return [
|
|
455
|
+
f ? c ? g = c[4].length > f[4].length ? c : f : g = f : g = c;
|
|
456
|
+
var d, p, _, b;
|
|
457
|
+
t.length > r.length ? (d = g[0], p = g[1], _ = g[2], b = g[3]) : (_ = g[0], b = g[1], d = g[2], p = g[3]);
|
|
458
|
+
var m = g[4];
|
|
459
|
+
return [d, p, _, b, m];
|
|
460
460
|
}, n.prototype.diff_cleanupSemantic = function(t) {
|
|
461
|
-
for (var r = !1, i = [], a = 0,
|
|
462
|
-
t[
|
|
463
|
-
|
|
464
|
-
|
|
461
|
+
for (var r = !1, i = [], a = 0, l = null, o = 0, c = 0, f = 0, g = 0, d = 0; o < t.length; )
|
|
462
|
+
t[o][0] == h ? (i[a++] = o, c = g, f = d, g = 0, d = 0, l = t[o][1]) : (t[o][0] == u ? g += t[o][1].length : d += t[o][1].length, l && l.length <= Math.max(c, f) && l.length <= Math.max(
|
|
463
|
+
g,
|
|
464
|
+
d
|
|
465
465
|
) && (t.splice(
|
|
466
466
|
i[a - 1],
|
|
467
467
|
0,
|
|
468
|
-
new n.Diff(s,
|
|
469
|
-
), t[i[a - 1] + 1][0] = u, a--, a--,
|
|
470
|
-
for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t),
|
|
471
|
-
if (t[
|
|
472
|
-
var p = t[
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
_.substring(0,
|
|
476
|
-
)), t[
|
|
477
|
-
|
|
468
|
+
new n.Diff(s, l)
|
|
469
|
+
), t[i[a - 1] + 1][0] = u, a--, a--, o = a > 0 ? i[a - 1] : -1, c = 0, f = 0, g = 0, d = 0, l = null, r = !0)), o++;
|
|
470
|
+
for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t), o = 1; o < t.length; ) {
|
|
471
|
+
if (t[o - 1][0] == s && t[o][0] == u) {
|
|
472
|
+
var p = t[o - 1][1], _ = t[o][1], b = this.diff_commonOverlap_(p, _), m = this.diff_commonOverlap_(_, p);
|
|
473
|
+
b >= m ? (b >= p.length / 2 || b >= _.length / 2) && (t.splice(o, 0, new n.Diff(
|
|
474
|
+
h,
|
|
475
|
+
_.substring(0, b)
|
|
476
|
+
)), t[o - 1][1] = p.substring(0, p.length - b), t[o + 1][1] = _.substring(b), o++) : (m >= p.length / 2 || m >= _.length / 2) && (t.splice(o, 0, new n.Diff(
|
|
477
|
+
h,
|
|
478
478
|
p.substring(0, m)
|
|
479
|
-
)), t[
|
|
479
|
+
)), t[o - 1][0] = u, t[o - 1][1] = _.substring(0, _.length - m), t[o + 1][0] = s, t[o + 1][1] = p.substring(m), o++), o++;
|
|
480
480
|
}
|
|
481
|
-
|
|
481
|
+
o++;
|
|
482
482
|
}
|
|
483
483
|
}, n.prototype.diff_cleanupSemanticLossless = function(t) {
|
|
484
484
|
function r(m, E) {
|
|
485
485
|
if (!m || !E)
|
|
486
486
|
return 6;
|
|
487
|
-
var y = m.charAt(m.length - 1), T = E.charAt(0), N = y.match(n.nonAlphaNumericRegex_),
|
|
488
|
-
return $ || H ? 5 : L || B ? 4 : N && !R && C ? 3 : R || C ? 2 : N ||
|
|
487
|
+
var y = m.charAt(m.length - 1), T = E.charAt(0), N = y.match(n.nonAlphaNumericRegex_), M = T.match(n.nonAlphaNumericRegex_), R = N && y.match(n.whitespaceRegex_), C = M && T.match(n.whitespaceRegex_), L = R && y.match(n.linebreakRegex_), B = C && T.match(n.linebreakRegex_), $ = L && m.match(n.blanklineEndRegex_), H = B && E.match(n.blanklineStartRegex_);
|
|
488
|
+
return $ || H ? 5 : L || B ? 4 : N && !R && C ? 3 : R || C ? 2 : N || M ? 1 : 0;
|
|
489
489
|
}
|
|
490
490
|
for (var i = 1; i < t.length - 1; ) {
|
|
491
|
-
if (t[i - 1][0] ==
|
|
492
|
-
var a = t[i - 1][1],
|
|
491
|
+
if (t[i - 1][0] == h && t[i + 1][0] == h) {
|
|
492
|
+
var a = t[i - 1][1], l = t[i][1], o = t[i + 1][1], c = this.diff_commonSuffix(a, l);
|
|
493
493
|
if (c) {
|
|
494
|
-
var f =
|
|
495
|
-
a = a.substring(0, a.length - c),
|
|
494
|
+
var f = l.substring(l.length - c);
|
|
495
|
+
a = a.substring(0, a.length - c), l = f + l.substring(0, l.length - c), o = f + o;
|
|
496
496
|
}
|
|
497
|
-
for (var
|
|
498
|
-
a +=
|
|
499
|
-
var
|
|
500
|
-
|
|
497
|
+
for (var g = a, d = l, p = o, _ = r(a, l) + r(l, o); l.charAt(0) === o.charAt(0); ) {
|
|
498
|
+
a += l.charAt(0), l = l.substring(1) + o.charAt(0), o = o.substring(1);
|
|
499
|
+
var b = r(a, l) + r(l, o);
|
|
500
|
+
b >= _ && (_ = b, g = a, d = l, p = o);
|
|
501
501
|
}
|
|
502
|
-
t[i - 1][1] !=
|
|
502
|
+
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--));
|
|
503
503
|
}
|
|
504
504
|
i++;
|
|
505
505
|
}
|
|
506
506
|
}, 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) {
|
|
507
|
-
for (var r = !1, i = [], a = 0,
|
|
508
|
-
t[
|
|
507
|
+
for (var r = !1, i = [], a = 0, l = null, o = 0, c = !1, f = !1, g = !1, d = !1; o < t.length; )
|
|
508
|
+
t[o][0] == h ? (t[o][1].length < this.Diff_EditCost && (g || d) ? (i[a++] = o, c = g, f = d, l = t[o][1]) : (a = 0, l = null), g = d = !1) : (t[o][0] == s ? d = !0 : g = !0, l && (c && f && g && d || l.length < this.Diff_EditCost / 2 && c + f + g + d == 3) && (t.splice(
|
|
509
509
|
i[a - 1],
|
|
510
510
|
0,
|
|
511
|
-
new n.Diff(s,
|
|
512
|
-
), t[i[a - 1] + 1][0] = u, a--,
|
|
511
|
+
new n.Diff(s, l)
|
|
512
|
+
), t[i[a - 1] + 1][0] = u, a--, l = null, c && f ? (g = d = !0, a = 0) : (a--, o = a > 0 ? i[a - 1] : -1, g = d = !1), r = !0)), o++;
|
|
513
513
|
r && this.diff_cleanupMerge(t);
|
|
514
514
|
}, n.prototype.diff_cleanupMerge = function(t) {
|
|
515
|
-
t.push(new n.Diff(
|
|
516
|
-
for (var r = 0, i = 0, a = 0,
|
|
515
|
+
t.push(new n.Diff(h, ""));
|
|
516
|
+
for (var r = 0, i = 0, a = 0, l = "", o = "", c; r < t.length; )
|
|
517
517
|
switch (t[r][0]) {
|
|
518
518
|
case u:
|
|
519
|
-
a++,
|
|
519
|
+
a++, o += t[r][1], r++;
|
|
520
520
|
break;
|
|
521
521
|
case s:
|
|
522
|
-
i++,
|
|
522
|
+
i++, l += t[r][1], r++;
|
|
523
523
|
break;
|
|
524
|
-
case
|
|
525
|
-
i + a > 1 ? (i !== 0 && a !== 0 && (c = this.diff_commonPrefix(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
)), r++),
|
|
524
|
+
case h:
|
|
525
|
+
i + a > 1 ? (i !== 0 && a !== 0 && (c = this.diff_commonPrefix(o, l), c !== 0 && (r - i - a > 0 && t[r - i - a - 1][0] == h ? t[r - i - a - 1][1] += o.substring(0, c) : (t.splice(0, 0, new n.Diff(
|
|
526
|
+
h,
|
|
527
|
+
o.substring(0, c)
|
|
528
|
+
)), r++), o = o.substring(c), l = l.substring(c)), c = this.diff_commonSuffix(o, l), c !== 0 && (t[r][1] = o.substring(o.length - c) + t[r][1], o = o.substring(0, o.length - c), l = l.substring(0, l.length - c))), r -= i + a, t.splice(r, i + a), l.length && (t.splice(
|
|
529
529
|
r,
|
|
530
530
|
0,
|
|
531
|
-
new n.Diff(s,
|
|
532
|
-
), r++),
|
|
531
|
+
new n.Diff(s, l)
|
|
532
|
+
), r++), o.length && (t.splice(
|
|
533
533
|
r,
|
|
534
534
|
0,
|
|
535
|
-
new n.Diff(u,
|
|
536
|
-
), r++), r++) : r !== 0 && t[r - 1][0] ==
|
|
535
|
+
new n.Diff(u, o)
|
|
536
|
+
), r++), r++) : r !== 0 && t[r - 1][0] == h ? (t[r - 1][1] += t[r][1], t.splice(r, 1)) : r++, a = 0, i = 0, l = "", o = "";
|
|
537
537
|
break;
|
|
538
538
|
}
|
|
539
539
|
t[t.length - 1][1] === "" && t.pop();
|
|
540
540
|
var f = !1;
|
|
541
541
|
for (r = 1; r < t.length - 1; )
|
|
542
|
-
t[r - 1][0] ==
|
|
542
|
+
t[r - 1][0] == h && t[r + 1][0] == h && (t[r][1].substring(t[r][1].length - t[r - 1][1].length) == t[r - 1][1] ? (t[r][1] = t[r - 1][1] + t[r][1].substring(0, t[r][1].length - t[r - 1][1].length), t[r + 1][1] = t[r - 1][1] + t[r + 1][1], t.splice(r - 1, 1), f = !0) : t[r][1].substring(0, t[r + 1][1].length) == t[r + 1][1] && (t[r - 1][1] += t[r + 1][1], t[r][1] = t[r][1].substring(t[r + 1][1].length) + t[r + 1][1], t.splice(r + 1, 1), f = !0)), r++;
|
|
543
543
|
f && this.diff_cleanupMerge(t);
|
|
544
544
|
}, n.prototype.diff_xIndex = function(t, r) {
|
|
545
|
-
var i = 0, a = 0,
|
|
545
|
+
var i = 0, a = 0, l = 0, o = 0, c;
|
|
546
546
|
for (c = 0; c < t.length && (t[c][0] !== u && (i += t[c][1].length), t[c][0] !== s && (a += t[c][1].length), !(i > r)); c++)
|
|
547
|
-
|
|
548
|
-
return t.length != c && t[c][0] === s ?
|
|
547
|
+
l = i, o = a;
|
|
548
|
+
return t.length != c && t[c][0] === s ? o : o + (r - l);
|
|
549
549
|
}, n.prototype.diff_prettyHtml = function(t) {
|
|
550
|
-
for (var r = [], i = /&/g, a = /</g,
|
|
551
|
-
var f = t[c][0],
|
|
550
|
+
for (var r = [], i = /&/g, a = /</g, l = />/g, o = /\n/g, c = 0; c < t.length; c++) {
|
|
551
|
+
var f = t[c][0], g = t[c][1], d = g.replace(i, "&").replace(a, "<").replace(l, ">").replace(o, "¶<br>");
|
|
552
552
|
switch (f) {
|
|
553
553
|
case u:
|
|
554
|
-
r[c] = '<ins style="background:#e6ffe6;">' +
|
|
554
|
+
r[c] = '<ins style="background:#e6ffe6;">' + d + "</ins>";
|
|
555
555
|
break;
|
|
556
556
|
case s:
|
|
557
|
-
r[c] = '<del style="background:#ffe6e6;">' +
|
|
557
|
+
r[c] = '<del style="background:#ffe6e6;">' + d + "</del>";
|
|
558
558
|
break;
|
|
559
|
-
case
|
|
560
|
-
r[c] = "<span>" +
|
|
559
|
+
case h:
|
|
560
|
+
r[c] = "<span>" + d + "</span>";
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
@@ -571,16 +571,16 @@ var mn = { exports: {} };
|
|
|
571
571
|
t[i][0] !== s && (r[i] = t[i][1]);
|
|
572
572
|
return r.join("");
|
|
573
573
|
}, n.prototype.diff_levenshtein = function(t) {
|
|
574
|
-
for (var r = 0, i = 0, a = 0,
|
|
575
|
-
var
|
|
576
|
-
switch (
|
|
574
|
+
for (var r = 0, i = 0, a = 0, l = 0; l < t.length; l++) {
|
|
575
|
+
var o = t[l][0], c = t[l][1];
|
|
576
|
+
switch (o) {
|
|
577
577
|
case u:
|
|
578
578
|
i += c.length;
|
|
579
579
|
break;
|
|
580
580
|
case s:
|
|
581
581
|
a += c.length;
|
|
582
582
|
break;
|
|
583
|
-
case
|
|
583
|
+
case h:
|
|
584
584
|
r += Math.max(i, a), i = 0, a = 0;
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
@@ -595,15 +595,15 @@ var mn = { exports: {} };
|
|
|
595
595
|
case s:
|
|
596
596
|
r[i] = "-" + t[i][1].length;
|
|
597
597
|
break;
|
|
598
|
-
case
|
|
598
|
+
case h:
|
|
599
599
|
r[i] = "=" + t[i][1].length;
|
|
600
600
|
break;
|
|
601
601
|
}
|
|
602
602
|
return r.join(" ").replace(/%20/g, " ");
|
|
603
603
|
}, n.prototype.diff_fromDelta = function(t, r) {
|
|
604
|
-
for (var i = [], a = 0,
|
|
605
|
-
var f =
|
|
606
|
-
switch (
|
|
604
|
+
for (var i = [], a = 0, l = 0, o = r.split(/\t/g), c = 0; c < o.length; c++) {
|
|
605
|
+
var f = o[c].substring(1);
|
|
606
|
+
switch (o[c].charAt(0)) {
|
|
607
607
|
case "+":
|
|
608
608
|
try {
|
|
609
609
|
i[a++] = new n.Diff(u, decodeURI(f));
|
|
@@ -613,19 +613,19 @@ var mn = { exports: {} };
|
|
|
613
613
|
break;
|
|
614
614
|
case "-":
|
|
615
615
|
case "=":
|
|
616
|
-
var
|
|
617
|
-
if (isNaN(
|
|
616
|
+
var g = parseInt(f, 10);
|
|
617
|
+
if (isNaN(g) || g < 0)
|
|
618
618
|
throw new Error("Invalid number in diff_fromDelta: " + f);
|
|
619
|
-
var
|
|
620
|
-
|
|
619
|
+
var d = t.substring(l, l += g);
|
|
620
|
+
o[c].charAt(0) == "=" ? i[a++] = new n.Diff(h, d) : i[a++] = new n.Diff(s, d);
|
|
621
621
|
break;
|
|
622
622
|
default:
|
|
623
|
-
if (
|
|
624
|
-
throw new Error("Invalid diff operation in diff_fromDelta: " +
|
|
623
|
+
if (o[c])
|
|
624
|
+
throw new Error("Invalid diff operation in diff_fromDelta: " + o[c]);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
if (
|
|
628
|
-
throw new Error("Delta length (" +
|
|
627
|
+
if (l != t.length)
|
|
628
|
+
throw new Error("Delta length (" + l + ") does not equal source text length (" + t.length + ").");
|
|
629
629
|
return i;
|
|
630
630
|
}, n.prototype.match_main = function(t, r, i) {
|
|
631
631
|
if (t == null || r == null || i == null)
|
|
@@ -634,25 +634,25 @@ var mn = { exports: {} };
|
|
|
634
634
|
}, n.prototype.match_bitap_ = function(t, r, i) {
|
|
635
635
|
if (r.length > this.Match_MaxBits)
|
|
636
636
|
throw new Error("Pattern too long for this browser.");
|
|
637
|
-
var a = this.match_alphabet_(r),
|
|
638
|
-
function
|
|
637
|
+
var a = this.match_alphabet_(r), l = this;
|
|
638
|
+
function o(C, L) {
|
|
639
639
|
var B = C / r.length, $ = Math.abs(i - L);
|
|
640
|
-
return
|
|
640
|
+
return l.Match_Distance ? B + $ / l.Match_Distance : $ ? 1 : B;
|
|
641
641
|
}
|
|
642
642
|
var c = this.Match_Threshold, f = t.indexOf(r, i);
|
|
643
|
-
f != -1 && (c = Math.min(
|
|
644
|
-
var
|
|
643
|
+
f != -1 && (c = Math.min(o(0, f), c), f = t.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(o(0, f), c)));
|
|
644
|
+
var g = 1 << r.length - 1;
|
|
645
645
|
f = -1;
|
|
646
|
-
for (var
|
|
647
|
-
for (
|
|
648
|
-
|
|
646
|
+
for (var d, p, _ = r.length + t.length, b, m = 0; m < r.length; m++) {
|
|
647
|
+
for (d = 0, p = _; d < p; )
|
|
648
|
+
o(m, i + p) <= c ? d = p : _ = p, p = Math.floor((_ - d) / 2 + d);
|
|
649
649
|
_ = p;
|
|
650
650
|
var E = Math.max(1, i - p + 1), y = Math.min(i + p, t.length) + r.length, T = Array(y + 2);
|
|
651
651
|
T[y + 1] = (1 << m) - 1;
|
|
652
652
|
for (var N = y; N >= E; N--) {
|
|
653
|
-
var
|
|
654
|
-
if (m === 0 ? T[N] = (T[N + 1] << 1 | 1) &
|
|
655
|
-
var R =
|
|
653
|
+
var M = a[t.charAt(N - 1)];
|
|
654
|
+
if (m === 0 ? T[N] = (T[N + 1] << 1 | 1) & M : T[N] = (T[N + 1] << 1 | 1) & M | ((b[N + 1] | b[N]) << 1 | 1) | b[N + 1], T[N] & g) {
|
|
655
|
+
var R = o(m, N - 1);
|
|
656
656
|
if (R <= c)
|
|
657
657
|
if (c = R, f = N - 1, f > i)
|
|
658
658
|
E = Math.max(1, 2 * i - f);
|
|
@@ -660,9 +660,9 @@ var mn = { exports: {} };
|
|
|
660
660
|
break;
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
if (
|
|
663
|
+
if (o(m + 1, i) > c)
|
|
664
664
|
break;
|
|
665
|
-
|
|
665
|
+
b = T;
|
|
666
666
|
}
|
|
667
667
|
return f;
|
|
668
668
|
}, n.prototype.match_alphabet_ = function(t) {
|
|
@@ -681,62 +681,62 @@ var mn = { exports: {} };
|
|
|
681
681
|
t.start2 + t.length1 + a
|
|
682
682
|
);
|
|
683
683
|
a += this.Patch_Margin;
|
|
684
|
-
var
|
|
685
|
-
|
|
686
|
-
var
|
|
684
|
+
var l = r.substring(t.start2 - a, t.start2);
|
|
685
|
+
l && t.diffs.unshift(new n.Diff(h, l));
|
|
686
|
+
var o = r.substring(
|
|
687
687
|
t.start2 + t.length1,
|
|
688
688
|
t.start2 + t.length1 + a
|
|
689
689
|
);
|
|
690
|
-
|
|
690
|
+
o && t.diffs.push(new n.Diff(h, o)), t.start1 -= l.length, t.start2 -= l.length, t.length1 += l.length + o.length, t.length2 += l.length + o.length;
|
|
691
691
|
}
|
|
692
692
|
}, n.prototype.patch_make = function(t, r, i) {
|
|
693
|
-
var a,
|
|
693
|
+
var a, l;
|
|
694
694
|
if (typeof t == "string" && typeof r == "string" && typeof i == "undefined")
|
|
695
695
|
a = /** @type {string} */
|
|
696
|
-
t,
|
|
696
|
+
t, l = this.diff_main(
|
|
697
697
|
a,
|
|
698
698
|
/** @type {string} */
|
|
699
699
|
r,
|
|
700
700
|
!0
|
|
701
|
-
),
|
|
701
|
+
), l.length > 2 && (this.diff_cleanupSemantic(l), this.diff_cleanupEfficiency(l));
|
|
702
702
|
else if (t && typeof t == "object" && typeof r == "undefined" && typeof i == "undefined")
|
|
703
|
-
|
|
704
|
-
t, a = this.diff_text1(
|
|
703
|
+
l = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
704
|
+
t, a = this.diff_text1(l);
|
|
705
705
|
else if (typeof t == "string" && r && typeof r == "object" && typeof i == "undefined")
|
|
706
706
|
a = /** @type {string} */
|
|
707
|
-
t,
|
|
707
|
+
t, l = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
708
708
|
r;
|
|
709
709
|
else if (typeof t == "string" && typeof r == "string" && i && typeof i == "object")
|
|
710
710
|
a = /** @type {string} */
|
|
711
|
-
t,
|
|
711
|
+
t, l = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
712
712
|
i;
|
|
713
713
|
else
|
|
714
714
|
throw new Error("Unknown call format to patch_make.");
|
|
715
|
-
if (
|
|
715
|
+
if (l.length === 0)
|
|
716
716
|
return [];
|
|
717
|
-
for (var
|
|
718
|
-
var m =
|
|
719
|
-
switch (!f && m !==
|
|
717
|
+
for (var o = [], c = new n.patch_obj(), f = 0, g = 0, d = 0, p = a, _ = a, b = 0; b < l.length; b++) {
|
|
718
|
+
var m = l[b][0], E = l[b][1];
|
|
719
|
+
switch (!f && m !== h && (c.start1 = g, c.start2 = d), m) {
|
|
720
720
|
case u:
|
|
721
|
-
c.diffs[f++] =
|
|
721
|
+
c.diffs[f++] = l[b], c.length2 += E.length, _ = _.substring(0, d) + E + _.substring(d);
|
|
722
722
|
break;
|
|
723
723
|
case s:
|
|
724
|
-
c.length1 += E.length, c.diffs[f++] =
|
|
724
|
+
c.length1 += E.length, c.diffs[f++] = l[b], _ = _.substring(0, d) + _.substring(d + E.length);
|
|
725
725
|
break;
|
|
726
|
-
case
|
|
727
|
-
E.length <= 2 * this.Patch_Margin && f &&
|
|
726
|
+
case h:
|
|
727
|
+
E.length <= 2 * this.Patch_Margin && f && l.length != b + 1 ? (c.diffs[f++] = l[b], c.length1 += E.length, c.length2 += E.length) : E.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, p), o.push(c), c = new n.patch_obj(), f = 0, p = _, g = d);
|
|
728
728
|
break;
|
|
729
729
|
}
|
|
730
|
-
m !== u && (
|
|
730
|
+
m !== u && (g += E.length), m !== s && (d += E.length);
|
|
731
731
|
}
|
|
732
|
-
return f && (this.patch_addContext_(c, p),
|
|
732
|
+
return f && (this.patch_addContext_(c, p), o.push(c)), o;
|
|
733
733
|
}, n.prototype.patch_deepCopy = function(t) {
|
|
734
734
|
for (var r = [], i = 0; i < t.length; i++) {
|
|
735
|
-
var a = t[i],
|
|
736
|
-
|
|
737
|
-
for (var
|
|
738
|
-
|
|
739
|
-
|
|
735
|
+
var a = t[i], l = new n.patch_obj();
|
|
736
|
+
l.diffs = [];
|
|
737
|
+
for (var o = 0; o < a.diffs.length; o++)
|
|
738
|
+
l.diffs[o] = new n.Diff(a.diffs[o][0], a.diffs[o][1]);
|
|
739
|
+
l.start1 = a.start1, l.start2 = a.start2, l.length1 = a.length1, l.length2 = a.length2, r[i] = l;
|
|
740
740
|
}
|
|
741
741
|
return r;
|
|
742
742
|
}, n.prototype.patch_apply = function(t, r) {
|
|
@@ -745,58 +745,58 @@ var mn = { exports: {} };
|
|
|
745
745
|
t = this.patch_deepCopy(t);
|
|
746
746
|
var i = this.patch_addPadding(t);
|
|
747
747
|
r = i + r + i, this.patch_splitMax(t);
|
|
748
|
-
for (var a = 0,
|
|
749
|
-
var c = t[
|
|
750
|
-
if (f.length > this.Match_MaxBits ? (
|
|
748
|
+
for (var a = 0, l = [], o = 0; o < t.length; o++) {
|
|
749
|
+
var c = t[o].start2 + a, f = this.diff_text1(t[o].diffs), g, d = -1;
|
|
750
|
+
if (f.length > this.Match_MaxBits ? (g = this.match_main(
|
|
751
751
|
r,
|
|
752
752
|
f.substring(0, this.Match_MaxBits),
|
|
753
753
|
c
|
|
754
|
-
),
|
|
754
|
+
), g != -1 && (d = this.match_main(
|
|
755
755
|
r,
|
|
756
756
|
f.substring(f.length - this.Match_MaxBits),
|
|
757
757
|
c + f.length - this.Match_MaxBits
|
|
758
|
-
), (
|
|
759
|
-
o
|
|
758
|
+
), (d == -1 || g >= d) && (g = -1))) : g = this.match_main(r, f, c), g == -1)
|
|
759
|
+
l[o] = !1, a -= t[o].length2 - t[o].length1;
|
|
760
760
|
else {
|
|
761
|
-
o
|
|
761
|
+
l[o] = !0, a = g - c;
|
|
762
762
|
var p;
|
|
763
|
-
if (
|
|
764
|
-
r = r.substring(0,
|
|
763
|
+
if (d == -1 ? p = r.substring(g, g + f.length) : p = r.substring(g, d + this.Match_MaxBits), f == p)
|
|
764
|
+
r = r.substring(0, g) + this.diff_text2(t[o].diffs) + r.substring(g + f.length);
|
|
765
765
|
else {
|
|
766
766
|
var _ = this.diff_main(f, p, !1);
|
|
767
767
|
if (f.length > this.Match_MaxBits && this.diff_levenshtein(_) / f.length > this.Patch_DeleteThreshold)
|
|
768
|
-
o
|
|
768
|
+
l[o] = !1;
|
|
769
769
|
else {
|
|
770
770
|
this.diff_cleanupSemanticLossless(_);
|
|
771
|
-
for (var
|
|
772
|
-
var y = t[
|
|
773
|
-
y[0] !==
|
|
771
|
+
for (var b = 0, m, E = 0; E < t[o].diffs.length; E++) {
|
|
772
|
+
var y = t[o].diffs[E];
|
|
773
|
+
y[0] !== h && (m = this.diff_xIndex(_, b)), y[0] === u ? r = r.substring(0, g + m) + y[1] + r.substring(g + m) : y[0] === s && (r = r.substring(0, g + m) + r.substring(g + this.diff_xIndex(
|
|
774
774
|
_,
|
|
775
|
-
|
|
776
|
-
))), y[0] !== s && (
|
|
775
|
+
b + y[1].length
|
|
776
|
+
))), y[0] !== s && (b += y[1].length);
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
return r = r.substring(i.length, r.length - i.length), [r,
|
|
782
|
+
return r = r.substring(i.length, r.length - i.length), [r, l];
|
|
783
783
|
}, n.prototype.patch_addPadding = function(t) {
|
|
784
784
|
for (var r = this.Patch_Margin, i = "", a = 1; a <= r; a++)
|
|
785
785
|
i += String.fromCharCode(a);
|
|
786
786
|
for (var a = 0; a < t.length; a++)
|
|
787
787
|
t[a].start1 += r, t[a].start2 += r;
|
|
788
|
-
var
|
|
789
|
-
if (
|
|
790
|
-
|
|
791
|
-
else if (r >
|
|
792
|
-
var c = r -
|
|
793
|
-
|
|
788
|
+
var l = t[0], o = l.diffs;
|
|
789
|
+
if (o.length == 0 || o[0][0] != h)
|
|
790
|
+
o.unshift(new n.Diff(h, i)), l.start1 -= r, l.start2 -= r, l.length1 += r, l.length2 += r;
|
|
791
|
+
else if (r > o[0][1].length) {
|
|
792
|
+
var c = r - o[0][1].length;
|
|
793
|
+
o[0][1] = i.substring(o[0][1].length) + o[0][1], l.start1 -= c, l.start2 -= c, l.length1 += c, l.length2 += c;
|
|
794
794
|
}
|
|
795
|
-
if (
|
|
796
|
-
|
|
797
|
-
else if (r >
|
|
798
|
-
var c = r -
|
|
799
|
-
|
|
795
|
+
if (l = t[t.length - 1], o = l.diffs, o.length == 0 || o[o.length - 1][0] != h)
|
|
796
|
+
o.push(new n.Diff(h, i)), l.length1 += r, l.length2 += r;
|
|
797
|
+
else if (r > o[o.length - 1][1].length) {
|
|
798
|
+
var c = r - o[o.length - 1][1].length;
|
|
799
|
+
o[o.length - 1][1] += i.substring(0, c), l.length1 += c, l.length2 += c;
|
|
800
800
|
}
|
|
801
801
|
return i;
|
|
802
802
|
}, n.prototype.patch_splitMax = function(t) {
|
|
@@ -804,18 +804,18 @@ var mn = { exports: {} };
|
|
|
804
804
|
if (!(t[i].length1 <= r)) {
|
|
805
805
|
var a = t[i];
|
|
806
806
|
t.splice(i--, 1);
|
|
807
|
-
for (var
|
|
808
|
-
var f = new n.patch_obj(),
|
|
809
|
-
for (f.start1 =
|
|
810
|
-
var
|
|
811
|
-
|
|
807
|
+
for (var l = a.start1, o = a.start2, c = ""; a.diffs.length !== 0; ) {
|
|
808
|
+
var f = new n.patch_obj(), g = !0;
|
|
809
|
+
for (f.start1 = l - c.length, f.start2 = o - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new n.Diff(h, c))); a.diffs.length !== 0 && f.length1 < r - this.Patch_Margin; ) {
|
|
810
|
+
var d = a.diffs[0][0], p = a.diffs[0][1];
|
|
811
|
+
d === u ? (f.length2 += p.length, o += p.length, f.diffs.push(a.diffs.shift()), g = !1) : d === s && f.diffs.length == 1 && f.diffs[0][0] == h && p.length > 2 * r ? (f.length1 += p.length, l += p.length, g = !1, f.diffs.push(new n.Diff(d, p)), a.diffs.shift()) : (p = p.substring(
|
|
812
812
|
0,
|
|
813
813
|
r - f.length1 - this.Patch_Margin
|
|
814
|
-
), f.length1 += p.length,
|
|
814
|
+
), f.length1 += p.length, l += p.length, d === h ? (f.length2 += p.length, o += p.length) : g = !1, f.diffs.push(new n.Diff(d, p)), p == a.diffs[0][1] ? a.diffs.shift() : a.diffs[0][1] = a.diffs[0][1].substring(p.length));
|
|
815
815
|
}
|
|
816
816
|
c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
|
|
817
817
|
var _ = this.diff_text1(a.diffs).substring(0, this.Patch_Margin);
|
|
818
|
-
_ !== "" && (f.length1 += _.length, f.length2 += _.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] ===
|
|
818
|
+
_ !== "" && (f.length1 += _.length, f.length2 += _.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === h ? f.diffs[f.diffs.length - 1][1] += _ : f.diffs.push(new n.Diff(h, _))), g || t.splice(++i, 0, f);
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
}, n.prototype.patch_toText = function(t) {
|
|
@@ -827,28 +827,28 @@ var mn = { exports: {} };
|
|
|
827
827
|
if (!t)
|
|
828
828
|
return r;
|
|
829
829
|
for (var i = t.split(`
|
|
830
|
-
`), a = 0,
|
|
831
|
-
var
|
|
832
|
-
if (!
|
|
830
|
+
`), a = 0, l = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; a < i.length; ) {
|
|
831
|
+
var o = i[a].match(l);
|
|
832
|
+
if (!o)
|
|
833
833
|
throw new Error("Invalid patch string: " + i[a]);
|
|
834
834
|
var c = new n.patch_obj();
|
|
835
|
-
for (r.push(c), c.start1 = parseInt(
|
|
835
|
+
for (r.push(c), c.start1 = parseInt(o[1], 10), o[2] === "" ? (c.start1--, c.length1 = 1) : o[2] == "0" ? c.length1 = 0 : (c.start1--, c.length1 = parseInt(o[2], 10)), c.start2 = parseInt(o[3], 10), o[4] === "" ? (c.start2--, c.length2 = 1) : o[4] == "0" ? c.length2 = 0 : (c.start2--, c.length2 = parseInt(o[4], 10)), a++; a < i.length; ) {
|
|
836
836
|
var f = i[a].charAt(0);
|
|
837
837
|
try {
|
|
838
|
-
var
|
|
839
|
-
} catch (
|
|
840
|
-
throw new Error("Illegal escape in patch_fromText: " +
|
|
838
|
+
var g = decodeURI(i[a].substring(1));
|
|
839
|
+
} catch (d) {
|
|
840
|
+
throw new Error("Illegal escape in patch_fromText: " + g);
|
|
841
841
|
}
|
|
842
842
|
if (f == "-")
|
|
843
|
-
c.diffs.push(new n.Diff(s,
|
|
843
|
+
c.diffs.push(new n.Diff(s, g));
|
|
844
844
|
else if (f == "+")
|
|
845
|
-
c.diffs.push(new n.Diff(u,
|
|
845
|
+
c.diffs.push(new n.Diff(u, g));
|
|
846
846
|
else if (f == " ")
|
|
847
|
-
c.diffs.push(new n.Diff(
|
|
847
|
+
c.diffs.push(new n.Diff(h, g));
|
|
848
848
|
else {
|
|
849
849
|
if (f == "@")
|
|
850
850
|
break;
|
|
851
|
-
if (f !== "") throw new Error('Invalid patch mode "' + f + '" in: ' +
|
|
851
|
+
if (f !== "") throw new Error('Invalid patch mode "' + f + '" in: ' + g);
|
|
852
852
|
}
|
|
853
853
|
a++;
|
|
854
854
|
}
|
|
@@ -860,33 +860,33 @@ var mn = { exports: {} };
|
|
|
860
860
|
var t, r;
|
|
861
861
|
this.length1 === 0 ? t = this.start1 + ",0" : this.length1 == 1 ? t = this.start1 + 1 : t = this.start1 + 1 + "," + this.length1, this.length2 === 0 ? r = this.start2 + ",0" : this.length2 == 1 ? r = this.start2 + 1 : r = this.start2 + 1 + "," + this.length2;
|
|
862
862
|
for (var i = ["@@ -" + t + " +" + r + ` @@
|
|
863
|
-
`], a,
|
|
864
|
-
switch (this.diffs[
|
|
863
|
+
`], a, l = 0; l < this.diffs.length; l++) {
|
|
864
|
+
switch (this.diffs[l][0]) {
|
|
865
865
|
case u:
|
|
866
866
|
a = "+";
|
|
867
867
|
break;
|
|
868
868
|
case s:
|
|
869
869
|
a = "-";
|
|
870
870
|
break;
|
|
871
|
-
case
|
|
871
|
+
case h:
|
|
872
872
|
a = " ";
|
|
873
873
|
break;
|
|
874
874
|
}
|
|
875
|
-
i[
|
|
875
|
+
i[l + 1] = a + encodeURI(this.diffs[l][1]) + `
|
|
876
876
|
`;
|
|
877
877
|
}
|
|
878
878
|
return i.join("").replace(/%20/g, " ");
|
|
879
|
-
}, e.exports = n, e.exports.diff_match_patch = n, e.exports.DIFF_DELETE = s, e.exports.DIFF_INSERT = u, e.exports.DIFF_EQUAL =
|
|
880
|
-
})(
|
|
881
|
-
var
|
|
882
|
-
function
|
|
879
|
+
}, e.exports = n, e.exports.diff_match_patch = n, e.exports.DIFF_DELETE = s, e.exports.DIFF_INSERT = u, e.exports.DIFF_EQUAL = h;
|
|
880
|
+
})(yn);
|
|
881
|
+
var $e = yn.exports;
|
|
882
|
+
function wn(e) {
|
|
883
883
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
884
884
|
throw new Error("map is read-only");
|
|
885
885
|
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
886
886
|
throw new Error("set is read-only");
|
|
887
887
|
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((n) => {
|
|
888
888
|
const s = e[n], u = typeof s;
|
|
889
|
-
(u === "object" || u === "function") && !Object.isFrozen(s) &&
|
|
889
|
+
(u === "object" || u === "function") && !Object.isFrozen(s) && wn(s);
|
|
890
890
|
}), e;
|
|
891
891
|
}
|
|
892
892
|
class en {
|
|
@@ -900,7 +900,7 @@ class en {
|
|
|
900
900
|
this.isMatchIgnored = !0;
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function An(e) {
|
|
904
904
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
905
905
|
}
|
|
906
906
|
function re(e, ...n) {
|
|
@@ -908,24 +908,24 @@ function re(e, ...n) {
|
|
|
908
908
|
for (const u in e)
|
|
909
909
|
s[u] = e[u];
|
|
910
910
|
return n.forEach(function(u) {
|
|
911
|
-
for (const
|
|
912
|
-
s[
|
|
911
|
+
for (const h in u)
|
|
912
|
+
s[h] = u[h];
|
|
913
913
|
}), /** @type {T} */
|
|
914
914
|
s;
|
|
915
915
|
}
|
|
916
|
-
const
|
|
916
|
+
const at = "</span>", nn = (e) => !!e.scope, ot = (e, { prefix: n }) => {
|
|
917
917
|
if (e.startsWith("language:"))
|
|
918
918
|
return e.replace("language:", "language-");
|
|
919
919
|
if (e.includes(".")) {
|
|
920
920
|
const s = e.split(".");
|
|
921
921
|
return [
|
|
922
922
|
`${n}${s.shift()}`,
|
|
923
|
-
...s.map((u,
|
|
923
|
+
...s.map((u, h) => `${u}${"_".repeat(h + 1)}`)
|
|
924
924
|
].join(" ");
|
|
925
925
|
}
|
|
926
926
|
return `${n}${e}`;
|
|
927
927
|
};
|
|
928
|
-
class
|
|
928
|
+
class lt {
|
|
929
929
|
/**
|
|
930
930
|
* Creates a new HTMLRenderer
|
|
931
931
|
*
|
|
@@ -940,7 +940,7 @@ class at {
|
|
|
940
940
|
*
|
|
941
941
|
* @param {string} text */
|
|
942
942
|
addText(n) {
|
|
943
|
-
this.buffer +=
|
|
943
|
+
this.buffer += An(n);
|
|
944
944
|
}
|
|
945
945
|
/**
|
|
946
946
|
* Adds a node open to the output stream (if needed)
|
|
@@ -948,7 +948,7 @@ class at {
|
|
|
948
948
|
* @param {Node} node */
|
|
949
949
|
openNode(n) {
|
|
950
950
|
if (!nn(n)) return;
|
|
951
|
-
const s =
|
|
951
|
+
const s = ot(
|
|
952
952
|
n.scope,
|
|
953
953
|
{ prefix: this.classPrefix }
|
|
954
954
|
);
|
|
@@ -959,7 +959,7 @@ class at {
|
|
|
959
959
|
*
|
|
960
960
|
* @param {Node} node */
|
|
961
961
|
closeNode(n) {
|
|
962
|
-
nn(n) && (this.buffer +=
|
|
962
|
+
nn(n) && (this.buffer += at);
|
|
963
963
|
}
|
|
964
964
|
/**
|
|
965
965
|
* returns the accumulated buffer
|
|
@@ -980,7 +980,7 @@ const tn = (e = {}) => {
|
|
|
980
980
|
const n = { children: [] };
|
|
981
981
|
return Object.assign(n, e), n;
|
|
982
982
|
};
|
|
983
|
-
class
|
|
983
|
+
class He {
|
|
984
984
|
constructor() {
|
|
985
985
|
this.rootNode = tn(), this.stack = [this.rootNode];
|
|
986
986
|
}
|
|
@@ -1028,11 +1028,11 @@ class Fe {
|
|
|
1028
1028
|
*/
|
|
1029
1029
|
static _collapse(n) {
|
|
1030
1030
|
typeof n != "string" && n.children && (n.children.every((s) => typeof s == "string") ? n.children = [n.children.join("")] : n.children.forEach((s) => {
|
|
1031
|
-
|
|
1031
|
+
He._collapse(s);
|
|
1032
1032
|
}));
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
class
|
|
1035
|
+
class ct extends He {
|
|
1036
1036
|
/**
|
|
1037
1037
|
* @param {*} options
|
|
1038
1038
|
*/
|
|
@@ -1061,7 +1061,7 @@ class ot extends Fe {
|
|
|
1061
1061
|
s && (u.scope = `language:${s}`), this.add(u);
|
|
1062
1062
|
}
|
|
1063
1063
|
toHTML() {
|
|
1064
|
-
return new
|
|
1064
|
+
return new lt(this, this.options).value();
|
|
1065
1065
|
}
|
|
1066
1066
|
finalize() {
|
|
1067
1067
|
return this.closeAllNodes(), !0;
|
|
@@ -1070,51 +1070,51 @@ class ot extends Fe {
|
|
|
1070
1070
|
function pe(e) {
|
|
1071
1071
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function Mn(e) {
|
|
1074
1074
|
return oe("(?=", e, ")");
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function ut(e) {
|
|
1077
1077
|
return oe("(?:", e, ")*");
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function ft(e) {
|
|
1080
1080
|
return oe("(?:", e, ")?");
|
|
1081
1081
|
}
|
|
1082
1082
|
function oe(...e) {
|
|
1083
1083
|
return e.map((s) => pe(s)).join("");
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function gt(e) {
|
|
1086
1086
|
const n = e[e.length - 1];
|
|
1087
1087
|
return typeof n == "object" && n.constructor === Object ? (e.splice(e.length - 1, 1), n) : {};
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return "(" + (
|
|
1089
|
+
function ze(...e) {
|
|
1090
|
+
return "(" + (gt(e).capture ? "" : "?:") + e.map((u) => pe(u)).join("|") + ")";
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function Nn(e) {
|
|
1093
1093
|
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function ht(e, n) {
|
|
1096
1096
|
const s = e && e.exec(n);
|
|
1097
1097
|
return s && s.index === 0;
|
|
1098
1098
|
}
|
|
1099
|
-
const
|
|
1100
|
-
function
|
|
1099
|
+
const dt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1100
|
+
function Ge(e, { joinWith: n }) {
|
|
1101
1101
|
let s = 0;
|
|
1102
1102
|
return e.map((u) => {
|
|
1103
1103
|
s += 1;
|
|
1104
|
-
const
|
|
1104
|
+
const h = s;
|
|
1105
1105
|
let t = pe(u), r = "";
|
|
1106
1106
|
for (; t.length > 0; ) {
|
|
1107
|
-
const i =
|
|
1107
|
+
const i = dt.exec(t);
|
|
1108
1108
|
if (!i) {
|
|
1109
1109
|
r += t;
|
|
1110
1110
|
break;
|
|
1111
1111
|
}
|
|
1112
|
-
r += t.substring(0, i.index), t = t.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? r += "\\" + String(Number(i[1]) +
|
|
1112
|
+
r += t.substring(0, i.index), t = t.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? r += "\\" + String(Number(i[1]) + h) : (r += i[0], i[0] === "(" && s++);
|
|
1113
1113
|
}
|
|
1114
1114
|
return r;
|
|
1115
1115
|
}).map((u) => `(${u})`).join(n);
|
|
1116
1116
|
}
|
|
1117
|
-
const
|
|
1117
|
+
const pt = /\b\B/, Tn = "[a-zA-Z]\\w*", Ke = "[a-zA-Z_]\\w*", Dn = "\\b\\d+(\\.\\d+)?", Sn = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Cn = "\\b(0b[01]+)", _t = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", bt = (e = {}) => {
|
|
1118
1118
|
const n = /^#![ ]*\//;
|
|
1119
1119
|
return e.binary && (e.begin = oe(
|
|
1120
1120
|
n,
|
|
@@ -1134,19 +1134,19 @@ const ht = /\b\B/, An = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", Nn = "\\b\\d+(\\.\
|
|
|
1134
1134
|
}, _e = {
|
|
1135
1135
|
begin: "\\\\[\\s\\S]",
|
|
1136
1136
|
relevance: 0
|
|
1137
|
-
},
|
|
1137
|
+
}, vt = {
|
|
1138
1138
|
scope: "string",
|
|
1139
1139
|
begin: "'",
|
|
1140
1140
|
end: "'",
|
|
1141
1141
|
illegal: "\\n",
|
|
1142
1142
|
contains: [_e]
|
|
1143
|
-
},
|
|
1143
|
+
}, mt = {
|
|
1144
1144
|
scope: "string",
|
|
1145
1145
|
begin: '"',
|
|
1146
1146
|
end: '"',
|
|
1147
1147
|
illegal: "\\n",
|
|
1148
1148
|
contains: [_e]
|
|
1149
|
-
},
|
|
1149
|
+
}, Et = {
|
|
1150
1150
|
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/
|
|
1151
1151
|
}, Re = function(e, n, s = {}) {
|
|
1152
1152
|
const u = re(
|
|
@@ -1167,7 +1167,7 @@ const ht = /\b\B/, An = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", Nn = "\\b\\d+(\\.\
|
|
|
1167
1167
|
excludeBegin: !0,
|
|
1168
1168
|
relevance: 0
|
|
1169
1169
|
});
|
|
1170
|
-
const
|
|
1170
|
+
const h = ze(
|
|
1171
1171
|
// list of common 1 and 2 letter words in English
|
|
1172
1172
|
"I",
|
|
1173
1173
|
"a",
|
|
@@ -1207,26 +1207,26 @@ const ht = /\b\B/, An = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", Nn = "\\b\\d+(\\.\
|
|
|
1207
1207
|
/[ ]+/,
|
|
1208
1208
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
|
1209
1209
|
"(",
|
|
1210
|
-
|
|
1210
|
+
h,
|
|
1211
1211
|
/[.]?[:]?([.][ ]|[ ])/,
|
|
1212
1212
|
"){3}"
|
|
1213
1213
|
)
|
|
1214
1214
|
// look for 3 words in a row
|
|
1215
1215
|
}
|
|
1216
1216
|
), u;
|
|
1217
|
-
},
|
|
1217
|
+
}, yt = Re("//", "$"), wt = Re("/\\*", "\\*/"), At = Re("#", "$"), Mt = {
|
|
1218
1218
|
scope: "number",
|
|
1219
|
-
begin:
|
|
1219
|
+
begin: Dn,
|
|
1220
1220
|
relevance: 0
|
|
1221
|
-
},
|
|
1221
|
+
}, Nt = {
|
|
1222
1222
|
scope: "number",
|
|
1223
|
-
begin:
|
|
1223
|
+
begin: Sn,
|
|
1224
1224
|
relevance: 0
|
|
1225
|
-
},
|
|
1225
|
+
}, Tt = {
|
|
1226
1226
|
scope: "number",
|
|
1227
|
-
begin:
|
|
1227
|
+
begin: Cn,
|
|
1228
1228
|
relevance: 0
|
|
1229
|
-
},
|
|
1229
|
+
}, Dt = {
|
|
1230
1230
|
scope: "regexp",
|
|
1231
1231
|
begin: /\/(?=[^/\n]*\/)/,
|
|
1232
1232
|
end: /\/[gimuy]*/,
|
|
@@ -1239,19 +1239,19 @@ const ht = /\b\B/, An = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", Nn = "\\b\\d+(\\.\
|
|
|
1239
1239
|
contains: [_e]
|
|
1240
1240
|
}
|
|
1241
1241
|
]
|
|
1242
|
-
},
|
|
1242
|
+
}, St = {
|
|
1243
1243
|
scope: "title",
|
|
1244
|
-
begin:
|
|
1244
|
+
begin: Tn,
|
|
1245
1245
|
relevance: 0
|
|
1246
|
-
},
|
|
1246
|
+
}, Ct = {
|
|
1247
1247
|
scope: "title",
|
|
1248
|
-
begin:
|
|
1248
|
+
begin: Ke,
|
|
1249
1249
|
relevance: 0
|
|
1250
|
-
},
|
|
1250
|
+
}, Rt = {
|
|
1251
1251
|
// excludes method names from keyword processing
|
|
1252
|
-
begin: "\\.\\s*" +
|
|
1252
|
+
begin: "\\.\\s*" + Ke,
|
|
1253
1253
|
relevance: 0
|
|
1254
|
-
},
|
|
1254
|
+
}, Lt = function(e) {
|
|
1255
1255
|
return Object.assign(
|
|
1256
1256
|
e,
|
|
1257
1257
|
{
|
|
@@ -1266,67 +1266,67 @@ const ht = /\b\B/, An = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", Nn = "\\b\\d+(\\.\
|
|
|
1266
1266
|
}
|
|
1267
1267
|
);
|
|
1268
1268
|
};
|
|
1269
|
-
var
|
|
1269
|
+
var Me = /* @__PURE__ */ Object.freeze({
|
|
1270
1270
|
__proto__: null,
|
|
1271
|
-
APOS_STRING_MODE:
|
|
1271
|
+
APOS_STRING_MODE: vt,
|
|
1272
1272
|
BACKSLASH_ESCAPE: _e,
|
|
1273
|
-
BINARY_NUMBER_MODE:
|
|
1274
|
-
BINARY_NUMBER_RE:
|
|
1273
|
+
BINARY_NUMBER_MODE: Tt,
|
|
1274
|
+
BINARY_NUMBER_RE: Cn,
|
|
1275
1275
|
COMMENT: Re,
|
|
1276
|
-
C_BLOCK_COMMENT_MODE:
|
|
1277
|
-
C_LINE_COMMENT_MODE:
|
|
1278
|
-
C_NUMBER_MODE:
|
|
1279
|
-
C_NUMBER_RE:
|
|
1280
|
-
END_SAME_AS_BEGIN:
|
|
1281
|
-
HASH_COMMENT_MODE:
|
|
1282
|
-
IDENT_RE:
|
|
1283
|
-
MATCH_NOTHING_RE:
|
|
1284
|
-
METHOD_GUARD:
|
|
1285
|
-
NUMBER_MODE:
|
|
1286
|
-
NUMBER_RE:
|
|
1287
|
-
PHRASAL_WORDS_MODE:
|
|
1288
|
-
QUOTE_STRING_MODE:
|
|
1289
|
-
REGEXP_MODE:
|
|
1290
|
-
RE_STARTERS_RE:
|
|
1291
|
-
SHEBANG:
|
|
1292
|
-
TITLE_MODE:
|
|
1293
|
-
UNDERSCORE_IDENT_RE:
|
|
1294
|
-
UNDERSCORE_TITLE_MODE:
|
|
1276
|
+
C_BLOCK_COMMENT_MODE: wt,
|
|
1277
|
+
C_LINE_COMMENT_MODE: yt,
|
|
1278
|
+
C_NUMBER_MODE: Nt,
|
|
1279
|
+
C_NUMBER_RE: Sn,
|
|
1280
|
+
END_SAME_AS_BEGIN: Lt,
|
|
1281
|
+
HASH_COMMENT_MODE: At,
|
|
1282
|
+
IDENT_RE: Tn,
|
|
1283
|
+
MATCH_NOTHING_RE: pt,
|
|
1284
|
+
METHOD_GUARD: Rt,
|
|
1285
|
+
NUMBER_MODE: Mt,
|
|
1286
|
+
NUMBER_RE: Dn,
|
|
1287
|
+
PHRASAL_WORDS_MODE: Et,
|
|
1288
|
+
QUOTE_STRING_MODE: mt,
|
|
1289
|
+
REGEXP_MODE: Dt,
|
|
1290
|
+
RE_STARTERS_RE: _t,
|
|
1291
|
+
SHEBANG: bt,
|
|
1292
|
+
TITLE_MODE: St,
|
|
1293
|
+
UNDERSCORE_IDENT_RE: Ke,
|
|
1294
|
+
UNDERSCORE_TITLE_MODE: Ct
|
|
1295
1295
|
});
|
|
1296
|
-
function
|
|
1296
|
+
function Ot(e, n) {
|
|
1297
1297
|
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function It(e, n) {
|
|
1300
1300
|
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1303
|
-
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin =
|
|
1302
|
+
function kt(e, n) {
|
|
1303
|
+
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Ot, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1306
|
-
Array.isArray(e.illegal) && (e.illegal =
|
|
1305
|
+
function $t(e, n) {
|
|
1306
|
+
Array.isArray(e.illegal) && (e.illegal = ze(...e.illegal));
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function Bt(e, n) {
|
|
1309
1309
|
if (e.match) {
|
|
1310
1310
|
if (e.begin || e.end) 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
|
|
1314
|
+
function Pt(e, n) {
|
|
1315
1315
|
e.relevance === void 0 && (e.relevance = 1);
|
|
1316
1316
|
}
|
|
1317
|
-
const
|
|
1317
|
+
const xt = (e, n) => {
|
|
1318
1318
|
if (!e.beforeMatch) return;
|
|
1319
1319
|
if (e.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
1320
1320
|
const s = Object.assign({}, e);
|
|
1321
1321
|
Object.keys(e).forEach((u) => {
|
|
1322
1322
|
delete e[u];
|
|
1323
|
-
}), e.keywords = s.keywords, e.begin = oe(s.beforeMatch,
|
|
1323
|
+
}), e.keywords = s.keywords, e.begin = oe(s.beforeMatch, Mn(s.begin)), e.starts = {
|
|
1324
1324
|
relevance: 0,
|
|
1325
1325
|
contains: [
|
|
1326
1326
|
Object.assign(s, { endsParent: !0 })
|
|
1327
1327
|
]
|
|
1328
1328
|
}, e.relevance = 0, delete s.beforeMatch;
|
|
1329
|
-
},
|
|
1329
|
+
}, Ut = [
|
|
1330
1330
|
"of",
|
|
1331
1331
|
"and",
|
|
1332
1332
|
"for",
|
|
@@ -1341,27 +1341,27 @@ const Bt = (e, n) => {
|
|
|
1341
1341
|
// common variable name
|
|
1342
1342
|
"value"
|
|
1343
1343
|
// common variable name
|
|
1344
|
-
],
|
|
1345
|
-
function
|
|
1344
|
+
], Ft = "keyword";
|
|
1345
|
+
function Rn(e, n, s = Ft) {
|
|
1346
1346
|
const u = /* @__PURE__ */ Object.create(null);
|
|
1347
|
-
return typeof e == "string" ?
|
|
1347
|
+
return typeof e == "string" ? h(s, e.split(" ")) : Array.isArray(e) ? h(s, e) : Object.keys(e).forEach(function(t) {
|
|
1348
1348
|
Object.assign(
|
|
1349
1349
|
u,
|
|
1350
|
-
|
|
1350
|
+
Rn(e[t], n, t)
|
|
1351
1351
|
);
|
|
1352
1352
|
}), u;
|
|
1353
|
-
function
|
|
1353
|
+
function h(t, r) {
|
|
1354
1354
|
n && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
|
|
1355
1355
|
const a = i.split("|");
|
|
1356
|
-
u[a[0]] = [t,
|
|
1356
|
+
u[a[0]] = [t, Ht(a[0], a[1])];
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return n ? Number(n) :
|
|
1360
|
+
function Ht(e, n) {
|
|
1361
|
+
return n ? Number(n) : zt(e) ? 0 : 1;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return
|
|
1363
|
+
function zt(e) {
|
|
1364
|
+
return Ut.includes(e.toLowerCase());
|
|
1365
1365
|
}
|
|
1366
1366
|
const rn = {}, ae = (e) => {
|
|
1367
1367
|
console.error(e);
|
|
@@ -1369,39 +1369,39 @@ const rn = {}, ae = (e) => {
|
|
|
1369
1369
|
console.log(`WARN: ${e}`, ...n);
|
|
1370
1370
|
}, ce = (e, n) => {
|
|
1371
1371
|
rn[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), rn[`${e}/${n}`] = !0);
|
|
1372
|
-
},
|
|
1373
|
-
function
|
|
1372
|
+
}, Se = new Error();
|
|
1373
|
+
function Ln(e, n, { key: s }) {
|
|
1374
1374
|
let u = 0;
|
|
1375
|
-
const
|
|
1375
|
+
const h = e[s], t = {}, r = {};
|
|
1376
1376
|
for (let i = 1; i <= n.length; i++)
|
|
1377
|
-
r[i + u] =
|
|
1377
|
+
r[i + u] = h[i], t[i + u] = !0, u += Nn(n[i - 1]);
|
|
1378
1378
|
e[s] = r, e[s]._emit = t, e[s]._multi = !0;
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function Gt(e) {
|
|
1381
1381
|
if (Array.isArray(e.begin)) {
|
|
1382
1382
|
if (e.skip || e.excludeBegin || e.returnBegin)
|
|
1383
|
-
throw ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
|
1383
|
+
throw ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Se;
|
|
1384
1384
|
if (typeof e.beginScope != "object" || e.beginScope === null)
|
|
1385
|
-
throw ae("beginScope must be object"),
|
|
1386
|
-
|
|
1385
|
+
throw ae("beginScope must be object"), Se;
|
|
1386
|
+
Ln(e, e.begin, { key: "beginScope" }), e.begin = Ge(e.begin, { joinWith: "" });
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Kt(e) {
|
|
1390
1390
|
if (Array.isArray(e.end)) {
|
|
1391
1391
|
if (e.skip || e.excludeEnd || e.returnEnd)
|
|
1392
|
-
throw ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
|
1392
|
+
throw ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Se;
|
|
1393
1393
|
if (typeof e.endScope != "object" || e.endScope === null)
|
|
1394
|
-
throw ae("endScope must be object"),
|
|
1395
|
-
|
|
1394
|
+
throw ae("endScope must be object"), Se;
|
|
1395
|
+
Ln(e, e.end, { key: "endScope" }), e.end = Ge(e.end, { joinWith: "" });
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Wt(e) {
|
|
1399
1399
|
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1402
|
-
|
|
1401
|
+
function qt(e) {
|
|
1402
|
+
Wt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Gt(e), Kt(e);
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Qt(e) {
|
|
1405
1405
|
function n(r, i) {
|
|
1406
1406
|
return new RegExp(
|
|
1407
1407
|
pe(r),
|
|
@@ -1414,12 +1414,12 @@ function Wt(e) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
// @ts-ignore
|
|
1416
1416
|
addRule(i, a) {
|
|
1417
|
-
a.position = this.position++, this.matchIndexes[this.matchAt] = a, this.regexes.push([a, i]), this.matchAt +=
|
|
1417
|
+
a.position = this.position++, this.matchIndexes[this.matchAt] = a, this.regexes.push([a, i]), this.matchAt += Nn(i) + 1;
|
|
1418
1418
|
}
|
|
1419
1419
|
compile() {
|
|
1420
1420
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
1421
1421
|
const i = this.regexes.map((a) => a[1]);
|
|
1422
|
-
this.matcherRe = n(
|
|
1422
|
+
this.matcherRe = n(Ge(i, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
1423
1423
|
}
|
|
1424
1424
|
/** @param {string} s */
|
|
1425
1425
|
exec(i) {
|
|
@@ -1427,8 +1427,8 @@ function Wt(e) {
|
|
|
1427
1427
|
const a = this.matcherRe.exec(i);
|
|
1428
1428
|
if (!a)
|
|
1429
1429
|
return null;
|
|
1430
|
-
const
|
|
1431
|
-
return a.splice(0,
|
|
1430
|
+
const l = a.findIndex((c, f) => f > 0 && c !== void 0), o = this.matchIndexes[l];
|
|
1431
|
+
return a.splice(0, l), Object.assign(a, o);
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
1434
|
class u {
|
|
@@ -1439,7 +1439,7 @@ function Wt(e) {
|
|
|
1439
1439
|
getMatcher(i) {
|
|
1440
1440
|
if (this.multiRegexes[i]) return this.multiRegexes[i];
|
|
1441
1441
|
const a = new s();
|
|
1442
|
-
return this.rules.slice(i).forEach(([
|
|
1442
|
+
return this.rules.slice(i).forEach(([l, o]) => a.addRule(l, o)), a.compile(), this.multiRegexes[i] = a, a;
|
|
1443
1443
|
}
|
|
1444
1444
|
resumingScanAtSamePosition() {
|
|
1445
1445
|
return this.regexIndex !== 0;
|
|
@@ -1455,15 +1455,15 @@ function Wt(e) {
|
|
|
1455
1455
|
exec(i) {
|
|
1456
1456
|
const a = this.getMatcher(this.regexIndex);
|
|
1457
1457
|
a.lastIndex = this.lastIndex;
|
|
1458
|
-
let
|
|
1459
|
-
if (this.resumingScanAtSamePosition() && !(
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1458
|
+
let l = a.exec(i);
|
|
1459
|
+
if (this.resumingScanAtSamePosition() && !(l && l.index === this.lastIndex)) {
|
|
1460
|
+
const o = this.getMatcher(0);
|
|
1461
|
+
o.lastIndex = this.lastIndex + 1, l = o.exec(i);
|
|
1462
1462
|
}
|
|
1463
|
-
return
|
|
1463
|
+
return l && (this.regexIndex += l.position + 1, this.regexIndex === this.count && this.considerAll()), l;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1466
|
+
function h(r) {
|
|
1467
1467
|
const i = new u();
|
|
1468
1468
|
return r.contains.forEach((a) => i.addRule(a.begin, { rule: a, type: "begin" })), r.terminatorEnd && i.addRule(r.terminatorEnd, { type: "end" }), r.illegal && i.addRule(r.illegal, { type: "illegal" }), i;
|
|
1469
1469
|
}
|
|
@@ -1474,33 +1474,33 @@ function Wt(e) {
|
|
|
1474
1474
|
);
|
|
1475
1475
|
if (r.isCompiled) return a;
|
|
1476
1476
|
[
|
|
1477
|
-
|
|
1477
|
+
It,
|
|
1478
1478
|
// do this early so compiler extensions generally don't have to worry about
|
|
1479
1479
|
// the distinction between match/begin
|
|
1480
|
+
Bt,
|
|
1481
|
+
qt,
|
|
1482
|
+
xt
|
|
1483
|
+
].forEach((o) => o(r, i)), e.compilerExtensions.forEach((o) => o(r, i)), r.__beforeBegin = null, [
|
|
1480
1484
|
kt,
|
|
1481
|
-
Kt,
|
|
1482
|
-
Bt
|
|
1483
|
-
].forEach((l) => l(r, i)), e.compilerExtensions.forEach((l) => l(r, i)), r.__beforeBegin = null, [
|
|
1484
|
-
Ot,
|
|
1485
1485
|
// do this later so compiler extensions that come earlier have access to the
|
|
1486
1486
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1487
|
-
|
|
1487
|
+
$t,
|
|
1488
1488
|
// default to 1 relevance if not specified
|
|
1489
|
-
|
|
1490
|
-
].forEach((
|
|
1491
|
-
let
|
|
1492
|
-
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords),
|
|
1489
|
+
Pt
|
|
1490
|
+
].forEach((o) => o(r, i)), r.isCompiled = !0;
|
|
1491
|
+
let l = null;
|
|
1492
|
+
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), l = r.keywords.$pattern, delete r.keywords.$pattern), l = l || /\w+/, r.keywords && (r.keywords = Rn(r.keywords, e.case_insensitive)), a.keywordPatternRe = n(l, !0), i && (r.begin || (r.begin = /\B|\b/), a.beginRe = n(a.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (a.endRe = n(a.end)), a.terminatorEnd = pe(a.end) || "", r.endsWithParent && i.terminatorEnd && (a.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (a.illegalRe = n(
|
|
1493
1493
|
/** @type {RegExp | string} */
|
|
1494
1494
|
r.illegal
|
|
1495
|
-
)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(
|
|
1496
|
-
return
|
|
1497
|
-
})), r.contains.forEach(function(
|
|
1495
|
+
)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(o) {
|
|
1496
|
+
return jt(o === "self" ? r : o);
|
|
1497
|
+
})), r.contains.forEach(function(o) {
|
|
1498
1498
|
t(
|
|
1499
1499
|
/** @type Mode */
|
|
1500
|
-
|
|
1500
|
+
o,
|
|
1501
1501
|
a
|
|
1502
1502
|
);
|
|
1503
|
-
}), r.starts && t(r.starts, i), a.matcher =
|
|
1503
|
+
}), r.starts && t(r.starts, i), a.matcher = h(a), a;
|
|
1504
1504
|
}
|
|
1505
1505
|
if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
|
|
1506
1506
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
@@ -1509,23 +1509,23 @@ function Wt(e) {
|
|
|
1509
1509
|
e
|
|
1510
1510
|
);
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1513
|
-
return e ? e.endsWithParent ||
|
|
1512
|
+
function On(e) {
|
|
1513
|
+
return e ? e.endsWithParent || On(e.starts) : !1;
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function jt(e) {
|
|
1516
1516
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
|
|
1517
1517
|
return re(e, { variants: null }, n);
|
|
1518
|
-
})), e.cachedVariants ? e.cachedVariants :
|
|
1518
|
+
})), e.cachedVariants ? e.cachedVariants : On(e) ? re(e, { starts: e.starts ? re(e.starts) : null }) : Object.isFrozen(e) ? re(e) : e;
|
|
1519
1519
|
}
|
|
1520
|
-
var
|
|
1521
|
-
class
|
|
1520
|
+
var Zt = "11.10.0";
|
|
1521
|
+
class Yt extends Error {
|
|
1522
1522
|
constructor(n, s) {
|
|
1523
1523
|
super(n), this.name = "HTMLInjectionError", this.html = s;
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
|
-
const
|
|
1526
|
+
const Be = An, an = re, on = Symbol("nomatch"), Vt = 7, In = function(e) {
|
|
1527
1527
|
const n = /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null), u = [];
|
|
1528
|
-
let
|
|
1528
|
+
let h = !0;
|
|
1529
1529
|
const t = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
1530
1530
|
let i = {
|
|
1531
1531
|
ignoreUnescapedHTML: !1,
|
|
@@ -1537,25 +1537,25 @@ const $e = yn, an = re, on = Symbol("nomatch"), Zt = 7, Ln = function(e) {
|
|
|
1537
1537
|
languages: null,
|
|
1538
1538
|
// beta configuration options, subject to change, welcome to discuss
|
|
1539
1539
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
1540
|
-
__emitter:
|
|
1540
|
+
__emitter: ct
|
|
1541
1541
|
};
|
|
1542
|
-
function a(
|
|
1543
|
-
return i.noHighlightRe.test(
|
|
1542
|
+
function a(v) {
|
|
1543
|
+
return i.noHighlightRe.test(v);
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1546
|
-
let
|
|
1547
|
-
|
|
1548
|
-
const O = i.languageDetectRe.exec(
|
|
1545
|
+
function l(v) {
|
|
1546
|
+
let A = v.className + " ";
|
|
1547
|
+
A += v.parentNode ? v.parentNode.className : "";
|
|
1548
|
+
const O = i.languageDetectRe.exec(A);
|
|
1549
1549
|
if (O) {
|
|
1550
1550
|
const P = C(O[1]);
|
|
1551
|
-
return P || (sn(t.replace("{}", O[1])), sn("Falling back to no-highlight mode for this block.",
|
|
1551
|
+
return P || (sn(t.replace("{}", O[1])), sn("Falling back to no-highlight mode for this block.", v)), P ? O[1] : "no-highlight";
|
|
1552
1552
|
}
|
|
1553
|
-
return
|
|
1553
|
+
return A.split(/\s+/).find((P) => a(P) || C(P));
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function o(v, A, O) {
|
|
1556
1556
|
let P = "", F = "";
|
|
1557
|
-
typeof
|
|
1558
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), F =
|
|
1557
|
+
typeof A == "object" ? (P = v, O = A.ignoreIllegals, F = A.language) : (ce("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ce("10.7.0", `Please use highlight(code, options) instead.
|
|
1558
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), F = v, P = A), O === void 0 && (O = !0);
|
|
1559
1559
|
const W = {
|
|
1560
1560
|
code: P,
|
|
1561
1561
|
language: F
|
|
@@ -1564,167 +1564,167 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, P = M), O ===
|
|
|
1564
1564
|
const Z = W.result ? W.result : c(W.language, W.code, O);
|
|
1565
1565
|
return Z.code = W.code, te("after:highlight", Z), Z;
|
|
1566
1566
|
}
|
|
1567
|
-
function c(
|
|
1567
|
+
function c(v, A, O, P) {
|
|
1568
1568
|
const F = /* @__PURE__ */ Object.create(null);
|
|
1569
|
-
function W(w,
|
|
1570
|
-
return w.keywords[
|
|
1569
|
+
function W(w, D) {
|
|
1570
|
+
return w.keywords[D];
|
|
1571
1571
|
}
|
|
1572
1572
|
function Z() {
|
|
1573
1573
|
if (!I.keywords) {
|
|
1574
|
-
z.addText(
|
|
1574
|
+
z.addText(U);
|
|
1575
1575
|
return;
|
|
1576
1576
|
}
|
|
1577
1577
|
let w = 0;
|
|
1578
1578
|
I.keywordPatternRe.lastIndex = 0;
|
|
1579
|
-
let
|
|
1580
|
-
for (;
|
|
1581
|
-
k +=
|
|
1582
|
-
const
|
|
1579
|
+
let D = I.keywordPatternRe.exec(U), k = "";
|
|
1580
|
+
for (; D; ) {
|
|
1581
|
+
k += U.substring(w, D.index);
|
|
1582
|
+
const x = V.case_insensitive ? D[0].toLowerCase() : D[0], G = W(I, x);
|
|
1583
1583
|
if (G) {
|
|
1584
|
-
const [X,
|
|
1585
|
-
if (z.addText(k), k = "", F[
|
|
1586
|
-
k +=
|
|
1584
|
+
const [X, qn] = G;
|
|
1585
|
+
if (z.addText(k), k = "", F[x] = (F[x] || 0) + 1, F[x] <= Vt && (Ae += qn), X.startsWith("_"))
|
|
1586
|
+
k += D[0];
|
|
1587
1587
|
else {
|
|
1588
|
-
const
|
|
1589
|
-
Y(
|
|
1588
|
+
const Qn = V.classNameAliases[X] || X;
|
|
1589
|
+
Y(D[0], Qn);
|
|
1590
1590
|
}
|
|
1591
1591
|
} else
|
|
1592
|
-
k +=
|
|
1593
|
-
w = I.keywordPatternRe.lastIndex,
|
|
1592
|
+
k += D[0];
|
|
1593
|
+
w = I.keywordPatternRe.lastIndex, D = I.keywordPatternRe.exec(U);
|
|
1594
1594
|
}
|
|
1595
|
-
k +=
|
|
1595
|
+
k += U.substring(w), z.addText(k);
|
|
1596
1596
|
}
|
|
1597
1597
|
function ye() {
|
|
1598
|
-
if (
|
|
1598
|
+
if (U === "") return;
|
|
1599
1599
|
let w = null;
|
|
1600
1600
|
if (typeof I.subLanguage == "string") {
|
|
1601
1601
|
if (!n[I.subLanguage]) {
|
|
1602
|
-
z.addText(
|
|
1602
|
+
z.addText(U);
|
|
1603
1603
|
return;
|
|
1604
1604
|
}
|
|
1605
|
-
w = c(I.subLanguage,
|
|
1605
|
+
w = c(I.subLanguage, U, !0, Ve[I.subLanguage]), Ve[I.subLanguage] = /** @type {CompiledMode} */
|
|
1606
1606
|
w._top;
|
|
1607
1607
|
} else
|
|
1608
|
-
w =
|
|
1609
|
-
I.relevance > 0 && (
|
|
1608
|
+
w = g(U, I.subLanguage.length ? I.subLanguage : null);
|
|
1609
|
+
I.relevance > 0 && (Ae += w.relevance), z.__addSublanguage(w._emitter, w.language);
|
|
1610
1610
|
}
|
|
1611
1611
|
function q() {
|
|
1612
|
-
I.subLanguage != null ? ye() : Z(),
|
|
1612
|
+
I.subLanguage != null ? ye() : Z(), U = "";
|
|
1613
1613
|
}
|
|
1614
|
-
function Y(w,
|
|
1615
|
-
w !== "" && (z.startScope(
|
|
1614
|
+
function Y(w, D) {
|
|
1615
|
+
w !== "" && (z.startScope(D), z.addText(w), z.endScope());
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function Qe(w, D) {
|
|
1618
1618
|
let k = 1;
|
|
1619
|
-
const
|
|
1620
|
-
for (; k <=
|
|
1619
|
+
const x = D.length - 1;
|
|
1620
|
+
for (; k <= x; ) {
|
|
1621
1621
|
if (!w._emit[k]) {
|
|
1622
1622
|
k++;
|
|
1623
1623
|
continue;
|
|
1624
1624
|
}
|
|
1625
|
-
const G = V.classNameAliases[w[k]] || w[k], X =
|
|
1626
|
-
G ? Y(X, G) : (
|
|
1625
|
+
const G = V.classNameAliases[w[k]] || w[k], X = D[k];
|
|
1626
|
+
G ? Y(X, G) : (U = X, Z(), U = ""), k++;
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
|
-
function je(w,
|
|
1630
|
-
return w.scope && typeof w.scope == "string" && z.openNode(V.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (Y(
|
|
1629
|
+
function je(w, D) {
|
|
1630
|
+
return w.scope && typeof w.scope == "string" && z.openNode(V.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (Y(U, V.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), U = "") : w.beginScope._multi && (Qe(w.beginScope, D), U = "")), I = Object.create(w, { parent: { value: I } }), I;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1633
|
-
let
|
|
1634
|
-
if (
|
|
1632
|
+
function Ze(w, D, k) {
|
|
1633
|
+
let x = ht(w.endRe, k);
|
|
1634
|
+
if (x) {
|
|
1635
1635
|
if (w["on:end"]) {
|
|
1636
1636
|
const G = new en(w);
|
|
1637
|
-
w["on:end"](
|
|
1637
|
+
w["on:end"](D, G), G.isMatchIgnored && (x = !1);
|
|
1638
1638
|
}
|
|
1639
|
-
if (
|
|
1639
|
+
if (x) {
|
|
1640
1640
|
for (; w.endsParent && w.parent; )
|
|
1641
1641
|
w = w.parent;
|
|
1642
1642
|
return w;
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
1645
|
if (w.endsWithParent)
|
|
1646
|
-
return
|
|
1646
|
+
return Ze(w.parent, D, k);
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1649
|
-
return I.matcher.regexIndex === 0 ? (
|
|
1648
|
+
function Hn(w) {
|
|
1649
|
+
return I.matcher.regexIndex === 0 ? (U += w[0], 1) : (Ie = !0, 0);
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1652
|
-
const
|
|
1651
|
+
function zn(w) {
|
|
1652
|
+
const D = w[0], k = w.rule, x = new en(k), G = [k.__beforeBegin, k["on:begin"]];
|
|
1653
1653
|
for (const X of G)
|
|
1654
|
-
if (X && (X(w,
|
|
1655
|
-
return
|
|
1656
|
-
return k.skip ?
|
|
1654
|
+
if (X && (X(w, x), x.isMatchIgnored))
|
|
1655
|
+
return Hn(D);
|
|
1656
|
+
return k.skip ? U += D : (k.excludeBegin && (U += D), q(), !k.returnBegin && !k.excludeBegin && (U = D)), je(k, w), k.returnBegin ? 0 : D.length;
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1659
|
-
const
|
|
1660
|
-
if (!
|
|
1658
|
+
function Gn(w) {
|
|
1659
|
+
const D = w[0], k = A.substring(w.index), x = Ze(I, w, k);
|
|
1660
|
+
if (!x)
|
|
1661
1661
|
return on;
|
|
1662
1662
|
const G = I;
|
|
1663
|
-
I.endScope && I.endScope._wrap ? (q(), Y(
|
|
1663
|
+
I.endScope && I.endScope._wrap ? (q(), Y(D, I.endScope._wrap)) : I.endScope && I.endScope._multi ? (q(), Qe(I.endScope, w)) : G.skip ? U += D : (G.returnEnd || G.excludeEnd || (U += D), q(), G.excludeEnd && (U = D));
|
|
1664
1664
|
do
|
|
1665
|
-
I.scope && z.closeNode(), !I.skip && !I.subLanguage && (
|
|
1666
|
-
while (I !==
|
|
1667
|
-
return
|
|
1665
|
+
I.scope && z.closeNode(), !I.skip && !I.subLanguage && (Ae += I.relevance), I = I.parent;
|
|
1666
|
+
while (I !== x.parent);
|
|
1667
|
+
return x.starts && je(x.starts, w), G.returnEnd ? 0 : D.length;
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function Kn() {
|
|
1670
1670
|
const w = [];
|
|
1671
|
-
for (let
|
|
1672
|
-
|
|
1673
|
-
w.forEach((
|
|
1671
|
+
for (let D = I; D !== V; D = D.parent)
|
|
1672
|
+
D.scope && w.unshift(D.scope);
|
|
1673
|
+
w.forEach((D) => z.openNode(D));
|
|
1674
1674
|
}
|
|
1675
1675
|
let we = {};
|
|
1676
|
-
function
|
|
1677
|
-
const k =
|
|
1678
|
-
if (
|
|
1676
|
+
function Ye(w, D) {
|
|
1677
|
+
const k = D && D[0];
|
|
1678
|
+
if (U += w, k == null)
|
|
1679
1679
|
return q(), 0;
|
|
1680
|
-
if (we.type === "begin" &&
|
|
1681
|
-
if (
|
|
1682
|
-
const
|
|
1683
|
-
throw
|
|
1680
|
+
if (we.type === "begin" && D.type === "end" && we.index === D.index && k === "") {
|
|
1681
|
+
if (U += A.slice(D.index, D.index + 1), !h) {
|
|
1682
|
+
const x = new Error(`0 width match regex (${v})`);
|
|
1683
|
+
throw x.languageName = v, x.badRule = we.rule, x;
|
|
1684
1684
|
}
|
|
1685
1685
|
return 1;
|
|
1686
1686
|
}
|
|
1687
|
-
if (we =
|
|
1688
|
-
return
|
|
1689
|
-
if (
|
|
1690
|
-
const
|
|
1691
|
-
throw
|
|
1692
|
-
} else if (
|
|
1693
|
-
const
|
|
1694
|
-
if (
|
|
1695
|
-
return
|
|
1687
|
+
if (we = D, D.type === "begin")
|
|
1688
|
+
return zn(D);
|
|
1689
|
+
if (D.type === "illegal" && !O) {
|
|
1690
|
+
const x = new Error('Illegal lexeme "' + k + '" for mode "' + (I.scope || "<unnamed>") + '"');
|
|
1691
|
+
throw x.mode = I, x;
|
|
1692
|
+
} else if (D.type === "end") {
|
|
1693
|
+
const x = Gn(D);
|
|
1694
|
+
if (x !== on)
|
|
1695
|
+
return x;
|
|
1696
1696
|
}
|
|
1697
|
-
if (
|
|
1697
|
+
if (D.type === "illegal" && k === "")
|
|
1698
1698
|
return 1;
|
|
1699
|
-
if (Oe > 1e5 && Oe >
|
|
1699
|
+
if (Oe > 1e5 && Oe > D.index * 3)
|
|
1700
1700
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
1701
|
-
return
|
|
1701
|
+
return U += k, k.length;
|
|
1702
1702
|
}
|
|
1703
|
-
const V = C(
|
|
1703
|
+
const V = C(v);
|
|
1704
1704
|
if (!V)
|
|
1705
|
-
throw ae(t.replace("{}",
|
|
1706
|
-
const
|
|
1707
|
-
let Le = "", I = P ||
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1710
|
-
let
|
|
1705
|
+
throw ae(t.replace("{}", v)), new Error('Unknown language: "' + v + '"');
|
|
1706
|
+
const Wn = Qt(V);
|
|
1707
|
+
let Le = "", I = P || Wn;
|
|
1708
|
+
const Ve = {}, z = new i.__emitter(i);
|
|
1709
|
+
Kn();
|
|
1710
|
+
let U = "", Ae = 0, se = 0, Oe = 0, Ie = !1;
|
|
1711
1711
|
try {
|
|
1712
1712
|
if (V.__emitTokens)
|
|
1713
|
-
V.__emitTokens(
|
|
1713
|
+
V.__emitTokens(A, z);
|
|
1714
1714
|
else {
|
|
1715
1715
|
for (I.matcher.considerAll(); ; ) {
|
|
1716
1716
|
Oe++, Ie ? Ie = !1 : I.matcher.considerAll(), I.matcher.lastIndex = se;
|
|
1717
|
-
const w = I.matcher.exec(
|
|
1717
|
+
const w = I.matcher.exec(A);
|
|
1718
1718
|
if (!w) break;
|
|
1719
|
-
const
|
|
1719
|
+
const D = A.substring(se, w.index), k = Ye(D, w);
|
|
1720
1720
|
se = w.index + k;
|
|
1721
1721
|
}
|
|
1722
|
-
|
|
1722
|
+
Ye(A.substring(se));
|
|
1723
1723
|
}
|
|
1724
1724
|
return z.finalize(), Le = z.toHTML(), {
|
|
1725
|
-
language:
|
|
1725
|
+
language: v,
|
|
1726
1726
|
value: Le,
|
|
1727
|
-
relevance:
|
|
1727
|
+
relevance: Ae,
|
|
1728
1728
|
illegal: !1,
|
|
1729
1729
|
_emitter: z,
|
|
1730
1730
|
_top: I
|
|
@@ -1732,23 +1732,23 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, P = M), O ===
|
|
|
1732
1732
|
} catch (w) {
|
|
1733
1733
|
if (w.message && w.message.includes("Illegal"))
|
|
1734
1734
|
return {
|
|
1735
|
-
language:
|
|
1736
|
-
value:
|
|
1735
|
+
language: v,
|
|
1736
|
+
value: Be(A),
|
|
1737
1737
|
illegal: !0,
|
|
1738
1738
|
relevance: 0,
|
|
1739
1739
|
_illegalBy: {
|
|
1740
1740
|
message: w.message,
|
|
1741
1741
|
index: se,
|
|
1742
|
-
context:
|
|
1742
|
+
context: A.slice(se - 100, se + 100),
|
|
1743
1743
|
mode: w.mode,
|
|
1744
1744
|
resultSoFar: Le
|
|
1745
1745
|
},
|
|
1746
1746
|
_emitter: z
|
|
1747
1747
|
};
|
|
1748
|
-
if (
|
|
1748
|
+
if (h)
|
|
1749
1749
|
return {
|
|
1750
|
-
language:
|
|
1751
|
-
value:
|
|
1750
|
+
language: v,
|
|
1751
|
+
value: Be(A),
|
|
1752
1752
|
illegal: !1,
|
|
1753
1753
|
relevance: 0,
|
|
1754
1754
|
errorRaised: w,
|
|
@@ -1758,20 +1758,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, P = M), O ===
|
|
|
1758
1758
|
throw w;
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
|
-
function f(
|
|
1762
|
-
const
|
|
1763
|
-
value:
|
|
1761
|
+
function f(v) {
|
|
1762
|
+
const A = {
|
|
1763
|
+
value: Be(v),
|
|
1764
1764
|
illegal: !1,
|
|
1765
1765
|
relevance: 0,
|
|
1766
1766
|
_top: r,
|
|
1767
1767
|
_emitter: new i.__emitter(i)
|
|
1768
1768
|
};
|
|
1769
|
-
return
|
|
1769
|
+
return A._emitter.addText(v), A;
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1772
|
-
|
|
1773
|
-
const O = f(
|
|
1774
|
-
(q) => c(q,
|
|
1771
|
+
function g(v, A) {
|
|
1772
|
+
A = A || i.languages || Object.keys(n);
|
|
1773
|
+
const O = f(v), P = A.filter(C).filter(B).map(
|
|
1774
|
+
(q) => c(q, v, !1)
|
|
1775
1775
|
);
|
|
1776
1776
|
P.unshift(O);
|
|
1777
1777
|
const F = P.sort((q, Y) => {
|
|
@@ -1786,42 +1786,42 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, P = M), O ===
|
|
|
1786
1786
|
}), [W, Z] = F, ye = W;
|
|
1787
1787
|
return ye.secondBest = Z, ye;
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1790
|
-
const P =
|
|
1791
|
-
|
|
1789
|
+
function d(v, A, O) {
|
|
1790
|
+
const P = A && s[A] || O;
|
|
1791
|
+
v.classList.add("hljs"), v.classList.add(`language-${P}`);
|
|
1792
1792
|
}
|
|
1793
|
-
function p(
|
|
1794
|
-
let
|
|
1795
|
-
const O =
|
|
1793
|
+
function p(v) {
|
|
1794
|
+
let A = null;
|
|
1795
|
+
const O = l(v);
|
|
1796
1796
|
if (a(O)) return;
|
|
1797
1797
|
if (te(
|
|
1798
1798
|
"before:highlightElement",
|
|
1799
|
-
{ el:
|
|
1800
|
-
),
|
|
1801
|
-
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",
|
|
1799
|
+
{ el: v, language: O }
|
|
1800
|
+
), v.dataset.highlighted) {
|
|
1801
|
+
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", v);
|
|
1802
1802
|
return;
|
|
1803
1803
|
}
|
|
1804
|
-
if (
|
|
1805
|
-
throw new
|
|
1804
|
+
if (v.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(v)), i.throwUnescapedHTML))
|
|
1805
|
+
throw new Yt(
|
|
1806
1806
|
"One of your code blocks includes unescaped HTML.",
|
|
1807
|
-
|
|
1807
|
+
v.innerHTML
|
|
1808
1808
|
);
|
|
1809
|
-
|
|
1810
|
-
const P =
|
|
1811
|
-
|
|
1809
|
+
A = v;
|
|
1810
|
+
const P = A.textContent, F = O ? o(P, { language: O, ignoreIllegals: !0 }) : g(P);
|
|
1811
|
+
v.innerHTML = F.value, v.dataset.highlighted = "yes", d(v, O, F.language), v.result = {
|
|
1812
1812
|
language: F.language,
|
|
1813
1813
|
// TODO: remove with version 11.0
|
|
1814
1814
|
re: F.relevance,
|
|
1815
1815
|
relevance: F.relevance
|
|
1816
|
-
}, F.secondBest && (
|
|
1816
|
+
}, F.secondBest && (v.secondBest = {
|
|
1817
1817
|
language: F.secondBest.language,
|
|
1818
1818
|
relevance: F.secondBest.relevance
|
|
1819
|
-
}), te("after:highlightElement", { el:
|
|
1819
|
+
}), te("after:highlightElement", { el: v, result: F, text: P });
|
|
1820
1820
|
}
|
|
1821
|
-
function _(
|
|
1822
|
-
i = an(i,
|
|
1821
|
+
function _(v) {
|
|
1822
|
+
i = an(i, v);
|
|
1823
1823
|
}
|
|
1824
|
-
const
|
|
1824
|
+
const b = () => {
|
|
1825
1825
|
y(), ce("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
1826
1826
|
};
|
|
1827
1827
|
function m() {
|
|
@@ -1839,78 +1839,78 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, P = M), O ===
|
|
|
1839
1839
|
E && y();
|
|
1840
1840
|
}
|
|
1841
1841
|
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", T, !1);
|
|
1842
|
-
function N(
|
|
1842
|
+
function N(v, A) {
|
|
1843
1843
|
let O = null;
|
|
1844
1844
|
try {
|
|
1845
|
-
O =
|
|
1845
|
+
O = A(e);
|
|
1846
1846
|
} catch (P) {
|
|
1847
|
-
if (ae("Language definition for '{}' could not be registered.".replace("{}",
|
|
1847
|
+
if (ae("Language definition for '{}' could not be registered.".replace("{}", v)), h)
|
|
1848
1848
|
ae(P);
|
|
1849
1849
|
else
|
|
1850
1850
|
throw P;
|
|
1851
1851
|
O = r;
|
|
1852
1852
|
}
|
|
1853
|
-
O.name || (O.name =
|
|
1853
|
+
O.name || (O.name = v), n[v] = O, O.rawDefinition = A.bind(null, e), O.aliases && L(O.aliases, { languageName: v });
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1856
|
-
delete n[
|
|
1857
|
-
for (const
|
|
1858
|
-
s[
|
|
1855
|
+
function M(v) {
|
|
1856
|
+
delete n[v];
|
|
1857
|
+
for (const A of Object.keys(s))
|
|
1858
|
+
s[A] === v && delete s[A];
|
|
1859
1859
|
}
|
|
1860
1860
|
function R() {
|
|
1861
1861
|
return Object.keys(n);
|
|
1862
1862
|
}
|
|
1863
|
-
function C(
|
|
1864
|
-
return
|
|
1863
|
+
function C(v) {
|
|
1864
|
+
return v = (v || "").toLowerCase(), n[v] || n[s[v]];
|
|
1865
1865
|
}
|
|
1866
|
-
function L(
|
|
1867
|
-
typeof
|
|
1868
|
-
s[O.toLowerCase()] =
|
|
1866
|
+
function L(v, { languageName: A }) {
|
|
1867
|
+
typeof v == "string" && (v = [v]), v.forEach((O) => {
|
|
1868
|
+
s[O.toLowerCase()] = A;
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
|
-
function B(
|
|
1872
|
-
const
|
|
1873
|
-
return
|
|
1871
|
+
function B(v) {
|
|
1872
|
+
const A = C(v);
|
|
1873
|
+
return A && !A.disableAutodetect;
|
|
1874
1874
|
}
|
|
1875
|
-
function $(
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
Object.assign({ block:
|
|
1875
|
+
function $(v) {
|
|
1876
|
+
v["before:highlightBlock"] && !v["before:highlightElement"] && (v["before:highlightElement"] = (A) => {
|
|
1877
|
+
v["before:highlightBlock"](
|
|
1878
|
+
Object.assign({ block: A.el }, A)
|
|
1879
1879
|
);
|
|
1880
|
-
}),
|
|
1881
|
-
|
|
1882
|
-
Object.assign({ block:
|
|
1880
|
+
}), v["after:highlightBlock"] && !v["after:highlightElement"] && (v["after:highlightElement"] = (A) => {
|
|
1881
|
+
v["after:highlightBlock"](
|
|
1882
|
+
Object.assign({ block: A.el }, A)
|
|
1883
1883
|
);
|
|
1884
1884
|
});
|
|
1885
1885
|
}
|
|
1886
|
-
function H(
|
|
1887
|
-
$(
|
|
1886
|
+
function H(v) {
|
|
1887
|
+
$(v), u.push(v);
|
|
1888
1888
|
}
|
|
1889
|
-
function K(
|
|
1890
|
-
const
|
|
1891
|
-
|
|
1889
|
+
function K(v) {
|
|
1890
|
+
const A = u.indexOf(v);
|
|
1891
|
+
A !== -1 && u.splice(A, 1);
|
|
1892
1892
|
}
|
|
1893
|
-
function te(
|
|
1894
|
-
const O =
|
|
1893
|
+
function te(v, A) {
|
|
1894
|
+
const O = v;
|
|
1895
1895
|
u.forEach(function(P) {
|
|
1896
|
-
P[O] && P[O](
|
|
1896
|
+
P[O] && P[O](A);
|
|
1897
1897
|
});
|
|
1898
1898
|
}
|
|
1899
|
-
function le(
|
|
1900
|
-
return ce("10.7.0", "highlightBlock will be removed entirely in v12.0"), ce("10.7.0", "Please use highlightElement now."), p(
|
|
1899
|
+
function le(v) {
|
|
1900
|
+
return ce("10.7.0", "highlightBlock will be removed entirely in v12.0"), ce("10.7.0", "Please use highlightElement now."), p(v);
|
|
1901
1901
|
}
|
|
1902
1902
|
Object.assign(e, {
|
|
1903
|
-
highlight:
|
|
1904
|
-
highlightAuto:
|
|
1903
|
+
highlight: o,
|
|
1904
|
+
highlightAuto: g,
|
|
1905
1905
|
highlightAll: y,
|
|
1906
1906
|
highlightElement: p,
|
|
1907
1907
|
// TODO: Remove with v12 API
|
|
1908
1908
|
highlightBlock: le,
|
|
1909
1909
|
configure: _,
|
|
1910
|
-
initHighlighting:
|
|
1910
|
+
initHighlighting: b,
|
|
1911
1911
|
initHighlightingOnLoad: m,
|
|
1912
1912
|
registerLanguage: N,
|
|
1913
|
-
unregisterLanguage:
|
|
1913
|
+
unregisterLanguage: M,
|
|
1914
1914
|
listLanguages: R,
|
|
1915
1915
|
getLanguage: C,
|
|
1916
1916
|
registerAliases: L,
|
|
@@ -1919,27 +1919,27 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, P = M), O ===
|
|
|
1919
1919
|
addPlugin: H,
|
|
1920
1920
|
removePlugin: K
|
|
1921
1921
|
}), e.debugMode = function() {
|
|
1922
|
-
|
|
1922
|
+
h = !1;
|
|
1923
1923
|
}, e.safeMode = function() {
|
|
1924
|
-
|
|
1925
|
-
}, e.versionString =
|
|
1924
|
+
h = !0;
|
|
1925
|
+
}, e.versionString = Zt, e.regex = {
|
|
1926
1926
|
concat: oe,
|
|
1927
|
-
lookahead:
|
|
1928
|
-
either:
|
|
1929
|
-
optional:
|
|
1930
|
-
anyNumberOfTimes:
|
|
1927
|
+
lookahead: Mn,
|
|
1928
|
+
either: ze,
|
|
1929
|
+
optional: ft,
|
|
1930
|
+
anyNumberOfTimes: ut
|
|
1931
1931
|
};
|
|
1932
|
-
for (const
|
|
1933
|
-
typeof
|
|
1934
|
-
return Object.assign(e,
|
|
1935
|
-
}, fe =
|
|
1936
|
-
fe.newInstance = () =>
|
|
1937
|
-
var
|
|
1932
|
+
for (const v in Me)
|
|
1933
|
+
typeof Me[v] == "object" && wn(Me[v]);
|
|
1934
|
+
return Object.assign(e, Me), e;
|
|
1935
|
+
}, fe = In({});
|
|
1936
|
+
fe.newInstance = () => In({});
|
|
1937
|
+
var Xt = fe;
|
|
1938
1938
|
fe.HighlightJS = fe;
|
|
1939
1939
|
fe.default = fe;
|
|
1940
|
-
const
|
|
1941
|
-
function
|
|
1942
|
-
const n = e.regex, s = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u,
|
|
1940
|
+
const j = /* @__PURE__ */ st(Xt);
|
|
1941
|
+
function Jt(e) {
|
|
1942
|
+
const n = e.regex, s = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, h = {
|
|
1943
1943
|
className: "symbol",
|
|
1944
1944
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
1945
1945
|
}, t = {
|
|
@@ -1954,7 +1954,7 @@ function Vt(e) {
|
|
|
1954
1954
|
}, r = e.inherit(t, {
|
|
1955
1955
|
begin: /\(/,
|
|
1956
1956
|
end: /\)/
|
|
1957
|
-
}), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), a = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }),
|
|
1957
|
+
}), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), a = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), l = {
|
|
1958
1958
|
endsWithParent: !0,
|
|
1959
1959
|
illegal: /</,
|
|
1960
1960
|
relevance: 0,
|
|
@@ -1975,12 +1975,12 @@ function Vt(e) {
|
|
|
1975
1975
|
{
|
|
1976
1976
|
begin: /"/,
|
|
1977
1977
|
end: /"/,
|
|
1978
|
-
contains: [
|
|
1978
|
+
contains: [h]
|
|
1979
1979
|
},
|
|
1980
1980
|
{
|
|
1981
1981
|
begin: /'/,
|
|
1982
1982
|
end: /'/,
|
|
1983
|
-
contains: [
|
|
1983
|
+
contains: [h]
|
|
1984
1984
|
},
|
|
1985
1985
|
{ begin: /[^\s"'=<>`]+/ }
|
|
1986
1986
|
]
|
|
@@ -2045,7 +2045,7 @@ function Vt(e) {
|
|
|
2045
2045
|
end: /\]\]>/,
|
|
2046
2046
|
relevance: 10
|
|
2047
2047
|
},
|
|
2048
|
-
|
|
2048
|
+
h,
|
|
2049
2049
|
// xml processing instructions
|
|
2050
2050
|
{
|
|
2051
2051
|
className: "meta",
|
|
@@ -2073,7 +2073,7 @@ function Vt(e) {
|
|
|
2073
2073
|
begin: /<style(?=\s|>)/,
|
|
2074
2074
|
end: />/,
|
|
2075
2075
|
keywords: { name: "style" },
|
|
2076
|
-
contains: [
|
|
2076
|
+
contains: [l],
|
|
2077
2077
|
starts: {
|
|
2078
2078
|
end: /<\/style>/,
|
|
2079
2079
|
returnEnd: !0,
|
|
@@ -2089,7 +2089,7 @@ function Vt(e) {
|
|
|
2089
2089
|
begin: /<script(?=\s|>)/,
|
|
2090
2090
|
end: />/,
|
|
2091
2091
|
keywords: { name: "script" },
|
|
2092
|
-
contains: [
|
|
2092
|
+
contains: [l],
|
|
2093
2093
|
starts: {
|
|
2094
2094
|
end: /<\/script>/,
|
|
2095
2095
|
returnEnd: !0,
|
|
@@ -2124,7 +2124,7 @@ function Vt(e) {
|
|
|
2124
2124
|
className: "name",
|
|
2125
2125
|
begin: s,
|
|
2126
2126
|
relevance: 0,
|
|
2127
|
-
starts:
|
|
2127
|
+
starts: l
|
|
2128
2128
|
}
|
|
2129
2129
|
]
|
|
2130
2130
|
},
|
|
@@ -2154,7 +2154,7 @@ function Vt(e) {
|
|
|
2154
2154
|
]
|
|
2155
2155
|
};
|
|
2156
2156
|
}
|
|
2157
|
-
const ln = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
2157
|
+
const ln = "[A-Za-z$_][0-9A-Za-z$_]*", er = [
|
|
2158
2158
|
"as",
|
|
2159
2159
|
// for exports
|
|
2160
2160
|
"in",
|
|
@@ -2197,14 +2197,14 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Xt = [
|
|
|
2197
2197
|
"from",
|
|
2198
2198
|
"export",
|
|
2199
2199
|
"extends"
|
|
2200
|
-
],
|
|
2200
|
+
], nr = [
|
|
2201
2201
|
"true",
|
|
2202
2202
|
"false",
|
|
2203
2203
|
"null",
|
|
2204
2204
|
"undefined",
|
|
2205
2205
|
"NaN",
|
|
2206
2206
|
"Infinity"
|
|
2207
|
-
],
|
|
2207
|
+
], kn = [
|
|
2208
2208
|
// Fundamental objects
|
|
2209
2209
|
"Object",
|
|
2210
2210
|
"Function",
|
|
@@ -2254,7 +2254,7 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Xt = [
|
|
|
2254
2254
|
"Intl",
|
|
2255
2255
|
// WebAssembly
|
|
2256
2256
|
"WebAssembly"
|
|
2257
|
-
],
|
|
2257
|
+
], $n = [
|
|
2258
2258
|
"Error",
|
|
2259
2259
|
"EvalError",
|
|
2260
2260
|
"InternalError",
|
|
@@ -2263,7 +2263,7 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Xt = [
|
|
|
2263
2263
|
"SyntaxError",
|
|
2264
2264
|
"TypeError",
|
|
2265
2265
|
"URIError"
|
|
2266
|
-
],
|
|
2266
|
+
], Bn = [
|
|
2267
2267
|
"setInterval",
|
|
2268
2268
|
"setTimeout",
|
|
2269
2269
|
"clearInterval",
|
|
@@ -2281,7 +2281,7 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Xt = [
|
|
|
2281
2281
|
"encodeURIComponent",
|
|
2282
2282
|
"escape",
|
|
2283
2283
|
"unescape"
|
|
2284
|
-
],
|
|
2284
|
+
], tr = [
|
|
2285
2285
|
"arguments",
|
|
2286
2286
|
"this",
|
|
2287
2287
|
"super",
|
|
@@ -2293,16 +2293,16 @@ const ln = "[A-Za-z$_][0-9A-Za-z$_]*", Xt = [
|
|
|
2293
2293
|
"module",
|
|
2294
2294
|
"global"
|
|
2295
2295
|
// Node.js
|
|
2296
|
-
],
|
|
2296
|
+
], rr = [].concat(
|
|
2297
|
+
Bn,
|
|
2297
2298
|
kn,
|
|
2298
|
-
|
|
2299
|
-
In
|
|
2299
|
+
$n
|
|
2300
2300
|
);
|
|
2301
|
-
function
|
|
2302
|
-
const n = e.regex, s = (
|
|
2303
|
-
const P = "</" +
|
|
2304
|
-
return
|
|
2305
|
-
}, u = ln,
|
|
2301
|
+
function ir(e) {
|
|
2302
|
+
const n = e.regex, s = (A, { after: O }) => {
|
|
2303
|
+
const P = "</" + A[0].slice(1);
|
|
2304
|
+
return A.input.indexOf(P, O) !== -1;
|
|
2305
|
+
}, u = ln, h = {
|
|
2306
2306
|
begin: "<>",
|
|
2307
2307
|
end: "</>"
|
|
2308
2308
|
}, t = /<[A-Za-z0-9\\._:-]+\s*\/>/, r = {
|
|
@@ -2312,8 +2312,8 @@ function tr(e) {
|
|
|
2312
2312
|
* @param {RegExpMatchArray} match
|
|
2313
2313
|
* @param {CallbackResponse} response
|
|
2314
2314
|
*/
|
|
2315
|
-
isTrulyOpeningTag: (
|
|
2316
|
-
const P =
|
|
2315
|
+
isTrulyOpeningTag: (A, O) => {
|
|
2316
|
+
const P = A[0].length + A.index, F = A.input[P];
|
|
2317
2317
|
if (
|
|
2318
2318
|
// HTML should not include another raw `<` inside a tag
|
|
2319
2319
|
// nested type?
|
|
@@ -2325,9 +2325,9 @@ function tr(e) {
|
|
|
2325
2325
|
O.ignoreMatch();
|
|
2326
2326
|
return;
|
|
2327
2327
|
}
|
|
2328
|
-
F === ">" && (s(
|
|
2328
|
+
F === ">" && (s(A, { after: P }) || O.ignoreMatch());
|
|
2329
2329
|
let W;
|
|
2330
|
-
const Z =
|
|
2330
|
+
const Z = A.input.substring(P);
|
|
2331
2331
|
if (W = Z.match(/^\s*=/)) {
|
|
2332
2332
|
O.ignoreMatch();
|
|
2333
2333
|
return;
|
|
@@ -2339,16 +2339,16 @@ function tr(e) {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
}, i = {
|
|
2341
2341
|
$pattern: ln,
|
|
2342
|
-
keyword:
|
|
2343
|
-
literal:
|
|
2344
|
-
built_in:
|
|
2345
|
-
"variable.language":
|
|
2346
|
-
}, a = "[0-9](_?[0-9])*",
|
|
2342
|
+
keyword: er,
|
|
2343
|
+
literal: nr,
|
|
2344
|
+
built_in: rr,
|
|
2345
|
+
"variable.language": tr
|
|
2346
|
+
}, a = "[0-9](_?[0-9])*", l = `\\.(${a})`, o = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
|
|
2347
2347
|
className: "number",
|
|
2348
2348
|
variants: [
|
|
2349
2349
|
// DecimalLiteral
|
|
2350
|
-
{ begin: `(\\b(${
|
|
2351
|
-
{ begin: `\\b(${
|
|
2350
|
+
{ begin: `(\\b(${o})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b` },
|
|
2351
|
+
{ begin: `\\b(${o})\\b((${l})\\b|\\.)?|(${l})\\b` },
|
|
2352
2352
|
// DecimalBigIntegerLiteral
|
|
2353
2353
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
|
2354
2354
|
// NonDecimalIntegerLiteral
|
|
@@ -2367,7 +2367,7 @@ function tr(e) {
|
|
|
2367
2367
|
keywords: i,
|
|
2368
2368
|
contains: []
|
|
2369
2369
|
// defined later
|
|
2370
|
-
},
|
|
2370
|
+
}, g = {
|
|
2371
2371
|
begin: ".?html`",
|
|
2372
2372
|
end: "",
|
|
2373
2373
|
starts: {
|
|
@@ -2379,7 +2379,7 @@ function tr(e) {
|
|
|
2379
2379
|
],
|
|
2380
2380
|
subLanguage: "xml"
|
|
2381
2381
|
}
|
|
2382
|
-
},
|
|
2382
|
+
}, d = {
|
|
2383
2383
|
begin: ".?css`",
|
|
2384
2384
|
end: "",
|
|
2385
2385
|
starts: {
|
|
@@ -2459,8 +2459,8 @@ function tr(e) {
|
|
|
2459
2459
|
}, E = [
|
|
2460
2460
|
e.APOS_STRING_MODE,
|
|
2461
2461
|
e.QUOTE_STRING_MODE,
|
|
2462
|
-
h,
|
|
2463
2462
|
g,
|
|
2463
|
+
d,
|
|
2464
2464
|
p,
|
|
2465
2465
|
_,
|
|
2466
2466
|
// Skip numbers when they are part of a variable name
|
|
@@ -2498,7 +2498,7 @@ function tr(e) {
|
|
|
2498
2498
|
excludeEnd: !0,
|
|
2499
2499
|
keywords: i,
|
|
2500
2500
|
contains: T
|
|
2501
|
-
},
|
|
2501
|
+
}, M = {
|
|
2502
2502
|
variants: [
|
|
2503
2503
|
// class Car extends vehicle
|
|
2504
2504
|
{
|
|
@@ -2551,8 +2551,8 @@ function tr(e) {
|
|
|
2551
2551
|
keywords: {
|
|
2552
2552
|
_: [
|
|
2553
2553
|
// se we still get relevance credit for JS library classes
|
|
2554
|
-
...
|
|
2555
|
-
|
|
2554
|
+
...kn,
|
|
2555
|
+
...$n
|
|
2556
2556
|
]
|
|
2557
2557
|
}
|
|
2558
2558
|
}, C = {
|
|
@@ -2590,17 +2590,17 @@ function tr(e) {
|
|
|
2590
2590
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
2591
2591
|
className: "variable.constant"
|
|
2592
2592
|
};
|
|
2593
|
-
function $(
|
|
2594
|
-
return n.concat("(?!",
|
|
2593
|
+
function $(A) {
|
|
2594
|
+
return n.concat("(?!", A.join("|"), ")");
|
|
2595
2595
|
}
|
|
2596
2596
|
const H = {
|
|
2597
2597
|
match: n.concat(
|
|
2598
2598
|
/\b/,
|
|
2599
2599
|
$([
|
|
2600
|
-
...
|
|
2600
|
+
...Bn,
|
|
2601
2601
|
"super",
|
|
2602
2602
|
"import"
|
|
2603
|
-
].map((
|
|
2603
|
+
].map((A) => `${A}\\s*\\(`)),
|
|
2604
2604
|
u,
|
|
2605
2605
|
n.lookahead(/\s*\(/)
|
|
2606
2606
|
),
|
|
@@ -2633,7 +2633,7 @@ function tr(e) {
|
|
|
2633
2633
|
},
|
|
2634
2634
|
N
|
|
2635
2635
|
]
|
|
2636
|
-
}, le = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>",
|
|
2636
|
+
}, le = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", v = {
|
|
2637
2637
|
match: [
|
|
2638
2638
|
/const|var|let/,
|
|
2639
2639
|
/\s+/,
|
|
@@ -2669,8 +2669,8 @@ function tr(e) {
|
|
|
2669
2669
|
C,
|
|
2670
2670
|
e.APOS_STRING_MODE,
|
|
2671
2671
|
e.QUOTE_STRING_MODE,
|
|
2672
|
-
h,
|
|
2673
2672
|
g,
|
|
2673
|
+
d,
|
|
2674
2674
|
p,
|
|
2675
2675
|
_,
|
|
2676
2676
|
m,
|
|
@@ -2683,7 +2683,7 @@ function tr(e) {
|
|
|
2683
2683
|
begin: u + n.lookahead(":"),
|
|
2684
2684
|
relevance: 0
|
|
2685
2685
|
},
|
|
2686
|
-
|
|
2686
|
+
v,
|
|
2687
2687
|
{
|
|
2688
2688
|
// "value" container
|
|
2689
2689
|
begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
@@ -2737,7 +2737,7 @@ function tr(e) {
|
|
|
2737
2737
|
{
|
|
2738
2738
|
// JSX
|
|
2739
2739
|
variants: [
|
|
2740
|
-
{ begin:
|
|
2740
|
+
{ begin: h.begin, end: h.end },
|
|
2741
2741
|
{ match: t },
|
|
2742
2742
|
{
|
|
2743
2743
|
begin: r.begin,
|
|
@@ -2798,7 +2798,7 @@ function tr(e) {
|
|
|
2798
2798
|
},
|
|
2799
2799
|
H,
|
|
2800
2800
|
B,
|
|
2801
|
-
|
|
2801
|
+
M,
|
|
2802
2802
|
te,
|
|
2803
2803
|
{
|
|
2804
2804
|
match: /\$[(.]/
|
|
@@ -2807,7 +2807,7 @@ function tr(e) {
|
|
|
2807
2807
|
]
|
|
2808
2808
|
};
|
|
2809
2809
|
}
|
|
2810
|
-
function
|
|
2810
|
+
function sr(e) {
|
|
2811
2811
|
const n = {
|
|
2812
2812
|
className: "attr",
|
|
2813
2813
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -2820,7 +2820,7 @@ function rr(e) {
|
|
|
2820
2820
|
"true",
|
|
2821
2821
|
"false",
|
|
2822
2822
|
"null"
|
|
2823
|
-
],
|
|
2823
|
+
], h = {
|
|
2824
2824
|
scope: "literal",
|
|
2825
2825
|
beginKeywords: u.join(" ")
|
|
2826
2826
|
};
|
|
@@ -2834,7 +2834,7 @@ function rr(e) {
|
|
|
2834
2834
|
n,
|
|
2835
2835
|
s,
|
|
2836
2836
|
e.QUOTE_STRING_MODE,
|
|
2837
|
-
|
|
2837
|
+
h,
|
|
2838
2838
|
e.C_NUMBER_MODE,
|
|
2839
2839
|
e.C_LINE_COMMENT_MODE,
|
|
2840
2840
|
e.C_BLOCK_COMMENT_MODE
|
|
@@ -2842,7 +2842,7 @@ function rr(e) {
|
|
|
2842
2842
|
illegal: "\\S"
|
|
2843
2843
|
};
|
|
2844
2844
|
}
|
|
2845
|
-
function
|
|
2845
|
+
function ar(e) {
|
|
2846
2846
|
const n = "true false yes no null", s = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
|
|
2847
2847
|
className: "attr",
|
|
2848
2848
|
variants: [
|
|
@@ -2857,7 +2857,7 @@ function ir(e) {
|
|
|
2857
2857
|
begin: /'\w[\w :()\./-]*':(?=[ \t]|$)/
|
|
2858
2858
|
}
|
|
2859
2859
|
]
|
|
2860
|
-
},
|
|
2860
|
+
}, h = {
|
|
2861
2861
|
className: "template-variable",
|
|
2862
2862
|
variants: [
|
|
2863
2863
|
{
|
|
@@ -2887,7 +2887,7 @@ function ir(e) {
|
|
|
2887
2887
|
],
|
|
2888
2888
|
contains: [
|
|
2889
2889
|
e.BACKSLASH_ESCAPE,
|
|
2890
|
-
|
|
2890
|
+
h
|
|
2891
2891
|
]
|
|
2892
2892
|
}, r = e.inherit(t, { variants: [
|
|
2893
2893
|
{
|
|
@@ -2908,13 +2908,13 @@ function ir(e) {
|
|
|
2908
2908
|
excludeEnd: !0,
|
|
2909
2909
|
keywords: n,
|
|
2910
2910
|
relevance: 0
|
|
2911
|
-
},
|
|
2911
|
+
}, g = {
|
|
2912
2912
|
begin: /\{/,
|
|
2913
2913
|
end: /\}/,
|
|
2914
2914
|
contains: [f],
|
|
2915
2915
|
illegal: "\\n",
|
|
2916
2916
|
relevance: 0
|
|
2917
|
-
},
|
|
2917
|
+
}, d = {
|
|
2918
2918
|
begin: "\\[",
|
|
2919
2919
|
end: "\\]",
|
|
2920
2920
|
contains: [f],
|
|
@@ -2996,8 +2996,8 @@ function ir(e) {
|
|
|
2996
2996
|
begin: e.C_NUMBER_RE + "\\b",
|
|
2997
2997
|
relevance: 0
|
|
2998
2998
|
},
|
|
2999
|
-
h,
|
|
3000
2999
|
g,
|
|
3000
|
+
d,
|
|
3001
3001
|
t
|
|
3002
3002
|
], _ = [...p];
|
|
3003
3003
|
return _.pop(), _.push(r), f.contains = _, {
|
|
@@ -3007,7 +3007,7 @@ function ir(e) {
|
|
|
3007
3007
|
contains: p
|
|
3008
3008
|
};
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3010
|
+
function or(e) {
|
|
3011
3011
|
return {
|
|
3012
3012
|
name: "Plain text",
|
|
3013
3013
|
aliases: [
|
|
@@ -3017,7 +3017,7 @@ function sr(e) {
|
|
|
3017
3017
|
disableAutodetect: !0
|
|
3018
3018
|
};
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function lr(e) {
|
|
3021
3021
|
const n = e.regex, s = /[\p{XID_Start}_]\p{XID_Continue}*/u, u = [
|
|
3022
3022
|
"and",
|
|
3023
3023
|
"as",
|
|
@@ -3153,13 +3153,13 @@ function ar(e) {
|
|
|
3153
3153
|
}, a = {
|
|
3154
3154
|
className: "meta",
|
|
3155
3155
|
begin: /^(>>>|\.\.\.) /
|
|
3156
|
-
},
|
|
3156
|
+
}, l = {
|
|
3157
3157
|
className: "subst",
|
|
3158
3158
|
begin: /\{/,
|
|
3159
3159
|
end: /\}/,
|
|
3160
3160
|
keywords: i,
|
|
3161
3161
|
illegal: /#/
|
|
3162
|
-
},
|
|
3162
|
+
}, o = {
|
|
3163
3163
|
begin: /\{\{/,
|
|
3164
3164
|
relevance: 0
|
|
3165
3165
|
}, c = {
|
|
@@ -3190,8 +3190,8 @@ function ar(e) {
|
|
|
3190
3190
|
contains: [
|
|
3191
3191
|
e.BACKSLASH_ESCAPE,
|
|
3192
3192
|
a,
|
|
3193
|
-
|
|
3194
|
-
|
|
3193
|
+
o,
|
|
3194
|
+
l
|
|
3195
3195
|
]
|
|
3196
3196
|
},
|
|
3197
3197
|
{
|
|
@@ -3200,8 +3200,8 @@ function ar(e) {
|
|
|
3200
3200
|
contains: [
|
|
3201
3201
|
e.BACKSLASH_ESCAPE,
|
|
3202
3202
|
a,
|
|
3203
|
-
|
|
3204
|
-
|
|
3203
|
+
o,
|
|
3204
|
+
l
|
|
3205
3205
|
]
|
|
3206
3206
|
},
|
|
3207
3207
|
{
|
|
@@ -3227,8 +3227,8 @@ function ar(e) {
|
|
|
3227
3227
|
end: /'/,
|
|
3228
3228
|
contains: [
|
|
3229
3229
|
e.BACKSLASH_ESCAPE,
|
|
3230
|
-
|
|
3231
|
-
|
|
3230
|
+
o,
|
|
3231
|
+
l
|
|
3232
3232
|
]
|
|
3233
3233
|
},
|
|
3234
3234
|
{
|
|
@@ -3236,14 +3236,14 @@ function ar(e) {
|
|
|
3236
3236
|
end: /"/,
|
|
3237
3237
|
contains: [
|
|
3238
3238
|
e.BACKSLASH_ESCAPE,
|
|
3239
|
-
|
|
3240
|
-
|
|
3239
|
+
o,
|
|
3240
|
+
l
|
|
3241
3241
|
]
|
|
3242
3242
|
},
|
|
3243
3243
|
e.APOS_STRING_MODE,
|
|
3244
3244
|
e.QUOTE_STRING_MODE
|
|
3245
3245
|
]
|
|
3246
|
-
}, f = "[0-9](_?[0-9])*",
|
|
3246
|
+
}, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`, p = {
|
|
3247
3247
|
className: "number",
|
|
3248
3248
|
relevance: 0,
|
|
3249
3249
|
variants: [
|
|
@@ -3258,10 +3258,10 @@ function ar(e) {
|
|
|
3258
3258
|
// because both MUST contain a decimal point and so cannot be confused with
|
|
3259
3259
|
// the interior part of an identifier
|
|
3260
3260
|
{
|
|
3261
|
-
begin: `(\\b(${f})|(${
|
|
3261
|
+
begin: `(\\b(${f})|(${g}))[eE][+-]?(${f})[jJ]?(?=${d})`
|
|
3262
3262
|
},
|
|
3263
3263
|
{
|
|
3264
|
-
begin: `(${
|
|
3264
|
+
begin: `(${g})[jJ]?`
|
|
3265
3265
|
},
|
|
3266
3266
|
// decinteger, bininteger, octinteger, hexinteger
|
|
3267
3267
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
|
|
@@ -3270,21 +3270,21 @@ function ar(e) {
|
|
|
3270
3270
|
// decinteger is optionally imaginary
|
|
3271
3271
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
3272
3272
|
{
|
|
3273
|
-
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${
|
|
3273
|
+
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`
|
|
3274
3274
|
},
|
|
3275
3275
|
{
|
|
3276
|
-
begin: `\\b0[bB](_?[01])+[lL]?(?=${
|
|
3276
|
+
begin: `\\b0[bB](_?[01])+[lL]?(?=${d})`
|
|
3277
3277
|
},
|
|
3278
3278
|
{
|
|
3279
|
-
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${
|
|
3279
|
+
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${d})`
|
|
3280
3280
|
},
|
|
3281
3281
|
{
|
|
3282
|
-
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${
|
|
3282
|
+
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`
|
|
3283
3283
|
},
|
|
3284
3284
|
// imagnumber (digitpart-based)
|
|
3285
3285
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
3286
3286
|
{
|
|
3287
|
-
begin: `\\b(${f})[jJ](?=${
|
|
3287
|
+
begin: `\\b(${f})[jJ](?=${d})`
|
|
3288
3288
|
}
|
|
3289
3289
|
]
|
|
3290
3290
|
}, _ = {
|
|
@@ -3304,7 +3304,7 @@ function ar(e) {
|
|
|
3304
3304
|
endsWithParent: !0
|
|
3305
3305
|
}
|
|
3306
3306
|
]
|
|
3307
|
-
},
|
|
3307
|
+
}, b = {
|
|
3308
3308
|
className: "params",
|
|
3309
3309
|
variants: [
|
|
3310
3310
|
// Exclude params in functions without params
|
|
@@ -3329,7 +3329,7 @@ function ar(e) {
|
|
|
3329
3329
|
}
|
|
3330
3330
|
]
|
|
3331
3331
|
};
|
|
3332
|
-
return
|
|
3332
|
+
return l.contains = [
|
|
3333
3333
|
c,
|
|
3334
3334
|
p,
|
|
3335
3335
|
a
|
|
@@ -3371,7 +3371,7 @@ function ar(e) {
|
|
|
3371
3371
|
1: "keyword",
|
|
3372
3372
|
3: "title.function"
|
|
3373
3373
|
},
|
|
3374
|
-
contains: [
|
|
3374
|
+
contains: [b]
|
|
3375
3375
|
},
|
|
3376
3376
|
{
|
|
3377
3377
|
variants: [
|
|
@@ -3406,7 +3406,7 @@ function ar(e) {
|
|
|
3406
3406
|
end: /(?=#)|$/,
|
|
3407
3407
|
contains: [
|
|
3408
3408
|
p,
|
|
3409
|
-
|
|
3409
|
+
b,
|
|
3410
3410
|
c
|
|
3411
3411
|
]
|
|
3412
3412
|
}
|
|
@@ -3436,11 +3436,11 @@ var ue = "[0-9](_*[0-9])*", Ne = `\\.(${ue})`, Te = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
3436
3436
|
],
|
|
3437
3437
|
relevance: 0
|
|
3438
3438
|
};
|
|
3439
|
-
function
|
|
3440
|
-
return s === -1 ? "" : e.replace(n, (u) =>
|
|
3439
|
+
function Pn(e, n, s) {
|
|
3440
|
+
return s === -1 ? "" : e.replace(n, (u) => Pn(e, n, s - 1));
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3443
|
-
const n = e.regex, s = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = s +
|
|
3442
|
+
function cr(e) {
|
|
3443
|
+
const n = e.regex, s = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = s + Pn("(?:<" + s + "~~~(?:\\s*,\\s*" + s + "~~~)*>)?", /~~~/g, 2), a = {
|
|
3444
3444
|
keyword: [
|
|
3445
3445
|
"synchronized",
|
|
3446
3446
|
"abstract",
|
|
@@ -3505,7 +3505,7 @@ function or(e) {
|
|
|
3505
3505
|
"super",
|
|
3506
3506
|
"this"
|
|
3507
3507
|
]
|
|
3508
|
-
},
|
|
3508
|
+
}, l = {
|
|
3509
3509
|
className: "meta",
|
|
3510
3510
|
begin: "@" + s,
|
|
3511
3511
|
contains: [
|
|
@@ -3516,7 +3516,7 @@ function or(e) {
|
|
|
3516
3516
|
// allow nested () inside our annotation
|
|
3517
3517
|
}
|
|
3518
3518
|
]
|
|
3519
|
-
},
|
|
3519
|
+
}, o = {
|
|
3520
3520
|
className: "params",
|
|
3521
3521
|
begin: /\(/,
|
|
3522
3522
|
end: /\)/,
|
|
@@ -3606,7 +3606,7 @@ function or(e) {
|
|
|
3606
3606
|
3: "title.class"
|
|
3607
3607
|
},
|
|
3608
3608
|
contains: [
|
|
3609
|
-
|
|
3609
|
+
o,
|
|
3610
3610
|
e.C_LINE_COMMENT_MODE,
|
|
3611
3611
|
e.C_BLOCK_COMMENT_MODE
|
|
3612
3612
|
]
|
|
@@ -3633,7 +3633,7 @@ function or(e) {
|
|
|
3633
3633
|
keywords: a,
|
|
3634
3634
|
relevance: 0,
|
|
3635
3635
|
contains: [
|
|
3636
|
-
|
|
3636
|
+
l,
|
|
3637
3637
|
e.APOS_STRING_MODE,
|
|
3638
3638
|
e.QUOTE_STRING_MODE,
|
|
3639
3639
|
cn,
|
|
@@ -3645,11 +3645,11 @@ function or(e) {
|
|
|
3645
3645
|
]
|
|
3646
3646
|
},
|
|
3647
3647
|
cn,
|
|
3648
|
-
|
|
3648
|
+
l
|
|
3649
3649
|
]
|
|
3650
3650
|
};
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3652
|
+
function ur(e) {
|
|
3653
3653
|
const n = e.regex, s = {}, u = {
|
|
3654
3654
|
begin: /\$\{/,
|
|
3655
3655
|
end: /\}/,
|
|
@@ -3674,7 +3674,7 @@ function lr(e) {
|
|
|
3674
3674
|
u
|
|
3675
3675
|
]
|
|
3676
3676
|
});
|
|
3677
|
-
const
|
|
3677
|
+
const h = {
|
|
3678
3678
|
className: "subst",
|
|
3679
3679
|
begin: /\$\(/,
|
|
3680
3680
|
end: /\)/,
|
|
@@ -3706,17 +3706,17 @@ function lr(e) {
|
|
|
3706
3706
|
contains: [
|
|
3707
3707
|
e.BACKSLASH_ESCAPE,
|
|
3708
3708
|
s,
|
|
3709
|
-
|
|
3709
|
+
h
|
|
3710
3710
|
]
|
|
3711
3711
|
};
|
|
3712
|
-
|
|
3712
|
+
h.contains.push(i);
|
|
3713
3713
|
const a = {
|
|
3714
3714
|
match: /\\"/
|
|
3715
|
-
},
|
|
3715
|
+
}, l = {
|
|
3716
3716
|
className: "string",
|
|
3717
3717
|
begin: /'/,
|
|
3718
3718
|
end: /'/
|
|
3719
|
-
},
|
|
3719
|
+
}, o = {
|
|
3720
3720
|
match: /\\'/
|
|
3721
3721
|
}, c = {
|
|
3722
3722
|
begin: /\$?\(\(/,
|
|
@@ -3739,10 +3739,10 @@ function lr(e) {
|
|
|
3739
3739
|
"tcsh",
|
|
3740
3740
|
"dash",
|
|
3741
3741
|
"scsh"
|
|
3742
|
-
],
|
|
3742
|
+
], g = e.SHEBANG({
|
|
3743
3743
|
binary: `(${f.join("|")})`,
|
|
3744
3744
|
relevance: 10
|
|
3745
|
-
}),
|
|
3745
|
+
}), d = {
|
|
3746
3746
|
className: "function",
|
|
3747
3747
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
3748
3748
|
returnBegin: !0,
|
|
@@ -3767,7 +3767,7 @@ function lr(e) {
|
|
|
3767
3767
|
], _ = [
|
|
3768
3768
|
"true",
|
|
3769
3769
|
"false"
|
|
3770
|
-
],
|
|
3770
|
+
], b = { match: /(\/[a-z._-]+)+/ }, m = [
|
|
3771
3771
|
"break",
|
|
3772
3772
|
"cd",
|
|
3773
3773
|
"continue",
|
|
@@ -4004,24 +4004,24 @@ function lr(e) {
|
|
|
4004
4004
|
]
|
|
4005
4005
|
},
|
|
4006
4006
|
contains: [
|
|
4007
|
-
|
|
4007
|
+
g,
|
|
4008
4008
|
// to catch known shells and boost relevancy
|
|
4009
4009
|
e.SHEBANG(),
|
|
4010
4010
|
// to catch unknown shells but still highlight the shebang
|
|
4011
|
-
|
|
4011
|
+
d,
|
|
4012
4012
|
c,
|
|
4013
4013
|
t,
|
|
4014
4014
|
r,
|
|
4015
|
-
|
|
4015
|
+
b,
|
|
4016
4016
|
i,
|
|
4017
4017
|
a,
|
|
4018
|
-
o,
|
|
4019
4018
|
l,
|
|
4019
|
+
o,
|
|
4020
4020
|
s
|
|
4021
4021
|
]
|
|
4022
4022
|
};
|
|
4023
4023
|
}
|
|
4024
|
-
function
|
|
4024
|
+
function fr(e) {
|
|
4025
4025
|
const n = e.regex, s = e.COMMENT("--", "$"), u = {
|
|
4026
4026
|
className: "string",
|
|
4027
4027
|
variants: [
|
|
@@ -4031,7 +4031,7 @@ function cr(e) {
|
|
|
4031
4031
|
contains: [{ begin: /''/ }]
|
|
4032
4032
|
}
|
|
4033
4033
|
]
|
|
4034
|
-
},
|
|
4034
|
+
}, h = {
|
|
4035
4035
|
begin: /"/,
|
|
4036
4036
|
end: /"/,
|
|
4037
4037
|
contains: [{ begin: /""/ }]
|
|
@@ -4084,7 +4084,7 @@ function cr(e) {
|
|
|
4084
4084
|
"first",
|
|
4085
4085
|
"last",
|
|
4086
4086
|
"view"
|
|
4087
|
-
],
|
|
4087
|
+
], l = [
|
|
4088
4088
|
"abs",
|
|
4089
4089
|
"acos",
|
|
4090
4090
|
"all",
|
|
@@ -4451,7 +4451,7 @@ function cr(e) {
|
|
|
4451
4451
|
"within",
|
|
4452
4452
|
"without",
|
|
4453
4453
|
"year"
|
|
4454
|
-
],
|
|
4454
|
+
], o = [
|
|
4455
4455
|
"abs",
|
|
4456
4456
|
"acos",
|
|
4457
4457
|
"array_agg",
|
|
@@ -4570,27 +4570,27 @@ function cr(e) {
|
|
|
4570
4570
|
"nulls last",
|
|
4571
4571
|
"depth first",
|
|
4572
4572
|
"breadth first"
|
|
4573
|
-
],
|
|
4574
|
-
...
|
|
4573
|
+
], g = o, d = [
|
|
4574
|
+
...l,
|
|
4575
4575
|
...a
|
|
4576
|
-
].filter((E) => !
|
|
4576
|
+
].filter((E) => !o.includes(E)), p = {
|
|
4577
4577
|
className: "variable",
|
|
4578
4578
|
begin: /@[a-z0-9][a-z0-9_]*/
|
|
4579
4579
|
}, _ = {
|
|
4580
4580
|
className: "operator",
|
|
4581
4581
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
4582
4582
|
relevance: 0
|
|
4583
|
-
},
|
|
4584
|
-
begin: n.concat(/\b/, n.either(...
|
|
4583
|
+
}, b = {
|
|
4584
|
+
begin: n.concat(/\b/, n.either(...g), /\s*\(/),
|
|
4585
4585
|
relevance: 0,
|
|
4586
|
-
keywords: { built_in:
|
|
4586
|
+
keywords: { built_in: g }
|
|
4587
4587
|
};
|
|
4588
4588
|
function m(E, {
|
|
4589
4589
|
exceptions: y,
|
|
4590
4590
|
when: T
|
|
4591
4591
|
} = {}) {
|
|
4592
4592
|
const N = T;
|
|
4593
|
-
return y = y || [], E.map((
|
|
4593
|
+
return y = y || [], E.map((M) => M.match(/\|\d+$/) || y.includes(M) ? M : N(M) ? `${M}|0` : M);
|
|
4594
4594
|
}
|
|
4595
4595
|
return {
|
|
4596
4596
|
name: "SQL",
|
|
@@ -4599,7 +4599,7 @@ function cr(e) {
|
|
|
4599
4599
|
illegal: /[{}]|<\//,
|
|
4600
4600
|
keywords: {
|
|
4601
4601
|
$pattern: /\b[\w\.]+/,
|
|
4602
|
-
keyword: m(
|
|
4602
|
+
keyword: m(d, { when: (E) => E.length < 3 }),
|
|
4603
4603
|
literal: t,
|
|
4604
4604
|
type: i,
|
|
4605
4605
|
built_in: c
|
|
@@ -4610,7 +4610,7 @@ function cr(e) {
|
|
|
4610
4610
|
relevance: 0,
|
|
4611
4611
|
keywords: {
|
|
4612
4612
|
$pattern: /[\w\.]+/,
|
|
4613
|
-
keyword:
|
|
4613
|
+
keyword: d.concat(f),
|
|
4614
4614
|
literal: t,
|
|
4615
4615
|
type: i
|
|
4616
4616
|
}
|
|
@@ -4619,10 +4619,10 @@ function cr(e) {
|
|
|
4619
4619
|
className: "type",
|
|
4620
4620
|
begin: n.either(...r)
|
|
4621
4621
|
},
|
|
4622
|
-
|
|
4622
|
+
b,
|
|
4623
4623
|
p,
|
|
4624
4624
|
u,
|
|
4625
|
-
|
|
4625
|
+
h,
|
|
4626
4626
|
e.C_NUMBER_MODE,
|
|
4627
4627
|
e.C_BLOCK_COMMENT_MODE,
|
|
4628
4628
|
s,
|
|
@@ -4630,52 +4630,64 @@ function cr(e) {
|
|
|
4630
4630
|
]
|
|
4631
4631
|
};
|
|
4632
4632
|
}
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
var
|
|
4643
|
-
const J = "<code-diff-modified>", ee = "</code-diff-modified>",
|
|
4633
|
+
j.registerLanguage("xml", Jt);
|
|
4634
|
+
j.registerLanguage("javascript", ir);
|
|
4635
|
+
j.registerLanguage("json", sr);
|
|
4636
|
+
j.registerLanguage("yaml", ar);
|
|
4637
|
+
j.registerLanguage("plaintext", or);
|
|
4638
|
+
j.registerLanguage("python", lr);
|
|
4639
|
+
j.registerLanguage("java", cr);
|
|
4640
|
+
j.registerLanguage("bash", ur);
|
|
4641
|
+
j.registerLanguage("sql", fr);
|
|
4642
|
+
var S = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(S || {});
|
|
4643
|
+
const J = "<code-diff-modified>", ee = "</code-diff-modified>", un = J.replace("<", "<").replace(">", ">"), fn = ee.replace("<", "<").replace(">", ">");
|
|
4644
|
+
function gr(e) {
|
|
4645
|
+
const n = {
|
|
4646
|
+
"&": "&",
|
|
4647
|
+
"<": "<",
|
|
4648
|
+
">": ">",
|
|
4649
|
+
'"': """,
|
|
4650
|
+
"'": "'"
|
|
4651
|
+
};
|
|
4652
|
+
return e.replace(/[&<>"']/g, (s) => n[s]);
|
|
4653
|
+
}
|
|
4644
4654
|
function ge(e) {
|
|
4645
|
-
return e === void 0 ?
|
|
4655
|
+
return e === void 0 ? S.EQUAL : e.added ? S.ADD : e.removed ? S.DELETE : S.EQUAL;
|
|
4646
4656
|
}
|
|
4647
4657
|
function Ce(e, n, s = "word") {
|
|
4648
|
-
return typeof e == "undefined" ? n : typeof n == "undefined" ? e : (s === "char" ?
|
|
4649
|
-
(
|
|
4658
|
+
return typeof e == "undefined" ? n : typeof n == "undefined" ? e : (s === "char" ? Jn : nt)(e, n).filter((h) => ge(h) !== S.DELETE).map(
|
|
4659
|
+
(h) => ge(h) === S.ADD ? `${J}${h.value}${ee}` : h.value
|
|
4650
4660
|
).join("");
|
|
4651
4661
|
}
|
|
4652
|
-
function
|
|
4653
|
-
const s = new
|
|
4662
|
+
function xn(e, n) {
|
|
4663
|
+
const s = new $e.diff_match_patch(), u = s.diff_linesToChars_(e, n), h = u.chars1, t = u.chars2, r = u.lineArray, i = s.diff_main(h, t, !1);
|
|
4654
4664
|
return s.diff_charsToLines_(i, r), i.map((a) => {
|
|
4655
|
-
const [
|
|
4665
|
+
const [l, o] = a;
|
|
4656
4666
|
return {
|
|
4657
|
-
count:
|
|
4667
|
+
count: o.replace(/\n$/, "").split(`
|
|
4658
4668
|
`).length,
|
|
4659
|
-
value:
|
|
4660
|
-
removed:
|
|
4661
|
-
added:
|
|
4669
|
+
value: o,
|
|
4670
|
+
removed: l === $e.DIFF_DELETE,
|
|
4671
|
+
added: l === $e.DIFF_INSERT
|
|
4662
4672
|
};
|
|
4663
4673
|
});
|
|
4664
4674
|
}
|
|
4665
|
-
function
|
|
4675
|
+
function Q(e, n) {
|
|
4676
|
+
if (typeof document == "undefined")
|
|
4677
|
+
return gr(n).replace(new RegExp(un, "g"), '<span class="x">').replace(new RegExp(fn, "g"), "</span>");
|
|
4666
4678
|
if (!n.match(new RegExp(`(${J}|${ee})`, "g")))
|
|
4667
|
-
return
|
|
4679
|
+
return j.highlight(n, { language: e }).value;
|
|
4668
4680
|
let u = n;
|
|
4669
|
-
const
|
|
4670
|
-
t.innerHTML =
|
|
4681
|
+
const h = n.replace(new RegExp(`(${J}|${ee})`, "g"), ""), t = document.createElement("div");
|
|
4682
|
+
t.innerHTML = j.highlight(h, { language: e }).value;
|
|
4671
4683
|
let r = !1;
|
|
4672
4684
|
const i = (a) => {
|
|
4673
|
-
a.childNodes.forEach((
|
|
4674
|
-
if (
|
|
4675
|
-
if (!
|
|
4685
|
+
a.childNodes.forEach((l) => {
|
|
4686
|
+
if (l.nodeType === Node.ELEMENT_NODE && i(l), l.nodeType === Node.TEXT_NODE) {
|
|
4687
|
+
if (!l.textContent)
|
|
4676
4688
|
return;
|
|
4677
|
-
let
|
|
4678
|
-
for (r && (c = c + J);
|
|
4689
|
+
let o = l.textContent, c = "";
|
|
4690
|
+
for (r && (c = c + J); o.length; ) {
|
|
4679
4691
|
if (u.startsWith(J)) {
|
|
4680
4692
|
u = u.slice(J.length), c = c + J, r = !0;
|
|
4681
4693
|
continue;
|
|
@@ -4684,255 +4696,255 @@ function j(e, n) {
|
|
|
4684
4696
|
u = u.slice(ee.length), c = c + ee, r = !1;
|
|
4685
4697
|
continue;
|
|
4686
4698
|
}
|
|
4687
|
-
const f = u.match(new RegExp(`(${J}|${ee})`)),
|
|
4688
|
-
c = c + u.substring(0,
|
|
4699
|
+
const f = u.match(new RegExp(`(${J}|${ee})`)), g = f && f.index ? f.index : u.length, d = Math.min(g, o.length);
|
|
4700
|
+
c = c + u.substring(0, d), u = u.slice(d), o = o.slice(d);
|
|
4689
4701
|
}
|
|
4690
|
-
r && (c = c + ee),
|
|
4702
|
+
r && (c = c + ee), l.textContent = c;
|
|
4691
4703
|
}
|
|
4692
4704
|
});
|
|
4693
4705
|
};
|
|
4694
|
-
return i(t), t.innerHTML.replace(new RegExp(
|
|
4706
|
+
return i(t), t.innerHTML.replace(new RegExp(un, "g"), '<span class="x">').replace(new RegExp(fn, "g"), "</span>");
|
|
4695
4707
|
}
|
|
4696
|
-
function
|
|
4697
|
-
const s = (a,
|
|
4698
|
-
let
|
|
4708
|
+
function Un(e, n) {
|
|
4709
|
+
const s = (a, l) => (a.match(new RegExp(l, "g")) || []).length, u = (a) => a.filter((l) => n == null ? void 0 : n.test(l)).length;
|
|
4710
|
+
let h = 0, t = 0, r = 0, i = 0;
|
|
4699
4711
|
for (const a of e) {
|
|
4700
4712
|
if (a.added) {
|
|
4701
|
-
const
|
|
4713
|
+
const l = u(a.value.trim().split(`
|
|
4702
4714
|
`));
|
|
4703
|
-
|
|
4704
|
-
`) + 1 -
|
|
4715
|
+
h += s(a.value.trim(), `
|
|
4716
|
+
`) + 1 - l, r += l;
|
|
4705
4717
|
continue;
|
|
4706
4718
|
}
|
|
4707
4719
|
if (a.removed) {
|
|
4708
|
-
const
|
|
4720
|
+
const l = u(a.value.trim().split(`
|
|
4709
4721
|
`));
|
|
4710
4722
|
t += s(a.value.trim(), `
|
|
4711
|
-
`) + 1 -
|
|
4723
|
+
`) + 1 - l, i += l;
|
|
4712
4724
|
continue;
|
|
4713
4725
|
}
|
|
4714
4726
|
}
|
|
4715
4727
|
return {
|
|
4716
|
-
additionsNum:
|
|
4728
|
+
additionsNum: h,
|
|
4717
4729
|
deletionsNum: t,
|
|
4718
4730
|
ignoreAdditionsNum: r,
|
|
4719
4731
|
ignoreDeletionsNum: i
|
|
4720
4732
|
};
|
|
4721
4733
|
}
|
|
4722
|
-
function
|
|
4723
|
-
const i = () => ({ type:
|
|
4724
|
-
let c = 0, f = 0,
|
|
4725
|
-
const
|
|
4726
|
-
changes:
|
|
4734
|
+
function hr(e, n, s = "plaintext", u = "word", h = !1, t = 10, r) {
|
|
4735
|
+
const i = () => ({ type: S.EMPTY }), a = (m, E, y) => ({ type: m, num: E, code: y }), l = xn(e, n), o = r ? new RegExp(r) : void 0;
|
|
4736
|
+
let c = 0, f = 0, g = !1;
|
|
4737
|
+
const d = [], p = {
|
|
4738
|
+
changes: d,
|
|
4727
4739
|
collector: [],
|
|
4728
|
-
stat:
|
|
4740
|
+
stat: Un(l, o)
|
|
4729
4741
|
};
|
|
4730
|
-
for (let m = 0; m <
|
|
4731
|
-
if (
|
|
4732
|
-
|
|
4742
|
+
for (let m = 0; m < l.length; m++) {
|
|
4743
|
+
if (g) {
|
|
4744
|
+
g = !1;
|
|
4733
4745
|
continue;
|
|
4734
4746
|
}
|
|
4735
|
-
const [E, y] = [
|
|
4747
|
+
const [E, y] = [l[m], l[m + 1]], [T, N] = [ge(E), ge(y)], M = E.value.replace(/\n$/, "").split(`
|
|
4736
4748
|
`);
|
|
4737
4749
|
if (y === void 0) {
|
|
4738
|
-
for (const C of
|
|
4750
|
+
for (const C of M) {
|
|
4739
4751
|
let L = i(), B = i();
|
|
4740
|
-
const $ =
|
|
4741
|
-
T ===
|
|
4752
|
+
const $ = Q(s, C);
|
|
4753
|
+
T === S.EQUAL && (c++, f++, L = a(S.EQUAL, c, $), B = a(S.EQUAL, f, $)), T === S.DELETE && (c++, L = a(S.DELETE, c, $), B = i()), T === S.ADD && (f++, L = i(), B = a(S.ADD, f, $)), d.push({ left: L, right: B });
|
|
4742
4754
|
}
|
|
4743
4755
|
break;
|
|
4744
4756
|
}
|
|
4745
|
-
if (T ===
|
|
4746
|
-
for (const C of
|
|
4757
|
+
if (T === S.EQUAL)
|
|
4758
|
+
for (const C of M) {
|
|
4747
4759
|
c++, f++;
|
|
4748
|
-
const L =
|
|
4749
|
-
|
|
4750
|
-
left: a(
|
|
4751
|
-
right: a(
|
|
4760
|
+
const L = Q(s, C);
|
|
4761
|
+
d.push({
|
|
4762
|
+
left: a(S.EQUAL, c, L),
|
|
4763
|
+
right: a(S.EQUAL, f, L)
|
|
4752
4764
|
});
|
|
4753
4765
|
}
|
|
4754
4766
|
const R = y.value.replace(/\n$/, "").split(`
|
|
4755
4767
|
`);
|
|
4756
|
-
if (T ===
|
|
4757
|
-
if (N ===
|
|
4758
|
-
for (const C of
|
|
4759
|
-
c++,
|
|
4760
|
-
left: a(
|
|
4768
|
+
if (T === S.DELETE) {
|
|
4769
|
+
if (N === S.EQUAL)
|
|
4770
|
+
for (const C of M)
|
|
4771
|
+
c++, d.push({
|
|
4772
|
+
left: a(S.DELETE, c, Q(s, C)),
|
|
4761
4773
|
right: i()
|
|
4762
4774
|
});
|
|
4763
|
-
if (N ===
|
|
4764
|
-
|
|
4775
|
+
if (N === S.ADD) {
|
|
4776
|
+
g = !0;
|
|
4765
4777
|
const C = Math.max(E.count, y.count);
|
|
4766
4778
|
for (let L = 0; L < C; L++) {
|
|
4767
4779
|
L < E.count && c++, L < y.count && f++;
|
|
4768
|
-
const [B, $] = [
|
|
4769
|
-
|
|
4780
|
+
const [B, $] = [M[L], R[L]], H = h || M.length === R.length, K = H ? Ce($, B, u) : B, te = H ? Ce(B, $, u) : $, le = o != null && o.test(B) ? S.EQUAL : S.DELETE, v = o != null && o.test($) ? S.EQUAL : S.ADD, A = L < E.count ? a(le, c, Q(s, K)) : i(), O = L < y.count ? a(v, f, Q(s, te)) : i();
|
|
4781
|
+
d.push({ left: A, right: O });
|
|
4770
4782
|
}
|
|
4771
4783
|
}
|
|
4772
4784
|
}
|
|
4773
|
-
if (T ===
|
|
4774
|
-
for (const C of
|
|
4775
|
-
f++,
|
|
4785
|
+
if (T === S.ADD)
|
|
4786
|
+
for (const C of M)
|
|
4787
|
+
f++, d.push({
|
|
4776
4788
|
left: i(),
|
|
4777
|
-
right: a(
|
|
4789
|
+
right: a(S.ADD, f, Q(s, C))
|
|
4778
4790
|
});
|
|
4779
4791
|
}
|
|
4780
4792
|
if (e === n) {
|
|
4781
|
-
for (let m = 0; m <
|
|
4782
|
-
|
|
4793
|
+
for (let m = 0; m < d.length; m++)
|
|
4794
|
+
d[m].fold = !1;
|
|
4783
4795
|
return p;
|
|
4784
4796
|
}
|
|
4785
|
-
for (let m = 0; m <
|
|
4786
|
-
const E =
|
|
4787
|
-
if (E.left.type ===
|
|
4788
|
-
const [y, T] = [Math.max(m - t, 0), Math.min(m + t + 1,
|
|
4797
|
+
for (let m = 0; m < d.length; m++) {
|
|
4798
|
+
const E = d[m];
|
|
4799
|
+
if (E.left.type === S.DELETE || E.right.type === S.ADD) {
|
|
4800
|
+
const [y, T] = [Math.max(m - t, 0), Math.min(m + t + 1, d.length)];
|
|
4789
4801
|
for (let N = y; N < T; N++)
|
|
4790
|
-
|
|
4802
|
+
d[N].fold = !1;
|
|
4791
4803
|
}
|
|
4792
4804
|
E.fold === void 0 && (E.fold = !0);
|
|
4793
4805
|
}
|
|
4794
4806
|
const _ = [];
|
|
4795
|
-
let
|
|
4796
|
-
for (let m = 0; m <
|
|
4797
|
-
const E =
|
|
4807
|
+
let b = [];
|
|
4808
|
+
for (let m = 0; m < d.length; m++) {
|
|
4809
|
+
const E = d[m];
|
|
4798
4810
|
if (E.fold === !1) {
|
|
4799
|
-
|
|
4800
|
-
lines:
|
|
4811
|
+
b.length && (b[0].hideIndex = p.collector.length, p.collector.push({
|
|
4812
|
+
lines: b,
|
|
4801
4813
|
fold: !0
|
|
4802
|
-
}),
|
|
4814
|
+
}), b = []), _.push(E);
|
|
4803
4815
|
continue;
|
|
4804
4816
|
}
|
|
4805
|
-
E.hide = !0,
|
|
4817
|
+
E.hide = !0, b.push(E), _.push(E);
|
|
4806
4818
|
}
|
|
4807
|
-
return
|
|
4808
|
-
lines:
|
|
4819
|
+
return b.length && (b[0].hideIndex = p.collector.length, p.collector.push({
|
|
4820
|
+
lines: b,
|
|
4809
4821
|
fold: !0
|
|
4810
|
-
}),
|
|
4822
|
+
}), b = []), p.changes = _, p;
|
|
4811
4823
|
}
|
|
4812
|
-
function
|
|
4813
|
-
const i =
|
|
4814
|
-
let
|
|
4815
|
-
const f = [],
|
|
4824
|
+
function dr(e, n, s = "plaintext", u = "word", h = !1, t = 10, r) {
|
|
4825
|
+
const i = xn(e, n), a = r ? new RegExp(r) : void 0;
|
|
4826
|
+
let l = 0, o = 0, c = !1;
|
|
4827
|
+
const f = [], g = {
|
|
4816
4828
|
changes: f,
|
|
4817
4829
|
collector: [],
|
|
4818
|
-
stat:
|
|
4830
|
+
stat: Un(i, a)
|
|
4819
4831
|
};
|
|
4820
4832
|
for (let _ = 0; _ < i.length; _++) {
|
|
4821
4833
|
if (c) {
|
|
4822
4834
|
c = !1;
|
|
4823
4835
|
continue;
|
|
4824
4836
|
}
|
|
4825
|
-
const [
|
|
4837
|
+
const [b, m] = [i[_], i[_ + 1]], [E, y] = [ge(b), ge(m)], T = b.value.replace(/\n$/, "").split(`
|
|
4826
4838
|
`);
|
|
4827
4839
|
if (m === void 0) {
|
|
4828
|
-
for (const
|
|
4829
|
-
E ===
|
|
4830
|
-
const R =
|
|
4840
|
+
for (const M of T) {
|
|
4841
|
+
E === S.EQUAL && (l++, o++), E === S.DELETE && l++, E === S.ADD && o++;
|
|
4842
|
+
const R = Q(s, M);
|
|
4831
4843
|
f.push({
|
|
4832
4844
|
type: E,
|
|
4833
4845
|
code: R,
|
|
4834
|
-
addNum: E ===
|
|
4835
|
-
delNum: E ===
|
|
4846
|
+
addNum: E === S.DELETE ? void 0 : o,
|
|
4847
|
+
delNum: E === S.ADD ? void 0 : l
|
|
4836
4848
|
});
|
|
4837
4849
|
}
|
|
4838
4850
|
break;
|
|
4839
4851
|
}
|
|
4840
|
-
if (E ===
|
|
4841
|
-
for (const
|
|
4842
|
-
|
|
4843
|
-
const R =
|
|
4844
|
-
f.push({ type:
|
|
4852
|
+
if (E === S.EQUAL)
|
|
4853
|
+
for (const M of T) {
|
|
4854
|
+
l++, o++;
|
|
4855
|
+
const R = Q(s, M);
|
|
4856
|
+
f.push({ type: S.EQUAL, code: R, delNum: l, addNum: o });
|
|
4845
4857
|
}
|
|
4846
4858
|
const N = m.value.replace(/\n$/, "").split(`
|
|
4847
4859
|
`);
|
|
4848
|
-
if (E ===
|
|
4849
|
-
if (y ===
|
|
4850
|
-
for (let
|
|
4851
|
-
const R = T[
|
|
4852
|
-
|
|
4853
|
-
const L =
|
|
4860
|
+
if (E === S.DELETE)
|
|
4861
|
+
if (y === S.ADD && (T.length === N.length || h)) {
|
|
4862
|
+
for (let M = 0; M < T.length; M++) {
|
|
4863
|
+
const R = T[M], C = N[M];
|
|
4864
|
+
l++;
|
|
4865
|
+
const L = Q(s, Ce(C, R, u));
|
|
4854
4866
|
f.push({
|
|
4855
|
-
type: a != null && a.test(R) ?
|
|
4867
|
+
type: a != null && a.test(R) ? S.EQUAL : S.DELETE,
|
|
4856
4868
|
code: L,
|
|
4857
|
-
delNum:
|
|
4869
|
+
delNum: l
|
|
4858
4870
|
});
|
|
4859
4871
|
}
|
|
4860
|
-
for (let
|
|
4861
|
-
const R = T[
|
|
4862
|
-
|
|
4863
|
-
const L =
|
|
4872
|
+
for (let M = 0; M < N.length; M++) {
|
|
4873
|
+
const R = T[M], C = N[M];
|
|
4874
|
+
o++;
|
|
4875
|
+
const L = Q(s, Ce(R, C, u));
|
|
4864
4876
|
f.push({
|
|
4865
|
-
type: a != null && a.test(C) ?
|
|
4877
|
+
type: a != null && a.test(C) ? S.EQUAL : S.ADD,
|
|
4866
4878
|
code: L,
|
|
4867
|
-
addNum:
|
|
4879
|
+
addNum: o
|
|
4868
4880
|
});
|
|
4869
4881
|
}
|
|
4870
4882
|
c = !0;
|
|
4871
4883
|
} else
|
|
4872
|
-
for (const
|
|
4873
|
-
|
|
4874
|
-
const R =
|
|
4875
|
-
f.push({ type:
|
|
4884
|
+
for (const M of T) {
|
|
4885
|
+
l++;
|
|
4886
|
+
const R = Q(s, M);
|
|
4887
|
+
f.push({ type: S.DELETE, code: R, delNum: l });
|
|
4876
4888
|
}
|
|
4877
|
-
if (E ===
|
|
4878
|
-
for (const
|
|
4879
|
-
|
|
4880
|
-
const R =
|
|
4881
|
-
f.push({ type:
|
|
4889
|
+
if (E === S.ADD)
|
|
4890
|
+
for (const M of T) {
|
|
4891
|
+
o++;
|
|
4892
|
+
const R = Q(s, M);
|
|
4893
|
+
f.push({ type: S.ADD, code: R, addNum: o });
|
|
4882
4894
|
}
|
|
4883
4895
|
}
|
|
4884
4896
|
for (let _ = 0; _ < f.length; _++) {
|
|
4885
|
-
const
|
|
4886
|
-
if (
|
|
4897
|
+
const b = f[_];
|
|
4898
|
+
if (b.type === S.DELETE || b.type === S.ADD) {
|
|
4887
4899
|
const [m, E] = [Math.max(_ - t, 0), Math.min(_ + t + 1, f.length)];
|
|
4888
4900
|
for (let y = m; y < E; y++)
|
|
4889
4901
|
f[y].fold = !1;
|
|
4890
4902
|
}
|
|
4891
|
-
|
|
4903
|
+
b.fold === void 0 && (b.fold = !0);
|
|
4892
4904
|
}
|
|
4893
4905
|
if (e === n) {
|
|
4894
4906
|
for (let _ = 0; _ < f.length; _++)
|
|
4895
4907
|
f[_].fold = !1;
|
|
4896
|
-
return
|
|
4908
|
+
return g;
|
|
4897
4909
|
}
|
|
4898
|
-
const
|
|
4910
|
+
const d = [];
|
|
4899
4911
|
let p = [];
|
|
4900
4912
|
for (let _ = 0; _ < f.length; _++) {
|
|
4901
|
-
const
|
|
4902
|
-
if (
|
|
4903
|
-
p.length && (p[0].hideIndex =
|
|
4913
|
+
const b = f[_];
|
|
4914
|
+
if (b.fold === !1) {
|
|
4915
|
+
p.length && (p[0].hideIndex = g.collector.length, g.collector.push({
|
|
4904
4916
|
lines: p,
|
|
4905
4917
|
fold: !0
|
|
4906
|
-
}), p = []),
|
|
4918
|
+
}), p = []), d.push(b);
|
|
4907
4919
|
continue;
|
|
4908
4920
|
}
|
|
4909
|
-
|
|
4921
|
+
b.type === "equal" && (b.hide = !0, p.push(b)), d.push(b);
|
|
4910
4922
|
}
|
|
4911
|
-
return p.length && (p[0].hideIndex =
|
|
4923
|
+
return p.length && (p[0].hideIndex = g.collector.length, g.collector.push({
|
|
4912
4924
|
lines: p,
|
|
4913
4925
|
fold: !0
|
|
4914
|
-
}), p = []),
|
|
4926
|
+
}), p = []), g.changes = d, g;
|
|
4915
4927
|
}
|
|
4916
|
-
const
|
|
4917
|
-
|
|
4928
|
+
const We = {};
|
|
4929
|
+
We.props = {
|
|
4918
4930
|
line: {
|
|
4919
4931
|
key: "line",
|
|
4920
4932
|
required: !0,
|
|
4921
4933
|
type: null
|
|
4922
4934
|
}
|
|
4923
4935
|
};
|
|
4924
|
-
|
|
4936
|
+
We.setup = (e, n) => {
|
|
4925
4937
|
const s = n.emit;
|
|
4926
|
-
function u(
|
|
4927
|
-
return
|
|
4938
|
+
function u(h) {
|
|
4939
|
+
return h === S.DELETE ? "-" : h === S.ADD ? "+" : "";
|
|
4928
4940
|
}
|
|
4929
4941
|
return {
|
|
4930
|
-
DiffType:
|
|
4942
|
+
DiffType: S,
|
|
4931
4943
|
emit: s,
|
|
4932
4944
|
getCodeMarker: u
|
|
4933
4945
|
};
|
|
4934
4946
|
};
|
|
4935
|
-
var
|
|
4947
|
+
var pr = function() {
|
|
4936
4948
|
var e = this, n = e.$createElement, s = e._self._c || n;
|
|
4937
4949
|
return e.line.hideIndex !== void 0 && e.line.hide ? s("tr", [s("td", {
|
|
4938
4950
|
staticClass: "blob-num blob-num-hunk text-center",
|
|
@@ -4949,7 +4961,11 @@ var dr = function() {
|
|
|
4949
4961
|
attrs: {
|
|
4950
4962
|
align: "left"
|
|
4951
4963
|
}
|
|
4952
|
-
}, [e._v(" ⋯ ")])]) : e.line.hide ? e._e() : s("tr",
|
|
4964
|
+
}, [e._v(" ⋯ ")])]) : e.line.hide ? e._e() : s("tr", {
|
|
4965
|
+
attrs: {
|
|
4966
|
+
"data-diff-change": e.line.type !== e.DiffType.EQUAL ? "" : void 0
|
|
4967
|
+
}
|
|
4968
|
+
}, [s("td", {
|
|
4953
4969
|
staticClass: "blob-num",
|
|
4954
4970
|
class: {
|
|
4955
4971
|
"blob-num-deletion": e.line.type === e.DiffType.DELETE,
|
|
@@ -4982,42 +4998,42 @@ var dr = function() {
|
|
|
4982
4998
|
innerHTML: e._s(e.line.code)
|
|
4983
4999
|
}
|
|
4984
5000
|
})])]);
|
|
4985
|
-
},
|
|
4986
|
-
function ie(e, n, s, u,
|
|
5001
|
+
}, _r = [];
|
|
5002
|
+
function ie(e, n, s, u, h, t, r, i) {
|
|
4987
5003
|
var a = typeof e == "function" ? e.options : e;
|
|
4988
5004
|
n && (a.render = n, a.staticRenderFns = s, a._compiled = !0), t && (a._scopeId = "data-v-" + t);
|
|
4989
|
-
var
|
|
4990
|
-
if (
|
|
5005
|
+
var l;
|
|
5006
|
+
if (h && (l = h), l)
|
|
4991
5007
|
if (a.functional) {
|
|
4992
|
-
a._injectStyles =
|
|
4993
|
-
var
|
|
4994
|
-
a.render = function(
|
|
4995
|
-
return
|
|
5008
|
+
a._injectStyles = l;
|
|
5009
|
+
var o = a.render;
|
|
5010
|
+
a.render = function(g, d) {
|
|
5011
|
+
return l.call(d), o(g, d);
|
|
4996
5012
|
};
|
|
4997
5013
|
} else {
|
|
4998
5014
|
var c = a.beforeCreate;
|
|
4999
|
-
a.beforeCreate = c ? [].concat(c,
|
|
5015
|
+
a.beforeCreate = c ? [].concat(c, l) : [l];
|
|
5000
5016
|
}
|
|
5001
5017
|
return {
|
|
5002
5018
|
exports: e,
|
|
5003
5019
|
options: a
|
|
5004
5020
|
};
|
|
5005
5021
|
}
|
|
5006
|
-
const
|
|
5007
|
-
var
|
|
5008
|
-
|
|
5009
|
-
dr,
|
|
5022
|
+
const gn = {};
|
|
5023
|
+
var br = /* @__PURE__ */ ie(
|
|
5024
|
+
We,
|
|
5010
5025
|
pr,
|
|
5026
|
+
_r,
|
|
5011
5027
|
!1,
|
|
5012
|
-
|
|
5028
|
+
vr,
|
|
5013
5029
|
null
|
|
5014
5030
|
);
|
|
5015
|
-
function
|
|
5016
|
-
for (let n in
|
|
5017
|
-
this[n] =
|
|
5031
|
+
function vr(e) {
|
|
5032
|
+
for (let n in gn)
|
|
5033
|
+
this[n] = gn[n];
|
|
5018
5034
|
}
|
|
5019
|
-
const
|
|
5020
|
-
return
|
|
5035
|
+
const mr = /* @__PURE__ */ function() {
|
|
5036
|
+
return br.exports;
|
|
5021
5037
|
}(), be = {};
|
|
5022
5038
|
be.props = {
|
|
5023
5039
|
diffChange: {
|
|
@@ -5029,9 +5045,9 @@ be.props = {
|
|
|
5029
5045
|
be.setup = (e, n) => {
|
|
5030
5046
|
const s = e;
|
|
5031
5047
|
function u({
|
|
5032
|
-
hideIndex:
|
|
5048
|
+
hideIndex: h
|
|
5033
5049
|
}) {
|
|
5034
|
-
|
|
5050
|
+
h !== void 0 && s.diffChange.collector[h].lines.forEach((t) => {
|
|
5035
5051
|
t.hide = !1, t.fold = !1;
|
|
5036
5052
|
});
|
|
5037
5053
|
}
|
|
@@ -5040,65 +5056,65 @@ be.setup = (e, n) => {
|
|
|
5040
5056
|
};
|
|
5041
5057
|
};
|
|
5042
5058
|
be.components = Object.assign({
|
|
5043
|
-
UnifiedLine:
|
|
5059
|
+
UnifiedLine: mr
|
|
5044
5060
|
}, be.components);
|
|
5045
|
-
var
|
|
5061
|
+
var Er = function() {
|
|
5046
5062
|
var e, n = this, s = n.$createElement, u = n._self._c || s;
|
|
5047
5063
|
return u("table", {
|
|
5048
5064
|
staticClass: "diff-table"
|
|
5049
|
-
}, [u("tbody", n._l((e = n.diffChange) === null || e === void 0 ? void 0 : e.changes, function(
|
|
5065
|
+
}, [u("tbody", n._l((e = n.diffChange) === null || e === void 0 ? void 0 : e.changes, function(h, t) {
|
|
5050
5066
|
return u("UnifiedLine", {
|
|
5051
5067
|
key: t,
|
|
5052
5068
|
attrs: {
|
|
5053
|
-
line:
|
|
5069
|
+
line: h
|
|
5054
5070
|
},
|
|
5055
5071
|
on: {
|
|
5056
5072
|
expand: n.expandHandler
|
|
5057
5073
|
}
|
|
5058
5074
|
});
|
|
5059
5075
|
}), 1)]);
|
|
5060
|
-
},
|
|
5061
|
-
const
|
|
5062
|
-
var
|
|
5076
|
+
}, yr = [];
|
|
5077
|
+
const hn = {};
|
|
5078
|
+
var wr = /* @__PURE__ */ ie(
|
|
5063
5079
|
be,
|
|
5064
|
-
mr,
|
|
5065
5080
|
Er,
|
|
5081
|
+
yr,
|
|
5066
5082
|
!1,
|
|
5067
|
-
|
|
5083
|
+
Ar,
|
|
5068
5084
|
null
|
|
5069
5085
|
);
|
|
5070
|
-
function
|
|
5071
|
-
for (let n in
|
|
5072
|
-
this[n] =
|
|
5086
|
+
function Ar(e) {
|
|
5087
|
+
for (let n in hn)
|
|
5088
|
+
this[n] = hn[n];
|
|
5073
5089
|
}
|
|
5074
5090
|
const Mr = /* @__PURE__ */ function() {
|
|
5075
|
-
return
|
|
5076
|
-
}(),
|
|
5077
|
-
|
|
5091
|
+
return wr.exports;
|
|
5092
|
+
}(), qe = {};
|
|
5093
|
+
qe.props = {
|
|
5078
5094
|
splitLine: {
|
|
5079
5095
|
key: "splitLine",
|
|
5080
5096
|
required: !0,
|
|
5081
5097
|
type: null
|
|
5082
5098
|
}
|
|
5083
5099
|
};
|
|
5084
|
-
|
|
5100
|
+
qe.setup = (e, n) => {
|
|
5085
5101
|
const s = n.emit;
|
|
5086
5102
|
function u(t) {
|
|
5087
|
-
return t ===
|
|
5103
|
+
return t === S.DELETE ? "-" : t === S.ADD ? "+" : "";
|
|
5088
5104
|
}
|
|
5089
|
-
function
|
|
5090
|
-
const
|
|
5091
|
-
for (const
|
|
5092
|
-
for (const
|
|
5105
|
+
function h(t, r) {
|
|
5106
|
+
const i = t.currentTarget.closest(".file-diff-split"), a = i.querySelectorAll(".split-side-left"), l = i.querySelectorAll(".split-side-right");
|
|
5107
|
+
for (const o of l) o.classList.toggle("no-select", r === "left");
|
|
5108
|
+
for (const o of a) o.classList.toggle("no-select", r === "right");
|
|
5093
5109
|
}
|
|
5094
5110
|
return {
|
|
5095
|
-
DiffType:
|
|
5111
|
+
DiffType: S,
|
|
5096
5112
|
emit: s,
|
|
5097
5113
|
getCodeMarker: u,
|
|
5098
|
-
onSplitLineMousedown:
|
|
5114
|
+
onSplitLineMousedown: h
|
|
5099
5115
|
};
|
|
5100
5116
|
};
|
|
5101
|
-
var
|
|
5117
|
+
var Nr = function() {
|
|
5102
5118
|
var e = this, n = e.$createElement, s = e._self._c || n;
|
|
5103
5119
|
return e.splitLine.hideIndex !== void 0 && e.splitLine.hide ? s("tr", [s("td", {
|
|
5104
5120
|
staticClass: "blob-num blob-num-hunk",
|
|
@@ -5116,7 +5132,11 @@ var Ar = function() {
|
|
|
5116
5132
|
colspan: "3",
|
|
5117
5133
|
align: "left"
|
|
5118
5134
|
}
|
|
5119
|
-
}, [e._v(" ⋯ ")])]) : e.splitLine.hide ? e._e() : s("tr",
|
|
5135
|
+
}, [e._v(" ⋯ ")])]) : e.splitLine.hide ? e._e() : s("tr", {
|
|
5136
|
+
attrs: {
|
|
5137
|
+
"data-diff-change": e.splitLine.left.type === e.DiffType.DELETE || e.splitLine.right.type === e.DiffType.ADD ? "" : void 0
|
|
5138
|
+
}
|
|
5139
|
+
}, [e._l([e.splitLine.left, e.splitLine.right], function(u, h) {
|
|
5120
5140
|
return [u.type === e.DiffType.EMPTY ? [s("td", {
|
|
5121
5141
|
staticClass: "blob-num blob-num-empty empty-cell"
|
|
5122
5142
|
}), s("td", {
|
|
@@ -5136,12 +5156,12 @@ var Ar = function() {
|
|
|
5136
5156
|
"blob-code-addition": u.type === e.DiffType.ADD,
|
|
5137
5157
|
"blob-code-context": u.type === e.DiffType.EQUAL,
|
|
5138
5158
|
"blob-code-hunk": e.splitLine.hide !== void 0,
|
|
5139
|
-
"split-side-left":
|
|
5140
|
-
"split-side-right":
|
|
5159
|
+
"split-side-left": h === 0,
|
|
5160
|
+
"split-side-right": h === 1
|
|
5141
5161
|
},
|
|
5142
5162
|
on: {
|
|
5143
5163
|
mousedown: function(t) {
|
|
5144
|
-
return e.onSplitLineMousedown(
|
|
5164
|
+
return e.onSplitLineMousedown(t, h === 0 ? "left" : "right");
|
|
5145
5165
|
}
|
|
5146
5166
|
}
|
|
5147
5167
|
}, [s("span", {
|
|
@@ -5154,22 +5174,22 @@ var Ar = function() {
|
|
|
5154
5174
|
}
|
|
5155
5175
|
})])]];
|
|
5156
5176
|
})], 2);
|
|
5157
|
-
},
|
|
5158
|
-
const
|
|
5159
|
-
var
|
|
5160
|
-
|
|
5161
|
-
Ar,
|
|
5177
|
+
}, Tr = [];
|
|
5178
|
+
const dn = {};
|
|
5179
|
+
var Dr = /* @__PURE__ */ ie(
|
|
5180
|
+
qe,
|
|
5162
5181
|
Nr,
|
|
5182
|
+
Tr,
|
|
5163
5183
|
!1,
|
|
5164
5184
|
Sr,
|
|
5165
5185
|
null
|
|
5166
5186
|
);
|
|
5167
5187
|
function Sr(e) {
|
|
5168
|
-
for (let n in
|
|
5169
|
-
this[n] =
|
|
5188
|
+
for (let n in dn)
|
|
5189
|
+
this[n] = dn[n];
|
|
5170
5190
|
}
|
|
5171
|
-
const
|
|
5172
|
-
return
|
|
5191
|
+
const Cr = /* @__PURE__ */ function() {
|
|
5192
|
+
return Dr.exports;
|
|
5173
5193
|
}(), ve = {};
|
|
5174
5194
|
ve.props = {
|
|
5175
5195
|
diffChange: {
|
|
@@ -5181,9 +5201,9 @@ ve.props = {
|
|
|
5181
5201
|
ve.setup = (e, n) => {
|
|
5182
5202
|
const s = e;
|
|
5183
5203
|
function u({
|
|
5184
|
-
hideIndex:
|
|
5204
|
+
hideIndex: h
|
|
5185
5205
|
}) {
|
|
5186
|
-
|
|
5206
|
+
h !== void 0 && s.diffChange.collector[h].lines.forEach((t) => {
|
|
5187
5207
|
t.hide = !1, t.fold = !1;
|
|
5188
5208
|
});
|
|
5189
5209
|
}
|
|
@@ -5192,24 +5212,24 @@ ve.setup = (e, n) => {
|
|
|
5192
5212
|
};
|
|
5193
5213
|
};
|
|
5194
5214
|
ve.components = Object.assign({
|
|
5195
|
-
SplitLine:
|
|
5215
|
+
SplitLine: Cr
|
|
5196
5216
|
}, ve.components);
|
|
5197
|
-
var
|
|
5217
|
+
var Rr = function() {
|
|
5198
5218
|
var e, n = this, s = n.$createElement, u = n._self._c || s;
|
|
5199
5219
|
return u("table", {
|
|
5200
5220
|
staticClass: "file-diff-split diff-table"
|
|
5201
|
-
}, [n._m(0), u("tbody", n._l((e = n.diffChange) === null || e === void 0 ? void 0 : e.changes, function(
|
|
5221
|
+
}, [n._m(0), u("tbody", n._l((e = n.diffChange) === null || e === void 0 ? void 0 : e.changes, function(h, t) {
|
|
5202
5222
|
return u("SplitLine", {
|
|
5203
5223
|
key: t,
|
|
5204
5224
|
attrs: {
|
|
5205
|
-
"split-line":
|
|
5225
|
+
"split-line": h
|
|
5206
5226
|
},
|
|
5207
5227
|
on: {
|
|
5208
5228
|
expand: n.expandHandler
|
|
5209
5229
|
}
|
|
5210
5230
|
});
|
|
5211
5231
|
}), 1)]);
|
|
5212
|
-
},
|
|
5232
|
+
}, Lr = [function() {
|
|
5213
5233
|
var e = this, n = e.$createElement, s = e._self._c || n;
|
|
5214
5234
|
return s("colgroup", [s("col", {
|
|
5215
5235
|
attrs: {
|
|
@@ -5221,23 +5241,23 @@ var Cr = function() {
|
|
|
5221
5241
|
}
|
|
5222
5242
|
}), s("col")]);
|
|
5223
5243
|
}];
|
|
5224
|
-
const
|
|
5225
|
-
var
|
|
5244
|
+
const pn = {};
|
|
5245
|
+
var Or = /* @__PURE__ */ ie(
|
|
5226
5246
|
ve,
|
|
5227
|
-
Cr,
|
|
5228
5247
|
Rr,
|
|
5248
|
+
Lr,
|
|
5229
5249
|
!1,
|
|
5230
|
-
|
|
5250
|
+
Ir,
|
|
5231
5251
|
null
|
|
5232
5252
|
);
|
|
5233
|
-
function
|
|
5234
|
-
for (let n in
|
|
5235
|
-
this[n] =
|
|
5253
|
+
function Ir(e) {
|
|
5254
|
+
for (let n in pn)
|
|
5255
|
+
this[n] = pn[n];
|
|
5236
5256
|
}
|
|
5237
|
-
const
|
|
5238
|
-
return
|
|
5257
|
+
const kr = /* @__PURE__ */ function() {
|
|
5258
|
+
return Or.exports;
|
|
5239
5259
|
}();
|
|
5240
|
-
var
|
|
5260
|
+
var $r = function() {
|
|
5241
5261
|
var e = this, n = e.$createElement, s = e._self._c || n;
|
|
5242
5262
|
return s("svg", {
|
|
5243
5263
|
attrs: {
|
|
@@ -5250,26 +5270,26 @@ var kr = function() {
|
|
|
5250
5270
|
d: "M383.6,322.7L278.6,423c-5.8,6-13.7,9-22.4,9c-8.7,0-16.5-3-22.4-9L128.4,322.7c-12.5-11.9-12.5-31.3,0-43.2 c12.5-11.9,32.7-11.9,45.2,0l50.4,48.2v-217c0-16.9,14.3-30.6,32-30.6c17.7,0,32,13.7,32,30.6v217l50.4-48.2 c12.5-11.9,32.7-11.9,45.2,0C396.1,291.4,396.1,310.7,383.6,322.7z"
|
|
5251
5271
|
}
|
|
5252
5272
|
})]);
|
|
5253
|
-
},
|
|
5254
|
-
const
|
|
5273
|
+
}, Br = [];
|
|
5274
|
+
const Pr = {
|
|
5255
5275
|
name: "DownArrowIcon"
|
|
5256
|
-
},
|
|
5257
|
-
var
|
|
5258
|
-
|
|
5259
|
-
kr,
|
|
5276
|
+
}, _n = {};
|
|
5277
|
+
var xr = /* @__PURE__ */ ie(
|
|
5278
|
+
Pr,
|
|
5260
5279
|
$r,
|
|
5280
|
+
Br,
|
|
5261
5281
|
!1,
|
|
5262
5282
|
Ur,
|
|
5263
5283
|
null
|
|
5264
5284
|
);
|
|
5265
5285
|
function Ur(e) {
|
|
5266
|
-
for (let n in
|
|
5267
|
-
this[n] =
|
|
5286
|
+
for (let n in _n)
|
|
5287
|
+
this[n] = _n[n];
|
|
5268
5288
|
}
|
|
5269
|
-
const
|
|
5270
|
-
return
|
|
5289
|
+
const Fr = /* @__PURE__ */ function() {
|
|
5290
|
+
return xr.exports;
|
|
5271
5291
|
}();
|
|
5272
|
-
var
|
|
5292
|
+
var Hr = function() {
|
|
5273
5293
|
var e = this, n = e.$createElement, s = e._self._c || n;
|
|
5274
5294
|
return s("svg", {
|
|
5275
5295
|
attrs: {
|
|
@@ -5282,24 +5302,24 @@ var Fr = function() {
|
|
|
5282
5302
|
d: "M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2 c-12.5,11.9-32.7,11.9-45.2,0L288,184.4v217c0,16.9-14.3,30.6-32,30.6c-17.7,0-32-13.7-32-30.6v-217l-50.4,48.2 c-12.5,11.9-32.7,11.9-45.2,0C115.9,220.6,115.9,201.3,128.4,189.3z"
|
|
5283
5303
|
}
|
|
5284
5304
|
})]);
|
|
5285
|
-
},
|
|
5286
|
-
const
|
|
5305
|
+
}, zr = [];
|
|
5306
|
+
const Gr = {
|
|
5287
5307
|
name: "UpArrowIcon"
|
|
5288
|
-
},
|
|
5289
|
-
var
|
|
5290
|
-
|
|
5291
|
-
Fr,
|
|
5308
|
+
}, bn = {};
|
|
5309
|
+
var Kr = /* @__PURE__ */ ie(
|
|
5310
|
+
Gr,
|
|
5292
5311
|
Hr,
|
|
5312
|
+
zr,
|
|
5293
5313
|
!1,
|
|
5294
|
-
|
|
5314
|
+
Wr,
|
|
5295
5315
|
null
|
|
5296
5316
|
);
|
|
5297
|
-
function
|
|
5298
|
-
for (let n in
|
|
5299
|
-
this[n] =
|
|
5317
|
+
function Wr(e) {
|
|
5318
|
+
for (let n in bn)
|
|
5319
|
+
this[n] = bn[n];
|
|
5300
5320
|
}
|
|
5301
|
-
const
|
|
5302
|
-
return
|
|
5321
|
+
const qr = /* @__PURE__ */ function() {
|
|
5322
|
+
return Kr.exports;
|
|
5303
5323
|
}(), me = {};
|
|
5304
5324
|
me.props = {
|
|
5305
5325
|
newString: {
|
|
@@ -5398,35 +5418,35 @@ me.props = {
|
|
|
5398
5418
|
}
|
|
5399
5419
|
};
|
|
5400
5420
|
me.setup = (e, n) => {
|
|
5401
|
-
const s = e, u = n.emit,
|
|
5402
|
-
let
|
|
5403
|
-
return
|
|
5404
|
-
`) :
|
|
5421
|
+
const s = e, u = n.emit, h = he(() => s.outputFormat === "line-by-line"), t = he(() => {
|
|
5422
|
+
let p = s.oldString || "";
|
|
5423
|
+
return p = s.trim ? p.trim() : p, p = s.noDiffLineFeed ? p.replace(/(\r\n)/g, `
|
|
5424
|
+
`) : p, p;
|
|
5405
5425
|
}), r = he(() => {
|
|
5406
|
-
let
|
|
5407
|
-
return
|
|
5408
|
-
`) :
|
|
5409
|
-
}), i = he(() =>
|
|
5410
|
-
function c() {
|
|
5411
|
-
const g = document.querySelectorAll(".blob-code-addition");
|
|
5412
|
-
l.value < g.length - 1 && (l.value++, h(g));
|
|
5413
|
-
}
|
|
5426
|
+
let p = s.newString || "";
|
|
5427
|
+
return p = s.trim ? p.trim() : p, p = s.noDiffLineFeed ? p.replace(/(\r\n)/g, `
|
|
5428
|
+
`) : p, p;
|
|
5429
|
+
}), i = he(() => h.value ? dr(t.value, r.value, s.language, s.diffStyle, s.forceInlineComparison, s.context, s.ignoreMatchingLines) : hr(t.value, r.value, s.language, s.diffStyle, s.forceInlineComparison, s.context, s.ignoreMatchingLines)), a = ke(i.value), l = he(() => a.value.stat.additionsNum === 0 && a.value.stat.deletionsNum === 0), o = ke(-1), c = ke();
|
|
5414
5430
|
function f() {
|
|
5415
|
-
const
|
|
5416
|
-
|
|
5431
|
+
const p = c.value.querySelectorAll("[data-diff-change]");
|
|
5432
|
+
o.value < p.length - 1 && (o.value++, d(p));
|
|
5417
5433
|
}
|
|
5418
|
-
function
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5434
|
+
function g() {
|
|
5435
|
+
const p = c.value.querySelectorAll("[data-diff-change]");
|
|
5436
|
+
o.value > 0 && (o.value--, d(p));
|
|
5437
|
+
}
|
|
5438
|
+
function d(p) {
|
|
5439
|
+
c.value.querySelectorAll(".current-diff").forEach((b) => b.classList.remove("current-diff"));
|
|
5440
|
+
const _ = p[o.value];
|
|
5441
|
+
_ && (_.querySelectorAll(".blob-code").forEach((b) => b.classList.add("current-diff")), _.scrollIntoView({
|
|
5422
5442
|
behavior: "smooth",
|
|
5423
5443
|
block: "center"
|
|
5424
5444
|
}));
|
|
5425
5445
|
}
|
|
5426
|
-
return
|
|
5427
|
-
a.value = i.value, u("diff", {
|
|
5446
|
+
return Zn(() => s, () => {
|
|
5447
|
+
o.value = -1, a.value = i.value, u("diff", {
|
|
5428
5448
|
stat: {
|
|
5429
|
-
isChanged: !
|
|
5449
|
+
isChanged: !l.value,
|
|
5430
5450
|
addNum: a.value.stat.additionsNum,
|
|
5431
5451
|
delNum: a.value.stat.deletionsNum
|
|
5432
5452
|
}
|
|
@@ -5435,21 +5455,23 @@ me.setup = (e, n) => {
|
|
|
5435
5455
|
deep: !0,
|
|
5436
5456
|
immediate: !0
|
|
5437
5457
|
}), {
|
|
5438
|
-
isUnifiedViewer:
|
|
5458
|
+
isUnifiedViewer: h,
|
|
5439
5459
|
diffChange: a,
|
|
5440
|
-
|
|
5441
|
-
|
|
5460
|
+
root: c,
|
|
5461
|
+
goToNextDiff: f,
|
|
5462
|
+
goToPrevDiff: g
|
|
5442
5463
|
};
|
|
5443
5464
|
};
|
|
5444
5465
|
me.components = Object.assign({
|
|
5445
|
-
DownArrowIcon:
|
|
5446
|
-
UpArrowIcon:
|
|
5466
|
+
DownArrowIcon: Fr,
|
|
5467
|
+
UpArrowIcon: qr,
|
|
5447
5468
|
UnifiedViewer: Mr,
|
|
5448
|
-
SplitViewer:
|
|
5469
|
+
SplitViewer: kr
|
|
5449
5470
|
}, me.components);
|
|
5450
|
-
var
|
|
5471
|
+
var Qr = function() {
|
|
5451
5472
|
var e = this, n = e.$createElement, s = e._self._c || n;
|
|
5452
5473
|
return s("div", {
|
|
5474
|
+
ref: "root",
|
|
5453
5475
|
staticClass: "code-diff-view",
|
|
5454
5476
|
style: {
|
|
5455
5477
|
maxHeight: e.maxHeight
|
|
@@ -5541,21 +5563,21 @@ var qr = function() {
|
|
|
5541
5563
|
}
|
|
5542
5564
|
})], 1);
|
|
5543
5565
|
}, jr = [];
|
|
5544
|
-
const
|
|
5545
|
-
var
|
|
5566
|
+
const vn = {};
|
|
5567
|
+
var Zr = /* @__PURE__ */ ie(
|
|
5546
5568
|
me,
|
|
5547
|
-
|
|
5569
|
+
Qr,
|
|
5548
5570
|
jr,
|
|
5549
5571
|
!1,
|
|
5550
|
-
|
|
5572
|
+
Yr,
|
|
5551
5573
|
null
|
|
5552
5574
|
);
|
|
5553
|
-
function
|
|
5554
|
-
for (let n in
|
|
5555
|
-
this[n] =
|
|
5575
|
+
function Yr(e) {
|
|
5576
|
+
for (let n in vn)
|
|
5577
|
+
this[n] = vn[n];
|
|
5556
5578
|
}
|
|
5557
|
-
const
|
|
5558
|
-
return
|
|
5579
|
+
const Fn = /* @__PURE__ */ function() {
|
|
5580
|
+
return Zr.exports;
|
|
5559
5581
|
}(), Ee = {};
|
|
5560
5582
|
Ee.props = {
|
|
5561
5583
|
language: {
|
|
@@ -5572,9 +5594,9 @@ Ee.props = {
|
|
|
5572
5594
|
};
|
|
5573
5595
|
Ee.setup = (e, n) => ({});
|
|
5574
5596
|
Ee.components = Object.assign({
|
|
5575
|
-
CodeDiff:
|
|
5597
|
+
CodeDiff: Fn
|
|
5576
5598
|
}, Ee.components);
|
|
5577
|
-
var
|
|
5599
|
+
var Vr = function() {
|
|
5578
5600
|
var e = this, n = e.$createElement, s = e._self._c || n;
|
|
5579
5601
|
return s("CodeDiff", {
|
|
5580
5602
|
attrs: {
|
|
@@ -5584,33 +5606,33 @@ var Yr = function() {
|
|
|
5584
5606
|
"new-string": e.text
|
|
5585
5607
|
}
|
|
5586
5608
|
});
|
|
5587
|
-
},
|
|
5588
|
-
const
|
|
5589
|
-
var
|
|
5609
|
+
}, Xr = [];
|
|
5610
|
+
const mn = {};
|
|
5611
|
+
var Jr = /* @__PURE__ */ ie(
|
|
5590
5612
|
Ee,
|
|
5591
|
-
Yr,
|
|
5592
5613
|
Vr,
|
|
5614
|
+
Xr,
|
|
5593
5615
|
!1,
|
|
5594
|
-
|
|
5616
|
+
ei,
|
|
5595
5617
|
"8b22b876"
|
|
5596
5618
|
);
|
|
5597
|
-
function
|
|
5598
|
-
for (let n in
|
|
5599
|
-
this[n] =
|
|
5619
|
+
function ei(e) {
|
|
5620
|
+
for (let n in mn)
|
|
5621
|
+
this[n] = mn[n];
|
|
5600
5622
|
}
|
|
5601
|
-
const
|
|
5602
|
-
return
|
|
5623
|
+
const ni = /* @__PURE__ */ function() {
|
|
5624
|
+
return Jr.exports;
|
|
5603
5625
|
}();
|
|
5604
|
-
function
|
|
5605
|
-
e.component("CodeDiff",
|
|
5626
|
+
function ti(e) {
|
|
5627
|
+
e.component("CodeDiff", Fn), e.component("CodeReader", ni);
|
|
5606
5628
|
}
|
|
5607
|
-
const
|
|
5608
|
-
install:
|
|
5609
|
-
hljs:
|
|
5629
|
+
const si = {
|
|
5630
|
+
install: ti,
|
|
5631
|
+
hljs: j
|
|
5610
5632
|
};
|
|
5611
5633
|
export {
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5634
|
+
Fn as CodeDiff,
|
|
5635
|
+
ni as CodeReader,
|
|
5636
|
+
si as default,
|
|
5637
|
+
j as hljs
|
|
5616
5638
|
};
|