@layers-app/editor 0.5.6-optimization → 0.5.6
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/README.md +0 -19
- package/dist/index.cjs +2 -2
- package/dist/index.js +10 -12
- package/dist/layers.52famHy6.js +1 -0
- package/dist/layers.59MV1gHs.js +41 -0
- package/dist/layers.6IaGqrl-.js +39 -0
- package/dist/layers.6lqPO-3Z.js +32 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.8CsJHG7m.js +139 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.AK6shBV6.js +42 -0
- package/dist/layers.AamAEMA7.js +160 -0
- package/dist/layers.B-WGMHL6.js +11 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B2wUdnez.js +437 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/layers.B6FBUZ1Z.js +9 -0
- package/dist/layers.B7-Kk2kp.js +11 -0
- package/dist/layers.B7K7JjK6.js +1510 -0
- package/dist/layers.B7USkgSi.js +6 -0
- package/dist/layers.B7hegMVr.js +1034 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BBSE_YmF.js +37 -0
- package/dist/layers.BCG8kdU-.js +32 -0
- package/dist/layers.BCUz59rh.js +39 -0
- package/dist/layers.BF8ID4w9.js +39 -0
- package/dist/layers.BIZaN3QR.js +7 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BJDrjORS.js +244 -0
- package/dist/layers.BK35bp4_.js +931 -0
- package/dist/layers.BKrHVgKG.js +11 -0
- package/dist/layers.BLd2spTm.js +1 -0
- package/dist/layers.BQj7sYv9.js +4 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/layers.BTnY40Hl.js +230 -0
- package/dist/layers.BW6eTqTQ.js +9 -0
- package/dist/layers.BX50pyFe.js +42 -0
- package/dist/layers.BXiMBNCf.js +7 -0
- package/dist/layers.BY0saexf.js +44 -0
- package/dist/layers.BYyHDhdF.js +40 -0
- package/dist/layers.B_SkKQaN.js +7 -0
- package/dist/layers.Bb45BkB7.js +35 -0
- package/dist/layers.BbCfEXyj.js +55 -0
- package/dist/layers.Bbx2DS9P.js +10 -0
- package/dist/layers.BeRqUeUL.js +1 -0
- package/dist/layers.BfBHY8YH.js +8 -0
- package/dist/layers.BfPqzMs9.js +1 -0
- package/dist/layers.Bfqazne8.js +70 -0
- package/dist/layers.BgzFjX4U.js +35 -0
- package/dist/layers.BhL3qtd0.js +1126 -0
- package/dist/layers.BitUjngp.js +11 -0
- package/dist/layers.BmR6H-fP.js +2966 -0
- package/dist/layers.Bn7g95cI.js +39 -0
- package/dist/layers.Bn7hw-zZ.js +13 -0
- package/dist/layers.BnYpz8RW.js +1359 -0
- package/dist/layers.BoIdFEtV.js +186 -0
- package/dist/layers.BorvTy9p.js +33 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/layers.Bt8HOTA6.js +10 -0
- package/dist/layers.BvVfdnbz.js +41 -0
- package/dist/layers.BzUNMS1L.js +2 -0
- package/dist/layers.C-FZw43o.js +41 -0
- package/dist/layers.C0Lgw_Sx.js +11688 -0
- package/dist/layers.C4ToPutV.js +40 -0
- package/dist/layers.C4wkiWhv.js +8 -0
- package/dist/layers.C5ZDJAAD.js +220 -0
- package/dist/layers.C6P4YEcq.js +257 -0
- package/dist/layers.C7x1USYv.js +139 -0
- package/dist/layers.C8_lu5UH.js +23 -0
- package/dist/layers.C99jO8bw.js +1 -0
- package/dist/layers.C9KoadvU.js +122 -0
- package/dist/layers.C9PwfpMh.js +39 -0
- package/dist/layers.CA8KMZRI.js +1 -0
- package/dist/layers.CAGTppwS.js +4 -0
- package/dist/layers.CAgoPdOX.js +1088 -0
- package/dist/layers.CBb84SJY.js +10 -0
- package/dist/layers.CCaOiFeL.js +9 -0
- package/dist/layers.CChtus6s.js +9 -0
- package/dist/layers.CDpYDf4E.js +41 -0
- package/dist/layers.CElZbgj1.js +61 -0
- package/dist/layers.CFXi5TGg.js +5 -0
- package/dist/layers.CGvSf-pD.js +10 -0
- package/dist/layers.CH7Yhxyl.js +1 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CHbqHHw4.js +10 -0
- package/dist/layers.CIK15Iw8.js +1 -0
- package/dist/layers.CIpcY9uj.js +38 -0
- package/dist/layers.CK2ePV5l.js +1 -0
- package/dist/layers.CKOfAypO.js +1 -0
- package/dist/layers.CKuoZO2o.js +5 -0
- package/dist/layers.CLELtUjk.js +40 -0
- package/dist/layers.CNmEkwvP.js +84 -0
- package/dist/layers.CPJv1Tc9.js +46859 -0
- package/dist/layers.CPlQgHvJ.js +37 -0
- package/dist/layers.CR9KcJml.js +9 -0
- package/dist/layers.CRFf4NzO.js +10 -0
- package/dist/layers.CSI1-wyP.js +1 -0
- package/dist/layers.CTmWmJtN.js +32 -0
- package/dist/layers.CXqT56ec.js +304 -0
- package/dist/layers.CZ5YSh6D.js +8 -0
- package/dist/layers.C_2s_qym.js +3 -0
- package/dist/layers.C_IvrzZ3.js +7 -0
- package/dist/layers.C_fjSuvx.js +1 -0
- package/dist/layers.CaMAncU5.js +423 -0
- package/dist/layers.CcaiUz4r.js +1 -0
- package/dist/layers.Cd1zz9ej.js +39 -0
- package/dist/layers.CeafY0UM.js +37 -0
- package/dist/layers.CfcMk6Ta.js +1 -0
- package/dist/layers.Cfl_HoMI.js +769 -0
- package/dist/layers.CfpNlmP9.js +1 -0
- package/dist/layers.CiTTUiMF.js +8 -0
- package/dist/layers.Cj4cFFtZ.js +189 -0
- package/dist/layers.CmdoC_9-.js +7 -0
- package/dist/layers.CoGB8bed.js +8 -0
- package/dist/layers.Cpy28Z7d.js +35 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.Cu93NN5Z.js +41 -0
- package/dist/layers.Cu9NodvY.js +1089 -0
- package/dist/layers.CvBE5BLz.js +118 -0
- package/dist/layers.Cx9zn9dM.js +41 -0
- package/dist/layers.CxJcDiDE.js +65 -0
- package/dist/layers.Cyzu9PKQ.js +1 -0
- package/dist/layers.CzAsjHtw.js +34 -0
- package/dist/layers.D0kgeXsw.js +1619 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D1Vfjokq.js +32 -0
- package/dist/layers.D1rIvRN6.js +9 -0
- package/dist/layers.D22i1Ls7.js +6 -0
- package/dist/layers.D25D_N3C.js +7 -0
- package/dist/layers.D4T8fTcj.js +1223 -0
- package/dist/layers.D4fXRymr.js +40 -0
- package/dist/layers.D4gUAtLW.js +41 -0
- package/dist/layers.D59PMsKH.js +51 -0
- package/dist/layers.D5_C65FS.js +2479 -0
- package/dist/layers.D5j-6Vz3.js +36 -0
- package/dist/layers.D7ikYTua.js +2235 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.D7n2QyFM.js +48146 -0
- package/dist/layers.D8fdxG58.js +295 -0
- package/dist/layers.D9h1AMfz.js +8 -0
- package/dist/layers.DAsAtqWK.js +4 -0
- package/dist/layers.DBVrBhF0.js +1 -0
- package/dist/layers.DCWjWRvL.js +9 -0
- package/dist/layers.DD9dfhit.js +40 -0
- package/dist/layers.DHD10kvJ.js +1 -0
- package/dist/layers.DHZBzVaT.js +1283 -0
- package/dist/layers.DHfSJOOW.js +1 -0
- package/dist/layers.DKJQWPVn.js +32 -0
- package/dist/layers.DKUfWSX1.js +904 -0
- package/dist/layers.DLK-HpMV.js +1 -0
- package/dist/layers.DLjZPfF1.js +802 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMIDFKxo.js +36 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DRvKjryx.js +1265 -0
- package/dist/layers.DTMLuJKN.js +33 -0
- package/dist/layers.DUJa2ZOS.js +8 -0
- package/dist/layers.DVUWZ8Wt.js +37 -0
- package/dist/layers.DVrOJIL5.js +7 -0
- package/dist/layers.DY6GA9ww.js +9166 -0
- package/dist/layers.D_Imug13.js +8 -0
- package/dist/layers.D_KJI4uf.js +1 -0
- package/dist/layers.D_vzZUhY.js +1 -0
- package/dist/layers.DaCB9yHC.js +4 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.DcjluSHw.js +84 -0
- package/dist/layers.De0fDaHO.js +40 -0
- package/dist/layers.DeEGG6FS.js +42 -0
- package/dist/layers.DfFJCPRD.js +373 -0
- package/dist/layers.DfLz3NUP.js +320 -0
- package/dist/layers.DhW2E_US.js +1580 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.DjbsplkN.js +32 -0
- package/dist/layers.DkaJchxc.js +6 -0
- package/dist/layers.DlGVcszu.js +1 -0
- package/dist/layers.DlfnKTKF.js +42 -0
- package/dist/layers.DnxO-9oO.js +1 -0
- package/dist/layers.DqSkTf9R.js +21763 -0
- package/dist/layers.Dr1JK1_Z.js +202 -0
- package/dist/layers.Dr8zNYOs.js +5 -0
- package/dist/layers.DsiNLArY.js +40 -0
- package/dist/layers.DtP3hMV0.js +10 -0
- package/dist/layers.Du1ZlY6H.js +40 -0
- package/dist/layers.Du8uQ4JH.js +1 -0
- package/dist/layers.DuQ8oZjN.js +1 -0
- package/dist/layers.DuwNlZRl.js +11 -0
- package/dist/layers.Dw7Dmv6Y.js +19 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.E1TwhuY2.js +791 -0
- package/dist/layers.Eelq_G9Y.js +803 -0
- package/dist/layers.Eodu_OXz.js +2 -0
- package/dist/layers.H36OYk_h.js +5 -0
- package/dist/layers.HVpHwo9E.js +5 -0
- package/dist/layers.I-tmhwFG.js +39 -0
- package/dist/layers.Is4NOcYC.js +9 -0
- package/dist/layers.J20L8tWx.js +501 -0
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/layers.Jm82B3Oj.js +116 -0
- package/dist/layers.L60GQ2sb.js +8 -0
- package/dist/layers.LJC22eKQ.js +7 -0
- package/dist/layers.MW6tobI-.js +6 -0
- package/dist/layers.MZ6d0DZp.js +10 -0
- package/dist/layers.M_62Sbj7.js +268 -0
- package/dist/layers.O8Nxijec.js +793 -0
- package/dist/layers.OLlYwVPc.js +14 -0
- package/dist/layers.Pw46DBip.js +59 -0
- package/dist/layers.U98UFPWm.js +207 -0
- package/dist/layers.VXlo2W40.js +36 -0
- package/dist/layers.VlKfhmpq.js +10 -0
- package/dist/layers.YOQy_t6q.js +40 -0
- package/dist/layers.ZoMyFX9M.js +2 -0
- package/dist/layers._1XiIhPh.js +7 -0
- package/dist/layers.ay_dYKjj.js +960 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/layers.dDe6FHmh.js +36 -0
- package/dist/layers.dVkHa3a_.js +39 -0
- package/dist/layers.et7zjoY9.js +52 -0
- package/dist/layers.gryxZo3n.js +10 -0
- package/dist/layers.hPuFhhxl.js +41 -0
- package/dist/layers.hweLqW3I.js +261 -0
- package/dist/layers.kaOt41rd.js +9 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/layers.lLFiut9N.js +8 -0
- package/dist/layers.lNSz2AQQ.js +6 -0
- package/dist/layers.mV8zYAS9.js +39 -0
- package/dist/layers.oyyMMK1Q.js +21938 -0
- package/dist/layers.qFWUlMDP.js +282 -0
- package/dist/layers.t46sYkQh.js +96 -0
- package/dist/layers.tdFdnJVX.js +38 -0
- package/dist/layers.u4sk_7sk.js +6 -0
- package/dist/layers.uEa7jWOw.js +42 -0
- package/dist/layers.uKwUcHfW.js +9 -0
- package/dist/layers.v6694Ulr.js +425 -0
- package/dist/layers.xkw2pWfm.js +40 -0
- package/dist/layers.ytXaFkr-.js +1 -0
- package/dist/layers.z5ZNUv1T.js +38 -0
- package/package.json +18 -76
- package/dist/layers.7jmq6tBR.js +0 -2227
- package/dist/layers.B90YwJga.js +0 -4
- package/dist/layers.C03OvlLb.js +0 -6
- package/dist/layers.CJiIq6YQ.js +0 -1
- package/dist/layers.CXffIp2y.js +0 -864
- package/dist/layers.CZPeYQ9g.js +0 -3
- package/dist/layers.CZ_Lt7IL.js +0 -7
- package/dist/layers.Ci1-qkbn.js +0 -341
- package/dist/layers.Cnm-pECN.js +0 -2
- package/dist/layers.D6d62qQ_.js +0 -6774
- package/dist/layers.DNCgFYS7.js +0 -27
- package/dist/layers.Dev6Yrwi.js +0 -530
- package/dist/layers.Dgok89qX.js +0 -1
- package/dist/layers.Dq3o7sh3.js +0 -7723
- package/dist/layers.Duy8YzsH.js +0 -2511
- package/dist/layers.QjAkD17S.js +0 -3677
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { l as Y, A as D, e as M } from "./layers.DY6GA9ww.js";
|
|
2
|
+
import "./layers.DqSkTf9R.js";
|
|
3
|
+
var O = (function() {
|
|
4
|
+
var a = function(u, t, e, n) {
|
|
5
|
+
for (e = e || {}, n = u.length; n--; e[u[n]] = t)
|
|
6
|
+
;
|
|
7
|
+
return e;
|
|
8
|
+
}, f = [6, 9, 10], m = {
|
|
9
|
+
trace: function() {
|
|
10
|
+
},
|
|
11
|
+
yy: {},
|
|
12
|
+
symbols_: { error: 2, start: 3, info: 4, document: 5, EOF: 6, line: 7, statement: 8, NL: 9, showInfo: 10, $accept: 0, $end: 1 },
|
|
13
|
+
terminals_: { 2: "error", 4: "info", 6: "EOF", 9: "NL", 10: "showInfo" },
|
|
14
|
+
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],
|
|
15
|
+
performAction: function(t, e, n, s, r, i, d) {
|
|
16
|
+
switch (i.length - 1, r) {
|
|
17
|
+
case 1:
|
|
18
|
+
return s;
|
|
19
|
+
case 4:
|
|
20
|
+
break;
|
|
21
|
+
case 6:
|
|
22
|
+
s.setInfo(!0);
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, a(f, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, a(f, [2, 3]), a(f, [2, 4]), a(f, [2, 5]), a(f, [2, 6])],
|
|
27
|
+
defaultActions: { 4: [2, 1] },
|
|
28
|
+
parseError: function(t, e) {
|
|
29
|
+
if (e.recoverable)
|
|
30
|
+
this.trace(t);
|
|
31
|
+
else {
|
|
32
|
+
var n = new Error(t);
|
|
33
|
+
throw n.hash = e, n;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
parse: function(t) {
|
|
37
|
+
var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0, L = 0, N = 2, T = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = { yy: {} };
|
|
38
|
+
for (var E in this.yy)
|
|
39
|
+
Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
|
|
40
|
+
o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc > "u" && (o.yylloc = {});
|
|
41
|
+
var I = o.yylloc;
|
|
42
|
+
i.push(I);
|
|
43
|
+
var z = o.options && o.options.ranges;
|
|
44
|
+
typeof p.yy.parseError == "function" ? this.parseError = p.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
45
|
+
function U() {
|
|
46
|
+
var y;
|
|
47
|
+
return y = s.pop() || o.lex() || T, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
|
|
48
|
+
}
|
|
49
|
+
for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
|
|
50
|
+
if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l > "u") && (l = U()), h = d[g] && d[g][l]), typeof h > "u" || !h.length || !h[0]) {
|
|
51
|
+
var A = "";
|
|
52
|
+
S = [];
|
|
53
|
+
for (b in d[g])
|
|
54
|
+
this.terminals_[b] && b > N && S.push("'" + this.terminals_[b] + "'");
|
|
55
|
+
o.showPosition ? A = "Parse error on line " + (v + 1) + `:
|
|
56
|
+
` + o.showPosition() + `
|
|
57
|
+
Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "Parse error on line " + (v + 1) + ": Unexpected " + (l == T ? "end of input" : "'" + (this.terminals_[l] || l) + "'"), this.parseError(A, {
|
|
58
|
+
text: o.match,
|
|
59
|
+
token: this.terminals_[l] || l,
|
|
60
|
+
line: o.yylineno,
|
|
61
|
+
loc: I,
|
|
62
|
+
expected: S
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
if (h[0] instanceof Array && h.length > 1)
|
|
66
|
+
throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + l);
|
|
67
|
+
switch (h[0]) {
|
|
68
|
+
case 1:
|
|
69
|
+
n.push(l), r.push(o.yytext), i.push(o.yylloc), n.push(h[1]), l = null, L = o.yyleng, P = o.yytext, v = o.yylineno, I = o.yylloc;
|
|
70
|
+
break;
|
|
71
|
+
case 2:
|
|
72
|
+
if (c = this.productions_[h[1]][1], _.$ = r[r.length - c], _._$ = {
|
|
73
|
+
first_line: i[i.length - (c || 1)].first_line,
|
|
74
|
+
last_line: i[i.length - 1].last_line,
|
|
75
|
+
first_column: i[i.length - (c || 1)].first_column,
|
|
76
|
+
last_column: i[i.length - 1].last_column
|
|
77
|
+
}, z && (_._$.range = [
|
|
78
|
+
i[i.length - (c || 1)].range[0],
|
|
79
|
+
i[i.length - 1].range[1]
|
|
80
|
+
]), w = this.performAction.apply(_, [
|
|
81
|
+
P,
|
|
82
|
+
L,
|
|
83
|
+
v,
|
|
84
|
+
p.yy,
|
|
85
|
+
h[1],
|
|
86
|
+
r,
|
|
87
|
+
i
|
|
88
|
+
].concat(R)), typeof w < "u")
|
|
89
|
+
return w;
|
|
90
|
+
c && (n = n.slice(0, -1 * c * 2), r = r.slice(0, -1 * c), i = i.slice(0, -1 * c)), n.push(this.productions_[h[1]][0]), r.push(_.$), i.push(_._$), F = d[n[n.length - 2]][n[n.length - 1]], n.push(F);
|
|
91
|
+
break;
|
|
92
|
+
case 3:
|
|
93
|
+
return !0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return !0;
|
|
97
|
+
}
|
|
98
|
+
}, k = /* @__PURE__ */ (function() {
|
|
99
|
+
var u = {
|
|
100
|
+
EOF: 1,
|
|
101
|
+
parseError: function(e, n) {
|
|
102
|
+
if (this.yy.parser)
|
|
103
|
+
this.yy.parser.parseError(e, n);
|
|
104
|
+
else
|
|
105
|
+
throw new Error(e);
|
|
106
|
+
},
|
|
107
|
+
// resets the lexer, sets new input
|
|
108
|
+
setInput: function(t, e) {
|
|
109
|
+
return this.yy = e || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
110
|
+
first_line: 1,
|
|
111
|
+
first_column: 0,
|
|
112
|
+
last_line: 1,
|
|
113
|
+
last_column: 0
|
|
114
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
115
|
+
},
|
|
116
|
+
// consumes and returns one char from the input
|
|
117
|
+
input: function() {
|
|
118
|
+
var t = this._input[0];
|
|
119
|
+
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
|
120
|
+
var e = t.match(/(?:\r\n?|\n).*/g);
|
|
121
|
+
return e ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
|
|
122
|
+
},
|
|
123
|
+
// unshifts one char (or a string) into the input
|
|
124
|
+
unput: function(t) {
|
|
125
|
+
var e = t.length, n = t.split(/(?:\r\n?|\n)/g);
|
|
126
|
+
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - e), this.offset -= e;
|
|
127
|
+
var s = this.match.split(/(?:\r\n?|\n)/g);
|
|
128
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
129
|
+
var r = this.yylloc.range;
|
|
130
|
+
return this.yylloc = {
|
|
131
|
+
first_line: this.yylloc.first_line,
|
|
132
|
+
last_line: this.yylineno + 1,
|
|
133
|
+
first_column: this.yylloc.first_column,
|
|
134
|
+
last_column: n ? (n.length === s.length ? this.yylloc.first_column : 0) + s[s.length - n.length].length - n[0].length : this.yylloc.first_column - e
|
|
135
|
+
}, this.options.ranges && (this.yylloc.range = [r[0], r[0] + this.yyleng - e]), this.yyleng = this.yytext.length, this;
|
|
136
|
+
},
|
|
137
|
+
// When called from action, caches matched text and appends it on next action
|
|
138
|
+
more: function() {
|
|
139
|
+
return this._more = !0, this;
|
|
140
|
+
},
|
|
141
|
+
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
142
|
+
reject: function() {
|
|
143
|
+
if (this.options.backtrack_lexer)
|
|
144
|
+
this._backtrack = !0;
|
|
145
|
+
else
|
|
146
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
147
|
+
` + this.showPosition(), {
|
|
148
|
+
text: "",
|
|
149
|
+
token: null,
|
|
150
|
+
line: this.yylineno
|
|
151
|
+
});
|
|
152
|
+
return this;
|
|
153
|
+
},
|
|
154
|
+
// retain first n characters of the match
|
|
155
|
+
less: function(t) {
|
|
156
|
+
this.unput(this.match.slice(t));
|
|
157
|
+
},
|
|
158
|
+
// displays already matched input, i.e. for error messages
|
|
159
|
+
pastInput: function() {
|
|
160
|
+
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
161
|
+
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
162
|
+
},
|
|
163
|
+
// displays upcoming input, i.e. for error messages
|
|
164
|
+
upcomingInput: function() {
|
|
165
|
+
var t = this.match;
|
|
166
|
+
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
167
|
+
},
|
|
168
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
169
|
+
showPosition: function() {
|
|
170
|
+
var t = this.pastInput(), e = new Array(t.length + 1).join("-");
|
|
171
|
+
return t + this.upcomingInput() + `
|
|
172
|
+
` + e + "^";
|
|
173
|
+
},
|
|
174
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
175
|
+
test_match: function(t, e) {
|
|
176
|
+
var n, s, r;
|
|
177
|
+
if (this.options.backtrack_lexer && (r = {
|
|
178
|
+
yylineno: this.yylineno,
|
|
179
|
+
yylloc: {
|
|
180
|
+
first_line: this.yylloc.first_line,
|
|
181
|
+
last_line: this.last_line,
|
|
182
|
+
first_column: this.yylloc.first_column,
|
|
183
|
+
last_column: this.yylloc.last_column
|
|
184
|
+
},
|
|
185
|
+
yytext: this.yytext,
|
|
186
|
+
match: this.match,
|
|
187
|
+
matches: this.matches,
|
|
188
|
+
matched: this.matched,
|
|
189
|
+
yyleng: this.yyleng,
|
|
190
|
+
offset: this.offset,
|
|
191
|
+
_more: this._more,
|
|
192
|
+
_input: this._input,
|
|
193
|
+
yy: this.yy,
|
|
194
|
+
conditionStack: this.conditionStack.slice(0),
|
|
195
|
+
done: this.done
|
|
196
|
+
}, this.options.ranges && (r.yylloc.range = this.yylloc.range.slice(0))), s = t[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
|
|
197
|
+
first_line: this.yylloc.last_line,
|
|
198
|
+
last_line: this.yylineno + 1,
|
|
199
|
+
first_column: this.yylloc.last_column,
|
|
200
|
+
last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
201
|
+
}, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], n = this.performAction.call(this, this.yy, this, e, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
|
202
|
+
return n;
|
|
203
|
+
if (this._backtrack) {
|
|
204
|
+
for (var i in r)
|
|
205
|
+
this[i] = r[i];
|
|
206
|
+
return !1;
|
|
207
|
+
}
|
|
208
|
+
return !1;
|
|
209
|
+
},
|
|
210
|
+
// return next match in input
|
|
211
|
+
next: function() {
|
|
212
|
+
if (this.done)
|
|
213
|
+
return this.EOF;
|
|
214
|
+
this._input || (this.done = !0);
|
|
215
|
+
var t, e, n, s;
|
|
216
|
+
this._more || (this.yytext = "", this.match = "");
|
|
217
|
+
for (var r = this._currentRules(), i = 0; i < r.length; i++)
|
|
218
|
+
if (n = this._input.match(this.rules[r[i]]), n && (!e || n[0].length > e[0].length)) {
|
|
219
|
+
if (e = n, s = i, this.options.backtrack_lexer) {
|
|
220
|
+
if (t = this.test_match(n, r[i]), t !== !1)
|
|
221
|
+
return t;
|
|
222
|
+
if (this._backtrack) {
|
|
223
|
+
e = !1;
|
|
224
|
+
continue;
|
|
225
|
+
} else
|
|
226
|
+
return !1;
|
|
227
|
+
} else if (!this.options.flex)
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
return e ? (t = this.test_match(e, r[s]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
231
|
+
` + this.showPosition(), {
|
|
232
|
+
text: "",
|
|
233
|
+
token: null,
|
|
234
|
+
line: this.yylineno
|
|
235
|
+
});
|
|
236
|
+
},
|
|
237
|
+
// return next match that has a token
|
|
238
|
+
lex: function() {
|
|
239
|
+
var e = this.next();
|
|
240
|
+
return e || this.lex();
|
|
241
|
+
},
|
|
242
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
243
|
+
begin: function(e) {
|
|
244
|
+
this.conditionStack.push(e);
|
|
245
|
+
},
|
|
246
|
+
// pop the previously active lexer condition state off the condition stack
|
|
247
|
+
popState: function() {
|
|
248
|
+
var e = this.conditionStack.length - 1;
|
|
249
|
+
return e > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
250
|
+
},
|
|
251
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
252
|
+
_currentRules: function() {
|
|
253
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
254
|
+
},
|
|
255
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
256
|
+
topState: function(e) {
|
|
257
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
258
|
+
},
|
|
259
|
+
// alias for begin(condition)
|
|
260
|
+
pushState: function(e) {
|
|
261
|
+
this.begin(e);
|
|
262
|
+
},
|
|
263
|
+
// return the number of states currently on the stack
|
|
264
|
+
stateStackSize: function() {
|
|
265
|
+
return this.conditionStack.length;
|
|
266
|
+
},
|
|
267
|
+
options: { "case-insensitive": !0 },
|
|
268
|
+
performAction: function(e, n, s, r) {
|
|
269
|
+
switch (s) {
|
|
270
|
+
case 0:
|
|
271
|
+
return 4;
|
|
272
|
+
case 1:
|
|
273
|
+
return 9;
|
|
274
|
+
case 2:
|
|
275
|
+
return "space";
|
|
276
|
+
case 3:
|
|
277
|
+
return 10;
|
|
278
|
+
case 4:
|
|
279
|
+
return 6;
|
|
280
|
+
case 5:
|
|
281
|
+
return "TXT";
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
rules: [/^(?:info\b)/i, /^(?:[\s\n\r]+)/i, /^(?:[\s]+)/i, /^(?:showInfo\b)/i, /^(?:$)/i, /^(?:.)/i],
|
|
285
|
+
conditions: { INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 } }
|
|
286
|
+
};
|
|
287
|
+
return u;
|
|
288
|
+
})();
|
|
289
|
+
m.lexer = k;
|
|
290
|
+
function x() {
|
|
291
|
+
this.yy = {};
|
|
292
|
+
}
|
|
293
|
+
return x.prototype = m, m.Parser = x, new x();
|
|
294
|
+
})();
|
|
295
|
+
O.parser = O;
|
|
296
|
+
const B = O, j = {
|
|
297
|
+
info: !1
|
|
298
|
+
};
|
|
299
|
+
let $ = j.info;
|
|
300
|
+
const V = (a) => {
|
|
301
|
+
$ = a;
|
|
302
|
+
}, X = () => $, q = () => {
|
|
303
|
+
$ = j.info;
|
|
304
|
+
}, C = {
|
|
305
|
+
clear: q,
|
|
306
|
+
setInfo: V,
|
|
307
|
+
getInfo: X
|
|
308
|
+
}, G = (a, f, m) => {
|
|
309
|
+
Y.debug(`rendering info diagram
|
|
310
|
+
` + a);
|
|
311
|
+
const k = D(f);
|
|
312
|
+
M(k, 100, 400, !0), k.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${m}`);
|
|
313
|
+
}, H = { draw: G }, Q = {
|
|
314
|
+
parser: B,
|
|
315
|
+
db: C,
|
|
316
|
+
renderer: H
|
|
317
|
+
};
|
|
318
|
+
export {
|
|
319
|
+
Q as diagram
|
|
320
|
+
};
|