@plumile/ui 0.1.99 → 0.1.102
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/lib/esm/{BackofficeJsonViewerAsync-GenasLA-.js → BackofficeJsonViewerAsync-niwHe9is.js} +2 -2
- package/lib/esm/{BackofficeJsonViewerAsync-GenasLA-.js.map → BackofficeJsonViewerAsync-niwHe9is.js.map} +1 -1
- package/lib/esm/HighlightCode-KpWSo7Zx.js.map +1 -1
- package/lib/esm/{MarkdownCodeBlock-DZRdzjJ9.js → MarkdownCodeBlock-CLK5KJgU.js} +3 -3
- package/lib/esm/{MarkdownCodeBlock-DZRdzjJ9.js.map → MarkdownCodeBlock-CLK5KJgU.js.map} +1 -1
- package/lib/esm/{MarkdownRenderer-DBpMvD98.js → MarkdownRenderer-c_Ic29c2.js} +2 -2
- package/lib/esm/{MarkdownRenderer-DBpMvD98.js.map → MarkdownRenderer-c_Ic29c2.js.map} +1 -1
- package/lib/esm/{MarkdownShikiCodeBlock-BhdpnKJo.js → MarkdownShikiCodeBlock-CbaOKfZO.js} +1180 -1175
- package/lib/esm/MarkdownShikiCodeBlock-CbaOKfZO.js.map +1 -0
- package/lib/esm/_baseFor-Z--4BB_X.js.map +1 -1
- package/lib/esm/arc-BUZ4igwO.js.map +1 -1
- package/lib/esm/architectureDiagram-Q4EWVU46-DpoNV55s.js.map +1 -1
- package/lib/esm/array-CTFiDRBi.js.map +1 -1
- package/lib/esm/blockDiagram-DXYQGD6D-DJxDffAk.js.map +1 -1
- package/lib/esm/c4Diagram-AHTNJAMY-DxAt6CyF.js.map +1 -1
- package/lib/esm/chunk-2KRD3SAO-C5ZUgIak.js.map +1 -1
- package/lib/esm/{chunk-336JU56O-24m8cXIL.js → chunk-336JU56O-BsMYboJR.js} +3 -3
- package/lib/esm/{chunk-336JU56O-24m8cXIL.js.map → chunk-336JU56O-BsMYboJR.js.map} +1 -1
- package/lib/esm/chunk-426QAEUC-b2PRuT9o.js.map +1 -1
- package/lib/esm/chunk-4BX2VUAB-BkyyJ41z.js.map +1 -1
- package/lib/esm/{chunk-4TB4RGXK-CsiupxiO.js → chunk-4TB4RGXK-LzOZn6e3.js} +2 -2
- package/lib/esm/{chunk-4TB4RGXK-CsiupxiO.js.map → chunk-4TB4RGXK-LzOZn6e3.js.map} +1 -1
- package/lib/esm/chunk-55IACEB6-CZ1WMXNv.js.map +1 -1
- package/lib/esm/chunk-5FUZZQ4R-Hp5ZXYAE.js.map +1 -1
- package/lib/esm/chunk-5PVQY5BW-CQdr0IGy.js.map +1 -1
- package/lib/esm/chunk-67CJDMHE-DQCJ08Vv.js.map +1 -1
- package/lib/esm/chunk-7N4EOEYR-CTdQRezU.js.map +1 -1
- package/lib/esm/chunk-AA7GKIK3-x61iJxkf.js.map +1 -1
- package/lib/esm/chunk-BSJP7CBP-BRqWaFD3.js.map +1 -1
- package/lib/esm/chunk-CIAEETIT-Dm4nDheA.js.map +1 -1
- package/lib/esm/chunk-EDXVE4YY-CyZVAPxl.js.map +1 -1
- package/lib/esm/chunk-ENJZ2VHE-D1RBdOy4.js.map +1 -1
- package/lib/esm/chunk-FOC6F5B3-DTxKWzfh.js.map +1 -1
- package/lib/esm/chunk-ICPOFSXX-BQ7-Poft.js.map +1 -1
- package/lib/esm/chunk-K5T4RW27-BZbwqbnj.js.map +1 -1
- package/lib/esm/chunk-KGLVRYIC-DGO8PqNS.js.map +1 -1
- package/lib/esm/chunk-LIHQZDEY-DRQpYuDY.js.map +1 -1
- package/lib/esm/chunk-ORNJ4GCN-BWnkQx42.js.map +1 -1
- package/lib/esm/{chunk-OYMX7WX6-C3qIK5JJ.js → chunk-OYMX7WX6-C3p3qx9s.js} +2 -2
- package/lib/esm/{chunk-OYMX7WX6-C3qIK5JJ.js.map → chunk-OYMX7WX6-C3p3qx9s.js.map} +1 -1
- package/lib/esm/chunk-QZHKN3VN-BIoC_CBh.js.map +1 -1
- package/lib/esm/chunk-U2HBQHQK-CNpf2t7b.js.map +1 -1
- package/lib/esm/chunk-X2U36JSP-Dh9T66Fy.js.map +1 -1
- package/lib/esm/chunk-XPW4576I-CdsuZylH.js.map +1 -1
- package/lib/esm/chunk-YZCP3GAM-D-LQWFJc.js.map +1 -1
- package/lib/esm/chunk-ZZ45TVLE-CP_4OsJR.js.map +1 -1
- package/lib/esm/{classDiagram-6PBFFD2Q-CfClLEok.js → classDiagram-6PBFFD2Q-CfucyocV.js} +3 -3
- package/lib/esm/{classDiagram-6PBFFD2Q-CfClLEok.js.map → classDiagram-6PBFFD2Q-CfucyocV.js.map} +1 -1
- package/lib/esm/{classDiagram-v2-HSJHXN6E-BlbDAEH6.js → classDiagram-v2-HSJHXN6E-BcU6iB1L.js} +3 -3
- package/lib/esm/{classDiagram-v2-HSJHXN6E-BlbDAEH6.js.map → classDiagram-v2-HSJHXN6E-BcU6iB1L.js.map} +1 -1
- package/lib/esm/clone-DhB5s2T9.js.map +1 -1
- package/lib/esm/cose-bilkent-S5V4N54A-BdVqhM8C.js.map +1 -1
- package/lib/esm/cytoscape.esm-CT-fsRss.js.map +1 -1
- package/lib/esm/dagre-BQULeUjQ.js.map +1 -1
- package/lib/esm/dagre-KV5264BT-DTy5YJ5_.js.map +1 -1
- package/lib/esm/diagram-5BDNPKRD-w19gCTBw.js.map +1 -1
- package/lib/esm/diagram-G4DWMVQ6-EfJtDPEB.js.map +1 -1
- package/lib/esm/diagram-MMDJMWI5-DsPB2uYP.js.map +1 -1
- package/lib/esm/diagram-TYMM5635-D3ecq7oF.js.map +1 -1
- package/lib/esm/dist-CZs_brJz.js.map +1 -1
- package/lib/esm/{erDiagram-SMLLAGMA-sgCGzaHO.js → erDiagram-SMLLAGMA-DsYSva8K.js} +2 -2
- package/lib/esm/{erDiagram-SMLLAGMA-sgCGzaHO.js.map → erDiagram-SMLLAGMA-DsYSva8K.js.map} +1 -1
- package/lib/esm/flatten-CRDGWjhS.js.map +1 -1
- package/lib/esm/{flowDiagram-DWJPFMVM-BlOft6GA.js → flowDiagram-DWJPFMVM-BkxIhdyA.js} +2 -2
- package/lib/esm/{flowDiagram-DWJPFMVM-BlOft6GA.js.map → flowDiagram-DWJPFMVM-BkxIhdyA.js.map} +1 -1
- package/lib/esm/ganttDiagram-T4ZO3ILL-BGrn6yEi.js.map +1 -1
- package/lib/esm/gitGraphDiagram-UUTBAWPF-BV73nor5.js.map +1 -1
- package/lib/esm/graphlib-B76sPwTV.js.map +1 -1
- package/lib/esm/infoDiagram-42DDH7IO-CYONnQuR.js.map +1 -1
- package/lib/esm/init-DcYXQL-k.js.map +1 -1
- package/lib/esm/isEmpty-DLTQgX7m.js.map +1 -1
- package/lib/esm/ishikawaDiagram-UXIWVN3A-B2ISni0r.js.map +1 -1
- package/lib/esm/journeyDiagram-VCZTEJTY-CjNMX7wx.js.map +1 -1
- package/lib/esm/kanban-definition-6JOO6SKY-BNsv25Cl.js.map +1 -1
- package/lib/esm/katex-DpumU0Fc.js.map +1 -1
- package/lib/esm/line-Dyv5of1r.js.map +1 -1
- package/lib/esm/linear-LpGdIFrk.js.map +1 -1
- package/lib/esm/mermaid-parser.core-D5sUsnWF.js.map +1 -1
- package/lib/esm/{mermaid.core-o6lwF-Gt.js → mermaid.core-i12yADTp.js} +12 -12
- package/lib/esm/{mermaid.core-o6lwF-Gt.js.map → mermaid.core-i12yADTp.js.map} +1 -1
- package/lib/esm/{mindmap-definition-QFDTVHPH-C63UTb48.js → mindmap-definition-QFDTVHPH-BfrBPDUJ.js} +2 -2
- package/lib/esm/{mindmap-definition-QFDTVHPH-C63UTb48.js.map → mindmap-definition-QFDTVHPH-BfrBPDUJ.js.map} +1 -1
- package/lib/esm/ordinal-B2RGggQH.js.map +1 -1
- package/lib/esm/path-Bg_3NlDP.js.map +1 -1
- package/lib/esm/pieDiagram-DEJITSTG-YByZ__0R.js.map +1 -1
- package/lib/esm/quadrantDiagram-34T5L4WZ-DLFKZc02.js.map +1 -1
- package/lib/esm/reduce-0ekdtexD.js.map +1 -1
- package/lib/esm/{requirementDiagram-MS252O5E-CJXcr8r4.js → requirementDiagram-MS252O5E-CulfPmse.js} +2 -2
- package/lib/esm/{requirementDiagram-MS252O5E-CJXcr8r4.js.map → requirementDiagram-MS252O5E-CulfPmse.js.map} +1 -1
- package/lib/esm/rough.esm-IQz7gRXZ.js.map +1 -1
- package/lib/esm/sankeyDiagram-XADWPNL6-DMByY6gK.js.map +1 -1
- package/lib/esm/sequenceDiagram-FGHM5R23-vJC9cjdX.js.map +1 -1
- package/lib/esm/src-BZm6Awwh.js.map +1 -1
- package/lib/esm/{src-C5doNKmD.js → src-DT2iBPF8.js} +629 -541
- package/lib/esm/src-DT2iBPF8.js.map +1 -0
- package/lib/esm/{stateDiagram-FHFEXIEX-G9WWEBGm.js → stateDiagram-FHFEXIEX-CofVLBPX.js} +3 -3
- package/lib/esm/{stateDiagram-FHFEXIEX-G9WWEBGm.js.map → stateDiagram-FHFEXIEX-CofVLBPX.js.map} +1 -1
- package/lib/esm/{stateDiagram-v2-QKLJ7IA2-BSg62pbb.js → stateDiagram-v2-QKLJ7IA2-DTXym7Y8.js} +3 -3
- package/lib/esm/{stateDiagram-v2-QKLJ7IA2-BSg62pbb.js.map → stateDiagram-v2-QKLJ7IA2-DTXym7Y8.js.map} +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/esm/timeline-definition-GMOUNBTQ-DeWjV_e-.js.map +1 -1
- package/lib/esm/ui.js +4 -4
- package/lib/esm/vennDiagram-DHZGUBPP-CKdXCzw7.js.map +1 -1
- package/lib/esm/wardleyDiagram-NUSXRM2D-BzD8LDJv.js.map +1 -1
- package/lib/esm/xychartDiagram-5P7HB3ND-C2ITEA5J.js.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts +2 -1
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts +1 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts.map +1 -1
- package/lib/types/components/data-table/DataTable.d.ts +2 -0
- package/lib/types/components/data-table/DataTable.d.ts.map +1 -1
- package/lib/types/components/data-table/ResponsiveRecordList.css.d.ts +21 -0
- package/lib/types/components/data-table/ResponsiveRecordList.css.d.ts.map +1 -0
- package/lib/types/components/data-table/ResponsiveRecordList.d.ts +17 -0
- package/lib/types/components/data-table/ResponsiveRecordList.d.ts.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +12 -12
- package/lib/esm/MarkdownShikiCodeBlock-BhdpnKJo.js.map +0 -1
- package/lib/esm/src-C5doNKmD.js.map +0 -1
|
@@ -17,129 +17,129 @@ function _(e, t) {
|
|
|
17
17
|
//#region ../../node_modules/hast-util-whitespace/lib/index.js
|
|
18
18
|
var v = /[ \t\n\f\r]/g;
|
|
19
19
|
function y(e) {
|
|
20
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
20
|
+
return typeof e == "object" ? e.type === "text" ? ee(e.value) : !1 : ee(e);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ee(e) {
|
|
23
23
|
return e.replace(v, "") === "";
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region ../../node_modules/property-information/lib/util/schema.js
|
|
27
|
-
var
|
|
27
|
+
var b = class {
|
|
28
28
|
constructor(e, t, n) {
|
|
29
29
|
this.normal = t, this.property = e, n && (this.space = n);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
b.prototype.normal = {}, b.prototype.property = {}, b.prototype.space = void 0;
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region ../../node_modules/property-information/lib/util/merge.js
|
|
35
|
-
function
|
|
35
|
+
function x(e, t) {
|
|
36
36
|
let n = {}, r = {};
|
|
37
37
|
for (let t of e) Object.assign(n, t.property), Object.assign(r, t.normal);
|
|
38
|
-
return new
|
|
38
|
+
return new b(n, r, t);
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region ../../node_modules/property-information/lib/normalize.js
|
|
42
|
-
function
|
|
42
|
+
function S(e) {
|
|
43
43
|
return e.toLowerCase();
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region ../../node_modules/property-information/lib/util/info.js
|
|
47
|
-
var
|
|
47
|
+
var C = class {
|
|
48
48
|
constructor(e, t) {
|
|
49
49
|
this.attribute = t, this.property = e;
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
C.prototype.attribute = "", C.prototype.booleanish = !1, C.prototype.boolean = !1, C.prototype.commaOrSpaceSeparated = !1, C.prototype.commaSeparated = !1, C.prototype.defined = !1, C.prototype.mustUseProperty = !1, C.prototype.number = !1, C.prototype.overloadedBoolean = !1, C.prototype.property = "", C.prototype.spaceSeparated = !1, C.prototype.space = void 0;
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region ../../node_modules/property-information/lib/util/types.js
|
|
55
|
-
var
|
|
56
|
-
boolean: () =>
|
|
57
|
-
booleanish: () =>
|
|
58
|
-
commaOrSpaceSeparated: () =>
|
|
59
|
-
commaSeparated: () =>
|
|
60
|
-
number: () =>
|
|
61
|
-
overloadedBoolean: () =>
|
|
62
|
-
spaceSeparated: () =>
|
|
63
|
-
}),
|
|
64
|
-
function
|
|
65
|
-
return 2 ** ++
|
|
55
|
+
var w = /* @__PURE__ */ t({
|
|
56
|
+
boolean: () => T,
|
|
57
|
+
booleanish: () => E,
|
|
58
|
+
commaOrSpaceSeparated: () => A,
|
|
59
|
+
commaSeparated: () => k,
|
|
60
|
+
number: () => D,
|
|
61
|
+
overloadedBoolean: () => ne,
|
|
62
|
+
spaceSeparated: () => O
|
|
63
|
+
}), te = 0, T = j(), E = j(), ne = j(), D = j(), O = j(), k = j(), A = j();
|
|
64
|
+
function j() {
|
|
65
|
+
return 2 ** ++te;
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region ../../node_modules/property-information/lib/util/defined-info.js
|
|
69
|
-
var
|
|
69
|
+
var re = Object.keys(w), ie = class extends C {
|
|
70
70
|
constructor(e, t, n, r) {
|
|
71
71
|
let i = -1;
|
|
72
|
-
if (super(e, t),
|
|
73
|
-
let e =
|
|
74
|
-
|
|
72
|
+
if (super(e, t), ae(this, "space", r), typeof n == "number") for (; ++i < re.length;) {
|
|
73
|
+
let e = re[i];
|
|
74
|
+
ae(this, re[i], (n & w[e]) === w[e]);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
|
|
79
|
-
function
|
|
78
|
+
ie.prototype.defined = !0;
|
|
79
|
+
function ae(e, t, n) {
|
|
80
80
|
n && (e[t] = n);
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region ../../node_modules/property-information/lib/util/create.js
|
|
84
|
-
function
|
|
84
|
+
function M(e) {
|
|
85
85
|
let t = {}, n = {};
|
|
86
86
|
for (let [r, i] of Object.entries(e.properties)) {
|
|
87
|
-
let a = new
|
|
88
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[
|
|
87
|
+
let a = new ie(r, e.transform(e.attributes || {}, r), i, e.space);
|
|
88
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[S(r)] = r, n[S(a.attribute)] = r;
|
|
89
89
|
}
|
|
90
|
-
return new
|
|
90
|
+
return new b(t, n, e.space);
|
|
91
91
|
}
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region ../../node_modules/property-information/lib/aria.js
|
|
94
|
-
var
|
|
94
|
+
var oe = M({
|
|
95
95
|
properties: {
|
|
96
96
|
ariaActiveDescendant: null,
|
|
97
|
-
ariaAtomic:
|
|
97
|
+
ariaAtomic: E,
|
|
98
98
|
ariaAutoComplete: null,
|
|
99
|
-
ariaBusy:
|
|
100
|
-
ariaChecked:
|
|
101
|
-
ariaColCount:
|
|
102
|
-
ariaColIndex:
|
|
103
|
-
ariaColSpan:
|
|
104
|
-
ariaControls:
|
|
99
|
+
ariaBusy: E,
|
|
100
|
+
ariaChecked: E,
|
|
101
|
+
ariaColCount: D,
|
|
102
|
+
ariaColIndex: D,
|
|
103
|
+
ariaColSpan: D,
|
|
104
|
+
ariaControls: O,
|
|
105
105
|
ariaCurrent: null,
|
|
106
|
-
ariaDescribedBy:
|
|
106
|
+
ariaDescribedBy: O,
|
|
107
107
|
ariaDetails: null,
|
|
108
|
-
ariaDisabled:
|
|
109
|
-
ariaDropEffect:
|
|
108
|
+
ariaDisabled: E,
|
|
109
|
+
ariaDropEffect: O,
|
|
110
110
|
ariaErrorMessage: null,
|
|
111
|
-
ariaExpanded:
|
|
112
|
-
ariaFlowTo:
|
|
113
|
-
ariaGrabbed:
|
|
111
|
+
ariaExpanded: E,
|
|
112
|
+
ariaFlowTo: O,
|
|
113
|
+
ariaGrabbed: E,
|
|
114
114
|
ariaHasPopup: null,
|
|
115
|
-
ariaHidden:
|
|
115
|
+
ariaHidden: E,
|
|
116
116
|
ariaInvalid: null,
|
|
117
117
|
ariaKeyShortcuts: null,
|
|
118
118
|
ariaLabel: null,
|
|
119
|
-
ariaLabelledBy:
|
|
120
|
-
ariaLevel:
|
|
119
|
+
ariaLabelledBy: O,
|
|
120
|
+
ariaLevel: D,
|
|
121
121
|
ariaLive: null,
|
|
122
|
-
ariaModal:
|
|
123
|
-
ariaMultiLine:
|
|
124
|
-
ariaMultiSelectable:
|
|
122
|
+
ariaModal: E,
|
|
123
|
+
ariaMultiLine: E,
|
|
124
|
+
ariaMultiSelectable: E,
|
|
125
125
|
ariaOrientation: null,
|
|
126
|
-
ariaOwns:
|
|
126
|
+
ariaOwns: O,
|
|
127
127
|
ariaPlaceholder: null,
|
|
128
|
-
ariaPosInSet:
|
|
129
|
-
ariaPressed:
|
|
130
|
-
ariaReadOnly:
|
|
128
|
+
ariaPosInSet: D,
|
|
129
|
+
ariaPressed: E,
|
|
130
|
+
ariaReadOnly: E,
|
|
131
131
|
ariaRelevant: null,
|
|
132
|
-
ariaRequired:
|
|
133
|
-
ariaRoleDescription:
|
|
134
|
-
ariaRowCount:
|
|
135
|
-
ariaRowIndex:
|
|
136
|
-
ariaRowSpan:
|
|
137
|
-
ariaSelected:
|
|
138
|
-
ariaSetSize:
|
|
132
|
+
ariaRequired: E,
|
|
133
|
+
ariaRoleDescription: O,
|
|
134
|
+
ariaRowCount: D,
|
|
135
|
+
ariaRowIndex: D,
|
|
136
|
+
ariaRowSpan: D,
|
|
137
|
+
ariaSelected: E,
|
|
138
|
+
ariaSetSize: D,
|
|
139
139
|
ariaSort: null,
|
|
140
|
-
ariaValueMax:
|
|
141
|
-
ariaValueMin:
|
|
142
|
-
ariaValueNow:
|
|
140
|
+
ariaValueMax: D,
|
|
141
|
+
ariaValueMin: D,
|
|
142
|
+
ariaValueNow: D,
|
|
143
143
|
ariaValueText: null,
|
|
144
144
|
role: null
|
|
145
145
|
},
|
|
@@ -149,17 +149,17 @@ var ae = N({
|
|
|
149
149
|
});
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region ../../node_modules/property-information/lib/util/case-sensitive-transform.js
|
|
152
|
-
function
|
|
152
|
+
function se(e, t) {
|
|
153
153
|
return t in e ? e[t] : t;
|
|
154
154
|
}
|
|
155
155
|
//#endregion
|
|
156
156
|
//#region ../../node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
157
|
-
function
|
|
158
|
-
return
|
|
157
|
+
function ce(e, t) {
|
|
158
|
+
return se(e, t.toLowerCase());
|
|
159
159
|
}
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region ../../node_modules/property-information/lib/html.js
|
|
162
|
-
var
|
|
162
|
+
var le = M({
|
|
163
163
|
attributes: {
|
|
164
164
|
acceptcharset: "accept-charset",
|
|
165
165
|
classname: "class",
|
|
@@ -174,45 +174,45 @@ var ce = N({
|
|
|
174
174
|
],
|
|
175
175
|
properties: {
|
|
176
176
|
abbr: null,
|
|
177
|
-
accept:
|
|
178
|
-
acceptCharset:
|
|
179
|
-
accessKey:
|
|
177
|
+
accept: k,
|
|
178
|
+
acceptCharset: O,
|
|
179
|
+
accessKey: O,
|
|
180
180
|
action: null,
|
|
181
181
|
allow: null,
|
|
182
|
-
allowFullScreen:
|
|
183
|
-
allowPaymentRequest:
|
|
184
|
-
allowUserMedia:
|
|
182
|
+
allowFullScreen: T,
|
|
183
|
+
allowPaymentRequest: T,
|
|
184
|
+
allowUserMedia: T,
|
|
185
185
|
alt: null,
|
|
186
186
|
as: null,
|
|
187
|
-
async:
|
|
187
|
+
async: T,
|
|
188
188
|
autoCapitalize: null,
|
|
189
|
-
autoComplete:
|
|
190
|
-
autoFocus:
|
|
191
|
-
autoPlay:
|
|
192
|
-
blocking:
|
|
189
|
+
autoComplete: O,
|
|
190
|
+
autoFocus: T,
|
|
191
|
+
autoPlay: T,
|
|
192
|
+
blocking: O,
|
|
193
193
|
capture: null,
|
|
194
194
|
charSet: null,
|
|
195
|
-
checked:
|
|
195
|
+
checked: T,
|
|
196
196
|
cite: null,
|
|
197
|
-
className:
|
|
198
|
-
cols:
|
|
197
|
+
className: O,
|
|
198
|
+
cols: D,
|
|
199
199
|
colSpan: null,
|
|
200
200
|
content: null,
|
|
201
|
-
contentEditable:
|
|
202
|
-
controls:
|
|
203
|
-
controlsList:
|
|
204
|
-
coords:
|
|
201
|
+
contentEditable: E,
|
|
202
|
+
controls: T,
|
|
203
|
+
controlsList: O,
|
|
204
|
+
coords: D | k,
|
|
205
205
|
crossOrigin: null,
|
|
206
206
|
data: null,
|
|
207
207
|
dateTime: null,
|
|
208
208
|
decoding: null,
|
|
209
|
-
default:
|
|
210
|
-
defer:
|
|
209
|
+
default: T,
|
|
210
|
+
defer: T,
|
|
211
211
|
dir: null,
|
|
212
212
|
dirName: null,
|
|
213
|
-
disabled:
|
|
214
|
-
download:
|
|
215
|
-
draggable:
|
|
213
|
+
disabled: T,
|
|
214
|
+
download: ne,
|
|
215
|
+
draggable: E,
|
|
216
216
|
encType: null,
|
|
217
217
|
enterKeyHint: null,
|
|
218
218
|
fetchPriority: null,
|
|
@@ -220,50 +220,50 @@ var ce = N({
|
|
|
220
220
|
formAction: null,
|
|
221
221
|
formEncType: null,
|
|
222
222
|
formMethod: null,
|
|
223
|
-
formNoValidate:
|
|
223
|
+
formNoValidate: T,
|
|
224
224
|
formTarget: null,
|
|
225
|
-
headers:
|
|
226
|
-
height:
|
|
227
|
-
hidden:
|
|
228
|
-
high:
|
|
225
|
+
headers: O,
|
|
226
|
+
height: D,
|
|
227
|
+
hidden: ne,
|
|
228
|
+
high: D,
|
|
229
229
|
href: null,
|
|
230
230
|
hrefLang: null,
|
|
231
|
-
htmlFor:
|
|
232
|
-
httpEquiv:
|
|
231
|
+
htmlFor: O,
|
|
232
|
+
httpEquiv: O,
|
|
233
233
|
id: null,
|
|
234
234
|
imageSizes: null,
|
|
235
235
|
imageSrcSet: null,
|
|
236
|
-
inert:
|
|
236
|
+
inert: T,
|
|
237
237
|
inputMode: null,
|
|
238
238
|
integrity: null,
|
|
239
239
|
is: null,
|
|
240
|
-
isMap:
|
|
240
|
+
isMap: T,
|
|
241
241
|
itemId: null,
|
|
242
|
-
itemProp:
|
|
243
|
-
itemRef:
|
|
244
|
-
itemScope:
|
|
245
|
-
itemType:
|
|
242
|
+
itemProp: O,
|
|
243
|
+
itemRef: O,
|
|
244
|
+
itemScope: T,
|
|
245
|
+
itemType: O,
|
|
246
246
|
kind: null,
|
|
247
247
|
label: null,
|
|
248
248
|
lang: null,
|
|
249
249
|
language: null,
|
|
250
250
|
list: null,
|
|
251
251
|
loading: null,
|
|
252
|
-
loop:
|
|
253
|
-
low:
|
|
252
|
+
loop: T,
|
|
253
|
+
low: D,
|
|
254
254
|
manifest: null,
|
|
255
255
|
max: null,
|
|
256
|
-
maxLength:
|
|
256
|
+
maxLength: D,
|
|
257
257
|
media: null,
|
|
258
258
|
method: null,
|
|
259
259
|
min: null,
|
|
260
|
-
minLength:
|
|
261
|
-
multiple:
|
|
262
|
-
muted:
|
|
260
|
+
minLength: D,
|
|
261
|
+
multiple: T,
|
|
262
|
+
muted: T,
|
|
263
263
|
name: null,
|
|
264
264
|
nonce: null,
|
|
265
|
-
noModule:
|
|
266
|
-
noValidate:
|
|
265
|
+
noModule: T,
|
|
266
|
+
noValidate: T,
|
|
267
267
|
onAbort: null,
|
|
268
268
|
onAfterPrint: null,
|
|
269
269
|
onAuxClick: null,
|
|
@@ -352,65 +352,65 @@ var ce = N({
|
|
|
352
352
|
onVolumeChange: null,
|
|
353
353
|
onWaiting: null,
|
|
354
354
|
onWheel: null,
|
|
355
|
-
open:
|
|
356
|
-
optimum:
|
|
355
|
+
open: T,
|
|
356
|
+
optimum: D,
|
|
357
357
|
pattern: null,
|
|
358
|
-
ping:
|
|
358
|
+
ping: O,
|
|
359
359
|
placeholder: null,
|
|
360
|
-
playsInline:
|
|
360
|
+
playsInline: T,
|
|
361
361
|
popover: null,
|
|
362
362
|
popoverTarget: null,
|
|
363
363
|
popoverTargetAction: null,
|
|
364
364
|
poster: null,
|
|
365
365
|
preload: null,
|
|
366
|
-
readOnly:
|
|
366
|
+
readOnly: T,
|
|
367
367
|
referrerPolicy: null,
|
|
368
|
-
rel:
|
|
369
|
-
required:
|
|
370
|
-
reversed:
|
|
371
|
-
rows:
|
|
372
|
-
rowSpan:
|
|
373
|
-
sandbox:
|
|
368
|
+
rel: O,
|
|
369
|
+
required: T,
|
|
370
|
+
reversed: T,
|
|
371
|
+
rows: D,
|
|
372
|
+
rowSpan: D,
|
|
373
|
+
sandbox: O,
|
|
374
374
|
scope: null,
|
|
375
|
-
scoped:
|
|
376
|
-
seamless:
|
|
377
|
-
selected:
|
|
378
|
-
shadowRootClonable:
|
|
379
|
-
shadowRootDelegatesFocus:
|
|
375
|
+
scoped: T,
|
|
376
|
+
seamless: T,
|
|
377
|
+
selected: T,
|
|
378
|
+
shadowRootClonable: T,
|
|
379
|
+
shadowRootDelegatesFocus: T,
|
|
380
380
|
shadowRootMode: null,
|
|
381
381
|
shape: null,
|
|
382
|
-
size:
|
|
382
|
+
size: D,
|
|
383
383
|
sizes: null,
|
|
384
384
|
slot: null,
|
|
385
|
-
span:
|
|
386
|
-
spellCheck:
|
|
385
|
+
span: D,
|
|
386
|
+
spellCheck: E,
|
|
387
387
|
src: null,
|
|
388
388
|
srcDoc: null,
|
|
389
389
|
srcLang: null,
|
|
390
390
|
srcSet: null,
|
|
391
|
-
start:
|
|
391
|
+
start: D,
|
|
392
392
|
step: null,
|
|
393
393
|
style: null,
|
|
394
|
-
tabIndex:
|
|
394
|
+
tabIndex: D,
|
|
395
395
|
target: null,
|
|
396
396
|
title: null,
|
|
397
397
|
translate: null,
|
|
398
398
|
type: null,
|
|
399
|
-
typeMustMatch:
|
|
399
|
+
typeMustMatch: T,
|
|
400
400
|
useMap: null,
|
|
401
|
-
value:
|
|
402
|
-
width:
|
|
401
|
+
value: E,
|
|
402
|
+
width: D,
|
|
403
403
|
wrap: null,
|
|
404
404
|
writingSuggestions: null,
|
|
405
405
|
align: null,
|
|
406
406
|
aLink: null,
|
|
407
|
-
archive:
|
|
407
|
+
archive: O,
|
|
408
408
|
axis: null,
|
|
409
409
|
background: null,
|
|
410
410
|
bgColor: null,
|
|
411
|
-
border:
|
|
411
|
+
border: D,
|
|
412
412
|
borderColor: null,
|
|
413
|
-
bottomMargin:
|
|
413
|
+
bottomMargin: D,
|
|
414
414
|
cellPadding: null,
|
|
415
415
|
cellSpacing: null,
|
|
416
416
|
char: null,
|
|
@@ -421,54 +421,54 @@ var ce = N({
|
|
|
421
421
|
codeBase: null,
|
|
422
422
|
codeType: null,
|
|
423
423
|
color: null,
|
|
424
|
-
compact:
|
|
425
|
-
declare:
|
|
424
|
+
compact: T,
|
|
425
|
+
declare: T,
|
|
426
426
|
event: null,
|
|
427
427
|
face: null,
|
|
428
428
|
frame: null,
|
|
429
429
|
frameBorder: null,
|
|
430
|
-
hSpace:
|
|
431
|
-
leftMargin:
|
|
430
|
+
hSpace: D,
|
|
431
|
+
leftMargin: D,
|
|
432
432
|
link: null,
|
|
433
433
|
longDesc: null,
|
|
434
434
|
lowSrc: null,
|
|
435
|
-
marginHeight:
|
|
436
|
-
marginWidth:
|
|
437
|
-
noResize:
|
|
438
|
-
noHref:
|
|
439
|
-
noShade:
|
|
440
|
-
noWrap:
|
|
435
|
+
marginHeight: D,
|
|
436
|
+
marginWidth: D,
|
|
437
|
+
noResize: T,
|
|
438
|
+
noHref: T,
|
|
439
|
+
noShade: T,
|
|
440
|
+
noWrap: T,
|
|
441
441
|
object: null,
|
|
442
442
|
profile: null,
|
|
443
443
|
prompt: null,
|
|
444
444
|
rev: null,
|
|
445
|
-
rightMargin:
|
|
445
|
+
rightMargin: D,
|
|
446
446
|
rules: null,
|
|
447
447
|
scheme: null,
|
|
448
|
-
scrolling:
|
|
448
|
+
scrolling: E,
|
|
449
449
|
standby: null,
|
|
450
450
|
summary: null,
|
|
451
451
|
text: null,
|
|
452
|
-
topMargin:
|
|
452
|
+
topMargin: D,
|
|
453
453
|
valueType: null,
|
|
454
454
|
version: null,
|
|
455
455
|
vAlign: null,
|
|
456
456
|
vLink: null,
|
|
457
|
-
vSpace:
|
|
457
|
+
vSpace: D,
|
|
458
458
|
allowTransparency: null,
|
|
459
459
|
autoCorrect: null,
|
|
460
460
|
autoSave: null,
|
|
461
|
-
disablePictureInPicture:
|
|
462
|
-
disableRemotePlayback:
|
|
461
|
+
disablePictureInPicture: T,
|
|
462
|
+
disableRemotePlayback: T,
|
|
463
463
|
prefix: null,
|
|
464
464
|
property: null,
|
|
465
|
-
results:
|
|
465
|
+
results: D,
|
|
466
466
|
security: null,
|
|
467
467
|
unselectable: null
|
|
468
468
|
},
|
|
469
469
|
space: "html",
|
|
470
|
-
transform:
|
|
471
|
-
}),
|
|
470
|
+
transform: ce
|
|
471
|
+
}), ue = M({
|
|
472
472
|
attributes: {
|
|
473
473
|
accentHeight: "accent-height",
|
|
474
474
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -644,29 +644,29 @@ var ce = N({
|
|
|
644
644
|
timelineBegin: "timelinebegin"
|
|
645
645
|
},
|
|
646
646
|
properties: {
|
|
647
|
-
about:
|
|
648
|
-
accentHeight:
|
|
647
|
+
about: A,
|
|
648
|
+
accentHeight: D,
|
|
649
649
|
accumulate: null,
|
|
650
650
|
additive: null,
|
|
651
651
|
alignmentBaseline: null,
|
|
652
|
-
alphabetic:
|
|
653
|
-
amplitude:
|
|
652
|
+
alphabetic: D,
|
|
653
|
+
amplitude: D,
|
|
654
654
|
arabicForm: null,
|
|
655
|
-
ascent:
|
|
655
|
+
ascent: D,
|
|
656
656
|
attributeName: null,
|
|
657
657
|
attributeType: null,
|
|
658
|
-
azimuth:
|
|
658
|
+
azimuth: D,
|
|
659
659
|
bandwidth: null,
|
|
660
660
|
baselineShift: null,
|
|
661
661
|
baseFrequency: null,
|
|
662
662
|
baseProfile: null,
|
|
663
663
|
bbox: null,
|
|
664
664
|
begin: null,
|
|
665
|
-
bias:
|
|
665
|
+
bias: D,
|
|
666
666
|
by: null,
|
|
667
667
|
calcMode: null,
|
|
668
|
-
capHeight:
|
|
669
|
-
className:
|
|
668
|
+
capHeight: D,
|
|
669
|
+
className: O,
|
|
670
670
|
clip: null,
|
|
671
671
|
clipPath: null,
|
|
672
672
|
clipPathUnits: null,
|
|
@@ -686,26 +686,26 @@ var ce = N({
|
|
|
686
686
|
d: null,
|
|
687
687
|
dataType: null,
|
|
688
688
|
defaultAction: null,
|
|
689
|
-
descent:
|
|
690
|
-
diffuseConstant:
|
|
689
|
+
descent: D,
|
|
690
|
+
diffuseConstant: D,
|
|
691
691
|
direction: null,
|
|
692
692
|
display: null,
|
|
693
693
|
dur: null,
|
|
694
|
-
divisor:
|
|
694
|
+
divisor: D,
|
|
695
695
|
dominantBaseline: null,
|
|
696
|
-
download:
|
|
696
|
+
download: T,
|
|
697
697
|
dx: null,
|
|
698
698
|
dy: null,
|
|
699
699
|
edgeMode: null,
|
|
700
700
|
editable: null,
|
|
701
|
-
elevation:
|
|
701
|
+
elevation: D,
|
|
702
702
|
enableBackground: null,
|
|
703
703
|
end: null,
|
|
704
704
|
event: null,
|
|
705
|
-
exponent:
|
|
705
|
+
exponent: D,
|
|
706
706
|
externalResourcesRequired: null,
|
|
707
707
|
fill: null,
|
|
708
|
-
fillOpacity:
|
|
708
|
+
fillOpacity: D,
|
|
709
709
|
fillRule: null,
|
|
710
710
|
filter: null,
|
|
711
711
|
filterRes: null,
|
|
@@ -726,37 +726,37 @@ var ce = N({
|
|
|
726
726
|
from: null,
|
|
727
727
|
fx: null,
|
|
728
728
|
fy: null,
|
|
729
|
-
g1:
|
|
730
|
-
g2:
|
|
731
|
-
glyphName:
|
|
729
|
+
g1: k,
|
|
730
|
+
g2: k,
|
|
731
|
+
glyphName: k,
|
|
732
732
|
glyphOrientationHorizontal: null,
|
|
733
733
|
glyphOrientationVertical: null,
|
|
734
734
|
glyphRef: null,
|
|
735
735
|
gradientTransform: null,
|
|
736
736
|
gradientUnits: null,
|
|
737
737
|
handler: null,
|
|
738
|
-
hanging:
|
|
738
|
+
hanging: D,
|
|
739
739
|
hatchContentUnits: null,
|
|
740
740
|
hatchUnits: null,
|
|
741
741
|
height: null,
|
|
742
742
|
href: null,
|
|
743
743
|
hrefLang: null,
|
|
744
|
-
horizAdvX:
|
|
745
|
-
horizOriginX:
|
|
746
|
-
horizOriginY:
|
|
744
|
+
horizAdvX: D,
|
|
745
|
+
horizOriginX: D,
|
|
746
|
+
horizOriginY: D,
|
|
747
747
|
id: null,
|
|
748
|
-
ideographic:
|
|
748
|
+
ideographic: D,
|
|
749
749
|
imageRendering: null,
|
|
750
750
|
initialVisibility: null,
|
|
751
751
|
in: null,
|
|
752
752
|
in2: null,
|
|
753
|
-
intercept:
|
|
754
|
-
k:
|
|
755
|
-
k1:
|
|
756
|
-
k2:
|
|
757
|
-
k3:
|
|
758
|
-
k4:
|
|
759
|
-
kernelMatrix:
|
|
753
|
+
intercept: D,
|
|
754
|
+
k: D,
|
|
755
|
+
k1: D,
|
|
756
|
+
k2: D,
|
|
757
|
+
k3: D,
|
|
758
|
+
k4: D,
|
|
759
|
+
kernelMatrix: A,
|
|
760
760
|
kernelUnitLength: null,
|
|
761
761
|
keyPoints: null,
|
|
762
762
|
keySplines: null,
|
|
@@ -766,7 +766,7 @@ var ce = N({
|
|
|
766
766
|
lengthAdjust: null,
|
|
767
767
|
letterSpacing: null,
|
|
768
768
|
lightingColor: null,
|
|
769
|
-
limitingConeAngle:
|
|
769
|
+
limitingConeAngle: D,
|
|
770
770
|
local: null,
|
|
771
771
|
markerEnd: null,
|
|
772
772
|
markerMid: null,
|
|
@@ -782,7 +782,7 @@ var ce = N({
|
|
|
782
782
|
media: null,
|
|
783
783
|
mediaCharacterEncoding: null,
|
|
784
784
|
mediaContentEncodings: null,
|
|
785
|
-
mediaSize:
|
|
785
|
+
mediaSize: D,
|
|
786
786
|
mediaTime: null,
|
|
787
787
|
method: null,
|
|
788
788
|
min: null,
|
|
@@ -888,43 +888,43 @@ var ce = N({
|
|
|
888
888
|
origin: null,
|
|
889
889
|
overflow: null,
|
|
890
890
|
overlay: null,
|
|
891
|
-
overlinePosition:
|
|
892
|
-
overlineThickness:
|
|
891
|
+
overlinePosition: D,
|
|
892
|
+
overlineThickness: D,
|
|
893
893
|
paintOrder: null,
|
|
894
894
|
panose1: null,
|
|
895
895
|
path: null,
|
|
896
|
-
pathLength:
|
|
896
|
+
pathLength: D,
|
|
897
897
|
patternContentUnits: null,
|
|
898
898
|
patternTransform: null,
|
|
899
899
|
patternUnits: null,
|
|
900
900
|
phase: null,
|
|
901
|
-
ping:
|
|
901
|
+
ping: O,
|
|
902
902
|
pitch: null,
|
|
903
903
|
playbackOrder: null,
|
|
904
904
|
pointerEvents: null,
|
|
905
905
|
points: null,
|
|
906
|
-
pointsAtX:
|
|
907
|
-
pointsAtY:
|
|
908
|
-
pointsAtZ:
|
|
906
|
+
pointsAtX: D,
|
|
907
|
+
pointsAtY: D,
|
|
908
|
+
pointsAtZ: D,
|
|
909
909
|
preserveAlpha: null,
|
|
910
910
|
preserveAspectRatio: null,
|
|
911
911
|
primitiveUnits: null,
|
|
912
912
|
propagate: null,
|
|
913
|
-
property:
|
|
913
|
+
property: A,
|
|
914
914
|
r: null,
|
|
915
915
|
radius: null,
|
|
916
916
|
referrerPolicy: null,
|
|
917
917
|
refX: null,
|
|
918
918
|
refY: null,
|
|
919
|
-
rel:
|
|
920
|
-
rev:
|
|
919
|
+
rel: A,
|
|
920
|
+
rev: A,
|
|
921
921
|
renderingIntent: null,
|
|
922
922
|
repeatCount: null,
|
|
923
923
|
repeatDur: null,
|
|
924
|
-
requiredExtensions:
|
|
925
|
-
requiredFeatures:
|
|
926
|
-
requiredFonts:
|
|
927
|
-
requiredFormats:
|
|
924
|
+
requiredExtensions: A,
|
|
925
|
+
requiredFeatures: A,
|
|
926
|
+
requiredFonts: A,
|
|
927
|
+
requiredFormats: A,
|
|
928
928
|
resource: null,
|
|
929
929
|
restart: null,
|
|
930
930
|
result: null,
|
|
@@ -937,8 +937,8 @@ var ce = N({
|
|
|
937
937
|
side: null,
|
|
938
938
|
slope: null,
|
|
939
939
|
snapshotTime: null,
|
|
940
|
-
specularConstant:
|
|
941
|
-
specularExponent:
|
|
940
|
+
specularConstant: D,
|
|
941
|
+
specularExponent: D,
|
|
942
942
|
spreadMethod: null,
|
|
943
943
|
spacing: null,
|
|
944
944
|
startOffset: null,
|
|
@@ -948,30 +948,30 @@ var ce = N({
|
|
|
948
948
|
stitchTiles: null,
|
|
949
949
|
stopColor: null,
|
|
950
950
|
stopOpacity: null,
|
|
951
|
-
strikethroughPosition:
|
|
952
|
-
strikethroughThickness:
|
|
951
|
+
strikethroughPosition: D,
|
|
952
|
+
strikethroughThickness: D,
|
|
953
953
|
string: null,
|
|
954
954
|
stroke: null,
|
|
955
|
-
strokeDashArray:
|
|
955
|
+
strokeDashArray: A,
|
|
956
956
|
strokeDashOffset: null,
|
|
957
957
|
strokeLineCap: null,
|
|
958
958
|
strokeLineJoin: null,
|
|
959
|
-
strokeMiterLimit:
|
|
960
|
-
strokeOpacity:
|
|
959
|
+
strokeMiterLimit: D,
|
|
960
|
+
strokeOpacity: D,
|
|
961
961
|
strokeWidth: null,
|
|
962
962
|
style: null,
|
|
963
|
-
surfaceScale:
|
|
963
|
+
surfaceScale: D,
|
|
964
964
|
syncBehavior: null,
|
|
965
965
|
syncBehaviorDefault: null,
|
|
966
966
|
syncMaster: null,
|
|
967
967
|
syncTolerance: null,
|
|
968
968
|
syncToleranceDefault: null,
|
|
969
|
-
systemLanguage:
|
|
970
|
-
tabIndex:
|
|
969
|
+
systemLanguage: A,
|
|
970
|
+
tabIndex: D,
|
|
971
971
|
tableValues: null,
|
|
972
972
|
target: null,
|
|
973
|
-
targetX:
|
|
974
|
-
targetY:
|
|
973
|
+
targetX: D,
|
|
974
|
+
targetY: D,
|
|
975
975
|
textAnchor: null,
|
|
976
976
|
textDecoration: null,
|
|
977
977
|
textRendering: null,
|
|
@@ -980,28 +980,28 @@ var ce = N({
|
|
|
980
980
|
title: null,
|
|
981
981
|
transformBehavior: null,
|
|
982
982
|
type: null,
|
|
983
|
-
typeOf:
|
|
983
|
+
typeOf: A,
|
|
984
984
|
to: null,
|
|
985
985
|
transform: null,
|
|
986
986
|
transformOrigin: null,
|
|
987
987
|
u1: null,
|
|
988
988
|
u2: null,
|
|
989
|
-
underlinePosition:
|
|
990
|
-
underlineThickness:
|
|
989
|
+
underlinePosition: D,
|
|
990
|
+
underlineThickness: D,
|
|
991
991
|
unicode: null,
|
|
992
992
|
unicodeBidi: null,
|
|
993
993
|
unicodeRange: null,
|
|
994
|
-
unitsPerEm:
|
|
994
|
+
unitsPerEm: D,
|
|
995
995
|
values: null,
|
|
996
|
-
vAlphabetic:
|
|
997
|
-
vMathematical:
|
|
996
|
+
vAlphabetic: D,
|
|
997
|
+
vMathematical: D,
|
|
998
998
|
vectorEffect: null,
|
|
999
|
-
vHanging:
|
|
1000
|
-
vIdeographic:
|
|
999
|
+
vHanging: D,
|
|
1000
|
+
vIdeographic: D,
|
|
1001
1001
|
version: null,
|
|
1002
|
-
vertAdvY:
|
|
1003
|
-
vertOriginX:
|
|
1004
|
-
vertOriginY:
|
|
1002
|
+
vertAdvY: D,
|
|
1003
|
+
vertOriginX: D,
|
|
1004
|
+
vertOriginY: D,
|
|
1005
1005
|
viewBox: null,
|
|
1006
1006
|
viewTarget: null,
|
|
1007
1007
|
visibility: null,
|
|
@@ -1013,7 +1013,7 @@ var ce = N({
|
|
|
1013
1013
|
x1: null,
|
|
1014
1014
|
x2: null,
|
|
1015
1015
|
xChannelSelector: null,
|
|
1016
|
-
xHeight:
|
|
1016
|
+
xHeight: D,
|
|
1017
1017
|
y: null,
|
|
1018
1018
|
y1: null,
|
|
1019
1019
|
y2: null,
|
|
@@ -1022,8 +1022,8 @@ var ce = N({
|
|
|
1022
1022
|
zoomAndPan: null
|
|
1023
1023
|
},
|
|
1024
1024
|
space: "svg",
|
|
1025
|
-
transform:
|
|
1026
|
-
}),
|
|
1025
|
+
transform: se
|
|
1026
|
+
}), de = M({
|
|
1027
1027
|
properties: {
|
|
1028
1028
|
xLinkActuate: null,
|
|
1029
1029
|
xLinkArcRole: null,
|
|
@@ -1037,15 +1037,15 @@ var ce = N({
|
|
|
1037
1037
|
transform(e, t) {
|
|
1038
1038
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
1039
1039
|
}
|
|
1040
|
-
}),
|
|
1040
|
+
}), fe = M({
|
|
1041
1041
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1042
1042
|
properties: {
|
|
1043
1043
|
xmlnsXLink: null,
|
|
1044
1044
|
xmlns: null
|
|
1045
1045
|
},
|
|
1046
1046
|
space: "xmlns",
|
|
1047
|
-
transform:
|
|
1048
|
-
}),
|
|
1047
|
+
transform: ce
|
|
1048
|
+
}), pe = M({
|
|
1049
1049
|
properties: {
|
|
1050
1050
|
xmlBase: null,
|
|
1051
1051
|
xmlLang: null,
|
|
@@ -1055,7 +1055,7 @@ var ce = N({
|
|
|
1055
1055
|
transform(e, t) {
|
|
1056
1056
|
return "xml:" + t.slice(3).toLowerCase();
|
|
1057
1057
|
}
|
|
1058
|
-
}),
|
|
1058
|
+
}), me = {
|
|
1059
1059
|
classId: "classID",
|
|
1060
1060
|
dataType: "datatype",
|
|
1061
1061
|
itemId: "itemID",
|
|
@@ -1073,54 +1073,54 @@ var ce = N({
|
|
|
1073
1073
|
xLinkTitle: "xlinkTitle",
|
|
1074
1074
|
xLinkType: "xlinkType",
|
|
1075
1075
|
xmlnsXLink: "xmlnsXlink"
|
|
1076
|
-
},
|
|
1077
|
-
function
|
|
1078
|
-
let n =
|
|
1076
|
+
}, he = /[A-Z]/g, ge = /-[a-z]/g, _e = /^data[-\w.:]+$/i;
|
|
1077
|
+
function ve(e, t) {
|
|
1078
|
+
let n = S(t), r = t, i = C;
|
|
1079
1079
|
if (n in e.normal) return e.property[e.normal[n]];
|
|
1080
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
1080
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && _e.test(t)) {
|
|
1081
1081
|
if (t.charAt(4) === "-") {
|
|
1082
|
-
let e = t.slice(5).replace(
|
|
1082
|
+
let e = t.slice(5).replace(ge, be);
|
|
1083
1083
|
r = "data" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
1084
1084
|
} else {
|
|
1085
1085
|
let e = t.slice(4);
|
|
1086
|
-
if (!
|
|
1087
|
-
let n = e.replace(
|
|
1086
|
+
if (!ge.test(e)) {
|
|
1087
|
+
let n = e.replace(he, ye);
|
|
1088
1088
|
n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
i =
|
|
1091
|
+
i = ie;
|
|
1092
1092
|
}
|
|
1093
1093
|
return new i(r, t);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function ye(e) {
|
|
1096
1096
|
return "-" + e.toLowerCase();
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function be(e) {
|
|
1099
1099
|
return e.charAt(1).toUpperCase();
|
|
1100
1100
|
}
|
|
1101
1101
|
//#endregion
|
|
1102
1102
|
//#region ../../node_modules/property-information/index.js
|
|
1103
|
-
var
|
|
1104
|
-
|
|
1105
|
-
ce,
|
|
1106
|
-
ue,
|
|
1107
|
-
de,
|
|
1108
|
-
fe
|
|
1109
|
-
], "html"), P = S([
|
|
1110
|
-
ae,
|
|
1103
|
+
var xe = x([
|
|
1104
|
+
oe,
|
|
1111
1105
|
le,
|
|
1106
|
+
de,
|
|
1107
|
+
fe,
|
|
1108
|
+
pe
|
|
1109
|
+
], "html"), N = x([
|
|
1110
|
+
oe,
|
|
1112
1111
|
ue,
|
|
1113
1112
|
de,
|
|
1114
|
-
fe
|
|
1113
|
+
fe,
|
|
1114
|
+
pe
|
|
1115
1115
|
], "svg");
|
|
1116
1116
|
//#endregion
|
|
1117
1117
|
//#region ../../node_modules/space-separated-tokens/index.js
|
|
1118
|
-
function
|
|
1118
|
+
function Se(e) {
|
|
1119
1119
|
return e.join(" ").trim();
|
|
1120
1120
|
}
|
|
1121
1121
|
//#endregion
|
|
1122
1122
|
//#region ../../node_modules/inline-style-parser/cjs/index.js
|
|
1123
|
-
var
|
|
1123
|
+
var Ce = /* @__PURE__ */ n(((e, t) => {
|
|
1124
1124
|
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g, u = "\n", d = "/", f = "*", p = "", m = "comment", h = "declaration";
|
|
1125
1125
|
function g(e, t) {
|
|
1126
1126
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
@@ -1139,40 +1139,40 @@ var Se = /* @__PURE__ */ n(((e, t) => {
|
|
|
1139
1139
|
column: g
|
|
1140
1140
|
};
|
|
1141
1141
|
return function(t) {
|
|
1142
|
-
return t.position = new
|
|
1142
|
+
return t.position = new ee(e), S(), t;
|
|
1143
1143
|
};
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function ee(e) {
|
|
1146
1146
|
this.start = e, this.end = {
|
|
1147
1147
|
line: l,
|
|
1148
1148
|
column: g
|
|
1149
1149
|
}, this.source = t.source;
|
|
1150
1150
|
}
|
|
1151
|
-
|
|
1152
|
-
function
|
|
1151
|
+
ee.prototype.content = e;
|
|
1152
|
+
function b(n) {
|
|
1153
1153
|
var r = /* @__PURE__ */ Error(t.source + ":" + l + ":" + g + ": " + n);
|
|
1154
1154
|
if (r.reason = n, r.filename = t.source, r.line = l, r.column = g, r.source = e, !t.silent) throw r;
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function x(t) {
|
|
1157
1157
|
var n = t.exec(e);
|
|
1158
1158
|
if (n) {
|
|
1159
1159
|
var r = n[0];
|
|
1160
1160
|
return v(r), e = e.slice(r.length), n;
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1164
|
-
|
|
1163
|
+
function S() {
|
|
1164
|
+
x(i);
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function C(e) {
|
|
1167
1167
|
var t;
|
|
1168
|
-
for (e ||= []; t =
|
|
1168
|
+
for (e ||= []; t = w();) t !== !1 && e.push(t);
|
|
1169
1169
|
return e;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function w() {
|
|
1172
1172
|
var t = y();
|
|
1173
1173
|
if (!(d != e.charAt(0) || f != e.charAt(1))) {
|
|
1174
1174
|
for (var n = 2; p != e.charAt(n) && (f != e.charAt(n) || d != e.charAt(n + 1));) ++n;
|
|
1175
|
-
if (n += 2, p === e.charAt(n - 1)) return
|
|
1175
|
+
if (n += 2, p === e.charAt(n - 1)) return b("End of comment missing");
|
|
1176
1176
|
var r = e.slice(2, n - 2);
|
|
1177
1177
|
return g += 2, v(r), e = e.slice(n), g += 2, t({
|
|
1178
1178
|
type: m,
|
|
@@ -1180,36 +1180,36 @@ var Se = /* @__PURE__ */ n(((e, t) => {
|
|
|
1180
1180
|
});
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
var e = y(), t =
|
|
1183
|
+
function te() {
|
|
1184
|
+
var e = y(), t = x(a);
|
|
1185
1185
|
if (t) {
|
|
1186
|
-
if (
|
|
1187
|
-
var r =
|
|
1186
|
+
if (w(), !x(o)) return b("property missing ':'");
|
|
1187
|
+
var r = x(s), i = e({
|
|
1188
1188
|
type: h,
|
|
1189
1189
|
property: _(t[0].replace(n, p)),
|
|
1190
1190
|
value: r ? _(r[0].replace(n, p)) : p
|
|
1191
1191
|
});
|
|
1192
|
-
return
|
|
1192
|
+
return x(c), i;
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function T() {
|
|
1196
1196
|
var e = [];
|
|
1197
|
-
|
|
1198
|
-
for (var t; t =
|
|
1197
|
+
C(e);
|
|
1198
|
+
for (var t; t = te();) t !== !1 && (e.push(t), C(e));
|
|
1199
1199
|
return e;
|
|
1200
1200
|
}
|
|
1201
|
-
return
|
|
1201
|
+
return S(), T();
|
|
1202
1202
|
}
|
|
1203
1203
|
function _(e) {
|
|
1204
1204
|
return e ? e.replace(l, p) : p;
|
|
1205
1205
|
}
|
|
1206
1206
|
t.exports = g;
|
|
1207
|
-
})),
|
|
1207
|
+
})), we = /* @__PURE__ */ n(((e) => {
|
|
1208
1208
|
var t = e && e.__importDefault || function(e) {
|
|
1209
1209
|
return e && e.__esModule ? e : { default: e };
|
|
1210
1210
|
};
|
|
1211
1211
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
|
|
1212
|
-
var n = t(
|
|
1212
|
+
var n = t(Ce());
|
|
1213
1213
|
function r(e, t) {
|
|
1214
1214
|
let r = null;
|
|
1215
1215
|
if (!e || typeof e != "string") return r;
|
|
@@ -1220,7 +1220,7 @@ var Se = /* @__PURE__ */ n(((e, t) => {
|
|
|
1220
1220
|
a ? t(n, i, e) : i && (r ||= {}, r[n] = i);
|
|
1221
1221
|
}), r;
|
|
1222
1222
|
}
|
|
1223
|
-
})),
|
|
1223
|
+
})), Te = /* @__PURE__ */ n(((e) => {
|
|
1224
1224
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.camelCase = void 0;
|
|
1225
1225
|
var t = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, r = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, a = /^-(ms)-/, o = function(e) {
|
|
1226
1226
|
return !e || r.test(e) || t.test(e);
|
|
@@ -1232,10 +1232,10 @@ var Se = /* @__PURE__ */ n(((e, t) => {
|
|
|
1232
1232
|
e.camelCase = function(e, t) {
|
|
1233
1233
|
return t === void 0 && (t = {}), o(e) ? e : (e = e.toLowerCase(), e = t.reactCompat ? e.replace(a, c) : e.replace(i, c), e.replace(n, s));
|
|
1234
1234
|
};
|
|
1235
|
-
})),
|
|
1235
|
+
})), Ee = /* @__PURE__ */ n(((e, t) => {
|
|
1236
1236
|
var n = (e && e.__importDefault || function(e) {
|
|
1237
1237
|
return e && e.__esModule ? e : { default: e };
|
|
1238
|
-
})(
|
|
1238
|
+
})(we()), r = Te();
|
|
1239
1239
|
function i(e, t) {
|
|
1240
1240
|
var i = {};
|
|
1241
1241
|
return !e || typeof e != "string" || (0, n.default)(e, function(e, n) {
|
|
@@ -1243,8 +1243,8 @@ var Se = /* @__PURE__ */ n(((e, t) => {
|
|
|
1243
1243
|
}), i;
|
|
1244
1244
|
}
|
|
1245
1245
|
i.default = i, t.exports = i;
|
|
1246
|
-
})),
|
|
1247
|
-
function
|
|
1246
|
+
})), De = Oe("start");
|
|
1247
|
+
function Oe(e) {
|
|
1248
1248
|
return t;
|
|
1249
1249
|
function t(t) {
|
|
1250
1250
|
let n = t && t.position && t.position[e] || {};
|
|
@@ -1257,21 +1257,21 @@ function De(e) {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
//#endregion
|
|
1259
1259
|
//#region ../../node_modules/unist-util-stringify-position/lib/index.js
|
|
1260
|
-
function Oe(e) {
|
|
1261
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Ae(e.position) : "start" in e || "end" in e ? Ae(e) : "line" in e || "column" in e ? ke(e) : "";
|
|
1262
|
-
}
|
|
1263
1260
|
function ke(e) {
|
|
1264
|
-
return
|
|
1261
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? je(e.position) : "start" in e || "end" in e ? je(e) : "line" in e || "column" in e ? Ae(e) : "";
|
|
1265
1262
|
}
|
|
1266
1263
|
function Ae(e) {
|
|
1267
|
-
return
|
|
1264
|
+
return Me(e && e.line) + ":" + Me(e && e.column);
|
|
1268
1265
|
}
|
|
1269
1266
|
function je(e) {
|
|
1267
|
+
return Ae(e && e.start) + "-" + Ae(e && e.end);
|
|
1268
|
+
}
|
|
1269
|
+
function Me(e) {
|
|
1270
1270
|
return e && typeof e == "number" ? e : 1;
|
|
1271
1271
|
}
|
|
1272
1272
|
//#endregion
|
|
1273
1273
|
//#region ../../node_modules/vfile-message/lib/index.js
|
|
1274
|
-
var
|
|
1274
|
+
var P = class extends Error {
|
|
1275
1275
|
constructor(e, t, n) {
|
|
1276
1276
|
super(), typeof t == "string" && (n = t, t = void 0);
|
|
1277
1277
|
let r = "", i = {}, a = !1;
|
|
@@ -1287,29 +1287,29 @@ var F = class extends Error {
|
|
|
1287
1287
|
e && (i.place = e.position);
|
|
1288
1288
|
}
|
|
1289
1289
|
let o = i.place && "start" in i.place ? i.place.start : i.place;
|
|
1290
|
-
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name =
|
|
1290
|
+
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file = "", this.message = r, this.line = o ? o.line : void 0, this.name = ke(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = a && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
1291
1291
|
}
|
|
1292
1292
|
};
|
|
1293
|
-
|
|
1293
|
+
P.prototype.file = "", P.prototype.name = "", P.prototype.reason = "", P.prototype.message = "", P.prototype.stack = "", P.prototype.column = void 0, P.prototype.line = void 0, P.prototype.ancestors = void 0, P.prototype.cause = void 0, P.prototype.fatal = void 0, P.prototype.place = void 0, P.prototype.ruleId = void 0, P.prototype.source = void 0;
|
|
1294
1294
|
//#endregion
|
|
1295
1295
|
//#region ../../node_modules/hast-util-to-jsx-runtime/lib/index.js
|
|
1296
|
-
var
|
|
1296
|
+
var Ne = /* @__PURE__ */ e(Ee(), 1), Pe = {}.hasOwnProperty, Fe = /* @__PURE__ */ new Map(), Ie = /[A-Z]/g, Le = new Set([
|
|
1297
1297
|
"table",
|
|
1298
1298
|
"tbody",
|
|
1299
1299
|
"thead",
|
|
1300
1300
|
"tfoot",
|
|
1301
1301
|
"tr"
|
|
1302
|
-
]),
|
|
1303
|
-
function
|
|
1302
|
+
]), Re = new Set(["td", "th"]), ze = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1303
|
+
function Be(e, t) {
|
|
1304
1304
|
if (!t || t.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
|
|
1305
1305
|
let n = t.filePath || void 0, r;
|
|
1306
1306
|
if (t.development) {
|
|
1307
1307
|
if (typeof t.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
|
|
1308
|
-
r =
|
|
1308
|
+
r = Ze(n, t.jsxDEV);
|
|
1309
1309
|
} else {
|
|
1310
1310
|
if (typeof t.jsx != "function") throw TypeError("Expected `jsx` in production options");
|
|
1311
1311
|
if (typeof t.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
|
|
1312
|
-
r =
|
|
1312
|
+
r = Xe(n, t.jsx, t.jsxs);
|
|
1313
1313
|
}
|
|
1314
1314
|
let i = {
|
|
1315
1315
|
Fragment: t.Fragment,
|
|
@@ -1322,72 +1322,72 @@ function ze(e, t) {
|
|
|
1322
1322
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1323
1323
|
passKeys: t.passKeys !== !1,
|
|
1324
1324
|
passNode: t.passNode || !1,
|
|
1325
|
-
schema: t.space === "svg" ?
|
|
1325
|
+
schema: t.space === "svg" ? N : xe,
|
|
1326
1326
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1327
1327
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1328
|
-
}, a =
|
|
1328
|
+
}, a = Ve(i, e, void 0);
|
|
1329
1329
|
return a && typeof a != "string" ? a : i.create(e, i.Fragment, { children: a || void 0 }, void 0);
|
|
1330
1330
|
}
|
|
1331
|
-
function Be(e, t, n) {
|
|
1332
|
-
if (t.type === "element") return Ve(e, t, n);
|
|
1333
|
-
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return He(e, t);
|
|
1334
|
-
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return We(e, t, n);
|
|
1335
|
-
if (t.type === "mdxjsEsm") return Ue(e, t);
|
|
1336
|
-
if (t.type === "root") return Ge(e, t, n);
|
|
1337
|
-
if (t.type === "text") return Ke(e, t);
|
|
1338
|
-
}
|
|
1339
1331
|
function Ve(e, t, n) {
|
|
1332
|
+
if (t.type === "element") return He(e, t, n);
|
|
1333
|
+
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return Ue(e, t);
|
|
1334
|
+
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return Ge(e, t, n);
|
|
1335
|
+
if (t.type === "mdxjsEsm") return We(e, t);
|
|
1336
|
+
if (t.type === "root") return Ke(e, t, n);
|
|
1337
|
+
if (t.type === "text") return qe(e, t);
|
|
1338
|
+
}
|
|
1339
|
+
function He(e, t, n) {
|
|
1340
1340
|
let r = e.schema, i = r;
|
|
1341
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
1342
|
-
let a =
|
|
1343
|
-
return
|
|
1341
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = N, e.schema = i), e.ancestors.push(t);
|
|
1342
|
+
let a = rt(e, t.tagName, !1), o = Qe(e, t), s = et(e, t);
|
|
1343
|
+
return Le.has(t.tagName) && (s = s.filter(function(e) {
|
|
1344
1344
|
return typeof e == "string" ? !y(e) : !0;
|
|
1345
|
-
})),
|
|
1345
|
+
})), Je(e, o, a, t), Ye(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Ue(e, t) {
|
|
1348
1348
|
if (t.data && t.data.estree && e.evaluater) {
|
|
1349
1349
|
let n = t.data.estree.body[0];
|
|
1350
1350
|
return n.type, e.evaluater.evaluateExpression(n.expression);
|
|
1351
1351
|
}
|
|
1352
|
-
|
|
1352
|
+
F(e, t.position);
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function We(e, t) {
|
|
1355
1355
|
if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
|
|
1356
|
-
|
|
1356
|
+
F(e, t.position);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function Ge(e, t, n) {
|
|
1359
1359
|
let r = e.schema, i = r;
|
|
1360
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
1361
|
-
let a = t.name === null ? e.Fragment :
|
|
1362
|
-
return
|
|
1360
|
+
t.name === "svg" && r.space === "html" && (i = N, e.schema = i), e.ancestors.push(t);
|
|
1361
|
+
let a = t.name === null ? e.Fragment : rt(e, t.name, !0), o = $e(e, t), s = et(e, t);
|
|
1362
|
+
return Je(e, o, a, t), Ye(o, s), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Ke(e, t, n) {
|
|
1365
1365
|
let r = {};
|
|
1366
|
-
return
|
|
1366
|
+
return Ye(r, et(e, t)), e.create(t, e.Fragment, r, n);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function qe(e, t) {
|
|
1369
1369
|
return t.value;
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function Je(e, t, n, r) {
|
|
1372
1372
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function Ye(e, t) {
|
|
1375
1375
|
if (t.length > 0) {
|
|
1376
1376
|
let n = t.length > 1 ? t : t[0];
|
|
1377
1377
|
n && (e.children = n);
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function Xe(e, t, n) {
|
|
1381
1381
|
return r;
|
|
1382
1382
|
function r(e, r, i, a) {
|
|
1383
1383
|
let o = Array.isArray(i.children) ? n : t;
|
|
1384
1384
|
return a ? o(r, i, a) : o(r, i);
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function Ze(e, t) {
|
|
1388
1388
|
return n;
|
|
1389
1389
|
function n(n, r, i, a) {
|
|
1390
|
-
let o = Array.isArray(i.children), s =
|
|
1390
|
+
let o = Array.isArray(i.children), s = De(n);
|
|
1391
1391
|
return t(r, i, a, o, {
|
|
1392
1392
|
columnNumber: s ? s.column - 1 : void 0,
|
|
1393
1393
|
fileName: e,
|
|
@@ -1395,13 +1395,13 @@ function Xe(e, t) {
|
|
|
1395
1395
|
}, void 0);
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Qe(e, t) {
|
|
1399
1399
|
let n = {}, r, i;
|
|
1400
|
-
for (i in t.properties) if (i !== "children" &&
|
|
1401
|
-
let a =
|
|
1400
|
+
for (i in t.properties) if (i !== "children" && Pe.call(t.properties, i)) {
|
|
1401
|
+
let a = tt(e, i, t.properties[i]);
|
|
1402
1402
|
if (a) {
|
|
1403
1403
|
let [i, o] = a;
|
|
1404
|
-
e.tableCellAlignToStyle && i === "align" && typeof o == "string" &&
|
|
1404
|
+
e.tableCellAlignToStyle && i === "align" && typeof o == "string" && Re.has(t.tagName) ? r = o : n[i] = o;
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
1407
|
if (r) {
|
|
@@ -1410,7 +1410,7 @@ function Ze(e, t) {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
return n;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function $e(e, t) {
|
|
1414
1414
|
let n = {};
|
|
1415
1415
|
for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
|
|
1416
1416
|
let t = r.data.estree.body[0];
|
|
@@ -1419,20 +1419,20 @@ function Qe(e, t) {
|
|
|
1419
1419
|
i.type;
|
|
1420
1420
|
let a = i.properties[0];
|
|
1421
1421
|
a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
|
|
1422
|
-
} else
|
|
1422
|
+
} else F(e, t.position);
|
|
1423
1423
|
else {
|
|
1424
1424
|
let i = r.name, a;
|
|
1425
1425
|
if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
|
|
1426
1426
|
let t = r.value.data.estree.body[0];
|
|
1427
1427
|
t.type, a = e.evaluater.evaluateExpression(t.expression);
|
|
1428
|
-
} else
|
|
1428
|
+
} else F(e, t.position);
|
|
1429
1429
|
else a = r.value === null ? !0 : r.value;
|
|
1430
1430
|
n[i] = a;
|
|
1431
1431
|
}
|
|
1432
1432
|
return n;
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1434
|
+
function et(e, t) {
|
|
1435
|
+
let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : Fe;
|
|
1436
1436
|
for (; ++r < t.children.length;) {
|
|
1437
1437
|
let a = t.children[r], o;
|
|
1438
1438
|
if (e.passKeys) {
|
|
@@ -1442,36 +1442,36 @@ function $e(e, t) {
|
|
|
1442
1442
|
o = e + "-" + t, i.set(e, t + 1);
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
|
-
let s =
|
|
1445
|
+
let s = Ve(e, a, o);
|
|
1446
1446
|
s !== void 0 && n.push(s);
|
|
1447
1447
|
}
|
|
1448
1448
|
return n;
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1451
|
-
let r =
|
|
1450
|
+
function tt(e, t, n) {
|
|
1451
|
+
let r = ve(e.schema, t);
|
|
1452
1452
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1453
|
-
if (Array.isArray(n) && (n = r.commaSeparated ? p(n) :
|
|
1454
|
-
let t = typeof n == "object" ? n :
|
|
1455
|
-
return e.stylePropertyNameCase === "css" && (t =
|
|
1453
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? p(n) : Se(n)), r.property === "style") {
|
|
1454
|
+
let t = typeof n == "object" ? n : nt(e, String(n));
|
|
1455
|
+
return e.stylePropertyNameCase === "css" && (t = it(t)), ["style", t];
|
|
1456
1456
|
}
|
|
1457
|
-
return [e.elementAttributeNameCase === "react" && r.space ?
|
|
1457
|
+
return [e.elementAttributeNameCase === "react" && r.space ? me[r.property] || r.property : r.attribute, n];
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function nt(e, t) {
|
|
1461
1461
|
try {
|
|
1462
|
-
return (0,
|
|
1462
|
+
return (0, Ne.default)(t, { reactCompat: !0 });
|
|
1463
1463
|
} catch (t) {
|
|
1464
1464
|
if (e.ignoreInvalidStyle) return {};
|
|
1465
|
-
let n = t, r = new
|
|
1465
|
+
let n = t, r = new P("Cannot parse `style` attribute", {
|
|
1466
1466
|
ancestors: e.ancestors,
|
|
1467
1467
|
cause: n,
|
|
1468
1468
|
ruleId: "style",
|
|
1469
1469
|
source: "hast-util-to-jsx-runtime"
|
|
1470
1470
|
});
|
|
1471
|
-
throw r.file = e.filePath || void 0, r.url =
|
|
1471
|
+
throw r.file = e.filePath || void 0, r.url = ze + "#cannot-parse-style-attribute", r;
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function rt(e, t, n) {
|
|
1475
1475
|
let r;
|
|
1476
1476
|
if (!n) r = {
|
|
1477
1477
|
type: "Literal",
|
|
@@ -1505,89 +1505,131 @@ function nt(e, t, n) {
|
|
|
1505
1505
|
};
|
|
1506
1506
|
if (r.type === "Literal") {
|
|
1507
1507
|
let t = r.value;
|
|
1508
|
-
return
|
|
1508
|
+
return Pe.call(e.components, t) ? e.components[t] : t;
|
|
1509
1509
|
}
|
|
1510
1510
|
if (e.evaluater) return e.evaluater.evaluateExpression(r);
|
|
1511
|
-
|
|
1511
|
+
F(e);
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
let n = new
|
|
1513
|
+
function F(e, t) {
|
|
1514
|
+
let n = new P("Cannot handle MDX estrees without `createEvaluater`", {
|
|
1515
1515
|
ancestors: e.ancestors,
|
|
1516
1516
|
place: t,
|
|
1517
1517
|
ruleId: "mdx-estree",
|
|
1518
1518
|
source: "hast-util-to-jsx-runtime"
|
|
1519
1519
|
});
|
|
1520
|
-
throw n.file = e.filePath || void 0, n.url =
|
|
1520
|
+
throw n.file = e.filePath || void 0, n.url = ze + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function it(e) {
|
|
1523
1523
|
let t = {}, n;
|
|
1524
|
-
for (n in e)
|
|
1524
|
+
for (n in e) Pe.call(e, n) && (t[at(n)] = e[n]);
|
|
1525
1525
|
return t;
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1528
|
-
let t = e.replace(
|
|
1527
|
+
function at(e) {
|
|
1528
|
+
let t = e.replace(Ie, ot);
|
|
1529
1529
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function ot(e) {
|
|
1532
1532
|
return "-" + e.toLowerCase();
|
|
1533
1533
|
}
|
|
1534
1534
|
//#endregion
|
|
1535
|
+
//#region ../../node_modules/dequal/dist/index.mjs
|
|
1536
|
+
var st = Object.prototype.hasOwnProperty;
|
|
1537
|
+
function ct(e, t, n) {
|
|
1538
|
+
for (n of e.keys()) if (lt(n, t)) return n;
|
|
1539
|
+
}
|
|
1540
|
+
function lt(e, t) {
|
|
1541
|
+
var n, r, i;
|
|
1542
|
+
if (e === t) return !0;
|
|
1543
|
+
if (e && t && (n = e.constructor) === t.constructor) {
|
|
1544
|
+
if (n === Date) return e.getTime() === t.getTime();
|
|
1545
|
+
if (n === RegExp) return e.toString() === t.toString();
|
|
1546
|
+
if (n === Array) {
|
|
1547
|
+
if ((r = e.length) === t.length) for (; r-- && lt(e[r], t[r]););
|
|
1548
|
+
return r === -1;
|
|
1549
|
+
}
|
|
1550
|
+
if (n === Set) {
|
|
1551
|
+
if (e.size !== t.size) return !1;
|
|
1552
|
+
for (r of e) if (i = r, i && typeof i == "object" && (i = ct(t, i), !i) || !t.has(i)) return !1;
|
|
1553
|
+
return !0;
|
|
1554
|
+
}
|
|
1555
|
+
if (n === Map) {
|
|
1556
|
+
if (e.size !== t.size) return !1;
|
|
1557
|
+
for (r of e) if (i = r[0], i && typeof i == "object" && (i = ct(t, i), !i) || !lt(r[1], t.get(i))) return !1;
|
|
1558
|
+
return !0;
|
|
1559
|
+
}
|
|
1560
|
+
if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
|
|
1561
|
+
else if (n === DataView) {
|
|
1562
|
+
if ((r = e.byteLength) === t.byteLength) for (; r-- && e.getInt8(r) === t.getInt8(r););
|
|
1563
|
+
return r === -1;
|
|
1564
|
+
}
|
|
1565
|
+
if (ArrayBuffer.isView(e)) {
|
|
1566
|
+
if ((r = e.byteLength) === t.byteLength) for (; r-- && e[r] === t[r];);
|
|
1567
|
+
return r === -1;
|
|
1568
|
+
}
|
|
1569
|
+
if (!n || typeof e == "object") {
|
|
1570
|
+
for (n in r = 0, e) if (st.call(e, n) && ++r && !st.call(t, n) || !(n in t) || !lt(e[n], t[n])) return !1;
|
|
1571
|
+
return Object.keys(t).length === r;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
return e !== e && t !== t;
|
|
1575
|
+
}
|
|
1576
|
+
//#endregion
|
|
1535
1577
|
//#region ../../node_modules/shiki/dist/chunk-CtajNgzt.mjs
|
|
1536
|
-
var
|
|
1578
|
+
var ut = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, ft = Object.getOwnPropertyNames, pt = Object.prototype.hasOwnProperty, mt = (e, t) => {
|
|
1537
1579
|
let n = {};
|
|
1538
|
-
for (var r in e)
|
|
1580
|
+
for (var r in e) ut(n, r, {
|
|
1539
1581
|
get: e[r],
|
|
1540
1582
|
enumerable: !0
|
|
1541
1583
|
});
|
|
1542
|
-
return t ||
|
|
1543
|
-
},
|
|
1544
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
1584
|
+
return t || ut(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
1585
|
+
}, ht = (e, t, n, r) => {
|
|
1586
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = ft(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !pt.call(e, s) && s !== n && ut(e, s, {
|
|
1545
1587
|
get: ((e) => t[e]).bind(null, s),
|
|
1546
|
-
enumerable: !(r =
|
|
1588
|
+
enumerable: !(r = dt(t, s)) || r.enumerable
|
|
1547
1589
|
});
|
|
1548
1590
|
return e;
|
|
1549
|
-
},
|
|
1591
|
+
}, gt = (e, t, n) => (ht(e, t, "default"), n && ht(n, t, "default")), I = class extends Error {
|
|
1550
1592
|
constructor(e) {
|
|
1551
1593
|
super(e), this.name = "ShikiError";
|
|
1552
1594
|
}
|
|
1553
|
-
},
|
|
1595
|
+
}, L = class extends Error {
|
|
1554
1596
|
constructor(e) {
|
|
1555
1597
|
super(e), this.name = "ShikiError";
|
|
1556
1598
|
}
|
|
1557
1599
|
};
|
|
1558
1600
|
//#endregion
|
|
1559
1601
|
//#region ../../node_modules/@shikijs/vscode-textmate/dist/index.js
|
|
1560
|
-
function
|
|
1561
|
-
return
|
|
1602
|
+
function _t(e) {
|
|
1603
|
+
return vt(e);
|
|
1562
1604
|
}
|
|
1563
|
-
function
|
|
1564
|
-
return Array.isArray(e) ?
|
|
1605
|
+
function vt(e) {
|
|
1606
|
+
return Array.isArray(e) ? yt(e) : e instanceof RegExp ? e : typeof e == "object" ? bt(e) : e;
|
|
1565
1607
|
}
|
|
1566
|
-
function
|
|
1608
|
+
function yt(e) {
|
|
1567
1609
|
let t = [];
|
|
1568
|
-
for (let n = 0, r = e.length; n < r; n++) t[n] =
|
|
1610
|
+
for (let n = 0, r = e.length; n < r; n++) t[n] = vt(e[n]);
|
|
1569
1611
|
return t;
|
|
1570
1612
|
}
|
|
1571
|
-
function
|
|
1613
|
+
function bt(e) {
|
|
1572
1614
|
let t = {};
|
|
1573
|
-
for (let n in e) t[n] =
|
|
1615
|
+
for (let n in e) t[n] = vt(e[n]);
|
|
1574
1616
|
return t;
|
|
1575
1617
|
}
|
|
1576
|
-
function
|
|
1618
|
+
function xt(e, ...t) {
|
|
1577
1619
|
return t.forEach((t) => {
|
|
1578
1620
|
for (let n in t) e[n] = t[n];
|
|
1579
1621
|
}), e;
|
|
1580
1622
|
}
|
|
1581
|
-
function
|
|
1623
|
+
function St(e) {
|
|
1582
1624
|
let t = ~e.lastIndexOf("/") || ~e.lastIndexOf("\\");
|
|
1583
|
-
return t === 0 ? e : ~t === e.length - 1 ?
|
|
1625
|
+
return t === 0 ? e : ~t === e.length - 1 ? St(e.substring(0, e.length - 1)) : e.substr(~t + 1);
|
|
1584
1626
|
}
|
|
1585
|
-
var
|
|
1627
|
+
var Ct = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, wt = class {
|
|
1586
1628
|
static hasCaptures(e) {
|
|
1587
|
-
return e === null ? !1 : (
|
|
1629
|
+
return e === null ? !1 : (Ct.lastIndex = 0, Ct.test(e));
|
|
1588
1630
|
}
|
|
1589
1631
|
static replaceCaptures(e, t, n) {
|
|
1590
|
-
return e.replace(
|
|
1632
|
+
return e.replace(Ct, (e, r, i, a) => {
|
|
1591
1633
|
let o = n[parseInt(r || i, 10)];
|
|
1592
1634
|
if (o) {
|
|
1593
1635
|
let e = t.substring(o.start, o.end);
|
|
@@ -1601,30 +1643,30 @@ var yt = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, bt = class {
|
|
|
1601
1643
|
});
|
|
1602
1644
|
}
|
|
1603
1645
|
};
|
|
1604
|
-
function
|
|
1646
|
+
function Tt(e, t) {
|
|
1605
1647
|
return e < t ? -1 : +(e > t);
|
|
1606
1648
|
}
|
|
1607
|
-
function
|
|
1649
|
+
function Et(e, t) {
|
|
1608
1650
|
if (e === null && t === null) return 0;
|
|
1609
1651
|
if (!e) return -1;
|
|
1610
1652
|
if (!t) return 1;
|
|
1611
1653
|
let n = e.length, r = t.length;
|
|
1612
1654
|
if (n === r) {
|
|
1613
1655
|
for (let r = 0; r < n; r++) {
|
|
1614
|
-
let n =
|
|
1656
|
+
let n = Tt(e[r], t[r]);
|
|
1615
1657
|
if (n !== 0) return n;
|
|
1616
1658
|
}
|
|
1617
1659
|
return 0;
|
|
1618
1660
|
}
|
|
1619
1661
|
return n - r;
|
|
1620
1662
|
}
|
|
1621
|
-
function
|
|
1663
|
+
function Dt(e) {
|
|
1622
1664
|
return !!(/^#[0-9a-f]{6}$/i.test(e) || /^#[0-9a-f]{8}$/i.test(e) || /^#[0-9a-f]{3}$/i.test(e) || /^#[0-9a-f]{4}$/i.test(e));
|
|
1623
1665
|
}
|
|
1624
|
-
function
|
|
1666
|
+
function Ot(e) {
|
|
1625
1667
|
return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
|
|
1626
1668
|
}
|
|
1627
|
-
var
|
|
1669
|
+
var kt = class {
|
|
1628
1670
|
constructor(e) {
|
|
1629
1671
|
this.fn = e;
|
|
1630
1672
|
}
|
|
@@ -1634,17 +1676,17 @@ var Tt = class {
|
|
|
1634
1676
|
let t = this.fn(e);
|
|
1635
1677
|
return this.cache.set(e, t), t;
|
|
1636
1678
|
}
|
|
1637
|
-
},
|
|
1679
|
+
}, At = class {
|
|
1638
1680
|
constructor(e, t, n) {
|
|
1639
1681
|
this._colorMap = e, this._defaults = t, this._root = n;
|
|
1640
1682
|
}
|
|
1641
1683
|
static createFromRawTheme(e, t) {
|
|
1642
|
-
return this.createFromParsedTheme(
|
|
1684
|
+
return this.createFromParsedTheme(Ft(e), t);
|
|
1643
1685
|
}
|
|
1644
1686
|
static createFromParsedTheme(e, t) {
|
|
1645
|
-
return
|
|
1687
|
+
return Lt(e, t);
|
|
1646
1688
|
}
|
|
1647
|
-
_cachedMatchRoot = new
|
|
1689
|
+
_cachedMatchRoot = new kt((e) => this._root.match(e));
|
|
1648
1690
|
getColorMap() {
|
|
1649
1691
|
return this._colorMap.getColorMap();
|
|
1650
1692
|
}
|
|
@@ -1653,10 +1695,10 @@ var Tt = class {
|
|
|
1653
1695
|
}
|
|
1654
1696
|
match(e) {
|
|
1655
1697
|
if (e === null) return this._defaults;
|
|
1656
|
-
let t = e.scopeName, n = this._cachedMatchRoot.get(t).find((t) =>
|
|
1657
|
-
return n ? new
|
|
1698
|
+
let t = e.scopeName, n = this._cachedMatchRoot.get(t).find((t) => Mt(e.parent, t.parentScopes));
|
|
1699
|
+
return n ? new Pt(n.fontStyle, n.foreground, n.background) : null;
|
|
1658
1700
|
}
|
|
1659
|
-
},
|
|
1701
|
+
}, jt = class e {
|
|
1660
1702
|
constructor(e, t) {
|
|
1661
1703
|
this.parent = e, this.scopeName = t;
|
|
1662
1704
|
}
|
|
@@ -1689,7 +1731,7 @@ var Tt = class {
|
|
|
1689
1731
|
return n === e ? t.reverse() : void 0;
|
|
1690
1732
|
}
|
|
1691
1733
|
};
|
|
1692
|
-
function
|
|
1734
|
+
function Mt(e, t) {
|
|
1693
1735
|
if (t.length === 0) return !0;
|
|
1694
1736
|
for (let n = 0; n < t.length; n++) {
|
|
1695
1737
|
let r = t[n], i = !1;
|
|
@@ -1697,7 +1739,7 @@ function Ot(e, t) {
|
|
|
1697
1739
|
if (n === t.length - 1) return !1;
|
|
1698
1740
|
r = t[++n], i = !0;
|
|
1699
1741
|
}
|
|
1700
|
-
for (; e && !
|
|
1742
|
+
for (; e && !Nt(e.scopeName, r);) {
|
|
1701
1743
|
if (i) return !1;
|
|
1702
1744
|
e = e.parent;
|
|
1703
1745
|
}
|
|
@@ -1706,15 +1748,15 @@ function Ot(e, t) {
|
|
|
1706
1748
|
}
|
|
1707
1749
|
return !0;
|
|
1708
1750
|
}
|
|
1709
|
-
function
|
|
1751
|
+
function Nt(e, t) {
|
|
1710
1752
|
return t === e || e.startsWith(t) && e[t.length] === ".";
|
|
1711
1753
|
}
|
|
1712
|
-
var
|
|
1754
|
+
var Pt = class {
|
|
1713
1755
|
constructor(e, t, n) {
|
|
1714
1756
|
this.fontStyle = e, this.foregroundId = t, this.backgroundId = n;
|
|
1715
1757
|
}
|
|
1716
1758
|
};
|
|
1717
|
-
function
|
|
1759
|
+
function Ft(e) {
|
|
1718
1760
|
if (!e || !e.settings || !Array.isArray(e.settings)) return [];
|
|
1719
1761
|
let t = e.settings, n = [], r = 0;
|
|
1720
1762
|
for (let e = 0, i = t.length; e < i; e++) {
|
|
@@ -1745,39 +1787,39 @@ function jt(e) {
|
|
|
1745
1787
|
}
|
|
1746
1788
|
}
|
|
1747
1789
|
let s = null;
|
|
1748
|
-
typeof i.settings.foreground == "string" &&
|
|
1790
|
+
typeof i.settings.foreground == "string" && Dt(i.settings.foreground) && (s = i.settings.foreground);
|
|
1749
1791
|
let c = null;
|
|
1750
|
-
typeof i.settings.background == "string" &&
|
|
1792
|
+
typeof i.settings.background == "string" && Dt(i.settings.background) && (c = i.settings.background);
|
|
1751
1793
|
for (let t = 0, i = a.length; t < i; t++) {
|
|
1752
1794
|
let i = a[t].trim().split(" "), l = i[i.length - 1], u = null;
|
|
1753
|
-
i.length > 1 && (u = i.slice(0, i.length - 1), u.reverse()), n[r++] = new
|
|
1795
|
+
i.length > 1 && (u = i.slice(0, i.length - 1), u.reverse()), n[r++] = new It(l, u, e, o, s, c);
|
|
1754
1796
|
}
|
|
1755
1797
|
}
|
|
1756
1798
|
return n;
|
|
1757
1799
|
}
|
|
1758
|
-
var
|
|
1800
|
+
var It = class {
|
|
1759
1801
|
constructor(e, t, n, r, i, a) {
|
|
1760
1802
|
this.scope = e, this.parentScopes = t, this.index = n, this.fontStyle = r, this.foreground = i, this.background = a;
|
|
1761
1803
|
}
|
|
1762
|
-
},
|
|
1763
|
-
function
|
|
1804
|
+
}, R = /* @__PURE__ */ ((e) => (e[e.NotSet = -1] = "NotSet", e[e.None = 0] = "None", e[e.Italic = 1] = "Italic", e[e.Bold = 2] = "Bold", e[e.Underline = 4] = "Underline", e[e.Strikethrough = 8] = "Strikethrough", e))(R || {});
|
|
1805
|
+
function Lt(e, t) {
|
|
1764
1806
|
e.sort((e, t) => {
|
|
1765
|
-
let n =
|
|
1766
|
-
return n !== 0 || (n =
|
|
1807
|
+
let n = Tt(e.scope, t.scope);
|
|
1808
|
+
return n !== 0 || (n = Et(e.parentScopes, t.parentScopes), n !== 0) ? n : e.index - t.index;
|
|
1767
1809
|
});
|
|
1768
1810
|
let n = 0, r = "#000000", i = "#ffffff";
|
|
1769
1811
|
for (; e.length >= 1 && e[0].scope === "";) {
|
|
1770
1812
|
let t = e.shift();
|
|
1771
1813
|
t.fontStyle !== -1 && (n = t.fontStyle), t.foreground !== null && (r = t.foreground), t.background !== null && (i = t.background);
|
|
1772
1814
|
}
|
|
1773
|
-
let a = new
|
|
1815
|
+
let a = new Rt(t), o = new Pt(n, a.getId(r), a.getId(i)), s = new Vt(new Bt(0, null, -1, 0, 0), []);
|
|
1774
1816
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1775
1817
|
let n = e[t];
|
|
1776
1818
|
s.insert(0, n.scope, n.parentScopes, n.fontStyle, a.getId(n.foreground), a.getId(n.background));
|
|
1777
1819
|
}
|
|
1778
|
-
return new
|
|
1820
|
+
return new At(a, o, s);
|
|
1779
1821
|
}
|
|
1780
|
-
var
|
|
1822
|
+
var Rt = class {
|
|
1781
1823
|
_isFrozen;
|
|
1782
1824
|
_lastColorId;
|
|
1783
1825
|
_id2color;
|
|
@@ -1799,14 +1841,14 @@ var Pt = class {
|
|
|
1799
1841
|
getColorMap() {
|
|
1800
1842
|
return this._id2color.slice(0);
|
|
1801
1843
|
}
|
|
1802
|
-
},
|
|
1844
|
+
}, zt = Object.freeze([]), Bt = class e {
|
|
1803
1845
|
scopeDepth;
|
|
1804
1846
|
parentScopes;
|
|
1805
1847
|
fontStyle;
|
|
1806
1848
|
foreground;
|
|
1807
1849
|
background;
|
|
1808
1850
|
constructor(e, t, n, r, i) {
|
|
1809
|
-
this.scopeDepth = e, this.parentScopes = t ||
|
|
1851
|
+
this.scopeDepth = e, this.parentScopes = t || zt, this.fontStyle = n, this.foreground = r, this.background = i;
|
|
1810
1852
|
}
|
|
1811
1853
|
clone() {
|
|
1812
1854
|
return new e(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
@@ -1819,7 +1861,7 @@ var Pt = class {
|
|
|
1819
1861
|
acceptOverwrite(e, t, n, r) {
|
|
1820
1862
|
this.scopeDepth > e ? console.log("how did this happen?") : this.scopeDepth = e, t !== -1 && (this.fontStyle = t), n !== 0 && (this.foreground = n), r !== 0 && (this.background = r);
|
|
1821
1863
|
}
|
|
1822
|
-
},
|
|
1864
|
+
}, Vt = class e {
|
|
1823
1865
|
constructor(e, t = [], n = {}) {
|
|
1824
1866
|
this._mainRule = e, this._children = n, this._rulesWithParentScopes = t;
|
|
1825
1867
|
}
|
|
@@ -1850,7 +1892,7 @@ var Pt = class {
|
|
|
1850
1892
|
let s = n.indexOf("."), c, l;
|
|
1851
1893
|
s === -1 ? (c = n, l = "") : (c = n.substring(0, s), l = n.substring(s + 1));
|
|
1852
1894
|
let u;
|
|
1853
|
-
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new e(this._mainRule.clone(),
|
|
1895
|
+
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new e(this._mainRule.clone(), Bt.cloneArr(this._rulesWithParentScopes)), this._children[c] = u), u.insert(t + 1, l, r, i, a, o);
|
|
1854
1896
|
}
|
|
1855
1897
|
_doInsertHere(e, t, n, r, i) {
|
|
1856
1898
|
if (t === null) {
|
|
@@ -1859,14 +1901,14 @@ var Pt = class {
|
|
|
1859
1901
|
}
|
|
1860
1902
|
for (let a = 0, o = this._rulesWithParentScopes.length; a < o; a++) {
|
|
1861
1903
|
let o = this._rulesWithParentScopes[a];
|
|
1862
|
-
if (
|
|
1904
|
+
if (Et(o.parentScopes, t) === 0) {
|
|
1863
1905
|
o.acceptOverwrite(e, n, r, i);
|
|
1864
1906
|
return;
|
|
1865
1907
|
}
|
|
1866
1908
|
}
|
|
1867
|
-
n === -1 && (n = this._mainRule.fontStyle), r === 0 && (r = this._mainRule.foreground), i === 0 && (i = this._mainRule.background), this._rulesWithParentScopes.push(new
|
|
1909
|
+
n === -1 && (n = this._mainRule.fontStyle), r === 0 && (r = this._mainRule.foreground), i === 0 && (i = this._mainRule.background), this._rulesWithParentScopes.push(new Bt(e, t, n, r, i));
|
|
1868
1910
|
}
|
|
1869
|
-
},
|
|
1911
|
+
}, z = class e {
|
|
1870
1912
|
static toBinaryStr(e) {
|
|
1871
1913
|
return e.toString(2).padStart(32, "0");
|
|
1872
1914
|
}
|
|
@@ -1900,17 +1942,17 @@ var Pt = class {
|
|
|
1900
1942
|
}
|
|
1901
1943
|
static set(t, n, r, i, a, o, s) {
|
|
1902
1944
|
let c = e.getLanguageId(t), l = e.getTokenType(t), u = +!!e.containsBalancedBrackets(t), d = e.getFontStyle(t), f = e.getForeground(t), p = e.getBackground(t);
|
|
1903
|
-
return n !== 0 && (c = n), r !== 8 && (l =
|
|
1945
|
+
return n !== 0 && (c = n), r !== 8 && (l = Ut(r)), i !== null && (u = +!!i), a !== -1 && (d = a), o !== 0 && (f = o), s !== 0 && (p = s), (c << 0 | l << 8 | u << 10 | d << 11 | f << 15 | p << 24) >>> 0;
|
|
1904
1946
|
}
|
|
1905
1947
|
};
|
|
1906
|
-
function
|
|
1948
|
+
function Ht(e) {
|
|
1907
1949
|
return e;
|
|
1908
1950
|
}
|
|
1909
|
-
function
|
|
1951
|
+
function Ut(e) {
|
|
1910
1952
|
return e;
|
|
1911
1953
|
}
|
|
1912
|
-
function
|
|
1913
|
-
let n = [], r =
|
|
1954
|
+
function Wt(e, t) {
|
|
1955
|
+
let n = [], r = Kt(e), i = r.next();
|
|
1914
1956
|
for (; i !== null;) {
|
|
1915
1957
|
let e = 0;
|
|
1916
1958
|
if (i.length === 2 && i.charAt(1) === ":") {
|
|
@@ -1944,11 +1986,11 @@ function Bt(e, t) {
|
|
|
1944
1986
|
let e = s();
|
|
1945
1987
|
return i === ")" && (i = r.next()), e;
|
|
1946
1988
|
}
|
|
1947
|
-
if (
|
|
1989
|
+
if (Gt(i)) {
|
|
1948
1990
|
let e = [];
|
|
1949
1991
|
do
|
|
1950
1992
|
e.push(i), i = r.next();
|
|
1951
|
-
while (
|
|
1993
|
+
while (Gt(i));
|
|
1952
1994
|
return (n) => t(e, n);
|
|
1953
1995
|
}
|
|
1954
1996
|
return null;
|
|
@@ -1969,10 +2011,10 @@ function Bt(e, t) {
|
|
|
1969
2011
|
return (t) => e.some((e) => e(t));
|
|
1970
2012
|
}
|
|
1971
2013
|
}
|
|
1972
|
-
function
|
|
2014
|
+
function Gt(e) {
|
|
1973
2015
|
return !!e && !!e.match(/[\w\.:]+/);
|
|
1974
2016
|
}
|
|
1975
|
-
function
|
|
2017
|
+
function Kt(e) {
|
|
1976
2018
|
let t = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g, n = t.exec(e);
|
|
1977
2019
|
return { next: () => {
|
|
1978
2020
|
if (!n) return null;
|
|
@@ -1980,24 +2022,24 @@ function Ht(e) {
|
|
|
1980
2022
|
return n = t.exec(e), r;
|
|
1981
2023
|
} };
|
|
1982
2024
|
}
|
|
1983
|
-
function
|
|
2025
|
+
function qt(e) {
|
|
1984
2026
|
typeof e.dispose == "function" && e.dispose();
|
|
1985
2027
|
}
|
|
1986
|
-
var
|
|
2028
|
+
var B = class {
|
|
1987
2029
|
constructor(e) {
|
|
1988
2030
|
this.scopeName = e;
|
|
1989
2031
|
}
|
|
1990
2032
|
toKey() {
|
|
1991
2033
|
return this.scopeName;
|
|
1992
2034
|
}
|
|
1993
|
-
},
|
|
2035
|
+
}, Jt = class {
|
|
1994
2036
|
constructor(e, t) {
|
|
1995
2037
|
this.scopeName = e, this.ruleName = t;
|
|
1996
2038
|
}
|
|
1997
2039
|
toKey() {
|
|
1998
2040
|
return `${this.scopeName}#${this.ruleName}`;
|
|
1999
2041
|
}
|
|
2000
|
-
},
|
|
2042
|
+
}, Yt = class {
|
|
2001
2043
|
_references = [];
|
|
2002
2044
|
_seenReferenceKeys = /* @__PURE__ */ new Set();
|
|
2003
2045
|
get references() {
|
|
@@ -2008,9 +2050,9 @@ var Wt = class {
|
|
|
2008
2050
|
let t = e.toKey();
|
|
2009
2051
|
this._seenReferenceKeys.has(t) || (this._seenReferenceKeys.add(t), this._references.push(e));
|
|
2010
2052
|
}
|
|
2011
|
-
},
|
|
2053
|
+
}, Xt = class {
|
|
2012
2054
|
constructor(e, t) {
|
|
2013
|
-
this.repo = e, this.initialScopeName = t, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new
|
|
2055
|
+
this.repo = e, this.initialScopeName = t, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new B(this.initialScopeName)];
|
|
2014
2056
|
}
|
|
2015
2057
|
seenFullScopeRequests = /* @__PURE__ */ new Set();
|
|
2016
2058
|
seenPartialScopeRequests = /* @__PURE__ */ new Set();
|
|
@@ -2018,9 +2060,9 @@ var Wt = class {
|
|
|
2018
2060
|
processQueue() {
|
|
2019
2061
|
let e = this.Q;
|
|
2020
2062
|
this.Q = [];
|
|
2021
|
-
let t = new
|
|
2022
|
-
for (let n of e)
|
|
2023
|
-
for (let e of t.references) if (e instanceof
|
|
2063
|
+
let t = new Yt();
|
|
2064
|
+
for (let n of e) Zt(n, this.initialScopeName, this.repo, t);
|
|
2065
|
+
for (let e of t.references) if (e instanceof B) {
|
|
2024
2066
|
if (this.seenFullScopeRequests.has(e.scopeName)) continue;
|
|
2025
2067
|
this.seenFullScopeRequests.add(e.scopeName), this.Q.push(e);
|
|
2026
2068
|
} else {
|
|
@@ -2029,63 +2071,63 @@ var Wt = class {
|
|
|
2029
2071
|
}
|
|
2030
2072
|
}
|
|
2031
2073
|
};
|
|
2032
|
-
function
|
|
2074
|
+
function Zt(e, t, n, r) {
|
|
2033
2075
|
let i = n.lookup(e.scopeName);
|
|
2034
2076
|
if (!i) {
|
|
2035
2077
|
if (e.scopeName === t) throw Error(`No grammar provided for <${t}>`);
|
|
2036
2078
|
return;
|
|
2037
2079
|
}
|
|
2038
2080
|
let a = n.lookup(t);
|
|
2039
|
-
e instanceof
|
|
2081
|
+
e instanceof B ? $t({
|
|
2040
2082
|
baseGrammar: a,
|
|
2041
2083
|
selfGrammar: i
|
|
2042
|
-
}, r) :
|
|
2084
|
+
}, r) : Qt(e.ruleName, {
|
|
2043
2085
|
baseGrammar: a,
|
|
2044
2086
|
selfGrammar: i,
|
|
2045
2087
|
repository: i.repository
|
|
2046
2088
|
}, r);
|
|
2047
2089
|
let o = n.injections(e.scopeName);
|
|
2048
|
-
if (o) for (let e of o) r.add(new
|
|
2090
|
+
if (o) for (let e of o) r.add(new B(e));
|
|
2049
2091
|
}
|
|
2050
|
-
function
|
|
2092
|
+
function Qt(e, t, n) {
|
|
2051
2093
|
if (t.repository && t.repository[e]) {
|
|
2052
2094
|
let r = t.repository[e];
|
|
2053
|
-
|
|
2095
|
+
en([r], t, n);
|
|
2054
2096
|
}
|
|
2055
2097
|
}
|
|
2056
|
-
function
|
|
2057
|
-
e.selfGrammar.patterns && Array.isArray(e.selfGrammar.patterns) &&
|
|
2098
|
+
function $t(e, t) {
|
|
2099
|
+
e.selfGrammar.patterns && Array.isArray(e.selfGrammar.patterns) && en(e.selfGrammar.patterns, {
|
|
2058
2100
|
...e,
|
|
2059
2101
|
repository: e.selfGrammar.repository
|
|
2060
|
-
}, t), e.selfGrammar.injections &&
|
|
2102
|
+
}, t), e.selfGrammar.injections && en(Object.values(e.selfGrammar.injections), {
|
|
2061
2103
|
...e,
|
|
2062
2104
|
repository: e.selfGrammar.repository
|
|
2063
2105
|
}, t);
|
|
2064
2106
|
}
|
|
2065
|
-
function
|
|
2107
|
+
function en(e, t, n) {
|
|
2066
2108
|
for (let r of e) {
|
|
2067
2109
|
if (n.visitedRule.has(r)) continue;
|
|
2068
2110
|
n.visitedRule.add(r);
|
|
2069
|
-
let e = r.repository ?
|
|
2070
|
-
Array.isArray(r.patterns) &&
|
|
2111
|
+
let e = r.repository ? xt({}, t.repository, r.repository) : t.repository;
|
|
2112
|
+
Array.isArray(r.patterns) && en(r.patterns, {
|
|
2071
2113
|
...t,
|
|
2072
2114
|
repository: e
|
|
2073
2115
|
}, n);
|
|
2074
2116
|
let i = r.include;
|
|
2075
2117
|
if (!i) continue;
|
|
2076
|
-
let a =
|
|
2118
|
+
let a = sn(i);
|
|
2077
2119
|
switch (a.kind) {
|
|
2078
2120
|
case 0:
|
|
2079
|
-
|
|
2121
|
+
$t({
|
|
2080
2122
|
...t,
|
|
2081
2123
|
selfGrammar: t.baseGrammar
|
|
2082
2124
|
}, n);
|
|
2083
2125
|
break;
|
|
2084
2126
|
case 1:
|
|
2085
|
-
|
|
2127
|
+
$t(t, n);
|
|
2086
2128
|
break;
|
|
2087
2129
|
case 2:
|
|
2088
|
-
|
|
2130
|
+
Qt(a.ruleName, {
|
|
2089
2131
|
...t,
|
|
2090
2132
|
repository: e
|
|
2091
2133
|
}, n);
|
|
@@ -2099,46 +2141,46 @@ function Zt(e, t, n) {
|
|
|
2099
2141
|
selfGrammar: r,
|
|
2100
2142
|
repository: e
|
|
2101
2143
|
};
|
|
2102
|
-
a.kind === 4 ?
|
|
2103
|
-
} else a.kind === 4 ? n.add(new
|
|
2144
|
+
a.kind === 4 ? Qt(a.ruleName, i, n) : $t(i, n);
|
|
2145
|
+
} else a.kind === 4 ? n.add(new Jt(a.scopeName, a.ruleName)) : n.add(new B(a.scopeName));
|
|
2104
2146
|
break;
|
|
2105
2147
|
}
|
|
2106
2148
|
}
|
|
2107
2149
|
}
|
|
2108
|
-
var
|
|
2150
|
+
var tn = class {
|
|
2109
2151
|
kind = 0;
|
|
2110
|
-
},
|
|
2152
|
+
}, nn = class {
|
|
2111
2153
|
kind = 1;
|
|
2112
|
-
},
|
|
2154
|
+
}, rn = class {
|
|
2113
2155
|
constructor(e) {
|
|
2114
2156
|
this.ruleName = e;
|
|
2115
2157
|
}
|
|
2116
2158
|
kind = 2;
|
|
2117
|
-
},
|
|
2159
|
+
}, an = class {
|
|
2118
2160
|
constructor(e) {
|
|
2119
2161
|
this.scopeName = e;
|
|
2120
2162
|
}
|
|
2121
2163
|
kind = 3;
|
|
2122
|
-
},
|
|
2164
|
+
}, on = class {
|
|
2123
2165
|
constructor(e, t) {
|
|
2124
2166
|
this.scopeName = e, this.ruleName = t;
|
|
2125
2167
|
}
|
|
2126
2168
|
kind = 4;
|
|
2127
2169
|
};
|
|
2128
|
-
function
|
|
2129
|
-
if (e === "$base") return new
|
|
2130
|
-
if (e === "$self") return new
|
|
2170
|
+
function sn(e) {
|
|
2171
|
+
if (e === "$base") return new tn();
|
|
2172
|
+
if (e === "$self") return new nn();
|
|
2131
2173
|
let t = e.indexOf("#");
|
|
2132
|
-
return t === -1 ? new
|
|
2174
|
+
return t === -1 ? new an(e) : t === 0 ? new rn(e.substring(1)) : new on(e.substring(0, t), e.substring(t + 1));
|
|
2133
2175
|
}
|
|
2134
|
-
var
|
|
2135
|
-
function
|
|
2176
|
+
var cn = /\\(\d+)/, ln = /\\(\d+)/g, un = -1, dn = -2;
|
|
2177
|
+
function fn(e) {
|
|
2136
2178
|
return e;
|
|
2137
2179
|
}
|
|
2138
|
-
function
|
|
2180
|
+
function pn(e) {
|
|
2139
2181
|
return e;
|
|
2140
2182
|
}
|
|
2141
|
-
var
|
|
2183
|
+
var V = class {
|
|
2142
2184
|
$location;
|
|
2143
2185
|
id;
|
|
2144
2186
|
_nameIsCapturing;
|
|
@@ -2146,19 +2188,19 @@ var dn = class {
|
|
|
2146
2188
|
_contentNameIsCapturing;
|
|
2147
2189
|
_contentName;
|
|
2148
2190
|
constructor(e, t, n, r) {
|
|
2149
|
-
this.$location = e, this.id = t, this._name = n || null, this._nameIsCapturing =
|
|
2191
|
+
this.$location = e, this.id = t, this._name = n || null, this._nameIsCapturing = wt.hasCaptures(this._name), this._contentName = r || null, this._contentNameIsCapturing = wt.hasCaptures(this._contentName);
|
|
2150
2192
|
}
|
|
2151
2193
|
get debugName() {
|
|
2152
|
-
let e = this.$location ? `${
|
|
2194
|
+
let e = this.$location ? `${St(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
2153
2195
|
return `${this.constructor.name}#${this.id} @ ${e}`;
|
|
2154
2196
|
}
|
|
2155
2197
|
getName(e, t) {
|
|
2156
|
-
return !this._nameIsCapturing || this._name === null || e === null || t === null ? this._name :
|
|
2198
|
+
return !this._nameIsCapturing || this._name === null || e === null || t === null ? this._name : wt.replaceCaptures(this._name, e, t);
|
|
2157
2199
|
}
|
|
2158
2200
|
getContentName(e, t) {
|
|
2159
|
-
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName :
|
|
2201
|
+
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : wt.replaceCaptures(this._contentName, e, t);
|
|
2160
2202
|
}
|
|
2161
|
-
},
|
|
2203
|
+
}, mn = class extends V {
|
|
2162
2204
|
retokenizeCapturedWithRuleId;
|
|
2163
2205
|
constructor(e, t, n, r, i) {
|
|
2164
2206
|
super(e, t, n, r), this.retokenizeCapturedWithRuleId = i;
|
|
@@ -2173,12 +2215,12 @@ var dn = class {
|
|
|
2173
2215
|
compileAG(e, t, n, r) {
|
|
2174
2216
|
throw Error("Not supported!");
|
|
2175
2217
|
}
|
|
2176
|
-
},
|
|
2218
|
+
}, hn = class extends V {
|
|
2177
2219
|
_match;
|
|
2178
2220
|
captures;
|
|
2179
2221
|
_cachedCompiledPatterns;
|
|
2180
2222
|
constructor(e, t, n, r, i) {
|
|
2181
|
-
super(e, t, n, null), this._match = new
|
|
2223
|
+
super(e, t, n, null), this._match = new H(r, this.id), this.captures = i, this._cachedCompiledPatterns = null;
|
|
2182
2224
|
}
|
|
2183
2225
|
dispose() {
|
|
2184
2226
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null);
|
|
@@ -2196,9 +2238,9 @@ var dn = class {
|
|
|
2196
2238
|
return this._getCachedCompiledPatterns(e).compileAG(e, n, r);
|
|
2197
2239
|
}
|
|
2198
2240
|
_getCachedCompiledPatterns(e) {
|
|
2199
|
-
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new
|
|
2241
|
+
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new U(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
2200
2242
|
}
|
|
2201
|
-
},
|
|
2243
|
+
}, gn = class extends V {
|
|
2202
2244
|
hasMissingPatterns;
|
|
2203
2245
|
patterns;
|
|
2204
2246
|
_cachedCompiledPatterns;
|
|
@@ -2218,9 +2260,9 @@ var dn = class {
|
|
|
2218
2260
|
return this._getCachedCompiledPatterns(e).compileAG(e, n, r);
|
|
2219
2261
|
}
|
|
2220
2262
|
_getCachedCompiledPatterns(e) {
|
|
2221
|
-
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new
|
|
2263
|
+
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new U(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
2222
2264
|
}
|
|
2223
|
-
},
|
|
2265
|
+
}, _n = class extends V {
|
|
2224
2266
|
_begin;
|
|
2225
2267
|
beginCaptures;
|
|
2226
2268
|
_end;
|
|
@@ -2231,7 +2273,7 @@ var dn = class {
|
|
|
2231
2273
|
patterns;
|
|
2232
2274
|
_cachedCompiledPatterns;
|
|
2233
2275
|
constructor(e, t, n, r, i, a, o, s, c, l) {
|
|
2234
|
-
super(e, t, n, r), this._begin = new
|
|
2276
|
+
super(e, t, n, r), this._begin = new H(i, this.id), this.beginCaptures = a, this._end = new H(o || "", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = s, this.applyEndPatternLast = c || !1, this.patterns = l.patterns, this.hasMissingPatterns = l.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
2235
2277
|
}
|
|
2236
2278
|
dispose() {
|
|
2237
2279
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null);
|
|
@@ -2256,13 +2298,13 @@ var dn = class {
|
|
|
2256
2298
|
}
|
|
2257
2299
|
_getCachedCompiledPatterns(e, t) {
|
|
2258
2300
|
if (!this._cachedCompiledPatterns) {
|
|
2259
|
-
this._cachedCompiledPatterns = new
|
|
2301
|
+
this._cachedCompiledPatterns = new U();
|
|
2260
2302
|
for (let t of this.patterns) e.getRule(t).collectPatterns(e, this._cachedCompiledPatterns);
|
|
2261
2303
|
this.applyEndPatternLast ? this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end) : this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
|
|
2262
2304
|
}
|
|
2263
2305
|
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, t) : this._cachedCompiledPatterns.setSource(0, t)), this._cachedCompiledPatterns;
|
|
2264
2306
|
}
|
|
2265
|
-
},
|
|
2307
|
+
}, vn = class extends V {
|
|
2266
2308
|
_begin;
|
|
2267
2309
|
beginCaptures;
|
|
2268
2310
|
whileCaptures;
|
|
@@ -2273,7 +2315,7 @@ var dn = class {
|
|
|
2273
2315
|
_cachedCompiledPatterns;
|
|
2274
2316
|
_cachedCompiledWhilePatterns;
|
|
2275
2317
|
constructor(e, t, n, r, i, a, o, s, c) {
|
|
2276
|
-
super(e, t, n, r), this._begin = new
|
|
2318
|
+
super(e, t, n, r), this._begin = new H(i, this.id), this.beginCaptures = a, this.whileCaptures = s, this._while = new H(o, dn), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = c.patterns, this.hasMissingPatterns = c.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
|
|
2277
2319
|
}
|
|
2278
2320
|
dispose() {
|
|
2279
2321
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null), this._cachedCompiledWhilePatterns &&= (this._cachedCompiledWhilePatterns.dispose(), null);
|
|
@@ -2298,7 +2340,7 @@ var dn = class {
|
|
|
2298
2340
|
}
|
|
2299
2341
|
_getCachedCompiledPatterns(e) {
|
|
2300
2342
|
if (!this._cachedCompiledPatterns) {
|
|
2301
|
-
this._cachedCompiledPatterns = new
|
|
2343
|
+
this._cachedCompiledPatterns = new U();
|
|
2302
2344
|
for (let t of this.patterns) e.getRule(t).collectPatterns(e, this._cachedCompiledPatterns);
|
|
2303
2345
|
}
|
|
2304
2346
|
return this._cachedCompiledPatterns;
|
|
@@ -2310,21 +2352,21 @@ var dn = class {
|
|
|
2310
2352
|
return this._getCachedCompiledWhilePatterns(e, t).compileAG(e, n, r);
|
|
2311
2353
|
}
|
|
2312
2354
|
_getCachedCompiledWhilePatterns(e, t) {
|
|
2313
|
-
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new
|
|
2355
|
+
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new U(), this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while)), this._while.hasBackReferences && this._cachedCompiledWhilePatterns.setSource(0, t || ""), this._cachedCompiledWhilePatterns;
|
|
2314
2356
|
}
|
|
2315
|
-
},
|
|
2357
|
+
}, yn = class e {
|
|
2316
2358
|
static createCaptureRule(e, t, n, r, i) {
|
|
2317
|
-
return e.registerRule((e) => new
|
|
2359
|
+
return e.registerRule((e) => new mn(t, e, n, r, i));
|
|
2318
2360
|
}
|
|
2319
2361
|
static getCompiledRuleId(t, n, r) {
|
|
2320
2362
|
return t.id || n.registerRule((i) => {
|
|
2321
|
-
if (t.id = i, t.match) return new
|
|
2363
|
+
if (t.id = i, t.match) return new hn(t.$vscodeTextmateLocation, t.id, t.name, t.match, e._compileCaptures(t.captures, n, r));
|
|
2322
2364
|
if (t.begin === void 0) {
|
|
2323
|
-
t.repository && (r =
|
|
2365
|
+
t.repository && (r = xt({}, r, t.repository));
|
|
2324
2366
|
let i = t.patterns;
|
|
2325
|
-
return i === void 0 && t.include && (i = [{ include: t.include }]), new
|
|
2367
|
+
return i === void 0 && t.include && (i = [{ include: t.include }]), new gn(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, e._compilePatterns(i, n, r));
|
|
2326
2368
|
}
|
|
2327
|
-
return t.while ? new
|
|
2369
|
+
return t.while ? new vn(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, t.begin, e._compileCaptures(t.beginCaptures || t.captures, n, r), t.while, e._compileCaptures(t.whileCaptures || t.captures, n, r), e._compilePatterns(t.patterns, n, r)) : new _n(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, t.begin, e._compileCaptures(t.beginCaptures || t.captures, n, r), t.end, e._compileCaptures(t.endCaptures || t.captures, n, r), t.applyEndPatternLast, e._compilePatterns(t.patterns, n, r));
|
|
2328
2370
|
}), t.id;
|
|
2329
2371
|
}
|
|
2330
2372
|
static _compileCaptures(t, n, r) {
|
|
@@ -2350,7 +2392,7 @@ var dn = class {
|
|
|
2350
2392
|
if (t) for (let a = 0, o = t.length; a < o; a++) {
|
|
2351
2393
|
let o = t[a], s = -1;
|
|
2352
2394
|
if (o.include) {
|
|
2353
|
-
let t =
|
|
2395
|
+
let t = sn(o.include);
|
|
2354
2396
|
switch (t.kind) {
|
|
2355
2397
|
case 0:
|
|
2356
2398
|
case 1:
|
|
@@ -2372,7 +2414,7 @@ var dn = class {
|
|
|
2372
2414
|
} else s = e.getCompiledRuleId(o, n, r);
|
|
2373
2415
|
if (s !== -1) {
|
|
2374
2416
|
let e = n.getRule(s), t = !1;
|
|
2375
|
-
if ((e instanceof
|
|
2417
|
+
if ((e instanceof gn || e instanceof _n || e instanceof vn) && e.hasMissingPatterns && e.patterns.length === 0 && (t = !0), t) continue;
|
|
2376
2418
|
i.push(s);
|
|
2377
2419
|
}
|
|
2378
2420
|
}
|
|
@@ -2381,7 +2423,7 @@ var dn = class {
|
|
|
2381
2423
|
hasMissingPatterns: (t ? t.length : 0) !== i.length
|
|
2382
2424
|
};
|
|
2383
2425
|
}
|
|
2384
|
-
},
|
|
2426
|
+
}, H = class e {
|
|
2385
2427
|
source;
|
|
2386
2428
|
ruleId;
|
|
2387
2429
|
hasAnchor;
|
|
@@ -2396,7 +2438,7 @@ var dn = class {
|
|
|
2396
2438
|
}
|
|
2397
2439
|
this.hasAnchor = i, n === 0 ? this.source = e : (r.push(e.substring(n, t)), this.source = r.join(""));
|
|
2398
2440
|
} else this.hasAnchor = !1, this.source = e;
|
|
2399
|
-
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = t, typeof this.source == "string" ? this.hasBackReferences =
|
|
2441
|
+
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = t, typeof this.source == "string" ? this.hasBackReferences = cn.test(this.source) : this.hasBackReferences = !1;
|
|
2400
2442
|
}
|
|
2401
2443
|
clone() {
|
|
2402
2444
|
return new e(this.source, this.ruleId);
|
|
@@ -2407,7 +2449,7 @@ var dn = class {
|
|
|
2407
2449
|
resolveBackReferences(e, t) {
|
|
2408
2450
|
if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
|
|
2409
2451
|
let n = t.map((t) => e.substring(t.start, t.end));
|
|
2410
|
-
return
|
|
2452
|
+
return ln.lastIndex = 0, this.source.replace(ln, (e, t) => Ot(n[parseInt(t, 10)] || ""));
|
|
2411
2453
|
}
|
|
2412
2454
|
_buildAnchorCache() {
|
|
2413
2455
|
if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
|
|
@@ -2423,7 +2465,7 @@ var dn = class {
|
|
|
2423
2465
|
resolveAnchors(e, t) {
|
|
2424
2466
|
return !this.hasAnchor || !this._anchorCache || typeof this.source != "string" ? this.source : e ? t ? this._anchorCache.A1_G1 : this._anchorCache.A1_G0 : t ? this._anchorCache.A0_G1 : this._anchorCache.A0_G0;
|
|
2425
2467
|
}
|
|
2426
|
-
},
|
|
2468
|
+
}, U = class {
|
|
2427
2469
|
_items;
|
|
2428
2470
|
_hasAnchors;
|
|
2429
2471
|
_cached;
|
|
@@ -2457,7 +2499,7 @@ var dn = class {
|
|
|
2457
2499
|
compile(e) {
|
|
2458
2500
|
if (!this._cached) {
|
|
2459
2501
|
let t = this._items.map((e) => e.source);
|
|
2460
|
-
this._cached = new
|
|
2502
|
+
this._cached = new bn(e, t, this._items.map((e) => e.ruleId));
|
|
2461
2503
|
}
|
|
2462
2504
|
return this._cached;
|
|
2463
2505
|
}
|
|
@@ -2465,9 +2507,9 @@ var dn = class {
|
|
|
2465
2507
|
return this._hasAnchors ? t ? n ? (this._anchorCache.A1_G1 || (this._anchorCache.A1_G1 = this._resolveAnchors(e, t, n)), this._anchorCache.A1_G1) : (this._anchorCache.A1_G0 || (this._anchorCache.A1_G0 = this._resolveAnchors(e, t, n)), this._anchorCache.A1_G0) : n ? (this._anchorCache.A0_G1 || (this._anchorCache.A0_G1 = this._resolveAnchors(e, t, n)), this._anchorCache.A0_G1) : (this._anchorCache.A0_G0 || (this._anchorCache.A0_G0 = this._resolveAnchors(e, t, n)), this._anchorCache.A0_G0) : this.compile(e);
|
|
2466
2508
|
}
|
|
2467
2509
|
_resolveAnchors(e, t, n) {
|
|
2468
|
-
return new
|
|
2510
|
+
return new bn(e, this._items.map((e) => e.resolveAnchors(t, n)), this._items.map((e) => e.ruleId));
|
|
2469
2511
|
}
|
|
2470
|
-
},
|
|
2512
|
+
}, bn = class {
|
|
2471
2513
|
constructor(e, t, n) {
|
|
2472
2514
|
this.regExps = t, this.rules = n, this.scanner = e.createOnigScanner(t);
|
|
2473
2515
|
}
|
|
@@ -2487,15 +2529,15 @@ var dn = class {
|
|
|
2487
2529
|
captureIndices: r.captureIndices
|
|
2488
2530
|
} : null;
|
|
2489
2531
|
}
|
|
2490
|
-
},
|
|
2532
|
+
}, xn = class {
|
|
2491
2533
|
constructor(e, t) {
|
|
2492
2534
|
this.languageId = e, this.tokenType = t;
|
|
2493
2535
|
}
|
|
2494
|
-
},
|
|
2536
|
+
}, Sn = class e {
|
|
2495
2537
|
_defaultAttributes;
|
|
2496
2538
|
_embeddedLanguagesMatcher;
|
|
2497
2539
|
constructor(e, t) {
|
|
2498
|
-
this._defaultAttributes = new
|
|
2540
|
+
this._defaultAttributes = new xn(e, 8), this._embeddedLanguagesMatcher = new Cn(Object.entries(t || {}));
|
|
2499
2541
|
}
|
|
2500
2542
|
getDefaultAttributes() {
|
|
2501
2543
|
return this._defaultAttributes;
|
|
@@ -2503,8 +2545,8 @@ var dn = class {
|
|
|
2503
2545
|
getBasicScopeAttributes(t) {
|
|
2504
2546
|
return t === null ? e._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(t);
|
|
2505
2547
|
}
|
|
2506
|
-
static _NULL_SCOPE_METADATA = new
|
|
2507
|
-
_getBasicScopeAttributes = new
|
|
2548
|
+
static _NULL_SCOPE_METADATA = new xn(0, 0);
|
|
2549
|
+
_getBasicScopeAttributes = new kt((e) => new xn(this._scopeToLanguage(e), this._toStandardTokenType(e)));
|
|
2508
2550
|
_scopeToLanguage(e) {
|
|
2509
2551
|
return this._embeddedLanguagesMatcher.match(e) || 0;
|
|
2510
2552
|
}
|
|
@@ -2520,14 +2562,14 @@ var dn = class {
|
|
|
2520
2562
|
throw Error("Unexpected match for standard token type!");
|
|
2521
2563
|
}
|
|
2522
2564
|
static STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex|meta\.embedded)\b/;
|
|
2523
|
-
},
|
|
2565
|
+
}, Cn = class {
|
|
2524
2566
|
values;
|
|
2525
2567
|
scopesRegExp;
|
|
2526
2568
|
constructor(e) {
|
|
2527
2569
|
if (e.length === 0) this.values = null, this.scopesRegExp = null;
|
|
2528
2570
|
else {
|
|
2529
2571
|
this.values = new Map(e);
|
|
2530
|
-
let t = e.map(([e, t]) =>
|
|
2572
|
+
let t = e.map(([e, t]) => Ot(e));
|
|
2531
2573
|
t.sort(), t.reverse(), this.scopesRegExp = RegExp(`^((${t.join(")|(")}))($|\\.)`, "");
|
|
2532
2574
|
}
|
|
2533
2575
|
}
|
|
@@ -2538,33 +2580,33 @@ var dn = class {
|
|
|
2538
2580
|
}
|
|
2539
2581
|
};
|
|
2540
2582
|
typeof process < "u" && process.env.VSCODE_TEXTMATE_DEBUG;
|
|
2541
|
-
var
|
|
2583
|
+
var wn = !1, Tn = class {
|
|
2542
2584
|
constructor(e, t) {
|
|
2543
2585
|
this.stack = e, this.stoppedEarly = t;
|
|
2544
2586
|
}
|
|
2545
2587
|
};
|
|
2546
|
-
function
|
|
2588
|
+
function En(e, t, n, r, i, a, o, s) {
|
|
2547
2589
|
let c = t.content.length, l = !1, u = -1;
|
|
2548
2590
|
if (o) {
|
|
2549
|
-
let o =
|
|
2591
|
+
let o = Dn(e, t, n, r, i, a);
|
|
2550
2592
|
i = o.stack, r = o.linePos, n = o.isFirstLine, u = o.anchorPosition;
|
|
2551
2593
|
}
|
|
2552
2594
|
let d = Date.now();
|
|
2553
2595
|
for (; !l;) {
|
|
2554
|
-
if (s !== 0 && Date.now() - d > s) return new
|
|
2596
|
+
if (s !== 0 && Date.now() - d > s) return new Tn(i, !0);
|
|
2555
2597
|
f();
|
|
2556
2598
|
}
|
|
2557
|
-
return new
|
|
2599
|
+
return new Tn(i, !1);
|
|
2558
2600
|
function f() {
|
|
2559
|
-
let o =
|
|
2601
|
+
let o = On(e, t, n, r, i, u);
|
|
2560
2602
|
if (!o) {
|
|
2561
2603
|
a.produce(i, c), l = !0;
|
|
2562
2604
|
return;
|
|
2563
2605
|
}
|
|
2564
2606
|
let s = o.captureIndices, d = o.matchedRuleId, f = s && s.length > 0 ? s[0].end > r : !1;
|
|
2565
|
-
if (d ===
|
|
2607
|
+
if (d === un) {
|
|
2566
2608
|
let o = i.getRule(e);
|
|
2567
|
-
a.produce(i, s[0].start), i = i.withContentNameScopesList(i.nameScopesList),
|
|
2609
|
+
a.produce(i, s[0].start), i = i.withContentNameScopesList(i.nameScopesList), W(e, t, n, i, a, o.endCaptures, s), a.produce(i, s[0].end);
|
|
2568
2610
|
let d = i;
|
|
2569
2611
|
if (i = i.parent, u = d.getAnchorPos(), !f && d.getEnterPos() === r) {
|
|
2570
2612
|
i = d, a.produce(i, c), l = !0;
|
|
@@ -2574,23 +2616,23 @@ function wn(e, t, n, r, i, a, o, s) {
|
|
|
2574
2616
|
let o = e.getRule(d);
|
|
2575
2617
|
a.produce(i, s[0].start);
|
|
2576
2618
|
let p = i, m = o.getName(t.content, s), h = i.contentNameScopesList.pushAttributed(m, e);
|
|
2577
|
-
if (i = i.push(d, r, u, s[0].end === c, null, h, h), o instanceof
|
|
2619
|
+
if (i = i.push(d, r, u, s[0].end === c, null, h, h), o instanceof _n) {
|
|
2578
2620
|
let r = o;
|
|
2579
|
-
|
|
2621
|
+
W(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
|
|
2580
2622
|
let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
|
|
2581
2623
|
if (i = i.withContentNameScopesList(m), r.endHasBackReferences && (i = i.withEndRule(r.getEndWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
|
|
2582
2624
|
i = i.pop(), a.produce(i, c), l = !0;
|
|
2583
2625
|
return;
|
|
2584
2626
|
}
|
|
2585
|
-
} else if (o instanceof
|
|
2627
|
+
} else if (o instanceof vn) {
|
|
2586
2628
|
let r = o;
|
|
2587
|
-
|
|
2629
|
+
W(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
|
|
2588
2630
|
let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
|
|
2589
2631
|
if (i = i.withContentNameScopesList(m), r.whileHasBackReferences && (i = i.withEndRule(r.getWhileWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
|
|
2590
2632
|
i = i.pop(), a.produce(i, c), l = !0;
|
|
2591
2633
|
return;
|
|
2592
2634
|
}
|
|
2593
|
-
} else if (
|
|
2635
|
+
} else if (W(e, t, n, i, a, o.captures, s), a.produce(i, s[0].end), i = i.pop(), !f) {
|
|
2594
2636
|
i = i.safePop(), a.produce(i, c), l = !0;
|
|
2595
2637
|
return;
|
|
2596
2638
|
}
|
|
@@ -2598,23 +2640,23 @@ function wn(e, t, n, r, i, a, o, s) {
|
|
|
2598
2640
|
s[0].end > r && (r = s[0].end, n = !1);
|
|
2599
2641
|
}
|
|
2600
2642
|
}
|
|
2601
|
-
function
|
|
2643
|
+
function Dn(e, t, n, r, i, a) {
|
|
2602
2644
|
let o = i.beginRuleCapturedEOL ? 0 : -1, s = [];
|
|
2603
2645
|
for (let t = i; t; t = t.pop()) {
|
|
2604
2646
|
let n = t.getRule(e);
|
|
2605
|
-
n instanceof
|
|
2647
|
+
n instanceof vn && s.push({
|
|
2606
2648
|
rule: n,
|
|
2607
2649
|
stack: t
|
|
2608
2650
|
});
|
|
2609
2651
|
}
|
|
2610
2652
|
for (let c = s.pop(); c; c = s.pop()) {
|
|
2611
|
-
let { ruleScanner: s, findOptions: l } =
|
|
2653
|
+
let { ruleScanner: s, findOptions: l } = Mn(c.rule, e, c.stack.endRule, n, r === o), u = s.findNextMatchSync(t, r, l);
|
|
2612
2654
|
if (u) {
|
|
2613
|
-
if (u.ruleId !==
|
|
2655
|
+
if (u.ruleId !== dn) {
|
|
2614
2656
|
i = c.stack.pop();
|
|
2615
2657
|
break;
|
|
2616
2658
|
}
|
|
2617
|
-
u.captureIndices && u.captureIndices.length && (a.produce(c.stack, u.captureIndices[0].start),
|
|
2659
|
+
u.captureIndices && u.captureIndices.length && (a.produce(c.stack, u.captureIndices[0].start), W(e, t, n, c.stack, a, c.rule.whileCaptures, u.captureIndices), a.produce(c.stack, u.captureIndices[0].end), o = u.captureIndices[0].end, u.captureIndices[0].end > r && (r = u.captureIndices[0].end, n = !1));
|
|
2618
2660
|
} else {
|
|
2619
2661
|
i = c.stack.pop();
|
|
2620
2662
|
break;
|
|
@@ -2627,28 +2669,28 @@ function Tn(e, t, n, r, i, a) {
|
|
|
2627
2669
|
isFirstLine: n
|
|
2628
2670
|
};
|
|
2629
2671
|
}
|
|
2630
|
-
function
|
|
2631
|
-
let o =
|
|
2672
|
+
function On(e, t, n, r, i, a) {
|
|
2673
|
+
let o = kn(e, t, n, r, i, a), s = e.getInjections();
|
|
2632
2674
|
if (s.length === 0) return o;
|
|
2633
|
-
let c =
|
|
2675
|
+
let c = An(s, e, t, n, r, i, a);
|
|
2634
2676
|
if (!c) return o;
|
|
2635
2677
|
if (!o) return c;
|
|
2636
2678
|
let l = o.captureIndices[0].start, u = c.captureIndices[0].start;
|
|
2637
2679
|
return u < l || c.priorityMatch && u === l ? c : o;
|
|
2638
2680
|
}
|
|
2639
|
-
function
|
|
2640
|
-
let { ruleScanner: o, findOptions: s } =
|
|
2681
|
+
function kn(e, t, n, r, i, a) {
|
|
2682
|
+
let { ruleScanner: o, findOptions: s } = jn(i.getRule(e), e, i.endRule, n, r === a), c = o.findNextMatchSync(t, r, s);
|
|
2641
2683
|
return c ? {
|
|
2642
2684
|
captureIndices: c.captureIndices,
|
|
2643
2685
|
matchedRuleId: c.ruleId
|
|
2644
2686
|
} : null;
|
|
2645
2687
|
}
|
|
2646
|
-
function
|
|
2688
|
+
function An(e, t, n, r, i, a, o) {
|
|
2647
2689
|
let s = Number.MAX_VALUE, c = null, l, u = 0, d = a.contentNameScopesList.getScopeNames();
|
|
2648
2690
|
for (let a = 0, f = e.length; a < f; a++) {
|
|
2649
2691
|
let f = e[a];
|
|
2650
2692
|
if (!f.matcher(d)) continue;
|
|
2651
|
-
let { ruleScanner: p, findOptions: m } =
|
|
2693
|
+
let { ruleScanner: p, findOptions: m } = jn(t.getRule(f.ruleId), t, null, r, i === o), h = p.findNextMatchSync(n, i, m);
|
|
2652
2694
|
if (!h) continue;
|
|
2653
2695
|
let g = h.captureIndices[0].start;
|
|
2654
2696
|
if (!(g >= s) && (s = g, c = h.captureIndices, l = h.ruleId, u = f.priority, s === i)) break;
|
|
@@ -2659,29 +2701,29 @@ function On(e, t, n, r, i, a, o) {
|
|
|
2659
2701
|
matchedRuleId: l
|
|
2660
2702
|
} : null;
|
|
2661
2703
|
}
|
|
2662
|
-
function
|
|
2663
|
-
return
|
|
2704
|
+
function jn(e, t, n, r, i) {
|
|
2705
|
+
return wn ? {
|
|
2664
2706
|
ruleScanner: e.compile(t, n),
|
|
2665
|
-
findOptions:
|
|
2707
|
+
findOptions: Nn(r, i)
|
|
2666
2708
|
} : {
|
|
2667
2709
|
ruleScanner: e.compileAG(t, n, r, i),
|
|
2668
2710
|
findOptions: 0
|
|
2669
2711
|
};
|
|
2670
2712
|
}
|
|
2671
|
-
function
|
|
2672
|
-
return
|
|
2713
|
+
function Mn(e, t, n, r, i) {
|
|
2714
|
+
return wn ? {
|
|
2673
2715
|
ruleScanner: e.compileWhile(t, n),
|
|
2674
|
-
findOptions:
|
|
2716
|
+
findOptions: Nn(r, i)
|
|
2675
2717
|
} : {
|
|
2676
2718
|
ruleScanner: e.compileWhileAG(t, n, r, i),
|
|
2677
2719
|
findOptions: 0
|
|
2678
2720
|
};
|
|
2679
2721
|
}
|
|
2680
|
-
function
|
|
2722
|
+
function Nn(e, t) {
|
|
2681
2723
|
let n = 0;
|
|
2682
2724
|
return e || (n |= 1), t || (n |= 4), n;
|
|
2683
2725
|
}
|
|
2684
|
-
function
|
|
2726
|
+
function W(e, t, n, r, i, a, o) {
|
|
2685
2727
|
if (a.length === 0) return;
|
|
2686
2728
|
let s = t.content, c = Math.min(a.length, o.length), l = [], u = o[0].end;
|
|
2687
2729
|
for (let t = 0; t < c; t++) {
|
|
@@ -2693,29 +2735,29 @@ function U(e, t, n, r, i, a, o) {
|
|
|
2693
2735
|
for (; l.length > 0 && l[l.length - 1].endPos <= d.start;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
2694
2736
|
if (l.length > 0 ? i.produceFromScopes(l[l.length - 1].scopes, d.start) : i.produce(r, d.start), c.retokenizeCapturedWithRuleId) {
|
|
2695
2737
|
let t = c.getName(s, o), a = r.contentNameScopesList.pushAttributed(t, e), l = c.getContentName(s, o), u = a.pushAttributed(l, e), f = r.push(c.retokenizeCapturedWithRuleId, d.start, -1, !1, null, a, u), p = e.createOnigString(s.substring(0, d.end));
|
|
2696
|
-
|
|
2738
|
+
En(e, p, n && d.start === 0, d.start, f, i, !1, 0), qt(p);
|
|
2697
2739
|
continue;
|
|
2698
2740
|
}
|
|
2699
2741
|
let f = c.getName(s, o);
|
|
2700
2742
|
if (f !== null) {
|
|
2701
2743
|
let t = (l.length > 0 ? l[l.length - 1].scopes : r.contentNameScopesList).pushAttributed(f, e);
|
|
2702
|
-
l.push(new
|
|
2744
|
+
l.push(new Pn(t, d.end));
|
|
2703
2745
|
}
|
|
2704
2746
|
}
|
|
2705
2747
|
for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
2706
2748
|
}
|
|
2707
|
-
var
|
|
2749
|
+
var Pn = class {
|
|
2708
2750
|
scopes;
|
|
2709
2751
|
endPos;
|
|
2710
2752
|
constructor(e, t) {
|
|
2711
2753
|
this.scopes = e, this.endPos = t;
|
|
2712
2754
|
}
|
|
2713
2755
|
};
|
|
2714
|
-
function
|
|
2715
|
-
return new
|
|
2756
|
+
function Fn(e, t, n, r, i, a, o, s) {
|
|
2757
|
+
return new zn(e, t, n, r, i, a, o, s);
|
|
2716
2758
|
}
|
|
2717
|
-
function
|
|
2718
|
-
let a =
|
|
2759
|
+
function In(e, t, n, r, i) {
|
|
2760
|
+
let a = Wt(t, Ln), o = yn.getCompiledRuleId(n, r, i.repository);
|
|
2719
2761
|
for (let n of a) e.push({
|
|
2720
2762
|
debugSelector: t,
|
|
2721
2763
|
matcher: n.matcher,
|
|
@@ -2724,24 +2766,24 @@ function Pn(e, t, n, r, i) {
|
|
|
2724
2766
|
priority: n.priority
|
|
2725
2767
|
});
|
|
2726
2768
|
}
|
|
2727
|
-
function
|
|
2769
|
+
function Ln(e, t) {
|
|
2728
2770
|
if (t.length < e.length) return !1;
|
|
2729
2771
|
let n = 0;
|
|
2730
2772
|
return e.every((e) => {
|
|
2731
|
-
for (let r = n; r < t.length; r++) if (
|
|
2773
|
+
for (let r = n; r < t.length; r++) if (Rn(t[r], e)) return n = r + 1, !0;
|
|
2732
2774
|
return !1;
|
|
2733
2775
|
});
|
|
2734
2776
|
}
|
|
2735
|
-
function
|
|
2777
|
+
function Rn(e, t) {
|
|
2736
2778
|
if (!e) return !1;
|
|
2737
2779
|
if (e === t) return !0;
|
|
2738
2780
|
let n = t.length;
|
|
2739
2781
|
return e.length > n && e.substr(0, n) === t && e[n] === ".";
|
|
2740
2782
|
}
|
|
2741
|
-
var
|
|
2783
|
+
var zn = class {
|
|
2742
2784
|
constructor(e, t, n, r, i, a, o, s) {
|
|
2743
|
-
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new
|
|
2744
|
-
let t =
|
|
2785
|
+
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new Sn(n, r), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = o, this._grammar = Bn(t, null), this._injections = null, this._tokenTypeMatchers = [], i) for (let e of Object.keys(i)) {
|
|
2786
|
+
let t = Wt(e, Ln);
|
|
2745
2787
|
for (let n of t) this._tokenTypeMatchers.push({
|
|
2746
2788
|
matcher: n.matcher,
|
|
2747
2789
|
type: i[e]
|
|
@@ -2779,13 +2821,13 @@ var Ln = class {
|
|
|
2779
2821
|
}, t = [], n = this._rootScopeName, r = e.lookup(n);
|
|
2780
2822
|
if (r) {
|
|
2781
2823
|
let e = r.injections;
|
|
2782
|
-
if (e) for (let n in e)
|
|
2824
|
+
if (e) for (let n in e) In(t, n, e[n], this, r);
|
|
2783
2825
|
let i = this._grammarRepository.injections(n);
|
|
2784
2826
|
i && i.forEach((e) => {
|
|
2785
2827
|
let n = this.getExternalGrammar(e);
|
|
2786
2828
|
if (n) {
|
|
2787
2829
|
let e = n.injectionSelector;
|
|
2788
|
-
e &&
|
|
2830
|
+
e && In(t, e, n, this, n);
|
|
2789
2831
|
}
|
|
2790
2832
|
});
|
|
2791
2833
|
}
|
|
@@ -2795,17 +2837,17 @@ var Ln = class {
|
|
|
2795
2837
|
return this._injections === null && (this._injections = this._collectInjections()), this._injections;
|
|
2796
2838
|
}
|
|
2797
2839
|
registerRule(e) {
|
|
2798
|
-
let t = ++this._lastRuleId, n = e(
|
|
2840
|
+
let t = ++this._lastRuleId, n = e(fn(t));
|
|
2799
2841
|
return this._ruleId2desc[t] = n, n;
|
|
2800
2842
|
}
|
|
2801
2843
|
getRule(e) {
|
|
2802
|
-
return this._ruleId2desc[
|
|
2844
|
+
return this._ruleId2desc[pn(e)];
|
|
2803
2845
|
}
|
|
2804
2846
|
getExternalGrammar(e, t) {
|
|
2805
2847
|
if (this._includedGrammars[e]) return this._includedGrammars[e];
|
|
2806
2848
|
if (this._grammarRepository) {
|
|
2807
2849
|
let n = this._grammarRepository.lookup(e);
|
|
2808
|
-
if (n) return this._includedGrammars[e] =
|
|
2850
|
+
if (n) return this._includedGrammars[e] = Bn(n, t && t.$base), this._includedGrammars[e];
|
|
2809
2851
|
}
|
|
2810
2852
|
}
|
|
2811
2853
|
tokenizeLine(e, t, n = 0) {
|
|
@@ -2825,16 +2867,16 @@ var Ln = class {
|
|
|
2825
2867
|
};
|
|
2826
2868
|
}
|
|
2827
2869
|
_tokenize(e, t, n, r) {
|
|
2828
|
-
this._rootId === -1 && (this._rootId =
|
|
2870
|
+
this._rootId === -1 && (this._rootId = yn.getCompiledRuleId(this._grammar.repository.$self, this, this._grammar.repository), this.getInjections());
|
|
2829
2871
|
let i;
|
|
2830
|
-
if (!t || t ===
|
|
2872
|
+
if (!t || t === Vn.NULL) {
|
|
2831
2873
|
i = !0;
|
|
2832
|
-
let e = this._basicScopeAttributesProvider.getDefaultAttributes(), n = this.themeProvider.getDefaults(), r =
|
|
2833
|
-
o = a ?
|
|
2874
|
+
let e = this._basicScopeAttributesProvider.getDefaultAttributes(), n = this.themeProvider.getDefaults(), r = z.set(0, e.languageId, e.tokenType, null, n.fontStyle, n.foregroundId, n.backgroundId), a = this.getRule(this._rootId).getName(null, null), o;
|
|
2875
|
+
o = a ? G.createRootAndLookUpScopeName(a, r, this) : G.createRoot("unknown", r), t = new Vn(null, this._rootId, -1, -1, !1, null, o, o);
|
|
2834
2876
|
} else i = !1, t.reset();
|
|
2835
2877
|
e += "\n";
|
|
2836
|
-
let a = this.createOnigString(e), o = a.content.length, s = new
|
|
2837
|
-
return
|
|
2878
|
+
let a = this.createOnigString(e), o = a.content.length, s = new Un(n, e, this._tokenTypeMatchers, this.balancedBracketSelectors), c = En(this, a, i, 0, t, s, !0, r);
|
|
2879
|
+
return qt(a), {
|
|
2838
2880
|
lineLength: o,
|
|
2839
2881
|
lineTokens: s,
|
|
2840
2882
|
ruleStack: c.stack,
|
|
@@ -2842,27 +2884,27 @@ var Ln = class {
|
|
|
2842
2884
|
};
|
|
2843
2885
|
}
|
|
2844
2886
|
};
|
|
2845
|
-
function
|
|
2846
|
-
return e =
|
|
2887
|
+
function Bn(e, t) {
|
|
2888
|
+
return e = _t(e), e.repository = e.repository || {}, e.repository.$self = {
|
|
2847
2889
|
$vscodeTextmateLocation: e.$vscodeTextmateLocation,
|
|
2848
2890
|
patterns: e.patterns,
|
|
2849
2891
|
name: e.scopeName
|
|
2850
2892
|
}, e.repository.$base = t || e.repository.$self, e;
|
|
2851
2893
|
}
|
|
2852
|
-
var
|
|
2894
|
+
var G = class e {
|
|
2853
2895
|
constructor(e, t, n) {
|
|
2854
2896
|
this.parent = e, this.scopePath = t, this.tokenAttributes = n;
|
|
2855
2897
|
}
|
|
2856
2898
|
static fromExtension(t, n) {
|
|
2857
2899
|
let r = t, i = t?.scopePath ?? null;
|
|
2858
|
-
for (let t of n) i =
|
|
2900
|
+
for (let t of n) i = jt.push(i, t.scopeNames), r = new e(r, i, t.encodedTokenAttributes);
|
|
2859
2901
|
return r;
|
|
2860
2902
|
}
|
|
2861
2903
|
static createRoot(t, n) {
|
|
2862
|
-
return new e(null, new
|
|
2904
|
+
return new e(null, new jt(null, t), n);
|
|
2863
2905
|
}
|
|
2864
2906
|
static createRootAndLookUpScopeName(t, n, r) {
|
|
2865
|
-
let i = r.getMetadataForScope(t), a = new
|
|
2907
|
+
let i = r.getMetadataForScope(t), a = new jt(null, t), o = r.themeProvider.themeMatch(a);
|
|
2866
2908
|
return new e(null, a, e.mergeAttributes(n, i, o));
|
|
2867
2909
|
}
|
|
2868
2910
|
get scopeName() {
|
|
@@ -2883,7 +2925,7 @@ var W = class e {
|
|
|
2883
2925
|
}
|
|
2884
2926
|
static mergeAttributes(e, t, n) {
|
|
2885
2927
|
let r = -1, i = 0, a = 0;
|
|
2886
|
-
return n !== null && (r = n.fontStyle, i = n.foregroundId, a = n.backgroundId),
|
|
2928
|
+
return n !== null && (r = n.fontStyle, i = n.foregroundId, a = n.backgroundId), z.set(e, t.languageId, t.tokenType, null, r, i, a);
|
|
2887
2929
|
}
|
|
2888
2930
|
pushAttributed(t, n) {
|
|
2889
2931
|
if (t === null) return this;
|
|
@@ -2907,7 +2949,7 @@ var W = class e {
|
|
|
2907
2949
|
}), n = n.parent;
|
|
2908
2950
|
return n === e ? t.reverse() : void 0;
|
|
2909
2951
|
}
|
|
2910
|
-
},
|
|
2952
|
+
}, Vn = class e {
|
|
2911
2953
|
constructor(e, t, n, r, i, a, o, s) {
|
|
2912
2954
|
this.parent = e, this.ruleId = t, this.beginRuleCapturedEOL = i, this.endRule = a, this.nameScopesList = o, this.contentNameScopesList = s, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = n, this._anchorPos = r;
|
|
2913
2955
|
}
|
|
@@ -2920,7 +2962,7 @@ var W = class e {
|
|
|
2920
2962
|
return t === null ? !1 : e._equals(this, t);
|
|
2921
2963
|
}
|
|
2922
2964
|
static _equals(e, t) {
|
|
2923
|
-
return e === t ? !0 : this._structuralEquals(e, t) ?
|
|
2965
|
+
return e === t ? !0 : this._structuralEquals(e, t) ? G.equals(e.contentNameScopesList, t.contentNameScopesList) : !1;
|
|
2924
2966
|
}
|
|
2925
2967
|
static _structuralEquals(e, t) {
|
|
2926
2968
|
do {
|
|
@@ -2979,7 +3021,7 @@ var W = class e {
|
|
|
2979
3021
|
}
|
|
2980
3022
|
toStateStackFrame() {
|
|
2981
3023
|
return {
|
|
2982
|
-
ruleId:
|
|
3024
|
+
ruleId: pn(this.ruleId),
|
|
2983
3025
|
beginRuleCapturedEOL: this.beginRuleCapturedEOL,
|
|
2984
3026
|
endRule: this.endRule,
|
|
2985
3027
|
nameScopesList: this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList ?? null) ?? [],
|
|
@@ -2987,15 +3029,15 @@ var W = class e {
|
|
|
2987
3029
|
};
|
|
2988
3030
|
}
|
|
2989
3031
|
static pushFrame(t, n) {
|
|
2990
|
-
let r =
|
|
2991
|
-
return new e(t,
|
|
3032
|
+
let r = G.fromExtension(t?.nameScopesList ?? null, n.nameScopesList);
|
|
3033
|
+
return new e(t, fn(n.ruleId), n.enterPos ?? -1, n.anchorPos ?? -1, n.beginRuleCapturedEOL, n.endRule, r, G.fromExtension(r, n.contentNameScopesList));
|
|
2992
3034
|
}
|
|
2993
|
-
},
|
|
3035
|
+
}, Hn = class {
|
|
2994
3036
|
balancedBracketScopes;
|
|
2995
3037
|
unbalancedBracketScopes;
|
|
2996
3038
|
allowAny = !1;
|
|
2997
3039
|
constructor(e, t) {
|
|
2998
|
-
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) :
|
|
3040
|
+
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : Wt(e, Ln).map((e) => e.matcher)), this.unbalancedBracketScopes = t.flatMap((e) => Wt(e, Ln).map((e) => e.matcher));
|
|
2999
3041
|
}
|
|
3000
3042
|
get matchesAlways() {
|
|
3001
3043
|
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
@@ -3008,7 +3050,7 @@ var W = class e {
|
|
|
3008
3050
|
for (let t of this.balancedBracketScopes) if (t(e)) return !0;
|
|
3009
3051
|
return this.allowAny;
|
|
3010
3052
|
}
|
|
3011
|
-
},
|
|
3053
|
+
}, Un = class {
|
|
3012
3054
|
constructor(e, t, n, r) {
|
|
3013
3055
|
this.balancedBracketSelectors = r, this._emitBinaryTokens = e, this._tokenTypeOverrides = n, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
3014
3056
|
}
|
|
@@ -3027,10 +3069,10 @@ var W = class e {
|
|
|
3027
3069
|
let n = e?.tokenAttributes ?? 0, r = !1;
|
|
3028
3070
|
if (this.balancedBracketSelectors?.matchesAlways && (r = !0), this._tokenTypeOverrides.length > 0 || this.balancedBracketSelectors && !this.balancedBracketSelectors.matchesAlways && !this.balancedBracketSelectors.matchesNever) {
|
|
3029
3071
|
let t = e?.getScopeNames() ?? [];
|
|
3030
|
-
for (let e of this._tokenTypeOverrides) e.matcher(t) && (n =
|
|
3072
|
+
for (let e of this._tokenTypeOverrides) e.matcher(t) && (n = z.set(n, 0, Ht(e.type), null, -1, 0, 0));
|
|
3031
3073
|
this.balancedBracketSelectors && (r = this.balancedBracketSelectors.match(t));
|
|
3032
3074
|
}
|
|
3033
|
-
if (r && (n =
|
|
3075
|
+
if (r && (n = z.set(n, 0, 8, r, -1, 0, 0)), this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 1] === n) {
|
|
3034
3076
|
this._lastTokenEndIndex = t;
|
|
3035
3077
|
return;
|
|
3036
3078
|
}
|
|
@@ -3053,7 +3095,7 @@ var W = class e {
|
|
|
3053
3095
|
for (let e = 0, t = this._binaryTokens.length; e < t; e++) n[e] = this._binaryTokens[e];
|
|
3054
3096
|
return n;
|
|
3055
3097
|
}
|
|
3056
|
-
},
|
|
3098
|
+
}, Wn = class {
|
|
3057
3099
|
constructor(e, t) {
|
|
3058
3100
|
this._onigLib = t, this._theme = e;
|
|
3059
3101
|
}
|
|
@@ -3089,22 +3131,22 @@ var W = class e {
|
|
|
3089
3131
|
if (!this._grammars.has(e)) {
|
|
3090
3132
|
let a = this._rawGrammars.get(e);
|
|
3091
3133
|
if (!a) return null;
|
|
3092
|
-
this._grammars.set(e,
|
|
3134
|
+
this._grammars.set(e, Fn(e, a, t, n, r, i, this, this._onigLib));
|
|
3093
3135
|
}
|
|
3094
3136
|
return this._grammars.get(e);
|
|
3095
3137
|
}
|
|
3096
|
-
},
|
|
3138
|
+
}, Gn = class {
|
|
3097
3139
|
_options;
|
|
3098
3140
|
_syncRegistry;
|
|
3099
3141
|
_ensureGrammarCache;
|
|
3100
3142
|
constructor(e) {
|
|
3101
|
-
this._options = e, this._syncRegistry = new
|
|
3143
|
+
this._options = e, this._syncRegistry = new Wn(At.createFromRawTheme(e.theme, e.colorMap), e.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
3102
3144
|
}
|
|
3103
3145
|
dispose() {
|
|
3104
3146
|
this._syncRegistry.dispose();
|
|
3105
3147
|
}
|
|
3106
3148
|
setTheme(e, t) {
|
|
3107
|
-
this._syncRegistry.setTheme(
|
|
3149
|
+
this._syncRegistry.setTheme(At.createFromRawTheme(e, t));
|
|
3108
3150
|
}
|
|
3109
3151
|
getColorMap() {
|
|
3110
3152
|
return this._syncRegistry.getColorMap();
|
|
@@ -3113,13 +3155,13 @@ var W = class e {
|
|
|
3113
3155
|
return this.loadGrammarWithConfiguration(e, t, { embeddedLanguages: n });
|
|
3114
3156
|
}
|
|
3115
3157
|
loadGrammarWithConfiguration(e, t, n) {
|
|
3116
|
-
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new
|
|
3158
|
+
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new Hn(n.balancedBracketSelectors || [], n.unbalancedBracketSelectors || []));
|
|
3117
3159
|
}
|
|
3118
3160
|
loadGrammar(e) {
|
|
3119
3161
|
return this._loadGrammar(e, 0, null, null, null);
|
|
3120
3162
|
}
|
|
3121
3163
|
_loadGrammar(e, t, n, r, i) {
|
|
3122
|
-
let a = new
|
|
3164
|
+
let a = new Xt(this._syncRegistry, e);
|
|
3123
3165
|
for (; a.Q.length > 0;) a.Q.map((e) => this._loadSingleGrammar(e.scopeName)), a.processQueue();
|
|
3124
3166
|
return this._grammarForScopeName(e, t, n, r, i);
|
|
3125
3167
|
}
|
|
@@ -3139,24 +3181,24 @@ var W = class e {
|
|
|
3139
3181
|
_grammarForScopeName(e, t = 0, n = null, r = null, i = null) {
|
|
3140
3182
|
return this._syncRegistry.grammarForScopeName(e, t, n, r, i);
|
|
3141
3183
|
}
|
|
3142
|
-
},
|
|
3184
|
+
}, Kn = Vn.NULL;
|
|
3143
3185
|
//#endregion
|
|
3144
3186
|
//#region ../../node_modules/@shikijs/primitive/dist/index.mjs
|
|
3145
|
-
function
|
|
3187
|
+
function qn(e, t) {
|
|
3146
3188
|
let n = typeof e == "string" ? {} : { ...e.colorReplacements }, r = typeof e == "string" ? e : e.name;
|
|
3147
3189
|
for (let [e, i] of Object.entries(t?.colorReplacements || {})) typeof i == "string" ? n[e] = i : e === r && Object.assign(n, i);
|
|
3148
3190
|
return n;
|
|
3149
3191
|
}
|
|
3150
|
-
function
|
|
3192
|
+
function K(e, t) {
|
|
3151
3193
|
return e && (t?.[e?.toLowerCase()] || e);
|
|
3152
3194
|
}
|
|
3153
|
-
function
|
|
3195
|
+
function Jn(e) {
|
|
3154
3196
|
return Array.isArray(e) ? e : [e];
|
|
3155
3197
|
}
|
|
3156
|
-
async function
|
|
3198
|
+
async function Yn(e) {
|
|
3157
3199
|
return Promise.resolve(typeof e == "function" ? e() : e).then((e) => e.default || e);
|
|
3158
3200
|
}
|
|
3159
|
-
function
|
|
3201
|
+
function Xn(e) {
|
|
3160
3202
|
return !e || [
|
|
3161
3203
|
"plaintext",
|
|
3162
3204
|
"txt",
|
|
@@ -3164,16 +3206,16 @@ function Jn(e) {
|
|
|
3164
3206
|
"plain"
|
|
3165
3207
|
].includes(e);
|
|
3166
3208
|
}
|
|
3167
|
-
function
|
|
3168
|
-
return e === "ansi" ||
|
|
3209
|
+
function Zn(e) {
|
|
3210
|
+
return e === "ansi" || Xn(e);
|
|
3169
3211
|
}
|
|
3170
|
-
function
|
|
3212
|
+
function Qn(e) {
|
|
3171
3213
|
return e === "none";
|
|
3172
3214
|
}
|
|
3173
|
-
function
|
|
3174
|
-
return
|
|
3215
|
+
function $n(e) {
|
|
3216
|
+
return Qn(e);
|
|
3175
3217
|
}
|
|
3176
|
-
function
|
|
3218
|
+
function er(e, t = !1) {
|
|
3177
3219
|
if (e.length === 0) return [["", 0]];
|
|
3178
3220
|
let n = e.split(/(\r?\n)/g), r = 0, i = [];
|
|
3179
3221
|
for (let e = 0; e < n.length; e += 2) {
|
|
@@ -3182,21 +3224,21 @@ function Qn(e, t = !1) {
|
|
|
3182
3224
|
}
|
|
3183
3225
|
return i;
|
|
3184
3226
|
}
|
|
3185
|
-
var
|
|
3227
|
+
var tr = {
|
|
3186
3228
|
light: "#333333",
|
|
3187
3229
|
dark: "#bbbbbb"
|
|
3188
|
-
},
|
|
3230
|
+
}, nr = {
|
|
3189
3231
|
light: "#fffffe",
|
|
3190
3232
|
dark: "#1e1e1e"
|
|
3191
|
-
},
|
|
3192
|
-
function
|
|
3193
|
-
if (e?.[
|
|
3233
|
+
}, rr = "__shiki_resolved";
|
|
3234
|
+
function ir(e) {
|
|
3235
|
+
if (e?.[rr]) return e;
|
|
3194
3236
|
let t = { ...e };
|
|
3195
3237
|
t.tokenColors && !t.settings && (t.settings = t.tokenColors, delete t.tokenColors), t.type ||= "dark", t.colorReplacements = { ...t.colorReplacements }, t.settings ||= [];
|
|
3196
3238
|
let { bg: n, fg: r } = t;
|
|
3197
3239
|
if (!n || !r) {
|
|
3198
3240
|
let e = t.settings ? t.settings.find((e) => !e.name && !e.scope) : void 0;
|
|
3199
|
-
e?.settings?.foreground && (r = e.settings.foreground), e?.settings?.background && (n = e.settings.background), !r && t?.colors?.["editor.foreground"] && (r = t.colors["editor.foreground"]), !n && t?.colors?.["editor.background"] && (n = t.colors["editor.background"]), r ||= t.type === "light" ?
|
|
3241
|
+
e?.settings?.foreground && (r = e.settings.foreground), e?.settings?.background && (n = e.settings.background), !r && t?.colors?.["editor.foreground"] && (r = t.colors["editor.foreground"]), !n && t?.colors?.["editor.background"] && (n = t.colors["editor.background"]), r ||= t.type === "light" ? tr.light : tr.dark, n ||= t.type === "light" ? nr.light : nr.dark, t.fg = r, t.bg = n;
|
|
3200
3242
|
}
|
|
3201
3243
|
t.settings[0] && t.settings[0].settings && !t.settings[0].scope || t.settings.unshift({ settings: {
|
|
3202
3244
|
foreground: t.fg,
|
|
@@ -3230,30 +3272,30 @@ function nr(e) {
|
|
|
3230
3272
|
let n = o(t.colors[e]);
|
|
3231
3273
|
t.colorReplacements[n] = t.colors[e], t.colors[e] = n;
|
|
3232
3274
|
}
|
|
3233
|
-
return Object.defineProperty(t,
|
|
3275
|
+
return Object.defineProperty(t, rr, {
|
|
3234
3276
|
enumerable: !1,
|
|
3235
3277
|
writable: !1,
|
|
3236
3278
|
value: !0
|
|
3237
3279
|
}), t;
|
|
3238
3280
|
}
|
|
3239
|
-
async function
|
|
3240
|
-
return Array.from(new Set((await Promise.all(e.filter((e) => !
|
|
3281
|
+
async function ar(e) {
|
|
3282
|
+
return Array.from(new Set((await Promise.all(e.filter((e) => !Zn(e)).map(async (e) => await Yn(e).then((e) => Array.isArray(e) ? e : [e])))).flat()));
|
|
3241
3283
|
}
|
|
3242
|
-
async function
|
|
3243
|
-
return (await Promise.all(e.map(async (e) =>
|
|
3284
|
+
async function or(e) {
|
|
3285
|
+
return (await Promise.all(e.map(async (e) => $n(e) ? null : ir(await Yn(e))))).filter((e) => !!e);
|
|
3244
3286
|
}
|
|
3245
|
-
function
|
|
3287
|
+
function sr(e, t) {
|
|
3246
3288
|
if (!t) return e;
|
|
3247
3289
|
if (t[e]) {
|
|
3248
3290
|
let n = new Set([e]);
|
|
3249
3291
|
for (; t[e];) {
|
|
3250
|
-
if (e = t[e], n.has(e)) throw new
|
|
3292
|
+
if (e = t[e], n.has(e)) throw new L(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);
|
|
3251
3293
|
n.add(e);
|
|
3252
3294
|
}
|
|
3253
3295
|
}
|
|
3254
3296
|
return e;
|
|
3255
3297
|
}
|
|
3256
|
-
var
|
|
3298
|
+
var cr = class extends Gn {
|
|
3257
3299
|
_resolvedThemes = /* @__PURE__ */ new Map();
|
|
3258
3300
|
_resolvedGrammars = /* @__PURE__ */ new Map();
|
|
3259
3301
|
_langMap = /* @__PURE__ */ new Map();
|
|
@@ -3268,7 +3310,7 @@ var or = class extends Un {
|
|
|
3268
3310
|
return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
|
|
3269
3311
|
}
|
|
3270
3312
|
loadTheme(e) {
|
|
3271
|
-
let t =
|
|
3313
|
+
let t = ir(e);
|
|
3272
3314
|
return t.name && (this._resolvedThemes.set(t.name, t), this._loadedThemesCache = null), t;
|
|
3273
3315
|
}
|
|
3274
3316
|
getLoadedThemes() {
|
|
@@ -3276,10 +3318,10 @@ var or = class extends Un {
|
|
|
3276
3318
|
}
|
|
3277
3319
|
setTheme(e) {
|
|
3278
3320
|
let t = this._textmateThemeCache.get(e);
|
|
3279
|
-
t || (t =
|
|
3321
|
+
t || (t = At.createFromRawTheme(e), this._textmateThemeCache.set(e, t)), this._syncRegistry.setTheme(t);
|
|
3280
3322
|
}
|
|
3281
3323
|
getGrammar(e) {
|
|
3282
|
-
return e =
|
|
3324
|
+
return e = sr(e, this._alias), this._resolvedGrammars.get(e);
|
|
3283
3325
|
}
|
|
3284
3326
|
loadLanguage(e) {
|
|
3285
3327
|
if (this.getGrammar(e.name)) return;
|
|
@@ -3303,7 +3345,7 @@ var or = class extends Un {
|
|
|
3303
3345
|
let t = Array.from(this._langGraph.entries()), n = t.filter(([e, t]) => !t);
|
|
3304
3346
|
if (n.length) {
|
|
3305
3347
|
let e = t.filter(([e, t]) => t ? (t.embeddedLanguages || t.embeddedLangs)?.some((e) => n.map(([e]) => e).includes(e)) : !1).filter((e) => !n.includes(e));
|
|
3306
|
-
throw new
|
|
3348
|
+
throw new L(`Missing languages ${n.map(([e]) => `\`${e}\``).join(", ")}, required by ${e.map(([e]) => `\`${e}\``).join(", ")}`);
|
|
3307
3349
|
}
|
|
3308
3350
|
for (let [e, n] of t) this._resolver.addLanguage(n);
|
|
3309
3351
|
for (let [e, n] of t) this.loadLanguage(n);
|
|
@@ -3316,7 +3358,7 @@ var or = class extends Un {
|
|
|
3316
3358
|
let t = e.embeddedLanguages ?? e.embeddedLangs;
|
|
3317
3359
|
if (t) for (let e of t) this._langGraph.set(e, this._langMap.get(e));
|
|
3318
3360
|
}
|
|
3319
|
-
},
|
|
3361
|
+
}, lr = class {
|
|
3320
3362
|
_langs = /* @__PURE__ */ new Map();
|
|
3321
3363
|
_scopeToLang = /* @__PURE__ */ new Map();
|
|
3322
3364
|
_injections = /* @__PURE__ */ new Map();
|
|
@@ -3351,19 +3393,19 @@ var or = class extends Un {
|
|
|
3351
3393
|
}
|
|
3352
3394
|
return n;
|
|
3353
3395
|
}
|
|
3354
|
-
},
|
|
3355
|
-
function
|
|
3356
|
-
|
|
3396
|
+
}, q = 0;
|
|
3397
|
+
function ur(e) {
|
|
3398
|
+
q += 1, e.warnings !== !1 && q >= 10 && q % 10 == 0 && console.warn(`[Shiki] ${q} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);
|
|
3357
3399
|
let t = !1;
|
|
3358
|
-
if (!e.engine) throw new
|
|
3359
|
-
let n = (e.langs || []).flat(1), r = (e.themes || []).flat(1).map(
|
|
3400
|
+
if (!e.engine) throw new L("`engine` option is required for synchronous mode");
|
|
3401
|
+
let n = (e.langs || []).flat(1), r = (e.themes || []).flat(1).map(ir), i = new cr(new lr(e.engine, n), r, n, e.langAlias), a;
|
|
3360
3402
|
function o(t) {
|
|
3361
|
-
return
|
|
3403
|
+
return sr(t, e.langAlias);
|
|
3362
3404
|
}
|
|
3363
3405
|
function s(e) {
|
|
3364
3406
|
g();
|
|
3365
3407
|
let t = i.getGrammar(typeof e == "string" ? e : e.name);
|
|
3366
|
-
if (!t) throw new
|
|
3408
|
+
if (!t) throw new L(`Language \`${e}\` not found, you may need to load it first`);
|
|
3367
3409
|
return t;
|
|
3368
3410
|
}
|
|
3369
3411
|
function c(e) {
|
|
@@ -3376,7 +3418,7 @@ function cr(e) {
|
|
|
3376
3418
|
};
|
|
3377
3419
|
g();
|
|
3378
3420
|
let t = i.getTheme(e);
|
|
3379
|
-
if (!t) throw new
|
|
3421
|
+
if (!t) throw new L(`Theme \`${e}\` not found, you may need to load it first`);
|
|
3380
3422
|
return t;
|
|
3381
3423
|
}
|
|
3382
3424
|
function l(e) {
|
|
@@ -3397,20 +3439,20 @@ function cr(e) {
|
|
|
3397
3439
|
g(), i.loadLanguages(e.flat(1));
|
|
3398
3440
|
}
|
|
3399
3441
|
async function p(...e) {
|
|
3400
|
-
return f(await
|
|
3442
|
+
return f(await ar(e));
|
|
3401
3443
|
}
|
|
3402
3444
|
function m(...e) {
|
|
3403
3445
|
g();
|
|
3404
3446
|
for (let t of e.flat(1)) i.loadTheme(t);
|
|
3405
3447
|
}
|
|
3406
3448
|
async function h(...e) {
|
|
3407
|
-
return g(), m(await
|
|
3449
|
+
return g(), m(await or(e));
|
|
3408
3450
|
}
|
|
3409
3451
|
function g() {
|
|
3410
|
-
if (t) throw new
|
|
3452
|
+
if (t) throw new L("Shiki instance has been disposed");
|
|
3411
3453
|
}
|
|
3412
3454
|
function _() {
|
|
3413
|
-
t || (t = !0, i.dispose(), --
|
|
3455
|
+
t || (t = !0, i.dispose(), --q);
|
|
3414
3456
|
}
|
|
3415
3457
|
return {
|
|
3416
3458
|
setTheme: l,
|
|
@@ -3427,28 +3469,28 @@ function cr(e) {
|
|
|
3427
3469
|
[Symbol.dispose]: _
|
|
3428
3470
|
};
|
|
3429
3471
|
}
|
|
3430
|
-
async function
|
|
3472
|
+
async function dr(e) {
|
|
3431
3473
|
e.engine || console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
|
|
3432
3474
|
let [t, n, r] = await Promise.all([
|
|
3433
|
-
|
|
3434
|
-
|
|
3475
|
+
or(e.themes || []),
|
|
3476
|
+
ar(e.langs || []),
|
|
3435
3477
|
e.engine
|
|
3436
3478
|
]);
|
|
3437
|
-
return
|
|
3479
|
+
return ur({
|
|
3438
3480
|
...e,
|
|
3439
3481
|
themes: t,
|
|
3440
3482
|
langs: n,
|
|
3441
3483
|
engine: r
|
|
3442
3484
|
});
|
|
3443
3485
|
}
|
|
3444
|
-
var
|
|
3445
|
-
function
|
|
3446
|
-
|
|
3486
|
+
var fr = /* @__PURE__ */ new WeakMap();
|
|
3487
|
+
function pr(e, t) {
|
|
3488
|
+
fr.set(e, t);
|
|
3447
3489
|
}
|
|
3448
|
-
function
|
|
3449
|
-
return
|
|
3490
|
+
function J(e) {
|
|
3491
|
+
return fr.get(e);
|
|
3450
3492
|
}
|
|
3451
|
-
var
|
|
3493
|
+
var mr = class e {
|
|
3452
3494
|
_stacks = {};
|
|
3453
3495
|
lang;
|
|
3454
3496
|
get themes() {
|
|
@@ -3461,7 +3503,7 @@ var fr = class e {
|
|
|
3461
3503
|
return this._stacks[this.theme];
|
|
3462
3504
|
}
|
|
3463
3505
|
static initial(t, n) {
|
|
3464
|
-
return new e(Object.fromEntries(
|
|
3506
|
+
return new e(Object.fromEntries(Jn(n).map((e) => [e, Kn])), t);
|
|
3465
3507
|
}
|
|
3466
3508
|
constructor(...e) {
|
|
3467
3509
|
if (e.length === 2) {
|
|
@@ -3476,7 +3518,7 @@ var fr = class e {
|
|
|
3476
3518
|
return this._stacks[e];
|
|
3477
3519
|
}
|
|
3478
3520
|
getScopes(e = this.theme) {
|
|
3479
|
-
return
|
|
3521
|
+
return hr(this._stacks[e]);
|
|
3480
3522
|
}
|
|
3481
3523
|
toJSON() {
|
|
3482
3524
|
return {
|
|
@@ -3487,7 +3529,7 @@ var fr = class e {
|
|
|
3487
3529
|
};
|
|
3488
3530
|
}
|
|
3489
3531
|
};
|
|
3490
|
-
function
|
|
3532
|
+
function hr(e) {
|
|
3491
3533
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
3492
3534
|
function r(e) {
|
|
3493
3535
|
if (n.has(e)) return;
|
|
@@ -3497,37 +3539,37 @@ function pr(e) {
|
|
|
3497
3539
|
}
|
|
3498
3540
|
return r(e), t;
|
|
3499
3541
|
}
|
|
3500
|
-
function
|
|
3501
|
-
if (!(e instanceof
|
|
3542
|
+
function gr(e, t) {
|
|
3543
|
+
if (!(e instanceof mr)) throw new L("Invalid grammar state");
|
|
3502
3544
|
return e.getInternalStack(t);
|
|
3503
3545
|
}
|
|
3504
|
-
function
|
|
3546
|
+
function _r(e, t, n = {}) {
|
|
3505
3547
|
let { theme: r = e.getLoadedThemes()[0] } = n;
|
|
3506
|
-
if (
|
|
3548
|
+
if (Xn(e.resolveLangAlias(n.lang || "text")) || Qn(r)) return er(t).map((e) => [{
|
|
3507
3549
|
content: e[0],
|
|
3508
3550
|
offset: e[1]
|
|
3509
3551
|
}]);
|
|
3510
3552
|
let { theme: i, colorMap: a } = e.setTheme(r), o = e.getLanguage(n.lang || "text");
|
|
3511
3553
|
if (n.grammarState) {
|
|
3512
|
-
if (n.grammarState.lang !== o.name) throw new
|
|
3513
|
-
if (!n.grammarState.themes.includes(i.name)) throw new
|
|
3554
|
+
if (n.grammarState.lang !== o.name) throw new L(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);
|
|
3555
|
+
if (!n.grammarState.themes.includes(i.name)) throw new L(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`);
|
|
3514
3556
|
}
|
|
3515
|
-
return
|
|
3557
|
+
return yr(t, o, i, a, n);
|
|
3516
3558
|
}
|
|
3517
|
-
function
|
|
3518
|
-
if (e.length === 2) return
|
|
3559
|
+
function vr(...e) {
|
|
3560
|
+
if (e.length === 2) return J(e[1]);
|
|
3519
3561
|
let [t, n, r = {}] = e, { lang: i = "text", theme: a = t.getLoadedThemes()[0] } = r;
|
|
3520
|
-
if (
|
|
3521
|
-
if (i === "ansi") throw new
|
|
3562
|
+
if (Xn(i) || Qn(a)) throw new L("Plain language does not have grammar state");
|
|
3563
|
+
if (i === "ansi") throw new L("ANSI language does not have grammar state");
|
|
3522
3564
|
let { theme: o, colorMap: s } = t.setTheme(a), c = t.getLanguage(i);
|
|
3523
|
-
return new
|
|
3565
|
+
return new mr(br(n, c, o, s, r).stateStack, c.name, o.name);
|
|
3524
3566
|
}
|
|
3525
|
-
function
|
|
3526
|
-
let a =
|
|
3527
|
-
return
|
|
3567
|
+
function yr(e, t, n, r, i) {
|
|
3568
|
+
let a = br(e, t, n, r, i), o = new mr(a.stateStack, t.name, n.name);
|
|
3569
|
+
return pr(a.tokens, o), a.tokens;
|
|
3528
3570
|
}
|
|
3529
|
-
function
|
|
3530
|
-
let a =
|
|
3571
|
+
function br(e, t, n, r, i) {
|
|
3572
|
+
let a = qn(n, i), { tokenizeMaxLineLength: o = 0, tokenizeTimeLimit: s = 500 } = i, c = er(e), l = i.grammarState ? gr(i.grammarState, n.name) ?? Kn : i.grammarContextCode == null ? Kn : br(i.grammarContextCode, t, n, r, {
|
|
3531
3573
|
...i,
|
|
3532
3574
|
grammarState: void 0,
|
|
3533
3575
|
grammarContextCode: void 0
|
|
@@ -3553,7 +3595,7 @@ function vr(e, t, n, r, i) {
|
|
|
3553
3595
|
for (let e = 0; e < v; e++) {
|
|
3554
3596
|
let t = _.tokens[2 * e], o = e + 1 < v ? _.tokens[2 * e + 2] : f.length;
|
|
3555
3597
|
if (t === o) continue;
|
|
3556
|
-
let s = _.tokens[2 * e + 1], c =
|
|
3598
|
+
let s = _.tokens[2 * e + 1], c = K(r[z.getForeground(s)], a), l = z.getFontStyle(s), d = {
|
|
3557
3599
|
content: f.substring(t, o),
|
|
3558
3600
|
offset: p + t,
|
|
3559
3601
|
color: c,
|
|
@@ -3583,7 +3625,7 @@ function vr(e, t, n, r, i) {
|
|
|
3583
3625
|
let t = h[g], n = f.substring(t.startIndex, t.endIndex);
|
|
3584
3626
|
r += n.length, d.explanation.push({
|
|
3585
3627
|
content: n,
|
|
3586
|
-
scopes: i.includeExplanation === "scopeName" ?
|
|
3628
|
+
scopes: i.includeExplanation === "scopeName" ? xr(t.scopes) : Sr(e, t.scopes)
|
|
3587
3629
|
}), g += 1;
|
|
3588
3630
|
}
|
|
3589
3631
|
}
|
|
@@ -3596,38 +3638,38 @@ function vr(e, t, n, r, i) {
|
|
|
3596
3638
|
stateStack: l
|
|
3597
3639
|
};
|
|
3598
3640
|
}
|
|
3599
|
-
function
|
|
3641
|
+
function xr(e) {
|
|
3600
3642
|
return e.map((e) => ({ scopeName: e }));
|
|
3601
3643
|
}
|
|
3602
|
-
function
|
|
3644
|
+
function Sr(e, t) {
|
|
3603
3645
|
let n = [];
|
|
3604
3646
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
3605
3647
|
let i = t[r];
|
|
3606
3648
|
n[r] = {
|
|
3607
3649
|
scopeName: i,
|
|
3608
|
-
themeMatches:
|
|
3650
|
+
themeMatches: Tr(e, i, t.slice(0, r))
|
|
3609
3651
|
};
|
|
3610
3652
|
}
|
|
3611
3653
|
return n;
|
|
3612
3654
|
}
|
|
3613
|
-
function
|
|
3655
|
+
function Cr(e, t) {
|
|
3614
3656
|
return e === t || t.substring(0, e.length) === e && t[e.length] === ".";
|
|
3615
3657
|
}
|
|
3616
|
-
function
|
|
3617
|
-
if (!
|
|
3658
|
+
function wr(e, t, n) {
|
|
3659
|
+
if (!Cr(e[e.length - 1], t)) return !1;
|
|
3618
3660
|
let r = e.length - 2, i = n.length - 1;
|
|
3619
|
-
for (; r >= 0 && i >= 0;)
|
|
3661
|
+
for (; r >= 0 && i >= 0;) Cr(e[r], n[i]) && --r, --i;
|
|
3620
3662
|
return r === -1;
|
|
3621
3663
|
}
|
|
3622
|
-
function
|
|
3664
|
+
function Tr(e, t, n) {
|
|
3623
3665
|
let r = [];
|
|
3624
|
-
for (let { selectors: i, settings: a } of e) for (let e of i) if (
|
|
3666
|
+
for (let { selectors: i, settings: a } of e) for (let e of i) if (wr(e, t, n)) {
|
|
3625
3667
|
r.push(a);
|
|
3626
3668
|
break;
|
|
3627
3669
|
}
|
|
3628
3670
|
return r;
|
|
3629
3671
|
}
|
|
3630
|
-
function
|
|
3672
|
+
function Er(e, t, n, r = _r) {
|
|
3631
3673
|
let i = Object.entries(n.themes).filter((e) => e[1]).map((e) => ({
|
|
3632
3674
|
color: e[0],
|
|
3633
3675
|
theme: e[1]
|
|
@@ -3638,10 +3680,10 @@ function wr(e, t, n, r = hr) {
|
|
|
3638
3680
|
});
|
|
3639
3681
|
return {
|
|
3640
3682
|
tokens: a,
|
|
3641
|
-
state:
|
|
3683
|
+
state: J(a),
|
|
3642
3684
|
theme: typeof i.theme == "string" ? i.theme : i.theme.name
|
|
3643
3685
|
};
|
|
3644
|
-
}), o =
|
|
3686
|
+
}), o = Dr(...a.map((e) => e.tokens)), s = o[0].map((e, t) => e.map((e, r) => {
|
|
3645
3687
|
let a = {
|
|
3646
3688
|
content: e.content,
|
|
3647
3689
|
variants: {},
|
|
@@ -3651,10 +3693,10 @@ function wr(e, t, n, r = hr) {
|
|
|
3651
3693
|
let { content: o, explanation: s, offset: c, ...l } = e[t][r];
|
|
3652
3694
|
a.variants[i[n].color] = l;
|
|
3653
3695
|
}), a;
|
|
3654
|
-
})), c = a[0].state ? new
|
|
3655
|
-
return c &&
|
|
3696
|
+
})), c = a[0].state ? new mr(Object.fromEntries(a.map((e) => [e.theme, e.state?.getInternalStack(e.theme)])), a[0].state.lang) : void 0;
|
|
3697
|
+
return c && pr(s, c), s;
|
|
3656
3698
|
}
|
|
3657
|
-
function
|
|
3699
|
+
function Dr(...e) {
|
|
3658
3700
|
let t = e.map(() => []), n = e.length;
|
|
3659
3701
|
for (let r = 0; r < e[0].length; r++) {
|
|
3660
3702
|
let i = e.map((e) => e[r]), a = t.map(() => []);
|
|
@@ -3679,7 +3721,7 @@ function Tr(...e) {
|
|
|
3679
3721
|
}
|
|
3680
3722
|
//#endregion
|
|
3681
3723
|
//#region ../../node_modules/html-void-elements/index.js
|
|
3682
|
-
var
|
|
3724
|
+
var Or = [
|
|
3683
3725
|
"area",
|
|
3684
3726
|
"base",
|
|
3685
3727
|
"basefont",
|
|
@@ -3700,14 +3742,14 @@ var Er = [
|
|
|
3700
3742
|
"source",
|
|
3701
3743
|
"track",
|
|
3702
3744
|
"wbr"
|
|
3703
|
-
],
|
|
3704
|
-
function
|
|
3745
|
+
], kr = {}.hasOwnProperty;
|
|
3746
|
+
function Ar(e, t) {
|
|
3705
3747
|
let n = t || {};
|
|
3706
3748
|
function r(t, ...n) {
|
|
3707
3749
|
let i = r.invalid, a = r.handlers;
|
|
3708
|
-
if (t &&
|
|
3750
|
+
if (t && kr.call(t, e)) {
|
|
3709
3751
|
let n = String(t[e]);
|
|
3710
|
-
i =
|
|
3752
|
+
i = kr.call(a, n) ? a[n] : r.unknown;
|
|
3711
3753
|
}
|
|
3712
3754
|
if (i) return i.call(this, t, ...n);
|
|
3713
3755
|
}
|
|
@@ -3715,10 +3757,10 @@ function Or(e, t) {
|
|
|
3715
3757
|
}
|
|
3716
3758
|
//#endregion
|
|
3717
3759
|
//#region ../../node_modules/stringify-entities/lib/core.js
|
|
3718
|
-
var
|
|
3719
|
-
function
|
|
3720
|
-
if (e = e.replace(t.subset ?
|
|
3721
|
-
return e.replace(
|
|
3760
|
+
var jr = /["&'<>`]/g, Mr = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, Nr = /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g, Pr = /[|\\{}()[\]^$+*?.]/g, Fr = /* @__PURE__ */ new WeakMap();
|
|
3761
|
+
function Ir(e, t) {
|
|
3762
|
+
if (e = e.replace(t.subset ? Lr(t.subset) : jr, r), t.subset || t.escapeOnly) return e;
|
|
3763
|
+
return e.replace(Mr, n).replace(Nr, r);
|
|
3722
3764
|
function n(e, n, r) {
|
|
3723
3765
|
return t.format((e.charCodeAt(0) - 55296) * 1024 + e.charCodeAt(1) - 56320 + 65536, r.charCodeAt(n + 2), t);
|
|
3724
3766
|
}
|
|
@@ -3726,32 +3768,32 @@ function Pr(e, t) {
|
|
|
3726
3768
|
return t.format(e.charCodeAt(0), r.charCodeAt(n + 1), t);
|
|
3727
3769
|
}
|
|
3728
3770
|
}
|
|
3729
|
-
function
|
|
3730
|
-
let t =
|
|
3731
|
-
return t || (t =
|
|
3771
|
+
function Lr(e) {
|
|
3772
|
+
let t = Fr.get(e);
|
|
3773
|
+
return t || (t = Rr(e), Fr.set(e, t)), t;
|
|
3732
3774
|
}
|
|
3733
|
-
function
|
|
3775
|
+
function Rr(e) {
|
|
3734
3776
|
let t = [], n = -1;
|
|
3735
|
-
for (; ++n < e.length;) t.push(e[n].replace(
|
|
3777
|
+
for (; ++n < e.length;) t.push(e[n].replace(Pr, "\\$&"));
|
|
3736
3778
|
return RegExp("(?:" + t.join("|") + ")", "g");
|
|
3737
3779
|
}
|
|
3738
3780
|
//#endregion
|
|
3739
3781
|
//#region ../../node_modules/stringify-entities/lib/util/to-hexadecimal.js
|
|
3740
|
-
var
|
|
3741
|
-
function
|
|
3782
|
+
var zr = /[\dA-Fa-f]/;
|
|
3783
|
+
function Br(e, t, n) {
|
|
3742
3784
|
let r = "&#x" + e.toString(16).toUpperCase();
|
|
3743
|
-
return n && t && !
|
|
3785
|
+
return n && t && !zr.test(String.fromCharCode(t)) ? r : r + ";";
|
|
3744
3786
|
}
|
|
3745
3787
|
//#endregion
|
|
3746
3788
|
//#region ../../node_modules/stringify-entities/lib/util/to-decimal.js
|
|
3747
|
-
var
|
|
3748
|
-
function
|
|
3789
|
+
var Vr = /\d/;
|
|
3790
|
+
function Hr(e, t, n) {
|
|
3749
3791
|
let r = "&#" + String(e);
|
|
3750
|
-
return n && t && !
|
|
3792
|
+
return n && t && !Vr.test(String.fromCharCode(t)) ? r : r + ";";
|
|
3751
3793
|
}
|
|
3752
3794
|
//#endregion
|
|
3753
3795
|
//#region ../../node_modules/character-entities-legacy/index.js
|
|
3754
|
-
var
|
|
3796
|
+
var Ur = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."), Wr = {
|
|
3755
3797
|
nbsp: "\xA0",
|
|
3756
3798
|
iexcl: "¡",
|
|
3757
3799
|
cent: "¢",
|
|
@@ -4004,7 +4046,7 @@ var Vr = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
|
|
|
4004
4046
|
lsaquo: "‹",
|
|
4005
4047
|
rsaquo: "›",
|
|
4006
4048
|
euro: "€"
|
|
4007
|
-
},
|
|
4049
|
+
}, Gr = [
|
|
4008
4050
|
"cent",
|
|
4009
4051
|
"copy",
|
|
4010
4052
|
"divide",
|
|
@@ -4013,49 +4055,49 @@ var Vr = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
|
|
|
4013
4055
|
"not",
|
|
4014
4056
|
"para",
|
|
4015
4057
|
"times"
|
|
4016
|
-
],
|
|
4017
|
-
for (
|
|
4018
|
-
var
|
|
4019
|
-
function
|
|
4058
|
+
], Kr = {}.hasOwnProperty, qr = {}, Jr;
|
|
4059
|
+
for (Jr in Wr) Kr.call(Wr, Jr) && (qr[Wr[Jr]] = Jr);
|
|
4060
|
+
var Yr = /[^\dA-Za-z]/;
|
|
4061
|
+
function Xr(e, t, n, r) {
|
|
4020
4062
|
let i = String.fromCharCode(e);
|
|
4021
|
-
if (
|
|
4022
|
-
let e =
|
|
4023
|
-
return n &&
|
|
4063
|
+
if (Kr.call(qr, i)) {
|
|
4064
|
+
let e = qr[i], a = "&" + e;
|
|
4065
|
+
return n && Ur.includes(e) && !Gr.includes(e) && (!r || t && t !== 61 && Yr.test(String.fromCharCode(t))) ? a : a + ";";
|
|
4024
4066
|
}
|
|
4025
4067
|
return "";
|
|
4026
4068
|
}
|
|
4027
4069
|
//#endregion
|
|
4028
4070
|
//#region ../../node_modules/stringify-entities/lib/util/format-smart.js
|
|
4029
|
-
function
|
|
4030
|
-
let r =
|
|
4031
|
-
if ((n.useNamedReferences || n.useShortestReferences) && (i =
|
|
4032
|
-
let i =
|
|
4071
|
+
function Zr(e, t, n) {
|
|
4072
|
+
let r = Br(e, t, n.omitOptionalSemicolons), i;
|
|
4073
|
+
if ((n.useNamedReferences || n.useShortestReferences) && (i = Xr(e, t, n.omitOptionalSemicolons, n.attribute)), (n.useShortestReferences || !i) && n.useShortestReferences) {
|
|
4074
|
+
let i = Hr(e, t, n.omitOptionalSemicolons);
|
|
4033
4075
|
i.length < r.length && (r = i);
|
|
4034
4076
|
}
|
|
4035
4077
|
return i && (!n.useShortestReferences || i.length < r.length) ? i : r;
|
|
4036
4078
|
}
|
|
4037
4079
|
//#endregion
|
|
4038
4080
|
//#region ../../node_modules/stringify-entities/lib/index.js
|
|
4039
|
-
function
|
|
4040
|
-
return
|
|
4081
|
+
function Y(e, t) {
|
|
4082
|
+
return Ir(e, Object.assign({ format: Zr }, t));
|
|
4041
4083
|
}
|
|
4042
4084
|
//#endregion
|
|
4043
4085
|
//#region ../../node_modules/hast-util-to-html/lib/handle/comment.js
|
|
4044
|
-
var
|
|
4045
|
-
function
|
|
4046
|
-
return r.settings.bogusComments ? "<?" +
|
|
4086
|
+
var Qr = /^>|^->|<!--|-->|--!>|<!-$/g, $r = [">"], ei = ["<", ">"];
|
|
4087
|
+
function ti(e, t, n, r) {
|
|
4088
|
+
return r.settings.bogusComments ? "<?" + Y(e.value, Object.assign({}, r.settings.characterReferences, { subset: $r })) + ">" : "<!--" + e.value.replace(Qr, i) + "-->";
|
|
4047
4089
|
function i(e) {
|
|
4048
|
-
return
|
|
4090
|
+
return Y(e, Object.assign({}, r.settings.characterReferences, { subset: ei }));
|
|
4049
4091
|
}
|
|
4050
4092
|
}
|
|
4051
4093
|
//#endregion
|
|
4052
4094
|
//#region ../../node_modules/hast-util-to-html/lib/handle/doctype.js
|
|
4053
|
-
function
|
|
4095
|
+
function ni(e, t, n, r) {
|
|
4054
4096
|
return "<!" + (r.settings.upperDoctype ? "DOCTYPE" : "doctype") + (r.settings.tightDoctype ? "" : " ") + "html>";
|
|
4055
4097
|
}
|
|
4056
4098
|
//#endregion
|
|
4057
4099
|
//#region ../../node_modules/ccount/index.js
|
|
4058
|
-
function
|
|
4100
|
+
function ri(e, t) {
|
|
4059
4101
|
let n = String(e);
|
|
4060
4102
|
if (typeof t != "string") throw TypeError("Expected character");
|
|
4061
4103
|
let r = 0, i = n.indexOf(t);
|
|
@@ -4064,120 +4106,120 @@ function ti(e, t) {
|
|
|
4064
4106
|
}
|
|
4065
4107
|
//#endregion
|
|
4066
4108
|
//#region ../../node_modules/hast-util-to-html/lib/omission/util/siblings.js
|
|
4067
|
-
var
|
|
4068
|
-
function
|
|
4109
|
+
var X = oi(1), ii = oi(-1), ai = [];
|
|
4110
|
+
function oi(e) {
|
|
4069
4111
|
return t;
|
|
4070
4112
|
function t(t, n, r) {
|
|
4071
|
-
let i = t ? t.children :
|
|
4113
|
+
let i = t ? t.children : ai, a = (n || 0) + e, o = i[a];
|
|
4072
4114
|
if (!r) for (; o && y(o);) a += e, o = i[a];
|
|
4073
4115
|
return o;
|
|
4074
4116
|
}
|
|
4075
4117
|
}
|
|
4076
4118
|
//#endregion
|
|
4077
4119
|
//#region ../../node_modules/hast-util-to-html/lib/omission/omission.js
|
|
4078
|
-
var
|
|
4079
|
-
function
|
|
4120
|
+
var si = {}.hasOwnProperty;
|
|
4121
|
+
function ci(e) {
|
|
4080
4122
|
return t;
|
|
4081
4123
|
function t(t, n, r) {
|
|
4082
|
-
return
|
|
4124
|
+
return si.call(e, t.tagName) && e[t.tagName](t, n, r);
|
|
4083
4125
|
}
|
|
4084
4126
|
}
|
|
4085
4127
|
//#endregion
|
|
4086
4128
|
//#region ../../node_modules/hast-util-to-html/lib/omission/closing.js
|
|
4087
|
-
var
|
|
4088
|
-
body:
|
|
4089
|
-
caption:
|
|
4090
|
-
colgroup:
|
|
4091
|
-
dd:
|
|
4092
|
-
dt:
|
|
4093
|
-
head:
|
|
4094
|
-
html:
|
|
4095
|
-
li:
|
|
4096
|
-
optgroup:
|
|
4097
|
-
option:
|
|
4098
|
-
p:
|
|
4099
|
-
rp:
|
|
4100
|
-
rt:
|
|
4101
|
-
tbody:
|
|
4102
|
-
td:
|
|
4103
|
-
tfoot:
|
|
4104
|
-
th:
|
|
4105
|
-
thead:
|
|
4106
|
-
tr:
|
|
4129
|
+
var li = ci({
|
|
4130
|
+
body: fi,
|
|
4131
|
+
caption: ui,
|
|
4132
|
+
colgroup: ui,
|
|
4133
|
+
dd: gi,
|
|
4134
|
+
dt: hi,
|
|
4135
|
+
head: ui,
|
|
4136
|
+
html: di,
|
|
4137
|
+
li: mi,
|
|
4138
|
+
optgroup: vi,
|
|
4139
|
+
option: yi,
|
|
4140
|
+
p: pi,
|
|
4141
|
+
rp: _i,
|
|
4142
|
+
rt: _i,
|
|
4143
|
+
tbody: xi,
|
|
4144
|
+
td: wi,
|
|
4145
|
+
tfoot: Si,
|
|
4146
|
+
th: wi,
|
|
4147
|
+
thead: bi,
|
|
4148
|
+
tr: Ci
|
|
4107
4149
|
});
|
|
4108
|
-
function
|
|
4109
|
-
let r =
|
|
4150
|
+
function ui(e, t, n) {
|
|
4151
|
+
let r = X(n, t, !0);
|
|
4110
4152
|
return !r || r.type !== "comment" && !(r.type === "text" && y(r.value.charAt(0)));
|
|
4111
4153
|
}
|
|
4112
|
-
function
|
|
4113
|
-
let r =
|
|
4154
|
+
function di(e, t, n) {
|
|
4155
|
+
let r = X(n, t);
|
|
4114
4156
|
return !r || r.type !== "comment";
|
|
4115
4157
|
}
|
|
4116
|
-
function
|
|
4117
|
-
let r =
|
|
4158
|
+
function fi(e, t, n) {
|
|
4159
|
+
let r = X(n, t);
|
|
4118
4160
|
return !r || r.type !== "comment";
|
|
4119
4161
|
}
|
|
4120
|
-
function
|
|
4121
|
-
let r =
|
|
4162
|
+
function pi(e, t, n) {
|
|
4163
|
+
let r = X(n, t);
|
|
4122
4164
|
return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n || !(n.type === "element" && (n.tagName === "a" || n.tagName === "audio" || n.tagName === "del" || n.tagName === "ins" || n.tagName === "map" || n.tagName === "noscript" || n.tagName === "video"));
|
|
4123
4165
|
}
|
|
4124
|
-
function
|
|
4125
|
-
let r =
|
|
4166
|
+
function mi(e, t, n) {
|
|
4167
|
+
let r = X(n, t);
|
|
4126
4168
|
return !r || r.type === "element" && r.tagName === "li";
|
|
4127
4169
|
}
|
|
4128
|
-
function
|
|
4129
|
-
let r =
|
|
4170
|
+
function hi(e, t, n) {
|
|
4171
|
+
let r = X(n, t);
|
|
4130
4172
|
return !!(r && r.type === "element" && (r.tagName === "dt" || r.tagName === "dd"));
|
|
4131
4173
|
}
|
|
4132
|
-
function
|
|
4133
|
-
let r =
|
|
4174
|
+
function gi(e, t, n) {
|
|
4175
|
+
let r = X(n, t);
|
|
4134
4176
|
return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
|
|
4135
4177
|
}
|
|
4136
|
-
function
|
|
4137
|
-
let r =
|
|
4178
|
+
function _i(e, t, n) {
|
|
4179
|
+
let r = X(n, t);
|
|
4138
4180
|
return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
|
|
4139
4181
|
}
|
|
4140
|
-
function
|
|
4141
|
-
let r =
|
|
4182
|
+
function vi(e, t, n) {
|
|
4183
|
+
let r = X(n, t);
|
|
4142
4184
|
return !r || r.type === "element" && r.tagName === "optgroup";
|
|
4143
4185
|
}
|
|
4144
|
-
function
|
|
4145
|
-
let r =
|
|
4186
|
+
function yi(e, t, n) {
|
|
4187
|
+
let r = X(n, t);
|
|
4146
4188
|
return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
|
|
4147
4189
|
}
|
|
4148
|
-
function
|
|
4149
|
-
let r =
|
|
4190
|
+
function bi(e, t, n) {
|
|
4191
|
+
let r = X(n, t);
|
|
4150
4192
|
return !!(r && r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot"));
|
|
4151
4193
|
}
|
|
4152
|
-
function
|
|
4153
|
-
let r =
|
|
4194
|
+
function xi(e, t, n) {
|
|
4195
|
+
let r = X(n, t);
|
|
4154
4196
|
return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
|
|
4155
4197
|
}
|
|
4156
|
-
function
|
|
4157
|
-
return !
|
|
4198
|
+
function Si(e, t, n) {
|
|
4199
|
+
return !X(n, t);
|
|
4158
4200
|
}
|
|
4159
|
-
function
|
|
4160
|
-
let r =
|
|
4201
|
+
function Ci(e, t, n) {
|
|
4202
|
+
let r = X(n, t);
|
|
4161
4203
|
return !r || r.type === "element" && r.tagName === "tr";
|
|
4162
4204
|
}
|
|
4163
|
-
function
|
|
4164
|
-
let r =
|
|
4205
|
+
function wi(e, t, n) {
|
|
4206
|
+
let r = X(n, t);
|
|
4165
4207
|
return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
|
|
4166
4208
|
}
|
|
4167
4209
|
//#endregion
|
|
4168
4210
|
//#region ../../node_modules/hast-util-to-html/lib/omission/opening.js
|
|
4169
|
-
var
|
|
4170
|
-
body:
|
|
4171
|
-
colgroup:
|
|
4172
|
-
head:
|
|
4173
|
-
html:
|
|
4174
|
-
tbody:
|
|
4211
|
+
var Ti = ci({
|
|
4212
|
+
body: Oi,
|
|
4213
|
+
colgroup: ki,
|
|
4214
|
+
head: Di,
|
|
4215
|
+
html: Ei,
|
|
4216
|
+
tbody: Ai
|
|
4175
4217
|
});
|
|
4176
|
-
function
|
|
4177
|
-
let t =
|
|
4218
|
+
function Ei(e) {
|
|
4219
|
+
let t = X(e, -1);
|
|
4178
4220
|
return !t || t.type !== "comment";
|
|
4179
4221
|
}
|
|
4180
|
-
function
|
|
4222
|
+
function Di(e) {
|
|
4181
4223
|
let t = /* @__PURE__ */ new Set();
|
|
4182
4224
|
for (let n of e.children) if (n.type === "element" && (n.tagName === "base" || n.tagName === "title")) {
|
|
4183
4225
|
if (t.has(n.tagName)) return !1;
|
|
@@ -4186,37 +4228,37 @@ function Ti(e) {
|
|
|
4186
4228
|
let n = e.children[0];
|
|
4187
4229
|
return !n || n.type === "element";
|
|
4188
4230
|
}
|
|
4189
|
-
function
|
|
4190
|
-
let t =
|
|
4231
|
+
function Oi(e) {
|
|
4232
|
+
let t = X(e, -1, !0);
|
|
4191
4233
|
return !t || t.type !== "comment" && !(t.type === "text" && y(t.value.charAt(0))) && !(t.type === "element" && (t.tagName === "meta" || t.tagName === "link" || t.tagName === "script" || t.tagName === "style" || t.tagName === "template"));
|
|
4192
4234
|
}
|
|
4193
|
-
function
|
|
4194
|
-
let r =
|
|
4195
|
-
return n && r && r.type === "element" && r.tagName === "colgroup" &&
|
|
4235
|
+
function ki(e, t, n) {
|
|
4236
|
+
let r = ii(n, t), i = X(e, -1, !0);
|
|
4237
|
+
return n && r && r.type === "element" && r.tagName === "colgroup" && li(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "col");
|
|
4196
4238
|
}
|
|
4197
|
-
function
|
|
4198
|
-
let r =
|
|
4199
|
-
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") &&
|
|
4239
|
+
function Ai(e, t, n) {
|
|
4240
|
+
let r = ii(n, t), i = X(e, -1);
|
|
4241
|
+
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && li(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "tr");
|
|
4200
4242
|
}
|
|
4201
4243
|
//#endregion
|
|
4202
4244
|
//#region ../../node_modules/hast-util-to-html/lib/handle/element.js
|
|
4203
|
-
var
|
|
4245
|
+
var ji = {
|
|
4204
4246
|
name: [[" \n\f\r &/=>".split(""), " \n\f\r \"&'/=>`".split("")], ["\0 \n\f\r \"&'/<=>".split(""), "\0 \n\f\r \"&'/<=>`".split("")]],
|
|
4205
4247
|
unquoted: [[" \n\f\r &>".split(""), "\0 \n\f\r \"&'<=>`".split("")], ["\0 \n\f\r \"&'<=>`".split(""), "\0 \n\f\r \"&'<=>`".split("")]],
|
|
4206
4248
|
single: [["&'".split(""), "\"&'`".split("")], ["\0&'".split(""), "\0\"&'`".split("")]],
|
|
4207
4249
|
double: [["\"&".split(""), "\"&'`".split("")], ["\0\"&".split(""), "\0\"&'`".split("")]]
|
|
4208
4250
|
};
|
|
4209
|
-
function
|
|
4251
|
+
function Mi(e, t, n, r) {
|
|
4210
4252
|
let i = r.schema, a = i.space === "svg" ? !1 : r.settings.omitOptionalTags, o = i.space === "svg" ? r.settings.closeEmptyElements : r.settings.voids.includes(e.tagName.toLowerCase()), s = [], c;
|
|
4211
|
-
i.space === "html" && e.tagName === "svg" && (r.schema =
|
|
4212
|
-
let l =
|
|
4213
|
-
return r.schema = i, u && (o = !1), (l || !a || !
|
|
4253
|
+
i.space === "html" && e.tagName === "svg" && (r.schema = N);
|
|
4254
|
+
let l = Ni(r, e.properties), u = r.all(i.space === "html" && e.tagName === "template" ? e.content : e);
|
|
4255
|
+
return r.schema = i, u && (o = !1), (l || !a || !Ti(e, t, n)) && (s.push("<", e.tagName, l ? " " + l : ""), o && (i.space === "svg" || r.settings.closeSelfClosing) && (c = l.charAt(l.length - 1), (!r.settings.tightSelfClosing || c === "/" || c && c !== "\"" && c !== "'") && s.push(" "), s.push("/")), s.push(">")), s.push(u), !o && (!a || !li(e, t, n)) && s.push("</" + e.tagName + ">"), s.join("");
|
|
4214
4256
|
}
|
|
4215
|
-
function
|
|
4257
|
+
function Ni(e, t) {
|
|
4216
4258
|
let n = [], r = -1, i;
|
|
4217
4259
|
if (t) {
|
|
4218
4260
|
for (i in t) if (t[i] !== null && t[i] !== void 0) {
|
|
4219
|
-
let r =
|
|
4261
|
+
let r = Pi(e, i, t[i]);
|
|
4220
4262
|
r && n.push(r);
|
|
4221
4263
|
}
|
|
4222
4264
|
}
|
|
@@ -4226,63 +4268,63 @@ function ji(e, t) {
|
|
|
4226
4268
|
}
|
|
4227
4269
|
return n.join("");
|
|
4228
4270
|
}
|
|
4229
|
-
function
|
|
4230
|
-
let r =
|
|
4271
|
+
function Pi(e, t, n) {
|
|
4272
|
+
let r = ve(e.schema, t), i = e.settings.allowParseErrors && e.schema.space === "html" ? 0 : 1, a = +!e.settings.allowDangerousCharacters, o = e.quote, s;
|
|
4231
4273
|
if (r.overloadedBoolean && (n === r.attribute || n === "") ? n = !0 : (r.boolean || r.overloadedBoolean) && (typeof n != "string" || n === r.attribute || n === "") && (n = !!n), n == null || n === !1 || typeof n == "number" && Number.isNaN(n)) return "";
|
|
4232
|
-
let c =
|
|
4233
|
-
return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ? p :
|
|
4274
|
+
let c = Y(r.attribute, Object.assign({}, e.settings.characterReferences, { subset: ji.name[i][a] }));
|
|
4275
|
+
return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ? p : Se)(n, { padLeft: !e.settings.tightCommaSeparatedLists }) : String(n), e.settings.collapseEmptyAttributes && !n) ? c : (e.settings.preferUnquoted && (s = Y(n, Object.assign({}, e.settings.characterReferences, {
|
|
4234
4276
|
attribute: !0,
|
|
4235
|
-
subset:
|
|
4236
|
-
}))), s !== n && (e.settings.quoteSmart &&
|
|
4237
|
-
subset: (o === "'" ?
|
|
4277
|
+
subset: ji.unquoted[i][a]
|
|
4278
|
+
}))), s !== n && (e.settings.quoteSmart && ri(n, o) > ri(n, e.alternative) && (o = e.alternative), s = o + Y(n, Object.assign({}, e.settings.characterReferences, {
|
|
4279
|
+
subset: (o === "'" ? ji.single : ji.double)[i][a],
|
|
4238
4280
|
attribute: !0
|
|
4239
4281
|
})) + o), c + (s && "=" + s));
|
|
4240
4282
|
}
|
|
4241
4283
|
//#endregion
|
|
4242
4284
|
//#region ../../node_modules/hast-util-to-html/lib/handle/text.js
|
|
4243
|
-
var
|
|
4244
|
-
function
|
|
4245
|
-
return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value :
|
|
4285
|
+
var Fi = ["<", "&"];
|
|
4286
|
+
function Ii(e, t, n, r) {
|
|
4287
|
+
return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : Y(e.value, Object.assign({}, r.settings.characterReferences, { subset: Fi }));
|
|
4246
4288
|
}
|
|
4247
4289
|
//#endregion
|
|
4248
4290
|
//#region ../../node_modules/hast-util-to-html/lib/handle/raw.js
|
|
4249
|
-
function
|
|
4250
|
-
return r.settings.allowDangerousHtml ? e.value :
|
|
4291
|
+
function Li(e, t, n, r) {
|
|
4292
|
+
return r.settings.allowDangerousHtml ? e.value : Ii(e, t, n, r);
|
|
4251
4293
|
}
|
|
4252
4294
|
//#endregion
|
|
4253
4295
|
//#region ../../node_modules/hast-util-to-html/lib/handle/root.js
|
|
4254
|
-
function
|
|
4296
|
+
function Ri(e, t, n, r) {
|
|
4255
4297
|
return r.all(e);
|
|
4256
4298
|
}
|
|
4257
4299
|
//#endregion
|
|
4258
4300
|
//#region ../../node_modules/hast-util-to-html/lib/handle/index.js
|
|
4259
|
-
var
|
|
4260
|
-
invalid:
|
|
4261
|
-
unknown:
|
|
4301
|
+
var zi = Ar("type", {
|
|
4302
|
+
invalid: Bi,
|
|
4303
|
+
unknown: Vi,
|
|
4262
4304
|
handlers: {
|
|
4263
|
-
comment:
|
|
4264
|
-
doctype:
|
|
4265
|
-
element:
|
|
4266
|
-
raw:
|
|
4267
|
-
root:
|
|
4268
|
-
text:
|
|
4305
|
+
comment: ti,
|
|
4306
|
+
doctype: ni,
|
|
4307
|
+
element: Mi,
|
|
4308
|
+
raw: Li,
|
|
4309
|
+
root: Ri,
|
|
4310
|
+
text: Ii
|
|
4269
4311
|
}
|
|
4270
4312
|
});
|
|
4271
|
-
function
|
|
4313
|
+
function Bi(e) {
|
|
4272
4314
|
throw Error("Expected node, not `" + e + "`");
|
|
4273
4315
|
}
|
|
4274
|
-
function
|
|
4316
|
+
function Vi(e) {
|
|
4275
4317
|
throw Error("Cannot compile unknown node `" + e.type + "`");
|
|
4276
4318
|
}
|
|
4277
4319
|
//#endregion
|
|
4278
4320
|
//#region ../../node_modules/hast-util-to-html/lib/index.js
|
|
4279
|
-
var
|
|
4280
|
-
function
|
|
4281
|
-
let n = t ||
|
|
4321
|
+
var Hi = {}, Ui = {}, Wi = [];
|
|
4322
|
+
function Gi(e, t) {
|
|
4323
|
+
let n = t || Hi, r = n.quote || "\"", i = r === "\"" ? "'" : "\"";
|
|
4282
4324
|
if (r !== "\"" && r !== "'") throw Error("Invalid quote `" + r + "`, expected `'` or `\"`");
|
|
4283
4325
|
return {
|
|
4284
|
-
one:
|
|
4285
|
-
all:
|
|
4326
|
+
one: Ki,
|
|
4327
|
+
all: qi,
|
|
4286
4328
|
settings: {
|
|
4287
4329
|
omitOptionalTags: n.omitOptionalTags || !1,
|
|
4288
4330
|
allowParseErrors: n.allowParseErrors || !1,
|
|
@@ -4297,12 +4339,12 @@ function Ui(e, t) {
|
|
|
4297
4339
|
tightSelfClosing: n.tightSelfClosing || !1,
|
|
4298
4340
|
collapseEmptyAttributes: n.collapseEmptyAttributes || !1,
|
|
4299
4341
|
allowDangerousHtml: n.allowDangerousHtml || !1,
|
|
4300
|
-
voids: n.voids ||
|
|
4301
|
-
characterReferences: n.characterReferences ||
|
|
4342
|
+
voids: n.voids || Or,
|
|
4343
|
+
characterReferences: n.characterReferences || Ui,
|
|
4302
4344
|
closeSelfClosing: n.closeSelfClosing || !1,
|
|
4303
4345
|
closeEmptyElements: n.closeEmptyElements || !1
|
|
4304
4346
|
},
|
|
4305
|
-
schema: n.space === "svg" ?
|
|
4347
|
+
schema: n.space === "svg" ? N : xe,
|
|
4306
4348
|
quote: r,
|
|
4307
4349
|
alternative: i
|
|
4308
4350
|
}.one(Array.isArray(e) ? {
|
|
@@ -4310,25 +4352,25 @@ function Ui(e, t) {
|
|
|
4310
4352
|
children: e
|
|
4311
4353
|
} : e, void 0, void 0);
|
|
4312
4354
|
}
|
|
4313
|
-
function
|
|
4314
|
-
return
|
|
4355
|
+
function Ki(e, t, n) {
|
|
4356
|
+
return zi(e, t, n, this);
|
|
4315
4357
|
}
|
|
4316
|
-
function
|
|
4317
|
-
let t = [], n = e && e.children ||
|
|
4358
|
+
function qi(e) {
|
|
4359
|
+
let t = [], n = e && e.children || Wi, r = -1;
|
|
4318
4360
|
for (; ++r < n.length;) t[r] = this.one(n[r], r, e);
|
|
4319
4361
|
return t.join("");
|
|
4320
4362
|
}
|
|
4321
4363
|
//#endregion
|
|
4322
4364
|
//#region ../../node_modules/@shikijs/core/dist/index.mjs
|
|
4323
|
-
function
|
|
4365
|
+
function Ji(e, t) {
|
|
4324
4366
|
if (!t) return e;
|
|
4325
4367
|
e.properties ||= {}, e.properties.class ||= [], typeof e.properties.class == "string" && (e.properties.class = e.properties.class.split(/\s+/g)), Array.isArray(e.properties.class) || (e.properties.class = []);
|
|
4326
4368
|
let n = Array.isArray(t) ? t : t.split(/\s+/g);
|
|
4327
4369
|
for (let t of n) t && !e.properties.class.includes(t) && e.properties.class.push(t);
|
|
4328
4370
|
return e;
|
|
4329
4371
|
}
|
|
4330
|
-
function
|
|
4331
|
-
let t =
|
|
4372
|
+
function Yi(e) {
|
|
4373
|
+
let t = er(e, !0).map(([e]) => e);
|
|
4332
4374
|
function n(n) {
|
|
4333
4375
|
if (n === e.length) return {
|
|
4334
4376
|
line: t.length - 1,
|
|
@@ -4355,7 +4397,7 @@ function qi(e) {
|
|
|
4355
4397
|
posToIndex: r
|
|
4356
4398
|
};
|
|
4357
4399
|
}
|
|
4358
|
-
function
|
|
4400
|
+
function Xi(e, t, n) {
|
|
4359
4401
|
let r = /* @__PURE__ */ new Set();
|
|
4360
4402
|
for (let t of e.matchAll(/:?lang=["']([^"']+)["']/g)) {
|
|
4361
4403
|
let e = t[1].toLowerCase().trim();
|
|
@@ -4377,8 +4419,8 @@ function Ji(e, t, n) {
|
|
|
4377
4419
|
let i = n.getBundledLanguages();
|
|
4378
4420
|
return Array.from(r).filter((e) => e && i[e]);
|
|
4379
4421
|
}
|
|
4380
|
-
var
|
|
4381
|
-
function
|
|
4422
|
+
var Zi = "light-dark()", Qi = ["color", "background-color"];
|
|
4423
|
+
function $i(e, t) {
|
|
4382
4424
|
let n = 0, r = [];
|
|
4383
4425
|
for (let i of t) i > n && r.push({
|
|
4384
4426
|
...e,
|
|
@@ -4391,63 +4433,63 @@ function Zi(e, t) {
|
|
|
4391
4433
|
offset: e.offset + n
|
|
4392
4434
|
}), r;
|
|
4393
4435
|
}
|
|
4394
|
-
function
|
|
4436
|
+
function ea(e, t) {
|
|
4395
4437
|
let n = Array.from(t instanceof Set ? t : new Set(t)).sort((e, t) => e - t);
|
|
4396
4438
|
return n.length ? e.map((e) => e.flatMap((e) => {
|
|
4397
4439
|
let t = n.filter((t) => e.offset < t && t < e.offset + e.content.length).map((t) => t - e.offset).sort((e, t) => e - t);
|
|
4398
|
-
return t.length ?
|
|
4440
|
+
return t.length ? $i(e, t) : e;
|
|
4399
4441
|
})) : e;
|
|
4400
4442
|
}
|
|
4401
|
-
function
|
|
4443
|
+
function ta(e, t, n, r, i = "css-vars") {
|
|
4402
4444
|
let a = {
|
|
4403
4445
|
content: e.content,
|
|
4404
4446
|
explanation: e.explanation,
|
|
4405
4447
|
offset: e.offset
|
|
4406
|
-
}, o = t.map((t) =>
|
|
4448
|
+
}, o = t.map((t) => na(e.variants[t])), s = new Set(o.flatMap((e) => Object.keys(e))), c = {}, l = (e, r) => {
|
|
4407
4449
|
let i = r === "color" ? "" : r === "background-color" ? "-bg" : `-${r}`;
|
|
4408
4450
|
return n + t[e] + (r === "color" ? "" : i);
|
|
4409
4451
|
};
|
|
4410
4452
|
return o.forEach((e, n) => {
|
|
4411
4453
|
for (let a of s) {
|
|
4412
4454
|
let s = e[a] || "inherit";
|
|
4413
|
-
if (n === 0 && r &&
|
|
4455
|
+
if (n === 0 && r && Qi.includes(a)) if (r === Zi && o.length > 1) {
|
|
4414
4456
|
let e = t.findIndex((e) => e === "light"), r = t.findIndex((e) => e === "dark");
|
|
4415
|
-
if (e === -1 || r === -1) throw new
|
|
4457
|
+
if (e === -1 || r === -1) throw new I("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
4416
4458
|
c[a] = `light-dark(${o[e][a] || "inherit"}, ${o[r][a] || "inherit"})`, i === "css-vars" && (c[l(n, a)] = s);
|
|
4417
4459
|
} else c[a] = s;
|
|
4418
4460
|
else i === "css-vars" && (c[l(n, a)] = s);
|
|
4419
4461
|
}
|
|
4420
4462
|
}), a.htmlStyle = c, a;
|
|
4421
4463
|
}
|
|
4422
|
-
function
|
|
4464
|
+
function na(e) {
|
|
4423
4465
|
let t = {};
|
|
4424
4466
|
if (e.color && (t.color = e.color), e.bgColor && (t["background-color"] = e.bgColor), e.fontStyle) {
|
|
4425
|
-
e.fontStyle &
|
|
4467
|
+
e.fontStyle & R.Italic && (t["font-style"] = "italic"), e.fontStyle & R.Bold && (t["font-weight"] = "bold");
|
|
4426
4468
|
let n = [];
|
|
4427
|
-
e.fontStyle &
|
|
4469
|
+
e.fontStyle & R.Underline && n.push("underline"), e.fontStyle & R.Strikethrough && n.push("line-through"), n.length && (t["text-decoration"] = n.join(" "));
|
|
4428
4470
|
}
|
|
4429
4471
|
return t;
|
|
4430
4472
|
}
|
|
4431
|
-
function
|
|
4473
|
+
function ra(e) {
|
|
4432
4474
|
return typeof e == "string" ? e : Object.entries(e).map(([e, t]) => `${e}:${t}`).join(";");
|
|
4433
4475
|
}
|
|
4434
|
-
function
|
|
4476
|
+
function ia() {
|
|
4435
4477
|
let e = /* @__PURE__ */ new WeakMap();
|
|
4436
4478
|
function t(t) {
|
|
4437
4479
|
if (!e.has(t.meta)) {
|
|
4438
|
-
let n =
|
|
4480
|
+
let n = Yi(t.source);
|
|
4439
4481
|
function r(e) {
|
|
4440
4482
|
if (typeof e == "number") {
|
|
4441
|
-
if (e < 0 || e > t.source.length) throw new
|
|
4483
|
+
if (e < 0 || e > t.source.length) throw new I(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);
|
|
4442
4484
|
return {
|
|
4443
4485
|
...n.indexToPos(e),
|
|
4444
4486
|
offset: e
|
|
4445
4487
|
};
|
|
4446
4488
|
} else {
|
|
4447
4489
|
let t = n.lines[e.line];
|
|
4448
|
-
if (t === void 0) throw new
|
|
4490
|
+
if (t === void 0) throw new I(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);
|
|
4449
4491
|
let r = e.character;
|
|
4450
|
-
if (r < 0 && (r = t.length + r), r < 0 || r > t.length) throw new
|
|
4492
|
+
if (r < 0 && (r = t.length + r), r < 0 || r > t.length) throw new I(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);
|
|
4451
4493
|
return {
|
|
4452
4494
|
...e,
|
|
4453
4495
|
character: r,
|
|
@@ -4460,7 +4502,7 @@ function na() {
|
|
|
4460
4502
|
start: r(e.start),
|
|
4461
4503
|
end: r(e.end)
|
|
4462
4504
|
}));
|
|
4463
|
-
|
|
4505
|
+
aa(i), e.set(t.meta, {
|
|
4464
4506
|
decorations: i,
|
|
4465
4507
|
converter: n,
|
|
4466
4508
|
source: t.source
|
|
@@ -4471,17 +4513,17 @@ function na() {
|
|
|
4471
4513
|
return {
|
|
4472
4514
|
name: "shiki:decorations",
|
|
4473
4515
|
tokens(e) {
|
|
4474
|
-
if (this.options.decorations?.length) return
|
|
4516
|
+
if (this.options.decorations?.length) return ea(e, t(this).decorations.flatMap((e) => [e.start.offset, e.end.offset]));
|
|
4475
4517
|
},
|
|
4476
4518
|
code(e) {
|
|
4477
4519
|
if (!this.options.decorations?.length) return;
|
|
4478
4520
|
let n = t(this), r = Array.from(e.children).filter((e) => e.type === "element" && e.tagName === "span");
|
|
4479
|
-
if (r.length !== n.converter.lines.length) throw new
|
|
4521
|
+
if (r.length !== n.converter.lines.length) throw new I(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);
|
|
4480
4522
|
function i(e, t, n, i) {
|
|
4481
4523
|
let a = r[e], s = "", c = -1, l = -1;
|
|
4482
|
-
if (t === 0 && (c = 0), n === 0 && (l = 0), n === Infinity && (l = a.children.length), c === -1 || l === -1) for (let e = 0; e < a.children.length; e++) s +=
|
|
4483
|
-
if (c === -1) throw new
|
|
4484
|
-
if (l === -1) throw new
|
|
4524
|
+
if (t === 0 && (c = 0), n === 0 && (l = 0), n === Infinity && (l = a.children.length), c === -1 || l === -1) for (let e = 0; e < a.children.length; e++) s += oa(a.children[e]), c === -1 && s.length === t && (c = e + 1), l === -1 && s.length === n && (l = e + 1);
|
|
4525
|
+
if (c === -1) throw new I(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);
|
|
4526
|
+
if (l === -1) throw new I(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);
|
|
4485
4527
|
let u = a.children.slice(c, l);
|
|
4486
4528
|
if (!i.alwaysWrap && u.length === a.children.length) o(a, i, "line");
|
|
4487
4529
|
else if (!i.alwaysWrap && u.length === 1 && u[0].type === "element") o(u[0], i, "token");
|
|
@@ -4504,7 +4546,7 @@ function na() {
|
|
|
4504
4546
|
...e.properties,
|
|
4505
4547
|
...r,
|
|
4506
4548
|
class: e.properties.class
|
|
4507
|
-
}, t.properties?.class &&
|
|
4549
|
+
}, t.properties?.class && Ji(e, t.properties.class), e = i(e, n) || e, e;
|
|
4508
4550
|
}
|
|
4509
4551
|
let s = [], c = n.decorations.sort((e, t) => t.start.offset - e.start.offset || e.end.offset - t.end.offset);
|
|
4510
4552
|
for (let e of c) {
|
|
@@ -4520,33 +4562,33 @@ function na() {
|
|
|
4520
4562
|
}
|
|
4521
4563
|
};
|
|
4522
4564
|
}
|
|
4523
|
-
function
|
|
4565
|
+
function aa(e) {
|
|
4524
4566
|
for (let t = 0; t < e.length; t++) {
|
|
4525
4567
|
let n = e[t];
|
|
4526
|
-
if (n.start.offset > n.end.offset) throw new
|
|
4568
|
+
if (n.start.offset > n.end.offset) throw new I(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);
|
|
4527
4569
|
for (let r = t + 1; r < e.length; r++) {
|
|
4528
4570
|
let t = e[r], i = n.start.offset <= t.start.offset && t.start.offset < n.end.offset, a = n.start.offset < t.end.offset && t.end.offset <= n.end.offset, o = t.start.offset <= n.start.offset && n.start.offset < t.end.offset, s = t.start.offset < n.end.offset && n.end.offset <= t.end.offset;
|
|
4529
4571
|
if (i || a || o || s) {
|
|
4530
4572
|
if (i && a || o && s || o && n.start.offset === n.end.offset || a && t.start.offset === t.end.offset) continue;
|
|
4531
|
-
throw new
|
|
4573
|
+
throw new I(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`);
|
|
4532
4574
|
}
|
|
4533
4575
|
}
|
|
4534
4576
|
}
|
|
4535
4577
|
}
|
|
4536
|
-
function ia(e) {
|
|
4537
|
-
return e.type === "text" ? e.value : e.type === "element" ? e.children.map(ia).join("") : "";
|
|
4538
|
-
}
|
|
4539
|
-
var aa = [/* @__PURE__ */ na()];
|
|
4540
4578
|
function oa(e) {
|
|
4541
|
-
|
|
4579
|
+
return e.type === "text" ? e.value : e.type === "element" ? e.children.map(oa).join("") : "";
|
|
4580
|
+
}
|
|
4581
|
+
var sa = [/* @__PURE__ */ ia()];
|
|
4582
|
+
function ca(e) {
|
|
4583
|
+
let t = la(e.transformers || []);
|
|
4542
4584
|
return [
|
|
4543
4585
|
...t.pre,
|
|
4544
4586
|
...t.normal,
|
|
4545
4587
|
...t.post,
|
|
4546
|
-
...
|
|
4588
|
+
...sa
|
|
4547
4589
|
];
|
|
4548
4590
|
}
|
|
4549
|
-
function
|
|
4591
|
+
function la(e) {
|
|
4550
4592
|
let t = [], n = [], r = [];
|
|
4551
4593
|
for (let i of e) switch (i.enforce) {
|
|
4552
4594
|
case "pre":
|
|
@@ -4563,7 +4605,7 @@ function sa(e) {
|
|
|
4563
4605
|
normal: r
|
|
4564
4606
|
};
|
|
4565
4607
|
}
|
|
4566
|
-
var
|
|
4608
|
+
var Z = [
|
|
4567
4609
|
"black",
|
|
4568
4610
|
"red",
|
|
4569
4611
|
"green",
|
|
@@ -4580,7 +4622,7 @@ var X = [
|
|
|
4580
4622
|
"brightMagenta",
|
|
4581
4623
|
"brightCyan",
|
|
4582
4624
|
"brightWhite"
|
|
4583
|
-
],
|
|
4625
|
+
], ua = {
|
|
4584
4626
|
1: "bold",
|
|
4585
4627
|
2: "dim",
|
|
4586
4628
|
3: "italic",
|
|
@@ -4589,7 +4631,7 @@ var X = [
|
|
|
4589
4631
|
8: "hidden",
|
|
4590
4632
|
9: "strikethrough"
|
|
4591
4633
|
};
|
|
4592
|
-
function
|
|
4634
|
+
function da(e, t) {
|
|
4593
4635
|
let n = e.indexOf("\x1B", t);
|
|
4594
4636
|
if (n !== -1 && e[n + 1] === "[") {
|
|
4595
4637
|
let t = e.indexOf("m", n);
|
|
@@ -4601,7 +4643,7 @@ function la(e, t) {
|
|
|
4601
4643
|
}
|
|
4602
4644
|
return { position: e.length };
|
|
4603
4645
|
}
|
|
4604
|
-
function
|
|
4646
|
+
function fa(e) {
|
|
4605
4647
|
let t = e.shift();
|
|
4606
4648
|
if (t === "2") {
|
|
4607
4649
|
let t = e.splice(0, 3).map((e) => Number.parseInt(e));
|
|
@@ -4617,19 +4659,19 @@ function ua(e) {
|
|
|
4617
4659
|
};
|
|
4618
4660
|
}
|
|
4619
4661
|
}
|
|
4620
|
-
function
|
|
4662
|
+
function pa(e) {
|
|
4621
4663
|
let t = [];
|
|
4622
4664
|
for (; e.length > 0;) {
|
|
4623
4665
|
let n = e.shift();
|
|
4624
4666
|
if (!n) continue;
|
|
4625
4667
|
let r = Number.parseInt(n);
|
|
4626
4668
|
if (!Number.isNaN(r)) if (r === 0) t.push({ type: "resetAll" });
|
|
4627
|
-
else if (r <= 9)
|
|
4669
|
+
else if (r <= 9) ua[r] && t.push({
|
|
4628
4670
|
type: "setDecoration",
|
|
4629
|
-
value:
|
|
4671
|
+
value: ua[r]
|
|
4630
4672
|
});
|
|
4631
4673
|
else if (r <= 29) {
|
|
4632
|
-
let e =
|
|
4674
|
+
let e = ua[r - 20];
|
|
4633
4675
|
e && (t.push({
|
|
4634
4676
|
type: "resetDecoration",
|
|
4635
4677
|
value: e
|
|
@@ -4641,11 +4683,11 @@ function da(e) {
|
|
|
4641
4683
|
type: "setForegroundColor",
|
|
4642
4684
|
value: {
|
|
4643
4685
|
type: "named",
|
|
4644
|
-
name:
|
|
4686
|
+
name: Z[r - 30]
|
|
4645
4687
|
}
|
|
4646
4688
|
});
|
|
4647
4689
|
else if (r === 38) {
|
|
4648
|
-
let n =
|
|
4690
|
+
let n = fa(e);
|
|
4649
4691
|
n && t.push({
|
|
4650
4692
|
type: "setForegroundColor",
|
|
4651
4693
|
value: n
|
|
@@ -4655,11 +4697,11 @@ function da(e) {
|
|
|
4655
4697
|
type: "setBackgroundColor",
|
|
4656
4698
|
value: {
|
|
4657
4699
|
type: "named",
|
|
4658
|
-
name:
|
|
4700
|
+
name: Z[r - 40]
|
|
4659
4701
|
}
|
|
4660
4702
|
});
|
|
4661
4703
|
else if (r === 48) {
|
|
4662
|
-
let n =
|
|
4704
|
+
let n = fa(e);
|
|
4663
4705
|
n && t.push({
|
|
4664
4706
|
type: "setBackgroundColor",
|
|
4665
4707
|
value: n
|
|
@@ -4674,31 +4716,31 @@ function da(e) {
|
|
|
4674
4716
|
type: "setForegroundColor",
|
|
4675
4717
|
value: {
|
|
4676
4718
|
type: "named",
|
|
4677
|
-
name:
|
|
4719
|
+
name: Z[r - 90 + 8]
|
|
4678
4720
|
}
|
|
4679
4721
|
}) : r >= 100 && r <= 107 && t.push({
|
|
4680
4722
|
type: "setBackgroundColor",
|
|
4681
4723
|
value: {
|
|
4682
4724
|
type: "named",
|
|
4683
|
-
name:
|
|
4725
|
+
name: Z[r - 100 + 8]
|
|
4684
4726
|
}
|
|
4685
4727
|
});
|
|
4686
4728
|
}
|
|
4687
4729
|
return t;
|
|
4688
4730
|
}
|
|
4689
|
-
function
|
|
4731
|
+
function ma() {
|
|
4690
4732
|
let e = null, t = null, n = /* @__PURE__ */ new Set();
|
|
4691
4733
|
return { parse(r) {
|
|
4692
4734
|
let i = [], a = 0;
|
|
4693
4735
|
do {
|
|
4694
|
-
let o =
|
|
4736
|
+
let o = da(r, a), s = o.sequence ? r.substring(a, o.startPosition) : r.substring(a);
|
|
4695
4737
|
if (s.length > 0 && i.push({
|
|
4696
4738
|
value: s,
|
|
4697
4739
|
foreground: e,
|
|
4698
4740
|
background: t,
|
|
4699
4741
|
decorations: new Set(n)
|
|
4700
4742
|
}), o.sequence) {
|
|
4701
|
-
let r =
|
|
4743
|
+
let r = pa(o.sequence);
|
|
4702
4744
|
for (let i of r) i.type === "resetAll" ? (e = null, t = null, n.clear()) : i.type === "resetForegroundColor" ? e = null : i.type === "resetBackgroundColor" ? t = null : i.type === "resetDecoration" && n.delete(i.value);
|
|
4703
4745
|
for (let i of r) i.type === "setForegroundColor" ? e = i.value : i.type === "setBackgroundColor" ? t = i.value : i.type === "setDecoration" && n.add(i.value);
|
|
4704
4746
|
}
|
|
@@ -4707,7 +4749,7 @@ function fa() {
|
|
|
4707
4749
|
return i;
|
|
4708
4750
|
} };
|
|
4709
4751
|
}
|
|
4710
|
-
var
|
|
4752
|
+
var ha = {
|
|
4711
4753
|
black: "#000000",
|
|
4712
4754
|
red: "#bb0000",
|
|
4713
4755
|
green: "#00bb00",
|
|
@@ -4725,7 +4767,7 @@ var pa = {
|
|
|
4725
4767
|
brightCyan: "#55ffff",
|
|
4726
4768
|
brightWhite: "#ffffff"
|
|
4727
4769
|
};
|
|
4728
|
-
function
|
|
4770
|
+
function ga(e = ha) {
|
|
4729
4771
|
function t(t) {
|
|
4730
4772
|
return e[t];
|
|
4731
4773
|
}
|
|
@@ -4736,7 +4778,7 @@ function ma(e = pa) {
|
|
|
4736
4778
|
function i() {
|
|
4737
4779
|
if (r) return r;
|
|
4738
4780
|
r = [];
|
|
4739
|
-
for (let e = 0; e <
|
|
4781
|
+
for (let e = 0; e < Z.length; e++) r.push(t(Z[e]));
|
|
4740
4782
|
let e = [
|
|
4741
4783
|
0,
|
|
4742
4784
|
95,
|
|
@@ -4770,7 +4812,7 @@ function ma(e = pa) {
|
|
|
4770
4812
|
}
|
|
4771
4813
|
return { value: o };
|
|
4772
4814
|
}
|
|
4773
|
-
var
|
|
4815
|
+
var _a = {
|
|
4774
4816
|
black: "#000000",
|
|
4775
4817
|
red: "#cd3131",
|
|
4776
4818
|
green: "#0DBC79",
|
|
@@ -4788,16 +4830,16 @@ var ha = {
|
|
|
4788
4830
|
brightCyan: "#29B8DB",
|
|
4789
4831
|
brightWhite: "#FFFFFF"
|
|
4790
4832
|
};
|
|
4791
|
-
function
|
|
4792
|
-
let r =
|
|
4833
|
+
function va(e, t, n) {
|
|
4834
|
+
let r = qn(e, n), i = er(t), a = ga(Object.fromEntries(Z.map((t) => {
|
|
4793
4835
|
let n = `terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;
|
|
4794
|
-
return [t, e.colors?.[n] ||
|
|
4795
|
-
}))), o =
|
|
4836
|
+
return [t, e.colors?.[n] || _a[t]];
|
|
4837
|
+
}))), o = ma();
|
|
4796
4838
|
return i.map((t) => o.parse(t[0]).map((n) => {
|
|
4797
4839
|
let i, o;
|
|
4798
|
-
n.decorations.has("reverse") ? (i = n.background ? a.value(n.background) : e.bg, o = n.foreground ? a.value(n.foreground) : e.fg) : (i = n.foreground ? a.value(n.foreground) : e.fg, o = n.background ? a.value(n.background) : void 0), i =
|
|
4799
|
-
let s =
|
|
4800
|
-
return n.decorations.has("bold") && (s |=
|
|
4840
|
+
n.decorations.has("reverse") ? (i = n.background ? a.value(n.background) : e.bg, o = n.foreground ? a.value(n.foreground) : e.fg) : (i = n.foreground ? a.value(n.foreground) : e.fg, o = n.background ? a.value(n.background) : void 0), i = K(i, r), o = K(o, r), n.decorations.has("dim") && (i = ya(i));
|
|
4841
|
+
let s = R.None;
|
|
4842
|
+
return n.decorations.has("bold") && (s |= R.Bold), n.decorations.has("italic") && (s |= R.Italic), n.decorations.has("underline") && (s |= R.Underline), n.decorations.has("strikethrough") && (s |= R.Strikethrough), {
|
|
4801
4843
|
content: n.value,
|
|
4802
4844
|
offset: t[1],
|
|
4803
4845
|
color: i,
|
|
@@ -4806,7 +4848,7 @@ function ga(e, t, n) {
|
|
|
4806
4848
|
};
|
|
4807
4849
|
}));
|
|
4808
4850
|
}
|
|
4809
|
-
function
|
|
4851
|
+
function ya(e) {
|
|
4810
4852
|
let t = e.match(/#([0-9a-f]{3,8})/i);
|
|
4811
4853
|
if (t) {
|
|
4812
4854
|
let e = t[1];
|
|
@@ -4825,34 +4867,34 @@ function _a(e) {
|
|
|
4825
4867
|
let n = e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
|
|
4826
4868
|
return n ? `var(${n[1]}-dim)` : e;
|
|
4827
4869
|
}
|
|
4828
|
-
function
|
|
4870
|
+
function ba(e, t, n = {}) {
|
|
4829
4871
|
let r = e.resolveLangAlias(n.lang || "text"), { theme: i = e.getLoadedThemes()[0] } = n;
|
|
4830
|
-
if (!
|
|
4872
|
+
if (!Xn(r) && !Qn(i) && r === "ansi") {
|
|
4831
4873
|
let { theme: r } = e.setTheme(i);
|
|
4832
|
-
return
|
|
4874
|
+
return va(r, t, n);
|
|
4833
4875
|
}
|
|
4834
|
-
return
|
|
4876
|
+
return _r(e, t, n);
|
|
4835
4877
|
}
|
|
4836
|
-
function
|
|
4878
|
+
function xa(e, t, n) {
|
|
4837
4879
|
let r, i, a, o, s, c;
|
|
4838
4880
|
if ("themes" in n) {
|
|
4839
4881
|
let { defaultColor: l = "light", cssVariablePrefix: u = "--shiki-", colorsRendering: d = "css-vars" } = n, f = Object.entries(n.themes).filter((e) => e[1]).map((e) => ({
|
|
4840
4882
|
color: e[0],
|
|
4841
4883
|
theme: e[1]
|
|
4842
4884
|
})).sort((e, t) => e.color === l ? -1 : +(t.color === l));
|
|
4843
|
-
if (f.length === 0) throw new
|
|
4844
|
-
let p =
|
|
4845
|
-
if (c =
|
|
4885
|
+
if (f.length === 0) throw new I("`themes` option must not be empty");
|
|
4886
|
+
let p = Er(e, t, n, ba);
|
|
4887
|
+
if (c = J(p), l && Zi !== l && !f.find((e) => e.color === l)) throw new I(`\`themes\` option must contain the defaultColor key \`${l}\``);
|
|
4846
4888
|
let m = f.map((t) => e.getTheme(t.theme)), h = f.map((e) => e.color);
|
|
4847
|
-
a = p.map((e) => e.map((e) =>
|
|
4848
|
-
let g = f.map((e) =>
|
|
4849
|
-
i =
|
|
4889
|
+
a = p.map((e) => e.map((e) => ta(e, h, u, l, d))), c && pr(a, c);
|
|
4890
|
+
let g = f.map((e) => qn(e.theme, n));
|
|
4891
|
+
i = Sa(f, m, g, u, l, "fg", d), r = Sa(f, m, g, u, l, "bg", d), o = `shiki-themes ${m.map((e) => e.name).join(" ")}`, s = l ? void 0 : [i, r].join(";");
|
|
4850
4892
|
} else if ("theme" in n) {
|
|
4851
|
-
let s =
|
|
4852
|
-
a =
|
|
4893
|
+
let s = qn(n.theme, n);
|
|
4894
|
+
a = ba(e, t, n);
|
|
4853
4895
|
let l = e.getTheme(n.theme);
|
|
4854
|
-
r =
|
|
4855
|
-
} else throw new
|
|
4896
|
+
r = K(l.bg, s), i = K(l.fg, s), o = l.name, c = J(a);
|
|
4897
|
+
} else throw new I("Invalid options, either `theme` or `themes` must be provided");
|
|
4856
4898
|
return {
|
|
4857
4899
|
tokens: a,
|
|
4858
4900
|
fg: i,
|
|
@@ -4862,38 +4904,38 @@ function ya(e, t, n) {
|
|
|
4862
4904
|
grammarState: c
|
|
4863
4905
|
};
|
|
4864
4906
|
}
|
|
4865
|
-
function
|
|
4907
|
+
function Sa(e, t, n, r, i, a, o) {
|
|
4866
4908
|
return e.map((s, c) => {
|
|
4867
|
-
let l =
|
|
4909
|
+
let l = K(t[c][a], n[c]) || "inherit", u = `${r + s.color}${a === "bg" ? "-bg" : ""}:${l}`;
|
|
4868
4910
|
if (c === 0 && i) {
|
|
4869
|
-
if (i ===
|
|
4911
|
+
if (i === Zi && e.length > 1) {
|
|
4870
4912
|
let r = e.findIndex((e) => e.color === "light"), i = e.findIndex((e) => e.color === "dark");
|
|
4871
|
-
if (r === -1 || i === -1) throw new
|
|
4872
|
-
return `light-dark(${
|
|
4913
|
+
if (r === -1 || i === -1) throw new I("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
4914
|
+
return `light-dark(${K(t[r][a], n[r]) || "inherit"}, ${K(t[i][a], n[i]) || "inherit"});${u}`;
|
|
4873
4915
|
}
|
|
4874
4916
|
return l;
|
|
4875
4917
|
}
|
|
4876
4918
|
return o === "css-vars" ? u : null;
|
|
4877
4919
|
}).filter((e) => !!e).join(";");
|
|
4878
4920
|
}
|
|
4879
|
-
function
|
|
4921
|
+
function Ca(e, t, n, r = {
|
|
4880
4922
|
meta: {},
|
|
4881
4923
|
options: n,
|
|
4882
|
-
codeToHast: (t, n) =>
|
|
4883
|
-
codeToTokens: (t, n) =>
|
|
4924
|
+
codeToHast: (t, n) => Ca(e, t, n),
|
|
4925
|
+
codeToTokens: (t, n) => xa(e, t, n)
|
|
4884
4926
|
}) {
|
|
4885
4927
|
let i = t;
|
|
4886
|
-
for (let e of
|
|
4887
|
-
let { tokens: a, fg: o, bg: s, themeName: c, rootStyle: l, grammarState: u } =
|
|
4888
|
-
d === !0 ? a =
|
|
4928
|
+
for (let e of ca(n)) i = e.preprocess?.call(r, i, n) || i;
|
|
4929
|
+
let { tokens: a, fg: o, bg: s, themeName: c, rootStyle: l, grammarState: u } = xa(e, i, n), { mergeWhitespaces: d = !0, mergeSameStyleTokens: f = !1 } = n;
|
|
4930
|
+
d === !0 ? a = Ta(a) : d === "never" && (a = Ea(a)), f && (a = Da(a));
|
|
4889
4931
|
let p = {
|
|
4890
4932
|
...r,
|
|
4891
4933
|
get source() {
|
|
4892
4934
|
return i;
|
|
4893
4935
|
}
|
|
4894
4936
|
};
|
|
4895
|
-
for (let e of
|
|
4896
|
-
return
|
|
4937
|
+
for (let e of ca(n)) a = e.tokens?.call(p, a) || a;
|
|
4938
|
+
return wa(a, {
|
|
4897
4939
|
...n,
|
|
4898
4940
|
fg: o,
|
|
4899
4941
|
bg: s,
|
|
@@ -4901,8 +4943,8 @@ function xa(e, t, n, r = {
|
|
|
4901
4943
|
rootStyle: n.rootStyle === !1 ? !1 : n.rootStyle ?? l
|
|
4902
4944
|
}, p, u);
|
|
4903
4945
|
}
|
|
4904
|
-
function
|
|
4905
|
-
let i =
|
|
4946
|
+
function wa(e, t, n, r = J(e)) {
|
|
4947
|
+
let i = ca(t), a = [], o = {
|
|
4906
4948
|
type: "root",
|
|
4907
4949
|
children: []
|
|
4908
4950
|
}, { structure: s = "classic", tabindex: c = "0" } = t, l = { class: `shiki ${t.themeName || ""}` };
|
|
@@ -4922,7 +4964,7 @@ function Sa(e, t, n, r = q(e)) {
|
|
|
4922
4964
|
}, f = [], p = {
|
|
4923
4965
|
...n,
|
|
4924
4966
|
structure: s,
|
|
4925
|
-
addClassToHast:
|
|
4967
|
+
addClassToHast: Ji,
|
|
4926
4968
|
get source() {
|
|
4927
4969
|
return n.source;
|
|
4928
4970
|
},
|
|
@@ -4970,7 +5012,7 @@ function Sa(e, t, n, r = q(e)) {
|
|
|
4970
5012
|
type: "text",
|
|
4971
5013
|
value: a.content
|
|
4972
5014
|
}]
|
|
4973
|
-
}, c =
|
|
5015
|
+
}, c = ra(a.htmlStyle || na(a));
|
|
4974
5016
|
c && (e.properties.style = c);
|
|
4975
5017
|
for (let o of i) e = o?.span?.call(p, e, t + 1, r, n, a) || e;
|
|
4976
5018
|
s === "inline" ? o.children.push(e) : s === "classic" && n.children.push(e), r += a.content.length;
|
|
@@ -5019,13 +5061,13 @@ function Sa(e, t, n, r = q(e)) {
|
|
|
5019
5061
|
}
|
|
5020
5062
|
let m = o;
|
|
5021
5063
|
for (let e of i) m = e?.root?.call(p, m) || m;
|
|
5022
|
-
return r &&
|
|
5064
|
+
return r && pr(m, r), m;
|
|
5023
5065
|
}
|
|
5024
|
-
function
|
|
5066
|
+
function Ta(e) {
|
|
5025
5067
|
return e.map((e) => {
|
|
5026
5068
|
let t = [], n = "", r;
|
|
5027
5069
|
return e.forEach((i, a) => {
|
|
5028
|
-
let o = !(i.fontStyle && (i.fontStyle &
|
|
5070
|
+
let o = !(i.fontStyle && (i.fontStyle & R.Underline || i.fontStyle & R.Strikethrough));
|
|
5029
5071
|
o && i.content.match(/^\s+$/) && e[a + 1] ? (r === void 0 && (r = i.offset), n += i.content) : n ? (o ? t.push({
|
|
5030
5072
|
...i,
|
|
5031
5073
|
offset: r,
|
|
@@ -5037,7 +5079,7 @@ function Ca(e) {
|
|
|
5037
5079
|
}), t;
|
|
5038
5080
|
});
|
|
5039
5081
|
}
|
|
5040
|
-
function
|
|
5082
|
+
function Ea(e) {
|
|
5041
5083
|
return e.map((e) => e.flatMap((e) => {
|
|
5042
5084
|
if (e.content.match(/^\s+$/)) return e;
|
|
5043
5085
|
let t = e.content.match(/^(\s*)(.*?)(\s*)$/);
|
|
@@ -5058,7 +5100,7 @@ function wa(e) {
|
|
|
5058
5100
|
}), a;
|
|
5059
5101
|
}));
|
|
5060
5102
|
}
|
|
5061
|
-
function
|
|
5103
|
+
function Da(e) {
|
|
5062
5104
|
return e.map((e) => {
|
|
5063
5105
|
let t = [];
|
|
5064
5106
|
for (let n of e) {
|
|
@@ -5066,60 +5108,60 @@ function Ta(e) {
|
|
|
5066
5108
|
t.push({ ...n });
|
|
5067
5109
|
continue;
|
|
5068
5110
|
}
|
|
5069
|
-
let e = t[t.length - 1], r =
|
|
5111
|
+
let e = t[t.length - 1], r = ra(e.htmlStyle || na(e)), i = ra(n.htmlStyle || na(n)), a = e.fontStyle && (e.fontStyle & R.Underline || e.fontStyle & R.Strikethrough), o = n.fontStyle && (n.fontStyle & R.Underline || n.fontStyle & R.Strikethrough);
|
|
5070
5112
|
!a && !o && r === i ? e.content += n.content : t.push({ ...n });
|
|
5071
5113
|
}
|
|
5072
5114
|
return t;
|
|
5073
5115
|
});
|
|
5074
5116
|
}
|
|
5075
|
-
var
|
|
5076
|
-
function
|
|
5117
|
+
var Oa = Gi;
|
|
5118
|
+
function ka(e, t, n) {
|
|
5077
5119
|
let r = {
|
|
5078
5120
|
meta: {},
|
|
5079
5121
|
options: n,
|
|
5080
|
-
codeToHast: (t, n) =>
|
|
5081
|
-
codeToTokens: (t, n) =>
|
|
5082
|
-
}, i =
|
|
5083
|
-
for (let e of
|
|
5122
|
+
codeToHast: (t, n) => Ca(e, t, n),
|
|
5123
|
+
codeToTokens: (t, n) => xa(e, t, n)
|
|
5124
|
+
}, i = Oa(Ca(e, t, n, r));
|
|
5125
|
+
for (let e of ca(n)) i = e.postprocess?.call(r, i, n) || i;
|
|
5084
5126
|
return i;
|
|
5085
5127
|
}
|
|
5086
|
-
async function
|
|
5087
|
-
let t = await
|
|
5128
|
+
async function Aa(e) {
|
|
5129
|
+
let t = await dr(e);
|
|
5088
5130
|
return {
|
|
5089
|
-
getLastGrammarState: (...e) =>
|
|
5090
|
-
codeToTokensBase: (e, n) =>
|
|
5091
|
-
codeToTokensWithThemes: (e, n) =>
|
|
5092
|
-
codeToTokens: (e, n) =>
|
|
5093
|
-
codeToHast: (e, n) =>
|
|
5094
|
-
codeToHtml: (e, n) =>
|
|
5131
|
+
getLastGrammarState: (...e) => vr(t, ...e),
|
|
5132
|
+
codeToTokensBase: (e, n) => ba(t, e, n),
|
|
5133
|
+
codeToTokensWithThemes: (e, n) => Er(t, e, n),
|
|
5134
|
+
codeToTokens: (e, n) => xa(t, e, n),
|
|
5135
|
+
codeToHast: (e, n) => Ca(t, e, n),
|
|
5136
|
+
codeToHtml: (e, n) => ka(t, e, n),
|
|
5095
5137
|
getBundledLanguages: () => ({}),
|
|
5096
5138
|
getBundledThemes: () => ({}),
|
|
5097
5139
|
...t,
|
|
5098
5140
|
getInternalContext: () => t
|
|
5099
5141
|
};
|
|
5100
5142
|
}
|
|
5101
|
-
function
|
|
5143
|
+
function ja(e) {
|
|
5102
5144
|
let t = e.langs, n = e.themes, r = e.engine;
|
|
5103
5145
|
async function i(e) {
|
|
5104
5146
|
function i(n) {
|
|
5105
5147
|
if (typeof n == "string") {
|
|
5106
|
-
if (n = e.langAlias?.[n] || n,
|
|
5148
|
+
if (n = e.langAlias?.[n] || n, Zn(n)) return [];
|
|
5107
5149
|
let r = t[n];
|
|
5108
|
-
if (!r) throw new
|
|
5150
|
+
if (!r) throw new I(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);
|
|
5109
5151
|
return r;
|
|
5110
5152
|
}
|
|
5111
5153
|
return n;
|
|
5112
5154
|
}
|
|
5113
5155
|
function a(e) {
|
|
5114
|
-
if (
|
|
5156
|
+
if ($n(e)) return "none";
|
|
5115
5157
|
if (typeof e == "string") {
|
|
5116
5158
|
let t = n[e];
|
|
5117
|
-
if (!t) throw new
|
|
5159
|
+
if (!t) throw new I(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);
|
|
5118
5160
|
return t;
|
|
5119
5161
|
}
|
|
5120
5162
|
return e;
|
|
5121
5163
|
}
|
|
5122
|
-
let o = (e.themes ?? []).map((e) => a(e)), s = (e.langs ?? []).map((e) => i(e)), c = await
|
|
5164
|
+
let o = (e.themes ?? []).map((e) => a(e)), s = (e.langs ?? []).map((e) => i(e)), c = await Aa({
|
|
5123
5165
|
engine: e.engine ?? r(),
|
|
5124
5166
|
...e,
|
|
5125
5167
|
themes: o,
|
|
@@ -5143,7 +5185,7 @@ function ka(e) {
|
|
|
5143
5185
|
}
|
|
5144
5186
|
return i;
|
|
5145
5187
|
}
|
|
5146
|
-
function
|
|
5188
|
+
function Ma(e) {
|
|
5147
5189
|
let t;
|
|
5148
5190
|
async function n(n = {}) {
|
|
5149
5191
|
if (t) {
|
|
@@ -5161,8 +5203,8 @@ function Aa(e) {
|
|
|
5161
5203
|
}
|
|
5162
5204
|
return n;
|
|
5163
5205
|
}
|
|
5164
|
-
function
|
|
5165
|
-
let n =
|
|
5206
|
+
function Na(e, t) {
|
|
5207
|
+
let n = Ma(e);
|
|
5166
5208
|
async function r(e, r) {
|
|
5167
5209
|
let i = await n({
|
|
5168
5210
|
langs: [r.lang],
|
|
@@ -5198,48 +5240,6 @@ function ja(e, t) {
|
|
|
5198
5240
|
};
|
|
5199
5241
|
}
|
|
5200
5242
|
//#endregion
|
|
5201
|
-
//#region ../../node_modules/dequal/dist/index.mjs
|
|
5202
|
-
var Ma = Object.prototype.hasOwnProperty;
|
|
5203
|
-
function Na(e, t, n) {
|
|
5204
|
-
for (n of e.keys()) if (Z(n, t)) return n;
|
|
5205
|
-
}
|
|
5206
|
-
function Z(e, t) {
|
|
5207
|
-
var n, r, i;
|
|
5208
|
-
if (e === t) return !0;
|
|
5209
|
-
if (e && t && (n = e.constructor) === t.constructor) {
|
|
5210
|
-
if (n === Date) return e.getTime() === t.getTime();
|
|
5211
|
-
if (n === RegExp) return e.toString() === t.toString();
|
|
5212
|
-
if (n === Array) {
|
|
5213
|
-
if ((r = e.length) === t.length) for (; r-- && Z(e[r], t[r]););
|
|
5214
|
-
return r === -1;
|
|
5215
|
-
}
|
|
5216
|
-
if (n === Set) {
|
|
5217
|
-
if (e.size !== t.size) return !1;
|
|
5218
|
-
for (r of e) if (i = r, i && typeof i == "object" && (i = Na(t, i), !i) || !t.has(i)) return !1;
|
|
5219
|
-
return !0;
|
|
5220
|
-
}
|
|
5221
|
-
if (n === Map) {
|
|
5222
|
-
if (e.size !== t.size) return !1;
|
|
5223
|
-
for (r of e) if (i = r[0], i && typeof i == "object" && (i = Na(t, i), !i) || !Z(r[1], t.get(i))) return !1;
|
|
5224
|
-
return !0;
|
|
5225
|
-
}
|
|
5226
|
-
if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
|
|
5227
|
-
else if (n === DataView) {
|
|
5228
|
-
if ((r = e.byteLength) === t.byteLength) for (; r-- && e.getInt8(r) === t.getInt8(r););
|
|
5229
|
-
return r === -1;
|
|
5230
|
-
}
|
|
5231
|
-
if (ArrayBuffer.isView(e)) {
|
|
5232
|
-
if ((r = e.byteLength) === t.byteLength) for (; r-- && e[r] === t[r];);
|
|
5233
|
-
return r === -1;
|
|
5234
|
-
}
|
|
5235
|
-
if (!n || typeof e == "object") {
|
|
5236
|
-
for (n in r = 0, e) if (Ma.call(e, n) && ++r && !Ma.call(t, n) || !(n in t) || !Z(e[n], t[n])) return !1;
|
|
5237
|
-
return Object.keys(t).length === r;
|
|
5238
|
-
}
|
|
5239
|
-
}
|
|
5240
|
-
return e !== e && t !== t;
|
|
5241
|
-
}
|
|
5242
|
-
//#endregion
|
|
5243
5243
|
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
5244
5244
|
function Pa(e) {
|
|
5245
5245
|
var t, n, r = "";
|
|
@@ -5255,29 +5255,31 @@ function Fa() {
|
|
|
5255
5255
|
return r;
|
|
5256
5256
|
}
|
|
5257
5257
|
//#endregion
|
|
5258
|
-
//#region ../../node_modules/react-shiki/dist/
|
|
5258
|
+
//#region ../../node_modules/react-shiki/dist/component-C5lsWZSq.mjs
|
|
5259
5259
|
var Ia = (e) => {
|
|
5260
5260
|
let t = c(e);
|
|
5261
|
-
return e !== t.current && !
|
|
5261
|
+
return e !== t.current && !lt(e, t.current) && (t.current = e), t.current;
|
|
5262
5262
|
}, La = (e, t, n) => {
|
|
5263
|
-
let r = Date.now();
|
|
5264
5263
|
clearTimeout(t.current.timeoutId);
|
|
5265
|
-
let
|
|
5264
|
+
let r = Math.max(0, t.current.nextAllowedTime - Date.now());
|
|
5266
5265
|
t.current.timeoutId = setTimeout(() => {
|
|
5267
|
-
e()
|
|
5268
|
-
},
|
|
5269
|
-
}, Ra = "plaintext", za = (e
|
|
5266
|
+
e(), t.current.nextAllowedTime = Date.now() + n;
|
|
5267
|
+
}, r);
|
|
5268
|
+
}, Ra = "plaintext", za = (e, t, n) => {
|
|
5269
|
+
let r = n.getBundledLanguages();
|
|
5270
|
+
return Xi(e, t).flatMap((e) => r[e] ?? []);
|
|
5271
|
+
}, Ba = (e) => e == null ? [] : Array.isArray(e) ? e : [e], Va = (e) => e == null ? null : typeof e == "string" ? `s:${e}` : `o:${e.name}::${e.scopeName}`, Ha = (e) => {
|
|
5270
5272
|
let t = /* @__PURE__ */ new Set(), n = [];
|
|
5271
5273
|
for (let r of e) {
|
|
5272
|
-
let e =
|
|
5274
|
+
let e = Va(r);
|
|
5273
5275
|
e == null || t.has(e) || (t.add(e), n.push(r));
|
|
5274
5276
|
}
|
|
5275
5277
|
return n;
|
|
5276
|
-
},
|
|
5277
|
-
let i =
|
|
5278
|
+
}, Ua = (e, t) => e == null ? !1 : typeof e == "string" ? e in t : typeof e.name == "string" && typeof e.scopeName == "string", Wa = (e, t) => Zn(e) || t.includes(e) ? e : Ra, Ga = (e, t, n, r) => {
|
|
5279
|
+
let i = Ba(t), a = Ba(r), o = [...i, ...a], s = Ra, c;
|
|
5278
5280
|
if (e == null || typeof e == "string" && !e.trim()) return {
|
|
5279
5281
|
languageId: s,
|
|
5280
|
-
langsToLoad:
|
|
5282
|
+
langsToLoad: Ha([...a, ...i])
|
|
5281
5283
|
};
|
|
5282
5284
|
if (typeof e == "object") s = e.name, c = e;
|
|
5283
5285
|
else {
|
|
@@ -5286,28 +5288,38 @@ var Ia = (e) => {
|
|
|
5286
5288
|
}
|
|
5287
5289
|
return {
|
|
5288
5290
|
languageId: s,
|
|
5289
|
-
langsToLoad:
|
|
5291
|
+
langsToLoad: Ha([
|
|
5290
5292
|
c,
|
|
5291
5293
|
...a,
|
|
5292
5294
|
...i
|
|
5293
5295
|
])
|
|
5294
5296
|
};
|
|
5295
|
-
},
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5297
|
+
}, Ka = {
|
|
5298
|
+
light: "github-light",
|
|
5299
|
+
dark: "github-dark"
|
|
5300
|
+
}, qa = (e) => {
|
|
5301
|
+
if (typeof e != "object" || !e) return !1;
|
|
5302
|
+
let t = e, n = Array.isArray(t.tokenColors) || Array.isArray(t.settings), r = typeof t.name == "string" || typeof t.type == "string";
|
|
5303
|
+
return n && r;
|
|
5304
|
+
};
|
|
5305
|
+
function Ja(e) {
|
|
5306
|
+
if (typeof e != "object" || !e || qa(e)) return {
|
|
5307
|
+
isMulti: !1,
|
|
5308
|
+
theme: e,
|
|
5307
5309
|
themesToLoad: [e]
|
|
5308
5310
|
};
|
|
5311
|
+
let t = Object.entries(e).filter(([e, t]) => e.trim() !== "" && (typeof t == "string" && t.trim() !== "" || qa(t)));
|
|
5312
|
+
return t.length === 0 ? (console.warn("[react-shiki] invalid multi-theme config, falling back to defaults"), {
|
|
5313
|
+
isMulti: !0,
|
|
5314
|
+
themes: Ka,
|
|
5315
|
+
themesToLoad: Object.values(Ka)
|
|
5316
|
+
}) : (t.length !== Object.keys(e).length && console.warn("[react-shiki] multi-theme config contained invalid entries; they were dropped"), {
|
|
5317
|
+
isMulti: !0,
|
|
5318
|
+
themes: Object.fromEntries(t),
|
|
5319
|
+
themesToLoad: t.map(([, e]) => e)
|
|
5320
|
+
});
|
|
5309
5321
|
}
|
|
5310
|
-
function
|
|
5322
|
+
function Ya(e = 1) {
|
|
5311
5323
|
return {
|
|
5312
5324
|
name: "react-shiki:line-numbers",
|
|
5313
5325
|
code(t) {
|
|
@@ -5324,107 +5336,100 @@ function qa(e = 1) {
|
|
|
5324
5336
|
}
|
|
5325
5337
|
};
|
|
5326
5338
|
}
|
|
5327
|
-
var
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
defaultColor:
|
|
5333
|
-
|
|
5334
|
-
} : { theme: e.singleTheme ?? Ja.dark }, Xa = (e) => {
|
|
5335
|
-
let t = [...e.transformers || []];
|
|
5336
|
-
return e.showLineNumbers && t.push(qa(e.startingLineNumber)), t;
|
|
5337
|
-
}, Za = ({ languageId: e, resolvedTheme: t, options: n }) => {
|
|
5338
|
-
let { defaultColor: r, cssVariablePrefix: i, showLineNumbers: a, startingLineNumber: o, transformers: s, ...c } = n;
|
|
5339
|
-
return {
|
|
5339
|
+
var Xa = (e, t, n) => e.isMulti ? {
|
|
5340
|
+
themes: e.themes,
|
|
5341
|
+
defaultColor: t,
|
|
5342
|
+
cssVariablePrefix: n
|
|
5343
|
+
} : { theme: e.theme }, Za = (e, t, n) => {
|
|
5344
|
+
let { delay: r, customLanguages: i, preloadLanguages: a, outputFormat: o, highlighter: s, langAlias: c, engine: l, defaultColor: u, cssVariablePrefix: d, showLineNumbers: f, startingLineNumber: p, transformers: m, ...h } = n, g = [...m || []];
|
|
5345
|
+
return f && g.push(Ya(p)), {
|
|
5340
5346
|
lang: e,
|
|
5341
|
-
...
|
|
5342
|
-
...
|
|
5343
|
-
transformers:
|
|
5347
|
+
...Xa(t, u, d),
|
|
5348
|
+
...h,
|
|
5349
|
+
transformers: g
|
|
5344
5350
|
};
|
|
5345
|
-
}
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5351
|
+
};
|
|
5352
|
+
async function Qa(e, t, n, r) {
|
|
5353
|
+
let { languageId: i, langsToLoad: a, themesToLoad: o, shikiOptions: s } = t, c = n.highlighter ?? await (async () => {
|
|
5354
|
+
let t = await r(a, o, n.engine);
|
|
5355
|
+
return await t.loadLanguage(...za(e, i, t)), t;
|
|
5356
|
+
})(), l = Wa(i, c.getLoadedLanguages()), p = {
|
|
5357
|
+
...s,
|
|
5358
|
+
lang: l
|
|
5359
|
+
};
|
|
5360
|
+
return n.outputFormat === "html" ? c.codeToHtml(e, p) : Be(c.codeToHast(e, p), {
|
|
5361
|
+
jsx: d,
|
|
5362
|
+
jsxs: f,
|
|
5363
|
+
Fragment: u
|
|
5364
|
+
});
|
|
5365
|
+
}
|
|
5366
|
+
var $a = (e, t, n, r = {}, i) => {
|
|
5367
|
+
let [a, u] = l(null), d = Ia(t), f = Ia(n), p = Ia(r), m = s(() => {
|
|
5368
|
+
let { languageId: e, langsToLoad: t } = Ga(d, p.customLanguages, p.langAlias, p.preloadLanguages), n = Ja(f), r = Za(e, n, p);
|
|
5369
|
+
return {
|
|
5370
|
+
languageId: e,
|
|
5371
|
+
langsToLoad: t,
|
|
5372
|
+
themesToLoad: n.themesToLoad,
|
|
5373
|
+
shikiOptions: r
|
|
5374
|
+
};
|
|
5375
|
+
}, [
|
|
5376
|
+
d,
|
|
5377
|
+
f,
|
|
5378
|
+
p
|
|
5379
|
+
]), h = c(0), g = c({
|
|
5355
5380
|
nextAllowedTime: 0,
|
|
5356
5381
|
timeoutId: void 0
|
|
5357
|
-
})
|
|
5358
|
-
languageId: _,
|
|
5359
|
-
resolvedTheme: y,
|
|
5360
|
-
options: g
|
|
5361
|
-
}), [
|
|
5362
|
-
_,
|
|
5363
|
-
y,
|
|
5364
|
-
g
|
|
5365
|
-
]);
|
|
5382
|
+
});
|
|
5366
5383
|
return o(() => {
|
|
5367
|
-
let t =
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
let
|
|
5372
|
-
t
|
|
5384
|
+
let t = ++h.current;
|
|
5385
|
+
if (!m.languageId) return;
|
|
5386
|
+
let n = async () => {
|
|
5387
|
+
try {
|
|
5388
|
+
let n = await Qa(e, m, p, i);
|
|
5389
|
+
t === h.current && u(n);
|
|
5390
|
+
} catch (e) {
|
|
5391
|
+
console.error("[react-shiki] highlight failed", e);
|
|
5373
5392
|
}
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
};
|
|
5378
|
-
t && p(g.outputFormat === "html" ? n.codeToHtml(e, a) : ze(n.codeToHast(e, a), {
|
|
5379
|
-
jsx: d,
|
|
5380
|
-
jsxs: f,
|
|
5381
|
-
Fragment: u
|
|
5382
|
-
}));
|
|
5383
|
-
}, { delay: r } = g;
|
|
5384
|
-
return r ? La(n, x, r) : n().catch(console.error), () => {
|
|
5385
|
-
t = !1, clearTimeout(x.current.timeoutId);
|
|
5393
|
+
};
|
|
5394
|
+
return p.delay ? La(n, g, p.delay) : n(), () => {
|
|
5395
|
+
clearTimeout(g.current.timeoutId);
|
|
5386
5396
|
};
|
|
5387
5397
|
}, [
|
|
5388
5398
|
e,
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
v,
|
|
5393
|
-
b
|
|
5399
|
+
m,
|
|
5400
|
+
p,
|
|
5401
|
+
i
|
|
5394
5402
|
]), a;
|
|
5395
|
-
}
|
|
5396
|
-
|
|
5397
|
-
if (!e || typeof document > "u") return;
|
|
5398
|
-
let n = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
|
|
5399
|
-
r.type = "text/css", t === "top" && n.firstChild ? n.insertBefore(r, n.firstChild) : n.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e));
|
|
5400
|
-
}
|
|
5401
|
-
eo("@layer base {\n .rs-root {\n position: relative;\n }\n .rs-default-styles pre {\n overflow: auto;\n border-radius: 0.5rem;\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n }\n .rs-language-label {\n position: absolute;\n right: 0.75rem;\n top: 0.5rem;\n font-family: monospace;\n font-size: 0.75rem;\n letter-spacing: -0.05em;\n color: rgba(107, 114, 128, 0.85);\n }\n}\n"), eo("@layer base {\n .line-numbers::before,\n .rs-line-number::before {\n counter-increment: line-number;\n content: counter(line-number);\n display: inline-flex;\n justify-content: flex-end;\n align-items: flex-start;\n box-sizing: content-box;\n min-width: var(--rs-line-numbers-width, 2ch);\n padding-left: var(--rs-line-numbers-padding-left, 2ch);\n padding-right: var(--rs-line-numbers-padding-right, 2ch);\n color: var(--rs-line-numbers-foreground, rgba(107, 114, 128, 0.6));\n font-size: var(--rs-line-numbers-font-size, inherit);\n font-weight: var(--rs-line-numbers-font-weight, inherit);\n line-height: var(--rs-line-numbers-line-height, inherit);\n font-family: var(--rs-line-numbers-font-family, inherit);\n opacity: var(--rs-line-numbers-opacity, 1);\n user-select: none;\n pointer-events: none;\n }\n .has-line-numbers,\n .rs-has-line-numbers {\n counter-reset: line-number calc(var(--line-start, 1) - 1);\n --rs-line-numbers-foreground: var(--line-numbers-foreground, rgba(107, 114, 128, 0.5));\n --rs-line-numbers-width: var(--line-numbers-width, 2ch);\n --rs-line-numbers-padding-left: var(--line-numbers-padding-left, 0ch);\n --rs-line-numbers-padding-right: var(--line-numbers-padding-right, 2ch);\n --rs-line-numbers-font-size: var(--line-numbers-font-size, inherit);\n --rs-line-numbers-font-weight: var(--line-numbers-font-weight, inherit);\n --rs-line-numbers-line-height: var(--line-numbers-line-height, inherit);\n --rs-line-numbers-font-family: var(--line-numbers-font-family, inherit);\n --rs-line-numbers-opacity: var(--line-numbers-opacity, 1);\n }\n}\n");
|
|
5402
|
-
var to = (e) => i(({ language: t, theme: n, delay: r, transformers: i, defaultColor: a, cssVariablePrefix: o, addDefaultStyles: s = !0, style: c, langStyle: l, className: u, langClassName: p, showLanguage: m = !0, showLineNumbers: h = !1, startingLineNumber: g = 1, children: _, as: v = "pre", customLanguages: y, preloadLanguages: b, ...x }, S) => {
|
|
5403
|
-
let C = {
|
|
5403
|
+
}, eo = (e) => i(({ language: t, theme: n, delay: r, transformers: i, defaultColor: a, cssVariablePrefix: o, addDefaultStyles: s = !0, style: c, langStyle: l, className: u, langClassName: p, showLanguage: m = !0, showLineNumbers: h = !1, startingLineNumber: g = 1, children: _, as: v = "div", customLanguages: y, preloadLanguages: ee, ...b }, x) => {
|
|
5404
|
+
let S = {
|
|
5404
5405
|
delay: r,
|
|
5405
5406
|
transformers: i,
|
|
5406
5407
|
customLanguages: y,
|
|
5407
|
-
preloadLanguages:
|
|
5408
|
+
preloadLanguages: ee,
|
|
5408
5409
|
showLineNumbers: h,
|
|
5409
5410
|
defaultColor: a,
|
|
5410
5411
|
cssVariablePrefix: o,
|
|
5411
5412
|
startingLineNumber: g,
|
|
5412
|
-
...
|
|
5413
|
-
},
|
|
5413
|
+
...b
|
|
5414
|
+
}, C = typeof t == "object" ? t.name || null : t?.trim() || null, w = e(_, t, n, S);
|
|
5414
5415
|
return /* @__PURE__ */ f(v, {
|
|
5415
|
-
ref:
|
|
5416
|
+
ref: x,
|
|
5416
5417
|
"data-testid": "shiki-container",
|
|
5418
|
+
"data-slot": "container",
|
|
5417
5419
|
className: Fa("rs-root", "not-prose", s && "rs-default-styles", u),
|
|
5418
5420
|
style: c,
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
+
children: [m && C ? /* @__PURE__ */ d("span", {
|
|
5422
|
+
id: "language-label",
|
|
5423
|
+
"data-slot": "language-label",
|
|
5421
5424
|
className: Fa("rs-language-label", p),
|
|
5422
5425
|
style: l,
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
+
children: C
|
|
5427
|
+
}) : null, typeof w == "string" ? /* @__PURE__ */ d("div", {
|
|
5428
|
+
"data-slot": "content",
|
|
5429
|
+
dangerouslySetInnerHTML: { __html: w }
|
|
5430
|
+
}) : w]
|
|
5426
5431
|
});
|
|
5427
|
-
}),
|
|
5432
|
+
}), to = [
|
|
5428
5433
|
{
|
|
5429
5434
|
id: "abap",
|
|
5430
5435
|
name: "ABAP",
|
|
@@ -6697,10 +6702,10 @@ var to = (e) => i(({ language: t, theme: n, delay: r, transformers: i, defaultCo
|
|
|
6697
6702
|
name: "Zig",
|
|
6698
6703
|
import: (() => import("./zig-DxgNeby0.js"))
|
|
6699
6704
|
}
|
|
6700
|
-
],
|
|
6701
|
-
...
|
|
6702
|
-
...
|
|
6703
|
-
},
|
|
6705
|
+
], no = Object.fromEntries(to.map((e) => [e.id, e.import])), ro = Object.fromEntries(to.flatMap((e) => e.aliases?.map((t) => [t, e.import]) || [])), io = {
|
|
6706
|
+
...no,
|
|
6707
|
+
...ro
|
|
6708
|
+
}, ao = Object.fromEntries([
|
|
6704
6709
|
{
|
|
6705
6710
|
id: "andromeeda",
|
|
6706
6711
|
displayName: "Andromeeda",
|
|
@@ -7091,24 +7096,24 @@ var to = (e) => i(({ language: t, theme: n, delay: r, transformers: i, defaultCo
|
|
|
7091
7096
|
type: "light",
|
|
7092
7097
|
import: (() => import("./vitesse-light-DeN6S36L.js"))
|
|
7093
7098
|
}
|
|
7094
|
-
].map((e) => [e.id, e.import])),
|
|
7095
|
-
createOnigurumaEngine: () =>
|
|
7096
|
-
getDefaultWasmLoader: () =>
|
|
7097
|
-
loadWasm: () =>
|
|
7098
|
-
setDefaultWasmLoader: () =>
|
|
7099
|
-
}),
|
|
7099
|
+
].map((e) => [e.id, e.import])), oo = /* @__PURE__ */ t({
|
|
7100
|
+
createOnigurumaEngine: () => No,
|
|
7101
|
+
getDefaultWasmLoader: () => Mo,
|
|
7102
|
+
loadWasm: () => Eo,
|
|
7103
|
+
setDefaultWasmLoader: () => jo
|
|
7104
|
+
}), so = class extends Error {
|
|
7100
7105
|
constructor(e) {
|
|
7101
7106
|
super(e), this.name = "ShikiError";
|
|
7102
7107
|
}
|
|
7103
7108
|
};
|
|
7104
|
-
function
|
|
7109
|
+
function co() {
|
|
7105
7110
|
return 2147483648;
|
|
7106
7111
|
}
|
|
7107
|
-
function
|
|
7112
|
+
function lo() {
|
|
7108
7113
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
7109
7114
|
}
|
|
7110
|
-
var
|
|
7111
|
-
async function
|
|
7115
|
+
var uo = (e, t) => e + (t - e % t) % t;
|
|
7116
|
+
async function fo(e) {
|
|
7112
7117
|
let t, n, r = {};
|
|
7113
7118
|
function i(e) {
|
|
7114
7119
|
n = e, r.HEAPU8 = new Uint8Array(e), r.HEAPU32 = new Uint32Array(e);
|
|
@@ -7124,11 +7129,11 @@ async function po(e) {
|
|
|
7124
7129
|
function s(e) {
|
|
7125
7130
|
let t = r.HEAPU8.length;
|
|
7126
7131
|
e >>>= 0;
|
|
7127
|
-
let n =
|
|
7132
|
+
let n = co();
|
|
7128
7133
|
if (e > n) return !1;
|
|
7129
7134
|
for (let r = 1; r <= 4; r *= 2) {
|
|
7130
7135
|
let i = t * (1 + .2 / r);
|
|
7131
|
-
if (i = Math.min(i, e + 100663296), o(Math.min(n,
|
|
7136
|
+
if (i = Math.min(i, e + 100663296), o(Math.min(n, uo(Math.max(e, i), 65536)))) return !0;
|
|
7132
7137
|
}
|
|
7133
7138
|
return !1;
|
|
7134
7139
|
}
|
|
@@ -7162,7 +7167,7 @@ async function po(e) {
|
|
|
7162
7167
|
return e ? l(r.HEAPU8, e, t) : "";
|
|
7163
7168
|
}
|
|
7164
7169
|
let d = {
|
|
7165
|
-
emscripten_get_now:
|
|
7170
|
+
emscripten_get_now: lo,
|
|
7166
7171
|
emscripten_memcpy_big: a,
|
|
7167
7172
|
emscripten_resize_heap: s,
|
|
7168
7173
|
fd_write: () => 0
|
|
@@ -7176,16 +7181,16 @@ async function po(e) {
|
|
|
7176
7181
|
}
|
|
7177
7182
|
return await f(), r;
|
|
7178
7183
|
}
|
|
7179
|
-
var
|
|
7184
|
+
var po = Object.defineProperty, mo = (e, t, n) => t in e ? po(e, t, {
|
|
7180
7185
|
enumerable: !0,
|
|
7181
7186
|
configurable: !0,
|
|
7182
7187
|
writable: !0,
|
|
7183
7188
|
value: n
|
|
7184
|
-
}) : e[t] = n, Q = (e, t, n) =>
|
|
7185
|
-
function
|
|
7186
|
-
throw new
|
|
7189
|
+
}) : e[t] = n, Q = (e, t, n) => mo(e, typeof t == "symbol" ? t : t + "", n), $ = null;
|
|
7190
|
+
function ho(e) {
|
|
7191
|
+
throw new so(e.UTF8ToString(e.getLastOnigError()));
|
|
7187
7192
|
}
|
|
7188
|
-
var
|
|
7193
|
+
var go = class e {
|
|
7189
7194
|
constructor(t) {
|
|
7190
7195
|
Q(this, "utf16Length"), Q(this, "utf8Length"), Q(this, "utf16Value"), Q(this, "utf8Value"), Q(this, "utf16OffsetToUtf8"), Q(this, "utf8OffsetToUtf16");
|
|
7191
7196
|
let n = t.length, r = e._utf8ByteLength(t), i = r !== n, a = i ? new Uint32Array(n + 1) : null;
|
|
@@ -7219,11 +7224,11 @@ var _o = class e {
|
|
|
7219
7224
|
let t = e.omalloc(this.utf8Length);
|
|
7220
7225
|
return e.HEAPU8.set(this.utf8Value, t), t;
|
|
7221
7226
|
}
|
|
7222
|
-
},
|
|
7227
|
+
}, _o = class e {
|
|
7223
7228
|
constructor(t) {
|
|
7224
|
-
if (Q(this, "id", ++e.LAST_ID), Q(this, "_onigBinding"), Q(this, "content"), Q(this, "utf16Length"), Q(this, "utf8Length"), Q(this, "utf16OffsetToUtf8"), Q(this, "utf8OffsetToUtf16"), Q(this, "ptr"), !$) throw new
|
|
7229
|
+
if (Q(this, "id", ++e.LAST_ID), Q(this, "_onigBinding"), Q(this, "content"), Q(this, "utf16Length"), Q(this, "utf8Length"), Q(this, "utf16OffsetToUtf8"), Q(this, "utf8OffsetToUtf16"), Q(this, "ptr"), !$) throw new so("Must invoke loadWasm first.");
|
|
7225
7230
|
this._onigBinding = $, this.content = t;
|
|
7226
|
-
let n = new
|
|
7231
|
+
let n = new go(t);
|
|
7227
7232
|
this.utf16Length = n.utf16Length, this.utf8Length = n.utf8Length, this.utf16OffsetToUtf8 = n.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = n.utf8OffsetToUtf16, this.utf8Length < 1e4 && !e._sharedPtrInUse ? (e._sharedPtr ||= $.omalloc(1e4), e._sharedPtrInUse = !0, $.HEAPU8.set(n.utf8Value, e._sharedPtr), this.ptr = e._sharedPtr) : this.ptr = n.createString($);
|
|
7228
7233
|
}
|
|
7229
7234
|
convertUtf8OffsetToUtf16(e) {
|
|
@@ -7236,13 +7241,13 @@ var _o = class e {
|
|
|
7236
7241
|
this.ptr === e._sharedPtr ? e._sharedPtrInUse = !1 : this._onigBinding.ofree(this.ptr);
|
|
7237
7242
|
}
|
|
7238
7243
|
};
|
|
7239
|
-
Q(
|
|
7240
|
-
var
|
|
7244
|
+
Q(_o, "LAST_ID", 0), Q(_o, "_sharedPtr", 0), Q(_o, "_sharedPtrInUse", !1);
|
|
7245
|
+
var vo = _o, yo = class {
|
|
7241
7246
|
constructor(e) {
|
|
7242
|
-
if (Q(this, "_onigBinding"), Q(this, "_ptr"), !$) throw new
|
|
7247
|
+
if (Q(this, "_onigBinding"), Q(this, "_ptr"), !$) throw new so("Must invoke loadWasm first.");
|
|
7243
7248
|
let t = [], n = [];
|
|
7244
7249
|
for (let r = 0, i = e.length; r < i; r++) {
|
|
7245
|
-
let i = new
|
|
7250
|
+
let i = new go(e[r]);
|
|
7246
7251
|
t[r] = i.createString($), n[r] = i.utf8Length;
|
|
7247
7252
|
}
|
|
7248
7253
|
let r = $.omalloc(4 * e.length);
|
|
@@ -7251,7 +7256,7 @@ var yo = vo, bo = class {
|
|
|
7251
7256
|
$.HEAPU32.set(n, i / 4);
|
|
7252
7257
|
let a = $.createOnigScanner(r, i, e.length);
|
|
7253
7258
|
for (let n = 0, r = e.length; n < r; n++) $.ofree(t[n]);
|
|
7254
|
-
$.ofree(i), $.ofree(r), a === 0 &&
|
|
7259
|
+
$.ofree(i), $.ofree(r), a === 0 && ho($), this._onigBinding = $, this._ptr = a;
|
|
7255
7260
|
}
|
|
7256
7261
|
dispose() {
|
|
7257
7262
|
this._onigBinding.freeOnigScanner(this._ptr);
|
|
@@ -7259,7 +7264,7 @@ var yo = vo, bo = class {
|
|
|
7259
7264
|
findNextMatchSync(e, t, n) {
|
|
7260
7265
|
let r = 0;
|
|
7261
7266
|
if (typeof n == "number" && (r = n), typeof e == "string") {
|
|
7262
|
-
e = new
|
|
7267
|
+
e = new vo(e);
|
|
7263
7268
|
let n = this._findNextMatchSync(e, t, !1, r);
|
|
7264
7269
|
return e.dispose(), n;
|
|
7265
7270
|
}
|
|
@@ -7283,96 +7288,96 @@ var yo = vo, bo = class {
|
|
|
7283
7288
|
};
|
|
7284
7289
|
}
|
|
7285
7290
|
};
|
|
7286
|
-
function
|
|
7291
|
+
function bo(e) {
|
|
7287
7292
|
return typeof e.instantiator == "function";
|
|
7288
7293
|
}
|
|
7289
|
-
function
|
|
7294
|
+
function xo(e) {
|
|
7290
7295
|
return typeof e.default == "function";
|
|
7291
7296
|
}
|
|
7292
|
-
function
|
|
7297
|
+
function So(e) {
|
|
7293
7298
|
return e.data !== void 0;
|
|
7294
7299
|
}
|
|
7295
|
-
function
|
|
7300
|
+
function Co(e) {
|
|
7296
7301
|
return typeof Response < "u" && e instanceof Response;
|
|
7297
7302
|
}
|
|
7298
|
-
function
|
|
7303
|
+
function wo(e) {
|
|
7299
7304
|
return typeof ArrayBuffer < "u" && (e instanceof ArrayBuffer || ArrayBuffer.isView(e)) || typeof Buffer < "u" && Buffer.isBuffer?.(e) || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer || typeof Uint32Array < "u" && e instanceof Uint32Array;
|
|
7300
7305
|
}
|
|
7301
|
-
var
|
|
7302
|
-
function
|
|
7303
|
-
if (
|
|
7306
|
+
var To;
|
|
7307
|
+
function Eo(e) {
|
|
7308
|
+
if (To) return To;
|
|
7304
7309
|
async function t() {
|
|
7305
|
-
$ = await
|
|
7310
|
+
$ = await fo(async (t) => {
|
|
7306
7311
|
let n = e;
|
|
7307
|
-
return n = await n, typeof n == "function" && (n = await n(t)), typeof n == "function" && (n = await n(t)),
|
|
7312
|
+
return n = await n, typeof n == "function" && (n = await n(t)), typeof n == "function" && (n = await n(t)), bo(n) ? n = await n.instantiator(t) : xo(n) ? n = await n.default(t) : (So(n) && (n = n.data), Co(n) ? n = typeof WebAssembly.instantiateStreaming == "function" ? await Oo(n)(t) : await ko(n)(t) : wo(n) || n instanceof WebAssembly.Module ? n = await Do(n)(t) : "default" in n && n.default instanceof WebAssembly.Module && (n = await Do(n.default)(t))), "instance" in n && (n = n.instance), "exports" in n && (n = n.exports), n;
|
|
7308
7313
|
});
|
|
7309
7314
|
}
|
|
7310
|
-
return
|
|
7315
|
+
return To = t(), To;
|
|
7311
7316
|
}
|
|
7312
|
-
function
|
|
7317
|
+
function Do(e) {
|
|
7313
7318
|
return (t) => WebAssembly.instantiate(e, t);
|
|
7314
7319
|
}
|
|
7315
|
-
function
|
|
7320
|
+
function Oo(e) {
|
|
7316
7321
|
return (t) => WebAssembly.instantiateStreaming(e, t);
|
|
7317
7322
|
}
|
|
7318
|
-
function
|
|
7323
|
+
function ko(e) {
|
|
7319
7324
|
return async (t) => {
|
|
7320
7325
|
let n = await e.arrayBuffer();
|
|
7321
7326
|
return WebAssembly.instantiate(n, t);
|
|
7322
7327
|
};
|
|
7323
7328
|
}
|
|
7324
|
-
var
|
|
7325
|
-
function
|
|
7326
|
-
|
|
7329
|
+
var Ao;
|
|
7330
|
+
function jo(e) {
|
|
7331
|
+
Ao = e;
|
|
7327
7332
|
}
|
|
7328
|
-
function
|
|
7329
|
-
return
|
|
7333
|
+
function Mo() {
|
|
7334
|
+
return Ao;
|
|
7330
7335
|
}
|
|
7331
|
-
async function
|
|
7332
|
-
return e && await
|
|
7336
|
+
async function No(e) {
|
|
7337
|
+
return e && await Eo(e), {
|
|
7333
7338
|
createScanner(e) {
|
|
7334
|
-
return new
|
|
7339
|
+
return new yo(e.map((e) => typeof e == "string" ? e : e.source));
|
|
7335
7340
|
},
|
|
7336
7341
|
createString(e) {
|
|
7337
|
-
return new
|
|
7342
|
+
return new vo(e);
|
|
7338
7343
|
}
|
|
7339
7344
|
};
|
|
7340
7345
|
}
|
|
7341
7346
|
//#endregion
|
|
7342
7347
|
//#region ../../node_modules/shiki/dist/engine-oniguruma.mjs
|
|
7343
|
-
var
|
|
7344
|
-
|
|
7345
|
-
var { codeToHtml:
|
|
7346
|
-
langs:
|
|
7347
|
-
themes:
|
|
7348
|
-
engine: () => (0,
|
|
7349
|
-
}), { guessEmbeddedLanguages:
|
|
7348
|
+
var Po = /* @__PURE__ */ mt({});
|
|
7349
|
+
gt(Po, oo);
|
|
7350
|
+
var { codeToHtml: Fo, codeToHast: Io, codeToTokens: Lo, codeToTokensBase: Ro, codeToTokensWithThemes: zo, getSingletonHighlighter: Bo, getLastGrammarState: Vo } = /* @__PURE__ */ Na(/* @__PURE__ */ ja({
|
|
7351
|
+
langs: io,
|
|
7352
|
+
themes: ao,
|
|
7353
|
+
engine: () => (0, Po.createOnigurumaEngine)(import("./wasm-CyW5hsZ1.js"))
|
|
7354
|
+
}), { guessEmbeddedLanguages: Xi });
|
|
7350
7355
|
//#endregion
|
|
7351
|
-
//#region ../../node_modules/react-shiki/dist/index.
|
|
7352
|
-
async function
|
|
7353
|
-
return await
|
|
7354
|
-
langs: e.filter((e) =>
|
|
7356
|
+
//#region ../../node_modules/react-shiki/dist/index.mjs
|
|
7357
|
+
async function Ho(e, t, n) {
|
|
7358
|
+
return await Bo({
|
|
7359
|
+
langs: e.filter((e) => Ua(e, io)),
|
|
7355
7360
|
themes: t,
|
|
7356
|
-
engine: n ??
|
|
7361
|
+
engine: n ?? No(import("./wasm-CyW5hsZ1.js"))
|
|
7357
7362
|
});
|
|
7358
7363
|
}
|
|
7359
|
-
var
|
|
7360
|
-
|
|
7364
|
+
var Uo = (e, t, n, r = {}) => $a(e, t, n, r, Ho);
|
|
7365
|
+
eo(Uo);
|
|
7361
7366
|
//#endregion
|
|
7362
7367
|
//#region src/atomic/molecules/markdown/components/MarkdownShikiCodeBlock.tsx
|
|
7363
|
-
var
|
|
7368
|
+
var Wo = "github-light", Go = ({ badgeLabel: e, code: t, language: n }) => {
|
|
7364
7369
|
let i = a(s(() => t.replace(/\s+$/, ""), [t]));
|
|
7365
7370
|
return /* @__PURE__ */ d(r, {
|
|
7366
7371
|
badgeLabel: e,
|
|
7367
7372
|
copyCode: i,
|
|
7368
7373
|
fallbackCodeText: i,
|
|
7369
|
-
highlighted:
|
|
7374
|
+
highlighted: Uo(i, n, Wo, {
|
|
7370
7375
|
delay: 60,
|
|
7371
7376
|
showLineNumbers: !1
|
|
7372
7377
|
})
|
|
7373
7378
|
});
|
|
7374
7379
|
};
|
|
7375
7380
|
//#endregion
|
|
7376
|
-
export {
|
|
7381
|
+
export { Go as MarkdownShikiCodeBlock, Go as default };
|
|
7377
7382
|
|
|
7378
|
-
//# sourceMappingURL=MarkdownShikiCodeBlock-
|
|
7383
|
+
//# sourceMappingURL=MarkdownShikiCodeBlock-CbaOKfZO.js.map
|