v-code-diff 1.8.0 → 1.10.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 +81 -15
- package/dist/v2/index.cjs.js +16 -14
- package/dist/v2/index.es.js +710 -680
- package/dist/v2/index.umd.js +15 -13
- package/dist/v2.7/index.cjs.js +18 -16
- package/dist/v2.7/index.es.js +988 -961
- package/dist/v2.7/index.umd.js +18 -16
- package/dist/v3/index.cjs.js +18 -16
- package/dist/v3/index.es.js +1313 -1286
- package/dist/v3/index.umd.js +18 -16
- package/package.json +16 -13
- package/scripts/{postinstall.js → postinstall.cjs} +1 -2
- package/scripts/{utils.js → utils.cjs} +0 -2
- package/src/CodeDiff.vue +9 -8
- package/src/index.ts +1 -0
- package/src/style.scss +7 -1
- package/src/types.ts +2 -0
- package/src/utils.ts +44 -13
- package/types/index.d.ts +5 -4
package/dist/v3/index.es.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #1F2328;--color-diff-blob-addition-fg: #1F2328;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #1f883d;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(31,35,40,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(31,35,40,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(31,35,40,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-scale-black: #1F2328;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#ffffff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .info-left{font-size:13px;color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;width:50%}.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 .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #1F2328;--color-diff-blob-addition-fg: #1F2328;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #1f883d;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(31,35,40,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(31,35,40,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(31,35,40,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-scale-black: #1F2328;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#ffffff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view 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 .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { defineComponent as Ae, openBlock as G, createElementBlock as W, createElementVNode as U, normalizeClass as me, unref as F, toDisplayString as ee, createCommentVNode as ve, Fragment as pe, renderList as Ge, createBlock as Ce, computed as Ee, ref as Fn, watch as zn, normalizeStyle as xn, renderSlot as en } from "vue";
|
|
3
3
|
function ae() {
|
|
4
4
|
}
|
|
5
5
|
ae.prototype = {
|
|
6
6
|
diff: function(r, l) {
|
|
7
|
-
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
8
|
-
typeof u == "function" && (
|
|
7
|
+
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, g = u.callback;
|
|
8
|
+
typeof u == "function" && (g = u, u = {}), this.options = u;
|
|
9
9
|
var n = this;
|
|
10
|
-
function t(
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
}, 0), !0) :
|
|
10
|
+
function t(d) {
|
|
11
|
+
return g ? (setTimeout(function() {
|
|
12
|
+
g(void 0, d);
|
|
13
|
+
}, 0), !0) : d;
|
|
14
14
|
}
|
|
15
15
|
r = this.castInput(r), l = this.castInput(l), r = this.removeEmpty(this.tokenize(r)), l = this.removeEmpty(this.tokenize(l));
|
|
16
|
-
var i = l.length,
|
|
17
|
-
u.maxEditLength && (
|
|
16
|
+
var i = l.length, s = r.length, o = 1, a = i + s;
|
|
17
|
+
u.maxEditLength && (a = Math.min(a, u.maxEditLength));
|
|
18
18
|
var c = [{
|
|
19
19
|
newPos: -1,
|
|
20
20
|
components: []
|
|
21
21
|
}], f = this.extractCommon(c[0], l, r, 0);
|
|
22
|
-
if (c[0].newPos + 1 >= i && f + 1 >=
|
|
22
|
+
if (c[0].newPos + 1 >= i && f + 1 >= s)
|
|
23
23
|
return t([{
|
|
24
24
|
value: this.join(l),
|
|
25
25
|
count: l.length
|
|
26
26
|
}]);
|
|
27
|
-
function
|
|
28
|
-
for (var
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
if (!
|
|
33
|
-
c[
|
|
27
|
+
function h() {
|
|
28
|
+
for (var d = -1 * o; d <= o; d += 2) {
|
|
29
|
+
var _ = void 0, m = c[d - 1], b = c[d + 1], y = (b ? b.newPos : 0) - d;
|
|
30
|
+
m && (c[d - 1] = void 0);
|
|
31
|
+
var M = m && m.newPos + 1 < i, L = b && 0 <= y && y < s;
|
|
32
|
+
if (!M && !L) {
|
|
33
|
+
c[d] = void 0;
|
|
34
34
|
continue;
|
|
35
35
|
}
|
|
36
|
-
if (!
|
|
37
|
-
return t(Gn(n,
|
|
38
|
-
c[
|
|
36
|
+
if (!M || L && m.newPos < b.newPos ? (_ = Kn(b), n.pushComponent(_.components, void 0, !0)) : (_ = m, _.newPos++, n.pushComponent(_.components, !0, void 0)), y = n.extractCommon(_, l, r, d), _.newPos + 1 >= i && y + 1 >= s)
|
|
37
|
+
return t(Gn(n, _.components, l, r, n.useLongestToken));
|
|
38
|
+
c[d] = _;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
o++;
|
|
41
41
|
}
|
|
42
|
-
if (
|
|
43
|
-
(function
|
|
42
|
+
if (g)
|
|
43
|
+
(function d() {
|
|
44
44
|
setTimeout(function() {
|
|
45
|
-
if (
|
|
46
|
-
return
|
|
47
|
-
|
|
45
|
+
if (o > a)
|
|
46
|
+
return g();
|
|
47
|
+
h() || d();
|
|
48
48
|
}, 0);
|
|
49
49
|
})();
|
|
50
50
|
else
|
|
51
|
-
for (;
|
|
52
|
-
var
|
|
53
|
-
if (
|
|
54
|
-
return
|
|
51
|
+
for (; o <= a; ) {
|
|
52
|
+
var p = h();
|
|
53
|
+
if (p)
|
|
54
|
+
return p;
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
pushComponent: function(r, l, u) {
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
count:
|
|
58
|
+
var g = r[r.length - 1];
|
|
59
|
+
g && g.added === l && g.removed === u ? r[r.length - 1] = {
|
|
60
|
+
count: g.count + 1,
|
|
61
61
|
added: l,
|
|
62
62
|
removed: u
|
|
63
63
|
} : r.push({
|
|
@@ -66,12 +66,12 @@ ae.prototype = {
|
|
|
66
66
|
removed: u
|
|
67
67
|
});
|
|
68
68
|
},
|
|
69
|
-
extractCommon: function(r, l, u,
|
|
70
|
-
for (var n = l.length, t = u.length, i = r.newPos,
|
|
71
|
-
i++,
|
|
72
|
-
return
|
|
73
|
-
count:
|
|
74
|
-
}), r.newPos = i,
|
|
69
|
+
extractCommon: function(r, l, u, g) {
|
|
70
|
+
for (var n = l.length, t = u.length, i = r.newPos, s = i - g, o = 0; i + 1 < n && s + 1 < t && this.equals(l[i + 1], u[s + 1]); )
|
|
71
|
+
i++, s++, o++;
|
|
72
|
+
return o && r.components.push({
|
|
73
|
+
count: o
|
|
74
|
+
}), r.newPos = i, s;
|
|
75
75
|
},
|
|
76
76
|
equals: function(r, l) {
|
|
77
77
|
return this.options.comparator ? this.options.comparator(r, l) : r === l || this.options.ignoreCase && r.toLowerCase() === l.toLowerCase();
|
|
@@ -91,24 +91,24 @@ ae.prototype = {
|
|
|
91
91
|
return r.join("");
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
function Gn(e, r, l, u,
|
|
95
|
-
for (var n = 0, t = r.length, i = 0,
|
|
96
|
-
var
|
|
97
|
-
if (
|
|
98
|
-
if (
|
|
94
|
+
function Gn(e, r, l, u, g) {
|
|
95
|
+
for (var n = 0, t = r.length, i = 0, s = 0; n < t; n++) {
|
|
96
|
+
var o = r[n];
|
|
97
|
+
if (o.removed) {
|
|
98
|
+
if (o.value = e.join(u.slice(s, s + o.count)), s += o.count, n && r[n - 1].added) {
|
|
99
99
|
var c = r[n - 1];
|
|
100
100
|
r[n - 1] = r[n], r[n] = c;
|
|
101
101
|
}
|
|
102
102
|
} else {
|
|
103
|
-
if (!
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
return
|
|
108
|
-
}),
|
|
103
|
+
if (!o.added && g) {
|
|
104
|
+
var a = l.slice(i, i + o.count);
|
|
105
|
+
a = a.map(function(h, p) {
|
|
106
|
+
var d = u[s + p];
|
|
107
|
+
return d.length > h.length ? d : h;
|
|
108
|
+
}), o.value = e.join(a);
|
|
109
109
|
} else
|
|
110
|
-
|
|
111
|
-
i +=
|
|
110
|
+
o.value = e.join(l.slice(i, i + o.count));
|
|
111
|
+
i += o.count, o.added || (s += o.count);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
var f = r[t - 1];
|
|
@@ -151,8 +151,8 @@ hn.tokenize = function(e) {
|
|
|
151
151
|
var r = [], l = e.split(/(\n|\r\n)/);
|
|
152
152
|
l[l.length - 1] || l.pop();
|
|
153
153
|
for (var u = 0; u < l.length; u++) {
|
|
154
|
-
var
|
|
155
|
-
u % 2 && !this.options.newlineIsToken ? r[r.length - 1] +=
|
|
154
|
+
var g = l[u];
|
|
155
|
+
u % 2 && !this.options.newlineIsToken ? r[r.length - 1] += g : (this.options.ignoreWhitespace && (g = g.trim()), r.push(g));
|
|
156
156
|
}
|
|
157
157
|
return r;
|
|
158
158
|
};
|
|
@@ -160,8 +160,8 @@ var Xn = new ae();
|
|
|
160
160
|
Xn.tokenize = function(e) {
|
|
161
161
|
return e.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
162
162
|
};
|
|
163
|
-
var
|
|
164
|
-
|
|
163
|
+
var jn = new ae();
|
|
164
|
+
jn.tokenize = function(e) {
|
|
165
165
|
return e.split(/([{}:;,]|\s+)/);
|
|
166
166
|
};
|
|
167
167
|
function Oe(e) {
|
|
@@ -172,47 +172,47 @@ function Oe(e) {
|
|
|
172
172
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
173
173
|
}, Oe(e);
|
|
174
174
|
}
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
var r = this.options, l = r.undefinedReplacement, u = r.stringifyReplacer,
|
|
175
|
+
var Vn = Object.prototype.toString, ye = new ae();
|
|
176
|
+
ye.useLongestToken = !0;
|
|
177
|
+
ye.tokenize = hn.tokenize;
|
|
178
|
+
ye.castInput = function(e) {
|
|
179
|
+
var r = this.options, l = r.undefinedReplacement, u = r.stringifyReplacer, g = u === void 0 ? function(n, t) {
|
|
180
180
|
return typeof t == "undefined" ? l : t;
|
|
181
181
|
} : u;
|
|
182
|
-
return typeof e == "string" ? e : JSON.stringify(
|
|
182
|
+
return typeof e == "string" ? e : JSON.stringify(ze(e, null, null, g), g, " ");
|
|
183
183
|
};
|
|
184
|
-
|
|
185
|
-
return ae.prototype.equals.call(
|
|
184
|
+
ye.equals = function(e, r) {
|
|
185
|
+
return ae.prototype.equals.call(ye, e.replace(/,([\r\n])/g, "$1"), r.replace(/,([\r\n])/g, "$1"));
|
|
186
186
|
};
|
|
187
|
-
function
|
|
188
|
-
r = r || [], l = l || [], u && (e = u(
|
|
187
|
+
function ze(e, r, l, u, g) {
|
|
188
|
+
r = r || [], l = l || [], u && (e = u(g, e));
|
|
189
189
|
var n;
|
|
190
190
|
for (n = 0; n < r.length; n += 1)
|
|
191
191
|
if (r[n] === e)
|
|
192
192
|
return l[n];
|
|
193
193
|
var t;
|
|
194
|
-
if (
|
|
194
|
+
if (Vn.call(e) === "[object Array]") {
|
|
195
195
|
for (r.push(e), t = new Array(e.length), l.push(t), n = 0; n < e.length; n += 1)
|
|
196
|
-
t[n] =
|
|
196
|
+
t[n] = ze(e[n], r, l, u, g);
|
|
197
197
|
return r.pop(), l.pop(), t;
|
|
198
198
|
}
|
|
199
199
|
if (e && e.toJSON && (e = e.toJSON()), Oe(e) === "object" && e !== null) {
|
|
200
200
|
r.push(e), t = {}, l.push(t);
|
|
201
|
-
var i = [],
|
|
202
|
-
for (
|
|
203
|
-
e.hasOwnProperty(
|
|
201
|
+
var i = [], s;
|
|
202
|
+
for (s in e)
|
|
203
|
+
e.hasOwnProperty(s) && i.push(s);
|
|
204
204
|
for (i.sort(), n = 0; n < i.length; n += 1)
|
|
205
|
-
|
|
205
|
+
s = i[n], t[s] = ze(e[s], r, l, u, s);
|
|
206
206
|
r.pop(), l.pop();
|
|
207
207
|
} else
|
|
208
208
|
t = e;
|
|
209
209
|
return t;
|
|
210
210
|
}
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var xe = new ae();
|
|
212
|
+
xe.tokenize = function(e) {
|
|
213
213
|
return e.slice();
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
xe.join = xe.removeEmpty = function(e) {
|
|
216
216
|
return e;
|
|
217
217
|
};
|
|
218
218
|
function Jn(e) {
|
|
@@ -222,120 +222,120 @@ var dn = { exports: {} };
|
|
|
222
222
|
(function(e) {
|
|
223
223
|
var r = function() {
|
|
224
224
|
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;
|
|
225
|
-
}, l = -1, u = 1,
|
|
225
|
+
}, l = -1, u = 1, g = 0;
|
|
226
226
|
r.Diff = function(n, t) {
|
|
227
227
|
return [n, t];
|
|
228
|
-
}, r.prototype.diff_main = function(n, t, i,
|
|
229
|
-
typeof
|
|
230
|
-
var
|
|
228
|
+
}, r.prototype.diff_main = function(n, t, i, s) {
|
|
229
|
+
typeof s == "undefined" && (this.Diff_Timeout <= 0 ? s = Number.MAX_VALUE : s = (/* @__PURE__ */ new Date()).getTime() + this.Diff_Timeout * 1e3);
|
|
230
|
+
var o = s;
|
|
231
231
|
if (n == null || t == null)
|
|
232
232
|
throw new Error("Null input. (diff_main)");
|
|
233
233
|
if (n == t)
|
|
234
|
-
return n ? [new r.Diff(
|
|
234
|
+
return n ? [new r.Diff(g, n)] : [];
|
|
235
235
|
typeof i == "undefined" && (i = !0);
|
|
236
|
-
var
|
|
236
|
+
var a = i, c = this.diff_commonPrefix(n, t), f = n.substring(0, c);
|
|
237
237
|
n = n.substring(c), t = t.substring(c), c = this.diff_commonSuffix(n, t);
|
|
238
|
-
var
|
|
238
|
+
var h = n.substring(n.length - c);
|
|
239
239
|
n = n.substring(0, n.length - c), t = t.substring(0, t.length - c);
|
|
240
|
-
var
|
|
241
|
-
return f &&
|
|
242
|
-
}, r.prototype.diff_compute_ = function(n, t, i,
|
|
243
|
-
var
|
|
240
|
+
var p = this.diff_compute_(n, t, a, o);
|
|
241
|
+
return f && p.unshift(new r.Diff(g, f)), h && p.push(new r.Diff(g, h)), this.diff_cleanupMerge(p), p;
|
|
242
|
+
}, r.prototype.diff_compute_ = function(n, t, i, s) {
|
|
243
|
+
var o;
|
|
244
244
|
if (!n)
|
|
245
245
|
return [new r.Diff(u, t)];
|
|
246
246
|
if (!t)
|
|
247
247
|
return [new r.Diff(l, n)];
|
|
248
|
-
var
|
|
248
|
+
var a = n.length > t.length ? n : t, c = n.length > t.length ? t : n, f = a.indexOf(c);
|
|
249
249
|
if (f != -1)
|
|
250
|
-
return
|
|
251
|
-
new r.Diff(u,
|
|
252
|
-
new r.Diff(
|
|
250
|
+
return o = [
|
|
251
|
+
new r.Diff(u, a.substring(0, f)),
|
|
252
|
+
new r.Diff(g, c),
|
|
253
253
|
new r.Diff(
|
|
254
254
|
u,
|
|
255
|
-
|
|
255
|
+
a.substring(f + c.length)
|
|
256
256
|
)
|
|
257
|
-
], n.length > t.length && (
|
|
257
|
+
], n.length > t.length && (o[0][0] = o[2][0] = l), o;
|
|
258
258
|
if (c.length == 1)
|
|
259
259
|
return [
|
|
260
260
|
new r.Diff(l, n),
|
|
261
261
|
new r.Diff(u, t)
|
|
262
262
|
];
|
|
263
|
-
var
|
|
264
|
-
if (
|
|
265
|
-
var
|
|
266
|
-
return
|
|
267
|
-
[new r.Diff(
|
|
268
|
-
|
|
263
|
+
var h = this.diff_halfMatch_(n, t);
|
|
264
|
+
if (h) {
|
|
265
|
+
var p = h[0], d = h[1], _ = h[2], m = h[3], b = h[4], y = this.diff_main(p, _, i, s), M = this.diff_main(d, m, i, s);
|
|
266
|
+
return y.concat(
|
|
267
|
+
[new r.Diff(g, b)],
|
|
268
|
+
M
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
|
-
return i && n.length > 100 && t.length > 100 ? this.diff_lineMode_(n, t,
|
|
271
|
+
return i && n.length > 100 && t.length > 100 ? this.diff_lineMode_(n, t, s) : this.diff_bisect_(n, t, s);
|
|
272
272
|
}, r.prototype.diff_lineMode_ = function(n, t, i) {
|
|
273
|
-
var
|
|
274
|
-
n =
|
|
275
|
-
var
|
|
276
|
-
this.diff_charsToLines_(
|
|
277
|
-
for (var c = 0, f = 0,
|
|
278
|
-
switch (
|
|
273
|
+
var s = this.diff_linesToChars_(n, t);
|
|
274
|
+
n = s.chars1, t = s.chars2;
|
|
275
|
+
var o = s.lineArray, a = this.diff_main(n, t, !1, i);
|
|
276
|
+
this.diff_charsToLines_(a, o), this.diff_cleanupSemantic(a), a.push(new r.Diff(g, ""));
|
|
277
|
+
for (var c = 0, f = 0, h = 0, p = "", d = ""; c < a.length; ) {
|
|
278
|
+
switch (a[c][0]) {
|
|
279
279
|
case u:
|
|
280
|
-
|
|
280
|
+
h++, d += a[c][1];
|
|
281
281
|
break;
|
|
282
282
|
case l:
|
|
283
|
-
f++,
|
|
283
|
+
f++, p += a[c][1];
|
|
284
284
|
break;
|
|
285
|
-
case
|
|
286
|
-
if (f >= 1 &&
|
|
287
|
-
|
|
288
|
-
c - f -
|
|
289
|
-
f +
|
|
290
|
-
), c = c - f -
|
|
291
|
-
for (var
|
|
292
|
-
|
|
293
|
-
c = c +
|
|
285
|
+
case g:
|
|
286
|
+
if (f >= 1 && h >= 1) {
|
|
287
|
+
a.splice(
|
|
288
|
+
c - f - h,
|
|
289
|
+
f + h
|
|
290
|
+
), c = c - f - h;
|
|
291
|
+
for (var _ = this.diff_main(p, d, !1, i), m = _.length - 1; m >= 0; m--)
|
|
292
|
+
a.splice(c, 0, _[m]);
|
|
293
|
+
c = c + _.length;
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
h = 0, f = 0, p = "", d = "";
|
|
296
296
|
break;
|
|
297
297
|
}
|
|
298
298
|
c++;
|
|
299
299
|
}
|
|
300
|
-
return
|
|
300
|
+
return a.pop(), a;
|
|
301
301
|
}, r.prototype.diff_bisect_ = function(n, t, i) {
|
|
302
|
-
for (var
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
for (var
|
|
306
|
-
for (var
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
for (var
|
|
310
|
-
|
|
311
|
-
if (
|
|
312
|
-
|
|
313
|
-
else if (
|
|
314
|
-
|
|
315
|
-
else if (
|
|
316
|
-
var
|
|
317
|
-
if (
|
|
318
|
-
var
|
|
319
|
-
if (
|
|
320
|
-
return this.diff_bisectSplit_(n, t,
|
|
302
|
+
for (var s = n.length, o = t.length, a = Math.ceil((s + o) / 2), c = a, f = 2 * a, h = new Array(f), p = new Array(f), d = 0; d < f; d++)
|
|
303
|
+
h[d] = -1, p[d] = -1;
|
|
304
|
+
h[c + 1] = 0, p[c + 1] = 0;
|
|
305
|
+
for (var _ = s - o, m = _ % 2 != 0, b = 0, y = 0, M = 0, L = 0, N = 0; N < a && !((/* @__PURE__ */ new Date()).getTime() > i); N++) {
|
|
306
|
+
for (var D = -N + b; D <= N - y; D += 2) {
|
|
307
|
+
var R = c + D, S;
|
|
308
|
+
D == -N || D != N && h[R - 1] < h[R + 1] ? S = h[R + 1] : S = h[R - 1] + 1;
|
|
309
|
+
for (var $ = S - D; S < s && $ < o && n.charAt(S) == t.charAt($); )
|
|
310
|
+
S++, $++;
|
|
311
|
+
if (h[R] = S, S > s)
|
|
312
|
+
y += 2;
|
|
313
|
+
else if ($ > o)
|
|
314
|
+
b += 2;
|
|
315
|
+
else if (m) {
|
|
316
|
+
var k = c + _ - D;
|
|
317
|
+
if (k >= 0 && k < f && p[k] != -1) {
|
|
318
|
+
var H = s - p[k];
|
|
319
|
+
if (S >= H)
|
|
320
|
+
return this.diff_bisectSplit_(n, t, S, $, i);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
for (var K = -
|
|
325
|
-
var
|
|
326
|
-
K == -
|
|
327
|
-
for (var
|
|
328
|
-
|
|
329
|
-
if (
|
|
330
|
-
|
|
331
|
-
else if (
|
|
332
|
-
|
|
333
|
-
else if (!
|
|
334
|
-
var
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
337
|
-
if (
|
|
338
|
-
return this.diff_bisectSplit_(n, t,
|
|
324
|
+
for (var K = -N + M; K <= N - L; K += 2) {
|
|
325
|
+
var k = c + K, H;
|
|
326
|
+
K == -N || K != N && p[k - 1] < p[k + 1] ? H = p[k + 1] : H = p[k - 1] + 1;
|
|
327
|
+
for (var Y = H - K; H < s && Y < o && n.charAt(s - H - 1) == t.charAt(o - Y - 1); )
|
|
328
|
+
H++, Y++;
|
|
329
|
+
if (p[k] = H, H > s)
|
|
330
|
+
L += 2;
|
|
331
|
+
else if (Y > o)
|
|
332
|
+
M += 2;
|
|
333
|
+
else if (!m) {
|
|
334
|
+
var R = c + _ - K;
|
|
335
|
+
if (R >= 0 && R < f && h[R] != -1) {
|
|
336
|
+
var S = h[R], $ = c + S - R;
|
|
337
|
+
if (H = s - H, S >= H)
|
|
338
|
+
return this.diff_bisectSplit_(n, t, S, $, i);
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
}
|
|
@@ -344,200 +344,200 @@ var dn = { exports: {} };
|
|
|
344
344
|
new r.Diff(l, n),
|
|
345
345
|
new r.Diff(u, t)
|
|
346
346
|
];
|
|
347
|
-
}, r.prototype.diff_bisectSplit_ = function(n, t, i,
|
|
348
|
-
var
|
|
349
|
-
return
|
|
347
|
+
}, r.prototype.diff_bisectSplit_ = function(n, t, i, s, o) {
|
|
348
|
+
var a = n.substring(0, i), c = t.substring(0, s), f = n.substring(i), h = t.substring(s), p = this.diff_main(a, c, !1, o), d = this.diff_main(f, h, !1, o);
|
|
349
|
+
return p.concat(d);
|
|
350
350
|
}, r.prototype.diff_linesToChars_ = function(n, t) {
|
|
351
|
-
var i = [],
|
|
351
|
+
var i = [], s = {};
|
|
352
352
|
i[0] = "";
|
|
353
|
-
function
|
|
354
|
-
for (var
|
|
355
|
-
|
|
356
|
-
`,
|
|
357
|
-
var
|
|
358
|
-
(
|
|
353
|
+
function o(h) {
|
|
354
|
+
for (var p = "", d = 0, _ = -1, m = i.length; _ < h.length - 1; ) {
|
|
355
|
+
_ = h.indexOf(`
|
|
356
|
+
`, d), _ == -1 && (_ = h.length - 1);
|
|
357
|
+
var b = h.substring(d, _ + 1);
|
|
358
|
+
(s.hasOwnProperty ? s.hasOwnProperty(b) : s[b] !== void 0) ? p += String.fromCharCode(s[b]) : (m == a && (b = h.substring(d), _ = h.length), p += String.fromCharCode(m), s[b] = m, i[m++] = b), d = _ + 1;
|
|
359
359
|
}
|
|
360
|
-
return
|
|
360
|
+
return p;
|
|
361
361
|
}
|
|
362
|
-
var
|
|
363
|
-
|
|
364
|
-
var f =
|
|
362
|
+
var a = 4e4, c = o(n);
|
|
363
|
+
a = 65535;
|
|
364
|
+
var f = o(t);
|
|
365
365
|
return { chars1: c, chars2: f, lineArray: i };
|
|
366
366
|
}, r.prototype.diff_charsToLines_ = function(n, t) {
|
|
367
367
|
for (var i = 0; i < n.length; i++) {
|
|
368
|
-
for (var
|
|
369
|
-
|
|
370
|
-
n[i][1] =
|
|
368
|
+
for (var s = n[i][1], o = [], a = 0; a < s.length; a++)
|
|
369
|
+
o[a] = t[s.charCodeAt(a)];
|
|
370
|
+
n[i][1] = o.join("");
|
|
371
371
|
}
|
|
372
372
|
}, r.prototype.diff_commonPrefix = function(n, t) {
|
|
373
373
|
if (!n || !t || n.charAt(0) != t.charAt(0))
|
|
374
374
|
return 0;
|
|
375
|
-
for (var i = 0,
|
|
376
|
-
n.substring(
|
|
377
|
-
return
|
|
375
|
+
for (var i = 0, s = Math.min(n.length, t.length), o = s, a = 0; i < o; )
|
|
376
|
+
n.substring(a, o) == t.substring(a, o) ? (i = o, a = i) : s = o, o = Math.floor((s - i) / 2 + i);
|
|
377
|
+
return o;
|
|
378
378
|
}, r.prototype.diff_commonSuffix = function(n, t) {
|
|
379
379
|
if (!n || !t || n.charAt(n.length - 1) != t.charAt(t.length - 1))
|
|
380
380
|
return 0;
|
|
381
|
-
for (var i = 0,
|
|
382
|
-
n.substring(n.length -
|
|
383
|
-
return
|
|
381
|
+
for (var i = 0, s = Math.min(n.length, t.length), o = s, a = 0; i < o; )
|
|
382
|
+
n.substring(n.length - o, n.length - a) == t.substring(t.length - o, t.length - a) ? (i = o, a = i) : s = o, o = Math.floor((s - i) / 2 + i);
|
|
383
|
+
return o;
|
|
384
384
|
}, r.prototype.diff_commonOverlap_ = function(n, t) {
|
|
385
|
-
var i = n.length,
|
|
386
|
-
if (i == 0 ||
|
|
385
|
+
var i = n.length, s = t.length;
|
|
386
|
+
if (i == 0 || s == 0)
|
|
387
387
|
return 0;
|
|
388
|
-
i >
|
|
389
|
-
var
|
|
388
|
+
i > s ? n = n.substring(i - s) : i < s && (t = t.substring(0, i));
|
|
389
|
+
var o = Math.min(i, s);
|
|
390
390
|
if (n == t)
|
|
391
|
-
return
|
|
392
|
-
for (var
|
|
393
|
-
var f = n.substring(
|
|
394
|
-
if (
|
|
395
|
-
return
|
|
396
|
-
c +=
|
|
391
|
+
return o;
|
|
392
|
+
for (var a = 0, c = 1; ; ) {
|
|
393
|
+
var f = n.substring(o - c), h = t.indexOf(f);
|
|
394
|
+
if (h == -1)
|
|
395
|
+
return a;
|
|
396
|
+
c += h, (h == 0 || n.substring(o - c) == t.substring(0, c)) && (a = c, c++);
|
|
397
397
|
}
|
|
398
398
|
}, r.prototype.diff_halfMatch_ = function(n, t) {
|
|
399
399
|
if (this.Diff_Timeout <= 0)
|
|
400
400
|
return null;
|
|
401
|
-
var i = n.length > t.length ? n : t,
|
|
402
|
-
if (i.length < 4 ||
|
|
401
|
+
var i = n.length > t.length ? n : t, s = n.length > t.length ? t : n;
|
|
402
|
+
if (i.length < 4 || s.length * 2 < i.length)
|
|
403
403
|
return null;
|
|
404
|
-
var
|
|
405
|
-
function
|
|
406
|
-
for (var
|
|
407
|
-
var K =
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
),
|
|
411
|
-
|
|
412
|
-
|
|
404
|
+
var o = this;
|
|
405
|
+
function a(y, M, L) {
|
|
406
|
+
for (var N = y.substring(L, L + Math.floor(y.length / 4)), D = -1, R = "", S, $, k, H; (D = M.indexOf(N, D + 1)) != -1; ) {
|
|
407
|
+
var K = o.diff_commonPrefix(
|
|
408
|
+
y.substring(L),
|
|
409
|
+
M.substring(D)
|
|
410
|
+
), Y = o.diff_commonSuffix(
|
|
411
|
+
y.substring(0, L),
|
|
412
|
+
M.substring(0, D)
|
|
413
413
|
);
|
|
414
|
-
|
|
414
|
+
R.length < Y + K && (R = M.substring(D - Y, D) + M.substring(D, D + K), S = y.substring(0, L - Y), $ = y.substring(L + K), k = M.substring(0, D - Y), H = M.substring(D + K));
|
|
415
415
|
}
|
|
416
|
-
return
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
416
|
+
return R.length * 2 >= y.length ? [
|
|
417
|
+
S,
|
|
418
|
+
$,
|
|
419
|
+
k,
|
|
420
|
+
H,
|
|
421
|
+
R
|
|
422
422
|
] : null;
|
|
423
423
|
}
|
|
424
|
-
var c =
|
|
424
|
+
var c = a(
|
|
425
425
|
i,
|
|
426
|
-
|
|
426
|
+
s,
|
|
427
427
|
Math.ceil(i.length / 4)
|
|
428
|
-
), f =
|
|
428
|
+
), f = a(
|
|
429
429
|
i,
|
|
430
|
-
|
|
430
|
+
s,
|
|
431
431
|
Math.ceil(i.length / 2)
|
|
432
|
-
),
|
|
432
|
+
), h;
|
|
433
433
|
if (!c && !f)
|
|
434
434
|
return null;
|
|
435
|
-
f ? c ?
|
|
436
|
-
var
|
|
437
|
-
n.length > t.length ? (
|
|
438
|
-
var
|
|
439
|
-
return [
|
|
435
|
+
f ? c ? h = c[4].length > f[4].length ? c : f : h = f : h = c;
|
|
436
|
+
var p, d, _, m;
|
|
437
|
+
n.length > t.length ? (p = h[0], d = h[1], _ = h[2], m = h[3]) : (_ = h[0], m = h[1], p = h[2], d = h[3]);
|
|
438
|
+
var b = h[4];
|
|
439
|
+
return [p, d, _, m, b];
|
|
440
440
|
}, r.prototype.diff_cleanupSemantic = function(n) {
|
|
441
|
-
for (var t = !1, i = [],
|
|
442
|
-
n[
|
|
443
|
-
|
|
444
|
-
|
|
441
|
+
for (var t = !1, i = [], s = 0, o = null, a = 0, c = 0, f = 0, h = 0, p = 0; a < n.length; )
|
|
442
|
+
n[a][0] == g ? (i[s++] = a, c = h, f = p, h = 0, p = 0, o = n[a][1]) : (n[a][0] == u ? h += n[a][1].length : p += n[a][1].length, o && o.length <= Math.max(c, f) && o.length <= Math.max(
|
|
443
|
+
h,
|
|
444
|
+
p
|
|
445
445
|
) && (n.splice(
|
|
446
|
-
i[
|
|
446
|
+
i[s - 1],
|
|
447
447
|
0,
|
|
448
|
-
new r.Diff(l,
|
|
449
|
-
), n[i[
|
|
450
|
-
for (t && this.diff_cleanupMerge(n), this.diff_cleanupSemanticLossless(n),
|
|
451
|
-
if (n[
|
|
452
|
-
var
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
)), n[
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
)), n[
|
|
448
|
+
new r.Diff(l, o)
|
|
449
|
+
), n[i[s - 1] + 1][0] = u, s--, s--, a = s > 0 ? i[s - 1] : -1, c = 0, f = 0, h = 0, p = 0, o = null, t = !0)), a++;
|
|
450
|
+
for (t && this.diff_cleanupMerge(n), this.diff_cleanupSemanticLossless(n), a = 1; a < n.length; ) {
|
|
451
|
+
if (n[a - 1][0] == l && n[a][0] == u) {
|
|
452
|
+
var d = n[a - 1][1], _ = n[a][1], m = this.diff_commonOverlap_(d, _), b = this.diff_commonOverlap_(_, d);
|
|
453
|
+
m >= b ? (m >= d.length / 2 || m >= _.length / 2) && (n.splice(a, 0, new r.Diff(
|
|
454
|
+
g,
|
|
455
|
+
_.substring(0, m)
|
|
456
|
+
)), n[a - 1][1] = d.substring(0, d.length - m), n[a + 1][1] = _.substring(m), a++) : (b >= d.length / 2 || b >= _.length / 2) && (n.splice(a, 0, new r.Diff(
|
|
457
|
+
g,
|
|
458
|
+
d.substring(0, b)
|
|
459
|
+
)), n[a - 1][0] = u, n[a - 1][1] = _.substring(0, _.length - b), n[a + 1][0] = l, n[a + 1][1] = d.substring(b), a++), a++;
|
|
460
460
|
}
|
|
461
|
-
|
|
461
|
+
a++;
|
|
462
462
|
}
|
|
463
463
|
}, r.prototype.diff_cleanupSemanticLossless = function(n) {
|
|
464
|
-
function t(
|
|
465
|
-
if (!
|
|
464
|
+
function t(b, y) {
|
|
465
|
+
if (!b || !y)
|
|
466
466
|
return 6;
|
|
467
|
-
var
|
|
468
|
-
return
|
|
467
|
+
var M = b.charAt(b.length - 1), L = y.charAt(0), N = M.match(r.nonAlphaNumericRegex_), D = L.match(r.nonAlphaNumericRegex_), R = N && M.match(r.whitespaceRegex_), S = D && L.match(r.whitespaceRegex_), $ = R && M.match(r.linebreakRegex_), k = S && L.match(r.linebreakRegex_), H = $ && b.match(r.blanklineEndRegex_), K = k && y.match(r.blanklineStartRegex_);
|
|
468
|
+
return H || K ? 5 : $ || k ? 4 : N && !R && S ? 3 : R || S ? 2 : N || D ? 1 : 0;
|
|
469
469
|
}
|
|
470
470
|
for (var i = 1; i < n.length - 1; ) {
|
|
471
|
-
if (n[i - 1][0] ==
|
|
472
|
-
var
|
|
471
|
+
if (n[i - 1][0] == g && n[i + 1][0] == g) {
|
|
472
|
+
var s = n[i - 1][1], o = n[i][1], a = n[i + 1][1], c = this.diff_commonSuffix(s, o);
|
|
473
473
|
if (c) {
|
|
474
|
-
var f =
|
|
475
|
-
|
|
474
|
+
var f = o.substring(o.length - c);
|
|
475
|
+
s = s.substring(0, s.length - c), o = f + o.substring(0, o.length - c), a = f + a;
|
|
476
476
|
}
|
|
477
|
-
for (var
|
|
478
|
-
|
|
479
|
-
var
|
|
480
|
-
|
|
477
|
+
for (var h = s, p = o, d = a, _ = t(s, o) + t(o, a); o.charAt(0) === a.charAt(0); ) {
|
|
478
|
+
s += o.charAt(0), o = o.substring(1) + a.charAt(0), a = a.substring(1);
|
|
479
|
+
var m = t(s, o) + t(o, a);
|
|
480
|
+
m >= _ && (_ = m, h = s, p = o, d = a);
|
|
481
481
|
}
|
|
482
|
-
n[i - 1][1] !=
|
|
482
|
+
n[i - 1][1] != h && (h ? n[i - 1][1] = h : (n.splice(i - 1, 1), i--), n[i][1] = p, d ? n[i + 1][1] = d : (n.splice(i + 1, 1), i--));
|
|
483
483
|
}
|
|
484
484
|
i++;
|
|
485
485
|
}
|
|
486
486
|
}, r.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/, r.whitespaceRegex_ = /\s/, r.linebreakRegex_ = /[\r\n]/, r.blanklineEndRegex_ = /\n\r?\n$/, r.blanklineStartRegex_ = /^\r?\n\r?\n/, r.prototype.diff_cleanupEfficiency = function(n) {
|
|
487
|
-
for (var t = !1, i = [],
|
|
488
|
-
n[
|
|
489
|
-
i[
|
|
487
|
+
for (var t = !1, i = [], s = 0, o = null, a = 0, c = !1, f = !1, h = !1, p = !1; a < n.length; )
|
|
488
|
+
n[a][0] == g ? (n[a][1].length < this.Diff_EditCost && (h || p) ? (i[s++] = a, c = h, f = p, o = n[a][1]) : (s = 0, o = null), h = p = !1) : (n[a][0] == l ? p = !0 : h = !0, o && (c && f && h && p || o.length < this.Diff_EditCost / 2 && c + f + h + p == 3) && (n.splice(
|
|
489
|
+
i[s - 1],
|
|
490
490
|
0,
|
|
491
|
-
new r.Diff(l,
|
|
492
|
-
), n[i[
|
|
491
|
+
new r.Diff(l, o)
|
|
492
|
+
), n[i[s - 1] + 1][0] = u, s--, o = null, c && f ? (h = p = !0, s = 0) : (s--, a = s > 0 ? i[s - 1] : -1, h = p = !1), t = !0)), a++;
|
|
493
493
|
t && this.diff_cleanupMerge(n);
|
|
494
494
|
}, r.prototype.diff_cleanupMerge = function(n) {
|
|
495
|
-
n.push(new r.Diff(
|
|
496
|
-
for (var t = 0, i = 0,
|
|
495
|
+
n.push(new r.Diff(g, ""));
|
|
496
|
+
for (var t = 0, i = 0, s = 0, o = "", a = "", c; t < n.length; )
|
|
497
497
|
switch (n[t][0]) {
|
|
498
498
|
case u:
|
|
499
|
-
|
|
499
|
+
s++, a += n[t][1], t++;
|
|
500
500
|
break;
|
|
501
501
|
case l:
|
|
502
|
-
i++,
|
|
502
|
+
i++, o += n[t][1], t++;
|
|
503
503
|
break;
|
|
504
|
-
case
|
|
505
|
-
i +
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
)), t++),
|
|
504
|
+
case g:
|
|
505
|
+
i + s > 1 ? (i !== 0 && s !== 0 && (c = this.diff_commonPrefix(a, o), c !== 0 && (t - i - s > 0 && n[t - i - s - 1][0] == g ? n[t - i - s - 1][1] += a.substring(0, c) : (n.splice(0, 0, new r.Diff(
|
|
506
|
+
g,
|
|
507
|
+
a.substring(0, c)
|
|
508
|
+
)), t++), a = a.substring(c), o = o.substring(c)), c = this.diff_commonSuffix(a, o), c !== 0 && (n[t][1] = a.substring(a.length - c) + n[t][1], a = a.substring(0, a.length - c), o = o.substring(0, o.length - c))), t -= i + s, n.splice(t, i + s), o.length && (n.splice(
|
|
509
509
|
t,
|
|
510
510
|
0,
|
|
511
|
-
new r.Diff(l,
|
|
512
|
-
), t++),
|
|
511
|
+
new r.Diff(l, o)
|
|
512
|
+
), t++), a.length && (n.splice(
|
|
513
513
|
t,
|
|
514
514
|
0,
|
|
515
|
-
new r.Diff(u,
|
|
516
|
-
), t++), t++) : t !== 0 && n[t - 1][0] ==
|
|
515
|
+
new r.Diff(u, a)
|
|
516
|
+
), t++), t++) : t !== 0 && n[t - 1][0] == g ? (n[t - 1][1] += n[t][1], n.splice(t, 1)) : t++, s = 0, i = 0, o = "", a = "";
|
|
517
517
|
break;
|
|
518
518
|
}
|
|
519
519
|
n[n.length - 1][1] === "" && n.pop();
|
|
520
520
|
var f = !1;
|
|
521
521
|
for (t = 1; t < n.length - 1; )
|
|
522
|
-
n[t - 1][0] ==
|
|
522
|
+
n[t - 1][0] == g && n[t + 1][0] == g && (n[t][1].substring(n[t][1].length - n[t - 1][1].length) == n[t - 1][1] ? (n[t][1] = n[t - 1][1] + n[t][1].substring(0, n[t][1].length - n[t - 1][1].length), n[t + 1][1] = n[t - 1][1] + n[t + 1][1], n.splice(t - 1, 1), f = !0) : n[t][1].substring(0, n[t + 1][1].length) == n[t + 1][1] && (n[t - 1][1] += n[t + 1][1], n[t][1] = n[t][1].substring(n[t + 1][1].length) + n[t + 1][1], n.splice(t + 1, 1), f = !0)), t++;
|
|
523
523
|
f && this.diff_cleanupMerge(n);
|
|
524
524
|
}, r.prototype.diff_xIndex = function(n, t) {
|
|
525
|
-
var i = 0,
|
|
526
|
-
for (c = 0; c < n.length && (n[c][0] !== u && (i += n[c][1].length), n[c][0] !== l && (
|
|
527
|
-
|
|
528
|
-
return n.length != c && n[c][0] === l ?
|
|
525
|
+
var i = 0, s = 0, o = 0, a = 0, c;
|
|
526
|
+
for (c = 0; c < n.length && (n[c][0] !== u && (i += n[c][1].length), n[c][0] !== l && (s += n[c][1].length), !(i > t)); c++)
|
|
527
|
+
o = i, a = s;
|
|
528
|
+
return n.length != c && n[c][0] === l ? a : a + (t - o);
|
|
529
529
|
}, r.prototype.diff_prettyHtml = function(n) {
|
|
530
|
-
for (var t = [], i = /&/g,
|
|
531
|
-
var f = n[c][0],
|
|
530
|
+
for (var t = [], i = /&/g, s = /</g, o = />/g, a = /\n/g, c = 0; c < n.length; c++) {
|
|
531
|
+
var f = n[c][0], h = n[c][1], p = h.replace(i, "&").replace(s, "<").replace(o, ">").replace(a, "¶<br>");
|
|
532
532
|
switch (f) {
|
|
533
533
|
case u:
|
|
534
|
-
t[c] = '<ins style="background:#e6ffe6;">' +
|
|
534
|
+
t[c] = '<ins style="background:#e6ffe6;">' + p + "</ins>";
|
|
535
535
|
break;
|
|
536
536
|
case l:
|
|
537
|
-
t[c] = '<del style="background:#ffe6e6;">' +
|
|
537
|
+
t[c] = '<del style="background:#ffe6e6;">' + p + "</del>";
|
|
538
538
|
break;
|
|
539
|
-
case
|
|
540
|
-
t[c] = "<span>" +
|
|
539
|
+
case g:
|
|
540
|
+
t[c] = "<span>" + p + "</span>";
|
|
541
541
|
break;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -551,21 +551,21 @@ var dn = { exports: {} };
|
|
|
551
551
|
n[i][0] !== l && (t[i] = n[i][1]);
|
|
552
552
|
return t.join("");
|
|
553
553
|
}, r.prototype.diff_levenshtein = function(n) {
|
|
554
|
-
for (var t = 0, i = 0,
|
|
555
|
-
var
|
|
556
|
-
switch (
|
|
554
|
+
for (var t = 0, i = 0, s = 0, o = 0; o < n.length; o++) {
|
|
555
|
+
var a = n[o][0], c = n[o][1];
|
|
556
|
+
switch (a) {
|
|
557
557
|
case u:
|
|
558
558
|
i += c.length;
|
|
559
559
|
break;
|
|
560
560
|
case l:
|
|
561
|
-
|
|
561
|
+
s += c.length;
|
|
562
562
|
break;
|
|
563
|
-
case
|
|
564
|
-
t += Math.max(i,
|
|
563
|
+
case g:
|
|
564
|
+
t += Math.max(i, s), i = 0, s = 0;
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
return t += Math.max(i,
|
|
568
|
+
return t += Math.max(i, s), t;
|
|
569
569
|
}, r.prototype.diff_toDelta = function(n) {
|
|
570
570
|
for (var t = [], i = 0; i < n.length; i++)
|
|
571
571
|
switch (n[i][0]) {
|
|
@@ -575,37 +575,37 @@ var dn = { exports: {} };
|
|
|
575
575
|
case l:
|
|
576
576
|
t[i] = "-" + n[i][1].length;
|
|
577
577
|
break;
|
|
578
|
-
case
|
|
578
|
+
case g:
|
|
579
579
|
t[i] = "=" + n[i][1].length;
|
|
580
580
|
break;
|
|
581
581
|
}
|
|
582
582
|
return t.join(" ").replace(/%20/g, " ");
|
|
583
583
|
}, r.prototype.diff_fromDelta = function(n, t) {
|
|
584
|
-
for (var i = [],
|
|
585
|
-
var f =
|
|
586
|
-
switch (
|
|
584
|
+
for (var i = [], s = 0, o = 0, a = t.split(/\t/g), c = 0; c < a.length; c++) {
|
|
585
|
+
var f = a[c].substring(1);
|
|
586
|
+
switch (a[c].charAt(0)) {
|
|
587
587
|
case "+":
|
|
588
588
|
try {
|
|
589
|
-
i[
|
|
590
|
-
} catch (
|
|
589
|
+
i[s++] = new r.Diff(u, decodeURI(f));
|
|
590
|
+
} catch (d) {
|
|
591
591
|
throw new Error("Illegal escape in diff_fromDelta: " + f);
|
|
592
592
|
}
|
|
593
593
|
break;
|
|
594
594
|
case "-":
|
|
595
595
|
case "=":
|
|
596
|
-
var
|
|
597
|
-
if (isNaN(
|
|
596
|
+
var h = parseInt(f, 10);
|
|
597
|
+
if (isNaN(h) || h < 0)
|
|
598
598
|
throw new Error("Invalid number in diff_fromDelta: " + f);
|
|
599
|
-
var
|
|
600
|
-
|
|
599
|
+
var p = n.substring(o, o += h);
|
|
600
|
+
a[c].charAt(0) == "=" ? i[s++] = new r.Diff(g, p) : i[s++] = new r.Diff(l, p);
|
|
601
601
|
break;
|
|
602
602
|
default:
|
|
603
|
-
if (
|
|
604
|
-
throw new Error("Invalid diff operation in diff_fromDelta: " +
|
|
603
|
+
if (a[c])
|
|
604
|
+
throw new Error("Invalid diff operation in diff_fromDelta: " + a[c]);
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
throw new Error("Delta length (" +
|
|
607
|
+
if (o != n.length)
|
|
608
|
+
throw new Error("Delta length (" + o + ") does not equal source text length (" + n.length + ").");
|
|
609
609
|
return i;
|
|
610
610
|
}, r.prototype.match_main = function(n, t, i) {
|
|
611
611
|
if (n == null || t == null || i == null)
|
|
@@ -614,35 +614,35 @@ var dn = { exports: {} };
|
|
|
614
614
|
}, r.prototype.match_bitap_ = function(n, t, i) {
|
|
615
615
|
if (t.length > this.Match_MaxBits)
|
|
616
616
|
throw new Error("Pattern too long for this browser.");
|
|
617
|
-
var
|
|
618
|
-
function
|
|
619
|
-
var
|
|
620
|
-
return
|
|
617
|
+
var s = this.match_alphabet_(t), o = this;
|
|
618
|
+
function a(S, $) {
|
|
619
|
+
var k = S / t.length, H = Math.abs(i - $);
|
|
620
|
+
return o.Match_Distance ? k + H / o.Match_Distance : H ? 1 : k;
|
|
621
621
|
}
|
|
622
622
|
var c = this.Match_Threshold, f = n.indexOf(t, i);
|
|
623
|
-
f != -1 && (c = Math.min(
|
|
624
|
-
var
|
|
623
|
+
f != -1 && (c = Math.min(a(0, f), c), f = n.lastIndexOf(t, i + t.length), f != -1 && (c = Math.min(a(0, f), c)));
|
|
624
|
+
var h = 1 << t.length - 1;
|
|
625
625
|
f = -1;
|
|
626
|
-
for (var
|
|
627
|
-
for (
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
for (var
|
|
633
|
-
var
|
|
634
|
-
if (
|
|
635
|
-
var
|
|
636
|
-
if (
|
|
637
|
-
if (c =
|
|
638
|
-
|
|
626
|
+
for (var p, d, _ = t.length + n.length, m, b = 0; b < t.length; b++) {
|
|
627
|
+
for (p = 0, d = _; p < d; )
|
|
628
|
+
a(b, i + d) <= c ? p = d : _ = d, d = Math.floor((_ - p) / 2 + p);
|
|
629
|
+
_ = d;
|
|
630
|
+
var y = Math.max(1, i - d + 1), M = Math.min(i + d, n.length) + t.length, L = Array(M + 2);
|
|
631
|
+
L[M + 1] = (1 << b) - 1;
|
|
632
|
+
for (var N = M; N >= y; N--) {
|
|
633
|
+
var D = s[n.charAt(N - 1)];
|
|
634
|
+
if (b === 0 ? L[N] = (L[N + 1] << 1 | 1) & D : L[N] = (L[N + 1] << 1 | 1) & D | ((m[N + 1] | m[N]) << 1 | 1) | m[N + 1], L[N] & h) {
|
|
635
|
+
var R = a(b, N - 1);
|
|
636
|
+
if (R <= c)
|
|
637
|
+
if (c = R, f = N - 1, f > i)
|
|
638
|
+
y = Math.max(1, 2 * i - f);
|
|
639
639
|
else
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
if (
|
|
643
|
+
if (a(b + 1, i) > c)
|
|
644
644
|
break;
|
|
645
|
-
|
|
645
|
+
m = L;
|
|
646
646
|
}
|
|
647
647
|
return f;
|
|
648
648
|
}, r.prototype.match_alphabet_ = function(n) {
|
|
@@ -655,68 +655,68 @@ var dn = { exports: {} };
|
|
|
655
655
|
if (t.length != 0) {
|
|
656
656
|
if (n.start2 === null)
|
|
657
657
|
throw Error("patch not initialized");
|
|
658
|
-
for (var i = t.substring(n.start2, n.start2 + n.length1),
|
|
659
|
-
|
|
660
|
-
n.start2 -
|
|
661
|
-
n.start2 + n.length1 +
|
|
658
|
+
for (var i = t.substring(n.start2, n.start2 + n.length1), s = 0; t.indexOf(i) != t.lastIndexOf(i) && i.length < this.Match_MaxBits - this.Patch_Margin - this.Patch_Margin; )
|
|
659
|
+
s += this.Patch_Margin, i = t.substring(
|
|
660
|
+
n.start2 - s,
|
|
661
|
+
n.start2 + n.length1 + s
|
|
662
662
|
);
|
|
663
|
-
|
|
664
|
-
var
|
|
665
|
-
|
|
666
|
-
var
|
|
663
|
+
s += this.Patch_Margin;
|
|
664
|
+
var o = t.substring(n.start2 - s, n.start2);
|
|
665
|
+
o && n.diffs.unshift(new r.Diff(g, o));
|
|
666
|
+
var a = t.substring(
|
|
667
667
|
n.start2 + n.length1,
|
|
668
|
-
n.start2 + n.length1 +
|
|
668
|
+
n.start2 + n.length1 + s
|
|
669
669
|
);
|
|
670
|
-
|
|
670
|
+
a && n.diffs.push(new r.Diff(g, a)), n.start1 -= o.length, n.start2 -= o.length, n.length1 += o.length + a.length, n.length2 += o.length + a.length;
|
|
671
671
|
}
|
|
672
672
|
}, r.prototype.patch_make = function(n, t, i) {
|
|
673
|
-
var
|
|
673
|
+
var s, o;
|
|
674
674
|
if (typeof n == "string" && typeof t == "string" && typeof i == "undefined")
|
|
675
|
-
|
|
676
|
-
n,
|
|
677
|
-
|
|
675
|
+
s = /** @type {string} */
|
|
676
|
+
n, o = this.diff_main(
|
|
677
|
+
s,
|
|
678
678
|
/** @type {string} */
|
|
679
679
|
t,
|
|
680
680
|
!0
|
|
681
|
-
),
|
|
681
|
+
), o.length > 2 && (this.diff_cleanupSemantic(o), this.diff_cleanupEfficiency(o));
|
|
682
682
|
else if (n && typeof n == "object" && typeof t == "undefined" && typeof i == "undefined")
|
|
683
|
-
|
|
684
|
-
n,
|
|
683
|
+
o = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
684
|
+
n, s = this.diff_text1(o);
|
|
685
685
|
else if (typeof n == "string" && t && typeof t == "object" && typeof i == "undefined")
|
|
686
|
-
|
|
687
|
-
n,
|
|
686
|
+
s = /** @type {string} */
|
|
687
|
+
n, o = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
688
688
|
t;
|
|
689
689
|
else if (typeof n == "string" && typeof t == "string" && i && typeof i == "object")
|
|
690
|
-
|
|
691
|
-
n,
|
|
690
|
+
s = /** @type {string} */
|
|
691
|
+
n, o = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
692
692
|
i;
|
|
693
693
|
else
|
|
694
694
|
throw new Error("Unknown call format to patch_make.");
|
|
695
|
-
if (
|
|
695
|
+
if (o.length === 0)
|
|
696
696
|
return [];
|
|
697
|
-
for (var
|
|
698
|
-
var
|
|
699
|
-
switch (!f &&
|
|
697
|
+
for (var a = [], c = new r.patch_obj(), f = 0, h = 0, p = 0, d = s, _ = s, m = 0; m < o.length; m++) {
|
|
698
|
+
var b = o[m][0], y = o[m][1];
|
|
699
|
+
switch (!f && b !== g && (c.start1 = h, c.start2 = p), b) {
|
|
700
700
|
case u:
|
|
701
|
-
c.diffs[f++] =
|
|
701
|
+
c.diffs[f++] = o[m], c.length2 += y.length, _ = _.substring(0, p) + y + _.substring(p);
|
|
702
702
|
break;
|
|
703
703
|
case l:
|
|
704
|
-
c.length1 +=
|
|
704
|
+
c.length1 += y.length, c.diffs[f++] = o[m], _ = _.substring(0, p) + _.substring(p + y.length);
|
|
705
705
|
break;
|
|
706
|
-
case
|
|
707
|
-
|
|
706
|
+
case g:
|
|
707
|
+
y.length <= 2 * this.Patch_Margin && f && o.length != m + 1 ? (c.diffs[f++] = o[m], c.length1 += y.length, c.length2 += y.length) : y.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, d), a.push(c), c = new r.patch_obj(), f = 0, d = _, h = p);
|
|
708
708
|
break;
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
b !== u && (h += y.length), b !== l && (p += y.length);
|
|
711
711
|
}
|
|
712
|
-
return f && (this.patch_addContext_(c,
|
|
712
|
+
return f && (this.patch_addContext_(c, d), a.push(c)), a;
|
|
713
713
|
}, r.prototype.patch_deepCopy = function(n) {
|
|
714
714
|
for (var t = [], i = 0; i < n.length; i++) {
|
|
715
|
-
var
|
|
716
|
-
|
|
717
|
-
for (var
|
|
718
|
-
|
|
719
|
-
|
|
715
|
+
var s = n[i], o = new r.patch_obj();
|
|
716
|
+
o.diffs = [];
|
|
717
|
+
for (var a = 0; a < s.diffs.length; a++)
|
|
718
|
+
o.diffs[a] = new r.Diff(s.diffs[a][0], s.diffs[a][1]);
|
|
719
|
+
o.start1 = s.start1, o.start2 = s.start2, o.length1 = s.length1, o.length2 = s.length2, t[i] = o;
|
|
720
720
|
}
|
|
721
721
|
return t;
|
|
722
722
|
}, r.prototype.patch_apply = function(n, t) {
|
|
@@ -725,77 +725,77 @@ var dn = { exports: {} };
|
|
|
725
725
|
n = this.patch_deepCopy(n);
|
|
726
726
|
var i = this.patch_addPadding(n);
|
|
727
727
|
t = i + t + i, this.patch_splitMax(n);
|
|
728
|
-
for (var
|
|
729
|
-
var c = n[
|
|
730
|
-
if (f.length > this.Match_MaxBits ? (
|
|
728
|
+
for (var s = 0, o = [], a = 0; a < n.length; a++) {
|
|
729
|
+
var c = n[a].start2 + s, f = this.diff_text1(n[a].diffs), h, p = -1;
|
|
730
|
+
if (f.length > this.Match_MaxBits ? (h = this.match_main(
|
|
731
731
|
t,
|
|
732
732
|
f.substring(0, this.Match_MaxBits),
|
|
733
733
|
c
|
|
734
|
-
),
|
|
734
|
+
), h != -1 && (p = this.match_main(
|
|
735
735
|
t,
|
|
736
736
|
f.substring(f.length - this.Match_MaxBits),
|
|
737
737
|
c + f.length - this.Match_MaxBits
|
|
738
|
-
), (
|
|
739
|
-
|
|
738
|
+
), (p == -1 || h >= p) && (h = -1))) : h = this.match_main(t, f, c), h == -1)
|
|
739
|
+
o[a] = !1, s -= n[a].length2 - n[a].length1;
|
|
740
740
|
else {
|
|
741
|
-
|
|
742
|
-
var
|
|
743
|
-
if (
|
|
744
|
-
t = t.substring(0,
|
|
741
|
+
o[a] = !0, s = h - c;
|
|
742
|
+
var d;
|
|
743
|
+
if (p == -1 ? d = t.substring(h, h + f.length) : d = t.substring(h, p + this.Match_MaxBits), f == d)
|
|
744
|
+
t = t.substring(0, h) + this.diff_text2(n[a].diffs) + t.substring(h + f.length);
|
|
745
745
|
else {
|
|
746
|
-
var
|
|
747
|
-
if (f.length > this.Match_MaxBits && this.diff_levenshtein(
|
|
748
|
-
|
|
746
|
+
var _ = this.diff_main(f, d, !1);
|
|
747
|
+
if (f.length > this.Match_MaxBits && this.diff_levenshtein(_) / f.length > this.Patch_DeleteThreshold)
|
|
748
|
+
o[a] = !1;
|
|
749
749
|
else {
|
|
750
|
-
this.diff_cleanupSemanticLossless(
|
|
751
|
-
for (var
|
|
752
|
-
var
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
))),
|
|
750
|
+
this.diff_cleanupSemanticLossless(_);
|
|
751
|
+
for (var m = 0, b, y = 0; y < n[a].diffs.length; y++) {
|
|
752
|
+
var M = n[a].diffs[y];
|
|
753
|
+
M[0] !== g && (b = this.diff_xIndex(_, m)), M[0] === u ? t = t.substring(0, h + b) + M[1] + t.substring(h + b) : M[0] === l && (t = t.substring(0, h + b) + t.substring(h + this.diff_xIndex(
|
|
754
|
+
_,
|
|
755
|
+
m + M[1].length
|
|
756
|
+
))), M[0] !== l && (m += M[1].length);
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
return t = t.substring(i.length, t.length - i.length), [t,
|
|
762
|
+
return t = t.substring(i.length, t.length - i.length), [t, o];
|
|
763
763
|
}, r.prototype.patch_addPadding = function(n) {
|
|
764
|
-
for (var t = this.Patch_Margin, i = "",
|
|
765
|
-
i += String.fromCharCode(
|
|
766
|
-
for (var
|
|
767
|
-
n[
|
|
768
|
-
var
|
|
769
|
-
if (
|
|
770
|
-
|
|
771
|
-
else if (t >
|
|
772
|
-
var c = t -
|
|
773
|
-
|
|
764
|
+
for (var t = this.Patch_Margin, i = "", s = 1; s <= t; s++)
|
|
765
|
+
i += String.fromCharCode(s);
|
|
766
|
+
for (var s = 0; s < n.length; s++)
|
|
767
|
+
n[s].start1 += t, n[s].start2 += t;
|
|
768
|
+
var o = n[0], a = o.diffs;
|
|
769
|
+
if (a.length == 0 || a[0][0] != g)
|
|
770
|
+
a.unshift(new r.Diff(g, i)), o.start1 -= t, o.start2 -= t, o.length1 += t, o.length2 += t;
|
|
771
|
+
else if (t > a[0][1].length) {
|
|
772
|
+
var c = t - a[0][1].length;
|
|
773
|
+
a[0][1] = i.substring(a[0][1].length) + a[0][1], o.start1 -= c, o.start2 -= c, o.length1 += c, o.length2 += c;
|
|
774
774
|
}
|
|
775
|
-
if (
|
|
776
|
-
|
|
777
|
-
else if (t >
|
|
778
|
-
var c = t -
|
|
779
|
-
|
|
775
|
+
if (o = n[n.length - 1], a = o.diffs, a.length == 0 || a[a.length - 1][0] != g)
|
|
776
|
+
a.push(new r.Diff(g, i)), o.length1 += t, o.length2 += t;
|
|
777
|
+
else if (t > a[a.length - 1][1].length) {
|
|
778
|
+
var c = t - a[a.length - 1][1].length;
|
|
779
|
+
a[a.length - 1][1] += i.substring(0, c), o.length1 += c, o.length2 += c;
|
|
780
780
|
}
|
|
781
781
|
return i;
|
|
782
782
|
}, r.prototype.patch_splitMax = function(n) {
|
|
783
783
|
for (var t = this.Match_MaxBits, i = 0; i < n.length; i++)
|
|
784
784
|
if (!(n[i].length1 <= t)) {
|
|
785
|
-
var
|
|
785
|
+
var s = n[i];
|
|
786
786
|
n.splice(i--, 1);
|
|
787
|
-
for (var
|
|
788
|
-
var f = new r.patch_obj(),
|
|
789
|
-
for (f.start1 =
|
|
790
|
-
var
|
|
791
|
-
|
|
787
|
+
for (var o = s.start1, a = s.start2, c = ""; s.diffs.length !== 0; ) {
|
|
788
|
+
var f = new r.patch_obj(), h = !0;
|
|
789
|
+
for (f.start1 = o - c.length, f.start2 = a - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new r.Diff(g, c))); s.diffs.length !== 0 && f.length1 < t - this.Patch_Margin; ) {
|
|
790
|
+
var p = s.diffs[0][0], d = s.diffs[0][1];
|
|
791
|
+
p === u ? (f.length2 += d.length, a += d.length, f.diffs.push(s.diffs.shift()), h = !1) : p === l && f.diffs.length == 1 && f.diffs[0][0] == g && d.length > 2 * t ? (f.length1 += d.length, o += d.length, h = !1, f.diffs.push(new r.Diff(p, d)), s.diffs.shift()) : (d = d.substring(
|
|
792
792
|
0,
|
|
793
793
|
t - f.length1 - this.Patch_Margin
|
|
794
|
-
), f.length1 +=
|
|
794
|
+
), f.length1 += d.length, o += d.length, p === g ? (f.length2 += d.length, a += d.length) : h = !1, f.diffs.push(new r.Diff(p, d)), d == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(d.length));
|
|
795
795
|
}
|
|
796
796
|
c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
|
|
797
|
-
var
|
|
798
|
-
|
|
797
|
+
var _ = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
|
|
798
|
+
_ !== "" && (f.length1 += _.length, f.length2 += _.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === g ? f.diffs[f.diffs.length - 1][1] += _ : f.diffs.push(new r.Diff(g, _))), h || n.splice(++i, 0, f);
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
}, r.prototype.patch_toText = function(n) {
|
|
@@ -807,31 +807,31 @@ var dn = { exports: {} };
|
|
|
807
807
|
if (!n)
|
|
808
808
|
return t;
|
|
809
809
|
for (var i = n.split(`
|
|
810
|
-
`),
|
|
811
|
-
var
|
|
812
|
-
if (!
|
|
813
|
-
throw new Error("Invalid patch string: " + i[
|
|
810
|
+
`), s = 0, o = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; s < i.length; ) {
|
|
811
|
+
var a = i[s].match(o);
|
|
812
|
+
if (!a)
|
|
813
|
+
throw new Error("Invalid patch string: " + i[s]);
|
|
814
814
|
var c = new r.patch_obj();
|
|
815
|
-
for (t.push(c), c.start1 = parseInt(
|
|
816
|
-
var f = i[
|
|
815
|
+
for (t.push(c), c.start1 = parseInt(a[1], 10), a[2] === "" ? (c.start1--, c.length1 = 1) : a[2] == "0" ? c.length1 = 0 : (c.start1--, c.length1 = parseInt(a[2], 10)), c.start2 = parseInt(a[3], 10), a[4] === "" ? (c.start2--, c.length2 = 1) : a[4] == "0" ? c.length2 = 0 : (c.start2--, c.length2 = parseInt(a[4], 10)), s++; s < i.length; ) {
|
|
816
|
+
var f = i[s].charAt(0);
|
|
817
817
|
try {
|
|
818
|
-
var
|
|
819
|
-
} catch (
|
|
820
|
-
throw new Error("Illegal escape in patch_fromText: " +
|
|
818
|
+
var h = decodeURI(i[s].substring(1));
|
|
819
|
+
} catch (p) {
|
|
820
|
+
throw new Error("Illegal escape in patch_fromText: " + h);
|
|
821
821
|
}
|
|
822
822
|
if (f == "-")
|
|
823
|
-
c.diffs.push(new r.Diff(l,
|
|
823
|
+
c.diffs.push(new r.Diff(l, h));
|
|
824
824
|
else if (f == "+")
|
|
825
|
-
c.diffs.push(new r.Diff(u,
|
|
825
|
+
c.diffs.push(new r.Diff(u, h));
|
|
826
826
|
else if (f == " ")
|
|
827
|
-
c.diffs.push(new r.Diff(
|
|
827
|
+
c.diffs.push(new r.Diff(g, h));
|
|
828
828
|
else {
|
|
829
829
|
if (f == "@")
|
|
830
830
|
break;
|
|
831
831
|
if (f !== "")
|
|
832
|
-
throw new Error('Invalid patch mode "' + f + '" in: ' +
|
|
832
|
+
throw new Error('Invalid patch mode "' + f + '" in: ' + h);
|
|
833
833
|
}
|
|
834
|
-
|
|
834
|
+
s++;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
return t;
|
|
@@ -841,25 +841,25 @@ var dn = { exports: {} };
|
|
|
841
841
|
var n, t;
|
|
842
842
|
this.length1 === 0 ? n = this.start1 + ",0" : this.length1 == 1 ? n = this.start1 + 1 : n = this.start1 + 1 + "," + this.length1, this.length2 === 0 ? t = this.start2 + ",0" : this.length2 == 1 ? t = this.start2 + 1 : t = this.start2 + 1 + "," + this.length2;
|
|
843
843
|
for (var i = ["@@ -" + n + " +" + t + ` @@
|
|
844
|
-
`],
|
|
845
|
-
switch (this.diffs[
|
|
844
|
+
`], s, o = 0; o < this.diffs.length; o++) {
|
|
845
|
+
switch (this.diffs[o][0]) {
|
|
846
846
|
case u:
|
|
847
|
-
|
|
847
|
+
s = "+";
|
|
848
848
|
break;
|
|
849
849
|
case l:
|
|
850
|
-
|
|
850
|
+
s = "-";
|
|
851
851
|
break;
|
|
852
|
-
case
|
|
853
|
-
|
|
852
|
+
case g:
|
|
853
|
+
s = " ";
|
|
854
854
|
break;
|
|
855
855
|
}
|
|
856
|
-
i[
|
|
856
|
+
i[o + 1] = s + encodeURI(this.diffs[o][1]) + `
|
|
857
857
|
`;
|
|
858
858
|
}
|
|
859
859
|
return i.join("").replace(/%20/g, " ");
|
|
860
|
-
}, e.exports = r, e.exports.diff_match_patch = r, e.exports.DIFF_DELETE = l, e.exports.DIFF_INSERT = u, e.exports.DIFF_EQUAL =
|
|
860
|
+
}, e.exports = r, e.exports.diff_match_patch = r, e.exports.DIFF_DELETE = l, e.exports.DIFF_INSERT = u, e.exports.DIFF_EQUAL = g;
|
|
861
861
|
})(dn);
|
|
862
|
-
var
|
|
862
|
+
var He = dn.exports;
|
|
863
863
|
function pn(e) {
|
|
864
864
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
865
865
|
throw new Error("map is read-only");
|
|
@@ -881,16 +881,16 @@ class rn {
|
|
|
881
881
|
this.isMatchIgnored = !0;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function _n(e) {
|
|
885
885
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function le(e, ...r) {
|
|
888
888
|
const l = /* @__PURE__ */ Object.create(null);
|
|
889
889
|
for (const u in e)
|
|
890
890
|
l[u] = e[u];
|
|
891
891
|
return r.forEach(function(u) {
|
|
892
|
-
for (const
|
|
893
|
-
l[
|
|
892
|
+
for (const g in u)
|
|
893
|
+
l[g] = u[g];
|
|
894
894
|
}), /** @type {T} */
|
|
895
895
|
l;
|
|
896
896
|
}
|
|
@@ -901,7 +901,7 @@ const qn = "</span>", sn = (e) => !!e.scope, et = (e, { prefix: r }) => {
|
|
|
901
901
|
const l = e.split(".");
|
|
902
902
|
return [
|
|
903
903
|
`${r}${l.shift()}`,
|
|
904
|
-
...l.map((u,
|
|
904
|
+
...l.map((u, g) => `${u}${"_".repeat(g + 1)}`)
|
|
905
905
|
].join(" ");
|
|
906
906
|
}
|
|
907
907
|
return `${r}${e}`;
|
|
@@ -921,7 +921,7 @@ class nt {
|
|
|
921
921
|
*
|
|
922
922
|
* @param {string} text */
|
|
923
923
|
addText(r) {
|
|
924
|
-
this.buffer +=
|
|
924
|
+
this.buffer += _n(r);
|
|
925
925
|
}
|
|
926
926
|
/**
|
|
927
927
|
* Adds a node open to the output stream (if needed)
|
|
@@ -1050,27 +1050,27 @@ class tt extends We {
|
|
|
1050
1050
|
return this.closeAllNodes(), !0;
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function we(e) {
|
|
1054
1054
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1056
|
+
function bn(e) {
|
|
1057
|
+
return fe("(?=", e, ")");
|
|
1058
1058
|
}
|
|
1059
1059
|
function rt(e) {
|
|
1060
|
-
return
|
|
1060
|
+
return fe("(?:", e, ")*");
|
|
1061
1061
|
}
|
|
1062
1062
|
function it(e) {
|
|
1063
|
-
return
|
|
1063
|
+
return fe("(?:", e, ")?");
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return e.map((l) =>
|
|
1065
|
+
function fe(...e) {
|
|
1066
|
+
return e.map((l) => we(l)).join("");
|
|
1067
1067
|
}
|
|
1068
1068
|
function st(e) {
|
|
1069
1069
|
const r = e[e.length - 1];
|
|
1070
1070
|
return typeof r == "object" && r.constructor === Object ? (e.splice(e.length - 1, 1), r) : {};
|
|
1071
1071
|
}
|
|
1072
1072
|
function Qe(...e) {
|
|
1073
|
-
return "(" + (st(e).capture ? "" : "?:") + e.map((u) =>
|
|
1073
|
+
return "(" + (st(e).capture ? "" : "?:") + e.map((u) => we(u)).join("|") + ")";
|
|
1074
1074
|
}
|
|
1075
1075
|
function En(e) {
|
|
1076
1076
|
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
@@ -1084,27 +1084,27 @@ function Ze(e, { joinWith: r }) {
|
|
|
1084
1084
|
let l = 0;
|
|
1085
1085
|
return e.map((u) => {
|
|
1086
1086
|
l += 1;
|
|
1087
|
-
const
|
|
1088
|
-
let n =
|
|
1087
|
+
const g = l;
|
|
1088
|
+
let n = we(u), t = "";
|
|
1089
1089
|
for (; n.length > 0; ) {
|
|
1090
1090
|
const i = ot.exec(n);
|
|
1091
1091
|
if (!i) {
|
|
1092
1092
|
t += n;
|
|
1093
1093
|
break;
|
|
1094
1094
|
}
|
|
1095
|
-
t += n.substring(0, i.index), n = n.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? t += "\\" + String(Number(i[1]) +
|
|
1095
|
+
t += n.substring(0, i.index), n = n.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? t += "\\" + String(Number(i[1]) + g) : (t += i[0], i[0] === "(" && l++);
|
|
1096
1096
|
}
|
|
1097
1097
|
return t;
|
|
1098
1098
|
}).map((u) => `(${u})`).join(r);
|
|
1099
1099
|
}
|
|
1100
|
-
const lt = /\b\B/,
|
|
1100
|
+
const lt = /\b\B/, mn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\\d+)?", yn = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", wn = "\\b(0b[01]+)", ct = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", ut = (e = {}) => {
|
|
1101
1101
|
const r = /^#![ ]*\//;
|
|
1102
|
-
return e.binary && (e.begin =
|
|
1102
|
+
return e.binary && (e.begin = fe(
|
|
1103
1103
|
r,
|
|
1104
1104
|
/.*\b/,
|
|
1105
1105
|
e.binary,
|
|
1106
1106
|
/\b.*/
|
|
1107
|
-
)),
|
|
1107
|
+
)), le({
|
|
1108
1108
|
scope: "meta",
|
|
1109
1109
|
begin: r,
|
|
1110
1110
|
end: /$/,
|
|
@@ -1114,7 +1114,7 @@ const lt = /\b\B/, vn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1114
1114
|
l.index !== 0 && u.ignoreMatch();
|
|
1115
1115
|
}
|
|
1116
1116
|
}, e);
|
|
1117
|
-
},
|
|
1117
|
+
}, Ne = {
|
|
1118
1118
|
begin: "\\\\[\\s\\S]",
|
|
1119
1119
|
relevance: 0
|
|
1120
1120
|
}, ft = {
|
|
@@ -1122,17 +1122,17 @@ const lt = /\b\B/, vn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1122
1122
|
begin: "'",
|
|
1123
1123
|
end: "'",
|
|
1124
1124
|
illegal: "\\n",
|
|
1125
|
-
contains: [
|
|
1125
|
+
contains: [Ne]
|
|
1126
1126
|
}, gt = {
|
|
1127
1127
|
scope: "string",
|
|
1128
1128
|
begin: '"',
|
|
1129
1129
|
end: '"',
|
|
1130
1130
|
illegal: "\\n",
|
|
1131
|
-
contains: [
|
|
1131
|
+
contains: [Ne]
|
|
1132
1132
|
}, ht = {
|
|
1133
1133
|
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/
|
|
1134
1134
|
}, Be = function(e, r, l = {}) {
|
|
1135
|
-
const u =
|
|
1135
|
+
const u = le(
|
|
1136
1136
|
{
|
|
1137
1137
|
scope: "comment",
|
|
1138
1138
|
begin: e,
|
|
@@ -1150,7 +1150,7 @@ const lt = /\b\B/, vn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1150
1150
|
excludeBegin: !0,
|
|
1151
1151
|
relevance: 0
|
|
1152
1152
|
});
|
|
1153
|
-
const
|
|
1153
|
+
const g = Qe(
|
|
1154
1154
|
// list of common 1 and 2 letter words in English
|
|
1155
1155
|
"I",
|
|
1156
1156
|
"a",
|
|
@@ -1186,45 +1186,45 @@ const lt = /\b\B/, vn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1186
1186
|
//
|
|
1187
1187
|
// for a visual example please see:
|
|
1188
1188
|
// https://github.com/highlightjs/highlight.js/issues/2827
|
|
1189
|
-
begin:
|
|
1189
|
+
begin: fe(
|
|
1190
1190
|
/[ ]+/,
|
|
1191
1191
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
|
1192
1192
|
"(",
|
|
1193
|
-
|
|
1193
|
+
g,
|
|
1194
1194
|
/[.]?[:]?([.][ ]|[ ])/,
|
|
1195
1195
|
"){3}"
|
|
1196
1196
|
)
|
|
1197
1197
|
// look for 3 words in a row
|
|
1198
1198
|
}
|
|
1199
1199
|
), u;
|
|
1200
|
-
}, dt = Be("//", "$"), pt = Be("/\\*", "\\*/"),
|
|
1200
|
+
}, dt = Be("//", "$"), pt = Be("/\\*", "\\*/"), _t = Be("#", "$"), bt = {
|
|
1201
1201
|
scope: "number",
|
|
1202
|
-
begin:
|
|
1202
|
+
begin: vn,
|
|
1203
1203
|
relevance: 0
|
|
1204
1204
|
}, Et = {
|
|
1205
1205
|
scope: "number",
|
|
1206
1206
|
begin: yn,
|
|
1207
1207
|
relevance: 0
|
|
1208
|
-
},
|
|
1208
|
+
}, mt = {
|
|
1209
1209
|
scope: "number",
|
|
1210
1210
|
begin: wn,
|
|
1211
1211
|
relevance: 0
|
|
1212
|
-
},
|
|
1212
|
+
}, vt = {
|
|
1213
1213
|
scope: "regexp",
|
|
1214
1214
|
begin: /\/(?=[^/\n]*\/)/,
|
|
1215
1215
|
end: /\/[gimuy]*/,
|
|
1216
1216
|
contains: [
|
|
1217
|
-
|
|
1217
|
+
Ne,
|
|
1218
1218
|
{
|
|
1219
1219
|
begin: /\[/,
|
|
1220
1220
|
end: /\]/,
|
|
1221
1221
|
relevance: 0,
|
|
1222
|
-
contains: [
|
|
1222
|
+
contains: [Ne]
|
|
1223
1223
|
}
|
|
1224
1224
|
]
|
|
1225
1225
|
}, yt = {
|
|
1226
1226
|
scope: "title",
|
|
1227
|
-
begin:
|
|
1227
|
+
begin: mn,
|
|
1228
1228
|
relevance: 0
|
|
1229
1229
|
}, wt = {
|
|
1230
1230
|
scope: "title",
|
|
@@ -1252,8 +1252,8 @@ const lt = /\b\B/, vn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\
|
|
|
1252
1252
|
var De = /* @__PURE__ */ Object.freeze({
|
|
1253
1253
|
__proto__: null,
|
|
1254
1254
|
APOS_STRING_MODE: ft,
|
|
1255
|
-
BACKSLASH_ESCAPE:
|
|
1256
|
-
BINARY_NUMBER_MODE:
|
|
1255
|
+
BACKSLASH_ESCAPE: Ne,
|
|
1256
|
+
BINARY_NUMBER_MODE: mt,
|
|
1257
1257
|
BINARY_NUMBER_RE: wn,
|
|
1258
1258
|
COMMENT: Be,
|
|
1259
1259
|
C_BLOCK_COMMENT_MODE: pt,
|
|
@@ -1261,15 +1261,15 @@ var De = /* @__PURE__ */ Object.freeze({
|
|
|
1261
1261
|
C_NUMBER_MODE: Et,
|
|
1262
1262
|
C_NUMBER_RE: yn,
|
|
1263
1263
|
END_SAME_AS_BEGIN: At,
|
|
1264
|
-
HASH_COMMENT_MODE:
|
|
1265
|
-
IDENT_RE:
|
|
1264
|
+
HASH_COMMENT_MODE: _t,
|
|
1265
|
+
IDENT_RE: mn,
|
|
1266
1266
|
MATCH_NOTHING_RE: lt,
|
|
1267
1267
|
METHOD_GUARD: Nt,
|
|
1268
|
-
NUMBER_MODE:
|
|
1269
|
-
NUMBER_RE:
|
|
1268
|
+
NUMBER_MODE: bt,
|
|
1269
|
+
NUMBER_RE: vn,
|
|
1270
1270
|
PHRASAL_WORDS_MODE: ht,
|
|
1271
1271
|
QUOTE_STRING_MODE: gt,
|
|
1272
|
-
REGEXP_MODE:
|
|
1272
|
+
REGEXP_MODE: vt,
|
|
1273
1273
|
RE_STARTERS_RE: ct,
|
|
1274
1274
|
SHEBANG: ut,
|
|
1275
1275
|
TITLE_MODE: yt,
|
|
@@ -1288,14 +1288,14 @@ function St(e, r) {
|
|
|
1288
1288
|
function Dt(e, r) {
|
|
1289
1289
|
Array.isArray(e.illegal) && (e.illegal = Qe(...e.illegal));
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function Lt(e, r) {
|
|
1292
1292
|
if (e.match) {
|
|
1293
1293
|
if (e.begin || e.end)
|
|
1294
1294
|
throw new Error("begin & end are not supported with match");
|
|
1295
1295
|
e.begin = e.match, delete e.match;
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function Rt(e, r) {
|
|
1299
1299
|
e.relevance === void 0 && (e.relevance = 1);
|
|
1300
1300
|
}
|
|
1301
1301
|
const Ot = (e, r) => {
|
|
@@ -1306,7 +1306,7 @@ const Ot = (e, r) => {
|
|
|
1306
1306
|
const l = Object.assign({}, e);
|
|
1307
1307
|
Object.keys(e).forEach((u) => {
|
|
1308
1308
|
delete e[u];
|
|
1309
|
-
}), e.keywords = l.keywords, e.begin =
|
|
1309
|
+
}), e.keywords = l.keywords, e.begin = fe(l.beforeMatch, bn(l.begin)), e.starts = {
|
|
1310
1310
|
relevance: 0,
|
|
1311
1311
|
contains: [
|
|
1312
1312
|
Object.assign(l, { endsParent: !0 })
|
|
@@ -1330,16 +1330,16 @@ const Ot = (e, r) => {
|
|
|
1330
1330
|
], It = "keyword";
|
|
1331
1331
|
function Nn(e, r, l = It) {
|
|
1332
1332
|
const u = /* @__PURE__ */ Object.create(null);
|
|
1333
|
-
return typeof e == "string" ?
|
|
1333
|
+
return typeof e == "string" ? g(l, e.split(" ")) : Array.isArray(e) ? g(l, e) : Object.keys(e).forEach(function(n) {
|
|
1334
1334
|
Object.assign(
|
|
1335
1335
|
u,
|
|
1336
1336
|
Nn(e[n], r, n)
|
|
1337
1337
|
);
|
|
1338
1338
|
}), u;
|
|
1339
|
-
function
|
|
1339
|
+
function g(n, t) {
|
|
1340
1340
|
r && (t = t.map((i) => i.toLowerCase())), t.forEach(function(i) {
|
|
1341
|
-
const
|
|
1342
|
-
u[
|
|
1341
|
+
const s = i.split("|");
|
|
1342
|
+
u[s[0]] = [n, kt(s[0], s[1])];
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
@@ -1349,48 +1349,48 @@ function kt(e, r) {
|
|
|
1349
1349
|
function Bt(e) {
|
|
1350
1350
|
return Ct.includes(e.toLowerCase());
|
|
1351
1351
|
}
|
|
1352
|
-
const on = {},
|
|
1352
|
+
const on = {}, ue = (e) => {
|
|
1353
1353
|
console.error(e);
|
|
1354
1354
|
}, ln = (e, ...r) => {
|
|
1355
1355
|
console.log(`WARN: ${e}`, ...r);
|
|
1356
|
-
},
|
|
1356
|
+
}, he = (e, r) => {
|
|
1357
1357
|
on[`${e}/${r}`] || (console.log(`Deprecated as of ${e}. ${r}`), on[`${e}/${r}`] = !0);
|
|
1358
1358
|
}, Ie = new Error();
|
|
1359
1359
|
function An(e, r, { key: l }) {
|
|
1360
1360
|
let u = 0;
|
|
1361
|
-
const
|
|
1361
|
+
const g = e[l], n = {}, t = {};
|
|
1362
1362
|
for (let i = 1; i <= r.length; i++)
|
|
1363
|
-
t[i + u] =
|
|
1363
|
+
t[i + u] = g[i], n[i + u] = !0, u += En(r[i - 1]);
|
|
1364
1364
|
e[l] = t, e[l]._emit = n, e[l]._multi = !0;
|
|
1365
1365
|
}
|
|
1366
1366
|
function $t(e) {
|
|
1367
1367
|
if (Array.isArray(e.begin)) {
|
|
1368
1368
|
if (e.skip || e.excludeBegin || e.returnBegin)
|
|
1369
|
-
throw
|
|
1369
|
+
throw ue("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Ie;
|
|
1370
1370
|
if (typeof e.beginScope != "object" || e.beginScope === null)
|
|
1371
|
-
throw
|
|
1371
|
+
throw ue("beginScope must be object"), Ie;
|
|
1372
1372
|
An(e, e.begin, { key: "beginScope" }), e.begin = Ze(e.begin, { joinWith: "" });
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function Ut(e) {
|
|
1376
1376
|
if (Array.isArray(e.end)) {
|
|
1377
1377
|
if (e.skip || e.excludeEnd || e.returnEnd)
|
|
1378
|
-
throw
|
|
1378
|
+
throw ue("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Ie;
|
|
1379
1379
|
if (typeof e.endScope != "object" || e.endScope === null)
|
|
1380
|
-
throw
|
|
1380
|
+
throw ue("endScope must be object"), Ie;
|
|
1381
1381
|
An(e, e.end, { key: "endScope" }), e.end = Ze(e.end, { joinWith: "" });
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function Pt(e) {
|
|
1385
1385
|
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
1386
1386
|
}
|
|
1387
|
-
function xt(e) {
|
|
1388
|
-
Ut(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), $t(e), Pt(e);
|
|
1389
|
-
}
|
|
1390
1387
|
function Ht(e) {
|
|
1388
|
+
Pt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), $t(e), Ut(e);
|
|
1389
|
+
}
|
|
1390
|
+
function Ft(e) {
|
|
1391
1391
|
function r(t, i) {
|
|
1392
1392
|
return new RegExp(
|
|
1393
|
-
|
|
1393
|
+
we(t),
|
|
1394
1394
|
"m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (i ? "g" : "")
|
|
1395
1395
|
);
|
|
1396
1396
|
}
|
|
@@ -1399,22 +1399,22 @@ function Ht(e) {
|
|
|
1399
1399
|
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
1400
1400
|
}
|
|
1401
1401
|
// @ts-ignore
|
|
1402
|
-
addRule(i,
|
|
1403
|
-
|
|
1402
|
+
addRule(i, s) {
|
|
1403
|
+
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += En(i) + 1;
|
|
1404
1404
|
}
|
|
1405
1405
|
compile() {
|
|
1406
1406
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
1407
|
-
const i = this.regexes.map((
|
|
1407
|
+
const i = this.regexes.map((s) => s[1]);
|
|
1408
1408
|
this.matcherRe = r(Ze(i, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
1409
1409
|
}
|
|
1410
1410
|
/** @param {string} s */
|
|
1411
1411
|
exec(i) {
|
|
1412
1412
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
1413
|
-
const
|
|
1414
|
-
if (!
|
|
1413
|
+
const s = this.matcherRe.exec(i);
|
|
1414
|
+
if (!s)
|
|
1415
1415
|
return null;
|
|
1416
|
-
const
|
|
1417
|
-
return
|
|
1416
|
+
const o = s.findIndex((c, f) => f > 0 && c !== void 0), a = this.matchIndexes[o];
|
|
1417
|
+
return s.splice(0, o), Object.assign(s, a);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
class u {
|
|
@@ -1425,8 +1425,8 @@ function Ht(e) {
|
|
|
1425
1425
|
getMatcher(i) {
|
|
1426
1426
|
if (this.multiRegexes[i])
|
|
1427
1427
|
return this.multiRegexes[i];
|
|
1428
|
-
const
|
|
1429
|
-
return this.rules.slice(i).forEach(([
|
|
1428
|
+
const s = new l();
|
|
1429
|
+
return this.rules.slice(i).forEach(([o, a]) => s.addRule(o, a)), s.compile(), this.multiRegexes[i] = s, s;
|
|
1430
1430
|
}
|
|
1431
1431
|
resumingScanAtSamePosition() {
|
|
1432
1432
|
return this.regexIndex !== 0;
|
|
@@ -1435,64 +1435,64 @@ function Ht(e) {
|
|
|
1435
1435
|
this.regexIndex = 0;
|
|
1436
1436
|
}
|
|
1437
1437
|
// @ts-ignore
|
|
1438
|
-
addRule(i,
|
|
1439
|
-
this.rules.push([i,
|
|
1438
|
+
addRule(i, s) {
|
|
1439
|
+
this.rules.push([i, s]), s.type === "begin" && this.count++;
|
|
1440
1440
|
}
|
|
1441
1441
|
/** @param {string} s */
|
|
1442
1442
|
exec(i) {
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1445
|
-
let
|
|
1446
|
-
if (this.resumingScanAtSamePosition() && !(
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1443
|
+
const s = this.getMatcher(this.regexIndex);
|
|
1444
|
+
s.lastIndex = this.lastIndex;
|
|
1445
|
+
let o = s.exec(i);
|
|
1446
|
+
if (this.resumingScanAtSamePosition() && !(o && o.index === this.lastIndex)) {
|
|
1447
|
+
const a = this.getMatcher(0);
|
|
1448
|
+
a.lastIndex = this.lastIndex + 1, o = a.exec(i);
|
|
1449
1449
|
}
|
|
1450
|
-
return
|
|
1450
|
+
return o && (this.regexIndex += o.position + 1, this.regexIndex === this.count && this.considerAll()), o;
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function g(t) {
|
|
1454
1454
|
const i = new u();
|
|
1455
|
-
return t.contains.forEach((
|
|
1455
|
+
return t.contains.forEach((s) => i.addRule(s.begin, { rule: s, type: "begin" })), t.terminatorEnd && i.addRule(t.terminatorEnd, { type: "end" }), t.illegal && i.addRule(t.illegal, { type: "illegal" }), i;
|
|
1456
1456
|
}
|
|
1457
1457
|
function n(t, i) {
|
|
1458
|
-
const
|
|
1458
|
+
const s = (
|
|
1459
1459
|
/** @type CompiledMode */
|
|
1460
1460
|
t
|
|
1461
1461
|
);
|
|
1462
1462
|
if (t.isCompiled)
|
|
1463
|
-
return
|
|
1463
|
+
return s;
|
|
1464
1464
|
[
|
|
1465
1465
|
Tt,
|
|
1466
1466
|
// do this early so compiler extensions generally don't have to worry about
|
|
1467
1467
|
// the distinction between match/begin
|
|
1468
|
-
|
|
1469
|
-
|
|
1468
|
+
Lt,
|
|
1469
|
+
Ht,
|
|
1470
1470
|
Ot
|
|
1471
|
-
].forEach((
|
|
1471
|
+
].forEach((a) => a(t, i)), e.compilerExtensions.forEach((a) => a(t, i)), t.__beforeBegin = null, [
|
|
1472
1472
|
St,
|
|
1473
1473
|
// do this later so compiler extensions that come earlier have access to the
|
|
1474
1474
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1475
1475
|
Dt,
|
|
1476
1476
|
// default to 1 relevance if not specified
|
|
1477
|
-
|
|
1478
|
-
].forEach((
|
|
1479
|
-
let
|
|
1480
|
-
return typeof t.keywords == "object" && t.keywords.$pattern && (t.keywords = Object.assign({}, t.keywords),
|
|
1477
|
+
Rt
|
|
1478
|
+
].forEach((a) => a(t, i)), t.isCompiled = !0;
|
|
1479
|
+
let o = null;
|
|
1480
|
+
return typeof t.keywords == "object" && t.keywords.$pattern && (t.keywords = Object.assign({}, t.keywords), o = t.keywords.$pattern, delete t.keywords.$pattern), o = o || /\w+/, t.keywords && (t.keywords = Nn(t.keywords, e.case_insensitive)), s.keywordPatternRe = r(o, !0), i && (t.begin || (t.begin = /\B|\b/), s.beginRe = r(s.begin), !t.end && !t.endsWithParent && (t.end = /\B|\b/), t.end && (s.endRe = r(s.end)), s.terminatorEnd = we(s.end) || "", t.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (t.end ? "|" : "") + i.terminatorEnd)), t.illegal && (s.illegalRe = r(
|
|
1481
1481
|
/** @type {RegExp | string} */
|
|
1482
1482
|
t.illegal
|
|
1483
|
-
)), t.contains || (t.contains = []), t.contains = [].concat(...t.contains.map(function(
|
|
1484
|
-
return
|
|
1485
|
-
})), t.contains.forEach(function(
|
|
1483
|
+
)), t.contains || (t.contains = []), t.contains = [].concat(...t.contains.map(function(a) {
|
|
1484
|
+
return zt(a === "self" ? t : a);
|
|
1485
|
+
})), t.contains.forEach(function(a) {
|
|
1486
1486
|
n(
|
|
1487
1487
|
/** @type Mode */
|
|
1488
|
-
|
|
1489
|
-
|
|
1488
|
+
a,
|
|
1489
|
+
s
|
|
1490
1490
|
);
|
|
1491
|
-
}), t.starts && n(t.starts, i),
|
|
1491
|
+
}), t.starts && n(t.starts, i), s.matcher = g(s), s;
|
|
1492
1492
|
}
|
|
1493
1493
|
if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
|
|
1494
1494
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
1495
|
-
return e.classNameAliases =
|
|
1495
|
+
return e.classNameAliases = le(e.classNameAliases || {}), n(
|
|
1496
1496
|
/** @type Mode */
|
|
1497
1497
|
e
|
|
1498
1498
|
);
|
|
@@ -1500,20 +1500,20 @@ function Ht(e) {
|
|
|
1500
1500
|
function Mn(e) {
|
|
1501
1501
|
return e ? e.endsWithParent || Mn(e.starts) : !1;
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function zt(e) {
|
|
1504
1504
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(r) {
|
|
1505
|
-
return
|
|
1506
|
-
})), e.cachedVariants ? e.cachedVariants : Mn(e) ?
|
|
1505
|
+
return le(e, { variants: null }, r);
|
|
1506
|
+
})), e.cachedVariants ? e.cachedVariants : Mn(e) ? le(e, { starts: e.starts ? le(e.starts) : null }) : Object.isFrozen(e) ? le(e) : e;
|
|
1507
1507
|
}
|
|
1508
|
-
var
|
|
1508
|
+
var xt = "11.9.0";
|
|
1509
1509
|
class Gt extends Error {
|
|
1510
1510
|
constructor(r, l) {
|
|
1511
1511
|
super(r), this.name = "HTMLInjectionError", this.html = l;
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
|
-
const
|
|
1514
|
+
const Fe = _n, cn = le, un = Symbol("nomatch"), Kt = 7, Tn = function(e) {
|
|
1515
1515
|
const r = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ Object.create(null), u = [];
|
|
1516
|
-
let
|
|
1516
|
+
let g = !0;
|
|
1517
1517
|
const n = "Could not find the language '{}', did you forget to load/include a language module?", t = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
1518
1518
|
let i = {
|
|
1519
1519
|
ignoreUnescapedHTML: !1,
|
|
@@ -1527,411 +1527,411 @@ const He = bn, cn = oe, un = Symbol("nomatch"), Kt = 7, Tn = function(e) {
|
|
|
1527
1527
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
1528
1528
|
__emitter: tt
|
|
1529
1529
|
};
|
|
1530
|
-
function
|
|
1531
|
-
return i.noHighlightRe.test(
|
|
1530
|
+
function s(E) {
|
|
1531
|
+
return i.noHighlightRe.test(E);
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1534
|
-
let
|
|
1535
|
-
|
|
1536
|
-
const
|
|
1537
|
-
if (
|
|
1538
|
-
const
|
|
1539
|
-
return
|
|
1533
|
+
function o(E) {
|
|
1534
|
+
let A = E.className + " ";
|
|
1535
|
+
A += E.parentNode ? E.parentNode.className : "";
|
|
1536
|
+
const C = i.languageDetectRe.exec(A);
|
|
1537
|
+
if (C) {
|
|
1538
|
+
const B = S(C[1]);
|
|
1539
|
+
return B || (ln(n.replace("{}", C[1])), ln("Falling back to no-highlight mode for this block.", E)), B ? C[1] : "no-highlight";
|
|
1540
1540
|
}
|
|
1541
|
-
return
|
|
1541
|
+
return A.split(/\s+/).find((B) => s(B) || S(B));
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1544
|
-
let
|
|
1545
|
-
typeof
|
|
1546
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),
|
|
1547
|
-
const
|
|
1548
|
-
code:
|
|
1549
|
-
language:
|
|
1543
|
+
function a(E, A, C) {
|
|
1544
|
+
let B = "", x = "";
|
|
1545
|
+
typeof A == "object" ? (B = E, C = A.ignoreIllegals, x = A.language) : (he("10.7.0", "highlight(lang, code, ...args) has been deprecated."), he("10.7.0", `Please use highlight(code, options) instead.
|
|
1546
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), x = E, B = A), C === void 0 && (C = !0);
|
|
1547
|
+
const X = {
|
|
1548
|
+
code: B,
|
|
1549
|
+
language: x
|
|
1550
1550
|
};
|
|
1551
|
-
|
|
1552
|
-
const q =
|
|
1553
|
-
return q.code =
|
|
1551
|
+
oe("before:highlight", X);
|
|
1552
|
+
const q = X.result ? X.result : c(X.language, X.code, C);
|
|
1553
|
+
return q.code = X.code, oe("after:highlight", q), q;
|
|
1554
1554
|
}
|
|
1555
|
-
function c(
|
|
1556
|
-
const
|
|
1557
|
-
function
|
|
1558
|
-
return
|
|
1555
|
+
function c(E, A, C, B) {
|
|
1556
|
+
const x = /* @__PURE__ */ Object.create(null);
|
|
1557
|
+
function X(v, T) {
|
|
1558
|
+
return v.keywords[T];
|
|
1559
1559
|
}
|
|
1560
1560
|
function q() {
|
|
1561
|
-
if (!
|
|
1562
|
-
Q.addText(
|
|
1561
|
+
if (!O.keywords) {
|
|
1562
|
+
Q.addText(z);
|
|
1563
1563
|
return;
|
|
1564
1564
|
}
|
|
1565
|
-
let
|
|
1566
|
-
|
|
1567
|
-
let
|
|
1568
|
-
for (;
|
|
1569
|
-
|
|
1570
|
-
const
|
|
1565
|
+
let v = 0;
|
|
1566
|
+
O.keywordPatternRe.lastIndex = 0;
|
|
1567
|
+
let T = O.keywordPatternRe.exec(z), I = "";
|
|
1568
|
+
for (; T; ) {
|
|
1569
|
+
I += z.substring(v, T.index);
|
|
1570
|
+
const P = te.case_insensitive ? T[0].toLowerCase() : T[0], Z = X(O, P);
|
|
1571
1571
|
if (Z) {
|
|
1572
|
-
const [re,
|
|
1573
|
-
if (Q.addText(
|
|
1574
|
-
|
|
1572
|
+
const [re, Pn] = Z;
|
|
1573
|
+
if (Q.addText(I), I = "", x[P] = (x[P] || 0) + 1, x[P] <= Kt && (Se += Pn), re.startsWith("_"))
|
|
1574
|
+
I += T[0];
|
|
1575
1575
|
else {
|
|
1576
|
-
const
|
|
1577
|
-
ne(
|
|
1576
|
+
const Hn = te.classNameAliases[re] || re;
|
|
1577
|
+
ne(T[0], Hn);
|
|
1578
1578
|
}
|
|
1579
1579
|
} else
|
|
1580
|
-
|
|
1581
|
-
|
|
1580
|
+
I += T[0];
|
|
1581
|
+
v = O.keywordPatternRe.lastIndex, T = O.keywordPatternRe.exec(z);
|
|
1582
1582
|
}
|
|
1583
|
-
|
|
1583
|
+
I += z.substring(v), Q.addText(I);
|
|
1584
1584
|
}
|
|
1585
1585
|
function Me() {
|
|
1586
|
-
if (
|
|
1586
|
+
if (z === "")
|
|
1587
1587
|
return;
|
|
1588
|
-
let
|
|
1589
|
-
if (typeof
|
|
1590
|
-
if (!r[
|
|
1591
|
-
Q.addText(
|
|
1588
|
+
let v = null;
|
|
1589
|
+
if (typeof O.subLanguage == "string") {
|
|
1590
|
+
if (!r[O.subLanguage]) {
|
|
1591
|
+
Q.addText(z);
|
|
1592
1592
|
return;
|
|
1593
1593
|
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1594
|
+
v = c(O.subLanguage, z, !0, qe[O.subLanguage]), qe[O.subLanguage] = /** @type {CompiledMode} */
|
|
1595
|
+
v._top;
|
|
1596
1596
|
} else
|
|
1597
|
-
|
|
1598
|
-
|
|
1597
|
+
v = h(z, O.subLanguage.length ? O.subLanguage : null);
|
|
1598
|
+
O.relevance > 0 && (Se += v.relevance), Q.__addSublanguage(v._emitter, v.language);
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1601
|
-
|
|
1600
|
+
function j() {
|
|
1601
|
+
O.subLanguage != null ? Me() : q(), z = "";
|
|
1602
1602
|
}
|
|
1603
|
-
function ne(
|
|
1604
|
-
|
|
1603
|
+
function ne(v, T) {
|
|
1604
|
+
v !== "" && (Q.startScope(T), Q.addText(v), Q.endScope());
|
|
1605
1605
|
}
|
|
1606
|
-
function Xe(
|
|
1607
|
-
let
|
|
1608
|
-
const
|
|
1609
|
-
for (;
|
|
1610
|
-
if (!
|
|
1611
|
-
|
|
1606
|
+
function Xe(v, T) {
|
|
1607
|
+
let I = 1;
|
|
1608
|
+
const P = T.length - 1;
|
|
1609
|
+
for (; I <= P; ) {
|
|
1610
|
+
if (!v._emit[I]) {
|
|
1611
|
+
I++;
|
|
1612
1612
|
continue;
|
|
1613
1613
|
}
|
|
1614
|
-
const Z = te.classNameAliases[
|
|
1615
|
-
Z ? ne(re, Z) : (
|
|
1614
|
+
const Z = te.classNameAliases[v[I]] || v[I], re = T[I];
|
|
1615
|
+
Z ? ne(re, Z) : (z = re, q(), z = ""), I++;
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1619
|
-
return
|
|
1618
|
+
function je(v, T) {
|
|
1619
|
+
return v.scope && typeof v.scope == "string" && Q.openNode(te.classNameAliases[v.scope] || v.scope), v.beginScope && (v.beginScope._wrap ? (ne(z, te.classNameAliases[v.beginScope._wrap] || v.beginScope._wrap), z = "") : v.beginScope._multi && (Xe(v.beginScope, T), z = "")), O = Object.create(v, { parent: { value: O } }), O;
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1622
|
-
let
|
|
1623
|
-
if (
|
|
1624
|
-
if (
|
|
1625
|
-
const Z = new rn(
|
|
1626
|
-
|
|
1621
|
+
function Ve(v, T, I) {
|
|
1622
|
+
let P = at(v.endRe, I);
|
|
1623
|
+
if (P) {
|
|
1624
|
+
if (v["on:end"]) {
|
|
1625
|
+
const Z = new rn(v);
|
|
1626
|
+
v["on:end"](T, Z), Z.isMatchIgnored && (P = !1);
|
|
1627
1627
|
}
|
|
1628
|
-
if (
|
|
1629
|
-
for (;
|
|
1630
|
-
|
|
1631
|
-
return
|
|
1628
|
+
if (P) {
|
|
1629
|
+
for (; v.endsParent && v.parent; )
|
|
1630
|
+
v = v.parent;
|
|
1631
|
+
return v;
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
|
-
if (
|
|
1635
|
-
return
|
|
1634
|
+
if (v.endsWithParent)
|
|
1635
|
+
return Ve(v.parent, T, I);
|
|
1636
1636
|
}
|
|
1637
|
-
function In(
|
|
1638
|
-
return
|
|
1637
|
+
function In(v) {
|
|
1638
|
+
return O.matcher.regexIndex === 0 ? (z += v[0], 1) : (Pe = !0, 0);
|
|
1639
1639
|
}
|
|
1640
|
-
function kn(
|
|
1641
|
-
const
|
|
1640
|
+
function kn(v) {
|
|
1641
|
+
const T = v[0], I = v.rule, P = new rn(I), Z = [I.__beforeBegin, I["on:begin"]];
|
|
1642
1642
|
for (const re of Z)
|
|
1643
|
-
if (re && (re(
|
|
1644
|
-
return In(
|
|
1645
|
-
return
|
|
1643
|
+
if (re && (re(v, P), P.isMatchIgnored))
|
|
1644
|
+
return In(T);
|
|
1645
|
+
return I.skip ? z += T : (I.excludeBegin && (z += T), j(), !I.returnBegin && !I.excludeBegin && (z = T)), je(I, v), I.returnBegin ? 0 : T.length;
|
|
1646
1646
|
}
|
|
1647
|
-
function Bn(
|
|
1648
|
-
const
|
|
1649
|
-
if (
|
|
1647
|
+
function Bn(v) {
|
|
1648
|
+
const T = v[0], I = A.substring(v.index), P = Ve(O, v, I);
|
|
1649
|
+
if (!P)
|
|
1650
1650
|
return un;
|
|
1651
|
-
const Z =
|
|
1652
|
-
|
|
1651
|
+
const Z = O;
|
|
1652
|
+
O.endScope && O.endScope._wrap ? (j(), ne(T, O.endScope._wrap)) : O.endScope && O.endScope._multi ? (j(), Xe(O.endScope, v)) : Z.skip ? z += T : (Z.returnEnd || Z.excludeEnd || (z += T), j(), Z.excludeEnd && (z = T));
|
|
1653
1653
|
do
|
|
1654
|
-
|
|
1655
|
-
while (
|
|
1656
|
-
return
|
|
1654
|
+
O.scope && Q.closeNode(), !O.skip && !O.subLanguage && (Se += O.relevance), O = O.parent;
|
|
1655
|
+
while (O !== P.parent);
|
|
1656
|
+
return P.starts && je(P.starts, v), Z.returnEnd ? 0 : T.length;
|
|
1657
1657
|
}
|
|
1658
1658
|
function $n() {
|
|
1659
|
-
const
|
|
1660
|
-
for (let
|
|
1661
|
-
|
|
1662
|
-
|
|
1659
|
+
const v = [];
|
|
1660
|
+
for (let T = O; T !== te; T = T.parent)
|
|
1661
|
+
T.scope && v.unshift(T.scope);
|
|
1662
|
+
v.forEach((T) => Q.openNode(T));
|
|
1663
1663
|
}
|
|
1664
1664
|
let Te = {};
|
|
1665
|
-
function Je(
|
|
1666
|
-
const
|
|
1667
|
-
if (
|
|
1668
|
-
return
|
|
1669
|
-
if (Te.type === "begin" &&
|
|
1670
|
-
if (
|
|
1671
|
-
const
|
|
1672
|
-
throw
|
|
1665
|
+
function Je(v, T) {
|
|
1666
|
+
const I = T && T[0];
|
|
1667
|
+
if (z += v, I == null)
|
|
1668
|
+
return j(), 0;
|
|
1669
|
+
if (Te.type === "begin" && T.type === "end" && Te.index === T.index && I === "") {
|
|
1670
|
+
if (z += A.slice(T.index, T.index + 1), !g) {
|
|
1671
|
+
const P = new Error(`0 width match regex (${E})`);
|
|
1672
|
+
throw P.languageName = E, P.badRule = Te.rule, P;
|
|
1673
1673
|
}
|
|
1674
1674
|
return 1;
|
|
1675
1675
|
}
|
|
1676
|
-
if (Te =
|
|
1677
|
-
return kn(
|
|
1678
|
-
if (
|
|
1679
|
-
const
|
|
1680
|
-
throw
|
|
1681
|
-
} else if (
|
|
1682
|
-
const
|
|
1683
|
-
if (
|
|
1684
|
-
return
|
|
1676
|
+
if (Te = T, T.type === "begin")
|
|
1677
|
+
return kn(T);
|
|
1678
|
+
if (T.type === "illegal" && !C) {
|
|
1679
|
+
const P = new Error('Illegal lexeme "' + I + '" for mode "' + (O.scope || "<unnamed>") + '"');
|
|
1680
|
+
throw P.mode = O, P;
|
|
1681
|
+
} else if (T.type === "end") {
|
|
1682
|
+
const P = Bn(T);
|
|
1683
|
+
if (P !== un)
|
|
1684
|
+
return P;
|
|
1685
1685
|
}
|
|
1686
|
-
if (
|
|
1686
|
+
if (T.type === "illegal" && I === "")
|
|
1687
1687
|
return 1;
|
|
1688
|
-
if (
|
|
1688
|
+
if (Ue > 1e5 && Ue > T.index * 3)
|
|
1689
1689
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
1690
|
-
return
|
|
1690
|
+
return z += I, I.length;
|
|
1691
1691
|
}
|
|
1692
|
-
const te =
|
|
1692
|
+
const te = S(E);
|
|
1693
1693
|
if (!te)
|
|
1694
|
-
throw
|
|
1695
|
-
const
|
|
1696
|
-
let $e = "",
|
|
1694
|
+
throw ue(n.replace("{}", E)), new Error('Unknown language: "' + E + '"');
|
|
1695
|
+
const Un = Ft(te);
|
|
1696
|
+
let $e = "", O = B || Un;
|
|
1697
1697
|
const qe = {}, Q = new i.__emitter(i);
|
|
1698
1698
|
$n();
|
|
1699
|
-
let
|
|
1699
|
+
let z = "", Se = 0, ce = 0, Ue = 0, Pe = !1;
|
|
1700
1700
|
try {
|
|
1701
1701
|
if (te.__emitTokens)
|
|
1702
|
-
te.__emitTokens(
|
|
1702
|
+
te.__emitTokens(A, Q);
|
|
1703
1703
|
else {
|
|
1704
|
-
for (
|
|
1705
|
-
|
|
1706
|
-
const
|
|
1707
|
-
if (!
|
|
1704
|
+
for (O.matcher.considerAll(); ; ) {
|
|
1705
|
+
Ue++, Pe ? Pe = !1 : O.matcher.considerAll(), O.matcher.lastIndex = ce;
|
|
1706
|
+
const v = O.matcher.exec(A);
|
|
1707
|
+
if (!v)
|
|
1708
1708
|
break;
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1709
|
+
const T = A.substring(ce, v.index), I = Je(T, v);
|
|
1710
|
+
ce = v.index + I;
|
|
1711
1711
|
}
|
|
1712
|
-
Je(
|
|
1712
|
+
Je(A.substring(ce));
|
|
1713
1713
|
}
|
|
1714
1714
|
return Q.finalize(), $e = Q.toHTML(), {
|
|
1715
|
-
language:
|
|
1715
|
+
language: E,
|
|
1716
1716
|
value: $e,
|
|
1717
1717
|
relevance: Se,
|
|
1718
1718
|
illegal: !1,
|
|
1719
1719
|
_emitter: Q,
|
|
1720
|
-
_top:
|
|
1720
|
+
_top: O
|
|
1721
1721
|
};
|
|
1722
|
-
} catch (
|
|
1723
|
-
if (
|
|
1722
|
+
} catch (v) {
|
|
1723
|
+
if (v.message && v.message.includes("Illegal"))
|
|
1724
1724
|
return {
|
|
1725
|
-
language:
|
|
1726
|
-
value:
|
|
1725
|
+
language: E,
|
|
1726
|
+
value: Fe(A),
|
|
1727
1727
|
illegal: !0,
|
|
1728
1728
|
relevance: 0,
|
|
1729
1729
|
_illegalBy: {
|
|
1730
|
-
message:
|
|
1731
|
-
index:
|
|
1732
|
-
context:
|
|
1733
|
-
mode:
|
|
1730
|
+
message: v.message,
|
|
1731
|
+
index: ce,
|
|
1732
|
+
context: A.slice(ce - 100, ce + 100),
|
|
1733
|
+
mode: v.mode,
|
|
1734
1734
|
resultSoFar: $e
|
|
1735
1735
|
},
|
|
1736
1736
|
_emitter: Q
|
|
1737
1737
|
};
|
|
1738
|
-
if (
|
|
1738
|
+
if (g)
|
|
1739
1739
|
return {
|
|
1740
|
-
language:
|
|
1741
|
-
value:
|
|
1740
|
+
language: E,
|
|
1741
|
+
value: Fe(A),
|
|
1742
1742
|
illegal: !1,
|
|
1743
1743
|
relevance: 0,
|
|
1744
|
-
errorRaised:
|
|
1744
|
+
errorRaised: v,
|
|
1745
1745
|
_emitter: Q,
|
|
1746
|
-
_top:
|
|
1746
|
+
_top: O
|
|
1747
1747
|
};
|
|
1748
|
-
throw
|
|
1748
|
+
throw v;
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
function f(
|
|
1752
|
-
const
|
|
1753
|
-
value:
|
|
1751
|
+
function f(E) {
|
|
1752
|
+
const A = {
|
|
1753
|
+
value: Fe(E),
|
|
1754
1754
|
illegal: !1,
|
|
1755
1755
|
relevance: 0,
|
|
1756
1756
|
_top: t,
|
|
1757
1757
|
_emitter: new i.__emitter(i)
|
|
1758
1758
|
};
|
|
1759
|
-
return
|
|
1759
|
+
return A._emitter.addText(E), A;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1762
|
-
|
|
1763
|
-
const
|
|
1764
|
-
(
|
|
1761
|
+
function h(E, A) {
|
|
1762
|
+
A = A || i.languages || Object.keys(r);
|
|
1763
|
+
const C = f(E), B = A.filter(S).filter(k).map(
|
|
1764
|
+
(j) => c(j, E, !1)
|
|
1765
1765
|
);
|
|
1766
|
-
|
|
1767
|
-
const
|
|
1768
|
-
if (
|
|
1769
|
-
return ne.relevance -
|
|
1770
|
-
if (
|
|
1771
|
-
if (
|
|
1766
|
+
B.unshift(C);
|
|
1767
|
+
const x = B.sort((j, ne) => {
|
|
1768
|
+
if (j.relevance !== ne.relevance)
|
|
1769
|
+
return ne.relevance - j.relevance;
|
|
1770
|
+
if (j.language && ne.language) {
|
|
1771
|
+
if (S(j.language).supersetOf === ne.language)
|
|
1772
1772
|
return 1;
|
|
1773
|
-
if (
|
|
1773
|
+
if (S(ne.language).supersetOf === j.language)
|
|
1774
1774
|
return -1;
|
|
1775
1775
|
}
|
|
1776
1776
|
return 0;
|
|
1777
|
-
}), [
|
|
1777
|
+
}), [X, q] = x, Me = X;
|
|
1778
1778
|
return Me.secondBest = q, Me;
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1781
|
-
const
|
|
1782
|
-
|
|
1780
|
+
function p(E, A, C) {
|
|
1781
|
+
const B = A && l[A] || C;
|
|
1782
|
+
E.classList.add("hljs"), E.classList.add(`language-${B}`);
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1785
|
-
let
|
|
1786
|
-
const
|
|
1787
|
-
if (
|
|
1784
|
+
function d(E) {
|
|
1785
|
+
let A = null;
|
|
1786
|
+
const C = o(E);
|
|
1787
|
+
if (s(C))
|
|
1788
1788
|
return;
|
|
1789
|
-
if (
|
|
1789
|
+
if (oe(
|
|
1790
1790
|
"before:highlightElement",
|
|
1791
|
-
{ el:
|
|
1792
|
-
),
|
|
1793
|
-
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",
|
|
1791
|
+
{ el: E, language: C }
|
|
1792
|
+
), E.dataset.highlighted) {
|
|
1793
|
+
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", E);
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
1796
|
-
if (
|
|
1796
|
+
if (E.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(E)), i.throwUnescapedHTML))
|
|
1797
1797
|
throw new Gt(
|
|
1798
1798
|
"One of your code blocks includes unescaped HTML.",
|
|
1799
|
-
|
|
1799
|
+
E.innerHTML
|
|
1800
1800
|
);
|
|
1801
|
-
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1804
|
-
language:
|
|
1801
|
+
A = E;
|
|
1802
|
+
const B = A.textContent, x = C ? a(B, { language: C, ignoreIllegals: !0 }) : h(B);
|
|
1803
|
+
E.innerHTML = x.value, E.dataset.highlighted = "yes", p(E, C, x.language), E.result = {
|
|
1804
|
+
language: x.language,
|
|
1805
1805
|
// TODO: remove with version 11.0
|
|
1806
|
-
re:
|
|
1807
|
-
relevance:
|
|
1808
|
-
},
|
|
1809
|
-
language:
|
|
1810
|
-
relevance:
|
|
1811
|
-
}),
|
|
1806
|
+
re: x.relevance,
|
|
1807
|
+
relevance: x.relevance
|
|
1808
|
+
}, x.secondBest && (E.secondBest = {
|
|
1809
|
+
language: x.secondBest.language,
|
|
1810
|
+
relevance: x.secondBest.relevance
|
|
1811
|
+
}), oe("after:highlightElement", { el: E, result: x, text: B });
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1814
|
-
i = cn(i,
|
|
1813
|
+
function _(E) {
|
|
1814
|
+
i = cn(i, E);
|
|
1815
1815
|
}
|
|
1816
|
-
const
|
|
1817
|
-
|
|
1816
|
+
const m = () => {
|
|
1817
|
+
M(), he("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
1818
1818
|
};
|
|
1819
|
-
function
|
|
1820
|
-
|
|
1819
|
+
function b() {
|
|
1820
|
+
M(), he("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
1821
1821
|
}
|
|
1822
|
-
let
|
|
1823
|
-
function
|
|
1822
|
+
let y = !1;
|
|
1823
|
+
function M() {
|
|
1824
1824
|
if (document.readyState === "loading") {
|
|
1825
|
-
|
|
1825
|
+
y = !0;
|
|
1826
1826
|
return;
|
|
1827
1827
|
}
|
|
1828
|
-
document.querySelectorAll(i.cssSelector).forEach(
|
|
1828
|
+
document.querySelectorAll(i.cssSelector).forEach(d);
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1831
|
-
|
|
1830
|
+
function L() {
|
|
1831
|
+
y && M();
|
|
1832
1832
|
}
|
|
1833
|
-
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
|
1834
|
-
function
|
|
1835
|
-
let
|
|
1833
|
+
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", L, !1);
|
|
1834
|
+
function N(E, A) {
|
|
1835
|
+
let C = null;
|
|
1836
1836
|
try {
|
|
1837
|
-
|
|
1838
|
-
} catch (
|
|
1839
|
-
if (
|
|
1840
|
-
|
|
1837
|
+
C = A(e);
|
|
1838
|
+
} catch (B) {
|
|
1839
|
+
if (ue("Language definition for '{}' could not be registered.".replace("{}", E)), g)
|
|
1840
|
+
ue(B);
|
|
1841
1841
|
else
|
|
1842
|
-
throw
|
|
1843
|
-
|
|
1842
|
+
throw B;
|
|
1843
|
+
C = t;
|
|
1844
1844
|
}
|
|
1845
|
-
|
|
1845
|
+
C.name || (C.name = E), r[E] = C, C.rawDefinition = A.bind(null, e), C.aliases && $(C.aliases, { languageName: E });
|
|
1846
1846
|
}
|
|
1847
|
-
function
|
|
1848
|
-
delete r[
|
|
1849
|
-
for (const
|
|
1850
|
-
l[
|
|
1847
|
+
function D(E) {
|
|
1848
|
+
delete r[E];
|
|
1849
|
+
for (const A of Object.keys(l))
|
|
1850
|
+
l[A] === E && delete l[A];
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function R() {
|
|
1853
1853
|
return Object.keys(r);
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1856
|
-
return
|
|
1855
|
+
function S(E) {
|
|
1856
|
+
return E = (E || "").toLowerCase(), r[E] || r[l[E]];
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1859
|
-
typeof
|
|
1860
|
-
l[
|
|
1858
|
+
function $(E, { languageName: A }) {
|
|
1859
|
+
typeof E == "string" && (E = [E]), E.forEach((C) => {
|
|
1860
|
+
l[C.toLowerCase()] = A;
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
const
|
|
1865
|
-
return
|
|
1863
|
+
function k(E) {
|
|
1864
|
+
const A = S(E);
|
|
1865
|
+
return A && !A.disableAutodetect;
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
Object.assign({ block:
|
|
1867
|
+
function H(E) {
|
|
1868
|
+
E["before:highlightBlock"] && !E["before:highlightElement"] && (E["before:highlightElement"] = (A) => {
|
|
1869
|
+
E["before:highlightBlock"](
|
|
1870
|
+
Object.assign({ block: A.el }, A)
|
|
1871
1871
|
);
|
|
1872
|
-
}),
|
|
1873
|
-
|
|
1874
|
-
Object.assign({ block:
|
|
1872
|
+
}), E["after:highlightBlock"] && !E["after:highlightElement"] && (E["after:highlightElement"] = (A) => {
|
|
1873
|
+
E["after:highlightBlock"](
|
|
1874
|
+
Object.assign({ block: A.el }, A)
|
|
1875
1875
|
);
|
|
1876
1876
|
});
|
|
1877
1877
|
}
|
|
1878
|
-
function K(
|
|
1879
|
-
|
|
1878
|
+
function K(E) {
|
|
1879
|
+
H(E), u.push(E);
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1882
|
-
const
|
|
1883
|
-
|
|
1881
|
+
function Y(E) {
|
|
1882
|
+
const A = u.indexOf(E);
|
|
1883
|
+
A !== -1 && u.splice(A, 1);
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1886
|
-
const
|
|
1887
|
-
u.forEach(function(
|
|
1888
|
-
|
|
1885
|
+
function oe(E, A) {
|
|
1886
|
+
const C = E;
|
|
1887
|
+
u.forEach(function(B) {
|
|
1888
|
+
B[C] && B[C](A);
|
|
1889
1889
|
});
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1892
|
-
return
|
|
1891
|
+
function ge(E) {
|
|
1892
|
+
return he("10.7.0", "highlightBlock will be removed entirely in v12.0"), he("10.7.0", "Please use highlightElement now."), d(E);
|
|
1893
1893
|
}
|
|
1894
1894
|
Object.assign(e, {
|
|
1895
|
-
highlight:
|
|
1896
|
-
highlightAuto:
|
|
1897
|
-
highlightAll:
|
|
1898
|
-
highlightElement:
|
|
1895
|
+
highlight: a,
|
|
1896
|
+
highlightAuto: h,
|
|
1897
|
+
highlightAll: M,
|
|
1898
|
+
highlightElement: d,
|
|
1899
1899
|
// TODO: Remove with v12 API
|
|
1900
|
-
highlightBlock:
|
|
1901
|
-
configure:
|
|
1902
|
-
initHighlighting:
|
|
1903
|
-
initHighlightingOnLoad:
|
|
1904
|
-
registerLanguage:
|
|
1905
|
-
unregisterLanguage:
|
|
1906
|
-
listLanguages:
|
|
1907
|
-
getLanguage:
|
|
1908
|
-
registerAliases:
|
|
1909
|
-
autoDetection:
|
|
1900
|
+
highlightBlock: ge,
|
|
1901
|
+
configure: _,
|
|
1902
|
+
initHighlighting: m,
|
|
1903
|
+
initHighlightingOnLoad: b,
|
|
1904
|
+
registerLanguage: N,
|
|
1905
|
+
unregisterLanguage: D,
|
|
1906
|
+
listLanguages: R,
|
|
1907
|
+
getLanguage: S,
|
|
1908
|
+
registerAliases: $,
|
|
1909
|
+
autoDetection: k,
|
|
1910
1910
|
inherit: cn,
|
|
1911
1911
|
addPlugin: K,
|
|
1912
|
-
removePlugin:
|
|
1912
|
+
removePlugin: Y
|
|
1913
1913
|
}), e.debugMode = function() {
|
|
1914
|
-
|
|
1914
|
+
g = !1;
|
|
1915
1915
|
}, e.safeMode = function() {
|
|
1916
|
-
|
|
1917
|
-
}, e.versionString =
|
|
1918
|
-
concat:
|
|
1919
|
-
lookahead:
|
|
1916
|
+
g = !0;
|
|
1917
|
+
}, e.versionString = xt, e.regex = {
|
|
1918
|
+
concat: fe,
|
|
1919
|
+
lookahead: bn,
|
|
1920
1920
|
either: Qe,
|
|
1921
1921
|
optional: it,
|
|
1922
1922
|
anyNumberOfTimes: rt
|
|
1923
1923
|
};
|
|
1924
|
-
for (const
|
|
1925
|
-
typeof De[
|
|
1924
|
+
for (const E in De)
|
|
1925
|
+
typeof De[E] == "object" && pn(De[E]);
|
|
1926
1926
|
return Object.assign(e, De), e;
|
|
1927
|
-
},
|
|
1928
|
-
|
|
1929
|
-
var Wt =
|
|
1930
|
-
|
|
1931
|
-
|
|
1927
|
+
}, _e = Tn({});
|
|
1928
|
+
_e.newInstance = () => Tn({});
|
|
1929
|
+
var Wt = _e;
|
|
1930
|
+
_e.HighlightJS = _e;
|
|
1931
|
+
_e.default = _e;
|
|
1932
1932
|
const J = /* @__PURE__ */ Jn(Wt);
|
|
1933
1933
|
function Qt(e) {
|
|
1934
|
-
const r = e.regex, l = r.concat(/[\p{L}_]/u, r.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u,
|
|
1934
|
+
const r = e.regex, l = r.concat(/[\p{L}_]/u, r.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, g = {
|
|
1935
1935
|
className: "symbol",
|
|
1936
1936
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
1937
1937
|
}, n = {
|
|
@@ -1946,7 +1946,7 @@ function Qt(e) {
|
|
|
1946
1946
|
}, t = e.inherit(n, {
|
|
1947
1947
|
begin: /\(/,
|
|
1948
1948
|
end: /\)/
|
|
1949
|
-
}), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }),
|
|
1949
|
+
}), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), s = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), o = {
|
|
1950
1950
|
endsWithParent: !0,
|
|
1951
1951
|
illegal: /</,
|
|
1952
1952
|
relevance: 0,
|
|
@@ -1967,12 +1967,12 @@ function Qt(e) {
|
|
|
1967
1967
|
{
|
|
1968
1968
|
begin: /"/,
|
|
1969
1969
|
end: /"/,
|
|
1970
|
-
contains: [
|
|
1970
|
+
contains: [g]
|
|
1971
1971
|
},
|
|
1972
1972
|
{
|
|
1973
1973
|
begin: /'/,
|
|
1974
1974
|
end: /'/,
|
|
1975
|
-
contains: [
|
|
1975
|
+
contains: [g]
|
|
1976
1976
|
},
|
|
1977
1977
|
{ begin: /[^\s"'=<>`]+/ }
|
|
1978
1978
|
]
|
|
@@ -2005,7 +2005,7 @@ function Qt(e) {
|
|
|
2005
2005
|
relevance: 10,
|
|
2006
2006
|
contains: [
|
|
2007
2007
|
n,
|
|
2008
|
-
|
|
2008
|
+
s,
|
|
2009
2009
|
i,
|
|
2010
2010
|
t,
|
|
2011
2011
|
{
|
|
@@ -2019,7 +2019,7 @@ function Qt(e) {
|
|
|
2019
2019
|
contains: [
|
|
2020
2020
|
n,
|
|
2021
2021
|
t,
|
|
2022
|
-
|
|
2022
|
+
s,
|
|
2023
2023
|
i
|
|
2024
2024
|
]
|
|
2025
2025
|
}
|
|
@@ -2037,7 +2037,7 @@ function Qt(e) {
|
|
|
2037
2037
|
end: /\]\]>/,
|
|
2038
2038
|
relevance: 10
|
|
2039
2039
|
},
|
|
2040
|
-
|
|
2040
|
+
g,
|
|
2041
2041
|
// xml processing instructions
|
|
2042
2042
|
{
|
|
2043
2043
|
className: "meta",
|
|
@@ -2047,7 +2047,7 @@ function Qt(e) {
|
|
|
2047
2047
|
begin: /<\?xml/,
|
|
2048
2048
|
relevance: 10,
|
|
2049
2049
|
contains: [
|
|
2050
|
-
|
|
2050
|
+
s
|
|
2051
2051
|
]
|
|
2052
2052
|
},
|
|
2053
2053
|
{
|
|
@@ -2065,7 +2065,7 @@ function Qt(e) {
|
|
|
2065
2065
|
begin: /<style(?=\s|>)/,
|
|
2066
2066
|
end: />/,
|
|
2067
2067
|
keywords: { name: "style" },
|
|
2068
|
-
contains: [
|
|
2068
|
+
contains: [o],
|
|
2069
2069
|
starts: {
|
|
2070
2070
|
end: /<\/style>/,
|
|
2071
2071
|
returnEnd: !0,
|
|
@@ -2081,7 +2081,7 @@ function Qt(e) {
|
|
|
2081
2081
|
begin: /<script(?=\s|>)/,
|
|
2082
2082
|
end: />/,
|
|
2083
2083
|
keywords: { name: "script" },
|
|
2084
|
-
contains: [
|
|
2084
|
+
contains: [o],
|
|
2085
2085
|
starts: {
|
|
2086
2086
|
end: /<\/script>/,
|
|
2087
2087
|
returnEnd: !0,
|
|
@@ -2116,7 +2116,7 @@ function Qt(e) {
|
|
|
2116
2116
|
className: "name",
|
|
2117
2117
|
begin: l,
|
|
2118
2118
|
relevance: 0,
|
|
2119
|
-
starts:
|
|
2119
|
+
starts: o
|
|
2120
2120
|
}
|
|
2121
2121
|
]
|
|
2122
2122
|
},
|
|
@@ -2255,7 +2255,7 @@ const fn = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2255
2255
|
"SyntaxError",
|
|
2256
2256
|
"TypeError",
|
|
2257
2257
|
"URIError"
|
|
2258
|
-
],
|
|
2258
|
+
], Ln = [
|
|
2259
2259
|
"setInterval",
|
|
2260
2260
|
"setTimeout",
|
|
2261
2261
|
"clearInterval",
|
|
@@ -2285,16 +2285,16 @@ const fn = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2285
2285
|
"module",
|
|
2286
2286
|
"global"
|
|
2287
2287
|
// Node.js
|
|
2288
|
-
],
|
|
2289
|
-
|
|
2288
|
+
], jt = [].concat(
|
|
2289
|
+
Ln,
|
|
2290
2290
|
Sn,
|
|
2291
2291
|
Dn
|
|
2292
2292
|
);
|
|
2293
|
-
function
|
|
2294
|
-
const r = e.regex, l = (
|
|
2295
|
-
const
|
|
2296
|
-
return
|
|
2297
|
-
}, u = fn,
|
|
2293
|
+
function Vt(e) {
|
|
2294
|
+
const r = e.regex, l = (A, { after: C }) => {
|
|
2295
|
+
const B = "</" + A[0].slice(1);
|
|
2296
|
+
return A.input.indexOf(B, C) !== -1;
|
|
2297
|
+
}, u = fn, g = {
|
|
2298
2298
|
begin: "<>",
|
|
2299
2299
|
end: "</>"
|
|
2300
2300
|
}, n = /<[A-Za-z0-9\\._:-]+\s*\/>/, t = {
|
|
@@ -2304,28 +2304,28 @@ function jt(e) {
|
|
|
2304
2304
|
* @param {RegExpMatchArray} match
|
|
2305
2305
|
* @param {CallbackResponse} response
|
|
2306
2306
|
*/
|
|
2307
|
-
isTrulyOpeningTag: (
|
|
2308
|
-
const
|
|
2307
|
+
isTrulyOpeningTag: (A, C) => {
|
|
2308
|
+
const B = A[0].length + A.index, x = A.input[B];
|
|
2309
2309
|
if (
|
|
2310
2310
|
// HTML should not include another raw `<` inside a tag
|
|
2311
2311
|
// nested type?
|
|
2312
2312
|
// `<Array<Array<number>>`, etc.
|
|
2313
|
-
|
|
2313
|
+
x === "<" || // the , gives away that this is not HTML
|
|
2314
2314
|
// `<T, A extends keyof T, V>`
|
|
2315
|
-
|
|
2315
|
+
x === ","
|
|
2316
2316
|
) {
|
|
2317
|
-
|
|
2317
|
+
C.ignoreMatch();
|
|
2318
2318
|
return;
|
|
2319
2319
|
}
|
|
2320
|
-
|
|
2321
|
-
let
|
|
2322
|
-
const q =
|
|
2323
|
-
if (
|
|
2324
|
-
|
|
2320
|
+
x === ">" && (l(A, { after: B }) || C.ignoreMatch());
|
|
2321
|
+
let X;
|
|
2322
|
+
const q = A.input.substring(B);
|
|
2323
|
+
if (X = q.match(/^\s*=/)) {
|
|
2324
|
+
C.ignoreMatch();
|
|
2325
2325
|
return;
|
|
2326
2326
|
}
|
|
2327
|
-
if ((
|
|
2328
|
-
|
|
2327
|
+
if ((X = q.match(/^\s+extends\s+/)) && X.index === 0) {
|
|
2328
|
+
C.ignoreMatch();
|
|
2329
2329
|
return;
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
@@ -2333,14 +2333,14 @@ function jt(e) {
|
|
|
2333
2333
|
$pattern: fn,
|
|
2334
2334
|
keyword: Zt,
|
|
2335
2335
|
literal: Yt,
|
|
2336
|
-
built_in:
|
|
2336
|
+
built_in: jt,
|
|
2337
2337
|
"variable.language": Xt
|
|
2338
|
-
},
|
|
2338
|
+
}, s = "[0-9](_?[0-9])*", o = `\\.(${s})`, a = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
|
|
2339
2339
|
className: "number",
|
|
2340
2340
|
variants: [
|
|
2341
2341
|
// DecimalLiteral
|
|
2342
|
-
{ begin: `(\\b(${
|
|
2343
|
-
{ begin: `\\b(${
|
|
2342
|
+
{ begin: `(\\b(${a})((${o})|\\.)?|(${o}))[eE][+-]?(${s})\\b` },
|
|
2343
|
+
{ begin: `\\b(${a})\\b((${o})\\b|\\.)?|(${o})\\b` },
|
|
2344
2344
|
// DecimalBigIntegerLiteral
|
|
2345
2345
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
|
2346
2346
|
// NonDecimalIntegerLiteral
|
|
@@ -2359,7 +2359,7 @@ function jt(e) {
|
|
|
2359
2359
|
keywords: i,
|
|
2360
2360
|
contains: []
|
|
2361
2361
|
// defined later
|
|
2362
|
-
},
|
|
2362
|
+
}, h = {
|
|
2363
2363
|
begin: "html`",
|
|
2364
2364
|
end: "",
|
|
2365
2365
|
starts: {
|
|
@@ -2371,7 +2371,7 @@ function jt(e) {
|
|
|
2371
2371
|
],
|
|
2372
2372
|
subLanguage: "xml"
|
|
2373
2373
|
}
|
|
2374
|
-
},
|
|
2374
|
+
}, p = {
|
|
2375
2375
|
begin: "css`",
|
|
2376
2376
|
end: "",
|
|
2377
2377
|
starts: {
|
|
@@ -2383,7 +2383,7 @@ function jt(e) {
|
|
|
2383
2383
|
],
|
|
2384
2384
|
subLanguage: "css"
|
|
2385
2385
|
}
|
|
2386
|
-
},
|
|
2386
|
+
}, d = {
|
|
2387
2387
|
begin: "gql`",
|
|
2388
2388
|
end: "",
|
|
2389
2389
|
starts: {
|
|
@@ -2395,7 +2395,7 @@ function jt(e) {
|
|
|
2395
2395
|
],
|
|
2396
2396
|
subLanguage: "graphql"
|
|
2397
2397
|
}
|
|
2398
|
-
},
|
|
2398
|
+
}, _ = {
|
|
2399
2399
|
className: "string",
|
|
2400
2400
|
begin: "`",
|
|
2401
2401
|
end: "`",
|
|
@@ -2403,7 +2403,7 @@ function jt(e) {
|
|
|
2403
2403
|
e.BACKSLASH_ESCAPE,
|
|
2404
2404
|
f
|
|
2405
2405
|
]
|
|
2406
|
-
},
|
|
2406
|
+
}, b = {
|
|
2407
2407
|
className: "comment",
|
|
2408
2408
|
variants: [
|
|
2409
2409
|
e.COMMENT(
|
|
@@ -2448,13 +2448,13 @@ function jt(e) {
|
|
|
2448
2448
|
e.C_BLOCK_COMMENT_MODE,
|
|
2449
2449
|
e.C_LINE_COMMENT_MODE
|
|
2450
2450
|
]
|
|
2451
|
-
},
|
|
2451
|
+
}, y = [
|
|
2452
2452
|
e.APOS_STRING_MODE,
|
|
2453
2453
|
e.QUOTE_STRING_MODE,
|
|
2454
|
-
|
|
2455
|
-
d,
|
|
2454
|
+
h,
|
|
2456
2455
|
p,
|
|
2457
|
-
|
|
2456
|
+
d,
|
|
2457
|
+
_,
|
|
2458
2458
|
// Skip numbers when they are part of a variable name
|
|
2459
2459
|
{ match: /\$\d+/ },
|
|
2460
2460
|
c
|
|
@@ -2462,7 +2462,7 @@ function jt(e) {
|
|
|
2462
2462
|
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
2463
2463
|
// hljs.REGEXP_MODE
|
|
2464
2464
|
];
|
|
2465
|
-
f.contains =
|
|
2465
|
+
f.contains = y.concat({
|
|
2466
2466
|
// we need to pair up {} inside our subst to prevent
|
|
2467
2467
|
// it from ending too early by matching another }
|
|
2468
2468
|
begin: /\{/,
|
|
@@ -2470,25 +2470,25 @@ function jt(e) {
|
|
|
2470
2470
|
keywords: i,
|
|
2471
2471
|
contains: [
|
|
2472
2472
|
"self"
|
|
2473
|
-
].concat(
|
|
2473
|
+
].concat(y)
|
|
2474
2474
|
});
|
|
2475
|
-
const
|
|
2475
|
+
const M = [].concat(b, f.contains), L = M.concat([
|
|
2476
2476
|
// eat recursive parens in sub expressions
|
|
2477
2477
|
{
|
|
2478
2478
|
begin: /\(/,
|
|
2479
2479
|
end: /\)/,
|
|
2480
2480
|
keywords: i,
|
|
2481
|
-
contains: ["self"].concat(
|
|
2481
|
+
contains: ["self"].concat(M)
|
|
2482
2482
|
}
|
|
2483
|
-
]),
|
|
2483
|
+
]), N = {
|
|
2484
2484
|
className: "params",
|
|
2485
2485
|
begin: /\(/,
|
|
2486
2486
|
end: /\)/,
|
|
2487
2487
|
excludeBegin: !0,
|
|
2488
2488
|
excludeEnd: !0,
|
|
2489
2489
|
keywords: i,
|
|
2490
|
-
contains:
|
|
2491
|
-
},
|
|
2490
|
+
contains: L
|
|
2491
|
+
}, D = {
|
|
2492
2492
|
variants: [
|
|
2493
2493
|
// class Car extends vehicle
|
|
2494
2494
|
{
|
|
@@ -2521,7 +2521,7 @@ function jt(e) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
2523
|
]
|
|
2524
|
-
},
|
|
2524
|
+
}, R = {
|
|
2525
2525
|
relevance: 0,
|
|
2526
2526
|
match: r.either(
|
|
2527
2527
|
// Hard coded exceptions
|
|
@@ -2545,12 +2545,12 @@ function jt(e) {
|
|
|
2545
2545
|
...Dn
|
|
2546
2546
|
]
|
|
2547
2547
|
}
|
|
2548
|
-
},
|
|
2548
|
+
}, S = {
|
|
2549
2549
|
label: "use_strict",
|
|
2550
2550
|
className: "meta",
|
|
2551
2551
|
relevance: 10,
|
|
2552
2552
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
2553
|
-
},
|
|
2553
|
+
}, $ = {
|
|
2554
2554
|
variants: [
|
|
2555
2555
|
{
|
|
2556
2556
|
match: [
|
|
@@ -2573,21 +2573,21 @@ function jt(e) {
|
|
|
2573
2573
|
3: "title.function"
|
|
2574
2574
|
},
|
|
2575
2575
|
label: "func.def",
|
|
2576
|
-
contains: [
|
|
2576
|
+
contains: [N],
|
|
2577
2577
|
illegal: /%/
|
|
2578
|
-
},
|
|
2578
|
+
}, k = {
|
|
2579
2579
|
relevance: 0,
|
|
2580
2580
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
2581
2581
|
className: "variable.constant"
|
|
2582
2582
|
};
|
|
2583
|
-
function
|
|
2584
|
-
return r.concat("(?!",
|
|
2583
|
+
function H(A) {
|
|
2584
|
+
return r.concat("(?!", A.join("|"), ")");
|
|
2585
2585
|
}
|
|
2586
2586
|
const K = {
|
|
2587
2587
|
match: r.concat(
|
|
2588
2588
|
/\b/,
|
|
2589
|
-
|
|
2590
|
-
...
|
|
2589
|
+
H([
|
|
2590
|
+
...Ln,
|
|
2591
2591
|
"super",
|
|
2592
2592
|
"import"
|
|
2593
2593
|
]),
|
|
@@ -2596,7 +2596,7 @@ function jt(e) {
|
|
|
2596
2596
|
),
|
|
2597
2597
|
className: "title.function",
|
|
2598
2598
|
relevance: 0
|
|
2599
|
-
},
|
|
2599
|
+
}, Y = {
|
|
2600
2600
|
begin: r.concat(/\./, r.lookahead(
|
|
2601
2601
|
r.concat(u, /(?![0-9A-Za-z$_(])/)
|
|
2602
2602
|
)),
|
|
@@ -2605,7 +2605,7 @@ function jt(e) {
|
|
|
2605
2605
|
keywords: "prototype",
|
|
2606
2606
|
className: "property",
|
|
2607
2607
|
relevance: 0
|
|
2608
|
-
},
|
|
2608
|
+
}, oe = {
|
|
2609
2609
|
match: [
|
|
2610
2610
|
/get|set/,
|
|
2611
2611
|
/\s+/,
|
|
@@ -2621,9 +2621,9 @@ function jt(e) {
|
|
|
2621
2621
|
// eat to avoid empty params
|
|
2622
2622
|
begin: /\(\)/
|
|
2623
2623
|
},
|
|
2624
|
-
|
|
2624
|
+
N
|
|
2625
2625
|
]
|
|
2626
|
-
},
|
|
2626
|
+
}, ge = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", E = {
|
|
2627
2627
|
match: [
|
|
2628
2628
|
/const|var|let/,
|
|
2629
2629
|
/\s+/,
|
|
@@ -2632,7 +2632,7 @@ function jt(e) {
|
|
|
2632
2632
|
/=\s*/,
|
|
2633
2633
|
/(async\s*)?/,
|
|
2634
2634
|
// async is optional
|
|
2635
|
-
r.lookahead(
|
|
2635
|
+
r.lookahead(ge)
|
|
2636
2636
|
],
|
|
2637
2637
|
keywords: "async",
|
|
2638
2638
|
className: {
|
|
@@ -2640,7 +2640,7 @@ function jt(e) {
|
|
|
2640
2640
|
3: "title.function"
|
|
2641
2641
|
},
|
|
2642
2642
|
contains: [
|
|
2643
|
-
|
|
2643
|
+
N
|
|
2644
2644
|
]
|
|
2645
2645
|
};
|
|
2646
2646
|
return {
|
|
@@ -2648,7 +2648,7 @@ function jt(e) {
|
|
|
2648
2648
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
2649
2649
|
keywords: i,
|
|
2650
2650
|
// this will be extended by TypeScript
|
|
2651
|
-
exports: { PARAMS_CONTAINS:
|
|
2651
|
+
exports: { PARAMS_CONTAINS: L, CLASS_REFERENCE: R },
|
|
2652
2652
|
illegal: /#(?![$_A-z])/,
|
|
2653
2653
|
contains: [
|
|
2654
2654
|
e.SHEBANG({
|
|
@@ -2656,38 +2656,38 @@ function jt(e) {
|
|
|
2656
2656
|
binary: "node",
|
|
2657
2657
|
relevance: 5
|
|
2658
2658
|
}),
|
|
2659
|
-
|
|
2659
|
+
S,
|
|
2660
2660
|
e.APOS_STRING_MODE,
|
|
2661
2661
|
e.QUOTE_STRING_MODE,
|
|
2662
|
-
|
|
2663
|
-
d,
|
|
2662
|
+
h,
|
|
2664
2663
|
p,
|
|
2664
|
+
d,
|
|
2665
|
+
_,
|
|
2665
2666
|
b,
|
|
2666
|
-
v,
|
|
2667
2667
|
// Skip numbers when they are part of a variable name
|
|
2668
2668
|
{ match: /\$\d+/ },
|
|
2669
2669
|
c,
|
|
2670
|
-
|
|
2670
|
+
R,
|
|
2671
2671
|
{
|
|
2672
2672
|
className: "attr",
|
|
2673
2673
|
begin: u + r.lookahead(":"),
|
|
2674
2674
|
relevance: 0
|
|
2675
2675
|
},
|
|
2676
|
-
|
|
2676
|
+
E,
|
|
2677
2677
|
{
|
|
2678
2678
|
// "value" container
|
|
2679
2679
|
begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
2680
2680
|
keywords: "return throw case",
|
|
2681
2681
|
relevance: 0,
|
|
2682
2682
|
contains: [
|
|
2683
|
-
|
|
2683
|
+
b,
|
|
2684
2684
|
e.REGEXP_MODE,
|
|
2685
2685
|
{
|
|
2686
2686
|
className: "function",
|
|
2687
2687
|
// we have to count the parens to make sure we actually have the
|
|
2688
2688
|
// correct bounding ( ) before the =>. There could be any number of
|
|
2689
2689
|
// sub-expressions inside also surrounded by parens.
|
|
2690
|
-
begin:
|
|
2690
|
+
begin: ge,
|
|
2691
2691
|
returnBegin: !0,
|
|
2692
2692
|
end: "\\s*=>",
|
|
2693
2693
|
contains: [
|
|
@@ -2709,7 +2709,7 @@ function jt(e) {
|
|
|
2709
2709
|
excludeBegin: !0,
|
|
2710
2710
|
excludeEnd: !0,
|
|
2711
2711
|
keywords: i,
|
|
2712
|
-
contains:
|
|
2712
|
+
contains: L
|
|
2713
2713
|
}
|
|
2714
2714
|
]
|
|
2715
2715
|
}
|
|
@@ -2727,7 +2727,7 @@ function jt(e) {
|
|
|
2727
2727
|
{
|
|
2728
2728
|
// JSX
|
|
2729
2729
|
variants: [
|
|
2730
|
-
{ begin:
|
|
2730
|
+
{ begin: g.begin, end: g.end },
|
|
2731
2731
|
{ match: n },
|
|
2732
2732
|
{
|
|
2733
2733
|
begin: t.begin,
|
|
@@ -2749,7 +2749,7 @@ function jt(e) {
|
|
|
2749
2749
|
}
|
|
2750
2750
|
]
|
|
2751
2751
|
},
|
|
2752
|
-
|
|
2752
|
+
$,
|
|
2753
2753
|
{
|
|
2754
2754
|
// prevent this from getting swallowed up by function
|
|
2755
2755
|
// since they appear "function like"
|
|
@@ -2764,7 +2764,7 @@ function jt(e) {
|
|
|
2764
2764
|
returnBegin: !0,
|
|
2765
2765
|
label: "func.def",
|
|
2766
2766
|
contains: [
|
|
2767
|
-
|
|
2767
|
+
N,
|
|
2768
2768
|
e.inherit(e.TITLE_MODE, { begin: u, className: "title.function" })
|
|
2769
2769
|
]
|
|
2770
2770
|
},
|
|
@@ -2773,7 +2773,7 @@ function jt(e) {
|
|
|
2773
2773
|
match: /\.\.\./,
|
|
2774
2774
|
relevance: 0
|
|
2775
2775
|
},
|
|
2776
|
-
|
|
2776
|
+
Y,
|
|
2777
2777
|
// hack: prevents detection of keywords in some circumstances
|
|
2778
2778
|
// .keyword()
|
|
2779
2779
|
// $keyword = x
|
|
@@ -2784,12 +2784,12 @@ function jt(e) {
|
|
|
2784
2784
|
{
|
|
2785
2785
|
match: [/\bconstructor(?=\s*\()/],
|
|
2786
2786
|
className: { 1: "title.function" },
|
|
2787
|
-
contains: [
|
|
2787
|
+
contains: [N]
|
|
2788
2788
|
},
|
|
2789
2789
|
K,
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2790
|
+
k,
|
|
2791
|
+
D,
|
|
2792
|
+
oe,
|
|
2793
2793
|
{
|
|
2794
2794
|
match: /\$[(.]/
|
|
2795
2795
|
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
@@ -2810,7 +2810,7 @@ function Jt(e) {
|
|
|
2810
2810
|
"true",
|
|
2811
2811
|
"false",
|
|
2812
2812
|
"null"
|
|
2813
|
-
],
|
|
2813
|
+
], g = {
|
|
2814
2814
|
scope: "literal",
|
|
2815
2815
|
beginKeywords: u.join(" ")
|
|
2816
2816
|
};
|
|
@@ -2823,7 +2823,7 @@ function Jt(e) {
|
|
|
2823
2823
|
r,
|
|
2824
2824
|
l,
|
|
2825
2825
|
e.QUOTE_STRING_MODE,
|
|
2826
|
-
|
|
2826
|
+
g,
|
|
2827
2827
|
e.C_NUMBER_MODE,
|
|
2828
2828
|
e.C_LINE_COMMENT_MODE,
|
|
2829
2829
|
e.C_BLOCK_COMMENT_MODE
|
|
@@ -2845,7 +2845,7 @@ function qt(e) {
|
|
|
2845
2845
|
begin: "'\\w[\\w :\\/.-]*':(?=[ ]|$)"
|
|
2846
2846
|
}
|
|
2847
2847
|
]
|
|
2848
|
-
},
|
|
2848
|
+
}, g = {
|
|
2849
2849
|
className: "template-variable",
|
|
2850
2850
|
variants: [
|
|
2851
2851
|
{
|
|
@@ -2875,7 +2875,7 @@ function qt(e) {
|
|
|
2875
2875
|
],
|
|
2876
2876
|
contains: [
|
|
2877
2877
|
e.BACKSLASH_ESCAPE,
|
|
2878
|
-
|
|
2878
|
+
g
|
|
2879
2879
|
]
|
|
2880
2880
|
}, t = e.inherit(n, { variants: [
|
|
2881
2881
|
{
|
|
@@ -2887,28 +2887,28 @@ function qt(e) {
|
|
|
2887
2887
|
end: /"/
|
|
2888
2888
|
},
|
|
2889
2889
|
{ begin: /[^\s,{}[\]]+/ }
|
|
2890
|
-
] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}",
|
|
2890
|
+
] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", s = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", o = "(\\.[0-9]*)?", a = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", c = {
|
|
2891
2891
|
className: "number",
|
|
2892
|
-
begin: "\\b" + i +
|
|
2892
|
+
begin: "\\b" + i + s + o + a + "\\b"
|
|
2893
2893
|
}, f = {
|
|
2894
2894
|
end: ",",
|
|
2895
2895
|
endsWithParent: !0,
|
|
2896
2896
|
excludeEnd: !0,
|
|
2897
2897
|
keywords: r,
|
|
2898
2898
|
relevance: 0
|
|
2899
|
-
},
|
|
2899
|
+
}, h = {
|
|
2900
2900
|
begin: /\{/,
|
|
2901
2901
|
end: /\}/,
|
|
2902
2902
|
contains: [f],
|
|
2903
2903
|
illegal: "\\n",
|
|
2904
2904
|
relevance: 0
|
|
2905
|
-
},
|
|
2905
|
+
}, p = {
|
|
2906
2906
|
begin: "\\[",
|
|
2907
2907
|
end: "\\]",
|
|
2908
2908
|
contains: [f],
|
|
2909
2909
|
illegal: "\\n",
|
|
2910
2910
|
relevance: 0
|
|
2911
|
-
},
|
|
2911
|
+
}, d = [
|
|
2912
2912
|
u,
|
|
2913
2913
|
{
|
|
2914
2914
|
className: "meta",
|
|
@@ -2984,15 +2984,15 @@ function qt(e) {
|
|
|
2984
2984
|
begin: e.C_NUMBER_RE + "\\b",
|
|
2985
2985
|
relevance: 0
|
|
2986
2986
|
},
|
|
2987
|
-
|
|
2988
|
-
|
|
2987
|
+
h,
|
|
2988
|
+
p,
|
|
2989
2989
|
n
|
|
2990
|
-
],
|
|
2991
|
-
return
|
|
2990
|
+
], _ = [...d];
|
|
2991
|
+
return _.pop(), _.push(t), f.contains = _, {
|
|
2992
2992
|
name: "YAML",
|
|
2993
2993
|
case_insensitive: !0,
|
|
2994
2994
|
aliases: ["yml"],
|
|
2995
|
-
contains:
|
|
2995
|
+
contains: d
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
2998
|
function er(e) {
|
|
@@ -3138,16 +3138,16 @@ function nr(e) {
|
|
|
3138
3138
|
"Type",
|
|
3139
3139
|
"Union"
|
|
3140
3140
|
]
|
|
3141
|
-
},
|
|
3141
|
+
}, s = {
|
|
3142
3142
|
className: "meta",
|
|
3143
3143
|
begin: /^(>>>|\.\.\.) /
|
|
3144
|
-
},
|
|
3144
|
+
}, o = {
|
|
3145
3145
|
className: "subst",
|
|
3146
3146
|
begin: /\{/,
|
|
3147
3147
|
end: /\}/,
|
|
3148
3148
|
keywords: i,
|
|
3149
3149
|
illegal: /#/
|
|
3150
|
-
},
|
|
3150
|
+
}, a = {
|
|
3151
3151
|
begin: /\{\{/,
|
|
3152
3152
|
relevance: 0
|
|
3153
3153
|
}, c = {
|
|
@@ -3159,7 +3159,7 @@ function nr(e) {
|
|
|
3159
3159
|
end: /'''/,
|
|
3160
3160
|
contains: [
|
|
3161
3161
|
e.BACKSLASH_ESCAPE,
|
|
3162
|
-
|
|
3162
|
+
s
|
|
3163
3163
|
],
|
|
3164
3164
|
relevance: 10
|
|
3165
3165
|
},
|
|
@@ -3168,7 +3168,7 @@ function nr(e) {
|
|
|
3168
3168
|
end: /"""/,
|
|
3169
3169
|
contains: [
|
|
3170
3170
|
e.BACKSLASH_ESCAPE,
|
|
3171
|
-
|
|
3171
|
+
s
|
|
3172
3172
|
],
|
|
3173
3173
|
relevance: 10
|
|
3174
3174
|
},
|
|
@@ -3177,9 +3177,9 @@ function nr(e) {
|
|
|
3177
3177
|
end: /'''/,
|
|
3178
3178
|
contains: [
|
|
3179
3179
|
e.BACKSLASH_ESCAPE,
|
|
3180
|
+
s,
|
|
3180
3181
|
a,
|
|
3181
|
-
o
|
|
3182
|
-
s
|
|
3182
|
+
o
|
|
3183
3183
|
]
|
|
3184
3184
|
},
|
|
3185
3185
|
{
|
|
@@ -3187,9 +3187,9 @@ function nr(e) {
|
|
|
3187
3187
|
end: /"""/,
|
|
3188
3188
|
contains: [
|
|
3189
3189
|
e.BACKSLASH_ESCAPE,
|
|
3190
|
+
s,
|
|
3190
3191
|
a,
|
|
3191
|
-
o
|
|
3192
|
-
s
|
|
3192
|
+
o
|
|
3193
3193
|
]
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
@@ -3215,8 +3215,8 @@ function nr(e) {
|
|
|
3215
3215
|
end: /'/,
|
|
3216
3216
|
contains: [
|
|
3217
3217
|
e.BACKSLASH_ESCAPE,
|
|
3218
|
-
|
|
3219
|
-
|
|
3218
|
+
a,
|
|
3219
|
+
o
|
|
3220
3220
|
]
|
|
3221
3221
|
},
|
|
3222
3222
|
{
|
|
@@ -3224,14 +3224,14 @@ function nr(e) {
|
|
|
3224
3224
|
end: /"/,
|
|
3225
3225
|
contains: [
|
|
3226
3226
|
e.BACKSLASH_ESCAPE,
|
|
3227
|
-
|
|
3228
|
-
|
|
3227
|
+
a,
|
|
3228
|
+
o
|
|
3229
3229
|
]
|
|
3230
3230
|
},
|
|
3231
3231
|
e.APOS_STRING_MODE,
|
|
3232
3232
|
e.QUOTE_STRING_MODE
|
|
3233
3233
|
]
|
|
3234
|
-
}, f = "[0-9](_?[0-9])*",
|
|
3234
|
+
}, f = "[0-9](_?[0-9])*", h = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, p = `\\b|${u.join("|")}`, d = {
|
|
3235
3235
|
className: "number",
|
|
3236
3236
|
relevance: 0,
|
|
3237
3237
|
variants: [
|
|
@@ -3246,10 +3246,10 @@ function nr(e) {
|
|
|
3246
3246
|
// because both MUST contain a decimal point and so cannot be confused with
|
|
3247
3247
|
// the interior part of an identifier
|
|
3248
3248
|
{
|
|
3249
|
-
begin: `(\\b(${f})|(${
|
|
3249
|
+
begin: `(\\b(${f})|(${h}))[eE][+-]?(${f})[jJ]?(?=${p})`
|
|
3250
3250
|
},
|
|
3251
3251
|
{
|
|
3252
|
-
begin: `(${
|
|
3252
|
+
begin: `(${h})[jJ]?`
|
|
3253
3253
|
},
|
|
3254
3254
|
// decinteger, bininteger, octinteger, hexinteger
|
|
3255
3255
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
|
|
@@ -3258,24 +3258,24 @@ function nr(e) {
|
|
|
3258
3258
|
// decinteger is optionally imaginary
|
|
3259
3259
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
3260
3260
|
{
|
|
3261
|
-
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${
|
|
3261
|
+
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`
|
|
3262
3262
|
},
|
|
3263
3263
|
{
|
|
3264
|
-
begin: `\\b0[bB](_?[01])+[lL]?(?=${
|
|
3264
|
+
begin: `\\b0[bB](_?[01])+[lL]?(?=${p})`
|
|
3265
3265
|
},
|
|
3266
3266
|
{
|
|
3267
|
-
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${
|
|
3267
|
+
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${p})`
|
|
3268
3268
|
},
|
|
3269
3269
|
{
|
|
3270
|
-
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${
|
|
3270
|
+
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`
|
|
3271
3271
|
},
|
|
3272
3272
|
// imagnumber (digitpart-based)
|
|
3273
3273
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
3274
3274
|
{
|
|
3275
|
-
begin: `\\b(${f})[jJ](?=${
|
|
3275
|
+
begin: `\\b(${f})[jJ](?=${p})`
|
|
3276
3276
|
}
|
|
3277
3277
|
]
|
|
3278
|
-
},
|
|
3278
|
+
}, _ = {
|
|
3279
3279
|
className: "comment",
|
|
3280
3280
|
begin: r.lookahead(/# type:/),
|
|
3281
3281
|
end: /$/,
|
|
@@ -3292,7 +3292,7 @@ function nr(e) {
|
|
|
3292
3292
|
endsWithParent: !0
|
|
3293
3293
|
}
|
|
3294
3294
|
]
|
|
3295
|
-
},
|
|
3295
|
+
}, m = {
|
|
3296
3296
|
className: "params",
|
|
3297
3297
|
variants: [
|
|
3298
3298
|
// Exclude params in functions without params
|
|
@@ -3309,18 +3309,18 @@ function nr(e) {
|
|
|
3309
3309
|
keywords: i,
|
|
3310
3310
|
contains: [
|
|
3311
3311
|
"self",
|
|
3312
|
-
|
|
3313
|
-
|
|
3312
|
+
s,
|
|
3313
|
+
d,
|
|
3314
3314
|
c,
|
|
3315
3315
|
e.HASH_COMMENT_MODE
|
|
3316
3316
|
]
|
|
3317
3317
|
}
|
|
3318
3318
|
]
|
|
3319
3319
|
};
|
|
3320
|
-
return
|
|
3320
|
+
return o.contains = [
|
|
3321
3321
|
c,
|
|
3322
|
-
|
|
3323
|
-
|
|
3322
|
+
d,
|
|
3323
|
+
s
|
|
3324
3324
|
], {
|
|
3325
3325
|
name: "Python",
|
|
3326
3326
|
aliases: [
|
|
@@ -3332,8 +3332,8 @@ function nr(e) {
|
|
|
3332
3332
|
keywords: i,
|
|
3333
3333
|
illegal: /(<\/|\?)|=>/,
|
|
3334
3334
|
contains: [
|
|
3335
|
-
|
|
3336
|
-
|
|
3335
|
+
s,
|
|
3336
|
+
d,
|
|
3337
3337
|
{
|
|
3338
3338
|
// very common convention
|
|
3339
3339
|
begin: /\bself\b/
|
|
@@ -3345,7 +3345,7 @@ function nr(e) {
|
|
|
3345
3345
|
relevance: 0
|
|
3346
3346
|
},
|
|
3347
3347
|
c,
|
|
3348
|
-
|
|
3348
|
+
_,
|
|
3349
3349
|
e.HASH_COMMENT_MODE,
|
|
3350
3350
|
{
|
|
3351
3351
|
match: [
|
|
@@ -3357,7 +3357,7 @@ function nr(e) {
|
|
|
3357
3357
|
1: "keyword",
|
|
3358
3358
|
3: "title.function"
|
|
3359
3359
|
},
|
|
3360
|
-
contains: [
|
|
3360
|
+
contains: [m]
|
|
3361
3361
|
},
|
|
3362
3362
|
{
|
|
3363
3363
|
variants: [
|
|
@@ -3391,30 +3391,30 @@ function nr(e) {
|
|
|
3391
3391
|
begin: /^[\t ]*@/,
|
|
3392
3392
|
end: /(?=#)|$/,
|
|
3393
3393
|
contains: [
|
|
3394
|
-
|
|
3395
|
-
|
|
3394
|
+
d,
|
|
3395
|
+
m,
|
|
3396
3396
|
c
|
|
3397
3397
|
]
|
|
3398
3398
|
}
|
|
3399
3399
|
]
|
|
3400
3400
|
};
|
|
3401
3401
|
}
|
|
3402
|
-
var
|
|
3402
|
+
var de = "[0-9](_*[0-9])*", Le = `\\.(${de})`, Re = "[0-9a-fA-F](_*[0-9a-fA-F])*", gn = {
|
|
3403
3403
|
className: "number",
|
|
3404
3404
|
variants: [
|
|
3405
3405
|
// DecimalFloatingPointLiteral
|
|
3406
3406
|
// including ExponentPart
|
|
3407
|
-
{ begin: `(\\b(${
|
|
3407
|
+
{ begin: `(\\b(${de})((${Le})|\\.)?|(${Le}))[eE][+-]?(${de})[fFdD]?\\b` },
|
|
3408
3408
|
// excluding ExponentPart
|
|
3409
|
-
{ begin: `\\b(${
|
|
3410
|
-
{ begin: `(${
|
|
3411
|
-
{ begin: `\\b(${
|
|
3409
|
+
{ begin: `\\b(${de})((${Le})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
3410
|
+
{ begin: `(${Le})[fFdD]?\\b` },
|
|
3411
|
+
{ begin: `\\b(${de})[fFdD]\\b` },
|
|
3412
3412
|
// HexadecimalFloatingPointLiteral
|
|
3413
|
-
{ begin: `\\b0[xX]((${
|
|
3413
|
+
{ begin: `\\b0[xX]((${Re})\\.?|(${Re})?\\.(${Re}))[pP][+-]?(${de})[fFdD]?\\b` },
|
|
3414
3414
|
// DecimalIntegerLiteral
|
|
3415
3415
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
3416
3416
|
// HexIntegerLiteral
|
|
3417
|
-
{ begin: `\\b0[xX](${
|
|
3417
|
+
{ begin: `\\b0[xX](${Re})[lL]?\\b` },
|
|
3418
3418
|
// OctalIntegerLiteral
|
|
3419
3419
|
{ begin: "\\b0(_*[0-7])*[lL]?\\b" },
|
|
3420
3420
|
// BinaryIntegerLiteral
|
|
@@ -3422,11 +3422,11 @@ var he = "[0-9](_*[0-9])*", Re = `\\.(${he})`, Le = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
3422
3422
|
],
|
|
3423
3423
|
relevance: 0
|
|
3424
3424
|
};
|
|
3425
|
-
function
|
|
3426
|
-
return l === -1 ? "" : e.replace(r, (u) =>
|
|
3425
|
+
function Rn(e, r, l) {
|
|
3426
|
+
return l === -1 ? "" : e.replace(r, (u) => Rn(e, r, l - 1));
|
|
3427
3427
|
}
|
|
3428
3428
|
function tr(e) {
|
|
3429
|
-
const r = e.regex, l = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = l +
|
|
3429
|
+
const r = e.regex, l = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = l + Rn("(?:<" + l + "~~~(?:\\s*,\\s*" + l + "~~~)*>)?", /~~~/g, 2), s = {
|
|
3430
3430
|
keyword: [
|
|
3431
3431
|
"synchronized",
|
|
3432
3432
|
"abstract",
|
|
@@ -3490,7 +3490,7 @@ function tr(e) {
|
|
|
3490
3490
|
"super",
|
|
3491
3491
|
"this"
|
|
3492
3492
|
]
|
|
3493
|
-
},
|
|
3493
|
+
}, o = {
|
|
3494
3494
|
className: "meta",
|
|
3495
3495
|
begin: "@" + l,
|
|
3496
3496
|
contains: [
|
|
@@ -3501,11 +3501,11 @@ function tr(e) {
|
|
|
3501
3501
|
// allow nested () inside our annotation
|
|
3502
3502
|
}
|
|
3503
3503
|
]
|
|
3504
|
-
},
|
|
3504
|
+
}, a = {
|
|
3505
3505
|
className: "params",
|
|
3506
3506
|
begin: /\(/,
|
|
3507
3507
|
end: /\)/,
|
|
3508
|
-
keywords:
|
|
3508
|
+
keywords: s,
|
|
3509
3509
|
relevance: 0,
|
|
3510
3510
|
contains: [e.C_BLOCK_COMMENT_MODE],
|
|
3511
3511
|
endsParent: !0
|
|
@@ -3513,7 +3513,7 @@ function tr(e) {
|
|
|
3513
3513
|
return {
|
|
3514
3514
|
name: "Java",
|
|
3515
3515
|
aliases: ["jsp"],
|
|
3516
|
-
keywords:
|
|
3516
|
+
keywords: s,
|
|
3517
3517
|
illegal: /<\/|#/,
|
|
3518
3518
|
contains: [
|
|
3519
3519
|
e.COMMENT(
|
|
@@ -3591,7 +3591,7 @@ function tr(e) {
|
|
|
3591
3591
|
3: "title.class"
|
|
3592
3592
|
},
|
|
3593
3593
|
contains: [
|
|
3594
|
-
|
|
3594
|
+
a,
|
|
3595
3595
|
e.C_LINE_COMMENT_MODE,
|
|
3596
3596
|
e.C_BLOCK_COMMENT_MODE
|
|
3597
3597
|
]
|
|
@@ -3609,16 +3609,16 @@ function tr(e) {
|
|
|
3609
3609
|
/\s*(?=\()/
|
|
3610
3610
|
],
|
|
3611
3611
|
className: { 2: "title.function" },
|
|
3612
|
-
keywords:
|
|
3612
|
+
keywords: s,
|
|
3613
3613
|
contains: [
|
|
3614
3614
|
{
|
|
3615
3615
|
className: "params",
|
|
3616
3616
|
begin: /\(/,
|
|
3617
3617
|
end: /\)/,
|
|
3618
|
-
keywords:
|
|
3618
|
+
keywords: s,
|
|
3619
3619
|
relevance: 0,
|
|
3620
3620
|
contains: [
|
|
3621
|
-
|
|
3621
|
+
o,
|
|
3622
3622
|
e.APOS_STRING_MODE,
|
|
3623
3623
|
e.QUOTE_STRING_MODE,
|
|
3624
3624
|
gn,
|
|
@@ -3630,7 +3630,7 @@ function tr(e) {
|
|
|
3630
3630
|
]
|
|
3631
3631
|
},
|
|
3632
3632
|
gn,
|
|
3633
|
-
|
|
3633
|
+
o
|
|
3634
3634
|
]
|
|
3635
3635
|
};
|
|
3636
3636
|
}
|
|
@@ -3659,7 +3659,7 @@ function rr(e) {
|
|
|
3659
3659
|
u
|
|
3660
3660
|
]
|
|
3661
3661
|
});
|
|
3662
|
-
const
|
|
3662
|
+
const g = {
|
|
3663
3663
|
className: "subst",
|
|
3664
3664
|
begin: /\$\(/,
|
|
3665
3665
|
end: /\)/,
|
|
@@ -3680,19 +3680,19 @@ function rr(e) {
|
|
|
3680
3680
|
contains: [
|
|
3681
3681
|
e.BACKSLASH_ESCAPE,
|
|
3682
3682
|
l,
|
|
3683
|
-
|
|
3683
|
+
g
|
|
3684
3684
|
]
|
|
3685
3685
|
};
|
|
3686
|
-
|
|
3686
|
+
g.contains.push(t);
|
|
3687
3687
|
const i = {
|
|
3688
3688
|
match: /\\"/
|
|
3689
|
-
},
|
|
3689
|
+
}, s = {
|
|
3690
3690
|
className: "string",
|
|
3691
3691
|
begin: /'/,
|
|
3692
3692
|
end: /'/
|
|
3693
|
-
}, s = {
|
|
3694
|
-
match: /\\'/
|
|
3695
3693
|
}, o = {
|
|
3694
|
+
match: /\\'/
|
|
3695
|
+
}, a = {
|
|
3696
3696
|
begin: /\$?\(\(/,
|
|
3697
3697
|
end: /\)\)/,
|
|
3698
3698
|
contains: [
|
|
@@ -3716,13 +3716,13 @@ function rr(e) {
|
|
|
3716
3716
|
], f = e.SHEBANG({
|
|
3717
3717
|
binary: `(${c.join("|")})`,
|
|
3718
3718
|
relevance: 10
|
|
3719
|
-
}),
|
|
3719
|
+
}), h = {
|
|
3720
3720
|
className: "function",
|
|
3721
3721
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
3722
3722
|
returnBegin: !0,
|
|
3723
3723
|
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
3724
3724
|
relevance: 0
|
|
3725
|
-
},
|
|
3725
|
+
}, p = [
|
|
3726
3726
|
"if",
|
|
3727
3727
|
"then",
|
|
3728
3728
|
"else",
|
|
@@ -3738,10 +3738,10 @@ function rr(e) {
|
|
|
3738
3738
|
"esac",
|
|
3739
3739
|
"function",
|
|
3740
3740
|
"select"
|
|
3741
|
-
],
|
|
3741
|
+
], d = [
|
|
3742
3742
|
"true",
|
|
3743
3743
|
"false"
|
|
3744
|
-
],
|
|
3744
|
+
], _ = { match: /(\/[a-z._-]+)+/ }, m = [
|
|
3745
3745
|
"break",
|
|
3746
3746
|
"cd",
|
|
3747
3747
|
"continue",
|
|
@@ -3760,7 +3760,7 @@ function rr(e) {
|
|
|
3760
3760
|
"trap",
|
|
3761
3761
|
"umask",
|
|
3762
3762
|
"unset"
|
|
3763
|
-
],
|
|
3763
|
+
], b = [
|
|
3764
3764
|
"alias",
|
|
3765
3765
|
"bind",
|
|
3766
3766
|
"builtin",
|
|
@@ -3782,7 +3782,7 @@ function rr(e) {
|
|
|
3782
3782
|
"typeset",
|
|
3783
3783
|
"ulimit",
|
|
3784
3784
|
"unalias"
|
|
3785
|
-
],
|
|
3785
|
+
], y = [
|
|
3786
3786
|
"autoload",
|
|
3787
3787
|
"bg",
|
|
3788
3788
|
"bindkey",
|
|
@@ -3851,7 +3851,7 @@ function rr(e) {
|
|
|
3851
3851
|
"zsocket",
|
|
3852
3852
|
"zstyle",
|
|
3853
3853
|
"ztcp"
|
|
3854
|
-
],
|
|
3854
|
+
], M = [
|
|
3855
3855
|
"chcon",
|
|
3856
3856
|
"chgrp",
|
|
3857
3857
|
"chown",
|
|
@@ -3961,16 +3961,16 @@ function rr(e) {
|
|
|
3961
3961
|
aliases: ["sh"],
|
|
3962
3962
|
keywords: {
|
|
3963
3963
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
3964
|
-
keyword:
|
|
3965
|
-
literal:
|
|
3964
|
+
keyword: p,
|
|
3965
|
+
literal: d,
|
|
3966
3966
|
built_in: [
|
|
3967
|
-
...
|
|
3968
|
-
...
|
|
3967
|
+
...m,
|
|
3968
|
+
...b,
|
|
3969
3969
|
// Shell modifiers
|
|
3970
3970
|
"set",
|
|
3971
3971
|
"shopt",
|
|
3972
|
-
...
|
|
3973
|
-
...
|
|
3972
|
+
...y,
|
|
3973
|
+
...M
|
|
3974
3974
|
]
|
|
3975
3975
|
},
|
|
3976
3976
|
contains: [
|
|
@@ -3978,15 +3978,15 @@ function rr(e) {
|
|
|
3978
3978
|
// to catch known shells and boost relevancy
|
|
3979
3979
|
e.SHEBANG(),
|
|
3980
3980
|
// to catch unknown shells but still highlight the shebang
|
|
3981
|
-
|
|
3982
|
-
|
|
3981
|
+
h,
|
|
3982
|
+
a,
|
|
3983
3983
|
e.HASH_COMMENT_MODE,
|
|
3984
3984
|
n,
|
|
3985
|
-
|
|
3985
|
+
_,
|
|
3986
3986
|
t,
|
|
3987
3987
|
i,
|
|
3988
|
-
a,
|
|
3989
3988
|
s,
|
|
3989
|
+
o,
|
|
3990
3990
|
l
|
|
3991
3991
|
]
|
|
3992
3992
|
};
|
|
@@ -4001,7 +4001,7 @@ function ir(e) {
|
|
|
4001
4001
|
contains: [{ begin: /''/ }]
|
|
4002
4002
|
}
|
|
4003
4003
|
]
|
|
4004
|
-
},
|
|
4004
|
+
}, g = {
|
|
4005
4005
|
begin: /"/,
|
|
4006
4006
|
end: /"/,
|
|
4007
4007
|
contains: [{ begin: /""/ }]
|
|
@@ -4045,7 +4045,7 @@ function ir(e) {
|
|
|
4045
4045
|
"varying",
|
|
4046
4046
|
// modifier (character varying)
|
|
4047
4047
|
"varbinary"
|
|
4048
|
-
],
|
|
4048
|
+
], s = [
|
|
4049
4049
|
"add",
|
|
4050
4050
|
"asc",
|
|
4051
4051
|
"collation",
|
|
@@ -4054,7 +4054,7 @@ function ir(e) {
|
|
|
4054
4054
|
"first",
|
|
4055
4055
|
"last",
|
|
4056
4056
|
"view"
|
|
4057
|
-
],
|
|
4057
|
+
], o = [
|
|
4058
4058
|
"abs",
|
|
4059
4059
|
"acos",
|
|
4060
4060
|
"all",
|
|
@@ -4421,7 +4421,7 @@ function ir(e) {
|
|
|
4421
4421
|
"within",
|
|
4422
4422
|
"without",
|
|
4423
4423
|
"year"
|
|
4424
|
-
],
|
|
4424
|
+
], a = [
|
|
4425
4425
|
"abs",
|
|
4426
4426
|
"acos",
|
|
4427
4427
|
"array_agg",
|
|
@@ -4540,27 +4540,27 @@ function ir(e) {
|
|
|
4540
4540
|
"nulls last",
|
|
4541
4541
|
"depth first",
|
|
4542
4542
|
"breadth first"
|
|
4543
|
-
],
|
|
4544
|
-
...
|
|
4545
|
-
...
|
|
4546
|
-
].filter((
|
|
4543
|
+
], h = a, p = [
|
|
4544
|
+
...o,
|
|
4545
|
+
...s
|
|
4546
|
+
].filter((y) => !a.includes(y)), d = {
|
|
4547
4547
|
className: "variable",
|
|
4548
4548
|
begin: /@[a-z0-9][a-z0-9_]*/
|
|
4549
|
-
},
|
|
4549
|
+
}, _ = {
|
|
4550
4550
|
className: "operator",
|
|
4551
4551
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
4552
4552
|
relevance: 0
|
|
4553
|
-
},
|
|
4554
|
-
begin: r.concat(/\b/, r.either(...
|
|
4553
|
+
}, m = {
|
|
4554
|
+
begin: r.concat(/\b/, r.either(...h), /\s*\(/),
|
|
4555
4555
|
relevance: 0,
|
|
4556
|
-
keywords: { built_in:
|
|
4556
|
+
keywords: { built_in: h }
|
|
4557
4557
|
};
|
|
4558
|
-
function
|
|
4559
|
-
exceptions:
|
|
4560
|
-
when:
|
|
4558
|
+
function b(y, {
|
|
4559
|
+
exceptions: M,
|
|
4560
|
+
when: L
|
|
4561
4561
|
} = {}) {
|
|
4562
|
-
const
|
|
4563
|
-
return
|
|
4562
|
+
const N = L;
|
|
4563
|
+
return M = M || [], y.map((D) => D.match(/\|\d+$/) || M.includes(D) ? D : N(D) ? `${D}|0` : D);
|
|
4564
4564
|
}
|
|
4565
4565
|
return {
|
|
4566
4566
|
name: "SQL",
|
|
@@ -4569,7 +4569,7 @@ function ir(e) {
|
|
|
4569
4569
|
illegal: /[{}]|<\//,
|
|
4570
4570
|
keywords: {
|
|
4571
4571
|
$pattern: /\b[\w\.]+/,
|
|
4572
|
-
keyword:
|
|
4572
|
+
keyword: b(p, { when: (y) => y.length < 3 }),
|
|
4573
4573
|
literal: n,
|
|
4574
4574
|
type: i,
|
|
4575
4575
|
built_in: c
|
|
@@ -4580,7 +4580,7 @@ function ir(e) {
|
|
|
4580
4580
|
relevance: 0,
|
|
4581
4581
|
keywords: {
|
|
4582
4582
|
$pattern: /[\w\.]+/,
|
|
4583
|
-
keyword:
|
|
4583
|
+
keyword: p.concat(f),
|
|
4584
4584
|
literal: n,
|
|
4585
4585
|
type: i
|
|
4586
4586
|
}
|
|
@@ -4589,19 +4589,19 @@ function ir(e) {
|
|
|
4589
4589
|
className: "type",
|
|
4590
4590
|
begin: r.either(...t)
|
|
4591
4591
|
},
|
|
4592
|
-
|
|
4593
|
-
|
|
4592
|
+
m,
|
|
4593
|
+
d,
|
|
4594
4594
|
u,
|
|
4595
|
-
|
|
4595
|
+
g,
|
|
4596
4596
|
e.C_NUMBER_MODE,
|
|
4597
4597
|
e.C_BLOCK_COMMENT_MODE,
|
|
4598
4598
|
l,
|
|
4599
|
-
|
|
4599
|
+
_
|
|
4600
4600
|
]
|
|
4601
4601
|
};
|
|
4602
4602
|
}
|
|
4603
4603
|
J.registerLanguage("xml", Qt);
|
|
4604
|
-
J.registerLanguage("javascript",
|
|
4604
|
+
J.registerLanguage("javascript", Vt);
|
|
4605
4605
|
J.registerLanguage("json", Jt);
|
|
4606
4606
|
J.registerLanguage("yaml", qt);
|
|
4607
4607
|
J.registerLanguage("plaintext", er);
|
|
@@ -4609,43 +4609,43 @@ J.registerLanguage("python", nr);
|
|
|
4609
4609
|
J.registerLanguage("java", tr);
|
|
4610
4610
|
J.registerLanguage("bash", rr);
|
|
4611
4611
|
J.registerLanguage("sql", ir);
|
|
4612
|
-
var
|
|
4612
|
+
var w = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(w || {});
|
|
4613
4613
|
const ie = "<code-diff-modified>", se = "</code-diff-modified>", sr = ie.replace("<", "<").replace(">", ">"), ar = se.replace("<", "<").replace(">", ">");
|
|
4614
4614
|
function be(e) {
|
|
4615
|
-
return e === void 0 ?
|
|
4615
|
+
return e === void 0 ? w.EQUAL : e.added ? w.ADD : e.removed ? w.DELETE : w.EQUAL;
|
|
4616
4616
|
}
|
|
4617
4617
|
function ke(e, r, l = "word") {
|
|
4618
|
-
return typeof e == "undefined" ? r : typeof r == "undefined" ? e : (l === "char" ? Qn : Yn)(e, r).filter((
|
|
4619
|
-
(
|
|
4618
|
+
return typeof e == "undefined" ? r : typeof r == "undefined" ? e : (l === "char" ? Qn : Yn)(e, r).filter((g) => be(g) !== w.DELETE).map(
|
|
4619
|
+
(g) => be(g) === w.ADD ? `${ie}${g.value}${se}` : g.value
|
|
4620
4620
|
).join("");
|
|
4621
4621
|
}
|
|
4622
4622
|
function On(e, r) {
|
|
4623
|
-
const l = new
|
|
4624
|
-
return l.diff_charsToLines_(i, t), i.map((
|
|
4625
|
-
const [
|
|
4623
|
+
const l = new He.diff_match_patch(), u = l.diff_linesToChars_(e, r), g = u.chars1, n = u.chars2, t = u.lineArray, i = l.diff_main(g, n, !1);
|
|
4624
|
+
return l.diff_charsToLines_(i, t), i.map((s) => {
|
|
4625
|
+
const [o, a] = s;
|
|
4626
4626
|
return {
|
|
4627
|
-
count:
|
|
4627
|
+
count: a.replace(/\n$/, "").split(`
|
|
4628
4628
|
`).length,
|
|
4629
|
-
value:
|
|
4630
|
-
removed:
|
|
4631
|
-
added:
|
|
4629
|
+
value: a,
|
|
4630
|
+
removed: o === He.DIFF_DELETE,
|
|
4631
|
+
added: o === He.DIFF_INSERT
|
|
4632
4632
|
};
|
|
4633
4633
|
});
|
|
4634
4634
|
}
|
|
4635
|
-
function
|
|
4635
|
+
function V(e, r) {
|
|
4636
4636
|
if (!r.match(new RegExp(`(${ie}|${se})`, "g")))
|
|
4637
4637
|
return J.highlight(r, { language: e }).value;
|
|
4638
4638
|
let u = r;
|
|
4639
|
-
const
|
|
4640
|
-
n.innerHTML = J.highlight(
|
|
4639
|
+
const g = r.replace(new RegExp(`(${ie}|${se})`, "g"), ""), n = document.createElement("div");
|
|
4640
|
+
n.innerHTML = J.highlight(g, { language: e }).value;
|
|
4641
4641
|
let t = !1;
|
|
4642
|
-
const i = (
|
|
4643
|
-
|
|
4644
|
-
if (
|
|
4645
|
-
if (!
|
|
4642
|
+
const i = (s) => {
|
|
4643
|
+
s.childNodes.forEach((o) => {
|
|
4644
|
+
if (o.nodeType === Node.ELEMENT_NODE && i(o), o.nodeType === Node.TEXT_NODE) {
|
|
4645
|
+
if (!o.textContent)
|
|
4646
4646
|
return;
|
|
4647
|
-
let
|
|
4648
|
-
for (t && (c = c + ie);
|
|
4647
|
+
let a = o.textContent, c = "";
|
|
4648
|
+
for (t && (c = c + ie); a.length; ) {
|
|
4649
4649
|
if (u.startsWith(ie)) {
|
|
4650
4650
|
u = u.slice(ie.length), c = c + ie, t = !0;
|
|
4651
4651
|
continue;
|
|
@@ -4654,280 +4654,306 @@ function j(e, r) {
|
|
|
4654
4654
|
u = u.slice(se.length), c = c + se, t = !1;
|
|
4655
4655
|
continue;
|
|
4656
4656
|
}
|
|
4657
|
-
const f = u.match(new RegExp(`(${ie}|${se})`)),
|
|
4658
|
-
c = c + u.substring(0,
|
|
4657
|
+
const f = u.match(new RegExp(`(${ie}|${se})`)), h = f && f.index ? f.index : u.length, p = Math.min(h, a.length);
|
|
4658
|
+
c = c + u.substring(0, p), u = u.slice(p), a = a.slice(p);
|
|
4659
4659
|
}
|
|
4660
|
-
t && (c = c + se),
|
|
4660
|
+
t && (c = c + se), o.textContent = c;
|
|
4661
4661
|
}
|
|
4662
4662
|
});
|
|
4663
4663
|
};
|
|
4664
4664
|
return i(n), n.innerHTML.replace(new RegExp(sr, "g"), '<span class="x">').replace(new RegExp(ar, "g"), "</span>");
|
|
4665
4665
|
}
|
|
4666
|
-
function Cn(e) {
|
|
4667
|
-
const
|
|
4668
|
-
let
|
|
4669
|
-
for (const
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
`)
|
|
4673
|
-
|
|
4666
|
+
function Cn(e, r) {
|
|
4667
|
+
const l = (s, o) => (s.match(new RegExp(o, "g")) || []).length, u = (s) => s.filter((o) => r == null ? void 0 : r.test(o)).length;
|
|
4668
|
+
let g = 0, n = 0, t = 0, i = 0;
|
|
4669
|
+
for (const s of e) {
|
|
4670
|
+
if (s.added) {
|
|
4671
|
+
const o = u(s.value.trim().split(`
|
|
4672
|
+
`));
|
|
4673
|
+
g += l(s.value.trim(), `
|
|
4674
|
+
`) + 1 - o, t += o;
|
|
4675
|
+
continue;
|
|
4676
|
+
}
|
|
4677
|
+
if (s.removed) {
|
|
4678
|
+
const o = u(s.value.trim().split(`
|
|
4679
|
+
`));
|
|
4680
|
+
n += l(s.value.trim(), `
|
|
4681
|
+
`) + 1 - o, i += o;
|
|
4682
|
+
continue;
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
return {
|
|
4686
|
+
additionsNum: g,
|
|
4687
|
+
deletionsNum: n,
|
|
4688
|
+
ignoreAdditionsNum: t,
|
|
4689
|
+
ignoreDeletionsNum: i
|
|
4690
|
+
};
|
|
4674
4691
|
}
|
|
4675
|
-
function or(e, r, l = "plaintext", u = "word",
|
|
4676
|
-
const
|
|
4677
|
-
let a = 0,
|
|
4678
|
-
const
|
|
4679
|
-
changes:
|
|
4692
|
+
function or(e, r, l = "plaintext", u = "word", g = 10, n) {
|
|
4693
|
+
const t = () => ({ type: w.EMPTY }), i = (m, b, y) => ({ type: m, num: b, code: y }), s = On(e, r), o = n ? new RegExp(n) : void 0;
|
|
4694
|
+
let a = 0, c = 0, f = !1;
|
|
4695
|
+
const h = [], p = {
|
|
4696
|
+
changes: h,
|
|
4680
4697
|
collector: [],
|
|
4681
|
-
stat: Cn(
|
|
4698
|
+
stat: Cn(s, o)
|
|
4682
4699
|
};
|
|
4683
|
-
for (let
|
|
4684
|
-
if (
|
|
4685
|
-
|
|
4700
|
+
for (let m = 0; m < s.length; m++) {
|
|
4701
|
+
if (f) {
|
|
4702
|
+
f = !1;
|
|
4686
4703
|
continue;
|
|
4687
4704
|
}
|
|
4688
|
-
const [b,
|
|
4705
|
+
const [b, y] = [s[m], s[m + 1]], [M, L] = [be(b), be(y)], N = b.value.replace(/\n$/, "").split(`
|
|
4689
4706
|
`);
|
|
4690
|
-
if (
|
|
4691
|
-
for (const
|
|
4692
|
-
let
|
|
4693
|
-
const
|
|
4694
|
-
|
|
4707
|
+
if (y === void 0) {
|
|
4708
|
+
for (const R of N) {
|
|
4709
|
+
let S = t(), $ = t();
|
|
4710
|
+
const k = V(l, R);
|
|
4711
|
+
M === w.EQUAL && (a++, c++, S = i(w.EQUAL, a, k), $ = i(w.EQUAL, c, k)), M === w.DELETE && (a++, S = i(w.DELETE, a, k), $ = t()), M === w.ADD && (c++, S = t(), $ = i(w.ADD, c, k)), h.push({ left: S, right: $ });
|
|
4695
4712
|
}
|
|
4696
4713
|
break;
|
|
4697
4714
|
}
|
|
4698
|
-
if (
|
|
4699
|
-
for (const
|
|
4700
|
-
a++,
|
|
4701
|
-
const
|
|
4702
|
-
|
|
4703
|
-
left:
|
|
4704
|
-
right:
|
|
4715
|
+
if (M === w.EQUAL)
|
|
4716
|
+
for (const R of N) {
|
|
4717
|
+
a++, c++;
|
|
4718
|
+
const S = V(l, R);
|
|
4719
|
+
h.push({
|
|
4720
|
+
left: i(w.EQUAL, a, S),
|
|
4721
|
+
right: i(w.EQUAL, c, S)
|
|
4705
4722
|
});
|
|
4706
4723
|
}
|
|
4707
|
-
const D =
|
|
4724
|
+
const D = y.value.replace(/\n$/, "").split(`
|
|
4708
4725
|
`);
|
|
4709
|
-
if (
|
|
4710
|
-
if (
|
|
4711
|
-
for (const
|
|
4712
|
-
a++,
|
|
4713
|
-
left:
|
|
4714
|
-
right:
|
|
4726
|
+
if (M === w.DELETE) {
|
|
4727
|
+
if (L === w.EQUAL)
|
|
4728
|
+
for (const R of N)
|
|
4729
|
+
a++, h.push({
|
|
4730
|
+
left: i(w.DELETE, a, V(l, R)),
|
|
4731
|
+
right: t()
|
|
4715
4732
|
});
|
|
4716
|
-
if (
|
|
4717
|
-
|
|
4718
|
-
const
|
|
4719
|
-
for (let
|
|
4720
|
-
|
|
4721
|
-
const [
|
|
4722
|
-
|
|
4733
|
+
if (L === w.ADD) {
|
|
4734
|
+
f = !0;
|
|
4735
|
+
const R = Math.max(b.count, y.count);
|
|
4736
|
+
for (let S = 0; S < R; S++) {
|
|
4737
|
+
S < b.count && a++, S < y.count && c++;
|
|
4738
|
+
const [$, k] = [N[S], D[S]], H = N.length === D.length ? ke(k, $, u) : $, K = N.length === D.length ? ke($, k, u) : k, Y = o != null && o.test($) ? w.EQUAL : w.DELETE, oe = o != null && o.test(k) ? w.EQUAL : w.ADD, ge = S < b.count ? i(Y, a, V(l, H)) : t(), E = S < y.count ? i(oe, c, V(l, K)) : t();
|
|
4739
|
+
h.push({ left: ge, right: E });
|
|
4723
4740
|
}
|
|
4724
4741
|
}
|
|
4725
4742
|
}
|
|
4726
|
-
if (
|
|
4727
|
-
for (const
|
|
4728
|
-
|
|
4729
|
-
left:
|
|
4730
|
-
right:
|
|
4743
|
+
if (M === w.ADD)
|
|
4744
|
+
for (const R of N)
|
|
4745
|
+
c++, h.push({
|
|
4746
|
+
left: t(),
|
|
4747
|
+
right: i(w.ADD, c, V(l, R))
|
|
4731
4748
|
});
|
|
4732
4749
|
}
|
|
4733
4750
|
if (e === r) {
|
|
4734
|
-
for (let
|
|
4735
|
-
|
|
4736
|
-
return
|
|
4751
|
+
for (let m = 0; m < h.length; m++)
|
|
4752
|
+
h[m].fold = !1;
|
|
4753
|
+
return p;
|
|
4737
4754
|
}
|
|
4738
|
-
for (let
|
|
4739
|
-
const b =
|
|
4740
|
-
if (b.left.type ===
|
|
4741
|
-
const [
|
|
4742
|
-
for (let
|
|
4743
|
-
|
|
4755
|
+
for (let m = 0; m < h.length; m++) {
|
|
4756
|
+
const b = h[m];
|
|
4757
|
+
if (b.left.type === w.DELETE || b.right.type === w.ADD) {
|
|
4758
|
+
const [y, M] = [Math.max(m - g, 0), Math.min(m + g + 1, h.length)];
|
|
4759
|
+
for (let L = y; L < M; L++)
|
|
4760
|
+
h[L].fold = !1;
|
|
4744
4761
|
}
|
|
4745
4762
|
b.fold === void 0 && (b.fold = !0);
|
|
4746
4763
|
}
|
|
4747
|
-
const
|
|
4748
|
-
let
|
|
4749
|
-
for (let
|
|
4750
|
-
const b =
|
|
4764
|
+
const d = [];
|
|
4765
|
+
let _ = [];
|
|
4766
|
+
for (let m = 0; m < h.length; m++) {
|
|
4767
|
+
const b = h[m];
|
|
4751
4768
|
if (b.fold === !1) {
|
|
4752
|
-
|
|
4753
|
-
lines:
|
|
4769
|
+
_.length && (_[0].hideIndex = p.collector.length, p.collector.push({
|
|
4770
|
+
lines: _,
|
|
4754
4771
|
fold: !0
|
|
4755
|
-
}),
|
|
4772
|
+
}), _ = []), d.push(b);
|
|
4756
4773
|
continue;
|
|
4757
4774
|
}
|
|
4758
|
-
b.hide = !0,
|
|
4775
|
+
b.hide = !0, _.push(b), d.push(b);
|
|
4759
4776
|
}
|
|
4760
|
-
return
|
|
4761
|
-
lines:
|
|
4777
|
+
return _.length && (_[0].hideIndex = p.collector.length, p.collector.push({
|
|
4778
|
+
lines: _,
|
|
4762
4779
|
fold: !0
|
|
4763
|
-
}),
|
|
4780
|
+
}), _ = []), p.changes = d, p;
|
|
4764
4781
|
}
|
|
4765
|
-
function lr(e, r, l = "plaintext", u = "word",
|
|
4766
|
-
const
|
|
4767
|
-
let
|
|
4768
|
-
const
|
|
4769
|
-
changes:
|
|
4782
|
+
function lr(e, r, l = "plaintext", u = "word", g = 10, n) {
|
|
4783
|
+
const t = On(e, r), i = n ? new RegExp(n) : void 0;
|
|
4784
|
+
let s = 0, o = 0, a = !1;
|
|
4785
|
+
const c = [], f = {
|
|
4786
|
+
changes: c,
|
|
4770
4787
|
collector: [],
|
|
4771
|
-
stat: Cn(
|
|
4788
|
+
stat: Cn(t, i)
|
|
4772
4789
|
};
|
|
4773
|
-
for (let
|
|
4790
|
+
for (let d = 0; d < t.length; d++) {
|
|
4774
4791
|
if (a) {
|
|
4775
4792
|
a = !1;
|
|
4776
4793
|
continue;
|
|
4777
4794
|
}
|
|
4778
|
-
const [
|
|
4795
|
+
const [_, m] = [t[d], t[d + 1]], [b, y] = [be(_), be(m)], M = _.value.replace(/\n$/, "").split(`
|
|
4779
4796
|
`);
|
|
4780
|
-
if (
|
|
4781
|
-
for (const
|
|
4782
|
-
b ===
|
|
4783
|
-
const D =
|
|
4784
|
-
|
|
4797
|
+
if (m === void 0) {
|
|
4798
|
+
for (const N of M) {
|
|
4799
|
+
b === w.EQUAL && (s++, o++), b === w.DELETE && s++, b === w.ADD && o++;
|
|
4800
|
+
const D = V(l, N);
|
|
4801
|
+
c.push({
|
|
4785
4802
|
type: b,
|
|
4786
4803
|
code: D,
|
|
4787
|
-
addNum: b ===
|
|
4788
|
-
delNum: b ===
|
|
4804
|
+
addNum: b === w.DELETE ? void 0 : o,
|
|
4805
|
+
delNum: b === w.ADD ? void 0 : s
|
|
4789
4806
|
});
|
|
4790
4807
|
}
|
|
4791
4808
|
break;
|
|
4792
4809
|
}
|
|
4793
|
-
if (b ===
|
|
4794
|
-
for (const
|
|
4795
|
-
|
|
4796
|
-
const D =
|
|
4797
|
-
|
|
4810
|
+
if (b === w.EQUAL)
|
|
4811
|
+
for (const N of M) {
|
|
4812
|
+
s++, o++;
|
|
4813
|
+
const D = V(l, N);
|
|
4814
|
+
c.push({ type: w.EQUAL, code: D, delNum: s, addNum: o });
|
|
4798
4815
|
}
|
|
4799
|
-
const
|
|
4816
|
+
const L = m.value.replace(/\n$/, "").split(`
|
|
4800
4817
|
`);
|
|
4801
|
-
if (b ===
|
|
4802
|
-
if (
|
|
4803
|
-
for (let
|
|
4804
|
-
const D =
|
|
4805
|
-
|
|
4806
|
-
const
|
|
4807
|
-
|
|
4818
|
+
if (b === w.DELETE)
|
|
4819
|
+
if (y === w.ADD && M.length === L.length) {
|
|
4820
|
+
for (let N = 0; N < M.length; N++) {
|
|
4821
|
+
const D = M[N], R = L[N];
|
|
4822
|
+
s++;
|
|
4823
|
+
const S = V(l, ke(R, D, u));
|
|
4824
|
+
c.push({
|
|
4825
|
+
type: i != null && i.test(D) ? w.EQUAL : w.DELETE,
|
|
4826
|
+
code: S,
|
|
4827
|
+
delNum: s
|
|
4828
|
+
});
|
|
4808
4829
|
}
|
|
4809
|
-
for (let
|
|
4810
|
-
const D =
|
|
4811
|
-
|
|
4812
|
-
const
|
|
4813
|
-
|
|
4830
|
+
for (let N = 0; N < L.length; N++) {
|
|
4831
|
+
const D = M[N], R = L[N];
|
|
4832
|
+
o++;
|
|
4833
|
+
const S = V(l, ke(D, R, u));
|
|
4834
|
+
c.push({
|
|
4835
|
+
type: i != null && i.test(R) ? w.EQUAL : w.ADD,
|
|
4836
|
+
code: S,
|
|
4837
|
+
addNum: o
|
|
4838
|
+
});
|
|
4814
4839
|
}
|
|
4815
4840
|
a = !0;
|
|
4816
4841
|
} else
|
|
4817
|
-
for (const
|
|
4818
|
-
|
|
4819
|
-
const D =
|
|
4820
|
-
|
|
4842
|
+
for (const N of M) {
|
|
4843
|
+
s++;
|
|
4844
|
+
const D = V(l, N);
|
|
4845
|
+
c.push({ type: w.DELETE, code: D, delNum: s });
|
|
4821
4846
|
}
|
|
4822
|
-
if (b ===
|
|
4823
|
-
for (const
|
|
4824
|
-
|
|
4825
|
-
const D =
|
|
4826
|
-
|
|
4847
|
+
if (b === w.ADD)
|
|
4848
|
+
for (const N of M) {
|
|
4849
|
+
o++;
|
|
4850
|
+
const D = V(l, N);
|
|
4851
|
+
c.push({ type: w.ADD, code: D, addNum: o });
|
|
4827
4852
|
}
|
|
4828
4853
|
}
|
|
4829
|
-
for (let
|
|
4830
|
-
const
|
|
4831
|
-
if (
|
|
4832
|
-
const [
|
|
4833
|
-
for (let
|
|
4834
|
-
|
|
4854
|
+
for (let d = 0; d < c.length; d++) {
|
|
4855
|
+
const _ = c[d];
|
|
4856
|
+
if (_.type === w.DELETE || _.type === w.ADD) {
|
|
4857
|
+
const [m, b] = [Math.max(d - g, 0), Math.min(d + g + 1, c.length)];
|
|
4858
|
+
for (let y = m; y < b; y++)
|
|
4859
|
+
c[y].fold = !1;
|
|
4835
4860
|
}
|
|
4836
|
-
|
|
4861
|
+
_.fold === void 0 && (_.fold = !0);
|
|
4837
4862
|
}
|
|
4838
4863
|
if (e === r) {
|
|
4839
|
-
for (let
|
|
4840
|
-
|
|
4841
|
-
return
|
|
4864
|
+
for (let d = 0; d < c.length; d++)
|
|
4865
|
+
c[d].fold = !1;
|
|
4866
|
+
return f;
|
|
4842
4867
|
}
|
|
4843
|
-
const
|
|
4844
|
-
let
|
|
4845
|
-
for (let
|
|
4846
|
-
const
|
|
4847
|
-
if (
|
|
4848
|
-
|
|
4849
|
-
lines:
|
|
4868
|
+
const h = [];
|
|
4869
|
+
let p = [];
|
|
4870
|
+
for (let d = 0; d < c.length; d++) {
|
|
4871
|
+
const _ = c[d];
|
|
4872
|
+
if (_.fold === !1) {
|
|
4873
|
+
p.length && (p[0].hideIndex = f.collector.length, f.collector.push({
|
|
4874
|
+
lines: p,
|
|
4850
4875
|
fold: !0
|
|
4851
|
-
}),
|
|
4876
|
+
}), p = []), h.push(_);
|
|
4852
4877
|
continue;
|
|
4853
4878
|
}
|
|
4854
|
-
|
|
4879
|
+
_.type === "equal" && (_.hide = !0, p.push(_)), h.push(_);
|
|
4855
4880
|
}
|
|
4856
|
-
return
|
|
4857
|
-
lines:
|
|
4881
|
+
return p.length && (p[0].hideIndex = f.collector.length, f.collector.push({
|
|
4882
|
+
lines: p,
|
|
4858
4883
|
fold: !0
|
|
4859
|
-
}),
|
|
4884
|
+
}), p = []), f.changes = h, f;
|
|
4860
4885
|
}
|
|
4861
|
-
const cr = { key: 0 }, ur = /* @__PURE__ */
|
|
4886
|
+
const cr = { key: 0 }, ur = /* @__PURE__ */ U("td", {
|
|
4862
4887
|
class: "blob-code blob-code-hunk",
|
|
4863
4888
|
align: "left"
|
|
4864
|
-
}, " ⋯ ", -1), fr = { key: 1 }, gr = ["data-code-marker", "innerHTML"], hr = /* @__PURE__ */
|
|
4889
|
+
}, " ⋯ ", -1), fr = { key: 1 }, gr = ["data-code-marker", "innerHTML"], hr = /* @__PURE__ */ Ae({
|
|
4865
4890
|
__name: "UnifiedLine",
|
|
4866
4891
|
props: {
|
|
4867
|
-
line:
|
|
4892
|
+
line: {}
|
|
4868
4893
|
},
|
|
4869
4894
|
emits: ["expand"],
|
|
4870
4895
|
setup(e, { emit: r }) {
|
|
4871
|
-
|
|
4872
|
-
|
|
4896
|
+
const l = r;
|
|
4897
|
+
function u(g) {
|
|
4898
|
+
return g === w.DELETE ? "-" : g === w.ADD ? "+" : "";
|
|
4873
4899
|
}
|
|
4874
|
-
return (
|
|
4875
|
-
|
|
4900
|
+
return (g, n) => g.line.hideIndex !== void 0 && g.line.hide ? (G(), W("tr", cr, [
|
|
4901
|
+
U("td", {
|
|
4876
4902
|
class: "blob-num blob-num-hunk text-center",
|
|
4877
4903
|
colspan: "2",
|
|
4878
|
-
onClick:
|
|
4904
|
+
onClick: n[0] || (n[0] = (t) => l("expand", g.line))
|
|
4879
4905
|
}, " > "),
|
|
4880
4906
|
ur
|
|
4881
|
-
])) :
|
|
4882
|
-
|
|
4883
|
-
class:
|
|
4884
|
-
"blob-num-deletion":
|
|
4885
|
-
"blob-num-addition":
|
|
4886
|
-
"blob-num-context":
|
|
4887
|
-
"blob-num-hunk":
|
|
4907
|
+
])) : g.line.hide ? ve("", !0) : (G(), W("tr", fr, [
|
|
4908
|
+
U("td", {
|
|
4909
|
+
class: me(["blob-num", {
|
|
4910
|
+
"blob-num-deletion": g.line.type === F(w).DELETE,
|
|
4911
|
+
"blob-num-addition": g.line.type === F(w).ADD,
|
|
4912
|
+
"blob-num-context": g.line.type === F(w).EQUAL,
|
|
4913
|
+
"blob-num-hunk": g.line.hide !== void 0
|
|
4888
4914
|
}])
|
|
4889
|
-
}, ee(
|
|
4890
|
-
|
|
4891
|
-
class:
|
|
4892
|
-
"blob-num-deletion":
|
|
4893
|
-
"blob-num-addition":
|
|
4894
|
-
"blob-num-context":
|
|
4895
|
-
"blob-num-hunk":
|
|
4915
|
+
}, ee(g.line.delNum), 3),
|
|
4916
|
+
U("td", {
|
|
4917
|
+
class: me(["blob-num", {
|
|
4918
|
+
"blob-num-deletion": g.line.type === F(w).DELETE,
|
|
4919
|
+
"blob-num-addition": g.line.type === F(w).ADD,
|
|
4920
|
+
"blob-num-context": g.line.type === F(w).EQUAL,
|
|
4921
|
+
"blob-num-hunk": g.line.hide !== void 0
|
|
4896
4922
|
}])
|
|
4897
|
-
}, ee(
|
|
4898
|
-
|
|
4899
|
-
class:
|
|
4900
|
-
"blob-code-deletion":
|
|
4901
|
-
"blob-code-addition":
|
|
4902
|
-
"blob-code-context":
|
|
4903
|
-
"blob-code-hunk":
|
|
4923
|
+
}, ee(g.line.addNum), 3),
|
|
4924
|
+
U("td", {
|
|
4925
|
+
class: me(["blob-code", {
|
|
4926
|
+
"blob-code-deletion": g.line.type === F(w).DELETE,
|
|
4927
|
+
"blob-code-addition": g.line.type === F(w).ADD,
|
|
4928
|
+
"blob-code-context": g.line.type === F(w).EQUAL,
|
|
4929
|
+
"blob-code-hunk": g.line.hide !== void 0
|
|
4904
4930
|
}])
|
|
4905
4931
|
}, [
|
|
4906
|
-
|
|
4932
|
+
U("span", {
|
|
4907
4933
|
class: "blob-code-inner blob-code-marker",
|
|
4908
|
-
"data-code-marker":
|
|
4909
|
-
innerHTML:
|
|
4934
|
+
"data-code-marker": u(g.line.type),
|
|
4935
|
+
innerHTML: g.line.code
|
|
4910
4936
|
}, null, 8, gr)
|
|
4911
4937
|
], 2)
|
|
4912
4938
|
]));
|
|
4913
4939
|
}
|
|
4914
|
-
}), dr = { class: "diff-table" }, pr = /* @__PURE__ */
|
|
4940
|
+
}), dr = { class: "diff-table" }, pr = /* @__PURE__ */ Ae({
|
|
4915
4941
|
__name: "UnifiedViewer",
|
|
4916
4942
|
props: {
|
|
4917
|
-
diffChange:
|
|
4943
|
+
diffChange: {}
|
|
4918
4944
|
},
|
|
4919
4945
|
setup(e) {
|
|
4920
4946
|
const r = e;
|
|
4921
4947
|
function l({ hideIndex: u }) {
|
|
4922
|
-
u !== void 0 && r.diffChange.collector[u].lines.forEach((
|
|
4923
|
-
|
|
4948
|
+
u !== void 0 && r.diffChange.collector[u].lines.forEach((g) => {
|
|
4949
|
+
g.hide = !1, g.fold = !1;
|
|
4924
4950
|
});
|
|
4925
4951
|
}
|
|
4926
|
-
return (u,
|
|
4952
|
+
return (u, g) => {
|
|
4927
4953
|
var n;
|
|
4928
4954
|
return G(), W("table", dr, [
|
|
4929
|
-
|
|
4930
|
-
(G(!0), W(
|
|
4955
|
+
U("tbody", null, [
|
|
4956
|
+
(G(!0), W(pe, null, Ge((n = u.diffChange) == null ? void 0 : n.changes, (t, i) => (G(), Ce(hr, {
|
|
4931
4957
|
key: i,
|
|
4932
4958
|
line: t,
|
|
4933
4959
|
onExpand: l
|
|
@@ -4936,93 +4962,94 @@ const cr = { key: 0 }, ur = /* @__PURE__ */ B("td", {
|
|
|
4936
4962
|
]);
|
|
4937
4963
|
};
|
|
4938
4964
|
}
|
|
4939
|
-
}),
|
|
4965
|
+
}), _r = { key: 0 }, br = /* @__PURE__ */ U("td", {
|
|
4940
4966
|
class: "blob-code blob-code-inner blob-code-hunk",
|
|
4941
4967
|
colspan: "3",
|
|
4942
4968
|
align: "left"
|
|
4943
|
-
}, " ⋯ ", -1), Er = { key: 1 },
|
|
4969
|
+
}, " ⋯ ", -1), Er = { key: 1 }, mr = /* @__PURE__ */ U("td", { class: "blob-num blob-num-empty empty-cell" }, null, -1), vr = /* @__PURE__ */ U("td", { class: "blob-code blob-code-empty empty-cell" }, null, -1), yr = ["onMousedown"], wr = ["data-code-marker", "innerHTML"], Nr = /* @__PURE__ */ Ae({
|
|
4944
4970
|
__name: "SplitLine",
|
|
4945
4971
|
props: {
|
|
4946
|
-
splitLine:
|
|
4972
|
+
splitLine: {}
|
|
4947
4973
|
},
|
|
4948
4974
|
emits: ["expand"],
|
|
4949
4975
|
setup(e, { emit: r }) {
|
|
4950
|
-
|
|
4951
|
-
|
|
4976
|
+
const l = r;
|
|
4977
|
+
function u(n) {
|
|
4978
|
+
return n === w.DELETE ? "-" : n === w.ADD ? "+" : "";
|
|
4952
4979
|
}
|
|
4953
|
-
function
|
|
4980
|
+
function g(n) {
|
|
4954
4981
|
window.getSelection().removeAllRanges();
|
|
4955
|
-
const
|
|
4956
|
-
for (const
|
|
4957
|
-
|
|
4958
|
-
for (const
|
|
4959
|
-
|
|
4982
|
+
const t = document.querySelectorAll(".file-diff-split .split-side-left"), i = document.querySelectorAll(".file-diff-split .split-side-right");
|
|
4983
|
+
for (const s of i)
|
|
4984
|
+
s.classList.toggle("no-select", n === "left");
|
|
4985
|
+
for (const s of t)
|
|
4986
|
+
s.classList.toggle("no-select", n === "right");
|
|
4960
4987
|
}
|
|
4961
|
-
return (
|
|
4962
|
-
|
|
4988
|
+
return (n, t) => n.splitLine.hideIndex !== void 0 && n.splitLine.hide ? (G(), W("tr", _r, [
|
|
4989
|
+
U("td", {
|
|
4963
4990
|
class: "blob-num blob-num-hunk",
|
|
4964
4991
|
colspan: "1",
|
|
4965
|
-
onClick:
|
|
4992
|
+
onClick: t[0] || (t[0] = (i) => l("expand", n.splitLine))
|
|
4966
4993
|
}, " > "),
|
|
4967
|
-
|
|
4968
|
-
])) :
|
|
4969
|
-
(G(!0), W(
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
], 64)) : (G(), W(
|
|
4974
|
-
|
|
4975
|
-
class:
|
|
4976
|
-
"blob-num-deletion":
|
|
4977
|
-
"blob-num-addition":
|
|
4978
|
-
"blob-num-context":
|
|
4979
|
-
"blob-num-hunk":
|
|
4994
|
+
br
|
|
4995
|
+
])) : n.splitLine.hide ? ve("", !0) : (G(), W("tr", Er, [
|
|
4996
|
+
(G(!0), W(pe, null, Ge([n.splitLine.left, n.splitLine.right], (i, s) => (G(), W(pe, null, [
|
|
4997
|
+
i.type === F(w).EMPTY ? (G(), W(pe, { key: 0 }, [
|
|
4998
|
+
mr,
|
|
4999
|
+
vr
|
|
5000
|
+
], 64)) : (G(), W(pe, { key: 1 }, [
|
|
5001
|
+
U("td", {
|
|
5002
|
+
class: me(["blob-num", {
|
|
5003
|
+
"blob-num-deletion": i.type === F(w).DELETE,
|
|
5004
|
+
"blob-num-addition": i.type === F(w).ADD,
|
|
5005
|
+
"blob-num-context": i.type === F(w).EQUAL,
|
|
5006
|
+
"blob-num-hunk": n.splitLine.hide !== void 0
|
|
4980
5007
|
}])
|
|
4981
|
-
}, ee(
|
|
4982
|
-
|
|
4983
|
-
class:
|
|
4984
|
-
"blob-code-deletion":
|
|
4985
|
-
"blob-code-addition":
|
|
4986
|
-
"blob-code-context":
|
|
4987
|
-
"blob-code-hunk":
|
|
4988
|
-
"split-side-left":
|
|
4989
|
-
"split-side-right":
|
|
5008
|
+
}, ee(i.num), 3),
|
|
5009
|
+
U("td", {
|
|
5010
|
+
class: me(["blob-code", {
|
|
5011
|
+
"blob-code-deletion": i.type === F(w).DELETE,
|
|
5012
|
+
"blob-code-addition": i.type === F(w).ADD,
|
|
5013
|
+
"blob-code-context": i.type === F(w).EQUAL,
|
|
5014
|
+
"blob-code-hunk": n.splitLine.hide !== void 0,
|
|
5015
|
+
"split-side-left": s === 0,
|
|
5016
|
+
"split-side-right": s === 1
|
|
4990
5017
|
}]),
|
|
4991
|
-
onMousedown: (
|
|
5018
|
+
onMousedown: (o) => g(s === 0 ? "left" : "right")
|
|
4992
5019
|
}, [
|
|
4993
|
-
|
|
5020
|
+
U("span", {
|
|
4994
5021
|
class: "blob-code-inner blob-code-marker",
|
|
4995
|
-
"data-code-marker":
|
|
4996
|
-
innerHTML:
|
|
5022
|
+
"data-code-marker": u(i.type),
|
|
5023
|
+
innerHTML: i.code
|
|
4997
5024
|
}, null, 8, wr)
|
|
4998
5025
|
], 42, yr)
|
|
4999
5026
|
], 64))
|
|
5000
5027
|
], 64))), 256))
|
|
5001
5028
|
]));
|
|
5002
5029
|
}
|
|
5003
|
-
}), Ar = { class: "file-diff-split diff-table" }, Mr = /* @__PURE__ */
|
|
5004
|
-
/* @__PURE__ */
|
|
5005
|
-
/* @__PURE__ */
|
|
5006
|
-
/* @__PURE__ */
|
|
5007
|
-
/* @__PURE__ */
|
|
5008
|
-
], -1), Tr = /* @__PURE__ */
|
|
5030
|
+
}), Ar = { class: "file-diff-split diff-table" }, Mr = /* @__PURE__ */ U("colgroup", null, [
|
|
5031
|
+
/* @__PURE__ */ U("col", { width: "44" }),
|
|
5032
|
+
/* @__PURE__ */ U("col"),
|
|
5033
|
+
/* @__PURE__ */ U("col", { width: "44" }),
|
|
5034
|
+
/* @__PURE__ */ U("col")
|
|
5035
|
+
], -1), Tr = /* @__PURE__ */ Ae({
|
|
5009
5036
|
__name: "SplitViewer",
|
|
5010
5037
|
props: {
|
|
5011
|
-
diffChange:
|
|
5038
|
+
diffChange: {}
|
|
5012
5039
|
},
|
|
5013
5040
|
setup(e) {
|
|
5014
5041
|
const r = e;
|
|
5015
5042
|
function l({ hideIndex: u }) {
|
|
5016
|
-
u !== void 0 && r.diffChange.collector[u].lines.forEach((
|
|
5017
|
-
|
|
5043
|
+
u !== void 0 && r.diffChange.collector[u].lines.forEach((g) => {
|
|
5044
|
+
g.hide = !1, g.fold = !1;
|
|
5018
5045
|
});
|
|
5019
5046
|
}
|
|
5020
|
-
return (u,
|
|
5047
|
+
return (u, g) => {
|
|
5021
5048
|
var n;
|
|
5022
5049
|
return G(), W("table", Ar, [
|
|
5023
5050
|
Mr,
|
|
5024
|
-
|
|
5025
|
-
(G(!0), W(
|
|
5051
|
+
U("tbody", null, [
|
|
5052
|
+
(G(!0), W(pe, null, Ge((n = u.diffChange) == null ? void 0 : n.changes, (t, i) => (G(), Ce(Nr, {
|
|
5026
5053
|
key: i,
|
|
5027
5054
|
"split-line": t,
|
|
5028
5055
|
onExpand: l
|
|
@@ -5035,29 +5062,23 @@ const cr = { key: 0 }, ur = /* @__PURE__ */ B("td", {
|
|
|
5035
5062
|
const Sr = ["theme"], Dr = {
|
|
5036
5063
|
key: 0,
|
|
5037
5064
|
class: "file-header"
|
|
5038
|
-
},
|
|
5065
|
+
}, Lr = {
|
|
5039
5066
|
key: 0,
|
|
5040
5067
|
class: "file-info"
|
|
5041
|
-
},
|
|
5068
|
+
}, Rr = { class: "info-left" }, Or = { class: "info-left" }, Cr = {
|
|
5042
5069
|
key: 0,
|
|
5043
5070
|
class: "diff-stat"
|
|
5044
|
-
}, Ir = { class: "diff-stat-added" }, kr = {
|
|
5045
|
-
class: "diff-stat-deleted",
|
|
5046
|
-
style: { "margin-left": "8px" }
|
|
5047
|
-
}, Br = {
|
|
5071
|
+
}, Ir = { class: "diff-stat-added" }, kr = { class: "diff-stat-deleted" }, Br = {
|
|
5048
5072
|
key: 1,
|
|
5049
5073
|
class: "file-info"
|
|
5050
|
-
}, $r = { class: "info-left" },
|
|
5074
|
+
}, $r = { class: "info-left" }, Ur = { class: "info-right" }, Pr = { style: { "margin-left": "20px" } }, Hr = {
|
|
5051
5075
|
key: 0,
|
|
5052
5076
|
class: "diff-stat"
|
|
5053
|
-
},
|
|
5054
|
-
class: "diff-stat-deleted",
|
|
5055
|
-
style: { "margin-left": "8px" }
|
|
5056
|
-
}, zr = /* @__PURE__ */ Ne({
|
|
5077
|
+
}, Fr = { class: "diff-stat-added" }, zr = { class: "diff-stat-deleted" }, xr = /* @__PURE__ */ Ae({
|
|
5057
5078
|
__name: "CodeDiff",
|
|
5058
5079
|
props: {
|
|
5059
|
-
newString:
|
|
5060
|
-
oldString:
|
|
5080
|
+
newString: {},
|
|
5081
|
+
oldString: {},
|
|
5061
5082
|
language: { default: "plaintext" },
|
|
5062
5083
|
context: { default: 10 },
|
|
5063
5084
|
diffStyle: { default: "word" },
|
|
@@ -5069,77 +5090,83 @@ const Sr = ["theme"], Dr = {
|
|
|
5069
5090
|
newFilename: { default: void 0 },
|
|
5070
5091
|
hideHeader: { type: Boolean, default: !1 },
|
|
5071
5092
|
hideStat: { type: Boolean, default: !1 },
|
|
5072
|
-
theme: { default: "light" }
|
|
5093
|
+
theme: { default: "light" },
|
|
5094
|
+
ignoreMatchingLines: { default: void 0 }
|
|
5073
5095
|
},
|
|
5074
5096
|
emits: ["diff"],
|
|
5075
5097
|
setup(e, { emit: r }) {
|
|
5076
|
-
const l = e, u =
|
|
5077
|
-
let
|
|
5078
|
-
return
|
|
5079
|
-
`) :
|
|
5080
|
-
}),
|
|
5081
|
-
let
|
|
5082
|
-
return
|
|
5083
|
-
`) :
|
|
5084
|
-
}),
|
|
5085
|
-
() =>
|
|
5086
|
-
),
|
|
5087
|
-
return
|
|
5088
|
-
|
|
5098
|
+
const l = e, u = r, g = Ee(() => l.outputFormat === "line-by-line"), n = Ee(() => {
|
|
5099
|
+
let a = l.oldString || "";
|
|
5100
|
+
return a = l.trim ? a.trim() : a, a = l.noDiffLineFeed ? a.replace(/(\r\n)/g, `
|
|
5101
|
+
`) : a, a;
|
|
5102
|
+
}), t = Ee(() => {
|
|
5103
|
+
let a = l.newString || "";
|
|
5104
|
+
return a = l.trim ? a.trim() : a, a = l.noDiffLineFeed ? a.replace(/(\r\n)/g, `
|
|
5105
|
+
`) : a, a;
|
|
5106
|
+
}), i = Ee(
|
|
5107
|
+
() => g.value ? lr(n.value, t.value, l.language, l.diffStyle, l.context, l.ignoreMatchingLines) : or(n.value, t.value, l.language, l.diffStyle, l.context, l.ignoreMatchingLines)
|
|
5108
|
+
), s = Fn(i.value), o = Ee(() => s.value.stat.additionsNum === 0 && s.value.stat.deletionsNum === 0);
|
|
5109
|
+
return zn(() => l, () => {
|
|
5110
|
+
s.value = i.value, u("diff", {
|
|
5089
5111
|
stat: {
|
|
5090
|
-
isChanged: !
|
|
5091
|
-
addNum:
|
|
5092
|
-
delNum:
|
|
5112
|
+
isChanged: !o.value,
|
|
5113
|
+
addNum: s.value.stat.additionsNum,
|
|
5114
|
+
delNum: s.value.stat.deletionsNum
|
|
5093
5115
|
}
|
|
5094
5116
|
});
|
|
5095
|
-
}, { deep: !0, immediate: !0 }), (
|
|
5117
|
+
}, { deep: !0, immediate: !0 }), (a, c) => (G(), W("div", {
|
|
5096
5118
|
class: "code-diff-view",
|
|
5097
|
-
theme:
|
|
5098
|
-
style:
|
|
5119
|
+
theme: a.theme,
|
|
5120
|
+
style: xn({ maxHeight: a.maxHeight })
|
|
5099
5121
|
}, [
|
|
5100
|
-
|
|
5101
|
-
F(
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5122
|
+
a.hideHeader ? ve("", !0) : (G(), W("div", Dr, [
|
|
5123
|
+
F(g) ? (G(), W("div", Lr, [
|
|
5124
|
+
U("span", null, [
|
|
5125
|
+
U("div", Rr, ee(a.filename), 1),
|
|
5126
|
+
U("div", Or, ee(a.newFilename), 1)
|
|
5105
5127
|
]),
|
|
5106
|
-
|
|
5107
|
-
en(
|
|
5108
|
-
|
|
5109
|
-
|
|
5128
|
+
a.hideStat ? ve("", !0) : (G(), W("span", Cr, [
|
|
5129
|
+
en(a.$slots, "stat", {
|
|
5130
|
+
stat: F(s).stat
|
|
5131
|
+
}, () => [
|
|
5132
|
+
U("span", Ir, "+" + ee(F(s).stat.additionsNum) + " additions", 1),
|
|
5133
|
+
U("span", kr, "-" + ee(F(s).stat.deletionsNum) + " deletions", 1)
|
|
5110
5134
|
])
|
|
5111
5135
|
]))
|
|
5112
5136
|
])) : (G(), W("div", Br, [
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
en(
|
|
5118
|
-
|
|
5119
|
-
|
|
5137
|
+
U("span", $r, ee(a.filename), 1),
|
|
5138
|
+
U("span", Ur, [
|
|
5139
|
+
U("span", Pr, ee(a.newFilename), 1),
|
|
5140
|
+
a.hideStat ? ve("", !0) : (G(), W("span", Hr, [
|
|
5141
|
+
en(a.$slots, "stat", {
|
|
5142
|
+
stat: F(s).stat
|
|
5143
|
+
}, () => [
|
|
5144
|
+
U("span", Fr, "+" + ee(F(s).stat.additionsNum) + " additions", 1),
|
|
5145
|
+
U("span", zr, "-" + ee(F(s).stat.deletionsNum) + " deletions", 1)
|
|
5120
5146
|
])
|
|
5121
5147
|
]))
|
|
5122
5148
|
])
|
|
5123
5149
|
]))
|
|
5124
5150
|
])),
|
|
5125
|
-
F(
|
|
5151
|
+
F(g) ? (G(), Ce(pr, {
|
|
5126
5152
|
key: 1,
|
|
5127
|
-
"diff-change": F(
|
|
5153
|
+
"diff-change": F(s)
|
|
5128
5154
|
}, null, 8, ["diff-change"])) : (G(), Ce(Tr, {
|
|
5129
5155
|
key: 2,
|
|
5130
|
-
"diff-change": F(
|
|
5156
|
+
"diff-change": F(s)
|
|
5131
5157
|
}, null, 8, ["diff-change"]))
|
|
5132
5158
|
], 12, Sr));
|
|
5133
5159
|
}
|
|
5134
5160
|
});
|
|
5135
5161
|
function Gr(e) {
|
|
5136
|
-
e.component("CodeDiff",
|
|
5162
|
+
e.component("CodeDiff", xr);
|
|
5137
5163
|
}
|
|
5138
5164
|
const Wr = {
|
|
5139
5165
|
install: Gr,
|
|
5140
5166
|
hljs: J
|
|
5141
5167
|
};
|
|
5142
5168
|
export {
|
|
5143
|
-
|
|
5144
|
-
Wr as default
|
|
5169
|
+
xr as CodeDiff,
|
|
5170
|
+
Wr as default,
|
|
5171
|
+
J as hljs
|
|
5145
5172
|
};
|