v-code-diff 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -55
- package/dist/v2/index.cjs +3 -1
- package/dist/v2/index.es.js +3 -1
- package/dist/v2/index.umd.js +3 -1
- package/dist/v2.7/index.cjs +3 -1
- package/dist/v2.7/index.es.js +3 -1
- package/dist/v2.7/index.umd.js +3 -1
- package/dist/v3/index.cjs +3 -1
- package/dist/v3/index.es.js +129 -127
- package/dist/v3/index.umd.js +3 -1
- package/package.json +4 -2
- package/src/utils.ts +5 -0
- package/types/index.d.ts +60 -12
package/dist/v3/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #1F2328;--color-diff-blob-addition-fg: #1F2328;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #1f883d;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(31,35,40,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(31,35,40,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(31,35,40,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-scale-black: #1F2328;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#fff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{position:sticky;top:0;z-index:1;background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar{margin-left:auto;margin-right:1rem}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button{background-color:transparent;color:var(--color-fg-subtle);border:none}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button svg{fill:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button:hover{background-color:var(--color-btn-outline-hover-border)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .current-diff{border:1px solid var(--color-border-muted)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .diff-table .load-more{padding:8px;text-align:center}.code-diff-view .diff-table .load-more-button{padding:4px 12px;color:var(--color-accent-fg);background:transparent;border:1px solid var(--color-border-default);border-radius:4px;cursor:pointer}.code-diff-view .diff-table .load-more-button:hover{background-color:var(--color-accent-muted)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}.code-diff-view[data-v-0c5adc58] td:nth-child(1){display:none}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as ve, openBlock as z, createElementBlock as K, createElementVNode as I, unref as $, normalizeClass as ye, toDisplayString as V, createCommentVNode as ge, ref as ke, shallowRef as Ze, computed as ne, watch as Ye, Fragment as me, renderList as Xe, createBlock as we, normalizeStyle as Jn, createVNode as Le, renderSlot as cn } from "vue";
|
|
3
3
|
function oe() {
|
|
4
4
|
}
|
|
5
5
|
oe.prototype = {
|
|
@@ -25,7 +25,7 @@ oe.prototype = {
|
|
|
25
25
|
count: c.length
|
|
26
26
|
}]);
|
|
27
27
|
var _ = -1 / 0, b = 1 / 0;
|
|
28
|
-
function
|
|
28
|
+
function E() {
|
|
29
29
|
for (var y = Math.max(_, -a); y <= Math.min(b, a); y += 2) {
|
|
30
30
|
var S = void 0, T = p[y - 1], D = p[y + 1];
|
|
31
31
|
T && (p[y - 1] = void 0);
|
|
@@ -50,14 +50,14 @@ oe.prototype = {
|
|
|
50
50
|
setTimeout(function() {
|
|
51
51
|
if (a > o || Date.now() > h)
|
|
52
52
|
return n();
|
|
53
|
-
|
|
53
|
+
E() || y();
|
|
54
54
|
}, 0);
|
|
55
55
|
})();
|
|
56
56
|
else
|
|
57
57
|
for (; a <= o && Date.now() <= h; ) {
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
return
|
|
58
|
+
var v = E();
|
|
59
|
+
if (v)
|
|
60
|
+
return v;
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
addToPath: function(t, c, f, g) {
|
|
@@ -279,9 +279,9 @@ var Mn = { exports: {} };
|
|
|
279
279
|
];
|
|
280
280
|
var h = this.diff_halfMatch_(n, i);
|
|
281
281
|
if (h) {
|
|
282
|
-
var p = h[0], d = h[1], _ = h[2], b = h[3],
|
|
283
|
-
return
|
|
284
|
-
[new t.Diff(g,
|
|
282
|
+
var p = h[0], d = h[1], _ = h[2], b = h[3], E = h[4], v = this.diff_main(p, _, r, s), y = this.diff_main(d, b, r, s);
|
|
283
|
+
return v.concat(
|
|
284
|
+
[new t.Diff(g, E)],
|
|
285
285
|
y
|
|
286
286
|
);
|
|
287
287
|
}
|
|
@@ -319,16 +319,16 @@ var Mn = { exports: {} };
|
|
|
319
319
|
for (var s = n.length, l = i.length, a = Math.ceil((s + l) / 2), o = a, u = 2 * a, h = new Array(u), p = new Array(u), d = 0; d < u; d++)
|
|
320
320
|
h[d] = -1, p[d] = -1;
|
|
321
321
|
h[o + 1] = 0, p[o + 1] = 0;
|
|
322
|
-
for (var _ = s - l, b = _ % 2 != 0,
|
|
323
|
-
for (var D = -T +
|
|
322
|
+
for (var _ = s - l, b = _ % 2 != 0, E = 0, v = 0, y = 0, S = 0, T = 0; T < a && !((/* @__PURE__ */ new Date()).getTime() > r); T++) {
|
|
323
|
+
for (var D = -T + E; D <= T - v; D += 2) {
|
|
324
324
|
var B = o + D, M;
|
|
325
325
|
D == -T || D != T && h[B - 1] < h[B + 1] ? M = h[B + 1] : M = h[B - 1] + 1;
|
|
326
326
|
for (var R = M - D; M < s && R < l && n.charAt(M) == i.charAt(R); )
|
|
327
327
|
M++, R++;
|
|
328
328
|
if (h[B] = M, M > s)
|
|
329
|
-
E += 2;
|
|
330
|
-
else if (R > l)
|
|
331
329
|
v += 2;
|
|
330
|
+
else if (R > l)
|
|
331
|
+
E += 2;
|
|
332
332
|
else if (b) {
|
|
333
333
|
var U = o + _ - D;
|
|
334
334
|
if (U >= 0 && U < u && p[U] != -1) {
|
|
@@ -371,8 +371,8 @@ var Mn = { exports: {} };
|
|
|
371
371
|
for (var p = "", d = 0, _ = -1, b = r.length; _ < h.length - 1; ) {
|
|
372
372
|
_ = h.indexOf(`
|
|
373
373
|
`, d), _ == -1 && (_ = h.length - 1);
|
|
374
|
-
var
|
|
375
|
-
(s.hasOwnProperty ? s.hasOwnProperty(
|
|
374
|
+
var E = h.substring(d, _ + 1);
|
|
375
|
+
(s.hasOwnProperty ? s.hasOwnProperty(E) : s[E] !== void 0) ? p += String.fromCharCode(s[E]) : (b == a && (E = h.substring(d), _ = h.length), p += String.fromCharCode(b), s[E] = b, r[b++] = E), d = _ + 1;
|
|
376
376
|
}
|
|
377
377
|
return p;
|
|
378
378
|
}
|
|
@@ -419,18 +419,18 @@ var Mn = { exports: {} };
|
|
|
419
419
|
if (r.length < 4 || s.length * 2 < r.length)
|
|
420
420
|
return null;
|
|
421
421
|
var l = this;
|
|
422
|
-
function a(
|
|
423
|
-
for (var T =
|
|
422
|
+
function a(v, y, S) {
|
|
423
|
+
for (var T = v.substring(S, S + Math.floor(v.length / 4)), D = -1, B = "", M, R, U, H; (D = y.indexOf(T, D + 1)) != -1; ) {
|
|
424
424
|
var W = l.diff_commonPrefix(
|
|
425
|
-
|
|
425
|
+
v.substring(S),
|
|
426
426
|
y.substring(D)
|
|
427
427
|
), Y = l.diff_commonSuffix(
|
|
428
|
-
|
|
428
|
+
v.substring(0, S),
|
|
429
429
|
y.substring(0, D)
|
|
430
430
|
);
|
|
431
|
-
B.length < Y + W && (B = y.substring(D - Y, D) + y.substring(D, D + W), M =
|
|
431
|
+
B.length < Y + W && (B = y.substring(D - Y, D) + y.substring(D, D + W), M = v.substring(0, S - Y), R = v.substring(S + W), U = y.substring(0, D - Y), H = y.substring(D + W));
|
|
432
432
|
}
|
|
433
|
-
return B.length * 2 >=
|
|
433
|
+
return B.length * 2 >= v.length ? [
|
|
434
434
|
M,
|
|
435
435
|
R,
|
|
436
436
|
U,
|
|
@@ -452,8 +452,8 @@ var Mn = { exports: {} };
|
|
|
452
452
|
u ? o ? h = o[4].length > u[4].length ? o : u : h = u : h = o;
|
|
453
453
|
var p, d, _, b;
|
|
454
454
|
n.length > i.length ? (p = h[0], d = h[1], _ = h[2], b = h[3]) : (_ = h[0], b = h[1], p = h[2], d = h[3]);
|
|
455
|
-
var
|
|
456
|
-
return [p, d, _, b,
|
|
455
|
+
var E = h[4];
|
|
456
|
+
return [p, d, _, b, E];
|
|
457
457
|
}, t.prototype.diff_cleanupSemantic = function(n) {
|
|
458
458
|
for (var i = !1, r = [], s = 0, l = null, a = 0, o = 0, u = 0, h = 0, p = 0; a < n.length; )
|
|
459
459
|
n[a][0] == g ? (r[s++] = a, o = h, u = p, h = 0, p = 0, l = n[a][1]) : (n[a][0] == f ? h += n[a][1].length : p += n[a][1].length, l && l.length <= Math.max(o, u) && l.length <= Math.max(
|
|
@@ -466,22 +466,22 @@ var Mn = { exports: {} };
|
|
|
466
466
|
), n[r[s - 1] + 1][0] = f, s--, s--, a = s > 0 ? r[s - 1] : -1, o = 0, u = 0, h = 0, p = 0, l = null, i = !0)), a++;
|
|
467
467
|
for (i && this.diff_cleanupMerge(n), this.diff_cleanupSemanticLossless(n), a = 1; a < n.length; ) {
|
|
468
468
|
if (n[a - 1][0] == c && n[a][0] == f) {
|
|
469
|
-
var d = n[a - 1][1], _ = n[a][1], b = this.diff_commonOverlap_(d, _),
|
|
470
|
-
b >=
|
|
469
|
+
var d = n[a - 1][1], _ = n[a][1], b = this.diff_commonOverlap_(d, _), E = this.diff_commonOverlap_(_, d);
|
|
470
|
+
b >= E ? (b >= d.length / 2 || b >= _.length / 2) && (n.splice(a, 0, new t.Diff(
|
|
471
471
|
g,
|
|
472
472
|
_.substring(0, b)
|
|
473
|
-
)), n[a - 1][1] = d.substring(0, d.length - b), n[a + 1][1] = _.substring(b), a++) : (
|
|
473
|
+
)), n[a - 1][1] = d.substring(0, d.length - b), n[a + 1][1] = _.substring(b), a++) : (E >= d.length / 2 || E >= _.length / 2) && (n.splice(a, 0, new t.Diff(
|
|
474
474
|
g,
|
|
475
|
-
d.substring(0,
|
|
476
|
-
)), n[a - 1][0] = f, n[a - 1][1] = _.substring(0, _.length -
|
|
475
|
+
d.substring(0, E)
|
|
476
|
+
)), n[a - 1][0] = f, n[a - 1][1] = _.substring(0, _.length - E), n[a + 1][0] = c, n[a + 1][1] = d.substring(E), a++), a++;
|
|
477
477
|
}
|
|
478
478
|
a++;
|
|
479
479
|
}
|
|
480
480
|
}, t.prototype.diff_cleanupSemanticLossless = function(n) {
|
|
481
|
-
function i(
|
|
482
|
-
if (!
|
|
481
|
+
function i(E, v) {
|
|
482
|
+
if (!E || !v)
|
|
483
483
|
return 6;
|
|
484
|
-
var y =
|
|
484
|
+
var y = E.charAt(E.length - 1), S = v.charAt(0), T = y.match(t.nonAlphaNumericRegex_), D = S.match(t.nonAlphaNumericRegex_), B = T && y.match(t.whitespaceRegex_), M = D && S.match(t.whitespaceRegex_), R = B && y.match(t.linebreakRegex_), U = M && S.match(t.linebreakRegex_), H = R && E.match(t.blanklineEndRegex_), W = U && v.match(t.blanklineStartRegex_);
|
|
485
485
|
return H || W ? 5 : R || U ? 4 : T && !B && M ? 3 : B || M ? 2 : T || D ? 1 : 0;
|
|
486
486
|
}
|
|
487
487
|
for (var r = 1; r < n.length - 1; ) {
|
|
@@ -640,24 +640,24 @@ var Mn = { exports: {} };
|
|
|
640
640
|
u != -1 && (o = Math.min(a(0, u), o), u = n.lastIndexOf(i, r + i.length), u != -1 && (o = Math.min(a(0, u), o)));
|
|
641
641
|
var h = 1 << i.length - 1;
|
|
642
642
|
u = -1;
|
|
643
|
-
for (var p, d, _ = i.length + n.length, b,
|
|
643
|
+
for (var p, d, _ = i.length + n.length, b, E = 0; E < i.length; E++) {
|
|
644
644
|
for (p = 0, d = _; p < d; )
|
|
645
|
-
a(
|
|
645
|
+
a(E, r + d) <= o ? p = d : _ = d, d = Math.floor((_ - p) / 2 + p);
|
|
646
646
|
_ = d;
|
|
647
|
-
var
|
|
648
|
-
S[y + 1] = (1 <<
|
|
649
|
-
for (var T = y; T >=
|
|
647
|
+
var v = Math.max(1, r - d + 1), y = Math.min(r + d, n.length) + i.length, S = Array(y + 2);
|
|
648
|
+
S[y + 1] = (1 << E) - 1;
|
|
649
|
+
for (var T = y; T >= v; T--) {
|
|
650
650
|
var D = s[n.charAt(T - 1)];
|
|
651
|
-
if (
|
|
652
|
-
var B = a(
|
|
651
|
+
if (E === 0 ? S[T] = (S[T + 1] << 1 | 1) & D : S[T] = (S[T + 1] << 1 | 1) & D | ((b[T + 1] | b[T]) << 1 | 1) | b[T + 1], S[T] & h) {
|
|
652
|
+
var B = a(E, T - 1);
|
|
653
653
|
if (B <= o)
|
|
654
654
|
if (o = B, u = T - 1, u > r)
|
|
655
|
-
|
|
655
|
+
v = Math.max(1, 2 * r - u);
|
|
656
656
|
else
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
if (a(
|
|
660
|
+
if (a(E + 1, r) > o)
|
|
661
661
|
break;
|
|
662
662
|
b = S;
|
|
663
663
|
}
|
|
@@ -712,19 +712,19 @@ var Mn = { exports: {} };
|
|
|
712
712
|
if (l.length === 0)
|
|
713
713
|
return [];
|
|
714
714
|
for (var a = [], o = new t.patch_obj(), u = 0, h = 0, p = 0, d = s, _ = s, b = 0; b < l.length; b++) {
|
|
715
|
-
var
|
|
716
|
-
switch (!u &&
|
|
715
|
+
var E = l[b][0], v = l[b][1];
|
|
716
|
+
switch (!u && E !== g && (o.start1 = h, o.start2 = p), E) {
|
|
717
717
|
case f:
|
|
718
|
-
o.diffs[u++] = l[b], o.length2 +=
|
|
718
|
+
o.diffs[u++] = l[b], o.length2 += v.length, _ = _.substring(0, p) + v + _.substring(p);
|
|
719
719
|
break;
|
|
720
720
|
case c:
|
|
721
|
-
o.length1 +=
|
|
721
|
+
o.length1 += v.length, o.diffs[u++] = l[b], _ = _.substring(0, p) + _.substring(p + v.length);
|
|
722
722
|
break;
|
|
723
723
|
case g:
|
|
724
|
-
|
|
724
|
+
v.length <= 2 * this.Patch_Margin && u && l.length != b + 1 ? (o.diffs[u++] = l[b], o.length1 += v.length, o.length2 += v.length) : v.length >= 2 * this.Patch_Margin && u && (this.patch_addContext_(o, d), a.push(o), o = new t.patch_obj(), u = 0, d = _, h = p);
|
|
725
725
|
break;
|
|
726
726
|
}
|
|
727
|
-
|
|
727
|
+
E !== f && (h += v.length), E !== c && (p += v.length);
|
|
728
728
|
}
|
|
729
729
|
return u && (this.patch_addContext_(o, d), a.push(o)), a;
|
|
730
730
|
}, t.prototype.patch_deepCopy = function(n) {
|
|
@@ -765,9 +765,9 @@ var Mn = { exports: {} };
|
|
|
765
765
|
l[a] = !1;
|
|
766
766
|
else {
|
|
767
767
|
this.diff_cleanupSemanticLossless(_);
|
|
768
|
-
for (var b = 0,
|
|
769
|
-
var y = n[a].diffs[
|
|
770
|
-
y[0] !== g && (
|
|
768
|
+
for (var b = 0, E, v = 0; v < n[a].diffs.length; v++) {
|
|
769
|
+
var y = n[a].diffs[v];
|
|
770
|
+
y[0] !== g && (E = this.diff_xIndex(_, b)), y[0] === f ? i = i.substring(0, h + E) + y[1] + i.substring(h + E) : y[0] === c && (i = i.substring(0, h + E) + i.substring(h + this.diff_xIndex(
|
|
771
771
|
_,
|
|
772
772
|
b + y[1].length
|
|
773
773
|
))), y[0] !== c && (b += y[1].length);
|
|
@@ -1111,7 +1111,7 @@ function en(e, { joinWith: t }) {
|
|
|
1111
1111
|
return i;
|
|
1112
1112
|
}).map((f) => `(${f})`).join(t);
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const Et = /\b\B/, Rn = "[a-zA-Z]\\w*", nn = "[a-zA-Z_]\\w*", Cn = "\\b\\d+(\\.\\d+)?", On = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", In = "\\b(0b[01]+)", vt = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", yt = (e = {}) => {
|
|
1115
1115
|
const t = /^#![ ]*\//;
|
|
1116
1116
|
return e.binary && (e.begin = de(
|
|
1117
1117
|
t,
|
|
@@ -1277,14 +1277,14 @@ var Re = /* @__PURE__ */ Object.freeze({
|
|
|
1277
1277
|
END_SAME_AS_BEGIN: Bt,
|
|
1278
1278
|
HASH_COMMENT_MODE: St,
|
|
1279
1279
|
IDENT_RE: Rn,
|
|
1280
|
-
MATCH_NOTHING_RE:
|
|
1280
|
+
MATCH_NOTHING_RE: Et,
|
|
1281
1281
|
METHOD_GUARD: kt,
|
|
1282
1282
|
NUMBER_MODE: Dt,
|
|
1283
1283
|
NUMBER_RE: Cn,
|
|
1284
1284
|
PHRASAL_WORDS_MODE: Nt,
|
|
1285
1285
|
QUOTE_STRING_MODE: At,
|
|
1286
1286
|
REGEXP_MODE: Ct,
|
|
1287
|
-
RE_STARTERS_RE:
|
|
1287
|
+
RE_STARTERS_RE: vt,
|
|
1288
1288
|
SHEBANG: yt,
|
|
1289
1289
|
TITLE_MODE: Ot,
|
|
1290
1290
|
UNDERSCORE_IDENT_RE: nn,
|
|
@@ -1821,19 +1821,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = m, P = N), C ===
|
|
|
1821
1821
|
const b = () => {
|
|
1822
1822
|
y(), _e("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
1823
1823
|
};
|
|
1824
|
-
function
|
|
1824
|
+
function E() {
|
|
1825
1825
|
y(), _e("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
1826
1826
|
}
|
|
1827
|
-
let
|
|
1827
|
+
let v = !1;
|
|
1828
1828
|
function y() {
|
|
1829
1829
|
if (document.readyState === "loading") {
|
|
1830
|
-
|
|
1830
|
+
v = !0;
|
|
1831
1831
|
return;
|
|
1832
1832
|
}
|
|
1833
1833
|
document.querySelectorAll(r.cssSelector).forEach(d);
|
|
1834
1834
|
}
|
|
1835
1835
|
function S() {
|
|
1836
|
-
|
|
1836
|
+
v && y();
|
|
1837
1837
|
}
|
|
1838
1838
|
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", S, !1);
|
|
1839
1839
|
function T(m, N) {
|
|
@@ -1905,7 +1905,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = m, P = N), C ===
|
|
|
1905
1905
|
highlightBlock: pe,
|
|
1906
1906
|
configure: _,
|
|
1907
1907
|
initHighlighting: b,
|
|
1908
|
-
initHighlightingOnLoad:
|
|
1908
|
+
initHighlightingOnLoad: E,
|
|
1909
1909
|
registerLanguage: T,
|
|
1910
1910
|
unregisterLanguage: D,
|
|
1911
1911
|
listLanguages: B,
|
|
@@ -1929,11 +1929,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), G = m, P = N), C ===
|
|
|
1929
1929
|
for (const m in Re)
|
|
1930
1930
|
typeof Re[m] == "object" && Tn(Re[m]);
|
|
1931
1931
|
return Object.assign(e, Re), e;
|
|
1932
|
-
},
|
|
1933
|
-
|
|
1934
|
-
var ti =
|
|
1935
|
-
|
|
1936
|
-
|
|
1932
|
+
}, Ee = Un({});
|
|
1933
|
+
Ee.newInstance = () => Un({});
|
|
1934
|
+
var ti = Ee;
|
|
1935
|
+
Ee.HighlightJS = Ee;
|
|
1936
|
+
Ee.default = Ee;
|
|
1937
1937
|
const J = /* @__PURE__ */ ct(ti);
|
|
1938
1938
|
function ii(e) {
|
|
1939
1939
|
const t = e.regex, c = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), f = /[\p{L}0-9._:-]+/u, g = {
|
|
@@ -2151,7 +2151,7 @@ function ii(e) {
|
|
|
2151
2151
|
]
|
|
2152
2152
|
};
|
|
2153
2153
|
}
|
|
2154
|
-
const
|
|
2154
|
+
const En = "[A-Za-z$_][0-9A-Za-z$_]*", ri = [
|
|
2155
2155
|
"as",
|
|
2156
2156
|
// for exports
|
|
2157
2157
|
"in",
|
|
@@ -2299,7 +2299,7 @@ function li(e) {
|
|
|
2299
2299
|
const t = e.regex, c = (N, { after: C }) => {
|
|
2300
2300
|
const P = "</" + N[0].slice(1);
|
|
2301
2301
|
return N.input.indexOf(P, C) !== -1;
|
|
2302
|
-
}, f =
|
|
2302
|
+
}, f = En, g = {
|
|
2303
2303
|
begin: "<>",
|
|
2304
2304
|
end: "</>"
|
|
2305
2305
|
}, n = /<[A-Za-z0-9\\._:-]+\s*\/>/, i = {
|
|
@@ -2335,7 +2335,7 @@ function li(e) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
2337
|
}, r = {
|
|
2338
|
-
$pattern:
|
|
2338
|
+
$pattern: En,
|
|
2339
2339
|
keyword: ri,
|
|
2340
2340
|
literal: si,
|
|
2341
2341
|
built_in: oi,
|
|
@@ -2408,7 +2408,7 @@ function li(e) {
|
|
|
2408
2408
|
e.BACKSLASH_ESCAPE,
|
|
2409
2409
|
u
|
|
2410
2410
|
]
|
|
2411
|
-
},
|
|
2411
|
+
}, E = {
|
|
2412
2412
|
className: "comment",
|
|
2413
2413
|
variants: [
|
|
2414
2414
|
e.COMMENT(
|
|
@@ -2453,7 +2453,7 @@ function li(e) {
|
|
|
2453
2453
|
e.C_BLOCK_COMMENT_MODE,
|
|
2454
2454
|
e.C_LINE_COMMENT_MODE
|
|
2455
2455
|
]
|
|
2456
|
-
},
|
|
2456
|
+
}, v = [
|
|
2457
2457
|
e.APOS_STRING_MODE,
|
|
2458
2458
|
e.QUOTE_STRING_MODE,
|
|
2459
2459
|
h,
|
|
@@ -2467,7 +2467,7 @@ function li(e) {
|
|
|
2467
2467
|
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
2468
2468
|
// hljs.REGEXP_MODE
|
|
2469
2469
|
];
|
|
2470
|
-
u.contains =
|
|
2470
|
+
u.contains = v.concat({
|
|
2471
2471
|
// we need to pair up {} inside our subst to prevent
|
|
2472
2472
|
// it from ending too early by matching another }
|
|
2473
2473
|
begin: /\{/,
|
|
@@ -2475,9 +2475,9 @@ function li(e) {
|
|
|
2475
2475
|
keywords: r,
|
|
2476
2476
|
contains: [
|
|
2477
2477
|
"self"
|
|
2478
|
-
].concat(
|
|
2478
|
+
].concat(v)
|
|
2479
2479
|
});
|
|
2480
|
-
const y = [].concat(
|
|
2480
|
+
const y = [].concat(E, u.contains), S = y.concat([
|
|
2481
2481
|
// eat recursive parens in sub expressions
|
|
2482
2482
|
{
|
|
2483
2483
|
begin: /(\s*)\(/,
|
|
@@ -2670,7 +2670,7 @@ function li(e) {
|
|
|
2670
2670
|
p,
|
|
2671
2671
|
d,
|
|
2672
2672
|
_,
|
|
2673
|
-
|
|
2673
|
+
E,
|
|
2674
2674
|
// Skip numbers when they are part of a variable name
|
|
2675
2675
|
{ match: /\$\d+/ },
|
|
2676
2676
|
o,
|
|
@@ -2687,7 +2687,7 @@ function li(e) {
|
|
|
2687
2687
|
keywords: "return throw case",
|
|
2688
2688
|
relevance: 0,
|
|
2689
2689
|
contains: [
|
|
2690
|
-
|
|
2690
|
+
E,
|
|
2691
2691
|
e.REGEXP_MODE,
|
|
2692
2692
|
{
|
|
2693
2693
|
className: "function",
|
|
@@ -3410,7 +3410,7 @@ function gi(e) {
|
|
|
3410
3410
|
]
|
|
3411
3411
|
};
|
|
3412
3412
|
}
|
|
3413
|
-
var be = "[0-9](_*[0-9])*", Ce = `\\.(${be})`, Oe = "[0-9a-fA-F](_*[0-9a-fA-F])*",
|
|
3413
|
+
var be = "[0-9](_*[0-9])*", Ce = `\\.(${be})`, Oe = "[0-9a-fA-F](_*[0-9a-fA-F])*", vn = {
|
|
3414
3414
|
className: "number",
|
|
3415
3415
|
variants: [
|
|
3416
3416
|
// DecimalFloatingPointLiteral
|
|
@@ -3633,7 +3633,7 @@ function hi(e) {
|
|
|
3633
3633
|
l,
|
|
3634
3634
|
e.APOS_STRING_MODE,
|
|
3635
3635
|
e.QUOTE_STRING_MODE,
|
|
3636
|
-
|
|
3636
|
+
vn,
|
|
3637
3637
|
e.C_BLOCK_COMMENT_MODE
|
|
3638
3638
|
]
|
|
3639
3639
|
},
|
|
@@ -3641,7 +3641,7 @@ function hi(e) {
|
|
|
3641
3641
|
e.C_BLOCK_COMMENT_MODE
|
|
3642
3642
|
]
|
|
3643
3643
|
},
|
|
3644
|
-
|
|
3644
|
+
vn,
|
|
3645
3645
|
l
|
|
3646
3646
|
]
|
|
3647
3647
|
};
|
|
@@ -3764,7 +3764,7 @@ function di(e) {
|
|
|
3764
3764
|
], _ = [
|
|
3765
3765
|
"true",
|
|
3766
3766
|
"false"
|
|
3767
|
-
], b = { match: /(\/[a-z._-]+)+/ },
|
|
3767
|
+
], b = { match: /(\/[a-z._-]+)+/ }, E = [
|
|
3768
3768
|
"break",
|
|
3769
3769
|
"cd",
|
|
3770
3770
|
"continue",
|
|
@@ -3783,7 +3783,7 @@ function di(e) {
|
|
|
3783
3783
|
"trap",
|
|
3784
3784
|
"umask",
|
|
3785
3785
|
"unset"
|
|
3786
|
-
],
|
|
3786
|
+
], v = [
|
|
3787
3787
|
"alias",
|
|
3788
3788
|
"bind",
|
|
3789
3789
|
"builtin",
|
|
@@ -3991,8 +3991,8 @@ function di(e) {
|
|
|
3991
3991
|
keyword: d,
|
|
3992
3992
|
literal: _,
|
|
3993
3993
|
built_in: [
|
|
3994
|
-
...v,
|
|
3995
3994
|
...E,
|
|
3995
|
+
...v,
|
|
3996
3996
|
// Shell modifiers
|
|
3997
3997
|
"set",
|
|
3998
3998
|
"shopt",
|
|
@@ -4570,7 +4570,7 @@ function pi(e) {
|
|
|
4570
4570
|
], h = a, p = [
|
|
4571
4571
|
...l,
|
|
4572
4572
|
...s
|
|
4573
|
-
].filter((
|
|
4573
|
+
].filter((v) => !a.includes(v)), d = {
|
|
4574
4574
|
className: "variable",
|
|
4575
4575
|
begin: /@[a-z0-9][a-z0-9_]*/
|
|
4576
4576
|
}, _ = {
|
|
@@ -4582,12 +4582,12 @@ function pi(e) {
|
|
|
4582
4582
|
relevance: 0,
|
|
4583
4583
|
keywords: { built_in: h }
|
|
4584
4584
|
};
|
|
4585
|
-
function v
|
|
4585
|
+
function E(v, {
|
|
4586
4586
|
exceptions: y,
|
|
4587
4587
|
when: S
|
|
4588
4588
|
} = {}) {
|
|
4589
4589
|
const T = S;
|
|
4590
|
-
return y = y || [],
|
|
4590
|
+
return y = y || [], v.map((D) => D.match(/\|\d+$/) || y.includes(D) ? D : T(D) ? `${D}|0` : D);
|
|
4591
4591
|
}
|
|
4592
4592
|
return {
|
|
4593
4593
|
name: "SQL",
|
|
@@ -4596,7 +4596,7 @@ function pi(e) {
|
|
|
4596
4596
|
illegal: /[{}]|<\//,
|
|
4597
4597
|
keywords: {
|
|
4598
4598
|
$pattern: /\b[\w\.]+/,
|
|
4599
|
-
keyword:
|
|
4599
|
+
keyword: E(p, { when: (v) => v.length < 3 }),
|
|
4600
4600
|
literal: n,
|
|
4601
4601
|
type: r,
|
|
4602
4602
|
built_in: o
|
|
@@ -4670,7 +4670,9 @@ function Gn(e, t) {
|
|
|
4670
4670
|
const c = e.endsWith(`
|
|
4671
4671
|
`), f = t.endsWith(`
|
|
4672
4672
|
`);
|
|
4673
|
-
c !== f && (c ? e = e.slice(0, -1) : t = t.slice(0, -1))
|
|
4673
|
+
c !== f && (c ? e = e.slice(0, -1) : t = t.slice(0, -1)), e && (e += `
|
|
4674
|
+
`), t && (t += `
|
|
4675
|
+
`);
|
|
4674
4676
|
let g;
|
|
4675
4677
|
if (e.length + t.length >= 1e5 && e.includes(`
|
|
4676
4678
|
`) && t.includes(`
|
|
@@ -4782,19 +4784,19 @@ function Kn(e, t) {
|
|
|
4782
4784
|
};
|
|
4783
4785
|
}
|
|
4784
4786
|
function mi(e, t, c = "plaintext", f = "word", g = !1, n = 10, i) {
|
|
4785
|
-
const r = () => ({ type: w.EMPTY }), s = (
|
|
4787
|
+
const r = () => ({ type: w.EMPTY }), s = (E, v, y) => ({ type: E, num: v, code: y }), l = Gn(e, t), a = i ? new RegExp(i) : void 0;
|
|
4786
4788
|
let o = 0, u = 0, h = !1;
|
|
4787
4789
|
const p = [], d = {
|
|
4788
4790
|
changes: p,
|
|
4789
4791
|
collector: [],
|
|
4790
4792
|
stat: Kn(l, a)
|
|
4791
4793
|
};
|
|
4792
|
-
for (let
|
|
4794
|
+
for (let E = 0; E < l.length; E++) {
|
|
4793
4795
|
if (h) {
|
|
4794
4796
|
h = !1;
|
|
4795
4797
|
continue;
|
|
4796
4798
|
}
|
|
4797
|
-
const [
|
|
4799
|
+
const [v, y] = [l[E], l[E + 1]], [S, T] = [ue(v), ue(y)], D = v.value.replace(/\n$/, "").split(`
|
|
4798
4800
|
`);
|
|
4799
4801
|
if (y === void 0) {
|
|
4800
4802
|
for (const M of D) {
|
|
@@ -4820,10 +4822,10 @@ function mi(e, t, c = "plaintext", f = "word", g = !1, n = 10, i) {
|
|
|
4820
4822
|
});
|
|
4821
4823
|
if (T === w.ADD) {
|
|
4822
4824
|
h = !0;
|
|
4823
|
-
const M = Math.max(
|
|
4825
|
+
const M = Math.max(v.count, y.count);
|
|
4824
4826
|
for (let R = 0; R < M; R++) {
|
|
4825
|
-
R <
|
|
4826
|
-
const [U, H] = [D[R], B[R]], W = g || D.length === B.length, [Y, le] = W ? Fn(U, H, f, g) : [U, H], pe = a != null && a.test(U) ? w.EQUAL : w.DELETE, m = a != null && a.test(H) ? w.EQUAL : w.ADD, N = R <
|
|
4827
|
+
R < v.count && o++, R < y.count && u++;
|
|
4828
|
+
const [U, H] = [D[R], B[R]], W = g || D.length === B.length, [Y, le] = W ? Fn(U, H, f, g) : [U, H], pe = a != null && a.test(U) ? w.EQUAL : w.DELETE, m = a != null && a.test(H) ? w.EQUAL : w.ADD, N = R < v.count ? s(pe, o, Y) : r(), C = R < y.count ? s(m, u, le) : r();
|
|
4827
4829
|
p.push({ left: N, right: C });
|
|
4828
4830
|
}
|
|
4829
4831
|
}
|
|
@@ -4836,38 +4838,38 @@ function mi(e, t, c = "plaintext", f = "word", g = !1, n = 10, i) {
|
|
|
4836
4838
|
});
|
|
4837
4839
|
}
|
|
4838
4840
|
if (e === t) {
|
|
4839
|
-
for (let
|
|
4840
|
-
p[
|
|
4841
|
-
return p.slice(0, q).forEach((
|
|
4841
|
+
for (let E = 0; E < p.length; E++)
|
|
4842
|
+
p[E].fold = !1;
|
|
4843
|
+
return p.slice(0, q).forEach((E) => Qe(E, c)), d;
|
|
4842
4844
|
}
|
|
4843
|
-
for (let
|
|
4844
|
-
const
|
|
4845
|
-
if (
|
|
4846
|
-
const [y, S] = [Math.max(
|
|
4845
|
+
for (let E = 0; E < p.length; E++) {
|
|
4846
|
+
const v = p[E];
|
|
4847
|
+
if (v.left.type === w.DELETE || v.right.type === w.ADD) {
|
|
4848
|
+
const [y, S] = [Math.max(E - n, 0), Math.min(E + n + 1, p.length)];
|
|
4847
4849
|
for (let T = y; T < S; T++)
|
|
4848
4850
|
p[T].fold = !1;
|
|
4849
4851
|
}
|
|
4850
|
-
|
|
4852
|
+
v.fold === void 0 && (v.fold = !0);
|
|
4851
4853
|
}
|
|
4852
4854
|
const _ = [];
|
|
4853
4855
|
let b = [];
|
|
4854
|
-
for (let
|
|
4855
|
-
const
|
|
4856
|
-
if (
|
|
4856
|
+
for (let E = 0; E < p.length; E++) {
|
|
4857
|
+
const v = p[E];
|
|
4858
|
+
if (v.fold === !1) {
|
|
4857
4859
|
b.length && (b[0].hideIndex = d.collector.length, d.collector.push({
|
|
4858
4860
|
lines: b,
|
|
4859
4861
|
fold: !0
|
|
4860
|
-
}), b = []), _.push(
|
|
4862
|
+
}), b = []), _.push(v);
|
|
4861
4863
|
continue;
|
|
4862
4864
|
}
|
|
4863
|
-
|
|
4865
|
+
v.hide = !0, b.push(v), _.push(v);
|
|
4864
4866
|
}
|
|
4865
4867
|
return b.length && (b[0].hideIndex = d.collector.length, d.collector.push({
|
|
4866
4868
|
lines: b,
|
|
4867
4869
|
fold: !0
|
|
4868
|
-
}), b = []), d.changes = _, d.changes.filter((
|
|
4870
|
+
}), b = []), d.changes = _, d.changes.filter((E) => !E.hide).slice(0, q).forEach((E) => Qe(E, c)), d;
|
|
4869
4871
|
}
|
|
4870
|
-
function
|
|
4872
|
+
function Ei(e, t, c = "plaintext", f = "word", g = !1, n = 10, i) {
|
|
4871
4873
|
const r = Gn(e, t), s = i ? new RegExp(i) : void 0;
|
|
4872
4874
|
let l = 0, a = 0, o = !1;
|
|
4873
4875
|
const u = [], h = {
|
|
@@ -4880,24 +4882,24 @@ function vi(e, t, c = "plaintext", f = "word", g = !1, n = 10, i) {
|
|
|
4880
4882
|
o = !1;
|
|
4881
4883
|
continue;
|
|
4882
4884
|
}
|
|
4883
|
-
const [b,
|
|
4885
|
+
const [b, E] = [r[_], r[_ + 1]], [v, y] = [ue(b), ue(E)], S = b.value.replace(/\n$/, "").split(`
|
|
4884
4886
|
`);
|
|
4885
|
-
if (
|
|
4887
|
+
if (E === void 0) {
|
|
4886
4888
|
for (const D of S)
|
|
4887
|
-
|
|
4888
|
-
type:
|
|
4889
|
+
v === w.EQUAL && (l++, a++), v === w.DELETE && l++, v === w.ADD && a++, u.push({
|
|
4890
|
+
type: v,
|
|
4889
4891
|
code: D,
|
|
4890
|
-
addNum:
|
|
4891
|
-
delNum:
|
|
4892
|
+
addNum: v === w.DELETE ? void 0 : a,
|
|
4893
|
+
delNum: v === w.ADD ? void 0 : l
|
|
4892
4894
|
});
|
|
4893
4895
|
break;
|
|
4894
4896
|
}
|
|
4895
|
-
if (
|
|
4897
|
+
if (v === w.EQUAL)
|
|
4896
4898
|
for (const D of S)
|
|
4897
4899
|
l++, a++, u.push({ type: w.EQUAL, code: D, delNum: l, addNum: a });
|
|
4898
|
-
const T =
|
|
4900
|
+
const T = E.value.replace(/\n$/, "").split(`
|
|
4899
4901
|
`);
|
|
4900
|
-
if (
|
|
4902
|
+
if (v === w.DELETE)
|
|
4901
4903
|
if (y === w.ADD && (S.length === T.length || g)) {
|
|
4902
4904
|
const D = Math.max(S.length, T.length), B = Array.from({ length: D }, (M, R) => Fn(S[R], T[R], f, g));
|
|
4903
4905
|
for (let M = 0; M < S.length; M++) {
|
|
@@ -4920,15 +4922,15 @@ function vi(e, t, c = "plaintext", f = "word", g = !1, n = 10, i) {
|
|
|
4920
4922
|
} else
|
|
4921
4923
|
for (const D of S)
|
|
4922
4924
|
l++, u.push({ type: w.DELETE, code: D, delNum: l });
|
|
4923
|
-
if (
|
|
4925
|
+
if (v === w.ADD)
|
|
4924
4926
|
for (const D of S)
|
|
4925
4927
|
a++, u.push({ type: w.ADD, code: D, addNum: a });
|
|
4926
4928
|
}
|
|
4927
4929
|
for (let _ = 0; _ < u.length; _++) {
|
|
4928
4930
|
const b = u[_];
|
|
4929
4931
|
if (b.type === w.DELETE || b.type === w.ADD) {
|
|
4930
|
-
const [
|
|
4931
|
-
for (let y =
|
|
4932
|
+
const [E, v] = [Math.max(_ - n, 0), Math.min(_ + n + 1, u.length)];
|
|
4933
|
+
for (let y = E; y < v; y++)
|
|
4932
4934
|
u[y].fold = !1;
|
|
4933
4935
|
}
|
|
4934
4936
|
b.fold === void 0 && (b.fold = !0);
|
|
@@ -4956,10 +4958,10 @@ function vi(e, t, c = "plaintext", f = "word", g = !1, n = 10, i) {
|
|
|
4956
4958
|
fold: !0
|
|
4957
4959
|
}), d = []), h.changes = p, h.changes.filter((_) => !_.hide).slice(0, q).forEach((_) => We(_, c)), h;
|
|
4958
4960
|
}
|
|
4959
|
-
const
|
|
4961
|
+
const vi = { key: 0 }, yi = /* @__PURE__ */ I("td", {
|
|
4960
4962
|
class: "blob-code blob-code-hunk",
|
|
4961
4963
|
align: "left"
|
|
4962
|
-
}, " ⋯ ", -1), wi = ["data-diff-change"], Ai = ["data-code-marker", "innerHTML"], Ni = /* @__PURE__ */
|
|
4964
|
+
}, " ⋯ ", -1), wi = ["data-diff-change"], Ai = ["data-code-marker", "innerHTML"], Ni = /* @__PURE__ */ ve({
|
|
4963
4965
|
__name: "UnifiedLine",
|
|
4964
4966
|
props: {
|
|
4965
4967
|
line: {}
|
|
@@ -4970,7 +4972,7 @@ const Ei = { key: 0 }, yi = /* @__PURE__ */ I("td", {
|
|
|
4970
4972
|
function f(g) {
|
|
4971
4973
|
return g === w.DELETE ? "-" : g === w.ADD ? "+" : "";
|
|
4972
4974
|
}
|
|
4973
|
-
return (g, n) => g.line.hideIndex !== void 0 && g.line.hide ? (z(), K("tr",
|
|
4975
|
+
return (g, n) => g.line.hideIndex !== void 0 && g.line.hide ? (z(), K("tr", vi, [
|
|
4974
4976
|
I("td", {
|
|
4975
4977
|
class: "blob-num blob-num-hunk text-center",
|
|
4976
4978
|
colspan: "2",
|
|
@@ -5016,7 +5018,7 @@ const Ei = { key: 0 }, yi = /* @__PURE__ */ I("td", {
|
|
|
5016
5018
|
}), Mi = { class: "diff-table" }, Ti = { key: 0 }, Si = {
|
|
5017
5019
|
class: "blob-code blob-code-hunk load-more",
|
|
5018
5020
|
colspan: "3"
|
|
5019
|
-
}, Di = /* @__PURE__ */
|
|
5021
|
+
}, Di = /* @__PURE__ */ ve({
|
|
5020
5022
|
__name: "UnifiedViewer",
|
|
5021
5023
|
props: {
|
|
5022
5024
|
diffChange: {},
|
|
@@ -5061,7 +5063,7 @@ const Ei = { key: 0 }, yi = /* @__PURE__ */ I("td", {
|
|
|
5061
5063
|
class: "blob-code blob-code-inner blob-code-hunk",
|
|
5062
5064
|
colspan: "3",
|
|
5063
5065
|
align: "left"
|
|
5064
|
-
}, " ⋯ ", -1), Ci = ["data-diff-change"], Oi = /* @__PURE__ */ I("td", { class: "blob-num blob-num-empty empty-cell" }, null, -1), Ii = /* @__PURE__ */ I("td", { class: "blob-code blob-code-empty empty-cell" }, null, -1), ki = ["onMousedown"], Bi = ["data-code-marker", "innerHTML"], $i = /* @__PURE__ */
|
|
5066
|
+
}, " ⋯ ", -1), Ci = ["data-diff-change"], Oi = /* @__PURE__ */ I("td", { class: "blob-num blob-num-empty empty-cell" }, null, -1), Ii = /* @__PURE__ */ I("td", { class: "blob-code blob-code-empty empty-cell" }, null, -1), ki = ["onMousedown"], Bi = ["data-code-marker", "innerHTML"], $i = /* @__PURE__ */ ve({
|
|
5065
5067
|
__name: "SplitLine",
|
|
5066
5068
|
props: {
|
|
5067
5069
|
splitLine: {}
|
|
@@ -5132,7 +5134,7 @@ const Ei = { key: 0 }, yi = /* @__PURE__ */ I("td", {
|
|
|
5132
5134
|
], -1), Hi = { key: 0 }, xi = {
|
|
5133
5135
|
class: "blob-code blob-code-hunk load-more",
|
|
5134
5136
|
colspan: "4"
|
|
5135
|
-
}, zi = /* @__PURE__ */
|
|
5137
|
+
}, zi = /* @__PURE__ */ ve({
|
|
5136
5138
|
__name: "SplitViewer",
|
|
5137
5139
|
props: {
|
|
5138
5140
|
diffChange: {},
|
|
@@ -5218,7 +5220,7 @@ const Nn = /* @__PURE__ */ tn(Zi, [["render", ji]]), qi = ["theme"], Ji = {
|
|
|
5218
5220
|
}, lr = { class: "info-left" }, cr = { class: "info-right" }, ur = { style: { "margin-left": "20px" } }, fr = { class: "diff-commandbar" }, gr = {
|
|
5219
5221
|
key: 0,
|
|
5220
5222
|
class: "diff-stat"
|
|
5221
|
-
}, hr = { class: "diff-stat-added" }, dr = { class: "diff-stat-deleted" }, Wn = /* @__PURE__ */
|
|
5223
|
+
}, hr = { class: "diff-stat-added" }, dr = { class: "diff-stat-deleted" }, Wn = /* @__PURE__ */ ve({
|
|
5222
5224
|
__name: "CodeDiff",
|
|
5223
5225
|
props: {
|
|
5224
5226
|
newString: {},
|
|
@@ -5249,7 +5251,7 @@ const Nn = /* @__PURE__ */ tn(Zi, [["render", ji]]), qi = ["theme"], Ji = {
|
|
|
5249
5251
|
return d = c.trim ? d.trim() : d, d = c.noDiffLineFeed ? d.replace(/(\r\n)/g, `
|
|
5250
5252
|
`) : d, d;
|
|
5251
5253
|
}), r = ne(
|
|
5252
|
-
() => g.value ?
|
|
5254
|
+
() => g.value ? Ei(n.value, i.value, c.language, c.diffStyle, c.forceInlineComparison, c.context, c.ignoreMatchingLines) : mi(n.value, i.value, c.language, c.diffStyle, c.forceInlineComparison, c.context, c.ignoreMatchingLines)
|
|
5253
5255
|
), s = Ze(r.value), l = ne(() => s.value.stat.additionsNum === 0 && s.value.stat.deletionsNum === 0), a = ke(-1), o = ke();
|
|
5254
5256
|
function u() {
|
|
5255
5257
|
const d = o.value.querySelectorAll("[data-diff-change]");
|
|
@@ -5351,7 +5353,7 @@ const Nn = /* @__PURE__ */ tn(Zi, [["render", ji]]), qi = ["theme"], Ji = {
|
|
|
5351
5353
|
}, null, 8, ["diff-change", "language"]))
|
|
5352
5354
|
], 12, qi));
|
|
5353
5355
|
}
|
|
5354
|
-
}), pr = /* @__PURE__ */
|
|
5356
|
+
}), pr = /* @__PURE__ */ ve({
|
|
5355
5357
|
__name: "CodeReader",
|
|
5356
5358
|
props: {
|
|
5357
5359
|
language: { default: "plaintext" },
|
|
@@ -5369,13 +5371,13 @@ const Nn = /* @__PURE__ */ tn(Zi, [["render", ji]]), qi = ["theme"], Ji = {
|
|
|
5369
5371
|
function br(e) {
|
|
5370
5372
|
e.component("CodeDiff", Wn), e.component("CodeReader", _r);
|
|
5371
5373
|
}
|
|
5372
|
-
const
|
|
5374
|
+
const Er = {
|
|
5373
5375
|
install: br,
|
|
5374
5376
|
hljs: J
|
|
5375
5377
|
};
|
|
5376
5378
|
export {
|
|
5377
5379
|
Wn as CodeDiff,
|
|
5378
5380
|
_r as CodeReader,
|
|
5379
|
-
|
|
5381
|
+
Er as default,
|
|
5380
5382
|
J as hljs
|
|
5381
5383
|
};
|