v-code-diff 1.7.2 → 1.8.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 +49 -43
- package/dist/v2/index.cjs.js +12 -12
- package/dist/v2/index.es.js +770 -700
- package/dist/v2/index.umd.js +13 -13
- package/dist/v2.7/index.cjs.js +15 -15
- package/dist/v2.7/index.es.js +1202 -1166
- package/dist/v2.7/index.umd.js +15 -15
- package/dist/v3/index.cjs.js +15 -15
- package/dist/v3/index.es.js +1155 -1094
- package/dist/v3/index.umd.js +15 -15
- package/package.json +3 -2
- package/src/CodeDiff.vue +38 -14
- package/src/style.scss +8 -3
- package/src/var.scss +541 -73
package/dist/v2/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view{--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #24292f;--color-diff-blob-addition-fg: #24292f;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #24292f;--color-diff-blob-deletion-fg: #24292f;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #2da44e;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(27,31,36,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(27,31,36,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(27,31,36,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .filename{font-size:13px;color:var(--color-fg-default)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .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)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
e = e ||
|
|
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 Pe from "vue";
|
|
3
|
+
import Hn, { computed as fe, ref as Fn, watch as zn } from "@vue/composition-api/dist/vue-composition-api.mjs";
|
|
4
|
+
function Gn(e) {
|
|
5
|
+
e = e || Pe, e && !e.__composition_api_installed__ && e.use(Hn);
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function
|
|
7
|
+
Gn(Pe);
|
|
8
|
+
Pe.version;
|
|
9
|
+
function ne() {
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
ne.prototype = {
|
|
12
12
|
diff: function(n, a) {
|
|
13
13
|
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, h = u.callback;
|
|
14
14
|
typeof u == "function" && (h = u, u = {}), this.options = u;
|
|
@@ -34,13 +34,13 @@ J.prototype = {
|
|
|
34
34
|
for (var p = -1 * o; p <= o; p += 2) {
|
|
35
35
|
var _ = void 0, v = c[p - 1], E = c[p + 1], w = (E ? E.newPos : 0) - p;
|
|
36
36
|
v && (c[p - 1] = void 0);
|
|
37
|
-
var
|
|
38
|
-
if (!
|
|
37
|
+
var y = v && v.newPos + 1 < i, D = E && 0 <= w && w < s;
|
|
38
|
+
if (!y && !D) {
|
|
39
39
|
c[p] = void 0;
|
|
40
40
|
continue;
|
|
41
41
|
}
|
|
42
|
-
if (!
|
|
43
|
-
return r(
|
|
42
|
+
if (!y || D && v.newPos < E.newPos ? (_ = Wn(E), t.pushComponent(_.components, void 0, !0)) : (_ = v, _.newPos++, t.pushComponent(_.components, !0, void 0)), w = t.extractCommon(_, a, n, p), _.newPos + 1 >= i && w + 1 >= s)
|
|
43
|
+
return r(Kn(t, _.components, a, n, t.useLongestToken));
|
|
44
44
|
c[p] = _;
|
|
45
45
|
}
|
|
46
46
|
o++;
|
|
@@ -97,7 +97,7 @@ J.prototype = {
|
|
|
97
97
|
return n.join("");
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function Kn(e, n, a, u, h) {
|
|
101
101
|
for (var t = 0, r = n.length, i = 0, s = 0; t < r; t++) {
|
|
102
102
|
var o = n[t];
|
|
103
103
|
if (o.removed) {
|
|
@@ -120,17 +120,17 @@ function zn(e, n, a, u, h) {
|
|
|
120
120
|
var f = n[r - 1];
|
|
121
121
|
return r > 1 && typeof f.value == "string" && (f.added || f.removed) && e.equals("", f.value) && (n[r - 2].value += f.value, n.pop()), n;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Wn(e) {
|
|
124
124
|
return {
|
|
125
125
|
newPos: e.newPos,
|
|
126
126
|
components: e.components.slice(0)
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
131
|
-
return
|
|
129
|
+
var qn = new ne();
|
|
130
|
+
function Qn(e, n, a) {
|
|
131
|
+
return qn.diff(e, n, a);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Zn(e, n) {
|
|
134
134
|
if (typeof e == "function")
|
|
135
135
|
n.callback = e;
|
|
136
136
|
else if (e)
|
|
@@ -138,21 +138,21 @@ function Qn(e, n) {
|
|
|
138
138
|
e.hasOwnProperty(a) && (n[a] = e[a]);
|
|
139
139
|
return n;
|
|
140
140
|
}
|
|
141
|
-
var
|
|
141
|
+
var Ve = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Xe = /\S/, Ue = new ne();
|
|
142
142
|
Ue.equals = function(e, n) {
|
|
143
143
|
return this.options.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e === n || this.options.ignoreWhitespace && !Xe.test(e) && !Xe.test(n);
|
|
144
144
|
};
|
|
145
145
|
Ue.tokenize = function(e) {
|
|
146
146
|
for (var n = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), a = 0; a < n.length - 1; a++)
|
|
147
|
-
!n[a + 1] && n[a + 2] &&
|
|
147
|
+
!n[a + 1] && n[a + 2] && Ve.test(n[a]) && Ve.test(n[a + 2]) && (n[a] += n[a + 2], n.splice(a + 1, 2), a--);
|
|
148
148
|
return n;
|
|
149
149
|
};
|
|
150
|
-
function
|
|
151
|
-
return a =
|
|
150
|
+
function Yn(e, n, a) {
|
|
151
|
+
return a = Zn(a, {
|
|
152
152
|
ignoreWhitespace: !0
|
|
153
153
|
}), Ue.diff(e, n, a);
|
|
154
154
|
}
|
|
155
|
-
var hn = new
|
|
155
|
+
var hn = new ne();
|
|
156
156
|
hn.tokenize = function(e) {
|
|
157
157
|
var n = [], a = e.split(/(\n|\r\n)/);
|
|
158
158
|
a[a.length - 1] || a.pop();
|
|
@@ -162,35 +162,35 @@ hn.tokenize = function(e) {
|
|
|
162
162
|
}
|
|
163
163
|
return n;
|
|
164
164
|
};
|
|
165
|
-
var
|
|
166
|
-
|
|
165
|
+
var Vn = new ne();
|
|
166
|
+
Vn.tokenize = function(e) {
|
|
167
167
|
return e.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
168
168
|
};
|
|
169
|
-
var
|
|
170
|
-
|
|
169
|
+
var Xn = new ne();
|
|
170
|
+
Xn.tokenize = function(e) {
|
|
171
171
|
return e.split(/([{}:;,]|\s+)/);
|
|
172
172
|
};
|
|
173
|
-
function
|
|
173
|
+
function Se(e) {
|
|
174
174
|
"@babel/helpers - typeof";
|
|
175
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
175
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Se = function(n) {
|
|
176
176
|
return typeof n;
|
|
177
|
-
} :
|
|
177
|
+
} : Se = function(n) {
|
|
178
178
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
179
|
-
},
|
|
179
|
+
}, Se(e);
|
|
180
180
|
}
|
|
181
|
-
var jn = Object.prototype.toString,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
var jn = Object.prototype.toString, ge = new ne();
|
|
182
|
+
ge.useLongestToken = !0;
|
|
183
|
+
ge.tokenize = hn.tokenize;
|
|
184
|
+
ge.castInput = function(e) {
|
|
185
185
|
var n = this.options, a = n.undefinedReplacement, u = n.stringifyReplacer, h = u === void 0 ? function(t, r) {
|
|
186
186
|
return typeof r == "undefined" ? a : r;
|
|
187
187
|
} : u;
|
|
188
|
-
return typeof e == "string" ? e : JSON.stringify(
|
|
188
|
+
return typeof e == "string" ? e : JSON.stringify(Be(e, null, null, h), h, " ");
|
|
189
189
|
};
|
|
190
|
-
|
|
191
|
-
return
|
|
190
|
+
ge.equals = function(e, n) {
|
|
191
|
+
return ne.prototype.equals.call(ge, e.replace(/,([\r\n])/g, "$1"), n.replace(/,([\r\n])/g, "$1"));
|
|
192
192
|
};
|
|
193
|
-
function
|
|
193
|
+
function Be(e, n, a, u, h) {
|
|
194
194
|
n = n || [], a = a || [], u && (e = u(h, e));
|
|
195
195
|
var t;
|
|
196
196
|
for (t = 0; t < n.length; t += 1)
|
|
@@ -199,29 +199,29 @@ function ke(e, n, a, u, h) {
|
|
|
199
199
|
var r;
|
|
200
200
|
if (jn.call(e) === "[object Array]") {
|
|
201
201
|
for (n.push(e), r = new Array(e.length), a.push(r), t = 0; t < e.length; t += 1)
|
|
202
|
-
r[t] =
|
|
202
|
+
r[t] = Be(e[t], n, a, u, h);
|
|
203
203
|
return n.pop(), a.pop(), r;
|
|
204
204
|
}
|
|
205
|
-
if (e && e.toJSON && (e = e.toJSON()),
|
|
205
|
+
if (e && e.toJSON && (e = e.toJSON()), Se(e) === "object" && e !== null) {
|
|
206
206
|
n.push(e), r = {}, a.push(r);
|
|
207
207
|
var i = [], s;
|
|
208
208
|
for (s in e)
|
|
209
209
|
e.hasOwnProperty(s) && i.push(s);
|
|
210
210
|
for (i.sort(), t = 0; t < i.length; t += 1)
|
|
211
|
-
s = i[t], r[s] =
|
|
211
|
+
s = i[t], r[s] = Be(e[s], n, a, u, s);
|
|
212
212
|
n.pop(), a.pop();
|
|
213
213
|
} else
|
|
214
214
|
r = e;
|
|
215
215
|
return r;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var $e = new ne();
|
|
218
|
+
$e.tokenize = function(e) {
|
|
219
219
|
return e.slice();
|
|
220
220
|
};
|
|
221
|
-
|
|
221
|
+
$e.join = $e.removeEmpty = function(e) {
|
|
222
222
|
return e;
|
|
223
223
|
};
|
|
224
|
-
function
|
|
224
|
+
function Jn(e) {
|
|
225
225
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
226
226
|
}
|
|
227
227
|
var dn = { exports: {} };
|
|
@@ -268,10 +268,10 @@ var dn = { exports: {} };
|
|
|
268
268
|
];
|
|
269
269
|
var g = this.diff_halfMatch_(t, r);
|
|
270
270
|
if (g) {
|
|
271
|
-
var d = g[0], p = g[1], _ = g[2], v = g[3], E = g[4], w = this.diff_main(d, _, i, s),
|
|
271
|
+
var d = g[0], p = g[1], _ = g[2], v = g[3], E = g[4], w = this.diff_main(d, _, i, s), y = this.diff_main(p, v, i, s);
|
|
272
272
|
return w.concat(
|
|
273
273
|
[new n.Diff(h, E)],
|
|
274
|
-
|
|
274
|
+
y
|
|
275
275
|
);
|
|
276
276
|
}
|
|
277
277
|
return i && t.length > 100 && r.length > 100 ? this.diff_lineMode_(t, r, s) : this.diff_bisect_(t, r, s);
|
|
@@ -308,34 +308,34 @@ var dn = { exports: {} };
|
|
|
308
308
|
for (var s = t.length, o = r.length, l = Math.ceil((s + o) / 2), c = l, f = 2 * l, g = new Array(f), d = new Array(f), p = 0; p < f; p++)
|
|
309
309
|
g[p] = -1, d[p] = -1;
|
|
310
310
|
g[c + 1] = 0, d[c + 1] = 0;
|
|
311
|
-
for (var _ = s - o, v = _ % 2 != 0, E = 0, w = 0,
|
|
312
|
-
for (var
|
|
313
|
-
var I = c +
|
|
314
|
-
|
|
315
|
-
for (var H = R -
|
|
311
|
+
for (var _ = s - o, v = _ % 2 != 0, E = 0, w = 0, y = 0, D = 0, S = 0; S < l && !((/* @__PURE__ */ new Date()).getTime() > i); S++) {
|
|
312
|
+
for (var A = -S + E; A <= S - w; A += 2) {
|
|
313
|
+
var I = c + A, R;
|
|
314
|
+
A == -S || A != S && g[I - 1] < g[I + 1] ? R = g[I + 1] : R = g[I - 1] + 1;
|
|
315
|
+
for (var H = R - A; R < s && H < o && t.charAt(R) == r.charAt(H); )
|
|
316
316
|
R++, H++;
|
|
317
317
|
if (g[I] = R, R > s)
|
|
318
318
|
w += 2;
|
|
319
319
|
else if (H > o)
|
|
320
320
|
E += 2;
|
|
321
321
|
else if (v) {
|
|
322
|
-
var
|
|
323
|
-
if (
|
|
324
|
-
var $ = s - d[
|
|
322
|
+
var P = c + _ - A;
|
|
323
|
+
if (P >= 0 && P < f && d[P] != -1) {
|
|
324
|
+
var $ = s - d[P];
|
|
325
325
|
if (R >= $)
|
|
326
326
|
return this.diff_bisectSplit_(t, r, R, H, i);
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
for (var F = -S +
|
|
331
|
-
var
|
|
332
|
-
F == -S || F != S && d[
|
|
333
|
-
for (var
|
|
334
|
-
$++,
|
|
335
|
-
if (d[
|
|
336
|
-
|
|
337
|
-
else if (
|
|
338
|
-
|
|
330
|
+
for (var F = -S + y; F <= S - D; F += 2) {
|
|
331
|
+
var P = c + F, $;
|
|
332
|
+
F == -S || F != S && d[P - 1] < d[P + 1] ? $ = d[P + 1] : $ = d[P - 1] + 1;
|
|
333
|
+
for (var W = $ - F; $ < s && W < o && t.charAt(s - $ - 1) == r.charAt(o - W - 1); )
|
|
334
|
+
$++, W++;
|
|
335
|
+
if (d[P] = $, $ > s)
|
|
336
|
+
D += 2;
|
|
337
|
+
else if (W > o)
|
|
338
|
+
y += 2;
|
|
339
339
|
else if (!v) {
|
|
340
340
|
var I = c + _ - F;
|
|
341
341
|
if (I >= 0 && I < f && g[I] != -1) {
|
|
@@ -408,21 +408,21 @@ var dn = { exports: {} };
|
|
|
408
408
|
if (i.length < 4 || s.length * 2 < i.length)
|
|
409
409
|
return null;
|
|
410
410
|
var o = this;
|
|
411
|
-
function l(w,
|
|
412
|
-
for (var S = w.substring(
|
|
411
|
+
function l(w, y, D) {
|
|
412
|
+
for (var S = w.substring(D, D + Math.floor(w.length / 4)), A = -1, I = "", R, H, P, $; (A = y.indexOf(S, A + 1)) != -1; ) {
|
|
413
413
|
var F = o.diff_commonPrefix(
|
|
414
|
-
w.substring(
|
|
415
|
-
|
|
416
|
-
),
|
|
417
|
-
w.substring(0,
|
|
418
|
-
|
|
414
|
+
w.substring(D),
|
|
415
|
+
y.substring(A)
|
|
416
|
+
), W = o.diff_commonSuffix(
|
|
417
|
+
w.substring(0, D),
|
|
418
|
+
y.substring(0, A)
|
|
419
419
|
);
|
|
420
|
-
I.length <
|
|
420
|
+
I.length < W + F && (I = y.substring(A - W, A) + y.substring(A, A + F), R = w.substring(0, D - W), H = w.substring(D + F), P = y.substring(0, A - W), $ = y.substring(A + F));
|
|
421
421
|
}
|
|
422
422
|
return I.length * 2 >= w.length ? [
|
|
423
423
|
R,
|
|
424
424
|
H,
|
|
425
|
-
|
|
425
|
+
P,
|
|
426
426
|
$,
|
|
427
427
|
I
|
|
428
428
|
] : null;
|
|
@@ -470,8 +470,8 @@ var dn = { exports: {} };
|
|
|
470
470
|
function r(E, w) {
|
|
471
471
|
if (!E || !w)
|
|
472
472
|
return 6;
|
|
473
|
-
var
|
|
474
|
-
return $ || F ? 5 : H ||
|
|
473
|
+
var y = E.charAt(E.length - 1), D = w.charAt(0), S = y.match(n.nonAlphaNumericRegex_), A = D.match(n.nonAlphaNumericRegex_), I = S && y.match(n.whitespaceRegex_), R = A && D.match(n.whitespaceRegex_), H = I && y.match(n.linebreakRegex_), P = R && D.match(n.linebreakRegex_), $ = H && E.match(n.blanklineEndRegex_), F = P && w.match(n.blanklineStartRegex_);
|
|
474
|
+
return $ || F ? 5 : H || P ? 4 : S && !I && R ? 3 : I || R ? 2 : S || A ? 1 : 0;
|
|
475
475
|
}
|
|
476
476
|
for (var i = 1; i < t.length - 1; ) {
|
|
477
477
|
if (t[i - 1][0] == h && t[i + 1][0] == h) {
|
|
@@ -622,8 +622,8 @@ var dn = { exports: {} };
|
|
|
622
622
|
throw new Error("Pattern too long for this browser.");
|
|
623
623
|
var s = this.match_alphabet_(r), o = this;
|
|
624
624
|
function l(R, H) {
|
|
625
|
-
var
|
|
626
|
-
return o.Match_Distance ?
|
|
625
|
+
var P = R / r.length, $ = Math.abs(i - H);
|
|
626
|
+
return o.Match_Distance ? P + $ / o.Match_Distance : $ ? 1 : P;
|
|
627
627
|
}
|
|
628
628
|
var c = this.Match_Threshold, f = t.indexOf(r, i);
|
|
629
629
|
f != -1 && (c = Math.min(l(0, f), c), f = t.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(l(0, f), c)));
|
|
@@ -633,11 +633,11 @@ var dn = { exports: {} };
|
|
|
633
633
|
for (d = 0, p = _; d < p; )
|
|
634
634
|
l(E, i + p) <= c ? d = p : _ = p, p = Math.floor((_ - d) / 2 + d);
|
|
635
635
|
_ = p;
|
|
636
|
-
var w = Math.max(1, i - p + 1),
|
|
637
|
-
|
|
638
|
-
for (var S =
|
|
639
|
-
var
|
|
640
|
-
if (E === 0 ?
|
|
636
|
+
var w = Math.max(1, i - p + 1), y = Math.min(i + p, t.length) + r.length, D = Array(y + 2);
|
|
637
|
+
D[y + 1] = (1 << E) - 1;
|
|
638
|
+
for (var S = y; S >= w; S--) {
|
|
639
|
+
var A = s[t.charAt(S - 1)];
|
|
640
|
+
if (E === 0 ? D[S] = (D[S + 1] << 1 | 1) & A : D[S] = (D[S + 1] << 1 | 1) & A | ((v[S + 1] | v[S]) << 1 | 1) | v[S + 1], D[S] & g) {
|
|
641
641
|
var I = l(E, S - 1);
|
|
642
642
|
if (I <= c)
|
|
643
643
|
if (c = I, f = S - 1, f > i)
|
|
@@ -648,7 +648,7 @@ var dn = { exports: {} };
|
|
|
648
648
|
}
|
|
649
649
|
if (l(E + 1, i) > c)
|
|
650
650
|
break;
|
|
651
|
-
v =
|
|
651
|
+
v = D;
|
|
652
652
|
}
|
|
653
653
|
return f;
|
|
654
654
|
}, n.prototype.match_alphabet_ = function(t) {
|
|
@@ -755,11 +755,11 @@ var dn = { exports: {} };
|
|
|
755
755
|
else {
|
|
756
756
|
this.diff_cleanupSemanticLossless(_);
|
|
757
757
|
for (var v = 0, E, w = 0; w < t[l].diffs.length; w++) {
|
|
758
|
-
var
|
|
759
|
-
|
|
758
|
+
var y = t[l].diffs[w];
|
|
759
|
+
y[0] !== h && (E = this.diff_xIndex(_, v)), y[0] === u ? r = r.substring(0, g + E) + y[1] + r.substring(g + E) : y[0] === a && (r = r.substring(0, g + E) + r.substring(g + this.diff_xIndex(
|
|
760
760
|
_,
|
|
761
|
-
v +
|
|
762
|
-
))),
|
|
761
|
+
v + y[1].length
|
|
762
|
+
))), y[0] !== a && (v += y[1].length);
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
@@ -865,20 +865,18 @@ var dn = { exports: {} };
|
|
|
865
865
|
return i.join("").replace(/%20/g, " ");
|
|
866
866
|
}, e.exports = n, e.exports.diff_match_patch = n, e.exports.DIFF_DELETE = a, e.exports.DIFF_INSERT = u, e.exports.DIFF_EQUAL = h;
|
|
867
867
|
})(dn);
|
|
868
|
-
var
|
|
869
|
-
function
|
|
868
|
+
var Ie = dn.exports;
|
|
869
|
+
function pn(e) {
|
|
870
870
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
871
871
|
throw new Error("map is read-only");
|
|
872
872
|
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
873
873
|
throw new Error("set is read-only");
|
|
874
|
-
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach(
|
|
875
|
-
|
|
876
|
-
|
|
874
|
+
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((n) => {
|
|
875
|
+
const a = e[n], u = typeof a;
|
|
876
|
+
(u === "object" || u === "function") && !Object.isFrozen(a) && pn(a);
|
|
877
877
|
}), e;
|
|
878
878
|
}
|
|
879
|
-
|
|
880
|
-
Pe.exports.default = xe;
|
|
881
|
-
class Ve {
|
|
879
|
+
class je {
|
|
882
880
|
/**
|
|
883
881
|
* @param {CompiledMode} mode
|
|
884
882
|
*/
|
|
@@ -889,7 +887,7 @@ class Ve {
|
|
|
889
887
|
this.isMatchIgnored = !0;
|
|
890
888
|
}
|
|
891
889
|
}
|
|
892
|
-
function
|
|
890
|
+
function _n(e) {
|
|
893
891
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
894
892
|
}
|
|
895
893
|
function te(e, ...n) {
|
|
@@ -902,7 +900,9 @@ function te(e, ...n) {
|
|
|
902
900
|
}), /** @type {T} */
|
|
903
901
|
a;
|
|
904
902
|
}
|
|
905
|
-
const
|
|
903
|
+
const et = "</span>", Je = (e) => !!e.scope, nt = (e, { prefix: n }) => {
|
|
904
|
+
if (e.startsWith("language:"))
|
|
905
|
+
return e.replace("language:", "language-");
|
|
906
906
|
if (e.includes(".")) {
|
|
907
907
|
const a = e.split(".");
|
|
908
908
|
return [
|
|
@@ -912,7 +912,7 @@ const Vn = "</span>", Je = (e) => !!e.scope || e.sublanguage && e.language, Jn =
|
|
|
912
912
|
}
|
|
913
913
|
return `${n}${e}`;
|
|
914
914
|
};
|
|
915
|
-
class
|
|
915
|
+
class tt {
|
|
916
916
|
/**
|
|
917
917
|
* Creates a new HTMLRenderer
|
|
918
918
|
*
|
|
@@ -927,7 +927,7 @@ class et {
|
|
|
927
927
|
*
|
|
928
928
|
* @param {string} text */
|
|
929
929
|
addText(n) {
|
|
930
|
-
this.buffer +=
|
|
930
|
+
this.buffer += _n(n);
|
|
931
931
|
}
|
|
932
932
|
/**
|
|
933
933
|
* Adds a node open to the output stream (if needed)
|
|
@@ -936,15 +936,18 @@ class et {
|
|
|
936
936
|
openNode(n) {
|
|
937
937
|
if (!Je(n))
|
|
938
938
|
return;
|
|
939
|
-
|
|
940
|
-
|
|
939
|
+
const a = nt(
|
|
940
|
+
n.scope,
|
|
941
|
+
{ prefix: this.classPrefix }
|
|
942
|
+
);
|
|
943
|
+
this.span(a);
|
|
941
944
|
}
|
|
942
945
|
/**
|
|
943
946
|
* Adds a node close to the output stream (if needed)
|
|
944
947
|
*
|
|
945
948
|
* @param {Node} node */
|
|
946
949
|
closeNode(n) {
|
|
947
|
-
Je(n) && (this.buffer +=
|
|
950
|
+
Je(n) && (this.buffer += et);
|
|
948
951
|
}
|
|
949
952
|
/**
|
|
950
953
|
* returns the accumulated buffer
|
|
@@ -965,7 +968,7 @@ const en = (e = {}) => {
|
|
|
965
968
|
const n = { children: [] };
|
|
966
969
|
return Object.assign(n, e), n;
|
|
967
970
|
};
|
|
968
|
-
class
|
|
971
|
+
class xe {
|
|
969
972
|
constructor() {
|
|
970
973
|
this.rootNode = en(), this.stack = [this.rootNode];
|
|
971
974
|
}
|
|
@@ -1014,83 +1017,83 @@ class He {
|
|
|
1014
1017
|
*/
|
|
1015
1018
|
static _collapse(n) {
|
|
1016
1019
|
typeof n != "string" && n.children && (n.children.every((a) => typeof a == "string") ? n.children = [n.children.join("")] : n.children.forEach((a) => {
|
|
1017
|
-
|
|
1020
|
+
xe._collapse(a);
|
|
1018
1021
|
}));
|
|
1019
1022
|
}
|
|
1020
1023
|
}
|
|
1021
|
-
class
|
|
1024
|
+
class rt extends xe {
|
|
1022
1025
|
/**
|
|
1023
1026
|
* @param {*} options
|
|
1024
1027
|
*/
|
|
1025
1028
|
constructor(n) {
|
|
1026
1029
|
super(), this.options = n;
|
|
1027
1030
|
}
|
|
1028
|
-
/**
|
|
1029
|
-
* @param {string} text
|
|
1030
|
-
* @param {string} scope
|
|
1031
|
-
*/
|
|
1032
|
-
addKeyword(n, a) {
|
|
1033
|
-
n !== "" && (this.openNode(a), this.addText(n), this.closeNode());
|
|
1034
|
-
}
|
|
1035
1031
|
/**
|
|
1036
1032
|
* @param {string} text
|
|
1037
1033
|
*/
|
|
1038
1034
|
addText(n) {
|
|
1039
1035
|
n !== "" && this.add(n);
|
|
1040
1036
|
}
|
|
1037
|
+
/** @param {string} scope */
|
|
1038
|
+
startScope(n) {
|
|
1039
|
+
this.openNode(n);
|
|
1040
|
+
}
|
|
1041
|
+
endScope() {
|
|
1042
|
+
this.closeNode();
|
|
1043
|
+
}
|
|
1041
1044
|
/**
|
|
1042
1045
|
* @param {Emitter & {root: DataNode}} emitter
|
|
1043
1046
|
* @param {string} name
|
|
1044
1047
|
*/
|
|
1045
|
-
|
|
1048
|
+
__addSublanguage(n, a) {
|
|
1046
1049
|
const u = n.root;
|
|
1047
|
-
|
|
1050
|
+
a && (u.scope = `language:${a}`), this.add(u);
|
|
1048
1051
|
}
|
|
1049
1052
|
toHTML() {
|
|
1050
|
-
return new
|
|
1053
|
+
return new tt(this, this.options).value();
|
|
1051
1054
|
}
|
|
1052
1055
|
finalize() {
|
|
1053
|
-
return !0;
|
|
1056
|
+
return this.closeAllNodes(), !0;
|
|
1054
1057
|
}
|
|
1055
1058
|
}
|
|
1056
|
-
function
|
|
1059
|
+
function he(e) {
|
|
1057
1060
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
1058
1061
|
}
|
|
1059
|
-
function
|
|
1062
|
+
function bn(e) {
|
|
1060
1063
|
return se("(?=", e, ")");
|
|
1061
1064
|
}
|
|
1062
|
-
function
|
|
1065
|
+
function it(e) {
|
|
1063
1066
|
return se("(?:", e, ")*");
|
|
1064
1067
|
}
|
|
1065
|
-
function
|
|
1068
|
+
function st(e) {
|
|
1066
1069
|
return se("(?:", e, ")?");
|
|
1067
1070
|
}
|
|
1068
1071
|
function se(...e) {
|
|
1069
|
-
return e.map((a) =>
|
|
1072
|
+
return e.map((a) => he(a)).join("");
|
|
1070
1073
|
}
|
|
1071
|
-
function
|
|
1074
|
+
function at(e) {
|
|
1072
1075
|
const n = e[e.length - 1];
|
|
1073
1076
|
return typeof n == "object" && n.constructor === Object ? (e.splice(e.length - 1, 1), n) : {};
|
|
1074
1077
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return "(" + (
|
|
1078
|
+
function He(...e) {
|
|
1079
|
+
return "(" + (at(e).capture ? "" : "?:") + e.map((u) => he(u)).join("|") + ")";
|
|
1077
1080
|
}
|
|
1078
|
-
function
|
|
1081
|
+
function vn(e) {
|
|
1079
1082
|
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
1080
1083
|
}
|
|
1081
|
-
function
|
|
1084
|
+
function ot(e, n) {
|
|
1082
1085
|
const a = e && e.exec(n);
|
|
1083
1086
|
return a && a.index === 0;
|
|
1084
1087
|
}
|
|
1085
|
-
const
|
|
1086
|
-
function
|
|
1088
|
+
const lt = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1089
|
+
function Fe(e, { joinWith: n }) {
|
|
1087
1090
|
let a = 0;
|
|
1088
1091
|
return e.map((u) => {
|
|
1089
1092
|
a += 1;
|
|
1090
1093
|
const h = a;
|
|
1091
|
-
let t =
|
|
1094
|
+
let t = he(u), r = "";
|
|
1092
1095
|
for (; t.length > 0; ) {
|
|
1093
|
-
const i =
|
|
1096
|
+
const i = lt.exec(t);
|
|
1094
1097
|
if (!i) {
|
|
1095
1098
|
r += t;
|
|
1096
1099
|
break;
|
|
@@ -1100,7 +1103,7 @@ function ze(e, { joinWith: n }) {
|
|
|
1100
1103
|
return r;
|
|
1101
1104
|
}).map((u) => `(${u})`).join(n);
|
|
1102
1105
|
}
|
|
1103
|
-
const
|
|
1106
|
+
const ct = /\b\B/, En = "[a-zA-Z]\\w*", ze = "[a-zA-Z_]\\w*", mn = "\\b\\d+(\\.\\d+)?", yn = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", wn = "\\b(0b[01]+)", ut = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", ft = (e = {}) => {
|
|
1104
1107
|
const n = /^#![ ]*\//;
|
|
1105
1108
|
return e.binary && (e.begin = se(
|
|
1106
1109
|
n,
|
|
@@ -1117,24 +1120,24 @@ const ot = /\b\B/, vn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\
|
|
|
1117
1120
|
a.index !== 0 && u.ignoreMatch();
|
|
1118
1121
|
}
|
|
1119
1122
|
}, e);
|
|
1120
|
-
},
|
|
1123
|
+
}, de = {
|
|
1121
1124
|
begin: "\\\\[\\s\\S]",
|
|
1122
1125
|
relevance: 0
|
|
1123
|
-
},
|
|
1126
|
+
}, gt = {
|
|
1124
1127
|
scope: "string",
|
|
1125
1128
|
begin: "'",
|
|
1126
1129
|
end: "'",
|
|
1127
1130
|
illegal: "\\n",
|
|
1128
|
-
contains: [
|
|
1129
|
-
},
|
|
1131
|
+
contains: [de]
|
|
1132
|
+
}, ht = {
|
|
1130
1133
|
scope: "string",
|
|
1131
1134
|
begin: '"',
|
|
1132
1135
|
end: '"',
|
|
1133
1136
|
illegal: "\\n",
|
|
1134
|
-
contains: [
|
|
1135
|
-
},
|
|
1137
|
+
contains: [de]
|
|
1138
|
+
}, dt = {
|
|
1136
1139
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
1137
|
-
},
|
|
1140
|
+
}, Re = function(e, n, a = {}) {
|
|
1138
1141
|
const u = te(
|
|
1139
1142
|
{
|
|
1140
1143
|
scope: "comment",
|
|
@@ -1153,7 +1156,7 @@ const ot = /\b\B/, vn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\
|
|
|
1153
1156
|
excludeBegin: !0,
|
|
1154
1157
|
relevance: 0
|
|
1155
1158
|
});
|
|
1156
|
-
const h =
|
|
1159
|
+
const h = He(
|
|
1157
1160
|
// list of common 1 and 2 letter words in English
|
|
1158
1161
|
"I",
|
|
1159
1162
|
"a",
|
|
@@ -1200,54 +1203,44 @@ const ot = /\b\B/, vn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\
|
|
|
1200
1203
|
// look for 3 words in a row
|
|
1201
1204
|
}
|
|
1202
1205
|
), u;
|
|
1203
|
-
},
|
|
1204
|
-
scope: "number",
|
|
1205
|
-
begin: En,
|
|
1206
|
-
relevance: 0
|
|
1207
|
-
}, bt = {
|
|
1206
|
+
}, pt = Re("//", "$"), _t = Re("/\\*", "\\*/"), bt = Re("#", "$"), vt = {
|
|
1208
1207
|
scope: "number",
|
|
1209
1208
|
begin: mn,
|
|
1210
1209
|
relevance: 0
|
|
1211
|
-
},
|
|
1210
|
+
}, Et = {
|
|
1212
1211
|
scope: "number",
|
|
1213
1212
|
begin: yn,
|
|
1214
1213
|
relevance: 0
|
|
1215
|
-
}, Et = {
|
|
1216
|
-
// this outer rule makes sure we actually have a WHOLE regex and not simply
|
|
1217
|
-
// an expression such as:
|
|
1218
|
-
//
|
|
1219
|
-
// 3 / something
|
|
1220
|
-
//
|
|
1221
|
-
// (which will then blow up when regex's `illegal` sees the newline)
|
|
1222
|
-
begin: /(?=\/[^/\n]*\/)/,
|
|
1223
|
-
contains: [{
|
|
1224
|
-
scope: "regexp",
|
|
1225
|
-
begin: /\//,
|
|
1226
|
-
end: /\/[gimuy]*/,
|
|
1227
|
-
illegal: /\n/,
|
|
1228
|
-
contains: [
|
|
1229
|
-
ge,
|
|
1230
|
-
{
|
|
1231
|
-
begin: /\[/,
|
|
1232
|
-
end: /\]/,
|
|
1233
|
-
relevance: 0,
|
|
1234
|
-
contains: [ge]
|
|
1235
|
-
}
|
|
1236
|
-
]
|
|
1237
|
-
}]
|
|
1238
1214
|
}, mt = {
|
|
1239
|
-
scope: "
|
|
1240
|
-
begin:
|
|
1215
|
+
scope: "number",
|
|
1216
|
+
begin: wn,
|
|
1241
1217
|
relevance: 0
|
|
1242
1218
|
}, yt = {
|
|
1219
|
+
scope: "regexp",
|
|
1220
|
+
begin: /\/(?=[^/\n]*\/)/,
|
|
1221
|
+
end: /\/[gimuy]*/,
|
|
1222
|
+
contains: [
|
|
1223
|
+
de,
|
|
1224
|
+
{
|
|
1225
|
+
begin: /\[/,
|
|
1226
|
+
end: /\]/,
|
|
1227
|
+
relevance: 0,
|
|
1228
|
+
contains: [de]
|
|
1229
|
+
}
|
|
1230
|
+
]
|
|
1231
|
+
}, wt = {
|
|
1232
|
+
scope: "title",
|
|
1233
|
+
begin: En,
|
|
1234
|
+
relevance: 0
|
|
1235
|
+
}, Nt = {
|
|
1243
1236
|
scope: "title",
|
|
1244
|
-
begin:
|
|
1237
|
+
begin: ze,
|
|
1245
1238
|
relevance: 0
|
|
1246
|
-
},
|
|
1239
|
+
}, Mt = {
|
|
1247
1240
|
// excludes method names from keyword processing
|
|
1248
|
-
begin: "\\.\\s*" +
|
|
1241
|
+
begin: "\\.\\s*" + ze,
|
|
1249
1242
|
relevance: 0
|
|
1250
|
-
},
|
|
1243
|
+
}, At = function(e) {
|
|
1251
1244
|
return Object.assign(
|
|
1252
1245
|
e,
|
|
1253
1246
|
{
|
|
@@ -1262,53 +1255,53 @@ const ot = /\b\B/, vn = "[a-zA-Z]\\w*", Ge = "[a-zA-Z_]\\w*", En = "\\b\\d+(\\.\
|
|
|
1262
1255
|
}
|
|
1263
1256
|
);
|
|
1264
1257
|
};
|
|
1265
|
-
var
|
|
1258
|
+
var Ne = /* @__PURE__ */ Object.freeze({
|
|
1266
1259
|
__proto__: null,
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1260
|
+
APOS_STRING_MODE: gt,
|
|
1261
|
+
BACKSLASH_ESCAPE: de,
|
|
1262
|
+
BINARY_NUMBER_MODE: mt,
|
|
1263
|
+
BINARY_NUMBER_RE: wn,
|
|
1264
|
+
COMMENT: Re,
|
|
1265
|
+
C_BLOCK_COMMENT_MODE: _t,
|
|
1266
|
+
C_LINE_COMMENT_MODE: pt,
|
|
1267
|
+
C_NUMBER_MODE: Et,
|
|
1268
|
+
C_NUMBER_RE: yn,
|
|
1269
|
+
END_SAME_AS_BEGIN: At,
|
|
1270
|
+
HASH_COMMENT_MODE: bt,
|
|
1271
|
+
IDENT_RE: En,
|
|
1272
|
+
MATCH_NOTHING_RE: ct,
|
|
1273
|
+
METHOD_GUARD: Mt,
|
|
1274
|
+
NUMBER_MODE: vt,
|
|
1275
|
+
NUMBER_RE: mn,
|
|
1276
|
+
PHRASAL_WORDS_MODE: dt,
|
|
1277
|
+
QUOTE_STRING_MODE: ht,
|
|
1278
|
+
REGEXP_MODE: yt,
|
|
1279
|
+
RE_STARTERS_RE: ut,
|
|
1280
|
+
SHEBANG: ft,
|
|
1281
|
+
TITLE_MODE: wt,
|
|
1282
|
+
UNDERSCORE_IDENT_RE: ze,
|
|
1283
|
+
UNDERSCORE_TITLE_MODE: Nt
|
|
1291
1284
|
});
|
|
1292
|
-
function
|
|
1285
|
+
function St(e, n) {
|
|
1293
1286
|
e.input[e.index - 1] === "." && n.ignoreMatch();
|
|
1294
1287
|
}
|
|
1295
|
-
function
|
|
1288
|
+
function Tt(e, n) {
|
|
1296
1289
|
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
1297
1290
|
}
|
|
1298
|
-
function
|
|
1299
|
-
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin =
|
|
1291
|
+
function Dt(e, n) {
|
|
1292
|
+
n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = St, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
1300
1293
|
}
|
|
1301
|
-
function
|
|
1302
|
-
Array.isArray(e.illegal) && (e.illegal =
|
|
1294
|
+
function Rt(e, n) {
|
|
1295
|
+
Array.isArray(e.illegal) && (e.illegal = He(...e.illegal));
|
|
1303
1296
|
}
|
|
1304
|
-
function
|
|
1297
|
+
function Ct(e, n) {
|
|
1305
1298
|
if (e.match) {
|
|
1306
1299
|
if (e.begin || e.end)
|
|
1307
1300
|
throw new Error("begin & end are not supported with match");
|
|
1308
1301
|
e.begin = e.match, delete e.match;
|
|
1309
1302
|
}
|
|
1310
1303
|
}
|
|
1311
|
-
function
|
|
1304
|
+
function Lt(e, n) {
|
|
1312
1305
|
e.relevance === void 0 && (e.relevance = 1);
|
|
1313
1306
|
}
|
|
1314
1307
|
const Ot = (e, n) => {
|
|
@@ -1319,13 +1312,13 @@ const Ot = (e, n) => {
|
|
|
1319
1312
|
const a = Object.assign({}, e);
|
|
1320
1313
|
Object.keys(e).forEach((u) => {
|
|
1321
1314
|
delete e[u];
|
|
1322
|
-
}), e.keywords = a.keywords, e.begin = se(a.beforeMatch,
|
|
1315
|
+
}), e.keywords = a.keywords, e.begin = se(a.beforeMatch, bn(a.begin)), e.starts = {
|
|
1323
1316
|
relevance: 0,
|
|
1324
1317
|
contains: [
|
|
1325
1318
|
Object.assign(a, { endsParent: !0 })
|
|
1326
1319
|
]
|
|
1327
1320
|
}, e.relevance = 0, delete a.beforeMatch;
|
|
1328
|
-
},
|
|
1321
|
+
}, It = [
|
|
1329
1322
|
"of",
|
|
1330
1323
|
"and",
|
|
1331
1324
|
"for",
|
|
@@ -1340,70 +1333,70 @@ const Ot = (e, n) => {
|
|
|
1340
1333
|
// common variable name
|
|
1341
1334
|
"value"
|
|
1342
1335
|
// common variable name
|
|
1343
|
-
],
|
|
1344
|
-
function
|
|
1336
|
+
], kt = "keyword";
|
|
1337
|
+
function Nn(e, n, a = kt) {
|
|
1345
1338
|
const u = /* @__PURE__ */ Object.create(null);
|
|
1346
1339
|
return typeof e == "string" ? h(a, e.split(" ")) : Array.isArray(e) ? h(a, e) : Object.keys(e).forEach(function(t) {
|
|
1347
1340
|
Object.assign(
|
|
1348
1341
|
u,
|
|
1349
|
-
|
|
1342
|
+
Nn(e[t], n, t)
|
|
1350
1343
|
);
|
|
1351
1344
|
}), u;
|
|
1352
1345
|
function h(t, r) {
|
|
1353
1346
|
n && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
|
|
1354
1347
|
const s = i.split("|");
|
|
1355
|
-
u[s[0]] = [t,
|
|
1348
|
+
u[s[0]] = [t, Bt(s[0], s[1])];
|
|
1356
1349
|
});
|
|
1357
1350
|
}
|
|
1358
1351
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return n ? Number(n) :
|
|
1352
|
+
function Bt(e, n) {
|
|
1353
|
+
return n ? Number(n) : $t(e) ? 0 : 1;
|
|
1361
1354
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return
|
|
1355
|
+
function $t(e) {
|
|
1356
|
+
return It.includes(e.toLowerCase());
|
|
1364
1357
|
}
|
|
1365
1358
|
const nn = {}, ie = (e) => {
|
|
1366
1359
|
console.error(e);
|
|
1367
1360
|
}, tn = (e, ...n) => {
|
|
1368
1361
|
console.log(`WARN: ${e}`, ...n);
|
|
1369
|
-
},
|
|
1362
|
+
}, oe = (e, n) => {
|
|
1370
1363
|
nn[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), nn[`${e}/${n}`] = !0);
|
|
1371
1364
|
}, Te = new Error();
|
|
1372
|
-
function
|
|
1365
|
+
function Mn(e, n, { key: a }) {
|
|
1373
1366
|
let u = 0;
|
|
1374
1367
|
const h = e[a], t = {}, r = {};
|
|
1375
1368
|
for (let i = 1; i <= n.length; i++)
|
|
1376
|
-
r[i + u] = h[i], t[i + u] = !0, u +=
|
|
1369
|
+
r[i + u] = h[i], t[i + u] = !0, u += vn(n[i - 1]);
|
|
1377
1370
|
e[a] = r, e[a]._emit = t, e[a]._multi = !0;
|
|
1378
1371
|
}
|
|
1379
|
-
function
|
|
1372
|
+
function Pt(e) {
|
|
1380
1373
|
if (Array.isArray(e.begin)) {
|
|
1381
1374
|
if (e.skip || e.excludeBegin || e.returnBegin)
|
|
1382
1375
|
throw ie("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Te;
|
|
1383
1376
|
if (typeof e.beginScope != "object" || e.beginScope === null)
|
|
1384
1377
|
throw ie("beginScope must be object"), Te;
|
|
1385
|
-
|
|
1378
|
+
Mn(e, e.begin, { key: "beginScope" }), e.begin = Fe(e.begin, { joinWith: "" });
|
|
1386
1379
|
}
|
|
1387
1380
|
}
|
|
1388
|
-
function
|
|
1381
|
+
function Ut(e) {
|
|
1389
1382
|
if (Array.isArray(e.end)) {
|
|
1390
1383
|
if (e.skip || e.excludeEnd || e.returnEnd)
|
|
1391
1384
|
throw ie("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Te;
|
|
1392
1385
|
if (typeof e.endScope != "object" || e.endScope === null)
|
|
1393
1386
|
throw ie("endScope must be object"), Te;
|
|
1394
|
-
|
|
1387
|
+
Mn(e, e.end, { key: "endScope" }), e.end = Fe(e.end, { joinWith: "" });
|
|
1395
1388
|
}
|
|
1396
1389
|
}
|
|
1397
|
-
function
|
|
1390
|
+
function xt(e) {
|
|
1398
1391
|
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
1399
1392
|
}
|
|
1400
|
-
function
|
|
1401
|
-
|
|
1393
|
+
function Ht(e) {
|
|
1394
|
+
xt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Pt(e), Ut(e);
|
|
1402
1395
|
}
|
|
1403
|
-
function
|
|
1396
|
+
function Ft(e) {
|
|
1404
1397
|
function n(r, i) {
|
|
1405
1398
|
return new RegExp(
|
|
1406
|
-
|
|
1399
|
+
he(r),
|
|
1407
1400
|
"m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (i ? "g" : "")
|
|
1408
1401
|
);
|
|
1409
1402
|
}
|
|
@@ -1413,12 +1406,12 @@ function xt(e) {
|
|
|
1413
1406
|
}
|
|
1414
1407
|
// @ts-ignore
|
|
1415
1408
|
addRule(i, s) {
|
|
1416
|
-
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt +=
|
|
1409
|
+
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += vn(i) + 1;
|
|
1417
1410
|
}
|
|
1418
1411
|
compile() {
|
|
1419
1412
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
1420
1413
|
const i = this.regexes.map((s) => s[1]);
|
|
1421
|
-
this.matcherRe = n(
|
|
1414
|
+
this.matcherRe = n(Fe(i, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
1422
1415
|
}
|
|
1423
1416
|
/** @param {string} s */
|
|
1424
1417
|
exec(i) {
|
|
@@ -1475,26 +1468,26 @@ function xt(e) {
|
|
|
1475
1468
|
if (r.isCompiled)
|
|
1476
1469
|
return s;
|
|
1477
1470
|
[
|
|
1478
|
-
|
|
1471
|
+
Tt,
|
|
1479
1472
|
// do this early so compiler extensions generally don't have to worry about
|
|
1480
1473
|
// the distinction between match/begin
|
|
1481
|
-
|
|
1482
|
-
|
|
1474
|
+
Ct,
|
|
1475
|
+
Ht,
|
|
1483
1476
|
Ot
|
|
1484
1477
|
].forEach((l) => l(r, i)), e.compilerExtensions.forEach((l) => l(r, i)), r.__beforeBegin = null, [
|
|
1485
|
-
|
|
1478
|
+
Dt,
|
|
1486
1479
|
// do this later so compiler extensions that come earlier have access to the
|
|
1487
1480
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1488
|
-
|
|
1481
|
+
Rt,
|
|
1489
1482
|
// default to 1 relevance if not specified
|
|
1490
|
-
|
|
1483
|
+
Lt
|
|
1491
1484
|
].forEach((l) => l(r, i)), r.isCompiled = !0;
|
|
1492
1485
|
let o = null;
|
|
1493
|
-
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), o = r.keywords.$pattern, delete r.keywords.$pattern), o = o || /\w+/, r.keywords && (r.keywords =
|
|
1486
|
+
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), o = r.keywords.$pattern, delete r.keywords.$pattern), o = o || /\w+/, r.keywords && (r.keywords = Nn(r.keywords, e.case_insensitive)), s.keywordPatternRe = n(o, !0), i && (r.begin || (r.begin = /\B|\b/), s.beginRe = n(s.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (s.endRe = n(s.end)), s.terminatorEnd = he(s.end) || "", r.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (s.illegalRe = n(
|
|
1494
1487
|
/** @type {RegExp | string} */
|
|
1495
1488
|
r.illegal
|
|
1496
1489
|
)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(l) {
|
|
1497
|
-
return
|
|
1490
|
+
return zt(l === "self" ? r : l);
|
|
1498
1491
|
})), r.contains.forEach(function(l) {
|
|
1499
1492
|
t(
|
|
1500
1493
|
/** @type Mode */
|
|
@@ -1510,21 +1503,21 @@ function xt(e) {
|
|
|
1510
1503
|
e
|
|
1511
1504
|
);
|
|
1512
1505
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return e ? e.endsWithParent ||
|
|
1506
|
+
function An(e) {
|
|
1507
|
+
return e ? e.endsWithParent || An(e.starts) : !1;
|
|
1515
1508
|
}
|
|
1516
|
-
function
|
|
1509
|
+
function zt(e) {
|
|
1517
1510
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
|
|
1518
1511
|
return te(e, { variants: null }, n);
|
|
1519
|
-
})), e.cachedVariants ? e.cachedVariants :
|
|
1512
|
+
})), e.cachedVariants ? e.cachedVariants : An(e) ? te(e, { starts: e.starts ? te(e.starts) : null }) : Object.isFrozen(e) ? te(e) : e;
|
|
1520
1513
|
}
|
|
1521
|
-
var
|
|
1522
|
-
class
|
|
1514
|
+
var Gt = "11.9.0";
|
|
1515
|
+
class Kt extends Error {
|
|
1523
1516
|
constructor(n, a) {
|
|
1524
1517
|
super(n), this.name = "HTMLInjectionError", this.html = a;
|
|
1525
1518
|
}
|
|
1526
1519
|
}
|
|
1527
|
-
const
|
|
1520
|
+
const ke = _n, rn = te, sn = Symbol("nomatch"), Wt = 7, Sn = function(e) {
|
|
1528
1521
|
const n = /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null), u = [];
|
|
1529
1522
|
let h = !0;
|
|
1530
1523
|
const t = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -1538,7 +1531,7 @@ const Ie = pn, rn = te, sn = Symbol("nomatch"), Gt = 7, Kt = function(e) {
|
|
|
1538
1531
|
languages: null,
|
|
1539
1532
|
// beta configuration options, subject to change, welcome to discuss
|
|
1540
1533
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
1541
|
-
__emitter:
|
|
1534
|
+
__emitter: rt
|
|
1542
1535
|
};
|
|
1543
1536
|
function s(b) {
|
|
1544
1537
|
return i.noHighlightRe.test(b);
|
|
@@ -1555,207 +1548,215 @@ const Ie = pn, rn = te, sn = Symbol("nomatch"), Gt = 7, Kt = function(e) {
|
|
|
1555
1548
|
}
|
|
1556
1549
|
function l(b, N, L) {
|
|
1557
1550
|
let k = "", x = "";
|
|
1558
|
-
typeof N == "object" ? (k = b, L = N.ignoreIllegals, x = N.language) : (
|
|
1551
|
+
typeof N == "object" ? (k = b, L = N.ignoreIllegals, x = N.language) : (oe("10.7.0", "highlight(lang, code, ...args) has been deprecated."), oe("10.7.0", `Please use highlight(code, options) instead.
|
|
1559
1552
|
https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L === void 0 && (L = !0);
|
|
1560
|
-
const
|
|
1553
|
+
const K = {
|
|
1561
1554
|
code: k,
|
|
1562
1555
|
language: x
|
|
1563
1556
|
};
|
|
1564
|
-
|
|
1565
|
-
const Y =
|
|
1566
|
-
return Y.code =
|
|
1557
|
+
ae("before:highlight", K);
|
|
1558
|
+
const Y = K.result ? K.result : c(K.language, K.code, L);
|
|
1559
|
+
return Y.code = K.code, ae("after:highlight", Y), Y;
|
|
1567
1560
|
}
|
|
1568
1561
|
function c(b, N, L, k) {
|
|
1569
1562
|
const x = /* @__PURE__ */ Object.create(null);
|
|
1570
|
-
function
|
|
1571
|
-
return
|
|
1563
|
+
function K(m, M) {
|
|
1564
|
+
return m.keywords[M];
|
|
1572
1565
|
}
|
|
1573
1566
|
function Y() {
|
|
1574
|
-
if (!
|
|
1575
|
-
z.addText(
|
|
1567
|
+
if (!C.keywords) {
|
|
1568
|
+
z.addText(U);
|
|
1576
1569
|
return;
|
|
1577
1570
|
}
|
|
1578
|
-
let
|
|
1579
|
-
|
|
1580
|
-
let
|
|
1581
|
-
for (;
|
|
1582
|
-
|
|
1583
|
-
const B =
|
|
1584
|
-
if (
|
|
1585
|
-
const [j,
|
|
1586
|
-
if (z.addText(
|
|
1587
|
-
|
|
1571
|
+
let m = 0;
|
|
1572
|
+
C.keywordPatternRe.lastIndex = 0;
|
|
1573
|
+
let M = C.keywordPatternRe.exec(U), O = "";
|
|
1574
|
+
for (; M; ) {
|
|
1575
|
+
O += U.substring(m, M.index);
|
|
1576
|
+
const B = X.case_insensitive ? M[0].toLowerCase() : M[0], G = K(C, B);
|
|
1577
|
+
if (G) {
|
|
1578
|
+
const [j, Un] = G;
|
|
1579
|
+
if (z.addText(O), O = "", x[B] = (x[B] || 0) + 1, x[B] <= Wt && (we += Un), j.startsWith("_"))
|
|
1580
|
+
O += M[0];
|
|
1588
1581
|
else {
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1582
|
+
const xn = X.classNameAliases[j] || j;
|
|
1583
|
+
V(M[0], xn);
|
|
1591
1584
|
}
|
|
1592
1585
|
} else
|
|
1593
|
-
|
|
1594
|
-
|
|
1586
|
+
O += M[0];
|
|
1587
|
+
m = C.keywordPatternRe.lastIndex, M = C.keywordPatternRe.exec(U);
|
|
1595
1588
|
}
|
|
1596
|
-
|
|
1589
|
+
O += U.substring(m), z.addText(O);
|
|
1597
1590
|
}
|
|
1598
|
-
function
|
|
1599
|
-
if (
|
|
1591
|
+
function me() {
|
|
1592
|
+
if (U === "")
|
|
1600
1593
|
return;
|
|
1601
|
-
let
|
|
1602
|
-
if (typeof
|
|
1603
|
-
if (!n[
|
|
1604
|
-
z.addText(
|
|
1594
|
+
let m = null;
|
|
1595
|
+
if (typeof C.subLanguage == "string") {
|
|
1596
|
+
if (!n[C.subLanguage]) {
|
|
1597
|
+
z.addText(U);
|
|
1605
1598
|
return;
|
|
1606
1599
|
}
|
|
1607
|
-
|
|
1608
|
-
|
|
1600
|
+
m = c(C.subLanguage, U, !0, Ye[C.subLanguage]), Ye[C.subLanguage] = /** @type {CompiledMode} */
|
|
1601
|
+
m._top;
|
|
1609
1602
|
} else
|
|
1610
|
-
|
|
1611
|
-
|
|
1603
|
+
m = g(U, C.subLanguage.length ? C.subLanguage : null);
|
|
1604
|
+
C.relevance > 0 && (we += m.relevance), z.__addSublanguage(m._emitter, m.language);
|
|
1605
|
+
}
|
|
1606
|
+
function q() {
|
|
1607
|
+
C.subLanguage != null ? me() : Y(), U = "";
|
|
1612
1608
|
}
|
|
1613
|
-
function
|
|
1614
|
-
|
|
1609
|
+
function V(m, M) {
|
|
1610
|
+
m !== "" && (z.startScope(M), z.addText(m), z.endScope());
|
|
1615
1611
|
}
|
|
1616
|
-
function
|
|
1617
|
-
let
|
|
1618
|
-
const B =
|
|
1619
|
-
for (;
|
|
1620
|
-
if (!
|
|
1621
|
-
|
|
1612
|
+
function We(m, M) {
|
|
1613
|
+
let O = 1;
|
|
1614
|
+
const B = M.length - 1;
|
|
1615
|
+
for (; O <= B; ) {
|
|
1616
|
+
if (!m._emit[O]) {
|
|
1617
|
+
O++;
|
|
1622
1618
|
continue;
|
|
1623
1619
|
}
|
|
1624
|
-
const
|
|
1625
|
-
|
|
1620
|
+
const G = X.classNameAliases[m[O]] || m[O], j = M[O];
|
|
1621
|
+
G ? V(j, G) : (U = j, Y(), U = ""), O++;
|
|
1626
1622
|
}
|
|
1627
1623
|
}
|
|
1628
|
-
function
|
|
1629
|
-
return
|
|
1624
|
+
function qe(m, M) {
|
|
1625
|
+
return m.scope && typeof m.scope == "string" && z.openNode(X.classNameAliases[m.scope] || m.scope), m.beginScope && (m.beginScope._wrap ? (V(U, X.classNameAliases[m.beginScope._wrap] || m.beginScope._wrap), U = "") : m.beginScope._multi && (We(m.beginScope, M), U = "")), C = Object.create(m, { parent: { value: C } }), C;
|
|
1630
1626
|
}
|
|
1631
|
-
function
|
|
1632
|
-
let B =
|
|
1627
|
+
function Qe(m, M, O) {
|
|
1628
|
+
let B = ot(m.endRe, O);
|
|
1633
1629
|
if (B) {
|
|
1634
|
-
if (
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1630
|
+
if (m["on:end"]) {
|
|
1631
|
+
const G = new je(m);
|
|
1632
|
+
m["on:end"](M, G), G.isMatchIgnored && (B = !1);
|
|
1637
1633
|
}
|
|
1638
1634
|
if (B) {
|
|
1639
|
-
for (;
|
|
1640
|
-
|
|
1641
|
-
return
|
|
1635
|
+
for (; m.endsParent && m.parent; )
|
|
1636
|
+
m = m.parent;
|
|
1637
|
+
return m;
|
|
1642
1638
|
}
|
|
1643
1639
|
}
|
|
1644
|
-
if (
|
|
1645
|
-
return
|
|
1640
|
+
if (m.endsWithParent)
|
|
1641
|
+
return Qe(m.parent, M, O);
|
|
1646
1642
|
}
|
|
1647
|
-
function
|
|
1648
|
-
return
|
|
1643
|
+
function In(m) {
|
|
1644
|
+
return C.matcher.regexIndex === 0 ? (U += m[0], 1) : (Oe = !0, 0);
|
|
1649
1645
|
}
|
|
1650
|
-
function
|
|
1651
|
-
const
|
|
1652
|
-
for (const j of
|
|
1653
|
-
if (j && (j(
|
|
1654
|
-
return
|
|
1655
|
-
return
|
|
1646
|
+
function kn(m) {
|
|
1647
|
+
const M = m[0], O = m.rule, B = new je(O), G = [O.__beforeBegin, O["on:begin"]];
|
|
1648
|
+
for (const j of G)
|
|
1649
|
+
if (j && (j(m, B), B.isMatchIgnored))
|
|
1650
|
+
return In(M);
|
|
1651
|
+
return O.skip ? U += M : (O.excludeBegin && (U += M), q(), !O.returnBegin && !O.excludeBegin && (U = M)), qe(O, m), O.returnBegin ? 0 : M.length;
|
|
1656
1652
|
}
|
|
1657
|
-
function
|
|
1658
|
-
const
|
|
1653
|
+
function Bn(m) {
|
|
1654
|
+
const M = m[0], O = N.substring(m.index), B = Qe(C, m, O);
|
|
1659
1655
|
if (!B)
|
|
1660
1656
|
return sn;
|
|
1661
|
-
const
|
|
1662
|
-
|
|
1657
|
+
const G = C;
|
|
1658
|
+
C.endScope && C.endScope._wrap ? (q(), V(M, C.endScope._wrap)) : C.endScope && C.endScope._multi ? (q(), We(C.endScope, m)) : G.skip ? U += M : (G.returnEnd || G.excludeEnd || (U += M), q(), G.excludeEnd && (U = M));
|
|
1663
1659
|
do
|
|
1664
|
-
|
|
1665
|
-
while (
|
|
1666
|
-
return B.starts &&
|
|
1660
|
+
C.scope && z.closeNode(), !C.skip && !C.subLanguage && (we += C.relevance), C = C.parent;
|
|
1661
|
+
while (C !== B.parent);
|
|
1662
|
+
return B.starts && qe(B.starts, m), G.returnEnd ? 0 : M.length;
|
|
1667
1663
|
}
|
|
1668
|
-
function
|
|
1669
|
-
const
|
|
1670
|
-
for (let
|
|
1671
|
-
|
|
1672
|
-
|
|
1664
|
+
function $n() {
|
|
1665
|
+
const m = [];
|
|
1666
|
+
for (let M = C; M !== X; M = M.parent)
|
|
1667
|
+
M.scope && m.unshift(M.scope);
|
|
1668
|
+
m.forEach((M) => z.openNode(M));
|
|
1673
1669
|
}
|
|
1674
|
-
let
|
|
1675
|
-
function
|
|
1676
|
-
const
|
|
1677
|
-
if (
|
|
1678
|
-
return
|
|
1679
|
-
if (
|
|
1680
|
-
if (
|
|
1670
|
+
let ye = {};
|
|
1671
|
+
function Ze(m, M) {
|
|
1672
|
+
const O = M && M[0];
|
|
1673
|
+
if (U += m, O == null)
|
|
1674
|
+
return q(), 0;
|
|
1675
|
+
if (ye.type === "begin" && M.type === "end" && ye.index === M.index && O === "") {
|
|
1676
|
+
if (U += N.slice(M.index, M.index + 1), !h) {
|
|
1681
1677
|
const B = new Error(`0 width match regex (${b})`);
|
|
1682
|
-
throw B.languageName = b, B.badRule =
|
|
1678
|
+
throw B.languageName = b, B.badRule = ye.rule, B;
|
|
1683
1679
|
}
|
|
1684
1680
|
return 1;
|
|
1685
1681
|
}
|
|
1686
|
-
if (
|
|
1687
|
-
return
|
|
1688
|
-
if (
|
|
1689
|
-
const B = new Error('Illegal lexeme "' +
|
|
1690
|
-
throw B.mode =
|
|
1691
|
-
} else if (
|
|
1692
|
-
const B =
|
|
1682
|
+
if (ye = M, M.type === "begin")
|
|
1683
|
+
return kn(M);
|
|
1684
|
+
if (M.type === "illegal" && !L) {
|
|
1685
|
+
const B = new Error('Illegal lexeme "' + O + '" for mode "' + (C.scope || "<unnamed>") + '"');
|
|
1686
|
+
throw B.mode = C, B;
|
|
1687
|
+
} else if (M.type === "end") {
|
|
1688
|
+
const B = Bn(M);
|
|
1693
1689
|
if (B !== sn)
|
|
1694
1690
|
return B;
|
|
1695
1691
|
}
|
|
1696
|
-
if (
|
|
1692
|
+
if (M.type === "illegal" && O === "")
|
|
1697
1693
|
return 1;
|
|
1698
|
-
if (
|
|
1694
|
+
if (Le > 1e5 && Le > M.index * 3)
|
|
1699
1695
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
1700
|
-
return
|
|
1696
|
+
return U += O, O.length;
|
|
1701
1697
|
}
|
|
1702
|
-
const
|
|
1703
|
-
if (!
|
|
1698
|
+
const X = R(b);
|
|
1699
|
+
if (!X)
|
|
1704
1700
|
throw ie(t.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
1705
|
-
const
|
|
1706
|
-
let
|
|
1701
|
+
const Pn = Ft(X);
|
|
1702
|
+
let Ce = "", C = k || Pn;
|
|
1707
1703
|
const Ye = {}, z = new i.__emitter(i);
|
|
1708
|
-
|
|
1709
|
-
let
|
|
1704
|
+
$n();
|
|
1705
|
+
let U = "", we = 0, re = 0, Le = 0, Oe = !1;
|
|
1710
1706
|
try {
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1707
|
+
if (X.__emitTokens)
|
|
1708
|
+
X.__emitTokens(N, z);
|
|
1709
|
+
else {
|
|
1710
|
+
for (C.matcher.considerAll(); ; ) {
|
|
1711
|
+
Le++, Oe ? Oe = !1 : C.matcher.considerAll(), C.matcher.lastIndex = re;
|
|
1712
|
+
const m = C.matcher.exec(N);
|
|
1713
|
+
if (!m)
|
|
1714
|
+
break;
|
|
1715
|
+
const M = N.substring(re, m.index), O = Ze(M, m);
|
|
1716
|
+
re = m.index + O;
|
|
1717
|
+
}
|
|
1718
|
+
Ze(N.substring(re));
|
|
1718
1719
|
}
|
|
1719
|
-
return
|
|
1720
|
+
return z.finalize(), Ce = z.toHTML(), {
|
|
1720
1721
|
language: b,
|
|
1721
|
-
value:
|
|
1722
|
-
relevance:
|
|
1722
|
+
value: Ce,
|
|
1723
|
+
relevance: we,
|
|
1723
1724
|
illegal: !1,
|
|
1724
1725
|
_emitter: z,
|
|
1725
|
-
_top:
|
|
1726
|
+
_top: C
|
|
1726
1727
|
};
|
|
1727
|
-
} catch (
|
|
1728
|
-
if (
|
|
1728
|
+
} catch (m) {
|
|
1729
|
+
if (m.message && m.message.includes("Illegal"))
|
|
1729
1730
|
return {
|
|
1730
1731
|
language: b,
|
|
1731
|
-
value:
|
|
1732
|
+
value: ke(N),
|
|
1732
1733
|
illegal: !0,
|
|
1733
1734
|
relevance: 0,
|
|
1734
1735
|
_illegalBy: {
|
|
1735
|
-
message:
|
|
1736
|
+
message: m.message,
|
|
1736
1737
|
index: re,
|
|
1737
1738
|
context: N.slice(re - 100, re + 100),
|
|
1738
|
-
mode:
|
|
1739
|
-
resultSoFar:
|
|
1739
|
+
mode: m.mode,
|
|
1740
|
+
resultSoFar: Ce
|
|
1740
1741
|
},
|
|
1741
1742
|
_emitter: z
|
|
1742
1743
|
};
|
|
1743
1744
|
if (h)
|
|
1744
1745
|
return {
|
|
1745
1746
|
language: b,
|
|
1746
|
-
value:
|
|
1747
|
+
value: ke(N),
|
|
1747
1748
|
illegal: !1,
|
|
1748
1749
|
relevance: 0,
|
|
1749
|
-
errorRaised:
|
|
1750
|
+
errorRaised: m,
|
|
1750
1751
|
_emitter: z,
|
|
1751
|
-
_top:
|
|
1752
|
+
_top: C
|
|
1752
1753
|
};
|
|
1753
|
-
throw
|
|
1754
|
+
throw m;
|
|
1754
1755
|
}
|
|
1755
1756
|
}
|
|
1756
1757
|
function f(b) {
|
|
1757
1758
|
const N = {
|
|
1758
|
-
value:
|
|
1759
|
+
value: ke(b),
|
|
1759
1760
|
illegal: !1,
|
|
1760
1761
|
relevance: 0,
|
|
1761
1762
|
_top: r,
|
|
@@ -1765,22 +1766,22 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1765
1766
|
}
|
|
1766
1767
|
function g(b, N) {
|
|
1767
1768
|
N = N || i.languages || Object.keys(n);
|
|
1768
|
-
const L = f(b), k = N.filter(R).filter(
|
|
1769
|
-
(
|
|
1769
|
+
const L = f(b), k = N.filter(R).filter(P).map(
|
|
1770
|
+
(q) => c(q, b, !1)
|
|
1770
1771
|
);
|
|
1771
1772
|
k.unshift(L);
|
|
1772
|
-
const x = k.sort((
|
|
1773
|
-
if (
|
|
1774
|
-
return
|
|
1775
|
-
if (
|
|
1776
|
-
if (R(
|
|
1773
|
+
const x = k.sort((q, V) => {
|
|
1774
|
+
if (q.relevance !== V.relevance)
|
|
1775
|
+
return V.relevance - q.relevance;
|
|
1776
|
+
if (q.language && V.language) {
|
|
1777
|
+
if (R(q.language).supersetOf === V.language)
|
|
1777
1778
|
return 1;
|
|
1778
|
-
if (R(
|
|
1779
|
+
if (R(V.language).supersetOf === q.language)
|
|
1779
1780
|
return -1;
|
|
1780
1781
|
}
|
|
1781
1782
|
return 0;
|
|
1782
|
-
}), [
|
|
1783
|
-
return
|
|
1783
|
+
}), [K, Y] = x, me = K;
|
|
1784
|
+
return me.secondBest = Y, me;
|
|
1784
1785
|
}
|
|
1785
1786
|
function d(b, N, L) {
|
|
1786
1787
|
const k = N && a[N] || L;
|
|
@@ -1791,17 +1792,21 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1791
1792
|
const L = o(b);
|
|
1792
1793
|
if (s(L))
|
|
1793
1794
|
return;
|
|
1794
|
-
if (
|
|
1795
|
+
if (ae(
|
|
1795
1796
|
"before:highlightElement",
|
|
1796
1797
|
{ el: b, language: L }
|
|
1797
|
-
), b.
|
|
1798
|
-
|
|
1798
|
+
), b.dataset.highlighted) {
|
|
1799
|
+
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", b);
|
|
1800
|
+
return;
|
|
1801
|
+
}
|
|
1802
|
+
if (b.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(b)), i.throwUnescapedHTML))
|
|
1803
|
+
throw new Kt(
|
|
1799
1804
|
"One of your code blocks includes unescaped HTML.",
|
|
1800
1805
|
b.innerHTML
|
|
1801
1806
|
);
|
|
1802
1807
|
N = b;
|
|
1803
1808
|
const k = N.textContent, x = L ? l(k, { language: L, ignoreIllegals: !0 }) : g(k);
|
|
1804
|
-
b.innerHTML = x.value, d(b, L, x.language), b.result = {
|
|
1809
|
+
b.innerHTML = x.value, b.dataset.highlighted = "yes", d(b, L, x.language), b.result = {
|
|
1805
1810
|
language: x.language,
|
|
1806
1811
|
// TODO: remove with version 11.0
|
|
1807
1812
|
re: x.relevance,
|
|
@@ -1809,29 +1814,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1809
1814
|
}, x.secondBest && (b.secondBest = {
|
|
1810
1815
|
language: x.secondBest.language,
|
|
1811
1816
|
relevance: x.secondBest.relevance
|
|
1812
|
-
}),
|
|
1817
|
+
}), ae("after:highlightElement", { el: b, result: x, text: k });
|
|
1813
1818
|
}
|
|
1814
1819
|
function _(b) {
|
|
1815
1820
|
i = rn(i, b);
|
|
1816
1821
|
}
|
|
1817
1822
|
const v = () => {
|
|
1818
|
-
|
|
1823
|
+
y(), oe("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
1819
1824
|
};
|
|
1820
1825
|
function E() {
|
|
1821
|
-
|
|
1826
|
+
y(), oe("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
1822
1827
|
}
|
|
1823
1828
|
let w = !1;
|
|
1824
|
-
function
|
|
1829
|
+
function y() {
|
|
1825
1830
|
if (document.readyState === "loading") {
|
|
1826
1831
|
w = !0;
|
|
1827
1832
|
return;
|
|
1828
1833
|
}
|
|
1829
1834
|
document.querySelectorAll(i.cssSelector).forEach(p);
|
|
1830
1835
|
}
|
|
1831
|
-
function
|
|
1832
|
-
w &&
|
|
1836
|
+
function D() {
|
|
1837
|
+
w && y();
|
|
1833
1838
|
}
|
|
1834
|
-
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
|
1839
|
+
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", D, !1);
|
|
1835
1840
|
function S(b, N) {
|
|
1836
1841
|
let L = null;
|
|
1837
1842
|
try {
|
|
@@ -1845,7 +1850,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1845
1850
|
}
|
|
1846
1851
|
L.name || (L.name = b), n[b] = L, L.rawDefinition = N.bind(null, e), L.aliases && H(L.aliases, { languageName: b });
|
|
1847
1852
|
}
|
|
1848
|
-
function
|
|
1853
|
+
function A(b) {
|
|
1849
1854
|
delete n[b];
|
|
1850
1855
|
for (const N of Object.keys(a))
|
|
1851
1856
|
a[N] === b && delete a[N];
|
|
@@ -1861,7 +1866,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1861
1866
|
a[L.toLowerCase()] = N;
|
|
1862
1867
|
});
|
|
1863
1868
|
}
|
|
1864
|
-
function
|
|
1869
|
+
function P(b) {
|
|
1865
1870
|
const N = R(b);
|
|
1866
1871
|
return N && !N.disableAutodetect;
|
|
1867
1872
|
}
|
|
@@ -1879,52 +1884,58 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, k = N), L ===
|
|
|
1879
1884
|
function F(b) {
|
|
1880
1885
|
$(b), u.push(b);
|
|
1881
1886
|
}
|
|
1882
|
-
function
|
|
1887
|
+
function W(b) {
|
|
1888
|
+
const N = u.indexOf(b);
|
|
1889
|
+
N !== -1 && u.splice(N, 1);
|
|
1890
|
+
}
|
|
1891
|
+
function ae(b, N) {
|
|
1883
1892
|
const L = b;
|
|
1884
1893
|
u.forEach(function(k) {
|
|
1885
1894
|
k[L] && k[L](N);
|
|
1886
1895
|
});
|
|
1887
1896
|
}
|
|
1888
|
-
function
|
|
1889
|
-
return
|
|
1897
|
+
function Ee(b) {
|
|
1898
|
+
return oe("10.7.0", "highlightBlock will be removed entirely in v12.0"), oe("10.7.0", "Please use highlightElement now."), p(b);
|
|
1890
1899
|
}
|
|
1891
1900
|
Object.assign(e, {
|
|
1892
1901
|
highlight: l,
|
|
1893
1902
|
highlightAuto: g,
|
|
1894
|
-
highlightAll:
|
|
1903
|
+
highlightAll: y,
|
|
1895
1904
|
highlightElement: p,
|
|
1896
1905
|
// TODO: Remove with v12 API
|
|
1897
|
-
highlightBlock:
|
|
1906
|
+
highlightBlock: Ee,
|
|
1898
1907
|
configure: _,
|
|
1899
1908
|
initHighlighting: v,
|
|
1900
1909
|
initHighlightingOnLoad: E,
|
|
1901
1910
|
registerLanguage: S,
|
|
1902
|
-
unregisterLanguage:
|
|
1911
|
+
unregisterLanguage: A,
|
|
1903
1912
|
listLanguages: I,
|
|
1904
1913
|
getLanguage: R,
|
|
1905
1914
|
registerAliases: H,
|
|
1906
|
-
autoDetection:
|
|
1915
|
+
autoDetection: P,
|
|
1907
1916
|
inherit: rn,
|
|
1908
|
-
addPlugin: F
|
|
1917
|
+
addPlugin: F,
|
|
1918
|
+
removePlugin: W
|
|
1909
1919
|
}), e.debugMode = function() {
|
|
1910
1920
|
h = !1;
|
|
1911
1921
|
}, e.safeMode = function() {
|
|
1912
1922
|
h = !0;
|
|
1913
|
-
}, e.versionString =
|
|
1923
|
+
}, e.versionString = Gt, e.regex = {
|
|
1914
1924
|
concat: se,
|
|
1915
|
-
lookahead:
|
|
1916
|
-
either:
|
|
1917
|
-
optional:
|
|
1918
|
-
anyNumberOfTimes:
|
|
1925
|
+
lookahead: bn,
|
|
1926
|
+
either: He,
|
|
1927
|
+
optional: st,
|
|
1928
|
+
anyNumberOfTimes: it
|
|
1919
1929
|
};
|
|
1920
|
-
for (const b in
|
|
1921
|
-
typeof
|
|
1922
|
-
return Object.assign(e,
|
|
1923
|
-
};
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1930
|
+
for (const b in Ne)
|
|
1931
|
+
typeof Ne[b] == "object" && pn(Ne[b]);
|
|
1932
|
+
return Object.assign(e, Ne), e;
|
|
1933
|
+
}, ce = Sn({});
|
|
1934
|
+
ce.newInstance = () => Sn({});
|
|
1935
|
+
var qt = ce;
|
|
1936
|
+
ce.HighlightJS = ce;
|
|
1937
|
+
ce.default = ce;
|
|
1938
|
+
const Z = /* @__PURE__ */ Jn(qt);
|
|
1928
1939
|
function Qt(e) {
|
|
1929
1940
|
const n = e.regex, a = n.concat(/[\p{L}_]/u, n.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, h = {
|
|
1930
1941
|
className: "symbol",
|
|
@@ -2184,14 +2195,14 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2184
2195
|
"from",
|
|
2185
2196
|
"export",
|
|
2186
2197
|
"extends"
|
|
2187
|
-
],
|
|
2198
|
+
], Yt = [
|
|
2188
2199
|
"true",
|
|
2189
2200
|
"false",
|
|
2190
2201
|
"null",
|
|
2191
2202
|
"undefined",
|
|
2192
2203
|
"NaN",
|
|
2193
2204
|
"Infinity"
|
|
2194
|
-
],
|
|
2205
|
+
], Tn = [
|
|
2195
2206
|
// Fundamental objects
|
|
2196
2207
|
"Object",
|
|
2197
2208
|
"Function",
|
|
@@ -2241,7 +2252,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2241
2252
|
"Intl",
|
|
2242
2253
|
// WebAssembly
|
|
2243
2254
|
"WebAssembly"
|
|
2244
|
-
],
|
|
2255
|
+
], Dn = [
|
|
2245
2256
|
"Error",
|
|
2246
2257
|
"EvalError",
|
|
2247
2258
|
"InternalError",
|
|
@@ -2250,7 +2261,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2250
2261
|
"SyntaxError",
|
|
2251
2262
|
"TypeError",
|
|
2252
2263
|
"URIError"
|
|
2253
|
-
],
|
|
2264
|
+
], Rn = [
|
|
2254
2265
|
"setInterval",
|
|
2255
2266
|
"setTimeout",
|
|
2256
2267
|
"clearInterval",
|
|
@@ -2268,7 +2279,7 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2268
2279
|
"encodeURIComponent",
|
|
2269
2280
|
"escape",
|
|
2270
2281
|
"unescape"
|
|
2271
|
-
],
|
|
2282
|
+
], Vt = [
|
|
2272
2283
|
"arguments",
|
|
2273
2284
|
"this",
|
|
2274
2285
|
"super",
|
|
@@ -2276,15 +2287,16 @@ const an = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2276
2287
|
"window",
|
|
2277
2288
|
"document",
|
|
2278
2289
|
"localStorage",
|
|
2290
|
+
"sessionStorage",
|
|
2279
2291
|
"module",
|
|
2280
2292
|
"global"
|
|
2281
2293
|
// Node.js
|
|
2282
|
-
],
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2294
|
+
], Xt = [].concat(
|
|
2295
|
+
Rn,
|
|
2296
|
+
Tn,
|
|
2297
|
+
Dn
|
|
2286
2298
|
);
|
|
2287
|
-
function
|
|
2299
|
+
function jt(e) {
|
|
2288
2300
|
const n = e.regex, a = (N, { after: L }) => {
|
|
2289
2301
|
const k = "</" + N[0].slice(1);
|
|
2290
2302
|
return N.input.indexOf(k, L) !== -1;
|
|
@@ -2312,13 +2324,13 @@ function Xt(e) {
|
|
|
2312
2324
|
return;
|
|
2313
2325
|
}
|
|
2314
2326
|
x === ">" && (a(N, { after: k }) || L.ignoreMatch());
|
|
2315
|
-
let
|
|
2327
|
+
let K;
|
|
2316
2328
|
const Y = N.input.substring(k);
|
|
2317
|
-
if (
|
|
2329
|
+
if (K = Y.match(/^\s*=/)) {
|
|
2318
2330
|
L.ignoreMatch();
|
|
2319
2331
|
return;
|
|
2320
2332
|
}
|
|
2321
|
-
if ((
|
|
2333
|
+
if ((K = Y.match(/^\s+extends\s+/)) && K.index === 0) {
|
|
2322
2334
|
L.ignoreMatch();
|
|
2323
2335
|
return;
|
|
2324
2336
|
}
|
|
@@ -2326,9 +2338,9 @@ function Xt(e) {
|
|
|
2326
2338
|
}, i = {
|
|
2327
2339
|
$pattern: an,
|
|
2328
2340
|
keyword: Zt,
|
|
2329
|
-
literal:
|
|
2330
|
-
built_in:
|
|
2331
|
-
"variable.language":
|
|
2341
|
+
literal: Yt,
|
|
2342
|
+
built_in: Xt,
|
|
2343
|
+
"variable.language": Vt
|
|
2332
2344
|
}, s = "[0-9](_?[0-9])*", o = `\\.(${s})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
|
|
2333
2345
|
className: "number",
|
|
2334
2346
|
variants: [
|
|
@@ -2378,6 +2390,18 @@ function Xt(e) {
|
|
|
2378
2390
|
subLanguage: "css"
|
|
2379
2391
|
}
|
|
2380
2392
|
}, p = {
|
|
2393
|
+
begin: "gql`",
|
|
2394
|
+
end: "",
|
|
2395
|
+
starts: {
|
|
2396
|
+
end: "`",
|
|
2397
|
+
returnEnd: !1,
|
|
2398
|
+
contains: [
|
|
2399
|
+
e.BACKSLASH_ESCAPE,
|
|
2400
|
+
f
|
|
2401
|
+
],
|
|
2402
|
+
subLanguage: "graphql"
|
|
2403
|
+
}
|
|
2404
|
+
}, _ = {
|
|
2381
2405
|
className: "string",
|
|
2382
2406
|
begin: "`",
|
|
2383
2407
|
end: "`",
|
|
@@ -2385,7 +2409,7 @@ function Xt(e) {
|
|
|
2385
2409
|
e.BACKSLASH_ESCAPE,
|
|
2386
2410
|
f
|
|
2387
2411
|
]
|
|
2388
|
-
},
|
|
2412
|
+
}, E = {
|
|
2389
2413
|
className: "comment",
|
|
2390
2414
|
variants: [
|
|
2391
2415
|
e.COMMENT(
|
|
@@ -2430,12 +2454,13 @@ function Xt(e) {
|
|
|
2430
2454
|
e.C_BLOCK_COMMENT_MODE,
|
|
2431
2455
|
e.C_LINE_COMMENT_MODE
|
|
2432
2456
|
]
|
|
2433
|
-
},
|
|
2457
|
+
}, w = [
|
|
2434
2458
|
e.APOS_STRING_MODE,
|
|
2435
2459
|
e.QUOTE_STRING_MODE,
|
|
2436
2460
|
g,
|
|
2437
2461
|
d,
|
|
2438
2462
|
p,
|
|
2463
|
+
_,
|
|
2439
2464
|
// Skip numbers when they are part of a variable name
|
|
2440
2465
|
{ match: /\$\d+/ },
|
|
2441
2466
|
c
|
|
@@ -2443,7 +2468,7 @@ function Xt(e) {
|
|
|
2443
2468
|
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
2444
2469
|
// hljs.REGEXP_MODE
|
|
2445
2470
|
];
|
|
2446
|
-
f.contains =
|
|
2471
|
+
f.contains = w.concat({
|
|
2447
2472
|
// we need to pair up {} inside our subst to prevent
|
|
2448
2473
|
// it from ending too early by matching another }
|
|
2449
2474
|
begin: /\{/,
|
|
@@ -2451,25 +2476,25 @@ function Xt(e) {
|
|
|
2451
2476
|
keywords: i,
|
|
2452
2477
|
contains: [
|
|
2453
2478
|
"self"
|
|
2454
|
-
].concat(
|
|
2479
|
+
].concat(w)
|
|
2455
2480
|
});
|
|
2456
|
-
const
|
|
2481
|
+
const y = [].concat(E, f.contains), D = y.concat([
|
|
2457
2482
|
// eat recursive parens in sub expressions
|
|
2458
2483
|
{
|
|
2459
2484
|
begin: /\(/,
|
|
2460
2485
|
end: /\)/,
|
|
2461
2486
|
keywords: i,
|
|
2462
|
-
contains: ["self"].concat(
|
|
2487
|
+
contains: ["self"].concat(y)
|
|
2463
2488
|
}
|
|
2464
|
-
]),
|
|
2489
|
+
]), S = {
|
|
2465
2490
|
className: "params",
|
|
2466
2491
|
begin: /\(/,
|
|
2467
2492
|
end: /\)/,
|
|
2468
2493
|
excludeBegin: !0,
|
|
2469
2494
|
excludeEnd: !0,
|
|
2470
2495
|
keywords: i,
|
|
2471
|
-
contains:
|
|
2472
|
-
},
|
|
2496
|
+
contains: D
|
|
2497
|
+
}, A = {
|
|
2473
2498
|
variants: [
|
|
2474
2499
|
// class Car extends vehicle
|
|
2475
2500
|
{
|
|
@@ -2502,7 +2527,7 @@ function Xt(e) {
|
|
|
2502
2527
|
}
|
|
2503
2528
|
}
|
|
2504
2529
|
]
|
|
2505
|
-
},
|
|
2530
|
+
}, I = {
|
|
2506
2531
|
relevance: 0,
|
|
2507
2532
|
match: n.either(
|
|
2508
2533
|
// Hard coded exceptions
|
|
@@ -2522,16 +2547,16 @@ function Xt(e) {
|
|
|
2522
2547
|
keywords: {
|
|
2523
2548
|
_: [
|
|
2524
2549
|
// se we still get relevance credit for JS library classes
|
|
2525
|
-
...
|
|
2526
|
-
...
|
|
2550
|
+
...Tn,
|
|
2551
|
+
...Dn
|
|
2527
2552
|
]
|
|
2528
2553
|
}
|
|
2529
|
-
},
|
|
2554
|
+
}, R = {
|
|
2530
2555
|
label: "use_strict",
|
|
2531
2556
|
className: "meta",
|
|
2532
2557
|
relevance: 10,
|
|
2533
2558
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
2534
|
-
},
|
|
2559
|
+
}, H = {
|
|
2535
2560
|
variants: [
|
|
2536
2561
|
{
|
|
2537
2562
|
match: [
|
|
@@ -2554,21 +2579,21 @@ function Xt(e) {
|
|
|
2554
2579
|
3: "title.function"
|
|
2555
2580
|
},
|
|
2556
2581
|
label: "func.def",
|
|
2557
|
-
contains: [
|
|
2582
|
+
contains: [S],
|
|
2558
2583
|
illegal: /%/
|
|
2559
|
-
},
|
|
2584
|
+
}, P = {
|
|
2560
2585
|
relevance: 0,
|
|
2561
2586
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
2562
2587
|
className: "variable.constant"
|
|
2563
2588
|
};
|
|
2564
|
-
function
|
|
2589
|
+
function $(N) {
|
|
2565
2590
|
return n.concat("(?!", N.join("|"), ")");
|
|
2566
2591
|
}
|
|
2567
|
-
const
|
|
2592
|
+
const F = {
|
|
2568
2593
|
match: n.concat(
|
|
2569
2594
|
/\b/,
|
|
2570
|
-
|
|
2571
|
-
...
|
|
2595
|
+
$([
|
|
2596
|
+
...Rn,
|
|
2572
2597
|
"super",
|
|
2573
2598
|
"import"
|
|
2574
2599
|
]),
|
|
@@ -2577,7 +2602,7 @@ function Xt(e) {
|
|
|
2577
2602
|
),
|
|
2578
2603
|
className: "title.function",
|
|
2579
2604
|
relevance: 0
|
|
2580
|
-
},
|
|
2605
|
+
}, W = {
|
|
2581
2606
|
begin: n.concat(/\./, n.lookahead(
|
|
2582
2607
|
n.concat(u, /(?![0-9A-Za-z$_(])/)
|
|
2583
2608
|
)),
|
|
@@ -2586,7 +2611,7 @@ function Xt(e) {
|
|
|
2586
2611
|
keywords: "prototype",
|
|
2587
2612
|
className: "property",
|
|
2588
2613
|
relevance: 0
|
|
2589
|
-
},
|
|
2614
|
+
}, ae = {
|
|
2590
2615
|
match: [
|
|
2591
2616
|
/get|set/,
|
|
2592
2617
|
/\s+/,
|
|
@@ -2602,9 +2627,9 @@ function Xt(e) {
|
|
|
2602
2627
|
// eat to avoid empty params
|
|
2603
2628
|
begin: /\(\)/
|
|
2604
2629
|
},
|
|
2605
|
-
|
|
2630
|
+
S
|
|
2606
2631
|
]
|
|
2607
|
-
},
|
|
2632
|
+
}, Ee = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", b = {
|
|
2608
2633
|
match: [
|
|
2609
2634
|
/const|var|let/,
|
|
2610
2635
|
/\s+/,
|
|
@@ -2613,7 +2638,7 @@ function Xt(e) {
|
|
|
2613
2638
|
/=\s*/,
|
|
2614
2639
|
/(async\s*)?/,
|
|
2615
2640
|
// async is optional
|
|
2616
|
-
n.lookahead(
|
|
2641
|
+
n.lookahead(Ee)
|
|
2617
2642
|
],
|
|
2618
2643
|
keywords: "async",
|
|
2619
2644
|
className: {
|
|
@@ -2621,15 +2646,15 @@ function Xt(e) {
|
|
|
2621
2646
|
3: "title.function"
|
|
2622
2647
|
},
|
|
2623
2648
|
contains: [
|
|
2624
|
-
|
|
2649
|
+
S
|
|
2625
2650
|
]
|
|
2626
2651
|
};
|
|
2627
2652
|
return {
|
|
2628
|
-
name: "
|
|
2653
|
+
name: "JavaScript",
|
|
2629
2654
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
2630
2655
|
keywords: i,
|
|
2631
2656
|
// this will be extended by TypeScript
|
|
2632
|
-
exports: { PARAMS_CONTAINS:
|
|
2657
|
+
exports: { PARAMS_CONTAINS: D, CLASS_REFERENCE: I },
|
|
2633
2658
|
illegal: /#(?![$_A-z])/,
|
|
2634
2659
|
contains: [
|
|
2635
2660
|
e.SHEBANG({
|
|
@@ -2637,17 +2662,18 @@ function Xt(e) {
|
|
|
2637
2662
|
binary: "node",
|
|
2638
2663
|
relevance: 5
|
|
2639
2664
|
}),
|
|
2640
|
-
|
|
2665
|
+
R,
|
|
2641
2666
|
e.APOS_STRING_MODE,
|
|
2642
2667
|
e.QUOTE_STRING_MODE,
|
|
2643
2668
|
g,
|
|
2644
2669
|
d,
|
|
2645
2670
|
p,
|
|
2646
|
-
|
|
2671
|
+
_,
|
|
2672
|
+
E,
|
|
2647
2673
|
// Skip numbers when they are part of a variable name
|
|
2648
2674
|
{ match: /\$\d+/ },
|
|
2649
2675
|
c,
|
|
2650
|
-
|
|
2676
|
+
I,
|
|
2651
2677
|
{
|
|
2652
2678
|
className: "attr",
|
|
2653
2679
|
begin: u + n.lookahead(":"),
|
|
@@ -2660,14 +2686,14 @@ function Xt(e) {
|
|
|
2660
2686
|
keywords: "return throw case",
|
|
2661
2687
|
relevance: 0,
|
|
2662
2688
|
contains: [
|
|
2663
|
-
|
|
2689
|
+
E,
|
|
2664
2690
|
e.REGEXP_MODE,
|
|
2665
2691
|
{
|
|
2666
2692
|
className: "function",
|
|
2667
2693
|
// we have to count the parens to make sure we actually have the
|
|
2668
2694
|
// correct bounding ( ) before the =>. There could be any number of
|
|
2669
2695
|
// sub-expressions inside also surrounded by parens.
|
|
2670
|
-
begin:
|
|
2696
|
+
begin: Ee,
|
|
2671
2697
|
returnBegin: !0,
|
|
2672
2698
|
end: "\\s*=>",
|
|
2673
2699
|
contains: [
|
|
@@ -2689,7 +2715,7 @@ function Xt(e) {
|
|
|
2689
2715
|
excludeBegin: !0,
|
|
2690
2716
|
excludeEnd: !0,
|
|
2691
2717
|
keywords: i,
|
|
2692
|
-
contains:
|
|
2718
|
+
contains: D
|
|
2693
2719
|
}
|
|
2694
2720
|
]
|
|
2695
2721
|
}
|
|
@@ -2729,7 +2755,7 @@ function Xt(e) {
|
|
|
2729
2755
|
}
|
|
2730
2756
|
]
|
|
2731
2757
|
},
|
|
2732
|
-
|
|
2758
|
+
H,
|
|
2733
2759
|
{
|
|
2734
2760
|
// prevent this from getting swallowed up by function
|
|
2735
2761
|
// since they appear "function like"
|
|
@@ -2744,7 +2770,7 @@ function Xt(e) {
|
|
|
2744
2770
|
returnBegin: !0,
|
|
2745
2771
|
label: "func.def",
|
|
2746
2772
|
contains: [
|
|
2747
|
-
|
|
2773
|
+
S,
|
|
2748
2774
|
e.inherit(e.TITLE_MODE, { begin: u, className: "title.function" })
|
|
2749
2775
|
]
|
|
2750
2776
|
},
|
|
@@ -2753,7 +2779,7 @@ function Xt(e) {
|
|
|
2753
2779
|
match: /\.\.\./,
|
|
2754
2780
|
relevance: 0
|
|
2755
2781
|
},
|
|
2756
|
-
|
|
2782
|
+
W,
|
|
2757
2783
|
// hack: prevents detection of keywords in some circumstances
|
|
2758
2784
|
// .keyword()
|
|
2759
2785
|
// $keyword = x
|
|
@@ -2764,12 +2790,12 @@ function Xt(e) {
|
|
|
2764
2790
|
{
|
|
2765
2791
|
match: [/\bconstructor(?=\s*\()/],
|
|
2766
2792
|
className: { 1: "title.function" },
|
|
2767
|
-
contains: [
|
|
2793
|
+
contains: [S]
|
|
2768
2794
|
},
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2795
|
+
F,
|
|
2796
|
+
P,
|
|
2797
|
+
A,
|
|
2798
|
+
ae,
|
|
2773
2799
|
{
|
|
2774
2800
|
match: /\$[(.]/
|
|
2775
2801
|
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
@@ -2777,7 +2803,7 @@ function Xt(e) {
|
|
|
2777
2803
|
]
|
|
2778
2804
|
};
|
|
2779
2805
|
}
|
|
2780
|
-
function
|
|
2806
|
+
function Jt(e) {
|
|
2781
2807
|
const n = {
|
|
2782
2808
|
className: "attr",
|
|
2783
2809
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -2811,7 +2837,7 @@ function Vt(e) {
|
|
|
2811
2837
|
illegal: "\\S"
|
|
2812
2838
|
};
|
|
2813
2839
|
}
|
|
2814
|
-
function
|
|
2840
|
+
function er(e) {
|
|
2815
2841
|
const n = "true false yes no null", a = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
|
|
2816
2842
|
className: "attr",
|
|
2817
2843
|
variants: [
|
|
@@ -2975,7 +3001,7 @@ function Jt(e) {
|
|
|
2975
3001
|
contains: p
|
|
2976
3002
|
};
|
|
2977
3003
|
}
|
|
2978
|
-
function
|
|
3004
|
+
function nr(e) {
|
|
2979
3005
|
return {
|
|
2980
3006
|
name: "Plain text",
|
|
2981
3007
|
aliases: [
|
|
@@ -2985,7 +3011,7 @@ function er(e) {
|
|
|
2985
3011
|
disableAutodetect: !0
|
|
2986
3012
|
};
|
|
2987
3013
|
}
|
|
2988
|
-
function
|
|
3014
|
+
function tr(e) {
|
|
2989
3015
|
const n = e.regex, a = /[\p{XID_Start}_]\p{XID_Continue}*/u, u = [
|
|
2990
3016
|
"and",
|
|
2991
3017
|
"as",
|
|
@@ -3310,7 +3336,7 @@ function nr(e) {
|
|
|
3310
3336
|
],
|
|
3311
3337
|
unicodeRegex: !0,
|
|
3312
3338
|
keywords: i,
|
|
3313
|
-
illegal: /(
|
|
3339
|
+
illegal: /(<\/|\?)|=>/,
|
|
3314
3340
|
contains: [
|
|
3315
3341
|
s,
|
|
3316
3342
|
p,
|
|
@@ -3379,22 +3405,22 @@ function nr(e) {
|
|
|
3379
3405
|
]
|
|
3380
3406
|
};
|
|
3381
3407
|
}
|
|
3382
|
-
var
|
|
3408
|
+
var le = "[0-9](_*[0-9])*", Me = `\\.(${le})`, Ae = "[0-9a-fA-F](_*[0-9a-fA-F])*", on = {
|
|
3383
3409
|
className: "number",
|
|
3384
3410
|
variants: [
|
|
3385
3411
|
// DecimalFloatingPointLiteral
|
|
3386
3412
|
// including ExponentPart
|
|
3387
|
-
{ begin: `(\\b(${
|
|
3413
|
+
{ begin: `(\\b(${le})((${Me})|\\.)?|(${Me}))[eE][+-]?(${le})[fFdD]?\\b` },
|
|
3388
3414
|
// excluding ExponentPart
|
|
3389
|
-
{ begin: `\\b(${
|
|
3390
|
-
{ begin: `(${
|
|
3391
|
-
{ begin: `\\b(${
|
|
3415
|
+
{ begin: `\\b(${le})((${Me})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
3416
|
+
{ begin: `(${Me})[fFdD]?\\b` },
|
|
3417
|
+
{ begin: `\\b(${le})[fFdD]\\b` },
|
|
3392
3418
|
// HexadecimalFloatingPointLiteral
|
|
3393
|
-
{ begin: `\\b0[xX]((${
|
|
3419
|
+
{ begin: `\\b0[xX]((${Ae})\\.?|(${Ae})?\\.(${Ae}))[pP][+-]?(${le})[fFdD]?\\b` },
|
|
3394
3420
|
// DecimalIntegerLiteral
|
|
3395
3421
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
3396
3422
|
// HexIntegerLiteral
|
|
3397
|
-
{ begin: `\\b0[xX](${
|
|
3423
|
+
{ begin: `\\b0[xX](${Ae})[lL]?\\b` },
|
|
3398
3424
|
// OctalIntegerLiteral
|
|
3399
3425
|
{ begin: "\\b0(_*[0-7])*[lL]?\\b" },
|
|
3400
3426
|
// BinaryIntegerLiteral
|
|
@@ -3402,11 +3428,11 @@ var oe = "[0-9](_*[0-9])*", Ne = `\\.(${oe})`, Me = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
3402
3428
|
],
|
|
3403
3429
|
relevance: 0
|
|
3404
3430
|
};
|
|
3405
|
-
function
|
|
3406
|
-
return a === -1 ? "" : e.replace(n, (u) =>
|
|
3431
|
+
function Cn(e, n, a) {
|
|
3432
|
+
return a === -1 ? "" : e.replace(n, (u) => Cn(e, n, a - 1));
|
|
3407
3433
|
}
|
|
3408
|
-
function
|
|
3409
|
-
const n = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = a +
|
|
3434
|
+
function rr(e) {
|
|
3435
|
+
const n = e.regex, a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", u = a + Cn("(?:<" + a + "~~~(?:\\s*,\\s*" + a + "~~~)*>)?", /~~~/g, 2), s = {
|
|
3410
3436
|
keyword: [
|
|
3411
3437
|
"synchronized",
|
|
3412
3438
|
"abstract",
|
|
@@ -3614,7 +3640,7 @@ function tr(e) {
|
|
|
3614
3640
|
]
|
|
3615
3641
|
};
|
|
3616
3642
|
}
|
|
3617
|
-
function
|
|
3643
|
+
function ir(e) {
|
|
3618
3644
|
const n = e.regex, a = {}, u = {
|
|
3619
3645
|
begin: /\$\{/,
|
|
3620
3646
|
end: /\}/,
|
|
@@ -3665,13 +3691,14 @@ function rr(e) {
|
|
|
3665
3691
|
};
|
|
3666
3692
|
h.contains.push(r);
|
|
3667
3693
|
const i = {
|
|
3668
|
-
|
|
3669
|
-
begin: /\\"/
|
|
3694
|
+
match: /\\"/
|
|
3670
3695
|
}, s = {
|
|
3671
3696
|
className: "string",
|
|
3672
3697
|
begin: /'/,
|
|
3673
3698
|
end: /'/
|
|
3674
3699
|
}, o = {
|
|
3700
|
+
match: /\\'/
|
|
3701
|
+
}, l = {
|
|
3675
3702
|
begin: /\$?\(\(/,
|
|
3676
3703
|
end: /\)\)/,
|
|
3677
3704
|
contains: [
|
|
@@ -3682,7 +3709,7 @@ function rr(e) {
|
|
|
3682
3709
|
e.NUMBER_MODE,
|
|
3683
3710
|
a
|
|
3684
3711
|
]
|
|
3685
|
-
},
|
|
3712
|
+
}, c = [
|
|
3686
3713
|
"fish",
|
|
3687
3714
|
"bash",
|
|
3688
3715
|
"zsh",
|
|
@@ -3692,16 +3719,16 @@ function rr(e) {
|
|
|
3692
3719
|
"tcsh",
|
|
3693
3720
|
"dash",
|
|
3694
3721
|
"scsh"
|
|
3695
|
-
],
|
|
3696
|
-
binary: `(${
|
|
3722
|
+
], f = e.SHEBANG({
|
|
3723
|
+
binary: `(${c.join("|")})`,
|
|
3697
3724
|
relevance: 10
|
|
3698
|
-
}),
|
|
3725
|
+
}), g = {
|
|
3699
3726
|
className: "function",
|
|
3700
3727
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
3701
3728
|
returnBegin: !0,
|
|
3702
3729
|
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
3703
3730
|
relevance: 0
|
|
3704
|
-
},
|
|
3731
|
+
}, d = [
|
|
3705
3732
|
"if",
|
|
3706
3733
|
"then",
|
|
3707
3734
|
"else",
|
|
@@ -3709,16 +3736,18 @@ function rr(e) {
|
|
|
3709
3736
|
"fi",
|
|
3710
3737
|
"for",
|
|
3711
3738
|
"while",
|
|
3739
|
+
"until",
|
|
3712
3740
|
"in",
|
|
3713
3741
|
"do",
|
|
3714
3742
|
"done",
|
|
3715
3743
|
"case",
|
|
3716
3744
|
"esac",
|
|
3717
|
-
"function"
|
|
3718
|
-
|
|
3745
|
+
"function",
|
|
3746
|
+
"select"
|
|
3747
|
+
], p = [
|
|
3719
3748
|
"true",
|
|
3720
3749
|
"false"
|
|
3721
|
-
],
|
|
3750
|
+
], _ = { match: /(\/[a-z._-]+)+/ }, v = [
|
|
3722
3751
|
"break",
|
|
3723
3752
|
"cd",
|
|
3724
3753
|
"continue",
|
|
@@ -3737,7 +3766,7 @@ function rr(e) {
|
|
|
3737
3766
|
"trap",
|
|
3738
3767
|
"umask",
|
|
3739
3768
|
"unset"
|
|
3740
|
-
],
|
|
3769
|
+
], E = [
|
|
3741
3770
|
"alias",
|
|
3742
3771
|
"bind",
|
|
3743
3772
|
"builtin",
|
|
@@ -3759,7 +3788,7 @@ function rr(e) {
|
|
|
3759
3788
|
"typeset",
|
|
3760
3789
|
"ulimit",
|
|
3761
3790
|
"unalias"
|
|
3762
|
-
],
|
|
3791
|
+
], w = [
|
|
3763
3792
|
"autoload",
|
|
3764
3793
|
"bg",
|
|
3765
3794
|
"bindkey",
|
|
@@ -3828,7 +3857,7 @@ function rr(e) {
|
|
|
3828
3857
|
"zsocket",
|
|
3829
3858
|
"zstyle",
|
|
3830
3859
|
"ztcp"
|
|
3831
|
-
],
|
|
3860
|
+
], y = [
|
|
3832
3861
|
"chcon",
|
|
3833
3862
|
"chgrp",
|
|
3834
3863
|
"chown",
|
|
@@ -3938,36 +3967,37 @@ function rr(e) {
|
|
|
3938
3967
|
aliases: ["sh"],
|
|
3939
3968
|
keywords: {
|
|
3940
3969
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
3941
|
-
keyword:
|
|
3942
|
-
literal:
|
|
3970
|
+
keyword: d,
|
|
3971
|
+
literal: p,
|
|
3943
3972
|
built_in: [
|
|
3944
|
-
..._,
|
|
3945
3973
|
...v,
|
|
3974
|
+
...E,
|
|
3946
3975
|
// Shell modifiers
|
|
3947
3976
|
"set",
|
|
3948
3977
|
"shopt",
|
|
3949
|
-
...
|
|
3950
|
-
...
|
|
3978
|
+
...w,
|
|
3979
|
+
...y
|
|
3951
3980
|
]
|
|
3952
3981
|
},
|
|
3953
3982
|
contains: [
|
|
3954
|
-
|
|
3983
|
+
f,
|
|
3955
3984
|
// to catch known shells and boost relevancy
|
|
3956
3985
|
e.SHEBANG(),
|
|
3957
3986
|
// to catch unknown shells but still highlight the shebang
|
|
3958
|
-
|
|
3959
|
-
|
|
3987
|
+
g,
|
|
3988
|
+
l,
|
|
3960
3989
|
e.HASH_COMMENT_MODE,
|
|
3961
3990
|
t,
|
|
3962
|
-
|
|
3991
|
+
_,
|
|
3963
3992
|
r,
|
|
3964
3993
|
i,
|
|
3965
3994
|
s,
|
|
3995
|
+
o,
|
|
3966
3996
|
a
|
|
3967
3997
|
]
|
|
3968
3998
|
};
|
|
3969
3999
|
}
|
|
3970
|
-
function
|
|
4000
|
+
function sr(e) {
|
|
3971
4001
|
const n = e.regex, a = e.COMMENT("--", "$"), u = {
|
|
3972
4002
|
className: "string",
|
|
3973
4003
|
variants: [
|
|
@@ -4521,7 +4551,7 @@ function ir(e) {
|
|
|
4521
4551
|
...s
|
|
4522
4552
|
].filter((w) => !l.includes(w)), p = {
|
|
4523
4553
|
className: "variable",
|
|
4524
|
-
begin: /@[a-z0-9]
|
|
4554
|
+
begin: /@[a-z0-9][a-z0-9_]*/
|
|
4525
4555
|
}, _ = {
|
|
4526
4556
|
className: "operator",
|
|
4527
4557
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
@@ -4532,11 +4562,11 @@ function ir(e) {
|
|
|
4532
4562
|
keywords: { built_in: g }
|
|
4533
4563
|
};
|
|
4534
4564
|
function E(w, {
|
|
4535
|
-
exceptions:
|
|
4536
|
-
when:
|
|
4565
|
+
exceptions: y,
|
|
4566
|
+
when: D
|
|
4537
4567
|
} = {}) {
|
|
4538
|
-
const S =
|
|
4539
|
-
return
|
|
4568
|
+
const S = D;
|
|
4569
|
+
return y = y || [], w.map((A) => A.match(/\|\d+$/) || y.includes(A) ? A : S(A) ? `${A}|0` : A);
|
|
4540
4570
|
}
|
|
4541
4571
|
return {
|
|
4542
4572
|
name: "SQL",
|
|
@@ -4576,44 +4606,44 @@ function ir(e) {
|
|
|
4576
4606
|
]
|
|
4577
4607
|
};
|
|
4578
4608
|
}
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
var
|
|
4589
|
-
const
|
|
4590
|
-
function
|
|
4591
|
-
return e === void 0 ?
|
|
4609
|
+
Z.registerLanguage("xml", Qt);
|
|
4610
|
+
Z.registerLanguage("javascript", jt);
|
|
4611
|
+
Z.registerLanguage("json", Jt);
|
|
4612
|
+
Z.registerLanguage("yaml", er);
|
|
4613
|
+
Z.registerLanguage("plaintext", nr);
|
|
4614
|
+
Z.registerLanguage("python", tr);
|
|
4615
|
+
Z.registerLanguage("java", rr);
|
|
4616
|
+
Z.registerLanguage("bash", ir);
|
|
4617
|
+
Z.registerLanguage("sql", sr);
|
|
4618
|
+
var T = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(T || {});
|
|
4619
|
+
const J = "<code-diff-modified>", ee = "</code-diff-modified>", ar = J.replace("<", "<").replace(">", ">"), or = ee.replace("<", "<").replace(">", ">");
|
|
4620
|
+
function ue(e) {
|
|
4621
|
+
return e === void 0 ? T.EQUAL : e.added ? T.ADD : e.removed ? T.DELETE : T.EQUAL;
|
|
4592
4622
|
}
|
|
4593
|
-
function
|
|
4594
|
-
return typeof e == "undefined" ? n : typeof n == "undefined" ? e : (a === "char" ?
|
|
4595
|
-
(h) =>
|
|
4623
|
+
function De(e, n, a = "word") {
|
|
4624
|
+
return typeof e == "undefined" ? n : typeof n == "undefined" ? e : (a === "char" ? Qn : Yn)(e, n).filter((h) => ue(h) !== T.DELETE).map(
|
|
4625
|
+
(h) => ue(h) === T.ADD ? `${J}${h.value}${ee}` : h.value
|
|
4596
4626
|
).join("");
|
|
4597
4627
|
}
|
|
4598
|
-
function
|
|
4599
|
-
const a = new
|
|
4628
|
+
function Ln(e, n) {
|
|
4629
|
+
const a = new Ie.diff_match_patch(), u = a.diff_linesToChars_(e, n), h = u.chars1, t = u.chars2, r = u.lineArray, i = a.diff_main(h, t, !1);
|
|
4600
4630
|
return a.diff_charsToLines_(i, r), i.map((s) => {
|
|
4601
4631
|
const [o, l] = s;
|
|
4602
4632
|
return {
|
|
4603
4633
|
count: l.replace(/\n$/, "").split(`
|
|
4604
4634
|
`).length,
|
|
4605
4635
|
value: l,
|
|
4606
|
-
removed: o ===
|
|
4607
|
-
added: o ===
|
|
4636
|
+
removed: o === Ie.DIFF_DELETE,
|
|
4637
|
+
added: o === Ie.DIFF_INSERT
|
|
4608
4638
|
};
|
|
4609
4639
|
});
|
|
4610
4640
|
}
|
|
4611
|
-
function
|
|
4612
|
-
if (!n.match(new RegExp(`(${
|
|
4613
|
-
return
|
|
4641
|
+
function Q(e, n) {
|
|
4642
|
+
if (!n.match(new RegExp(`(${J}|${ee})`, "g")))
|
|
4643
|
+
return Z.highlight(n, { language: e }).value;
|
|
4614
4644
|
let u = n;
|
|
4615
|
-
const h = n.replace(new RegExp(`(${
|
|
4616
|
-
t.innerHTML =
|
|
4645
|
+
const h = n.replace(new RegExp(`(${J}|${ee})`, "g"), ""), t = document.createElement("div");
|
|
4646
|
+
t.innerHTML = Z.highlight(h, { language: e }).value;
|
|
4617
4647
|
let r = !1;
|
|
4618
4648
|
const i = (s) => {
|
|
4619
4649
|
s.childNodes.forEach((o) => {
|
|
@@ -4621,23 +4651,23 @@ function Z(e, n) {
|
|
|
4621
4651
|
if (!o.textContent)
|
|
4622
4652
|
return;
|
|
4623
4653
|
let l = o.textContent, c = "";
|
|
4624
|
-
for (r && (c = c +
|
|
4625
|
-
if (u.startsWith(
|
|
4626
|
-
u = u.slice(
|
|
4654
|
+
for (r && (c = c + J); l.length; ) {
|
|
4655
|
+
if (u.startsWith(J)) {
|
|
4656
|
+
u = u.slice(J.length), c = c + J, r = !0;
|
|
4627
4657
|
continue;
|
|
4628
4658
|
}
|
|
4629
|
-
if (u.startsWith(
|
|
4630
|
-
u = u.slice(
|
|
4659
|
+
if (u.startsWith(ee)) {
|
|
4660
|
+
u = u.slice(ee.length), c = c + ee, r = !1;
|
|
4631
4661
|
continue;
|
|
4632
4662
|
}
|
|
4633
|
-
const f = u.match(new RegExp(`(${
|
|
4663
|
+
const f = u.match(new RegExp(`(${J}|${ee})`)), g = f && f.index ? f.index : u.length, d = Math.min(g, l.length);
|
|
4634
4664
|
c = c + u.substring(0, d), u = u.slice(d), l = l.slice(d);
|
|
4635
4665
|
}
|
|
4636
|
-
r && (c = c +
|
|
4666
|
+
r && (c = c + ee), o.textContent = c;
|
|
4637
4667
|
}
|
|
4638
4668
|
});
|
|
4639
4669
|
};
|
|
4640
|
-
return i(t), t.innerHTML.replace(new RegExp(
|
|
4670
|
+
return i(t), t.innerHTML.replace(new RegExp(ar, "g"), '<span class="x">').replace(new RegExp(or, "g"), "</span>");
|
|
4641
4671
|
}
|
|
4642
4672
|
function On(e) {
|
|
4643
4673
|
const n = (h, t) => (h.match(new RegExp(t, "g")) || []).length;
|
|
@@ -4648,8 +4678,8 @@ function On(e) {
|
|
|
4648
4678
|
`) + 1);
|
|
4649
4679
|
return { additionsNum: a, deletionsNum: u };
|
|
4650
4680
|
}
|
|
4651
|
-
function
|
|
4652
|
-
const t = () => ({ type:
|
|
4681
|
+
function lr(e, n, a = "plaintext", u = "word", h = 10) {
|
|
4682
|
+
const t = () => ({ type: T.EMPTY }), r = (p, _, v) => ({ type: p, num: _, code: v }), i = Ln(e, n);
|
|
4653
4683
|
let s = 0, o = 0, l = !1;
|
|
4654
4684
|
const c = [], f = {
|
|
4655
4685
|
changes: c,
|
|
@@ -4661,49 +4691,49 @@ function or(e, n, a = "plaintext", u = "word", h = 10) {
|
|
|
4661
4691
|
l = !1;
|
|
4662
4692
|
continue;
|
|
4663
4693
|
}
|
|
4664
|
-
const [_, v] = [i[p], i[p + 1]], [E, w] = [
|
|
4694
|
+
const [_, v] = [i[p], i[p + 1]], [E, w] = [ue(_), ue(v)], y = _.value.replace(/\n$/, "").split(`
|
|
4665
4695
|
`);
|
|
4666
4696
|
if (v === void 0) {
|
|
4667
|
-
for (const S of
|
|
4668
|
-
let
|
|
4669
|
-
const R =
|
|
4670
|
-
E ===
|
|
4697
|
+
for (const S of y) {
|
|
4698
|
+
let A = t(), I = t();
|
|
4699
|
+
const R = Q(a, S);
|
|
4700
|
+
E === T.EQUAL && (s++, o++, A = r(T.EQUAL, s, R), I = r(T.EQUAL, o, R)), E === T.DELETE && (s++, A = r(T.DELETE, s, R), I = t()), E === T.ADD && (o++, A = t(), I = r(T.ADD, o, R)), c.push({ left: A, right: I });
|
|
4671
4701
|
}
|
|
4672
4702
|
break;
|
|
4673
4703
|
}
|
|
4674
|
-
if (E ===
|
|
4675
|
-
for (const S of
|
|
4704
|
+
if (E === T.EQUAL)
|
|
4705
|
+
for (const S of y) {
|
|
4676
4706
|
s++, o++;
|
|
4677
|
-
const
|
|
4707
|
+
const A = Q(a, S);
|
|
4678
4708
|
c.push({
|
|
4679
|
-
left: r(
|
|
4680
|
-
right: r(
|
|
4709
|
+
left: r(T.EQUAL, s, A),
|
|
4710
|
+
right: r(T.EQUAL, o, A)
|
|
4681
4711
|
});
|
|
4682
4712
|
}
|
|
4683
|
-
const
|
|
4713
|
+
const D = v.value.replace(/\n$/, "").split(`
|
|
4684
4714
|
`);
|
|
4685
|
-
if (E ===
|
|
4686
|
-
if (w ===
|
|
4687
|
-
for (const S of
|
|
4715
|
+
if (E === T.DELETE) {
|
|
4716
|
+
if (w === T.EQUAL)
|
|
4717
|
+
for (const S of y)
|
|
4688
4718
|
s++, c.push({
|
|
4689
|
-
left: r(
|
|
4719
|
+
left: r(T.DELETE, s, Q(a, S)),
|
|
4690
4720
|
right: t()
|
|
4691
4721
|
});
|
|
4692
|
-
if (w ===
|
|
4722
|
+
if (w === T.ADD) {
|
|
4693
4723
|
l = !0;
|
|
4694
4724
|
const S = Math.max(_.count, v.count);
|
|
4695
|
-
for (let
|
|
4696
|
-
|
|
4697
|
-
const [I, R] = [
|
|
4725
|
+
for (let A = 0; A < S; A++) {
|
|
4726
|
+
A < _.count && s++, A < v.count && o++;
|
|
4727
|
+
const [I, R] = [y[A], D[A]], H = y.length === D.length ? De(R, I, u) : I, P = y.length === D.length ? De(I, R, u) : R, $ = A < _.count ? r(T.DELETE, s, Q(a, H)) : t(), F = A < v.count ? r(T.ADD, o, Q(a, P)) : t();
|
|
4698
4728
|
c.push({ left: $, right: F });
|
|
4699
4729
|
}
|
|
4700
4730
|
}
|
|
4701
4731
|
}
|
|
4702
|
-
if (E ===
|
|
4703
|
-
for (const S of
|
|
4732
|
+
if (E === T.ADD)
|
|
4733
|
+
for (const S of y)
|
|
4704
4734
|
o++, c.push({
|
|
4705
4735
|
left: t(),
|
|
4706
|
-
right: r(
|
|
4736
|
+
right: r(T.ADD, o, Q(a, S))
|
|
4707
4737
|
});
|
|
4708
4738
|
}
|
|
4709
4739
|
if (e === n) {
|
|
@@ -4713,7 +4743,7 @@ function or(e, n, a = "plaintext", u = "word", h = 10) {
|
|
|
4713
4743
|
}
|
|
4714
4744
|
for (let p = 0; p < c.length; p++) {
|
|
4715
4745
|
const _ = c[p];
|
|
4716
|
-
if (_.left.type ===
|
|
4746
|
+
if (_.left.type === T.DELETE || _.right.type === T.ADD) {
|
|
4717
4747
|
const [v, E] = [Math.max(p - h, 0), Math.min(p + h + 1, c.length)];
|
|
4718
4748
|
for (let w = v; w < E; w++)
|
|
4719
4749
|
c[w].fold = !1;
|
|
@@ -4738,8 +4768,8 @@ function or(e, n, a = "plaintext", u = "word", h = 10) {
|
|
|
4738
4768
|
fold: !0
|
|
4739
4769
|
}), d = []), f.changes = g, f;
|
|
4740
4770
|
}
|
|
4741
|
-
function
|
|
4742
|
-
const t =
|
|
4771
|
+
function cr(e, n, a = "plaintext", u = "word", h = 10) {
|
|
4772
|
+
const t = Ln(e, n);
|
|
4743
4773
|
let r = 0, i = 0, s = !1;
|
|
4744
4774
|
const o = [], l = {
|
|
4745
4775
|
changes: o,
|
|
@@ -4751,60 +4781,60 @@ function lr(e, n, a = "plaintext", u = "word", h = 10) {
|
|
|
4751
4781
|
s = !1;
|
|
4752
4782
|
continue;
|
|
4753
4783
|
}
|
|
4754
|
-
const [d, p] = [t[g], t[g + 1]], [_, v] = [
|
|
4784
|
+
const [d, p] = [t[g], t[g + 1]], [_, v] = [ue(d), ue(p)], E = d.value.replace(/\n$/, "").split(`
|
|
4755
4785
|
`);
|
|
4756
4786
|
if (p === void 0) {
|
|
4757
|
-
for (const
|
|
4758
|
-
_ ===
|
|
4759
|
-
const
|
|
4787
|
+
for (const y of E) {
|
|
4788
|
+
_ === T.EQUAL && (r++, i++), _ === T.DELETE && r++, _ === T.ADD && i++;
|
|
4789
|
+
const D = Q(a, y);
|
|
4760
4790
|
o.push({
|
|
4761
4791
|
type: _,
|
|
4762
|
-
code:
|
|
4763
|
-
addNum: _ ===
|
|
4764
|
-
delNum: _ ===
|
|
4792
|
+
code: D,
|
|
4793
|
+
addNum: _ === T.DELETE ? void 0 : i,
|
|
4794
|
+
delNum: _ === T.ADD ? void 0 : r
|
|
4765
4795
|
});
|
|
4766
4796
|
}
|
|
4767
4797
|
break;
|
|
4768
4798
|
}
|
|
4769
|
-
if (_ ===
|
|
4770
|
-
for (const
|
|
4799
|
+
if (_ === T.EQUAL)
|
|
4800
|
+
for (const y of E) {
|
|
4771
4801
|
r++, i++;
|
|
4772
|
-
const
|
|
4773
|
-
o.push({ type:
|
|
4802
|
+
const D = Q(a, y);
|
|
4803
|
+
o.push({ type: T.EQUAL, code: D, delNum: r, addNum: i });
|
|
4774
4804
|
}
|
|
4775
4805
|
const w = p.value.replace(/\n$/, "").split(`
|
|
4776
4806
|
`);
|
|
4777
|
-
if (_ ===
|
|
4778
|
-
if (v ===
|
|
4779
|
-
for (let
|
|
4780
|
-
const
|
|
4807
|
+
if (_ === T.DELETE)
|
|
4808
|
+
if (v === T.ADD && E.length === w.length) {
|
|
4809
|
+
for (let y = 0; y < E.length; y++) {
|
|
4810
|
+
const D = E[y], S = w[y];
|
|
4781
4811
|
r++;
|
|
4782
|
-
const
|
|
4783
|
-
o.push({ type:
|
|
4812
|
+
const A = Q(a, De(S, D, u));
|
|
4813
|
+
o.push({ type: T.DELETE, code: A, delNum: r });
|
|
4784
4814
|
}
|
|
4785
|
-
for (let
|
|
4786
|
-
const
|
|
4815
|
+
for (let y = 0; y < w.length; y++) {
|
|
4816
|
+
const D = E[y], S = w[y];
|
|
4787
4817
|
i++;
|
|
4788
|
-
const
|
|
4789
|
-
o.push({ type:
|
|
4818
|
+
const A = Q(a, De(D, S, u));
|
|
4819
|
+
o.push({ type: T.ADD, code: A, addNum: i });
|
|
4790
4820
|
}
|
|
4791
4821
|
s = !0;
|
|
4792
4822
|
} else
|
|
4793
|
-
for (const
|
|
4823
|
+
for (const y of E) {
|
|
4794
4824
|
r++;
|
|
4795
|
-
const
|
|
4796
|
-
o.push({ type:
|
|
4825
|
+
const D = Q(a, y);
|
|
4826
|
+
o.push({ type: T.DELETE, code: D, delNum: r });
|
|
4797
4827
|
}
|
|
4798
|
-
if (_ ===
|
|
4799
|
-
for (const
|
|
4828
|
+
if (_ === T.ADD)
|
|
4829
|
+
for (const y of E) {
|
|
4800
4830
|
i++;
|
|
4801
|
-
const
|
|
4802
|
-
o.push({ type:
|
|
4831
|
+
const D = Q(a, y);
|
|
4832
|
+
o.push({ type: T.ADD, code: D, addNum: i });
|
|
4803
4833
|
}
|
|
4804
4834
|
}
|
|
4805
4835
|
for (let g = 0; g < o.length; g++) {
|
|
4806
4836
|
const d = o[g];
|
|
4807
|
-
if (d.type ===
|
|
4837
|
+
if (d.type === T.DELETE || d.type === T.ADD) {
|
|
4808
4838
|
const [p, _] = [Math.max(g - h, 0), Math.min(g + h + 1, o.length)];
|
|
4809
4839
|
for (let v = p; v < _; v++)
|
|
4810
4840
|
o[v].fold = !1;
|
|
@@ -4834,26 +4864,26 @@ function lr(e, n, a = "plaintext", u = "word", h = 10) {
|
|
|
4834
4864
|
fold: !0
|
|
4835
4865
|
}), f = []), l.changes = c, l;
|
|
4836
4866
|
}
|
|
4837
|
-
const
|
|
4838
|
-
|
|
4867
|
+
const Ge = {};
|
|
4868
|
+
Ge.props = {
|
|
4839
4869
|
line: {
|
|
4840
4870
|
key: "line",
|
|
4841
4871
|
required: !0,
|
|
4842
4872
|
type: null
|
|
4843
4873
|
}
|
|
4844
4874
|
};
|
|
4845
|
-
|
|
4875
|
+
Ge.setup = (e, n) => {
|
|
4846
4876
|
const a = n.emit;
|
|
4847
4877
|
function u(h) {
|
|
4848
|
-
return h ===
|
|
4878
|
+
return h === T.DELETE ? "-" : h === T.ADD ? "+" : "";
|
|
4849
4879
|
}
|
|
4850
4880
|
return {
|
|
4851
|
-
DiffType:
|
|
4881
|
+
DiffType: T,
|
|
4852
4882
|
emit: a,
|
|
4853
4883
|
getCodeMarker: u
|
|
4854
4884
|
};
|
|
4855
4885
|
};
|
|
4856
|
-
var
|
|
4886
|
+
var ur = function() {
|
|
4857
4887
|
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
4858
4888
|
return e.line.hideIndex !== void 0 && e.line.hide ? a("tr", [a("td", {
|
|
4859
4889
|
staticClass: "blob-num blob-num-hunk text-center",
|
|
@@ -4903,8 +4933,8 @@ var cr = function() {
|
|
|
4903
4933
|
innerHTML: e._s(e.line.code)
|
|
4904
4934
|
}
|
|
4905
4935
|
})])]);
|
|
4906
|
-
},
|
|
4907
|
-
function
|
|
4936
|
+
}, fr = [];
|
|
4937
|
+
function ve(e, n, a, u, h, t, r, i) {
|
|
4908
4938
|
var s = typeof e == "function" ? e.options : e;
|
|
4909
4939
|
n && (s.render = n, s.staticRenderFns = a, s._compiled = !0), u && (s.functional = !0), t && (s._scopeId = "data-v-" + t);
|
|
4910
4940
|
var o;
|
|
@@ -4934,31 +4964,31 @@ function be(e, n, a, u, h, t, r, i) {
|
|
|
4934
4964
|
};
|
|
4935
4965
|
}
|
|
4936
4966
|
const ln = {};
|
|
4937
|
-
var
|
|
4938
|
-
|
|
4939
|
-
cr,
|
|
4967
|
+
var gr = /* @__PURE__ */ ve(
|
|
4968
|
+
Ge,
|
|
4940
4969
|
ur,
|
|
4970
|
+
fr,
|
|
4941
4971
|
!1,
|
|
4942
|
-
|
|
4972
|
+
hr,
|
|
4943
4973
|
null,
|
|
4944
4974
|
null,
|
|
4945
4975
|
null
|
|
4946
4976
|
);
|
|
4947
|
-
function
|
|
4977
|
+
function hr(e) {
|
|
4948
4978
|
for (let n in ln)
|
|
4949
4979
|
this[n] = ln[n];
|
|
4950
4980
|
}
|
|
4951
|
-
const
|
|
4952
|
-
return
|
|
4953
|
-
}(),
|
|
4954
|
-
|
|
4981
|
+
const dr = /* @__PURE__ */ function() {
|
|
4982
|
+
return gr.exports;
|
|
4983
|
+
}(), pe = {};
|
|
4984
|
+
pe.props = {
|
|
4955
4985
|
diffChange: {
|
|
4956
4986
|
key: "diffChange",
|
|
4957
4987
|
required: !0,
|
|
4958
4988
|
type: null
|
|
4959
4989
|
}
|
|
4960
4990
|
};
|
|
4961
|
-
|
|
4991
|
+
pe.setup = (e, n) => {
|
|
4962
4992
|
const a = e;
|
|
4963
4993
|
function u({
|
|
4964
4994
|
hideIndex: h
|
|
@@ -4971,10 +5001,10 @@ de.setup = (e, n) => {
|
|
|
4971
5001
|
expandHandler: u
|
|
4972
5002
|
};
|
|
4973
5003
|
};
|
|
4974
|
-
|
|
4975
|
-
UnifiedLine:
|
|
4976
|
-
},
|
|
4977
|
-
var
|
|
5004
|
+
pe.components = Object.assign({
|
|
5005
|
+
UnifiedLine: dr
|
|
5006
|
+
}, pe.components);
|
|
5007
|
+
var pr = function() {
|
|
4978
5008
|
var e, n = this, a = n.$createElement, u = n._self._c || a;
|
|
4979
5009
|
return u("table", {
|
|
4980
5010
|
staticClass: "diff-table"
|
|
@@ -4989,36 +5019,36 @@ var dr = function() {
|
|
|
4989
5019
|
}
|
|
4990
5020
|
});
|
|
4991
5021
|
}), 1)]);
|
|
4992
|
-
},
|
|
5022
|
+
}, _r = [];
|
|
4993
5023
|
const cn = {};
|
|
4994
|
-
var
|
|
4995
|
-
|
|
4996
|
-
dr,
|
|
5024
|
+
var br = /* @__PURE__ */ ve(
|
|
5025
|
+
pe,
|
|
4997
5026
|
pr,
|
|
5027
|
+
_r,
|
|
4998
5028
|
!1,
|
|
4999
|
-
|
|
5029
|
+
vr,
|
|
5000
5030
|
null,
|
|
5001
5031
|
null,
|
|
5002
5032
|
null
|
|
5003
5033
|
);
|
|
5004
|
-
function
|
|
5034
|
+
function vr(e) {
|
|
5005
5035
|
for (let n in cn)
|
|
5006
5036
|
this[n] = cn[n];
|
|
5007
5037
|
}
|
|
5008
|
-
const
|
|
5009
|
-
return
|
|
5010
|
-
}(),
|
|
5011
|
-
|
|
5038
|
+
const Er = /* @__PURE__ */ function() {
|
|
5039
|
+
return br.exports;
|
|
5040
|
+
}(), Ke = {};
|
|
5041
|
+
Ke.props = {
|
|
5012
5042
|
splitLine: {
|
|
5013
5043
|
key: "splitLine",
|
|
5014
5044
|
required: !0,
|
|
5015
5045
|
type: null
|
|
5016
5046
|
}
|
|
5017
5047
|
};
|
|
5018
|
-
|
|
5048
|
+
Ke.setup = (e, n) => {
|
|
5019
5049
|
const a = n.emit;
|
|
5020
5050
|
function u(t) {
|
|
5021
|
-
return t ===
|
|
5051
|
+
return t === T.DELETE ? "-" : t === T.ADD ? "+" : "";
|
|
5022
5052
|
}
|
|
5023
5053
|
function h(t) {
|
|
5024
5054
|
window.getSelection().removeAllRanges();
|
|
@@ -5029,13 +5059,13 @@ We.setup = (e, n) => {
|
|
|
5029
5059
|
s.classList.toggle("no-select", t === "right");
|
|
5030
5060
|
}
|
|
5031
5061
|
return {
|
|
5032
|
-
DiffType:
|
|
5062
|
+
DiffType: T,
|
|
5033
5063
|
emit: a,
|
|
5034
5064
|
getCodeMarker: u,
|
|
5035
5065
|
onSplitLineMousedown: h
|
|
5036
5066
|
};
|
|
5037
5067
|
};
|
|
5038
|
-
var
|
|
5068
|
+
var mr = function() {
|
|
5039
5069
|
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
5040
5070
|
return e.splitLine.hideIndex !== void 0 && e.splitLine.hide ? a("tr", [a("td", {
|
|
5041
5071
|
staticClass: "blob-num blob-num-hunk",
|
|
@@ -5091,33 +5121,33 @@ var Er = function() {
|
|
|
5091
5121
|
}
|
|
5092
5122
|
})])]];
|
|
5093
5123
|
})], 2);
|
|
5094
|
-
},
|
|
5124
|
+
}, yr = [];
|
|
5095
5125
|
const un = {};
|
|
5096
|
-
var
|
|
5097
|
-
|
|
5098
|
-
Er,
|
|
5126
|
+
var wr = /* @__PURE__ */ ve(
|
|
5127
|
+
Ke,
|
|
5099
5128
|
mr,
|
|
5129
|
+
yr,
|
|
5100
5130
|
!1,
|
|
5101
|
-
|
|
5131
|
+
Nr,
|
|
5102
5132
|
null,
|
|
5103
5133
|
null,
|
|
5104
5134
|
null
|
|
5105
5135
|
);
|
|
5106
|
-
function
|
|
5136
|
+
function Nr(e) {
|
|
5107
5137
|
for (let n in un)
|
|
5108
5138
|
this[n] = un[n];
|
|
5109
5139
|
}
|
|
5110
|
-
const
|
|
5111
|
-
return
|
|
5112
|
-
}(),
|
|
5113
|
-
|
|
5140
|
+
const Mr = /* @__PURE__ */ function() {
|
|
5141
|
+
return wr.exports;
|
|
5142
|
+
}(), _e = {};
|
|
5143
|
+
_e.props = {
|
|
5114
5144
|
diffChange: {
|
|
5115
5145
|
key: "diffChange",
|
|
5116
5146
|
required: !0,
|
|
5117
5147
|
type: null
|
|
5118
5148
|
}
|
|
5119
5149
|
};
|
|
5120
|
-
|
|
5150
|
+
_e.setup = (e, n) => {
|
|
5121
5151
|
const a = e;
|
|
5122
5152
|
function u({
|
|
5123
5153
|
hideIndex: h
|
|
@@ -5130,10 +5160,10 @@ pe.setup = (e, n) => {
|
|
|
5130
5160
|
expandHandler: u
|
|
5131
5161
|
};
|
|
5132
5162
|
};
|
|
5133
|
-
|
|
5134
|
-
SplitLine:
|
|
5135
|
-
},
|
|
5136
|
-
var
|
|
5163
|
+
_e.components = Object.assign({
|
|
5164
|
+
SplitLine: Mr
|
|
5165
|
+
}, _e.components);
|
|
5166
|
+
var Ar = function() {
|
|
5137
5167
|
var e, n = this, a = n.$createElement, u = n._self._c || a;
|
|
5138
5168
|
return u("table", {
|
|
5139
5169
|
staticClass: "file-diff-split diff-table"
|
|
@@ -5148,7 +5178,7 @@ var Mr = function() {
|
|
|
5148
5178
|
}
|
|
5149
5179
|
});
|
|
5150
5180
|
}), 1)]);
|
|
5151
|
-
},
|
|
5181
|
+
}, Sr = [function() {
|
|
5152
5182
|
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
5153
5183
|
return a("colgroup", [a("col", {
|
|
5154
5184
|
attrs: {
|
|
@@ -5161,25 +5191,25 @@ var Mr = function() {
|
|
|
5161
5191
|
}), a("col")]);
|
|
5162
5192
|
}];
|
|
5163
5193
|
const fn = {};
|
|
5164
|
-
var Tr = /* @__PURE__ */
|
|
5165
|
-
|
|
5166
|
-
Mr,
|
|
5194
|
+
var Tr = /* @__PURE__ */ ve(
|
|
5195
|
+
_e,
|
|
5167
5196
|
Ar,
|
|
5168
|
-
!1,
|
|
5169
5197
|
Sr,
|
|
5198
|
+
!1,
|
|
5199
|
+
Dr,
|
|
5170
5200
|
null,
|
|
5171
5201
|
null,
|
|
5172
5202
|
null
|
|
5173
5203
|
);
|
|
5174
|
-
function
|
|
5204
|
+
function Dr(e) {
|
|
5175
5205
|
for (let n in fn)
|
|
5176
5206
|
this[n] = fn[n];
|
|
5177
5207
|
}
|
|
5178
|
-
const
|
|
5208
|
+
const Rr = /* @__PURE__ */ function() {
|
|
5179
5209
|
return Tr.exports;
|
|
5180
5210
|
}();
|
|
5181
|
-
const
|
|
5182
|
-
|
|
5211
|
+
const be = {};
|
|
5212
|
+
be.props = {
|
|
5183
5213
|
newString: {
|
|
5184
5214
|
key: "newString",
|
|
5185
5215
|
required: !0,
|
|
@@ -5238,6 +5268,12 @@ _e.props = {
|
|
|
5238
5268
|
type: String,
|
|
5239
5269
|
default: void 0
|
|
5240
5270
|
},
|
|
5271
|
+
newFilename: {
|
|
5272
|
+
key: "newFilename",
|
|
5273
|
+
required: !1,
|
|
5274
|
+
type: String,
|
|
5275
|
+
default: void 0
|
|
5276
|
+
},
|
|
5241
5277
|
hideHeader: {
|
|
5242
5278
|
key: "hideHeader",
|
|
5243
5279
|
required: !1,
|
|
@@ -5249,19 +5285,25 @@ _e.props = {
|
|
|
5249
5285
|
required: !1,
|
|
5250
5286
|
type: Boolean,
|
|
5251
5287
|
default: !1
|
|
5288
|
+
},
|
|
5289
|
+
theme: {
|
|
5290
|
+
key: "theme",
|
|
5291
|
+
required: !1,
|
|
5292
|
+
type: String,
|
|
5293
|
+
default: "light"
|
|
5252
5294
|
}
|
|
5253
5295
|
};
|
|
5254
|
-
|
|
5255
|
-
const a = e, u = n.emit, h =
|
|
5296
|
+
be.setup = (e, n) => {
|
|
5297
|
+
const a = e, u = n.emit, h = fe(() => a.outputFormat === "line-by-line"), t = fe(() => {
|
|
5256
5298
|
let l = a.oldString || "";
|
|
5257
5299
|
return l = a.trim ? l.trim() : l, l = a.noDiffLineFeed ? l.replace(/(\r\n)/g, `
|
|
5258
5300
|
`) : l, l;
|
|
5259
|
-
}), r =
|
|
5301
|
+
}), r = fe(() => {
|
|
5260
5302
|
let l = a.newString || "";
|
|
5261
5303
|
return l = a.trim ? l.trim() : l, l = a.noDiffLineFeed ? l.replace(/(\r\n)/g, `
|
|
5262
5304
|
`) : l, l;
|
|
5263
|
-
}), i =
|
|
5264
|
-
return
|
|
5305
|
+
}), i = fe(() => h.value ? cr(t.value, r.value, a.language, a.diffStyle, a.context) : lr(t.value, r.value, a.language, a.diffStyle, a.context)), s = Fn(i.value), o = fe(() => s.value.stat.additionsNum === 0 && s.value.stat.deletionsNum === 0);
|
|
5306
|
+
return zn(() => a, () => {
|
|
5265
5307
|
s.value = i.value, u("diff", {
|
|
5266
5308
|
stat: {
|
|
5267
5309
|
isChanged: !o.value,
|
|
@@ -5277,33 +5319,61 @@ _e.setup = (e, n) => {
|
|
|
5277
5319
|
diffChange: s
|
|
5278
5320
|
};
|
|
5279
5321
|
};
|
|
5280
|
-
|
|
5281
|
-
UnifiedViewer:
|
|
5282
|
-
SplitViewer:
|
|
5283
|
-
},
|
|
5284
|
-
var
|
|
5322
|
+
be.components = Object.assign({
|
|
5323
|
+
UnifiedViewer: Er,
|
|
5324
|
+
SplitViewer: Rr
|
|
5325
|
+
}, be.components);
|
|
5326
|
+
var Cr = function() {
|
|
5285
5327
|
var e = this, n = e.$createElement, a = e._self._c || n;
|
|
5286
5328
|
return a("div", {
|
|
5287
5329
|
staticClass: "code-diff-view",
|
|
5288
5330
|
style: {
|
|
5289
5331
|
maxHeight: e.maxHeight
|
|
5332
|
+
},
|
|
5333
|
+
attrs: {
|
|
5334
|
+
theme: e.theme
|
|
5290
5335
|
}
|
|
5291
5336
|
}, [e.hideHeader ? e._e() : a("div", {
|
|
5292
5337
|
staticClass: "file-header"
|
|
5293
|
-
}, [a("div", {
|
|
5338
|
+
}, [e.isUnifiedViewer ? a("div", {
|
|
5294
5339
|
staticClass: "file-info"
|
|
5295
|
-
}, [a("span", {
|
|
5296
|
-
staticClass: "
|
|
5297
|
-
}, [e._v(e._s(e.filename))]),
|
|
5340
|
+
}, [a("span", [a("div", {
|
|
5341
|
+
staticClass: "info-left"
|
|
5342
|
+
}, [e._v(e._s(e.filename))]), a("div", {
|
|
5343
|
+
staticClass: "info-left"
|
|
5344
|
+
}, [e._v(e._s(e.newFilename))])]), e.hideStat ? e._e() : a("span", {
|
|
5298
5345
|
staticClass: "diff-stat"
|
|
5346
|
+
}, [e._t("stat", function() {
|
|
5347
|
+
return [a("span", {
|
|
5348
|
+
staticClass: "diff-stat-added"
|
|
5349
|
+
}, [e._v("+" + e._s(e.diffChange.stat.additionsNum) + " additions")]), a("span", {
|
|
5350
|
+
staticClass: "diff-stat-deleted",
|
|
5351
|
+
staticStyle: {
|
|
5352
|
+
"margin-left": "8px"
|
|
5353
|
+
}
|
|
5354
|
+
}, [e._v("-" + e._s(e.diffChange.stat.deletionsNum) + " deletions")])];
|
|
5355
|
+
})], 2)]) : a("div", {
|
|
5356
|
+
staticClass: "file-info"
|
|
5357
|
+
}, [a("span", {
|
|
5358
|
+
staticClass: "info-left"
|
|
5359
|
+
}, [e._v(e._s(e.filename))]), a("span", {
|
|
5360
|
+
staticClass: "info-right"
|
|
5299
5361
|
}, [a("span", {
|
|
5300
|
-
staticClass: "diff-stat-added"
|
|
5301
|
-
}, [e._v("+" + e._s(e.diffChange.stat.additionsNum) + " additions")]), a("span", {
|
|
5302
|
-
staticClass: "diff-stat-deleted",
|
|
5303
5362
|
staticStyle: {
|
|
5304
|
-
"margin-left": "
|
|
5363
|
+
"margin-left": "20px"
|
|
5305
5364
|
}
|
|
5306
|
-
}, [e._v(
|
|
5365
|
+
}, [e._v(e._s(e.newFilename))]), e.hideStat ? e._e() : a("span", {
|
|
5366
|
+
staticClass: "diff-stat"
|
|
5367
|
+
}, [e._t("stat", function() {
|
|
5368
|
+
return [a("span", {
|
|
5369
|
+
staticClass: "diff-stat-added"
|
|
5370
|
+
}, [e._v("+" + e._s(e.diffChange.stat.additionsNum) + " additions")]), a("span", {
|
|
5371
|
+
staticClass: "diff-stat-deleted",
|
|
5372
|
+
staticStyle: {
|
|
5373
|
+
"margin-left": "8px"
|
|
5374
|
+
}
|
|
5375
|
+
}, [e._v("-" + e._s(e.diffChange.stat.deletionsNum) + " deletions")])];
|
|
5376
|
+
})], 2)])])]), e.isUnifiedViewer ? a("UnifiedViewer", {
|
|
5307
5377
|
attrs: {
|
|
5308
5378
|
"diff-change": e.diffChange
|
|
5309
5379
|
}
|
|
@@ -5312,33 +5382,33 @@ var Rr = function() {
|
|
|
5312
5382
|
"diff-change": e.diffChange
|
|
5313
5383
|
}
|
|
5314
5384
|
})], 1);
|
|
5315
|
-
},
|
|
5385
|
+
}, Lr = [];
|
|
5316
5386
|
const gn = {};
|
|
5317
|
-
var
|
|
5318
|
-
|
|
5319
|
-
Rr,
|
|
5320
|
-
Or,
|
|
5321
|
-
!1,
|
|
5387
|
+
var Or = /* @__PURE__ */ ve(
|
|
5388
|
+
be,
|
|
5322
5389
|
Cr,
|
|
5390
|
+
Lr,
|
|
5391
|
+
!1,
|
|
5392
|
+
Ir,
|
|
5323
5393
|
null,
|
|
5324
5394
|
null,
|
|
5325
5395
|
null
|
|
5326
5396
|
);
|
|
5327
|
-
function
|
|
5397
|
+
function Ir(e) {
|
|
5328
5398
|
for (let n in gn)
|
|
5329
5399
|
this[n] = gn[n];
|
|
5330
5400
|
}
|
|
5331
|
-
const
|
|
5332
|
-
return
|
|
5401
|
+
const kr = /* @__PURE__ */ function() {
|
|
5402
|
+
return Or.exports;
|
|
5333
5403
|
}();
|
|
5334
|
-
function
|
|
5335
|
-
e.component("CodeDiff",
|
|
5404
|
+
function Br(e) {
|
|
5405
|
+
e.component("CodeDiff", kr);
|
|
5336
5406
|
}
|
|
5337
5407
|
const Ur = {
|
|
5338
|
-
install:
|
|
5339
|
-
hljs:
|
|
5408
|
+
install: Br,
|
|
5409
|
+
hljs: Z
|
|
5340
5410
|
};
|
|
5341
5411
|
export {
|
|
5342
|
-
|
|
5412
|
+
kr as CodeDiff,
|
|
5343
5413
|
Ur as default
|
|
5344
5414
|
};
|