@pi-outpost/embed 0.1.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/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
- package/dist/arc-BBnpgwVQ.js +80 -0
- package/dist/arc-DcUn9_NX.cjs +1 -0
- package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
- package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/bash-BLBHkRa_.js +169 -0
- package/dist/bash-DHJu-DNv.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
- package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
- package/dist/c-4QgYfi8K.cjs +1 -0
- package/dist/c-Cw4FsAeJ.js +176 -0
- package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
- package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
- package/dist/channel-DV0ST12Z.js +5 -0
- package/dist/channel-DkMGzfUR.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
- package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
- package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
- package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
- package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
- package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
- package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
- package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
- package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
- package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
- package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
- package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
- package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
- package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
- package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
- package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
- package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
- package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
- package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
- package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
- package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
- package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
- package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
- package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
- package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
- package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
- package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
- package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
- package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
- package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
- package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
- package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
- package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
- package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
- package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
- package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
- package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
- package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
- package/dist/core-2nR1zkKb.cjs +3 -0
- package/dist/core-BO2hTFeF.js +845 -0
- package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
- package/dist/cpp-BUtp-HE2.cjs +1 -0
- package/dist/cpp-CeyO6lBG.js +225 -0
- package/dist/csharp-BJu4kEpt.cjs +1 -0
- package/dist/csharp-Ck6Fet_o.js +260 -0
- package/dist/css-ClSGJRju.js +140 -0
- package/dist/css-DeFr0lev.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
- package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
- package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
- package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
- package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
- package/dist/dagre-BBlCxSvR.cjs +1 -0
- package/dist/dagre-BpqwxFKp.js +1701 -0
- package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
- package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
- package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
- package/dist/defaultLocale-up9-vqhM.js +201 -0
- package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
- package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
- package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
- package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
- package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
- package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
- package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
- package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
- package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
- package/dist/dist-D6LMt8nW.js +59 -0
- package/dist/dist-DNGlMOWd.cjs +1 -0
- package/dist/dockerfile-O4rAswfG.js +34 -0
- package/dist/dockerfile-YBgAWga3.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
- package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
- package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
- package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
- package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
- package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
- package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
- package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
- package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
- package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
- package/dist/go-D-pz-dmd.cjs +1 -0
- package/dist/go-rg7jg1mu.js +140 -0
- package/dist/graphlib-B0GbLif1.js +1267 -0
- package/dist/graphlib-CkkG5MuS.cjs +1 -0
- package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
- package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
- package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
- package/dist/ini-C1q3_1-Q.js +88 -0
- package/dist/ini-nVcUEghj.cjs +1 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-CirqLVcp.js +15 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
- package/dist/java-CUN_usaq.cjs +1 -0
- package/dist/java-HguKEfA2.js +169 -0
- package/dist/javascript-C8NCH8DE.js +436 -0
- package/dist/javascript-UZXSyUuu.cjs +1 -0
- package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
- package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
- package/dist/json-Cp01TR_B.js +36 -0
- package/dist/json-usH_MUzR.cjs +1 -0
- package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
- package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
- package/dist/line-Ca8dE_lT.cjs +1 -0
- package/dist/line-O2xx2vVQ.js +34 -0
- package/dist/linear-CVhyaVzf.js +289 -0
- package/dist/linear-Cl2-QuPP.cjs +1 -0
- package/dist/map-CwPlMWPw.cjs +1 -0
- package/dist/map-DU12fF3s.js +241 -0
- package/dist/markdown-CzgRofaE.js +181 -0
- package/dist/markdown-qeo95R0i.cjs +1 -0
- package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
- package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
- package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
- package/dist/mermaid.core-DQrbAA--.cjs +10 -0
- package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
- package/dist/mount.d.ts +31 -0
- package/dist/ordinal-CCTD6_le.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
- package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/path-mKa7UESy.js +85 -0
- package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
- package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
- package/dist/php-C9FOMGEA.js +294 -0
- package/dist/php-j6EhDZDE.cjs +2 -0
- package/dist/pi-outpost-embed.cjs +305 -0
- package/dist/pi-outpost-embed.js +40942 -0
- package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
- package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
- package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
- package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
- package/dist/plaintext-BYYAHR3Z.js +10 -0
- package/dist/plaintext-DmnjizxG.cjs +1 -0
- package/dist/python-BYJzTRkK.cjs +1 -0
- package/dist/python-DKAazMIE.js +238 -0
- package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
- package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
- package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
- package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
- package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
- package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
- package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
- package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
- package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
- package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
- package/dist/rough.esm-C5XyeDCN.js +1352 -0
- package/dist/rough.esm-r0QOSzHM.cjs +1 -0
- package/dist/ruby-BAUeZQKZ.js +262 -0
- package/dist/ruby-ClR4zp-1.cjs +1 -0
- package/dist/rust-DiTjMjP5.js +169 -0
- package/dist/rust-ghVvEWhm.cjs +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
- package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
- package/dist/scss-CKxh5HRg.cjs +1 -0
- package/dist/scss-CckAvQOx.js +150 -0
- package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
- package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
- package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
- package/dist/sql-B-Rnc2C3.js +118 -0
- package/dist/sql-B7syKcd8.cjs +1 -0
- package/dist/src-CR--T_NF.cjs +1 -0
- package/dist/src-DJ4x3y2O.js +2142 -0
- package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
- package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
- package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
- package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
- package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
- package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
- package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
- package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
- package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
- package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
- package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
- package/dist/typescript-clWeqIBY.cjs +1 -0
- package/dist/typescript-mdYq8uqf.js +521 -0
- package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
- package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
- package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
- package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
- package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
- package/dist/xml-BamqaQOf.cjs +1 -0
- package/dist/xml-DVYfB8uY.js +166 -0
- package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
- package/dist/yaml-_1BORZTQ.js +144 -0
- package/dist/yaml-bAgWofBg.cjs +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,845 @@
|
|
|
1
|
+
import { r as e, t } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
+
var n = (/* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
3
|
+
function n(e) {
|
|
4
|
+
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
5
|
+
throw Error("map is read-only");
|
|
6
|
+
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
7
|
+
throw Error("set is read-only");
|
|
8
|
+
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((t) => {
|
|
9
|
+
let r = e[t], i = typeof r;
|
|
10
|
+
(i === "object" || i === "function") && !Object.isFrozen(r) && n(r);
|
|
11
|
+
}), e;
|
|
12
|
+
}
|
|
13
|
+
var r = class {
|
|
14
|
+
constructor(e) {
|
|
15
|
+
e.data === void 0 && (e.data = {}), this.data = e.data, this.isMatchIgnored = !1;
|
|
16
|
+
}
|
|
17
|
+
ignoreMatch() {
|
|
18
|
+
this.isMatchIgnored = !0;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function i(e) {
|
|
22
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
23
|
+
}
|
|
24
|
+
function a(e, ...t) {
|
|
25
|
+
let n = Object.create(null);
|
|
26
|
+
for (let t in e) n[t] = e[t];
|
|
27
|
+
return t.forEach(function(e) {
|
|
28
|
+
for (let t in e) n[t] = e[t];
|
|
29
|
+
}), n;
|
|
30
|
+
}
|
|
31
|
+
var o = "</span>", s = (e) => !!e.scope, c = (e, { prefix: t }) => {
|
|
32
|
+
if (e.startsWith("language:")) return e.replace("language:", "language-");
|
|
33
|
+
if (e.includes(".")) {
|
|
34
|
+
let n = e.split(".");
|
|
35
|
+
return [`${t}${n.shift()}`, ...n.map((e, t) => `${e}${"_".repeat(t + 1)}`)].join(" ");
|
|
36
|
+
}
|
|
37
|
+
return `${t}${e}`;
|
|
38
|
+
}, l = class {
|
|
39
|
+
constructor(e, t) {
|
|
40
|
+
this.buffer = "", this.classPrefix = t.classPrefix, e.walk(this);
|
|
41
|
+
}
|
|
42
|
+
addText(e) {
|
|
43
|
+
this.buffer += i(e);
|
|
44
|
+
}
|
|
45
|
+
openNode(e) {
|
|
46
|
+
if (!s(e)) return;
|
|
47
|
+
let t = c(e.scope, { prefix: this.classPrefix });
|
|
48
|
+
this.span(t);
|
|
49
|
+
}
|
|
50
|
+
closeNode(e) {
|
|
51
|
+
s(e) && (this.buffer += o);
|
|
52
|
+
}
|
|
53
|
+
value() {
|
|
54
|
+
return this.buffer;
|
|
55
|
+
}
|
|
56
|
+
span(e) {
|
|
57
|
+
this.buffer += `<span class="${e}">`;
|
|
58
|
+
}
|
|
59
|
+
}, u = (e = {}) => {
|
|
60
|
+
let t = { children: [] };
|
|
61
|
+
return Object.assign(t, e), t;
|
|
62
|
+
}, d = class e {
|
|
63
|
+
constructor() {
|
|
64
|
+
this.rootNode = u(), this.stack = [this.rootNode];
|
|
65
|
+
}
|
|
66
|
+
get top() {
|
|
67
|
+
return this.stack[this.stack.length - 1];
|
|
68
|
+
}
|
|
69
|
+
get root() {
|
|
70
|
+
return this.rootNode;
|
|
71
|
+
}
|
|
72
|
+
add(e) {
|
|
73
|
+
this.top.children.push(e);
|
|
74
|
+
}
|
|
75
|
+
openNode(e) {
|
|
76
|
+
let t = u({ scope: e });
|
|
77
|
+
this.add(t), this.stack.push(t);
|
|
78
|
+
}
|
|
79
|
+
closeNode() {
|
|
80
|
+
if (this.stack.length > 1) return this.stack.pop();
|
|
81
|
+
}
|
|
82
|
+
closeAllNodes() {
|
|
83
|
+
for (; this.closeNode(););
|
|
84
|
+
}
|
|
85
|
+
toJSON() {
|
|
86
|
+
return JSON.stringify(this.rootNode, null, 4);
|
|
87
|
+
}
|
|
88
|
+
walk(e) {
|
|
89
|
+
return this.constructor._walk(e, this.rootNode);
|
|
90
|
+
}
|
|
91
|
+
static _walk(e, t) {
|
|
92
|
+
return typeof t == "string" ? e.addText(t) : t.children && (e.openNode(t), t.children.forEach((t) => this._walk(e, t)), e.closeNode(t)), e;
|
|
93
|
+
}
|
|
94
|
+
static _collapse(t) {
|
|
95
|
+
typeof t != "string" && t.children && (t.children.every((e) => typeof e == "string") ? t.children = [t.children.join("")] : t.children.forEach((t) => {
|
|
96
|
+
e._collapse(t);
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
}, f = class extends d {
|
|
100
|
+
constructor(e) {
|
|
101
|
+
super(), this.options = e;
|
|
102
|
+
}
|
|
103
|
+
addText(e) {
|
|
104
|
+
e !== "" && this.add(e);
|
|
105
|
+
}
|
|
106
|
+
startScope(e) {
|
|
107
|
+
this.openNode(e);
|
|
108
|
+
}
|
|
109
|
+
endScope() {
|
|
110
|
+
this.closeNode();
|
|
111
|
+
}
|
|
112
|
+
__addSublanguage(e, t) {
|
|
113
|
+
let n = e.root;
|
|
114
|
+
t && (n.scope = `language:${t}`), this.add(n);
|
|
115
|
+
}
|
|
116
|
+
toHTML() {
|
|
117
|
+
return new l(this, this.options).value();
|
|
118
|
+
}
|
|
119
|
+
finalize() {
|
|
120
|
+
return this.closeAllNodes(), !0;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
function p(e) {
|
|
124
|
+
return e ? typeof e == "string" ? e : e.source : null;
|
|
125
|
+
}
|
|
126
|
+
function m(e) {
|
|
127
|
+
return _("(?=", e, ")");
|
|
128
|
+
}
|
|
129
|
+
function h(e) {
|
|
130
|
+
return _("(?:", e, ")*");
|
|
131
|
+
}
|
|
132
|
+
function g(e) {
|
|
133
|
+
return _("(?:", e, ")?");
|
|
134
|
+
}
|
|
135
|
+
function _(...e) {
|
|
136
|
+
return e.map((e) => p(e)).join("");
|
|
137
|
+
}
|
|
138
|
+
function v(e) {
|
|
139
|
+
let t = e[e.length - 1];
|
|
140
|
+
return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
|
|
141
|
+
}
|
|
142
|
+
function y(...e) {
|
|
143
|
+
return "(" + (v(e).capture ? "" : "?:") + e.map((e) => p(e)).join("|") + ")";
|
|
144
|
+
}
|
|
145
|
+
function b(e) {
|
|
146
|
+
return RegExp(e.toString() + "|").exec("").length - 1;
|
|
147
|
+
}
|
|
148
|
+
function ee(e, t) {
|
|
149
|
+
let n = e && e.exec(t);
|
|
150
|
+
return n && n.index === 0;
|
|
151
|
+
}
|
|
152
|
+
var x = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
153
|
+
function S(e, { joinWith: t }) {
|
|
154
|
+
let n = 0;
|
|
155
|
+
return e.map((e) => {
|
|
156
|
+
n += 1;
|
|
157
|
+
let t = n, r = p(e), i = "";
|
|
158
|
+
for (; r.length > 0;) {
|
|
159
|
+
let e = x.exec(r);
|
|
160
|
+
if (!e) {
|
|
161
|
+
i += r;
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], e[0] === "(" && n++);
|
|
165
|
+
}
|
|
166
|
+
return i;
|
|
167
|
+
}).map((e) => `(${e})`).join(t);
|
|
168
|
+
}
|
|
169
|
+
var C = /\b\B/, w = "[a-zA-Z]\\w*", T = "[a-zA-Z_]\\w*", E = "\\b\\d+(\\.\\d+)?", D = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", O = "\\b(0b[01]+)", k = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", A = (e = {}) => {
|
|
170
|
+
let t = /^#![ ]*\//;
|
|
171
|
+
return e.binary && (e.begin = _(t, /.*\b/, e.binary, /\b.*/)), a({
|
|
172
|
+
scope: "meta",
|
|
173
|
+
begin: t,
|
|
174
|
+
end: /$/,
|
|
175
|
+
relevance: 0,
|
|
176
|
+
"on:begin": (e, t) => {
|
|
177
|
+
e.index !== 0 && t.ignoreMatch();
|
|
178
|
+
}
|
|
179
|
+
}, e);
|
|
180
|
+
}, j = {
|
|
181
|
+
begin: "\\\\[\\s\\S]",
|
|
182
|
+
relevance: 0
|
|
183
|
+
}, M = {
|
|
184
|
+
scope: "string",
|
|
185
|
+
begin: "'",
|
|
186
|
+
end: "'",
|
|
187
|
+
illegal: "\\n",
|
|
188
|
+
contains: [j]
|
|
189
|
+
}, N = {
|
|
190
|
+
scope: "string",
|
|
191
|
+
begin: "\"",
|
|
192
|
+
end: "\"",
|
|
193
|
+
illegal: "\\n",
|
|
194
|
+
contains: [j]
|
|
195
|
+
}, P = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, F = function(e, t, n = {}) {
|
|
196
|
+
let r = a({
|
|
197
|
+
scope: "comment",
|
|
198
|
+
begin: e,
|
|
199
|
+
end: t,
|
|
200
|
+
contains: []
|
|
201
|
+
}, n);
|
|
202
|
+
r.contains.push({
|
|
203
|
+
scope: "doctag",
|
|
204
|
+
begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
|
|
205
|
+
end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
|
|
206
|
+
excludeBegin: !0,
|
|
207
|
+
relevance: 0
|
|
208
|
+
});
|
|
209
|
+
let i = y("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
|
|
210
|
+
return r.contains.push({ begin: _(/[ ]+/, "(", i, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), r;
|
|
211
|
+
}, I = F("//", "$"), L = F("/\\*", "\\*/"), R = F("#", "$"), z = /*#__PURE__*/ Object.freeze({
|
|
212
|
+
__proto__: null,
|
|
213
|
+
APOS_STRING_MODE: M,
|
|
214
|
+
BACKSLASH_ESCAPE: j,
|
|
215
|
+
BINARY_NUMBER_MODE: {
|
|
216
|
+
scope: "number",
|
|
217
|
+
begin: O,
|
|
218
|
+
relevance: 0
|
|
219
|
+
},
|
|
220
|
+
BINARY_NUMBER_RE: O,
|
|
221
|
+
COMMENT: F,
|
|
222
|
+
C_BLOCK_COMMENT_MODE: L,
|
|
223
|
+
C_LINE_COMMENT_MODE: I,
|
|
224
|
+
C_NUMBER_MODE: {
|
|
225
|
+
scope: "number",
|
|
226
|
+
begin: D,
|
|
227
|
+
relevance: 0
|
|
228
|
+
},
|
|
229
|
+
C_NUMBER_RE: D,
|
|
230
|
+
END_SAME_AS_BEGIN: function(e) {
|
|
231
|
+
return Object.assign(e, {
|
|
232
|
+
"on:begin": (e, t) => {
|
|
233
|
+
t.data._beginMatch = e[1];
|
|
234
|
+
},
|
|
235
|
+
"on:end": (e, t) => {
|
|
236
|
+
t.data._beginMatch !== e[1] && t.ignoreMatch();
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
HASH_COMMENT_MODE: R,
|
|
241
|
+
IDENT_RE: w,
|
|
242
|
+
MATCH_NOTHING_RE: C,
|
|
243
|
+
METHOD_GUARD: {
|
|
244
|
+
begin: "\\.\\s*[a-zA-Z_]\\w*",
|
|
245
|
+
relevance: 0
|
|
246
|
+
},
|
|
247
|
+
NUMBER_MODE: {
|
|
248
|
+
scope: "number",
|
|
249
|
+
begin: E,
|
|
250
|
+
relevance: 0
|
|
251
|
+
},
|
|
252
|
+
NUMBER_RE: E,
|
|
253
|
+
PHRASAL_WORDS_MODE: P,
|
|
254
|
+
QUOTE_STRING_MODE: N,
|
|
255
|
+
REGEXP_MODE: {
|
|
256
|
+
scope: "regexp",
|
|
257
|
+
begin: /\/(?=[^/\n]*\/)/,
|
|
258
|
+
end: /\/[gimuy]*/,
|
|
259
|
+
contains: [j, {
|
|
260
|
+
begin: /\[/,
|
|
261
|
+
end: /\]/,
|
|
262
|
+
relevance: 0,
|
|
263
|
+
contains: [j]
|
|
264
|
+
}]
|
|
265
|
+
},
|
|
266
|
+
RE_STARTERS_RE: k,
|
|
267
|
+
SHEBANG: A,
|
|
268
|
+
TITLE_MODE: {
|
|
269
|
+
scope: "title",
|
|
270
|
+
begin: w,
|
|
271
|
+
relevance: 0
|
|
272
|
+
},
|
|
273
|
+
UNDERSCORE_IDENT_RE: T,
|
|
274
|
+
UNDERSCORE_TITLE_MODE: {
|
|
275
|
+
scope: "title",
|
|
276
|
+
begin: T,
|
|
277
|
+
relevance: 0
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
function B(e, t) {
|
|
281
|
+
e.input[e.index - 1] === "." && t.ignoreMatch();
|
|
282
|
+
}
|
|
283
|
+
function te(e, t) {
|
|
284
|
+
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
285
|
+
}
|
|
286
|
+
function ne(e, t) {
|
|
287
|
+
t && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = B, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
288
|
+
}
|
|
289
|
+
function re(e, t) {
|
|
290
|
+
Array.isArray(e.illegal) && (e.illegal = y(...e.illegal));
|
|
291
|
+
}
|
|
292
|
+
function ie(e, t) {
|
|
293
|
+
if (e.match) {
|
|
294
|
+
if (e.begin || e.end) throw Error("begin & end are not supported with match");
|
|
295
|
+
e.begin = e.match, delete e.match;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function ae(e, t) {
|
|
299
|
+
e.relevance === void 0 && (e.relevance = 1);
|
|
300
|
+
}
|
|
301
|
+
var oe = (e, t) => {
|
|
302
|
+
if (!e.beforeMatch) return;
|
|
303
|
+
if (e.starts) throw Error("beforeMatch cannot be used with starts");
|
|
304
|
+
let n = Object.assign({}, e);
|
|
305
|
+
Object.keys(e).forEach((t) => {
|
|
306
|
+
delete e[t];
|
|
307
|
+
}), e.keywords = n.keywords, e.begin = _(n.beforeMatch, m(n.begin)), e.starts = {
|
|
308
|
+
relevance: 0,
|
|
309
|
+
contains: [Object.assign(n, { endsParent: !0 })]
|
|
310
|
+
}, e.relevance = 0, delete n.beforeMatch;
|
|
311
|
+
}, se = [
|
|
312
|
+
"of",
|
|
313
|
+
"and",
|
|
314
|
+
"for",
|
|
315
|
+
"in",
|
|
316
|
+
"not",
|
|
317
|
+
"or",
|
|
318
|
+
"if",
|
|
319
|
+
"then",
|
|
320
|
+
"parent",
|
|
321
|
+
"list",
|
|
322
|
+
"value"
|
|
323
|
+
], ce = "keyword";
|
|
324
|
+
function V(e, t, n = ce) {
|
|
325
|
+
let r = Object.create(null);
|
|
326
|
+
return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(n) {
|
|
327
|
+
Object.assign(r, V(e[n], t, n));
|
|
328
|
+
}), r;
|
|
329
|
+
function i(e, n) {
|
|
330
|
+
t && (n = n.map((e) => e.toLowerCase())), n.forEach(function(t) {
|
|
331
|
+
let n = t.split("|");
|
|
332
|
+
r[n[0]] = [e, le(n[0], n[1])];
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
function le(e, t) {
|
|
337
|
+
return t ? Number(t) : +!ue(e);
|
|
338
|
+
}
|
|
339
|
+
function ue(e) {
|
|
340
|
+
return se.includes(e.toLowerCase());
|
|
341
|
+
}
|
|
342
|
+
var H = {}, U = (e) => {
|
|
343
|
+
console.error(e);
|
|
344
|
+
}, W = (e, ...t) => {
|
|
345
|
+
console.log(`WARN: ${e}`, ...t);
|
|
346
|
+
}, G = (e, t) => {
|
|
347
|
+
H[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), H[`${e}/${t}`] = !0);
|
|
348
|
+
}, K = /* @__PURE__ */ Error();
|
|
349
|
+
function q(e, t, { key: n }) {
|
|
350
|
+
let r = 0, i = e[n], a = {}, o = {};
|
|
351
|
+
for (let e = 1; e <= t.length; e++) o[e + r] = i[e], a[e + r] = !0, r += b(t[e - 1]);
|
|
352
|
+
e[n] = o, e[n]._emit = a, e[n]._multi = !0;
|
|
353
|
+
}
|
|
354
|
+
function de(e) {
|
|
355
|
+
if (Array.isArray(e.begin)) {
|
|
356
|
+
if (e.skip || e.excludeBegin || e.returnBegin) throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), K;
|
|
357
|
+
if (typeof e.beginScope != "object" || e.beginScope === null) throw U("beginScope must be object"), K;
|
|
358
|
+
q(e, e.begin, { key: "beginScope" }), e.begin = S(e.begin, { joinWith: "" });
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function fe(e) {
|
|
362
|
+
if (Array.isArray(e.end)) {
|
|
363
|
+
if (e.skip || e.excludeEnd || e.returnEnd) throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"), K;
|
|
364
|
+
if (typeof e.endScope != "object" || e.endScope === null) throw U("endScope must be object"), K;
|
|
365
|
+
q(e, e.end, { key: "endScope" }), e.end = S(e.end, { joinWith: "" });
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
function pe(e) {
|
|
369
|
+
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
370
|
+
}
|
|
371
|
+
function me(e) {
|
|
372
|
+
pe(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), de(e), fe(e);
|
|
373
|
+
}
|
|
374
|
+
function he(e) {
|
|
375
|
+
function t(t, n) {
|
|
376
|
+
return new RegExp(p(t), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (n ? "g" : ""));
|
|
377
|
+
}
|
|
378
|
+
class n {
|
|
379
|
+
constructor() {
|
|
380
|
+
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
381
|
+
}
|
|
382
|
+
addRule(e, t) {
|
|
383
|
+
t.position = this.position++, this.matchIndexes[this.matchAt] = t, this.regexes.push([t, e]), this.matchAt += b(e) + 1;
|
|
384
|
+
}
|
|
385
|
+
compile() {
|
|
386
|
+
this.regexes.length === 0 && (this.exec = () => null);
|
|
387
|
+
let e = this.regexes.map((e) => e[1]);
|
|
388
|
+
this.matcherRe = t(S(e, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
389
|
+
}
|
|
390
|
+
exec(e) {
|
|
391
|
+
this.matcherRe.lastIndex = this.lastIndex;
|
|
392
|
+
let t = this.matcherRe.exec(e);
|
|
393
|
+
if (!t) return null;
|
|
394
|
+
let n = t.findIndex((e, t) => t > 0 && e !== void 0), r = this.matchIndexes[n];
|
|
395
|
+
return t.splice(0, n), Object.assign(t, r);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
class r {
|
|
399
|
+
constructor() {
|
|
400
|
+
this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
|
|
401
|
+
}
|
|
402
|
+
getMatcher(e) {
|
|
403
|
+
if (this.multiRegexes[e]) return this.multiRegexes[e];
|
|
404
|
+
let t = new n();
|
|
405
|
+
return this.rules.slice(e).forEach(([e, n]) => t.addRule(e, n)), t.compile(), this.multiRegexes[e] = t, t;
|
|
406
|
+
}
|
|
407
|
+
resumingScanAtSamePosition() {
|
|
408
|
+
return this.regexIndex !== 0;
|
|
409
|
+
}
|
|
410
|
+
considerAll() {
|
|
411
|
+
this.regexIndex = 0;
|
|
412
|
+
}
|
|
413
|
+
addRule(e, t) {
|
|
414
|
+
this.rules.push([e, t]), t.type === "begin" && this.count++;
|
|
415
|
+
}
|
|
416
|
+
exec(e) {
|
|
417
|
+
let t = this.getMatcher(this.regexIndex);
|
|
418
|
+
t.lastIndex = this.lastIndex;
|
|
419
|
+
let n = t.exec(e);
|
|
420
|
+
if (this.resumingScanAtSamePosition() && !(n && n.index === this.lastIndex)) {
|
|
421
|
+
let t = this.getMatcher(0);
|
|
422
|
+
t.lastIndex = this.lastIndex + 1, n = t.exec(e);
|
|
423
|
+
}
|
|
424
|
+
return n && (this.regexIndex += n.position + 1, this.regexIndex === this.count && this.considerAll()), n;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
function i(e) {
|
|
428
|
+
let t = new r();
|
|
429
|
+
return e.contains.forEach((e) => t.addRule(e.begin, {
|
|
430
|
+
rule: e,
|
|
431
|
+
type: "begin"
|
|
432
|
+
})), e.terminatorEnd && t.addRule(e.terminatorEnd, { type: "end" }), e.illegal && t.addRule(e.illegal, { type: "illegal" }), t;
|
|
433
|
+
}
|
|
434
|
+
function o(n, r) {
|
|
435
|
+
let a = n;
|
|
436
|
+
if (n.isCompiled) return a;
|
|
437
|
+
[
|
|
438
|
+
te,
|
|
439
|
+
ie,
|
|
440
|
+
me,
|
|
441
|
+
oe
|
|
442
|
+
].forEach((e) => e(n, r)), e.compilerExtensions.forEach((e) => e(n, r)), n.__beforeBegin = null, [
|
|
443
|
+
ne,
|
|
444
|
+
re,
|
|
445
|
+
ae
|
|
446
|
+
].forEach((e) => e(n, r)), n.isCompiled = !0;
|
|
447
|
+
let s = null;
|
|
448
|
+
return typeof n.keywords == "object" && n.keywords.$pattern && (n.keywords = Object.assign({}, n.keywords), s = n.keywords.$pattern, delete n.keywords.$pattern), s ||= /\w+/, n.keywords &&= V(n.keywords, e.case_insensitive), a.keywordPatternRe = t(s, !0), r && (n.begin ||= /\B|\b/, a.beginRe = t(a.begin), !n.end && !n.endsWithParent && (n.end = /\B|\b/), n.end && (a.endRe = t(a.end)), a.terminatorEnd = p(a.end) || "", n.endsWithParent && r.terminatorEnd && (a.terminatorEnd += (n.end ? "|" : "") + r.terminatorEnd)), n.illegal && (a.illegalRe = t(n.illegal)), n.contains ||= [], n.contains = [].concat(...n.contains.map(function(e) {
|
|
449
|
+
return ge(e === "self" ? n : e);
|
|
450
|
+
})), n.contains.forEach(function(e) {
|
|
451
|
+
o(e, a);
|
|
452
|
+
}), n.starts && o(n.starts, r), a.matcher = i(a), a;
|
|
453
|
+
}
|
|
454
|
+
if (e.compilerExtensions ||= [], e.contains && e.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
455
|
+
return e.classNameAliases = a(e.classNameAliases || {}), o(e);
|
|
456
|
+
}
|
|
457
|
+
function J(e) {
|
|
458
|
+
return e ? e.endsWithParent || J(e.starts) : !1;
|
|
459
|
+
}
|
|
460
|
+
function ge(e) {
|
|
461
|
+
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
|
|
462
|
+
return a(e, { variants: null }, t);
|
|
463
|
+
})), e.cachedVariants ? e.cachedVariants : J(e) ? a(e, { starts: e.starts ? a(e.starts) : null }) : Object.isFrozen(e) ? a(e) : e;
|
|
464
|
+
}
|
|
465
|
+
var _e = "11.11.1", ve = class extends Error {
|
|
466
|
+
constructor(e, t) {
|
|
467
|
+
super(e), this.name = "HTMLInjectionError", this.html = t;
|
|
468
|
+
}
|
|
469
|
+
}, Y = i, X = a, Z = Symbol("nomatch"), ye = 7, Q = function(e) {
|
|
470
|
+
let t = Object.create(null), i = Object.create(null), a = [], o = !0, s = "Could not find the language '{}', did you forget to load/include a language module?", c = {
|
|
471
|
+
disableAutodetect: !0,
|
|
472
|
+
name: "Plain text",
|
|
473
|
+
contains: []
|
|
474
|
+
}, l = {
|
|
475
|
+
ignoreUnescapedHTML: !1,
|
|
476
|
+
throwUnescapedHTML: !1,
|
|
477
|
+
noHighlightRe: /^(no-?highlight)$/i,
|
|
478
|
+
languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
|
|
479
|
+
classPrefix: "hljs-",
|
|
480
|
+
cssSelector: "pre code",
|
|
481
|
+
languages: null,
|
|
482
|
+
__emitter: f
|
|
483
|
+
};
|
|
484
|
+
function u(e) {
|
|
485
|
+
return l.noHighlightRe.test(e);
|
|
486
|
+
}
|
|
487
|
+
function d(e) {
|
|
488
|
+
let t = e.className + " ";
|
|
489
|
+
t += e.parentNode ? e.parentNode.className : "";
|
|
490
|
+
let n = l.languageDetectRe.exec(t);
|
|
491
|
+
if (n) {
|
|
492
|
+
let t = M(n[1]);
|
|
493
|
+
return t || (W(s.replace("{}", n[1])), W("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
|
|
494
|
+
}
|
|
495
|
+
return t.split(/\s+/).find((e) => u(e) || M(e));
|
|
496
|
+
}
|
|
497
|
+
function p(e, t, n) {
|
|
498
|
+
let r = "", i = "";
|
|
499
|
+
typeof t == "object" ? (r = e, n = t.ignoreIllegals, i = t.language) : (G("10.7.0", "highlight(lang, code, ...args) has been deprecated."), G("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), i = e, r = t), n === void 0 && (n = !0);
|
|
500
|
+
let a = {
|
|
501
|
+
code: r,
|
|
502
|
+
language: i
|
|
503
|
+
};
|
|
504
|
+
R("before:highlight", a);
|
|
505
|
+
let o = a.result ? a.result : v(a.language, a.code, n);
|
|
506
|
+
return o.code = a.code, R("after:highlight", o), o;
|
|
507
|
+
}
|
|
508
|
+
function v(e, n, i, a) {
|
|
509
|
+
let c = Object.create(null);
|
|
510
|
+
function u(e, t) {
|
|
511
|
+
return e.keywords[t];
|
|
512
|
+
}
|
|
513
|
+
function d() {
|
|
514
|
+
if (!k.keywords) {
|
|
515
|
+
j.addText(N);
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
let e = 0;
|
|
519
|
+
k.keywordPatternRe.lastIndex = 0;
|
|
520
|
+
let t = k.keywordPatternRe.exec(N), n = "";
|
|
521
|
+
for (; t;) {
|
|
522
|
+
n += N.substring(e, t.index);
|
|
523
|
+
let r = E.case_insensitive ? t[0].toLowerCase() : t[0], i = u(k, r);
|
|
524
|
+
if (i) {
|
|
525
|
+
let [e, a] = i;
|
|
526
|
+
if (j.addText(n), n = "", c[r] = (c[r] || 0) + 1, c[r] <= ye && (P += a), e.startsWith("_")) n += t[0];
|
|
527
|
+
else {
|
|
528
|
+
let n = E.classNameAliases[e] || e;
|
|
529
|
+
m(t[0], n);
|
|
530
|
+
}
|
|
531
|
+
} else n += t[0];
|
|
532
|
+
e = k.keywordPatternRe.lastIndex, t = k.keywordPatternRe.exec(N);
|
|
533
|
+
}
|
|
534
|
+
n += N.substring(e), j.addText(n);
|
|
535
|
+
}
|
|
536
|
+
function f() {
|
|
537
|
+
if (N === "") return;
|
|
538
|
+
let e = null;
|
|
539
|
+
if (typeof k.subLanguage == "string") {
|
|
540
|
+
if (!t[k.subLanguage]) {
|
|
541
|
+
j.addText(N);
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
e = v(k.subLanguage, N, !0, A[k.subLanguage]), A[k.subLanguage] = e._top;
|
|
545
|
+
} else e = x(N, k.subLanguage.length ? k.subLanguage : null);
|
|
546
|
+
k.relevance > 0 && (P += e.relevance), j.__addSublanguage(e._emitter, e.language);
|
|
547
|
+
}
|
|
548
|
+
function p() {
|
|
549
|
+
k.subLanguage == null ? d() : f(), N = "";
|
|
550
|
+
}
|
|
551
|
+
function m(e, t) {
|
|
552
|
+
e !== "" && (j.startScope(t), j.addText(e), j.endScope());
|
|
553
|
+
}
|
|
554
|
+
function h(e, t) {
|
|
555
|
+
let n = 1, r = t.length - 1;
|
|
556
|
+
for (; n <= r;) {
|
|
557
|
+
if (!e._emit[n]) {
|
|
558
|
+
n++;
|
|
559
|
+
continue;
|
|
560
|
+
}
|
|
561
|
+
let r = E.classNameAliases[e[n]] || e[n], i = t[n];
|
|
562
|
+
r ? m(i, r) : (N = i, d(), N = ""), n++;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
function g(e, t) {
|
|
566
|
+
return e.scope && typeof e.scope == "string" && j.openNode(E.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (m(N, E.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), N = "") : e.beginScope._multi && (h(e.beginScope, t), N = "")), k = Object.create(e, { parent: { value: k } }), k;
|
|
567
|
+
}
|
|
568
|
+
function _(e, t, n) {
|
|
569
|
+
let i = ee(e.endRe, n);
|
|
570
|
+
if (i) {
|
|
571
|
+
if (e["on:end"]) {
|
|
572
|
+
let n = new r(e);
|
|
573
|
+
e["on:end"](t, n), n.isMatchIgnored && (i = !1);
|
|
574
|
+
}
|
|
575
|
+
if (i) {
|
|
576
|
+
for (; e.endsParent && e.parent;) e = e.parent;
|
|
577
|
+
return e;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
if (e.endsWithParent) return _(e.parent, t, n);
|
|
581
|
+
}
|
|
582
|
+
function y(e) {
|
|
583
|
+
return k.matcher.regexIndex === 0 ? (N += e[0], 1) : (L = !0, 0);
|
|
584
|
+
}
|
|
585
|
+
function b(e) {
|
|
586
|
+
let t = e[0], n = e.rule, i = new r(n), a = [n.__beforeBegin, n["on:begin"]];
|
|
587
|
+
for (let n of a) if (n && (n(e, i), i.isMatchIgnored)) return y(t);
|
|
588
|
+
return n.skip ? N += t : (n.excludeBegin && (N += t), p(), !n.returnBegin && !n.excludeBegin && (N = t)), g(n, e), n.returnBegin ? 0 : t.length;
|
|
589
|
+
}
|
|
590
|
+
function S(e) {
|
|
591
|
+
let t = e[0], r = n.substring(e.index), i = _(k, e, r);
|
|
592
|
+
if (!i) return Z;
|
|
593
|
+
let a = k;
|
|
594
|
+
k.endScope && k.endScope._wrap ? (p(), m(t, k.endScope._wrap)) : k.endScope && k.endScope._multi ? (p(), h(k.endScope, e)) : a.skip ? N += t : (a.returnEnd || a.excludeEnd || (N += t), p(), a.excludeEnd && (N = t));
|
|
595
|
+
do
|
|
596
|
+
k.scope && j.closeNode(), !k.skip && !k.subLanguage && (P += k.relevance), k = k.parent;
|
|
597
|
+
while (k !== i.parent);
|
|
598
|
+
return i.starts && g(i.starts, e), a.returnEnd ? 0 : t.length;
|
|
599
|
+
}
|
|
600
|
+
function C() {
|
|
601
|
+
let e = [];
|
|
602
|
+
for (let t = k; t !== E; t = t.parent) t.scope && e.unshift(t.scope);
|
|
603
|
+
e.forEach((e) => j.openNode(e));
|
|
604
|
+
}
|
|
605
|
+
let w = {};
|
|
606
|
+
function T(t, r) {
|
|
607
|
+
let a = r && r[0];
|
|
608
|
+
if (N += t, a == null) return p(), 0;
|
|
609
|
+
if (w.type === "begin" && r.type === "end" && w.index === r.index && a === "") {
|
|
610
|
+
if (N += n.slice(r.index, r.index + 1), !o) {
|
|
611
|
+
let t = /* @__PURE__ */ Error(`0 width match regex (${e})`);
|
|
612
|
+
throw t.languageName = e, t.badRule = w.rule, t;
|
|
613
|
+
}
|
|
614
|
+
return 1;
|
|
615
|
+
}
|
|
616
|
+
if (w = r, r.type === "begin") return b(r);
|
|
617
|
+
if (r.type === "illegal" && !i) {
|
|
618
|
+
let e = /* @__PURE__ */ Error("Illegal lexeme \"" + a + "\" for mode \"" + (k.scope || "<unnamed>") + "\"");
|
|
619
|
+
throw e.mode = k, e;
|
|
620
|
+
} else if (r.type === "end") {
|
|
621
|
+
let e = S(r);
|
|
622
|
+
if (e !== Z) return e;
|
|
623
|
+
}
|
|
624
|
+
if (r.type === "illegal" && a === "") return N += "\n", 1;
|
|
625
|
+
if (I > 1e5 && I > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
|
|
626
|
+
return N += a, a.length;
|
|
627
|
+
}
|
|
628
|
+
let E = M(e);
|
|
629
|
+
if (!E) throw U(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
|
|
630
|
+
let D = he(E), O = "", k = a || D, A = {}, j = new l.__emitter(l);
|
|
631
|
+
C();
|
|
632
|
+
let N = "", P = 0, F = 0, I = 0, L = !1;
|
|
633
|
+
try {
|
|
634
|
+
if (E.__emitTokens) E.__emitTokens(n, j);
|
|
635
|
+
else {
|
|
636
|
+
for (k.matcher.considerAll();;) {
|
|
637
|
+
I++, L ? L = !1 : k.matcher.considerAll(), k.matcher.lastIndex = F;
|
|
638
|
+
let e = k.matcher.exec(n);
|
|
639
|
+
if (!e) break;
|
|
640
|
+
let t = T(n.substring(F, e.index), e);
|
|
641
|
+
F = e.index + t;
|
|
642
|
+
}
|
|
643
|
+
T(n.substring(F));
|
|
644
|
+
}
|
|
645
|
+
return j.finalize(), O = j.toHTML(), {
|
|
646
|
+
language: e,
|
|
647
|
+
value: O,
|
|
648
|
+
relevance: P,
|
|
649
|
+
illegal: !1,
|
|
650
|
+
_emitter: j,
|
|
651
|
+
_top: k
|
|
652
|
+
};
|
|
653
|
+
} catch (t) {
|
|
654
|
+
if (t.message && t.message.includes("Illegal")) return {
|
|
655
|
+
language: e,
|
|
656
|
+
value: Y(n),
|
|
657
|
+
illegal: !0,
|
|
658
|
+
relevance: 0,
|
|
659
|
+
_illegalBy: {
|
|
660
|
+
message: t.message,
|
|
661
|
+
index: F,
|
|
662
|
+
context: n.slice(F - 100, F + 100),
|
|
663
|
+
mode: t.mode,
|
|
664
|
+
resultSoFar: O
|
|
665
|
+
},
|
|
666
|
+
_emitter: j
|
|
667
|
+
};
|
|
668
|
+
if (o) return {
|
|
669
|
+
language: e,
|
|
670
|
+
value: Y(n),
|
|
671
|
+
illegal: !1,
|
|
672
|
+
relevance: 0,
|
|
673
|
+
errorRaised: t,
|
|
674
|
+
_emitter: j,
|
|
675
|
+
_top: k
|
|
676
|
+
};
|
|
677
|
+
throw t;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
function b(e) {
|
|
681
|
+
let t = {
|
|
682
|
+
value: Y(e),
|
|
683
|
+
illegal: !1,
|
|
684
|
+
relevance: 0,
|
|
685
|
+
_top: c,
|
|
686
|
+
_emitter: new l.__emitter(l)
|
|
687
|
+
};
|
|
688
|
+
return t._emitter.addText(e), t;
|
|
689
|
+
}
|
|
690
|
+
function x(e, n) {
|
|
691
|
+
n = n || l.languages || Object.keys(t);
|
|
692
|
+
let r = b(e), i = n.filter(M).filter(P).map((t) => v(t, e, !1));
|
|
693
|
+
i.unshift(r);
|
|
694
|
+
let [a, o] = i.sort((e, t) => {
|
|
695
|
+
if (e.relevance !== t.relevance) return t.relevance - e.relevance;
|
|
696
|
+
if (e.language && t.language) {
|
|
697
|
+
if (M(e.language).supersetOf === t.language) return 1;
|
|
698
|
+
if (M(t.language).supersetOf === e.language) return -1;
|
|
699
|
+
}
|
|
700
|
+
return 0;
|
|
701
|
+
}), s = a;
|
|
702
|
+
return s.secondBest = o, s;
|
|
703
|
+
}
|
|
704
|
+
function S(e, t, n) {
|
|
705
|
+
let r = t && i[t] || n;
|
|
706
|
+
e.classList.add("hljs"), e.classList.add(`language-${r}`);
|
|
707
|
+
}
|
|
708
|
+
function C(e) {
|
|
709
|
+
let t = null, n = d(e);
|
|
710
|
+
if (u(n)) return;
|
|
711
|
+
if (R("before:highlightElement", {
|
|
712
|
+
el: e,
|
|
713
|
+
language: n
|
|
714
|
+
}), e.dataset.highlighted) {
|
|
715
|
+
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
if (e.children.length > 0 && (l.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), l.throwUnescapedHTML)) throw new ve("One of your code blocks includes unescaped HTML.", e.innerHTML);
|
|
719
|
+
t = e;
|
|
720
|
+
let r = t.textContent, i = n ? p(r, {
|
|
721
|
+
language: n,
|
|
722
|
+
ignoreIllegals: !0
|
|
723
|
+
}) : x(r);
|
|
724
|
+
e.innerHTML = i.value, e.dataset.highlighted = "yes", S(e, n, i.language), e.result = {
|
|
725
|
+
language: i.language,
|
|
726
|
+
re: i.relevance,
|
|
727
|
+
relevance: i.relevance
|
|
728
|
+
}, i.secondBest && (e.secondBest = {
|
|
729
|
+
language: i.secondBest.language,
|
|
730
|
+
relevance: i.secondBest.relevance
|
|
731
|
+
}), R("after:highlightElement", {
|
|
732
|
+
el: e,
|
|
733
|
+
result: i,
|
|
734
|
+
text: r
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
function w(e) {
|
|
738
|
+
l = X(l, e);
|
|
739
|
+
}
|
|
740
|
+
let T = () => {
|
|
741
|
+
O(), G("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
742
|
+
};
|
|
743
|
+
function E() {
|
|
744
|
+
O(), G("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
745
|
+
}
|
|
746
|
+
let D = !1;
|
|
747
|
+
function O() {
|
|
748
|
+
function e() {
|
|
749
|
+
O();
|
|
750
|
+
}
|
|
751
|
+
if (document.readyState === "loading") {
|
|
752
|
+
D || window.addEventListener("DOMContentLoaded", e, !1), D = !0;
|
|
753
|
+
return;
|
|
754
|
+
}
|
|
755
|
+
document.querySelectorAll(l.cssSelector).forEach(C);
|
|
756
|
+
}
|
|
757
|
+
function k(n, r) {
|
|
758
|
+
let i = null;
|
|
759
|
+
try {
|
|
760
|
+
i = r(e);
|
|
761
|
+
} catch (e) {
|
|
762
|
+
if (U("Language definition for '{}' could not be registered.".replace("{}", n)), o) U(e);
|
|
763
|
+
else throw e;
|
|
764
|
+
i = c;
|
|
765
|
+
}
|
|
766
|
+
i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && N(i.aliases, { languageName: n });
|
|
767
|
+
}
|
|
768
|
+
function A(e) {
|
|
769
|
+
delete t[e];
|
|
770
|
+
for (let t of Object.keys(i)) i[t] === e && delete i[t];
|
|
771
|
+
}
|
|
772
|
+
function j() {
|
|
773
|
+
return Object.keys(t);
|
|
774
|
+
}
|
|
775
|
+
function M(e) {
|
|
776
|
+
return e = (e || "").toLowerCase(), t[e] || t[i[e]];
|
|
777
|
+
}
|
|
778
|
+
function N(e, { languageName: t }) {
|
|
779
|
+
typeof e == "string" && (e = [e]), e.forEach((e) => {
|
|
780
|
+
i[e.toLowerCase()] = t;
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
function P(e) {
|
|
784
|
+
let t = M(e);
|
|
785
|
+
return t && !t.disableAutodetect;
|
|
786
|
+
}
|
|
787
|
+
function F(e) {
|
|
788
|
+
e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => {
|
|
789
|
+
e["before:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
790
|
+
}), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => {
|
|
791
|
+
e["after:highlightBlock"](Object.assign({ block: t.el }, t));
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
function I(e) {
|
|
795
|
+
F(e), a.push(e);
|
|
796
|
+
}
|
|
797
|
+
function L(e) {
|
|
798
|
+
let t = a.indexOf(e);
|
|
799
|
+
t !== -1 && a.splice(t, 1);
|
|
800
|
+
}
|
|
801
|
+
function R(e, t) {
|
|
802
|
+
let n = e;
|
|
803
|
+
a.forEach(function(e) {
|
|
804
|
+
e[n] && e[n](t);
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
function B(e) {
|
|
808
|
+
return G("10.7.0", "highlightBlock will be removed entirely in v12.0"), G("10.7.0", "Please use highlightElement now."), C(e);
|
|
809
|
+
}
|
|
810
|
+
Object.assign(e, {
|
|
811
|
+
highlight: p,
|
|
812
|
+
highlightAuto: x,
|
|
813
|
+
highlightAll: O,
|
|
814
|
+
highlightElement: C,
|
|
815
|
+
highlightBlock: B,
|
|
816
|
+
configure: w,
|
|
817
|
+
initHighlighting: T,
|
|
818
|
+
initHighlightingOnLoad: E,
|
|
819
|
+
registerLanguage: k,
|
|
820
|
+
unregisterLanguage: A,
|
|
821
|
+
listLanguages: j,
|
|
822
|
+
getLanguage: M,
|
|
823
|
+
registerAliases: N,
|
|
824
|
+
autoDetection: P,
|
|
825
|
+
inherit: X,
|
|
826
|
+
addPlugin: I,
|
|
827
|
+
removePlugin: L
|
|
828
|
+
}), e.debugMode = function() {
|
|
829
|
+
o = !1;
|
|
830
|
+
}, e.safeMode = function() {
|
|
831
|
+
o = !0;
|
|
832
|
+
}, e.versionString = _e, e.regex = {
|
|
833
|
+
concat: _,
|
|
834
|
+
lookahead: m,
|
|
835
|
+
either: y,
|
|
836
|
+
optional: g,
|
|
837
|
+
anyNumberOfTimes: h
|
|
838
|
+
};
|
|
839
|
+
for (let e in z) typeof z[e] == "object" && n(z[e]);
|
|
840
|
+
return Object.assign(e, z), e;
|
|
841
|
+
}, $ = Q({});
|
|
842
|
+
$.newInstance = () => Q({}), t.exports = $, $.HighlightJS = $, $.default = $;
|
|
843
|
+
})))())).default;
|
|
844
|
+
//#endregion
|
|
845
|
+
export { n as default };
|