sanity 3.94.1 → 3.94.2-next.1.a8381d7633
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/_chunks-cjs/version.js +1 -1
- package/lib/_chunks-es/version.mjs +1 -1
- package/package.json +25 -25
- package/dist/BehaviorSubject-CU-WJrzA.mjs +0 -30
- package/dist/BehaviorSubject-CU-WJrzA.mjs.map +0 -1
- package/dist/BroadcastDisplayedDocument-BSV9T3BU.mjs +0 -20
- package/dist/BroadcastDisplayedDocument-BSV9T3BU.mjs.map +0 -1
- package/dist/DisplayedDocumentBroadcaster-DZ65n35Q.mjs +0 -62
- package/dist/DisplayedDocumentBroadcaster-DZ65n35Q.mjs.map +0 -1
- package/dist/LiveQueries-Crz53eU5.mjs +0 -407
- package/dist/LiveQueries-Crz53eU5.mjs.map +0 -1
- package/dist/Observable-CCQtH8Gg.mjs +0 -546
- package/dist/Observable-CCQtH8Gg.mjs.map +0 -1
- package/dist/PostMessageDocuments-BjgsJxz4.mjs +0 -72
- package/dist/PostMessageDocuments-BjgsJxz4.mjs.map +0 -1
- package/dist/PostMessagePerspective-pucY-E6a.mjs +0 -22
- package/dist/PostMessagePerspective-pucY-E6a.mjs.map +0 -1
- package/dist/PostMessagePreviewSnapshots-CRQgRg4_.mjs +0 -71
- package/dist/PostMessagePreviewSnapshots-CRQgRg4_.mjs.map +0 -1
- package/dist/PostMessageRefreshMutations-D944RbO3.mjs +0 -66
- package/dist/PostMessageRefreshMutations-D944RbO3.mjs.map +0 -1
- package/dist/PostMessageSchema-3eOtr1bs.mjs +0 -516
- package/dist/PostMessageSchema-3eOtr1bs.mjs.map +0 -1
- package/dist/PostMessageTelemetry-DMTQDJeN.mjs +0 -20
- package/dist/PostMessageTelemetry-DMTQDJeN.mjs.map +0 -1
- package/dist/PresentationToolGrantsCheck-B0q4AQ3b.mjs +0 -3999
- package/dist/PresentationToolGrantsCheck-B0q4AQ3b.mjs.map +0 -1
- package/dist/QRCodeSVG-hyTW2xeN.mjs +0 -648
- package/dist/QRCodeSVG-hyTW2xeN.mjs.map +0 -1
- package/dist/Refractor-Zss2QEe8.mjs +0 -2568
- package/dist/Refractor-Zss2QEe8.mjs.map +0 -1
- package/dist/SourceContext-QxJD1Wrm.mjs +0 -111
- package/dist/SourceContext-QxJD1Wrm.mjs.map +0 -1
- package/dist/StructureToolProvider-B-7cwz7l.mjs +0 -2287
- package/dist/StructureToolProvider-B-7cwz7l.mjs.map +0 -1
- package/dist/ViteDevServerStopped-CgIEqy9p.mjs +0 -57
- package/dist/ViteDevServerStopped-CgIEqy9p.mjs.map +0 -1
- package/dist/_createContext.mjs +0 -38
- package/dist/_createContext.mjs.map +0 -1
- package/dist/_singletons.mjs +0 -216
- package/dist/_singletons.mjs.map +0 -1
- package/dist/browser-B0Q9qZJS.mjs +0 -478
- package/dist/browser-B0Q9qZJS.mjs.map +0 -1
- package/dist/browser-DmX5VEcE.mjs +0 -324
- package/dist/browser-DmX5VEcE.mjs.map +0 -1
- package/dist/desk.mjs +0 -53
- package/dist/desk.mjs.map +0 -1
- package/dist/first-Cz545eV-.mjs +0 -42
- package/dist/first-Cz545eV-.mjs.map +0 -1
- package/dist/index-B2GCDfau.mjs +0 -96
- package/dist/index-B2GCDfau.mjs.map +0 -1
- package/dist/index-BRIelBPK.mjs +0 -6946
- package/dist/index-BRIelBPK.mjs.map +0 -1
- package/dist/index-BUB137yJ.mjs +0 -144
- package/dist/index-BUB137yJ.mjs.map +0 -1
- package/dist/index-C3PGPrdL.mjs +0 -1192
- package/dist/index-C3PGPrdL.mjs.map +0 -1
- package/dist/index-C9NvTy6s.mjs +0 -319
- package/dist/index-C9NvTy6s.mjs.map +0 -1
- package/dist/index-DCkQlgdi.mjs +0 -4001
- package/dist/index-DCkQlgdi.mjs.map +0 -1
- package/dist/index-DG-3plB0.mjs +0 -71
- package/dist/index-DG-3plB0.mjs.map +0 -1
- package/dist/index-RoxwhtVB.mjs +0 -5600
- package/dist/index-RoxwhtVB.mjs.map +0 -1
- package/dist/index-iMZR29eF.mjs +0 -756
- package/dist/index-iMZR29eF.mjs.map +0 -1
- package/dist/index-wVXq9rWS.mjs +0 -244
- package/dist/index-wVXq9rWS.mjs.map +0 -1
- package/dist/index.mjs +0 -137385
- package/dist/index.mjs.map +0 -1
- package/dist/lodash-Vz5dH_Dm.mjs +0 -3679
- package/dist/lodash-Vz5dH_Dm.mjs.map +0 -1
- package/dist/pane-Bm_57XKB.mjs +0 -5
- package/dist/pane-Bm_57XKB.mjs.map +0 -1
- package/dist/pane-Dopl4BjD.mjs +0 -5
- package/dist/pane-Dopl4BjD.mjs.map +0 -1
- package/dist/presentation-DsIky7Cj.mjs +0 -556
- package/dist/presentation-DsIky7Cj.mjs.map +0 -1
- package/dist/presentation.mjs +0 -10
- package/dist/presentation.mjs.map +0 -1
- package/dist/publishReplay-PuJoYJpp.mjs +0 -92
- package/dist/publishReplay-PuJoYJpp.mjs.map +0 -1
- package/dist/refractor-Bg1S3YDK.mjs +0 -26
- package/dist/refractor-Bg1S3YDK.mjs.map +0 -1
- package/dist/resources-BQsCEzu1.mjs +0 -60
- package/dist/resources-BQsCEzu1.mjs.map +0 -1
- package/dist/resources-BahMtJuO.mjs +0 -177
- package/dist/resources-BahMtJuO.mjs.map +0 -1
- package/dist/resources-CjkBN4z6.mjs +0 -126
- package/dist/resources-CjkBN4z6.mjs.map +0 -1
- package/dist/resources-Dc-6ZcPg.mjs +0 -157
- package/dist/resources-Dc-6ZcPg.mjs.map +0 -1
- package/dist/resources-DqxSuDsr.mjs +0 -37
- package/dist/resources-DqxSuDsr.mjs.map +0 -1
- package/dist/resources-_gTjFWLH.mjs +0 -517
- package/dist/resources-_gTjFWLH.mjs.map +0 -1
- package/dist/resources-kA1bao30.mjs +0 -358
- package/dist/resources-kA1bao30.mjs.map +0 -1
- package/dist/router.mjs +0 -721
- package/dist/router.mjs.map +0 -1
- package/dist/stegaEncodeSourceMap-DCG9Ba1H.mjs +0 -358
- package/dist/stegaEncodeSourceMap-DCG9Ba1H.mjs.map +0 -1
- package/dist/structure.mjs +0 -57
- package/dist/structure.mjs.map +0 -1
- package/dist/structureTool-Bth1vd8r.mjs +0 -13150
- package/dist/structureTool-Bth1vd8r.mjs.map +0 -1
- package/dist/switchMap-DHVUskpL.mjs +0 -54
- package/dist/switchMap-DHVUskpL.mjs.map +0 -1
- package/dist/v4-zH-CAum7.mjs +0 -24798
- package/dist/v4-zH-CAum7.mjs.map +0 -1
- package/dist/version-DoE_JnhG.mjs +0 -5
- package/dist/version-DoE_JnhG.mjs.map +0 -1
@@ -1,2568 +0,0 @@
|
|
1
|
-
import { c as be, g as bn } from "./index-C9NvTy6s.mjs";
|
2
|
-
import cn from "react";
|
3
|
-
var Fe, xr;
|
4
|
-
function xn() {
|
5
|
-
if (xr) return Fe;
|
6
|
-
xr = 1, Fe = n;
|
7
|
-
var t = Object.prototype.hasOwnProperty;
|
8
|
-
function n() {
|
9
|
-
for (var l = {}, e = 0; e < arguments.length; e++) {
|
10
|
-
var g = arguments[e];
|
11
|
-
for (var d in g)
|
12
|
-
t.call(g, d) && (l[d] = g[d]);
|
13
|
-
}
|
14
|
-
return l;
|
15
|
-
}
|
16
|
-
return Fe;
|
17
|
-
}
|
18
|
-
var qe, wr;
|
19
|
-
function fn() {
|
20
|
-
if (wr) return qe;
|
21
|
-
wr = 1, qe = n;
|
22
|
-
var t = n.prototype;
|
23
|
-
t.space = null, t.normal = {}, t.property = {};
|
24
|
-
function n(l, e, g) {
|
25
|
-
this.property = l, this.normal = e, g && (this.space = g);
|
26
|
-
}
|
27
|
-
return qe;
|
28
|
-
}
|
29
|
-
var Ee, kr;
|
30
|
-
function wn() {
|
31
|
-
if (kr) return Ee;
|
32
|
-
kr = 1;
|
33
|
-
var t = xn(), n = fn();
|
34
|
-
Ee = l;
|
35
|
-
function l(e) {
|
36
|
-
for (var g = e.length, d = [], c = [], a = -1, v, m; ++a < g; )
|
37
|
-
v = e[a], d.push(v.property), c.push(v.normal), m = v.space;
|
38
|
-
return new n(
|
39
|
-
t.apply(null, d),
|
40
|
-
t.apply(null, c),
|
41
|
-
m
|
42
|
-
);
|
43
|
-
}
|
44
|
-
return Ee;
|
45
|
-
}
|
46
|
-
var Re, Sr;
|
47
|
-
function dr() {
|
48
|
-
if (Sr) return Re;
|
49
|
-
Sr = 1, Re = t;
|
50
|
-
function t(n) {
|
51
|
-
return n.toLowerCase();
|
52
|
-
}
|
53
|
-
return Re;
|
54
|
-
}
|
55
|
-
var Te, Ar;
|
56
|
-
function dn() {
|
57
|
-
if (Ar) return Te;
|
58
|
-
Ar = 1, Te = n;
|
59
|
-
var t = n.prototype;
|
60
|
-
t.space = null, t.attribute = null, t.property = null, t.boolean = !1, t.booleanish = !1, t.overloadedBoolean = !1, t.number = !1, t.commaSeparated = !1, t.spaceSeparated = !1, t.commaOrSpaceSeparated = !1, t.mustUseProperty = !1, t.defined = !1;
|
61
|
-
function n(l, e) {
|
62
|
-
this.property = l, this.attribute = e;
|
63
|
-
}
|
64
|
-
return Te;
|
65
|
-
}
|
66
|
-
var W = {}, Cr;
|
67
|
-
function pr() {
|
68
|
-
if (Cr) return W;
|
69
|
-
Cr = 1;
|
70
|
-
var t = 0;
|
71
|
-
W.boolean = n(), W.booleanish = n(), W.overloadedBoolean = n(), W.number = n(), W.spaceSeparated = n(), W.commaSeparated = n(), W.commaOrSpaceSeparated = n();
|
72
|
-
function n() {
|
73
|
-
return Math.pow(2, ++t);
|
74
|
-
}
|
75
|
-
return W;
|
76
|
-
}
|
77
|
-
var Ne, Fr;
|
78
|
-
function pn() {
|
79
|
-
if (Fr) return Ne;
|
80
|
-
Fr = 1;
|
81
|
-
var t = dn(), n = pr();
|
82
|
-
Ne = g, g.prototype = new t(), g.prototype.defined = !0;
|
83
|
-
var l = [
|
84
|
-
"boolean",
|
85
|
-
"booleanish",
|
86
|
-
"overloadedBoolean",
|
87
|
-
"number",
|
88
|
-
"commaSeparated",
|
89
|
-
"spaceSeparated",
|
90
|
-
"commaOrSpaceSeparated"
|
91
|
-
], e = l.length;
|
92
|
-
function g(c, a, v, m) {
|
93
|
-
var k = -1, h;
|
94
|
-
for (d(this, "space", m), t.call(this, c, a); ++k < e; )
|
95
|
-
h = l[k], d(this, h, (v & n[h]) === n[h]);
|
96
|
-
}
|
97
|
-
function d(c, a, v) {
|
98
|
-
v && (c[a] = v);
|
99
|
-
}
|
100
|
-
return Ne;
|
101
|
-
}
|
102
|
-
var Ie, qr;
|
103
|
-
function pe() {
|
104
|
-
if (qr) return Ie;
|
105
|
-
qr = 1;
|
106
|
-
var t = dr(), n = fn(), l = pn();
|
107
|
-
Ie = e;
|
108
|
-
function e(g) {
|
109
|
-
var d = g.space, c = g.mustUseProperty || [], a = g.attributes || {}, v = g.properties, m = g.transform, k = {}, h = {}, x, A;
|
110
|
-
for (x in v)
|
111
|
-
A = new l(
|
112
|
-
x,
|
113
|
-
m(a, x),
|
114
|
-
v[x],
|
115
|
-
d
|
116
|
-
), c.indexOf(x) !== -1 && (A.mustUseProperty = !0), k[x] = A, h[t(x)] = x, h[t(A.attribute)] = x;
|
117
|
-
return new n(k, h, d);
|
118
|
-
}
|
119
|
-
return Ie;
|
120
|
-
}
|
121
|
-
var Me, Er;
|
122
|
-
function kn() {
|
123
|
-
if (Er) return Me;
|
124
|
-
Er = 1;
|
125
|
-
var t = pe();
|
126
|
-
Me = t({
|
127
|
-
space: "xlink",
|
128
|
-
transform: n,
|
129
|
-
properties: {
|
130
|
-
xLinkActuate: null,
|
131
|
-
xLinkArcRole: null,
|
132
|
-
xLinkHref: null,
|
133
|
-
xLinkRole: null,
|
134
|
-
xLinkShow: null,
|
135
|
-
xLinkTitle: null,
|
136
|
-
xLinkType: null
|
137
|
-
}
|
138
|
-
});
|
139
|
-
function n(l, e) {
|
140
|
-
return "xlink:" + e.slice(5).toLowerCase();
|
141
|
-
}
|
142
|
-
return Me;
|
143
|
-
}
|
144
|
-
var $e, Rr;
|
145
|
-
function Sn() {
|
146
|
-
if (Rr) return $e;
|
147
|
-
Rr = 1;
|
148
|
-
var t = pe();
|
149
|
-
$e = t({
|
150
|
-
space: "xml",
|
151
|
-
transform: n,
|
152
|
-
properties: {
|
153
|
-
xmlLang: null,
|
154
|
-
xmlBase: null,
|
155
|
-
xmlSpace: null
|
156
|
-
}
|
157
|
-
});
|
158
|
-
function n(l, e) {
|
159
|
-
return "xml:" + e.slice(3).toLowerCase();
|
160
|
-
}
|
161
|
-
return $e;
|
162
|
-
}
|
163
|
-
var Oe, Tr;
|
164
|
-
function An() {
|
165
|
-
if (Tr) return Oe;
|
166
|
-
Tr = 1, Oe = t;
|
167
|
-
function t(n, l) {
|
168
|
-
return l in n ? n[l] : l;
|
169
|
-
}
|
170
|
-
return Oe;
|
171
|
-
}
|
172
|
-
var Le, Nr;
|
173
|
-
function gn() {
|
174
|
-
if (Nr) return Le;
|
175
|
-
Nr = 1;
|
176
|
-
var t = An();
|
177
|
-
Le = n;
|
178
|
-
function n(l, e) {
|
179
|
-
return t(l, e.toLowerCase());
|
180
|
-
}
|
181
|
-
return Le;
|
182
|
-
}
|
183
|
-
var je, Ir;
|
184
|
-
function Cn() {
|
185
|
-
if (Ir) return je;
|
186
|
-
Ir = 1;
|
187
|
-
var t = pe(), n = gn();
|
188
|
-
return je = t({
|
189
|
-
space: "xmlns",
|
190
|
-
attributes: {
|
191
|
-
xmlnsxlink: "xmlns:xlink"
|
192
|
-
},
|
193
|
-
transform: n,
|
194
|
-
properties: {
|
195
|
-
xmlns: null,
|
196
|
-
xmlnsXLink: null
|
197
|
-
}
|
198
|
-
}), je;
|
199
|
-
}
|
200
|
-
var De, Mr;
|
201
|
-
function Fn() {
|
202
|
-
if (Mr) return De;
|
203
|
-
Mr = 1;
|
204
|
-
var t = pr(), n = pe(), l = t.booleanish, e = t.number, g = t.spaceSeparated;
|
205
|
-
De = n({
|
206
|
-
transform: d,
|
207
|
-
properties: {
|
208
|
-
ariaActiveDescendant: null,
|
209
|
-
ariaAtomic: l,
|
210
|
-
ariaAutoComplete: null,
|
211
|
-
ariaBusy: l,
|
212
|
-
ariaChecked: l,
|
213
|
-
ariaColCount: e,
|
214
|
-
ariaColIndex: e,
|
215
|
-
ariaColSpan: e,
|
216
|
-
ariaControls: g,
|
217
|
-
ariaCurrent: null,
|
218
|
-
ariaDescribedBy: g,
|
219
|
-
ariaDetails: null,
|
220
|
-
ariaDisabled: l,
|
221
|
-
ariaDropEffect: g,
|
222
|
-
ariaErrorMessage: null,
|
223
|
-
ariaExpanded: l,
|
224
|
-
ariaFlowTo: g,
|
225
|
-
ariaGrabbed: l,
|
226
|
-
ariaHasPopup: null,
|
227
|
-
ariaHidden: l,
|
228
|
-
ariaInvalid: null,
|
229
|
-
ariaKeyShortcuts: null,
|
230
|
-
ariaLabel: null,
|
231
|
-
ariaLabelledBy: g,
|
232
|
-
ariaLevel: e,
|
233
|
-
ariaLive: null,
|
234
|
-
ariaModal: l,
|
235
|
-
ariaMultiLine: l,
|
236
|
-
ariaMultiSelectable: l,
|
237
|
-
ariaOrientation: null,
|
238
|
-
ariaOwns: g,
|
239
|
-
ariaPlaceholder: null,
|
240
|
-
ariaPosInSet: e,
|
241
|
-
ariaPressed: l,
|
242
|
-
ariaReadOnly: l,
|
243
|
-
ariaRelevant: null,
|
244
|
-
ariaRequired: l,
|
245
|
-
ariaRoleDescription: g,
|
246
|
-
ariaRowCount: e,
|
247
|
-
ariaRowIndex: e,
|
248
|
-
ariaRowSpan: e,
|
249
|
-
ariaSelected: l,
|
250
|
-
ariaSetSize: e,
|
251
|
-
ariaSort: null,
|
252
|
-
ariaValueMax: e,
|
253
|
-
ariaValueMin: e,
|
254
|
-
ariaValueNow: e,
|
255
|
-
ariaValueText: null,
|
256
|
-
role: null
|
257
|
-
}
|
258
|
-
});
|
259
|
-
function d(c, a) {
|
260
|
-
return a === "role" ? a : "aria-" + a.slice(4).toLowerCase();
|
261
|
-
}
|
262
|
-
return De;
|
263
|
-
}
|
264
|
-
var _e, $r;
|
265
|
-
function qn() {
|
266
|
-
if ($r) return _e;
|
267
|
-
$r = 1;
|
268
|
-
var t = pr(), n = pe(), l = gn(), e = t.boolean, g = t.overloadedBoolean, d = t.booleanish, c = t.number, a = t.spaceSeparated, v = t.commaSeparated;
|
269
|
-
return _e = n({
|
270
|
-
space: "html",
|
271
|
-
attributes: {
|
272
|
-
acceptcharset: "accept-charset",
|
273
|
-
classname: "class",
|
274
|
-
htmlfor: "for",
|
275
|
-
httpequiv: "http-equiv"
|
276
|
-
},
|
277
|
-
transform: l,
|
278
|
-
mustUseProperty: ["checked", "multiple", "muted", "selected"],
|
279
|
-
properties: {
|
280
|
-
// Standard Properties.
|
281
|
-
abbr: null,
|
282
|
-
accept: v,
|
283
|
-
acceptCharset: a,
|
284
|
-
accessKey: a,
|
285
|
-
action: null,
|
286
|
-
allow: null,
|
287
|
-
allowFullScreen: e,
|
288
|
-
allowPaymentRequest: e,
|
289
|
-
allowUserMedia: e,
|
290
|
-
alt: null,
|
291
|
-
as: null,
|
292
|
-
async: e,
|
293
|
-
autoCapitalize: null,
|
294
|
-
autoComplete: a,
|
295
|
-
autoFocus: e,
|
296
|
-
autoPlay: e,
|
297
|
-
capture: e,
|
298
|
-
charSet: null,
|
299
|
-
checked: e,
|
300
|
-
cite: null,
|
301
|
-
className: a,
|
302
|
-
cols: c,
|
303
|
-
colSpan: null,
|
304
|
-
content: null,
|
305
|
-
contentEditable: d,
|
306
|
-
controls: e,
|
307
|
-
controlsList: a,
|
308
|
-
coords: c | v,
|
309
|
-
crossOrigin: null,
|
310
|
-
data: null,
|
311
|
-
dateTime: null,
|
312
|
-
decoding: null,
|
313
|
-
default: e,
|
314
|
-
defer: e,
|
315
|
-
dir: null,
|
316
|
-
dirName: null,
|
317
|
-
disabled: e,
|
318
|
-
download: g,
|
319
|
-
draggable: d,
|
320
|
-
encType: null,
|
321
|
-
enterKeyHint: null,
|
322
|
-
form: null,
|
323
|
-
formAction: null,
|
324
|
-
formEncType: null,
|
325
|
-
formMethod: null,
|
326
|
-
formNoValidate: e,
|
327
|
-
formTarget: null,
|
328
|
-
headers: a,
|
329
|
-
height: c,
|
330
|
-
hidden: e,
|
331
|
-
high: c,
|
332
|
-
href: null,
|
333
|
-
hrefLang: null,
|
334
|
-
htmlFor: a,
|
335
|
-
httpEquiv: a,
|
336
|
-
id: null,
|
337
|
-
imageSizes: null,
|
338
|
-
imageSrcSet: v,
|
339
|
-
inputMode: null,
|
340
|
-
integrity: null,
|
341
|
-
is: null,
|
342
|
-
isMap: e,
|
343
|
-
itemId: null,
|
344
|
-
itemProp: a,
|
345
|
-
itemRef: a,
|
346
|
-
itemScope: e,
|
347
|
-
itemType: a,
|
348
|
-
kind: null,
|
349
|
-
label: null,
|
350
|
-
lang: null,
|
351
|
-
language: null,
|
352
|
-
list: null,
|
353
|
-
loading: null,
|
354
|
-
loop: e,
|
355
|
-
low: c,
|
356
|
-
manifest: null,
|
357
|
-
max: null,
|
358
|
-
maxLength: c,
|
359
|
-
media: null,
|
360
|
-
method: null,
|
361
|
-
min: null,
|
362
|
-
minLength: c,
|
363
|
-
multiple: e,
|
364
|
-
muted: e,
|
365
|
-
name: null,
|
366
|
-
nonce: null,
|
367
|
-
noModule: e,
|
368
|
-
noValidate: e,
|
369
|
-
onAbort: null,
|
370
|
-
onAfterPrint: null,
|
371
|
-
onAuxClick: null,
|
372
|
-
onBeforePrint: null,
|
373
|
-
onBeforeUnload: null,
|
374
|
-
onBlur: null,
|
375
|
-
onCancel: null,
|
376
|
-
onCanPlay: null,
|
377
|
-
onCanPlayThrough: null,
|
378
|
-
onChange: null,
|
379
|
-
onClick: null,
|
380
|
-
onClose: null,
|
381
|
-
onContextMenu: null,
|
382
|
-
onCopy: null,
|
383
|
-
onCueChange: null,
|
384
|
-
onCut: null,
|
385
|
-
onDblClick: null,
|
386
|
-
onDrag: null,
|
387
|
-
onDragEnd: null,
|
388
|
-
onDragEnter: null,
|
389
|
-
onDragExit: null,
|
390
|
-
onDragLeave: null,
|
391
|
-
onDragOver: null,
|
392
|
-
onDragStart: null,
|
393
|
-
onDrop: null,
|
394
|
-
onDurationChange: null,
|
395
|
-
onEmptied: null,
|
396
|
-
onEnded: null,
|
397
|
-
onError: null,
|
398
|
-
onFocus: null,
|
399
|
-
onFormData: null,
|
400
|
-
onHashChange: null,
|
401
|
-
onInput: null,
|
402
|
-
onInvalid: null,
|
403
|
-
onKeyDown: null,
|
404
|
-
onKeyPress: null,
|
405
|
-
onKeyUp: null,
|
406
|
-
onLanguageChange: null,
|
407
|
-
onLoad: null,
|
408
|
-
onLoadedData: null,
|
409
|
-
onLoadedMetadata: null,
|
410
|
-
onLoadEnd: null,
|
411
|
-
onLoadStart: null,
|
412
|
-
onMessage: null,
|
413
|
-
onMessageError: null,
|
414
|
-
onMouseDown: null,
|
415
|
-
onMouseEnter: null,
|
416
|
-
onMouseLeave: null,
|
417
|
-
onMouseMove: null,
|
418
|
-
onMouseOut: null,
|
419
|
-
onMouseOver: null,
|
420
|
-
onMouseUp: null,
|
421
|
-
onOffline: null,
|
422
|
-
onOnline: null,
|
423
|
-
onPageHide: null,
|
424
|
-
onPageShow: null,
|
425
|
-
onPaste: null,
|
426
|
-
onPause: null,
|
427
|
-
onPlay: null,
|
428
|
-
onPlaying: null,
|
429
|
-
onPopState: null,
|
430
|
-
onProgress: null,
|
431
|
-
onRateChange: null,
|
432
|
-
onRejectionHandled: null,
|
433
|
-
onReset: null,
|
434
|
-
onResize: null,
|
435
|
-
onScroll: null,
|
436
|
-
onSecurityPolicyViolation: null,
|
437
|
-
onSeeked: null,
|
438
|
-
onSeeking: null,
|
439
|
-
onSelect: null,
|
440
|
-
onSlotChange: null,
|
441
|
-
onStalled: null,
|
442
|
-
onStorage: null,
|
443
|
-
onSubmit: null,
|
444
|
-
onSuspend: null,
|
445
|
-
onTimeUpdate: null,
|
446
|
-
onToggle: null,
|
447
|
-
onUnhandledRejection: null,
|
448
|
-
onUnload: null,
|
449
|
-
onVolumeChange: null,
|
450
|
-
onWaiting: null,
|
451
|
-
onWheel: null,
|
452
|
-
open: e,
|
453
|
-
optimum: c,
|
454
|
-
pattern: null,
|
455
|
-
ping: a,
|
456
|
-
placeholder: null,
|
457
|
-
playsInline: e,
|
458
|
-
poster: null,
|
459
|
-
preload: null,
|
460
|
-
readOnly: e,
|
461
|
-
referrerPolicy: null,
|
462
|
-
rel: a,
|
463
|
-
required: e,
|
464
|
-
reversed: e,
|
465
|
-
rows: c,
|
466
|
-
rowSpan: c,
|
467
|
-
sandbox: a,
|
468
|
-
scope: null,
|
469
|
-
scoped: e,
|
470
|
-
seamless: e,
|
471
|
-
selected: e,
|
472
|
-
shape: null,
|
473
|
-
size: c,
|
474
|
-
sizes: null,
|
475
|
-
slot: null,
|
476
|
-
span: c,
|
477
|
-
spellCheck: d,
|
478
|
-
src: null,
|
479
|
-
srcDoc: null,
|
480
|
-
srcLang: null,
|
481
|
-
srcSet: v,
|
482
|
-
start: c,
|
483
|
-
step: null,
|
484
|
-
style: null,
|
485
|
-
tabIndex: c,
|
486
|
-
target: null,
|
487
|
-
title: null,
|
488
|
-
translate: null,
|
489
|
-
type: null,
|
490
|
-
typeMustMatch: e,
|
491
|
-
useMap: null,
|
492
|
-
value: d,
|
493
|
-
width: c,
|
494
|
-
wrap: null,
|
495
|
-
// Legacy.
|
496
|
-
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
497
|
-
align: null,
|
498
|
-
// Several. Use CSS `text-align` instead,
|
499
|
-
aLink: null,
|
500
|
-
// `<body>`. Use CSS `a:active {color}` instead
|
501
|
-
archive: a,
|
502
|
-
// `<object>`. List of URIs to archives
|
503
|
-
axis: null,
|
504
|
-
// `<td>` and `<th>`. Use `scope` on `<th>`
|
505
|
-
background: null,
|
506
|
-
// `<body>`. Use CSS `background-image` instead
|
507
|
-
bgColor: null,
|
508
|
-
// `<body>` and table elements. Use CSS `background-color` instead
|
509
|
-
border: c,
|
510
|
-
// `<table>`. Use CSS `border-width` instead,
|
511
|
-
borderColor: null,
|
512
|
-
// `<table>`. Use CSS `border-color` instead,
|
513
|
-
bottomMargin: c,
|
514
|
-
// `<body>`
|
515
|
-
cellPadding: null,
|
516
|
-
// `<table>`
|
517
|
-
cellSpacing: null,
|
518
|
-
// `<table>`
|
519
|
-
char: null,
|
520
|
-
// Several table elements. When `align=char`, sets the character to align on
|
521
|
-
charOff: null,
|
522
|
-
// Several table elements. When `char`, offsets the alignment
|
523
|
-
classId: null,
|
524
|
-
// `<object>`
|
525
|
-
clear: null,
|
526
|
-
// `<br>`. Use CSS `clear` instead
|
527
|
-
code: null,
|
528
|
-
// `<object>`
|
529
|
-
codeBase: null,
|
530
|
-
// `<object>`
|
531
|
-
codeType: null,
|
532
|
-
// `<object>`
|
533
|
-
color: null,
|
534
|
-
// `<font>` and `<hr>`. Use CSS instead
|
535
|
-
compact: e,
|
536
|
-
// Lists. Use CSS to reduce space between items instead
|
537
|
-
declare: e,
|
538
|
-
// `<object>`
|
539
|
-
event: null,
|
540
|
-
// `<script>`
|
541
|
-
face: null,
|
542
|
-
// `<font>`. Use CSS instead
|
543
|
-
frame: null,
|
544
|
-
// `<table>`
|
545
|
-
frameBorder: null,
|
546
|
-
// `<iframe>`. Use CSS `border` instead
|
547
|
-
hSpace: c,
|
548
|
-
// `<img>` and `<object>`
|
549
|
-
leftMargin: c,
|
550
|
-
// `<body>`
|
551
|
-
link: null,
|
552
|
-
// `<body>`. Use CSS `a:link {color: *}` instead
|
553
|
-
longDesc: null,
|
554
|
-
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
555
|
-
lowSrc: null,
|
556
|
-
// `<img>`. Use a `<picture>`
|
557
|
-
marginHeight: c,
|
558
|
-
// `<body>`
|
559
|
-
marginWidth: c,
|
560
|
-
// `<body>`
|
561
|
-
noResize: e,
|
562
|
-
// `<frame>`
|
563
|
-
noHref: e,
|
564
|
-
// `<area>`. Use no href instead of an explicit `nohref`
|
565
|
-
noShade: e,
|
566
|
-
// `<hr>`. Use background-color and height instead of borders
|
567
|
-
noWrap: e,
|
568
|
-
// `<td>` and `<th>`
|
569
|
-
object: null,
|
570
|
-
// `<applet>`
|
571
|
-
profile: null,
|
572
|
-
// `<head>`
|
573
|
-
prompt: null,
|
574
|
-
// `<isindex>`
|
575
|
-
rev: null,
|
576
|
-
// `<link>`
|
577
|
-
rightMargin: c,
|
578
|
-
// `<body>`
|
579
|
-
rules: null,
|
580
|
-
// `<table>`
|
581
|
-
scheme: null,
|
582
|
-
// `<meta>`
|
583
|
-
scrolling: d,
|
584
|
-
// `<frame>`. Use overflow in the child context
|
585
|
-
standby: null,
|
586
|
-
// `<object>`
|
587
|
-
summary: null,
|
588
|
-
// `<table>`
|
589
|
-
text: null,
|
590
|
-
// `<body>`. Use CSS `color` instead
|
591
|
-
topMargin: c,
|
592
|
-
// `<body>`
|
593
|
-
valueType: null,
|
594
|
-
// `<param>`
|
595
|
-
version: null,
|
596
|
-
// `<html>`. Use a doctype.
|
597
|
-
vAlign: null,
|
598
|
-
// Several. Use CSS `vertical-align` instead
|
599
|
-
vLink: null,
|
600
|
-
// `<body>`. Use CSS `a:visited {color}` instead
|
601
|
-
vSpace: c,
|
602
|
-
// `<img>` and `<object>`
|
603
|
-
// Non-standard Properties.
|
604
|
-
allowTransparency: null,
|
605
|
-
autoCorrect: null,
|
606
|
-
autoSave: null,
|
607
|
-
disablePictureInPicture: e,
|
608
|
-
disableRemotePlayback: e,
|
609
|
-
prefix: null,
|
610
|
-
property: null,
|
611
|
-
results: c,
|
612
|
-
security: null,
|
613
|
-
unselectable: null
|
614
|
-
}
|
615
|
-
}), _e;
|
616
|
-
}
|
617
|
-
var Ue, Or;
|
618
|
-
function En() {
|
619
|
-
if (Or) return Ue;
|
620
|
-
Or = 1;
|
621
|
-
var t = wn(), n = kn(), l = Sn(), e = Cn(), g = Fn(), d = qn();
|
622
|
-
return Ue = t([l, n, e, g, d]), Ue;
|
623
|
-
}
|
624
|
-
var Pe, Lr;
|
625
|
-
function Rn() {
|
626
|
-
if (Lr) return Pe;
|
627
|
-
Lr = 1;
|
628
|
-
var t = dr(), n = pn(), l = dn(), e = "data";
|
629
|
-
Pe = a;
|
630
|
-
var g = /^data[-\w.:]+$/i, d = /-[a-z]/g, c = /[A-Z]/g;
|
631
|
-
function a(x, A) {
|
632
|
-
var y = t(A), S = A, w = l;
|
633
|
-
return y in x.normal ? x.property[x.normal[y]] : (y.length > 4 && y.slice(0, 4) === e && g.test(A) && (A.charAt(4) === "-" ? S = v(A) : A = m(A), w = n), new w(S, A));
|
634
|
-
}
|
635
|
-
function v(x) {
|
636
|
-
var A = x.slice(5).replace(d, h);
|
637
|
-
return e + A.charAt(0).toUpperCase() + A.slice(1);
|
638
|
-
}
|
639
|
-
function m(x) {
|
640
|
-
var A = x.slice(4);
|
641
|
-
return d.test(A) ? x : (A = A.replace(c, k), A.charAt(0) !== "-" && (A = "-" + A), e + A);
|
642
|
-
}
|
643
|
-
function k(x) {
|
644
|
-
return "-" + x.toLowerCase();
|
645
|
-
}
|
646
|
-
function h(x) {
|
647
|
-
return x.charAt(1).toUpperCase();
|
648
|
-
}
|
649
|
-
return Pe;
|
650
|
-
}
|
651
|
-
var ze, jr;
|
652
|
-
function Tn() {
|
653
|
-
if (jr) return ze;
|
654
|
-
jr = 1, ze = n;
|
655
|
-
var t = /[#.]/g;
|
656
|
-
function n(l, e) {
|
657
|
-
for (var g = l || "", d = e || "div", c = {}, a = 0, v, m, k; a < g.length; )
|
658
|
-
t.lastIndex = a, k = t.exec(g), v = g.slice(a, k ? k.index : g.length), v && (m ? m === "#" ? c.id = v : c.className ? c.className.push(v) : c.className = [v] : d = v, a += v.length), k && (m = k[0], a++);
|
659
|
-
return { type: "element", tagName: d, properties: c, children: [] };
|
660
|
-
}
|
661
|
-
return ze;
|
662
|
-
}
|
663
|
-
var me = {}, Dr;
|
664
|
-
function Nn() {
|
665
|
-
if (Dr) return me;
|
666
|
-
Dr = 1, me.parse = e, me.stringify = g;
|
667
|
-
var t = "", n = " ", l = /[ \t\n\r\f]+/g;
|
668
|
-
function e(d) {
|
669
|
-
var c = String(d || t).trim();
|
670
|
-
return c === t ? [] : c.split(l);
|
671
|
-
}
|
672
|
-
function g(d) {
|
673
|
-
return d.join(n).trim();
|
674
|
-
}
|
675
|
-
return me;
|
676
|
-
}
|
677
|
-
var ye = {}, _r;
|
678
|
-
function In() {
|
679
|
-
if (_r) return ye;
|
680
|
-
_r = 1, ye.parse = e, ye.stringify = g;
|
681
|
-
var t = ",", n = " ", l = "";
|
682
|
-
function e(d) {
|
683
|
-
for (var c = [], a = String(d || l), v = a.indexOf(t), m = 0, k = !1, h; !k; )
|
684
|
-
v === -1 && (v = a.length, k = !0), h = a.slice(m, v).trim(), (h || !k) && c.push(h), m = v + 1, v = a.indexOf(t, m);
|
685
|
-
return c;
|
686
|
-
}
|
687
|
-
function g(d, c) {
|
688
|
-
var a = c || {}, v = a.padLeft === !1 ? l : n, m = a.padRight ? n : l;
|
689
|
-
return d[d.length - 1] === l && (d = d.concat(l)), d.join(m + t + v).trim();
|
690
|
-
}
|
691
|
-
return ye;
|
692
|
-
}
|
693
|
-
var He, Ur;
|
694
|
-
function Mn() {
|
695
|
-
if (Ur) return He;
|
696
|
-
Ur = 1;
|
697
|
-
var t = Rn(), n = dr(), l = Tn(), e = Nn().parse, g = In().parse;
|
698
|
-
He = c;
|
699
|
-
var d = {}.hasOwnProperty;
|
700
|
-
function c(y, S, w) {
|
701
|
-
var C = w ? A(w) : null;
|
702
|
-
return u;
|
703
|
-
function u(f, o) {
|
704
|
-
var r = l(f, S), s = Array.prototype.slice.call(arguments, 2), b = r.tagName.toLowerCase(), p;
|
705
|
-
if (r.tagName = C && d.call(C, b) ? C[b] : b, o && a(o, r) && (s.unshift(o), o = null), o)
|
706
|
-
for (p in o)
|
707
|
-
i(r.properties, p, o[p]);
|
708
|
-
return m(r.children, s), r.tagName === "template" && (r.content = { type: "root", children: r.children }, r.children = []), r;
|
709
|
-
}
|
710
|
-
function i(f, o, r) {
|
711
|
-
var s, b, p;
|
712
|
-
r == null || r !== r || (s = t(y, o), b = s.property, p = r, typeof p == "string" && (s.spaceSeparated ? p = e(p) : s.commaSeparated ? p = g(p) : s.commaOrSpaceSeparated && (p = e(g(p).join(" ")))), b === "style" && typeof r != "string" && (p = x(p)), b === "className" && f.className && (p = f.className.concat(p)), f[b] = k(s, b, p));
|
713
|
-
}
|
714
|
-
}
|
715
|
-
function a(y, S) {
|
716
|
-
return typeof y == "string" || "length" in y || v(S.tagName, y);
|
717
|
-
}
|
718
|
-
function v(y, S) {
|
719
|
-
var w = S.type;
|
720
|
-
return y === "input" || !w || typeof w != "string" ? !1 : typeof S.children == "object" && "length" in S.children ? !0 : (w = w.toLowerCase(), y === "button" ? w !== "menu" && w !== "submit" && w !== "reset" && w !== "button" : "value" in S);
|
721
|
-
}
|
722
|
-
function m(y, S) {
|
723
|
-
var w, C;
|
724
|
-
if (typeof S == "string" || typeof S == "number") {
|
725
|
-
y.push({ type: "text", value: String(S) });
|
726
|
-
return;
|
727
|
-
}
|
728
|
-
if (typeof S == "object" && "length" in S) {
|
729
|
-
for (w = -1, C = S.length; ++w < C; )
|
730
|
-
m(y, S[w]);
|
731
|
-
return;
|
732
|
-
}
|
733
|
-
if (typeof S != "object" || !("type" in S))
|
734
|
-
throw new Error("Expected node, nodes, or string, got `" + S + "`");
|
735
|
-
y.push(S);
|
736
|
-
}
|
737
|
-
function k(y, S, w) {
|
738
|
-
var C, u, i;
|
739
|
-
if (typeof w != "object" || !("length" in w))
|
740
|
-
return h(y, S, w);
|
741
|
-
for (u = w.length, C = -1, i = []; ++C < u; )
|
742
|
-
i[C] = h(y, S, w[C]);
|
743
|
-
return i;
|
744
|
-
}
|
745
|
-
function h(y, S, w) {
|
746
|
-
var C = w;
|
747
|
-
return y.number || y.positiveNumber ? !isNaN(C) && C !== "" && (C = Number(C)) : (y.boolean || y.overloadedBoolean) && typeof C == "string" && (C === "" || n(w) === n(S)) && (C = !0), C;
|
748
|
-
}
|
749
|
-
function x(y) {
|
750
|
-
var S = [], w;
|
751
|
-
for (w in y)
|
752
|
-
S.push([w, y[w]].join(": "));
|
753
|
-
return S.join("; ");
|
754
|
-
}
|
755
|
-
function A(y) {
|
756
|
-
for (var S = y.length, w = -1, C = {}, u; ++w < S; )
|
757
|
-
u = y[w], C[u.toLowerCase()] = u;
|
758
|
-
return C;
|
759
|
-
}
|
760
|
-
return He;
|
761
|
-
}
|
762
|
-
var Be, Pr;
|
763
|
-
function $n() {
|
764
|
-
if (Pr) return Be;
|
765
|
-
Pr = 1;
|
766
|
-
var t = En(), n = Mn(), l = n(t, "div");
|
767
|
-
return l.displayName = "html", Be = l, Be;
|
768
|
-
}
|
769
|
-
var We, zr;
|
770
|
-
function On() {
|
771
|
-
return zr || (zr = 1, We = $n()), We;
|
772
|
-
}
|
773
|
-
const Ln = "Æ", jn = "&", Dn = "Á", _n = "Â", Un = "À", Pn = "Å", zn = "Ã", Hn = "Ä", Bn = "©", Wn = "Ç", Xn = "Ð", Vn = "É", Zn = "Ê", Gn = "È", Kn = "Ë", Jn = ">", Yn = "Í", Qn = "Î", ea = "Ì", ra = "Ï", na = "<", aa = "Ñ", ta = "Ó", ia = "Ô", la = "Ò", ua = "Ø", oa = "Õ", sa = "Ö", ca = '"', fa = "®", da = "Þ", pa = "Ú", ga = "Û", va = "Ù", ha = "Ü", ma = "Ý", ya = "á", ba = "â", xa = "´", wa = "æ", ka = "à", Sa = "&", Aa = "å", Ca = "ã", Fa = "ä", qa = "¦", Ea = "ç", Ra = "¸", Ta = "¢", Na = "©", Ia = "¤", Ma = "°", $a = "÷", Oa = "é", La = "ê", ja = "è", Da = "ð", _a = "ë", Ua = "½", Pa = "¼", za = "¾", Ha = ">", Ba = "í", Wa = "î", Xa = "¡", Va = "ì", Za = "¿", Ga = "ï", Ka = "«", Ja = "<", Ya = "¯", Qa = "µ", et = "·", rt = " ", nt = "¬", at = "ñ", tt = "ó", it = "ô", lt = "ò", ut = "ª", ot = "º", st = "ø", ct = "õ", ft = "ö", dt = "¶", pt = "±", gt = "£", vt = '"', ht = "»", mt = "®", yt = "§", bt = "", xt = "¹", wt = "²", kt = "³", St = "ß", At = "þ", Ct = "×", Ft = "ú", qt = "û", Et = "ù", Rt = "¨", Tt = "ü", Nt = "ý", It = "¥", Mt = "ÿ", $t = {
|
774
|
-
AElig: Ln,
|
775
|
-
AMP: jn,
|
776
|
-
Aacute: Dn,
|
777
|
-
Acirc: _n,
|
778
|
-
Agrave: Un,
|
779
|
-
Aring: Pn,
|
780
|
-
Atilde: zn,
|
781
|
-
Auml: Hn,
|
782
|
-
COPY: Bn,
|
783
|
-
Ccedil: Wn,
|
784
|
-
ETH: Xn,
|
785
|
-
Eacute: Vn,
|
786
|
-
Ecirc: Zn,
|
787
|
-
Egrave: Gn,
|
788
|
-
Euml: Kn,
|
789
|
-
GT: Jn,
|
790
|
-
Iacute: Yn,
|
791
|
-
Icirc: Qn,
|
792
|
-
Igrave: ea,
|
793
|
-
Iuml: ra,
|
794
|
-
LT: na,
|
795
|
-
Ntilde: aa,
|
796
|
-
Oacute: ta,
|
797
|
-
Ocirc: ia,
|
798
|
-
Ograve: la,
|
799
|
-
Oslash: ua,
|
800
|
-
Otilde: oa,
|
801
|
-
Ouml: sa,
|
802
|
-
QUOT: ca,
|
803
|
-
REG: fa,
|
804
|
-
THORN: da,
|
805
|
-
Uacute: pa,
|
806
|
-
Ucirc: ga,
|
807
|
-
Ugrave: va,
|
808
|
-
Uuml: ha,
|
809
|
-
Yacute: ma,
|
810
|
-
aacute: ya,
|
811
|
-
acirc: ba,
|
812
|
-
acute: xa,
|
813
|
-
aelig: wa,
|
814
|
-
agrave: ka,
|
815
|
-
amp: Sa,
|
816
|
-
aring: Aa,
|
817
|
-
atilde: Ca,
|
818
|
-
auml: Fa,
|
819
|
-
brvbar: qa,
|
820
|
-
ccedil: Ea,
|
821
|
-
cedil: Ra,
|
822
|
-
cent: Ta,
|
823
|
-
copy: Na,
|
824
|
-
curren: Ia,
|
825
|
-
deg: Ma,
|
826
|
-
divide: $a,
|
827
|
-
eacute: Oa,
|
828
|
-
ecirc: La,
|
829
|
-
egrave: ja,
|
830
|
-
eth: Da,
|
831
|
-
euml: _a,
|
832
|
-
frac12: Ua,
|
833
|
-
frac14: Pa,
|
834
|
-
frac34: za,
|
835
|
-
gt: Ha,
|
836
|
-
iacute: Ba,
|
837
|
-
icirc: Wa,
|
838
|
-
iexcl: Xa,
|
839
|
-
igrave: Va,
|
840
|
-
iquest: Za,
|
841
|
-
iuml: Ga,
|
842
|
-
laquo: Ka,
|
843
|
-
lt: Ja,
|
844
|
-
macr: Ya,
|
845
|
-
micro: Qa,
|
846
|
-
middot: et,
|
847
|
-
nbsp: rt,
|
848
|
-
not: nt,
|
849
|
-
ntilde: at,
|
850
|
-
oacute: tt,
|
851
|
-
ocirc: it,
|
852
|
-
ograve: lt,
|
853
|
-
ordf: ut,
|
854
|
-
ordm: ot,
|
855
|
-
oslash: st,
|
856
|
-
otilde: ct,
|
857
|
-
ouml: ft,
|
858
|
-
para: dt,
|
859
|
-
plusmn: pt,
|
860
|
-
pound: gt,
|
861
|
-
quot: vt,
|
862
|
-
raquo: ht,
|
863
|
-
reg: mt,
|
864
|
-
sect: yt,
|
865
|
-
shy: bt,
|
866
|
-
sup1: xt,
|
867
|
-
sup2: wt,
|
868
|
-
sup3: kt,
|
869
|
-
szlig: St,
|
870
|
-
thorn: At,
|
871
|
-
times: Ct,
|
872
|
-
uacute: Ft,
|
873
|
-
ucirc: qt,
|
874
|
-
ugrave: Et,
|
875
|
-
uml: Rt,
|
876
|
-
uuml: Tt,
|
877
|
-
yacute: Nt,
|
878
|
-
yen: It,
|
879
|
-
yuml: Mt
|
880
|
-
}, Ot = {
|
881
|
-
0: "�",
|
882
|
-
128: "€",
|
883
|
-
130: "‚",
|
884
|
-
131: "ƒ",
|
885
|
-
132: "„",
|
886
|
-
133: "…",
|
887
|
-
134: "†",
|
888
|
-
135: "‡",
|
889
|
-
136: "ˆ",
|
890
|
-
137: "‰",
|
891
|
-
138: "Š",
|
892
|
-
139: "‹",
|
893
|
-
140: "Œ",
|
894
|
-
142: "Ž",
|
895
|
-
145: "‘",
|
896
|
-
146: "’",
|
897
|
-
147: "“",
|
898
|
-
148: "”",
|
899
|
-
149: "•",
|
900
|
-
150: "–",
|
901
|
-
151: "—",
|
902
|
-
152: "˜",
|
903
|
-
153: "™",
|
904
|
-
154: "š",
|
905
|
-
155: "›",
|
906
|
-
156: "œ",
|
907
|
-
158: "ž",
|
908
|
-
159: "Ÿ"
|
909
|
-
};
|
910
|
-
var Xe, Hr;
|
911
|
-
function vn() {
|
912
|
-
if (Hr) return Xe;
|
913
|
-
Hr = 1, Xe = t;
|
914
|
-
function t(n) {
|
915
|
-
var l = typeof n == "string" ? n.charCodeAt(0) : n;
|
916
|
-
return l >= 48 && l <= 57;
|
917
|
-
}
|
918
|
-
return Xe;
|
919
|
-
}
|
920
|
-
var Ve, Br;
|
921
|
-
function Lt() {
|
922
|
-
if (Br) return Ve;
|
923
|
-
Br = 1, Ve = t;
|
924
|
-
function t(n) {
|
925
|
-
var l = typeof n == "string" ? n.charCodeAt(0) : n;
|
926
|
-
return l >= 97 && l <= 102 || l >= 65 && l <= 70 || l >= 48 && l <= 57;
|
927
|
-
}
|
928
|
-
return Ve;
|
929
|
-
}
|
930
|
-
var Ze, Wr;
|
931
|
-
function jt() {
|
932
|
-
if (Wr) return Ze;
|
933
|
-
Wr = 1, Ze = t;
|
934
|
-
function t(n) {
|
935
|
-
var l = typeof n == "string" ? n.charCodeAt(0) : n;
|
936
|
-
return l >= 97 && l <= 122 || l >= 65 && l <= 90;
|
937
|
-
}
|
938
|
-
return Ze;
|
939
|
-
}
|
940
|
-
var Ge, Xr;
|
941
|
-
function Dt() {
|
942
|
-
if (Xr) return Ge;
|
943
|
-
Xr = 1;
|
944
|
-
var t = jt(), n = vn();
|
945
|
-
Ge = l;
|
946
|
-
function l(e) {
|
947
|
-
return t(e) || n(e);
|
948
|
-
}
|
949
|
-
return Ge;
|
950
|
-
}
|
951
|
-
var Ke, Vr;
|
952
|
-
function _t() {
|
953
|
-
if (Vr) return Ke;
|
954
|
-
Vr = 1;
|
955
|
-
var t, n = 59;
|
956
|
-
Ke = l;
|
957
|
-
function l(e) {
|
958
|
-
var g = "&" + e + ";", d;
|
959
|
-
return t = t || document.createElement("i"), t.innerHTML = g, d = t.textContent, d.charCodeAt(d.length - 1) === n && e !== "semi" || d === g ? !1 : d;
|
960
|
-
}
|
961
|
-
return Ke;
|
962
|
-
}
|
963
|
-
var Je, Zr;
|
964
|
-
function Ut() {
|
965
|
-
if (Zr) return Je;
|
966
|
-
Zr = 1;
|
967
|
-
var t = $t, n = Ot, l = vn(), e = Lt(), g = Dt(), d = _t();
|
968
|
-
Je = D;
|
969
|
-
var c = {}.hasOwnProperty, a = String.fromCharCode, v = Function.prototype, m = {
|
970
|
-
warning: null,
|
971
|
-
reference: null,
|
972
|
-
text: null,
|
973
|
-
warningContext: null,
|
974
|
-
referenceContext: null,
|
975
|
-
textContext: null,
|
976
|
-
position: {},
|
977
|
-
additional: null,
|
978
|
-
attribute: !1,
|
979
|
-
nonTerminated: !0
|
980
|
-
}, k = 9, h = 10, x = 12, A = 32, y = 38, S = 59, w = 60, C = 61, u = 35, i = 88, f = 120, o = 65533, r = "named", s = "hexadecimal", b = "decimal", p = {};
|
981
|
-
p[s] = 16, p[b] = 10;
|
982
|
-
var F = {};
|
983
|
-
F[r] = g, F[b] = l, F[s] = e;
|
984
|
-
var q = 1, O = 2, H = 3, ie = 4, ge = 5, le = 6, ue = 7, R = {};
|
985
|
-
R[q] = "Named character references must be terminated by a semicolon", R[O] = "Numeric character references must be terminated by a semicolon", R[H] = "Named character references cannot be empty", R[ie] = "Numeric character references cannot be empty", R[ge] = "Named character references must be known", R[le] = "Numeric character references cannot be disallowed", R[ue] = "Numeric character references cannot be outside the permissible Unicode range";
|
986
|
-
function D(E, T) {
|
987
|
-
var N = {}, U, _;
|
988
|
-
T || (T = {});
|
989
|
-
for (_ in m)
|
990
|
-
U = T[_], N[_] = U ?? m[_];
|
991
|
-
return (N.position.indent || N.position.start) && (N.indent = N.position.indent || [], N.position = N.position.start), X(E, N);
|
992
|
-
}
|
993
|
-
function X(E, T) {
|
994
|
-
var N = T.additional, U = T.nonTerminated, _ = T.text, ne = T.reference, oe = T.warning, se = T.textContext, ae = T.referenceContext, xe = T.warningContext, G = T.position, mn = T.indent || [], we = E.length, V = 0, gr = -1, K = G.column || 1, vr = G.line || 1, J = "", ke = [], te, Se, Y, j, Z, M, I, P, ve, Ae, Q, ce, ee, B, hr, fe, he, z, $;
|
995
|
-
for (typeof N == "string" && (N = N.charCodeAt(0)), fe = de(), P = oe ? yn : v, V--, we++; ++V < we; )
|
996
|
-
if (Z === h && (K = mn[gr] || 1), Z = E.charCodeAt(V), Z === y) {
|
997
|
-
if (I = E.charCodeAt(V + 1), I === k || I === h || I === x || I === A || I === y || I === w || I !== I || N && I === N) {
|
998
|
-
J += a(Z), K++;
|
999
|
-
continue;
|
1000
|
-
}
|
1001
|
-
for (ee = V + 1, ce = ee, $ = ee, I === u ? ($ = ++ce, I = E.charCodeAt($), I === i || I === f ? (B = s, $ = ++ce) : B = b) : B = r, te = "", Q = "", j = "", hr = F[B], $--; ++$ < we && (I = E.charCodeAt($), !!hr(I)); )
|
1002
|
-
j += a(I), B === r && c.call(t, j) && (te = j, Q = t[j]);
|
1003
|
-
Y = E.charCodeAt($) === S, Y && ($++, Se = B === r ? d(j) : !1, Se && (te = j, Q = Se)), z = 1 + $ - ee, !Y && !U || (j ? B === r ? (Y && !Q ? P(ge, 1) : (te !== j && ($ = ce + te.length, z = 1 + $ - ce, Y = !1), Y || (ve = te ? q : H, T.attribute ? (I = E.charCodeAt($), I === C ? (P(ve, z), Q = null) : g(I) ? Q = null : P(ve, z)) : P(ve, z))), M = Q) : (Y || P(O, z), M = parseInt(j, p[B]), re(M) ? (P(ue, z), M = a(o)) : M in n ? (P(le, z), M = n[M]) : (Ae = "", L(M) && P(le, z), M > 65535 && (M -= 65536, Ae += a(M >>> 10 | 55296), M = 56320 | M & 1023), M = Ae + a(M))) : B !== r && P(ie, z)), M ? (mr(), fe = de(), V = $ - 1, K += $ - ee + 1, ke.push(M), he = de(), he.offset++, ne && ne.call(
|
1004
|
-
ae,
|
1005
|
-
M,
|
1006
|
-
{ start: fe, end: he },
|
1007
|
-
E.slice(ee - 1, $)
|
1008
|
-
), fe = he) : (j = E.slice(ee - 1, $), J += j, K += j.length, V = $ - 1);
|
1009
|
-
} else
|
1010
|
-
Z === 10 && (vr++, gr++, K = 0), Z === Z ? (J += a(Z), K++) : mr();
|
1011
|
-
return ke.join("");
|
1012
|
-
function de() {
|
1013
|
-
return {
|
1014
|
-
line: vr,
|
1015
|
-
column: K,
|
1016
|
-
offset: V + (G.offset || 0)
|
1017
|
-
};
|
1018
|
-
}
|
1019
|
-
function yn(yr, br) {
|
1020
|
-
var Ce = de();
|
1021
|
-
Ce.column += br, Ce.offset += br, oe.call(xe, R[yr], Ce, yr);
|
1022
|
-
}
|
1023
|
-
function mr() {
|
1024
|
-
J && (ke.push(J), _ && _.call(se, J, { start: fe, end: de() }), J = "");
|
1025
|
-
}
|
1026
|
-
}
|
1027
|
-
function re(E) {
|
1028
|
-
return E >= 55296 && E <= 57343 || E > 1114111;
|
1029
|
-
}
|
1030
|
-
function L(E) {
|
1031
|
-
return E >= 1 && E <= 8 || E === 11 || E >= 13 && E <= 31 || E >= 127 && E <= 159 || E >= 64976 && E <= 65007 || (E & 65535) === 65535 || (E & 65535) === 65534;
|
1032
|
-
}
|
1033
|
-
return Je;
|
1034
|
-
}
|
1035
|
-
var Ye = { exports: {} }, Gr;
|
1036
|
-
function Pt() {
|
1037
|
-
return Gr || (Gr = 1, function(t) {
|
1038
|
-
var n = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
1039
|
-
/**
|
1040
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
1041
|
-
*
|
1042
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
1043
|
-
* @author Lea Verou <https://lea.verou.me>
|
1044
|
-
* @namespace
|
1045
|
-
* @public
|
1046
|
-
*/
|
1047
|
-
var l = function(e) {
|
1048
|
-
var g = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, d = 0, c = {}, a = {
|
1049
|
-
/**
|
1050
|
-
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
1051
|
-
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
1052
|
-
* additional languages or plugins yourself.
|
1053
|
-
*
|
1054
|
-
* By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
|
1055
|
-
*
|
1056
|
-
* You obviously have to change this value before the automatic highlighting started. To do this, you can add an
|
1057
|
-
* empty Prism object into the global scope before loading the Prism script like this:
|
1058
|
-
*
|
1059
|
-
* ```js
|
1060
|
-
* window.Prism = window.Prism || {};
|
1061
|
-
* Prism.manual = true;
|
1062
|
-
* // add a new <script> to load Prism's script
|
1063
|
-
* ```
|
1064
|
-
*
|
1065
|
-
* @default false
|
1066
|
-
* @type {boolean}
|
1067
|
-
* @memberof Prism
|
1068
|
-
* @public
|
1069
|
-
*/
|
1070
|
-
manual: e.Prism && e.Prism.manual,
|
1071
|
-
/**
|
1072
|
-
* By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
|
1073
|
-
* `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
|
1074
|
-
* own worker, you don't want it to do this.
|
1075
|
-
*
|
1076
|
-
* By setting this value to `true`, Prism will not add its own listeners to the worker.
|
1077
|
-
*
|
1078
|
-
* You obviously have to change this value before Prism executes. To do this, you can add an
|
1079
|
-
* empty Prism object into the global scope before loading the Prism script like this:
|
1080
|
-
*
|
1081
|
-
* ```js
|
1082
|
-
* window.Prism = window.Prism || {};
|
1083
|
-
* Prism.disableWorkerMessageHandler = true;
|
1084
|
-
* // Load Prism's script
|
1085
|
-
* ```
|
1086
|
-
*
|
1087
|
-
* @default false
|
1088
|
-
* @type {boolean}
|
1089
|
-
* @memberof Prism
|
1090
|
-
* @public
|
1091
|
-
*/
|
1092
|
-
disableWorkerMessageHandler: e.Prism && e.Prism.disableWorkerMessageHandler,
|
1093
|
-
/**
|
1094
|
-
* A namespace for utility methods.
|
1095
|
-
*
|
1096
|
-
* All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
|
1097
|
-
* change or disappear at any time.
|
1098
|
-
*
|
1099
|
-
* @namespace
|
1100
|
-
* @memberof Prism
|
1101
|
-
*/
|
1102
|
-
util: {
|
1103
|
-
encode: function u(i) {
|
1104
|
-
return i instanceof v ? new v(i.type, u(i.content), i.alias) : Array.isArray(i) ? i.map(u) : i.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
1105
|
-
},
|
1106
|
-
/**
|
1107
|
-
* Returns the name of the type of the given value.
|
1108
|
-
*
|
1109
|
-
* @param {any} o
|
1110
|
-
* @returns {string}
|
1111
|
-
* @example
|
1112
|
-
* type(null) === 'Null'
|
1113
|
-
* type(undefined) === 'Undefined'
|
1114
|
-
* type(123) === 'Number'
|
1115
|
-
* type('foo') === 'String'
|
1116
|
-
* type(true) === 'Boolean'
|
1117
|
-
* type([1, 2]) === 'Array'
|
1118
|
-
* type({}) === 'Object'
|
1119
|
-
* type(String) === 'Function'
|
1120
|
-
* type(/abc+/) === 'RegExp'
|
1121
|
-
*/
|
1122
|
-
type: function(u) {
|
1123
|
-
return Object.prototype.toString.call(u).slice(8, -1);
|
1124
|
-
},
|
1125
|
-
/**
|
1126
|
-
* Returns a unique number for the given object. Later calls will still return the same number.
|
1127
|
-
*
|
1128
|
-
* @param {Object} obj
|
1129
|
-
* @returns {number}
|
1130
|
-
*/
|
1131
|
-
objId: function(u) {
|
1132
|
-
return u.__id || Object.defineProperty(u, "__id", { value: ++d }), u.__id;
|
1133
|
-
},
|
1134
|
-
/**
|
1135
|
-
* Creates a deep clone of the given object.
|
1136
|
-
*
|
1137
|
-
* The main intended use of this function is to clone language definitions.
|
1138
|
-
*
|
1139
|
-
* @param {T} o
|
1140
|
-
* @param {Record<number, any>} [visited]
|
1141
|
-
* @returns {T}
|
1142
|
-
* @template T
|
1143
|
-
*/
|
1144
|
-
clone: function u(i, f) {
|
1145
|
-
f = f || {};
|
1146
|
-
var o, r;
|
1147
|
-
switch (a.util.type(i)) {
|
1148
|
-
case "Object":
|
1149
|
-
if (r = a.util.objId(i), f[r])
|
1150
|
-
return f[r];
|
1151
|
-
o = /** @type {Record<string, any>} */
|
1152
|
-
{}, f[r] = o;
|
1153
|
-
for (var s in i)
|
1154
|
-
i.hasOwnProperty(s) && (o[s] = u(i[s], f));
|
1155
|
-
return (
|
1156
|
-
/** @type {any} */
|
1157
|
-
o
|
1158
|
-
);
|
1159
|
-
case "Array":
|
1160
|
-
return r = a.util.objId(i), f[r] ? f[r] : (o = [], f[r] = o, /** @type {Array} */
|
1161
|
-
/** @type {any} */
|
1162
|
-
i.forEach(function(b, p) {
|
1163
|
-
o[p] = u(b, f);
|
1164
|
-
}), /** @type {any} */
|
1165
|
-
o);
|
1166
|
-
default:
|
1167
|
-
return i;
|
1168
|
-
}
|
1169
|
-
},
|
1170
|
-
/**
|
1171
|
-
* Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
|
1172
|
-
*
|
1173
|
-
* If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
|
1174
|
-
*
|
1175
|
-
* @param {Element} element
|
1176
|
-
* @returns {string}
|
1177
|
-
*/
|
1178
|
-
getLanguage: function(u) {
|
1179
|
-
for (; u; ) {
|
1180
|
-
var i = g.exec(u.className);
|
1181
|
-
if (i)
|
1182
|
-
return i[1].toLowerCase();
|
1183
|
-
u = u.parentElement;
|
1184
|
-
}
|
1185
|
-
return "none";
|
1186
|
-
},
|
1187
|
-
/**
|
1188
|
-
* Sets the Prism `language-xxxx` class of the given element.
|
1189
|
-
*
|
1190
|
-
* @param {Element} element
|
1191
|
-
* @param {string} language
|
1192
|
-
* @returns {void}
|
1193
|
-
*/
|
1194
|
-
setLanguage: function(u, i) {
|
1195
|
-
u.className = u.className.replace(RegExp(g, "gi"), ""), u.classList.add("language-" + i);
|
1196
|
-
},
|
1197
|
-
/**
|
1198
|
-
* Returns the script element that is currently executing.
|
1199
|
-
*
|
1200
|
-
* This does __not__ work for line script element.
|
1201
|
-
*
|
1202
|
-
* @returns {HTMLScriptElement | null}
|
1203
|
-
*/
|
1204
|
-
currentScript: function() {
|
1205
|
-
if (typeof document > "u")
|
1206
|
-
return null;
|
1207
|
-
if ("currentScript" in document)
|
1208
|
-
return (
|
1209
|
-
/** @type {any} */
|
1210
|
-
document.currentScript
|
1211
|
-
);
|
1212
|
-
try {
|
1213
|
-
throw new Error();
|
1214
|
-
} catch (o) {
|
1215
|
-
var u = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(o.stack) || [])[1];
|
1216
|
-
if (u) {
|
1217
|
-
var i = document.getElementsByTagName("script");
|
1218
|
-
for (var f in i)
|
1219
|
-
if (i[f].src == u)
|
1220
|
-
return i[f];
|
1221
|
-
}
|
1222
|
-
return null;
|
1223
|
-
}
|
1224
|
-
},
|
1225
|
-
/**
|
1226
|
-
* Returns whether a given class is active for `element`.
|
1227
|
-
*
|
1228
|
-
* The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
|
1229
|
-
* if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
|
1230
|
-
* given class is just the given class with a `no-` prefix.
|
1231
|
-
*
|
1232
|
-
* Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
|
1233
|
-
* closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
|
1234
|
-
* ancestors have the given class or the negated version of it, then the default activation will be returned.
|
1235
|
-
*
|
1236
|
-
* In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
|
1237
|
-
* version of it, the class is considered active.
|
1238
|
-
*
|
1239
|
-
* @param {Element} element
|
1240
|
-
* @param {string} className
|
1241
|
-
* @param {boolean} [defaultActivation=false]
|
1242
|
-
* @returns {boolean}
|
1243
|
-
*/
|
1244
|
-
isActive: function(u, i, f) {
|
1245
|
-
for (var o = "no-" + i; u; ) {
|
1246
|
-
var r = u.classList;
|
1247
|
-
if (r.contains(i))
|
1248
|
-
return !0;
|
1249
|
-
if (r.contains(o))
|
1250
|
-
return !1;
|
1251
|
-
u = u.parentElement;
|
1252
|
-
}
|
1253
|
-
return !!f;
|
1254
|
-
}
|
1255
|
-
},
|
1256
|
-
/**
|
1257
|
-
* This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
|
1258
|
-
*
|
1259
|
-
* @namespace
|
1260
|
-
* @memberof Prism
|
1261
|
-
* @public
|
1262
|
-
*/
|
1263
|
-
languages: {
|
1264
|
-
/**
|
1265
|
-
* The grammar for plain, unformatted text.
|
1266
|
-
*/
|
1267
|
-
plain: c,
|
1268
|
-
plaintext: c,
|
1269
|
-
text: c,
|
1270
|
-
txt: c,
|
1271
|
-
/**
|
1272
|
-
* Creates a deep copy of the language with the given id and appends the given tokens.
|
1273
|
-
*
|
1274
|
-
* If a token in `redef` also appears in the copied language, then the existing token in the copied language
|
1275
|
-
* will be overwritten at its original position.
|
1276
|
-
*
|
1277
|
-
* ## Best practices
|
1278
|
-
*
|
1279
|
-
* Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
|
1280
|
-
* doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
|
1281
|
-
* understand the language definition because, normally, the order of tokens matters in Prism grammars.
|
1282
|
-
*
|
1283
|
-
* Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
|
1284
|
-
* Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
|
1285
|
-
*
|
1286
|
-
* @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
|
1287
|
-
* @param {Grammar} redef The new tokens to append.
|
1288
|
-
* @returns {Grammar} The new language created.
|
1289
|
-
* @public
|
1290
|
-
* @example
|
1291
|
-
* Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
|
1292
|
-
* // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
|
1293
|
-
* // at its original position
|
1294
|
-
* 'comment': { ... },
|
1295
|
-
* // CSS doesn't have a 'color' token, so this token will be appended
|
1296
|
-
* 'color': /\b(?:red|green|blue)\b/
|
1297
|
-
* });
|
1298
|
-
*/
|
1299
|
-
extend: function(u, i) {
|
1300
|
-
var f = a.util.clone(a.languages[u]);
|
1301
|
-
for (var o in i)
|
1302
|
-
f[o] = i[o];
|
1303
|
-
return f;
|
1304
|
-
},
|
1305
|
-
/**
|
1306
|
-
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
1307
|
-
*
|
1308
|
-
* ## Usage
|
1309
|
-
*
|
1310
|
-
* This helper method makes it easy to modify existing languages. For example, the CSS language definition
|
1311
|
-
* not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
|
1312
|
-
* in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
|
1313
|
-
* appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
|
1314
|
-
* this:
|
1315
|
-
*
|
1316
|
-
* ```js
|
1317
|
-
* Prism.languages.markup.style = {
|
1318
|
-
* // token
|
1319
|
-
* };
|
1320
|
-
* ```
|
1321
|
-
*
|
1322
|
-
* then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
|
1323
|
-
* before existing tokens. For the CSS example above, you would use it like this:
|
1324
|
-
*
|
1325
|
-
* ```js
|
1326
|
-
* Prism.languages.insertBefore('markup', 'cdata', {
|
1327
|
-
* 'style': {
|
1328
|
-
* // token
|
1329
|
-
* }
|
1330
|
-
* });
|
1331
|
-
* ```
|
1332
|
-
*
|
1333
|
-
* ## Special cases
|
1334
|
-
*
|
1335
|
-
* If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
|
1336
|
-
* will be ignored.
|
1337
|
-
*
|
1338
|
-
* This behavior can be used to insert tokens after `before`:
|
1339
|
-
*
|
1340
|
-
* ```js
|
1341
|
-
* Prism.languages.insertBefore('markup', 'comment', {
|
1342
|
-
* 'comment': Prism.languages.markup.comment,
|
1343
|
-
* // tokens after 'comment'
|
1344
|
-
* });
|
1345
|
-
* ```
|
1346
|
-
*
|
1347
|
-
* ## Limitations
|
1348
|
-
*
|
1349
|
-
* The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
|
1350
|
-
* properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
|
1351
|
-
* differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
|
1352
|
-
* deleting properties which is necessary to insert at arbitrary positions.
|
1353
|
-
*
|
1354
|
-
* To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
|
1355
|
-
* Instead, it will create a new object and replace all references to the target object with the new one. This
|
1356
|
-
* can be done without temporarily deleting properties, so the iteration order is well-defined.
|
1357
|
-
*
|
1358
|
-
* However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
|
1359
|
-
* you hold the target object in a variable, then the value of the variable will not change.
|
1360
|
-
*
|
1361
|
-
* ```js
|
1362
|
-
* var oldMarkup = Prism.languages.markup;
|
1363
|
-
* var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
|
1364
|
-
*
|
1365
|
-
* assert(oldMarkup !== Prism.languages.markup);
|
1366
|
-
* assert(newMarkup === Prism.languages.markup);
|
1367
|
-
* ```
|
1368
|
-
*
|
1369
|
-
* @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
|
1370
|
-
* object to be modified.
|
1371
|
-
* @param {string} before The key to insert before.
|
1372
|
-
* @param {Grammar} insert An object containing the key-value pairs to be inserted.
|
1373
|
-
* @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
|
1374
|
-
* object to be modified.
|
1375
|
-
*
|
1376
|
-
* Defaults to `Prism.languages`.
|
1377
|
-
* @returns {Grammar} The new grammar object.
|
1378
|
-
* @public
|
1379
|
-
*/
|
1380
|
-
insertBefore: function(u, i, f, o) {
|
1381
|
-
o = o || /** @type {any} */
|
1382
|
-
a.languages;
|
1383
|
-
var r = o[u], s = {};
|
1384
|
-
for (var b in r)
|
1385
|
-
if (r.hasOwnProperty(b)) {
|
1386
|
-
if (b == i)
|
1387
|
-
for (var p in f)
|
1388
|
-
f.hasOwnProperty(p) && (s[p] = f[p]);
|
1389
|
-
f.hasOwnProperty(b) || (s[b] = r[b]);
|
1390
|
-
}
|
1391
|
-
var F = o[u];
|
1392
|
-
return o[u] = s, a.languages.DFS(a.languages, function(q, O) {
|
1393
|
-
O === F && q != u && (this[q] = s);
|
1394
|
-
}), s;
|
1395
|
-
},
|
1396
|
-
// Traverse a language definition with Depth First Search
|
1397
|
-
DFS: function u(i, f, o, r) {
|
1398
|
-
r = r || {};
|
1399
|
-
var s = a.util.objId;
|
1400
|
-
for (var b in i)
|
1401
|
-
if (i.hasOwnProperty(b)) {
|
1402
|
-
f.call(i, b, i[b], o || b);
|
1403
|
-
var p = i[b], F = a.util.type(p);
|
1404
|
-
F === "Object" && !r[s(p)] ? (r[s(p)] = !0, u(p, f, null, r)) : F === "Array" && !r[s(p)] && (r[s(p)] = !0, u(p, f, b, r));
|
1405
|
-
}
|
1406
|
-
}
|
1407
|
-
},
|
1408
|
-
plugins: {},
|
1409
|
-
/**
|
1410
|
-
* This is the most high-level function in Prism’s API.
|
1411
|
-
* It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
|
1412
|
-
* each one of them.
|
1413
|
-
*
|
1414
|
-
* This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
|
1415
|
-
*
|
1416
|
-
* @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
|
1417
|
-
* @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
|
1418
|
-
* @memberof Prism
|
1419
|
-
* @public
|
1420
|
-
*/
|
1421
|
-
highlightAll: function(u, i) {
|
1422
|
-
a.highlightAllUnder(document, u, i);
|
1423
|
-
},
|
1424
|
-
/**
|
1425
|
-
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
1426
|
-
* {@link Prism.highlightElement} on each one of them.
|
1427
|
-
*
|
1428
|
-
* The following hooks will be run:
|
1429
|
-
* 1. `before-highlightall`
|
1430
|
-
* 2. `before-all-elements-highlight`
|
1431
|
-
* 3. All hooks of {@link Prism.highlightElement} for each element.
|
1432
|
-
*
|
1433
|
-
* @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
|
1434
|
-
* @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
|
1435
|
-
* @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
|
1436
|
-
* @memberof Prism
|
1437
|
-
* @public
|
1438
|
-
*/
|
1439
|
-
highlightAllUnder: function(u, i, f) {
|
1440
|
-
var o = {
|
1441
|
-
callback: f,
|
1442
|
-
container: u,
|
1443
|
-
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
1444
|
-
};
|
1445
|
-
a.hooks.run("before-highlightall", o), o.elements = Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)), a.hooks.run("before-all-elements-highlight", o);
|
1446
|
-
for (var r = 0, s; s = o.elements[r++]; )
|
1447
|
-
a.highlightElement(s, i === !0, o.callback);
|
1448
|
-
},
|
1449
|
-
/**
|
1450
|
-
* Highlights the code inside a single element.
|
1451
|
-
*
|
1452
|
-
* The following hooks will be run:
|
1453
|
-
* 1. `before-sanity-check`
|
1454
|
-
* 2. `before-highlight`
|
1455
|
-
* 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
|
1456
|
-
* 4. `before-insert`
|
1457
|
-
* 5. `after-highlight`
|
1458
|
-
* 6. `complete`
|
1459
|
-
*
|
1460
|
-
* Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
|
1461
|
-
* the element's language.
|
1462
|
-
*
|
1463
|
-
* @param {Element} element The element containing the code.
|
1464
|
-
* It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
|
1465
|
-
* @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
|
1466
|
-
* to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
|
1467
|
-
* [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
|
1468
|
-
*
|
1469
|
-
* Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
|
1470
|
-
* asynchronous highlighting to work. You can build your own bundle on the
|
1471
|
-
* [Download page](https://prismjs.com/download.html).
|
1472
|
-
* @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
|
1473
|
-
* Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
|
1474
|
-
* @memberof Prism
|
1475
|
-
* @public
|
1476
|
-
*/
|
1477
|
-
highlightElement: function(u, i, f) {
|
1478
|
-
var o = a.util.getLanguage(u), r = a.languages[o];
|
1479
|
-
a.util.setLanguage(u, o);
|
1480
|
-
var s = u.parentElement;
|
1481
|
-
s && s.nodeName.toLowerCase() === "pre" && a.util.setLanguage(s, o);
|
1482
|
-
var b = u.textContent, p = {
|
1483
|
-
element: u,
|
1484
|
-
language: o,
|
1485
|
-
grammar: r,
|
1486
|
-
code: b
|
1487
|
-
};
|
1488
|
-
function F(O) {
|
1489
|
-
p.highlightedCode = O, a.hooks.run("before-insert", p), p.element.innerHTML = p.highlightedCode, a.hooks.run("after-highlight", p), a.hooks.run("complete", p), f && f.call(p.element);
|
1490
|
-
}
|
1491
|
-
if (a.hooks.run("before-sanity-check", p), s = p.element.parentElement, s && s.nodeName.toLowerCase() === "pre" && !s.hasAttribute("tabindex") && s.setAttribute("tabindex", "0"), !p.code) {
|
1492
|
-
a.hooks.run("complete", p), f && f.call(p.element);
|
1493
|
-
return;
|
1494
|
-
}
|
1495
|
-
if (a.hooks.run("before-highlight", p), !p.grammar) {
|
1496
|
-
F(a.util.encode(p.code));
|
1497
|
-
return;
|
1498
|
-
}
|
1499
|
-
if (i && e.Worker) {
|
1500
|
-
var q = new Worker(a.filename);
|
1501
|
-
q.onmessage = function(O) {
|
1502
|
-
F(O.data);
|
1503
|
-
}, q.postMessage(JSON.stringify({
|
1504
|
-
language: p.language,
|
1505
|
-
code: p.code,
|
1506
|
-
immediateClose: !0
|
1507
|
-
}));
|
1508
|
-
} else
|
1509
|
-
F(a.highlight(p.code, p.grammar, p.language));
|
1510
|
-
},
|
1511
|
-
/**
|
1512
|
-
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
1513
|
-
* and the language definitions to use, and returns a string with the HTML produced.
|
1514
|
-
*
|
1515
|
-
* The following hooks will be run:
|
1516
|
-
* 1. `before-tokenize`
|
1517
|
-
* 2. `after-tokenize`
|
1518
|
-
* 3. `wrap`: On each {@link Token}.
|
1519
|
-
*
|
1520
|
-
* @param {string} text A string with the code to be highlighted.
|
1521
|
-
* @param {Grammar} grammar An object containing the tokens to use.
|
1522
|
-
*
|
1523
|
-
* Usually a language definition like `Prism.languages.markup`.
|
1524
|
-
* @param {string} language The name of the language definition passed to `grammar`.
|
1525
|
-
* @returns {string} The highlighted HTML.
|
1526
|
-
* @memberof Prism
|
1527
|
-
* @public
|
1528
|
-
* @example
|
1529
|
-
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
1530
|
-
*/
|
1531
|
-
highlight: function(u, i, f) {
|
1532
|
-
var o = {
|
1533
|
-
code: u,
|
1534
|
-
grammar: i,
|
1535
|
-
language: f
|
1536
|
-
};
|
1537
|
-
if (a.hooks.run("before-tokenize", o), !o.grammar)
|
1538
|
-
throw new Error('The language "' + o.language + '" has no grammar.');
|
1539
|
-
return o.tokens = a.tokenize(o.code, o.grammar), a.hooks.run("after-tokenize", o), v.stringify(a.util.encode(o.tokens), o.language);
|
1540
|
-
},
|
1541
|
-
/**
|
1542
|
-
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
1543
|
-
* and the language definitions to use, and returns an array with the tokenized code.
|
1544
|
-
*
|
1545
|
-
* When the language definition includes nested tokens, the function is called recursively on each of these tokens.
|
1546
|
-
*
|
1547
|
-
* This method could be useful in other contexts as well, as a very crude parser.
|
1548
|
-
*
|
1549
|
-
* @param {string} text A string with the code to be highlighted.
|
1550
|
-
* @param {Grammar} grammar An object containing the tokens to use.
|
1551
|
-
*
|
1552
|
-
* Usually a language definition like `Prism.languages.markup`.
|
1553
|
-
* @returns {TokenStream} An array of strings and tokens, a token stream.
|
1554
|
-
* @memberof Prism
|
1555
|
-
* @public
|
1556
|
-
* @example
|
1557
|
-
* let code = `var foo = 0;`;
|
1558
|
-
* let tokens = Prism.tokenize(code, Prism.languages.javascript);
|
1559
|
-
* tokens.forEach(token => {
|
1560
|
-
* if (token instanceof Prism.Token && token.type === 'number') {
|
1561
|
-
* console.log(`Found numeric literal: ${token.content}`);
|
1562
|
-
* }
|
1563
|
-
* });
|
1564
|
-
*/
|
1565
|
-
tokenize: function(u, i) {
|
1566
|
-
var f = i.rest;
|
1567
|
-
if (f) {
|
1568
|
-
for (var o in f)
|
1569
|
-
i[o] = f[o];
|
1570
|
-
delete i.rest;
|
1571
|
-
}
|
1572
|
-
var r = new h();
|
1573
|
-
return x(r, r.head, u), k(u, r, i, r.head, 0), y(r);
|
1574
|
-
},
|
1575
|
-
/**
|
1576
|
-
* @namespace
|
1577
|
-
* @memberof Prism
|
1578
|
-
* @public
|
1579
|
-
*/
|
1580
|
-
hooks: {
|
1581
|
-
all: {},
|
1582
|
-
/**
|
1583
|
-
* Adds the given callback to the list of callbacks for the given hook.
|
1584
|
-
*
|
1585
|
-
* The callback will be invoked when the hook it is registered for is run.
|
1586
|
-
* Hooks are usually directly run by a highlight function but you can also run hooks yourself.
|
1587
|
-
*
|
1588
|
-
* One callback function can be registered to multiple hooks and the same hook multiple times.
|
1589
|
-
*
|
1590
|
-
* @param {string} name The name of the hook.
|
1591
|
-
* @param {HookCallback} callback The callback function which is given environment variables.
|
1592
|
-
* @public
|
1593
|
-
*/
|
1594
|
-
add: function(u, i) {
|
1595
|
-
var f = a.hooks.all;
|
1596
|
-
f[u] = f[u] || [], f[u].push(i);
|
1597
|
-
},
|
1598
|
-
/**
|
1599
|
-
* Runs a hook invoking all registered callbacks with the given environment variables.
|
1600
|
-
*
|
1601
|
-
* Callbacks will be invoked synchronously and in the order in which they were registered.
|
1602
|
-
*
|
1603
|
-
* @param {string} name The name of the hook.
|
1604
|
-
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
1605
|
-
* @public
|
1606
|
-
*/
|
1607
|
-
run: function(u, i) {
|
1608
|
-
var f = a.hooks.all[u];
|
1609
|
-
if (!(!f || !f.length))
|
1610
|
-
for (var o = 0, r; r = f[o++]; )
|
1611
|
-
r(i);
|
1612
|
-
}
|
1613
|
-
},
|
1614
|
-
Token: v
|
1615
|
-
};
|
1616
|
-
e.Prism = a;
|
1617
|
-
function v(u, i, f, o) {
|
1618
|
-
this.type = u, this.content = i, this.alias = f, this.length = (o || "").length | 0;
|
1619
|
-
}
|
1620
|
-
v.stringify = function u(i, f) {
|
1621
|
-
if (typeof i == "string")
|
1622
|
-
return i;
|
1623
|
-
if (Array.isArray(i)) {
|
1624
|
-
var o = "";
|
1625
|
-
return i.forEach(function(F) {
|
1626
|
-
o += u(F, f);
|
1627
|
-
}), o;
|
1628
|
-
}
|
1629
|
-
var r = {
|
1630
|
-
type: i.type,
|
1631
|
-
content: u(i.content, f),
|
1632
|
-
tag: "span",
|
1633
|
-
classes: ["token", i.type],
|
1634
|
-
attributes: {},
|
1635
|
-
language: f
|
1636
|
-
}, s = i.alias;
|
1637
|
-
s && (Array.isArray(s) ? Array.prototype.push.apply(r.classes, s) : r.classes.push(s)), a.hooks.run("wrap", r);
|
1638
|
-
var b = "";
|
1639
|
-
for (var p in r.attributes)
|
1640
|
-
b += " " + p + '="' + (r.attributes[p] || "").replace(/"/g, """) + '"';
|
1641
|
-
return "<" + r.tag + ' class="' + r.classes.join(" ") + '"' + b + ">" + r.content + "</" + r.tag + ">";
|
1642
|
-
};
|
1643
|
-
function m(u, i, f, o) {
|
1644
|
-
u.lastIndex = i;
|
1645
|
-
var r = u.exec(f);
|
1646
|
-
if (r && o && r[1]) {
|
1647
|
-
var s = r[1].length;
|
1648
|
-
r.index += s, r[0] = r[0].slice(s);
|
1649
|
-
}
|
1650
|
-
return r;
|
1651
|
-
}
|
1652
|
-
function k(u, i, f, o, r, s) {
|
1653
|
-
for (var b in f)
|
1654
|
-
if (!(!f.hasOwnProperty(b) || !f[b])) {
|
1655
|
-
var p = f[b];
|
1656
|
-
p = Array.isArray(p) ? p : [p];
|
1657
|
-
for (var F = 0; F < p.length; ++F) {
|
1658
|
-
if (s && s.cause == b + "," + F)
|
1659
|
-
return;
|
1660
|
-
var q = p[F], O = q.inside, H = !!q.lookbehind, ie = !!q.greedy, ge = q.alias;
|
1661
|
-
if (ie && !q.pattern.global) {
|
1662
|
-
var le = q.pattern.toString().match(/[imsuy]*$/)[0];
|
1663
|
-
q.pattern = RegExp(q.pattern.source, le + "g");
|
1664
|
-
}
|
1665
|
-
for (var ue = q.pattern || q, R = o.next, D = r; R !== i.tail && !(s && D >= s.reach); D += R.value.length, R = R.next) {
|
1666
|
-
var X = R.value;
|
1667
|
-
if (i.length > u.length)
|
1668
|
-
return;
|
1669
|
-
if (!(X instanceof v)) {
|
1670
|
-
var re = 1, L;
|
1671
|
-
if (ie) {
|
1672
|
-
if (L = m(ue, D, u, H), !L || L.index >= u.length)
|
1673
|
-
break;
|
1674
|
-
var U = L.index, E = L.index + L[0].length, T = D;
|
1675
|
-
for (T += R.value.length; U >= T; )
|
1676
|
-
R = R.next, T += R.value.length;
|
1677
|
-
if (T -= R.value.length, D = T, R.value instanceof v)
|
1678
|
-
continue;
|
1679
|
-
for (var N = R; N !== i.tail && (T < E || typeof N.value == "string"); N = N.next)
|
1680
|
-
re++, T += N.value.length;
|
1681
|
-
re--, X = u.slice(D, T), L.index -= D;
|
1682
|
-
} else if (L = m(ue, 0, X, H), !L)
|
1683
|
-
continue;
|
1684
|
-
var U = L.index, _ = L[0], ne = X.slice(0, U), oe = X.slice(U + _.length), se = D + X.length;
|
1685
|
-
s && se > s.reach && (s.reach = se);
|
1686
|
-
var ae = R.prev;
|
1687
|
-
ne && (ae = x(i, ae, ne), D += ne.length), A(i, ae, re);
|
1688
|
-
var xe = new v(b, O ? a.tokenize(_, O) : _, ge, _);
|
1689
|
-
if (R = x(i, ae, xe), oe && x(i, R, oe), re > 1) {
|
1690
|
-
var G = {
|
1691
|
-
cause: b + "," + F,
|
1692
|
-
reach: se
|
1693
|
-
};
|
1694
|
-
k(u, i, f, R.prev, D, G), s && G.reach > s.reach && (s.reach = G.reach);
|
1695
|
-
}
|
1696
|
-
}
|
1697
|
-
}
|
1698
|
-
}
|
1699
|
-
}
|
1700
|
-
}
|
1701
|
-
function h() {
|
1702
|
-
var u = { value: null, prev: null, next: null }, i = { value: null, prev: u, next: null };
|
1703
|
-
u.next = i, this.head = u, this.tail = i, this.length = 0;
|
1704
|
-
}
|
1705
|
-
function x(u, i, f) {
|
1706
|
-
var o = i.next, r = { value: f, prev: i, next: o };
|
1707
|
-
return i.next = r, o.prev = r, u.length++, r;
|
1708
|
-
}
|
1709
|
-
function A(u, i, f) {
|
1710
|
-
for (var o = i.next, r = 0; r < f && o !== u.tail; r++)
|
1711
|
-
o = o.next;
|
1712
|
-
i.next = o, o.prev = i, u.length -= r;
|
1713
|
-
}
|
1714
|
-
function y(u) {
|
1715
|
-
for (var i = [], f = u.head.next; f !== u.tail; )
|
1716
|
-
i.push(f.value), f = f.next;
|
1717
|
-
return i;
|
1718
|
-
}
|
1719
|
-
if (!e.document)
|
1720
|
-
return e.addEventListener && (a.disableWorkerMessageHandler || e.addEventListener("message", function(u) {
|
1721
|
-
var i = JSON.parse(u.data), f = i.language, o = i.code, r = i.immediateClose;
|
1722
|
-
e.postMessage(a.highlight(o, a.languages[f], f)), r && e.close();
|
1723
|
-
}, !1)), a;
|
1724
|
-
var S = a.util.currentScript();
|
1725
|
-
S && (a.filename = S.src, S.hasAttribute("data-manual") && (a.manual = !0));
|
1726
|
-
function w() {
|
1727
|
-
a.manual || a.highlightAll();
|
1728
|
-
}
|
1729
|
-
if (!a.manual) {
|
1730
|
-
var C = document.readyState;
|
1731
|
-
C === "loading" || C === "interactive" && S && S.defer ? document.addEventListener("DOMContentLoaded", w) : window.requestAnimationFrame ? window.requestAnimationFrame(w) : window.setTimeout(w, 16);
|
1732
|
-
}
|
1733
|
-
return a;
|
1734
|
-
}(n);
|
1735
|
-
t.exports && (t.exports = l), typeof be < "u" && (be.Prism = l);
|
1736
|
-
}(Ye)), Ye.exports;
|
1737
|
-
}
|
1738
|
-
var Qe, Kr;
|
1739
|
-
function zt() {
|
1740
|
-
if (Kr) return Qe;
|
1741
|
-
Kr = 1, Qe = t, t.displayName = "markup", t.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"];
|
1742
|
-
function t(n) {
|
1743
|
-
n.languages.markup = {
|
1744
|
-
comment: {
|
1745
|
-
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
1746
|
-
greedy: !0
|
1747
|
-
},
|
1748
|
-
prolog: {
|
1749
|
-
pattern: /<\?[\s\S]+?\?>/,
|
1750
|
-
greedy: !0
|
1751
|
-
},
|
1752
|
-
doctype: {
|
1753
|
-
// https://www.w3.org/TR/xml/#NT-doctypedecl
|
1754
|
-
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
1755
|
-
greedy: !0,
|
1756
|
-
inside: {
|
1757
|
-
"internal-subset": {
|
1758
|
-
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
1759
|
-
lookbehind: !0,
|
1760
|
-
greedy: !0,
|
1761
|
-
inside: null
|
1762
|
-
// see below
|
1763
|
-
},
|
1764
|
-
string: {
|
1765
|
-
pattern: /"[^"]*"|'[^']*'/,
|
1766
|
-
greedy: !0
|
1767
|
-
},
|
1768
|
-
punctuation: /^<!|>$|[[\]]/,
|
1769
|
-
"doctype-tag": /^DOCTYPE/i,
|
1770
|
-
name: /[^\s<>'"]+/
|
1771
|
-
}
|
1772
|
-
},
|
1773
|
-
cdata: {
|
1774
|
-
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
1775
|
-
greedy: !0
|
1776
|
-
},
|
1777
|
-
tag: {
|
1778
|
-
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
1779
|
-
greedy: !0,
|
1780
|
-
inside: {
|
1781
|
-
tag: {
|
1782
|
-
pattern: /^<\/?[^\s>\/]+/,
|
1783
|
-
inside: {
|
1784
|
-
punctuation: /^<\/?/,
|
1785
|
-
namespace: /^[^\s>\/:]+:/
|
1786
|
-
}
|
1787
|
-
},
|
1788
|
-
"special-attr": [],
|
1789
|
-
"attr-value": {
|
1790
|
-
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
1791
|
-
inside: {
|
1792
|
-
punctuation: [
|
1793
|
-
{
|
1794
|
-
pattern: /^=/,
|
1795
|
-
alias: "attr-equals"
|
1796
|
-
},
|
1797
|
-
/"|'/
|
1798
|
-
]
|
1799
|
-
}
|
1800
|
-
},
|
1801
|
-
punctuation: /\/?>/,
|
1802
|
-
"attr-name": {
|
1803
|
-
pattern: /[^\s>\/]+/,
|
1804
|
-
inside: {
|
1805
|
-
namespace: /^[^\s>\/:]+:/
|
1806
|
-
}
|
1807
|
-
}
|
1808
|
-
}
|
1809
|
-
},
|
1810
|
-
entity: [
|
1811
|
-
{
|
1812
|
-
pattern: /&[\da-z]{1,8};/i,
|
1813
|
-
alias: "named-entity"
|
1814
|
-
},
|
1815
|
-
/&#x?[\da-f]{1,8};/i
|
1816
|
-
]
|
1817
|
-
}, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(l) {
|
1818
|
-
l.type === "entity" && (l.attributes.title = l.content.value.replace(/&/, "&"));
|
1819
|
-
}), Object.defineProperty(n.languages.markup.tag, "addInlined", {
|
1820
|
-
/**
|
1821
|
-
* Adds an inlined language to markup.
|
1822
|
-
*
|
1823
|
-
* An example of an inlined language is CSS with `<style>` tags.
|
1824
|
-
*
|
1825
|
-
* @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
|
1826
|
-
* case insensitive.
|
1827
|
-
* @param {string} lang The language key.
|
1828
|
-
* @example
|
1829
|
-
* addInlined('style', 'css');
|
1830
|
-
*/
|
1831
|
-
value: function(e, g) {
|
1832
|
-
var d = {};
|
1833
|
-
d["language-" + g] = {
|
1834
|
-
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
1835
|
-
lookbehind: !0,
|
1836
|
-
inside: n.languages[g]
|
1837
|
-
}, d.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
1838
|
-
var c = {
|
1839
|
-
"included-cdata": {
|
1840
|
-
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
1841
|
-
inside: d
|
1842
|
-
}
|
1843
|
-
};
|
1844
|
-
c["language-" + g] = {
|
1845
|
-
pattern: /[\s\S]+/,
|
1846
|
-
inside: n.languages[g]
|
1847
|
-
};
|
1848
|
-
var a = {};
|
1849
|
-
a[e] = {
|
1850
|
-
pattern: RegExp(
|
1851
|
-
/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(
|
1852
|
-
/__/g,
|
1853
|
-
function() {
|
1854
|
-
return e;
|
1855
|
-
}
|
1856
|
-
),
|
1857
|
-
"i"
|
1858
|
-
),
|
1859
|
-
lookbehind: !0,
|
1860
|
-
greedy: !0,
|
1861
|
-
inside: c
|
1862
|
-
}, n.languages.insertBefore("markup", "cdata", a);
|
1863
|
-
}
|
1864
|
-
}), Object.defineProperty(n.languages.markup.tag, "addAttribute", {
|
1865
|
-
/**
|
1866
|
-
* Adds an pattern to highlight languages embedded in HTML attributes.
|
1867
|
-
*
|
1868
|
-
* An example of an inlined language is CSS with `style` attributes.
|
1869
|
-
*
|
1870
|
-
* @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
|
1871
|
-
* case insensitive.
|
1872
|
-
* @param {string} lang The language key.
|
1873
|
-
* @example
|
1874
|
-
* addAttribute('style', 'css');
|
1875
|
-
*/
|
1876
|
-
value: function(l, e) {
|
1877
|
-
n.languages.markup.tag.inside["special-attr"].push({
|
1878
|
-
pattern: RegExp(
|
1879
|
-
/(^|["'\s])/.source + "(?:" + l + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
1880
|
-
"i"
|
1881
|
-
),
|
1882
|
-
lookbehind: !0,
|
1883
|
-
inside: {
|
1884
|
-
"attr-name": /^[^\s=]+/,
|
1885
|
-
"attr-value": {
|
1886
|
-
pattern: /=[\s\S]+/,
|
1887
|
-
inside: {
|
1888
|
-
value: {
|
1889
|
-
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
1890
|
-
lookbehind: !0,
|
1891
|
-
alias: [e, "language-" + e],
|
1892
|
-
inside: n.languages[e]
|
1893
|
-
},
|
1894
|
-
punctuation: [
|
1895
|
-
{
|
1896
|
-
pattern: /^=/,
|
1897
|
-
alias: "attr-equals"
|
1898
|
-
},
|
1899
|
-
/"|'/
|
1900
|
-
]
|
1901
|
-
}
|
1902
|
-
}
|
1903
|
-
}
|
1904
|
-
});
|
1905
|
-
}
|
1906
|
-
}), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml;
|
1907
|
-
}
|
1908
|
-
return Qe;
|
1909
|
-
}
|
1910
|
-
var er, Jr;
|
1911
|
-
function Ht() {
|
1912
|
-
if (Jr) return er;
|
1913
|
-
Jr = 1, er = t, t.displayName = "css", t.aliases = [];
|
1914
|
-
function t(n) {
|
1915
|
-
(function(l) {
|
1916
|
-
var e = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
1917
|
-
l.languages.css = {
|
1918
|
-
comment: /\/\*[\s\S]*?\*\//,
|
1919
|
-
atrule: {
|
1920
|
-
pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
|
1921
|
-
inside: {
|
1922
|
-
rule: /^@[\w-]+/,
|
1923
|
-
"selector-function-argument": {
|
1924
|
-
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
1925
|
-
lookbehind: !0,
|
1926
|
-
alias: "selector"
|
1927
|
-
},
|
1928
|
-
keyword: {
|
1929
|
-
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
1930
|
-
lookbehind: !0
|
1931
|
-
}
|
1932
|
-
// See rest below
|
1933
|
-
}
|
1934
|
-
},
|
1935
|
-
url: {
|
1936
|
-
// https://drafts.csswg.org/css-values-3/#urls
|
1937
|
-
pattern: RegExp(
|
1938
|
-
"\\burl\\((?:" + e.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)",
|
1939
|
-
"i"
|
1940
|
-
),
|
1941
|
-
greedy: !0,
|
1942
|
-
inside: {
|
1943
|
-
function: /^url/i,
|
1944
|
-
punctuation: /^\(|\)$/,
|
1945
|
-
string: {
|
1946
|
-
pattern: RegExp("^" + e.source + "$"),
|
1947
|
-
alias: "url"
|
1948
|
-
}
|
1949
|
-
}
|
1950
|
-
},
|
1951
|
-
selector: {
|
1952
|
-
pattern: RegExp(
|
1953
|
-
`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + e.source + ")*(?=\\s*\\{)"
|
1954
|
-
),
|
1955
|
-
lookbehind: !0
|
1956
|
-
},
|
1957
|
-
string: {
|
1958
|
-
pattern: e,
|
1959
|
-
greedy: !0
|
1960
|
-
},
|
1961
|
-
property: {
|
1962
|
-
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
1963
|
-
lookbehind: !0
|
1964
|
-
},
|
1965
|
-
important: /!important\b/i,
|
1966
|
-
function: {
|
1967
|
-
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
1968
|
-
lookbehind: !0
|
1969
|
-
},
|
1970
|
-
punctuation: /[(){};:,]/
|
1971
|
-
}, l.languages.css.atrule.inside.rest = l.languages.css;
|
1972
|
-
var g = l.languages.markup;
|
1973
|
-
g && (g.tag.addInlined("style", "css"), g.tag.addAttribute("style", "css"));
|
1974
|
-
})(n);
|
1975
|
-
}
|
1976
|
-
return er;
|
1977
|
-
}
|
1978
|
-
var rr, Yr;
|
1979
|
-
function Bt() {
|
1980
|
-
if (Yr) return rr;
|
1981
|
-
Yr = 1, rr = t, t.displayName = "clike", t.aliases = [];
|
1982
|
-
function t(n) {
|
1983
|
-
n.languages.clike = {
|
1984
|
-
comment: [
|
1985
|
-
{
|
1986
|
-
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
1987
|
-
lookbehind: !0,
|
1988
|
-
greedy: !0
|
1989
|
-
},
|
1990
|
-
{
|
1991
|
-
pattern: /(^|[^\\:])\/\/.*/,
|
1992
|
-
lookbehind: !0,
|
1993
|
-
greedy: !0
|
1994
|
-
}
|
1995
|
-
],
|
1996
|
-
string: {
|
1997
|
-
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
1998
|
-
greedy: !0
|
1999
|
-
},
|
2000
|
-
"class-name": {
|
2001
|
-
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
|
2002
|
-
lookbehind: !0,
|
2003
|
-
inside: {
|
2004
|
-
punctuation: /[.\\]/
|
2005
|
-
}
|
2006
|
-
},
|
2007
|
-
keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
|
2008
|
-
boolean: /\b(?:false|true)\b/,
|
2009
|
-
function: /\b\w+(?=\()/,
|
2010
|
-
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
2011
|
-
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
2012
|
-
punctuation: /[{}[\];(),.:]/
|
2013
|
-
};
|
2014
|
-
}
|
2015
|
-
return rr;
|
2016
|
-
}
|
2017
|
-
var nr, Qr;
|
2018
|
-
function Wt() {
|
2019
|
-
if (Qr) return nr;
|
2020
|
-
Qr = 1, nr = t, t.displayName = "javascript", t.aliases = ["js"];
|
2021
|
-
function t(n) {
|
2022
|
-
n.languages.javascript = n.languages.extend("clike", {
|
2023
|
-
"class-name": [
|
2024
|
-
n.languages.clike["class-name"],
|
2025
|
-
{
|
2026
|
-
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
2027
|
-
lookbehind: !0
|
2028
|
-
}
|
2029
|
-
],
|
2030
|
-
keyword: [
|
2031
|
-
{
|
2032
|
-
pattern: /((?:^|\})\s*)catch\b/,
|
2033
|
-
lookbehind: !0
|
2034
|
-
},
|
2035
|
-
{
|
2036
|
-
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
2037
|
-
lookbehind: !0
|
2038
|
-
}
|
2039
|
-
],
|
2040
|
-
// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
|
2041
|
-
function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
2042
|
-
number: {
|
2043
|
-
pattern: RegExp(
|
2044
|
-
/(^|[^\w$])/.source + "(?:" + // constant
|
2045
|
-
(/NaN|Infinity/.source + "|" + // binary integer
|
2046
|
-
/0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
|
2047
|
-
/0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
|
2048
|
-
/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
|
2049
|
-
/\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
|
2050
|
-
/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
|
2051
|
-
),
|
2052
|
-
lookbehind: !0
|
2053
|
-
},
|
2054
|
-
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
2055
|
-
}), n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, n.languages.insertBefore("javascript", "keyword", {
|
2056
|
-
regex: {
|
2057
|
-
// eslint-disable-next-line regexp/no-dupe-characters-character-class
|
2058
|
-
pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
|
2059
|
-
lookbehind: !0,
|
2060
|
-
greedy: !0,
|
2061
|
-
inside: {
|
2062
|
-
"regex-source": {
|
2063
|
-
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
2064
|
-
lookbehind: !0,
|
2065
|
-
alias: "language-regex",
|
2066
|
-
inside: n.languages.regex
|
2067
|
-
},
|
2068
|
-
"regex-delimiter": /^\/|\/$/,
|
2069
|
-
"regex-flags": /^[a-z]+$/
|
2070
|
-
}
|
2071
|
-
},
|
2072
|
-
// This must be declared before keyword because we use "function" inside the look-forward
|
2073
|
-
"function-variable": {
|
2074
|
-
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
2075
|
-
alias: "function"
|
2076
|
-
},
|
2077
|
-
parameter: [
|
2078
|
-
{
|
2079
|
-
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
2080
|
-
lookbehind: !0,
|
2081
|
-
inside: n.languages.javascript
|
2082
|
-
},
|
2083
|
-
{
|
2084
|
-
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
2085
|
-
lookbehind: !0,
|
2086
|
-
inside: n.languages.javascript
|
2087
|
-
},
|
2088
|
-
{
|
2089
|
-
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
2090
|
-
lookbehind: !0,
|
2091
|
-
inside: n.languages.javascript
|
2092
|
-
},
|
2093
|
-
{
|
2094
|
-
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
2095
|
-
lookbehind: !0,
|
2096
|
-
inside: n.languages.javascript
|
2097
|
-
}
|
2098
|
-
],
|
2099
|
-
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
2100
|
-
}), n.languages.insertBefore("javascript", "string", {
|
2101
|
-
hashbang: {
|
2102
|
-
pattern: /^#!.*/,
|
2103
|
-
greedy: !0,
|
2104
|
-
alias: "comment"
|
2105
|
-
},
|
2106
|
-
"template-string": {
|
2107
|
-
pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
|
2108
|
-
greedy: !0,
|
2109
|
-
inside: {
|
2110
|
-
"template-punctuation": {
|
2111
|
-
pattern: /^`|`$/,
|
2112
|
-
alias: "string"
|
2113
|
-
},
|
2114
|
-
interpolation: {
|
2115
|
-
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
2116
|
-
lookbehind: !0,
|
2117
|
-
inside: {
|
2118
|
-
"interpolation-punctuation": {
|
2119
|
-
pattern: /^\$\{|\}$/,
|
2120
|
-
alias: "punctuation"
|
2121
|
-
},
|
2122
|
-
rest: n.languages.javascript
|
2123
|
-
}
|
2124
|
-
},
|
2125
|
-
string: /[\s\S]+/
|
2126
|
-
}
|
2127
|
-
},
|
2128
|
-
"string-property": {
|
2129
|
-
pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
|
2130
|
-
lookbehind: !0,
|
2131
|
-
greedy: !0,
|
2132
|
-
alias: "property"
|
2133
|
-
}
|
2134
|
-
}), n.languages.insertBefore("javascript", "operator", {
|
2135
|
-
"literal-property": {
|
2136
|
-
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
2137
|
-
lookbehind: !0,
|
2138
|
-
alias: "property"
|
2139
|
-
}
|
2140
|
-
}), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.languages.markup.tag.addAttribute(
|
2141
|
-
/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
|
2142
|
-
"javascript"
|
2143
|
-
)), n.languages.js = n.languages.javascript;
|
2144
|
-
}
|
2145
|
-
return nr;
|
2146
|
-
}
|
2147
|
-
var ar, en;
|
2148
|
-
function Xt() {
|
2149
|
-
if (en) return ar;
|
2150
|
-
en = 1;
|
2151
|
-
var t = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof be == "object" ? be : {}, n = o();
|
2152
|
-
t.Prism = { manual: !0, disableWorkerMessageHandler: !0 };
|
2153
|
-
var l = On(), e = Ut(), g = Pt(), d = zt(), c = Ht(), a = Bt(), v = Wt();
|
2154
|
-
n();
|
2155
|
-
var m = {}.hasOwnProperty;
|
2156
|
-
function k() {
|
2157
|
-
}
|
2158
|
-
k.prototype = g;
|
2159
|
-
var h = new k();
|
2160
|
-
ar = h, h.highlight = y, h.register = x, h.alias = A, h.registered = S, h.listLanguages = w, x(d), x(c), x(a), x(v), h.util.encode = i, h.Token.stringify = C;
|
2161
|
-
function x(r) {
|
2162
|
-
if (typeof r != "function" || !r.displayName)
|
2163
|
-
throw new Error("Expected `function` for `grammar`, got `" + r + "`");
|
2164
|
-
h.languages[r.displayName] === void 0 && r(h);
|
2165
|
-
}
|
2166
|
-
function A(r, s) {
|
2167
|
-
var b = h.languages, p = r, F, q, O, H;
|
2168
|
-
s && (p = {}, p[r] = s);
|
2169
|
-
for (F in p)
|
2170
|
-
for (q = p[F], q = typeof q == "string" ? [q] : q, O = q.length, H = -1; ++H < O; )
|
2171
|
-
b[q[H]] = b[F];
|
2172
|
-
}
|
2173
|
-
function y(r, s) {
|
2174
|
-
var b = g.highlight, p;
|
2175
|
-
if (typeof r != "string")
|
2176
|
-
throw new Error("Expected `string` for `value`, got `" + r + "`");
|
2177
|
-
if (h.util.type(s) === "Object")
|
2178
|
-
p = s, s = null;
|
2179
|
-
else {
|
2180
|
-
if (typeof s != "string")
|
2181
|
-
throw new Error("Expected `string` for `name`, got `" + s + "`");
|
2182
|
-
if (m.call(h.languages, s))
|
2183
|
-
p = h.languages[s];
|
2184
|
-
else
|
2185
|
-
throw new Error("Unknown language: `" + s + "` is not registered");
|
2186
|
-
}
|
2187
|
-
return b.call(this, r, p, s);
|
2188
|
-
}
|
2189
|
-
function S(r) {
|
2190
|
-
if (typeof r != "string")
|
2191
|
-
throw new Error("Expected `string` for `language`, got `" + r + "`");
|
2192
|
-
return m.call(h.languages, r);
|
2193
|
-
}
|
2194
|
-
function w() {
|
2195
|
-
var r = h.languages, s = [], b;
|
2196
|
-
for (b in r)
|
2197
|
-
m.call(r, b) && typeof r[b] == "object" && s.push(b);
|
2198
|
-
return s;
|
2199
|
-
}
|
2200
|
-
function C(r, s, b) {
|
2201
|
-
var p;
|
2202
|
-
return typeof r == "string" ? { type: "text", value: r } : h.util.type(r) === "Array" ? u(r, s) : (p = {
|
2203
|
-
type: r.type,
|
2204
|
-
content: h.Token.stringify(r.content, s, b),
|
2205
|
-
tag: "span",
|
2206
|
-
classes: ["token", r.type],
|
2207
|
-
attributes: {},
|
2208
|
-
language: s,
|
2209
|
-
parent: b
|
2210
|
-
}, r.alias && (p.classes = p.classes.concat(r.alias)), h.hooks.run("wrap", p), l(
|
2211
|
-
p.tag + "." + p.classes.join("."),
|
2212
|
-
f(p.attributes),
|
2213
|
-
p.content
|
2214
|
-
));
|
2215
|
-
}
|
2216
|
-
function u(r, s) {
|
2217
|
-
for (var b = [], p = r.length, F = -1, q; ++F < p; )
|
2218
|
-
q = r[F], q !== "" && q !== null && q !== void 0 && b.push(q);
|
2219
|
-
for (F = -1, p = b.length; ++F < p; )
|
2220
|
-
q = b[F], b[F] = h.Token.stringify(q, s, b);
|
2221
|
-
return b;
|
2222
|
-
}
|
2223
|
-
function i(r) {
|
2224
|
-
return r;
|
2225
|
-
}
|
2226
|
-
function f(r) {
|
2227
|
-
var s;
|
2228
|
-
for (s in r)
|
2229
|
-
r[s] = e(r[s]);
|
2230
|
-
return r;
|
2231
|
-
}
|
2232
|
-
function o() {
|
2233
|
-
var r = "Prism" in t, s = r ? t.Prism : void 0;
|
2234
|
-
return b;
|
2235
|
-
function b() {
|
2236
|
-
r ? t.Prism = s : delete t.Prism, r = void 0, s = void 0;
|
2237
|
-
}
|
2238
|
-
}
|
2239
|
-
return ar;
|
2240
|
-
}
|
2241
|
-
var tr = {}, rn;
|
2242
|
-
function Vt() {
|
2243
|
-
if (rn) return tr;
|
2244
|
-
rn = 1;
|
2245
|
-
var t = cn;
|
2246
|
-
function n(e, g, d) {
|
2247
|
-
if (e.tagName) {
|
2248
|
-
var c = e.properties && Array.isArray(e.properties.className) ? e.properties.className.join(" ") : e.properties.className;
|
2249
|
-
return t.createElement(e.tagName, Object.assign({
|
2250
|
-
key: "fract-".concat(d, "-").concat(g)
|
2251
|
-
}, e.properties, {
|
2252
|
-
className: c
|
2253
|
-
}), e.children && e.children.map(l(d + 1)));
|
2254
|
-
}
|
2255
|
-
return e.value;
|
2256
|
-
}
|
2257
|
-
function l(e) {
|
2258
|
-
return function(d, c) {
|
2259
|
-
return n(d, c, e);
|
2260
|
-
};
|
2261
|
-
}
|
2262
|
-
return tr.depth = l, tr;
|
2263
|
-
}
|
2264
|
-
var ir, nn;
|
2265
|
-
function hn() {
|
2266
|
-
if (nn) return ir;
|
2267
|
-
nn = 1, ir = t;
|
2268
|
-
function t(d) {
|
2269
|
-
if (d == null)
|
2270
|
-
return g;
|
2271
|
-
if (typeof d == "string")
|
2272
|
-
return e(d);
|
2273
|
-
if (typeof d == "object")
|
2274
|
-
return "length" in d ? l(d) : n(d);
|
2275
|
-
if (typeof d == "function")
|
2276
|
-
return d;
|
2277
|
-
throw new Error("Expected function, string, or object as test");
|
2278
|
-
}
|
2279
|
-
function n(d) {
|
2280
|
-
return c;
|
2281
|
-
function c(a) {
|
2282
|
-
var v;
|
2283
|
-
for (v in d)
|
2284
|
-
if (a[v] !== d[v]) return !1;
|
2285
|
-
return !0;
|
2286
|
-
}
|
2287
|
-
}
|
2288
|
-
function l(d) {
|
2289
|
-
for (var c = [], a = -1; ++a < d.length; )
|
2290
|
-
c[a] = t(d[a]);
|
2291
|
-
return v;
|
2292
|
-
function v() {
|
2293
|
-
for (var m = -1; ++m < c.length; )
|
2294
|
-
if (c[m].apply(this, arguments))
|
2295
|
-
return !0;
|
2296
|
-
return !1;
|
2297
|
-
}
|
2298
|
-
}
|
2299
|
-
function e(d) {
|
2300
|
-
return c;
|
2301
|
-
function c(a) {
|
2302
|
-
return !!(a && a.type === d);
|
2303
|
-
}
|
2304
|
-
}
|
2305
|
-
function g() {
|
2306
|
-
return !0;
|
2307
|
-
}
|
2308
|
-
return ir;
|
2309
|
-
}
|
2310
|
-
var lr, an;
|
2311
|
-
function Zt() {
|
2312
|
-
if (an) return lr;
|
2313
|
-
an = 1;
|
2314
|
-
var t = hn();
|
2315
|
-
lr = l;
|
2316
|
-
var n = {}.hasOwnProperty;
|
2317
|
-
function l(e, g, d) {
|
2318
|
-
var c = t(d || g), a = g.cascade == null ? !0 : g.cascade;
|
2319
|
-
return v(e, null, null);
|
2320
|
-
function v(m, k, h) {
|
2321
|
-
var x, A, y, S, w;
|
2322
|
-
if (!c(m, k, h)) return null;
|
2323
|
-
if (m.children) {
|
2324
|
-
for (x = [], A = -1; ++A < m.children.length; )
|
2325
|
-
y = v(m.children[A], A, m), y && x.push(y);
|
2326
|
-
if (a && m.children.length && !x.length) return null;
|
2327
|
-
}
|
2328
|
-
S = {};
|
2329
|
-
for (w in m)
|
2330
|
-
n.call(m, w) && (S[w] = w === "children" ? x : m[w]);
|
2331
|
-
return S;
|
2332
|
-
}
|
2333
|
-
}
|
2334
|
-
return lr;
|
2335
|
-
}
|
2336
|
-
var ur, tn;
|
2337
|
-
function Gt() {
|
2338
|
-
if (tn) return ur;
|
2339
|
-
tn = 1, ur = t;
|
2340
|
-
function t(n) {
|
2341
|
-
return n;
|
2342
|
-
}
|
2343
|
-
return ur;
|
2344
|
-
}
|
2345
|
-
var or, ln;
|
2346
|
-
function Kt() {
|
2347
|
-
if (ln) return or;
|
2348
|
-
ln = 1, or = d;
|
2349
|
-
var t = hn(), n = Gt(), l = !0, e = "skip", g = !1;
|
2350
|
-
d.CONTINUE = l, d.SKIP = e, d.EXIT = g;
|
2351
|
-
function d(a, v, m, k) {
|
2352
|
-
var h, x;
|
2353
|
-
typeof v == "function" && typeof m != "function" && (k = m, m = v, v = null), x = t(v), h = k ? -1 : 1, A(a, null, [])();
|
2354
|
-
function A(y, S, w) {
|
2355
|
-
var C = typeof y == "object" && y !== null ? y : {}, u;
|
2356
|
-
return typeof C.type == "string" && (u = typeof C.tagName == "string" ? C.tagName : typeof C.name == "string" ? C.name : void 0, i.displayName = "node (" + n(C.type + (u ? "<" + u + ">" : "")) + ")"), i;
|
2357
|
-
function i() {
|
2358
|
-
var f = w.concat(y), o = [], r, s;
|
2359
|
-
if ((!v || x(y, S, w[w.length - 1] || null)) && (o = c(m(y, w)), o[0] === g))
|
2360
|
-
return o;
|
2361
|
-
if (y.children && o[0] !== e)
|
2362
|
-
for (s = (k ? y.children.length : -1) + h; s > -1 && s < y.children.length; ) {
|
2363
|
-
if (r = A(y.children[s], s, f)(), r[0] === g)
|
2364
|
-
return r;
|
2365
|
-
s = typeof r[1] == "number" ? r[1] : s + h;
|
2366
|
-
}
|
2367
|
-
return o;
|
2368
|
-
}
|
2369
|
-
}
|
2370
|
-
}
|
2371
|
-
function c(a) {
|
2372
|
-
return a !== null && typeof a == "object" && "length" in a ? a : typeof a == "number" ? [l, a] : [a];
|
2373
|
-
}
|
2374
|
-
return or;
|
2375
|
-
}
|
2376
|
-
var sr, un;
|
2377
|
-
function Jt() {
|
2378
|
-
if (un) return sr;
|
2379
|
-
un = 1, sr = typeof WeakMap == "function" ? t : n;
|
2380
|
-
function t() {
|
2381
|
-
this.map = /* @__PURE__ */ new WeakMap();
|
2382
|
-
}
|
2383
|
-
t.prototype.has = function(l) {
|
2384
|
-
return this.map.has(l);
|
2385
|
-
}, t.prototype.set = function(l, e) {
|
2386
|
-
return this.map.set(l, e), this;
|
2387
|
-
}, t.prototype.get = function(l) {
|
2388
|
-
return this.map.get(l);
|
2389
|
-
}, t.prototype.clear = function() {
|
2390
|
-
};
|
2391
|
-
function n() {
|
2392
|
-
this.keys = [], this.values = [];
|
2393
|
-
}
|
2394
|
-
return n.prototype.has = function(l) {
|
2395
|
-
return this.keys.indexOf(l) !== -1;
|
2396
|
-
}, n.prototype.set = function(l, e) {
|
2397
|
-
var g = this.keys.indexOf(l);
|
2398
|
-
return g === -1 ? (this.keys.push(l), this.values.push(e)) : this.values[g] = e, this;
|
2399
|
-
}, n.prototype.get = function(l) {
|
2400
|
-
var e = this.keys.indexOf(l);
|
2401
|
-
return e === -1 ? void 0 : this.values[e];
|
2402
|
-
}, n.prototype.clear = function() {
|
2403
|
-
this.keys = [], this.values = [];
|
2404
|
-
}, sr;
|
2405
|
-
}
|
2406
|
-
var cr, on;
|
2407
|
-
function Yt() {
|
2408
|
-
if (on) return cr;
|
2409
|
-
on = 1;
|
2410
|
-
var t = Zt(), n = Kt(), l = Jt();
|
2411
|
-
function e(v) {
|
2412
|
-
var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
2413
|
-
lineNumber: 1
|
2414
|
-
};
|
2415
|
-
return v.reduce(function(k, h) {
|
2416
|
-
var x = m.lineNumber;
|
2417
|
-
if (h.type === "text") {
|
2418
|
-
if (h.value.indexOf(`
|
2419
|
-
`) === -1)
|
2420
|
-
return h.lineStart = x, h.lineEnd = x, k.nodes.push(h), k;
|
2421
|
-
for (var A = h.value.split(`
|
2422
|
-
`), y = 0; y < A.length; y++) {
|
2423
|
-
var S = y === 0 ? m.lineNumber : ++m.lineNumber;
|
2424
|
-
k.nodes.push({
|
2425
|
-
type: "text",
|
2426
|
-
value: y === A.length - 1 ? A[y] : "".concat(A[y], `
|
2427
|
-
`),
|
2428
|
-
lineStart: S,
|
2429
|
-
lineEnd: S
|
2430
|
-
});
|
2431
|
-
}
|
2432
|
-
return k.lineNumber = m.lineNumber, k;
|
2433
|
-
}
|
2434
|
-
if (h.children) {
|
2435
|
-
var w = e(h.children, m), C = w.nodes[0], u = w.nodes[w.nodes.length - 1];
|
2436
|
-
return h.lineStart = C ? C.lineStart : x, h.lineEnd = u ? u.lineEnd : x, h.children = w.nodes, k.lineNumber = w.lineNumber, k.nodes.push(h), k;
|
2437
|
-
}
|
2438
|
-
return k.nodes.push(h), k;
|
2439
|
-
}, {
|
2440
|
-
nodes: [],
|
2441
|
-
lineNumber: m.lineNumber
|
2442
|
-
});
|
2443
|
-
}
|
2444
|
-
function g(v, m) {
|
2445
|
-
var k = {
|
2446
|
-
type: "root",
|
2447
|
-
children: m
|
2448
|
-
}, h = new l(), x = new l(), A = new l(), y = [];
|
2449
|
-
function S(i, f, o) {
|
2450
|
-
y.push(f), o.forEach(function(F) {
|
2451
|
-
i.has(F) || (i.set(F, Object.assign({}, F, {
|
2452
|
-
children: []
|
2453
|
-
})), F !== k && y.push(F));
|
2454
|
-
});
|
2455
|
-
for (var r = o.length; r--; ) {
|
2456
|
-
var s = i.get(o[r]), b = o[r + 1], p = i.get(b) || f;
|
2457
|
-
s.children.indexOf(p) === -1 && s.children.push(p);
|
2458
|
-
}
|
2459
|
-
}
|
2460
|
-
n(k, function(i, f) {
|
2461
|
-
if (!i.children) {
|
2462
|
-
if (i.lineStart < v) {
|
2463
|
-
S(h, i, f);
|
2464
|
-
return;
|
2465
|
-
}
|
2466
|
-
if (i.lineStart === v) {
|
2467
|
-
S(x, i, f);
|
2468
|
-
return;
|
2469
|
-
}
|
2470
|
-
i.lineEnd > v && y.some(function(o) {
|
2471
|
-
return f.indexOf(o) !== -1;
|
2472
|
-
}) && S(A, i, f);
|
2473
|
-
}
|
2474
|
-
});
|
2475
|
-
var w = t(k, function(i) {
|
2476
|
-
return y.indexOf(i) === -1;
|
2477
|
-
}), C = function(f) {
|
2478
|
-
var o = f.get(k);
|
2479
|
-
return o ? (n(o, function(r, s) {
|
2480
|
-
if (r.children) {
|
2481
|
-
r.lineStart = 0, r.lineEnd = 0;
|
2482
|
-
return;
|
2483
|
-
}
|
2484
|
-
s.forEach(function(b) {
|
2485
|
-
b.lineStart = Math.max(b.lineStart, r.lineStart), b.lineEnd = Math.max(b.lineEnd, r.lineEnd);
|
2486
|
-
});
|
2487
|
-
}), o.children) : [];
|
2488
|
-
}, u = [].concat(C(h), C(x), C(A), w ? w.children : []);
|
2489
|
-
return h.clear(), x.clear(), A.clear(), u;
|
2490
|
-
}
|
2491
|
-
function d(v, m, k) {
|
2492
|
-
var h = m.className || "refractor-marker";
|
2493
|
-
return {
|
2494
|
-
type: "element",
|
2495
|
-
tagName: m.component || "div",
|
2496
|
-
properties: m.component ? Object.assign({}, k, {
|
2497
|
-
className: h
|
2498
|
-
}) : {
|
2499
|
-
className: h
|
2500
|
-
},
|
2501
|
-
children: v,
|
2502
|
-
lineStart: m.line,
|
2503
|
-
lineEnd: v[v.length - 1].lineEnd,
|
2504
|
-
isMarker: !0
|
2505
|
-
};
|
2506
|
-
}
|
2507
|
-
function c(v, m, k) {
|
2508
|
-
if (m.length === 0 || v.length === 0)
|
2509
|
-
return v;
|
2510
|
-
for (var h = m.reduce(function(i, f) {
|
2511
|
-
return g(f.line, i);
|
2512
|
-
}, v), x = [], A = 0, y = 0; y < m.length; y++) {
|
2513
|
-
for (var S = m[y], w = h[A]; w && w.lineEnd < S.line; w = h[++A])
|
2514
|
-
x.push(w);
|
2515
|
-
for (var C = [], u = h[A]; u && u.lineEnd === S.line; u = h[++A])
|
2516
|
-
C.push(u);
|
2517
|
-
C.length > 0 && x.push(d(C, S, k));
|
2518
|
-
}
|
2519
|
-
for (; A < h.length; )
|
2520
|
-
x.push(h[A++]);
|
2521
|
-
return x;
|
2522
|
-
}
|
2523
|
-
function a(v, m) {
|
2524
|
-
var k = m.markers.map(function(x) {
|
2525
|
-
return x.line ? x : {
|
2526
|
-
line: x
|
2527
|
-
};
|
2528
|
-
}).sort(function(x, A) {
|
2529
|
-
return x.line - A.line;
|
2530
|
-
}), h = e(v).nodes;
|
2531
|
-
return c(h, k, m);
|
2532
|
-
}
|
2533
|
-
return cr = a, cr;
|
2534
|
-
}
|
2535
|
-
var fr, sn;
|
2536
|
-
function Qt() {
|
2537
|
-
if (sn) return fr;
|
2538
|
-
sn = 1;
|
2539
|
-
var t = cn, n = Xt(), l = Vt(), e = Yt(), g = t.createElement;
|
2540
|
-
function d(c) {
|
2541
|
-
var a = "language-".concat(c.language), v = {
|
2542
|
-
className: a
|
2543
|
-
}, m = {
|
2544
|
-
className: [c.className || "refractor", a].filter(Boolean).join(" ")
|
2545
|
-
};
|
2546
|
-
c.inline && (v.style = {
|
2547
|
-
display: "inline"
|
2548
|
-
}, v.className = c.className || "refractor");
|
2549
|
-
var k = n.highlight(c.value, c.language);
|
2550
|
-
c.markers && c.markers.length > 0 && (k = e(k, {
|
2551
|
-
markers: c.markers
|
2552
|
-
}));
|
2553
|
-
var h = k.length === 0 ? c.value : k.map(l.depth(0)), x = g("code", v, h);
|
2554
|
-
return c.inline ? x : g("pre", m, x);
|
2555
|
-
}
|
2556
|
-
return d.registerLanguage = function(c) {
|
2557
|
-
return n.register(c);
|
2558
|
-
}, d.hasLanguage = function(c) {
|
2559
|
-
return n.registered(c);
|
2560
|
-
}, fr = d, fr;
|
2561
|
-
}
|
2562
|
-
var ei = Qt();
|
2563
|
-
const ai = /* @__PURE__ */ bn(ei);
|
2564
|
-
export {
|
2565
|
-
ai as R,
|
2566
|
-
Wt as r
|
2567
|
-
};
|
2568
|
-
//# sourceMappingURL=Refractor-Zss2QEe8.mjs.map
|