@hep-code-runner/vue2 1.5.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -6
- package/dist/index.mjs +245 -231
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var ae = Object.defineProperty, ie = (
|
|
2
|
-
let
|
|
1
|
+
var ae = Object.defineProperty, ie = (r, e, t) => e in r ? ae(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, q = (r, e, t) => ie(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2
|
+
let z = null;
|
|
3
3
|
class se {
|
|
4
4
|
constructor(e = {}) {
|
|
5
5
|
q(this, "baseUrl"), q(this, "timeout"), this.baseUrl = e.pistonUrl || "/api/piston", this.timeout = e.timeout || 3e3;
|
|
6
6
|
}
|
|
7
7
|
async getRuntimes(e = !1) {
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
8
|
+
if (z && !e)
|
|
9
|
+
return z;
|
|
10
10
|
try {
|
|
11
11
|
const t = await fetch(`${this.baseUrl}/runtimes`, {
|
|
12
12
|
method: "GET",
|
|
@@ -17,7 +17,7 @@ class se {
|
|
|
17
17
|
if (!t.ok)
|
|
18
18
|
throw new Error(`Failed to fetch runtimes: ${t.statusText}`);
|
|
19
19
|
const l = await t.json();
|
|
20
|
-
return
|
|
20
|
+
return z = l, l;
|
|
21
21
|
} catch (t) {
|
|
22
22
|
throw console.error("Failed to fetch runtimes:", t), t;
|
|
23
23
|
}
|
|
@@ -31,12 +31,12 @@ class se {
|
|
|
31
31
|
);
|
|
32
32
|
if (!p)
|
|
33
33
|
throw new Error(`Language '${e}' is not supported`);
|
|
34
|
-
const
|
|
34
|
+
const f = this.getFileName(e), b = {
|
|
35
35
|
language: p.language,
|
|
36
36
|
version: l.version || p.version,
|
|
37
37
|
files: [
|
|
38
38
|
{
|
|
39
|
-
name:
|
|
39
|
+
name: f,
|
|
40
40
|
content: t
|
|
41
41
|
}
|
|
42
42
|
],
|
|
@@ -55,11 +55,11 @@ class se {
|
|
|
55
55
|
});
|
|
56
56
|
if (!h.ok)
|
|
57
57
|
throw new Error(`Execute failed: ${h.statusText}`);
|
|
58
|
-
const A = await h.json(), _ = Date.now() - u,
|
|
58
|
+
const A = await h.json(), _ = Date.now() - u, F = A.run.stdout || "", x = A.run.stderr || "";
|
|
59
59
|
return {
|
|
60
60
|
success: A.run.code === 0,
|
|
61
|
-
output:
|
|
62
|
-
stderr:
|
|
61
|
+
output: F,
|
|
62
|
+
stderr: x,
|
|
63
63
|
code: A.run.code,
|
|
64
64
|
executionTime: _,
|
|
65
65
|
compile: A.compile ? {
|
|
@@ -206,17 +206,17 @@ h1 {
|
|
|
206
206
|
|
|
207
207
|
This is a sample markdown document.`
|
|
208
208
|
};
|
|
209
|
-
function
|
|
210
|
-
const e =
|
|
211
|
-
return oe[e] || `// ${
|
|
209
|
+
function W(r) {
|
|
210
|
+
const e = r.toLowerCase();
|
|
211
|
+
return oe[e] || `// ${r}
|
|
212
212
|
// Write your code here`;
|
|
213
213
|
}
|
|
214
214
|
var J = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
215
|
-
function le(
|
|
216
|
-
return
|
|
215
|
+
function le(r) {
|
|
216
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
217
217
|
}
|
|
218
218
|
var Q = { exports: {} };
|
|
219
|
-
(function(
|
|
219
|
+
(function(r) {
|
|
220
220
|
var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
221
221
|
/**
|
|
222
222
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
@@ -227,7 +227,7 @@ var Q = { exports: {} };
|
|
|
227
227
|
* @public
|
|
228
228
|
*/
|
|
229
229
|
var t = function(l) {
|
|
230
|
-
var p = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,
|
|
230
|
+
var p = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, f = 0, b = {}, u = {
|
|
231
231
|
/**
|
|
232
232
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
233
233
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -282,8 +282,8 @@ var Q = { exports: {} };
|
|
|
282
282
|
* @memberof Prism
|
|
283
283
|
*/
|
|
284
284
|
util: {
|
|
285
|
-
encode: function a(
|
|
286
|
-
return
|
|
285
|
+
encode: function a(n) {
|
|
286
|
+
return n instanceof h ? new h(n.type, a(n.content), n.alias) : Array.isArray(n) ? n.map(a) : n.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
287
287
|
},
|
|
288
288
|
/**
|
|
289
289
|
* Returns the name of the type of the given value.
|
|
@@ -311,7 +311,7 @@ var Q = { exports: {} };
|
|
|
311
311
|
* @returns {number}
|
|
312
312
|
*/
|
|
313
313
|
objId: function(a) {
|
|
314
|
-
return a.__id || Object.defineProperty(a, "__id", { value: ++
|
|
314
|
+
return a.__id || Object.defineProperty(a, "__id", { value: ++f }), a.__id;
|
|
315
315
|
},
|
|
316
316
|
/**
|
|
317
317
|
* Creates a deep clone of the given object.
|
|
@@ -323,30 +323,30 @@ var Q = { exports: {} };
|
|
|
323
323
|
* @returns {T}
|
|
324
324
|
* @template T
|
|
325
325
|
*/
|
|
326
|
-
clone: function a(
|
|
326
|
+
clone: function a(n, i) {
|
|
327
327
|
i = i || {};
|
|
328
328
|
var s, o;
|
|
329
|
-
switch (u.util.type(
|
|
329
|
+
switch (u.util.type(n)) {
|
|
330
330
|
case "Object":
|
|
331
|
-
if (o = u.util.objId(
|
|
331
|
+
if (o = u.util.objId(n), i[o])
|
|
332
332
|
return i[o];
|
|
333
333
|
s = /** @type {Record<string, any>} */
|
|
334
334
|
{}, i[o] = s;
|
|
335
|
-
for (var d in
|
|
336
|
-
|
|
335
|
+
for (var d in n)
|
|
336
|
+
n.hasOwnProperty(d) && (s[d] = a(n[d], i));
|
|
337
337
|
return (
|
|
338
338
|
/** @type {any} */
|
|
339
339
|
s
|
|
340
340
|
);
|
|
341
341
|
case "Array":
|
|
342
|
-
return o = u.util.objId(
|
|
342
|
+
return o = u.util.objId(n), i[o] ? i[o] : (s = [], i[o] = s, /** @type {Array} */
|
|
343
343
|
/** @type {any} */
|
|
344
|
-
|
|
344
|
+
n.forEach(function(g, c) {
|
|
345
345
|
s[c] = a(g, i);
|
|
346
346
|
}), /** @type {any} */
|
|
347
347
|
s);
|
|
348
348
|
default:
|
|
349
|
-
return
|
|
349
|
+
return n;
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
/**
|
|
@@ -359,9 +359,9 @@ var Q = { exports: {} };
|
|
|
359
359
|
*/
|
|
360
360
|
getLanguage: function(a) {
|
|
361
361
|
for (; a; ) {
|
|
362
|
-
var
|
|
363
|
-
if (
|
|
364
|
-
return
|
|
362
|
+
var n = p.exec(a.className);
|
|
363
|
+
if (n)
|
|
364
|
+
return n[1].toLowerCase();
|
|
365
365
|
a = a.parentElement;
|
|
366
366
|
}
|
|
367
367
|
return "none";
|
|
@@ -373,8 +373,8 @@ var Q = { exports: {} };
|
|
|
373
373
|
* @param {string} language
|
|
374
374
|
* @returns {void}
|
|
375
375
|
*/
|
|
376
|
-
setLanguage: function(a,
|
|
377
|
-
a.className = a.className.replace(RegExp(p, "gi"), ""), a.classList.add("language-" +
|
|
376
|
+
setLanguage: function(a, n) {
|
|
377
|
+
a.className = a.className.replace(RegExp(p, "gi"), ""), a.classList.add("language-" + n);
|
|
378
378
|
},
|
|
379
379
|
/**
|
|
380
380
|
* Returns the script element that is currently executing.
|
|
@@ -396,10 +396,10 @@ var Q = { exports: {} };
|
|
|
396
396
|
} catch (s) {
|
|
397
397
|
var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(s.stack) || [])[1];
|
|
398
398
|
if (a) {
|
|
399
|
-
var
|
|
400
|
-
for (var i in
|
|
401
|
-
if (
|
|
402
|
-
return
|
|
399
|
+
var n = document.getElementsByTagName("script");
|
|
400
|
+
for (var i in n)
|
|
401
|
+
if (n[i].src == a)
|
|
402
|
+
return n[i];
|
|
403
403
|
}
|
|
404
404
|
return null;
|
|
405
405
|
}
|
|
@@ -423,10 +423,10 @@ var Q = { exports: {} };
|
|
|
423
423
|
* @param {boolean} [defaultActivation=false]
|
|
424
424
|
* @returns {boolean}
|
|
425
425
|
*/
|
|
426
|
-
isActive: function(a,
|
|
427
|
-
for (var s = "no-" +
|
|
426
|
+
isActive: function(a, n, i) {
|
|
427
|
+
for (var s = "no-" + n; a; ) {
|
|
428
428
|
var o = a.classList;
|
|
429
|
-
if (o.contains(
|
|
429
|
+
if (o.contains(n))
|
|
430
430
|
return !0;
|
|
431
431
|
if (o.contains(s))
|
|
432
432
|
return !1;
|
|
@@ -478,10 +478,10 @@ var Q = { exports: {} };
|
|
|
478
478
|
* 'color': /\b(?:red|green|blue)\b/
|
|
479
479
|
* });
|
|
480
480
|
*/
|
|
481
|
-
extend: function(a,
|
|
481
|
+
extend: function(a, n) {
|
|
482
482
|
var i = u.util.clone(u.languages[a]);
|
|
483
|
-
for (var s in
|
|
484
|
-
i[s] =
|
|
483
|
+
for (var s in n)
|
|
484
|
+
i[s] = n[s];
|
|
485
485
|
return i;
|
|
486
486
|
},
|
|
487
487
|
/**
|
|
@@ -559,30 +559,30 @@ var Q = { exports: {} };
|
|
|
559
559
|
* @returns {Grammar} The new grammar object.
|
|
560
560
|
* @public
|
|
561
561
|
*/
|
|
562
|
-
insertBefore: function(a,
|
|
562
|
+
insertBefore: function(a, n, i, s) {
|
|
563
563
|
s = s || /** @type {any} */
|
|
564
564
|
u.languages;
|
|
565
565
|
var o = s[a], d = {};
|
|
566
566
|
for (var g in o)
|
|
567
567
|
if (o.hasOwnProperty(g)) {
|
|
568
|
-
if (g ==
|
|
568
|
+
if (g == n)
|
|
569
569
|
for (var c in i)
|
|
570
570
|
i.hasOwnProperty(c) && (d[c] = i[c]);
|
|
571
571
|
i.hasOwnProperty(g) || (d[g] = o[g]);
|
|
572
572
|
}
|
|
573
573
|
var E = s[a];
|
|
574
|
-
return s[a] = d, u.languages.DFS(u.languages, function(S,
|
|
575
|
-
|
|
574
|
+
return s[a] = d, u.languages.DFS(u.languages, function(S, I) {
|
|
575
|
+
I === E && S != a && (this[S] = d);
|
|
576
576
|
}), d;
|
|
577
577
|
},
|
|
578
578
|
// Traverse a language definition with Depth First Search
|
|
579
|
-
DFS: function a(
|
|
579
|
+
DFS: function a(n, i, s, o) {
|
|
580
580
|
o = o || {};
|
|
581
581
|
var d = u.util.objId;
|
|
582
|
-
for (var g in
|
|
583
|
-
if (
|
|
584
|
-
i.call(
|
|
585
|
-
var c =
|
|
582
|
+
for (var g in n)
|
|
583
|
+
if (n.hasOwnProperty(g)) {
|
|
584
|
+
i.call(n, g, n[g], s || g);
|
|
585
|
+
var c = n[g], E = u.util.type(c);
|
|
586
586
|
E === "Object" && !o[d(c)] ? (o[d(c)] = !0, a(c, i, null, o)) : E === "Array" && !o[d(c)] && (o[d(c)] = !0, a(c, i, g, o));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
@@ -600,8 +600,8 @@ var Q = { exports: {} };
|
|
|
600
600
|
* @memberof Prism
|
|
601
601
|
* @public
|
|
602
602
|
*/
|
|
603
|
-
highlightAll: function(a,
|
|
604
|
-
u.highlightAllUnder(document, a,
|
|
603
|
+
highlightAll: function(a, n) {
|
|
604
|
+
u.highlightAllUnder(document, a, n);
|
|
605
605
|
},
|
|
606
606
|
/**
|
|
607
607
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -618,7 +618,7 @@ var Q = { exports: {} };
|
|
|
618
618
|
* @memberof Prism
|
|
619
619
|
* @public
|
|
620
620
|
*/
|
|
621
|
-
highlightAllUnder: function(a,
|
|
621
|
+
highlightAllUnder: function(a, n, i) {
|
|
622
622
|
var s = {
|
|
623
623
|
callback: i,
|
|
624
624
|
container: a,
|
|
@@ -626,7 +626,7 @@ var Q = { exports: {} };
|
|
|
626
626
|
};
|
|
627
627
|
u.hooks.run("before-highlightall", s), s.elements = Array.prototype.slice.apply(s.container.querySelectorAll(s.selector)), u.hooks.run("before-all-elements-highlight", s);
|
|
628
628
|
for (var o = 0, d; d = s.elements[o++]; )
|
|
629
|
-
u.highlightElement(d,
|
|
629
|
+
u.highlightElement(d, n === !0, s.callback);
|
|
630
630
|
},
|
|
631
631
|
/**
|
|
632
632
|
* Highlights the code inside a single element.
|
|
@@ -656,7 +656,7 @@ var Q = { exports: {} };
|
|
|
656
656
|
* @memberof Prism
|
|
657
657
|
* @public
|
|
658
658
|
*/
|
|
659
|
-
highlightElement: function(a,
|
|
659
|
+
highlightElement: function(a, n, i) {
|
|
660
660
|
var s = u.util.getLanguage(a), o = u.languages[s];
|
|
661
661
|
u.util.setLanguage(a, s);
|
|
662
662
|
var d = a.parentElement;
|
|
@@ -667,8 +667,8 @@ var Q = { exports: {} };
|
|
|
667
667
|
grammar: o,
|
|
668
668
|
code: g
|
|
669
669
|
};
|
|
670
|
-
function E(
|
|
671
|
-
c.highlightedCode =
|
|
670
|
+
function E(I) {
|
|
671
|
+
c.highlightedCode = I, u.hooks.run("before-insert", c), c.element.innerHTML = c.highlightedCode, u.hooks.run("after-highlight", c), u.hooks.run("complete", c), i && i.call(c.element);
|
|
672
672
|
}
|
|
673
673
|
if (u.hooks.run("before-sanity-check", c), d = c.element.parentElement, d && d.nodeName.toLowerCase() === "pre" && !d.hasAttribute("tabindex") && d.setAttribute("tabindex", "0"), !c.code) {
|
|
674
674
|
u.hooks.run("complete", c), i && i.call(c.element);
|
|
@@ -678,10 +678,10 @@ var Q = { exports: {} };
|
|
|
678
678
|
E(u.util.encode(c.code));
|
|
679
679
|
return;
|
|
680
680
|
}
|
|
681
|
-
if (
|
|
681
|
+
if (n && l.Worker) {
|
|
682
682
|
var S = new Worker(u.filename);
|
|
683
|
-
S.onmessage = function(
|
|
684
|
-
E(
|
|
683
|
+
S.onmessage = function(I) {
|
|
684
|
+
E(I.data);
|
|
685
685
|
}, S.postMessage(JSON.stringify({
|
|
686
686
|
language: c.language,
|
|
687
687
|
code: c.code,
|
|
@@ -710,10 +710,10 @@ var Q = { exports: {} };
|
|
|
710
710
|
* @example
|
|
711
711
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
712
712
|
*/
|
|
713
|
-
highlight: function(a,
|
|
713
|
+
highlight: function(a, n, i) {
|
|
714
714
|
var s = {
|
|
715
715
|
code: a,
|
|
716
|
-
grammar:
|
|
716
|
+
grammar: n,
|
|
717
717
|
language: i
|
|
718
718
|
};
|
|
719
719
|
if (u.hooks.run("before-tokenize", s), !s.grammar)
|
|
@@ -744,15 +744,15 @@ var Q = { exports: {} };
|
|
|
744
744
|
* }
|
|
745
745
|
* });
|
|
746
746
|
*/
|
|
747
|
-
tokenize: function(a,
|
|
748
|
-
var i =
|
|
747
|
+
tokenize: function(a, n) {
|
|
748
|
+
var i = n.rest;
|
|
749
749
|
if (i) {
|
|
750
750
|
for (var s in i)
|
|
751
|
-
|
|
752
|
-
delete
|
|
751
|
+
n[s] = i[s];
|
|
752
|
+
delete n.rest;
|
|
753
753
|
}
|
|
754
|
-
var o = new
|
|
755
|
-
return
|
|
754
|
+
var o = new F();
|
|
755
|
+
return x(o, o.head, a), _(a, o, n, o.head, 0), L(o);
|
|
756
756
|
},
|
|
757
757
|
/**
|
|
758
758
|
* @namespace
|
|
@@ -773,9 +773,9 @@ var Q = { exports: {} };
|
|
|
773
773
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
774
774
|
* @public
|
|
775
775
|
*/
|
|
776
|
-
add: function(a,
|
|
776
|
+
add: function(a, n) {
|
|
777
777
|
var i = u.hooks.all;
|
|
778
|
-
i[a] = i[a] || [], i[a].push(
|
|
778
|
+
i[a] = i[a] || [], i[a].push(n);
|
|
779
779
|
},
|
|
780
780
|
/**
|
|
781
781
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -786,44 +786,44 @@ var Q = { exports: {} };
|
|
|
786
786
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
787
787
|
* @public
|
|
788
788
|
*/
|
|
789
|
-
run: function(a,
|
|
789
|
+
run: function(a, n) {
|
|
790
790
|
var i = u.hooks.all[a];
|
|
791
791
|
if (!(!i || !i.length))
|
|
792
792
|
for (var s = 0, o; o = i[s++]; )
|
|
793
|
-
o(
|
|
793
|
+
o(n);
|
|
794
794
|
}
|
|
795
795
|
},
|
|
796
796
|
Token: h
|
|
797
797
|
};
|
|
798
798
|
l.Prism = u;
|
|
799
|
-
function h(a,
|
|
800
|
-
this.type = a, this.content =
|
|
799
|
+
function h(a, n, i, s) {
|
|
800
|
+
this.type = a, this.content = n, this.alias = i, this.length = (s || "").length | 0;
|
|
801
801
|
}
|
|
802
|
-
h.stringify = function a(
|
|
803
|
-
if (typeof
|
|
804
|
-
return
|
|
805
|
-
if (Array.isArray(
|
|
802
|
+
h.stringify = function a(n, i) {
|
|
803
|
+
if (typeof n == "string")
|
|
804
|
+
return n;
|
|
805
|
+
if (Array.isArray(n)) {
|
|
806
806
|
var s = "";
|
|
807
|
-
return
|
|
807
|
+
return n.forEach(function(E) {
|
|
808
808
|
s += a(E, i);
|
|
809
809
|
}), s;
|
|
810
810
|
}
|
|
811
811
|
var o = {
|
|
812
|
-
type:
|
|
813
|
-
content: a(
|
|
812
|
+
type: n.type,
|
|
813
|
+
content: a(n.content, i),
|
|
814
814
|
tag: "span",
|
|
815
|
-
classes: ["token",
|
|
815
|
+
classes: ["token", n.type],
|
|
816
816
|
attributes: {},
|
|
817
817
|
language: i
|
|
818
|
-
}, d =
|
|
818
|
+
}, d = n.alias;
|
|
819
819
|
d && (Array.isArray(d) ? Array.prototype.push.apply(o.classes, d) : o.classes.push(d)), u.hooks.run("wrap", o);
|
|
820
820
|
var g = "";
|
|
821
821
|
for (var c in o.attributes)
|
|
822
822
|
g += " " + c + '="' + (o.attributes[c] || "").replace(/"/g, """) + '"';
|
|
823
823
|
return "<" + o.tag + ' class="' + o.classes.join(" ") + '"' + g + ">" + o.content + "</" + o.tag + ">";
|
|
824
824
|
};
|
|
825
|
-
function A(a,
|
|
826
|
-
a.lastIndex =
|
|
825
|
+
function A(a, n, i, s) {
|
|
826
|
+
a.lastIndex = n;
|
|
827
827
|
var o = a.exec(i);
|
|
828
828
|
if (o && s && o[1]) {
|
|
829
829
|
var d = o[1].length;
|
|
@@ -831,7 +831,7 @@ var Q = { exports: {} };
|
|
|
831
831
|
}
|
|
832
832
|
return o;
|
|
833
833
|
}
|
|
834
|
-
function _(a,
|
|
834
|
+
function _(a, n, i, s, o, d) {
|
|
835
835
|
for (var g in i)
|
|
836
836
|
if (!(!i.hasOwnProperty(g) || !i[g])) {
|
|
837
837
|
var c = i[g];
|
|
@@ -839,14 +839,14 @@ var Q = { exports: {} };
|
|
|
839
839
|
for (var E = 0; E < c.length; ++E) {
|
|
840
840
|
if (d && d.cause == g + "," + E)
|
|
841
841
|
return;
|
|
842
|
-
var S = c[E],
|
|
842
|
+
var S = c[E], I = S.inside, X = !!S.lookbehind, Z = !!S.greedy, ee = S.alias;
|
|
843
843
|
if (Z && !S.pattern.global) {
|
|
844
844
|
var te = S.pattern.toString().match(/[imsuy]*$/)[0];
|
|
845
845
|
S.pattern = RegExp(S.pattern.source, te + "g");
|
|
846
846
|
}
|
|
847
|
-
for (var K = S.pattern || S, T = s.next, k = o; T !==
|
|
847
|
+
for (var K = S.pattern || S, T = s.next, k = o; T !== n.tail && !(d && k >= d.reach); k += T.value.length, T = T.next) {
|
|
848
848
|
var C = T.value;
|
|
849
|
-
if (
|
|
849
|
+
if (n.length > a.length)
|
|
850
850
|
return;
|
|
851
851
|
if (!(C instanceof h)) {
|
|
852
852
|
var N = 1, w;
|
|
@@ -858,63 +858,63 @@ var Q = { exports: {} };
|
|
|
858
858
|
T = T.next, R += T.value.length;
|
|
859
859
|
if (R -= T.value.length, k = R, T.value instanceof h)
|
|
860
860
|
continue;
|
|
861
|
-
for (var
|
|
862
|
-
N++, R +=
|
|
861
|
+
for (var O = T; O !== n.tail && (R < re || typeof O.value == "string"); O = O.next)
|
|
862
|
+
N++, R += O.value.length;
|
|
863
863
|
N--, C = a.slice(k, R), w.index -= k;
|
|
864
864
|
} else if (w = A(K, 0, C, X), !w)
|
|
865
865
|
continue;
|
|
866
866
|
var D = w.index, P = w[0], H = C.slice(0, D), V = C.slice(D + P.length), B = k + C.length;
|
|
867
867
|
d && B > d.reach && (d.reach = B);
|
|
868
868
|
var $ = T.prev;
|
|
869
|
-
H && ($ =
|
|
870
|
-
var ne = new h(g,
|
|
871
|
-
if (T =
|
|
869
|
+
H && ($ = x(n, $, H), k += H.length), U(n, $, N);
|
|
870
|
+
var ne = new h(g, I ? u.tokenize(P, I) : P, ee, P);
|
|
871
|
+
if (T = x(n, $, ne), V && x(n, T, V), N > 1) {
|
|
872
872
|
var G = {
|
|
873
873
|
cause: g + "," + E,
|
|
874
874
|
reach: B
|
|
875
875
|
};
|
|
876
|
-
_(a,
|
|
876
|
+
_(a, n, i, T.prev, k, G), d && G.reach > d.reach && (d.reach = G.reach);
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
var a = { value: null, prev: null, next: null },
|
|
885
|
-
a.next =
|
|
883
|
+
function F() {
|
|
884
|
+
var a = { value: null, prev: null, next: null }, n = { value: null, prev: a, next: null };
|
|
885
|
+
a.next = n, this.head = a, this.tail = n, this.length = 0;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
var s =
|
|
889
|
-
return
|
|
887
|
+
function x(a, n, i) {
|
|
888
|
+
var s = n.next, o = { value: i, prev: n, next: s };
|
|
889
|
+
return n.next = o, s.prev = o, a.length++, o;
|
|
890
890
|
}
|
|
891
|
-
function U(a,
|
|
892
|
-
for (var s =
|
|
891
|
+
function U(a, n, i) {
|
|
892
|
+
for (var s = n.next, o = 0; o < i && s !== a.tail; o++)
|
|
893
893
|
s = s.next;
|
|
894
|
-
|
|
894
|
+
n.next = s, s.prev = n, a.length -= o;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
897
|
-
for (var
|
|
898
|
-
|
|
899
|
-
return
|
|
896
|
+
function L(a) {
|
|
897
|
+
for (var n = [], i = a.head.next; i !== a.tail; )
|
|
898
|
+
n.push(i.value), i = i.next;
|
|
899
|
+
return n;
|
|
900
900
|
}
|
|
901
901
|
if (!l.document)
|
|
902
902
|
return l.addEventListener && (u.disableWorkerMessageHandler || l.addEventListener("message", function(a) {
|
|
903
|
-
var
|
|
903
|
+
var n = JSON.parse(a.data), i = n.language, s = n.code, o = n.immediateClose;
|
|
904
904
|
l.postMessage(u.highlight(s, u.languages[i], i)), o && l.close();
|
|
905
905
|
}, !1)), u;
|
|
906
906
|
var v = u.util.currentScript();
|
|
907
907
|
v && (u.filename = v.src, v.hasAttribute("data-manual") && (u.manual = !0));
|
|
908
|
-
function
|
|
908
|
+
function m() {
|
|
909
909
|
u.manual || u.highlightAll();
|
|
910
910
|
}
|
|
911
911
|
if (!u.manual) {
|
|
912
912
|
var y = document.readyState;
|
|
913
|
-
y === "loading" || y === "interactive" && v && v.defer ? document.addEventListener("DOMContentLoaded",
|
|
913
|
+
y === "loading" || y === "interactive" && v && v.defer ? document.addEventListener("DOMContentLoaded", m) : window.requestAnimationFrame ? window.requestAnimationFrame(m) : window.setTimeout(m, 16);
|
|
914
914
|
}
|
|
915
915
|
return u;
|
|
916
916
|
}(e);
|
|
917
|
-
|
|
917
|
+
r.exports && (r.exports = t), typeof J < "u" && (J.Prism = t), t.languages.markup = {
|
|
918
918
|
comment: {
|
|
919
919
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
920
920
|
greedy: !0
|
|
@@ -1005,12 +1005,12 @@ var Q = { exports: {} };
|
|
|
1005
1005
|
* @example
|
|
1006
1006
|
* addInlined('style', 'css');
|
|
1007
1007
|
*/
|
|
1008
|
-
value: function(p,
|
|
1008
|
+
value: function(p, f) {
|
|
1009
1009
|
var b = {};
|
|
1010
|
-
b["language-" +
|
|
1010
|
+
b["language-" + f] = {
|
|
1011
1011
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
1012
1012
|
lookbehind: !0,
|
|
1013
|
-
inside: t.languages[
|
|
1013
|
+
inside: t.languages[f]
|
|
1014
1014
|
}, b.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
1015
1015
|
var u = {
|
|
1016
1016
|
"included-cdata": {
|
|
@@ -1018,9 +1018,9 @@ var Q = { exports: {} };
|
|
|
1018
1018
|
inside: b
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
|
-
u["language-" +
|
|
1021
|
+
u["language-" + f] = {
|
|
1022
1022
|
pattern: /[\s\S]+/,
|
|
1023
|
-
inside: t.languages[
|
|
1023
|
+
inside: t.languages[f]
|
|
1024
1024
|
};
|
|
1025
1025
|
var h = {};
|
|
1026
1026
|
h[p] = {
|
|
@@ -1126,8 +1126,8 @@ var Q = { exports: {} };
|
|
|
1126
1126
|
},
|
|
1127
1127
|
punctuation: /[(){};:,]/
|
|
1128
1128
|
}, l.languages.css.atrule.inside.rest = l.languages.css;
|
|
1129
|
-
var
|
|
1130
|
-
|
|
1129
|
+
var f = l.languages.markup;
|
|
1130
|
+
f && (f.tag.addInlined("style", "css"), f.tag.addAttribute("style", "css"));
|
|
1131
1131
|
}(t), t.languages.clike = {
|
|
1132
1132
|
comment: [
|
|
1133
1133
|
{
|
|
@@ -1292,9 +1292,9 @@ var Q = { exports: {} };
|
|
|
1292
1292
|
if (typeof t > "u" || typeof document > "u")
|
|
1293
1293
|
return;
|
|
1294
1294
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
1295
|
-
var l = "Loading…", p = function(v,
|
|
1296
|
-
return "✖ Error " + v + " while fetching file: " +
|
|
1297
|
-
},
|
|
1295
|
+
var l = "Loading…", p = function(v, m) {
|
|
1296
|
+
return "✖ Error " + v + " while fetching file: " + m;
|
|
1297
|
+
}, f = "✖ Error: File does not exist or is empty", b = {
|
|
1298
1298
|
js: "javascript",
|
|
1299
1299
|
py: "python",
|
|
1300
1300
|
rb: "ruby",
|
|
@@ -1304,52 +1304,52 @@ var Q = { exports: {} };
|
|
|
1304
1304
|
bat: "batch",
|
|
1305
1305
|
h: "c",
|
|
1306
1306
|
tex: "latex"
|
|
1307
|
-
}, u = "data-src-status", h = "loading", A = "loaded", _ = "failed",
|
|
1308
|
-
function
|
|
1307
|
+
}, u = "data-src-status", h = "loading", A = "loaded", _ = "failed", F = "pre[data-src]:not([" + u + '="' + A + '"]):not([' + u + '="' + h + '"])';
|
|
1308
|
+
function x(v, m, y) {
|
|
1309
1309
|
var a = new XMLHttpRequest();
|
|
1310
1310
|
a.open("GET", v, !0), a.onreadystatechange = function() {
|
|
1311
|
-
a.readyState == 4 && (a.status < 400 && a.responseText ?
|
|
1311
|
+
a.readyState == 4 && (a.status < 400 && a.responseText ? m(a.responseText) : a.status >= 400 ? y(p(a.status, a.statusText)) : y(f));
|
|
1312
1312
|
}, a.send(null);
|
|
1313
1313
|
}
|
|
1314
1314
|
function U(v) {
|
|
1315
|
-
var
|
|
1316
|
-
if (
|
|
1317
|
-
var y = Number(
|
|
1318
|
-
return a ?
|
|
1315
|
+
var m = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v || "");
|
|
1316
|
+
if (m) {
|
|
1317
|
+
var y = Number(m[1]), a = m[2], n = m[3];
|
|
1318
|
+
return a ? n ? [y, Number(n)] : [y, void 0] : [y, y];
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
t.hooks.add("before-highlightall", function(v) {
|
|
1322
|
-
v.selector += ", " +
|
|
1322
|
+
v.selector += ", " + F;
|
|
1323
1323
|
}), t.hooks.add("before-sanity-check", function(v) {
|
|
1324
|
-
var
|
|
1324
|
+
var m = (
|
|
1325
1325
|
/** @type {HTMLPreElement} */
|
|
1326
1326
|
v.element
|
|
1327
1327
|
);
|
|
1328
|
-
if (
|
|
1329
|
-
v.code = "",
|
|
1330
|
-
var y =
|
|
1328
|
+
if (m.matches(F)) {
|
|
1329
|
+
v.code = "", m.setAttribute(u, h);
|
|
1330
|
+
var y = m.appendChild(document.createElement("CODE"));
|
|
1331
1331
|
y.textContent = l;
|
|
1332
|
-
var a =
|
|
1333
|
-
if (
|
|
1332
|
+
var a = m.getAttribute("data-src"), n = v.language;
|
|
1333
|
+
if (n === "none") {
|
|
1334
1334
|
var i = (/\.(\w+)$/.exec(a) || [, "none"])[1];
|
|
1335
|
-
|
|
1335
|
+
n = b[i] || i;
|
|
1336
1336
|
}
|
|
1337
|
-
t.util.setLanguage(y,
|
|
1337
|
+
t.util.setLanguage(y, n), t.util.setLanguage(m, n);
|
|
1338
1338
|
var s = t.plugins.autoloader;
|
|
1339
|
-
s && s.loadLanguages(
|
|
1339
|
+
s && s.loadLanguages(n), x(
|
|
1340
1340
|
a,
|
|
1341
1341
|
function(o) {
|
|
1342
|
-
|
|
1343
|
-
var d = U(
|
|
1342
|
+
m.setAttribute(u, A);
|
|
1343
|
+
var d = U(m.getAttribute("data-range"));
|
|
1344
1344
|
if (d) {
|
|
1345
1345
|
var g = o.split(/\r\n?|\n/g), c = d[0], E = d[1] == null ? g.length : d[1];
|
|
1346
1346
|
c < 0 && (c += g.length), c = Math.max(0, Math.min(c - 1, g.length)), E < 0 && (E += g.length), E = Math.max(0, Math.min(E, g.length)), o = g.slice(c, E).join(`
|
|
1347
|
-
`),
|
|
1347
|
+
`), m.hasAttribute("data-start") || m.setAttribute("data-start", String(c + 1));
|
|
1348
1348
|
}
|
|
1349
1349
|
y.textContent = o, t.highlightElement(y);
|
|
1350
1350
|
},
|
|
1351
1351
|
function(o) {
|
|
1352
|
-
|
|
1352
|
+
m.setAttribute(u, _), y.textContent = o;
|
|
1353
1353
|
}
|
|
1354
1354
|
);
|
|
1355
1355
|
}
|
|
@@ -1361,14 +1361,14 @@ var Q = { exports: {} };
|
|
|
1361
1361
|
*
|
|
1362
1362
|
* @param {ParentNode} [container=document]
|
|
1363
1363
|
*/
|
|
1364
|
-
highlight: function(
|
|
1365
|
-
for (var y = (
|
|
1366
|
-
t.highlightElement(
|
|
1364
|
+
highlight: function(m) {
|
|
1365
|
+
for (var y = (m || document).querySelectorAll(F), a = 0, n; n = y[a++]; )
|
|
1366
|
+
t.highlightElement(n);
|
|
1367
1367
|
}
|
|
1368
1368
|
};
|
|
1369
|
-
var
|
|
1369
|
+
var L = !1;
|
|
1370
1370
|
t.fileHighlight = function() {
|
|
1371
|
-
|
|
1371
|
+
L || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), L = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
1372
1372
|
};
|
|
1373
1373
|
}();
|
|
1374
1374
|
})(Q);
|
|
@@ -1631,7 +1631,7 @@ Prism.languages.insertBefore("go", "string", {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
});
|
|
1633
1633
|
delete Prism.languages.go["class-name"];
|
|
1634
|
-
(function(
|
|
1634
|
+
(function(r) {
|
|
1635
1635
|
var e = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, t = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, l = {
|
|
1636
1636
|
pattern: RegExp(/(^|[^\w.])/.source + t + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
|
|
1637
1637
|
lookbehind: !0,
|
|
@@ -1645,7 +1645,7 @@ delete Prism.languages.go["class-name"];
|
|
|
1645
1645
|
punctuation: /\./
|
|
1646
1646
|
}
|
|
1647
1647
|
};
|
|
1648
|
-
|
|
1648
|
+
r.languages.java = r.languages.extend("clike", {
|
|
1649
1649
|
string: {
|
|
1650
1650
|
pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,
|
|
1651
1651
|
lookbehind: !0,
|
|
@@ -1670,7 +1670,7 @@ delete Prism.languages.go["class-name"];
|
|
|
1670
1670
|
],
|
|
1671
1671
|
keyword: e,
|
|
1672
1672
|
function: [
|
|
1673
|
-
|
|
1673
|
+
r.languages.clike.function,
|
|
1674
1674
|
{
|
|
1675
1675
|
pattern: /(::\s*)[a-z_]\w*/,
|
|
1676
1676
|
lookbehind: !0
|
|
@@ -1682,7 +1682,7 @@ delete Prism.languages.go["class-name"];
|
|
|
1682
1682
|
lookbehind: !0
|
|
1683
1683
|
},
|
|
1684
1684
|
constant: /\b[A-Z][A-Z_\d]+\b/
|
|
1685
|
-
}),
|
|
1685
|
+
}), r.languages.insertBefore("java", "string", {
|
|
1686
1686
|
"triple-quoted-string": {
|
|
1687
1687
|
// http://openjdk.java.net/jeps/355#Description
|
|
1688
1688
|
pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
|
|
@@ -1693,7 +1693,7 @@ delete Prism.languages.go["class-name"];
|
|
|
1693
1693
|
pattern: /'(?:\\.|[^'\\\r\n]){1,6}'/,
|
|
1694
1694
|
greedy: !0
|
|
1695
1695
|
}
|
|
1696
|
-
}),
|
|
1696
|
+
}), r.languages.insertBefore("java", "class-name", {
|
|
1697
1697
|
annotation: {
|
|
1698
1698
|
pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
|
|
1699
1699
|
lookbehind: !0,
|
|
@@ -1821,14 +1821,14 @@ Prism.languages.insertBefore("c", "function", {
|
|
|
1821
1821
|
constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/
|
|
1822
1822
|
});
|
|
1823
1823
|
delete Prism.languages.c.boolean;
|
|
1824
|
-
(function(
|
|
1824
|
+
(function(r) {
|
|
1825
1825
|
for (var e = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, t = 0; t < 2; t++)
|
|
1826
1826
|
e = e.replace(/<self>/g, function() {
|
|
1827
1827
|
return e;
|
|
1828
1828
|
});
|
|
1829
1829
|
e = e.replace(/<self>/g, function() {
|
|
1830
1830
|
return /[^\s\S]/.source;
|
|
1831
|
-
}),
|
|
1831
|
+
}), r.languages.rust = {
|
|
1832
1832
|
comment: [
|
|
1833
1833
|
{
|
|
1834
1834
|
pattern: RegExp(/(^|[^\\])/.source + e),
|
|
@@ -1935,7 +1935,7 @@ delete Prism.languages.c.boolean;
|
|
|
1935
1935
|
boolean: /\b(?:false|true)\b/,
|
|
1936
1936
|
punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
|
|
1937
1937
|
operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
|
|
1938
|
-
},
|
|
1938
|
+
}, r.languages.rust["closure-params"].inside.rest = r.languages.rust, r.languages.rust.attribute.inside.string = r.languages.rust.string;
|
|
1939
1939
|
})(Prism);
|
|
1940
1940
|
Prism.languages.sql = {
|
|
1941
1941
|
comment: {
|
|
@@ -1970,7 +1970,7 @@ Prism.languages.sql = {
|
|
|
1970
1970
|
operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
|
|
1971
1971
|
punctuation: /[;[\]()`,.]/
|
|
1972
1972
|
};
|
|
1973
|
-
(function(
|
|
1973
|
+
(function(r) {
|
|
1974
1974
|
var e = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", t = {
|
|
1975
1975
|
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
1976
1976
|
lookbehind: !0,
|
|
@@ -2032,7 +2032,7 @@ Prism.languages.sql = {
|
|
|
2032
2032
|
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
2033
2033
|
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
2034
2034
|
};
|
|
2035
|
-
|
|
2035
|
+
r.languages.bash = {
|
|
2036
2036
|
shebang: {
|
|
2037
2037
|
pattern: /^#!\s*\/.*/,
|
|
2038
2038
|
alias: "important"
|
|
@@ -2168,7 +2168,7 @@ Prism.languages.sql = {
|
|
|
2168
2168
|
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
2169
2169
|
lookbehind: !0
|
|
2170
2170
|
}
|
|
2171
|
-
}, t.inside =
|
|
2171
|
+
}, t.inside = r.languages.bash;
|
|
2172
2172
|
for (var p = [
|
|
2173
2173
|
"comment",
|
|
2174
2174
|
"function-name",
|
|
@@ -2185,9 +2185,9 @@ Prism.languages.sql = {
|
|
|
2185
2185
|
"operator",
|
|
2186
2186
|
"punctuation",
|
|
2187
2187
|
"number"
|
|
2188
|
-
],
|
|
2189
|
-
|
|
2190
|
-
|
|
2188
|
+
], f = l.variable[1].inside, b = 0; b < p.length; b++)
|
|
2189
|
+
f[p[b]] = r.languages.bash[p[b]];
|
|
2190
|
+
r.languages.sh = r.languages.bash, r.languages.shell = r.languages.bash;
|
|
2191
2191
|
})(Prism);
|
|
2192
2192
|
Prism.languages.json = {
|
|
2193
2193
|
property: {
|
|
@@ -2376,10 +2376,10 @@ const ce = `
|
|
|
2376
2376
|
color: #333 !important;
|
|
2377
2377
|
}
|
|
2378
2378
|
`;
|
|
2379
|
-
function Y(
|
|
2380
|
-
var h = typeof
|
|
2381
|
-
return e && (h.render = e, h.staticRenderFns = t, h._compiled = !0),
|
|
2382
|
-
exports:
|
|
2379
|
+
function Y(r, e, t, l, p, f, b, u) {
|
|
2380
|
+
var h = typeof r == "function" ? r.options : r;
|
|
2381
|
+
return e && (h.render = e, h.staticRenderFns = t, h._compiled = !0), f && (h._scopeId = "data-v-" + f), {
|
|
2382
|
+
exports: r,
|
|
2383
2383
|
options: h
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
@@ -2413,8 +2413,8 @@ const pe = {
|
|
|
2413
2413
|
this.loadPrismTheme(this.theme);
|
|
2414
2414
|
},
|
|
2415
2415
|
watch: {
|
|
2416
|
-
theme(
|
|
2417
|
-
this.loadPrismTheme(
|
|
2416
|
+
theme(r) {
|
|
2417
|
+
this.loadPrismTheme(r);
|
|
2418
2418
|
}
|
|
2419
2419
|
},
|
|
2420
2420
|
computed: {
|
|
@@ -2460,11 +2460,11 @@ const pe = {
|
|
|
2460
2460
|
},
|
|
2461
2461
|
highlightedCode: function() {
|
|
2462
2462
|
try {
|
|
2463
|
-
var
|
|
2464
|
-
if (
|
|
2463
|
+
var r = j.languages[this.prismLanguage];
|
|
2464
|
+
if (r)
|
|
2465
2465
|
return j.highlight(
|
|
2466
2466
|
this.value || "",
|
|
2467
|
-
|
|
2467
|
+
r,
|
|
2468
2468
|
this.prismLanguage
|
|
2469
2469
|
);
|
|
2470
2470
|
} catch {
|
|
@@ -2473,27 +2473,27 @@ const pe = {
|
|
|
2473
2473
|
}
|
|
2474
2474
|
},
|
|
2475
2475
|
methods: {
|
|
2476
|
-
loadPrismTheme(
|
|
2477
|
-
const e = "hep-cr-prism-styles", t = document.getElementById(e), l =
|
|
2476
|
+
loadPrismTheme(r) {
|
|
2477
|
+
const e = "hep-cr-prism-styles", t = document.getElementById(e), l = r === "dark" ? ce : de;
|
|
2478
2478
|
t && t.remove();
|
|
2479
2479
|
const p = document.createElement("style");
|
|
2480
2480
|
p.id = e, p.textContent = l, document.head.appendChild(p);
|
|
2481
2481
|
},
|
|
2482
|
-
escapeHtml: function(
|
|
2482
|
+
escapeHtml: function(r) {
|
|
2483
2483
|
var e = document.createElement("div");
|
|
2484
|
-
return e.textContent =
|
|
2484
|
+
return e.textContent = r, e.innerHTML;
|
|
2485
2485
|
},
|
|
2486
|
-
handleInput: function(
|
|
2487
|
-
this.$emit("input",
|
|
2486
|
+
handleInput: function(r) {
|
|
2487
|
+
this.$emit("input", r.target.value), this.$emit("update:value", r.target.value);
|
|
2488
2488
|
},
|
|
2489
|
-
handleScroll: function(
|
|
2489
|
+
handleScroll: function(r) {
|
|
2490
2490
|
var e = this.$refs.highlightRef;
|
|
2491
|
-
e && (e.scrollTop =
|
|
2491
|
+
e && (e.scrollTop = r.target.scrollTop, e.scrollLeft = r.target.scrollLeft);
|
|
2492
2492
|
},
|
|
2493
|
-
handleKeydown: function(
|
|
2494
|
-
if (
|
|
2495
|
-
|
|
2496
|
-
var e =
|
|
2493
|
+
handleKeydown: function(r) {
|
|
2494
|
+
if (r.key === "Tab") {
|
|
2495
|
+
r.preventDefault();
|
|
2496
|
+
var e = r.target, t = e.selectionStart, l = e.selectionEnd, p = e.value;
|
|
2497
2497
|
e.value = p.substring(0, t) + " " + p.substring(l), e.selectionStart = e.selectionEnd = t + 2, this.$emit("input", e.value), this.$emit("update:value", e.value);
|
|
2498
2498
|
}
|
|
2499
2499
|
}
|
|
@@ -2502,7 +2502,7 @@ const pe = {
|
|
|
2502
2502
|
var ge = function() {
|
|
2503
2503
|
var e = this, t = e._self._c;
|
|
2504
2504
|
return t("div", { staticClass: "hep-cr-editor", class: "hep-cr-theme-" + e.theme, style: { background: e.editorBackground } }, [t("pre", { ref: "highlightRef", staticClass: "hep-cr-highlight", class: "language-" + e.prismLanguage, attrs: { "aria-hidden": "true" } }, [t("code", { domProps: { innerHTML: e._s(e.highlightedCode) } })]), t("textarea", { staticClass: "hep-cr-input", attrs: { disabled: e.disabled, spellcheck: "false", placeholder: "Write your code here..." }, domProps: { value: e.value }, on: { input: e.handleInput, scroll: e.handleScroll, keydown: e.handleKeydown } })]);
|
|
2505
|
-
}, he = [],
|
|
2505
|
+
}, he = [], fe = /* @__PURE__ */ Y(
|
|
2506
2506
|
pe,
|
|
2507
2507
|
ge,
|
|
2508
2508
|
he,
|
|
@@ -2510,10 +2510,10 @@ var ge = function() {
|
|
|
2510
2510
|
null,
|
|
2511
2511
|
"54283826"
|
|
2512
2512
|
);
|
|
2513
|
-
const
|
|
2513
|
+
const me = fe.exports, be = {
|
|
2514
2514
|
name: "CodeRunner",
|
|
2515
2515
|
components: {
|
|
2516
|
-
CodeEditor:
|
|
2516
|
+
CodeEditor: me
|
|
2517
2517
|
},
|
|
2518
2518
|
props: {
|
|
2519
2519
|
pistonUrl: {
|
|
@@ -2527,8 +2527,8 @@ const fe = me.exports, be = {
|
|
|
2527
2527
|
theme: {
|
|
2528
2528
|
type: String,
|
|
2529
2529
|
default: "light",
|
|
2530
|
-
validator: function(
|
|
2531
|
-
return ["light", "dark"].indexOf(
|
|
2530
|
+
validator: function(r) {
|
|
2531
|
+
return ["light", "dark"].indexOf(r) !== -1;
|
|
2532
2532
|
}
|
|
2533
2533
|
},
|
|
2534
2534
|
showLanguageSelector: {
|
|
@@ -2557,7 +2557,7 @@ const fe = me.exports, be = {
|
|
|
2557
2557
|
runtimes: [],
|
|
2558
2558
|
currentLanguage: this.language,
|
|
2559
2559
|
currentTheme: this.theme,
|
|
2560
|
-
code: this.defaultCode ||
|
|
2560
|
+
code: this.defaultCode || W(this.language),
|
|
2561
2561
|
output: "",
|
|
2562
2562
|
stderr: "",
|
|
2563
2563
|
isRunning: !1,
|
|
@@ -2566,7 +2566,9 @@ const fe = me.exports, be = {
|
|
|
2566
2566
|
error: null,
|
|
2567
2567
|
runtimesLoading: !1,
|
|
2568
2568
|
client: null,
|
|
2569
|
-
editorWidth: 60
|
|
2569
|
+
editorWidth: 60,
|
|
2570
|
+
copiedEditor: !1,
|
|
2571
|
+
copiedOutput: !1
|
|
2570
2572
|
};
|
|
2571
2573
|
},
|
|
2572
2574
|
computed: {
|
|
@@ -2574,22 +2576,22 @@ const fe = me.exports, be = {
|
|
|
2574
2576
|
return "hep-cr-runner-" + this.currentTheme;
|
|
2575
2577
|
},
|
|
2576
2578
|
languageOptions: function() {
|
|
2577
|
-
return this.runtimes.map(function(
|
|
2579
|
+
return this.runtimes.map(function(r) {
|
|
2578
2580
|
return {
|
|
2579
|
-
value:
|
|
2580
|
-
label:
|
|
2581
|
+
value: r.language + ":" + r.version,
|
|
2582
|
+
label: r.language.charAt(0).toUpperCase() + r.language.slice(1) + " " + r.version
|
|
2581
2583
|
};
|
|
2582
2584
|
});
|
|
2583
2585
|
},
|
|
2584
2586
|
languageName: function() {
|
|
2585
|
-
var
|
|
2586
|
-
return
|
|
2587
|
+
var r = this.currentLanguage;
|
|
2588
|
+
return r.includes(":") ? r.split(":")[0] : r;
|
|
2587
2589
|
}
|
|
2588
2590
|
},
|
|
2589
2591
|
watch: {
|
|
2590
|
-
currentLanguage: function(
|
|
2591
|
-
var e =
|
|
2592
|
-
this.code =
|
|
2592
|
+
currentLanguage: function(r) {
|
|
2593
|
+
var e = r.includes(":") ? r.split(":")[0] : r;
|
|
2594
|
+
this.code = W(e), this.$emit("language-change", e, this.code);
|
|
2593
2595
|
}
|
|
2594
2596
|
},
|
|
2595
2597
|
mounted: function() {
|
|
@@ -2597,48 +2599,60 @@ const fe = me.exports, be = {
|
|
|
2597
2599
|
},
|
|
2598
2600
|
methods: {
|
|
2599
2601
|
loadRuntimes: function() {
|
|
2600
|
-
var
|
|
2602
|
+
var r = this;
|
|
2601
2603
|
this.runtimesLoading = !0, this.error = null, this.client.getRuntimes().then(function(e) {
|
|
2602
|
-
|
|
2604
|
+
r.runtimes = e;
|
|
2605
|
+
var t = r.currentLanguage.split(":")[0], l = e.find(function(p) {
|
|
2606
|
+
return p.language === t;
|
|
2607
|
+
});
|
|
2608
|
+
l && !r.currentLanguage.includes(":") && (r.currentLanguage = t + ":" + l.version);
|
|
2603
2609
|
}).catch(function(e) {
|
|
2604
|
-
|
|
2610
|
+
r.error = e.message || "Failed to load runtimes";
|
|
2605
2611
|
}).finally(function() {
|
|
2606
|
-
|
|
2612
|
+
r.runtimesLoading = !1;
|
|
2607
2613
|
});
|
|
2608
2614
|
},
|
|
2609
2615
|
execute: function() {
|
|
2610
|
-
var
|
|
2616
|
+
var r = this;
|
|
2611
2617
|
this.isRunning || (this.isRunning = !0, this.output = "", this.stderr = "", this.executionTime = null, this.error = null, this.activeTab = "stdout", this.$emit("execute-start"), this.client.execute(this.languageName, this.code).then(function(e) {
|
|
2612
|
-
|
|
2618
|
+
r.output = e.output, r.stderr = e.stderr, r.executionTime = e.executionTime || null, r.activeTab = e.stderr ? "stderr" : "stdout", r.$emit("execute-end", e);
|
|
2613
2619
|
}).catch(function(e) {
|
|
2614
|
-
|
|
2620
|
+
r.error = e.message || "Execution failed", r.$emit("execute-end", {
|
|
2615
2621
|
success: !1,
|
|
2616
2622
|
output: "",
|
|
2617
|
-
stderr:
|
|
2623
|
+
stderr: r.error,
|
|
2618
2624
|
code: -1
|
|
2619
2625
|
});
|
|
2620
2626
|
}).finally(function() {
|
|
2621
|
-
|
|
2627
|
+
r.isRunning = !1;
|
|
2622
2628
|
}));
|
|
2623
2629
|
},
|
|
2624
2630
|
clearOutput: function() {
|
|
2625
2631
|
this.output = "", this.stderr = "", this.executionTime = null, this.error = null;
|
|
2626
2632
|
},
|
|
2633
|
+
copyCode: function() {
|
|
2634
|
+
var r = this;
|
|
2635
|
+
navigator.clipboard.writeText(this.code), this.copiedEditor = !0, setTimeout(function() {
|
|
2636
|
+
r.copiedEditor = !1;
|
|
2637
|
+
}, 2e3);
|
|
2638
|
+
},
|
|
2627
2639
|
copyOutput: function() {
|
|
2628
|
-
var
|
|
2629
|
-
navigator.clipboard.writeText(
|
|
2640
|
+
var r = this, e = this.activeTab === "stdout" ? this.output : this.stderr;
|
|
2641
|
+
navigator.clipboard.writeText(e), this.copiedOutput = !0, setTimeout(function() {
|
|
2642
|
+
r.copiedOutput = !1;
|
|
2643
|
+
}, 2e3);
|
|
2630
2644
|
},
|
|
2631
2645
|
resetCode: function() {
|
|
2632
|
-
this.code =
|
|
2646
|
+
this.code = W(this.languageName);
|
|
2633
2647
|
},
|
|
2634
2648
|
toggleTheme: function() {
|
|
2635
2649
|
this.currentTheme = this.currentTheme === "light" ? "dark" : "light";
|
|
2636
2650
|
},
|
|
2637
|
-
startDrag: function(
|
|
2651
|
+
startDrag: function(r) {
|
|
2638
2652
|
var e = this, t = document.querySelector(".hep-cr-runner-main");
|
|
2639
2653
|
if (t) {
|
|
2640
|
-
var l = function(
|
|
2641
|
-
var b = t.getBoundingClientRect(), u = (
|
|
2654
|
+
var l = function(f) {
|
|
2655
|
+
var b = t.getBoundingClientRect(), u = (f.clientX - b.left) / b.width * 100;
|
|
2642
2656
|
e.editorWidth = Math.max(20, Math.min(80, u));
|
|
2643
2657
|
}, p = function() {
|
|
2644
2658
|
document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", p), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
@@ -2651,29 +2665,29 @@ const fe = me.exports, be = {
|
|
|
2651
2665
|
var Ee = function() {
|
|
2652
2666
|
var e = this, t = e._self._c;
|
|
2653
2667
|
return t("div", { class: ["hep-cr-runner", e.themeClass] }, [t("div", { staticClass: "hep-cr-runner-header" }, [t("div", { staticClass: "hep-cr-runner-controls" }, [e.showLanguageSelector ? t("select", { directives: [{ name: "model", rawName: "v-model", value: e.currentLanguage, expression: "currentLanguage" }], staticClass: "hep-cr-language-select", attrs: { disabled: e.isRunning }, on: { change: function(l) {
|
|
2654
|
-
var p = Array.prototype.filter.call(l.target.options, function(
|
|
2655
|
-
return
|
|
2656
|
-
}).map(function(
|
|
2657
|
-
var b = "_value" in
|
|
2668
|
+
var p = Array.prototype.filter.call(l.target.options, function(f) {
|
|
2669
|
+
return f.selected;
|
|
2670
|
+
}).map(function(f) {
|
|
2671
|
+
var b = "_value" in f ? f._value : f.value;
|
|
2658
2672
|
return b;
|
|
2659
2673
|
});
|
|
2660
2674
|
e.currentLanguage = l.target.multiple ? p : p[0];
|
|
2661
2675
|
} } }, [e.runtimesLoading ? t("option", { attrs: { value: "" } }, [e._v("加载中...")]) : e._e(), e._l(e.languageOptions, function(l) {
|
|
2662
2676
|
return t("option", { key: l.value, domProps: { value: l.value } }, [e._v(" " + e._s(l.label) + " ")]);
|
|
2663
|
-
})], 2) : e._e()]), t("div", { staticClass: "hep-cr-runner-actions" }, [t("button", { staticClass: "hep-cr-btn hep-cr-btn-run", attrs: { disabled: e.isRunning || e.runtimesLoading }, on: { click: e.execute } }, [e.isRunning ? t("span", { staticClass: "hep-cr-spinner" }) : t("span", { staticClass: "hep-cr-run-icon" }, [e._v("▶")]), e._v(" " + e._s(e.isRunning ? "运行中..." : e.executorLabel) + " ")]), e.showEditor && e.editable ? t("button", { staticClass: "hep-cr-btn hep-cr-btn-reset", on: { click: e.resetCode } }, [e._v(" 重置 ")]) : e._e(), t("button", { staticClass: "hep-cr-btn hep-cr-btn-theme", attrs: { title: e.currentTheme === "light" ? "Switch to dark mode" : "Switch to light mode" }, on: { click: e.toggleTheme } }, [e.
|
|
2677
|
+
})], 2) : e._e()]), t("div", { staticClass: "hep-cr-runner-actions" }, [t("button", { staticClass: "hep-cr-btn hep-cr-btn-run", attrs: { disabled: e.isRunning || e.runtimesLoading }, on: { click: e.execute } }, [e.isRunning ? t("span", { staticClass: "hep-cr-spinner" }) : t("span", { staticClass: "hep-cr-run-icon" }, [e._v("▶")]), e._v(" " + e._s(e.isRunning ? "运行中..." : e.executorLabel) + " ")]), e.showEditor && e.editable ? t("button", { staticClass: "hep-cr-btn hep-cr-btn-reset", on: { click: e.resetCode } }, [e._v(" 重置 ")]) : e._e(), t("button", { staticClass: "hep-cr-btn hep-cr-btn-theme", attrs: { title: e.currentTheme === "light" ? "Switch to dark mode" : "Switch to light mode" }, on: { click: e.toggleTheme } }, [e.currentTheme === "light" ? t("svg", { attrs: { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" } }, [t("path", { attrs: { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" } })]) : t("svg", { attrs: { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" } }, [t("circle", { attrs: { cx: "12", cy: "12", r: "5" } }), t("line", { attrs: { x1: "12", y1: "1", x2: "12", y2: "3" } }), t("line", { attrs: { x1: "12", y1: "21", x2: "12", y2: "23" } }), t("line", { attrs: { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" } }), t("line", { attrs: { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" } }), t("line", { attrs: { x1: "1", y1: "12", x2: "3", y2: "12" } }), t("line", { attrs: { x1: "21", y1: "12", x2: "23", y2: "12" } }), t("line", { attrs: { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" } }), t("line", { attrs: { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" } })])])])]), e.error ? t("div", { staticClass: "hep-cr-error-message" }, [e._v(" " + e._s(e.error) + " ")]) : e._e(), t("div", { staticClass: "hep-cr-runner-main" }, [e.showEditor ? t("div", { staticClass: "hep-cr-editor-panel", style: { width: e.editorWidth + "%" } }, [t("div", { staticClass: "hep-cr-panel-header" }, [t("span", { staticClass: "hep-cr-panel-title" }, [e._v("编辑器")]), t("div", { staticClass: "hep-cr-output-actions" }, [t("span", { staticClass: "hep-cr-language-badge" }, [e._v(e._s(e.languageName))]), t("button", { staticClass: "hep-cr-btn-icon", class: { "hep-cr-btn-copied": e.copiedEditor }, attrs: { disabled: e.copiedEditor, title: e.copiedEditor ? "已复制" : "复制" }, on: { click: e.copyCode } }, [e.copiedEditor ? t("span", { staticClass: "hep-cr-copied-text" }, [e._v("已复制")]) : t("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" } }, [t("rect", { attrs: { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" } }), t("path", { attrs: { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" } })])])])]), t("CodeEditor", { attrs: { value: e.code, language: e.languageName, theme: e.currentTheme, disabled: !e.editable || e.isRunning }, on: { input: function(l) {
|
|
2664
2678
|
e.code = l;
|
|
2665
2679
|
} } })], 1) : e._e(), e.showEditor ? t("div", { staticClass: "hep-cr-resize-handle", on: { mousedown: e.startDrag } }, [t("div", { staticClass: "hep-cr-resize-line" })]) : e._e(), t("div", { staticClass: "hep-cr-output-panel", style: { width: e.showEditor ? 100 - e.editorWidth + "%" : "100%" } }, [t("div", { staticClass: "hep-cr-panel-header" }, [t("div", { staticClass: "hep-cr-output-tabs" }, [t("button", { class: ["hep-cr-tab", { active: e.activeTab === "stdout" }], on: { click: function(l) {
|
|
2666
2680
|
e.activeTab = "stdout";
|
|
2667
|
-
} } }, [e._v(" 输出 ")]), e.stderr ? t("button", { class: ["hep-cr-tab", { active: e.activeTab === "stderr" }], on: { click: function(l) {
|
|
2681
|
+
} } }, [e._v(" 输出 ")]), e.stderr ? t("button", { class: ["hep-cr-tab", "hep-cr-tab-error", { active: e.activeTab === "stderr" }], on: { click: function(l) {
|
|
2668
2682
|
e.activeTab = "stderr";
|
|
2669
|
-
} } }, [e._v(" 错误 ")]) : e._e()]), t("div", { staticClass: "hep-cr-output-actions" }, [e.executionTime !== null ? t("span", { staticClass: "hep-cr-execution-time" }, [e._v(" " + e._s(e.executionTime) + "ms ")]) : e._e(), t("button", { staticClass: "hep-cr-btn-icon",
|
|
2683
|
+
} } }, [e._v(" 错误 ")]) : e._e()]), t("div", { staticClass: "hep-cr-output-actions" }, [e.executionTime !== null ? t("span", { staticClass: "hep-cr-execution-time" }, [e._v(" " + e._s(e.executionTime) + "ms ")]) : e._e(), t("button", { staticClass: "hep-cr-btn-icon", class: { "hep-cr-btn-copied": e.copiedOutput }, attrs: { disabled: e.copiedOutput, title: e.copiedOutput ? "已复制" : "复制" }, on: { click: e.copyOutput } }, [e.copiedOutput ? t("span", { staticClass: "hep-cr-copied-text" }, [e._v("已复制")]) : t("svg", { attrs: { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" } }, [t("rect", { attrs: { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" } }), t("path", { attrs: { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" } })])])])]), t("div", { staticClass: "hep-cr-output-content" }, [e.activeTab === "stdout" ? t("pre", [e._v(e._s(e.isRunning ? "代码执行中..." : e.output || '点击"运行"执行代码'))]) : t("pre", { staticClass: "hep-cr-stderr" }, [e._v(e._s(e.stderr))])])])])]);
|
|
2670
2684
|
}, ve = [], ye = /* @__PURE__ */ Y(
|
|
2671
2685
|
be,
|
|
2672
2686
|
Ee,
|
|
2673
2687
|
ve,
|
|
2674
2688
|
!1,
|
|
2675
2689
|
null,
|
|
2676
|
-
"
|
|
2690
|
+
"6940e91c"
|
|
2677
2691
|
);
|
|
2678
2692
|
const M = ye.exports, Ae = {
|
|
2679
2693
|
name: "CodeRunnerDialog",
|
|
@@ -2709,16 +2723,16 @@ const M = ye.exports, Ae = {
|
|
|
2709
2723
|
}
|
|
2710
2724
|
},
|
|
2711
2725
|
watch: {
|
|
2712
|
-
value(
|
|
2713
|
-
this.localVisible =
|
|
2726
|
+
value(r) {
|
|
2727
|
+
this.localVisible = r;
|
|
2714
2728
|
}
|
|
2715
2729
|
},
|
|
2716
2730
|
methods: {
|
|
2717
2731
|
close() {
|
|
2718
2732
|
this.localVisible = !1, this.$emit("input", !1), this.$emit("update:value", !1), this.$emit("close");
|
|
2719
2733
|
},
|
|
2720
|
-
handleOverlayClick(
|
|
2721
|
-
|
|
2734
|
+
handleOverlayClick(r) {
|
|
2735
|
+
r.target === r.currentTarget && this.close();
|
|
2722
2736
|
}
|
|
2723
2737
|
},
|
|
2724
2738
|
expose: ["close"]
|
|
@@ -2735,12 +2749,12 @@ var Se = function() {
|
|
|
2735
2749
|
"ec700b03"
|
|
2736
2750
|
);
|
|
2737
2751
|
const ke = we.exports;
|
|
2738
|
-
M.install = (
|
|
2739
|
-
|
|
2752
|
+
M.install = (r) => {
|
|
2753
|
+
r.component("CodeRunner", M);
|
|
2740
2754
|
};
|
|
2741
2755
|
const _e = {
|
|
2742
|
-
install(
|
|
2743
|
-
|
|
2756
|
+
install(r) {
|
|
2757
|
+
r.component("CodeRunner", M);
|
|
2744
2758
|
}
|
|
2745
2759
|
};
|
|
2746
2760
|
export {
|