@covalent/components 11.22.0 → 11.23.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/code-snippet/code-snippet.d.ts +1 -0
- package/code-snippet.js +8 -8
- package/code-snippet.mjs +167 -165
- package/package.json +1 -1
package/code-snippet.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { o as Nr } from "./
|
|
5
|
-
import {
|
|
6
|
-
const vr = ":host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host .code-slot{display:none}:host pre{margin:0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:16px;display:block;overflow-x:auto;font-family:var(--cv-theme-code-font-family);font-size:var(--cv-theme-code-font-size);font-weight:var(--cv-theme-code-font-weight);line-height:var(--cv-theme-code-line-height)}:host .hljs{color:var(--cv-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cv-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cv-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cv-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cv-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cv-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cv-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cv-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cv-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}";
|
|
1
|
+
import { g as mr } from "./_commonjsHelpers-B52_cu2H.mjs";
|
|
2
|
+
import { r as fr, i as _r, s as Er, x as on, e as hr } from "./query-assigned-elements-D930kELM.mjs";
|
|
3
|
+
import { n as Pe } from "./property-DJzm_oB9.mjs";
|
|
4
|
+
import { o as Nr } from "./query-assigned-nodes-Dof2CSLU.mjs";
|
|
5
|
+
import { o as yr } from "./class-map-DPUylGZM.mjs";
|
|
7
6
|
var yn, bt;
|
|
8
|
-
function
|
|
7
|
+
function vr() {
|
|
9
8
|
if (bt) return yn;
|
|
10
9
|
bt = 1;
|
|
11
10
|
function r(n) {
|
|
@@ -343,11 +342,11 @@ function Tr() {
|
|
|
343
342
|
// look for 3 words in a row
|
|
344
343
|
}
|
|
345
344
|
), x;
|
|
346
|
-
},
|
|
345
|
+
}, xe = oe("//", "$"), Ce = oe("/\\*", "\\*/"), ye = oe("#", "$"), we = {
|
|
347
346
|
scope: "number",
|
|
348
347
|
begin: U,
|
|
349
348
|
relevance: 0
|
|
350
|
-
},
|
|
349
|
+
}, Ie = {
|
|
351
350
|
scope: "number",
|
|
352
351
|
begin: K,
|
|
353
352
|
relevance: 0
|
|
@@ -388,9 +387,9 @@ function Tr() {
|
|
|
388
387
|
BINARY_NUMBER_MODE: pe,
|
|
389
388
|
BINARY_NUMBER_RE: G,
|
|
390
389
|
COMMENT: oe,
|
|
391
|
-
C_BLOCK_COMMENT_MODE:
|
|
392
|
-
C_LINE_COMMENT_MODE:
|
|
393
|
-
C_NUMBER_MODE:
|
|
390
|
+
C_BLOCK_COMMENT_MODE: Ce,
|
|
391
|
+
C_LINE_COMMENT_MODE: xe,
|
|
392
|
+
C_NUMBER_MODE: Ie,
|
|
394
393
|
C_NUMBER_RE: K,
|
|
395
394
|
END_SAME_AS_BEGIN: function(n) {
|
|
396
395
|
return Object.assign(
|
|
@@ -440,7 +439,7 @@ function Tr() {
|
|
|
440
439
|
n.begin = n.match, delete n.match;
|
|
441
440
|
}
|
|
442
441
|
}
|
|
443
|
-
function
|
|
442
|
+
function Fe(n, a) {
|
|
444
443
|
n.relevance === void 0 && (n.relevance = 1);
|
|
445
444
|
}
|
|
446
445
|
const He = (n, a) => {
|
|
@@ -482,11 +481,11 @@ function Tr() {
|
|
|
482
481
|
function V(Q, S) {
|
|
483
482
|
a && (S = S.map((v) => v.toLowerCase())), S.forEach(function(v) {
|
|
484
483
|
const k = v.split("|");
|
|
485
|
-
x[k[0]] = [Q,
|
|
484
|
+
x[k[0]] = [Q, $e(k[0], k[1])];
|
|
486
485
|
});
|
|
487
486
|
}
|
|
488
487
|
}
|
|
489
|
-
function
|
|
488
|
+
function $e(n, a) {
|
|
490
489
|
return a ? Number(a) : ln(n) ? 0 : 1;
|
|
491
490
|
}
|
|
492
491
|
function ln(n) {
|
|
@@ -494,7 +493,7 @@ function Tr() {
|
|
|
494
493
|
}
|
|
495
494
|
const Ze = {}, Te = (n) => {
|
|
496
495
|
console.error(n);
|
|
497
|
-
},
|
|
496
|
+
}, Le = (n, ...a) => {
|
|
498
497
|
console.log(`WARN: ${n}`, ...a);
|
|
499
498
|
}, ue = (n, a) => {
|
|
500
499
|
Ze[`${n}/${a}`] || (console.log(`Deprecated as of ${n}. ${a}`), Ze[`${n}/${a}`] = !0);
|
|
@@ -515,7 +514,7 @@ function Tr() {
|
|
|
515
514
|
Xe(n, n.begin, { key: "beginScope" }), n.begin = I(n.begin, { joinWith: "" });
|
|
516
515
|
}
|
|
517
516
|
}
|
|
518
|
-
function
|
|
517
|
+
function ze(n) {
|
|
519
518
|
if (Array.isArray(n.end)) {
|
|
520
519
|
if (n.skip || n.excludeEnd || n.returnEnd)
|
|
521
520
|
throw Te("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Be;
|
|
@@ -528,7 +527,7 @@ function Tr() {
|
|
|
528
527
|
n.scope && typeof n.scope == "object" && n.scope !== null && (n.beginScope = n.scope, delete n.scope);
|
|
529
528
|
}
|
|
530
529
|
function Qe(n) {
|
|
531
|
-
dn(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), Ve(n),
|
|
530
|
+
dn(n), typeof n.beginScope == "string" && (n.beginScope = { _wrap: n.beginScope }), typeof n.endScope == "string" && (n.endScope = { _wrap: n.endScope }), Ve(n), ze(n);
|
|
532
531
|
}
|
|
533
532
|
function un(n) {
|
|
534
533
|
function a(S, v) {
|
|
@@ -556,7 +555,7 @@ function Tr() {
|
|
|
556
555
|
const k = this.matcherRe.exec(v);
|
|
557
556
|
if (!k)
|
|
558
557
|
return null;
|
|
559
|
-
const ae = k.findIndex((
|
|
558
|
+
const ae = k.findIndex((Ge, mn) => mn > 0 && Ge !== void 0), j = this.matchIndexes[ae];
|
|
560
559
|
return k.splice(0, ae), Object.assign(k, j);
|
|
561
560
|
}
|
|
562
561
|
}
|
|
@@ -615,7 +614,7 @@ function Tr() {
|
|
|
615
614
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
616
615
|
qe,
|
|
617
616
|
// default to 1 relevance if not specified
|
|
618
|
-
|
|
617
|
+
Fe
|
|
619
618
|
].forEach((j) => j(S, v)), S.isCompiled = !0;
|
|
620
619
|
let ae = null;
|
|
621
620
|
return typeof S.keywords == "object" && S.keywords.$pattern && (S.keywords = Object.assign({}, S.keywords), ae = S.keywords.$pattern, delete S.keywords.$pattern), ae = ae || /\w+/, S.keywords && (S.keywords = Ye(S.keywords, n.case_insensitive)), k.keywordPatternRe = a(ae, !0), v && (S.begin || (S.begin = /\B|\b/), k.beginRe = a(k.begin), !S.end && !S.endsWithParent && (S.end = /\B|\b/), S.end && (k.endRe = a(k.end)), k.terminatorEnd = d(k.end) || "", S.endsWithParent && v.terminatorEnd && (k.terminatorEnd += (S.end ? "|" : "") + v.terminatorEnd)), S.illegal && (k.illegalRe = a(
|
|
@@ -652,7 +651,7 @@ function Tr() {
|
|
|
652
651
|
super(a), this.name = "HTMLInjectionError", this.html = m;
|
|
653
652
|
}
|
|
654
653
|
}
|
|
655
|
-
const
|
|
654
|
+
const Ke = t, je = o, $ = Symbol("nomatch"), Ue = 7, Oe = function(n) {
|
|
656
655
|
const a = /* @__PURE__ */ Object.create(null), m = /* @__PURE__ */ Object.create(null), x = [];
|
|
657
656
|
let V = !0;
|
|
658
657
|
const Q = "Could not find the language '{}', did you forget to load/include a language module?", S = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -677,7 +676,7 @@ function Tr() {
|
|
|
677
676
|
const P = v.languageDetectRe.exec(A);
|
|
678
677
|
if (P) {
|
|
679
678
|
const q = Re(P[1]);
|
|
680
|
-
return q || (
|
|
679
|
+
return q || (Le(Q.replace("{}", P[1])), Le("Falling back to no-highlight mode for this block.", u)), q ? P[1] : "no-highlight";
|
|
681
680
|
}
|
|
682
681
|
return A.split(/\s+/).find((q) => k(q) || Re(q));
|
|
683
682
|
}
|
|
@@ -690,10 +689,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
690
689
|
language: te
|
|
691
690
|
};
|
|
692
691
|
nn("before:highlight", _e);
|
|
693
|
-
const Me = _e.result ? _e.result :
|
|
692
|
+
const Me = _e.result ? _e.result : Ge(_e.language, _e.code, P);
|
|
694
693
|
return Me.code = _e.code, nn("after:highlight", Me), Me;
|
|
695
694
|
}
|
|
696
|
-
function
|
|
695
|
+
function Ge(u, A, P, q) {
|
|
697
696
|
const te = /* @__PURE__ */ Object.create(null);
|
|
698
697
|
function _e(h, w) {
|
|
699
698
|
return h.keywords[w];
|
|
@@ -708,14 +707,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
708
707
|
let w = C.keywordPatternRe.exec(H), L = "";
|
|
709
708
|
for (; w; ) {
|
|
710
709
|
L += H.substring(h, w.index);
|
|
711
|
-
const z =
|
|
710
|
+
const z = Ne.case_insensitive ? w[0].toLowerCase() : w[0], ce = _e(C, z);
|
|
712
711
|
if (ce) {
|
|
713
712
|
const [Se, br] = ce;
|
|
714
713
|
if (se.addText(L), L = "", te[z] = (te[z] || 0) + 1, te[z] <= Ue && (an += br), Se.startsWith("_"))
|
|
715
714
|
L += w[0];
|
|
716
715
|
else {
|
|
717
|
-
const pr =
|
|
718
|
-
|
|
716
|
+
const pr = Ne.classNameAliases[Se] || Se;
|
|
717
|
+
he(w[0], pr);
|
|
719
718
|
}
|
|
720
719
|
} else
|
|
721
720
|
L += w[0];
|
|
@@ -731,7 +730,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
731
730
|
se.addText(H);
|
|
732
731
|
return;
|
|
733
732
|
}
|
|
734
|
-
h =
|
|
733
|
+
h = Ge(C.subLanguage, H, !0, gt[C.subLanguage]), gt[C.subLanguage] = /** @type {CompiledMode} */
|
|
735
734
|
h._top;
|
|
736
735
|
} else
|
|
737
736
|
h = fn(H, C.subLanguage.length ? C.subLanguage : null);
|
|
@@ -740,7 +739,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
740
739
|
function be() {
|
|
741
740
|
C.subLanguage != null ? tn() : Me(), H = "";
|
|
742
741
|
}
|
|
743
|
-
function
|
|
742
|
+
function he(h, w) {
|
|
744
743
|
h !== "" && (se.startScope(w), se.addText(h), se.endScope());
|
|
745
744
|
}
|
|
746
745
|
function ct(h, w) {
|
|
@@ -751,12 +750,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
751
750
|
L++;
|
|
752
751
|
continue;
|
|
753
752
|
}
|
|
754
|
-
const ce =
|
|
755
|
-
ce ?
|
|
753
|
+
const ce = Ne.classNameAliases[h[L]] || h[L], Se = w[L];
|
|
754
|
+
ce ? he(Se, ce) : (H = Se, Me(), H = ""), L++;
|
|
756
755
|
}
|
|
757
756
|
}
|
|
758
757
|
function lt(h, w) {
|
|
759
|
-
return h.scope && typeof h.scope == "string" && se.openNode(
|
|
758
|
+
return h.scope && typeof h.scope == "string" && se.openNode(Ne.classNameAliases[h.scope] || h.scope), h.beginScope && (h.beginScope._wrap ? (he(H, Ne.classNameAliases[h.beginScope._wrap] || h.beginScope._wrap), H = "") : h.beginScope._multi && (ct(h.beginScope, w), H = "")), C = Object.create(h, { parent: { value: C } }), C;
|
|
760
759
|
}
|
|
761
760
|
function dt(h, w, L) {
|
|
762
761
|
let z = R(h.endRe, L);
|
|
@@ -789,7 +788,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
789
788
|
if (!z)
|
|
790
789
|
return $;
|
|
791
790
|
const ce = C;
|
|
792
|
-
C.endScope && C.endScope._wrap ? (be(),
|
|
791
|
+
C.endScope && C.endScope._wrap ? (be(), he(w, C.endScope._wrap)) : C.endScope && C.endScope._multi ? (be(), ct(C.endScope, h)) : ce.skip ? H += w : (ce.returnEnd || ce.excludeEnd || (H += w), be(), ce.excludeEnd && (H = w));
|
|
793
792
|
do
|
|
794
793
|
C.scope && se.closeNode(), !C.skip && !C.subLanguage && (an += C.relevance), C = C.parent;
|
|
795
794
|
while (C !== z.parent);
|
|
@@ -797,7 +796,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
797
796
|
}
|
|
798
797
|
function ur() {
|
|
799
798
|
const h = [];
|
|
800
|
-
for (let w = C; w !==
|
|
799
|
+
for (let w = C; w !== Ne; w = w.parent)
|
|
801
800
|
w.scope && h.unshift(w.scope);
|
|
802
801
|
h.forEach((w) => se.openNode(w));
|
|
803
802
|
}
|
|
@@ -830,26 +829,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
830
829
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
831
830
|
return H += L, L.length;
|
|
832
831
|
}
|
|
833
|
-
const
|
|
834
|
-
if (!
|
|
832
|
+
const Ne = Re(u);
|
|
833
|
+
if (!Ne)
|
|
835
834
|
throw Te(Q.replace("{}", u)), new Error('Unknown language: "' + u + '"');
|
|
836
|
-
const gr = un(
|
|
835
|
+
const gr = un(Ne);
|
|
837
836
|
let En = "", C = q || gr;
|
|
838
837
|
const gt = {}, se = new v.__emitter(v);
|
|
839
838
|
ur();
|
|
840
|
-
let H = "", an = 0,
|
|
839
|
+
let H = "", an = 0, De = 0, hn = 0, Nn = !1;
|
|
841
840
|
try {
|
|
842
|
-
if (
|
|
843
|
-
|
|
841
|
+
if (Ne.__emitTokens)
|
|
842
|
+
Ne.__emitTokens(A, se);
|
|
844
843
|
else {
|
|
845
844
|
for (C.matcher.considerAll(); ; ) {
|
|
846
|
-
hn++, Nn ? Nn = !1 : C.matcher.considerAll(), C.matcher.lastIndex =
|
|
845
|
+
hn++, Nn ? Nn = !1 : C.matcher.considerAll(), C.matcher.lastIndex = De;
|
|
847
846
|
const h = C.matcher.exec(A);
|
|
848
847
|
if (!h) break;
|
|
849
|
-
const w = A.substring(
|
|
850
|
-
|
|
848
|
+
const w = A.substring(De, h.index), L = ut(w, h);
|
|
849
|
+
De = h.index + L;
|
|
851
850
|
}
|
|
852
|
-
ut(A.substring(
|
|
851
|
+
ut(A.substring(De));
|
|
853
852
|
}
|
|
854
853
|
return se.finalize(), En = se.toHTML(), {
|
|
855
854
|
language: u,
|
|
@@ -863,13 +862,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
863
862
|
if (h.message && h.message.includes("Illegal"))
|
|
864
863
|
return {
|
|
865
864
|
language: u,
|
|
866
|
-
value:
|
|
865
|
+
value: Ke(A),
|
|
867
866
|
illegal: !0,
|
|
868
867
|
relevance: 0,
|
|
869
868
|
_illegalBy: {
|
|
870
869
|
message: h.message,
|
|
871
|
-
index:
|
|
872
|
-
context: A.slice(
|
|
870
|
+
index: De,
|
|
871
|
+
context: A.slice(De - 100, De + 100),
|
|
873
872
|
mode: h.mode,
|
|
874
873
|
resultSoFar: En
|
|
875
874
|
},
|
|
@@ -878,7 +877,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
878
877
|
if (V)
|
|
879
878
|
return {
|
|
880
879
|
language: u,
|
|
881
|
-
value:
|
|
880
|
+
value: Ke(A),
|
|
882
881
|
illegal: !1,
|
|
883
882
|
relevance: 0,
|
|
884
883
|
errorRaised: h,
|
|
@@ -890,7 +889,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
890
889
|
}
|
|
891
890
|
function mn(u) {
|
|
892
891
|
const A = {
|
|
893
|
-
value:
|
|
892
|
+
value: Ke(u),
|
|
894
893
|
illegal: !1,
|
|
895
894
|
relevance: 0,
|
|
896
895
|
_top: S,
|
|
@@ -901,15 +900,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
901
900
|
function fn(u, A) {
|
|
902
901
|
A = A || v.languages || Object.keys(a);
|
|
903
902
|
const P = mn(u), q = A.filter(Re).filter(st).map(
|
|
904
|
-
(be) =>
|
|
903
|
+
(be) => Ge(be, u, !1)
|
|
905
904
|
);
|
|
906
905
|
q.unshift(P);
|
|
907
|
-
const te = q.sort((be,
|
|
908
|
-
if (be.relevance !==
|
|
909
|
-
if (be.language &&
|
|
910
|
-
if (Re(be.language).supersetOf ===
|
|
906
|
+
const te = q.sort((be, he) => {
|
|
907
|
+
if (be.relevance !== he.relevance) return he.relevance - be.relevance;
|
|
908
|
+
if (be.language && he.language) {
|
|
909
|
+
if (Re(be.language).supersetOf === he.language)
|
|
911
910
|
return 1;
|
|
912
|
-
if (Re(
|
|
911
|
+
if (Re(he.language).supersetOf === be.language)
|
|
913
912
|
return -1;
|
|
914
913
|
}
|
|
915
914
|
return 0;
|
|
@@ -1065,7 +1064,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), te = u, q = A), P ===
|
|
|
1065
1064
|
return Ae.newInstance = () => Oe({}), yn = Ae, Ae.HighlightJS = Ae, Ae.default = Ae, yn;
|
|
1066
1065
|
}
|
|
1067
1066
|
var vn, pt;
|
|
1068
|
-
function
|
|
1067
|
+
function Tr() {
|
|
1069
1068
|
if (pt) return vn;
|
|
1070
1069
|
pt = 1;
|
|
1071
1070
|
function r(e) {
|
|
@@ -1287,7 +1286,7 @@ function Sr() {
|
|
|
1287
1286
|
return vn = r, vn;
|
|
1288
1287
|
}
|
|
1289
1288
|
var Tn, mt;
|
|
1290
|
-
function
|
|
1289
|
+
function Sr() {
|
|
1291
1290
|
if (mt) return Tn;
|
|
1292
1291
|
mt = 1;
|
|
1293
1292
|
function r(e) {
|
|
@@ -1667,7 +1666,7 @@ function wr() {
|
|
|
1667
1666
|
return Tn = r, Tn;
|
|
1668
1667
|
}
|
|
1669
1668
|
var Sn, ft;
|
|
1670
|
-
function
|
|
1669
|
+
function wr() {
|
|
1671
1670
|
if (ft) return Sn;
|
|
1672
1671
|
ft = 1;
|
|
1673
1672
|
function r(e) {
|
|
@@ -1947,7 +1946,7 @@ function Or() {
|
|
|
1947
1946
|
return Sn = r, Sn;
|
|
1948
1947
|
}
|
|
1949
1948
|
var wn, _t;
|
|
1950
|
-
function
|
|
1949
|
+
function Or() {
|
|
1951
1950
|
if (_t) return wn;
|
|
1952
1951
|
_t = 1;
|
|
1953
1952
|
function r(e) {
|
|
@@ -2471,7 +2470,7 @@ function Ar() {
|
|
|
2471
2470
|
return wn = r, wn;
|
|
2472
2471
|
}
|
|
2473
2472
|
var On, Et;
|
|
2474
|
-
function
|
|
2473
|
+
function Ar() {
|
|
2475
2474
|
if (Et) return On;
|
|
2476
2475
|
Et = 1;
|
|
2477
2476
|
function r(e) {
|
|
@@ -2856,7 +2855,7 @@ function Rr() {
|
|
|
2856
2855
|
return On = r, On;
|
|
2857
2856
|
}
|
|
2858
2857
|
var An, ht;
|
|
2859
|
-
function
|
|
2858
|
+
function Rr() {
|
|
2860
2859
|
if (ht) return An;
|
|
2861
2860
|
ht = 1;
|
|
2862
2861
|
const r = (s) => ({
|
|
@@ -3782,7 +3781,7 @@ function Mr() {
|
|
|
3782
3781
|
return An = p, An;
|
|
3783
3782
|
}
|
|
3784
3783
|
var Rn, Nt;
|
|
3785
|
-
function
|
|
3784
|
+
function Mr() {
|
|
3786
3785
|
if (Nt) return Rn;
|
|
3787
3786
|
Nt = 1;
|
|
3788
3787
|
function r(e) {
|
|
@@ -4001,7 +4000,7 @@ function kr() {
|
|
|
4001
4000
|
return Rn = r, Rn;
|
|
4002
4001
|
}
|
|
4003
4002
|
var Mn, yt;
|
|
4004
|
-
function
|
|
4003
|
+
function kr() {
|
|
4005
4004
|
if (yt) return Mn;
|
|
4006
4005
|
yt = 1;
|
|
4007
4006
|
function r(e) {
|
|
@@ -4058,7 +4057,7 @@ function xr() {
|
|
|
4058
4057
|
return Mn = r, Mn;
|
|
4059
4058
|
}
|
|
4060
4059
|
var kn, vt;
|
|
4061
|
-
function
|
|
4060
|
+
function xr() {
|
|
4062
4061
|
if (vt) return kn;
|
|
4063
4062
|
vt = 1;
|
|
4064
4063
|
function r(e) {
|
|
@@ -4449,7 +4448,7 @@ function Cr() {
|
|
|
4449
4448
|
return kn = r, kn;
|
|
4450
4449
|
}
|
|
4451
4450
|
var xn, Tt;
|
|
4452
|
-
function
|
|
4451
|
+
function Cr() {
|
|
4453
4452
|
if (Tt) return xn;
|
|
4454
4453
|
Tt = 1;
|
|
4455
4454
|
function r(e) {
|
|
@@ -4603,7 +4602,7 @@ function Ir() {
|
|
|
4603
4602
|
return xn = r, xn;
|
|
4604
4603
|
}
|
|
4605
4604
|
var Cn, St;
|
|
4606
|
-
function
|
|
4605
|
+
function Ir() {
|
|
4607
4606
|
if (St) return Cn;
|
|
4608
4607
|
St = 1;
|
|
4609
4608
|
function r(e) {
|
|
@@ -4676,7 +4675,7 @@ function Lr() {
|
|
|
4676
4675
|
return Cn = r, Cn;
|
|
4677
4676
|
}
|
|
4678
4677
|
var In, wt;
|
|
4679
|
-
function
|
|
4678
|
+
function Lr() {
|
|
4680
4679
|
if (wt) return In;
|
|
4681
4680
|
wt = 1;
|
|
4682
4681
|
function r(e) {
|
|
@@ -4786,7 +4785,7 @@ function Dr() {
|
|
|
4786
4785
|
return In = r, In;
|
|
4787
4786
|
}
|
|
4788
4787
|
var Ln, Ot;
|
|
4789
|
-
function
|
|
4788
|
+
function Dr() {
|
|
4790
4789
|
if (Ot) return Ln;
|
|
4791
4790
|
Ot = 1;
|
|
4792
4791
|
var r = "[0-9](_*[0-9])*", e = `\\.(${r})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", o = {
|
|
@@ -5029,7 +5028,7 @@ function Br() {
|
|
|
5029
5028
|
return Ln = c, Ln;
|
|
5030
5029
|
}
|
|
5031
5030
|
var Dn, At;
|
|
5032
|
-
function
|
|
5031
|
+
function Br() {
|
|
5033
5032
|
if (At) return Dn;
|
|
5034
5033
|
At = 1;
|
|
5035
5034
|
const r = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
|
|
@@ -5440,7 +5439,7 @@ function Ur() {
|
|
|
5440
5439
|
className: "meta",
|
|
5441
5440
|
relevance: 10,
|
|
5442
5441
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
5443
|
-
},
|
|
5442
|
+
}, xe = {
|
|
5444
5443
|
variants: [
|
|
5445
5444
|
{
|
|
5446
5445
|
match: [
|
|
@@ -5465,7 +5464,7 @@ function Ur() {
|
|
|
5465
5464
|
label: "func.def",
|
|
5466
5465
|
contains: [W],
|
|
5467
5466
|
illegal: /%/
|
|
5468
|
-
},
|
|
5467
|
+
}, Ce = {
|
|
5469
5468
|
relevance: 0,
|
|
5470
5469
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
5471
5470
|
className: "variable.constant"
|
|
@@ -5486,7 +5485,7 @@ function Ur() {
|
|
|
5486
5485
|
),
|
|
5487
5486
|
className: "title.function",
|
|
5488
5487
|
relevance: 0
|
|
5489
|
-
},
|
|
5488
|
+
}, Ie = {
|
|
5490
5489
|
begin: i.concat(/\./, i.lookahead(
|
|
5491
5490
|
i.concat(b, /(?![0-9A-Za-z$_(])/)
|
|
5492
5491
|
)),
|
|
@@ -5639,7 +5638,7 @@ function Ur() {
|
|
|
5639
5638
|
}
|
|
5640
5639
|
]
|
|
5641
5640
|
},
|
|
5642
|
-
|
|
5641
|
+
xe,
|
|
5643
5642
|
{
|
|
5644
5643
|
// prevent this from getting swallowed up by function
|
|
5645
5644
|
// since they appear "function like"
|
|
@@ -5663,7 +5662,7 @@ function Ur() {
|
|
|
5663
5662
|
match: /\.\.\./,
|
|
5664
5663
|
relevance: 0
|
|
5665
5664
|
},
|
|
5666
|
-
|
|
5665
|
+
Ie,
|
|
5667
5666
|
// hack: prevents detection of keywords in some circumstances
|
|
5668
5667
|
// .keyword()
|
|
5669
5668
|
// $keyword = x
|
|
@@ -5677,7 +5676,7 @@ function Ur() {
|
|
|
5677
5676
|
contains: [W]
|
|
5678
5677
|
},
|
|
5679
5678
|
we,
|
|
5680
|
-
|
|
5679
|
+
Ce,
|
|
5681
5680
|
Z,
|
|
5682
5681
|
pe,
|
|
5683
5682
|
{
|
|
@@ -5690,7 +5689,7 @@ function Ur() {
|
|
|
5690
5689
|
return Dn = p, Dn;
|
|
5691
5690
|
}
|
|
5692
5691
|
var Bn, Rt;
|
|
5693
|
-
function
|
|
5692
|
+
function Ur() {
|
|
5694
5693
|
if (Rt) return Bn;
|
|
5695
5694
|
Rt = 1;
|
|
5696
5695
|
function r(e) {
|
|
@@ -5731,7 +5730,7 @@ function Pr() {
|
|
|
5731
5730
|
return Bn = r, Bn;
|
|
5732
5731
|
}
|
|
5733
5732
|
var Un, Mt;
|
|
5734
|
-
function
|
|
5733
|
+
function Pr() {
|
|
5735
5734
|
if (Mt) return Un;
|
|
5736
5735
|
Mt = 1;
|
|
5737
5736
|
var r = "[0-9](_*[0-9])*", e = `\\.(${r})`, t = "[0-9a-fA-F](_*[0-9a-fA-F])*", o = {
|
|
@@ -5976,7 +5975,7 @@ function Fr() {
|
|
|
5976
5975
|
return Un = l, Un;
|
|
5977
5976
|
}
|
|
5978
5977
|
var Pn, kt;
|
|
5979
|
-
function
|
|
5978
|
+
function Fr() {
|
|
5980
5979
|
if (kt) return Pn;
|
|
5981
5980
|
kt = 1;
|
|
5982
5981
|
const r = (i) => ({
|
|
@@ -6971,7 +6970,7 @@ function $r() {
|
|
|
6971
6970
|
return Pn = s, Pn;
|
|
6972
6971
|
}
|
|
6973
6972
|
var Fn, xt;
|
|
6974
|
-
function
|
|
6973
|
+
function $r() {
|
|
6975
6974
|
if (xt) return Fn;
|
|
6976
6975
|
xt = 1;
|
|
6977
6976
|
function r(e) {
|
|
@@ -7033,7 +7032,7 @@ function zr() {
|
|
|
7033
7032
|
return Fn = r, Fn;
|
|
7034
7033
|
}
|
|
7035
7034
|
var $n, Ct;
|
|
7036
|
-
function
|
|
7035
|
+
function zr() {
|
|
7037
7036
|
if (Ct) return $n;
|
|
7038
7037
|
Ct = 1;
|
|
7039
7038
|
function r(e) {
|
|
@@ -7103,7 +7102,7 @@ function Kr() {
|
|
|
7103
7102
|
return $n = r, $n;
|
|
7104
7103
|
}
|
|
7105
7104
|
var zn, It;
|
|
7106
|
-
function
|
|
7105
|
+
function Kr() {
|
|
7107
7106
|
if (It) return zn;
|
|
7108
7107
|
It = 1;
|
|
7109
7108
|
function r(e) {
|
|
@@ -7575,7 +7574,7 @@ function Gr() {
|
|
|
7575
7574
|
return zn = r, zn;
|
|
7576
7575
|
}
|
|
7577
7576
|
var Kn, Lt;
|
|
7578
|
-
function
|
|
7577
|
+
function Gr() {
|
|
7579
7578
|
if (Lt) return Kn;
|
|
7580
7579
|
Lt = 1;
|
|
7581
7580
|
function r(e) {
|
|
@@ -7815,7 +7814,7 @@ function qr() {
|
|
|
7815
7814
|
return Kn = r, Kn;
|
|
7816
7815
|
}
|
|
7817
7816
|
var Gn, Dt;
|
|
7818
|
-
function
|
|
7817
|
+
function qr() {
|
|
7819
7818
|
if (Dt) return Gn;
|
|
7820
7819
|
Dt = 1;
|
|
7821
7820
|
function r(e) {
|
|
@@ -8384,7 +8383,7 @@ function Hr() {
|
|
|
8384
8383
|
return Gn = r, Gn;
|
|
8385
8384
|
}
|
|
8386
8385
|
var qn, Bt;
|
|
8387
|
-
function
|
|
8386
|
+
function Hr() {
|
|
8388
8387
|
if (Bt) return qn;
|
|
8389
8388
|
Bt = 1;
|
|
8390
8389
|
function r(e) {
|
|
@@ -8434,7 +8433,7 @@ function Wr() {
|
|
|
8434
8433
|
return qn = r, qn;
|
|
8435
8434
|
}
|
|
8436
8435
|
var Hn, Ut;
|
|
8437
|
-
function
|
|
8436
|
+
function Wr() {
|
|
8438
8437
|
if (Ut) return Hn;
|
|
8439
8438
|
Ut = 1;
|
|
8440
8439
|
function r(e) {
|
|
@@ -8450,7 +8449,7 @@ function Yr() {
|
|
|
8450
8449
|
return Hn = r, Hn;
|
|
8451
8450
|
}
|
|
8452
8451
|
var Wn, Pt;
|
|
8453
|
-
function
|
|
8452
|
+
function Yr() {
|
|
8454
8453
|
if (Pt) return Wn;
|
|
8455
8454
|
Pt = 1;
|
|
8456
8455
|
function r(e) {
|
|
@@ -8852,7 +8851,7 @@ function Zr() {
|
|
|
8852
8851
|
return Wn = r, Wn;
|
|
8853
8852
|
}
|
|
8854
8853
|
var Yn, Ft;
|
|
8855
|
-
function
|
|
8854
|
+
function Zr() {
|
|
8856
8855
|
if (Ft) return Yn;
|
|
8857
8856
|
Ft = 1;
|
|
8858
8857
|
function r(e) {
|
|
@@ -8881,7 +8880,7 @@ function Xr() {
|
|
|
8881
8880
|
return Yn = r, Yn;
|
|
8882
8881
|
}
|
|
8883
8882
|
var Zn, $t;
|
|
8884
|
-
function
|
|
8883
|
+
function Xr() {
|
|
8885
8884
|
if ($t) return Zn;
|
|
8886
8885
|
$t = 1;
|
|
8887
8886
|
function r(e) {
|
|
@@ -9091,7 +9090,7 @@ function Vr() {
|
|
|
9091
9090
|
return Zn = r, Zn;
|
|
9092
9091
|
}
|
|
9093
9092
|
var Xn, zt;
|
|
9094
|
-
function
|
|
9093
|
+
function Vr() {
|
|
9095
9094
|
if (zt) return Xn;
|
|
9096
9095
|
zt = 1;
|
|
9097
9096
|
function r(e) {
|
|
@@ -9399,7 +9398,7 @@ function Qr() {
|
|
|
9399
9398
|
return Xn = r, Xn;
|
|
9400
9399
|
}
|
|
9401
9400
|
var Vn, Kt;
|
|
9402
|
-
function
|
|
9401
|
+
function Qr() {
|
|
9403
9402
|
if (Kt) return Vn;
|
|
9404
9403
|
Kt = 1;
|
|
9405
9404
|
const r = (s) => ({
|
|
@@ -10310,7 +10309,7 @@ function Jr() {
|
|
|
10310
10309
|
return Vn = p, Vn;
|
|
10311
10310
|
}
|
|
10312
10311
|
var Qn, Gt;
|
|
10313
|
-
function
|
|
10312
|
+
function Jr() {
|
|
10314
10313
|
if (Gt) return Qn;
|
|
10315
10314
|
Gt = 1;
|
|
10316
10315
|
function r(e) {
|
|
@@ -10338,7 +10337,7 @@ function jr() {
|
|
|
10338
10337
|
return Qn = r, Qn;
|
|
10339
10338
|
}
|
|
10340
10339
|
var Jn, qt;
|
|
10341
|
-
function
|
|
10340
|
+
function jr() {
|
|
10342
10341
|
if (qt) return Jn;
|
|
10343
10342
|
qt = 1;
|
|
10344
10343
|
function r(e) {
|
|
@@ -10956,7 +10955,7 @@ function ei() {
|
|
|
10956
10955
|
return Jn = r, Jn;
|
|
10957
10956
|
}
|
|
10958
10957
|
var jn, Ht;
|
|
10959
|
-
function
|
|
10958
|
+
function ei() {
|
|
10960
10959
|
if (Ht) return jn;
|
|
10961
10960
|
Ht = 1;
|
|
10962
10961
|
function r(M) {
|
|
@@ -11330,21 +11329,21 @@ function ni() {
|
|
|
11330
11329
|
re,
|
|
11331
11330
|
ee,
|
|
11332
11331
|
Z
|
|
11333
|
-
],
|
|
11332
|
+
], xe = {
|
|
11334
11333
|
// Consume .built_in to prevent highlighting properties and methods.
|
|
11335
11334
|
match: t(/\./, l(..._)),
|
|
11336
11335
|
relevance: 0
|
|
11337
|
-
},
|
|
11336
|
+
}, Ce = {
|
|
11338
11337
|
className: "built_in",
|
|
11339
11338
|
match: t(/\b/, l(..._), /(?=\()/)
|
|
11340
11339
|
}, ye = [
|
|
11341
|
-
|
|
11342
|
-
|
|
11340
|
+
xe,
|
|
11341
|
+
Ce
|
|
11343
11342
|
], we = {
|
|
11344
11343
|
// Prevent -> from being highlighting as an operator.
|
|
11345
11344
|
match: /->/,
|
|
11346
11345
|
relevance: 0
|
|
11347
|
-
},
|
|
11346
|
+
}, Ie = {
|
|
11348
11347
|
className: "operator",
|
|
11349
11348
|
relevance: 0,
|
|
11350
11349
|
variants: [
|
|
@@ -11358,7 +11357,7 @@ function ni() {
|
|
|
11358
11357
|
]
|
|
11359
11358
|
}, pe = [
|
|
11360
11359
|
we,
|
|
11361
|
-
|
|
11360
|
+
Ie
|
|
11362
11361
|
], me = "([0-9]_*)+", ve = "([0-9a-fA-F]_*)+", X = {
|
|
11363
11362
|
className: "number",
|
|
11364
11363
|
relevance: 0,
|
|
@@ -11425,7 +11424,7 @@ function ni() {
|
|
|
11425
11424
|
begin: /\/[^\s](?=[^/\n]*\/)/,
|
|
11426
11425
|
end: /\//,
|
|
11427
11426
|
contains: qe
|
|
11428
|
-
},
|
|
11427
|
+
}, Fe = ($) => {
|
|
11429
11428
|
const Ue = t($, /\//), Oe = t(/\//, $);
|
|
11430
11429
|
return {
|
|
11431
11430
|
begin: Ue,
|
|
@@ -11442,9 +11441,9 @@ function ni() {
|
|
|
11442
11441
|
}, He = {
|
|
11443
11442
|
scope: "regexp",
|
|
11444
11443
|
variants: [
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11444
|
+
Fe("###"),
|
|
11445
|
+
Fe("##"),
|
|
11446
|
+
Fe("#"),
|
|
11448
11447
|
sn
|
|
11449
11448
|
]
|
|
11450
11449
|
}, We = { match: t(/`/, R, /`/) }, cn = {
|
|
@@ -11453,7 +11452,7 @@ function ni() {
|
|
|
11453
11452
|
}, Ye = {
|
|
11454
11453
|
className: "variable",
|
|
11455
11454
|
match: `\\$${O}+`
|
|
11456
|
-
},
|
|
11455
|
+
}, $e = [
|
|
11457
11456
|
We,
|
|
11458
11457
|
cn,
|
|
11459
11458
|
Ye
|
|
@@ -11478,7 +11477,7 @@ function ni() {
|
|
|
11478
11477
|
}, Te = {
|
|
11479
11478
|
scope: "meta",
|
|
11480
11479
|
match: t(/@/, R)
|
|
11481
|
-
},
|
|
11480
|
+
}, Le = [
|
|
11482
11481
|
ln,
|
|
11483
11482
|
Ze,
|
|
11484
11483
|
Te
|
|
@@ -11520,7 +11519,7 @@ function ni() {
|
|
|
11520
11519
|
contains: [
|
|
11521
11520
|
...G,
|
|
11522
11521
|
...oe,
|
|
11523
|
-
...
|
|
11522
|
+
...Le,
|
|
11524
11523
|
we,
|
|
11525
11524
|
ue
|
|
11526
11525
|
]
|
|
@@ -11545,11 +11544,11 @@ function ni() {
|
|
|
11545
11544
|
...pe,
|
|
11546
11545
|
X,
|
|
11547
11546
|
fe,
|
|
11548
|
-
|
|
11549
|
-
...
|
|
11547
|
+
...$e,
|
|
11548
|
+
...Le,
|
|
11550
11549
|
ue
|
|
11551
11550
|
]
|
|
11552
|
-
},
|
|
11551
|
+
}, ze = {
|
|
11553
11552
|
begin: /</,
|
|
11554
11553
|
end: />/,
|
|
11555
11554
|
keywords: "repeat each",
|
|
@@ -11585,7 +11584,7 @@ function ni() {
|
|
|
11585
11584
|
...pe,
|
|
11586
11585
|
X,
|
|
11587
11586
|
fe,
|
|
11588
|
-
...
|
|
11587
|
+
...Le,
|
|
11589
11588
|
ue,
|
|
11590
11589
|
Ve
|
|
11591
11590
|
],
|
|
@@ -11602,7 +11601,7 @@ function ni() {
|
|
|
11602
11601
|
3: "title.function"
|
|
11603
11602
|
},
|
|
11604
11603
|
contains: [
|
|
11605
|
-
|
|
11604
|
+
ze,
|
|
11606
11605
|
Qe,
|
|
11607
11606
|
U
|
|
11608
11607
|
],
|
|
@@ -11617,7 +11616,7 @@ function ni() {
|
|
|
11617
11616
|
],
|
|
11618
11617
|
className: { 1: "keyword" },
|
|
11619
11618
|
contains: [
|
|
11620
|
-
|
|
11619
|
+
ze,
|
|
11621
11620
|
Qe,
|
|
11622
11621
|
U
|
|
11623
11622
|
],
|
|
@@ -11661,7 +11660,7 @@ function ni() {
|
|
|
11661
11660
|
3: "keyword",
|
|
11662
11661
|
5: "title.function"
|
|
11663
11662
|
}
|
|
11664
|
-
},
|
|
11663
|
+
}, Ke = {
|
|
11665
11664
|
match: [
|
|
11666
11665
|
/class\b/,
|
|
11667
11666
|
/\s+/,
|
|
@@ -11684,7 +11683,7 @@ function ni() {
|
|
|
11684
11683
|
},
|
|
11685
11684
|
keywords: J,
|
|
11686
11685
|
contains: [
|
|
11687
|
-
|
|
11686
|
+
ze,
|
|
11688
11687
|
...oe,
|
|
11689
11688
|
{
|
|
11690
11689
|
begin: /:/,
|
|
@@ -11710,7 +11709,7 @@ function ni() {
|
|
|
11710
11709
|
...pe,
|
|
11711
11710
|
X,
|
|
11712
11711
|
fe,
|
|
11713
|
-
|
|
11712
|
+
...$e
|
|
11714
11713
|
];
|
|
11715
11714
|
Ue.contains = [
|
|
11716
11715
|
...Oe,
|
|
@@ -11732,7 +11731,7 @@ function ni() {
|
|
|
11732
11731
|
un,
|
|
11733
11732
|
Je,
|
|
11734
11733
|
pn,
|
|
11735
|
-
|
|
11734
|
+
Ke,
|
|
11736
11735
|
je,
|
|
11737
11736
|
gn,
|
|
11738
11737
|
bn,
|
|
@@ -11748,8 +11747,8 @@ function ni() {
|
|
|
11748
11747
|
...pe,
|
|
11749
11748
|
X,
|
|
11750
11749
|
fe,
|
|
11751
|
-
|
|
11752
|
-
...
|
|
11750
|
+
...$e,
|
|
11751
|
+
...Le,
|
|
11753
11752
|
ue,
|
|
11754
11753
|
Ve
|
|
11755
11754
|
]
|
|
@@ -11758,7 +11757,7 @@ function ni() {
|
|
|
11758
11757
|
return jn = B, jn;
|
|
11759
11758
|
}
|
|
11760
11759
|
var et, Wt;
|
|
11761
|
-
function
|
|
11760
|
+
function ni() {
|
|
11762
11761
|
if (Wt) return et;
|
|
11763
11762
|
Wt = 1;
|
|
11764
11763
|
function r(e) {
|
|
@@ -11944,7 +11943,7 @@ function ti() {
|
|
|
11944
11943
|
return et = r, et;
|
|
11945
11944
|
}
|
|
11946
11945
|
var nt, Yt;
|
|
11947
|
-
function
|
|
11946
|
+
function ti() {
|
|
11948
11947
|
if (Yt) return nt;
|
|
11949
11948
|
Yt = 1;
|
|
11950
11949
|
const r = "[A-Za-z$_][0-9A-Za-z$_]*", e = [
|
|
@@ -12350,12 +12349,12 @@ function ri() {
|
|
|
12350
12349
|
...l
|
|
12351
12350
|
]
|
|
12352
12351
|
}
|
|
12353
|
-
},
|
|
12352
|
+
}, xe = {
|
|
12354
12353
|
label: "use_strict",
|
|
12355
12354
|
className: "meta",
|
|
12356
12355
|
relevance: 10,
|
|
12357
12356
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
12358
|
-
},
|
|
12357
|
+
}, Ce = {
|
|
12359
12358
|
variants: [
|
|
12360
12359
|
{
|
|
12361
12360
|
match: [
|
|
@@ -12388,7 +12387,7 @@ function ri() {
|
|
|
12388
12387
|
function we(Y) {
|
|
12389
12388
|
return d.concat("(?!", Y.join("|"), ")");
|
|
12390
12389
|
}
|
|
12391
|
-
const
|
|
12390
|
+
const Ie = {
|
|
12392
12391
|
match: d.concat(
|
|
12393
12392
|
/\b/,
|
|
12394
12393
|
we([
|
|
@@ -12461,7 +12460,7 @@ function ri() {
|
|
|
12461
12460
|
binary: "node",
|
|
12462
12461
|
relevance: 5
|
|
12463
12462
|
}),
|
|
12464
|
-
|
|
12463
|
+
xe,
|
|
12465
12464
|
i.APOS_STRING_MODE,
|
|
12466
12465
|
i.QUOTE_STRING_MODE,
|
|
12467
12466
|
B,
|
|
@@ -12554,7 +12553,7 @@ function ri() {
|
|
|
12554
12553
|
}
|
|
12555
12554
|
]
|
|
12556
12555
|
},
|
|
12557
|
-
|
|
12556
|
+
Ce,
|
|
12558
12557
|
{
|
|
12559
12558
|
// prevent this from getting swallowed up by function
|
|
12560
12559
|
// since they appear "function like"
|
|
@@ -12591,7 +12590,7 @@ function ri() {
|
|
|
12591
12590
|
className: { 1: "title.function" },
|
|
12592
12591
|
contains: [Z]
|
|
12593
12592
|
},
|
|
12594
|
-
|
|
12593
|
+
Ie,
|
|
12595
12594
|
ye,
|
|
12596
12595
|
J,
|
|
12597
12596
|
me,
|
|
@@ -12700,7 +12699,7 @@ function ri() {
|
|
|
12700
12699
|
return nt = s, nt;
|
|
12701
12700
|
}
|
|
12702
12701
|
var tt, Zt;
|
|
12703
|
-
function
|
|
12702
|
+
function ri() {
|
|
12704
12703
|
if (Zt) return tt;
|
|
12705
12704
|
Zt = 1;
|
|
12706
12705
|
function r(e) {
|
|
@@ -12825,7 +12824,7 @@ function ii() {
|
|
|
12825
12824
|
return tt = r, tt;
|
|
12826
12825
|
}
|
|
12827
12826
|
var rt, Xt;
|
|
12828
|
-
function
|
|
12827
|
+
function ii() {
|
|
12829
12828
|
if (Xt) return rt;
|
|
12830
12829
|
Xt = 1;
|
|
12831
12830
|
function r(e) {
|
|
@@ -12942,26 +12941,26 @@ function ai() {
|
|
|
12942
12941
|
return rt = r, rt;
|
|
12943
12942
|
}
|
|
12944
12943
|
var it, Vt;
|
|
12945
|
-
function
|
|
12944
|
+
function ai() {
|
|
12946
12945
|
if (Vt) return it;
|
|
12947
12946
|
Vt = 1;
|
|
12948
|
-
var r = /* @__PURE__ */
|
|
12949
|
-
return r.registerLanguage("xml", /* @__PURE__ */
|
|
12947
|
+
var r = /* @__PURE__ */ vr();
|
|
12948
|
+
return r.registerLanguage("xml", /* @__PURE__ */ Tr()), r.registerLanguage("bash", /* @__PURE__ */ Sr()), r.registerLanguage("c", /* @__PURE__ */ wr()), r.registerLanguage("cpp", /* @__PURE__ */ Or()), r.registerLanguage("csharp", /* @__PURE__ */ Ar()), r.registerLanguage("css", /* @__PURE__ */ Rr()), r.registerLanguage("markdown", /* @__PURE__ */ Mr()), r.registerLanguage("diff", /* @__PURE__ */ kr()), r.registerLanguage("ruby", /* @__PURE__ */ xr()), r.registerLanguage("go", /* @__PURE__ */ Cr()), r.registerLanguage("graphql", /* @__PURE__ */ Ir()), r.registerLanguage("ini", /* @__PURE__ */ Lr()), r.registerLanguage("java", /* @__PURE__ */ Dr()), r.registerLanguage("javascript", /* @__PURE__ */ Br()), r.registerLanguage("json", /* @__PURE__ */ Ur()), r.registerLanguage("kotlin", /* @__PURE__ */ Pr()), r.registerLanguage("less", /* @__PURE__ */ Fr()), r.registerLanguage("lua", /* @__PURE__ */ $r()), r.registerLanguage("makefile", /* @__PURE__ */ zr()), r.registerLanguage("perl", /* @__PURE__ */ Kr()), r.registerLanguage("objectivec", /* @__PURE__ */ Gr()), r.registerLanguage("php", /* @__PURE__ */ qr()), r.registerLanguage("php-template", /* @__PURE__ */ Hr()), r.registerLanguage("plaintext", /* @__PURE__ */ Wr()), r.registerLanguage("python", /* @__PURE__ */ Yr()), r.registerLanguage("python-repl", /* @__PURE__ */ Zr()), r.registerLanguage("r", /* @__PURE__ */ Xr()), r.registerLanguage("rust", /* @__PURE__ */ Vr()), r.registerLanguage("scss", /* @__PURE__ */ Qr()), r.registerLanguage("shell", /* @__PURE__ */ Jr()), r.registerLanguage("sql", /* @__PURE__ */ jr()), r.registerLanguage("swift", /* @__PURE__ */ ei()), r.registerLanguage("yaml", /* @__PURE__ */ ni()), r.registerLanguage("typescript", /* @__PURE__ */ ti()), r.registerLanguage("vbnet", /* @__PURE__ */ ri()), r.registerLanguage("wasm", /* @__PURE__ */ ii()), r.HighlightJS = r, r.default = r, it = r, it;
|
|
12950
12949
|
}
|
|
12951
|
-
var
|
|
12952
|
-
const
|
|
12953
|
-
var li = Object.defineProperty, di = Object.getOwnPropertyDescriptor,
|
|
12950
|
+
var oi = ai();
|
|
12951
|
+
const si = /* @__PURE__ */ mr(oi), ci = ":host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host .code-slot{display:none}:host pre{margin:0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:16px;display:block;overflow-x:auto;font-family:var(--cv-theme-code-font-family);font-size:var(--cv-theme-code-font-size);font-weight:var(--cv-theme-code-font-weight);line-height:var(--cv-theme-code-line-height)}:host .hljs{color:var(--cv-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cv-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cv-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cv-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cv-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cv-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cv-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cv-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cv-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}";
|
|
12952
|
+
var li = Object.defineProperty, di = Object.getOwnPropertyDescriptor, ke = (r, e, t, o) => {
|
|
12954
12953
|
for (var l = o > 1 ? void 0 : o ? di(e, t) : e, c = r.length - 1, g; c >= 0; c--)
|
|
12955
12954
|
(g = r[c]) && (l = (o ? g(e, t, l) : g(l)) || l);
|
|
12956
12955
|
return o && l && li(e, t, l), l;
|
|
12957
12956
|
};
|
|
12958
|
-
let
|
|
12957
|
+
let Ee = class extends Er {
|
|
12959
12958
|
constructor() {
|
|
12960
|
-
super(...arguments), this.inline = !1, this.hideHeader = !1, this._code = "";
|
|
12959
|
+
super(...arguments), this.inline = !1, this.hideHeader = !1, this.skipTrim = !1, this._code = "";
|
|
12961
12960
|
}
|
|
12962
12961
|
highlight() {
|
|
12963
12962
|
this._code = "", this._codeItems.forEach((r) => {
|
|
12964
|
-
this._code +=
|
|
12963
|
+
this._code += si.highlight(r.textContent ?? "", {
|
|
12965
12964
|
language: this.language ?? ""
|
|
12966
12965
|
}).value, this.requestUpdate();
|
|
12967
12966
|
});
|
|
@@ -12981,12 +12980,12 @@ let Ne = class extends _r {
|
|
|
12981
12980
|
};
|
|
12982
12981
|
r[`language-${this.language}`] = !0;
|
|
12983
12982
|
const e = document.createElement("div");
|
|
12984
|
-
e.innerHTML = this._code.trim();
|
|
12983
|
+
e.innerHTML = this.skipTrim ? this._code : this._code.trim();
|
|
12985
12984
|
let t;
|
|
12986
12985
|
return this.maxHeight && this.maxHeight > 0 && (t = `max-height: ${this.maxHeight}px`), on` <pre
|
|
12987
12986
|
style="${t}"
|
|
12988
12987
|
part="container"
|
|
12989
|
-
><code part="code" class="${
|
|
12988
|
+
><code part="code" class="${yr(r)}">${e}</code></pre>
|
|
12990
12989
|
<slot class="code-slot"></slot>`;
|
|
12991
12990
|
}
|
|
12992
12991
|
renderHeader() {
|
|
@@ -12996,34 +12995,37 @@ let Ne = class extends _r {
|
|
|
12996
12995
|
</div>`;
|
|
12997
12996
|
}
|
|
12998
12997
|
};
|
|
12999
|
-
|
|
13000
|
-
|
|
13001
|
-
${
|
|
12998
|
+
Ee.styles = [
|
|
12999
|
+
_r`
|
|
13000
|
+
${fr(ci)}
|
|
13002
13001
|
`
|
|
13003
13002
|
];
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
],
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
],
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
],
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
],
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
],
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
],
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
],
|
|
13025
|
-
|
|
13003
|
+
ke([
|
|
13004
|
+
Pe()
|
|
13005
|
+
], Ee.prototype, "language", 2);
|
|
13006
|
+
ke([
|
|
13007
|
+
Pe()
|
|
13008
|
+
], Ee.prototype, "label", 2);
|
|
13009
|
+
ke([
|
|
13010
|
+
Pe({ type: Boolean, reflect: !0 })
|
|
13011
|
+
], Ee.prototype, "inline", 2);
|
|
13012
|
+
ke([
|
|
13013
|
+
Pe({ type: Boolean, reflect: !0 })
|
|
13014
|
+
], Ee.prototype, "hideHeader", 2);
|
|
13015
|
+
ke([
|
|
13016
|
+
Pe({ type: Boolean, reflect: !0 })
|
|
13017
|
+
], Ee.prototype, "skipTrim", 2);
|
|
13018
|
+
ke([
|
|
13019
|
+
Nr({})
|
|
13020
|
+
], Ee.prototype, "_codeItems", 2);
|
|
13021
|
+
ke([
|
|
13022
|
+
Pe()
|
|
13023
|
+
], Ee.prototype, "maxHeight", 2);
|
|
13024
|
+
Ee = ke([
|
|
13025
|
+
hr("cv-code-snippet")
|
|
13026
|
+
], Ee);
|
|
13027
|
+
const fi = Ee;
|
|
13026
13028
|
export {
|
|
13027
|
-
|
|
13029
|
+
Ee as CovalentCodeSnippet,
|
|
13028
13030
|
fi as default
|
|
13029
13031
|
};
|