v-code-diff 1.5.1 → 1.6.0
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 +23 -7
- package/dist/v2/index.cjs.js +11 -11
- package/dist/v2/index.es.js +408 -390
- package/dist/v2/index.umd.js +12 -12
- package/dist/v2.7/index.cjs.js +11 -11
- package/dist/v2.7/index.es.js +510 -492
- package/dist/v2.7/index.umd.js +9 -9
- package/dist/v3/index.cjs.js +15 -15
- package/dist/v3/index.es.js +1264 -1248
- package/dist/v3/index.umd.js +15 -15
- package/package.json +13 -20
- package/scripts/postinstall.js +6 -3
- package/scripts/utils.js +2 -2
- package/src/CodeDiff.vue +24 -2
- package/src/global.ts +1 -1
- package/src/index.ts +1 -1
- package/src/split/SplitLine.vue +3 -2
- package/src/types.ts +1 -1
- package/src/unified/UnifiedLine.vue +2 -2
- package/src/utils.ts +3 -3
package/dist/v2.7/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view{--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #24292f;--color-diff-blob-addition-fg: #24292f;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #24292f;--color-diff-blob-deletion-fg: #24292f;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #2da44e;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(27,31,36,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(27,31,36,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(27,31,36,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .filename{font-size:13px;color:var(--color-fg-default)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import Sn, { defineComponent as de, computed as ce, ref as Rn, watch as On } from "vue";
|
|
3
|
+
Sn.util.warn;
|
|
4
4
|
function q() {
|
|
5
5
|
}
|
|
6
6
|
q.prototype = {
|
|
@@ -8,10 +8,10 @@ q.prototype = {
|
|
|
8
8
|
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, g = u.callback;
|
|
9
9
|
typeof u == "function" && (g = u, u = {}), this.options = u;
|
|
10
10
|
var t = this;
|
|
11
|
-
function r(
|
|
11
|
+
function r(_) {
|
|
12
12
|
return g ? (setTimeout(function() {
|
|
13
|
-
g(void 0,
|
|
14
|
-
}, 0), !0) :
|
|
13
|
+
g(void 0, _);
|
|
14
|
+
}, 0), !0) : _;
|
|
15
15
|
}
|
|
16
16
|
e = this.castInput(e), o = this.castInput(o), e = this.removeEmpty(this.tokenize(e)), o = this.removeEmpty(this.tokenize(o));
|
|
17
17
|
var i = o.length, s = e.length, a = 1, l = i + s;
|
|
@@ -26,26 +26,26 @@ q.prototype = {
|
|
|
26
26
|
count: o.length
|
|
27
27
|
}]);
|
|
28
28
|
function h() {
|
|
29
|
-
for (var
|
|
30
|
-
var
|
|
31
|
-
v && (c[
|
|
29
|
+
for (var _ = -1 * a; _ <= a; _ += 2) {
|
|
30
|
+
var p = void 0, v = c[_ - 1], E = c[_ + 1], w = (E ? E.newPos : 0) - _;
|
|
31
|
+
v && (c[_ - 1] = void 0);
|
|
32
32
|
var m = v && v.newPos + 1 < i, T = E && 0 <= w && w < s;
|
|
33
33
|
if (!m && !T) {
|
|
34
|
-
c[
|
|
34
|
+
c[_] = void 0;
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
|
-
if (!m || T && v.newPos < E.newPos ? (
|
|
38
|
-
return r(Ln(t,
|
|
39
|
-
c[
|
|
37
|
+
if (!m || T && v.newPos < E.newPos ? (p = Cn(E), t.pushComponent(p.components, void 0, !0)) : (p = v, p.newPos++, t.pushComponent(p.components, !0, void 0)), w = t.extractCommon(p, o, e, _), p.newPos + 1 >= i && w + 1 >= s)
|
|
38
|
+
return r(Ln(t, p.components, o, e, t.useLongestToken));
|
|
39
|
+
c[_] = p;
|
|
40
40
|
}
|
|
41
41
|
a++;
|
|
42
42
|
}
|
|
43
43
|
if (g)
|
|
44
|
-
(function
|
|
44
|
+
(function _() {
|
|
45
45
|
setTimeout(function() {
|
|
46
46
|
if (a > l)
|
|
47
47
|
return g();
|
|
48
|
-
h() ||
|
|
48
|
+
h() || _();
|
|
49
49
|
}, 0);
|
|
50
50
|
})();
|
|
51
51
|
else
|
|
@@ -104,8 +104,8 @@ function Ln(n, e, o, u, g) {
|
|
|
104
104
|
if (!a.added && g) {
|
|
105
105
|
var l = o.slice(i, i + a.count);
|
|
106
106
|
l = l.map(function(h, d) {
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var _ = u[s + d];
|
|
108
|
+
return _.length > h.length ? _ : h;
|
|
109
109
|
}), a.value = n.join(l);
|
|
110
110
|
} else
|
|
111
111
|
a.value = n.join(o.slice(i, i + a.count));
|
|
@@ -115,17 +115,17 @@ function Ln(n, e, o, u, g) {
|
|
|
115
115
|
var f = e[r - 1];
|
|
116
116
|
return r > 1 && typeof f.value == "string" && (f.added || f.removed) && n.equals("", f.value) && (e[r - 2].value += f.value, e.pop()), e;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Cn(n) {
|
|
119
119
|
return {
|
|
120
120
|
newPos: n.newPos,
|
|
121
121
|
components: n.components.slice(0)
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
var
|
|
125
|
-
function
|
|
126
|
-
return
|
|
124
|
+
var In = new q();
|
|
125
|
+
function kn(n, e, o) {
|
|
126
|
+
return In.diff(n, e, o);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Bn(n, e) {
|
|
129
129
|
if (typeof n == "function")
|
|
130
130
|
e.callback = n;
|
|
131
131
|
else if (n)
|
|
@@ -142,8 +142,8 @@ ke.tokenize = function(n) {
|
|
|
142
142
|
!e[o + 1] && e[o + 2] && We.test(e[o]) && We.test(e[o + 2]) && (e[o] += e[o + 2], e.splice(o + 1, 2), o--);
|
|
143
143
|
return e;
|
|
144
144
|
};
|
|
145
|
-
function
|
|
146
|
-
return o =
|
|
145
|
+
function $n(n, e, o) {
|
|
146
|
+
return o = Bn(o, {
|
|
147
147
|
ignoreWhitespace: !0
|
|
148
148
|
}), ke.diff(n, e, o);
|
|
149
149
|
}
|
|
@@ -157,22 +157,23 @@ tn.tokenize = function(n) {
|
|
|
157
157
|
}
|
|
158
158
|
return e;
|
|
159
159
|
};
|
|
160
|
-
var $n = new q();
|
|
161
|
-
$n.tokenize = function(n) {
|
|
162
|
-
return n.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
163
|
-
};
|
|
164
160
|
var Un = new q();
|
|
165
161
|
Un.tokenize = function(n) {
|
|
162
|
+
return n.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
163
|
+
};
|
|
164
|
+
var Pn = new q();
|
|
165
|
+
Pn.tokenize = function(n) {
|
|
166
166
|
return n.split(/([{}:;,]|\s+)/);
|
|
167
167
|
};
|
|
168
|
-
function
|
|
169
|
-
|
|
168
|
+
function Ne(n) {
|
|
169
|
+
"@babel/helpers - typeof";
|
|
170
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ne = function(e) {
|
|
170
171
|
return typeof e;
|
|
171
|
-
} :
|
|
172
|
+
} : Ne = function(e) {
|
|
172
173
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
173
|
-
},
|
|
174
|
+
}, Ne(n);
|
|
174
175
|
}
|
|
175
|
-
var
|
|
176
|
+
var xn = Object.prototype.toString, ue = new q();
|
|
176
177
|
ue.useLongestToken = !0;
|
|
177
178
|
ue.tokenize = tn.tokenize;
|
|
178
179
|
ue.castInput = function(n) {
|
|
@@ -191,12 +192,12 @@ function Ce(n, e, o, u, g) {
|
|
|
191
192
|
if (e[t] === n)
|
|
192
193
|
return o[t];
|
|
193
194
|
var r;
|
|
194
|
-
if (
|
|
195
|
+
if (xn.call(n) === "[object Array]") {
|
|
195
196
|
for (e.push(n), r = new Array(n.length), o.push(r), t = 0; t < n.length; t += 1)
|
|
196
197
|
r[t] = Ce(n[t], e, o, u, g);
|
|
197
198
|
return e.pop(), o.pop(), r;
|
|
198
199
|
}
|
|
199
|
-
if (n && n.toJSON && (n = n.toJSON()),
|
|
200
|
+
if (n && n.toJSON && (n = n.toJSON()), Ne(n) === "object" && n !== null) {
|
|
200
201
|
e.push(n), r = {}, o.push(r);
|
|
201
202
|
var i = [], s;
|
|
202
203
|
for (s in n)
|
|
@@ -215,14 +216,10 @@ Ie.tokenize = function(n) {
|
|
|
215
216
|
Ie.join = Ie.removeEmpty = function(n) {
|
|
216
217
|
return n;
|
|
217
218
|
};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
set exports(n) {
|
|
223
|
-
ce = n;
|
|
224
|
-
}
|
|
225
|
-
};
|
|
219
|
+
function Fn(n) {
|
|
220
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
221
|
+
}
|
|
222
|
+
var rn = { exports: {} };
|
|
226
223
|
(function(n) {
|
|
227
224
|
var e = function() {
|
|
228
225
|
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;
|
|
@@ -230,7 +227,7 @@ var ce = {}, xn = {
|
|
|
230
227
|
e.Diff = function(t, r) {
|
|
231
228
|
return [t, r];
|
|
232
229
|
}, e.prototype.diff_main = function(t, r, i, s) {
|
|
233
|
-
typeof s == "undefined" && (this.Diff_Timeout <= 0 ? s = Number.MAX_VALUE : s = new Date().getTime() + this.Diff_Timeout * 1e3);
|
|
230
|
+
typeof s == "undefined" && (this.Diff_Timeout <= 0 ? s = Number.MAX_VALUE : s = (/* @__PURE__ */ new Date()).getTime() + this.Diff_Timeout * 1e3);
|
|
234
231
|
var a = s;
|
|
235
232
|
if (t == null || r == null)
|
|
236
233
|
throw new Error("Null input. (diff_main)");
|
|
@@ -266,7 +263,7 @@ var ce = {}, xn = {
|
|
|
266
263
|
];
|
|
267
264
|
var h = this.diff_halfMatch_(t, r);
|
|
268
265
|
if (h) {
|
|
269
|
-
var d = h[0],
|
|
266
|
+
var d = h[0], _ = h[1], p = h[2], v = h[3], E = h[4], w = this.diff_main(d, p, i, s), m = this.diff_main(_, v, i, s);
|
|
270
267
|
return w.concat(
|
|
271
268
|
[new e.Diff(g, E)],
|
|
272
269
|
m
|
|
@@ -278,10 +275,10 @@ var ce = {}, xn = {
|
|
|
278
275
|
t = s.chars1, r = s.chars2;
|
|
279
276
|
var a = s.lineArray, l = this.diff_main(t, r, !1, i);
|
|
280
277
|
this.diff_charsToLines_(l, a), this.diff_cleanupSemantic(l), l.push(new e.Diff(g, ""));
|
|
281
|
-
for (var c = 0, f = 0, h = 0, d = "",
|
|
278
|
+
for (var c = 0, f = 0, h = 0, d = "", _ = ""; c < l.length; ) {
|
|
282
279
|
switch (l[c][0]) {
|
|
283
280
|
case u:
|
|
284
|
-
h++,
|
|
281
|
+
h++, _ += l[c][1];
|
|
285
282
|
break;
|
|
286
283
|
case o:
|
|
287
284
|
f++, d += l[c][1];
|
|
@@ -292,54 +289,54 @@ var ce = {}, xn = {
|
|
|
292
289
|
c - f - h,
|
|
293
290
|
f + h
|
|
294
291
|
), c = c - f - h;
|
|
295
|
-
for (var
|
|
296
|
-
l.splice(c, 0,
|
|
297
|
-
c = c +
|
|
292
|
+
for (var p = this.diff_main(d, _, !1, i), v = p.length - 1; v >= 0; v--)
|
|
293
|
+
l.splice(c, 0, p[v]);
|
|
294
|
+
c = c + p.length;
|
|
298
295
|
}
|
|
299
|
-
h = 0, f = 0, d = "",
|
|
296
|
+
h = 0, f = 0, d = "", _ = "";
|
|
300
297
|
break;
|
|
301
298
|
}
|
|
302
299
|
c++;
|
|
303
300
|
}
|
|
304
301
|
return l.pop(), l;
|
|
305
302
|
}, e.prototype.diff_bisect_ = function(t, r, i) {
|
|
306
|
-
for (var s = t.length, a = r.length, l = Math.ceil((s + a) / 2), c = l, f = 2 * l, h = new Array(f), d = new Array(f),
|
|
307
|
-
h[
|
|
303
|
+
for (var s = t.length, a = r.length, l = Math.ceil((s + a) / 2), c = l, f = 2 * l, h = new Array(f), d = new Array(f), _ = 0; _ < f; _++)
|
|
304
|
+
h[_] = -1, d[_] = -1;
|
|
308
305
|
h[c + 1] = 0, d[c + 1] = 0;
|
|
309
|
-
for (var
|
|
306
|
+
for (var p = s - a, v = p % 2 != 0, E = 0, w = 0, m = 0, T = 0, D = 0; D < l && !((/* @__PURE__ */ new Date()).getTime() > i); D++) {
|
|
310
307
|
for (var M = -D + E; M <= D - w; M += 2) {
|
|
311
308
|
var I = c + M, R;
|
|
312
309
|
M == -D || M != D && h[I - 1] < h[I + 1] ? R = h[I + 1] : R = h[I - 1] + 1;
|
|
313
|
-
for (var
|
|
314
|
-
R++,
|
|
310
|
+
for (var F = R - M; R < s && F < a && t.charAt(R) == r.charAt(F); )
|
|
311
|
+
R++, F++;
|
|
315
312
|
if (h[I] = R, R > s)
|
|
316
313
|
w += 2;
|
|
317
|
-
else if (
|
|
314
|
+
else if (F > a)
|
|
318
315
|
E += 2;
|
|
319
316
|
else if (v) {
|
|
320
|
-
var U = c +
|
|
317
|
+
var U = c + p - M;
|
|
321
318
|
if (U >= 0 && U < f && d[U] != -1) {
|
|
322
319
|
var $ = s - d[U];
|
|
323
320
|
if (R >= $)
|
|
324
|
-
return this.diff_bisectSplit_(t, r, R,
|
|
321
|
+
return this.diff_bisectSplit_(t, r, R, F, i);
|
|
325
322
|
}
|
|
326
323
|
}
|
|
327
324
|
}
|
|
328
|
-
for (var
|
|
329
|
-
var U = c +
|
|
330
|
-
|
|
331
|
-
for (var G = $ -
|
|
325
|
+
for (var H = -D + m; H <= D - T; H += 2) {
|
|
326
|
+
var U = c + H, $;
|
|
327
|
+
H == -D || H != D && d[U - 1] < d[U + 1] ? $ = d[U + 1] : $ = d[U - 1] + 1;
|
|
328
|
+
for (var G = $ - H; $ < s && G < a && t.charAt(s - $ - 1) == r.charAt(a - G - 1); )
|
|
332
329
|
$++, G++;
|
|
333
330
|
if (d[U] = $, $ > s)
|
|
334
331
|
T += 2;
|
|
335
332
|
else if (G > a)
|
|
336
333
|
m += 2;
|
|
337
334
|
else if (!v) {
|
|
338
|
-
var I = c +
|
|
335
|
+
var I = c + p - H;
|
|
339
336
|
if (I >= 0 && I < f && h[I] != -1) {
|
|
340
|
-
var R = h[I],
|
|
337
|
+
var R = h[I], F = c + R - I;
|
|
341
338
|
if ($ = s - $, R >= $)
|
|
342
|
-
return this.diff_bisectSplit_(t, r, R,
|
|
339
|
+
return this.diff_bisectSplit_(t, r, R, F, i);
|
|
343
340
|
}
|
|
344
341
|
}
|
|
345
342
|
}
|
|
@@ -349,17 +346,17 @@ var ce = {}, xn = {
|
|
|
349
346
|
new e.Diff(u, r)
|
|
350
347
|
];
|
|
351
348
|
}, e.prototype.diff_bisectSplit_ = function(t, r, i, s, a) {
|
|
352
|
-
var l = t.substring(0, i), c = r.substring(0, s), f = t.substring(i), h = r.substring(s), d = this.diff_main(l, c, !1, a),
|
|
353
|
-
return d.concat(
|
|
349
|
+
var l = t.substring(0, i), c = r.substring(0, s), f = t.substring(i), h = r.substring(s), d = this.diff_main(l, c, !1, a), _ = this.diff_main(f, h, !1, a);
|
|
350
|
+
return d.concat(_);
|
|
354
351
|
}, e.prototype.diff_linesToChars_ = function(t, r) {
|
|
355
352
|
var i = [], s = {};
|
|
356
353
|
i[0] = "";
|
|
357
354
|
function a(h) {
|
|
358
|
-
for (var d = "",
|
|
359
|
-
|
|
360
|
-
`,
|
|
361
|
-
var E = h.substring(
|
|
362
|
-
(s.hasOwnProperty ? s.hasOwnProperty(E) : s[E] !== void 0) ? d += String.fromCharCode(s[E]) : (v == l && (E = h.substring(
|
|
355
|
+
for (var d = "", _ = 0, p = -1, v = i.length; p < h.length - 1; ) {
|
|
356
|
+
p = h.indexOf(`
|
|
357
|
+
`, _), p == -1 && (p = h.length - 1);
|
|
358
|
+
var E = h.substring(_, p + 1);
|
|
359
|
+
(s.hasOwnProperty ? s.hasOwnProperty(E) : s[E] !== void 0) ? d += String.fromCharCode(s[E]) : (v == l && (E = h.substring(_), p = h.length), d += String.fromCharCode(v), s[E] = v, i[v++] = E), _ = p + 1;
|
|
363
360
|
}
|
|
364
361
|
return d;
|
|
365
362
|
}
|
|
@@ -407,19 +404,19 @@ var ce = {}, xn = {
|
|
|
407
404
|
return null;
|
|
408
405
|
var a = this;
|
|
409
406
|
function l(w, m, T) {
|
|
410
|
-
for (var D = w.substring(T, T + Math.floor(w.length / 4)), M = -1, I = "", R,
|
|
411
|
-
var
|
|
407
|
+
for (var D = w.substring(T, T + Math.floor(w.length / 4)), M = -1, I = "", R, F, U, $; (M = m.indexOf(D, M + 1)) != -1; ) {
|
|
408
|
+
var H = a.diff_commonPrefix(
|
|
412
409
|
w.substring(T),
|
|
413
410
|
m.substring(M)
|
|
414
411
|
), G = a.diff_commonSuffix(
|
|
415
412
|
w.substring(0, T),
|
|
416
413
|
m.substring(0, M)
|
|
417
414
|
);
|
|
418
|
-
I.length < G +
|
|
415
|
+
I.length < G + H && (I = m.substring(M - G, M) + m.substring(M, M + H), R = w.substring(0, T - G), F = w.substring(T + H), U = m.substring(0, M - G), $ = m.substring(M + H));
|
|
419
416
|
}
|
|
420
417
|
return I.length * 2 >= w.length ? [
|
|
421
418
|
R,
|
|
422
|
-
|
|
419
|
+
F,
|
|
423
420
|
U,
|
|
424
421
|
$,
|
|
425
422
|
I
|
|
@@ -437,10 +434,10 @@ var ce = {}, xn = {
|
|
|
437
434
|
if (!c && !f)
|
|
438
435
|
return null;
|
|
439
436
|
f ? c ? h = c[4].length > f[4].length ? c : f : h = f : h = c;
|
|
440
|
-
var d,
|
|
441
|
-
t.length > r.length ? (d = h[0],
|
|
437
|
+
var d, _, p, v;
|
|
438
|
+
t.length > r.length ? (d = h[0], _ = h[1], p = h[2], v = h[3]) : (p = h[0], v = h[1], d = h[2], _ = h[3]);
|
|
442
439
|
var E = h[4];
|
|
443
|
-
return [d,
|
|
440
|
+
return [d, _, p, v, E];
|
|
444
441
|
}, e.prototype.diff_cleanupSemantic = function(t) {
|
|
445
442
|
for (var r = !1, i = [], s = 0, a = null, l = 0, c = 0, f = 0, h = 0, d = 0; l < t.length; )
|
|
446
443
|
t[l][0] == g ? (i[s++] = l, c = h, f = d, h = 0, d = 0, a = t[l][1]) : (t[l][0] == u ? h += t[l][1].length : d += t[l][1].length, a && a.length <= Math.max(c, f) && a.length <= Math.max(
|
|
@@ -453,14 +450,14 @@ var ce = {}, xn = {
|
|
|
453
450
|
), t[i[s - 1] + 1][0] = u, s--, s--, l = s > 0 ? i[s - 1] : -1, c = 0, f = 0, h = 0, d = 0, a = null, r = !0)), l++;
|
|
454
451
|
for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t), l = 1; l < t.length; ) {
|
|
455
452
|
if (t[l - 1][0] == o && t[l][0] == u) {
|
|
456
|
-
var
|
|
457
|
-
v >= E ? (v >=
|
|
453
|
+
var _ = t[l - 1][1], p = t[l][1], v = this.diff_commonOverlap_(_, p), E = this.diff_commonOverlap_(p, _);
|
|
454
|
+
v >= E ? (v >= _.length / 2 || v >= p.length / 2) && (t.splice(l, 0, new e.Diff(
|
|
458
455
|
g,
|
|
459
|
-
|
|
460
|
-
)), t[l - 1][1] =
|
|
456
|
+
p.substring(0, v)
|
|
457
|
+
)), t[l - 1][1] = _.substring(0, _.length - v), t[l + 1][1] = p.substring(v), l++) : (E >= _.length / 2 || E >= p.length / 2) && (t.splice(l, 0, new e.Diff(
|
|
461
458
|
g,
|
|
462
|
-
|
|
463
|
-
)), t[l - 1][0] = u, t[l - 1][1] =
|
|
459
|
+
_.substring(0, E)
|
|
460
|
+
)), t[l - 1][0] = u, t[l - 1][1] = p.substring(0, p.length - E), t[l + 1][0] = o, t[l + 1][1] = _.substring(E), l++), l++;
|
|
464
461
|
}
|
|
465
462
|
l++;
|
|
466
463
|
}
|
|
@@ -468,8 +465,8 @@ var ce = {}, xn = {
|
|
|
468
465
|
function r(E, w) {
|
|
469
466
|
if (!E || !w)
|
|
470
467
|
return 6;
|
|
471
|
-
var m = E.charAt(E.length - 1), T = w.charAt(0), D = m.match(e.nonAlphaNumericRegex_), M = T.match(e.nonAlphaNumericRegex_), I = D && m.match(e.whitespaceRegex_), R = M && T.match(e.whitespaceRegex_),
|
|
472
|
-
return $ ||
|
|
468
|
+
var m = E.charAt(E.length - 1), T = w.charAt(0), D = m.match(e.nonAlphaNumericRegex_), M = T.match(e.nonAlphaNumericRegex_), I = D && m.match(e.whitespaceRegex_), R = M && T.match(e.whitespaceRegex_), F = I && m.match(e.linebreakRegex_), U = R && T.match(e.linebreakRegex_), $ = F && E.match(e.blanklineEndRegex_), H = U && w.match(e.blanklineStartRegex_);
|
|
469
|
+
return $ || H ? 5 : F || U ? 4 : D && !I && R ? 3 : I || R ? 2 : D || M ? 1 : 0;
|
|
473
470
|
}
|
|
474
471
|
for (var i = 1; i < t.length - 1; ) {
|
|
475
472
|
if (t[i - 1][0] == g && t[i + 1][0] == g) {
|
|
@@ -478,12 +475,12 @@ var ce = {}, xn = {
|
|
|
478
475
|
var f = a.substring(a.length - c);
|
|
479
476
|
s = s.substring(0, s.length - c), a = f + a.substring(0, a.length - c), l = f + l;
|
|
480
477
|
}
|
|
481
|
-
for (var h = s, d = a,
|
|
478
|
+
for (var h = s, d = a, _ = l, p = r(s, a) + r(a, l); a.charAt(0) === l.charAt(0); ) {
|
|
482
479
|
s += a.charAt(0), a = a.substring(1) + l.charAt(0), l = l.substring(1);
|
|
483
480
|
var v = r(s, a) + r(a, l);
|
|
484
|
-
v >=
|
|
481
|
+
v >= p && (p = v, h = s, d = a, _ = l);
|
|
485
482
|
}
|
|
486
|
-
t[i - 1][1] != h && (h ? t[i - 1][1] = h : (t.splice(i - 1, 1), i--), t[i][1] = d,
|
|
483
|
+
t[i - 1][1] != h && (h ? t[i - 1][1] = h : (t.splice(i - 1, 1), i--), t[i][1] = d, _ ? t[i + 1][1] = _ : (t.splice(i + 1, 1), i--));
|
|
487
484
|
}
|
|
488
485
|
i++;
|
|
489
486
|
}
|
|
@@ -591,7 +588,7 @@ var ce = {}, xn = {
|
|
|
591
588
|
case "+":
|
|
592
589
|
try {
|
|
593
590
|
i[s++] = new e.Diff(u, decodeURI(f));
|
|
594
|
-
} catch (
|
|
591
|
+
} catch (_) {
|
|
595
592
|
throw new Error("Illegal escape in diff_fromDelta: " + f);
|
|
596
593
|
}
|
|
597
594
|
break;
|
|
@@ -619,19 +616,19 @@ var ce = {}, xn = {
|
|
|
619
616
|
if (r.length > this.Match_MaxBits)
|
|
620
617
|
throw new Error("Pattern too long for this browser.");
|
|
621
618
|
var s = this.match_alphabet_(r), a = this;
|
|
622
|
-
function l(R,
|
|
623
|
-
var U = R / r.length, $ = Math.abs(i -
|
|
619
|
+
function l(R, F) {
|
|
620
|
+
var U = R / r.length, $ = Math.abs(i - F);
|
|
624
621
|
return a.Match_Distance ? U + $ / a.Match_Distance : $ ? 1 : U;
|
|
625
622
|
}
|
|
626
623
|
var c = this.Match_Threshold, f = t.indexOf(r, i);
|
|
627
624
|
f != -1 && (c = Math.min(l(0, f), c), f = t.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(l(0, f), c)));
|
|
628
625
|
var h = 1 << r.length - 1;
|
|
629
626
|
f = -1;
|
|
630
|
-
for (var d,
|
|
631
|
-
for (d = 0,
|
|
632
|
-
l(E, i +
|
|
633
|
-
|
|
634
|
-
var w = Math.max(1, i -
|
|
627
|
+
for (var d, _, p = r.length + t.length, v, E = 0; E < r.length; E++) {
|
|
628
|
+
for (d = 0, _ = p; d < _; )
|
|
629
|
+
l(E, i + _) <= c ? d = _ : p = _, _ = Math.floor((p - d) / 2 + d);
|
|
630
|
+
p = _;
|
|
631
|
+
var w = Math.max(1, i - _ + 1), m = Math.min(i + _, t.length) + r.length, T = Array(m + 2);
|
|
635
632
|
T[m + 1] = (1 << E) - 1;
|
|
636
633
|
for (var D = m; D >= w; D--) {
|
|
637
634
|
var M = s[t.charAt(D - 1)];
|
|
@@ -698,22 +695,22 @@ var ce = {}, xn = {
|
|
|
698
695
|
throw new Error("Unknown call format to patch_make.");
|
|
699
696
|
if (a.length === 0)
|
|
700
697
|
return [];
|
|
701
|
-
for (var l = [], c = new e.patch_obj(), f = 0, h = 0, d = 0,
|
|
698
|
+
for (var l = [], c = new e.patch_obj(), f = 0, h = 0, d = 0, _ = s, p = s, v = 0; v < a.length; v++) {
|
|
702
699
|
var E = a[v][0], w = a[v][1];
|
|
703
700
|
switch (!f && E !== g && (c.start1 = h, c.start2 = d), E) {
|
|
704
701
|
case u:
|
|
705
|
-
c.diffs[f++] = a[v], c.length2 += w.length,
|
|
702
|
+
c.diffs[f++] = a[v], c.length2 += w.length, p = p.substring(0, d) + w + p.substring(d);
|
|
706
703
|
break;
|
|
707
704
|
case o:
|
|
708
|
-
c.length1 += w.length, c.diffs[f++] = a[v],
|
|
705
|
+
c.length1 += w.length, c.diffs[f++] = a[v], p = p.substring(0, d) + p.substring(d + w.length);
|
|
709
706
|
break;
|
|
710
707
|
case g:
|
|
711
|
-
w.length <= 2 * this.Patch_Margin && f && a.length != v + 1 ? (c.diffs[f++] = a[v], c.length1 += w.length, c.length2 += w.length) : w.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c,
|
|
708
|
+
w.length <= 2 * this.Patch_Margin && f && a.length != v + 1 ? (c.diffs[f++] = a[v], c.length1 += w.length, c.length2 += w.length) : w.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, _), l.push(c), c = new e.patch_obj(), f = 0, _ = p, h = d);
|
|
712
709
|
break;
|
|
713
710
|
}
|
|
714
711
|
E !== u && (h += w.length), E !== o && (d += w.length);
|
|
715
712
|
}
|
|
716
|
-
return f && (this.patch_addContext_(c,
|
|
713
|
+
return f && (this.patch_addContext_(c, _), l.push(c)), l;
|
|
717
714
|
}, e.prototype.patch_deepCopy = function(t) {
|
|
718
715
|
for (var r = [], i = 0; i < t.length; i++) {
|
|
719
716
|
var s = t[i], a = new e.patch_obj();
|
|
@@ -743,19 +740,19 @@ var ce = {}, xn = {
|
|
|
743
740
|
a[l] = !1, s -= t[l].length2 - t[l].length1;
|
|
744
741
|
else {
|
|
745
742
|
a[l] = !0, s = h - c;
|
|
746
|
-
var
|
|
747
|
-
if (d == -1 ?
|
|
743
|
+
var _;
|
|
744
|
+
if (d == -1 ? _ = r.substring(h, h + f.length) : _ = r.substring(h, d + this.Match_MaxBits), f == _)
|
|
748
745
|
r = r.substring(0, h) + this.diff_text2(t[l].diffs) + r.substring(h + f.length);
|
|
749
746
|
else {
|
|
750
|
-
var
|
|
751
|
-
if (f.length > this.Match_MaxBits && this.diff_levenshtein(
|
|
747
|
+
var p = this.diff_main(f, _, !1);
|
|
748
|
+
if (f.length > this.Match_MaxBits && this.diff_levenshtein(p) / f.length > this.Patch_DeleteThreshold)
|
|
752
749
|
a[l] = !1;
|
|
753
750
|
else {
|
|
754
|
-
this.diff_cleanupSemanticLossless(
|
|
751
|
+
this.diff_cleanupSemanticLossless(p);
|
|
755
752
|
for (var v = 0, E, w = 0; w < t[l].diffs.length; w++) {
|
|
756
753
|
var m = t[l].diffs[w];
|
|
757
|
-
m[0] !== g && (E = this.diff_xIndex(
|
|
758
|
-
|
|
754
|
+
m[0] !== g && (E = this.diff_xIndex(p, v)), m[0] === u ? r = r.substring(0, h + E) + m[1] + r.substring(h + E) : m[0] === o && (r = r.substring(0, h + E) + r.substring(h + this.diff_xIndex(
|
|
755
|
+
p,
|
|
759
756
|
v + m[1].length
|
|
760
757
|
))), m[0] !== o && (v += m[1].length);
|
|
761
758
|
}
|
|
@@ -791,15 +788,15 @@ var ce = {}, xn = {
|
|
|
791
788
|
for (var a = s.start1, l = s.start2, c = ""; s.diffs.length !== 0; ) {
|
|
792
789
|
var f = new e.patch_obj(), h = !0;
|
|
793
790
|
for (f.start1 = a - c.length, f.start2 = l - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new e.Diff(g, c))); s.diffs.length !== 0 && f.length1 < r - this.Patch_Margin; ) {
|
|
794
|
-
var d = s.diffs[0][0],
|
|
795
|
-
d === u ? (f.length2 +=
|
|
791
|
+
var d = s.diffs[0][0], _ = s.diffs[0][1];
|
|
792
|
+
d === u ? (f.length2 += _.length, l += _.length, f.diffs.push(s.diffs.shift()), h = !1) : d === o && f.diffs.length == 1 && f.diffs[0][0] == g && _.length > 2 * r ? (f.length1 += _.length, a += _.length, h = !1, f.diffs.push(new e.Diff(d, _)), s.diffs.shift()) : (_ = _.substring(
|
|
796
793
|
0,
|
|
797
794
|
r - f.length1 - this.Patch_Margin
|
|
798
|
-
), f.length1 +=
|
|
795
|
+
), f.length1 += _.length, a += _.length, d === g ? (f.length2 += _.length, l += _.length) : h = !1, f.diffs.push(new e.Diff(d, _)), _ == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(_.length));
|
|
799
796
|
}
|
|
800
797
|
c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
|
|
801
|
-
var
|
|
802
|
-
|
|
798
|
+
var p = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
|
|
799
|
+
p !== "" && (f.length1 += p.length, f.length2 += p.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === g ? f.diffs[f.diffs.length - 1][1] += p : f.diffs.push(new e.Diff(g, p))), h || t.splice(++i, 0, f);
|
|
803
800
|
}
|
|
804
801
|
}
|
|
805
802
|
}, e.prototype.patch_toText = function(t) {
|
|
@@ -862,8 +859,8 @@ var ce = {}, xn = {
|
|
|
862
859
|
}
|
|
863
860
|
return i.join("").replace(/%20/g, " ");
|
|
864
861
|
}, n.exports = e, n.exports.diff_match_patch = e, n.exports.DIFF_DELETE = o, n.exports.DIFF_INSERT = u, n.exports.DIFF_EQUAL = g;
|
|
865
|
-
})(
|
|
866
|
-
var Be = { exports: {} };
|
|
862
|
+
})(rn);
|
|
863
|
+
var Oe = rn.exports, Be = { exports: {} };
|
|
867
864
|
function $e(n) {
|
|
868
865
|
return n instanceof Map ? n.clear = n.delete = n.set = function() {
|
|
869
866
|
throw new Error("map is read-only");
|
|
@@ -887,7 +884,7 @@ class Ve {
|
|
|
887
884
|
this.isMatchIgnored = !0;
|
|
888
885
|
}
|
|
889
886
|
}
|
|
890
|
-
function
|
|
887
|
+
function sn(n) {
|
|
891
888
|
return n.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
892
889
|
}
|
|
893
890
|
function te(n, ...e) {
|
|
@@ -900,7 +897,7 @@ function te(n, ...e) {
|
|
|
900
897
|
}), /** @type {T} */
|
|
901
898
|
o;
|
|
902
899
|
}
|
|
903
|
-
const Hn = "</span>", Ze = (n) => !!n.scope || n.sublanguage && n.language,
|
|
900
|
+
const Hn = "</span>", Ze = (n) => !!n.scope || n.sublanguage && n.language, zn = (n, { prefix: e }) => {
|
|
904
901
|
if (n.includes(".")) {
|
|
905
902
|
const o = n.split(".");
|
|
906
903
|
return [
|
|
@@ -910,7 +907,7 @@ const Hn = "</span>", Ze = (n) => !!n.scope || n.sublanguage && n.language, Fn =
|
|
|
910
907
|
}
|
|
911
908
|
return `${e}${n}`;
|
|
912
909
|
};
|
|
913
|
-
class
|
|
910
|
+
class Gn {
|
|
914
911
|
/**
|
|
915
912
|
* Creates a new HTMLRenderer
|
|
916
913
|
*
|
|
@@ -925,7 +922,7 @@ class zn {
|
|
|
925
922
|
*
|
|
926
923
|
* @param {string} text */
|
|
927
924
|
addText(e) {
|
|
928
|
-
this.buffer +=
|
|
925
|
+
this.buffer += sn(e);
|
|
929
926
|
}
|
|
930
927
|
/**
|
|
931
928
|
* Adds a node open to the output stream (if needed)
|
|
@@ -935,7 +932,7 @@ class zn {
|
|
|
935
932
|
if (!Ze(e))
|
|
936
933
|
return;
|
|
937
934
|
let o = "";
|
|
938
|
-
e.sublanguage ? o = `language-${e.language}` : o =
|
|
935
|
+
e.sublanguage ? o = `language-${e.language}` : o = zn(e.scope, { prefix: this.classPrefix }), this.span(o);
|
|
939
936
|
}
|
|
940
937
|
/**
|
|
941
938
|
* Adds a node close to the output stream (if needed)
|
|
@@ -1016,7 +1013,7 @@ class Ue {
|
|
|
1016
1013
|
}));
|
|
1017
1014
|
}
|
|
1018
1015
|
}
|
|
1019
|
-
class
|
|
1016
|
+
class Kn extends Ue {
|
|
1020
1017
|
/**
|
|
1021
1018
|
* @param {*} options
|
|
1022
1019
|
*/
|
|
@@ -1045,7 +1042,7 @@ class Gn extends Ue {
|
|
|
1045
1042
|
u.sublanguage = !0, u.language = o, this.add(u);
|
|
1046
1043
|
}
|
|
1047
1044
|
toHTML() {
|
|
1048
|
-
return new
|
|
1045
|
+
return new Gn(this, this.options).value();
|
|
1049
1046
|
}
|
|
1050
1047
|
finalize() {
|
|
1051
1048
|
return !0;
|
|
@@ -1054,33 +1051,33 @@ class Gn extends Ue {
|
|
|
1054
1051
|
function fe(n) {
|
|
1055
1052
|
return n ? typeof n == "string" ? n : n.source : null;
|
|
1056
1053
|
}
|
|
1057
|
-
function
|
|
1054
|
+
function an(n) {
|
|
1058
1055
|
return se("(?=", n, ")");
|
|
1059
1056
|
}
|
|
1060
|
-
function
|
|
1057
|
+
function Wn(n) {
|
|
1061
1058
|
return se("(?:", n, ")*");
|
|
1062
1059
|
}
|
|
1063
|
-
function
|
|
1060
|
+
function Qn(n) {
|
|
1064
1061
|
return se("(?:", n, ")?");
|
|
1065
1062
|
}
|
|
1066
1063
|
function se(...n) {
|
|
1067
1064
|
return n.map((o) => fe(o)).join("");
|
|
1068
1065
|
}
|
|
1069
|
-
function
|
|
1066
|
+
function Vn(n) {
|
|
1070
1067
|
const e = n[n.length - 1];
|
|
1071
1068
|
return typeof e == "object" && e.constructor === Object ? (n.splice(n.length - 1, 1), e) : {};
|
|
1072
1069
|
}
|
|
1073
1070
|
function Pe(...n) {
|
|
1074
|
-
return "(" + (
|
|
1071
|
+
return "(" + (Vn(n).capture ? "" : "?:") + n.map((u) => fe(u)).join("|") + ")";
|
|
1075
1072
|
}
|
|
1076
|
-
function
|
|
1073
|
+
function on(n) {
|
|
1077
1074
|
return new RegExp(n.toString() + "|").exec("").length - 1;
|
|
1078
1075
|
}
|
|
1079
|
-
function
|
|
1076
|
+
function Zn(n, e) {
|
|
1080
1077
|
const o = n && n.exec(e);
|
|
1081
1078
|
return o && o.index === 0;
|
|
1082
1079
|
}
|
|
1083
|
-
const
|
|
1080
|
+
const Yn = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1084
1081
|
function xe(n, { joinWith: e }) {
|
|
1085
1082
|
let o = 0;
|
|
1086
1083
|
return n.map((u) => {
|
|
@@ -1088,7 +1085,7 @@ function xe(n, { joinWith: e }) {
|
|
|
1088
1085
|
const g = o;
|
|
1089
1086
|
let t = fe(u), r = "";
|
|
1090
1087
|
for (; t.length > 0; ) {
|
|
1091
|
-
const i =
|
|
1088
|
+
const i = Yn.exec(t);
|
|
1092
1089
|
if (!i) {
|
|
1093
1090
|
r += t;
|
|
1094
1091
|
break;
|
|
@@ -1098,7 +1095,7 @@ function xe(n, { joinWith: e }) {
|
|
|
1098
1095
|
return r;
|
|
1099
1096
|
}).map((u) => `(${u})`).join(e);
|
|
1100
1097
|
}
|
|
1101
|
-
const
|
|
1098
|
+
const Xn = /\b\B/, ln = "[a-zA-Z]\\w*", Fe = "[a-zA-Z_]\\w*", cn = "\\b\\d+(\\.\\d+)?", un = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", fn = "\\b(0b[01]+)", jn = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Jn = (n = {}) => {
|
|
1102
1099
|
const e = /^#![ ]*\//;
|
|
1103
1100
|
return n.binary && (n.begin = se(
|
|
1104
1101
|
e,
|
|
@@ -1118,21 +1115,21 @@ const Yn = /\b\B/, on = "[a-zA-Z]\\w*", He = "[a-zA-Z_]\\w*", ln = "\\b\\d+(\\.\
|
|
|
1118
1115
|
}, ge = {
|
|
1119
1116
|
begin: "\\\\[\\s\\S]",
|
|
1120
1117
|
relevance: 0
|
|
1121
|
-
},
|
|
1118
|
+
}, qn = {
|
|
1122
1119
|
scope: "string",
|
|
1123
1120
|
begin: "'",
|
|
1124
1121
|
end: "'",
|
|
1125
1122
|
illegal: "\\n",
|
|
1126
1123
|
contains: [ge]
|
|
1127
|
-
},
|
|
1124
|
+
}, et = {
|
|
1128
1125
|
scope: "string",
|
|
1129
1126
|
begin: '"',
|
|
1130
1127
|
end: '"',
|
|
1131
1128
|
illegal: "\\n",
|
|
1132
1129
|
contains: [ge]
|
|
1133
|
-
},
|
|
1130
|
+
}, nt = {
|
|
1134
1131
|
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/
|
|
1135
|
-
},
|
|
1132
|
+
}, Te = function(n, e, o = {}) {
|
|
1136
1133
|
const u = te(
|
|
1137
1134
|
{
|
|
1138
1135
|
scope: "comment",
|
|
@@ -1198,11 +1195,7 @@ const Yn = /\b\B/, on = "[a-zA-Z]\\w*", He = "[a-zA-Z_]\\w*", ln = "\\b\\d+(\\.\
|
|
|
1198
1195
|
// look for 3 words in a row
|
|
1199
1196
|
}
|
|
1200
1197
|
), u;
|
|
1201
|
-
},
|
|
1202
|
-
scope: "number",
|
|
1203
|
-
begin: ln,
|
|
1204
|
-
relevance: 0
|
|
1205
|
-
}, st = {
|
|
1198
|
+
}, tt = Te("//", "$"), rt = Te("/\\*", "\\*/"), it = Te("#", "$"), st = {
|
|
1206
1199
|
scope: "number",
|
|
1207
1200
|
begin: cn,
|
|
1208
1201
|
relevance: 0
|
|
@@ -1211,6 +1204,10 @@ const Yn = /\b\B/, on = "[a-zA-Z]\\w*", He = "[a-zA-Z_]\\w*", ln = "\\b\\d+(\\.\
|
|
|
1211
1204
|
begin: un,
|
|
1212
1205
|
relevance: 0
|
|
1213
1206
|
}, ot = {
|
|
1207
|
+
scope: "number",
|
|
1208
|
+
begin: fn,
|
|
1209
|
+
relevance: 0
|
|
1210
|
+
}, lt = {
|
|
1214
1211
|
// this outer rule makes sure we actually have a WHOLE regex and not simply
|
|
1215
1212
|
// an expression such as:
|
|
1216
1213
|
//
|
|
@@ -1233,19 +1230,19 @@ const Yn = /\b\B/, on = "[a-zA-Z]\\w*", He = "[a-zA-Z_]\\w*", ln = "\\b\\d+(\\.\
|
|
|
1233
1230
|
}
|
|
1234
1231
|
]
|
|
1235
1232
|
}]
|
|
1236
|
-
}, lt = {
|
|
1237
|
-
scope: "title",
|
|
1238
|
-
begin: on,
|
|
1239
|
-
relevance: 0
|
|
1240
1233
|
}, ct = {
|
|
1241
1234
|
scope: "title",
|
|
1242
|
-
begin:
|
|
1235
|
+
begin: ln,
|
|
1243
1236
|
relevance: 0
|
|
1244
1237
|
}, ut = {
|
|
1238
|
+
scope: "title",
|
|
1239
|
+
begin: Fe,
|
|
1240
|
+
relevance: 0
|
|
1241
|
+
}, ft = {
|
|
1245
1242
|
// excludes method names from keyword processing
|
|
1246
|
-
begin: "\\.\\s*" +
|
|
1243
|
+
begin: "\\.\\s*" + Fe,
|
|
1247
1244
|
relevance: 0
|
|
1248
|
-
},
|
|
1245
|
+
}, gt = function(n) {
|
|
1249
1246
|
return Object.assign(
|
|
1250
1247
|
n,
|
|
1251
1248
|
{
|
|
@@ -1260,56 +1257,56 @@ const Yn = /\b\B/, on = "[a-zA-Z]\\w*", He = "[a-zA-Z_]\\w*", ln = "\\b\\d+(\\.\
|
|
|
1260
1257
|
}
|
|
1261
1258
|
);
|
|
1262
1259
|
};
|
|
1263
|
-
var
|
|
1260
|
+
var me = /* @__PURE__ */ Object.freeze({
|
|
1264
1261
|
__proto__: null,
|
|
1265
|
-
MATCH_NOTHING_RE:
|
|
1266
|
-
IDENT_RE:
|
|
1267
|
-
UNDERSCORE_IDENT_RE:
|
|
1268
|
-
NUMBER_RE:
|
|
1269
|
-
C_NUMBER_RE:
|
|
1270
|
-
BINARY_NUMBER_RE:
|
|
1271
|
-
RE_STARTERS_RE:
|
|
1272
|
-
SHEBANG:
|
|
1262
|
+
MATCH_NOTHING_RE: Xn,
|
|
1263
|
+
IDENT_RE: ln,
|
|
1264
|
+
UNDERSCORE_IDENT_RE: Fe,
|
|
1265
|
+
NUMBER_RE: cn,
|
|
1266
|
+
C_NUMBER_RE: un,
|
|
1267
|
+
BINARY_NUMBER_RE: fn,
|
|
1268
|
+
RE_STARTERS_RE: jn,
|
|
1269
|
+
SHEBANG: Jn,
|
|
1273
1270
|
BACKSLASH_ESCAPE: ge,
|
|
1274
|
-
APOS_STRING_MODE:
|
|
1275
|
-
QUOTE_STRING_MODE:
|
|
1276
|
-
PHRASAL_WORDS_MODE:
|
|
1277
|
-
COMMENT:
|
|
1278
|
-
C_LINE_COMMENT_MODE:
|
|
1279
|
-
C_BLOCK_COMMENT_MODE:
|
|
1280
|
-
HASH_COMMENT_MODE:
|
|
1281
|
-
NUMBER_MODE:
|
|
1282
|
-
C_NUMBER_MODE:
|
|
1283
|
-
BINARY_NUMBER_MODE:
|
|
1284
|
-
REGEXP_MODE:
|
|
1285
|
-
TITLE_MODE:
|
|
1286
|
-
UNDERSCORE_TITLE_MODE:
|
|
1287
|
-
METHOD_GUARD:
|
|
1288
|
-
END_SAME_AS_BEGIN:
|
|
1271
|
+
APOS_STRING_MODE: qn,
|
|
1272
|
+
QUOTE_STRING_MODE: et,
|
|
1273
|
+
PHRASAL_WORDS_MODE: nt,
|
|
1274
|
+
COMMENT: Te,
|
|
1275
|
+
C_LINE_COMMENT_MODE: tt,
|
|
1276
|
+
C_BLOCK_COMMENT_MODE: rt,
|
|
1277
|
+
HASH_COMMENT_MODE: it,
|
|
1278
|
+
NUMBER_MODE: st,
|
|
1279
|
+
C_NUMBER_MODE: at,
|
|
1280
|
+
BINARY_NUMBER_MODE: ot,
|
|
1281
|
+
REGEXP_MODE: lt,
|
|
1282
|
+
TITLE_MODE: ct,
|
|
1283
|
+
UNDERSCORE_TITLE_MODE: ut,
|
|
1284
|
+
METHOD_GUARD: ft,
|
|
1285
|
+
END_SAME_AS_BEGIN: gt
|
|
1289
1286
|
});
|
|
1290
|
-
function
|
|
1287
|
+
function ht(n, e) {
|
|
1291
1288
|
n.input[n.index - 1] === "." && e.ignoreMatch();
|
|
1292
1289
|
}
|
|
1293
|
-
function
|
|
1290
|
+
function dt(n, e) {
|
|
1294
1291
|
n.className !== void 0 && (n.scope = n.className, delete n.className);
|
|
1295
1292
|
}
|
|
1296
|
-
function
|
|
1297
|
-
e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin =
|
|
1293
|
+
function _t(n, e) {
|
|
1294
|
+
e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = ht, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
|
|
1298
1295
|
}
|
|
1299
1296
|
function pt(n, e) {
|
|
1300
1297
|
Array.isArray(n.illegal) && (n.illegal = Pe(...n.illegal));
|
|
1301
1298
|
}
|
|
1302
|
-
function
|
|
1299
|
+
function bt(n, e) {
|
|
1303
1300
|
if (n.match) {
|
|
1304
1301
|
if (n.begin || n.end)
|
|
1305
1302
|
throw new Error("begin & end are not supported with match");
|
|
1306
1303
|
n.begin = n.match, delete n.match;
|
|
1307
1304
|
}
|
|
1308
1305
|
}
|
|
1309
|
-
function
|
|
1306
|
+
function vt(n, e) {
|
|
1310
1307
|
n.relevance === void 0 && (n.relevance = 1);
|
|
1311
1308
|
}
|
|
1312
|
-
const
|
|
1309
|
+
const Et = (n, e) => {
|
|
1313
1310
|
if (!n.beforeMatch)
|
|
1314
1311
|
return;
|
|
1315
1312
|
if (n.starts)
|
|
@@ -1317,13 +1314,13 @@ const vt = (n, e) => {
|
|
|
1317
1314
|
const o = Object.assign({}, n);
|
|
1318
1315
|
Object.keys(n).forEach((u) => {
|
|
1319
1316
|
delete n[u];
|
|
1320
|
-
}), n.keywords = o.keywords, n.begin = se(o.beforeMatch,
|
|
1317
|
+
}), n.keywords = o.keywords, n.begin = se(o.beforeMatch, an(o.begin)), n.starts = {
|
|
1321
1318
|
relevance: 0,
|
|
1322
1319
|
contains: [
|
|
1323
1320
|
Object.assign(o, { endsParent: !0 })
|
|
1324
1321
|
]
|
|
1325
1322
|
}, n.relevance = 0, delete o.beforeMatch;
|
|
1326
|
-
},
|
|
1323
|
+
}, mt = [
|
|
1327
1324
|
"of",
|
|
1328
1325
|
"and",
|
|
1329
1326
|
"for",
|
|
@@ -1338,27 +1335,27 @@ const vt = (n, e) => {
|
|
|
1338
1335
|
// common variable name
|
|
1339
1336
|
"value"
|
|
1340
1337
|
// common variable name
|
|
1341
|
-
],
|
|
1342
|
-
function
|
|
1338
|
+
], yt = "keyword";
|
|
1339
|
+
function gn(n, e, o = yt) {
|
|
1343
1340
|
const u = /* @__PURE__ */ Object.create(null);
|
|
1344
1341
|
return typeof n == "string" ? g(o, n.split(" ")) : Array.isArray(n) ? g(o, n) : Object.keys(n).forEach(function(t) {
|
|
1345
1342
|
Object.assign(
|
|
1346
1343
|
u,
|
|
1347
|
-
|
|
1344
|
+
gn(n[t], e, t)
|
|
1348
1345
|
);
|
|
1349
1346
|
}), u;
|
|
1350
1347
|
function g(t, r) {
|
|
1351
1348
|
e && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
|
|
1352
1349
|
const s = i.split("|");
|
|
1353
|
-
u[s[0]] = [t,
|
|
1350
|
+
u[s[0]] = [t, wt(s[0], s[1])];
|
|
1354
1351
|
});
|
|
1355
1352
|
}
|
|
1356
1353
|
}
|
|
1357
|
-
function
|
|
1358
|
-
return e ? Number(e) :
|
|
1354
|
+
function wt(n, e) {
|
|
1355
|
+
return e ? Number(e) : Nt(n) ? 0 : 1;
|
|
1359
1356
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return
|
|
1357
|
+
function Nt(n) {
|
|
1358
|
+
return mt.includes(n.toLowerCase());
|
|
1362
1359
|
}
|
|
1363
1360
|
const Xe = {}, ie = (n) => {
|
|
1364
1361
|
console.error(n);
|
|
@@ -1366,39 +1363,39 @@ const Xe = {}, ie = (n) => {
|
|
|
1366
1363
|
console.log(`WARN: ${n}`, ...e);
|
|
1367
1364
|
}, ae = (n, e) => {
|
|
1368
1365
|
Xe[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), Xe[`${n}/${e}`] = !0);
|
|
1369
|
-
},
|
|
1370
|
-
function
|
|
1366
|
+
}, Me = new Error();
|
|
1367
|
+
function hn(n, e, { key: o }) {
|
|
1371
1368
|
let u = 0;
|
|
1372
1369
|
const g = n[o], t = {}, r = {};
|
|
1373
1370
|
for (let i = 1; i <= e.length; i++)
|
|
1374
|
-
r[i + u] = g[i], t[i + u] = !0, u +=
|
|
1371
|
+
r[i + u] = g[i], t[i + u] = !0, u += on(e[i - 1]);
|
|
1375
1372
|
n[o] = r, n[o]._emit = t, n[o]._multi = !0;
|
|
1376
1373
|
}
|
|
1377
|
-
function
|
|
1374
|
+
function Mt(n) {
|
|
1378
1375
|
if (Array.isArray(n.begin)) {
|
|
1379
1376
|
if (n.skip || n.excludeBegin || n.returnBegin)
|
|
1380
|
-
throw ie("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
|
1377
|
+
throw ie("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Me;
|
|
1381
1378
|
if (typeof n.beginScope != "object" || n.beginScope === null)
|
|
1382
|
-
throw ie("beginScope must be object"),
|
|
1383
|
-
|
|
1379
|
+
throw ie("beginScope must be object"), Me;
|
|
1380
|
+
hn(n, n.begin, { key: "beginScope" }), n.begin = xe(n.begin, { joinWith: "" });
|
|
1384
1381
|
}
|
|
1385
1382
|
}
|
|
1386
|
-
function
|
|
1383
|
+
function At(n) {
|
|
1387
1384
|
if (Array.isArray(n.end)) {
|
|
1388
1385
|
if (n.skip || n.excludeEnd || n.returnEnd)
|
|
1389
|
-
throw ie("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
|
1386
|
+
throw ie("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Me;
|
|
1390
1387
|
if (typeof n.endScope != "object" || n.endScope === null)
|
|
1391
|
-
throw ie("endScope must be object"),
|
|
1392
|
-
|
|
1388
|
+
throw ie("endScope must be object"), Me;
|
|
1389
|
+
hn(n, n.end, { key: "endScope" }), n.end = xe(n.end, { joinWith: "" });
|
|
1393
1390
|
}
|
|
1394
1391
|
}
|
|
1395
|
-
function At(n) {
|
|
1396
|
-
n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
|
|
1397
|
-
}
|
|
1398
1392
|
function Tt(n) {
|
|
1399
|
-
|
|
1393
|
+
n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
|
|
1400
1394
|
}
|
|
1401
1395
|
function Dt(n) {
|
|
1396
|
+
Tt(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), Mt(n), At(n);
|
|
1397
|
+
}
|
|
1398
|
+
function St(n) {
|
|
1402
1399
|
function e(r, i) {
|
|
1403
1400
|
return new RegExp(
|
|
1404
1401
|
fe(r),
|
|
@@ -1411,7 +1408,7 @@ function Dt(n) {
|
|
|
1411
1408
|
}
|
|
1412
1409
|
// @ts-ignore
|
|
1413
1410
|
addRule(i, s) {
|
|
1414
|
-
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt +=
|
|
1411
|
+
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += on(i) + 1;
|
|
1415
1412
|
}
|
|
1416
1413
|
compile() {
|
|
1417
1414
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
@@ -1473,26 +1470,26 @@ function Dt(n) {
|
|
|
1473
1470
|
if (r.isCompiled)
|
|
1474
1471
|
return s;
|
|
1475
1472
|
[
|
|
1476
|
-
|
|
1473
|
+
dt,
|
|
1477
1474
|
// do this early so compiler extensions generally don't have to worry about
|
|
1478
1475
|
// the distinction between match/begin
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1476
|
+
bt,
|
|
1477
|
+
Dt,
|
|
1478
|
+
Et
|
|
1482
1479
|
].forEach((l) => l(r, i)), n.compilerExtensions.forEach((l) => l(r, i)), r.__beforeBegin = null, [
|
|
1483
|
-
|
|
1480
|
+
_t,
|
|
1484
1481
|
// do this later so compiler extensions that come earlier have access to the
|
|
1485
1482
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1486
1483
|
pt,
|
|
1487
1484
|
// default to 1 relevance if not specified
|
|
1488
|
-
|
|
1485
|
+
vt
|
|
1489
1486
|
].forEach((l) => l(r, i)), r.isCompiled = !0;
|
|
1490
1487
|
let a = null;
|
|
1491
|
-
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), a = r.keywords.$pattern, delete r.keywords.$pattern), a = a || /\w+/, r.keywords && (r.keywords =
|
|
1488
|
+
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), a = r.keywords.$pattern, delete r.keywords.$pattern), a = a || /\w+/, r.keywords && (r.keywords = gn(r.keywords, n.case_insensitive)), s.keywordPatternRe = e(a, !0), i && (r.begin || (r.begin = /\B|\b/), s.beginRe = e(s.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (s.endRe = e(s.end)), s.terminatorEnd = fe(s.end) || "", r.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (s.illegalRe = e(
|
|
1492
1489
|
/** @type {RegExp | string} */
|
|
1493
1490
|
r.illegal
|
|
1494
1491
|
)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(l) {
|
|
1495
|
-
return
|
|
1492
|
+
return Rt(l === "self" ? r : l);
|
|
1496
1493
|
})), r.contains.forEach(function(l) {
|
|
1497
1494
|
t(
|
|
1498
1495
|
/** @type Mode */
|
|
@@ -1508,21 +1505,21 @@ function Dt(n) {
|
|
|
1508
1505
|
n
|
|
1509
1506
|
);
|
|
1510
1507
|
}
|
|
1511
|
-
function
|
|
1512
|
-
return n ? n.endsWithParent ||
|
|
1508
|
+
function dn(n) {
|
|
1509
|
+
return n ? n.endsWithParent || dn(n.starts) : !1;
|
|
1513
1510
|
}
|
|
1514
|
-
function
|
|
1511
|
+
function Rt(n) {
|
|
1515
1512
|
return n.variants && !n.cachedVariants && (n.cachedVariants = n.variants.map(function(e) {
|
|
1516
1513
|
return te(n, { variants: null }, e);
|
|
1517
|
-
})), n.cachedVariants ? n.cachedVariants :
|
|
1514
|
+
})), n.cachedVariants ? n.cachedVariants : dn(n) ? te(n, { starts: n.starts ? te(n.starts) : null }) : Object.isFrozen(n) ? te(n) : n;
|
|
1518
1515
|
}
|
|
1519
|
-
var
|
|
1516
|
+
var Ot = "11.7.0";
|
|
1520
1517
|
class Lt extends Error {
|
|
1521
1518
|
constructor(e, o) {
|
|
1522
1519
|
super(e), this.name = "HTMLInjectionError", this.html = o;
|
|
1523
1520
|
}
|
|
1524
1521
|
}
|
|
1525
|
-
const
|
|
1522
|
+
const Le = sn, Je = te, qe = Symbol("nomatch"), Ct = 7, It = function(n) {
|
|
1526
1523
|
const e = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null), u = [];
|
|
1527
1524
|
let g = !0;
|
|
1528
1525
|
const t = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -1536,7 +1533,7 @@ const Oe = rn, Je = te, qe = Symbol("nomatch"), Ot = 7, Ct = function(n) {
|
|
|
1536
1533
|
languages: null,
|
|
1537
1534
|
// beta configuration options, subject to change, welcome to discuss
|
|
1538
1535
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
1539
|
-
__emitter:
|
|
1536
|
+
__emitter: Kn
|
|
1540
1537
|
};
|
|
1541
1538
|
function s(b) {
|
|
1542
1539
|
return i.noHighlightRe.test(b);
|
|
@@ -1544,52 +1541,52 @@ const Oe = rn, Je = te, qe = Symbol("nomatch"), Ot = 7, Ct = function(n) {
|
|
|
1544
1541
|
function a(b) {
|
|
1545
1542
|
let N = b.className + " ";
|
|
1546
1543
|
N += b.parentNode ? b.parentNode.className : "";
|
|
1547
|
-
const
|
|
1548
|
-
if (
|
|
1549
|
-
const k = R(
|
|
1550
|
-
return k || (je(t.replace("{}",
|
|
1544
|
+
const L = i.languageDetectRe.exec(N);
|
|
1545
|
+
if (L) {
|
|
1546
|
+
const k = R(L[1]);
|
|
1547
|
+
return k || (je(t.replace("{}", L[1])), je("Falling back to no-highlight mode for this block.", b)), k ? L[1] : "no-highlight";
|
|
1551
1548
|
}
|
|
1552
1549
|
return N.split(/\s+/).find((k) => s(k) || R(k));
|
|
1553
1550
|
}
|
|
1554
|
-
function l(b, N,
|
|
1551
|
+
function l(b, N, L) {
|
|
1555
1552
|
let k = "", x = "";
|
|
1556
|
-
typeof N == "object" ? (k = b,
|
|
1557
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N),
|
|
1553
|
+
typeof N == "object" ? (k = b, L = N.ignoreIllegals, x = N.language) : (ae("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ae("10.7.0", `Please use highlight(code, options) instead.
|
|
1554
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L === void 0 && (L = !0);
|
|
1558
1555
|
const W = {
|
|
1559
1556
|
code: k,
|
|
1560
1557
|
language: x
|
|
1561
1558
|
};
|
|
1562
1559
|
G("before:highlight", W);
|
|
1563
|
-
const Y = W.result ? W.result : c(W.language, W.code,
|
|
1560
|
+
const Y = W.result ? W.result : c(W.language, W.code, L);
|
|
1564
1561
|
return Y.code = W.code, G("after:highlight", Y), Y;
|
|
1565
1562
|
}
|
|
1566
|
-
function c(b, N,
|
|
1563
|
+
function c(b, N, L, k) {
|
|
1567
1564
|
const x = /* @__PURE__ */ Object.create(null);
|
|
1568
1565
|
function W(y, A) {
|
|
1569
1566
|
return y.keywords[A];
|
|
1570
1567
|
}
|
|
1571
1568
|
function Y() {
|
|
1572
|
-
if (!
|
|
1569
|
+
if (!O.keywords) {
|
|
1573
1570
|
z.addText(P);
|
|
1574
1571
|
return;
|
|
1575
1572
|
}
|
|
1576
1573
|
let y = 0;
|
|
1577
|
-
|
|
1578
|
-
let A =
|
|
1574
|
+
O.keywordPatternRe.lastIndex = 0;
|
|
1575
|
+
let A = O.keywordPatternRe.exec(P), C = "";
|
|
1579
1576
|
for (; A; ) {
|
|
1580
1577
|
C += P.substring(y, A.index);
|
|
1581
|
-
const B = ne.case_insensitive ? A[0].toLowerCase() : A[0], K = W(
|
|
1578
|
+
const B = ne.case_insensitive ? A[0].toLowerCase() : A[0], K = W(O, B);
|
|
1582
1579
|
if (K) {
|
|
1583
|
-
const [X,
|
|
1584
|
-
if (z.addText(C), C = "", x[B] = (x[B] || 0) + 1, x[B] <=
|
|
1580
|
+
const [X, Tn] = K;
|
|
1581
|
+
if (z.addText(C), C = "", x[B] = (x[B] || 0) + 1, x[B] <= Ct && (Ee += Tn), X.startsWith("_"))
|
|
1585
1582
|
C += A[0];
|
|
1586
1583
|
else {
|
|
1587
|
-
const
|
|
1588
|
-
z.addKeyword(A[0],
|
|
1584
|
+
const Dn = ne.classNameAliases[X] || X;
|
|
1585
|
+
z.addKeyword(A[0], Dn);
|
|
1589
1586
|
}
|
|
1590
1587
|
} else
|
|
1591
1588
|
C += A[0];
|
|
1592
|
-
y =
|
|
1589
|
+
y = O.keywordPatternRe.lastIndex, A = O.keywordPatternRe.exec(P);
|
|
1593
1590
|
}
|
|
1594
1591
|
C += P.substring(y), z.addText(C);
|
|
1595
1592
|
}
|
|
@@ -1597,19 +1594,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1597
1594
|
if (P === "")
|
|
1598
1595
|
return;
|
|
1599
1596
|
let y = null;
|
|
1600
|
-
if (typeof
|
|
1601
|
-
if (!e[
|
|
1597
|
+
if (typeof O.subLanguage == "string") {
|
|
1598
|
+
if (!e[O.subLanguage]) {
|
|
1602
1599
|
z.addText(P);
|
|
1603
1600
|
return;
|
|
1604
1601
|
}
|
|
1605
|
-
y = c(
|
|
1602
|
+
y = c(O.subLanguage, P, !0, Ke[O.subLanguage]), Ke[O.subLanguage] = /** @type {CompiledMode} */
|
|
1606
1603
|
y._top;
|
|
1607
1604
|
} else
|
|
1608
|
-
y = h(P,
|
|
1609
|
-
|
|
1605
|
+
y = h(P, O.subLanguage.length ? O.subLanguage : null);
|
|
1606
|
+
O.relevance > 0 && (Ee += y.relevance), z.addSublanguage(y._emitter, y.language);
|
|
1610
1607
|
}
|
|
1611
1608
|
function Q() {
|
|
1612
|
-
|
|
1609
|
+
O.subLanguage != null ? be() : Y(), P = "";
|
|
1613
1610
|
}
|
|
1614
1611
|
function ee(y, A) {
|
|
1615
1612
|
let C = 1;
|
|
@@ -1623,11 +1620,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1623
1620
|
K ? z.addKeyword(X, K) : (P = X, Y(), P = ""), C++;
|
|
1624
1621
|
}
|
|
1625
1622
|
}
|
|
1626
|
-
function
|
|
1627
|
-
return y.scope && typeof y.scope == "string" && z.openNode(ne.classNameAliases[y.scope] || y.scope), y.beginScope && (y.beginScope._wrap ? (z.addKeyword(P, ne.classNameAliases[y.beginScope._wrap] || y.beginScope._wrap), P = "") : y.beginScope._multi && (ee(y.beginScope, A), P = "")),
|
|
1623
|
+
function He(y, A) {
|
|
1624
|
+
return y.scope && typeof y.scope == "string" && z.openNode(ne.classNameAliases[y.scope] || y.scope), y.beginScope && (y.beginScope._wrap ? (z.addKeyword(P, ne.classNameAliases[y.beginScope._wrap] || y.beginScope._wrap), P = "") : y.beginScope._multi && (ee(y.beginScope, A), P = "")), O = Object.create(y, { parent: { value: O } }), O;
|
|
1628
1625
|
}
|
|
1629
1626
|
function ze(y, A, C) {
|
|
1630
|
-
let B =
|
|
1627
|
+
let B = Zn(y.endRe, C);
|
|
1631
1628
|
if (B) {
|
|
1632
1629
|
if (y["on:end"]) {
|
|
1633
1630
|
const K = new Ve(y);
|
|
@@ -1642,30 +1639,30 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1642
1639
|
if (y.endsWithParent)
|
|
1643
1640
|
return ze(y.parent, A, C);
|
|
1644
1641
|
}
|
|
1645
|
-
function mn(y) {
|
|
1646
|
-
return L.matcher.regexIndex === 0 ? (P += y[0], 1) : (Le = !0, 0);
|
|
1647
|
-
}
|
|
1648
1642
|
function yn(y) {
|
|
1643
|
+
return O.matcher.regexIndex === 0 ? (P += y[0], 1) : (Re = !0, 0);
|
|
1644
|
+
}
|
|
1645
|
+
function wn(y) {
|
|
1649
1646
|
const A = y[0], C = y.rule, B = new Ve(C), K = [C.__beforeBegin, C["on:begin"]];
|
|
1650
1647
|
for (const X of K)
|
|
1651
1648
|
if (X && (X(y, B), B.isMatchIgnored))
|
|
1652
|
-
return
|
|
1653
|
-
return C.skip ? P += A : (C.excludeBegin && (P += A), Q(), !C.returnBegin && !C.excludeBegin && (P = A)),
|
|
1649
|
+
return yn(A);
|
|
1650
|
+
return C.skip ? P += A : (C.excludeBegin && (P += A), Q(), !C.returnBegin && !C.excludeBegin && (P = A)), He(C, y), C.returnBegin ? 0 : A.length;
|
|
1654
1651
|
}
|
|
1655
|
-
function
|
|
1656
|
-
const A = y[0], C = N.substring(y.index), B = ze(
|
|
1652
|
+
function Nn(y) {
|
|
1653
|
+
const A = y[0], C = N.substring(y.index), B = ze(O, y, C);
|
|
1657
1654
|
if (!B)
|
|
1658
1655
|
return qe;
|
|
1659
|
-
const K =
|
|
1660
|
-
|
|
1656
|
+
const K = O;
|
|
1657
|
+
O.endScope && O.endScope._wrap ? (Q(), z.addKeyword(A, O.endScope._wrap)) : O.endScope && O.endScope._multi ? (Q(), ee(O.endScope, y)) : K.skip ? P += A : (K.returnEnd || K.excludeEnd || (P += A), Q(), K.excludeEnd && (P = A));
|
|
1661
1658
|
do
|
|
1662
|
-
|
|
1663
|
-
while (
|
|
1664
|
-
return B.starts &&
|
|
1659
|
+
O.scope && z.closeNode(), !O.skip && !O.subLanguage && (Ee += O.relevance), O = O.parent;
|
|
1660
|
+
while (O !== B.parent);
|
|
1661
|
+
return B.starts && He(B.starts, y), K.returnEnd ? 0 : A.length;
|
|
1665
1662
|
}
|
|
1666
|
-
function
|
|
1663
|
+
function Mn() {
|
|
1667
1664
|
const y = [];
|
|
1668
|
-
for (let A =
|
|
1665
|
+
for (let A = O; A !== ne; A = A.parent)
|
|
1669
1666
|
A.scope && y.unshift(A.scope);
|
|
1670
1667
|
y.forEach((A) => z.openNode(A));
|
|
1671
1668
|
}
|
|
@@ -1682,51 +1679,51 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1682
1679
|
return 1;
|
|
1683
1680
|
}
|
|
1684
1681
|
if (ve = A, A.type === "begin")
|
|
1685
|
-
return
|
|
1686
|
-
if (A.type === "illegal" && !
|
|
1687
|
-
const B = new Error('Illegal lexeme "' + C + '" for mode "' + (
|
|
1688
|
-
throw B.mode =
|
|
1682
|
+
return wn(A);
|
|
1683
|
+
if (A.type === "illegal" && !L) {
|
|
1684
|
+
const B = new Error('Illegal lexeme "' + C + '" for mode "' + (O.scope || "<unnamed>") + '"');
|
|
1685
|
+
throw B.mode = O, B;
|
|
1689
1686
|
} else if (A.type === "end") {
|
|
1690
|
-
const B =
|
|
1687
|
+
const B = Nn(A);
|
|
1691
1688
|
if (B !== qe)
|
|
1692
1689
|
return B;
|
|
1693
1690
|
}
|
|
1694
1691
|
if (A.type === "illegal" && C === "")
|
|
1695
1692
|
return 1;
|
|
1696
|
-
if (
|
|
1693
|
+
if (Se > 1e5 && Se > A.index * 3)
|
|
1697
1694
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
1698
1695
|
return P += C, C.length;
|
|
1699
1696
|
}
|
|
1700
1697
|
const ne = R(b);
|
|
1701
1698
|
if (!ne)
|
|
1702
1699
|
throw ie(t.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
1703
|
-
const
|
|
1704
|
-
let
|
|
1700
|
+
const An = St(ne);
|
|
1701
|
+
let De = "", O = k || An;
|
|
1705
1702
|
const Ke = {}, z = new i.__emitter(i);
|
|
1706
|
-
|
|
1707
|
-
let P = "", Ee = 0, re = 0,
|
|
1703
|
+
Mn();
|
|
1704
|
+
let P = "", Ee = 0, re = 0, Se = 0, Re = !1;
|
|
1708
1705
|
try {
|
|
1709
|
-
for (
|
|
1710
|
-
|
|
1711
|
-
const y =
|
|
1706
|
+
for (O.matcher.considerAll(); ; ) {
|
|
1707
|
+
Se++, Re ? Re = !1 : O.matcher.considerAll(), O.matcher.lastIndex = re;
|
|
1708
|
+
const y = O.matcher.exec(N);
|
|
1712
1709
|
if (!y)
|
|
1713
1710
|
break;
|
|
1714
1711
|
const A = N.substring(re, y.index), C = Ge(A, y);
|
|
1715
1712
|
re = y.index + C;
|
|
1716
1713
|
}
|
|
1717
|
-
return Ge(N.substring(re)), z.closeAllNodes(), z.finalize(),
|
|
1714
|
+
return Ge(N.substring(re)), z.closeAllNodes(), z.finalize(), De = z.toHTML(), {
|
|
1718
1715
|
language: b,
|
|
1719
|
-
value:
|
|
1716
|
+
value: De,
|
|
1720
1717
|
relevance: Ee,
|
|
1721
1718
|
illegal: !1,
|
|
1722
1719
|
_emitter: z,
|
|
1723
|
-
_top:
|
|
1720
|
+
_top: O
|
|
1724
1721
|
};
|
|
1725
1722
|
} catch (y) {
|
|
1726
1723
|
if (y.message && y.message.includes("Illegal"))
|
|
1727
1724
|
return {
|
|
1728
1725
|
language: b,
|
|
1729
|
-
value:
|
|
1726
|
+
value: Le(N),
|
|
1730
1727
|
illegal: !0,
|
|
1731
1728
|
relevance: 0,
|
|
1732
1729
|
_illegalBy: {
|
|
@@ -1734,26 +1731,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1734
1731
|
index: re,
|
|
1735
1732
|
context: N.slice(re - 100, re + 100),
|
|
1736
1733
|
mode: y.mode,
|
|
1737
|
-
resultSoFar:
|
|
1734
|
+
resultSoFar: De
|
|
1738
1735
|
},
|
|
1739
1736
|
_emitter: z
|
|
1740
1737
|
};
|
|
1741
1738
|
if (g)
|
|
1742
1739
|
return {
|
|
1743
1740
|
language: b,
|
|
1744
|
-
value:
|
|
1741
|
+
value: Le(N),
|
|
1745
1742
|
illegal: !1,
|
|
1746
1743
|
relevance: 0,
|
|
1747
1744
|
errorRaised: y,
|
|
1748
1745
|
_emitter: z,
|
|
1749
|
-
_top:
|
|
1746
|
+
_top: O
|
|
1750
1747
|
};
|
|
1751
1748
|
throw y;
|
|
1752
1749
|
}
|
|
1753
1750
|
}
|
|
1754
1751
|
function f(b) {
|
|
1755
1752
|
const N = {
|
|
1756
|
-
value:
|
|
1753
|
+
value: Le(b),
|
|
1757
1754
|
illegal: !1,
|
|
1758
1755
|
relevance: 0,
|
|
1759
1756
|
_top: r,
|
|
@@ -1763,10 +1760,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1763
1760
|
}
|
|
1764
1761
|
function h(b, N) {
|
|
1765
1762
|
N = N || i.languages || Object.keys(e);
|
|
1766
|
-
const
|
|
1763
|
+
const L = f(b), k = N.filter(R).filter(U).map(
|
|
1767
1764
|
(Q) => c(Q, b, !1)
|
|
1768
1765
|
);
|
|
1769
|
-
k.unshift(
|
|
1766
|
+
k.unshift(L);
|
|
1770
1767
|
const x = k.sort((Q, ee) => {
|
|
1771
1768
|
if (Q.relevance !== ee.relevance)
|
|
1772
1769
|
return ee.relevance - Q.relevance;
|
|
@@ -1780,26 +1777,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1780
1777
|
}), [W, Y] = x, be = W;
|
|
1781
1778
|
return be.secondBest = Y, be;
|
|
1782
1779
|
}
|
|
1783
|
-
function d(b, N,
|
|
1784
|
-
const k = N && o[N] ||
|
|
1780
|
+
function d(b, N, L) {
|
|
1781
|
+
const k = N && o[N] || L;
|
|
1785
1782
|
b.classList.add("hljs"), b.classList.add(`language-${k}`);
|
|
1786
1783
|
}
|
|
1787
|
-
function
|
|
1784
|
+
function _(b) {
|
|
1788
1785
|
let N = null;
|
|
1789
|
-
const
|
|
1790
|
-
if (s(
|
|
1786
|
+
const L = a(b);
|
|
1787
|
+
if (s(L))
|
|
1791
1788
|
return;
|
|
1792
1789
|
if (G(
|
|
1793
1790
|
"before:highlightElement",
|
|
1794
|
-
{ el: b, language:
|
|
1791
|
+
{ el: b, language: L }
|
|
1795
1792
|
), b.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(b)), i.throwUnescapedHTML))
|
|
1796
1793
|
throw new Lt(
|
|
1797
1794
|
"One of your code blocks includes unescaped HTML.",
|
|
1798
1795
|
b.innerHTML
|
|
1799
1796
|
);
|
|
1800
1797
|
N = b;
|
|
1801
|
-
const k = N.textContent, x =
|
|
1802
|
-
b.innerHTML = x.value, d(b,
|
|
1798
|
+
const k = N.textContent, x = L ? l(k, { language: L, ignoreIllegals: !0 }) : h(k);
|
|
1799
|
+
b.innerHTML = x.value, d(b, L, x.language), b.result = {
|
|
1803
1800
|
language: x.language,
|
|
1804
1801
|
// TODO: remove with version 11.0
|
|
1805
1802
|
re: x.relevance,
|
|
@@ -1809,7 +1806,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1809
1806
|
relevance: x.secondBest.relevance
|
|
1810
1807
|
}), G("after:highlightElement", { el: b, result: x, text: k });
|
|
1811
1808
|
}
|
|
1812
|
-
function
|
|
1809
|
+
function p(b) {
|
|
1813
1810
|
i = Je(i, b);
|
|
1814
1811
|
}
|
|
1815
1812
|
const v = () => {
|
|
@@ -1824,24 +1821,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1824
1821
|
w = !0;
|
|
1825
1822
|
return;
|
|
1826
1823
|
}
|
|
1827
|
-
document.querySelectorAll(i.cssSelector).forEach(
|
|
1824
|
+
document.querySelectorAll(i.cssSelector).forEach(_);
|
|
1828
1825
|
}
|
|
1829
1826
|
function T() {
|
|
1830
1827
|
w && m();
|
|
1831
1828
|
}
|
|
1832
1829
|
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", T, !1);
|
|
1833
1830
|
function D(b, N) {
|
|
1834
|
-
let
|
|
1831
|
+
let L = null;
|
|
1835
1832
|
try {
|
|
1836
|
-
|
|
1833
|
+
L = N(n);
|
|
1837
1834
|
} catch (k) {
|
|
1838
1835
|
if (ie("Language definition for '{}' could not be registered.".replace("{}", b)), g)
|
|
1839
1836
|
ie(k);
|
|
1840
1837
|
else
|
|
1841
1838
|
throw k;
|
|
1842
|
-
|
|
1839
|
+
L = r;
|
|
1843
1840
|
}
|
|
1844
|
-
|
|
1841
|
+
L.name || (L.name = b), e[b] = L, L.rawDefinition = N.bind(null, n), L.aliases && F(L.aliases, { languageName: b });
|
|
1845
1842
|
}
|
|
1846
1843
|
function M(b) {
|
|
1847
1844
|
delete e[b];
|
|
@@ -1854,9 +1851,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1854
1851
|
function R(b) {
|
|
1855
1852
|
return b = (b || "").toLowerCase(), e[b] || e[o[b]];
|
|
1856
1853
|
}
|
|
1857
|
-
function
|
|
1858
|
-
typeof b == "string" && (b = [b]), b.forEach((
|
|
1859
|
-
o[
|
|
1854
|
+
function F(b, { languageName: N }) {
|
|
1855
|
+
typeof b == "string" && (b = [b]), b.forEach((L) => {
|
|
1856
|
+
o[L.toLowerCase()] = N;
|
|
1860
1857
|
});
|
|
1861
1858
|
}
|
|
1862
1859
|
function U(b) {
|
|
@@ -1874,56 +1871,56 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), O ===
|
|
|
1874
1871
|
);
|
|
1875
1872
|
});
|
|
1876
1873
|
}
|
|
1877
|
-
function
|
|
1874
|
+
function H(b) {
|
|
1878
1875
|
$(b), u.push(b);
|
|
1879
1876
|
}
|
|
1880
1877
|
function G(b, N) {
|
|
1881
|
-
const
|
|
1878
|
+
const L = b;
|
|
1882
1879
|
u.forEach(function(k) {
|
|
1883
|
-
k[
|
|
1880
|
+
k[L] && k[L](N);
|
|
1884
1881
|
});
|
|
1885
1882
|
}
|
|
1886
|
-
function
|
|
1887
|
-
return ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), ae("10.7.0", "Please use highlightElement now."),
|
|
1883
|
+
function pe(b) {
|
|
1884
|
+
return ae("10.7.0", "highlightBlock will be removed entirely in v12.0"), ae("10.7.0", "Please use highlightElement now."), _(b);
|
|
1888
1885
|
}
|
|
1889
1886
|
Object.assign(n, {
|
|
1890
1887
|
highlight: l,
|
|
1891
1888
|
highlightAuto: h,
|
|
1892
1889
|
highlightAll: m,
|
|
1893
|
-
highlightElement:
|
|
1890
|
+
highlightElement: _,
|
|
1894
1891
|
// TODO: Remove with v12 API
|
|
1895
|
-
highlightBlock:
|
|
1896
|
-
configure:
|
|
1892
|
+
highlightBlock: pe,
|
|
1893
|
+
configure: p,
|
|
1897
1894
|
initHighlighting: v,
|
|
1898
1895
|
initHighlightingOnLoad: E,
|
|
1899
1896
|
registerLanguage: D,
|
|
1900
1897
|
unregisterLanguage: M,
|
|
1901
1898
|
listLanguages: I,
|
|
1902
1899
|
getLanguage: R,
|
|
1903
|
-
registerAliases:
|
|
1900
|
+
registerAliases: F,
|
|
1904
1901
|
autoDetection: U,
|
|
1905
1902
|
inherit: Je,
|
|
1906
|
-
addPlugin:
|
|
1903
|
+
addPlugin: H
|
|
1907
1904
|
}), n.debugMode = function() {
|
|
1908
1905
|
g = !1;
|
|
1909
1906
|
}, n.safeMode = function() {
|
|
1910
1907
|
g = !0;
|
|
1911
|
-
}, n.versionString =
|
|
1908
|
+
}, n.versionString = Ot, n.regex = {
|
|
1912
1909
|
concat: se,
|
|
1913
|
-
lookahead:
|
|
1910
|
+
lookahead: an,
|
|
1914
1911
|
either: Pe,
|
|
1915
|
-
optional:
|
|
1916
|
-
anyNumberOfTimes:
|
|
1912
|
+
optional: Qn,
|
|
1913
|
+
anyNumberOfTimes: Wn
|
|
1917
1914
|
};
|
|
1918
|
-
for (const b in
|
|
1919
|
-
typeof
|
|
1920
|
-
return Object.assign(n,
|
|
1915
|
+
for (const b in me)
|
|
1916
|
+
typeof me[b] == "object" && Be.exports(me[b]);
|
|
1917
|
+
return Object.assign(n, me), n;
|
|
1921
1918
|
};
|
|
1922
|
-
var he =
|
|
1919
|
+
var he = It({}), kt = he;
|
|
1923
1920
|
he.HighlightJS = he;
|
|
1924
1921
|
he.default = he;
|
|
1925
|
-
const Z =
|
|
1926
|
-
function
|
|
1922
|
+
const Z = /* @__PURE__ */ Fn(kt);
|
|
1923
|
+
function Bt(n) {
|
|
1927
1924
|
const e = n.regex, o = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, g = {
|
|
1928
1925
|
className: "symbol",
|
|
1929
1926
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
@@ -2139,7 +2136,7 @@ function kt(n) {
|
|
|
2139
2136
|
]
|
|
2140
2137
|
};
|
|
2141
2138
|
}
|
|
2142
|
-
const en = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
2139
|
+
const en = "[A-Za-z$_][0-9A-Za-z$_]*", $t = [
|
|
2143
2140
|
"as",
|
|
2144
2141
|
// for exports
|
|
2145
2142
|
"in",
|
|
@@ -2182,14 +2179,14 @@ const en = "[A-Za-z$_][0-9A-Za-z$_]*", Bt = [
|
|
|
2182
2179
|
"from",
|
|
2183
2180
|
"export",
|
|
2184
2181
|
"extends"
|
|
2185
|
-
],
|
|
2182
|
+
], Ut = [
|
|
2186
2183
|
"true",
|
|
2187
2184
|
"false",
|
|
2188
2185
|
"null",
|
|
2189
2186
|
"undefined",
|
|
2190
2187
|
"NaN",
|
|
2191
2188
|
"Infinity"
|
|
2192
|
-
],
|
|
2189
|
+
], _n = [
|
|
2193
2190
|
// Fundamental objects
|
|
2194
2191
|
"Object",
|
|
2195
2192
|
"Function",
|
|
@@ -2248,7 +2245,7 @@ const en = "[A-Za-z$_][0-9A-Za-z$_]*", Bt = [
|
|
|
2248
2245
|
"SyntaxError",
|
|
2249
2246
|
"TypeError",
|
|
2250
2247
|
"URIError"
|
|
2251
|
-
],
|
|
2248
|
+
], bn = [
|
|
2252
2249
|
"setInterval",
|
|
2253
2250
|
"setTimeout",
|
|
2254
2251
|
"clearInterval",
|
|
@@ -2266,7 +2263,7 @@ const en = "[A-Za-z$_][0-9A-Za-z$_]*", Bt = [
|
|
|
2266
2263
|
"encodeURIComponent",
|
|
2267
2264
|
"escape",
|
|
2268
2265
|
"unescape"
|
|
2269
|
-
],
|
|
2266
|
+
], Pt = [
|
|
2270
2267
|
"arguments",
|
|
2271
2268
|
"this",
|
|
2272
2269
|
"super",
|
|
@@ -2277,15 +2274,15 @@ const en = "[A-Za-z$_][0-9A-Za-z$_]*", Bt = [
|
|
|
2277
2274
|
"module",
|
|
2278
2275
|
"global"
|
|
2279
2276
|
// Node.js
|
|
2280
|
-
],
|
|
2277
|
+
], xt = [].concat(
|
|
2278
|
+
bn,
|
|
2281
2279
|
_n,
|
|
2282
|
-
dn,
|
|
2283
2280
|
pn
|
|
2284
2281
|
);
|
|
2285
|
-
function
|
|
2286
|
-
const e = n.regex, o = (N, { after:
|
|
2282
|
+
function Ft(n) {
|
|
2283
|
+
const e = n.regex, o = (N, { after: L }) => {
|
|
2287
2284
|
const k = "</" + N[0].slice(1);
|
|
2288
|
-
return N.input.indexOf(k,
|
|
2285
|
+
return N.input.indexOf(k, L) !== -1;
|
|
2289
2286
|
}, u = en, g = {
|
|
2290
2287
|
begin: "<>",
|
|
2291
2288
|
end: "</>"
|
|
@@ -2296,7 +2293,7 @@ function xt(n) {
|
|
|
2296
2293
|
* @param {RegExpMatchArray} match
|
|
2297
2294
|
* @param {CallbackResponse} response
|
|
2298
2295
|
*/
|
|
2299
|
-
isTrulyOpeningTag: (N,
|
|
2296
|
+
isTrulyOpeningTag: (N, L) => {
|
|
2300
2297
|
const k = N[0].length + N.index, x = N.input[k];
|
|
2301
2298
|
if (
|
|
2302
2299
|
// HTML should not include another raw `<` inside a tag
|
|
@@ -2306,27 +2303,27 @@ function xt(n) {
|
|
|
2306
2303
|
// `<T, A extends keyof T, V>`
|
|
2307
2304
|
x === ","
|
|
2308
2305
|
) {
|
|
2309
|
-
|
|
2306
|
+
L.ignoreMatch();
|
|
2310
2307
|
return;
|
|
2311
2308
|
}
|
|
2312
|
-
x === ">" && (o(N, { after: k }) ||
|
|
2309
|
+
x === ">" && (o(N, { after: k }) || L.ignoreMatch());
|
|
2313
2310
|
let W;
|
|
2314
2311
|
const Y = N.input.substring(k);
|
|
2315
2312
|
if (W = Y.match(/^\s*=/)) {
|
|
2316
|
-
|
|
2313
|
+
L.ignoreMatch();
|
|
2317
2314
|
return;
|
|
2318
2315
|
}
|
|
2319
2316
|
if ((W = Y.match(/^\s+extends\s+/)) && W.index === 0) {
|
|
2320
|
-
|
|
2317
|
+
L.ignoreMatch();
|
|
2321
2318
|
return;
|
|
2322
2319
|
}
|
|
2323
2320
|
}
|
|
2324
2321
|
}, i = {
|
|
2325
2322
|
$pattern: en,
|
|
2326
|
-
keyword:
|
|
2327
|
-
literal:
|
|
2328
|
-
built_in:
|
|
2329
|
-
"variable.language":
|
|
2323
|
+
keyword: $t,
|
|
2324
|
+
literal: Ut,
|
|
2325
|
+
built_in: xt,
|
|
2326
|
+
"variable.language": Pt
|
|
2330
2327
|
}, s = "[0-9](_?[0-9])*", a = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
|
|
2331
2328
|
className: "number",
|
|
2332
2329
|
variants: [
|
|
@@ -2375,7 +2372,7 @@ function xt(n) {
|
|
|
2375
2372
|
],
|
|
2376
2373
|
subLanguage: "css"
|
|
2377
2374
|
}
|
|
2378
|
-
},
|
|
2375
|
+
}, _ = {
|
|
2379
2376
|
className: "string",
|
|
2380
2377
|
begin: "`",
|
|
2381
2378
|
end: "`",
|
|
@@ -2433,7 +2430,7 @@ function xt(n) {
|
|
|
2433
2430
|
n.QUOTE_STRING_MODE,
|
|
2434
2431
|
h,
|
|
2435
2432
|
d,
|
|
2436
|
-
|
|
2433
|
+
_,
|
|
2437
2434
|
// Skip numbers when they are part of a variable name
|
|
2438
2435
|
{ match: /\$\d+/ },
|
|
2439
2436
|
c
|
|
@@ -2520,7 +2517,7 @@ function xt(n) {
|
|
|
2520
2517
|
keywords: {
|
|
2521
2518
|
_: [
|
|
2522
2519
|
// se we still get relevance credit for JS library classes
|
|
2523
|
-
...
|
|
2520
|
+
..._n,
|
|
2524
2521
|
...pn
|
|
2525
2522
|
]
|
|
2526
2523
|
}
|
|
@@ -2554,7 +2551,7 @@ function xt(n) {
|
|
|
2554
2551
|
label: "func.def",
|
|
2555
2552
|
contains: [T],
|
|
2556
2553
|
illegal: /%/
|
|
2557
|
-
},
|
|
2554
|
+
}, F = {
|
|
2558
2555
|
relevance: 0,
|
|
2559
2556
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
2560
2557
|
className: "variable.constant"
|
|
@@ -2566,7 +2563,7 @@ function xt(n) {
|
|
|
2566
2563
|
match: e.concat(
|
|
2567
2564
|
/\b/,
|
|
2568
2565
|
U([
|
|
2569
|
-
...
|
|
2566
|
+
...bn,
|
|
2570
2567
|
"super",
|
|
2571
2568
|
"import"
|
|
2572
2569
|
]),
|
|
@@ -2575,7 +2572,7 @@ function xt(n) {
|
|
|
2575
2572
|
),
|
|
2576
2573
|
className: "title.function",
|
|
2577
2574
|
relevance: 0
|
|
2578
|
-
},
|
|
2575
|
+
}, H = {
|
|
2579
2576
|
begin: e.concat(/\./, e.lookahead(
|
|
2580
2577
|
e.concat(u, /(?![0-9A-Za-z$_(])/)
|
|
2581
2578
|
)),
|
|
@@ -2602,7 +2599,7 @@ function xt(n) {
|
|
|
2602
2599
|
},
|
|
2603
2600
|
T
|
|
2604
2601
|
]
|
|
2605
|
-
},
|
|
2602
|
+
}, pe = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + n.UNDERSCORE_IDENT_RE + ")\\s*=>", b = {
|
|
2606
2603
|
match: [
|
|
2607
2604
|
/const|var|let/,
|
|
2608
2605
|
/\s+/,
|
|
@@ -2611,7 +2608,7 @@ function xt(n) {
|
|
|
2611
2608
|
/=\s*/,
|
|
2612
2609
|
/(async\s*)?/,
|
|
2613
2610
|
// async is optional
|
|
2614
|
-
e.lookahead(
|
|
2611
|
+
e.lookahead(pe)
|
|
2615
2612
|
],
|
|
2616
2613
|
keywords: "async",
|
|
2617
2614
|
className: {
|
|
@@ -2640,7 +2637,7 @@ function xt(n) {
|
|
|
2640
2637
|
n.QUOTE_STRING_MODE,
|
|
2641
2638
|
h,
|
|
2642
2639
|
d,
|
|
2643
|
-
|
|
2640
|
+
_,
|
|
2644
2641
|
v,
|
|
2645
2642
|
// Skip numbers when they are part of a variable name
|
|
2646
2643
|
{ match: /\$\d+/ },
|
|
@@ -2665,7 +2662,7 @@ function xt(n) {
|
|
|
2665
2662
|
// we have to count the parens to make sure we actually have the
|
|
2666
2663
|
// correct bounding ( ) before the =>. There could be any number of
|
|
2667
2664
|
// sub-expressions inside also surrounded by parens.
|
|
2668
|
-
begin:
|
|
2665
|
+
begin: pe,
|
|
2669
2666
|
returnBegin: !0,
|
|
2670
2667
|
end: "\\s*=>",
|
|
2671
2668
|
contains: [
|
|
@@ -2751,7 +2748,7 @@ function xt(n) {
|
|
|
2751
2748
|
match: /\.\.\./,
|
|
2752
2749
|
relevance: 0
|
|
2753
2750
|
},
|
|
2754
|
-
|
|
2751
|
+
H,
|
|
2755
2752
|
// hack: prevents detection of keywords in some circumstances
|
|
2756
2753
|
// .keyword()
|
|
2757
2754
|
// $keyword = x
|
|
@@ -2765,7 +2762,7 @@ function xt(n) {
|
|
|
2765
2762
|
contains: [T]
|
|
2766
2763
|
},
|
|
2767
2764
|
$,
|
|
2768
|
-
|
|
2765
|
+
F,
|
|
2769
2766
|
D,
|
|
2770
2767
|
G,
|
|
2771
2768
|
{
|
|
@@ -2809,7 +2806,7 @@ function Ht(n) {
|
|
|
2809
2806
|
illegal: "\\S"
|
|
2810
2807
|
};
|
|
2811
2808
|
}
|
|
2812
|
-
function
|
|
2809
|
+
function zt(n) {
|
|
2813
2810
|
const e = "true false yes no null", o = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
|
|
2814
2811
|
className: "attr",
|
|
2815
2812
|
variants: [
|
|
@@ -2886,7 +2883,7 @@ function Ft(n) {
|
|
|
2886
2883
|
contains: [f],
|
|
2887
2884
|
illegal: "\\n",
|
|
2888
2885
|
relevance: 0
|
|
2889
|
-
},
|
|
2886
|
+
}, _ = [
|
|
2890
2887
|
u,
|
|
2891
2888
|
{
|
|
2892
2889
|
className: "meta",
|
|
@@ -2965,15 +2962,15 @@ function Ft(n) {
|
|
|
2965
2962
|
h,
|
|
2966
2963
|
d,
|
|
2967
2964
|
t
|
|
2968
|
-
],
|
|
2969
|
-
return
|
|
2965
|
+
], p = [..._];
|
|
2966
|
+
return p.pop(), p.push(r), f.contains = p, {
|
|
2970
2967
|
name: "YAML",
|
|
2971
2968
|
case_insensitive: !0,
|
|
2972
2969
|
aliases: ["yml"],
|
|
2973
|
-
contains:
|
|
2970
|
+
contains: _
|
|
2974
2971
|
};
|
|
2975
2972
|
}
|
|
2976
|
-
function
|
|
2973
|
+
function Gt(n) {
|
|
2977
2974
|
return {
|
|
2978
2975
|
name: "Plain text",
|
|
2979
2976
|
aliases: [
|
|
@@ -2983,7 +2980,7 @@ function zt(n) {
|
|
|
2983
2980
|
disableAutodetect: !0
|
|
2984
2981
|
};
|
|
2985
2982
|
}
|
|
2986
|
-
function
|
|
2983
|
+
function Kt(n) {
|
|
2987
2984
|
const e = n.regex, o = /[\p{XID_Start}_]\p{XID_Continue}*/u, u = [
|
|
2988
2985
|
"and",
|
|
2989
2986
|
"as",
|
|
@@ -3209,7 +3206,7 @@ function Gt(n) {
|
|
|
3209
3206
|
n.APOS_STRING_MODE,
|
|
3210
3207
|
n.QUOTE_STRING_MODE
|
|
3211
3208
|
]
|
|
3212
|
-
}, f = "[0-9](_?[0-9])*", h = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`,
|
|
3209
|
+
}, f = "[0-9](_?[0-9])*", h = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`, _ = {
|
|
3213
3210
|
className: "number",
|
|
3214
3211
|
relevance: 0,
|
|
3215
3212
|
variants: [
|
|
@@ -3253,7 +3250,7 @@ function Gt(n) {
|
|
|
3253
3250
|
begin: `\\b(${f})[jJ](?=${d})`
|
|
3254
3251
|
}
|
|
3255
3252
|
]
|
|
3256
|
-
},
|
|
3253
|
+
}, p = {
|
|
3257
3254
|
className: "comment",
|
|
3258
3255
|
begin: e.lookahead(/# type:/),
|
|
3259
3256
|
end: /$/,
|
|
@@ -3288,7 +3285,7 @@ function Gt(n) {
|
|
|
3288
3285
|
contains: [
|
|
3289
3286
|
"self",
|
|
3290
3287
|
s,
|
|
3291
|
-
|
|
3288
|
+
_,
|
|
3292
3289
|
c,
|
|
3293
3290
|
n.HASH_COMMENT_MODE
|
|
3294
3291
|
]
|
|
@@ -3297,7 +3294,7 @@ function Gt(n) {
|
|
|
3297
3294
|
};
|
|
3298
3295
|
return a.contains = [
|
|
3299
3296
|
c,
|
|
3300
|
-
|
|
3297
|
+
_,
|
|
3301
3298
|
s
|
|
3302
3299
|
], {
|
|
3303
3300
|
name: "Python",
|
|
@@ -3311,7 +3308,7 @@ function Gt(n) {
|
|
|
3311
3308
|
illegal: /(<\/|->|\?)|=>/,
|
|
3312
3309
|
contains: [
|
|
3313
3310
|
s,
|
|
3314
|
-
|
|
3311
|
+
_,
|
|
3315
3312
|
{
|
|
3316
3313
|
// very common convention
|
|
3317
3314
|
begin: /\bself\b/
|
|
@@ -3323,7 +3320,7 @@ function Gt(n) {
|
|
|
3323
3320
|
relevance: 0
|
|
3324
3321
|
},
|
|
3325
3322
|
c,
|
|
3326
|
-
|
|
3323
|
+
p,
|
|
3327
3324
|
n.HASH_COMMENT_MODE,
|
|
3328
3325
|
{
|
|
3329
3326
|
match: [
|
|
@@ -3369,7 +3366,7 @@ function Gt(n) {
|
|
|
3369
3366
|
begin: /^[\t ]*@/,
|
|
3370
3367
|
end: /(?=#)|$/,
|
|
3371
3368
|
contains: [
|
|
3372
|
-
|
|
3369
|
+
_,
|
|
3373
3370
|
v,
|
|
3374
3371
|
c
|
|
3375
3372
|
]
|
|
@@ -3377,22 +3374,22 @@ function Gt(n) {
|
|
|
3377
3374
|
]
|
|
3378
3375
|
};
|
|
3379
3376
|
}
|
|
3380
|
-
var oe = "[0-9](_*[0-9])*",
|
|
3377
|
+
var oe = "[0-9](_*[0-9])*", ye = `\\.(${oe})`, we = "[0-9a-fA-F](_*[0-9a-fA-F])*", nn = {
|
|
3381
3378
|
className: "number",
|
|
3382
3379
|
variants: [
|
|
3383
3380
|
// DecimalFloatingPointLiteral
|
|
3384
3381
|
// including ExponentPart
|
|
3385
|
-
{ begin: `(\\b(${oe})((${
|
|
3382
|
+
{ begin: `(\\b(${oe})((${ye})|\\.)?|(${ye}))[eE][+-]?(${oe})[fFdD]?\\b` },
|
|
3386
3383
|
// excluding ExponentPart
|
|
3387
|
-
{ begin: `\\b(${oe})((${
|
|
3388
|
-
{ begin: `(${
|
|
3384
|
+
{ begin: `\\b(${oe})((${ye})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
3385
|
+
{ begin: `(${ye})[fFdD]?\\b` },
|
|
3389
3386
|
{ begin: `\\b(${oe})[fFdD]\\b` },
|
|
3390
3387
|
// HexadecimalFloatingPointLiteral
|
|
3391
|
-
{ begin: `\\b0[xX]((${
|
|
3388
|
+
{ begin: `\\b0[xX]((${we})\\.?|(${we})?\\.(${we}))[pP][+-]?(${oe})[fFdD]?\\b` },
|
|
3392
3389
|
// DecimalIntegerLiteral
|
|
3393
3390
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
3394
3391
|
// HexIntegerLiteral
|
|
3395
|
-
{ begin: `\\b0[xX](${
|
|
3392
|
+
{ begin: `\\b0[xX](${we})[lL]?\\b` },
|
|
3396
3393
|
// OctalIntegerLiteral
|
|
3397
3394
|
{ begin: "\\b0(_*[0-7])*[lL]?\\b" },
|
|
3398
3395
|
// BinaryIntegerLiteral
|
|
@@ -3400,11 +3397,11 @@ var oe = "[0-9](_*[0-9])*", we = `\\.(${oe})`, Ne = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
3400
3397
|
],
|
|
3401
3398
|
relevance: 0
|
|
3402
3399
|
};
|
|
3403
|
-
function
|
|
3404
|
-
return o === -1 ? "" : n.replace(e, (u) =>
|
|
3400
|
+
function vn(n, e, o) {
|
|
3401
|
+
return o === -1 ? "" : n.replace(e, (u) => vn(n, e, o - 1));
|
|
3405
3402
|
}
|
|
3406
|
-
function
|
|
3407
|
-
const e = n.regex, o = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = o +
|
|
3403
|
+
function Wt(n) {
|
|
3404
|
+
const e = n.regex, o = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = o + vn("(?:<" + o + "~~~(?:\\s*,\\s*" + o + "~~~)*>)?", /~~~/g, 2), s = {
|
|
3408
3405
|
keyword: [
|
|
3409
3406
|
"synchronized",
|
|
3410
3407
|
"abstract",
|
|
@@ -3612,7 +3609,7 @@ function Kt(n) {
|
|
|
3612
3609
|
]
|
|
3613
3610
|
};
|
|
3614
3611
|
}
|
|
3615
|
-
function
|
|
3612
|
+
function Qt(n) {
|
|
3616
3613
|
const e = n.regex, o = {}, u = {
|
|
3617
3614
|
begin: /\$\{/,
|
|
3618
3615
|
end: /\}/,
|
|
@@ -3716,7 +3713,7 @@ function Wt(n) {
|
|
|
3716
3713
|
], d = [
|
|
3717
3714
|
"true",
|
|
3718
3715
|
"false"
|
|
3719
|
-
],
|
|
3716
|
+
], _ = { match: /(\/[a-z._-]+)+/ }, p = [
|
|
3720
3717
|
"break",
|
|
3721
3718
|
"cd",
|
|
3722
3719
|
"continue",
|
|
@@ -3939,7 +3936,7 @@ function Wt(n) {
|
|
|
3939
3936
|
keyword: h,
|
|
3940
3937
|
literal: d,
|
|
3941
3938
|
built_in: [
|
|
3942
|
-
...
|
|
3939
|
+
...p,
|
|
3943
3940
|
...v,
|
|
3944
3941
|
// Shell modifiers
|
|
3945
3942
|
"set",
|
|
@@ -3957,7 +3954,7 @@ function Wt(n) {
|
|
|
3957
3954
|
a,
|
|
3958
3955
|
n.HASH_COMMENT_MODE,
|
|
3959
3956
|
t,
|
|
3960
|
-
|
|
3957
|
+
_,
|
|
3961
3958
|
r,
|
|
3962
3959
|
i,
|
|
3963
3960
|
s,
|
|
@@ -3965,7 +3962,7 @@ function Wt(n) {
|
|
|
3965
3962
|
]
|
|
3966
3963
|
};
|
|
3967
3964
|
}
|
|
3968
|
-
function
|
|
3965
|
+
function Vt(n) {
|
|
3969
3966
|
const e = n.regex, o = n.COMMENT("--", "$"), u = {
|
|
3970
3967
|
className: "string",
|
|
3971
3968
|
variants: [
|
|
@@ -4517,10 +4514,10 @@ function Qt(n) {
|
|
|
4517
4514
|
], h = l, d = [
|
|
4518
4515
|
...a,
|
|
4519
4516
|
...s
|
|
4520
|
-
].filter((w) => !l.includes(w)),
|
|
4517
|
+
].filter((w) => !l.includes(w)), _ = {
|
|
4521
4518
|
className: "variable",
|
|
4522
4519
|
begin: /@[a-z0-9]+/
|
|
4523
|
-
},
|
|
4520
|
+
}, p = {
|
|
4524
4521
|
className: "operator",
|
|
4525
4522
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
4526
4523
|
relevance: 0
|
|
@@ -4564,43 +4561,49 @@ function Qt(n) {
|
|
|
4564
4561
|
begin: e.either(...r)
|
|
4565
4562
|
},
|
|
4566
4563
|
v,
|
|
4567
|
-
|
|
4564
|
+
_,
|
|
4568
4565
|
u,
|
|
4569
4566
|
g,
|
|
4570
4567
|
n.C_NUMBER_MODE,
|
|
4571
4568
|
n.C_BLOCK_COMMENT_MODE,
|
|
4572
4569
|
o,
|
|
4573
|
-
|
|
4570
|
+
p
|
|
4574
4571
|
]
|
|
4575
4572
|
};
|
|
4576
4573
|
}
|
|
4577
|
-
Z.registerLanguage("xml",
|
|
4578
|
-
Z.registerLanguage("javascript",
|
|
4574
|
+
Z.registerLanguage("xml", Bt);
|
|
4575
|
+
Z.registerLanguage("javascript", Ft);
|
|
4579
4576
|
Z.registerLanguage("json", Ht);
|
|
4580
|
-
Z.registerLanguage("yaml",
|
|
4581
|
-
Z.registerLanguage("plaintext",
|
|
4582
|
-
Z.registerLanguage("python",
|
|
4583
|
-
Z.registerLanguage("java",
|
|
4584
|
-
Z.registerLanguage("bash",
|
|
4585
|
-
Z.registerLanguage("sql",
|
|
4577
|
+
Z.registerLanguage("yaml", zt);
|
|
4578
|
+
Z.registerLanguage("plaintext", Gt);
|
|
4579
|
+
Z.registerLanguage("python", Kt);
|
|
4580
|
+
Z.registerLanguage("java", Wt);
|
|
4581
|
+
Z.registerLanguage("bash", Qt);
|
|
4582
|
+
Z.registerLanguage("sql", Vt);
|
|
4586
4583
|
var S = /* @__PURE__ */ ((n) => (n.EQUAL = "equal", n.DELETE = "removed", n.ADD = "added", n.EMPTY = "empty", n))(S || {});
|
|
4587
|
-
const j = "<code-diff-modified>", J = "</code-diff-modified>",
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4584
|
+
const j = "<code-diff-modified>", J = "</code-diff-modified>", Zt = j.replace("<", "<").replace(">", ">"), Yt = J.replace("<", "<").replace(">", ">");
|
|
4585
|
+
function le(n) {
|
|
4586
|
+
return n === void 0 ? S.EQUAL : n.added ? S.ADD : n.removed ? S.DELETE : S.EQUAL;
|
|
4587
|
+
}
|
|
4588
|
+
function Ae(n, e, o = "word") {
|
|
4589
|
+
return typeof n == "undefined" ? e : typeof e == "undefined" ? n : (o === "char" ? kn : $n)(n, e).filter((g) => le(g) !== S.DELETE).map(
|
|
4590
|
+
(g) => le(g) === S.ADD ? `${j}${g.value}${J}` : g.value
|
|
4591
|
+
).join("");
|
|
4592
|
+
}
|
|
4593
|
+
function En(n, e) {
|
|
4594
|
+
const o = new Oe.diff_match_patch(), u = o.diff_linesToChars_(n, e), g = u.chars1, t = u.chars2, r = u.lineArray, i = o.diff_main(g, t, !1);
|
|
4592
4595
|
return o.diff_charsToLines_(i, r), i.map((s) => {
|
|
4593
4596
|
const [a, l] = s;
|
|
4594
4597
|
return {
|
|
4595
4598
|
count: l.trim().split(`
|
|
4596
4599
|
`).length,
|
|
4597
4600
|
value: l,
|
|
4598
|
-
removed: a ===
|
|
4599
|
-
added: a ===
|
|
4601
|
+
removed: a === Oe.DIFF_DELETE,
|
|
4602
|
+
added: a === Oe.DIFF_INSERT
|
|
4600
4603
|
};
|
|
4601
4604
|
});
|
|
4602
4605
|
}
|
|
4603
|
-
|
|
4606
|
+
function V(n, e) {
|
|
4604
4607
|
if (!e.match(new RegExp(`(${j}|${J})`, "g")))
|
|
4605
4608
|
return Z.highlight(e, { language: n }).value;
|
|
4606
4609
|
let u = e;
|
|
@@ -4629,9 +4632,9 @@ const V = (n, e) => {
|
|
|
4629
4632
|
}
|
|
4630
4633
|
});
|
|
4631
4634
|
};
|
|
4632
|
-
return i(t), t.innerHTML.replace(new RegExp(
|
|
4633
|
-
}
|
|
4634
|
-
function
|
|
4635
|
+
return i(t), t.innerHTML.replace(new RegExp(Zt, "g"), '<span class="x">').replace(new RegExp(Yt, "g"), "</span>");
|
|
4636
|
+
}
|
|
4637
|
+
function mn(n) {
|
|
4635
4638
|
const e = (g, t) => (g.match(new RegExp(t, "g")) || []).length;
|
|
4636
4639
|
let o = 0, u = 0;
|
|
4637
4640
|
for (const g of n)
|
|
@@ -4640,20 +4643,20 @@ function En(n) {
|
|
|
4640
4643
|
`) + 1);
|
|
4641
4644
|
return { additionsNum: o, deletionsNum: u };
|
|
4642
4645
|
}
|
|
4643
|
-
function
|
|
4644
|
-
const t = () => ({ type: S.EMPTY }), r = (
|
|
4646
|
+
function Xt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
4647
|
+
const t = () => ({ type: S.EMPTY }), r = (_, p, v) => ({ type: _, num: p, code: v }), i = En(n, e);
|
|
4645
4648
|
let s = 0, a = 0, l = !1;
|
|
4646
4649
|
const c = [], f = {
|
|
4647
4650
|
changes: c,
|
|
4648
4651
|
collector: [],
|
|
4649
|
-
stat:
|
|
4652
|
+
stat: mn(i)
|
|
4650
4653
|
};
|
|
4651
|
-
for (let
|
|
4654
|
+
for (let _ = 0; _ < i.length; _++) {
|
|
4652
4655
|
if (l) {
|
|
4653
4656
|
l = !1;
|
|
4654
4657
|
continue;
|
|
4655
4658
|
}
|
|
4656
|
-
const [
|
|
4659
|
+
const [p, v] = [i[_], i[_ + 1]], [E, w] = [le(p), le(v)], m = p.value.replace(/\n$/, "").split(`
|
|
4657
4660
|
`);
|
|
4658
4661
|
if (v === void 0) {
|
|
4659
4662
|
for (const D of m) {
|
|
@@ -4683,11 +4686,11 @@ function Yt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4683
4686
|
});
|
|
4684
4687
|
if (w === S.ADD) {
|
|
4685
4688
|
l = !0;
|
|
4686
|
-
const D = Math.max(
|
|
4689
|
+
const D = Math.max(p.count, v.count);
|
|
4687
4690
|
for (let M = 0; M < D; M++) {
|
|
4688
|
-
M <
|
|
4689
|
-
const [I, R] = [m[M], T[M]],
|
|
4690
|
-
c.push({ left: $, right:
|
|
4691
|
+
M < p.count && s++, M < v.count && a++;
|
|
4692
|
+
const [I, R] = [m[M], T[M]], F = m.length === T.length ? Ae(R, I, u) : I, U = m.length === T.length ? Ae(I, R, u) : R, $ = M < p.count ? r(S.DELETE, s, V(o, F)) : t(), H = M < v.count ? r(S.ADD, a, V(o, U)) : t();
|
|
4693
|
+
c.push({ left: $, right: H });
|
|
4691
4694
|
}
|
|
4692
4695
|
}
|
|
4693
4696
|
}
|
|
@@ -4699,85 +4702,85 @@ function Yt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4699
4702
|
});
|
|
4700
4703
|
}
|
|
4701
4704
|
if (n === e) {
|
|
4702
|
-
for (let
|
|
4703
|
-
c[
|
|
4705
|
+
for (let _ = 0; _ < c.length; _++)
|
|
4706
|
+
c[_].fold = !1;
|
|
4704
4707
|
return f;
|
|
4705
4708
|
}
|
|
4706
|
-
for (let
|
|
4707
|
-
const
|
|
4708
|
-
if (
|
|
4709
|
-
const [v, E] = [Math.max(
|
|
4709
|
+
for (let _ = 0; _ < c.length; _++) {
|
|
4710
|
+
const p = c[_];
|
|
4711
|
+
if (p.left.type === S.DELETE || p.right.type === S.ADD) {
|
|
4712
|
+
const [v, E] = [Math.max(_ - g, 0), Math.min(_ + g + 1, c.length)];
|
|
4710
4713
|
for (let w = v; w < E; w++)
|
|
4711
4714
|
c[w].fold = !1;
|
|
4712
4715
|
}
|
|
4713
|
-
|
|
4716
|
+
p.fold === void 0 && (p.fold = !0);
|
|
4714
4717
|
}
|
|
4715
4718
|
const h = [];
|
|
4716
4719
|
let d = [];
|
|
4717
|
-
for (let
|
|
4718
|
-
const
|
|
4719
|
-
if (
|
|
4720
|
+
for (let _ = 0; _ < c.length; _++) {
|
|
4721
|
+
const p = c[_];
|
|
4722
|
+
if (p.fold === !1) {
|
|
4720
4723
|
d.length && (d[0].hideIndex = f.collector.length, f.collector.push({
|
|
4721
4724
|
lines: d,
|
|
4722
4725
|
fold: !0
|
|
4723
|
-
}), d = []), h.push(
|
|
4726
|
+
}), d = []), h.push(p);
|
|
4724
4727
|
continue;
|
|
4725
4728
|
}
|
|
4726
|
-
|
|
4729
|
+
p.hide = !0, d.push(p), h.push(p);
|
|
4727
4730
|
}
|
|
4728
4731
|
return d.length && (d[0].hideIndex = f.collector.length, f.collector.push({
|
|
4729
4732
|
lines: d,
|
|
4730
4733
|
fold: !0
|
|
4731
4734
|
}), d = []), f.changes = h, f;
|
|
4732
4735
|
}
|
|
4733
|
-
function
|
|
4734
|
-
const t =
|
|
4736
|
+
function jt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
4737
|
+
const t = En(n, e);
|
|
4735
4738
|
let r = 0, i = 0, s = !1;
|
|
4736
4739
|
const a = [], l = {
|
|
4737
4740
|
changes: a,
|
|
4738
4741
|
collector: [],
|
|
4739
|
-
stat:
|
|
4742
|
+
stat: mn(t)
|
|
4740
4743
|
};
|
|
4741
4744
|
for (let h = 0; h < t.length; h++) {
|
|
4742
4745
|
if (s) {
|
|
4743
4746
|
s = !1;
|
|
4744
4747
|
continue;
|
|
4745
4748
|
}
|
|
4746
|
-
const [d,
|
|
4749
|
+
const [d, _] = [t[h], t[h + 1]], [p, v] = [le(d), le(_)], E = d.value.replace(/\n$/, "").split(`
|
|
4747
4750
|
`);
|
|
4748
|
-
if (
|
|
4751
|
+
if (_ === void 0) {
|
|
4749
4752
|
for (const m of E) {
|
|
4750
|
-
|
|
4753
|
+
p === S.EQUAL && (r++, i++), p === S.DELETE && r++, p === S.ADD && i++;
|
|
4751
4754
|
const T = V(o, m);
|
|
4752
4755
|
a.push({
|
|
4753
|
-
type:
|
|
4756
|
+
type: p,
|
|
4754
4757
|
code: T,
|
|
4755
|
-
addNum:
|
|
4756
|
-
delNum:
|
|
4758
|
+
addNum: p === S.DELETE ? void 0 : i,
|
|
4759
|
+
delNum: p === S.ADD ? void 0 : r
|
|
4757
4760
|
});
|
|
4758
4761
|
}
|
|
4759
4762
|
break;
|
|
4760
4763
|
}
|
|
4761
|
-
if (
|
|
4764
|
+
if (p === S.EQUAL)
|
|
4762
4765
|
for (const m of E) {
|
|
4763
4766
|
r++, i++;
|
|
4764
4767
|
const T = V(o, m);
|
|
4765
4768
|
a.push({ type: S.EQUAL, code: T, delNum: r, addNum: i });
|
|
4766
4769
|
}
|
|
4767
|
-
const w =
|
|
4770
|
+
const w = _.value.replace(/\n$/, "").split(`
|
|
4768
4771
|
`);
|
|
4769
|
-
if (
|
|
4772
|
+
if (p === S.DELETE)
|
|
4770
4773
|
if (v === S.ADD && E.length === w.length) {
|
|
4771
4774
|
for (let m = 0; m < E.length; m++) {
|
|
4772
4775
|
const T = E[m], D = w[m];
|
|
4773
4776
|
r++;
|
|
4774
|
-
const M = V(o,
|
|
4777
|
+
const M = V(o, Ae(D, T, u));
|
|
4775
4778
|
a.push({ type: S.DELETE, code: M, delNum: r });
|
|
4776
4779
|
}
|
|
4777
4780
|
for (let m = 0; m < w.length; m++) {
|
|
4778
4781
|
const T = E[m], D = w[m];
|
|
4779
4782
|
i++;
|
|
4780
|
-
const M = V(o,
|
|
4783
|
+
const M = V(o, Ae(T, D, u));
|
|
4781
4784
|
a.push({ type: S.ADD, code: M, addNum: i });
|
|
4782
4785
|
}
|
|
4783
4786
|
s = !0;
|
|
@@ -4787,7 +4790,7 @@ function Xt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4787
4790
|
const T = V(o, m);
|
|
4788
4791
|
a.push({ type: S.DELETE, code: T, delNum: r });
|
|
4789
4792
|
}
|
|
4790
|
-
if (
|
|
4793
|
+
if (p === S.ADD)
|
|
4791
4794
|
for (const m of E) {
|
|
4792
4795
|
i++;
|
|
4793
4796
|
const T = V(o, m);
|
|
@@ -4797,8 +4800,8 @@ function Xt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4797
4800
|
for (let h = 0; h < a.length; h++) {
|
|
4798
4801
|
const d = a[h];
|
|
4799
4802
|
if (d.type === S.DELETE || d.type === S.ADD) {
|
|
4800
|
-
const [
|
|
4801
|
-
for (let v =
|
|
4803
|
+
const [_, p] = [Math.max(h - g, 0), Math.min(h + g + 1, a.length)];
|
|
4804
|
+
for (let v = _; v < p; v++)
|
|
4802
4805
|
a[v].fold = !1;
|
|
4803
4806
|
}
|
|
4804
4807
|
d.fold === void 0 && (d.fold = !0);
|
|
@@ -4826,17 +4829,20 @@ function Xt(n, e, o = "plaintext", u = "word", g = 10) {
|
|
|
4826
4829
|
fold: !0
|
|
4827
4830
|
}), f = []), l.changes = c, l;
|
|
4828
4831
|
}
|
|
4829
|
-
const
|
|
4832
|
+
const Jt = /* @__PURE__ */ de({
|
|
4830
4833
|
__name: "UnifiedLine",
|
|
4831
4834
|
props: {
|
|
4832
4835
|
line: null
|
|
4833
4836
|
},
|
|
4834
4837
|
emits: ["expand"],
|
|
4835
4838
|
setup(n, { emit: e }) {
|
|
4836
|
-
|
|
4839
|
+
function o(u) {
|
|
4840
|
+
return u === S.DELETE ? "-" : u === S.ADD ? "+" : "";
|
|
4841
|
+
}
|
|
4842
|
+
return { __sfc: !0, emit: e, getCodeMarker: o, DiffType: S };
|
|
4837
4843
|
}
|
|
4838
4844
|
});
|
|
4839
|
-
function
|
|
4845
|
+
function _e(n, e, o, u, g, t, r, i) {
|
|
4840
4846
|
var s = typeof n == "function" ? n.options : n;
|
|
4841
4847
|
e && (s.render = e, s.staticRenderFns = o, s._compiled = !0), u && (s.functional = !0), t && (s._scopeId = "data-v-" + t);
|
|
4842
4848
|
var a;
|
|
@@ -4865,7 +4871,7 @@ function pe(n, e, o, u, g, t, r, i) {
|
|
|
4865
4871
|
options: s
|
|
4866
4872
|
};
|
|
4867
4873
|
}
|
|
4868
|
-
var
|
|
4874
|
+
var qt = function() {
|
|
4869
4875
|
var e = this, o = e._self._c, u = e._self._setupProxy;
|
|
4870
4876
|
return e.line.hideIndex !== void 0 && e.line.hide ? o("tr", [o("td", { staticClass: "blob-num blob-num-hunk text-center", attrs: { colspan: "2" }, on: { click: function(g) {
|
|
4871
4877
|
return u.emit("expand", e.line);
|
|
@@ -4885,17 +4891,17 @@ var Jt = function() {
|
|
|
4885
4891
|
"blob-code-context": e.line.type === u.DiffType.EQUAL,
|
|
4886
4892
|
"blob-code-hunk": e.line.hide !== void 0
|
|
4887
4893
|
} }, [o("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": u.getCodeMarker(e.line.type) }, domProps: { innerHTML: e._s(e.line.code) } })])]);
|
|
4888
|
-
},
|
|
4889
|
-
jt,
|
|
4894
|
+
}, er = [], nr = /* @__PURE__ */ _e(
|
|
4890
4895
|
Jt,
|
|
4891
4896
|
qt,
|
|
4897
|
+
er,
|
|
4892
4898
|
!1,
|
|
4893
4899
|
null,
|
|
4894
4900
|
null,
|
|
4895
4901
|
null,
|
|
4896
4902
|
null
|
|
4897
4903
|
);
|
|
4898
|
-
const
|
|
4904
|
+
const tr = nr.exports, rr = /* @__PURE__ */ de({
|
|
4899
4905
|
__name: "UnifiedViewer",
|
|
4900
4906
|
props: {
|
|
4901
4907
|
diffChange: null
|
|
@@ -4907,36 +4913,39 @@ const nr = er.exports, tr = /* @__PURE__ */ de({
|
|
|
4907
4913
|
g.hide = !1, g.fold = !1;
|
|
4908
4914
|
});
|
|
4909
4915
|
}
|
|
4910
|
-
return { __sfc: !0, props: e, expandHandler: o, UnifiedLine:
|
|
4916
|
+
return { __sfc: !0, props: e, expandHandler: o, UnifiedLine: tr };
|
|
4911
4917
|
}
|
|
4912
4918
|
});
|
|
4913
|
-
var
|
|
4919
|
+
var ir = function() {
|
|
4914
4920
|
var g;
|
|
4915
4921
|
var e = this, o = e._self._c, u = e._self._setupProxy;
|
|
4916
4922
|
return o("table", { staticClass: "diff-table" }, [o("tbody", e._l((g = e.diffChange) == null ? void 0 : g.changes, function(t, r) {
|
|
4917
4923
|
return o(u.UnifiedLine, { key: r, attrs: { line: t }, on: { expand: u.expandHandler } });
|
|
4918
4924
|
}), 1)]);
|
|
4919
|
-
},
|
|
4920
|
-
tr,
|
|
4925
|
+
}, sr = [], ar = /* @__PURE__ */ _e(
|
|
4921
4926
|
rr,
|
|
4922
4927
|
ir,
|
|
4928
|
+
sr,
|
|
4923
4929
|
!1,
|
|
4924
4930
|
null,
|
|
4925
4931
|
"238e1326",
|
|
4926
4932
|
null,
|
|
4927
4933
|
null
|
|
4928
4934
|
);
|
|
4929
|
-
const
|
|
4935
|
+
const or = ar.exports, lr = /* @__PURE__ */ de({
|
|
4930
4936
|
__name: "SplitLine",
|
|
4931
4937
|
props: {
|
|
4932
4938
|
splitLine: null
|
|
4933
4939
|
},
|
|
4934
4940
|
emits: ["expand"],
|
|
4935
4941
|
setup(n, { emit: e }) {
|
|
4936
|
-
|
|
4942
|
+
function o(u) {
|
|
4943
|
+
return u === S.DELETE ? "-" : u === S.ADD ? "+" : "";
|
|
4944
|
+
}
|
|
4945
|
+
return { __sfc: !0, emit: e, getCodeMarker: o, DiffType: S };
|
|
4937
4946
|
}
|
|
4938
4947
|
});
|
|
4939
|
-
var
|
|
4948
|
+
var cr = function() {
|
|
4940
4949
|
var e = this, o = e._self._c, u = e._self._setupProxy;
|
|
4941
4950
|
return e.splitLine.hideIndex !== void 0 && e.splitLine.hide ? o("tr", [o("td", { staticClass: "blob-num blob-num-hunk", attrs: { colspan: "1" }, on: { click: function(g) {
|
|
4942
4951
|
return u.emit("expand", e.splitLine);
|
|
@@ -4953,17 +4962,17 @@ var lr = function() {
|
|
|
4953
4962
|
"blob-code-hunk": e.splitLine.hide !== void 0
|
|
4954
4963
|
} }, [o("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": u.getCodeMarker(g.type) }, domProps: { innerHTML: e._s(g.code) } })])]];
|
|
4955
4964
|
})], 2);
|
|
4956
|
-
},
|
|
4957
|
-
or,
|
|
4965
|
+
}, ur = [], fr = /* @__PURE__ */ _e(
|
|
4958
4966
|
lr,
|
|
4959
4967
|
cr,
|
|
4968
|
+
ur,
|
|
4960
4969
|
!1,
|
|
4961
4970
|
null,
|
|
4962
4971
|
null,
|
|
4963
4972
|
null,
|
|
4964
4973
|
null
|
|
4965
4974
|
);
|
|
4966
|
-
const
|
|
4975
|
+
const gr = fr.exports, hr = /* @__PURE__ */ de({
|
|
4967
4976
|
__name: "SplitViewer",
|
|
4968
4977
|
props: {
|
|
4969
4978
|
diffChange: null
|
|
@@ -4975,30 +4984,30 @@ const fr = ur.exports, gr = /* @__PURE__ */ de({
|
|
|
4975
4984
|
g.hide = !1, g.fold = !1;
|
|
4976
4985
|
});
|
|
4977
4986
|
}
|
|
4978
|
-
return { __sfc: !0, props: e, expandHandler: o, SplitLine:
|
|
4987
|
+
return { __sfc: !0, props: e, expandHandler: o, SplitLine: gr };
|
|
4979
4988
|
}
|
|
4980
4989
|
});
|
|
4981
|
-
var
|
|
4990
|
+
var dr = function() {
|
|
4982
4991
|
var g;
|
|
4983
4992
|
var e = this, o = e._self._c, u = e._self._setupProxy;
|
|
4984
4993
|
return o("table", { staticClass: "file-diff-split diff-table" }, [e._m(0), o("tbody", e._l((g = e.diffChange) == null ? void 0 : g.changes, function(t, r) {
|
|
4985
4994
|
return o(u.SplitLine, { key: r, attrs: { "split-line": t }, on: { expand: u.expandHandler } });
|
|
4986
4995
|
}), 1)]);
|
|
4987
|
-
},
|
|
4996
|
+
}, _r = [function() {
|
|
4988
4997
|
var n = this, e = n._self._c;
|
|
4989
4998
|
return n._self._setupProxy, e("colgroup", [e("col", { attrs: { width: "44" } }), e("col"), e("col", { attrs: { width: "44" } }), e("col")]);
|
|
4990
|
-
}], pr = /* @__PURE__ */
|
|
4991
|
-
gr,
|
|
4999
|
+
}], pr = /* @__PURE__ */ _e(
|
|
4992
5000
|
hr,
|
|
4993
5001
|
dr,
|
|
5002
|
+
_r,
|
|
4994
5003
|
!1,
|
|
4995
5004
|
null,
|
|
4996
5005
|
"829edc33",
|
|
4997
5006
|
null,
|
|
4998
5007
|
null
|
|
4999
5008
|
);
|
|
5000
|
-
const
|
|
5001
|
-
const
|
|
5009
|
+
const br = pr.exports;
|
|
5010
|
+
const vr = /* @__PURE__ */ de({
|
|
5002
5011
|
__name: "CodeDiff",
|
|
5003
5012
|
props: {
|
|
5004
5013
|
newString: null,
|
|
@@ -5012,43 +5021,52 @@ const br = /* @__PURE__ */ de({
|
|
|
5012
5021
|
maxHeight: { default: void 0 },
|
|
5013
5022
|
filename: { default: void 0 }
|
|
5014
5023
|
},
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5024
|
+
emits: ["diff"],
|
|
5025
|
+
setup(n, { emit: e }) {
|
|
5026
|
+
const o = n, u = ce(() => o.outputFormat === "line-by-line"), g = ce(() => {
|
|
5027
|
+
let a = o.oldString || "";
|
|
5028
|
+
return a = o.trim ? a.trim() : a, a = o.noDiffLineFeed ? a.replace(/(\r\n)/g, `
|
|
5029
|
+
`) : a, a;
|
|
5030
|
+
}), t = ce(() => {
|
|
5031
|
+
let a = o.newString || "";
|
|
5032
|
+
return a = o.trim ? a.trim() : a, a = o.noDiffLineFeed ? a.replace(/(\r\n)/g, `
|
|
5033
|
+
`) : a, a;
|
|
5034
|
+
}), r = ce(
|
|
5035
|
+
() => u.value ? jt(g.value, t.value, o.language, o.diffStyle, o.context) : Xt(g.value, t.value, o.language, o.diffStyle, o.context)
|
|
5036
|
+
), i = Rn(r.value), s = ce(() => i.value.stat.additionsNum === 0 && i.value.stat.deletionsNum === 0);
|
|
5037
|
+
return On(() => o, () => {
|
|
5038
|
+
i.value = r.value, e("diff", {
|
|
5039
|
+
stat: {
|
|
5040
|
+
isChanged: !s.value,
|
|
5041
|
+
addNum: i.value.stat.additionsNum,
|
|
5042
|
+
delNum: i.value.stat.deletionsNum
|
|
5043
|
+
}
|
|
5044
|
+
});
|
|
5045
|
+
}, { deep: !0, immediate: !0 }), { __sfc: !0, props: o, emits: e, isUnifiedViewer: u, oldString: g, newString: t, raw: r, diffChange: i, isNotChanged: s, UnifiedViewer: or, SplitViewer: br };
|
|
5030
5046
|
}
|
|
5031
5047
|
});
|
|
5032
|
-
var
|
|
5048
|
+
var Er = function() {
|
|
5033
5049
|
var e = this, o = e._self._c, u = e._self._setupProxy;
|
|
5034
5050
|
return o("div", { staticClass: "code-diff-view", style: { maxHeight: e.maxHeight } }, [o("div", { staticClass: "file-header" }, [o("div", { staticClass: "file-info" }, [o("span", { staticClass: "filename" }, [e._v(e._s(e.filename))]), o("span", { staticClass: "diff-stat" }, [o("span", { staticClass: "diff-stat-added" }, [e._v("+" + e._s(u.diffChange.stat.additionsNum) + " additions")]), o("span", { staticClass: "diff-stat-deleted", staticStyle: { "margin-left": "8px" } }, [e._v("-" + e._s(u.diffChange.stat.deletionsNum) + " deletions")])])])]), u.isUnifiedViewer ? o(u.UnifiedViewer, { attrs: { "diff-change": u.diffChange } }) : o(u.SplitViewer, { attrs: { "diff-change": u.diffChange } })], 1);
|
|
5035
|
-
},
|
|
5036
|
-
br,
|
|
5051
|
+
}, mr = [], yr = /* @__PURE__ */ _e(
|
|
5037
5052
|
vr,
|
|
5038
5053
|
Er,
|
|
5054
|
+
mr,
|
|
5039
5055
|
!1,
|
|
5040
5056
|
null,
|
|
5041
5057
|
null,
|
|
5042
5058
|
null,
|
|
5043
5059
|
null
|
|
5044
5060
|
);
|
|
5045
|
-
const
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5061
|
+
const wr = yr.exports;
|
|
5062
|
+
function Nr(n) {
|
|
5063
|
+
n.component("CodeDiff", wr);
|
|
5064
|
+
}
|
|
5065
|
+
const Ar = {
|
|
5066
|
+
install: Nr,
|
|
5049
5067
|
hljs: Z
|
|
5050
5068
|
};
|
|
5051
5069
|
export {
|
|
5052
|
-
|
|
5053
|
-
|
|
5070
|
+
wr as CodeDiff,
|
|
5071
|
+
Ar as default
|
|
5054
5072
|
};
|