1 | var imbac = (() => {
|
2 | var __defProp = Object.defineProperty;
|
3 | var __export = (target, all) => {
|
4 | for (var name in all)
|
5 | __defProp(target, name, {get: all[name], enumerable: true});
|
6 | };
|
7 | var stdin_exports = {};
|
8 | __export(stdin_exports, {
|
9 | default: () => stdin_default
|
10 | });
|
11 | var z3 = Object.create;
|
12 | var d1 = Object.defineProperty;
|
13 | var U3 = Object.getPrototypeOf;
|
14 | var Y3 = Object.prototype.hasOwnProperty;
|
15 | var K3 = Object.getOwnPropertyNames;
|
16 | var q3 = Object.getOwnPropertyDescriptor;
|
17 | var Hi = (t) => d1(t, "__esModule", {value: true});
|
18 | var er = (t, e) => () => (e || (e = {exports: {}}, t(e.exports, e)), e.exports);
|
19 | var Fi = (t, e) => {
|
20 | for (var r in e)
|
21 | d1(t, r, {get: e[r], enumerable: true});
|
22 | };
|
23 | var fn = (t, e, r) => {
|
24 | if (e && typeof e == "object" || typeof e == "function")
|
25 | for (let i of K3(e))
|
26 | !Y3.call(t, i) && i !== "default" && d1(t, i, {get: () => e[i], enumerable: !(r = q3(e, i)) || r.enumerable});
|
27 | return t;
|
28 | };
|
29 | var Ou = (t) => fn(Hi(d1(t != null ? z3(U3(t)) : {}, "default", t && t.__esModule && "default" in t ? {get: () => t.default, enumerable: true} : {value: t, enumerable: true})), t);
|
30 | var ta = er((or) => {
|
31 | var zi = {}, Ts = or.TOK = {}, Y_ = Ts.TERMINATOR = 1, K_ = Ts.IDENTIFIER = Ts.IVAR = 2, q_ = Ts.CONST = 3, X_ = Ts.VAR = 4, W_ = Ts.IF = 5, J_ = Ts.ELSE = 6, Z_ = Ts.DEF = 7;
|
32 | function Je(t, e, r, i) {
|
33 | return this._type = t, this._value = e, this._loc = r != null ? r : -1, this._len = i != null ? i : this._value.length, this._meta = null, this.generated = false, this.newLine = false, this.spaced = false, this.call = false, this;
|
34 | }
|
35 | or.Token = Je;
|
36 | Je.prototype.type = function() {
|
37 | return this._type;
|
38 | };
|
39 | Je.prototype.value = function() {
|
40 | return this._value;
|
41 | };
|
42 | Je.prototype.traverse = function() {
|
43 | };
|
44 | Je.prototype.c = function() {
|
45 | return "" + this._value;
|
46 | };
|
47 | Je.prototype.prepend = function(t) {
|
48 | return this._value = t + this._value, this;
|
49 | };
|
50 | Je.prototype.toString = function() {
|
51 | return this._value;
|
52 | };
|
53 | Je.prototype.charAt = function(t) {
|
54 | return this._value.charAt(t);
|
55 | };
|
56 | Je.prototype.slice = function(t) {
|
57 | return this._value.slice(t);
|
58 | };
|
59 | Je.prototype.cloneSlice = function(t, e) {
|
60 | return new Je(e || this._type, this.slice(t), this._loc + t, this._len - t);
|
61 | };
|
62 | Je.prototype.region = function() {
|
63 | return [this._loc, this._loc + this._len];
|
64 | };
|
65 | Je.prototype.startLoc = function() {
|
66 | return this._loc;
|
67 | };
|
68 | Je.prototype.endLoc = function() {
|
69 | return this._loc + this._len;
|
70 | };
|
71 | Je.prototype.loc = function() {
|
72 | return [this._loc, this.endLoc()];
|
73 | };
|
74 | or.lex = zi.lex = function() {
|
75 | var t = this.tokens[this.pos++], e;
|
76 | return t ? (e = t._type, this.yytext = t) : e = "", e;
|
77 | };
|
78 | or.token = zi.token = function(t, e) {
|
79 | return new Je(t, e, -1, 0);
|
80 | };
|
81 | or.typ = zi.typ = function(t) {
|
82 | return t._type;
|
83 | };
|
84 | or.val = zi.val = function(t) {
|
85 | return t._value;
|
86 | };
|
87 | or.line = zi.line = function(t) {
|
88 | return t._line;
|
89 | };
|
90 | or.loc = zi.loc = function(t) {
|
91 | return t._loc;
|
92 | };
|
93 | or.setTyp = zi.setTyp = function(t, e) {
|
94 | return t._type = e;
|
95 | };
|
96 | or.setVal = zi.setVal = function(t, e) {
|
97 | return t._value = e;
|
98 | };
|
99 | or.setLine = zi.setLine = function(t, e) {
|
100 | return t._line = e;
|
101 | };
|
102 | or.setLoc = zi.setLoc = function(t, e) {
|
103 | return t._loc = e;
|
104 | };
|
105 | var X3 = or.LBRACKET = new Je("{", "{", 0, 0, 0), W3 = or.RBRACKET = new Je("}", "}", 0, 0, 0), J3 = or.LPAREN = new Je("(", "(", 0, 0, 0), Z3 = or.RPAREN = new Je(")", ")", 0, 0, 0);
|
106 | X3.generated = true;
|
107 | W3.generated = true;
|
108 | J3.generated = true;
|
109 | Z3.generated = true;
|
110 | var Q_ = or.INDENT = new Je("INDENT", "2", 0, 0, 0), $_ = or.OUTDENT = new Je("OUTDENT", "2", 0, 0, 0);
|
111 | });
|
112 | var Cu = er((exports, module) => {
|
113 | (function() {
|
114 | "use strict";
|
115 | var root = typeof window == "object" ? window : {}, NODE_JS = !root.JS_SHA1_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
116 | NODE_JS && (root = global);
|
117 | var COMMON_JS = !root.JS_SHA1_NO_COMMON_JS && typeof module == "object" && module.exports, AMD = typeof define == "function" && define.amd, HEX_CHARS = "0123456789abcdef".split(""), EXTRA = [-2147483648, 8388608, 32768, 128], SHIFT = [24, 16, 8, 0], OUTPUT_TYPES = ["hex", "array", "digest", "arrayBuffer"], blocks = [], createOutputMethod = function(t) {
|
118 | return function(e) {
|
119 | return new Sha1(true).update(e)[t]();
|
120 | };
|
121 | }, createMethod = function() {
|
122 | var t = createOutputMethod("hex");
|
123 | t.create = function() {
|
124 | return new Sha1();
|
125 | }, t.update = function(i) {
|
126 | return t.create().update(i);
|
127 | };
|
128 | for (var e = 0; e < OUTPUT_TYPES.length; ++e) {
|
129 | var r = OUTPUT_TYPES[e];
|
130 | t[r] = createOutputMethod(r);
|
131 | }
|
132 | return t;
|
133 | }, nodeWrap = function(method) {
|
134 | var crypto = eval("require('crypto')"), Buffer = eval("require('buffer').Buffer"), nodeMethod = function(t) {
|
135 | if (typeof t == "string")
|
136 | return crypto.createHash("sha1").update(t, "utf8").digest("hex");
|
137 | if (t.constructor === ArrayBuffer)
|
138 | t = new Uint8Array(t);
|
139 | else if (t.length === void 0)
|
140 | return method(t);
|
141 | return crypto.createHash("sha1").update(new Buffer(t)).digest("hex");
|
142 | };
|
143 | return nodeMethod;
|
144 | };
|
145 | function Sha1(t) {
|
146 | t ? (blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0, this.blocks = blocks) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], this.h0 = 1732584193, this.h1 = 4023233417, this.h2 = 2562383102, this.h3 = 271733878, this.h4 = 3285377520, this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = false, this.first = true;
|
147 | }
|
148 | Sha1.prototype.update = function(t) {
|
149 | if (!this.finalized) {
|
150 | var e = typeof t != "string";
|
151 | e && t.constructor === root.ArrayBuffer && (t = new Uint8Array(t));
|
152 | for (var r, i = 0, s, n = t.length || 0, o = this.blocks; i < n; ) {
|
153 | if (this.hashed && (this.hashed = false, o[0] = this.block, o[16] = o[1] = o[2] = o[3] = o[4] = o[5] = o[6] = o[7] = o[8] = o[9] = o[10] = o[11] = o[12] = o[13] = o[14] = o[15] = 0), e)
|
154 | for (s = this.start; i < n && s < 64; ++i)
|
155 | o[s >> 2] |= t[i] << SHIFT[s++ & 3];
|
156 | else
|
157 | for (s = this.start; i < n && s < 64; ++i)
|
158 | r = t.charCodeAt(i), r < 128 ? o[s >> 2] |= r << SHIFT[s++ & 3] : r < 2048 ? (o[s >> 2] |= (192 | r >> 6) << SHIFT[s++ & 3], o[s >> 2] |= (128 | r & 63) << SHIFT[s++ & 3]) : r < 55296 || r >= 57344 ? (o[s >> 2] |= (224 | r >> 12) << SHIFT[s++ & 3], o[s >> 2] |= (128 | r >> 6 & 63) << SHIFT[s++ & 3], o[s >> 2] |= (128 | r & 63) << SHIFT[s++ & 3]) : (r = 65536 + ((r & 1023) << 10 | t.charCodeAt(++i) & 1023), o[s >> 2] |= (240 | r >> 18) << SHIFT[s++ & 3], o[s >> 2] |= (128 | r >> 12 & 63) << SHIFT[s++ & 3], o[s >> 2] |= (128 | r >> 6 & 63) << SHIFT[s++ & 3], o[s >> 2] |= (128 | r & 63) << SHIFT[s++ & 3]);
|
159 | this.lastByteIndex = s, this.bytes += s - this.start, s >= 64 ? (this.block = o[16], this.start = s - 64, this.hash(), this.hashed = true) : this.start = s;
|
160 | }
|
161 | return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
162 | }
|
163 | }, Sha1.prototype.finalize = function() {
|
164 | if (!this.finalized) {
|
165 | this.finalized = true;
|
166 | var t = this.blocks, e = this.lastByteIndex;
|
167 | t[16] = this.block, t[e >> 2] |= EXTRA[e & 3], this.block = t[16], e >= 56 && (this.hashed || this.hash(), t[0] = this.block, t[16] = t[1] = t[2] = t[3] = t[4] = t[5] = t[6] = t[7] = t[8] = t[9] = t[10] = t[11] = t[12] = t[13] = t[14] = t[15] = 0), t[14] = this.hBytes << 3 | this.bytes >>> 29, t[15] = this.bytes << 3, this.hash();
|
168 | }
|
169 | }, Sha1.prototype.hash = function() {
|
170 | var t = this.h0, e = this.h1, r = this.h2, i = this.h3, s = this.h4, n, o, a, l = this.blocks;
|
171 | for (o = 16; o < 80; ++o)
|
172 | a = l[o - 3] ^ l[o - 8] ^ l[o - 14] ^ l[o - 16], l[o] = a << 1 | a >>> 31;
|
173 | for (o = 0; o < 20; o += 5)
|
174 | n = e & r | ~e & i, a = t << 5 | t >>> 27, s = a + n + s + 1518500249 + l[o] << 0, e = e << 30 | e >>> 2, n = t & e | ~t & r, a = s << 5 | s >>> 27, i = a + n + i + 1518500249 + l[o + 1] << 0, t = t << 30 | t >>> 2, n = s & t | ~s & e, a = i << 5 | i >>> 27, r = a + n + r + 1518500249 + l[o + 2] << 0, s = s << 30 | s >>> 2, n = i & s | ~i & t, a = r << 5 | r >>> 27, e = a + n + e + 1518500249 + l[o + 3] << 0, i = i << 30 | i >>> 2, n = r & i | ~r & s, a = e << 5 | e >>> 27, t = a + n + t + 1518500249 + l[o + 4] << 0, r = r << 30 | r >>> 2;
|
175 | for (; o < 40; o += 5)
|
176 | n = e ^ r ^ i, a = t << 5 | t >>> 27, s = a + n + s + 1859775393 + l[o] << 0, e = e << 30 | e >>> 2, n = t ^ e ^ r, a = s << 5 | s >>> 27, i = a + n + i + 1859775393 + l[o + 1] << 0, t = t << 30 | t >>> 2, n = s ^ t ^ e, a = i << 5 | i >>> 27, r = a + n + r + 1859775393 + l[o + 2] << 0, s = s << 30 | s >>> 2, n = i ^ s ^ t, a = r << 5 | r >>> 27, e = a + n + e + 1859775393 + l[o + 3] << 0, i = i << 30 | i >>> 2, n = r ^ i ^ s, a = e << 5 | e >>> 27, t = a + n + t + 1859775393 + l[o + 4] << 0, r = r << 30 | r >>> 2;
|
177 | for (; o < 60; o += 5)
|
178 | n = e & r | e & i | r & i, a = t << 5 | t >>> 27, s = a + n + s - 1894007588 + l[o] << 0, e = e << 30 | e >>> 2, n = t & e | t & r | e & r, a = s << 5 | s >>> 27, i = a + n + i - 1894007588 + l[o + 1] << 0, t = t << 30 | t >>> 2, n = s & t | s & e | t & e, a = i << 5 | i >>> 27, r = a + n + r - 1894007588 + l[o + 2] << 0, s = s << 30 | s >>> 2, n = i & s | i & t | s & t, a = r << 5 | r >>> 27, e = a + n + e - 1894007588 + l[o + 3] << 0, i = i << 30 | i >>> 2, n = r & i | r & s | i & s, a = e << 5 | e >>> 27, t = a + n + t - 1894007588 + l[o + 4] << 0, r = r << 30 | r >>> 2;
|
179 | for (; o < 80; o += 5)
|
180 | n = e ^ r ^ i, a = t << 5 | t >>> 27, s = a + n + s - 899497514 + l[o] << 0, e = e << 30 | e >>> 2, n = t ^ e ^ r, a = s << 5 | s >>> 27, i = a + n + i - 899497514 + l[o + 1] << 0, t = t << 30 | t >>> 2, n = s ^ t ^ e, a = i << 5 | i >>> 27, r = a + n + r - 899497514 + l[o + 2] << 0, s = s << 30 | s >>> 2, n = i ^ s ^ t, a = r << 5 | r >>> 27, e = a + n + e - 899497514 + l[o + 3] << 0, i = i << 30 | i >>> 2, n = r ^ i ^ s, a = e << 5 | e >>> 27, t = a + n + t - 899497514 + l[o + 4] << 0, r = r << 30 | r >>> 2;
|
181 | this.h0 = this.h0 + t << 0, this.h1 = this.h1 + e << 0, this.h2 = this.h2 + r << 0, this.h3 = this.h3 + i << 0, this.h4 = this.h4 + s << 0;
|
182 | }, Sha1.prototype.hex = function() {
|
183 | this.finalize();
|
184 | var t = this.h0, e = this.h1, r = this.h2, i = this.h3, s = this.h4;
|
185 | return HEX_CHARS[t >> 28 & 15] + HEX_CHARS[t >> 24 & 15] + HEX_CHARS[t >> 20 & 15] + HEX_CHARS[t >> 16 & 15] + HEX_CHARS[t >> 12 & 15] + HEX_CHARS[t >> 8 & 15] + HEX_CHARS[t >> 4 & 15] + HEX_CHARS[t & 15] + HEX_CHARS[e >> 28 & 15] + HEX_CHARS[e >> 24 & 15] + HEX_CHARS[e >> 20 & 15] + HEX_CHARS[e >> 16 & 15] + HEX_CHARS[e >> 12 & 15] + HEX_CHARS[e >> 8 & 15] + HEX_CHARS[e >> 4 & 15] + HEX_CHARS[e & 15] + HEX_CHARS[r >> 28 & 15] + HEX_CHARS[r >> 24 & 15] + HEX_CHARS[r >> 20 & 15] + HEX_CHARS[r >> 16 & 15] + HEX_CHARS[r >> 12 & 15] + HEX_CHARS[r >> 8 & 15] + HEX_CHARS[r >> 4 & 15] + HEX_CHARS[r & 15] + HEX_CHARS[i >> 28 & 15] + HEX_CHARS[i >> 24 & 15] + HEX_CHARS[i >> 20 & 15] + HEX_CHARS[i >> 16 & 15] + HEX_CHARS[i >> 12 & 15] + HEX_CHARS[i >> 8 & 15] + HEX_CHARS[i >> 4 & 15] + HEX_CHARS[i & 15] + HEX_CHARS[s >> 28 & 15] + HEX_CHARS[s >> 24 & 15] + HEX_CHARS[s >> 20 & 15] + HEX_CHARS[s >> 16 & 15] + HEX_CHARS[s >> 12 & 15] + HEX_CHARS[s >> 8 & 15] + HEX_CHARS[s >> 4 & 15] + HEX_CHARS[s & 15];
|
186 | }, Sha1.prototype.toString = Sha1.prototype.hex, Sha1.prototype.digest = function() {
|
187 | this.finalize();
|
188 | var t = this.h0, e = this.h1, r = this.h2, i = this.h3, s = this.h4;
|
189 | return [t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, t & 255, e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, e & 255, r >> 24 & 255, r >> 16 & 255, r >> 8 & 255, r & 255, i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, i & 255, s >> 24 & 255, s >> 16 & 255, s >> 8 & 255, s & 255];
|
190 | };
|
191 | var alphabet = "0123456789abcdefghjkmnpqrtuvwxyz", alias = {o: 0, i: 1, l: 1, s: 5};
|
192 | Sha1.prototype.b32 = function() {
|
193 | for (var t = this.digest(), e = 0, r = 0, i = "", s = 0; s < t.length; ) {
|
194 | var n = t[s];
|
195 | if (e < 0 ? r |= n >> -e : r = n << e & 248, e > 3) {
|
196 | e -= 8, s += 1;
|
197 | continue;
|
198 | }
|
199 | e < 4 && (i += alphabet[r >> 3], e += 5);
|
200 | }
|
201 | return i = i + (e < 0 ? alphabet[r >> 3] : ""), i;
|
202 | }, Sha1.prototype.array = Sha1.prototype.digest, Sha1.prototype.arrayBuffer = function() {
|
203 | this.finalize();
|
204 | var t = new ArrayBuffer(20), e = new DataView(t);
|
205 | return e.setUint32(0, this.h0), e.setUint32(4, this.h1), e.setUint32(8, this.h2), e.setUint32(12, this.h3), e.setUint32(16, this.h4), t;
|
206 | };
|
207 | var exports = createMethod();
|
208 | COMMON_JS ? module.exports = exports : (root.sha1 = exports, AMD && define(function() {
|
209 | return exports;
|
210 | }));
|
211 | })();
|
212 | });
|
213 | var J2 = er((Q3) => {
|
214 | Hi(Q3);
|
215 | Fi(Q3, {InternalPrefixes: () => Lu, ReservedIdentifierRegex: () => $3, ReservedPrefixes: () => Du, ToImbaMap: () => Mu, ToJSMap: () => Fu, toCustomTagIdentifier: () => of, toImbaIdentifier: () => nf, toJSIdentifier: () => Pu});
|
216 | var Lu = {TAG: "\u03C4", FLIP: "\u03C9", VALUE: "\u03C5", CACHE: "\u03F2", KEY: "\u03BA", ANY: "\u03C6", SYM: "\u03B5", SEP: "\u03B9", PRIVATE: "\u03A8", B: "\u03B9", T: "\u03C4", C: "\u03C1", V: "\u03C5", K: "\u03BA", D: "\u0394", H: "\u03B8", EXTEND: "\u03A9"}, Du = new Set(Object.values(Lu)), $3 = new RegExp("^[" + Array.from(Du).join("") + "]", "u"), Fu = {"-": "\u039E", "?": "\u03A6", "#": "\u03A8", "@": "\u03B1"}, tf = new RegExp("[-?#@]", "gu"), ef = function(t) {
|
217 | return Fu[t];
|
218 | };
|
219 | function Pu(t) {
|
220 | return t.replace(tf, ef);
|
221 | }
|
222 | var Mu = {\u039E: "-", \u03A6: "?", \u03A8: "#", \u03B1: "@"}, rf = new RegExp("[\u039E\u03A6\u03A8\u03B1]", "gu"), sf = function(t) {
|
223 | return Mu[t];
|
224 | };
|
225 | function nf(t) {
|
226 | return t.replace(rf, sf);
|
227 | }
|
228 | function of(t) {
|
229 | return "\u0393" + Pu(t);
|
230 | }
|
231 | });
|
232 | var lo = er((Ee) => {
|
233 | function Z2(t) {
|
234 | return t ? t.toArray ? t.toArray() : t : [];
|
235 | }
|
236 | var ge = {}, af = Cu(), lf = {reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39]}, ao = Ee.ansi = {bold: function(t) {
|
237 | return "[1m" + t + "[22m";
|
238 | }, red: function(t) {
|
239 | return "[31m" + t + "[39m";
|
240 | }, green: function(t) {
|
241 | return "[32m" + t + "[39m";
|
242 | }, yellow: function(t) {
|
243 | return "[33m" + t + "[39m";
|
244 | }, blue: function(t) {
|
245 | return "[94m" + t + "[39m";
|
246 | }, gray: function(t) {
|
247 | return "[90m" + t + "[39m";
|
248 | }, white: function(t) {
|
249 | return "[37m" + t + "[39m";
|
250 | }, f: function(t, e) {
|
251 | let r = lf[t];
|
252 | return "[" + r[0] + "m" + e + "[" + r[1] + "m";
|
253 | }};
|
254 | ao.warn = ao.yellow;
|
255 | ao.error = ao.red;
|
256 | var Vu = J2(), cf = Vu.toImbaIdentifier, uf = Vu.toJSIdentifier, hf = "\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9";
|
257 | Ee.brace = ge.brace = function(t) {
|
258 | var e = t.match(/\n/);
|
259 | return e ? "{" + t + `
|
260 | }` : `{
|
261 | ` + t + `
|
262 | }`;
|
263 | };
|
264 | Ee.normalizeIndentation = ge.normalizeIndentation = function(t) {
|
265 | for (var e, r = /\n+([^\n\S]*)/g, i = null, s; e = r.exec(t); ) {
|
266 | var n = e[1];
|
267 | (i === null || 0 < (s = n.length) && s < i.length) && (i = n);
|
268 | }
|
269 | return i && (t = t.replace(RegExp("\\n" + i, "g"), `
|
270 | `)), t;
|
271 | };
|
272 | Ee.flatten = ge.flatten = function(t) {
|
273 | var e = [];
|
274 | return t.forEach(function(r) {
|
275 | return r instanceof Array ? e.push.apply(e, ge.flatten(r)) : e.push(r);
|
276 | }), e;
|
277 | };
|
278 | Ee.clearLocationMarkers = ge.clearLocationMarkers = function(t) {
|
279 | return t.replace(/\/\*\%([\w\|]*)\$\*\//g, "");
|
280 | };
|
281 | Ee.pascalCase = ge.pascalCase = function(t) {
|
282 | return t.replace(/(^|[\-\_\s])(\w)/g, function(e, r, i) {
|
283 | return i.toUpperCase();
|
284 | });
|
285 | };
|
286 | Ee.camelCase = ge.camelCase = function(t) {
|
287 | return t = String(t), t.replace(/([\-\_\s])(\w)/g, function(e, r, i) {
|
288 | return i.toUpperCase();
|
289 | });
|
290 | };
|
291 | Ee.dashToCamelCase = ge.dashToCamelCase = function(t) {
|
292 | return t = String(t), t.indexOf("-") >= 0 && (t = t.replace(/([\-\s])(\w)/g, function(e, r, i) {
|
293 | return i.toUpperCase();
|
294 | })), t;
|
295 | };
|
296 | Ee.snakeCase = ge.snakeCase = function(t) {
|
297 | var t = t.replace(/([\-\s])(\w)/g, "_");
|
298 | return t.replace(/()([A-Z])/g, "_$1", function(e, r, i) {
|
299 | return i.toUpperCase();
|
300 | });
|
301 | };
|
302 | Ee.dasherize = ge.dasherize = function(t) {
|
303 | return t.replace(/([a-z\d])([A-Z])/g, "$1-$2").toLowerCase();
|
304 | };
|
305 | Ee.setterSym = ge.setterSym = function(t) {
|
306 | return ge.dashToCamelCase("set-" + t);
|
307 | };
|
308 | Ee.quote = ge.quote = function(t) {
|
309 | return '"' + t + '"';
|
310 | };
|
311 | Ee.singlequote = ge.singlequote = function(t) {
|
312 | return "'" + t + "'";
|
313 | };
|
314 | Ee.isValidIdentifier = ge.isValidIdentifier = function(t) {
|
315 | return !/[?-\s]/.test(t) && t[0] != "#";
|
316 | };
|
317 | Ee.toValidIdentifier = ge.toValidIdentifier = function(t) {
|
318 | return uf(t);
|
319 | };
|
320 | Ee.fromValidIdentifier = ge.fromValidIdentifier = function(t) {
|
321 | return cf(t);
|
322 | };
|
323 | Ee.isSystemIdentifier = ge.isSystemIdentifier = function(t) {
|
324 | return hf.indexOf(t[0]) >= 0;
|
325 | };
|
326 | Ee.symbolize = ge.symbolize = function(t, e) {
|
327 | return t = String(t), ge.toValidIdentifier(t);
|
328 | return e && e.tsc(), t;
|
329 | var r = t.charAt(t.length - 1);
|
330 | return r == "?" && (t = "is" + t[0].toUpperCase() + t.slice(1, -1)), t.indexOf("-") >= 0 && (t = t.replace(/([\-\s])(\w)/g, function(i, s, n) {
|
331 | return n.toUpperCase();
|
332 | })), t;
|
333 | };
|
334 | Ee.indent = ge.indent = function(t) {
|
335 | return String(t).replace(/^/g, " ").replace(/\n/g, `
|
336 | `).replace(/\n\t$/g, `
|
337 | `);
|
338 | };
|
339 | Ee.bracketize = ge.bracketize = function(t, e) {
|
340 | return e === void 0 && (e = true), e && (t = `
|
341 | ` + ge.indent(t) + `
|
342 | `), "{" + t + "}";
|
343 | };
|
344 | Ee.parenthesize = ge.parenthesize = function(t) {
|
345 | return "(" + String(t) + ")";
|
346 | };
|
347 | Ee.unionOfLocations = ge.unionOfLocations = function() {
|
348 | for (var t = arguments, e = t.length, r = new Array(e > 0 ? e : 0); e > 0; )
|
349 | r[e - 1] = t[--e];
|
350 | var i = Infinity, s = -Infinity;
|
351 | for (let n = 0, o = Z2(r), a = o.length, l; n < a; n++)
|
352 | l = o[n], l && l._loc != null && (l = l._loc), l && l.loc instanceof Function && (l = l.loc()), l instanceof Array ? (i > l[0] && (i = l[0]), s < l[0] && (s = l[1])) : (typeof l == "number" || l instanceof Number) && (i > l && (i = l), s < l && (s = l));
|
353 | return [i, s];
|
354 | };
|
355 | Ee.locationToLineColMap = ge.locationToLineColMap = function(t) {
|
356 | for (var e = t.split(/\n/g), r = [], i, s = 0, n = 0, o = 0; i = t[s]; )
|
357 | r[s] = [o, n], i == `
|
358 | ` ? (o++, n = 0) : n++, s++;
|
359 | return r[s] = [o, n], r[s + 1] = [o, n], r;
|
360 | };
|
361 | Ee.markLineColForTokens = ge.markLineColForTokens = function(t, e) {
|
362 | return ge;
|
363 | };
|
364 | Ee.parseArgs = ge.parseArgs = function(t, e) {
|
365 | var r;
|
366 | e === void 0 && (e = {});
|
367 | var i = e.alias || (e.alias = {}), s = e.group || (e.group = []), n = e.schema || {};
|
368 | n.main = {};
|
369 | var o = {}, a = {};
|
370 | t = t || process.argv.slice(2);
|
371 | for (var l = null, p = 0, c; p < t.length; ) {
|
372 | var _ = t[p];
|
373 | if (p++, c = _.match(/^\-([a-zA-Z]+)(\=\S+)?$/)) {
|
374 | l = null;
|
375 | let b = c[1].split("");
|
376 | for (let N = 0, y = Z2(b), v = y.length, d; N < v; N++) {
|
377 | d = y[N];
|
378 | var f = i[d] || d;
|
379 | b[N] = f, o[f] = true;
|
380 | }
|
381 | b.length == 1 && (l = b);
|
382 | continue;
|
383 | } else if (c = _.match(/^\-\-([a-z0-9\-\_A-Z]+)(\=\S+)?$/)) {
|
384 | var m = true;
|
385 | f = c[1], f.indexOf("no-") == 0 && (f = f.substr(3), m = false), f = ge.dashToCamelCase(f), c[2] && (m = c[2].slice(1)), o[f] = m, l = f;
|
386 | continue;
|
387 | } else {
|
388 | var g = n[l];
|
389 | l && n[l] || (l = "main"), _.match(/^\d+$/) && (_ = parseInt(_)), m = o[l], m == true || m == false ? o[l] = _ : typeof m == "string" || m instanceof String || typeof m == "number" || m instanceof Number ? o[l] = [m].concat(_) : m instanceof Array ? m.push(_) : o[l] = _, g && g.multi || (l = "main");
|
390 | }
|
391 | }
|
392 | for (let b = 0, N = Z2(s), y = N.length; b < y; b++) {
|
393 | let v = ge.dashToCamelCase(N[b]);
|
394 | for (let d, w = 0, k = Object.keys(o), T = k.length, S; w < T; w++)
|
395 | if (S = k[w], d = o[S], S.indexOf(v) == 0) {
|
396 | let C = S.substr(v.length).replace(/^\w/, function(L) {
|
397 | return L.toLowerCase();
|
398 | });
|
399 | C ? (o[v] || (o[v] = {}), o[v][C] = d) : o[v] || (o[v] = {});
|
400 | }
|
401 | }
|
402 | return (typeof (r = o.env) == "string" || r instanceof String) && (o["ENV_" + o.env] = true), o;
|
403 | };
|
404 | Ee.printExcerpt = ge.printExcerpt = function(t, e, r) {
|
405 | (!r || r.constructor !== Object) && (r = {});
|
406 | var i = r.hl !== void 0 ? r.hl : false, s = r.gutter !== void 0 ? r.gutter : true, n = r.type !== void 0 ? r.type : "warn", o = r.pad !== void 0 ? r.pad : 2, a = t.split(/\n/g), l = ge.locationToLineColMap(t), p = l[e[0]] || [0, 0], c = p[0], _ = p[1], f = a[c], m = Math.max(0, c - o), g = Math.min(m + o + 1 + o, a.length);
|
407 | let b = c - m;
|
408 | for (var N = m, y = []; N < g; )
|
409 | y.push(a[N++]);
|
410 | var v = y;
|
411 | return s && (v = v.map(function(w, k) {
|
412 | let T = "" + (m + k + 1), S;
|
413 | for (; T.length < String(g).length; )
|
414 | T = " " + T;
|
415 | return k == b ? (S = " -> " + T + " | " + w, i && (S = ao.f(i, S))) : (S = " " + T + " | " + w, i && (S = ao.f("gray", S))), S;
|
416 | })), v.join(`
|
417 | `);
|
418 | };
|
419 | Ee.printWarning = ge.printWarning = function(t, e) {
|
420 | let r = e.message, i = ge.printExcerpt(t, e.loc, {hl: "whiteBright", type: "warn", pad: 1});
|
421 | return r + `
|
422 | ` + i;
|
423 | };
|
424 | Ee.identifierForPath = ge.identifierForPath = function(t) {
|
425 | var e = af.create();
|
426 | e.update(t);
|
427 | var r = e.b32().replace(/^\d+/, "");
|
428 | return r.slice(0, 6);
|
429 | };
|
430 | });
|
431 | var v1 = er((Si) => {
|
432 | function pf(t) {
|
433 | return t ? t.toArray ? t.toArray() : t : [];
|
434 | }
|
435 | var Q2 = Si.BALANCED_PAIRS = [["(", ")"], ["[", "]"], ["{", "}"], ["{{", "}}"], ["INDENT", "OUTDENT"], ["CALL_START", "CALL_END"], ["PARAM_START", "PARAM_END"], ["INDEX_START", "INDEX_END"], ["TAG_START", "TAG_END"], ["STYLE_START", "STYLE_END"], ["BLOCK_PARAM_START", "BLOCK_PARAM_END"]], ju = Si.INVERSES = {};
|
436 | for (let t = 0, e = Q2.length, r; t < e; t++)
|
437 | r = Q2[t], m1 = r[0], y1 = r[1], ju[y1] = m1, ju[m1] = y1, Q2[m1] = y1;
|
438 | var m1, y1, id = Si.ALL_KEYWORDS = ["true", "false", "null", "this", "delete", "typeof", "in", "instanceof", "throw", "break", "continue", "debugger", "if", "else", "switch", "for", "while", "do", "try", "catch", "finally", "class", "extends", "super", "return", "undefined", "then", "unless", "until", "loop", "of", "by", "when", "def", "tag", "do", "elif", "begin", "var", "let", "self", "await", "import", "and", "or", "is", "isnt", "not", "yes", "no", "isa", "case", "nil", "require"], sd = Si.TOK = {TERMINATOR: "TERMINATOR", INDENT: "INDENT", OUTDENT: "OUTDENT", DEF_BODY: "DEF_BODY", THEN: "THEN", CATCH: "CATCH"}, nd = Si.OPERATOR_ALIASES = {and: "&&", or: "||", is: "==", isnt: "!=", isa: "instanceof"}, od = Si.HEREGEX_OMIT = /\s+(?:#.*)?/g, ad = Si.HEREGEX = /^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/, ld = Si.TAG_GLOBAL_ATTRIBUTES = {itemid: 1, itemprop: 1, itemref: 1, itemscope: 1, itemtype: 1, enterkeyhint: 1, autofocus: 1, autocapitalize: 1, autocomplete: 1, accesskey: 1, inputmode: 1, spellcheck: 1, translate: 1, is: 1}, cd = Si.SYSVAR_PREFIX = {TAG: "\u03C4", FLIP: "\u03C9", VALUE: "\u03C5", CACHE: "\u03C1", KEY: "\u03BA", ANY: "\u03C6", B: "\u0398", T: "\u03C4", C: "\u03C1", V: "\u03C5", K: "\u03BA", D: "\u0394"}, g1 = Si.TAG_TYPES = {"": [-1, {id: 1, className: "class", slot: 1, part: 1, elementTiming: "elementtiming"}], HTML: [-1, {title: 1, lang: 1, translate: 1, dir: 1, accessKey: "accesskey", draggable: 1, spellcheck: 1, autocapitalize: 1, inputMode: "inputmode", style: 1, tabIndex: "tabindex", enterKeyHint: "enterkeyhint"}], HTMLAnchor: [1, {target: 1, download: 1, ping: 1, rel: 1, relList: "rel", hreflang: 1, type: 1, referrerPolicy: "referrerpolicy", coords: 1, charset: 1, name: 1, rev: 1, shape: 1, href: 1}], HTMLArea: [1, {alt: 1, coords: 1, download: 1, shape: 1, target: 1, ping: 1, rel: 1, relList: "rel", referrerPolicy: "referrerpolicy", href: 1}], HTMLMedia: [1, {src: 1, crossOrigin: "crossorigin", preload: 1, controlsList: "controlslist"}], HTMLAudio: [4, {}], HTMLBase: [1, {href: 1, target: 1}], HTMLQuote: [1, {cite: 1}], HTMLBody: [1, {text: 1, link: 1, vLink: "vlink", aLink: "alink", bgColor: "bgcolor", background: 1}], HTMLBR: [1, {clear: 1}], HTMLButton: [1, {formAction: "formaction", formEnctype: "formenctype", formMethod: "formmethod", formTarget: "formtarget", name: 1, type: 1, value: 1}], HTMLCanvas: [1, {width: 1, height: 1}], HTMLTableCaption: [1, {align: 1}], HTMLTableCol: [1, {span: 1, align: 1, ch: "char", chOff: "charoff", vAlign: "valign", width: 1}], HTMLData: [1, {value: 1}], HTMLDataList: [1, {}], HTMLMod: [1, {cite: 1, dateTime: "datetime"}], HTMLDetails: [1, {}], HTMLDialog: [1, {}], HTMLDiv: [1, {align: 1}], HTMLDList: [1, {}], HTMLEmbed: [1, {src: 1, type: 1, width: 1, height: 1, align: 1, name: 1}], HTMLFieldSet: [1, {name: 1}], HTMLForm: [1, {acceptCharset: "accept-charset", action: 1, autocomplete: 1, enctype: 1, encoding: "enctype", method: 1, name: 1, target: 1}], HTMLHeading: [1, {align: 1}], HTMLHead: [1, {}], HTMLHR: [1, {align: 1, color: 1, size: 1, width: 1}], HTMLHtml: [1, {version: 1}], HTMLIFrame: [1, {src: 1, srcdoc: 1, name: 1, sandbox: 1, width: 1, height: 1, referrerPolicy: "referrerpolicy", csp: 1, allow: 1, align: 1, scrolling: 1, frameBorder: "frameborder", longDesc: "longdesc", marginHeight: "marginheight", marginWidth: "marginwidth", loading: 1}], HTMLImage: [1, {alt: 1, src: 1, srcset: 1, sizes: 1, crossOrigin: "crossorigin", useMap: "usemap", width: 1, height: 1, referrerPolicy: "referrerpolicy", decoding: 1, name: 1, lowsrc: 1, align: 1, hspace: 1, vspace: 1, longDesc: "longdesc", border: 1, loading: 1}], HTMLInput: [1, {accept: 1, alt: 1, autocomplete: 1, dirName: "dirname", formAction: "formaction", formEnctype: "formenctype", formMethod: "formmethod", formTarget: "formtarget", height: 1, max: 1, maxLength: "maxlength", min: 1, minLength: "minlength", name: 1, pattern: 1, placeholder: 1, src: 1, step: 1, type: 1, defaultValue: "value", width: 1, align: 1, useMap: "usemap"}], HTMLLabel: [1, {htmlFor: "for"}], HTMLLegend: [1, {align: 1}], HTMLLI: [1, {value: 1, type: 1}], HTMLLink: [1, {href: 1, crossOrigin: "crossorigin", rel: 1, relList: "rel", media: 1, hreflang: 1, type: 1, as: 1, referrerPolicy: "referrerpolicy", sizes: 1, imageSrcset: "imagesrcset", imageSizes: "imagesizes", charset: 1, rev: 1, target: 1, integrity: 1}], HTMLMap: [1, {name: 1}], HTMLMenu: [1, {}], HTMLMeta: [1, {name: 1, httpEquiv: "http-equiv", content: 1, scheme: 1}], HTMLMeter: [1, {value: 1, min: 1, max: 1, low: 1, high: 1, optimum: 1}], HTMLObject: [1, {data: 1, type: 1, name: 1, useMap: "usemap", width: 1, height: 1, align: 1, archive: 1, code: 1, hspace: 1, standby: 1, vspace: 1, codeBase: "codebase", codeType: "codetype", border: 1}], HTMLOList: [1, {start: 1, type: 1}], HTMLOptGroup: [1, {label: 1}], HTMLOption: [1, {label: 1, value: 1}], HTMLOutput: [1, {htmlFor: "for", name: 1}], HTMLParagraph: [1, {align: 1}], HTMLParam: [1, {name: 1, value: 1, type: 1, valueType: "valuetype"}], HTMLPicture: [1, {}], HTMLPre: [1, {width: 1}], HTMLProgress: [1, {value: 1, max: 1}], HTMLScript: [1, {src: 1, type: 1, charset: 1, crossOrigin: "crossorigin", referrerPolicy: "referrerpolicy", event: 1, htmlFor: "for", integrity: 1}], HTMLSelect: [1, {autocomplete: 1, name: 1, size: 1}], HTMLSlot: [1, {name: 1}], HTMLSource: [1, {src: 1, type: 1, srcset: 1, sizes: 1, media: 1}], HTMLSpan: [1, {}], HTMLStyle: [1, {media: 1, type: 1}], HTMLTable: [1, {align: 1, border: 1, frame: 1, rules: 1, summary: 1, width: 1, bgColor: "bgcolor", cellPadding: "cellpadding", cellSpacing: "cellspacing"}], HTMLTableSection: [1, {align: 1, ch: "char", chOff: "charoff", vAlign: "valign"}], HTMLTableCell: [1, {colSpan: "colspan", rowSpan: "rowspan", headers: 1, align: 1, axis: 1, height: 1, width: 1, ch: "char", chOff: "charoff", vAlign: "valign", bgColor: "bgcolor", abbr: 1, scope: 1}], HTMLTemplate: [1, {}], HTMLTextArea: [1, {autocomplete: 1, cols: 1, dirName: "dirname", maxLength: "maxlength", minLength: "minlength", name: 1, placeholder: 1, rows: 1, wrap: 1}], HTMLTime: [1, {dateTime: "datetime"}], HTMLTitle: [1, {}], HTMLTableRow: [1, {align: 1, ch: "char", chOff: "charoff", vAlign: "valign", bgColor: "bgcolor"}], HTMLTrack: [1, {kind: 1, src: 1, srclang: 1, label: 1}], HTMLUList: [1, {type: 1}], HTMLVideo: [4, {width: 1, height: 1, poster: 1}], SVG: [-1, {}], SVGGraphics: [66, {transform: 1}], SVGA: [67, {}], SVGAnimation: [66, {}], SVGAnimate: [69, {}], SVGAnimateMotion: [69, {}], SVGAnimateTransform: [69, {}], SVGGeometry: [67, {}], SVGCircle: [73, {cx: 1, cy: 1, r: 1}], SVGClipPath: [67, {clipPathUnits: 1}], SVGDefs: [67, {}], SVGDesc: [66, {}], SVGDiscard: [66, {}], SVGEllipse: [73, {cx: 1, cy: 1, rx: 1, ry: 1}], SVGFEBlend: [66, {mode: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEColorMatrix: [66, {type: 1, values: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEComponentTransfer: [66, {x: 1, y: 1, width: 1, height: 1}], SVGFEComposite: [66, {operator: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEConvolveMatrix: [66, {orderX: 1, orderY: 1, kernelMatrix: 1, divisor: 1, edgeMode: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEDiffuseLighting: [66, {surfaceScale: 1, diffuseConstant: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEDisplacementMap: [66, {xChannelSelector: 1, yChannelSelector: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEDistantLight: [66, {}], SVGFEDropShadow: [66, {dx: 1, dy: 1, stdDeviationX: 1, stdDeviationY: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEFlood: [66, {x: 1, y: 1, width: 1, height: 1}], SVGComponentTransferFunction: [66, {type: 1, tableValues: 1, slope: 1, amplitude: 1, exponent: 1}], SVGFEFuncA: [90, {}], SVGFEFuncB: [90, {}], SVGFEFuncG: [90, {}], SVGFEFuncR: [90, {}], SVGFEGaussianBlur: [66, {x: 1, y: 1, width: 1, height: 1}], SVGFEImage: [66, {preserveAspectRatio: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEMerge: [66, {x: 1, y: 1, width: 1, height: 1}], SVGFEMergeNode: [66, {}], SVGFEMorphology: [66, {operator: 1, x: 1, y: 1, width: 1, height: 1}], SVGFEOffset: [66, {x: 1, y: 1, width: 1, height: 1}], SVGFEPointLight: [66, {}], SVGFESpecularLighting: [66, {surfaceScale: 1, specularConstant: 1, specularExponent: 1, x: 1, y: 1, width: 1, height: 1}], SVGFESpotLight: [66, {specularExponent: 1}], SVGFETile: [66, {x: 1, y: 1, width: 1, height: 1}], SVGFETurbulence: [66, {numOctaves: 1, stitchTiles: 1, type: 1, x: 1, y: 1, width: 1, height: 1}], SVGFilter: [66, {filterUnits: 1, primitiveUnits: 1, x: 1, y: 1, width: 1, height: 1}], SVGForeignObject: [67, {x: 1, y: 1, width: 1, height: 1}], SVGG: [67, {}], SVGImage: [67, {x: 1, y: 1, width: 1, height: 1, preserveAspectRatio: 1}], SVGLine: [73, {x1: 1, y1: 1, x2: 1, y2: 1}], SVGGradient: [66, {gradientUnits: 1, gradientTransform: 1, spreadMethod: 1}], SVGLinearGradient: [111, {x1: 1, y1: 1, x2: 1, y2: 1}], SVGMarker: [66, {refX: 1, refY: 1, markerUnits: 1, markerWidth: 1, markerHeight: 1, orientType: 1, orientAngle: 1, viewBox: 1, preserveAspectRatio: 1}], SVGMask: [66, {maskUnits: 1, maskContentUnits: 1, x: 1, y: 1, width: 1, height: 1}], SVGMetadata: [66, {}], SVGMPath: [66, {}], SVGPath: [73, {}], SVGPattern: [66, {patternUnits: 1, patternContentUnits: 1, patternTransform: 1, x: 1, y: 1, width: 1, height: 1, viewBox: 1, preserveAspectRatio: 1}], SVGPolygon: [73, {}], SVGPolyline: [73, {}], SVGRadialGradient: [111, {cx: 1, cy: 1, r: 1, fx: 1, fy: 1, fr: 1}], SVGRect: [73, {x: 1, y: 1, width: 1, height: 1, rx: 1, ry: 1}], SVGScript: [66, {}], SVGSet: [69, {}], SVGStop: [66, {}], SVGStyle: [66, {}], SVGSVG: [67, {x: 1, y: 1, width: 1, height: 1, viewBox: 1, preserveAspectRatio: 1}], SVGSwitch: [67, {}], SVGSymbol: [66, {viewBox: 1, preserveAspectRatio: 1}], SVGTextContent: [67, {textLength: 1, lengthAdjust: 1}], SVGTextPositioning: [130, {x: 1, y: 1, dx: 1, dy: 1, rotate: 1}], SVGText: [131, {}], SVGTextPath: [130, {startOffset: 1, method: 1, spacing: 1}], SVGTitle: [66, {}], SVGTSpan: [131, {}], SVGUse: [67, {x: 1, y: 1, width: 1, height: 1}], SVGView: [66, {viewBox: 1, preserveAspectRatio: 1}]}, $2 = Si.TAG_NAMES = {a: 2, abbr: 1, address: 1, area: 3, article: 1, aside: 1, audio: 5, b: 1, base: 6, bdi: 1, bdo: 1, blockquote: 7, body: 8, br: 9, button: 10, canvas: 11, caption: 12, cite: 1, code: 1, col: 13, colgroup: 13, data: 14, datalist: 15, dd: 1, del: 16, details: 17, dfn: 1, dialog: 18, div: 19, dl: 20, dt: 1, em: 1, embed: 21, fieldset: 22, figcaption: 1, figure: 1, footer: 1, form: 23, h1: 24, h2: 24, h3: 24, h4: 24, h5: 24, h6: 24, head: 25, header: 1, hgroup: 1, hr: 26, html: 27, i: 1, iframe: 28, img: 29, input: 30, ins: 16, kbd: 1, label: 31, legend: 32, li: 33, link: 34, main: 1, map: 35, mark: 1, menu: 36, meta: 37, meter: 38, nav: 1, noscript: 1, object: 39, ol: 40, optgroup: 41, option: 42, output: 43, p: 44, param: 45, picture: 46, pre: 47, progress: 48, q: 7, rp: 1, rt: 1, ruby: 1, s: 1, samp: 1, script: 49, section: 1, select: 50, slot: 51, small: 1, source: 52, span: 53, strike: 1, strong: 1, style: 54, sub: 1, summary: 1, sup: 1, table: 55, tbody: 56, td: 57, template: 58, textarea: 59, tfoot: 56, th: 57, thead: 56, time: 60, title: 61, tr: 62, track: 63, u: 1, ul: 64, var: 1, video: 65, wbr: 1, svg_a: 68, svg_animate: 70, svg_animateMotion: 71, svg_animateTransform: 72, svg_audio: 66, svg_canvas: 66, svg_circle: 74, svg_clipPath: 75, svg_defs: 76, svg_desc: 77, svg_discard: 78, svg_ellipse: 79, svg_feBlend: 80, svg_feColorMatrix: 81, svg_feComponentTransfer: 82, svg_feComposite: 83, svg_feConvolveMatrix: 84, svg_feDiffuseLighting: 85, svg_feDisplacementMap: 86, svg_feDistantLight: 87, svg_feDropShadow: 88, svg_feFlood: 89, svg_feFuncA: 91, svg_feFuncB: 92, svg_feFuncG: 93, svg_feFuncR: 94, svg_feGaussianBlur: 95, svg_feImage: 96, svg_feMerge: 97, svg_feMergeNode: 98, svg_feMorphology: 99, svg_feOffset: 100, svg_fePointLight: 101, svg_feSpecularLighting: 102, svg_feSpotLight: 103, svg_feTile: 104, svg_feTurbulence: 105, svg_filter: 106, svg_foreignObject: 107, svg_g: 108, svg_iframe: 66, svg_image: 109, svg_line: 110, svg_linearGradient: 112, svg_marker: 113, svg_mask: 114, svg_metadata: 115, svg_mpath: 116, svg_path: 117, svg_pattern: 118, svg_polygon: 119, svg_polyline: 120, svg_radialGradient: 121, svg_rect: 122, svg_script: 123, svg_set: 124, svg_stop: 125, svg_style: 126, svg_svg: 127, svg_switch: 128, svg_symbol: 129, svg_text: 132, svg_textPath: 133, svg_title: 134, svg_tspan: 135, svg_unknown: 66, svg_use: 136, svg_video: 66, svg_view: 137}, tl = Object.keys(g1);
|
439 | for (let t = 0, e = pf(tl), r = e.length, i; t < r; t++) {
|
440 | i = e[t];
|
441 | let s = g1[i];
|
442 | s.up = g1[tl[s[0]]], s.name = i + "Element";
|
443 | }
|
444 | for (let t, e = 0, r = Object.keys($2), i = r.length, s; e < i; e++)
|
445 | s = r[e], t = $2[s], $2[s] = g1[tl[t]];
|
446 | });
|
447 | var N1 = er((Rf) => {
|
448 | Hi(Rf);
|
449 | Fi(Rf, {basename: () => qh, default: () => Cf, delimiter: () => Yh, dirname: () => Kh, extname: () => Xh, isAbsolute: () => wl, join: () => Hh, normalize: () => Sl, relative: () => zh, resolve: () => R1, sep: () => Uh});
|
450 | function Bh(t, e) {
|
451 | for (var r = 0, i = t.length - 1; i >= 0; i--) {
|
452 | var s = t[i];
|
453 | s === "." ? t.splice(i, 1) : s === ".." ? (t.splice(i, 1), r++) : r && (t.splice(i, 1), r--);
|
454 | }
|
455 | if (e)
|
456 | for (; r--; r)
|
457 | t.unshift("..");
|
458 | return t;
|
459 | }
|
460 | var Nf = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/, kl = function(t) {
|
461 | return Nf.exec(t).slice(1);
|
462 | };
|
463 | function R1() {
|
464 | for (var t = "", e = false, r = arguments.length - 1; r >= -1 && !e; r--) {
|
465 | var i = r >= 0 ? arguments[r] : "/";
|
466 | if (typeof i != "string")
|
467 | throw new TypeError("Arguments to path.resolve must be strings");
|
468 | if (!i)
|
469 | continue;
|
470 | t = i + "/" + t, e = i.charAt(0) === "/";
|
471 | }
|
472 | return t = Bh(xl(t.split("/"), function(s) {
|
473 | return !!s;
|
474 | }), !e).join("/"), (e ? "/" : "") + t || ".";
|
475 | }
|
476 | function Sl(t) {
|
477 | var e = wl(t), r = Of(t, -1) === "/";
|
478 | return t = Bh(xl(t.split("/"), function(i) {
|
479 | return !!i;
|
480 | }), !e).join("/"), !t && !e && (t = "."), t && r && (t += "/"), (e ? "/" : "") + t;
|
481 | }
|
482 | function wl(t) {
|
483 | return t.charAt(0) === "/";
|
484 | }
|
485 | function Hh() {
|
486 | var t = Array.prototype.slice.call(arguments, 0);
|
487 | return Sl(xl(t, function(e, r) {
|
488 | if (typeof e != "string")
|
489 | throw new TypeError("Arguments to path.join must be strings");
|
490 | return e;
|
491 | }).join("/"));
|
492 | }
|
493 | function zh(t, e) {
|
494 | t = R1(t).substr(1), e = R1(e).substr(1);
|
495 | function r(p) {
|
496 | for (var c = 0; c < p.length && p[c] === ""; c++)
|
497 | ;
|
498 | for (var _ = p.length - 1; _ >= 0 && p[_] === ""; _--)
|
499 | ;
|
500 | return c > _ ? [] : p.slice(c, _ - c + 1);
|
501 | }
|
502 | for (var i = r(t.split("/")), s = r(e.split("/")), n = Math.min(i.length, s.length), o = n, a = 0; a < n; a++)
|
503 | if (i[a] !== s[a]) {
|
504 | o = a;
|
505 | break;
|
506 | }
|
507 | for (var l = [], a = o; a < i.length; a++)
|
508 | l.push("..");
|
509 | return l = l.concat(s.slice(o)), l.join("/");
|
510 | }
|
511 | var Uh = "/", Yh = ":";
|
512 | function Kh(t) {
|
513 | var e = kl(t), r = e[0], i = e[1];
|
514 | return !r && !i ? "." : (i && (i = i.substr(0, i.length - 1)), r + i);
|
515 | }
|
516 | function qh(t, e) {
|
517 | var r = kl(t)[2];
|
518 | return e && r.substr(-1 * e.length) === e && (r = r.substr(0, r.length - e.length)), r;
|
519 | }
|
520 | function Xh(t) {
|
521 | return kl(t)[3];
|
522 | }
|
523 | var Cf = {extname: Xh, basename: qh, dirname: Kh, sep: Uh, delimiter: Yh, relative: zh, join: Hh, isAbsolute: wl, normalize: Sl, resolve: R1};
|
524 | function xl(t, e) {
|
525 | if (t.filter)
|
526 | return t.filter(e);
|
527 | for (var r = [], i = 0; i < t.length; i++)
|
528 | e(t[i], i, t) && r.push(t[i]);
|
529 | return r;
|
530 | }
|
531 | var Of = "ab".substr(-1) === "b" ? function(t, e, r) {
|
532 | return t.substr(e, r);
|
533 | } : function(t, e, r) {
|
534 | return e < 0 && (e = t.length + e), t.substr(e, r);
|
535 | };
|
536 | });
|
537 | var Tl = er((Lf) => {
|
538 | Hi(Lf);
|
539 | Fi(Lf, {SourceMapper: () => Wh});
|
540 | var Wh = class {
|
541 | static strip(e) {
|
542 | return e.replace(/\/\*\%([\w\|]*)\$\*\//g, "");
|
543 | }
|
544 | static run(e, r = {}) {
|
545 | return {code: e.replace(/\/\*\%([\w\|]*)\$\*\//g, ""), map: null, toString: function() {
|
546 | return this.code;
|
547 | }};
|
548 | }
|
549 | };
|
550 | });
|
551 | var O1 = er((Df) => {
|
552 | Hi(Df);
|
553 | Fi(Df, {Compilation: () => Is, CompilationResult: () => $h});
|
554 | var Jh = N1(), El = Tl(), Zh = Symbol.for("#__init__"), f4 = Symbol.for("#__initor__"), _4 = Symbol.for("#__inited__"), Qh = Symbol.for("#doc"), Al = {TOKENIZE: 1, REWRITE: 2, PARSE: 4, TRAVERSE: 8, COMPILE: 16}, d4 = new WeakMap(), $h = class {
|
555 | }, Is = class {
|
556 | static [Zh]() {
|
557 | return this.current = void 0, this;
|
558 | }
|
559 | static error(e) {
|
560 | var r, i;
|
561 | return (i = (r = this.current) == null ? void 0 : r.addDiagnostic) == null ? void 0 : i.call(r, "error", e);
|
562 | }
|
563 | static warn(e) {
|
564 | var r, i;
|
565 | return (i = (r = this.current) == null ? void 0 : r.addDiagnostic) == null ? void 0 : i.call(r, "warning", e);
|
566 | }
|
567 | static info(e) {
|
568 | var r, i;
|
569 | return (i = (r = this.current) == null ? void 0 : r.addDiagnostic) == null ? void 0 : i.call(r, "info", e);
|
570 | }
|
571 | static deserialize(e, r = {}) {
|
572 | return new Is("", r).deserialize(e);
|
573 | }
|
574 | constructor(e, r) {
|
575 | this.sourceCode = e, this.sourcePath = r.sourcePath, this.options = r, this.flags = 0, this.js = "", this.css = "", this.result = {}, this.diagnostics = [], this.tokens = null, this.ast = null;
|
576 | }
|
577 | deserialize(e) {
|
578 | let r;
|
579 | try {
|
580 | r = JSON.parse(e);
|
581 | } catch (i) {
|
582 | throw console.log("failed", e, this.options), i;
|
583 | }
|
584 | return this.rawResult = r, this.deserialized = r, this;
|
585 | }
|
586 | serialize() {
|
587 | if (this.rawResult)
|
588 | return JSON.stringify(this.rawResult, null, 2);
|
589 | }
|
590 | tokenize() {
|
591 | var e;
|
592 | if ((this.flags & (e = Al.TOKENIZE)) == 0 ? (this.flags |= e, true) : false)
|
593 | try {
|
594 | Is.current = this, this.lexer.reset(), this.tokens = this.lexer.tokenize(this.sourceCode, this.options, this), this.tokens = this.rewriter.rewrite(this.tokens, this.options, this);
|
595 | } catch (r) {
|
596 | }
|
597 | return this.tokens;
|
598 | }
|
599 | parse() {
|
600 | var e;
|
601 | if (this.tokenize(), ((this.flags & (e = Al.PARSE)) == 0 ? (this.flags |= e, true) : false) && !this.errored\u03A6) {
|
602 | Is.current = this;
|
603 | try {
|
604 | this.ast = this.parser.parse(this.tokens, this);
|
605 | } catch (r) {
|
606 | }
|
607 | }
|
608 | return this;
|
609 | }
|
610 | compile() {
|
611 | var e;
|
612 | return this.parse(), ((this.flags & (e = Al.COMPILE)) == 0 ? (this.flags |= e, true) : false) && (this.errored\u03A6 || (Is.current = this, this.result = this.ast.compile(this.options, this)), this.options.raiseErrors && this.raiseErrors()), this;
|
613 | }
|
614 | recompile(e = {}) {
|
615 | if (this.deserialized) {
|
616 | let r = this.deserialized.js, i = {};
|
617 | return i.js = El.SourceMapper.run(r, e), i.css = El.SourceMapper.run(this.deserialized.css || "", e), e.styles == "import" && i.css.code && (i.js.code += `
|
618 | import './` + Jh.default.basename(this.sourcePath) + ".css'"), i;
|
619 | }
|
620 | return {js: this.js};
|
621 | }
|
622 | addDiagnostic(e, r) {
|
623 | r.severity || (r.severity = e);
|
624 | let i = new el(r, this);
|
625 | return this.diagnostics.push(i), i;
|
626 | }
|
627 | get errored\u03A6() {
|
628 | return this.errors.length > 0;
|
629 | }
|
630 | get errors() {
|
631 | return this.diagnostics.filter(function(e) {
|
632 | return e.severity == ea.Error;
|
633 | });
|
634 | }
|
635 | get warnings() {
|
636 | return this.diagnostics.filter(function(e) {
|
637 | return e.severity == ea.Warning;
|
638 | });
|
639 | }
|
640 | get info() {
|
641 | return this.diagnostics.filter(function(e) {
|
642 | return e.severity == ea.Information;
|
643 | });
|
644 | }
|
645 | get doc() {
|
646 | return this[Qh] || (this[Qh] = new vn(null, "imba", 0, this.sourceCode));
|
647 | }
|
648 | positionAt(e) {
|
649 | return this.doc.positionAt(e);
|
650 | }
|
651 | offsetAt(e) {
|
652 | return this.doc.offsetAt(e);
|
653 | }
|
654 | rangeAt(e, r) {
|
655 | return this.doc.rangeAt(e, r);
|
656 | }
|
657 | toString() {
|
658 | return this.js;
|
659 | }
|
660 | raiseErrors() {
|
661 | if (this.errors.length)
|
662 | throw this.errors[0].toError();
|
663 | return this;
|
664 | }
|
665 | };
|
666 | Is[Zh]();
|
667 | });
|
668 | var C1 = er((Il) => {
|
669 | function tp(t, e) {
|
670 | for (var r in e)
|
671 | e.hasOwnProperty(r) && (t[r] = e[r]);
|
672 | t.prototype = Object.create(e.prototype), t.__super__ = t.prototype.__super__ = e.prototype, t.prototype.initialize = t.prototype.constructor = t;
|
673 | }
|
674 | var Rl = lo(), ep = new WeakMap();
|
675 | function Sr(t, e) {
|
676 | var r;
|
677 | this.error = t, this._options = e || {}, this.severity = this._options.severity || "error";
|
678 | let i = t.message;
|
679 | (r = i.match(/Unexpected '([\w\-]+)'/)) && r[1] == "TERMINATOR" && (i = "Unexpected newline"), this.message = i, this.sourcePath = t.sourcePath, this.line = t.line;
|
680 | }
|
681 | tp(Sr, Error);
|
682 | Il.ImbaParseError = Sr;
|
683 | Sr.wrap = function(t) {
|
684 | return new this(t);
|
685 | };
|
686 | Object.defineProperty(Sr.prototype, "_options", {get: function() {
|
687 | return ep.get(this);
|
688 | }, configurable: true});
|
689 | Object.defineProperty(Sr.prototype, "_options", {set: function(t) {
|
690 | return ep.set(this, t);
|
691 | }, configurable: true});
|
692 | Sr.prototype.set = function(t) {
|
693 | this._options || (this._options = {});
|
694 | for (let e, r = 0, i = Object.keys(t), s = i.length, n; r < s; r++)
|
695 | n = i[r], e = t[n], this._options[n] = e;
|
696 | return this;
|
697 | };
|
698 | Sr.prototype.start = function() {
|
699 | for (var t = this._options, e = t.pos - 1, r = t.tokens && t.tokens[e]; r && (r._loc == -1 || r._loc == 0 || r._len == 0); )
|
700 | r = t.tokens[--e];
|
701 | return r;
|
702 | };
|
703 | Object.defineProperty(Sr.prototype, "token", {get: function() {
|
704 | if (this._token)
|
705 | return this._token;
|
706 | for (var t = this._options, e = t.pos - 1, r = t.tokens && t.tokens[e]; r && (r._loc == -1 || r._loc == 0 || r._len == 0); )
|
707 | r = t.tokens[--e];
|
708 | return this._token = r;
|
709 | }, configurable: true});
|
710 | Sr.prototype.desc = function() {
|
711 | var t = this._options;
|
712 | let e = this.message;
|
713 | return t.token && t.token._loc == -1 ? "Syntax Error" : e;
|
714 | };
|
715 | Sr.prototype.loc = function() {
|
716 | var t;
|
717 | return this._loc || (t = this.start()) && t.region && t.region();
|
718 | };
|
719 | Sr.prototype.toJSON = function() {
|
720 | var t = this._options, e = this.start();
|
721 | return {warn: true, message: this.desc(), loc: this.loc()};
|
722 | };
|
723 | Sr.prototype.toNativeError = function() {
|
724 | let t = new SyntaxError("hello");
|
725 | return t.fileName = this._sourcePath, t.message = this.message, t.stack = this.excerpt({colors: false, details: true}), t.lineNumber = this.lineNumber, t.columnNumber = this.columnNumber, t;
|
726 | };
|
727 | Sr.prototype.excerpt = function(t) {
|
728 | (!t || t.constructor !== Object) && (t = {});
|
729 | var e = t.gutter !== void 0 ? t.gutter : true, r = t.colors !== void 0 ? t.colors : false, i = t.details !== void 0 ? t.details : true;
|
730 | try {
|
731 | var s = this._code, n = this.loc(), o = s.split(/\n/g), a = Rl.locationToLineColMap(s), l = a[n[0]] || [0, 0], p = l[0], c = l[1], _ = o[p];
|
732 | this.lineNumber = p + 1, this.columnNumber = c;
|
733 | var f = Math.max(0, p - 2), m = Math.min(f + 5, o.length);
|
734 | let v = p - f;
|
735 | var g = f, b = function(d) {
|
736 | return d;
|
737 | };
|
738 | if (r) {
|
739 | let d = this.severity == "warn" ? "yellow" : "red";
|
740 | (typeof r == "string" || r instanceof String) && (d = r), b = function(w) {
|
741 | return Rl.ansi[d](Rl.ansi.bold(w));
|
742 | };
|
743 | }
|
744 | for (var N = []; g < m; )
|
745 | N.push(_ = o[g++]);
|
746 | var y = N;
|
747 | return e && (y = y.map(function(d, w) {
|
748 | let k = "" + (f + w + 1);
|
749 | for (; k.length < String(m).length; )
|
750 | k = " " + k;
|
751 | return w == v ? " -> " + k + " | " + d : " " + k + " | " + d;
|
752 | })), y[v] = b(y[v]), i && y.unshift(b(this.message)), y.join(`
|
753 | `) + `
|
754 | `;
|
755 | } catch (v) {
|
756 | return "";
|
757 | }
|
758 | };
|
759 | Sr.prototype.prettyMessage = function() {
|
760 | var t;
|
761 | return t = this.excerpt();
|
762 | };
|
763 | function ha() {
|
764 | return Sr.apply(this, arguments);
|
765 | }
|
766 | tp(ha, Sr);
|
767 | Il.ImbaTraverseError = ha;
|
768 | ha.prototype.loc = function() {
|
769 | return this._loc;
|
770 | };
|
771 | ha.prototype.excerpt = function() {
|
772 | var t = ha.prototype.__super__.excerpt.apply(this, arguments);
|
773 | return t + `
|
774 | ---
|
775 | ` + this.error.stack;
|
776 | };
|
777 | });
|
778 | var pp = er((L1) => {
|
779 | function Ff(t) {
|
780 | return t && (t.len instanceof Function ? t.len() : t.length) || 0;
|
781 | }
|
782 | function gr(t, e) {
|
783 | return e && e.indexOf ? e.indexOf(t) : [].indexOf.call(t, e);
|
784 | }
|
785 | function bn(t) {
|
786 | return t ? t.toArray ? t.toArray() : t : [];
|
787 | }
|
788 | function Pf(t, e) {
|
789 | for (var r in e)
|
790 | e.hasOwnProperty(r) && (t[r] = e[r]);
|
791 | t.prototype = Object.create(e.prototype), t.__super__ = t.prototype.__super__ = e.prototype, t.prototype.initialize = t.prototype.constructor = t;
|
792 | }
|
793 | var _o = ta(), kn = _o.Token, Nl = v1().INVERSES, g4 = O1().Compilation, v4 = C1(), Mf = lo(), Vf = ["true", "false", "null", "this", "delete", "typeof", "in", "instanceof", "throw", "break", "continue", "debugger", "if", "else", "switch", "for", "while", "do", "try", "catch", "finally", "class", "extends", "super", "return"], rp = {",": 1, "\n": 1, ")": 1, "]": 1, "}": 1, ">": 1, " ": 1}, jf = ["extend", "local", "global", "prop", "lazy"], Gf = L1.ALL_KEYWORDS = ["true", "false", "null", "this", "delete", "typeof", "in", "instanceof", "throw", "break", "continue", "debugger", "if", "else", "switch", "for", "while", "do", "try", "catch", "finally", "class", "extends", "super", "return", "undefined", "then", "unless", "until", "loop", "of", "by", "when", "def", "tag", "do", "elif", "begin", "var", "let", "const", "await", "import", "and", "or", "is", "isnt", "not", "yes", "no", "isa", "case", "nil", "module", "export", "static", "extend"], Bf = ["case", "default", "function", "void", "with", "const", "enum", "native"], b4 = Vf.concat(Bf), Hf = /^((\$|##|#|@|\%)[\$\wA-Za-z_\-\x7f-\uffff][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*[\?]?|[$A-Za-z_][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*[\?]?)([^\n\S]*:)?/, zf = /^import\s+(\{?[^\"\'\}]+\}?)(?=\s+from\s+)/, Uf = /^(\<)(?=[A-Za-z\#\.\%\$\[\{\@\>\(])/, ip = /^(\w[\w\d]*:)?(\w[\w\d]*)(-[\w\d]+)*/, Yf = /^#((\w[\w\d]*)(-[\w\d]+)*)/, Kf = /^([%\$]{1,2})([\(])/, qf = /^\:((([\*\@$\w\x7f-\uffff]+)+([\-\\\:][\w\x7f-\uffff]+)*)|==|\<=\>)/, Xf = /^\#[0-9a-fA-F]{3,8}/, Wf = /^(\-?\d*\.?\d+)([A-Za-z]+|\%)?(?![\d\w])/, Jf = /^[\w\-\$]*\w[\w\-\$]*/, Zf = /^url\(([^\)]*)\)/, sp = /^([\w\-\$\@\.\!]+)(?=\:([^\:]|$))/, Qf = /^0x[\da-f_]+|^0b[01_]+|^0o[\d_]+|^\-?(?:\d[_\d]*)\.?\d[_\d]*(?:e[+-]?\d+)?|^\-?\d*\.?\d+(?:e[+-]?\d+)?/i, $f = /^("""|''')([\s\S]*?)(?:\n[^\n\S]*)?\1/, t0 = /^(?:[-=]=>|!&|[&|~^]?=\?|[&|~^]=|\?\?=|===|---|->|=>|\/>|!==|\*\*=?|[-+*\/%<>&|^!?=]=|=<|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\?\?|\.{2,3}|\*(?=[a-zA-Z\_]))/, np = /^[^\n\S]+/, e0 = /^###([^#][\s\S]*?)(?:###[^\n\S]*|(?:###)?$)/, r0 = /^\/\*([\s\S]*?)\*\//, op = /^(\s*)((#[ \t\!]|\/\/(?!\/))(.*)|#[ \t]?(?=\n|$))+/, i0 = /^[-=]=>/, s0 = /^(?:\n[^\n\S]*)+/, n0 = /^'[^\\']*(?:\\.[^\\']*)*'/, ap = /^(\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)([a-z]{0,8})(?!\w)/, lp = /^\/{3}([\s\S]+?)\/{3}([a-z]{0,8})(?!\w)/, cp = /\n/g, o0 = /\n+([^\n\S]*)/g, a0 = /\*\//, l0 = /^\s*(?:,|\??\.(?![.\d])|(?:&&|\|\||and|or)[\n\s])/, c0 = /^\$\w+\$/, u0 = /^\$\d$/, h0 = ["-=", "+=", "/=", "*=", "%=", "||=", "&&=", "?=", "??=", "<<=", ">>=", ">>>=", "&=", "^=", "|=", "~=", "=<", "**=", "=?", "~=?", "|=?", "&=?", "^=?"], up = ["!", "~", "NEW", "TYPEOF", "DELETE"], p0 = ["&&", "||", "??", "and", "or"], f0 = ["<<", ">>", ">>>"], _0 = ["===", "!==", "==", "!=", "<", ">", "<=", ">=", "===", "!==", "&", "|", "^", "!&"], d0 = ["*", "/", "%", "\u222A", "\u2229", "\u221A"], m0 = ["IN", "OF", "INSTANCEOF", "ISA"], y0 = ["NUMBER", "REGEX", "BOOL", "TRUE", "FALSE", "++", "--", "]"], g0 = ["NUMBER", "REGEX", "BOOL", "TRUE", "FALSE", "++", "--", "]", ")", "}", "THIS", "SELF", "IDENTIFIER", "STRING"], v0 = ["\\", ".", "UNARY", "MATH", "EXP", "+", "-", "SHIFT", "RELATION", "COMPARE", "THROW", "EXTENDS"], b0 = ["IDENTIFIER", "SYMBOLID", "STRING", "REGEX", ")", "]", "INDEX_END", "THIS", "SUPER", "TAG_END", "IVAR", "SELF", "NEW", "ARGVAR", "SYMBOL", "RETURN", "INDEX_END", "CALL_END"], k0 = ["IDENTIFIER", "SYMBOLID", "STRING", "REGEX", ")", "]", "THIS", "SUPER", "TAG_END", "IVAR", "SELF", "NEW", "ARGVAR", "SYMBOL", "RETURN", "BANG", "NUMBER", "BOOL", "TAG_SELECTOR", "ARGUMENTS", "}", "TAG_TYPE", "TAG_REF", "INDEX_END", "CALL_END"], x0 = ["INDENT", "OUTDENT", "TERMINATOR"];
|
794 | function hp(t, e, r) {
|
795 | return this.message = t, this.file = e, this.line = r, this;
|
796 | }
|
797 | Pf(hp, SyntaxError);
|
798 | L1.LexerError = hp;
|
799 | var $r = function(t, e) {
|
800 | return e === void 0 && (e = 0), t[t.length - e - 1];
|
801 | }, w0 = function(t, e) {
|
802 | return t.split(e).length - 1;
|
803 | }, S0 = function(t, e) {
|
804 | for (var r = ""; e > 0; )
|
805 | e % 2 == 1 && (r += t), t += t, e >>= 1;
|
806 | return r;
|
807 | }, Yi = _o.typ, mo = _o.val, Rs = _o.setTyp, D1 = _o.setVal;
|
808 | function Wt() {
|
809 | this.reset();
|
810 | }
|
811 | L1.Lexer = Wt;
|
812 | Wt.prototype.reset = function() {
|
813 | return this._code = null, this._chunk = null, this._opts = null, this._state = {}, this._indent = 0, this._indebt = 0, this._outdebt = 0, this._indents = [], this._ends = [], this._contexts = [], this._scopes = [], this._nextScope = null, this._context = null, this._indentStyle = " ", this._inTag = false, this._inStyle = 0, this._tokens = [], this._seenFor = false, this._loc = 0, this._locOffset = 0, this._end = null, this._char = null, this._bridge = null, this._last = null, this._lastTyp = "", this._lastVal = null, this._script = null, this;
|
814 | };
|
815 | Wt.prototype.jisonBridge = function(t) {
|
816 | return this._bridge = {lex: _o.lex, setInput: function(e) {
|
817 | return this.tokens = e, this.pos = 0;
|
818 | }, upcomingInput: function() {
|
819 | return "";
|
820 | }};
|
821 | };
|
822 | Wt.prototype.tokenize = function(t, e, r) {
|
823 | var i;
|
824 | if (r === void 0 && (r = null), t.length == 0)
|
825 | return [];
|
826 | if (!e.inline) {
|
827 | if (np.test(t) && (t = `
|
828 | ` + t, t.match(/^\s*$/g)))
|
829 | return [];
|
830 | t = t.replace(/\r/g, "").replace(/[\t ]+$/g, "");
|
831 | }
|
832 | if (this._last = null, this._lastTyp = null, this._lastVal = null, this._script = r, this._code = t, this._opts = e, this._locOffset = e.loc || 0, this._platform = e.platform || e.target, this._indentStyle = " ", (i = t.match(/^([\ \t]*)[^\n\s\t]/)) && (this._state.gutter = i[1]), e.gutter !== void 0 && (this._state.gutter = e.gutter), this._script && !e.inline && (this._script.tokens = this._tokens), this.parse(t), e.inline || this.closeIndentation(), this._ends.length && this.error("missing " + this._ends.pop()), this._platform == "tsc")
|
833 | for (let s = 0, n = bn(this._tokens), o = n.length, a; s < o; s++)
|
834 | a = n[s], a._type == "SYMBOLID" && (a._type = "IDENTIFIER");
|
835 | return this._tokens;
|
836 | };
|
837 | Wt.prototype.parse = function(t) {
|
838 | var e = 0, r = 0;
|
839 | for (this._loc = this._locOffset + e; this._chunk = t.slice(e); ) {
|
840 | let i = this._context;
|
841 | i && i.pop && i.pop.test(this._chunk) && this.popEnd(), r = i && i.lexer && i.lexer.call(this) || this._end == "TAG" && this.tagDefContextToken() || this._inTag && this.tagContextToken() || this._inStyle2 && this.lexStyleBody() || this.basicContext(), e += r, this._loc = this._locOffset + e;
|
842 | }
|
843 | };
|
844 | Wt.prototype.basicContext = function() {
|
845 | return this.selectorToken() || this.symbolToken() || this.identifierToken() || this.whitespaceToken() || this.lineToken() || this.commentToken() || this.heredocToken() || this.tagToken() || this.stringToken() || this.numberToken() || this.regexToken() || this.literalToken() || 0;
|
846 | };
|
847 | Wt.prototype.moveCaret = function(t) {
|
848 | return this._loc += t;
|
849 | };
|
850 | Wt.prototype.context = function() {
|
851 | return this._ends[this._ends.length - 1];
|
852 | };
|
853 | Wt.prototype.inContext = function(t) {
|
854 | var e = this._contexts[this._contexts.length - 1];
|
855 | return e && e[t];
|
856 | };
|
857 | Wt.prototype.pushEnd = function(t, e) {
|
858 | let r = this._context;
|
859 | return this._ends.push(t), this._contexts.push(this._context = e || {}), this._end = t, this.refreshScope(), e && (e.closeType == "STYLE_END" || e.style) && (e.lexer = this.lexStyleBody, e.style = true, this._inStyle++), r && r.style && t != "}" && (e.lexer = this.lexStyleBody, e.style = true), e && e.id && (e.start = new kn(e.id + "_START", t, this._last.region()[1], 0), this._tokens.push(e.start)), this;
|
860 | };
|
861 | Wt.prototype.popEnd = function(t) {
|
862 | var e = this._ends.pop();
|
863 | this._end = this._ends[this._ends.length - 1];
|
864 | var r = this._context;
|
865 | return r && r.start && (r.end = new kn(r.closeType || r.id + "_END", e, this._last.region()[1], 0), r.end._start = r.start, r.start._end = r.end, this._tokens.push(r.end)), r && (r.closeType == "STYLE_END" || r.style) && this._inStyle--, this._contexts.pop(), this._context = this._contexts[this._contexts.length - 1], this.refreshScope(), [e, r];
|
866 | };
|
867 | Wt.prototype.refreshScope = function() {
|
868 | var t = this._ends[this._ends.length - 1], e = this._ends[this._ends.length - 2];
|
869 | return this._inTag = t == "TAG_END" || e == "TAG_END" && t == "OUTDENT";
|
870 | };
|
871 | Wt.prototype.queueScope = function(t) {
|
872 | return this._scopes[this._indents.length] = t, this;
|
873 | };
|
874 | Wt.prototype.popScope = function(t) {
|
875 | return this._scopes.pop(), this;
|
876 | };
|
877 | Wt.prototype.getScope = function() {
|
878 | return this._scopes[this._indents.length - 1];
|
879 | };
|
880 | Wt.prototype.scope = function(t, e) {
|
881 | var r = this._ends.push(this._end = t);
|
882 | return this._contexts.push(e || null), t;
|
883 | };
|
884 | Wt.prototype.closeSelector = function() {
|
885 | if (this._end == "%")
|
886 | return this.token("SELECTOR_END", "%", 0), this.pair("%");
|
887 | };
|
888 | Wt.prototype.openDef = function() {
|
889 | return this.pushEnd("DEF");
|
890 | };
|
891 | Wt.prototype.closeDef = function() {
|
892 | if (this.context() == "DEF") {
|
893 | var t = $r(this._tokens);
|
894 | if (Yi(t) == "TERMINATOR") {
|
895 | let e = this._tokens.pop();
|
896 | this.token("DEF_BODY", "DEF_BODY", 0), this._tokens.push(e);
|
897 | } else
|
898 | this.token("DEF_BODY", "DEF_BODY", 0);
|
899 | this.pair("DEF");
|
900 | }
|
901 | };
|
902 | Wt.prototype.tagContextToken = function() {
|
903 | let t = this._chunk[0], e = this._chunk[1], r = /^([A-Za-z\_\-\$\%\#][\w\-\$]*(\:[A-Za-z\_\-\$]+)*)/.exec(this._chunk);
|
904 | if (r) {
|
905 | let i = r[1], s = "TAG_LITERAL", n = r[0].length;
|
906 | return i == "self" && this._lastVal == "<" && (s = "SELF"), t == "$" && (this._lastTyp == "TAG_TYPE" || this._lastTyp == "TAG_START") && (s = "TAG_REF"), t == "%" && (s = "MIXIN"), t == "#" && (s = "TAG_SYMBOL_ID", i.length == 1) ? 0 : (this.token(s, i, n), n);
|
907 | }
|
908 | if (t == "/" && e == ">")
|
909 | return this.token("TAG_END", "/>", 2), this.pair("TAG_END"), 2;
|
910 | if (t == "%" || t == ":" || t == "." || t == "@")
|
911 | return this.token("T" + t, t, 1), t == "." && (!e || rp[e]) && this._platform == "tsc" && this.token("TAG_LITERAL", "$CARET$", 0, 1), 1;
|
912 | if (t == " " || t == `
|
913 | ` || t == " ") {
|
914 | let i = /^[\n\s\t]+/.exec(this._chunk);
|
915 | return this.token("TAG_WS", i[0], i[0].length), i[0].length;
|
916 | } else if (t == "=" && this._chunk[1] != ">")
|
917 | return this.token("=", "=", 1), this.pushEnd("TAG_ATTR", {id: "VALUE", pop: /^([\s\n\>]|\/\>)/}), 1;
|
918 | return 0;
|
919 | };
|
920 | Wt.prototype.tagDefContextToken = function() {
|
921 | var t;
|
922 | if (t = ip.exec(this._chunk))
|
923 | return this.token("TAG_TYPE", t[0], t[0].length), t[0].length;
|
924 | if (t = Yf.exec(this._chunk)) {
|
925 | var e = t[0];
|
926 | return this.token("TAG_ID", e, e.length), e.length;
|
927 | }
|
928 | return this._chunk[0] == `
|
929 | ` && this.pair("TAG"), 0;
|
930 | };
|
931 | Wt.prototype.findTypeAnnotation = function(t) {
|
932 | for (var e = [], r = 0, i = [], s = /[\=\n\ \t\.\,\:\+]/; r < t.length; ) {
|
933 | var n = t.charAt(r);
|
934 | let o = e[0], a = o == '"' || o == "'";
|
935 | if (n && n == o)
|
936 | e.shift();
|
937 | else {
|
938 | if (!o && (n == ")" || n == "]" || n == "}" || n == ">"))
|
939 | break;
|
940 | if (n == "(")
|
941 | e.unshift(")");
|
942 | else if (n == "[")
|
943 | e.unshift("]");
|
944 | else if (n == "{")
|
945 | e.unshift("}");
|
946 | else if (n == "<")
|
947 | e.unshift(">");
|
948 | else if (n == '"')
|
949 | e.unshift('"');
|
950 | else if (n == "'")
|
951 | e.unshift("'");
|
952 | else if (!o && s.test(n))
|
953 | break;
|
954 | }
|
955 | r++;
|
956 | }
|
957 | return r == 0 ? null : t.slice(0, r);
|
958 | };
|
959 | Wt.prototype.findBalancedSelector = function(t) {
|
960 | for (var e = [], r = 0, i = []; r < t.length - 1; ) {
|
961 | var s = t.charAt(r);
|
962 | let o = e[0], a = o == '"' || o == "'";
|
963 | if (s && s == o)
|
964 | e.shift();
|
965 | else if (!a && (s == ")" || s == "]" || s == "}")) {
|
966 | console.log("out of balance!!");
|
967 | break;
|
968 | } else
|
969 | s == "/" ? i.unshift([r, 1, ":"]) : s == "(" && !a ? e.unshift(")") : s == "[" && !a ? e.unshift("]") : s == '"' ? e.unshift('"') : s == "'" && e.unshift("'");
|
970 | if (!o && (s == "=" || s == `
|
971 | ` || s == "{"))
|
972 | break;
|
973 | if (!o && s == " ") {
|
974 | let l = t.slice(r + 1);
|
975 | if (sp.exec(l) || op.exec(l))
|
976 | break;
|
977 | }
|
978 | r++;
|
979 | }
|
980 | if (r == 0)
|
981 | return null;
|
982 | let n = t.slice(0, r);
|
983 | if (i.length) {
|
984 | n = n.split("");
|
985 | for (let o = 0, a = i.length; o < a; o++)
|
986 | n.splice.apply(n, i[o]);
|
987 | n = n.join("");
|
988 | }
|
989 | return n;
|
990 | };
|
991 | Wt.prototype.lexStyleRule = function(t, e) {
|
992 | t === void 0 && (t = 0), e === void 0 && (e = false);
|
993 | let r = t ? this._chunk.slice(t) : this._chunk, i = this.findBalancedSelector(r);
|
994 | if (i || e) {
|
995 | let s = i ? i.length : 0;
|
996 | this.token("CSS_SEL", i || "", s, t);
|
997 | let n = this._last;
|
998 | return r[s] == "=" && s++, this._indents.push(1), this._outdebt = this._indebt = 0, this.token("INDENT", "1", 0, 1), this.pushEnd("OUTDENT", {lexer: this.lexStyleBody, opener: n, style: true}), this._indent++, s;
|
999 | }
|
1000 | return 0;
|
1001 | };
|
1002 | Wt.prototype.lexStyleBody = function() {
|
1003 | if (this._end == "%")
|
1004 | return 0;
|
1005 | let t = this._chunk[0];
|
1006 | var e;
|
1007 | let r = sp.exec(this._chunk), i = this._lastTyp;
|
1008 | if (!r && this._chunk.match(/^([\%\*\w\&\$\>\/\.\[\@\!]|\#[\w\-]|\:\:)/) && (i == "TERMINATOR" || i == "INDENT") && this.findBalancedSelector(this._chunk))
|
1009 | return this.lexStyleRule(0);
|
1010 | if (r)
|
1011 | return this.token("CSSPROP", r[0], r[0].length), r[0].length;
|
1012 | if (t[0] == "#" && (e = Xf.exec(this._chunk)))
|
1013 | return this.token("COLOR", e[0], e[0].length), e[0].length;
|
1014 | if (t == "/" && !this._last.spaced)
|
1015 | return this.token("/", t, 1), 1;
|
1016 | if (e = Wf.exec(this._chunk)) {
|
1017 | let s = e[0].length, n = "NUMBER";
|
1018 | return e[2] == "%" ? n = "PERCENTAGE" : e[2] && (n = "DIMENSION"), this._lastTyp == "COMPARE" && !this._last.spaced, this.token(n, e[0], s), s;
|
1019 | } else if (e = Zf.exec(this._chunk)) {
|
1020 | let s = e[0].length;
|
1021 | return this.token("CSSURL", e[0], s), e[0].length;
|
1022 | } else if (e = Jf.exec(this._chunk)) {
|
1023 | let s = "CSSIDENTIFIER", n = e[0], o = n.length;
|
1024 | return e[0].match(/^\-\-/) ? s = "CSSVAR" : this._last && !this._last.spaced && (i == "}" || i == ")") && (s = "CSSUNIT"), this._chunk[o] == "(" && (s = "CSSFUNCTION"), this.token(s, n, o), o;
|
1025 | } else if (this._last && !this._last.spaced && (i == "}" || i == ")") && t == "%")
|
1026 | return this.token("CSSUNIT", t, 1), 1;
|
1027 | return 0;
|
1028 | };
|
1029 | Wt.prototype.importsToken = function() {
|
1030 | var t;
|
1031 | return (t = zf.exec(this._chunk)) ? (this.token("IMPORTS", t[1], t[1].length, 7), t[0].length) : 0;
|
1032 | };
|
1033 | Wt.prototype.tagToken = function() {
|
1034 | var t, e;
|
1035 | if (!(t = Uf.exec(this._chunk)))
|
1036 | return 0;
|
1037 | var e = bn(t), r = e[0], i = e[1], s = e[2];
|
1038 | if (i == "<") {
|
1039 | if (this.token("TAG_START", "<", 1), this.pushEnd(Nl.TAG_START), t = ip.exec(this._chunk.substr(1, 40))) {
|
1040 | let n = this._chunk[t[0].length + 1];
|
1041 | if (t[0] != "self" && n != "{" && n != "-")
|
1042 | return this.token("TAG_TYPE", t[0], t[0].length, 1), r.length + t[0].length;
|
1043 | } else
|
1044 | this._chunk[1] == ">" && this.token("TAG_TYPE", "fragment", 0, 0);
|
1045 | if (s) {
|
1046 | if (s.substr(0, 1) == "{")
|
1047 | return i.length;
|
1048 | this.token("TAG_NAME", r.substr(1), 0);
|
1049 | }
|
1050 | }
|
1051 | return r.length;
|
1052 | };
|
1053 | Wt.prototype.selectorToken = function() {
|
1054 | var t, e;
|
1055 | if (this._end == "%") {
|
1056 | for (var r = this._chunk[0], i = this._context, s = 0, n = "", o = false; r = this._chunk[s++]; )
|
1057 | if (r == ")" && i.parens == 0) {
|
1058 | o = true;
|
1059 | break;
|
1060 | } else if (r == "(")
|
1061 | i.parens++, n += "(";
|
1062 | else if (r == ")")
|
1063 | i.parens--, n += ")";
|
1064 | else {
|
1065 | if (r == "{")
|
1066 | break;
|
1067 | n += r;
|
1068 | }
|
1069 | return n && this.token("SELECTOR_PART", n, s - 1), o ? (this.token("SELECTOR_END", ")", 1, s - 1), this.pair("%"), s) : s - 1;
|
1070 | }
|
1071 | if (!(e = Kf.exec(this._chunk)))
|
1072 | return 0;
|
1073 | var t = bn(e), a = t[0], l = t[1], p = t[2];
|
1074 | return p == "(" ? (this.token("SELECTOR_START", l, l.length + 1), this.pushEnd("%", {parens: 0}), l.length + 1) : l == "%" ? this.context() == "%" ? 1 : (this.token("SELECTOR_START", l, l.length), this.pushEnd("%", {open: true}), l.length) : 0;
|
1075 | };
|
1076 | Wt.prototype.inTag = function() {
|
1077 | var t = this._ends.length;
|
1078 | if (t > 0) {
|
1079 | var e = this._ends[t - 1], r = t > 1 ? this._ends[t - 2] : e;
|
1080 | return e == "TAG_END" || r == "TAG_END" && e == "OUTDENT";
|
1081 | }
|
1082 | return false;
|
1083 | };
|
1084 | Wt.prototype.isKeyword = function(t) {
|
1085 | var e;
|
1086 | if (this._lastTyp == "ATTR" || this._lastTyp == "PROP" || this._lastTyp == "DEF" || t == "when" && this._lastTyp == "CONST")
|
1087 | return false;
|
1088 | if ((t == "get" || t == "set") && (e = this._chunk.match(/^[gs]et ([\$\w\-]+|\[)/))) {
|
1089 | let s = this._contexts[this._contexts.length - 1] || {}, n = s.opener && this._tokens[this._tokens.indexOf(s.opener) - 1];
|
1090 | if (gr(this._lastTyp, ["TERMINATOR", "INDENT"]) >= 0 && n && (n._type == "=" || n._type == "{"))
|
1091 | return true;
|
1092 | }
|
1093 | if ((t == "guard" || t == "alter" || t == "watch") && this.getScope() == "PROP" || t == "css")
|
1094 | return true;
|
1095 | if (t == "attr" || t == "prop" || t == "get" || t == "set" || t == "lazy" || t == "css" || t == "constructor" || t == "declare") {
|
1096 | var r = this.getScope(), i = r == "CLASS" || r == "TAG" || r == "EXTEND";
|
1097 | if (t == "lazy" || t == "declare")
|
1098 | return i && gr(this._lastTyp, ["INDENT", "TERMINATOR", "DECORATOR"]) >= 0;
|
1099 | if (t == "constructor")
|
1100 | return i && gr(this._lastTyp, ["INDENT", "TERMINATOR", "DECORATOR"]) >= 0;
|
1101 | if (i)
|
1102 | return true;
|
1103 | }
|
1104 | return Gf.indexOf(t) >= 0;
|
1105 | };
|
1106 | Wt.prototype.identifierToken = function() {
|
1107 | var t, e, r = this._ends.length > 0 ? this._ends[this._ends.length - 1] : null, i = this._ends.length > 1 ? this._ends[this._ends.length - 2] : null, s = r, n, o = false, a = false, l = r == "TAG_END" || i == "TAG_END" && r == "OUTDENT";
|
1108 | if (!(e = Hf.exec(this._chunk)))
|
1109 | return 0;
|
1110 | var t = bn(e), p = t[0], c = t[1], n = t[2], _ = t[3], f = t[4], m = t[5], g = c.length;
|
1111 | if (c === "own" && this.lastTokenType() == "FOR")
|
1112 | return this.token("OWN", c, c.length), c.length;
|
1113 | var b = $r(this._tokens), N = this._lastTyp;
|
1114 | if (N == "#")
|
1115 | return this.token("IDENTIFIER", c, g), g;
|
1116 | var y = m || N == "." || N == "?.";
|
1117 | m && N == "?" && (y = false), c == "tag" && this._chunk.indexOf("tag(") == 0 && (y = true), c == "css" && /css\s\:\:/.exec(this._chunk) && (p = c + " ", m = null, y = false);
|
1118 | var v = false;
|
1119 | if (n == "$" && u0.test(c))
|
1120 | n = "ARGVAR", c = c.substr(1);
|
1121 | else if (n == "$" && c0.test(c))
|
1122 | n = "ENV_FLAG", c = c.toUpperCase();
|
1123 | else if (n == "@")
|
1124 | N == "." ? n = "IDENTIFIER" : n = "DECORATOR";
|
1125 | else if (n == "#")
|
1126 | n = "SYMBOLID";
|
1127 | else if (n == "##")
|
1128 | n = "SYMBOLID";
|
1129 | else if (n == "%")
|
1130 | n = "MIXIN";
|
1131 | else if (n == "$" && !m)
|
1132 | n = "IDENTIFIER";
|
1133 | else {
|
1134 | if (c == "elif" && !y)
|
1135 | return this.token("ELSE", "elif", c.length), this.token("IF", "if"), c.length;
|
1136 | n = "IDENTIFIER";
|
1137 | }
|
1138 | if (!y && (v = this.isKeyword(c)))
|
1139 | if (typeof v == "string" ? n = v : n = c.toUpperCase(), a = true, n == "MODULE" && (!/^module [a-zA-Z]/.test(this._chunk) || r == "TAG_ATTR") && (n = "IDENTIFIER"), n == "YES")
|
1140 | n = "TRUE";
|
1141 | else if (n == "NO")
|
1142 | n = "FALSE";
|
1143 | else if (n == "NIL")
|
1144 | n = "NULL";
|
1145 | else if (n == "VAR" || n == "CONST" || n == "LET") {
|
1146 | let S = this._lastTyp;
|
1147 | } else
|
1148 | n == "IF" || n == "ELSE" || n == "TRUE" || n == "FALSE" || n == "NULL" || (n == "TAG" ? this.pushEnd("TAG") : n == "DEF" || n == "GET" || n == "SET" ? (n = "DEF", this.openDef()) : n == "CONSTRUCTOR" ? (this.token("DEF", "", 0), n = "IDENTIFIER", this.openDef()) : n == "DO" ? this.context() == "DEF" && this.closeDef() : n === "WHEN" && x0.indexOf(this.lastTokenType()) >= 0 ? n = "LEADING_WHEN" : n === "FOR" ? this._seenFor = true : n === "UNLESS" ? n = "IF" : up.indexOf(n) >= 0 ? n = "UNARY" : m0.indexOf(n) >= 0 && (n != "INSTANCEOF" && n != "ISA" && this._seenFor ? (n = "FOR" + n, this._seenFor = false) : (n = "RELATION", b._type == "UNARY" && (b._type = "NOT"))));
|
1149 | if (!y)
|
1150 | switch (this._lastVal == "export" && c == "default" && (Rs(b, "EXPORT"), n = "DEFAULT"), c) {
|
1151 | case "!":
|
1152 | case "not": {
|
1153 | n = "UNARY";
|
1154 | break;
|
1155 | }
|
1156 | case "==":
|
1157 | case "!=":
|
1158 | case "===":
|
1159 | case "!==":
|
1160 | case "is":
|
1161 | case "isnt": {
|
1162 | n = "COMPARE";
|
1163 | break;
|
1164 | }
|
1165 | case "&&":
|
1166 | case "||":
|
1167 | case "and":
|
1168 | case "or":
|
1169 | case "??": {
|
1170 | n = "LOGIC";
|
1171 | break;
|
1172 | }
|
1173 | case "super":
|
1174 | case "break":
|
1175 | case "continue":
|
1176 | case "debugger":
|
1177 | case "arguments": {
|
1178 | n = c.toUpperCase();
|
1179 | break;
|
1180 | }
|
1181 | }
|
1182 | var d = p.length;
|
1183 | if (n == "CLASS" || n == "DEF" || n == "TAG" || n == "PROP" || n == "CSS") {
|
1184 | this.queueScope(n);
|
1185 | for (var w = this._tokens.length; w; ) {
|
1186 | b = this._tokens[--w];
|
1187 | var k = "" + mo(b);
|
1188 | if (gr(k, jf) >= 0)
|
1189 | Rs(b, k.toUpperCase());
|
1190 | else
|
1191 | break;
|
1192 | }
|
1193 | } else if (n == "IF")
|
1194 | this.queueScope(n);
|
1195 | else if (n == "EXTEND" && !this._chunk.match(/^extend (class|tag)(\s|\n|$)/))
|
1196 | this.queueScope(n);
|
1197 | else if (n == "IMPORT") {
|
1198 | let S = this._chunk[g];
|
1199 | if (N == "AWAIT" || S == "(" || S == ".")
|
1200 | n = "IDENTIFIER";
|
1201 | else
|
1202 | return this.pushEnd("IMPORT"), this.token(n, c, g), d;
|
1203 | } else {
|
1204 | if (c == "type" && N == "IMPORT")
|
1205 | return this.token("TYPEIMPORT", c, g), d;
|
1206 | if (n == "EXPORT")
|
1207 | return this.pushEnd("EXPORT"), this.token(n, c, g), d;
|
1208 | c == "from" && r == "IMPORT" ? (n = "FROM", this.pair("IMPORT")) : c == "from" && r == "EXPORT" ? (n = "FROM", this.pair("EXPORT")) : c == "as" && (r == "IMPORT" || this._lastTyp == "IDENTIFIER" || r == "EXPORT") && (n = "AS");
|
1209 | }
|
1210 | if (c == "new" && this._lastTyp != "." && this._chunk.match(/^new\s+[\w\$\(\<\#]/) && (n = "NEW"), n == "IDENTIFIER" && N == "CATCH" && (n = "CATCH_VAR"), (N == "NUMBER" || N == ")") && !b.spaced && (n == "IDENTIFIER" || c == "%") && (n = "UNIT"), m) {
|
1211 | this.token(n, c, g);
|
1212 | var T = m.indexOf(":");
|
1213 | this.moveCaret(g + T), this.token(":", ":", 1), this.moveCaret(-(g + T));
|
1214 | } else
|
1215 | this.token(n, c, g);
|
1216 | return n == "CSS" ? d + this.lexStyleRule(d, true) : d;
|
1217 | };
|
1218 | Wt.prototype.numberToken = function() {
|
1219 | var t, e, r, i;
|
1220 | if (!(e = Qf.exec(this._chunk)))
|
1221 | return 0;
|
1222 | r = e[0], i = r.length, (t = /0b([01_]+)/.exec(r)) && (r = "" + parseInt(t[1].replace(/_/g, ""), 2));
|
1223 | var s = $r(this._tokens);
|
1224 | return e[0][0] == "." && s && !s.spaced && ["IDENTIFIER", ")", "}", "]", "NUMBER"].indexOf(Yi(s)) >= 0 && (this.token(".", "."), r = r.substr(1)), this.token("NUMBER", r, i), i;
|
1225 | };
|
1226 | Wt.prototype.symbolToken = function() {
|
1227 | var t, e, r;
|
1228 | if (!(t = qf.exec(this._chunk)))
|
1229 | return 0;
|
1230 | if (e = t[0], r = $r(this._tokens), !r || r.spaced || gr(this._prevVal, ["(", "[", "="]) >= 0) {
|
1231 | let i = Mf.dashToCamelCase(e.slice(1));
|
1232 | return this.token("STRING", '"' + i + '"', t[0].length), t[0].length;
|
1233 | }
|
1234 | return 0;
|
1235 | };
|
1236 | Wt.prototype.escapeStr = function(t, e, r) {
|
1237 | if (t = t.replace(cp, e ? "\\n" : ""), r) {
|
1238 | var i = RegExp("\\\\[" + r + "]", "g");
|
1239 | t = t.replace(i, r), t = t.replace(RegExp("" + r, "g"), "\\$&");
|
1240 | }
|
1241 | return t;
|
1242 | };
|
1243 | Wt.prototype.stringToken = function() {
|
1244 | var t, e;
|
1245 | switch (this._chunk.charAt(0)) {
|
1246 | case "'": {
|
1247 | if (!(t = n0.exec(this._chunk)))
|
1248 | return 0;
|
1249 | e = t[0], this.token("STRING", this.escapeStr(e), e.length);
|
1250 | break;
|
1251 | }
|
1252 | case '"': {
|
1253 | if (!(e = this.balancedString(this._chunk, '"')))
|
1254 | return 0;
|
1255 | if (e.indexOf("{") >= 0) {
|
1256 | var r = e.length;
|
1257 | this.token("STRING_START", e.charAt(0), 1), this.interpolateString(e.slice(1, -1)), this.token("STRING_END", e.charAt(r - 1), 1, e.length - 1);
|
1258 | } else
|
1259 | r = e.length, this.token("STRING", this.escapeStr(e), r);
|
1260 | break;
|
1261 | }
|
1262 | case "`": {
|
1263 | if (!(e = this.balancedString(this._chunk, "`")))
|
1264 | return 0;
|
1265 | e.indexOf("{") >= 0 ? (r = e.length, this.token("STRING_START", e.charAt(0), 1), this.interpolateString(e.slice(1, -1), {heredoc: true}), this.token("STRING_END", e.charAt(r - 1), 1, e.length - 1)) : (r = e.length, this.token("STRING", this.escapeStr(e, true), r));
|
1266 | break;
|
1267 | }
|
1268 | default:
|
1269 | return 0;
|
1270 | }
|
1271 | return this.moveHead(e), e.length;
|
1272 | };
|
1273 | Wt.prototype.heredocToken = function() {
|
1274 | var t, e, r, i;
|
1275 | if (!(t = $f.exec(this._chunk)))
|
1276 | return 0;
|
1277 | e = t[0], r = e.charAt(0);
|
1278 | var s = {quote: r, indent: null, offset: 0};
|
1279 | if (i = this.sanitizeHeredoc(t[2], s), r == '"' && i.indexOf("{") >= 0) {
|
1280 | var n = t[1];
|
1281 | this.token("STRING_START", n, n.length), this.interpolateString(i, {heredoc: true, offset: n.length + s.offset, quote: r, indent: s.realIndent}), this.token("STRING_END", n, n.length, e.length - n.length);
|
1282 | } else
|
1283 | this.token("STRING", this.makeString(i, r, true), 0);
|
1284 | return this.moveHead(e), e.length;
|
1285 | };
|
1286 | Wt.prototype.parseMagicalOptions = function(t) {
|
1287 | var e = this;
|
1288 | return t.indexOf("imba$") >= 0 && t.replace(/imba\$(\w+)\=(\S*)\b/g, function(r, i, s) {
|
1289 | return /^\d+$/.test(s) && (s = parseInt(s)), e._opts[i] = s;
|
1290 | }), e;
|
1291 | };
|
1292 | Wt.prototype.commentToken = function() {
|
1293 | var t, e, r, i, s, n = "HERECOMMENT";
|
1294 | if (t = r0.exec(this._chunk))
|
1295 | return this.token("HERECOMMENT", t[1], t[1].length), this.token("TERMINATOR", `
|
1296 | `), t[0].length;
|
1297 | if (t = op.exec(this._chunk)) {
|
1298 | e = t[0].length, i = t[1], r = t[2];
|
1299 | let p = t[4] || "";
|
1300 | r[0] == "#" && (p = " " + p), s = $r(this._tokens);
|
1301 | var o = s && Yi(s), a = "//" + p;
|
1302 | return this.parseMagicalOptions(a), this._last && this._last.spaced && (a = " " + a), a.match(/^\/\/ \@(type|param)/) ? a = "/**" + p + "*/" : a.match(/^\/\/ \<(reference)/) && (a = "///" + p), o && o != "INDENT" && o != "TERMINATOR" || !o ? this.token("TERMINATOR", a, e) : o == "TERMINATOR" ? D1(s, mo(s) + a) : o == "INDENT" ? this.addLinebreaks(1, a) : this.token(n, r.substr(2), e), e;
|
1303 | }
|
1304 | if (!(t = e0.exec(this._chunk)))
|
1305 | return 0;
|
1306 | r = t[0];
|
1307 | var l = t[1];
|
1308 | return l ? (this.token("HERECOMMENT", this.sanitizeHeredoc(l, {herecomment: true, indent: Array(this._indent + 1).join(" ")}), r.length), this.token("TERMINATOR", `
|
1309 | `)) : (this.token("HERECOMMENT", r, r.length), this.token("TERMINATOR", `
|
1310 | `)), this.moveHead(r), r.length;
|
1311 | };
|
1312 | Wt.prototype.regexToken = function() {
|
1313 | var t, e, r, i;
|
1314 | if (this._chunk.charAt(0) != "/")
|
1315 | return 0;
|
1316 | if (e = lp.exec(this._chunk))
|
1317 | return r = this.heregexToken(e), this.moveHead(e[0]), r;
|
1318 | if (i = $r(this._tokens), i && gr(Yi(i), i.spaced ? y0 : g0) >= 0 || !(e = ap.exec(this._chunk)))
|
1319 | return 0;
|
1320 | var t = bn(e), s = t[0], n = t[1], o = t[2];
|
1321 | return this.token("REGEX", "" + n + o, s.length), s.length;
|
1322 | };
|
1323 | Wt.prototype.heregexToken = function(t) {
|
1324 | var e, e = bn(t), r = e[0], i = e[1], s = e[2];
|
1325 | return this.token("REGEX", r, r.length), r.length;
|
1326 | };
|
1327 | Wt.prototype.lineToken = function() {
|
1328 | var t, e;
|
1329 | if (!(e = s0.exec(this._chunk)))
|
1330 | return 0;
|
1331 | var r = e[0], i = this.moveHead(r);
|
1332 | this._seenFor = false;
|
1333 | var s = $r(this._tokens, 1);
|
1334 | let n = r.substr(r.lastIndexOf(`
|
1335 | `) + 1);
|
1336 | var o = this.unfinished();
|
1337 | if (/^\n#\s/.test(this._chunk))
|
1338 | return this.addLinebreaks(1), 0;
|
1339 | this._state.gutter == null && (this._state.gutter = n), (t = this._state.gutter || this._opts.gutter) && (n.indexOf(t) == 0 ? n = n.slice(t.length) : this._chunk[r.length] === void 0 || this.error("incorrect indentation"));
|
1340 | var a = n.length;
|
1341 | if (this._opts.dropIndentation)
|
1342 | return a;
|
1343 | if (a > 0) {
|
1344 | this._indentStyle || (this._opts.indent = this._indentStyle = n, this._indentRegex = new RegExp(n, "g"));
|
1345 | let _ = 0, f = 0, m = this._loc;
|
1346 | for (; ; )
|
1347 | if (n.indexOf(this._indentStyle, f) == f)
|
1348 | _++, f += this._indentStyle.length;
|
1349 | else {
|
1350 | if (f == n.length)
|
1351 | break;
|
1352 | {
|
1353 | this._loc += r.length - n.length;
|
1354 | let b = this._loc;
|
1355 | this.token("INDENT", n, n.length), this.error("Use tabs for indentation", {offset: b + f, length: n.length - f});
|
1356 | }
|
1357 | }
|
1358 | a = _;
|
1359 | }
|
1360 | if (a - this._indebt == this._indent)
|
1361 | return o ? this.suppressNewlines() : this.newlineToken(i, r), r.length;
|
1362 | if (a > this._indent) {
|
1363 | if (o)
|
1364 | return this._indebt = a - this._indent, this.suppressNewlines(), r.length;
|
1365 | if (this.inTag())
|
1366 | return r.length;
|
1367 | var l = a - this._indent + this._outdebt;
|
1368 | this.closeDef();
|
1369 | var p = this._scopes[this._indents.length], c = $r(this._tokens);
|
1370 | c && Yi(c) == "TERMINATOR" ? (Rs(c, "INDENT"), c._meta || (c._meta = {pre: mo(c), post: ""}), c.scope = p) : (this.token("INDENT", "" + l, 0), this._last.scope = p), this._indents.push(l), this.pushEnd("OUTDENT", {opener: this._last}), this._outdebt = this._indebt = 0, this.addLinebreaks(i);
|
1371 | } else {
|
1372 | this._indebt = 0;
|
1373 | let _ = this._indent - a, f = this._indent, m = this._indentStyle == " ", g = r.replace().split(`
|
1374 | `), b = [], N = g.length, y = 0;
|
1375 | for (; N > 0; ) {
|
1376 | let k = g[--N], T = m ? k.length : k.replace(this._indentRegex, " ").length;
|
1377 | T > y && (y = T), b[N] = y;
|
1378 | }
|
1379 | b[0] = f;
|
1380 | let v = 0, d = [], w = "";
|
1381 | for (let k = 0, T = bn(g), S = T.length; k < S; k++) {
|
1382 | let C = b[k];
|
1383 | for (; f > C; )
|
1384 | w ? (this.terminatorToken(w), w = "") : this.terminatorToken(""), _--, this.outdentToken(1, true), f--;
|
1385 | w += `
|
1386 | ` + T[k];
|
1387 | }
|
1388 | for (w && this.terminatorToken(w); _ > 0; )
|
1389 | this.outdentToken(1, true), _--;
|
1390 | }
|
1391 | return this._indent = a, r.length;
|
1392 | };
|
1393 | Wt.prototype.outdentToken = function(t, e, r) {
|
1394 | for (var i = 0; t > 0; ) {
|
1395 | var s = this._indents.length - 1;
|
1396 | if (this._indents[s] == null)
|
1397 | t = 0;
|
1398 | else if (this._indents[s] == this._outdebt)
|
1399 | t -= this._outdebt, this._outdebt = 0;
|
1400 | else if (this._indents[s] < this._outdebt)
|
1401 | this._outdebt -= this._indents[s], t -= this._indents[s];
|
1402 | else {
|
1403 | i = this._indents.pop() - this._outdebt, t -= i, this._outdebt = 0, e || this.addLinebreaks(1);
|
1404 | let o = this.pair("OUTDENT");
|
1405 | if (this.token("OUTDENT", "" + i, 0), o[1] && o[1].opener) {
|
1406 | let a = o[1].opener;
|
1407 | this._last._opener = a, a._closer = this._last, a._type == "CSS_SEL" && this.token("CSS_END", "", 0);
|
1408 | }
|
1409 | }
|
1410 | }
|
1411 | for (i && (this._outdebt -= t); this.lastTokenValue() == ";"; )
|
1412 | this._tokens.pop();
|
1413 | this.lastTokenType() == "TERMINATOR" || e || this.token("TERMINATOR", `
|
1414 | `, 0), this._scopes.length = this._indents.length, this.closeDef();
|
1415 | var n = this.context();
|
1416 | return (n == "%" || n == "TAG" || n == "IMPORT" || n == "EXPORT") && this.pair(n), this;
|
1417 | };
|
1418 | Wt.prototype.whitespaceToken = function(t) {
|
1419 | var e, r, i;
|
1420 | if (!((e = np.exec(this._chunk)) || (r = this._chunk.charAt(0) === `
|
1421 | `)))
|
1422 | return 0;
|
1423 | if (i = $r(this._tokens), i)
|
1424 | return e ? (i.spaced = true, e[0].length) : (i.newLine = true, 0);
|
1425 | };
|
1426 | Wt.prototype.moveHead = function(t) {
|
1427 | var e = w0(t, `
|
1428 | `);
|
1429 | return e;
|
1430 | };
|
1431 | Wt.prototype.terminatorToken = function(t, e) {
|
1432 | return this._lastTyp == "TERMINATOR" ? this._last._value += t : this.token("TERMINATOR", t, e);
|
1433 | };
|
1434 | Wt.prototype.addLinebreaks = function(t, e) {
|
1435 | var r;
|
1436 | if (!e && t == 0)
|
1437 | return this;
|
1438 | var i = this._last;
|
1439 | if (e || (t == 1 ? r = `
|
1440 | ` : t == 2 ? r = `
|
1441 |
|
1442 | ` : t == 3 ? r = `
|
1443 |
|
1444 |
|
1445 | ` : r = S0(`
|
1446 | `, t)), i) {
|
1447 | var s = i._type, n = mo(i);
|
1448 | if (s == "INDENT") {
|
1449 | var o = i._meta || (i._meta = {pre: "", post: ""});
|
1450 | return o.post += e || r, this;
|
1451 | } else if (s == "TERMINATOR")
|
1452 | return D1(i, n + (e || r)), this;
|
1453 | }
|
1454 | this.token("TERMINATOR", e || r, 0);
|
1455 | };
|
1456 | Wt.prototype.newlineToken = function(t, e) {
|
1457 | this.addLinebreaks(t, e), this.closeDef();
|
1458 | var r = this.context();
|
1459 | return (r == "TAG" || r == "IMPORT" || r == "EXPORT") && this.pair(r), this;
|
1460 | };
|
1461 | Wt.prototype.suppressNewlines = function() {
|
1462 | return this.value() === "\\" && this._tokens.pop(), this;
|
1463 | };
|
1464 | Wt.prototype.literalToken = function() {
|
1465 | var t, e;
|
1466 | (t = t0.exec(this._chunk)) ? (e = t[0], i0.test(e) && this.tagParameters()) : e = this._chunk.charAt(0);
|
1467 | var r = this._ends[this._ends.length - 1], i = this._ends[this._ends.length - 2], s = r == "TAG_END" || r == "OUTDENT" && i == "TAG_END", n = e, o = $r(this._tokens), a = o && Yi(o), l = o && mo(o), p = e.length;
|
1468 | if (e == "=" && o && (l == "||" || l == "&&"))
|
1469 | return Rs(o, "COMPOUND_ASSIGN"), D1(o, l + "="), o._len = this._loc - o._loc + e.length, e.length;
|
1470 | if (e == "\u0192" && (n = "DO"), e == "|") {
|
1471 | if (l == "(")
|
1472 | return this.token("DO", "DO", 0), this.pushEnd("|"), this.token("BLOCK_PARAM_START", e, 1), p;
|
1473 | if (a == "DO")
|
1474 | return this.pushEnd("|"), this.token("BLOCK_PARAM_START", e, 1), p;
|
1475 | if (r == "|")
|
1476 | return this.token("BLOCK_PARAM_END", e, 1), this.pair("|"), p;
|
1477 | }
|
1478 | e === ";" && (this._seenFor = false, n = "TERMINATOR"), e == "(" && a == "T." || e == "[" && s ? n = "STYLE_START" : e === "(" && s && a != "=" && o.spaced ? this.token(",", ",") : e === "->" && s ? (n = "TAG_END", this.pair("TAG_END")) : e === "=>" && s ? (n = "TAG_END", this.pair("TAG_END")) : e === "/>" && s ? (n = "TAG_END", this.pair("TAG_END")) : e === ">" && s ? (n = "TAG_END", this.pair("TAG_END")) : e === "TERMINATOR" && r === "DEF" ? this.closeDef() : e === "&" && this.context() == "DEF" ? n = "BLOCK_ARG" : e == "---" || e == "-" && a == "TERMINATOR" && this._chunk.match(/^\-\s*\n/) ? n = "SEPARATOR" : e == "*" && this._chunk.charAt(1).match(/[A-Za-z\_\@\[]/) && (o.spaced || [",", "(", "[", "{", "|", `
|
1479 | `, " "].indexOf(l) >= 0) ? n = "SPLAT" : e == "*" && (this.context() == "IMPORT" || this.context() == "EXPORT") ? n = "" + this.context() + "_ALL" : e == "," && this.context() == "IMPORT" ? n = "IMPORT_COMMA" : e == "!" && o && !o.spaced && (["]", ")"].indexOf(l) >= 0 || a == "IDENTIFIER" || a == "SYMBOLID" || a == "SUPER") ? n = "BANG" : e == "&" && this._chunk.match(/^\&\s*[,\)\}\]]/) ? n = "DO_PLACEHOLDER" : e == "**" ? n = "EXP" : e == "%" && (a == "NUMBER" || a == ")") && !o.spaced ? n = "UNIT" : gr(e, d0) >= 0 ? n = "MATH" : gr(e, _0) >= 0 ? n = "COMPARE" : gr(e, h0) >= 0 ? n = "COMPOUND_ASSIGN" : gr(e, up) >= 0 ? n = "UNARY" : gr(e, f0) >= 0 ? n = "SHIFT" : gr(e, p0) >= 0 ? n = "LOGIC" : o && !o.spaced && (e == "{" && a == "IDENTIFIER" && (n = "{{"), e === "(" && gr(a, b0) >= 0 ? n = "CALL_START" : e === "(" && a == "DO" ? n = "BLOCK_PARAM_START" : e === "[" && gr(a, k0) >= 0 && (n = "INDEX_START", a == "?" && Rs(o, "INDEX_SOAK")));
|
1480 | let c = null;
|
1481 | switch (e) {
|
1482 | case "(":
|
1483 | case "{":
|
1484 | case "[": {
|
1485 | this.pushEnd(Nl[e], {closeType: Nl[n], i: this._tokens.length});
|
1486 | break;
|
1487 | }
|
1488 | case ")":
|
1489 | case "}":
|
1490 | case "]": {
|
1491 | let _ = this.pair(e);
|
1492 | if (_ && _[1].closeType) {
|
1493 | n = _[1].closeType;
|
1494 | let f = this._tokens[_[1].i];
|
1495 | c = this._tokens[_[1].i];
|
1496 | }
|
1497 | break;
|
1498 | }
|
1499 | }
|
1500 | if (e == "\\") {
|
1501 | n = "TYPE";
|
1502 | let _ = this.findTypeAnnotation(this._chunk.slice(1));
|
1503 | _ && (e = e + _);
|
1504 | }
|
1505 | if (e == ".." && !o.spaced && (n = "?.", e = "?."), e == ":" && r == "TAG_RULE" && (n = "T:"), (n == "-" || n == "+") && /\w|\(|\$/.test(this._chunk[1]) && (!o || o.spaced) && (n = n + n + n), this.token(n, e, e.length), c && (c._closer = this._last), this._platform == "tsc") {
|
1506 | let _ = this._chunk[1] || "";
|
1507 | e == "." && (!_ || rp[_]) ? this.token("IDENTIFIER", "$CARET$", 0, 1) : e == "@" && (!_ || /[^\$\@\-\.\w]/.test(_)) && this.token("IDENTIFIER", "$CARET$", 0, 1);
|
1508 | }
|
1509 | return e.length;
|
1510 | };
|
1511 | Wt.prototype.sanitizeHeredoc = function(t, e) {
|
1512 | var r, i = e.indent, s = e.herecomment;
|
1513 | if (s) {
|
1514 | if (a0.test(t) && this.error("block comment cannot contain '*/' starting"), t.indexOf(`
|
1515 | `) <= 0)
|
1516 | return t;
|
1517 | } else
|
1518 | for (var n; r = o0.exec(t); ) {
|
1519 | var o = r[1];
|
1520 | (i === null || 0 < (n = o.length) && n < i.length) && (i = o);
|
1521 | }
|
1522 | return i && (t = t.replace(RegExp("\\n" + i, "g"), `
|
1523 | `)), s || (t[0] == `
|
1524 | ` && (e.offset = i.length + 1), t = t.replace(/^\n/, "")), e.realIndent = i, t;
|
1525 | };
|
1526 | Wt.prototype.tagParameters = function() {
|
1527 | var t;
|
1528 | if (this.lastTokenType() != ")")
|
1529 | return this;
|
1530 | var e = [], r = this._tokens, i = r.length;
|
1531 | for (Rs(r[--i], "PARAM_END"); t = r[--i]; ) {
|
1532 | var s = Yi(t);
|
1533 | switch (s) {
|
1534 | case ")": {
|
1535 | e.push(t);
|
1536 | break;
|
1537 | }
|
1538 | case "(":
|
1539 | case "CALL_START": {
|
1540 | if (e.length)
|
1541 | e.pop();
|
1542 | else
|
1543 | return s === "(" ? (Rs(t, "PARAM_START"), this) : this;
|
1544 | break;
|
1545 | }
|
1546 | }
|
1547 | }
|
1548 | return this;
|
1549 | };
|
1550 | Wt.prototype.closeIndentation = function() {
|
1551 | for (; ; ) {
|
1552 | var t = this.context();
|
1553 | if (t == "TAG" || t == "IMPORT" || t == "EXPORT")
|
1554 | this.pair(t);
|
1555 | else
|
1556 | break;
|
1557 | }
|
1558 | return this.closeDef(), this.closeSelector(), this.outdentToken(this._indent, false, 0);
|
1559 | };
|
1560 | Wt.prototype.balancedString = function(t, e) {
|
1561 | for (var r, i, s, n = [e], o = 0; o < t.length - 1; ) {
|
1562 | switch (o++, i = t.charAt(o), i) {
|
1563 | case "\\": {
|
1564 | o++;
|
1565 | continue;
|
1566 | }
|
1567 | case e: {
|
1568 | if (n.pop(), !n.length) {
|
1569 | var a = t.slice(0, o + 1);
|
1570 | return a;
|
1571 | }
|
1572 | e = n[n.length - 1];
|
1573 | continue;
|
1574 | }
|
1575 | }
|
1576 | e === "}" && (i == '"' || i == "'") ? n.push(e = i) : e === "}" && i === "/" && (r = lp.exec(t.slice(o)) || ap.exec(t.slice(o))) ? o += r[0].length - 1 : (e === "}" && i === "{" || e === '"' && i === "{") && n.push(e = "}"), s = i;
|
1577 | }
|
1578 | return this.error("missing " + n.pop() + ", starting");
|
1579 | };
|
1580 | Wt.prototype.interpolateString = function(t, e) {
|
1581 | e === void 0 && (e = {});
|
1582 | for (var r = e.heredoc, i = e.quote, s = e.regex, n = e.prefix, o = e.indent, a = this._loc, l = [], p = 0, c = -1, _ = e.offset || 1, f = t.length, m, g, b = false; m = t[c += 1]; ) {
|
1583 | if (m === "\\") {
|
1584 | c += 1;
|
1585 | continue;
|
1586 | }
|
1587 | if (m === `
|
1588 | ` && o && (_ += o.length), !!(t[c] == "{" && (g = this.balancedString(t.slice(c), "}")))) {
|
1589 | if (b = true, p < c) {
|
1590 | var N = new kn("NEOSTRING", this.escapeStr(t.slice(p, c), r, i), this._loc + p + _, c - p);
|
1591 | l.push(N);
|
1592 | }
|
1593 | l.push(new kn("{{", "{", this._loc + c + _, 1));
|
1594 | var y = g.slice(1, -1);
|
1595 | if (y = y.replace(/^[^\n\S]+/, ""), y.length) {
|
1596 | var v = 0, d = this._loc + c + (g.length - y.length) - 1, w = new Wt().tokenize(y, {inline: true, rewrite: false, loc: d + _}, this._script);
|
1597 | w[0] && Yi(w[0]) == "TERMINATOR" && w.shift(), w.length && l.push.apply(l, w);
|
1598 | }
|
1599 | c += g.length - 1, l.push(new kn("}}", "}", this._loc + c + _, 1)), p = c + 1;
|
1600 | }
|
1601 | }
|
1602 | if (c >= p && p < t.length && l.push(new kn("NEOSTRING", this.escapeStr(t.slice(p), r, i), this._loc + p + _, t.length - p)), s)
|
1603 | return l;
|
1604 | if (!l.length)
|
1605 | return this.token("NEOSTRING", '""');
|
1606 | for (let k = 0, T = l.length; k < T; k++)
|
1607 | this._tokens.push(l[k]);
|
1608 | return l;
|
1609 | };
|
1610 | Wt.prototype.balancedSelector = function(t, e) {
|
1611 | var r, i, s = [e];
|
1612 | for (let n = t.length, o = 1, a = n - o; a > 0 ? o < n : o > n; a > 0 ? o++ : o--) {
|
1613 | switch (i = t.charAt(o)) {
|
1614 | case "\\": {
|
1615 | o++;
|
1616 | continue;
|
1617 | }
|
1618 | case e: {
|
1619 | if (s.pop(), !s.length)
|
1620 | return t.slice(0, o + 1);
|
1621 | e = s[s.length - 1];
|
1622 | continue;
|
1623 | }
|
1624 | }
|
1625 | e === "}" && i === ")" ? s.push(e = i) : (e === "}" && i === "{" || e === ")" && i === "{") && s.push(e = "}"), r = i;
|
1626 | }
|
1627 | return this.error("missing " + s.pop() + ", starting");
|
1628 | };
|
1629 | Wt.prototype.pair = function(t) {
|
1630 | var e = $r(this._ends);
|
1631 | if (t != e) {
|
1632 | e !== "OUTDENT" && this.error("unmatched " + t, {length: t.length});
|
1633 | var r = $r(this._indents);
|
1634 | return this._indent -= r, this.outdentToken(r, true, 0), this.pair(t);
|
1635 | }
|
1636 | return this.popEnd();
|
1637 | };
|
1638 | Wt.prototype.token = function(t, e, r, i) {
|
1639 | this._lastTyp = t, this._lastVal = e;
|
1640 | var s = this._last = new kn(t, e, this._loc + (i || 0), r || 0);
|
1641 | this._tokens.push(s);
|
1642 | };
|
1643 | Wt.prototype.lastTokenType = function() {
|
1644 | var t = this._tokens[this._tokens.length - 1];
|
1645 | return t ? Yi(t) : "NONE";
|
1646 | };
|
1647 | Wt.prototype.lastTokenValue = function() {
|
1648 | var t = this._tokens[this._tokens.length - 1];
|
1649 | return t ? t._value : "";
|
1650 | };
|
1651 | Wt.prototype.tokid = function(t, e) {
|
1652 | var r;
|
1653 | return (r = $r(this._tokens, t)) ? (e && Rs(r, e), Yi(r)) : null;
|
1654 | };
|
1655 | Wt.prototype.value = function(t, e) {
|
1656 | var r;
|
1657 | return (r = $r(this._tokens, t)) ? (e && D1(r, e), mo(r)) : null;
|
1658 | };
|
1659 | Wt.prototype.unfinished = function() {
|
1660 | return l0.test(this._chunk) && (!this._context || !this._context.style) ? true : v0.indexOf(this._lastTyp) >= 0 && this._platform != "tsc";
|
1661 | };
|
1662 | Wt.prototype.escapeLines = function(t, e) {
|
1663 | return t.replace(cp, e ? "\\n" : "");
|
1664 | };
|
1665 | Wt.prototype.makeString = function(t, e, r) {
|
1666 | return t ? (t = t.replace(/\\([\s\S])/g, function(i, s) {
|
1667 | return s == `
|
1668 | ` || s == e ? s : i;
|
1669 | }), t = t.replace(RegExp("" + e, "g"), "\\$&"), e + this.escapeLines(t, r) + e) : e + e;
|
1670 | };
|
1671 | Wt.prototype.error = function(t, e) {
|
1672 | e === void 0 && (e = {});
|
1673 | let r = e.offset || this._loc;
|
1674 | throw this._script.addDiagnostic("error", {message: t, source: e.source || "imba-lexer", range: e.range || this._script.rangeAt(r, r + (e.length || Ff(this)))}).toError();
|
1675 | };
|
1676 | });
|
1677 | var vp = er((fp) => {
|
1678 | function Ol(t, e) {
|
1679 | return e && e.indexOf ? e.indexOf(t) : [].indexOf.call(t, e);
|
1680 | }
|
1681 | function T0(t) {
|
1682 | return t ? t.toArray ? t.toArray() : t : [];
|
1683 | }
|
1684 | var Tr = ta(), F1 = Tr.Token, Cl = v1(), P1 = Cl.INVERSES, _p = Cl.BALANCED_PAIRS, x4 = Cl.TOK, hi = "TERMINATOR", vr = "INDENT", yo = "OUTDENT", Ll = "THEN", E0 = "CATCH", dp = {_type: "EOF", _value: ""}, Dl = function(t) {
|
1685 | var e = {};
|
1686 | for (let r = 0, i = T0(t), s = i.length; r < s; r++)
|
1687 | e[i[r]] = 1;
|
1688 | return e;
|
1689 | }, A0 = [")", "]", "}", "STYLE_END", "OUTDENT", "CALL_END", "PARAM_END", "INDEX_END", "BLOCK_PARAM_END", "STRING_END", "}}", "TAG_END", "CATCH", "WHEN", "ELSE", "FINALLY"], I0 = Dl(A0), mp = {"(": 1, "[": 1, "{": 1, "{{": 1, INDENT: 1, CALL_START: 1, PARAM_START: 1, INDEX_START: 1, BLOCK_PARAM_START: 1, STRING_START: 1, TAG_START: 1}, yp = {")": 1, "]": 1, "}": 1, "}}": 1, OUTDENT: 1, CALL_END: 1, PARAM_END: 1, INDEX_END: 1, BLOCK_PARAM_END: 1, STRING_END: 1, TAG_END: 1}, R0 = ["STYLE_START"], N0 = ["STYLE_START"], O0 = {ELSE: 1, TRY: 1, FINALLY: 1, THEN: 1, BLOCK_PARAM_END: 1, DO: 1, BEGIN: 1, CATCH_VAR: 1}, C0 = {TERMINATOR: true, CATCH: true, FINALLY: true, ELSE: true, OUTDENT: true, LEADING_WHEN: true}, Fl = {IDENTIFIER: 1, TYPE: 1, SYMBOLID: 1, SUPER: 1, THIS: 1, SELF: 1, TAG_END: 1, IVAR: 1, CVAR: 1, ARGVAR: 1, BREAK: 1, CONTINUE: 1, RETURN: 1, INDEX_END: 1, "]": 1, BANG: 1}, Pl = {SELECTOR: 1, IDENTIFIER: 1, SYMBOLID: 1, NUMBER: 1, STRING: 1, SYMBOL: 1, JS: 1, REGEX: 1, NEW: 1, CLASS: 1, IF: 1, AWAIT: 1, UNLESS: 1, TRY: 1, SWITCH: 1, THIS: 1, BOOL: 1, TRUE: 1, FALSE: 1, NULL: 1, UNDEFINED: 1, UNARY: 1, SUPER: 1, IVAR: 1, ARGVAR: 1, SELF: 1, "[": 1, "(": 1, "{": 1, "--": 1, "++": 1, "---": 1, "+++": 1, "#": 1, TAG_START: 1, PARAM_START: 1, SELECTOR_START: 1, STRING_START: 1, IDREF: 1, SPLAT: 1, DO: 1, BLOCK_ARG: 1, FOR: 1, CONTINUE: 1, BREAK: 1, LET: 1, VAR: 1, CONST: 1, CSS: 1, ENV_FLAG: 1}, L0 = ["+", "-"], D0 = ["{", "[", ",", "BLOCK_PARAM_END", "DO"], F0 = Dl(D0), P0 = ["CLASS", "IF", "UNLESS", "TAG", "WHILE", "FOR", "UNTIL", "CATCH", "FINALLY", "MODULE", "LEADING_WHEN", "STRUCT"], M0 = Dl(P0), V0 = {POST_IF: true, POST_UNLESS: true, POST_FOR: true, WHILE: true, UNTIL: true, WHEN: true, BY: true, LOOP: true, TERMINATOR: true, DEF_BODY: true}, gp = 0;
|
1690 | function Me() {
|
1691 | this._tokens = [], this._options = {}, this._len = 0, this._starter = null;
|
1692 | }
|
1693 | fp.Rewriter = Me;
|
1694 | Me.prototype.reset = function() {
|
1695 | return this._starter = null, this._len = 0, this;
|
1696 | };
|
1697 | Me.prototype.tokens = function() {
|
1698 | return this._tokens;
|
1699 | };
|
1700 | Me.prototype.rewrite = function(t, e) {
|
1701 | e === void 0 && (e = {}), this.reset(), this._tokens = t, this._options = e, this._platform = e.platform || e.target;
|
1702 | for (var r = 0, i = t.length; r < i - 1; ) {
|
1703 | var s = t[r];
|
1704 | if (s._type == "DEF_BODY") {
|
1705 | var n = t[r + 1];
|
1706 | n && n._type == hi && (s._type = "DEF_EMPTY");
|
1707 | }
|
1708 | r++;
|
1709 | }
|
1710 | return this.step("all"), gp && console.log(gp), this._tokens;
|
1711 | };
|
1712 | Me.prototype.all = function() {
|
1713 | return this.step("ensureFirstLine"), this.step("removeLeadingNewlines"), this._platform == "tsc" && this.step("addPlaceholderIdentifiers"), this.step("removeMidExpressionNewlines"), this.step("tagDefArguments"), this.step("closeOpenTags"), this.step("addImplicitIndentation"), this.step("tagPostfixConditionals"), this.step("addImplicitBraces"), this.step("addImplicitParentheses");
|
1714 | };
|
1715 | Me.prototype.step = function(t) {
|
1716 | this[t]();
|
1717 | };
|
1718 | Me.prototype.scanTokens = function(t) {
|
1719 | for (var e = this._tokens, r = 0; r < e.length; )
|
1720 | r += t.call(this, e[r], r, e);
|
1721 | return true;
|
1722 | };
|
1723 | Me.prototype.detectEnd = function(t, e, r, i) {
|
1724 | i === void 0 && (i = {});
|
1725 | for (var s = this._tokens, n = 0, o, a, l; t < s.length; ) {
|
1726 | if (o = s[t], n == 0 && e.call(this, o, t, s, i))
|
1727 | return r.call(this, o, t, s, i);
|
1728 | if (!o || n < 0)
|
1729 | return r.call(this, o, t - 1, s, i);
|
1730 | a = o._type, mp[a] ? n += 1 : yp[a] && (n -= 1), t += 1;
|
1731 | }
|
1732 | return t - 1;
|
1733 | };
|
1734 | Me.prototype.ensureFirstLine = function() {
|
1735 | var t = this._tokens[0];
|
1736 | (!t || t._type === hi) && this._tokens.unshift(Tr.token("BODYSTART", "BODYSTART"));
|
1737 | };
|
1738 | Me.prototype.addPlaceholderIdentifiers = function() {
|
1739 | let t = /^([\,\]\)\}]|\}\})$/;
|
1740 | return this.scanTokens(function(e, r, i) {
|
1741 | var s = i[r - 1] || dp, n = i[r + 1] || dp;
|
1742 | if (s._type == "=" || s._type == ":") {
|
1743 | if (e._type === hi && n._type != "INDENT" || e._type == "," || e._type == "DEF_BODY")
|
1744 | return i.splice(r, 0, new F1("IDENTIFIER", "$CARET$", e._loc, 0)), 2;
|
1745 | } else if (s._type == "." && (e._type === hi && n._type != "INDENT" || t.test(e._value)))
|
1746 | return i.splice(r, 0, new F1("IDENTIFIER", "$CARET$", e._loc, 0)), 2;
|
1747 | return 1;
|
1748 | });
|
1749 | };
|
1750 | Me.prototype.removeLeadingNewlines = function() {
|
1751 | for (var t = 0, e = 0, r = this._tokens, i, s = r.length; e < s; ) {
|
1752 | if (i = r[e], i._type !== hi) {
|
1753 | t = e;
|
1754 | break;
|
1755 | }
|
1756 | e++;
|
1757 | }
|
1758 | t && r.splice(0, t);
|
1759 | };
|
1760 | Me.prototype.removeMidExpressionNewlines = function() {
|
1761 | return this.scanTokens(function(t, e, r) {
|
1762 | var i = r.length > e + 1 ? r[e + 1] : null;
|
1763 | return !(t._type === hi && i && I0[i._type]) || i && i._type == yo ? 1 : (r.splice(e, 1), 0);
|
1764 | });
|
1765 | };
|
1766 | Me.prototype.tagDefArguments = function() {
|
1767 | return true;
|
1768 | };
|
1769 | Me.prototype.closeOpenTags = function() {
|
1770 | var t = this, e = function(i, s) {
|
1771 | return i._type == ">" || i._type == "TAG_END";
|
1772 | }, r = function(i, s) {
|
1773 | return i._type = "TAG_END";
|
1774 | };
|
1775 | return t.scanTokens(function(i, s, n) {
|
1776 | return i._type === "TAG_START" && t.detectEnd(s + 1, e, r), 1;
|
1777 | });
|
1778 | };
|
1779 | Me.prototype.addImplicitBlockCalls = function() {
|
1780 | for (var t = 1, e = this._tokens; t < e.length; ) {
|
1781 | var r = e[t], i = r._type, s = r._value;
|
1782 | i == "DO" && (s == "INDEX_END" || s == "IDENTIFIER" || s == "NEW") && (e.splice(t + 1, 0, Tr.token("CALL_END", ")")), e.splice(t + 1, 0, Tr.token("CALL_START", "(")), t++), t++;
|
1783 | }
|
1784 | };
|
1785 | Me.prototype.addLeftBrace = function() {
|
1786 | return this;
|
1787 | };
|
1788 | Me.prototype.addImplicitBraces = function() {
|
1789 | var t = this, e = [], r = null, i = null, s = 0, n = null, o = ["ROOT", 0], a = "DEF", l = ["IF", "TERNARY", "FOR", a], p = false, c = function(N, y) {
|
1790 | return t._tokens.splice(y, 0, Tr.RBRACKET);
|
1791 | }, _ = function(N, y, v) {
|
1792 | let d = new F1("{", "{", 0, 0, 0);
|
1793 | return d.generated = true, d.scope = v, t._tokens.splice(y, 0, d);
|
1794 | }, f = function(N, y, v) {
|
1795 | let d = new F1("}", "}", 0, 0, 0);
|
1796 | return d.generated = true, d.scope = v, t._tokens.splice(y, 0, d);
|
1797 | }, m = function(N, y) {
|
1798 | return [N, y];
|
1799 | }, g = [], b = [];
|
1800 | return t.scanTokens(function(N, y, v) {
|
1801 | var d = N._type, w = N._value;
|
1802 | if (d == "CSS_SEL" && N._closer)
|
1803 | return v.indexOf(N._closer) - y + 1;
|
1804 | if (d == "STYLE_START" && N._closer)
|
1805 | return v.indexOf(N._closer) - y;
|
1806 | if (_p[d] ? b.unshift(d) : P1[d] && P1[d] == b[0] && b.shift(), N0.indexOf(b[0]) >= 0)
|
1807 | return 1;
|
1808 | var k = e.length ? e[e.length - 1] : o, T;
|
1809 | if (d == "INDENT" ? g.unshift(N.scope) : d == "OUTDENT" && g.shift(), l.indexOf(d) >= 0 && d != a)
|
1810 | return e.push(m(d, y)), 1;
|
1811 | if (w == "?")
|
1812 | return e.push(m("TERNARY", y)), 1;
|
1813 | if (mp[d]) {
|
1814 | d === vr && l.indexOf(k[0]) >= 0 && e.pop();
|
1815 | let q = t.tokenType(y - 1);
|
1816 | return d === vr && (q == "{" || q == "STYLE_START") ? e.push(m("{", y)) : e.push(m(d, y)), 1;
|
1817 | }
|
1818 | if (yp[d])
|
1819 | return k[0] == "TERNARY" && e.pop(), i = e.pop(), i[2] = y, i[0] == "{" && i.generated && f(N, y), 1;
|
1820 | if (k[0] == "TERNARY" && (d === hi || d === yo) || l.indexOf(k[0]) >= 0 && d === vr)
|
1821 | return e.pop(), 1;
|
1822 | if (d == ",")
|
1823 | return k[0] == "{" && k.generated ? (f(N, y, e.pop()), 2) : 1;
|
1824 | let S = d == a && Ol(g[0], ["CLASS", "DEF", "MODULE", "TAG", "STRUCT"]) == -1;
|
1825 | if ((d == ":" || S) && k[0] != "{" && k[0] != "TERNARY" && (l.indexOf(k[0]) == -1 || k[0] == a)) {
|
1826 | var C = v[y - 2];
|
1827 | let q = false;
|
1828 | for (d == a ? (T = y - 1, C = v[T]) : i && i[2] == y - 1 ? T = i[1] - 1 : T = y - 2; t.tokenType(T - 1) === "HERECOMMENT"; )
|
1829 | T -= 2;
|
1830 | var L = v[T - 1], D = v[T];
|
1831 | if ((!C || Ol(C._type, ["INDENT", "TERMINATOR"]) == -1) && (q = true), g[0] && Ol(g[0], ["CLASS", "DEF", "MODULE", "TAG", "STRUCT"]) >= 0 && (q = true), L && Tr.typ(L) == "}" && L.generated && (D._type == "," && !D.generated || !(L.scope && L.scope.autoClose))) {
|
1832 | v.splice(T - 1, 1);
|
1833 | var I = m("{", y - 1);
|
1834 | return I.generated = true, e.push(I), d == a ? (e.push(m(a, y)), 1) : 0;
|
1835 | } else
|
1836 | return L && Tr.typ(L) == "," && t.tokenType(T - 2) == "}" ? (v.splice(T - 2, 1), I = m("{"), I.generated = true, e.push(I), d == a ? (e.push(m(a, y)), 1) : 0) : d == a && (!L || L._type != "=") ? (e.push(m(a, y)), 1) : (I = m("{"), I.generated = true, I.autoClose = q, e.push(I), _(N, T + 1), d == a ? (e.push(m(a, y)), 3) : 2);
|
1837 | }
|
1838 | if (d == "DO") {
|
1839 | var U = Tr.typ(v[y - 1]);
|
1840 | if (["NUMBER", "STRING", "REGEX", "SYMBOL", "]", "}", ")", "STRING_END"].indexOf(U) >= 0) {
|
1841 | var B = Tr.token(",", ",");
|
1842 | if (B.generated = true, v.splice(y, 0, B), k.generated)
|
1843 | return f(N, y), e.pop(), 2;
|
1844 | }
|
1845 | }
|
1846 | return k.generated && (d === hi || d === yo || d === "DEF_BODY") ? (r = e.pop(), f(N, y, r), 2) : 1;
|
1847 | });
|
1848 | };
|
1849 | Me.prototype.generateToken = function(t, e) {
|
1850 | let r = Tr.token(t, e);
|
1851 | return r.generated = true, r;
|
1852 | };
|
1853 | Me.prototype.addImplicitParentheses = function() {
|
1854 | var t = this, e = t._tokens, r = false, i = false, s = false, n = false, o = false, a = false, l = false, p = false, c = 0;
|
1855 | let _ = [], f = null;
|
1856 | for (var m = function(S, C, L) {
|
1857 | return L.splice(C, 0, t.generateToken("CALL_END", ")"));
|
1858 | }, g = function(S, C, L) {
|
1859 | var D = S._type;
|
1860 | if (!o && S.fromThen)
|
1861 | return true;
|
1862 | var I = D == "IF" || D == "UNLESS" || D == "ELSE";
|
1863 | (I || D === "CATCH") && (o = true), (I || D === "SWITCH" || D == "TRY") && (a = true);
|
1864 | var U = t.tokenType(C - 1);
|
1865 | if ((D == "." || D == "?." || D == "::") && U === yo || D == ":" && _[_.length - 1] == "?" && L[C - 1].spaced || n && (D === vr || D === hi))
|
1866 | return true;
|
1867 | if ((D == "WHEN" || D == "BY") && !i)
|
1868 | return false;
|
1869 | var B = L.length > C + 1 ? L[C + 1] : null, q = B && B._type;
|
1870 | if (S.generated || U === ",")
|
1871 | return false;
|
1872 | var K = V0[D] || D == vr && !a || D == "DOS" && U != "=";
|
1873 | return K ? D !== vr || !F0[U] && t.tokenType(C - 2) != "CLASS" && !(B && (B.generated && q == "{" || Pl[q])) : false;
|
1874 | }; e.length > c + 1; ) {
|
1875 | var b = e[c], N = b._type;
|
1876 | if (N == "?" && _.push(N), (N == "STYLE_START" || N == "CSS_SEL") && b._closer) {
|
1877 | c = e.indexOf(b._closer) + 1;
|
1878 | continue;
|
1879 | }
|
1880 | if (_p[N] ? _.push(f = N) : P1[N] && P1[N] == f && (_.pop(), f = _[_.length - 1]), R0.indexOf(f) >= 0) {
|
1881 | c++;
|
1882 | continue;
|
1883 | }
|
1884 | N == ":" && e[c - 1].spaced && _[_.length - 1] == "?" && _.pop();
|
1885 | var y = c > 0 ? e[c - 1] : null, v = e[c + 1], d = y && y._type, w = v && v._type;
|
1886 | if (N === vr && (d == ")" || d == "]") && (r = true), d == vr && (s = false), d == "TAG_END" && (s = y), M0[d] && (n = true, r = true, d == "FOR" && (i = true)), l = false, p = false, !r && N == vr && v) {
|
1887 | var k = d && Fl[d], T = w && Pl[w];
|
1888 | l = (v.generated && w == "{" || T) && k, p = T && k, w == "TAG_START" && d != "TAG_END" && T && (p = false);
|
1889 | }
|
1890 | if (o = false, a = false, (N == hi || N == yo || N == vr) && (n = false, r = false), N == hi && (s = false), N == "?" && y && !y.spaced && (b.call = true), b.fromThen) {
|
1891 | c += 1;
|
1892 | continue;
|
1893 | }
|
1894 | if (!(l || p || y && y.spaced && (y.call || Fl[d]) && (Pl[N] || !(b.spaced || b.newLine) && L0.indexOf(N) >= 0))) {
|
1895 | c += 1;
|
1896 | continue;
|
1897 | }
|
1898 | if (N === vr && w == "TAG_START" && Fl[d] && d != "TAG_END") {
|
1899 | c += 1;
|
1900 | continue;
|
1901 | }
|
1902 | if (s && w !== "TAG_START" && d !== "TAG_END") {
|
1903 | if (N === vr) {
|
1904 | c += 1;
|
1905 | continue;
|
1906 | }
|
1907 | n = true;
|
1908 | }
|
1909 | e.splice(c, 0, t.generateToken("CALL_START", "(")), t.detectEnd(c + 1, g, m), y._type == "?" && (y._type = "FUNC_EXIST"), c += 2, n = false, r = false, i = false;
|
1910 | }
|
1911 | };
|
1912 | Me.prototype.indentCondition = function(t, e, r) {
|
1913 | var i = t._type;
|
1914 | return C0[i] && t._value !== ";" && !(i == "ELSE" && this._starter != "IF" && this._starter != "THEN");
|
1915 | };
|
1916 | Me.prototype.indentAction = function(t, e, r) {
|
1917 | var i = this.tokenType(e - 1) === "," ? e - 1 : e;
|
1918 | r.splice(i, 0, Tr.OUTDENT);
|
1919 | };
|
1920 | Me.prototype.addImplicitIndentation = function() {
|
1921 | for (var t = {OUTDENT: 1, TERMINATOR: 1, FINALLY: 1}, e = 0, r = this._tokens, i; e < r.length; ) {
|
1922 | var s = r[e], n = s._type, o = this.tokenType(e + 1);
|
1923 | if (n === hi && o === Ll) {
|
1924 | r.splice(e, 1);
|
1925 | continue;
|
1926 | }
|
1927 | if (n === E0 && t[this.tokenType(e + 2)]) {
|
1928 | r.splice(e + 2, 0, Tr.token(vr, "2"), Tr.token(yo, "2")), e += 4;
|
1929 | continue;
|
1930 | }
|
1931 | if (O0[n] && o != vr && o != "BLOCK_PARAM_START" && !(n == "ELSE" && o == "IF") && n != "ELIF") {
|
1932 | this._starter = i = n;
|
1933 | var a = Tr.token(vr, "2");
|
1934 | i === Ll && (a.fromThen = true), a.generated = true, r.splice(e + 1, 0, a), this.detectEnd(e + 2, this.indentCondition, this.indentAction), n === Ll && r.splice(e, 1);
|
1935 | }
|
1936 | e++;
|
1937 | }
|
1938 | };
|
1939 | Me.prototype.tagPostfixConditionals = function() {
|
1940 | var t = this, e = function(i, s, n) {
|
1941 | return i._type === hi || i._type === vr;
|
1942 | }, r = function(i, s, n, o) {
|
1943 | if (i._type != vr)
|
1944 | if (o.unfinished) {
|
1945 | let a = Tr.token("EMPTY_BLOCK", "");
|
1946 | return n.splice(s, 0, a);
|
1947 | } else
|
1948 | return Tr.setTyp(o.original, "POST_" + o.original._type);
|
1949 | };
|
1950 | return t.scanTokens(function(i, s, n) {
|
1951 | var o = i._type;
|
1952 | if (!(o == "IF" || o == "FOR"))
|
1953 | return 1;
|
1954 | let a = n[s - 1] && e(n[s - 1]);
|
1955 | return t.detectEnd(s + 1, e, r, {original: i, unfinished: a}), 1;
|
1956 | });
|
1957 | };
|
1958 | Me.prototype.type = function(t) {
|
1959 | throw "deprecated";
|
1960 | var e;
|
1961 | };
|
1962 | Me.prototype.injectToken = function(t, e) {
|
1963 | return this;
|
1964 | };
|
1965 | Me.prototype.tokenType = function(t) {
|
1966 | if (t < 0 || t >= this._tokens.length)
|
1967 | return null;
|
1968 | var e = this._tokens[t];
|
1969 | return e && e._type;
|
1970 | };
|
1971 | });
|
1972 | var bp = er((pa) => {
|
1973 | var M1 = function() {
|
1974 | var t = function(io, x, Di, R) {
|
1975 | for (Di = Di || {}, R = io.length; R--; Di[io[R]] = x)
|
1976 | ;
|
1977 | return Di;
|
1978 | }, e = [1, 4], r = [1, 6], i = [1, 7], s = [1, 39], n = [1, 40], o = [1, 41], a = [1, 42], l = [1, 80], p = [1, 45], c = [1, 126], _ = [1, 44], f = [1, 128], m = [1, 106], g = [1, 134], b = [1, 135], N = [1, 125], y = [1, 132], v = [1, 138], d = [1, 101], w = [1, 127], k = [1, 139], T = [1, 94], S = [1, 95], C = [1, 96], L = [1, 97], D = [1, 98], I = [1, 99], U = [1, 100], B = [1, 87], q = [1, 105], K = [1, 83], Q = [1, 46], Dt = [1, 17], Zt = [1, 18], F = [1, 69], H = [1, 68], Y = [1, 64], P = [1, 104], M = [1, 124], X = [1, 102], ee = [1, 35], oe = [1, 36], tt = [1, 110], $ = [1, 109], et = [1, 108], W = [1, 131], rt = [1, 84], it = [1, 85], ut = [1, 86], at = [1, 111], lt = [1, 92], ht = [1, 47], ct = [1, 53], st = [1, 123], ot = [1, 103], nt = [1, 133], pt = [1, 75], ft = [1, 88], V = [1, 118], j = [1, 119], _t = [1, 120], G = [1, 136], z = [1, 137], dt = [1, 79], mt = [1, 117], yt = [1, 63], gt = [1, 65], vt = [1, 66], bt = [1, 67], kt = [1, 70], xt = [1, 71], Ye = [1, 141], ye = [1, 6, 14], Ua = [1, 6, 12, 13, 14, 27, 28, 38, 60, 86, 96, 98, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 291, 292, 296, 297, 298, 302, 304, 305, 313, 317, 320, 321, 322, 329, 330, 331, 332], Bt = [1, 149], Yt = [1, 146], Kt = [1, 147], Jt = [1, 151], Qt = [1, 152], ae = [1, 155], $t = [1, 156], Vt = [1, 148], qt = [1, 150], Ot = [1, 153], Xt = [1, 154], Nc = [1, 159], Oc = [1, 160], ys = [1, 168], gs = [1, 169], Ct = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], Cc = [2, 430], Lc = [1, 180], Dc = [1, 177], Fc = [1, 178], Pc = [1, 173], Mc = [1, 179], Gi = [1, 185], Vc = [1, 6, 13, 14, 27, 28, 38, 60, 87, 95, 96, 124, 168, 169, 170, 171, 172, 173, 174, 176, 177, 178, 182, 183, 184, 207, 208, 209], yi = [1, 6, 14, 296, 298, 304, 305, 321], jc = [1, 6, 14, 83, 85, 86, 218, 219, 268, 275, 276], Gc = [1, 188], Te = [1, 194], Bc = [1, 196], wt = [1, 213], St = [1, 212], ue = [1, 6, 12, 13, 14, 27, 28, 38, 60, 86, 96, 98, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], Hc = [2, 355], wr = [1, 216], A2 = [1, 6, 12, 13, 14, 27, 28, 38, 60, 86, 96, 98, 108, 142, 146, 147, 148, 166, 179, 184, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], Or = [2, 349], Po = [6, 27, 87, 95, 124, 167, 168, 169, 170, 171, 172, 173, 174, 176, 177, 178, 182, 183, 184, 208, 209], zn = [1, 254], Un = [1, 253], I2 = [36, 83, 206], zc = [1, 257], Ya = [1, 6, 14, 83, 85, 86, 98, 218, 219, 268, 275, 276], R2 = [1, 263], Zi = [1, 268], ai = [1, 269], Uc = [1, 265], tr = [1, 273], li = [1, 271], Ka = [1, 6, 12, 13, 14, 27, 28, 36, 38, 60, 86, 96, 98, 108, 120, 121, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], gi = [1, 6, 11, 12, 13, 14, 27, 28, 38, 57, 60, 86, 96, 98, 103, 108, 142, 146, 147, 148, 166, 179, 184, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 273, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 327, 328, 329, 330, 331, 332], nn = [1, 303], Yc = [1, 305], Kc = [2, 370], Mo = [1, 319], Vo = [1, 314], jo = [1, 308], Go = [1, 313], qc = [1, 321], Xc = [1, 323], Wc = [1, 324], Jc = [1, 332], Zc = [36, 83, 206, 254, 309], Yn = [1, 6, 12, 13, 14, 27, 28, 38, 60, 86, 96, 98, 104, 106, 107, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], N2 = [2, 8], Qc = [83, 85], Bo = [1, 6, 14, 184], Kn = [1, 369], Qi = [1, 373], $i = [1, 374], Ho = [1, 383], on = [1, 385], vi = [1, 387], an = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 332], O2 = [1, 6, 11, 12, 13, 14, 27, 28, 38, 60, 86, 96, 98, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], qa = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 147, 148, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 330, 332], $c = [1, 399], Xa = [1, 404], Ne = [6, 27, 87, 95, 124, 168, 169, 170, 171, 172, 173, 174, 176, 177, 178, 182, 183, 184, 208, 209], qn = [1, 427], Xn = [1, 426], Wa = [6, 27, 36, 87, 95, 124, 167, 168, 169, 170, 171, 172, 173, 174, 176, 177, 178, 180, 182, 183, 184, 208, 209], C2 = [1, 6, 11, 12, 13, 14, 27, 28, 38, 60, 86, 96, 98, 108, 142, 146, 147, 148, 166, 179, 184, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 311, 312, 313, 321, 322, 329, 330, 331, 332], Li = [6, 13], qe = [2, 299], L2 = [1, 434], zo = [6, 13, 14, 60, 96], tu = [2, 450], vs = [1, 441], bi = [6, 13, 14, 28, 60, 96, 207], Ja = [2, 303], Uo = [1, 450], Yo = [1, 451], eu = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 207, 217, 225, 226, 249, 284, 305, 313, 321], D2 = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 207, 217, 225, 226, 249, 284, 297, 305, 313, 321], Wn = [311, 312], Za = [60, 311, 312], ru = [1, 6, 12, 14, 28, 38, 60, 86, 96, 108, 142, 146, 147, 148, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], Qa = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 98, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], $a = [1, 475], t1 = [1, 476], ln = [1, 481], cn = [1, 482], iu = [1, 488], Ge = [6, 13, 14, 38, 60], e1 = [6, 13, 14, 38, 60, 142], Ko = [6, 13, 14, 38, 60, 142, 184], su = [60, 225, 226], nu = [1, 503], ou = [2, 296], au = [98, 182], qo = [11, 27, 36, 60, 83, 98, 182, 194, 206, 225, 226, 236], lu = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 330, 332], cu = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 207, 217, 225, 226, 249, 284, 297, 313], un = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321], Jn = [1, 521], hn = [6, 14, 134, 144, 175], r1 = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 302, 304, 305, 313, 320, 321, 322, 329, 330, 331, 332], i1 = [14, 302, 317], uu = [1, 6, 12, 14, 28, 38, 60, 86, 96, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], ki = [6, 13, 14], Xo = [2, 300], F2 = [1, 581], s1 = [25, 26, 29, 30, 32, 36, 57, 65, 83, 85, 91, 93, 95, 100, 103, 109, 110, 111, 112, 113, 114, 115, 116, 119, 122, 135, 136, 147, 148, 181, 182, 199, 206, 213, 214, 218, 219, 239, 240, 241, 244, 252, 254, 256, 262, 281, 282, 288, 294, 296, 298, 300, 304, 305, 314, 319, 323, 324, 325, 326, 327, 328], Wo = [1, 586], Jo = [1, 587], P2 = [1, 591], xi = [28, 60, 217, 225, 226], hu = [28, 60, 184, 217, 225, 226], pu = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 207, 217, 225, 226, 249, 284, 296, 298, 304, 305, 313, 321], Cr = [6, 14], n1 = [1, 617], o1 = [1, 616], Zn = [6, 14, 86, 179], Qn = [6, 11, 14, 86, 179, 184, 273], fu = [1, 627], _u = [83, 85, 86, 206], du = [1, 638], mu = [1, 639], yu = [225, 226], Lr = [1, 645], gu = [1, 654], M2 = [1, 655], Br = [1, 683], Hr = [1, 682], zr = [1, 675], Ur = [1, 671], Yr = [1, 672], Kr = [1, 673], qr = [1, 674], Xr = [1, 678], Wr = [1, 679], Jr = [1, 680], Zr = [1, 681], vu = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 146, 147, 148, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 291, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], bu = [12, 13, 60], a1 = [1, 696], bs = [1, 704], ks = [1, 698], xs = [1, 700], $n = [1, 753], ku = [1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 134, 142, 144, 146, 147, 148, 166, 175, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], xu = [6, 14, 60, 134, 144, 175], to = [1, 770], eo = [1, 771], ro = [1, 772], wu = [1, 769], l1 = [6, 14, 36, 57, 60, 95, 100, 134, 144, 146, 147, 148, 151, 159, 160, 161, 162, 163, 164, 165, 166, 175], Dr = [6, 14, 36, 57, 60, 95, 96, 100, 134, 144, 146, 147, 148, 151, 159, 160, 161, 162, 163, 164, 165, 166, 175], c1 = [1, 786], ci = [6, 13, 14, 28, 60], V2 = [6, 13, 14, 27, 28, 60, 98], u1 = [6, 14, 36, 57, 60, 95, 96, 100, 134, 144, 146, 147, 148, 151, 157, 159, 160, 161, 162, 163, 164, 165, 166, 175], j2 = [1, 822], G2 = [1, 823], Su = [60, 96], Tu = [1, 840], h1 = [36, 57, 60, 95, 96, 100, 146, 147, 148, 151, 159, 160, 161, 162, 163, 164, 165, 166], Eu = [96, 146, 147, 148], Au = {trace: function() {
|
1979 | }, yy: {}, symbols_: {error: 2, Root: 3, Body: 4, Block: 5, TERMINATOR: 6, BODYSTART: 7, Line: 8, Terminator: 9, Type: 10, TYPE: 11, EMPTY_BLOCK: 12, INDENT: 13, OUTDENT: 14, CSSDeclaration: 15, Expression: 16, VarDecl: 17, Comment: 18, Statement: 19, Decorators: 20, ImportDeclaration: 21, ExportDeclaration: 22, Return: 23, Throw: 24, STATEMENT: 25, BREAK: 26, CALL_START: 27, CALL_END: 28, CONTINUE: 29, DEBUGGER: 30, ExtendObject: 31, EXTEND: 32, Identifier: 33, ClassBody: 34, EXPORT: 35, "{": 36, ImportSpecifierList: 37, "}": 38, FROM: 39, String: 40, EXPORT_ALL: 41, AS: 42, Exportable: 43, DEFAULT: 44, DefaultExportable: 45, MethodDeclaration: 46, Class: 47, TagDeclaration: 48, VarAssign: 49, ImportOrExport: 50, IMPORT: 51, ImportDefaultSpecifier: 52, TYPEIMPORT: 53, ImportNamespaceSpecifier: 54, IMPORT_COMMA: 55, ImportFrom: 56, STRING: 57, IMPORT_ALL: 58, ImportSpecifier: 59, ",": 60, OptComma: 61, DecoratorIdentifier: 62, MixinIdentifier: 63, Require: 64, REQUIRE: 65, RequireArg: 66, Literal: 67, Parenthetical: 68, Await: 69, Value: 70, Code: 71, Operation: 72, Assign: 73, If: 74, Ternary: 75, Try: 76, While: 77, For: 78, Switch: 79, Tag: 80, ExpressionBlock: 81, Outdent: 82, IDENTIFIER: 83, SymbolIdentifier: 84, SYMBOLID: 85, DECORATOR: 86, MIXIN: 87, Key: 88, KEY: 89, Argvar: 90, ARGVAR: 91, Symbol: 92, SYMBOL: 93, Decorator: 94, "(": 95, ")": 96, ArgList: 97, ".": 98, AlphaNumeric: 99, NUMBER: 100, UNIT: 101, InterpolatedString: 102, STRING_START: 103, NEOSTRING: 104, Interpolation: 105, STRING_END: 106, "{{": 107, "}}": 108, JS: 109, REGEX: 110, BOOL: 111, TRUE: 112, FALSE: 113, NULL: 114, UNDEFINED: 115, RETURN: 116, Arguments: 117, Selector: 118, SELECTOR_START: 119, SELECTOR_PART: 120, SELECTOR_END: 121, TAG_START: 122, TagOptions: 123, TAG_END: 124, TagBody: 125, TagTypeName: 126, Self: 127, TAG_TYPE: 128, TagIdentifier: 129, StyleBlockDeclaration: 130, CSS: 131, CSS_SEL: 132, StyleBody: 133, CSS_END: 134, GLOBAL: 135, LOCAL: 136, StyleBlockBody: 137, OptStyleBody: 138, StyleNode: 139, StyleDeclaration: 140, StyleProperty: 141, ":": 142, StyleExpressions: 143, CSSPROP: 144, StyleOperator: 145, MATH: 146, "+": 147, "-": 148, StyleExpression: 149, StyleTerm: 150, "/": 151, StyleValue: 152, StyleOperation: 153, StyleFunctionArgs: 154, StyleFunctionArg: 155, StyleTermPlaceholder: 156, CSSUNIT: 157, StyleParens: 158, CSSVAR: 159, DIMENSION: 160, COLOR: 161, PERCENTAGE: 162, CSSURL: 163, CSSFUNCTION: 164, CSSIDENTIFIER: 165, COMPARE: 166, TAG_REF: 167, TAG_ID: 168, TAG_SYMBOL_ID: 169, SYMBOL_ID: 170, TAG_FLAG: 171, TAG_ATTR: 172, TAG_ON: 173, STYLE_START: 174, STYLE_END: 175, "T.": 176, "T:": 177, "T@": 178, "@": 179, TAG_LITERAL: 180, UNARY: 181, "#": 182, TAG_WS: 183, "=": 184, TagAttrValue: 185, TagFlag: 186, "%": 187, TagPartIdentifier: 188, VALUE_START: 189, VALUE_END: 190, TagBodyList: 191, TagBodyItem: 192, SEPARATOR: 193, "...": 194, Splat: 195, LOGIC: 196, TagHandler: 197, TagDeclarationBlock: 198, TAG: 199, TagType: 200, TagId: 201, Assignable: 202, AssignObj: 203, ObjAssignable: 204, SimpleObjAssignable: 205, "[": 206, "]": 207, HERECOMMENT: 208, COMMENT: 209, Method: 210, Do: 211, Begin: 212, BEGIN: 213, DO: 214, BLOCK_PARAM_START: 215, ParamList: 216, BLOCK_PARAM_END: 217, STATIC: 218, DEF: 219, MethodScope: 220, MethodScopeType: 221, MethodIdentifier: 222, MethodParams: 223, MethodBody: 224, DEF_BODY: 225, DEF_EMPTY: 226, This: 227, OptSemicolon: 228, ";": 229, Param: 230, ParamExpression: 231, ParamValue: 232, Object: 233, Array: 234, ParamVar: 235, BLOCK_ARG: 236, SPLAT: 237, VarKeyword: 238, VAR: 239, LET: 240, CONST: 241, VarAssignable: 242, SimpleAssignable: 243, ENV_FLAG: 244, Access: 245, SoakableOp: 246, INDEX_START: 247, IndexValue: 248, INDEX_END: 249, "?.": 250, Super: 251, SUPER: 252, TaggedTemplate: 253, AWAIT: 254, Range: 255, ARGUMENTS: 256, Invocation: 257, BANG: 258, AssignList: 259, ExpressionList: 260, ClassStart: 261, CLASS: 262, ClassName: 263, ClassBodyBlock: 264, ClassBodyLine: 265, ClassDeclLine: 266, ClassFieldDeclaration: 267, DECLARE: 268, ClassField: 269, ClassFieldOp: 270, WatchBody: 271, ClassFieldDecoration: 272, COMPOUND_ASSIGN: 273, ClassFieldIdentifier: 274, PROP: 275, ATTR: 276, ClassFieldBody: 277, WATCH: 278, OptFuncExist: 279, FUNC_EXIST: 280, THIS: 281, SELF: 282, RangeDots: 283, "..": 284, Arg: 285, DO_PLACEHOLDER: 286, SimpleArgs: 287, TRY: 288, Catch: 289, Finally: 290, FINALLY: 291, CATCH: 292, CATCH_VAR: 293, THROW: 294, WhileSource: 295, WHILE: 296, WHEN: 297, UNTIL: 298, Loop: 299, LOOP: 300, ForBody: 301, ELSE: 302, ForKeyword: 303, FOR: 304, POST_FOR: 305, ForStart: 306, ForSource: 307, ForVariables: 308, OWN: 309, ForValue: 310, FORIN: 311, FOROF: 312, BY: 313, SWITCH: 314, Whens: 315, When: 316, LEADING_WHEN: 317, IfBlock: 318, IF: 319, ELIF: 320, POST_IF: 321, "?": 322, NEW: 323, SQRT: 324, "---": 325, "+++": 326, "--": 327, "++": 328, EXP: 329, SHIFT: 330, NOT: 331, RELATION: 332, $accept: 0, $end: 1}, terminals_: {2: "error", 6: "TERMINATOR", 7: "BODYSTART", 11: "TYPE", 12: "EMPTY_BLOCK", 13: "INDENT", 14: "OUTDENT", 25: "STATEMENT", 26: "BREAK", 27: "CALL_START", 28: "CALL_END", 29: "CONTINUE", 30: "DEBUGGER", 32: "EXTEND", 35: "EXPORT", 36: "{", 38: "}", 39: "FROM", 41: "EXPORT_ALL", 42: "AS", 44: "DEFAULT", 51: "IMPORT", 53: "TYPEIMPORT", 55: "IMPORT_COMMA", 57: "STRING", 58: "IMPORT_ALL", 60: ",", 65: "REQUIRE", 83: "IDENTIFIER", 85: "SYMBOLID", 86: "DECORATOR", 87: "MIXIN", 89: "KEY", 91: "ARGVAR", 93: "SYMBOL", 95: "(", 96: ")", 98: ".", 100: "NUMBER", 101: "UNIT", 103: "STRING_START", 104: "NEOSTRING", 106: "STRING_END", 107: "{{", 108: "}}", 109: "JS", 110: "REGEX", 111: "BOOL", 112: "TRUE", 113: "FALSE", 114: "NULL", 115: "UNDEFINED", 116: "RETURN", 119: "SELECTOR_START", 120: "SELECTOR_PART", 121: "SELECTOR_END", 122: "TAG_START", 124: "TAG_END", 128: "TAG_TYPE", 131: "CSS", 132: "CSS_SEL", 134: "CSS_END", 135: "GLOBAL", 136: "LOCAL", 142: ":", 144: "CSSPROP", 146: "MATH", 147: "+", 148: "-", 151: "/", 157: "CSSUNIT", 159: "CSSVAR", 160: "DIMENSION", 161: "COLOR", 162: "PERCENTAGE", 163: "CSSURL", 164: "CSSFUNCTION", 165: "CSSIDENTIFIER", 166: "COMPARE", 167: "TAG_REF", 168: "TAG_ID", 169: "TAG_SYMBOL_ID", 170: "SYMBOL_ID", 171: "TAG_FLAG", 172: "TAG_ATTR", 173: "TAG_ON", 174: "STYLE_START", 175: "STYLE_END", 176: "T.", 177: "T:", 178: "T@", 179: "@", 180: "TAG_LITERAL", 181: "UNARY", 182: "#", 183: "TAG_WS", 184: "=", 187: "%", 188: "TagPartIdentifier", 189: "VALUE_START", 190: "VALUE_END", 193: "SEPARATOR", 194: "...", 196: "LOGIC", 199: "TAG", 206: "[", 207: "]", 208: "HERECOMMENT", 209: "COMMENT", 213: "BEGIN", 214: "DO", 215: "BLOCK_PARAM_START", 217: "BLOCK_PARAM_END", 218: "STATIC", 219: "DEF", 225: "DEF_BODY", 226: "DEF_EMPTY", 229: ";", 236: "BLOCK_ARG", 237: "SPLAT", 239: "VAR", 240: "LET", 241: "CONST", 244: "ENV_FLAG", 247: "INDEX_START", 249: "INDEX_END", 250: "?.", 252: "SUPER", 254: "AWAIT", 256: "ARGUMENTS", 258: "BANG", 262: "CLASS", 268: "DECLARE", 273: "COMPOUND_ASSIGN", 275: "PROP", 276: "ATTR", 278: "WATCH", 280: "FUNC_EXIST", 281: "THIS", 282: "SELF", 284: "..", 286: "DO_PLACEHOLDER", 288: "TRY", 291: "FINALLY", 292: "CATCH", 293: "CATCH_VAR", 294: "THROW", 296: "WHILE", 297: "WHEN", 298: "UNTIL", 300: "LOOP", 302: "ELSE", 304: "FOR", 305: "POST_FOR", 309: "OWN", 311: "FORIN", 312: "FOROF", 313: "BY", 314: "SWITCH", 317: "LEADING_WHEN", 319: "IF", 320: "ELIF", 321: "POST_IF", 322: "?", 323: "NEW", 324: "SQRT", 325: "---", 326: "+++", 327: "--", 328: "++", 329: "EXP", 330: "SHIFT", 331: "NOT", 332: "RELATION"}, productions_: [0, [3, 0], [3, 1], [3, 2], [4, 1], [4, 1], [4, 3], [4, 2], [9, 1], [10, 1], [5, 1], [5, 2], [5, 3], [5, 4], [8, 1], [8, 1], [8, 1], [8, 1], [8, 1], [8, 1], [8, 1], [8, 1], [19, 1], [19, 1], [19, 1], [19, 1], [19, 4], [19, 1], [19, 4], [19, 1], [31, 3], [22, 4], [22, 6], [22, 4], [22, 6], [22, 2], [22, 3], [43, 1], [43, 1], [43, 1], [43, 1], [43, 1], [45, 1], [50, 1], [50, 1], [52, 1], [21, 2], [21, 4], [21, 5], [21, 4], [21, 5], [21, 6], [21, 7], [21, 6], [21, 8], [56, 1], [54, 3], [37, 1], [37, 3], [37, 4], [37, 4], [37, 5], [37, 6], [59, 1], [59, 1], [59, 1], [59, 3], [59, 1], [59, 3], [64, 2], [66, 1], [66, 1], [66, 0], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [81, 1], [81, 3], [33, 1], [84, 1], [62, 1], [63, 1], [88, 1], [90, 1], [92, 1], [94, 1], [94, 3], [94, 4], [94, 3], [20, 1], [20, 2], [99, 2], [99, 1], [99, 1], [99, 1], [99, 1], [40, 1], [102, 1], [102, 2], [102, 2], [102, 2], [105, 2], [105, 3], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [23, 2], [23, 2], [23, 1], [118, 1], [118, 2], [118, 4], [118, 2], [80, 3], [80, 4], [126, 1], [126, 1], [126, 1], [126, 1], [126, 0], [130, 4], [15, 1], [15, 2], [15, 2], [137, 3], [137, 3], [138, 0], [138, 1], [133, 1], [133, 2], [133, 3], [133, 3], [139, 1], [139, 3], [140, 3], [141, 1], [145, 1], [145, 1], [145, 1], [143, 1], [143, 3], [149, 1], [149, 2], [149, 2], [149, 3], [152, 1], [152, 1], [153, 3], [153, 3], [154, 1], [154, 3], [155, 1], [155, 2], [155, 2], [155, 3], [156, 3], [156, 2], [158, 3], [158, 2], [150, 1], [150, 1], [150, 1], [150, 1], [150, 1], [150, 1], [150, 1], [150, 1], [150, 1], [150, 4], [150, 1], [150, 2], [123, 2], [123, 1], [123, 2], [123, 2], [123, 2], [123, 2], [123, 2], [123, 2], [123, 3], [123, 4], [123, 5], [123, 2], [123, 3], [123, 3], [123, 4], [123, 4], [123, 3], [123, 3], [123, 3], [123, 3], [123, 4], [123, 3], [123, 4], [123, 2], [123, 2], [123, 2], [123, 3], [129, 1], [129, 3], [129, 2], [129, 4], [186, 1], [186, 2], [185, 3], [125, 2], [125, 3], [125, 3], [125, 1], [191, 1], [191, 3], [191, 4], [191, 6], [191, 4], [191, 6], [192, 1], [192, 2], [192, 1], [192, 1], [192, 1], [192, 1], [192, 1], [197, 1], [197, 3], [197, 4], [48, 1], [48, 2], [48, 2], [48, 2], [198, 2], [198, 3], [198, 4], [198, 5], [200, 1], [201, 2], [73, 1], [73, 3], [73, 5], [203, 2], [203, 1], [203, 1], [203, 3], [203, 5], [203, 3], [203, 5], [203, 1], [205, 1], [205, 2], [205, 1], [205, 1], [204, 1], [204, 3], [204, 3], [204, 1], [18, 1], [18, 1], [71, 1], [71, 1], [71, 1], [212, 2], [211, 2], [211, 5], [210, 1], [210, 2], [210, 2], [46, 6], [46, 4], [223, 1], [223, 3], [221, 1], [221, 1], [222, 1], [222, 1], [222, 1], [222, 3], [222, 2], [224, 2], [224, 3], [224, 1], [220, 1], [220, 1], [220, 1], [61, 0], [61, 1], [228, 0], [228, 1], [216, 0], [216, 1], [216, 3], [231, 1], [231, 1], [231, 1], [231, 1], [231, 1], [231, 1], [232, 1], [230, 1], [230, 1], [230, 1], [230, 2], [230, 2], [230, 3], [230, 3], [230, 3], [230, 1], [235, 1], [235, 2], [195, 2], [238, 1], [238, 1], [238, 1], [242, 1], [242, 2], [242, 1], [242, 1], [17, 2], [49, 3], [49, 5], [243, 1], [243, 1], [243, 1], [243, 1], [243, 1], [243, 1], [243, 2], [245, 3], [245, 3], [245, 4], [245, 5], [246, 1], [246, 1], [251, 1], [202, 1], [202, 1], [202, 1], [253, 2], [253, 2], [69, 2], [70, 1], [70, 1], [70, 1], [70, 1], [70, 1], [70, 1], [70, 1], [70, 1], [70, 1], [70, 1], [70, 1], [70, 1], [70, 2], [248, 1], [233, 4], [259, 0], [259, 1], [259, 3], [259, 4], [259, 6], [260, 1], [260, 3], [260, 4], [260, 4], [260, 6], [47, 1], [47, 2], [47, 2], [47, 2], [261, 3], [261, 2], [261, 2], [261, 4], [261, 5], [261, 4], [263, 1], [263, 1], [263, 3], [263, 3], [34, 2], [34, 3], [34, 4], [264, 1], [264, 3], [264, 2], [265, 1], [265, 1], [265, 2], [265, 1], [265, 1], [265, 1], [266, 2], [266, 3], [266, 2], [266, 2], [266, 1], [266, 1], [267, 3], [267, 1], [267, 3], [267, 3], [272, 3], [271, 1], [271, 1], [270, 1], [270, 1], [269, 1], [269, 2], [269, 2], [269, 2], [274, 1], [274, 1], [277, 3], [257, 3], [257, 2], [279, 0], [279, 1], [117, 2], [117, 4], [227, 1], [127, 1], [234, 2], [234, 4], [234, 2], [283, 1], [283, 1], [255, 5], [97, 1], [97, 3], [97, 4], [97, 6], [97, 4], [97, 6], [82, 2], [82, 1], [285, 1], [285, 2], [285, 1], [285, 1], [285, 1], [287, 1], [287, 3], [76, 2], [76, 3], [76, 3], [76, 4], [290, 2], [289, 3], [289, 2], [24, 2], [68, 3], [68, 4], [68, 2], [295, 2], [295, 4], [295, 2], [295, 4], [77, 2], [77, 2], [77, 2], [77, 1], [299, 2], [299, 2], [78, 2], [78, 2], [78, 2], [78, 4], [303, 1], [303, 1], [301, 2], [301, 2], [306, 2], [306, 3], [306, 3], [310, 1], [310, 2], [310, 1], [310, 1], [308, 1], [308, 3], [308, 5], [307, 2], [307, 2], [307, 4], [307, 4], [307, 4], [307, 6], [307, 6], [79, 5], [79, 7], [79, 4], [79, 6], [315, 1], [315, 2], [316, 3], [316, 4], [318, 3], [318, 5], [318, 4], [318, 3], [74, 1], [74, 3], [74, 3], [75, 5], [72, 2], [72, 2], [72, 2], [72, 2], [72, 2], [72, 2], [72, 2], [72, 2], [72, 2], [72, 2], [72, 2], [72, 3], [72, 3], [72, 3], [72, 3], [72, 3], [72, 3], [72, 3], [72, 4], [72, 3], [72, 3], [72, 5]], performAction: function(x, Di, R, ir, h) {
|
1980 | var u = h.length - 1;
|
1981 | switch (ir) {
|
1982 | case 1:
|
1983 | return x.$ = new R.Root([]);
|
1984 | case 2:
|
1985 | return x.$ = new R.Root(h[u]);
|
1986 | case 3:
|
1987 | return x.$ = h[u - 1];
|
1988 | case 4:
|
1989 | case 10:
|
1990 | x.$ = new R.Block([]);
|
1991 | break;
|
1992 | case 5:
|
1993 | x.$ = new R.Block([]).add(h[u]);
|
1994 | break;
|
1995 | case 6:
|
1996 | case 398:
|
1997 | x.$ = h[u - 2].break(h[u - 1]).add(h[u]);
|
1998 | break;
|
1999 | case 7:
|
2000 | case 399:
|
2001 | x.$ = h[u - 1].break(h[u]);
|
2002 | break;
|
2003 | case 8:
|
2004 | x.$ = new R.Terminator(h[u]);
|
2005 | break;
|
2006 | case 9:
|
2007 | x.$ = new R.TypeAnnotation(h[u]);
|
2008 | break;
|
2009 | case 11:
|
2010 | x.$ = new R.Block([]).indented(h[u - 1], h[u]);
|
2011 | break;
|
2012 | case 12:
|
2013 | case 89:
|
2014 | case 142:
|
2015 | case 148:
|
2016 | case 223:
|
2017 | case 395:
|
2018 | x.$ = h[u - 1].indented(h[u - 2], h[u]);
|
2019 | break;
|
2020 | case 13:
|
2021 | case 396:
|
2022 | x.$ = h[u - 1].prebreak(h[u - 2]).indented(h[u - 3], h[u]);
|
2023 | break;
|
2024 | case 14:
|
2025 | case 15:
|
2026 | case 17:
|
2027 | case 18:
|
2028 | case 19:
|
2029 | case 20:
|
2030 | case 21:
|
2031 | case 22:
|
2032 | case 23:
|
2033 | case 37:
|
2034 | case 38:
|
2035 | case 39:
|
2036 | case 40:
|
2037 | case 41:
|
2038 | case 42:
|
2039 | case 43:
|
2040 | case 44:
|
2041 | case 55:
|
2042 | case 70:
|
2043 | case 71:
|
2044 | case 72:
|
2045 | case 73:
|
2046 | case 74:
|
2047 | case 75:
|
2048 | case 76:
|
2049 | case 77:
|
2050 | case 78:
|
2051 | case 79:
|
2052 | case 80:
|
2053 | case 81:
|
2054 | case 82:
|
2055 | case 83:
|
2056 | case 84:
|
2057 | case 85:
|
2058 | case 86:
|
2059 | case 87:
|
2060 | case 88:
|
2061 | case 106:
|
2062 | case 107:
|
2063 | case 115:
|
2064 | case 132:
|
2065 | case 144:
|
2066 | case 149:
|
2067 | case 153:
|
2068 | case 154:
|
2069 | case 155:
|
2070 | case 162:
|
2071 | case 163:
|
2072 | case 176:
|
2073 | case 182:
|
2074 | case 183:
|
2075 | case 232:
|
2076 | case 234:
|
2077 | case 235:
|
2078 | case 236:
|
2079 | case 237:
|
2080 | case 242:
|
2081 | case 252:
|
2082 | case 262:
|
2083 | case 263:
|
2084 | case 265:
|
2085 | case 266:
|
2086 | case 267:
|
2087 | case 270:
|
2088 | case 273:
|
2089 | case 274:
|
2090 | case 275:
|
2091 | case 279:
|
2092 | case 284:
|
2093 | case 288:
|
2094 | case 289:
|
2095 | case 290:
|
2096 | case 293:
|
2097 | case 294:
|
2098 | case 296:
|
2099 | case 297:
|
2100 | case 298:
|
2101 | case 299:
|
2102 | case 300:
|
2103 | case 301:
|
2104 | case 302:
|
2105 | case 306:
|
2106 | case 307:
|
2107 | case 308:
|
2108 | case 309:
|
2109 | case 310:
|
2110 | case 311:
|
2111 | case 312:
|
2112 | case 315:
|
2113 | case 325:
|
2114 | case 326:
|
2115 | case 327:
|
2116 | case 328:
|
2117 | case 330:
|
2118 | case 331:
|
2119 | case 336:
|
2120 | case 337:
|
2121 | case 340:
|
2122 | case 349:
|
2123 | case 350:
|
2124 | case 351:
|
2125 | case 355:
|
2126 | case 356:
|
2127 | case 357:
|
2128 | case 358:
|
2129 | case 359:
|
2130 | case 361:
|
2131 | case 362:
|
2132 | case 363:
|
2133 | case 364:
|
2134 | case 365:
|
2135 | case 366:
|
2136 | case 380:
|
2137 | case 400:
|
2138 | case 401:
|
2139 | case 403:
|
2140 | case 404:
|
2141 | case 405:
|
2142 | case 410:
|
2143 | case 411:
|
2144 | case 413:
|
2145 | case 417:
|
2146 | case 418:
|
2147 | case 425:
|
2148 | case 426:
|
2149 | case 449:
|
2150 | case 450:
|
2151 | case 452:
|
2152 | case 454:
|
2153 | case 455:
|
2154 | case 475:
|
2155 | case 482:
|
2156 | case 483:
|
2157 | case 489:
|
2158 | case 491:
|
2159 | case 492:
|
2160 | case 507:
|
2161 | case 515:
|
2162 | x.$ = h[u];
|
2163 | break;
|
2164 | case 16:
|
2165 | x.$ = h[u].option("block", true);
|
2166 | break;
|
2167 | case 24:
|
2168 | case 116:
|
2169 | x.$ = new R.Literal(h[u]);
|
2170 | break;
|
2171 | case 25:
|
2172 | x.$ = new R.BreakStatement(h[u]);
|
2173 | break;
|
2174 | case 26:
|
2175 | x.$ = new R.BreakStatement(h[u - 3], h[u - 1]);
|
2176 | break;
|
2177 | case 27:
|
2178 | x.$ = new R.ContinueStatement(h[u]);
|
2179 | break;
|
2180 | case 28:
|
2181 | x.$ = new R.ContinueStatement(h[u - 3], h[u - 1]);
|
2182 | break;
|
2183 | case 29:
|
2184 | x.$ = new R.DebuggerStatement(h[u]);
|
2185 | break;
|
2186 | case 30:
|
2187 | x.$ = new R.ExtendDeclaration(h[u - 1], null, h[u]).set({instanceOnly: true, extension: h[u - 2]});
|
2188 | break;
|
2189 | case 31:
|
2190 | x.$ = new R.ExportNamedDeclaration(h[u - 3], [h[u - 1]]);
|
2191 | break;
|
2192 | case 32:
|
2193 | x.$ = new R.ExportNamedDeclaration(h[u - 5], [h[u - 3]], h[u]);
|
2194 | break;
|
2195 | case 33:
|
2196 | x.$ = new R.ExportAllDeclaration(h[u - 3], [new R.ExportAllSpecifier(h[u - 2])], h[u]);
|
2197 | break;
|
2198 | case 34:
|
2199 | x.$ = new R.ExportAllDeclaration(h[u - 5], [new R.ExportAllSpecifier(h[u - 4], h[u - 2])], h[u]);
|
2200 | break;
|
2201 | case 35:
|
2202 | x.$ = new R.Export(h[u]).set({keyword: h[u - 1]});
|
2203 | break;
|
2204 | case 36:
|
2205 | x.$ = new R.Export(h[u]).set({keyword: h[u - 2], default: h[u - 1]});
|
2206 | break;
|
2207 | case 45:
|
2208 | x.$ = new R.ImportDefaultSpecifier(h[u]);
|
2209 | break;
|
2210 | case 46:
|
2211 | x.$ = new R.ImportDeclaration(h[u - 1], null, h[u]);
|
2212 | break;
|
2213 | case 47:
|
2214 | case 49:
|
2215 | x.$ = new R.ImportDeclaration(h[u - 3], [h[u - 2]], h[u]);
|
2216 | break;
|
2217 | case 48:
|
2218 | x.$ = new R.ImportTypeDeclaration(h[u - 4], [h[u - 2]], h[u]);
|
2219 | break;
|
2220 | case 50:
|
2221 | x.$ = new R.ImportDeclaration(h[u - 4], null, h[u]);
|
2222 | break;
|
2223 | case 51:
|
2224 | x.$ = new R.ImportDeclaration(h[u - 5], [h[u - 3]], h[u]);
|
2225 | break;
|
2226 | case 52:
|
2227 | x.$ = new R.ImportTypeDeclaration(h[u - 6], [h[u - 3]], h[u]);
|
2228 | break;
|
2229 | case 53:
|
2230 | x.$ = new R.ImportDeclaration(h[u - 5], [h[u - 4], h[u - 2]], h[u]);
|
2231 | break;
|
2232 | case 54:
|
2233 | x.$ = new R.ImportDeclaration(h[u - 7], [h[u - 6], h[u - 3]], h[u]);
|
2234 | break;
|
2235 | case 56:
|
2236 | x.$ = new R.ImportNamespaceSpecifier(new R.Literal(h[u - 2]), h[u]);
|
2237 | break;
|
2238 | case 57:
|
2239 | x.$ = new R.ESMSpecifierList([]).add(h[u]);
|
2240 | break;
|
2241 | case 58:
|
2242 | case 100:
|
2243 | case 147:
|
2244 | case 157:
|
2245 | case 167:
|
2246 | case 227:
|
2247 | case 240:
|
2248 | case 372:
|
2249 | case 376:
|
2250 | case 443:
|
2251 | x.$ = h[u - 2].add(h[u]);
|
2252 | break;
|
2253 | case 59:
|
2254 | x.$ = h[u - 3].add(h[u]);
|
2255 | break;
|
2256 | case 60:
|
2257 | case 196:
|
2258 | x.$ = h[u - 2];
|
2259 | break;
|
2260 | case 61:
|
2261 | x.$ = h[u - 3];
|
2262 | break;
|
2263 | case 62:
|
2264 | case 231:
|
2265 | case 379:
|
2266 | case 447:
|
2267 | x.$ = h[u - 5].concat(h[u - 2]);
|
2268 | break;
|
2269 | case 63:
|
2270 | case 64:
|
2271 | case 65:
|
2272 | x.$ = new R.ImportSpecifier(h[u]);
|
2273 | break;
|
2274 | case 66:
|
2275 | x.$ = new R.ImportSpecifier(h[u - 2], h[u]);
|
2276 | break;
|
2277 | case 67:
|
2278 | x.$ = new R.ImportSpecifier(new R.Literal(h[u]));
|
2279 | break;
|
2280 | case 68:
|
2281 | x.$ = new R.ImportSpecifier(new R.Literal(h[u - 2]), h[u]);
|
2282 | break;
|
2283 | case 69:
|
2284 | x.$ = new R.Require(h[u]).set({keyword: h[u - 1]});
|
2285 | break;
|
2286 | case 90:
|
2287 | case 94:
|
2288 | x.$ = new R.Identifier(h[u]);
|
2289 | break;
|
2290 | case 91:
|
2291 | x.$ = new R.SymbolIdentifier(h[u]);
|
2292 | break;
|
2293 | case 92:
|
2294 | x.$ = new R.DecoratorIdentifier(h[u]);
|
2295 | break;
|
2296 | case 93:
|
2297 | x.$ = new R.MixinIdentifier(h[u]);
|
2298 | break;
|
2299 | case 95:
|
2300 | x.$ = new R.Argvar(h[u]);
|
2301 | break;
|
2302 | case 96:
|
2303 | x.$ = new R.Symbol(h[u]);
|
2304 | break;
|
2305 | case 97:
|
2306 | x.$ = new R.Decorator(h[u]);
|
2307 | break;
|
2308 | case 98:
|
2309 | x.$ = new R.Decorator(h[u - 2]);
|
2310 | break;
|
2311 | case 99:
|
2312 | x.$ = new R.Decorator(h[u - 3]).set({params: h[u - 1]});
|
2313 | break;
|
2314 | case 101:
|
2315 | case 304:
|
2316 | case 493:
|
2317 | x.$ = [h[u]];
|
2318 | break;
|
2319 | case 102:
|
2320 | case 508:
|
2321 | x.$ = h[u - 1].concat(h[u]);
|
2322 | break;
|
2323 | case 103:
|
2324 | x.$ = new R.NumWithUnit(h[u - 1], h[u]);
|
2325 | break;
|
2326 | case 104:
|
2327 | x.$ = new R.Num(h[u]);
|
2328 | break;
|
2329 | case 105:
|
2330 | case 108:
|
2331 | x.$ = new R.Str(h[u]);
|
2332 | break;
|
2333 | case 109:
|
2334 | x.$ = new R.InterpolatedString([], {open: h[u]});
|
2335 | break;
|
2336 | case 110:
|
2337 | case 127:
|
2338 | case 146:
|
2339 | case 159:
|
2340 | case 160:
|
2341 | case 169:
|
2342 | case 170:
|
2343 | case 217:
|
2344 | case 220:
|
2345 | x.$ = h[u - 1].add(h[u]);
|
2346 | break;
|
2347 | case 111:
|
2348 | x.$ = h[u] ? h[u - 1].add(h[u]) : h[u - 1];
|
2349 | break;
|
2350 | case 112:
|
2351 | case 129:
|
2352 | x.$ = h[u - 1].option("close", h[u]);
|
2353 | break;
|
2354 | case 113:
|
2355 | x.$ = null;
|
2356 | break;
|
2357 | case 114:
|
2358 | case 212:
|
2359 | case 213:
|
2360 | case 221:
|
2361 | case 224:
|
2362 | case 285:
|
2363 | case 448:
|
2364 | x.$ = h[u - 1];
|
2365 | break;
|
2366 | case 117:
|
2367 | x.$ = new R.RegExp(h[u]);
|
2368 | break;
|
2369 | case 118:
|
2370 | x.$ = new R.Bool(h[u]);
|
2371 | break;
|
2372 | case 119:
|
2373 | x.$ = new R.True(h[u]);
|
2374 | break;
|
2375 | case 120:
|
2376 | x.$ = new R.False(h[u]);
|
2377 | break;
|
2378 | case 121:
|
2379 | x.$ = new R.Nil(h[u]);
|
2380 | break;
|
2381 | case 122:
|
2382 | x.$ = new R.Undefined(h[u]);
|
2383 | break;
|
2384 | case 123:
|
2385 | case 124:
|
2386 | x.$ = new R.Return(h[u]).set({keyword: h[u - 1]});
|
2387 | break;
|
2388 | case 125:
|
2389 | x.$ = new R.Return().set({keyword: h[u]});
|
2390 | break;
|
2391 | case 126:
|
2392 | x.$ = new R.Selector([], {type: h[u], open: h[u]});
|
2393 | break;
|
2394 | case 128:
|
2395 | case 218:
|
2396 | x.$ = h[u - 3].add(h[u - 1]);
|
2397 | break;
|
2398 | case 130:
|
2399 | x.$ = h[u - 1].set({open: h[u - 2], close: h[u]});
|
2400 | break;
|
2401 | case 131:
|
2402 | x.$ = h[u - 2].set({body: h[u], open: h[u - 3], close: h[u - 1]});
|
2403 | break;
|
2404 | case 133:
|
2405 | case 134:
|
2406 | case 250:
|
2407 | x.$ = new R.TagTypeIdentifier(h[u]);
|
2408 | break;
|
2409 | case 135:
|
2410 | x.$ = new R.ExpressionNode(h[u]);
|
2411 | break;
|
2412 | case 136:
|
2413 | x.$ = new R.TagTypeIdentifier("div");
|
2414 | break;
|
2415 | case 137:
|
2416 | case 150:
|
2417 | x.$ = new R.StyleRuleSet(h[u - 2], h[u - 1]);
|
2418 | break;
|
2419 | case 138:
|
2420 | x.$ = h[u].set({toplevel: true});
|
2421 | break;
|
2422 | case 139:
|
2423 | case 245:
|
2424 | case 280:
|
2425 | case 383:
|
2426 | x.$ = h[u].set({global: h[u - 1]});
|
2427 | break;
|
2428 | case 140:
|
2429 | case 382:
|
2430 | x.$ = h[u].set({local: h[u - 1]});
|
2431 | break;
|
2432 | case 141:
|
2433 | x.$ = new R.StyleBody([]).indented(h[u - 2], h[u]);
|
2434 | break;
|
2435 | case 143:
|
2436 | x.$ = new R.StyleBody([]);
|
2437 | break;
|
2438 | case 145:
|
2439 | x.$ = new R.StyleBody([h[u]]);
|
2440 | break;
|
2441 | case 151:
|
2442 | x.$ = new R.StyleDeclaration(h[u - 2], h[u].set({parens: false}));
|
2443 | break;
|
2444 | case 152:
|
2445 | x.$ = new R.StyleProperty([h[u]]);
|
2446 | break;
|
2447 | case 156:
|
2448 | case 166:
|
2449 | x.$ = new R.StyleExpressions([h[u]]);
|
2450 | break;
|
2451 | case 158:
|
2452 | case 168:
|
2453 | x.$ = new R.StyleExpression().add(h[u]);
|
2454 | break;
|
2455 | case 161:
|
2456 | case 171:
|
2457 | x.$ = h[u - 2].addParam(h[u], h[u - 1]);
|
2458 | break;
|
2459 | case 164:
|
2460 | x.$ = new R.StyleOperation([h[u - 2], h[u - 1], h[u]]);
|
2461 | break;
|
2462 | case 165:
|
2463 | x.$ = h[u - 2].add([h[u - 1], h[u]]);
|
2464 | break;
|
2465 | case 172:
|
2466 | x.$ = new R.StyleInterpolationExpression(h[u - 1]).setEnds(h[u - 2], h[u]);
|
2467 | break;
|
2468 | case 173:
|
2469 | case 175:
|
2470 | x.$ = h[u - 1].set({unit: h[u]});
|
2471 | break;
|
2472 | case 174:
|
2473 | x.$ = new R.StyleParens(h[u - 1]).setEnds(h[u - 2], h[u]);
|
2474 | break;
|
2475 | case 177:
|
2476 | x.$ = new R.StyleVar(h[u]);
|
2477 | break;
|
2478 | case 178:
|
2479 | case 180:
|
2480 | x.$ = new R.StyleDimension(h[u]);
|
2481 | break;
|
2482 | case 179:
|
2483 | x.$ = new R.StyleColor(h[u]);
|
2484 | break;
|
2485 | case 181:
|
2486 | x.$ = new R.StyleNumber(h[u]);
|
2487 | break;
|
2488 | case 184:
|
2489 | x.$ = new R.StyleURL(h[u]);
|
2490 | break;
|
2491 | case 185:
|
2492 | x.$ = new R.StyleFunction(h[u - 3], h[u - 1]);
|
2493 | break;
|
2494 | case 186:
|
2495 | x.$ = new R.StyleIdentifier(h[u]);
|
2496 | break;
|
2497 | case 187:
|
2498 | x.$ = h[u].set({op: h[u - 1]});
|
2499 | break;
|
2500 | case 188:
|
2501 | x.$ = new R.Tag({type: h[u - 1], reference: h[u]});
|
2502 | break;
|
2503 | case 189:
|
2504 | x.$ = new R.Tag({type: h[u]});
|
2505 | break;
|
2506 | case 190:
|
2507 | x.$ = h[u - 1].addPart(h[u], R.TagId);
|
2508 | break;
|
2509 | case 191:
|
2510 | case 192:
|
2511 | x.$ = h[u - 1].addPart(new R.IdentifierExpression(h[u].cloneSlice(1)), R.TagId);
|
2512 | break;
|
2513 | case 193:
|
2514 | x.$ = h[u - 1].addPart(h[u], R.TagFlag);
|
2515 | break;
|
2516 | case 194:
|
2517 | x.$ = h[u - 1].addPart(h[u], R.TagAttr);
|
2518 | break;
|
2519 | case 195:
|
2520 | x.$ = h[u - 1].addPart(h[u], R.TagHandler);
|
2521 | break;
|
2522 | case 197:
|
2523 | x.$ = h[u - 3].addPart(new R.StyleRuleSet(null, h[u - 1]), R.TagFlag);
|
2524 | break;
|
2525 | case 198:
|
2526 | x.$ = h[u - 4].addPart(new R.StyleRuleSet(null, h[u - 1]), R.TagFlag);
|
2527 | break;
|
2528 | case 199:
|
2529 | x.$ = h[u - 1].addPart(new R.MixinIdentifier(h[u]), R.TagFlag);
|
2530 | break;
|
2531 | case 200:
|
2532 | case 201:
|
2533 | x.$ = h[u - 2].addPart(h[u], R.TagHandler);
|
2534 | break;
|
2535 | case 202:
|
2536 | x.$ = h[u - 3].addPart(h[u].prepend("_"), R.TagFlag);
|
2537 | break;
|
2538 | case 203:
|
2539 | x.$ = h[u - 3].addPart(h[u].prepend("!"), R.TagFlag);
|
2540 | break;
|
2541 | case 204:
|
2542 | x.$ = h[u - 2].addPart(h[u], R.TagFlag);
|
2543 | break;
|
2544 | case 205:
|
2545 | x.$ = h[u - 2].addPart(h[u], R.TagId);
|
2546 | break;
|
2547 | case 206:
|
2548 | x.$ = h[u - 2].addPart(h[u - 1], R.TagSep).addPart(h[u], R.TagAttr);
|
2549 | break;
|
2550 | case 207:
|
2551 | x.$ = h[u - 2].addPart(new R.ArgList([]), R.TagArgList);
|
2552 | break;
|
2553 | case 208:
|
2554 | case 210:
|
2555 | x.$ = h[u - 3].addPart(h[u - 1], R.TagArgList);
|
2556 | break;
|
2557 | case 209:
|
2558 | x.$ = h[u - 2].addPart(null, R.TagArgList);
|
2559 | break;
|
2560 | case 211:
|
2561 | x.$ = h[u - 1].addPart(h[u], R.TagSep);
|
2562 | break;
|
2563 | case 214:
|
2564 | x.$ = h[u - 2].addPart(h[u], R.TagAttrValue, h[u - 1]);
|
2565 | break;
|
2566 | case 215:
|
2567 | x.$ = new R.IdentifierExpression(h[u]);
|
2568 | break;
|
2569 | case 216:
|
2570 | case 268:
|
2571 | case 269:
|
2572 | x.$ = new R.IdentifierExpression(h[u - 1]);
|
2573 | break;
|
2574 | case 219:
|
2575 | x.$ = new R.TagFlag();
|
2576 | break;
|
2577 | case 222:
|
2578 | x.$ = new R.TagBody([]).indented(h[u - 1], h[u]);
|
2579 | break;
|
2580 | case 225:
|
2581 | x.$ = new R.TagBody([h[u]]);
|
2582 | break;
|
2583 | case 226:
|
2584 | x.$ = new R.TagBody([]).add(h[u]);
|
2585 | break;
|
2586 | case 228:
|
2587 | case 373:
|
2588 | case 377:
|
2589 | case 444:
|
2590 | x.$ = h[u - 3].add(h[u - 1]).add(h[u]);
|
2591 | break;
|
2592 | case 229:
|
2593 | case 445:
|
2594 | x.$ = h[u - 5].add(h[u - 1]).add(h[u]);
|
2595 | break;
|
2596 | case 230:
|
2597 | case 378:
|
2598 | case 446:
|
2599 | x.$ = h[u - 2].indented(h[u - 3], h[u]);
|
2600 | break;
|
2601 | case 233:
|
2602 | case 451:
|
2603 | x.$ = new R.Splat(h[u]).set({keyword: h[u - 1]});
|
2604 | break;
|
2605 | case 238:
|
2606 | x.$ = h[u].set({inTagTree: true});
|
2607 | break;
|
2608 | case 239:
|
2609 | x.$ = new R.TagHandler(new R.IdentifierExpression(h[u].cloneSlice(1, "TAG_LITERAL")));
|
2610 | break;
|
2611 | case 241:
|
2612 | x.$ = h[u - 3].add(h[u - 1], h[u - 2].generated ? R.TagHandlerCallback : R.TagArgList, h[u - 2], h[u]);
|
2613 | break;
|
2614 | case 243:
|
2615 | x.$ = h[u].set({extension: true});
|
2616 | break;
|
2617 | case 244:
|
2618 | x.$ = h[u].set({local: true});
|
2619 | break;
|
2620 | case 246:
|
2621 | x.$ = new R.TagDeclaration(h[u]).set({keyword: h[u - 1]});
|
2622 | break;
|
2623 | case 247:
|
2624 | x.$ = new R.TagDeclaration(h[u - 1], null, h[u]).set({keyword: h[u - 2]});
|
2625 | break;
|
2626 | case 248:
|
2627 | x.$ = new R.TagDeclaration(h[u - 2], h[u]).set({keyword: h[u - 3]});
|
2628 | break;
|
2629 | case 249:
|
2630 | x.$ = new R.TagDeclaration(h[u - 3], h[u - 1], h[u]).set({keyword: h[u - 4]});
|
2631 | break;
|
2632 | case 251:
|
2633 | x.$ = new R.TagIdRef(h[u]);
|
2634 | break;
|
2635 | case 253:
|
2636 | case 333:
|
2637 | x.$ = new R.Assign(h[u - 1], h[u - 2], h[u]);
|
2638 | break;
|
2639 | case 254:
|
2640 | case 334:
|
2641 | x.$ = new R.Assign(h[u - 3], h[u - 4], h[u - 1].indented(h[u - 2], h[u]));
|
2642 | break;
|
2643 | case 255:
|
2644 | x.$ = new R.ObjRestAttr(h[u]).set({spread: h[u - 1]});
|
2645 | break;
|
2646 | case 256:
|
2647 | x.$ = h[u].set({inObject: true});
|
2648 | break;
|
2649 | case 257:
|
2650 | x.$ = new R.ObjAttr(h[u]);
|
2651 | break;
|
2652 | case 258:
|
2653 | x.$ = new R.ObjAttr(h[u - 2], h[u]);
|
2654 | break;
|
2655 | case 259:
|
2656 | x.$ = new R.ObjAttr(h[u - 4], h[u - 1].indented(h[u - 2], h[u]));
|
2657 | break;
|
2658 | case 260:
|
2659 | x.$ = new R.ObjAttr(h[u - 2], null, h[u]);
|
2660 | break;
|
2661 | case 261:
|
2662 | x.$ = new R.ObjAttr(h[u - 4], null, h[u - 1].indented(h[u - 2], h[u]));
|
2663 | break;
|
2664 | case 264:
|
2665 | case 292:
|
2666 | case 329:
|
2667 | case 341:
|
2668 | case 424:
|
2669 | case 438:
|
2670 | case 467:
|
2671 | case 490:
|
2672 | x.$ = h[u - 1].set({datatype: h[u]});
|
2673 | break;
|
2674 | case 271:
|
2675 | x.$ = new R.Comment(h[u], true);
|
2676 | break;
|
2677 | case 272:
|
2678 | x.$ = new R.Comment(h[u], false);
|
2679 | break;
|
2680 | case 276:
|
2681 | x.$ = new R.Begin(h[u]);
|
2682 | break;
|
2683 | case 277:
|
2684 | x.$ = new R.Lambda([], h[u], null, null, {bound: true, keyword: h[u - 1]});
|
2685 | break;
|
2686 | case 278:
|
2687 | x.$ = new R.Lambda(h[u - 2], h[u], null, null, {bound: true, keyword: h[u - 4]});
|
2688 | break;
|
2689 | case 281:
|
2690 | case 406:
|
2691 | case 409:
|
2692 | x.$ = h[u].set({static: h[u - 1]});
|
2693 | break;
|
2694 | case 282:
|
2695 | x.$ = new R.MethodDeclaration(h[u - 1], h[u], h[u - 2], h[u - 4], h[u - 3]).set({def: h[u - 5], keyword: h[u - 5], datatype: h[u - 2].option("datatype")});
|
2696 | break;
|
2697 | case 283:
|
2698 | x.$ = new R.MethodDeclaration(h[u - 1], h[u], h[u - 2], null).set({def: h[u - 3], keyword: h[u - 3], datatype: h[u - 2].option("datatype")});
|
2699 | break;
|
2700 | case 286:
|
2701 | x.$ = {static: true};
|
2702 | break;
|
2703 | case 287:
|
2704 | x.$ = {};
|
2705 | break;
|
2706 | case 291:
|
2707 | x.$ = new R.InterpolatedIdentifier(h[u - 1]);
|
2708 | break;
|
2709 | case 295:
|
2710 | x.$ = new R.Block([]).set({end: h[u]._loc});
|
2711 | break;
|
2712 | case 303:
|
2713 | x.$ = [];
|
2714 | break;
|
2715 | case 305:
|
2716 | x.$ = h[u - 2].concat(h[u]);
|
2717 | break;
|
2718 | case 313:
|
2719 | case 314:
|
2720 | case 322:
|
2721 | x.$ = new R.Param(h[u]);
|
2722 | break;
|
2723 | case 316:
|
2724 | x.$ = h[u].set({splat: h[u - 1]});
|
2725 | break;
|
2726 | case 317:
|
2727 | x.$ = h[u].set({blk: h[u - 1]});
|
2728 | break;
|
2729 | case 318:
|
2730 | x.$ = new R.Param(h[u - 2].value(), h[u]).set({datatype: h[u - 2].option("datatype")});
|
2731 | break;
|
2732 | case 319:
|
2733 | case 320:
|
2734 | x.$ = new R.Param(h[u - 2], h[u]);
|
2735 | break;
|
2736 | case 321:
|
2737 | x.$ = new R.RestParam(h[u]);
|
2738 | break;
|
2739 | case 323:
|
2740 | x.$ = new R.Param(h[u - 1]).set({datatype: h[u]});
|
2741 | break;
|
2742 | case 324:
|
2743 | x.$ = R.SPLAT(h[u]);
|
2744 | break;
|
2745 | case 332:
|
2746 | x.$ = new R.VarReference(h[u], h[u - 1]);
|
2747 | break;
|
2748 | case 335:
|
2749 | x.$ = new R.EnvFlag(h[u]);
|
2750 | break;
|
2751 | case 338:
|
2752 | case 390:
|
2753 | x.$ = new R.VarOrAccess(h[u]);
|
2754 | break;
|
2755 | case 339:
|
2756 | case 391:
|
2757 | x.$ = new R.Access(".", null, h[u]);
|
2758 | break;
|
2759 | case 342:
|
2760 | case 392:
|
2761 | case 532:
|
2762 | case 533:
|
2763 | case 534:
|
2764 | case 535:
|
2765 | case 536:
|
2766 | case 538:
|
2767 | case 539:
|
2768 | x.$ = R.OP(h[u - 1], h[u - 2], h[u]);
|
2769 | break;
|
2770 | case 343:
|
2771 | case 393:
|
2772 | x.$ = new R.IndexAccess(h[u - 1], h[u - 2], h[u]);
|
2773 | break;
|
2774 | case 344:
|
2775 | x.$ = new R.IndexAccess(".", h[u - 3], h[u - 1]);
|
2776 | break;
|
2777 | case 345:
|
2778 | x.$ = R.OP(h[u - 3], h[u - 4], h[u - 1]);
|
2779 | break;
|
2780 | case 348:
|
2781 | x.$ = new R.Super(h[u]);
|
2782 | break;
|
2783 | case 352:
|
2784 | case 353:
|
2785 | x.$ = new R.TaggedTemplate(h[u - 1], h[u]);
|
2786 | break;
|
2787 | case 354:
|
2788 | x.$ = new R.Await(h[u]).set({keyword: h[u - 1]});
|
2789 | break;
|
2790 | case 360:
|
2791 | x.$ = R.ARGUMENTS;
|
2792 | break;
|
2793 | case 367:
|
2794 | x.$ = new R.BangCall(h[u - 1]).set({keyword: h[u]});
|
2795 | break;
|
2796 | case 368:
|
2797 | x.$ = new R.Index(h[u]);
|
2798 | break;
|
2799 | case 369:
|
2800 | x.$ = new R.Obj(h[u - 2], h[u - 3].generated).setEnds(h[u - 3], h[u]);
|
2801 | break;
|
2802 | case 370:
|
2803 | x.$ = new R.AssignList([]);
|
2804 | break;
|
2805 | case 371:
|
2806 | x.$ = new R.AssignList([h[u]]);
|
2807 | break;
|
2808 | case 374:
|
2809 | x.$ = h[u - 5].concat(h[u - 2].indented(h[u - 3], h[u]));
|
2810 | break;
|
2811 | case 375:
|
2812 | x.$ = new R.ExpressionList([]).add(h[u]);
|
2813 | break;
|
2814 | case 381:
|
2815 | x.$ = h[u].set({extension: h[u - 1]});
|
2816 | break;
|
2817 | case 384:
|
2818 | x.$ = new R.ClassDeclaration(h[u - 1], null, h[u]).set({keyword: h[u - 2]});
|
2819 | break;
|
2820 | case 385:
|
2821 | x.$ = new R.ClassDeclaration(h[u], null, []).set({keyword: h[u - 1]});
|
2822 | break;
|
2823 | case 386:
|
2824 | x.$ = new R.ClassDeclaration(null, null, h[u]).set({keyword: h[u - 1]});
|
2825 | break;
|
2826 | case 387:
|
2827 | x.$ = new R.ClassDeclaration(h[u - 2], h[u], []).set({keyword: h[u - 3]});
|
2828 | break;
|
2829 | case 388:
|
2830 | x.$ = new R.ClassDeclaration(h[u - 3], h[u - 1], h[u]).set({keyword: h[u - 4]});
|
2831 | break;
|
2832 | case 389:
|
2833 | x.$ = new R.ClassDeclaration(null, h[u - 1], h[u]).set({keyword: h[u - 3]});
|
2834 | break;
|
2835 | case 394:
|
2836 | x.$ = new R.ClassBody([]).indented(h[u - 1], h[u]);
|
2837 | break;
|
2838 | case 397:
|
2839 | x.$ = new R.ClassBody([]).add(h[u]);
|
2840 | break;
|
2841 | case 402:
|
2842 | x.$ = h[u - 1].concat([h[u]]);
|
2843 | break;
|
2844 | case 407:
|
2845 | x.$ = h[u].set({static: h[u - 1], declareOnly: h[u - 2]});
|
2846 | break;
|
2847 | case 408:
|
2848 | x.$ = h[u].set({declareOnly: h[u - 1]});
|
2849 | break;
|
2850 | case 412:
|
2851 | x.$ = h[u - 2].set({value: h[u], op: h[u - 1]});
|
2852 | break;
|
2853 | case 414:
|
2854 | case 415:
|
2855 | case 416:
|
2856 | x.$ = h[u - 2].set({watch: h[u]});
|
2857 | break;
|
2858 | case 421:
|
2859 | x.$ = new R.ClassField(h[u]);
|
2860 | break;
|
2861 | case 422:
|
2862 | x.$ = new R.ClassProperty(h[u]).set({keyword: h[u - 1]});
|
2863 | break;
|
2864 | case 423:
|
2865 | x.$ = new R.ClassAttribute(h[u]).set({keyword: h[u - 1]});
|
2866 | break;
|
2867 | case 427:
|
2868 | x.$ = [h[u - 2], h[u - 1]];
|
2869 | break;
|
2870 | case 428:
|
2871 | x.$ = new R.Call(h[u - 2], h[u], h[u - 1]);
|
2872 | break;
|
2873 | case 429:
|
2874 | x.$ = h[u - 1].addBlock(h[u]);
|
2875 | break;
|
2876 | case 430:
|
2877 | x.$ = false;
|
2878 | break;
|
2879 | case 431:
|
2880 | x.$ = true;
|
2881 | break;
|
2882 | case 432:
|
2883 | x.$ = new R.ArgList([]).setEnds(h[u - 1], h[u]);
|
2884 | break;
|
2885 | case 433:
|
2886 | x.$ = h[u - 2].setEnds(h[u - 3], h[u]);
|
2887 | break;
|
2888 | case 434:
|
2889 | x.$ = new R.This(h[u]);
|
2890 | break;
|
2891 | case 435:
|
2892 | x.$ = new R.Self(h[u]);
|
2893 | break;
|
2894 | case 436:
|
2895 | x.$ = new R.Arr(new R.ArgList([])).setEnds(h[u - 1], h[u]);
|
2896 | break;
|
2897 | case 437:
|
2898 | x.$ = new R.Arr(h[u - 2]).setEnds(h[u - 3], h[u - 2]);
|
2899 | break;
|
2900 | case 439:
|
2901 | x.$ = "..";
|
2902 | break;
|
2903 | case 440:
|
2904 | x.$ = "...";
|
2905 | break;
|
2906 | case 441:
|
2907 | x.$ = R.OP(h[u - 2], h[u - 3], h[u - 1]);
|
2908 | break;
|
2909 | case 442:
|
2910 | x.$ = new R.ArgList([h[u]]);
|
2911 | break;
|
2912 | case 453:
|
2913 | x.$ = new R.DoPlaceholder(h[u]);
|
2914 | break;
|
2915 | case 456:
|
2916 | x.$ = [].concat(h[u - 2], h[u]);
|
2917 | break;
|
2918 | case 457:
|
2919 | x.$ = new R.Try(h[u]);
|
2920 | break;
|
2921 | case 458:
|
2922 | x.$ = new R.Try(h[u - 1], h[u]);
|
2923 | break;
|
2924 | case 459:
|
2925 | x.$ = new R.Try(h[u - 1], null, h[u]);
|
2926 | break;
|
2927 | case 460:
|
2928 | x.$ = new R.Try(h[u - 2], h[u - 1], h[u]);
|
2929 | break;
|
2930 | case 461:
|
2931 | x.$ = new R.Finally(h[u]);
|
2932 | break;
|
2933 | case 462:
|
2934 | x.$ = new R.Catch(h[u], h[u - 1]);
|
2935 | break;
|
2936 | case 463:
|
2937 | x.$ = new R.Catch(h[u], null);
|
2938 | break;
|
2939 | case 464:
|
2940 | x.$ = new R.Throw(h[u]);
|
2941 | break;
|
2942 | case 465:
|
2943 | x.$ = new R.Parens(h[u - 1], h[u - 2], h[u]);
|
2944 | break;
|
2945 | case 466:
|
2946 | x.$ = new R.ExpressionWithUnit(new R.Parens(h[u - 2], h[u - 3], h[u - 1]), h[u]);
|
2947 | break;
|
2948 | case 468:
|
2949 | x.$ = new R.While(h[u], {keyword: h[u - 1]});
|
2950 | break;
|
2951 | case 469:
|
2952 | x.$ = new R.While(h[u - 2], {guard: h[u], keyword: h[u - 3]});
|
2953 | break;
|
2954 | case 470:
|
2955 | x.$ = new R.While(h[u], {invert: true, keyword: h[u - 1]});
|
2956 | break;
|
2957 | case 471:
|
2958 | x.$ = new R.While(h[u - 2], {invert: true, guard: h[u], keyword: h[u - 3]});
|
2959 | break;
|
2960 | case 472:
|
2961 | case 480:
|
2962 | x.$ = h[u - 1].addBody(h[u]);
|
2963 | break;
|
2964 | case 473:
|
2965 | case 474:
|
2966 | x.$ = h[u].addBody(R.Block.wrap([h[u - 1]]));
|
2967 | break;
|
2968 | case 476:
|
2969 | x.$ = new R.While(new R.Literal("true", {keyword: h[u - 1]})).addBody(h[u]);
|
2970 | break;
|
2971 | case 477:
|
2972 | x.$ = new R.While(new R.Literal("true", {keyword: h[u - 1]})).addBody(R.Block.wrap([h[u]]));
|
2973 | break;
|
2974 | case 478:
|
2975 | case 479:
|
2976 | x.$ = h[u].addBody([h[u - 1]]);
|
2977 | break;
|
2978 | case 481:
|
2979 | x.$ = h[u - 3].addBody(h[u - 2]).addElse(h[u]);
|
2980 | break;
|
2981 | case 484:
|
2982 | x.$ = {source: new R.ValueNode(h[u])};
|
2983 | break;
|
2984 | case 485:
|
2985 | x.$ = h[u].configure({own: h[u - 1].own, await: h[u - 1].await, name: h[u - 1][0], index: h[u - 1][1], keyword: h[u - 1].keyword, params: h[u - 1]});
|
2986 | break;
|
2987 | case 486:
|
2988 | x.$ = (h[u].keyword = h[u - 1]) && h[u];
|
2989 | break;
|
2990 | case 487:
|
2991 | x.$ = (h[u].await = h[u - 1]) && (h[u].keyword = h[u - 2]) && h[u];
|
2992 | break;
|
2993 | case 488:
|
2994 | x.$ = (h[u].own = true) && (h[u].keyword = h[u - 2]) && h[u];
|
2995 | break;
|
2996 | case 494:
|
2997 | x.$ = [h[u - 2], h[u]];
|
2998 | break;
|
2999 | case 495:
|
3000 | x.$ = [h[u - 4], h[u - 2], h[u]];
|
3001 | break;
|
3002 | case 496:
|
3003 | x.$ = new R.ForIn({source: h[u]});
|
3004 | break;
|
3005 | case 497:
|
3006 | x.$ = new R.ForOf({source: h[u], object: true});
|
3007 | break;
|
3008 | case 498:
|
3009 | x.$ = new R.ForIn({source: h[u - 2], guard: h[u]});
|
3010 | break;
|
3011 | case 499:
|
3012 | x.$ = new R.ForOf({source: h[u - 2], guard: h[u], object: true});
|
3013 | break;
|
3014 | case 500:
|
3015 | x.$ = new R.ForIn({source: h[u - 2], step: h[u]});
|
3016 | break;
|
3017 | case 501:
|
3018 | x.$ = new R.ForIn({source: h[u - 4], guard: h[u - 2], step: h[u]});
|
3019 | break;
|
3020 | case 502:
|
3021 | x.$ = new R.ForIn({source: h[u - 4], step: h[u - 2], guard: h[u]});
|
3022 | break;
|
3023 | case 503:
|
3024 | x.$ = new R.Switch(h[u - 3], h[u - 1]);
|
3025 | break;
|
3026 | case 504:
|
3027 | x.$ = new R.Switch(h[u - 5], h[u - 3], h[u - 1]);
|
3028 | break;
|
3029 | case 505:
|
3030 | x.$ = new R.Switch(null, h[u - 1]);
|
3031 | break;
|
3032 | case 506:
|
3033 | x.$ = new R.Switch(null, h[u - 3], h[u - 1]);
|
3034 | break;
|
3035 | case 509:
|
3036 | x.$ = [new R.SwitchCase(h[u - 1], h[u])];
|
3037 | break;
|
3038 | case 510:
|
3039 | x.$ = [new R.SwitchCase(h[u - 2], h[u - 1])];
|
3040 | break;
|
3041 | case 511:
|
3042 | x.$ = new R.If(h[u - 1], h[u], {type: h[u - 2]});
|
3043 | break;
|
3044 | case 512:
|
3045 | x.$ = h[u - 4].addElse(new R.If(h[u - 1], h[u], {type: h[u - 2]}));
|
3046 | break;
|
3047 | case 513:
|
3048 | x.$ = h[u - 3].addElse(new R.If(h[u - 1], h[u], {type: h[u - 2]}));
|
3049 | break;
|
3050 | case 514:
|
3051 | x.$ = h[u - 2].addElse(h[u].set({keyword: h[u - 1]}));
|
3052 | break;
|
3053 | case 516:
|
3054 | x.$ = new R.If(h[u], new R.Block([h[u - 2]]), {type: h[u - 1], statement: true});
|
3055 | break;
|
3056 | case 517:
|
3057 | x.$ = new R.If(h[u], new R.Block([h[u - 2]]), {type: h[u - 1]});
|
3058 | break;
|
3059 | case 518:
|
3060 | x.$ = R.If.ternary(h[u - 4], h[u - 2], h[u]);
|
3061 | break;
|
3062 | case 519:
|
3063 | x.$ = R.Instantiation.for(h[u], h[u - 1]);
|
3064 | break;
|
3065 | case 520:
|
3066 | case 521:
|
3067 | case 522:
|
3068 | case 523:
|
3069 | case 524:
|
3070 | case 525:
|
3071 | x.$ = R.OP(h[u - 1], h[u]);
|
3072 | break;
|
3073 | case 526:
|
3074 | case 527:
|
3075 | x.$ = new R.UnaryOp(h[u - 1], null, h[u]);
|
3076 | break;
|
3077 | case 528:
|
3078 | case 529:
|
3079 | x.$ = new R.UnaryOp(h[u], h[u - 1], null, true);
|
3080 | break;
|
3081 | case 530:
|
3082 | case 531:
|
3083 | x.$ = new R.Op(h[u - 1], h[u - 2], h[u]);
|
3084 | break;
|
3085 | case 537:
|
3086 | x.$ = R.OP(h[u - 1], h[u - 3], h[u]).invert(h[u - 2]);
|
3087 | break;
|
3088 | case 540:
|
3089 | x.$ = R.OP(h[u - 3], h[u - 4], h[u - 1].indented(h[u - 2], h[u]));
|
3090 | break;
|
3091 | }
|
3092 | }, table: [{1: [2, 1], 3: 1, 4: 2, 5: 3, 7: e, 8: 5, 12: r, 13: i, 15: 8, 16: 9, 17: 10, 18: 11, 19: 12, 20: 13, 21: 14, 22: 15, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 35: p, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 51: _, 57: f, 62: 89, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: N, 90: 112, 91: y, 92: 129, 93: v, 94: 43, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 16, 131: Q, 135: Dt, 136: Zt, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {1: [3]}, {1: [2, 2], 6: Ye, 9: 140}, {6: [1, 142]}, t(ye, [2, 4]), t(ye, [2, 5]), t(Ua, [2, 10]), {4: 144, 6: [1, 145], 7: e, 8: 5, 14: [1, 143], 15: 8, 16: 9, 17: 10, 18: 11, 19: 12, 20: 13, 21: 14, 22: 15, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 35: p, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 51: _, 57: f, 62: 89, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: N, 90: 112, 91: y, 92: 129, 93: v, 94: 43, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 16, 131: Q, 135: Dt, 136: Zt, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ye, [2, 14]), t(ye, [2, 15], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(ye, [2, 16], {184: Nc}), t(ye, [2, 17]), t(ye, [2, 18], {303: 121, 306: 122, 295: 161, 301: 162, 296: V, 298: j, 304: G, 305: z, 321: Oc}), t(ye, [2, 19], {62: 89, 94: 163, 86: N}), t(ye, [2, 20]), t(ye, [2, 21]), t(ye, [2, 138]), {15: 164, 46: 167, 130: 16, 131: Q, 135: ys, 136: gs, 198: 166, 199: M, 219: W, 261: 165, 262: st}, {15: 170, 130: 16, 131: Q, 135: ys, 136: gs, 198: 172, 199: M, 261: 171, 262: st}, t(Ct, [2, 73]), t(Ct, [2, 74], {279: 174, 211: 175, 246: 176, 27: Cc, 98: Lc, 214: $, 247: Dc, 250: Fc, 258: Pc, 280: Mc}), t(Ct, [2, 75]), t(Ct, [2, 76]), t(Ct, [2, 77]), t(Ct, [2, 78]), t(Ct, [2, 79]), t(Ct, [2, 80]), t(Ct, [2, 81]), t(Ct, [2, 82]), t(Ct, [2, 83]), t(Ct, [2, 84]), t(Ct, [2, 85]), t(Ct, [2, 86]), t(Ct, [2, 87]), {33: 182, 36: c, 83: g, 206: Gi, 233: 184, 234: 183, 242: 181}, t(Vc, [2, 271]), t(Vc, [2, 272]), t(yi, [2, 22]), t(yi, [2, 23]), t(yi, [2, 24]), t(yi, [2, 25], {27: [1, 186]}), t(yi, [2, 27], {27: [1, 187]}), t(yi, [2, 29]), t(jc, [2, 101], {98: Gc}), {33: 195, 36: [1, 193], 40: 189, 52: 190, 53: [1, 191], 54: 192, 57: Te, 58: Bc, 83: g}, {15: 203, 17: 208, 32: [1, 206], 36: [1, 197], 41: [1, 198], 43: 199, 44: [1, 200], 46: 201, 47: 202, 48: 204, 49: 205, 130: 16, 131: Q, 135: [1, 207], 136: Zt, 198: 82, 199: M, 219: W, 238: 34, 239: rt, 240: it, 241: ut, 261: 81, 262: st}, {132: [1, 209]}, {16: 210, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ue, Hc, {184: [1, 214]}), t(ue, [2, 356]), t(ue, [2, 357]), t(ue, [2, 358], {10: 215, 11: wr}), t(ue, [2, 359]), t(ue, [2, 360]), t(ue, [2, 361]), t(ue, [2, 362]), t(ue, [2, 363], {36: [1, 218], 120: [1, 217], 121: [1, 219]}), t(ue, [2, 364]), t(ue, [2, 365]), t(ue, [2, 366]), t(Ct, [2, 273]), t(Ct, [2, 274]), t(Ct, [2, 275]), {16: 220, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 221, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 222, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 223, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 224, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 225, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 226, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {33: 114, 36: c, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 70: 228, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 118: 56, 119: q, 127: 113, 182: P, 201: 55, 202: 229, 206: X, 227: 54, 233: 91, 234: 90, 243: 227, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 255: 52, 256: ct, 257: 57, 281: ot, 282: nt}, {33: 114, 36: c, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 70: 228, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 118: 56, 119: q, 127: 113, 182: P, 201: 55, 202: 229, 206: X, 227: 54, 233: 91, 234: 90, 243: 230, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 255: 52, 256: ct, 257: 57, 281: ot, 282: nt}, t(A2, Or, {102: 234, 40: 235, 10: 236, 11: wr, 57: Te, 103: k, 273: [1, 233], 327: [1, 231], 328: [1, 232]}), t(Ct, [2, 252]), t(Ct, [2, 515], {302: [1, 237], 320: [1, 238]}), {5: 239, 12: r, 13: i}, {5: 240, 12: r, 13: i}, t(Ct, [2, 475]), {5: 241, 12: r, 13: i}, {13: [1, 243], 16: 242, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {33: 244, 83: g, 198: 246, 199: M, 261: 245, 262: st}, t(Ct, [2, 380]), t(Ct, [2, 242]), t(Po, [2, 136], {123: 247, 126: 248, 127: 249, 129: 252, 36: zn, 83: [1, 250], 128: [1, 251], 180: Un, 282: nt}), t(I2, [2, 325]), t(I2, [2, 326]), t(I2, [2, 327]), t(yi, [2, 125], {69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 31: 30, 47: 31, 48: 32, 80: 33, 238: 34, 23: 37, 24: 38, 202: 48, 251: 49, 67: 50, 68: 51, 255: 52, 227: 54, 201: 55, 118: 56, 257: 57, 253: 58, 64: 59, 210: 60, 211: 61, 212: 62, 243: 72, 49: 73, 318: 74, 295: 76, 299: 77, 301: 78, 261: 81, 198: 82, 234: 90, 233: 91, 99: 93, 46: 107, 90: 112, 127: 113, 33: 114, 84: 115, 245: 116, 303: 121, 306: 122, 92: 129, 102: 130, 17: 208, 19: 211, 16: 255, 117: 256, 25: s, 26: n, 27: zc, 29: o, 30: a, 32: l, 36: c, 57: f, 65: m, 83: g, 85: b, 91: y, 93: v, 95: d, 100: w, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 119: q, 122: K, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 199: M, 206: X, 213: tt, 214: $, 218: et, 219: W, 239: rt, 240: it, 241: ut, 244: at, 252: lt, 254: ht, 256: ct, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 300: _t, 314: dt, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}), {16: 258, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ya, [2, 97], {95: [1, 259]}), t(A2, [2, 350], {10: 260, 11: wr}), t(A2, [2, 351]), t(ue, [2, 348]), t(ue, [2, 115]), t(ue, [2, 116]), t(ue, [2, 117]), t(ue, [2, 118]), t(ue, [2, 119]), t(ue, [2, 120]), t(ue, [2, 121]), t(ue, [2, 122]), {13: R2, 16: 262, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 260: 261, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {13: Zi, 16: 264, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 97: 266, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 207: Uc, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t([1, 6, 12, 13, 14, 27, 28, 38, 60, 86, 96, 98, 108, 142, 146, 147, 148, 166, 179, 182, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], [2, 434]), {83: [1, 274]}, t(Ka, [2, 126]), t(ue, [2, 72], {99: 93, 92: 129, 102: 130, 66: 275, 67: 276, 68: 277, 57: f, 93: v, 95: d, 100: w, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U}), t(Ct, [2, 279]), {46: 278, 219: W}, {5: 279, 12: r, 13: i, 215: [1, 280]}, {5: 281, 12: r, 13: i}, t(gi, [2, 335]), t(gi, [2, 336]), t(gi, [2, 337]), t(gi, [2, 338]), t(gi, [2, 339]), t(gi, [2, 340]), {16: 282, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 283, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 284, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {5: 285, 12: r, 13: i, 16: 286, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {33: 292, 36: c, 83: g, 206: X, 233: 294, 234: 293, 254: [1, 289], 255: 287, 308: 288, 309: [1, 290], 310: 291}, {307: 295, 311: [1, 296], 312: [1, 297]}, {13: nn, 33: 301, 34: 299, 83: g, 84: 302, 85: b, 166: [1, 300], 263: 298}, {128: Yc, 200: 304}, t([1, 6, 11, 13, 14, 27, 36, 38, 60, 83, 85, 86, 95, 98, 182, 194, 206, 218, 219, 225, 226, 236, 268, 275, 276], [2, 92]), t([6, 13, 38, 60], Kc, {92: 129, 102: 130, 259: 306, 203: 307, 46: 309, 204: 310, 205: 311, 18: 312, 99: 315, 33: 316, 84: 317, 88: 318, 57: f, 83: g, 85: b, 89: Mo, 93: v, 95: Vo, 100: w, 103: k, 194: jo, 206: Go, 208: ee, 209: oe, 219: W}), t(ue, [2, 104], {101: [1, 320]}), t(ue, [2, 105]), t(ue, [2, 106]), t(ue, [2, 107], {105: 322, 104: qc, 106: Xc, 107: Wc}), {33: 329, 62: 330, 83: g, 84: 331, 85: b, 86: N, 127: 328, 206: Jc, 220: 325, 222: 326, 227: 327, 281: ot, 282: nt}, t(gi, [2, 95]), t([1, 6, 11, 12, 13, 14, 27, 28, 38, 57, 60, 86, 87, 95, 96, 98, 103, 108, 124, 142, 146, 147, 148, 166, 167, 168, 169, 170, 171, 172, 173, 174, 176, 177, 178, 179, 182, 183, 184, 190, 194, 196, 207, 208, 209, 214, 217, 225, 226, 247, 249, 250, 258, 273, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 327, 328, 329, 330, 331, 332], [2, 435]), t([1, 6, 11, 12, 13, 14, 27, 28, 36, 38, 39, 42, 55, 57, 60, 83, 85, 86, 96, 98, 103, 108, 142, 146, 147, 148, 166, 179, 182, 184, 190, 194, 196, 206, 207, 214, 217, 218, 219, 225, 226, 236, 247, 249, 250, 258, 268, 273, 275, 276, 280, 284, 296, 297, 298, 304, 305, 311, 312, 313, 321, 322, 327, 328, 329, 330, 331, 332], [2, 90]), t([1, 6, 11, 12, 13, 14, 27, 28, 36, 38, 57, 60, 83, 86, 96, 98, 103, 108, 142, 146, 147, 148, 166, 179, 182, 184, 190, 194, 196, 206, 207, 214, 217, 225, 226, 236, 247, 249, 250, 258, 273, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 327, 328, 329, 330, 331, 332], [2, 91]), t(Zc, [2, 482]), t(Zc, [2, 483]), t(ue, [2, 96]), t(Yn, [2, 109]), t(ye, [2, 7], {15: 8, 16: 9, 17: 10, 18: 11, 19: 12, 20: 13, 21: 14, 22: 15, 130: 16, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 31: 30, 47: 31, 48: 32, 80: 33, 238: 34, 23: 37, 24: 38, 94: 43, 202: 48, 251: 49, 67: 50, 68: 51, 255: 52, 227: 54, 201: 55, 118: 56, 257: 57, 253: 58, 64: 59, 210: 60, 211: 61, 212: 62, 243: 72, 49: 73, 318: 74, 295: 76, 299: 77, 301: 78, 261: 81, 198: 82, 62: 89, 234: 90, 233: 91, 99: 93, 46: 107, 90: 112, 127: 113, 33: 114, 84: 115, 245: 116, 303: 121, 306: 122, 92: 129, 102: 130, 8: 333, 25: s, 26: n, 29: o, 30: a, 32: l, 35: p, 36: c, 51: _, 57: f, 65: m, 83: g, 85: b, 86: N, 91: y, 93: v, 95: d, 100: w, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 119: q, 122: K, 131: Q, 135: Dt, 136: Zt, 147: F, 148: H, 181: Y, 182: P, 199: M, 206: X, 208: ee, 209: oe, 213: tt, 214: $, 218: et, 219: W, 239: rt, 240: it, 241: ut, 244: at, 252: lt, 254: ht, 256: ct, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 296: V, 298: j, 300: _t, 304: G, 305: z, 314: dt, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}), t([1, 6, 14, 25, 26, 29, 30, 32, 35, 36, 51, 57, 65, 83, 85, 86, 89, 91, 93, 95, 100, 103, 109, 110, 111, 112, 113, 114, 115, 116, 119, 122, 131, 132, 135, 136, 144, 147, 148, 181, 182, 194, 196, 199, 206, 208, 209, 213, 214, 218, 219, 237, 239, 240, 241, 244, 252, 254, 256, 262, 268, 275, 276, 281, 282, 286, 288, 294, 296, 298, 300, 304, 305, 314, 319, 323, 324, 325, 326, 327, 328], N2), {1: [2, 3]}, t(Ua, [2, 11]), {6: Ye, 9: 140, 14: [1, 334]}, {4: 335, 7: e, 8: 5, 15: 8, 16: 9, 17: 10, 18: 11, 19: 12, 20: 13, 21: 14, 22: 15, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 35: p, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 51: _, 57: f, 62: 89, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: N, 90: 112, 91: y, 92: 129, 93: v, 94: 43, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 16, 131: Q, 135: Dt, 136: Zt, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 336, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 337, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 338, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 339, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 340, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 341, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 342, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {332: [1, 343]}, {16: 344, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 345, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 346, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ct, [2, 474]), t(Ct, [2, 479]), {13: [1, 348], 16: 347, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 349, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ct, [2, 473]), t(Ct, [2, 478]), t(jc, [2, 102], {98: Gc}), t(ye, [2, 139]), t(Ct, [2, 383]), t(Ct, [2, 245]), t(Ct, [2, 280]), {15: 164, 130: 16, 131: Q, 135: ys, 136: gs}, {15: 170, 130: 16, 131: Q, 135: ys, 136: gs}, t(ye, [2, 140]), t(Ct, [2, 382]), t(Ct, [2, 244]), t(ue, [2, 367]), {27: zc, 117: 350}, t(ue, [2, 429]), {33: 351, 83: g, 84: 352, 85: b}, {16: 354, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 248: 353, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Qc, [2, 347], {206: [1, 355]}), {27: [2, 431]}, t(Qc, [2, 346]), t(Bo, [2, 332]), t(Bo, [2, 328], {10: 356, 11: wr}), t(Bo, [2, 330], {10: 260, 11: wr}), t(Bo, [2, 331]), {13: Zi, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 97: 266, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 207: Uc, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 358, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 359, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {33: 360, 83: g}, t(ye, [2, 46]), {39: [1, 361], 55: [1, 362]}, {33: 195, 36: [1, 364], 52: 363, 83: g}, {39: [1, 365]}, {13: Kn, 33: 370, 37: 367, 38: [1, 366], 44: Qi, 59: 368, 62: 371, 63: 372, 83: g, 86: N, 87: $i}, t([1, 6, 12, 13, 14, 27, 28, 36, 38, 57, 60, 86, 95, 96, 98, 100, 108, 134, 142, 144, 146, 147, 148, 151, 159, 160, 161, 162, 163, 164, 165, 166, 175, 179, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 313, 321, 322, 329, 330, 331, 332], [2, 108]), t([39, 55], [2, 45]), {42: [1, 375]}, {13: Kn, 33: 370, 37: 376, 44: Qi, 59: 368, 62: 371, 63: 372, 83: g, 86: N, 87: $i}, {39: [1, 377], 42: [1, 378]}, t(ye, [2, 35]), {16: 380, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 45: 379, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ye, [2, 37]), t(ye, [2, 38]), t(ye, [2, 39]), t(ye, [2, 40]), t(ye, [2, 41]), {198: 246, 199: M, 261: 245, 262: st}, {15: 164, 130: 16, 131: Q, 135: ys, 136: gs, 198: 166, 199: M, 261: 165, 262: st}, {184: Nc}, {13: Ho, 132: on, 133: 381, 139: 382, 140: 384, 141: 386, 144: vi}, t(an, [2, 354], {303: 121, 306: 122, 295: 157, 301: 158, 331: Ot}), {295: 161, 296: V, 298: j, 301: 162, 303: 121, 304: G, 305: z, 306: 122, 321: Oc}, {198: 172, 199: M, 261: 171, 262: st}, {46: 167, 198: 166, 199: M, 219: W, 261: 165, 262: st}, {13: [1, 389], 16: 388, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(O2, [2, 467]), t([1, 6, 11, 12, 13, 14, 27, 28, 36, 38, 57, 60, 83, 86, 96, 98, 103, 108, 142, 146, 147, 148, 166, 179, 182, 184, 190, 194, 196, 206, 207, 214, 217, 225, 226, 236, 247, 249, 250, 258, 273, 280, 284, 296, 297, 298, 304, 305, 311, 312, 313, 321, 322, 327, 328, 329, 330, 331, 332], [2, 9]), t(Ka, [2, 127]), {16: 390, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ka, [2, 129]), t(an, [2, 519], {303: 121, 306: 122, 295: 157, 301: 158, 331: Ot}), t(an, [2, 520], {303: 121, 306: 122, 295: 157, 301: 158, 331: Ot}), t(an, [2, 521], {303: 121, 306: 122, 295: 157, 301: 158, 331: Ot}), t(qa, [2, 522], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 329: Vt, 331: Ot}), t(qa, [2, 523], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 329: Vt, 331: Ot}), t(an, [2, 524], {303: 121, 306: 122, 295: 157, 301: 158, 331: Ot}), t(an, [2, 525], {303: 121, 306: 122, 295: 157, 301: 158, 331: Ot}), t(Ct, [2, 526], {102: 234, 40: 235, 10: 236, 11: wr, 27: Or, 98: Or, 214: Or, 247: Or, 250: Or, 258: Or, 280: Or, 57: Te, 103: k}), {27: Cc, 98: Lc, 211: 175, 214: $, 246: 176, 247: Dc, 250: Fc, 258: Pc, 279: 174, 280: Mc}, t([27, 98, 214, 247, 250, 258, 280], Hc), t(Ct, [2, 527], {102: 234, 40: 235, 10: 236, 11: wr, 27: Or, 98: Or, 214: Or, 247: Or, 250: Or, 258: Or, 280: Or, 57: Te, 103: k}), t(Ct, [2, 528]), t(Ct, [2, 529]), {13: [1, 392], 16: 391, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ue, [2, 352], {105: 322, 104: qc, 106: Xc, 107: Wc}), t(ue, [2, 353]), t(gi, [2, 341]), {5: 394, 12: r, 13: i, 319: [1, 393]}, {16: 395, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ct, [2, 457], {289: 396, 290: 397, 291: $c, 292: [1, 398]}), t(Ct, [2, 472]), t(Ct, [2, 480], {302: [1, 400]}), {13: [1, 401], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, {315: 402, 316: 403, 317: Xa}, {13: nn, 34: 405}, t(Ct, [2, 381]), t(Ct, [2, 243]), {6: [1, 423], 18: 422, 27: [1, 421], 87: [1, 415], 95: [1, 420], 124: [1, 406], 168: [1, 407], 169: [1, 408], 170: [1, 409], 171: [1, 410], 172: [1, 411], 173: [1, 412], 174: [1, 413], 176: [1, 414], 177: [1, 416], 178: [1, 417], 182: [1, 418], 183: [1, 419], 184: [1, 424], 208: ee, 209: oe}, t(Ne, [2, 189], {167: [1, 425]}), t(Po, [2, 132]), t(Po, [2, 133]), t(Po, [2, 134]), t(Po, [2, 135], {36: qn, 180: Xn}), t(Wa, [2, 215]), {16: 428, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(yi, [2, 123], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(yi, [2, 124]), {13: Zi, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 28: [1, 429], 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 97: 430, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(yi, [2, 464], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {13: Zi, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 96: [1, 431], 97: 432, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(C2, [2, 438]), t(Li, qe, {61: 435, 60: L2, 96: [1, 433]}), t(zo, [2, 375], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {13: R2, 16: 262, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 260: 436, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t([6, 13, 60, 207], tu, {303: 121, 306: 122, 295: 157, 301: 158, 283: 437, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 194: [1, 439], 196: Qt, 284: [1, 438], 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(C2, [2, 436]), t([6, 13, 207], qe, {61: 440, 60: vs}), t(bi, [2, 442]), {13: Zi, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 97: 442, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 443, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(bi, [2, 452]), t(bi, [2, 453]), t(bi, [2, 454]), {16: 444, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ue, [2, 251]), t(ue, [2, 69]), t(ue, [2, 70]), t(ue, [2, 71], {10: 215, 11: wr}), t(Ct, [2, 281]), t(ue, [2, 277]), t([60, 217], Ja, {216: 445, 230: 446, 233: 447, 234: 448, 235: 449, 33: 452, 36: c, 83: g, 194: Uo, 206: Gi, 236: Yo}), t(Ct, [2, 276]), {5: 453, 12: r, 13: i, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(eu, [2, 468], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 297: [1, 454], 298: j, 304: G, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(eu, [2, 470], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 297: [1, 455], 298: j, 304: G, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ct, [2, 476]), t(D2, [2, 477], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ct, [2, 484]), t(Wn, [2, 486]), {33: 292, 36: c, 83: g, 206: Gi, 233: 294, 234: 293, 308: 456, 310: 291}, {33: 292, 36: c, 83: g, 206: Gi, 233: 294, 234: 293, 308: 457, 310: 291}, t(Wn, [2, 493], {60: [1, 458]}), t(Za, [2, 489], {10: 459, 11: wr}), t(Za, [2, 491], {10: 260, 11: wr}), t(Za, [2, 492]), t(Ct, [2, 485]), {16: 460, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 461, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ru, [2, 385], {34: 462, 13: nn, 98: [1, 464], 166: [1, 463]}), t(Ct, [2, 386]), {16: 465, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Qa, [2, 390]), t(Qa, [2, 391]), {6: [1, 468], 14: [1, 466], 15: 472, 18: 473, 20: 470, 33: 483, 46: 477, 62: 89, 80: 474, 83: g, 84: 484, 85: b, 86: N, 94: 43, 122: K, 130: 16, 131: Q, 135: ys, 136: gs, 208: ee, 209: oe, 218: $a, 219: W, 264: 467, 265: 469, 266: 471, 267: 478, 268: t1, 269: 479, 274: 480, 275: ln, 276: cn}, t(ru, [2, 246], {34: 485, 13: nn, 166: [1, 486]}), t(Ct, [2, 250]), t([6, 13, 38], qe, {61: 487, 60: iu}), t(Ge, [2, 371]), {16: 489, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ge, [2, 256]), t(Ge, [2, 257], {142: [1, 490]}), t(e1, [2, 267], {184: [1, 491]}), t(Ge, [2, 262]), {16: 492, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 493, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(e1, [2, 270]), t(Ko, [2, 263], {10: 494, 11: wr}), t(Ko, [2, 265]), t(Ko, [2, 266]), t(Ko, [2, 94]), t(ue, [2, 103]), t(Yn, [2, 110]), t(Yn, [2, 111]), t(Yn, [2, 112]), {16: 496, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 108: [1, 495], 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {98: [1, 498], 182: [1, 499], 221: 497}, t(su, Ja, {230: 446, 233: 447, 234: 448, 235: 449, 33: 452, 223: 500, 10: 501, 216: 502, 11: wr, 27: nu, 36: c, 83: g, 98: ou, 182: ou, 194: Uo, 206: Gi, 236: Yo}), t(au, [2, 297]), t(au, [2, 298]), t(qo, [2, 288]), t(qo, [2, 289]), t(qo, [2, 290]), {16: 504, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ye, [2, 6]), t(Ua, [2, 12]), {6: Ye, 9: 140, 14: [1, 505]}, t(qa, [2, 530], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 329: Vt, 331: Ot}), t(qa, [2, 531], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 329: Vt, 331: Ot}), t(lu, [2, 532], {303: 121, 306: 122, 295: 157, 301: 158, 329: Vt, 331: Ot}), t(lu, [2, 533], {303: 121, 306: 122, 295: 157, 301: 158, 329: Vt, 331: Ot}), t([1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 330, 332], [2, 534], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 329: Vt, 331: Ot}), t([1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322], [2, 535], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t([1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322], [2, 536], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 506, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t([1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 166, 179, 190, 194, 196, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 313, 321, 322, 332], [2, 538], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 329: Vt, 330: qt, 331: Ot}), t(cu, [2, 517], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {142: [1, 507], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(un, [2, 333], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 508, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(cu, [2, 516], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(ue, [2, 428]), t(gi, [2, 342]), t(gi, [2, 343]), {249: [1, 509]}, t([207, 249], [2, 368], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 354, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 248: 510, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Bo, [2, 329]), t(bi, tu, {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {28: [1, 511], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, {28: [1, 512], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(Ya, [2, 100]), {40: 513, 57: Te}, {36: [1, 515], 54: 514, 58: Bc}, {39: [1, 516]}, {13: Kn, 33: 370, 37: 517, 44: Qi, 59: 368, 62: 371, 63: 372, 83: g, 86: N, 87: $i}, {40: 518, 57: Te}, {39: [1, 519]}, t(Li, qe, {61: 522, 38: [1, 520], 60: Jn}), t(Ge, [2, 57]), {13: Kn, 33: 370, 37: 523, 44: Qi, 59: 368, 62: 371, 63: 372, 83: g, 86: N, 87: $i}, t(Ge, [2, 63], {42: [1, 524]}), t(Ge, [2, 64]), t(Ge, [2, 65]), t(Ge, [2, 67], {42: [1, 525]}), t(Ge, [2, 93]), {33: 526, 83: g}, t(Li, qe, {61: 522, 38: [1, 527], 60: Jn}), {40: 528, 57: Te}, {33: 529, 83: g}, t(ye, [2, 36]), t(ye, [2, 42], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {6: Ye, 9: 532, 134: [1, 530], 140: 531, 141: 386, 144: vi}, t(hn, [2, 145]), {13: Ho, 132: on, 133: 533, 139: 382, 140: 384, 141: 386, 144: vi}, t(hn, [2, 149]), {13: [1, 535], 137: 534}, {142: [1, 536]}, {142: [2, 152]}, t(un, [2, 253], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 537, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {38: [1, 538], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(un, [2, 539], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 539, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 540, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(r1, [2, 514]), {5: 541, 12: r, 13: i, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(Ct, [2, 458], {290: 542, 291: $c}), t(Ct, [2, 459]), {5: 544, 12: r, 13: i, 293: [1, 543]}, {5: 545, 12: r, 13: i}, {5: 546, 12: r, 13: i}, {315: 547, 316: 403, 317: Xa}, {14: [1, 548], 302: [1, 549], 316: 550, 317: Xa}, t(i1, [2, 507]), {16: 552, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 287: 551, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ct, [2, 30]), t(uu, [2, 130], {125: 553, 80: 556, 13: [1, 554], 27: [1, 555], 122: K}), t(Ne, [2, 190]), t(Ne, [2, 191]), t(Ne, [2, 192]), t(Ne, [2, 193]), t(Ne, [2, 194]), t(Ne, [2, 195]), {13: Ho, 132: on, 133: 558, 139: 382, 140: 384, 141: 386, 144: vi, 175: [1, 557]}, {36: zn, 129: 562, 174: [1, 559], 179: [1, 560], 180: Un, 181: [1, 561]}, t(Ne, [2, 199]), {36: zn, 129: 563, 180: Un}, {36: zn, 129: 564, 180: Un}, {36: zn, 129: 565, 180: Un}, t(Ne, [2, 211], {129: 566, 36: zn, 180: Un}), {13: Zi, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 96: [1, 567], 97: 568, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {13: Zi, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 28: [1, 569], 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 97: 570, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ne, [2, 212]), t(Ne, [2, 213]), {185: 571, 189: [1, 572]}, t(Ne, [2, 188]), t(Wa, [2, 217]), {16: 573, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {38: [1, 574], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(ue, [2, 432]), t([6, 13, 28], qe, {61: 575, 60: vs}), t(Ya, [2, 98]), t(Li, qe, {61: 577, 60: vs, 96: [1, 576]}), t(O2, [2, 465], {101: [1, 578]}), t(ki, Xo, {69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 31: 30, 47: 31, 48: 32, 80: 33, 238: 34, 23: 37, 24: 38, 202: 48, 251: 49, 67: 50, 68: 51, 255: 52, 227: 54, 201: 55, 118: 56, 257: 57, 253: 58, 64: 59, 210: 60, 211: 61, 212: 62, 243: 72, 49: 73, 318: 74, 295: 76, 299: 77, 301: 78, 261: 81, 198: 82, 234: 90, 233: 91, 99: 93, 46: 107, 90: 112, 127: 113, 33: 114, 84: 115, 245: 116, 303: 121, 306: 122, 92: 129, 102: 130, 17: 208, 19: 211, 16: 579, 25: s, 26: n, 29: o, 30: a, 32: l, 36: c, 57: f, 65: m, 83: g, 85: b, 91: y, 93: v, 95: d, 100: w, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 119: q, 122: K, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 199: M, 206: X, 213: tt, 214: $, 218: et, 219: W, 239: rt, 240: it, 241: ut, 244: at, 252: lt, 254: ht, 256: ct, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 296: V, 298: j, 300: _t, 304: G, 305: z, 314: dt, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}), {6: Ye, 9: 580, 13: F2}, t(ki, qe, {61: 582, 60: L2}), {16: 583, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(s1, [2, 439]), t(s1, [2, 440]), {6: Wo, 9: 585, 13: Jo, 207: [1, 584]}, t([6, 13, 14, 28, 207], Xo, {69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 31: 30, 47: 31, 48: 32, 80: 33, 238: 34, 23: 37, 24: 38, 202: 48, 251: 49, 67: 50, 68: 51, 255: 52, 227: 54, 201: 55, 118: 56, 257: 57, 253: 58, 64: 59, 210: 60, 211: 61, 212: 62, 243: 72, 49: 73, 318: 74, 295: 76, 299: 77, 301: 78, 261: 81, 198: 82, 234: 90, 233: 91, 99: 93, 46: 107, 90: 112, 127: 113, 33: 114, 84: 115, 245: 116, 303: 121, 306: 122, 92: 129, 102: 130, 17: 208, 19: 211, 195: 270, 18: 272, 16: 357, 285: 588, 25: s, 26: n, 29: o, 30: a, 32: l, 36: c, 57: f, 65: m, 83: g, 85: b, 91: y, 93: v, 95: d, 100: w, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 119: q, 122: K, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 199: M, 206: X, 208: ee, 209: oe, 213: tt, 214: $, 218: et, 219: W, 237: tr, 239: rt, 240: it, 241: ut, 244: at, 252: lt, 254: ht, 256: ct, 262: st, 281: ot, 282: nt, 286: li, 288: pt, 294: ft, 296: V, 298: j, 300: _t, 304: G, 305: z, 314: dt, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}), t(ki, qe, {61: 589, 60: vs}), t(bi, [2, 451], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(bi, [2, 324], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {60: P2, 217: [1, 590]}, t(xi, [2, 304]), t(xi, [2, 313], {184: [1, 592]}), t(xi, [2, 314], {10: 260, 11: wr, 184: [1, 593]}), t(xi, [2, 315], {184: [1, 594]}), t(xi, [2, 321], {33: 452, 235: 595, 83: g}), {33: 452, 83: g, 235: 596}, t(hu, [2, 322], {10: 597, 11: wr}), t(r1, [2, 511]), {16: 598, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 599, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Wn, [2, 487]), t(Wn, [2, 488]), {33: 292, 36: c, 83: g, 206: Gi, 233: 294, 234: 293, 310: 600}, t(Za, [2, 490]), t([1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 207, 217, 225, 226, 249, 284, 296, 298, 304, 305, 321], [2, 496], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 297: [1, 601], 313: [1, 602], 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(pu, [2, 497], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 297: [1, 603], 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ct, [2, 384]), {16: 604, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {33: 605, 83: g, 84: 606, 85: b}, {13: nn, 34: 607, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(Ct, [2, 394]), {6: Ye, 9: 609, 14: [1, 608]}, {15: 472, 18: 473, 20: 470, 33: 483, 46: 477, 62: 89, 80: 474, 83: g, 84: 484, 85: b, 86: N, 94: 43, 122: K, 130: 16, 131: Q, 135: ys, 136: gs, 208: ee, 209: oe, 218: $a, 219: W, 264: 610, 265: 469, 266: 471, 267: 478, 268: t1, 269: 479, 274: 480, 275: ln, 276: cn}, t(Cr, [2, 397]), t(Cr, [2, 400], {62: 89, 94: 163, 46: 477, 267: 478, 269: 479, 274: 480, 33: 483, 84: 484, 266: 611, 83: g, 85: b, 86: N, 218: $a, 219: W, 268: t1, 275: ln, 276: cn}), t(Cr, [2, 401]), t(Cr, [2, 403]), t(Cr, [2, 404]), t(Cr, [2, 405]), {33: 483, 46: 613, 83: g, 84: 484, 85: b, 219: W, 267: 612, 269: 479, 274: 480, 275: ln, 276: cn}, {33: 483, 83: g, 84: 484, 85: b, 218: [1, 614], 267: 615, 269: 479, 274: 480, 275: ln, 276: cn}, t(Cr, [2, 410]), t(Cr, [2, 411], {86: n1, 179: o1}), t(Zn, [2, 413], {270: 618, 10: 619, 11: wr, 184: [1, 620], 273: [1, 621]}), t(Qn, [2, 421]), {33: 483, 83: g, 84: 484, 85: b, 274: 622}, {33: 483, 83: g, 84: 484, 85: b, 274: 623}, t(Qn, [2, 425]), t(Qn, [2, 426]), t(Ct, [2, 247]), {128: Yc, 200: 624}, {6: Ye, 9: 626, 13: fu, 38: [1, 625]}, t([6, 13, 14, 38], Xo, {92: 129, 102: 130, 46: 309, 204: 310, 205: 311, 18: 312, 99: 315, 33: 316, 84: 317, 88: 318, 203: 628, 57: f, 83: g, 85: b, 89: Mo, 93: v, 95: Vo, 100: w, 103: k, 194: jo, 206: Go, 208: ee, 209: oe, 219: W}), t(Ge, [2, 255], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {13: [1, 630], 16: 629, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {13: [1, 632], 16: 631, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 207: [1, 633], 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, {96: [1, 634], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(Ko, [2, 264]), t(Yn, [2, 113]), {108: [1, 635], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, {33: 329, 62: 330, 83: g, 84: 331, 85: b, 86: N, 206: Jc, 222: 636}, t(_u, [2, 286]), t(_u, [2, 287]), {224: 637, 225: du, 226: mu}, t(qo, [2, 292]), t(yu, [2, 284], {60: P2}), t([28, 60], Ja, {230: 446, 233: 447, 234: 448, 235: 449, 33: 452, 216: 640, 36: c, 83: g, 194: Uo, 206: Gi, 236: Yo}), {146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 207: [1, 641], 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(Ua, [2, 13]), t(an, [2, 537], {303: 121, 306: 122, 295: 157, 301: 158, 331: Ot}), {16: 642, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {6: Ye, 9: 644, 14: Lr, 82: 643, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(gi, [2, 344]), {207: [1, 646]}, t(yi, [2, 26]), t(yi, [2, 28]), t(ye, [2, 47]), {39: [1, 647]}, {13: Kn, 33: 370, 37: 648, 44: Qi, 59: 368, 62: 371, 63: 372, 83: g, 86: N, 87: $i}, {40: 649, 57: Te}, t(Li, qe, {61: 522, 38: [1, 650], 60: Jn}), t(ye, [2, 49]), {40: 651, 57: Te}, {39: [1, 652]}, t(ki, Xo, {33: 370, 62: 371, 63: 372, 59: 653, 44: Qi, 83: g, 86: N, 87: $i}), {6: gu, 13: M2}, t(ki, qe, {61: 656, 60: Jn}), {33: 657, 83: g}, {33: 658, 83: g}, {39: [2, 56]}, t(ye, [2, 31], {39: [1, 659]}), t(ye, [2, 33]), {39: [1, 660]}, t([1, 6, 13, 14, 28, 60], [2, 137]), t(hn, [2, 146]), {132: on, 139: 661, 140: 384, 141: 386, 144: vi}, {6: Ye, 9: 663, 14: Lr, 82: 662, 140: 531, 141: 386, 144: vi}, {134: [1, 664]}, {6: Ye, 9: 665, 13: Ho, 132: on, 133: 666, 139: 382, 140: 384, 141: 386, 144: vi}, {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 143: 667, 149: 668, 150: 669, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, {6: Ye, 9: 644, 14: Lr, 82: 684, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(Ka, [2, 128]), {6: Ye, 9: 644, 14: Lr, 82: 685, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, {5: 686, 12: r, 13: i, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(r1, [2, 513]), t(Ct, [2, 460]), {5: 687, 12: r, 13: i}, t(vu, [2, 463]), t(Ct, [2, 461]), t(Ct, [2, 481]), {14: [1, 688], 302: [1, 689], 316: 550, 317: Xa}, t(Ct, [2, 505]), {5: 690, 12: r, 13: i}, t(i1, [2, 508]), {5: 691, 12: r, 13: i, 60: [1, 692]}, t(bu, [2, 455], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ct, [2, 131]), {13: a1, 14: [1, 693], 16: 697, 17: 208, 18: 701, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: bs, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 703, 131: Q, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 191: 694, 192: 695, 194: ks, 195: 699, 196: xs, 197: 702, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {13: a1, 16: 697, 17: 208, 18: 701, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: bs, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 703, 131: Q, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 191: 705, 192: 695, 194: ks, 195: 699, 196: xs, 197: 702, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ct, [2, 225]), t(Ne, [2, 196]), {6: Ye, 9: 532, 140: 531, 141: 386, 144: vi, 175: [1, 706]}, {13: Ho, 132: on, 133: 707, 139: 382, 140: 384, 141: 386, 144: vi}, {180: [1, 708]}, {180: [1, 709]}, t(Ne, [2, 204], {36: qn, 180: Xn}), t(Ne, [2, 200], {36: qn, 180: Xn}), t(Ne, [2, 201], {36: qn, 180: Xn}), t(Ne, [2, 205], {36: qn, 180: Xn}), t(Ne, [2, 206], {36: qn, 180: Xn}), t(Ne, [2, 207]), t(Li, qe, {61: 577, 60: vs, 96: [1, 710]}), t(Ne, [2, 209]), t(Li, qe, {61: 577, 28: [1, 711], 60: vs}), t(Ne, [2, 214]), {16: 712, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {38: [1, 713], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(Wa, [2, 216]), {6: Wo, 9: 585, 13: Jo, 28: [1, 714]}, t(Ya, [2, 99]), {6: Wo, 9: 585, 13: Jo}, t(O2, [2, 466]), t(zo, [2, 376], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 715, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {13: R2, 16: 262, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 260: 716, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {6: Ye, 9: 718, 13: F2, 14: Lr, 82: 717}, {146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 207: [1, 719], 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(C2, [2, 437]), {16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 720, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t([14, 25, 26, 29, 30, 32, 36, 57, 65, 83, 85, 91, 93, 95, 100, 103, 109, 110, 111, 112, 113, 114, 115, 116, 119, 122, 135, 136, 147, 148, 181, 182, 194, 199, 206, 208, 209, 213, 214, 218, 219, 237, 239, 240, 241, 244, 252, 254, 256, 262, 281, 282, 286, 288, 294, 296, 298, 300, 304, 305, 314, 319, 323, 324, 325, 326, 327, 328], N2, {193: [1, 721]}), {13: Zi, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 97: 722, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(bi, [2, 443]), {6: Wo, 9: 724, 13: Jo, 14: Lr, 82: 723}, {5: 725, 12: r, 13: i}, {33: 452, 36: c, 83: g, 194: Uo, 206: Gi, 230: 726, 233: 447, 234: 448, 235: 449, 236: Yo}, {16: 728, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 232: 727, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 728, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 232: 729, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 728, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 232: 730, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(xi, [2, 316]), t(xi, [2, 317]), t(hu, [2, 323]), t(D2, [2, 469], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(D2, [2, 471], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Wn, [2, 494], {60: [1, 731]}), {16: 732, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 733, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 734, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t([1, 6, 12, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 207, 217, 225, 226, 249, 284, 297, 305, 313, 321], [2, 387], {303: 121, 306: 122, 295: 157, 301: 158, 34: 735, 13: nn, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Qa, [2, 392]), t(Qa, [2, 393]), t(Ct, [2, 389]), t(Ct, [2, 395]), t(Cr, [2, 399], {130: 16, 94: 43, 62: 89, 20: 470, 266: 471, 15: 472, 18: 473, 80: 474, 46: 477, 267: 478, 269: 479, 274: 480, 33: 483, 84: 484, 265: 736, 83: g, 85: b, 86: N, 122: K, 131: Q, 135: ys, 136: gs, 208: ee, 209: oe, 218: $a, 219: W, 268: t1, 275: ln, 276: cn}), {6: Ye, 9: 609, 14: [1, 737]}, t(Cr, [2, 402]), t(Cr, [2, 406], {86: n1, 179: o1}), t(Cr, [2, 409]), {33: 483, 83: g, 84: 484, 85: b, 267: 738, 269: 479, 274: 480, 275: ln, 276: cn}, t(Cr, [2, 408], {86: n1, 179: o1}), {5: 740, 12: r, 13: i, 16: 741, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 271: 739, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {5: 740, 12: r, 13: i, 16: 741, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 271: 742, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 743, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Qn, [2, 424]), t(s1, [2, 419]), t(s1, [2, 420]), t(Qn, [2, 422]), t(Qn, [2, 423]), t(uu, [2, 248], {34: 744, 13: nn}), t([1, 6, 12, 13, 14, 27, 28, 38, 60, 86, 96, 98, 108, 142, 146, 147, 148, 166, 179, 184, 190, 194, 196, 207, 214, 217, 225, 226, 247, 249, 250, 258, 280, 284, 296, 297, 298, 304, 305, 311, 312, 313, 321, 322, 329, 330, 331, 332], [2, 369]), {18: 312, 33: 316, 46: 309, 57: f, 83: g, 84: 317, 85: b, 88: 318, 89: Mo, 92: 129, 93: v, 95: Vo, 99: 315, 100: w, 102: 130, 103: k, 194: jo, 203: 745, 204: 310, 205: 311, 206: Go, 208: ee, 209: oe, 219: W}, t([6, 13, 14, 60], Kc, {92: 129, 102: 130, 203: 307, 46: 309, 204: 310, 205: 311, 18: 312, 99: 315, 33: 316, 84: 317, 88: 318, 259: 746, 57: f, 83: g, 85: b, 89: Mo, 93: v, 95: Vo, 100: w, 103: k, 194: jo, 206: Go, 208: ee, 209: oe, 219: W}), t(Ge, [2, 372]), t(Ge, [2, 258], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 747, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ge, [2, 260], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 748, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(e1, [2, 268]), t(e1, [2, 269]), t(Yn, [2, 114]), t(su, Ja, {230: 446, 233: 447, 234: 448, 235: 449, 33: 452, 10: 501, 216: 502, 223: 749, 11: wr, 27: nu, 36: c, 83: g, 194: Uo, 206: Gi, 236: Yo}), t(Ct, [2, 283]), {5: 750, 12: r, 13: i, 214: [1, 751]}, t(Ct, [2, 295]), {28: [1, 752], 60: P2}, t(qo, [2, 291]), t(un, [2, 518], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ct, [2, 334]), {14: $n}, t(ku, [2, 449]), t(gi, [2, 345]), {40: 754, 57: Te}, t(Li, qe, {61: 522, 38: [1, 755], 60: Jn}), t(ye, [2, 48]), {39: [1, 756]}, t(ye, [2, 50]), {40: 757, 57: Te}, t(Ge, [2, 58]), {33: 370, 44: Qi, 59: 758, 62: 371, 63: 372, 83: g, 86: N, 87: $i}, {13: Kn, 33: 370, 37: 759, 44: Qi, 59: 368, 62: 371, 63: 372, 83: g, 86: N, 87: $i}, {6: [1, 761], 13: M2, 14: [1, 760]}, t(Ge, [2, 66]), t(Ge, [2, 68]), {40: 762, 57: Te}, {40: 763, 57: Te}, t(hn, [2, 147]), t(hn, [2, 148]), {14: $n, 132: on, 139: 661, 140: 384, 141: 386, 144: vi}, t(hn, [2, 150]), {14: [1, 764]}, {6: Ye, 9: 663, 14: Lr, 82: 765, 140: 531, 141: 386, 144: vi}, t(hn, [2, 151], {60: [1, 766]}), t(xu, [2, 156], {158: 670, 40: 676, 156: 677, 145: 767, 150: 768, 36: Br, 57: Te, 95: Hr, 100: zr, 146: to, 147: eo, 148: ro, 151: wu, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}), t(l1, [2, 158]), t(Dr, [2, 176], {157: [1, 773]}), t(Dr, [2, 177]), t(Dr, [2, 178]), t(Dr, [2, 179]), t(Dr, [2, 180]), t(Dr, [2, 181]), t(Dr, [2, 182]), t(Dr, [2, 183], {157: [1, 774]}), t(Dr, [2, 184]), {95: [1, 775]}, t(Dr, [2, 186]), {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 150: 776, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 150: 778, 152: 777, 153: 779, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, {16: 780, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ct, [2, 254]), t(Ct, [2, 540]), t(r1, [2, 512]), t(vu, [2, 462]), t(Ct, [2, 503]), {5: 781, 12: r, 13: i}, {14: [1, 782]}, t(i1, [2, 509], {6: [1, 783]}), {16: 784, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ct, [2, 222]), t(Li, qe, {61: 787, 14: [1, 785], 60: c1}), t(ci, [2, 226]), {13: a1, 16: 697, 17: 208, 18: 701, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: bs, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 703, 131: Q, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 191: 788, 192: 695, 194: ks, 195: 699, 196: xs, 197: 702, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ci, [2, 232], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {16: 789, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ci, [2, 234]), t(ci, [2, 235]), t(ci, [2, 236]), t(ci, [2, 237], {27: [1, 791], 98: [1, 790]}), t(ci, [2, 238]), t(V2, [2, 239]), t(Li, qe, {61: 787, 28: [1, 792], 60: c1}), t(Ne, [2, 197]), {6: Ye, 9: 532, 140: 531, 141: 386, 144: vi, 175: [1, 793]}, t(Ne, [2, 202]), t(Ne, [2, 203]), t(Ne, [2, 208]), t(Ne, [2, 210]), {146: Bt, 147: Yt, 148: Kt, 166: Jt, 190: [1, 794], 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, t(Wa, [2, 218]), t(ue, [2, 433]), t(zo, [2, 377], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(ki, qe, {61: 795, 60: L2}), t(zo, [2, 378]), {14: $n, 16: 715, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ue, [2, 441]), t(bi, [2, 444]), {6: Ye, 9: 796}, t(ki, qe, {61: 797, 60: vs}), t(bi, [2, 446]), {14: $n, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 720, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(ue, [2, 278]), t(xi, [2, 305]), t(xi, [2, 319]), t(xi, [2, 312], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(xi, [2, 320]), t(xi, [2, 318]), {33: 292, 36: c, 83: g, 206: Gi, 233: 294, 234: 293, 310: 798}, t([1, 6, 12, 13, 14, 28, 38, 60, 86, 96, 108, 142, 179, 190, 194, 207, 217, 225, 226, 249, 284, 296, 297, 298, 304, 305, 321], [2, 498], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 313: [1, 799], 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(pu, [2, 500], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 297: [1, 800], 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(un, [2, 499], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ct, [2, 388]), t(Cr, [2, 398]), t(Ct, [2, 396]), t(Cr, [2, 407], {86: n1, 179: o1}), t(Zn, [2, 414]), t(Zn, [2, 417]), t(Zn, [2, 418], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Zn, [2, 415]), t(Zn, [2, 412], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ct, [2, 249]), t(Ge, [2, 373]), t(ki, qe, {61: 801, 60: iu}), {6: Ye, 9: 644, 14: Lr, 82: 802, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, {6: Ye, 9: 644, 14: Lr, 82: 803, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, {224: 804, 225: du, 226: mu}, t(Ct, [2, 293]), {5: 805, 12: r, 13: i}, t(yu, [2, 285]), t(ku, [2, 448]), t(ye, [2, 53]), {39: [1, 806]}, {40: 807, 57: Te}, t(ye, [2, 51]), t(Ge, [2, 59]), t(ki, qe, {61: 808, 60: Jn}), t(Ge, [2, 60]), {14: [1, 809], 33: 370, 44: Qi, 59: 758, 62: 371, 63: 372, 83: g, 86: N, 87: $i}, t(ye, [2, 32]), t(ye, [2, 34]), {134: [2, 141]}, {134: [2, 142]}, {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 149: 810, 150: 669, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, t(l1, [2, 159]), t(l1, [2, 160]), {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 150: 811, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, t(Dr, [2, 153]), t(Dr, [2, 154]), t(Dr, [2, 155]), t(u1, [2, 175]), t(u1, [2, 173]), {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 150: 814, 154: 812, 155: 813, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, t(Dr, [2, 187]), {96: [1, 815]}, {96: [2, 162], 145: 816, 146: to, 147: eo, 148: ro}, {96: [2, 163], 145: 817, 146: to, 147: eo, 148: ro}, {38: [1, 818], 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 295: 157, 296: V, 298: j, 301: 158, 303: 121, 304: G, 305: z, 306: 122, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}, {6: Ye, 9: 644, 14: Lr, 82: 819}, t(Ct, [2, 506]), t(i1, [2, 510]), t(bu, [2, 456], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ct, [2, 223]), t(ki, Xo, {69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 31: 30, 47: 31, 48: 32, 80: 33, 238: 34, 23: 37, 24: 38, 202: 48, 251: 49, 67: 50, 68: 51, 255: 52, 227: 54, 201: 55, 118: 56, 257: 57, 253: 58, 64: 59, 210: 60, 211: 61, 212: 62, 243: 72, 49: 73, 318: 74, 295: 76, 299: 77, 301: 78, 261: 81, 198: 82, 234: 90, 233: 91, 99: 93, 46: 107, 90: 112, 127: 113, 33: 114, 84: 115, 245: 116, 303: 121, 306: 122, 92: 129, 102: 130, 17: 208, 19: 211, 16: 697, 195: 699, 18: 701, 197: 702, 130: 703, 192: 820, 25: s, 26: n, 29: o, 30: a, 32: l, 36: c, 57: f, 65: m, 83: g, 85: b, 86: bs, 91: y, 93: v, 95: d, 100: w, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 119: q, 122: K, 131: Q, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ks, 196: xs, 199: M, 206: X, 208: ee, 209: oe, 213: tt, 214: $, 218: et, 219: W, 237: tr, 239: rt, 240: it, 241: ut, 244: at, 252: lt, 254: ht, 256: ct, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 296: V, 298: j, 300: _t, 304: G, 305: z, 314: dt, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}), {6: j2, 9: 821, 13: G2}, t(ki, qe, {61: 824, 60: c1}), t(ci, [2, 233], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 296: V, 298: j, 304: G, 305: z, 321: ae, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), {83: [1, 825]}, {13: Zi, 16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 97: 826, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 267, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(Ct, [2, 224]), t(Ne, [2, 198]), t(Ne, [2, 221]), {6: Ye, 9: 718, 13: F2, 14: Lr, 82: 827}, {16: 357, 17: 208, 18: 272, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 194: ai, 195: 270, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 285: 828, 286: li, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {6: Wo, 9: 724, 13: Jo, 14: Lr, 82: 829}, t(Wn, [2, 495]), {16: 830, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {16: 831, 17: 208, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {6: Ye, 9: 833, 13: fu, 14: Lr, 82: 832}, t(Ge, [2, 259]), t(Ge, [2, 261]), t(Ct, [2, 282]), t(Ct, [2, 294]), {40: 834, 57: Te}, t(ye, [2, 52]), {6: gu, 13: M2, 14: [1, 835]}, t(Ge, [2, 61]), t(xu, [2, 157], {158: 670, 40: 676, 156: 677, 145: 767, 150: 768, 36: Br, 57: Te, 95: Hr, 100: zr, 146: to, 147: eo, 148: ro, 151: wu, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}), t(l1, [2, 161]), {60: [1, 837], 96: [1, 836]}, t(Su, [2, 166], {158: 670, 40: 676, 156: 677, 145: 838, 150: 839, 36: Br, 57: Te, 95: Hr, 100: zr, 146: to, 147: eo, 148: ro, 151: Tu, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}), t(h1, [2, 168]), t(u1, [2, 174]), {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 150: 841, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 150: 842, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, t(u1, [2, 172]), t(Ct, [2, 504]), t(ci, [2, 227]), {16: 697, 17: 208, 18: 701, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: bs, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 703, 131: Q, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 192: 843, 194: ks, 195: 699, 196: xs, 197: 702, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t([14, 25, 26, 29, 30, 32, 36, 57, 65, 83, 85, 86, 91, 93, 95, 100, 103, 109, 110, 111, 112, 113, 114, 115, 116, 119, 122, 131, 135, 136, 147, 148, 181, 182, 194, 196, 199, 206, 208, 209, 213, 214, 218, 219, 237, 239, 240, 241, 244, 252, 254, 256, 262, 281, 282, 288, 294, 296, 298, 300, 304, 305, 314, 319, 323, 324, 325, 326, 327, 328], N2, {193: [1, 844]}), {13: a1, 16: 697, 17: 208, 18: 701, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: bs, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 703, 131: Q, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 191: 845, 192: 695, 194: ks, 195: 699, 196: xs, 197: 702, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {6: j2, 9: 847, 13: G2, 14: Lr, 82: 846}, t(V2, [2, 240]), t(Li, qe, {61: 577, 28: [1, 848], 60: vs}), t(zo, [2, 379]), t(bi, [2, 445]), t(bi, [2, 447]), t(un, [2, 501], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(un, [2, 502], {303: 121, 306: 122, 295: 157, 301: 158, 146: Bt, 147: Yt, 148: Kt, 166: Jt, 196: Qt, 322: $t, 329: Vt, 330: qt, 331: Ot, 332: Xt}), t(Ge, [2, 374]), {14: $n, 18: 312, 33: 316, 46: 309, 57: f, 83: g, 84: 317, 85: b, 88: 318, 89: Mo, 92: 129, 93: v, 95: Vo, 99: 315, 100: w, 102: 130, 103: k, 194: jo, 203: 745, 204: 310, 205: 311, 206: Go, 208: ee, 209: oe, 219: W}, t(ye, [2, 54]), t(Ge, [2, 62]), t(Dr, [2, 185]), {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 150: 814, 155: 849, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, t(h1, [2, 169]), t(h1, [2, 170]), {36: Br, 40: 676, 57: Te, 95: Hr, 100: zr, 150: 850, 156: 677, 158: 670, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}, t(Eu, [2, 164]), t(Eu, [2, 165]), t(ci, [2, 228]), {6: Ye, 9: 851}, t(ki, qe, {61: 852, 60: c1}), t(ci, [2, 230]), {14: $n, 16: 697, 17: 208, 18: 701, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: bs, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 703, 131: Q, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 192: 843, 194: ks, 195: 699, 196: xs, 197: 702, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, t(V2, [2, 241]), t(Su, [2, 167], {158: 670, 40: 676, 156: 677, 145: 838, 150: 839, 36: Br, 57: Te, 95: Hr, 100: zr, 146: to, 147: eo, 148: ro, 151: Tu, 159: Ur, 160: Yr, 161: Kr, 162: qr, 163: Xr, 164: Wr, 165: Jr, 166: Zr}), t(h1, [2, 171]), {16: 697, 17: 208, 18: 701, 19: 211, 23: 37, 24: 38, 25: s, 26: n, 29: o, 30: a, 31: 30, 32: l, 33: 114, 36: c, 46: 107, 47: 31, 48: 32, 49: 73, 57: f, 64: 59, 65: m, 67: 50, 68: 51, 69: 19, 70: 20, 71: 21, 72: 22, 73: 23, 74: 24, 75: 25, 76: 26, 77: 27, 78: 28, 79: 29, 80: 33, 83: g, 84: 115, 85: b, 86: bs, 90: 112, 91: y, 92: 129, 93: v, 95: d, 99: 93, 100: w, 102: 130, 103: k, 109: T, 110: S, 111: C, 112: L, 113: D, 114: I, 115: U, 116: B, 118: 56, 119: q, 122: K, 127: 113, 130: 703, 131: Q, 135: wt, 136: St, 147: F, 148: H, 181: Y, 182: P, 192: 853, 194: ks, 195: 699, 196: xs, 197: 702, 198: 82, 199: M, 201: 55, 202: 48, 206: X, 208: ee, 209: oe, 210: 60, 211: 61, 212: 62, 213: tt, 214: $, 218: et, 219: W, 227: 54, 233: 91, 234: 90, 237: tr, 238: 34, 239: rt, 240: it, 241: ut, 243: 72, 244: at, 245: 116, 251: 49, 252: lt, 253: 58, 254: ht, 255: 52, 256: ct, 257: 57, 261: 81, 262: st, 281: ot, 282: nt, 288: pt, 294: ft, 295: 76, 296: V, 298: j, 299: 77, 300: _t, 301: 78, 303: 121, 304: G, 305: z, 306: 122, 314: dt, 318: 74, 319: mt, 323: yt, 324: gt, 325: vt, 326: bt, 327: kt, 328: xt}, {6: j2, 9: 847, 13: G2, 14: Lr, 82: 854}, t(ci, [2, 229]), t(ci, [2, 231])], defaultActions: {142: [2, 3], 179: [2, 431], 387: [2, 152], 526: [2, 56], 764: [2, 141], 765: [2, 142]}, parseError: function(x, Di) {
|
3093 | if (Di.recoverable)
|
3094 | this.trace(x);
|
3095 | else
|
3096 | throw new Error(x);
|
3097 | }, parse: function(x, Di = null) {
|
3098 | var R = this, ir = [0], h = [], u = [null], so = this.table, H2 = "", j_ = 0, G_ = 0, Zo = 0, p1 = 2, Qo = 1, ui = Object.create(this.lexer), f1 = this.yy;
|
3099 | ui.setInput(x, f1), typeof f1.parseError == "function" ? this.parseError = f1.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
3100 | function j3(Ss) {
|
3101 | ir.length = ir.length - 2 * Ss, u.length = u.length - Ss;
|
3102 | }
|
3103 | var Qr, no, ws, Bi, B_, z2, U2 = {}, H_, _1, Iu, Y2;
|
3104 | function G3() {
|
3105 | var Ss, oo = "";
|
3106 | function Nu($o) {
|
3107 | for (var wi = ir.length - 1, W2 = 0; ; ) {
|
3108 | if (p1.toString() in so[$o])
|
3109 | return W2;
|
3110 | if ($o === 0 || wi < 2)
|
3111 | return false;
|
3112 | wi -= 2, $o = ir[wi], ++W2;
|
3113 | }
|
3114 | }
|
3115 | if (Zo)
|
3116 | no !== Qo && (Ss = Nu(ws));
|
3117 | else {
|
3118 | Ss = Nu(ws), Y2 = [];
|
3119 | var K2 = ui.yytext, z_ = K2, q2 = R.terminals_[Qr] || Qr;
|
3120 | let $o = ui.tokens.indexOf(K2), wi = K2;
|
3121 | for (; wi && wi._loc == -1; )
|
3122 | wi = ui.tokens[--$o];
|
3123 | var pn = wi ? wi._loc : -1, X2 = pn > -1 ? pn + (wi._len || 0) : -1, H3 = pn != -1 ? "[" + wi._loc + ":" + wi._len + "]" : "[0:0]";
|
3124 | ui.showPosition ? oo = "Parse error at " + H3 + `:
|
3125 | ` + ui.showPosition() + `
|
3126 | Expecting ` + Y2.join(", ") + ", got '" + q2 + "'" : oo = "Unexpected " + (Qr == Qo ? "end of input" : "'" + q2 + "'"), Di && Di.addDiagnostic("error", {message: oo, source: "imba-parser", range: Di.rangeAt(pn, X2)}).raise(), R.parseError(oo, {lexer: ui, text: ui.match, token: q2, offset: pn, length: X2 - pn, start: {offset: pn}, end: {offset: X2}, line: ui.yylineno, expected: Y2, recoverable: Ss !== false});
|
3127 | }
|
3128 | if (Zo == 3) {
|
3129 | if (Qr === Qo || no === Qo)
|
3130 | throw new Error(oo || "Parsing halted while starting to recover from another error.");
|
3131 | H2 = ui.yytext;
|
3132 | }
|
3133 | if (Ss === false)
|
3134 | throw new Error(oo || "Parsing halted. No suitable error recovery rule available.");
|
3135 | j3(Ss), no = Qr == p1 ? null : Qr, Qr = p1, ws = ir[ir.length - 1], Bi = so[ws] && so[ws][p1], Zo = 3;
|
3136 | }
|
3137 | for (var B3 = this.symbols_, Ru = this.productions_; ; ) {
|
3138 | ws = ir[ir.length - 1], (Qr === null || typeof Qr == "undefined") && (Qr = B3[ui.lex()] || Qo), Bi = so[ws] && so[ws][Qr];
|
3139 | t:
|
3140 | (typeof Bi == "undefined" || !Bi.length || !Bi[0]) && G3();
|
3141 | switch (Bi[0]) {
|
3142 | case 1:
|
3143 | ir.push(Qr), ir.push(Bi[1]), u.push(ui.yytext), Qr = null, no ? (Qr = no, no = null) : (H2 = ui.yytext, Zo > 0 && Zo--);
|
3144 | break;
|
3145 | case 2:
|
3146 | if (_1 = Ru[Bi[1]][1], U2.$ = u[u.length - _1], z2 = this.performAction(U2, H2, f1, Bi[1], u), typeof z2 != "undefined")
|
3147 | return z2;
|
3148 | for (; _1 > 0; )
|
3149 | ir.pop(), ir.pop(), u.pop(), _1--;
|
3150 | ir.push(Ru[Bi[1]][0]), Iu = so[ir[ir.length - 2]][ir[ir.length - 1]], ir.push(Iu), u.push(U2.$);
|
3151 | break;
|
3152 | case 3:
|
3153 | return true;
|
3154 | }
|
3155 | }
|
3156 | return true;
|
3157 | }};
|
3158 | function B2() {
|
3159 | this.yy = {};
|
3160 | }
|
3161 | return B2.prototype = Au, Au.Parser = B2, new B2();
|
3162 | }();
|
3163 | typeof pa != "undefined" && (pa.parser = M1, pa.Parser = M1.Parser, pa.parse = function() {
|
3164 | return M1.parse.apply(M1, arguments);
|
3165 | });
|
3166 | });
|
3167 | var Ml = er((j0) => {
|
3168 | Hi(j0);
|
3169 | Fi(j0, {extractDependencies: () => xp, resolveDependencies: () => B0});
|
3170 | function G0(t) {
|
3171 | let e;
|
3172 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
3173 | }
|
3174 | var kp = Symbol.for("#locations");
|
3175 | function xp(t, e = null) {
|
3176 | let r = {}, i = 0, s = r[kp] = [];
|
3177 | for (; ; ) {
|
3178 | let n = t.indexOf("/*$path$*/", i);
|
3179 | if (n == -1)
|
3180 | break;
|
3181 | let o = n - 1, a = o - 1, l = t[o], p = l == ")" ? "(" : l;
|
3182 | for (; a > 0 && t[a - 1] != p; )
|
3183 | --a;
|
3184 | l == ")" && (t[a] == '"' || t[a] == "'") && (a += 1, o -= 1);
|
3185 | let c = t.slice(a, o);
|
3186 | s.push([a, o, c]), r[c] = c, i = n + 3;
|
3187 | }
|
3188 | return r;
|
3189 | }
|
3190 | function B0(t, e, r, i = {}) {
|
3191 | let s = i.importer || (i.importer = t);
|
3192 | i.resolveDir || (i.resolveDir = s.slice(0, s.lastIndexOf("/") + 1));
|
3193 | let n = e, o = xp(e), a = o[kp].slice(0).reverse(), l = Object.assign({}, o);
|
3194 | for (let p = 0, c = Object.keys(o), _ = c.length, f, m; p < _; p++) {
|
3195 | f = c[p], m = o[f];
|
3196 | let g = null;
|
3197 | r instanceof Function ? g = r(Object.assign({path: f}, i)) : r[f] && (g = r[f]), g != null && (l[f] = g);
|
3198 | }
|
3199 | for (let p = 0, c = G0(a), _ = c.length; p < _; p++) {
|
3200 | let [f, m, g] = c[p], b = l[g];
|
3201 | n = n.slice(0, f) + b + n.slice(m);
|
3202 | }
|
3203 | return n;
|
3204 | }
|
3205 | });
|
3206 | var Ep = er((wp) => {
|
3207 | function V1(t) {
|
3208 | return t ? t.toArray ? t.toArray() : t : [];
|
3209 | }
|
3210 | var j1 = N1(), H0 = lo(), Sp = 5, Tp = 1 << Sp, z0 = Tp - 1, U0 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
3211 | function Pr(t, e) {
|
3212 | this._script = t, this._options = e || {}, this._sourcePath = this._options.sourcePath, this._sourceRoot = this._options.sourceRoot, this._targetPath = this._options.targetPath, this._maps = [], this._map = "", this._js = "";
|
3213 | }
|
3214 | wp.SourceMap = Pr;
|
3215 | Pr.prototype.result = function(t) {
|
3216 | return this._result;
|
3217 | };
|
3218 | Pr.prototype.setResult = function(t) {
|
3219 | return this._result = t, this;
|
3220 | };
|
3221 | Pr.prototype.source = function() {
|
3222 | return this._source;
|
3223 | };
|
3224 | Pr.prototype.options = function() {
|
3225 | return this._options;
|
3226 | };
|
3227 | Pr.prototype.sourceCode = function() {
|
3228 | return this._script.sourceCode;
|
3229 | };
|
3230 | Pr.prototype.sourceName = function() {
|
3231 | return j1.basename(this._sourcePath);
|
3232 | };
|
3233 | Pr.prototype.targetName = function() {
|
3234 | return j1.basename(this._targetPath);
|
3235 | };
|
3236 | Pr.prototype.sourceFiles = function() {
|
3237 | return [this.sourceName()];
|
3238 | };
|
3239 | Pr.prototype.parse = function() {
|
3240 | var t = this, e = /\/\*\%([\w\|]*)?\$\*\//, r = /^(.*?)\/\*\%([\w\|]*)\$\*\//, i = t._script.js, s = t._script.js.split(/\n/g), n = t._options.debug, o = t.sourceCode(), a = H0.locationToLineColMap(o), l = "";
|
3241 | t._locs = [], t._maps = [], t._names = [];
|
3242 | var p = [], c = {}, _ = {}, f, m = 0;
|
3243 | for (let N = 0, y = V1(s), v = y.length, d; N < v; N++) {
|
3244 | d = y[N];
|
3245 | var g = 0, b = -1;
|
3246 | for (t._maps[N] = []; d.match(e); )
|
3247 | d = d.replace(r, function(w, k, T) {
|
3248 | var S;
|
3249 | if (T == "")
|
3250 | return k;
|
3251 | let C = T.split("|"), L = parseInt(C[0]), D = C[1] && parseInt(C[1]);
|
3252 | var I = a[L];
|
3253 | if (!I)
|
3254 | return k;
|
3255 | let U = I[0] + 1, B = I[1] + 1;
|
3256 | if (b != k.length) {
|
3257 | b = k.length;
|
3258 | var q = [[U, B], [N + 1, b + 1]];
|
3259 | t._maps[N].push(q);
|
3260 | }
|
3261 | let K = [m + b, L];
|
3262 | if (t._locs.push(K), D)
|
3263 | if (S = c[D]) {
|
3264 | S[1] = K[0], S[3] = K[1];
|
3265 | let Q = S.join("|");
|
3266 | if (_[Q])
|
3267 | c[D] = [];
|
3268 | else {
|
3269 | _[Q] = true;
|
3270 | let Dt = o.slice(S[2], S[3]);
|
3271 | S.START && (S.START[2] = Dt, t._names.indexOf(Dt) < 0 && t._names.push(Dt));
|
3272 | }
|
3273 | } else
|
3274 | c[D] = [K[0], null, K[1], null];
|
3275 | return k;
|
3276 | });
|
3277 | m += d.length + 1, s[N] = d;
|
3278 | }
|
3279 | if (t._script.js = s.join(`
|
3280 | `), t._script.locs = {map: a, generated: t._locs, spans: Object.values(c)}, n) {
|
3281 | for (let v = 0, d = V1(t._script.locs.spans), w = d.length, k; v < w; v++)
|
3282 | if (k = d[v], k[1] != null) {
|
3283 | let T = t._script.js.slice(k[0], k[1]).split(`
|
3284 | `), S = o.slice(k[2], k[3]).split(`
|
3285 | `);
|
3286 | k.push(T[0]), k.push(S[0]);
|
3287 | }
|
3288 | let N = {0: "\u2080", 1: "\u2081", 2: "\u2082", 3: "\u2083", 4: "\u2084", 5: "\u2085", 6: "\u2086", 7: "\u2087", 8: "\u2088", 9: "\u2089", "|": "\u208C"}, y = function(v, d) {
|
3289 | return "[" + d + "]";
|
3290 | };
|
3291 | t._script.js = t._script.js + `
|
3292 | /*
|
3293 | ` + i.replace(/\/\*\%([\w\|]*)?\$\*\//g, y).replace(/\/\*/g, "**").replace(/\*\//g, "**") + `
|
3294 | */`;
|
3295 | }
|
3296 | return t;
|
3297 | };
|
3298 | Pr.prototype.generate = function() {
|
3299 | this.parse();
|
3300 | var t = 1, e = 1, r = 1, i = "";
|
3301 | for (let l = 0, p = V1(this._maps), c = p.length, _; l < c; l++) {
|
3302 | _ = p[l], t = 1;
|
3303 | for (let f = 0, m = V1(_), g = m.length, b; f < g; f++) {
|
3304 | b = m[f], f != 0 && (i += ",");
|
3305 | var s = b[0], n = b[1];
|
3306 | i += this.encodeVlq(n[1] - t), t = n[1], i += this.encodeVlq(0), i += this.encodeVlq(s[0] - e), e = s[0], i += this.encodeVlq(s[1] - r), r = s[1];
|
3307 | }
|
3308 | i += ";";
|
3309 | }
|
3310 | var o = this._targetPath && j1.relative(j1.dirname(this._targetPath), this._sourcePath), a = {version: 3, file: this.sourceName().replace(/\.imba/, ".js") || "", sourceRoot: this._sourceRoot || "", sources: [o || this._sourcePath], sourcesContent: [this.sourceCode()], names: [], mappings: i};
|
3311 | return this._options.sourcemap == "inline" && (a.file = this.sourceName(), a.sources = [this.sourceName()]), this._result = a, this;
|
3312 | };
|
3313 | Pr.prototype.inlined = function() {
|
3314 | try {
|
3315 | var t = JSON.stringify(this._result);
|
3316 | if (globalThis.Buffer)
|
3317 | t = Buffer.from(t, "utf-8").toString("base64");
|
3318 | else if (typeof btoa == "function")
|
3319 | t = btoa(t);
|
3320 | else
|
3321 | return;
|
3322 | return `
|
3323 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,` + t;
|
3324 | } catch (e) {
|
3325 | }
|
3326 | return console.warn("base64 encoding not supported - skipping inline sourceMapping"), "";
|
3327 | };
|
3328 | Pr.prototype.encodeVlq = function(t) {
|
3329 | for (var e = "", r = t < 0 ? 1 : 0, i, s = (Math.abs(t) << 1) + r; s || !e; )
|
3330 | i = s & z0, s = s >> Sp, s && (i |= Tp), e += this.encodeBase64(i);
|
3331 | return e;
|
3332 | };
|
3333 | Pr.prototype.toJSON = function() {
|
3334 | return this._result;
|
3335 | };
|
3336 | Pr.prototype.encodeBase64 = function(t) {
|
3337 | return U0[t];
|
3338 | };
|
3339 | });
|
3340 | var jp = er((O4, Vp) => {
|
3341 | var te = {rgb: {channels: 3, labels: "rgb"}, hsl: {channels: 3, labels: "hsl"}, hsv: {channels: 3, labels: "hsv"}, hwb: {channels: 3, labels: "hwb"}, cmyk: {channels: 4, labels: "cmyk"}, xyz: {channels: 3, labels: "xyz"}, lab: {channels: 3, labels: "lab"}, lch: {channels: 3, labels: "lch"}, hex: {channels: 1, labels: ["hex"]}, ansi16: {channels: 1, labels: ["ansi16"]}, ansi256: {channels: 1, labels: ["ansi256"]}, hcg: {channels: 3, labels: ["h", "c", "g"]}, apple: {channels: 3, labels: ["r16", "g16", "b16"]}, gray: {channels: 1, labels: ["gray"]}};
|
3342 | Vp.exports = {conv: te};
|
3343 | for (let t of Object.keys(te)) {
|
3344 | if (!("channels" in te[t]))
|
3345 | throw new Error("missing channels property: " + t);
|
3346 | if (!("labels" in te[t]))
|
3347 | throw new Error("missing channel labels property: " + t);
|
3348 | if (te[t].labels.length !== te[t].channels)
|
3349 | throw new Error("channel and label counts mismatch: " + t);
|
3350 | let {channels: e, labels: r} = te[t];
|
3351 | delete te[t].channels, delete te[t].labels, Object.defineProperty(te[t], "channels", {value: e}), Object.defineProperty(te[t], "labels", {value: r});
|
3352 | }
|
3353 | te.rgb.hsl = function(t) {
|
3354 | let e = t[0] / 255, r = t[1] / 255, i = t[2] / 255, s = Math.min(e, r, i), n = Math.max(e, r, i), o = n - s, a, l;
|
3355 | n === s ? a = 0 : e === n ? a = (r - i) / o : r === n ? a = 2 + (i - e) / o : i === n && (a = 4 + (e - r) / o), a = Math.min(a * 60, 360), a < 0 && (a += 360);
|
3356 | let p = (s + n) / 2;
|
3357 | return n === s ? l = 0 : p <= 0.5 ? l = o / (n + s) : l = o / (2 - n - s), [a, l * 100, p * 100];
|
3358 | };
|
3359 | te.rgb.hsv = function(t) {
|
3360 | let e, r, i, s, n, o = t[0] / 255, a = t[1] / 255, l = t[2] / 255, p = Math.max(o, a, l), c = p - Math.min(o, a, l), _ = function(f) {
|
3361 | return (p - f) / 6 / c + 1 / 2;
|
3362 | };
|
3363 | return c === 0 ? (s = 0, n = 0) : (n = c / p, e = _(o), r = _(a), i = _(l), o === p ? s = i - r : a === p ? s = 1 / 3 + e - i : l === p && (s = 2 / 3 + r - e), s < 0 ? s += 1 : s > 1 && (s -= 1)), [s * 360, n * 100, p * 100];
|
3364 | };
|
3365 | te.rgb.hwb = function(t) {
|
3366 | let e = t[0], r = t[1], i = t[2], s = te.rgb.hsl(t)[0], n = 1 / 255 * Math.min(e, Math.min(r, i));
|
3367 | return i = 1 - 1 / 255 * Math.max(e, Math.max(r, i)), [s, n * 100, i * 100];
|
3368 | };
|
3369 | te.rgb.cmyk = function(t) {
|
3370 | let e = t[0] / 255, r = t[1] / 255, i = t[2] / 255, s = Math.min(1 - e, 1 - r, 1 - i), n = (1 - e - s) / (1 - s) || 0, o = (1 - r - s) / (1 - s) || 0, a = (1 - i - s) / (1 - s) || 0;
|
3371 | return [n * 100, o * 100, a * 100, s * 100];
|
3372 | };
|
3373 | te.rgb.xyz = function(t) {
|
3374 | let e = t[0] / 255, r = t[1] / 255, i = t[2] / 255;
|
3375 | e = e > 0.04045 ? ((e + 0.055) / 1.055) ** 2.4 : e / 12.92, r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92, i = i > 0.04045 ? ((i + 0.055) / 1.055) ** 2.4 : i / 12.92;
|
3376 | let s = e * 0.4124564 + r * 0.3575761 + i * 0.1804375, n = e * 0.2126729 + r * 0.7151522 + i * 0.072175, o = e * 0.0193339 + r * 0.119192 + i * 0.9503041;
|
3377 | return [s * 100, n * 100, o * 100];
|
3378 | };
|
3379 | te.rgb.lab = function(t) {
|
3380 | let e = te.rgb.xyz(t), r = e[0], i = e[1], s = e[2];
|
3381 | r /= 95.047, i /= 100, s /= 108.883, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116, i = i > 8856e-6 ? i ** (1 / 3) : 7.787 * i + 16 / 116, s = s > 8856e-6 ? s ** (1 / 3) : 7.787 * s + 16 / 116;
|
3382 | let n = 116 * i - 16, o = 500 * (r - i), a = 200 * (i - s);
|
3383 | return [n, o, a];
|
3384 | };
|
3385 | te.hsl.rgb = function(t) {
|
3386 | let e = t[0] / 360, r = t[1] / 100, i = t[2] / 100, s, n, o;
|
3387 | if (r === 0)
|
3388 | return o = i * 255, [o, o, o];
|
3389 | i < 0.5 ? s = i * (1 + r) : s = i + r - i * r;
|
3390 | let a = 2 * i - s, l = [0, 0, 0];
|
3391 | for (let p = 0; p < 3; p++)
|
3392 | n = e + 1 / 3 * -(p - 1), n < 0 && n++, n > 1 && n--, 6 * n < 1 ? o = a + (s - a) * 6 * n : 2 * n < 1 ? o = s : 3 * n < 2 ? o = a + (s - a) * (2 / 3 - n) * 6 : o = a, l[p] = o * 255;
|
3393 | return l;
|
3394 | };
|
3395 | te.hsl.hsv = function(t) {
|
3396 | let e = t[0], r = t[1] / 100, i = t[2] / 100, s = r, n = Math.max(i, 0.01);
|
3397 | i *= 2, r *= i <= 1 ? i : 2 - i, s *= n <= 1 ? n : 2 - n;
|
3398 | let o = (i + r) / 2, a = i === 0 ? 2 * s / (n + s) : 2 * r / (i + r);
|
3399 | return [e, a * 100, o * 100];
|
3400 | };
|
3401 | te.hsv.rgb = function(t) {
|
3402 | let e = t[0] / 60, r = t[1] / 100, i = t[2] / 100, s = Math.floor(e) % 6, n = e - Math.floor(e), o = 255 * i * (1 - r), a = 255 * i * (1 - r * n), l = 255 * i * (1 - r * (1 - n));
|
3403 | switch (i *= 255, s) {
|
3404 | case 0:
|
3405 | return [i, l, o];
|
3406 | case 1:
|
3407 | return [a, i, o];
|
3408 | case 2:
|
3409 | return [o, i, l];
|
3410 | case 3:
|
3411 | return [o, a, i];
|
3412 | case 4:
|
3413 | return [l, o, i];
|
3414 | case 5:
|
3415 | return [i, o, a];
|
3416 | }
|
3417 | };
|
3418 | te.hsv.hsl = function(t) {
|
3419 | let e = t[0], r = t[1] / 100, i = t[2] / 100, s = Math.max(i, 0.01), n, o;
|
3420 | o = (2 - r) * i;
|
3421 | let a = (2 - r) * s;
|
3422 | return n = r * s, n /= a <= 1 ? a : 2 - a, n = n || 0, o /= 2, [e, n * 100, o * 100];
|
3423 | };
|
3424 | te.hwb.rgb = function(t) {
|
3425 | let e = t[0] / 360, r = t[1] / 100, i = t[2] / 100, s = r + i, n;
|
3426 | s > 1 && (r /= s, i /= s);
|
3427 | let o = Math.floor(6 * e), a = 1 - i;
|
3428 | n = 6 * e - o, (o & 1) != 0 && (n = 1 - n);
|
3429 | let l = r + n * (a - r), p, c, _;
|
3430 | switch (o) {
|
3431 | default:
|
3432 | case 6:
|
3433 | case 0:
|
3434 | p = a, c = l, _ = r;
|
3435 | break;
|
3436 | case 1:
|
3437 | p = l, c = a, _ = r;
|
3438 | break;
|
3439 | case 2:
|
3440 | p = r, c = a, _ = l;
|
3441 | break;
|
3442 | case 3:
|
3443 | p = r, c = l, _ = a;
|
3444 | break;
|
3445 | case 4:
|
3446 | p = l, c = r, _ = a;
|
3447 | break;
|
3448 | case 5:
|
3449 | p = a, c = r, _ = l;
|
3450 | break;
|
3451 | }
|
3452 | return [p * 255, c * 255, _ * 255];
|
3453 | };
|
3454 | te.cmyk.rgb = function(t) {
|
3455 | let e = t[0] / 100, r = t[1] / 100, i = t[2] / 100, s = t[3] / 100, n = 1 - Math.min(1, e * (1 - s) + s), o = 1 - Math.min(1, r * (1 - s) + s), a = 1 - Math.min(1, i * (1 - s) + s);
|
3456 | return [n * 255, o * 255, a * 255];
|
3457 | };
|
3458 | te.xyz.rgb = function(t) {
|
3459 | let e = t[0] / 100, r = t[1] / 100, i = t[2] / 100, s, n, o;
|
3460 | return s = e * 3.2404542 + r * -1.5371385 + i * -0.4985314, n = e * -0.969266 + r * 1.8760108 + i * 0.041556, o = e * 0.0556434 + r * -0.2040259 + i * 1.0572252, s = s > 31308e-7 ? 1.055 * s ** (1 / 2.4) - 0.055 : s * 12.92, n = n > 31308e-7 ? 1.055 * n ** (1 / 2.4) - 0.055 : n * 12.92, o = o > 31308e-7 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92, s = Math.min(Math.max(0, s), 1), n = Math.min(Math.max(0, n), 1), o = Math.min(Math.max(0, o), 1), [s * 255, n * 255, o * 255];
|
3461 | };
|
3462 | te.xyz.lab = function(t) {
|
3463 | let e = t[0], r = t[1], i = t[2];
|
3464 | e /= 95.047, r /= 100, i /= 108.883, e = e > 8856e-6 ? e ** (1 / 3) : 7.787 * e + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116, i = i > 8856e-6 ? i ** (1 / 3) : 7.787 * i + 16 / 116;
|
3465 | let s = 116 * r - 16, n = 500 * (e - r), o = 200 * (r - i);
|
3466 | return [s, n, o];
|
3467 | };
|
3468 | te.lab.xyz = function(t) {
|
3469 | let e = t[0], r = t[1], i = t[2], s, n, o;
|
3470 | n = (e + 16) / 116, s = r / 500 + n, o = n - i / 200;
|
3471 | let a = n ** 3, l = s ** 3, p = o ** 3;
|
3472 | return n = a > 8856e-6 ? a : (n - 16 / 116) / 7.787, s = l > 8856e-6 ? l : (s - 16 / 116) / 7.787, o = p > 8856e-6 ? p : (o - 16 / 116) / 7.787, s *= 95.047, n *= 100, o *= 108.883, [s, n, o];
|
3473 | };
|
3474 | te.lab.lch = function(t) {
|
3475 | let e = t[0], r = t[1], i = t[2], s;
|
3476 | s = Math.atan2(i, r) * 360 / 2 / Math.PI, s < 0 && (s += 360);
|
3477 | let o = Math.sqrt(r * r + i * i);
|
3478 | return [e, o, s];
|
3479 | };
|
3480 | te.lch.lab = function(t) {
|
3481 | let e = t[0], r = t[1], s = t[2] / 360 * 2 * Math.PI, n = r * Math.cos(s), o = r * Math.sin(s);
|
3482 | return [e, n, o];
|
3483 | };
|
3484 | te.rgb.ansi16 = function(t, e = null) {
|
3485 | let [r, i, s] = t, n = e === null ? te.rgb.hsv(t)[2] : e;
|
3486 | if (n = Math.round(n / 50), n === 0)
|
3487 | return 30;
|
3488 | let o = 30 + (Math.round(s / 255) << 2 | Math.round(i / 255) << 1 | Math.round(r / 255));
|
3489 | return n === 2 && (o += 60), o;
|
3490 | };
|
3491 | te.hsv.ansi16 = function(t) {
|
3492 | return te.rgb.ansi16(te.hsv.rgb(t), t[2]);
|
3493 | };
|
3494 | te.rgb.ansi256 = function(t) {
|
3495 | let e = t[0], r = t[1], i = t[2];
|
3496 | return e === r && r === i ? e < 8 ? 16 : e > 248 ? 231 : Math.round((e - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(e / 255 * 5) + 6 * Math.round(r / 255 * 5) + Math.round(i / 255 * 5);
|
3497 | };
|
3498 | te.ansi16.rgb = function(t) {
|
3499 | let e = t % 10;
|
3500 | if (e === 0 || e === 7)
|
3501 | return t > 50 && (e += 3.5), e = e / 10.5 * 255, [e, e, e];
|
3502 | let r = (~~(t > 50) + 1) * 0.5, i = (e & 1) * r * 255, s = (e >> 1 & 1) * r * 255, n = (e >> 2 & 1) * r * 255;
|
3503 | return [i, s, n];
|
3504 | };
|
3505 | te.ansi256.rgb = function(t) {
|
3506 | if (t >= 232) {
|
3507 | let n = (t - 232) * 10 + 8;
|
3508 | return [n, n, n];
|
3509 | }
|
3510 | t -= 16;
|
3511 | let e, r = Math.floor(t / 36) / 5 * 255, i = Math.floor((e = t % 36) / 6) / 5 * 255, s = e % 6 / 5 * 255;
|
3512 | return [r, i, s];
|
3513 | };
|
3514 | te.rgb.hex = function(t) {
|
3515 | let r = (((Math.round(t[0]) & 255) << 16) + ((Math.round(t[1]) & 255) << 8) + (Math.round(t[2]) & 255)).toString(16).toUpperCase();
|
3516 | return "000000".substring(r.length) + r;
|
3517 | };
|
3518 | te.hex.rgb = function(t) {
|
3519 | let e = t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
3520 | if (!e)
|
3521 | return [0, 0, 0];
|
3522 | let r = e[0];
|
3523 | e[0].length === 3 && (r = r.split("").map((a) => a + a).join(""));
|
3524 | let i = parseInt(r, 16), s = i >> 16 & 255, n = i >> 8 & 255, o = i & 255;
|
3525 | return [s, n, o];
|
3526 | };
|
3527 | te.hex.hsl = function(t) {
|
3528 | return te.rgb.hsl(te.hex.rgb(t));
|
3529 | };
|
3530 | te.rgb.hcg = function(t) {
|
3531 | let e = t[0] / 255, r = t[1] / 255, i = t[2] / 255, s = Math.max(Math.max(e, r), i), n = Math.min(Math.min(e, r), i), o = s - n, a, l;
|
3532 | return o < 1 ? a = n / (1 - o) : a = 0, o <= 0 ? l = 0 : s === e ? l = (r - i) / o % 6 : s === r ? l = 2 + (i - e) / o : l = 4 + (e - r) / o, l /= 6, l %= 1, [l * 360, o * 100, a * 100];
|
3533 | };
|
3534 | te.hsl.hcg = function(t) {
|
3535 | let e = t[1] / 100, r = t[2] / 100, i = r < 0.5 ? 2 * e * r : 2 * e * (1 - r), s = 0;
|
3536 | return i < 1 && (s = (r - 0.5 * i) / (1 - i)), [t[0], i * 100, s * 100];
|
3537 | };
|
3538 | te.hsv.hcg = function(t) {
|
3539 | let e = t[1] / 100, r = t[2] / 100, i = e * r, s = 0;
|
3540 | return i < 1 && (s = (r - i) / (1 - i)), [t[0], i * 100, s * 100];
|
3541 | };
|
3542 | te.hcg.rgb = function(t) {
|
3543 | let e = t[0] / 360, r = t[1] / 100, i = t[2] / 100;
|
3544 | if (r === 0)
|
3545 | return [i * 255, i * 255, i * 255];
|
3546 | let s = [0, 0, 0], n = e % 1 * 6, o = n % 1, a = 1 - o, l = 0;
|
3547 | switch (Math.floor(n)) {
|
3548 | case 0:
|
3549 | s[0] = 1, s[1] = o, s[2] = 0;
|
3550 | break;
|
3551 | case 1:
|
3552 | s[0] = a, s[1] = 1, s[2] = 0;
|
3553 | break;
|
3554 | case 2:
|
3555 | s[0] = 0, s[1] = 1, s[2] = o;
|
3556 | break;
|
3557 | case 3:
|
3558 | s[0] = 0, s[1] = a, s[2] = 1;
|
3559 | break;
|
3560 | case 4:
|
3561 | s[0] = o, s[1] = 0, s[2] = 1;
|
3562 | break;
|
3563 | default:
|
3564 | s[0] = 1, s[1] = 0, s[2] = a;
|
3565 | }
|
3566 | return l = (1 - r) * i, [(r * s[0] + l) * 255, (r * s[1] + l) * 255, (r * s[2] + l) * 255];
|
3567 | };
|
3568 | te.hcg.hsv = function(t) {
|
3569 | let e = t[1] / 100, r = t[2] / 100, i = e + r * (1 - e), s = 0;
|
3570 | return i > 0 && (s = e / i), [t[0], s * 100, i * 100];
|
3571 | };
|
3572 | te.hcg.hsl = function(t) {
|
3573 | let e = t[1] / 100, i = t[2] / 100 * (1 - e) + 0.5 * e, s = 0;
|
3574 | return i > 0 && i < 0.5 ? s = e / (2 * i) : i >= 0.5 && i < 1 && (s = e / (2 * (1 - i))), [t[0], s * 100, i * 100];
|
3575 | };
|
3576 | te.hcg.hwb = function(t) {
|
3577 | let e = t[1] / 100, r = t[2] / 100, i = e + r * (1 - e);
|
3578 | return [t[0], (i - e) * 100, (1 - i) * 100];
|
3579 | };
|
3580 | te.hwb.hcg = function(t) {
|
3581 | let e = t[1] / 100, r = t[2] / 100, i = 1 - r, s = i - e, n = 0;
|
3582 | return s < 1 && (n = (i - s) / (1 - s)), [t[0], s * 100, n * 100];
|
3583 | };
|
3584 | te.apple.rgb = function(t) {
|
3585 | return [t[0] / 65535 * 255, t[1] / 65535 * 255, t[2] / 65535 * 255];
|
3586 | };
|
3587 | te.rgb.apple = function(t) {
|
3588 | return [t[0] / 255 * 65535, t[1] / 255 * 65535, t[2] / 255 * 65535];
|
3589 | };
|
3590 | te.gray.rgb = function(t) {
|
3591 | return [t[0] / 100 * 255, t[0] / 100 * 255, t[0] / 100 * 255];
|
3592 | };
|
3593 | te.gray.hsl = function(t) {
|
3594 | return [0, 0, t[0]];
|
3595 | };
|
3596 | te.gray.hsv = te.gray.hsl;
|
3597 | te.gray.hwb = function(t) {
|
3598 | return [0, 100, t[0]];
|
3599 | };
|
3600 | te.gray.cmyk = function(t) {
|
3601 | return [0, 0, 0, t[0]];
|
3602 | };
|
3603 | te.gray.lab = function(t) {
|
3604 | return [t[0], 0, 0];
|
3605 | };
|
3606 | te.gray.hex = function(t) {
|
3607 | let e = Math.round(t[0] / 100 * 255) & 255, i = ((e << 16) + (e << 8) + e).toString(16).toUpperCase();
|
3608 | return "000000".substring(i.length) + i;
|
3609 | };
|
3610 | te.rgb.gray = function(t) {
|
3611 | return [(t[0] + t[1] + t[2]) / 3 / 255 * 100];
|
3612 | };
|
3613 | });
|
3614 | var Wp = er(($0) => {
|
3615 | Hi($0);
|
3616 | Fi($0, {Calc: () => zp, Color: () => Ai, Length: () => Os, StyleExtenders: () => qp, StyleRule: () => ss, StyleSheet: () => Xp, StyleTheme: () => Kp, Tint: () => wn, TransformMixin: () => n_, Var: () => bo, abbreviations: () => Kl, aliases: () => vo, layouts: () => Hp, validTypes: () => fa});
|
3617 | var Hl = Ou(jp());
|
3618 | function Ar(t) {
|
3619 | let e;
|
3620 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
3621 | }
|
3622 | var F4 = Symbol.for("#__initor__"), P4 = Symbol.for("#__inited__"), zl = Symbol.for("#stack"), Ul = Symbol.for("#parts"), Yl = Symbol.for("#apply"), H1 = Symbol.for("#register"), xn = Symbol.for("#string"), t_ = Symbol.for("#media"), e_ = Symbol.for("#rules"), Gp = null, Bp = new WeakMap(), Hp = {group: function(t) {
|
3623 | return t.display = "flex", t.jc = "flex-start", t.flw = "wrap", t["--u_sx"] = "calc(var(--u_cg,0) * 0.5)", t["--u_sy"] = "calc(var(--u_rg,0) * 0.5)", t.margin = "calc(var(--u_sy) * -1) calc(var(--u_sx) * -1)", t["&>*"] = {margin: "var(--u_sy) var(--u_sx)"};
|
3624 | }, vflex: function(t) {
|
3625 | return t.display = "flex", t.fld = "column";
|
3626 | }, hflex: function(t) {
|
3627 | return t.display = "flex", t.fld = "row";
|
3628 | }, hgrid: function(t) {
|
3629 | return t.display = "grid", t.gaf = "column", t.gac = "1fr";
|
3630 | }, vgrid: function(t) {
|
3631 | return t.display = "grid", t.gaf = "row";
|
3632 | }}, fa = {ease: "linear|ease|ease-in|ease-out|ease-in-out|step-start|step-end|steps\u0192|cubic-bezier\u0192"};
|
3633 | for (let t = 0, e = Object.keys(fa), r = e.length, i, s; t < r; t++) {
|
3634 | i = e[t], s = fa[i];
|
3635 | let n = {};
|
3636 | for (let o = 0, a = Ar(s.split("|")), l = a.length; o < l; o++) {
|
3637 | let p = a[o];
|
3638 | n[p] = 1;
|
3639 | }
|
3640 | fa[i] = n;
|
3641 | }
|
3642 | var vo = {c: "color", d: "display", pos: "position", p: "padding", pl: "padding-left", pr: "padding-right", pt: "padding-top", pb: "padding-bottom", px: ["pl", "pr"], py: ["pt", "pb"], m: "margin", ml: "margin-left", mr: "margin-right", mt: "margin-top", mb: "margin-bottom", mx: ["ml", "mr"], my: ["mt", "mb"], w: "width", h: "height", t: "top", b: "bottom", l: "left", r: "right", size: ["width", "height"], ji: "justify-items", jc: "justify-content", js: "justify-self", j: ["justify-content", "justify-items"], ai: "align-items", ac: "align-content", as: "align-self", a: ["align-content", "align-items"], jai: ["justify-items", "align-items"], jac: ["justify-content", "align-content"], jas: ["justify-self", "align-self"], ja: ["justify-content", "align-content", "justify-items", "align-items"], fl: "flex", flf: "flex-flow", fld: "flex-direction", flb: "flex-basis", flg: "flex-grow", fls: "flex-shrink", flw: "flex-wrap", ff: "font-family", fs: "font-size", fw: "font-weight", ts: "text-shadow", td: "text-decoration", tdl: "text-decoration-line", tdc: "text-decoration-color", tds: "text-decoration-style", tdt: "text-decoration-thickness", tdsi: "text-decoration-skip-ink", te: "text-emphasis", tec: "text-emphasis-color", tes: "text-emphasis-style", tep: "text-emphasis-position", tet: "text-emphasis-thickness", tt: "text-transform", ta: "text-align", va: "vertical-align", ls: "letter-spacing", lh: "line-height", bd: "border", bdr: "border-right", bdl: "border-left", bdt: "border-top", bdb: "border-bottom", bs: "border-style", bsr: "border-right-style", bsl: "border-left-style", bst: "border-top-style", bsb: "border-bottom-style", bw: "border-width", bwr: "border-right-width", bwl: "border-left-width", bwt: "border-top-width", bwb: "border-bottom-width", bc: "border-color", bcr: "border-right-color", bcl: "border-left-color", bct: "border-top-color", bcb: "border-bottom-color", rd: "border-radius", rdtl: "border-top-left-radius", rdtr: "border-top-right-radius", rdbl: "border-bottom-left-radius", rdbr: "border-bottom-right-radius", rdt: ["border-top-left-radius", "border-top-right-radius"], rdb: ["border-bottom-left-radius", "border-bottom-right-radius"], rdl: ["border-top-left-radius", "border-bottom-left-radius"], rdr: ["border-top-right-radius", "border-bottom-right-radius"], bg: "background", bgp: "background-position", bgc: "background-color", bgr: "background-repeat", bgi: "background-image", bga: "background-attachment", bgs: "background-size", bgo: "background-origin", bgclip: "background-clip", g: "gap", rg: "row-gap", cg: "column-gap", gtr: "grid-template-rows", gtc: "grid-template-columns", gta: "grid-template-areas", gar: "grid-auto-rows", gac: "grid-auto-columns", gaf: "grid-auto-flow", gcg: "grid-column-gap", grg: "grid-row-gap", ga: "grid-area", gr: "grid-row", gc: "grid-column", gt: "grid-template", grs: "grid-row-start", gcs: "grid-column-start", gre: "grid-row-end", gce: "grid-column-end", bxs: "box-shadow", shadow: "box-shadow", of: "overflow", ofx: "overflow-x", ofy: "overflow-y", ofa: "overflow-anchor", prefix: "content@before", suffix: "content@after", x: "x", y: "y", z: "z", rotate: "rotate", scale: "scale", "scale-x": "scale-x", "scale-y": "scale-y", "skew-x": "skew-x", "skew-y": "skew-y", origin: "transform-origin", ws: "white-space", zi: "z-index", pe: "pointer-events", us: "user-select", o: "opacity", tween: "transition", e: "ease", eo: "ease-opacity", et: "ease-transform", ec: "ease-colors"}, Kl = {};
|
3643 | for (let t = 0, e = Object.keys(vo), r = e.length, i, s; t < r; t++)
|
3644 | i = e[t], s = vo[i], typeof s == "string" && (Kl[s] = i);
|
3645 | function r_(t) {
|
3646 | return !!(t._value && t._value._type == "NUMBER" && !t._unit);
|
3647 | }
|
3648 | var Ai = class {
|
3649 | constructor(e, r, i, s, n = 1) {
|
3650 | this.name = e, this.h = r, this.s = i, this.l = s, this.a = n;
|
3651 | }
|
3652 | alpha(e = 1) {
|
3653 | return new Ai(this.name, this.h, this.s, this.l, e);
|
3654 | }
|
3655 | clone() {
|
3656 | return new Ai(this.name, this.h, this.s, this.l, this.a);
|
3657 | }
|
3658 | mix(e, r = 0.5, i = 0.5, s = 0.5) {
|
3659 | let n = this.h + (e.h - this.h) * r, o = this.s + (e.s - this.s) * i, a = this.l + (e.l - this.l) * s;
|
3660 | return new Ai(this.name + e.name, n, o, a);
|
3661 | }
|
3662 | toString(e = this.a) {
|
3663 | return typeof e == "string" && e[0] == "$" && (e = "var(--" + e.slice(1) + ",100%)"), "hsla(" + this.h.toFixed(2) + "," + this.s.toFixed(2) + "%," + this.l.toFixed(2) + "%," + e + ")";
|
3664 | }
|
3665 | toVar(e = 2) {
|
3666 | return "" + Math.round(this.h) + "," + Math.round(this.s) + "%," + Math.round(this.l) + "%";
|
3667 | }
|
3668 | c() {
|
3669 | return this.toString();
|
3670 | }
|
3671 | }, wn = class extends Ai {
|
3672 | alpha(e = 1) {
|
3673 | return new wn(this.name, this.h, this.s, this.l, e);
|
3674 | }
|
3675 | clone() {
|
3676 | return new wn(this.name, this.h, this.s, this.l, this.a);
|
3677 | }
|
3678 | toString(e = this.a) {
|
3679 | return typeof e == "string" && e[0] == "$" && (e = "var(--" + e.slice(1) + ",100%)"), "hsla(var(--" + this.name + ")," + e + ")";
|
3680 | }
|
3681 | }, Os = class {
|
3682 | static parse(e) {
|
3683 | let r = String(e).match(/^(\-?[\d\.]+)(\w+|%)?$/);
|
3684 | return r ? new this(parseFloat(r[1]), r[2]) : null;
|
3685 | }
|
3686 | constructor(e, r) {
|
3687 | this.number = e, this.unit = r;
|
3688 | }
|
3689 | valueOf() {
|
3690 | return this.number;
|
3691 | }
|
3692 | toString() {
|
3693 | return this.number + (this.unit || "");
|
3694 | }
|
3695 | clone(e = this.number, r = this.unit) {
|
3696 | return new Os(e, r);
|
3697 | }
|
3698 | rounded() {
|
3699 | return this.clone(Math.round(this.number));
|
3700 | }
|
3701 | c() {
|
3702 | return this.toString();
|
3703 | }
|
3704 | get _unit() {
|
3705 | return this.unit;
|
3706 | }
|
3707 | get _number() {
|
3708 | return this.number;
|
3709 | }
|
3710 | }, bo = class {
|
3711 | constructor(e, r) {
|
3712 | this.name = e, this.fallback = r;
|
3713 | }
|
3714 | c() {
|
3715 | return this.fallback ? "var(--" + this.name + "," + (this.fallback.c ? this.fallback.c() : String(this.fallback)) + ")" : "var(--" + this.name + ")";
|
3716 | }
|
3717 | }, zp = class {
|
3718 | constructor(e) {
|
3719 | this.expr = e;
|
3720 | }
|
3721 | cpart(e) {
|
3722 | let r = "(";
|
3723 | for (let i = 0, s = Ar(e), n = s.length; i < n; i++) {
|
3724 | let o = s[i];
|
3725 | typeof o == "string" ? r += " " + o + " " : typeof o == "number" ? r += o : o.c instanceof Function ? r += o.c() : o instanceof Array && (r += this.cpart(o));
|
3726 | }
|
3727 | return r += ")", r;
|
3728 | }
|
3729 | c() {
|
3730 | return "calc" + this.cpart(this.expr);
|
3731 | }
|
3732 | }, Up = {current: {string: "currentColor", c: function() {
|
3733 | return "currentColor";
|
3734 | }}, transparent: new Ai("transparent", 0, 0, 100, "0%"), clear: new Ai("transparent", 100, 100, 100, "0%"), black: new Ai("black", 0, 0, 0, "100%"), white: new Ai("white", 0, 0, 100, "100%")};
|
3735 | function i_(t) {
|
3736 | let e;
|
3737 | if (e = t.match(/hsl\((\d+), *(\d+\%), *(\d+\%?)/)) {
|
3738 | let r = parseInt(e[1]), i = parseInt(e[2]), s = parseInt(e[3]);
|
3739 | return [r, i, s];
|
3740 | } else if (t[0] == "#")
|
3741 | return Hl.conv.rgb.hsl(Hl.conv.hex.rgb(t));
|
3742 | }
|
3743 | function Yp(t, e) {
|
3744 | for (let r = 0, i = Object.keys(e), s = i.length, n, o; r < s; r++) {
|
3745 | if (n = i[r], o = e[n], typeof o == "string") {
|
3746 | t[n] = o;
|
3747 | continue;
|
3748 | }
|
3749 | for (let a = 0, l = Object.keys(o), p = l.length, c, _; a < p; a++) {
|
3750 | c = l[a], _ = o[c];
|
3751 | let f = n + c;
|
3752 | if (t[_])
|
3753 | t[f] = t[_];
|
3754 | else {
|
3755 | let [m, g, b] = i_(_), N = t[f] = new Ai(f, m, g, b, "100%");
|
3756 | }
|
3757 | }
|
3758 | }
|
3759 | return t;
|
3760 | }
|
3761 | Yp(Up, Gl);
|
3762 | var s_ = "cm mm Q in pc pt px em ex ch rem vw vh vmin vmax % s ms fr deg rad grad turn Hz kHz".split(" "), Kp = class {
|
3763 | static instance() {
|
3764 | return Gp || (Gp = new this());
|
3765 | }
|
3766 | static propAbbr(e) {
|
3767 | return Kl[e] || e;
|
3768 | }
|
3769 | static wrap(e) {
|
3770 | if (!e)
|
3771 | return this.instance();
|
3772 | let r = Bp.get(e);
|
3773 | return r || Bp.set(e, r = new this(e)), r;
|
3774 | }
|
3775 | constructor(e = {}) {
|
3776 | this.options = Vl, this.palette = Object.assign({}, Up), e.theme && (e = e.theme), e && e.colors && Yp(this.palette, e.colors);
|
3777 | }
|
3778 | expandProperty(e) {
|
3779 | return vo[e] || void 0;
|
3780 | }
|
3781 | expandValue(e, r) {
|
3782 | if (e == null && (e = r.default), r.hasOwnProperty(e) && (e = r[e]), typeof e == "number" && r.NUMBER) {
|
3783 | let [i, s, n] = r.NUMBER.match(/^(\-?[\d\.]+)(\w+|%)?$/);
|
3784 | return e * parseFloat(s) + n;
|
3785 | }
|
3786 | return e;
|
3787 | }
|
3788 | padding_x([e, r = e]) {
|
3789 | return {"padding-left": e, "padding-right": r};
|
3790 | }
|
3791 | padding_y([e, r = e]) {
|
3792 | return {"padding-top": e, "padding-bottom": r};
|
3793 | }
|
3794 | margin_x([e, r = e]) {
|
3795 | return {"margin-left": e, "margin-right": r};
|
3796 | }
|
3797 | margin_y([e, r = e]) {
|
3798 | return {"margin-top": e, "margin-bottom": r};
|
3799 | }
|
3800 | ease(e) {
|
3801 | return this.$ease(e, "");
|
3802 | }
|
3803 | ease_opacity(e) {
|
3804 | return this.$ease(e, "o");
|
3805 | }
|
3806 | ease_transform(e) {
|
3807 | return this.$ease(e, "t");
|
3808 | }
|
3809 | ease_colors(e) {
|
3810 | return this.$ease(e, "c");
|
3811 | }
|
3812 | $ease(e, r = "") {
|
3813 | e = e.slice(0);
|
3814 | let i = {__ease__: ""}, s = /^[\-\+]?(\d*\.)?(\d+)(s|ms)?$/;
|
3815 | if (String(e[0]).match(s) && (i["--e_d" + r] = e[0], e.shift()), e[0] && !String(e[0]).match(s)) {
|
3816 | let n = this.$varFallback("ease", [e[0]]);
|
3817 | i["--e_f" + r] = n, e.shift();
|
3818 | }
|
3819 | return String(e[0]).match(s) && (i["--e_w" + r] = e[0], e.shift()), i;
|
3820 | }
|
3821 | inset([e, r = e, i = e, s = r]) {
|
3822 | return {position: "absolute", top: e, right: r, bottom: i, left: s};
|
3823 | }
|
3824 | size([e, r = e]) {
|
3825 | return {width: e, height: r};
|
3826 | }
|
3827 | grid(e) {
|
3828 | let r;
|
3829 | if (r = this.$varFallback("grid", e))
|
3830 | return r;
|
3831 | }
|
3832 | animation(...e) {
|
3833 | let r = {normal: 1, reverse: 1, alternate: 1, "alternate-reverse": 1, infinite: 2, none: 3, forwards: 3, backwards: 3, both: 3, running: 4, paused: 4}, i = {};
|
3834 | for (let s = 0, n = Ar(e), o = n.length; s < o; s++) {
|
3835 | let a = n[s], l = null, p = null;
|
3836 | for (let c = 0, _ = Ar(a), f = _.length; c < f; c++) {
|
3837 | let m = _[c], g = String(m), b = r[g];
|
3838 | fa.ease[g] && !p ? p = true : b ? (i[b] && (l = [c, g]), i[b] = true) : g.match(/^[^\d\.]/) && g.indexOf("(") == -1 && (l ? p = [c, g] : l = [c, g]);
|
3839 | }
|
3840 | if (l && (a[l[0]] = new bo("animation-" + l[1], l[1])), p instanceof Array) {
|
3841 | let c = this.options.variants.easings[p[1]];
|
3842 | a[p[0]] = new bo("ease-" + p[1], c);
|
3843 | }
|
3844 | }
|
3845 | return {animation: e};
|
3846 | }
|
3847 | animation_timing_function(...e) {
|
3848 | for (let r = 0, i = Ar(e), s = i.length; r < s; r++) {
|
3849 | let n = i[r], o = this.$varFallback("ease", n);
|
3850 | o && (e[r] = o);
|
3851 | }
|
3852 | return e;
|
3853 | }
|
3854 | animation_name(...e) {
|
3855 | let r;
|
3856 | for (let i = 0, s = Ar(e), n = s.length; i < n; i++) {
|
3857 | let o = s[i], a = this.$varFallback("animation", o);
|
3858 | a && (e[i] = a);
|
3859 | }
|
3860 | return e;
|
3861 | }
|
3862 | display(e) {
|
3863 | let r = {display: e};
|
3864 | for (let i = 0, s = Ar(e), n = s.length, o; i < n; i++) {
|
3865 | let a = s[i];
|
3866 | (o = Hp[String(a)]) && o.call(this, r, a, e);
|
3867 | }
|
3868 | return r;
|
3869 | }
|
3870 | position(e) {
|
3871 | let r = {position: e}, i = String(e[0]);
|
3872 | return i == "abs" ? r.position = "absolute" : i == "rel" && (r.position = "relative"), r;
|
3873 | }
|
3874 | width([...e]) {
|
3875 | let r = {};
|
3876 | for (let i = 0, s = Ar(e), n = s.length; i < n; i++) {
|
3877 | let o = s[i], a = o._options || {}, l = o._unit;
|
3878 | l == "c" || l == "col" || l == "cols" ? r["grid-column-end"] = "span " + o._number : a.op && String(a.op) == ">" ? r["min-width"] = o : a.op && String(a.op) == "<" ? r["max-width"] = o : r.width = o;
|
3879 | }
|
3880 | return r;
|
3881 | }
|
3882 | height([...e]) {
|
3883 | let r = {};
|
3884 | for (let i = 0, s = Ar(e), n = s.length; i < n; i++) {
|
3885 | let o = s[i], a = o._options || {}, l = o._unit;
|
3886 | l == "r" || l == "row" || l == "rows" ? r["grid-row-end"] = "span " + o._number : a.op && String(a.op) == ">" ? r["min-height"] = o : a.op && String(a.op) == "<" ? r["max-height"] = o : r.height = o;
|
3887 | }
|
3888 | return r;
|
3889 | }
|
3890 | transition(...e) {
|
3891 | let r = {}, i = {}, s = ["name | duration", "name | duration | delay", "name | duration | ease", "name | duration | ease | delay"], n = {styles: ["background-color", "border-color", "color", "fill", "stroke", "opacity", "box-shadow", "transform"], sizes: ["width", "height", "left", "top", "right", "bottom", "margin", "padding"], colors: ["background-color", "border-color", "color", "fill", "stroke"]}, o = 0;
|
3892 | for (; o < e.length; ) {
|
3893 | let a = e[o], l = String(a[0]);
|
3894 | l.match(/^[\-\+]?\d?(\.?\d+)(s|ms)?$/) && a.unshift(l = "styles");
|
3895 | let p = a[2], c = n[l];
|
3896 | if (c && e.length == 1)
|
3897 | a[0] = "none", Object.assign(i, {"transition-property": c.join(",")});
|
3898 | else if (c && e.length > 1) {
|
3899 | let _ = c.map(function(f) {
|
3900 | return [f].concat(a.slice(1));
|
3901 | });
|
3902 | e.splice(o, 1, ..._);
|
3903 | continue;
|
3904 | }
|
3905 | o++;
|
3906 | }
|
3907 | return Object.assign(r, {transition: e}, i), r;
|
3908 | }
|
3909 | font(e, ...r) {
|
3910 | for (let i = 0, s = Ar(e), n = s.length; i < n; i++) {
|
3911 | let o = s[i];
|
3912 | }
|
3913 | }
|
3914 | font_family(e) {
|
3915 | let r;
|
3916 | if (r = this.$varFallback("font", e))
|
3917 | return r;
|
3918 | }
|
3919 | text_shadow(e) {
|
3920 | let r;
|
3921 | if (r = this.$varFallback("text-shadow", e))
|
3922 | return r;
|
3923 | }
|
3924 | grid_template(e) {
|
3925 | for (let r = 0, i = Ar(e), s = i.length; r < s; r++) {
|
3926 | let n = i[r];
|
3927 | r_(n) && (n._resolvedValue = "repeat(" + n._value + ",1fr)");
|
3928 | }
|
3929 | }
|
3930 | grid_template_columns(e) {
|
3931 | return this.grid_template(e);
|
3932 | }
|
3933 | grid_template_rows(e) {
|
3934 | return this.grid_template(e);
|
3935 | }
|
3936 | font_size([e]) {
|
3937 | let r = this.options.variants["font-size"], i = String(e), s = e, n, o = {};
|
3938 | if (r[i] && ([s, n] = r[i], s = Os.parse(s), n = Os.parse(n || "")), e.param && e.param && (n = e.param), o["font-size"] = s, n) {
|
3939 | let a = n._unit, l = n._number;
|
3940 | if (o.lh = n, a == "fs")
|
3941 | o.lh = new Os(l);
|
3942 | else if (a)
|
3943 | o.lh = n;
|
3944 | else if (l == 0)
|
3945 | o.lh = "inherit";
|
3946 | else if (l && s._unit == "px") {
|
3947 | let p = Math.round(s._number * l);
|
3948 | p % 2 == 1 && p++, o.lh = new Os(p, "px");
|
3949 | }
|
3950 | }
|
3951 | return o;
|
3952 | }
|
3953 | line_height([e]) {
|
3954 | let r = e;
|
3955 | return e._number && !e._unit && (r = e.clone(e._number, "em")), {"line-height": e, "--u_lh": r};
|
3956 | }
|
3957 | text_decoration(e) {
|
3958 | for (let r = 0, i = Ar(e), s = i.length; r < s; r++) {
|
3959 | let n = i[r], o = String(n);
|
3960 | o == "u" ? n._resolvedValue = "underline" : o == "s" && (n._resolvedValue = "line-through");
|
3961 | }
|
3962 | return [e];
|
3963 | }
|
3964 | border([...e]) {
|
3965 | if (e.length == 1 && this.$parseColor(e[0]))
|
3966 | return [["1px", "solid", e[0]]];
|
3967 | }
|
3968 | border_left(e) {
|
3969 | return this.border(e);
|
3970 | }
|
3971 | border_right(e) {
|
3972 | return this.border(e);
|
3973 | }
|
3974 | border_top(e) {
|
3975 | return this.border(e);
|
3976 | }
|
3977 | border_bottom(e) {
|
3978 | return this.border(e);
|
3979 | }
|
3980 | border_x(e) {
|
3981 | return {"border-left": this.border(e) || e, "border-right": this.border(e) || e};
|
3982 | }
|
3983 | border_y(e) {
|
3984 | return {"border-top": this.border(e) || e, "border-bottom": this.border(e) || e};
|
3985 | }
|
3986 | border_x_width([e, r = e]) {
|
3987 | return {blw: e, brw: r};
|
3988 | }
|
3989 | border_y_width([e, r = e]) {
|
3990 | return {btw: e, bbw: r};
|
3991 | }
|
3992 | border_x_style([e, r = e]) {
|
3993 | return {bls: e, brs: r};
|
3994 | }
|
3995 | border_y_style([e, r = e]) {
|
3996 | return {bts: e, bbs: r};
|
3997 | }
|
3998 | border_x_color([e, r = e]) {
|
3999 | return {blc: e, brc: r};
|
4000 | }
|
4001 | border_y_color([e, r = e]) {
|
4002 | return {btc: e, bbc: r};
|
4003 | }
|
4004 | gap([e]) {
|
4005 | return {gap: e, "--u_rg": e, "--u_cg": e};
|
4006 | }
|
4007 | row_gap([e]) {
|
4008 | return {"row-gap": e, "--u_rg": e};
|
4009 | }
|
4010 | column_gap([e]) {
|
4011 | return {"column-gap": e, "--u_cg": e};
|
4012 | }
|
4013 | tint([e]) {
|
4014 | let r = {"--hue": e};
|
4015 | for (let i = 0; i < 10; i++)
|
4016 | r["--hue" + i] = "/*##*/" + e + i;
|
4017 | return r;
|
4018 | }
|
4019 | hue([e]) {
|
4020 | let r = {"--hue": e};
|
4021 | for (let i = 0; i < 10; i++)
|
4022 | r["--hue" + i] = "/*##*/" + e + i;
|
4023 | return r;
|
4024 | }
|
4025 | $color(e) {
|
4026 | let r = e.match(/^(\w+)(\d)(?:\-(\d+))?$/), i = r && r[1];
|
4027 | if (i && typeof this.palette[i] == "string")
|
4028 | return this.$color(this.palette[i] + e.slice(i.length));
|
4029 | if (i == "tint") {
|
4030 | let s = "hue" + e.slice(4);
|
4031 | return console.warn("" + e + " renamed to " + s), new wn(s);
|
4032 | }
|
4033 | if (i == "hue")
|
4034 | return new wn(e);
|
4035 | if (this.palette[e])
|
4036 | return this.palette[e];
|
4037 | if (r) {
|
4038 | let s = parseInt(r[2]), n = parseInt(r[3]) || 0, o = null, a = null, l = s + 1, p = s;
|
4039 | if (typeof this.palette[i] == "string")
|
4040 | return this.$color(this.palette[i] + e.slice(i.length));
|
4041 | for (; l > 1 && !o; )
|
4042 | o = this.palette[i + --l];
|
4043 | for (; p < 9 && !a; )
|
4044 | a = this.palette[i + ++p];
|
4045 | let c = (s - l + n / 10) / (p - l), _ = c, f = c, m = c;
|
4046 | if (a || (a = this.palette.blue9, _ = 0), o || (o = this.palette.blue1, _ = 1), o && a)
|
4047 | return this.palette[e] = o.mix(a, _, f, m);
|
4048 | }
|
4049 | return null;
|
4050 | }
|
4051 | $parseColor(e) {
|
4052 | let r, i = String(e);
|
4053 | return (r = this.$color(i)) ? r : i.match(/^#[a-fA-F0-9]{3,8}/) || i.match(/^(rgb|hsl)/) || i == "currentColor" ? e : null;
|
4054 | }
|
4055 | $varFallback(e, r, i = []) {
|
4056 | if (r.length == 1) {
|
4057 | let s = String(r[0]), n = r[0];
|
4058 | if (i.push("none", "initial", "unset", "inherit"), i.indexOf(s) == -1 && s.match(/^[\w\-]+$/))
|
4059 | return e == "font" && B1[s] && (n = B1[s]), e == "ease" && this.options.variants.easings[s] && (n = this.options.variants.easings[s]), [new bo("" + e + "-" + s, n)];
|
4060 | }
|
4061 | }
|
4062 | $value(e, r, i) {
|
4063 | let s, n = i, o = e, a = e && e.toRaw ? e.toRaw() : String(e), l = String(e), p = false, c = null, _ = o._unit;
|
4064 | if (typeof i == "string") {
|
4065 | if (vo[i] && (i = vo[i], i instanceof Array && (i = i[0])), i.match(/^((min-|max-)?(width|height)|top|left|bottom|right|padding|margin|sizing|inset|spacing|sy$|s$|\-\-s[xy])/))
|
4066 | i = "sizing";
|
4067 | else if (i.match(/^\-\-[gs][xy]_/))
|
4068 | i = "sizing";
|
4069 | else if (i.match(/^(row-|column-)?gap/))
|
4070 | i = "sizing";
|
4071 | else if (i.match(/^[mps][trblxy]?$/))
|
4072 | i = "sizing";
|
4073 | else if (i.match(/^[trblwh]$/))
|
4074 | i = "sizing";
|
4075 | else if (i.match(/^border-.*radius/) || i.match(/^rd[tlbr]{0,2}$/))
|
4076 | i = "radius", p = "border-radius";
|
4077 | else if (i.match(/^box-shadow/))
|
4078 | p = i = "box-shadow";
|
4079 | else if (i.match(/^tween|transition/) && this.options.variants.easings[a])
|
4080 | return this.options.variants.easings[a];
|
4081 | i = this.options.variants[i] || {};
|
4082 | }
|
4083 | if (e == null && (e = i.default), i.hasOwnProperty(a) && (e = i[e]), typeof a == "number" && i.NUMBER) {
|
4084 | let [f, m, g] = i.NUMBER.match(/^(\-?[\d\.]+)(\w+|%)?$/);
|
4085 | return e * parseFloat(m) + g;
|
4086 | } else if (typeof a == "string" && (s = this.$parseColor(a)))
|
4087 | return s;
|
4088 | if (p) {
|
4089 | let f = l.match(/^[a-zA-Z\-][\w\-]*$/) && !l.match(/^(none|inherit|unset|initial)$/), m = _ && s_.indexOf(_) == -1;
|
4090 | if ((f || m) && e.alone)
|
4091 | return new bo("" + p + "-" + l, o != e ? e : a);
|
4092 | }
|
4093 | return e;
|
4094 | }
|
4095 | transformColors(e, {prefix: r}) {
|
4096 | var i = this;
|
4097 | return e = e.replace(/\/\*(##?)\*\/(\w+)(?:\/(\d+%?|\$[\w\-]+))?/g, function(s, n, o, a) {
|
4098 | let l;
|
4099 | return (l = i.$color(o)) ? n == "##" ? "" + l.toVar(a) : "" + (r ? "PREFIX" : "") + l.toString(a) : s;
|
4100 | }), e;
|
4101 | }
|
4102 | }, qp = {transform: `--t_x:0;--t_y:0;--t_z:0;--t_rotate:0;
|
4103 | --t_scale:1;--t_scale-x:1;--t_scale-y:1;
|
4104 | --t_skew-x:0;--t_skew-y:0;
|
4105 | transform: translate3d(var(--t_x),var(--t_y),var(--t_z))
|
4106 | rotate(var(--t_rotate))
|
4107 | skewX(var(--t_skew-x)) skewY(var(--t_skew-y))
|
4108 | scaleX(var(--t_scale-x)) scaleY(var(--t_scale-y)) scale(var(--t_scale));`, transition: `transition: all var(--e_d) var(--e_f) var(--e_w),
|
4109 | transform var(--e_dt,var(--e_d)) var(--e_ft,var(--e_f)) var(--e_wt,var(--e_w)),
|
4110 | color var(--e_dc,var(--e_d)) var(--e_fc,var(--e_f)) var(--e_wc,var(--e_w)),
|
4111 | background-color var(--e_dc,var(--e_d)) var(--e_fc,var(--e_f)) var(--e_wc,var(--e_w)),
|
4112 | opacity var(--e_do,var(--e_d)) var(--e_fo,var(--e_f)) var(--e_wo,var(--e_w));`}, n_ = `--t_x:0;--t_y:0;--t_z:0;--t_rotate:0;--t_scale:1;--t_scale-x:1;--t_scale-y:1;--t_skew-x:0;--t_skew-y:0;
|
4113 | transform: translate3d(var(--t_x),var(--t_y),var(--t_z)) rotate(var(--t_rotate)) skewX(var(--t_skew-x)) skewY(var(--t_skew-y)) scaleX(var(--t_scale-x)) scaleY(var(--t_scale-y)) scale(var(--t_scale));`, Xp = class {
|
4114 | constructor(e) {
|
4115 | this[zl] = e, this[Ul] = [], this[Yl] = {}, this[H1] = {}, this.transforms = null;
|
4116 | }
|
4117 | get transitions() {
|
4118 | return this[H1].transition;
|
4119 | }
|
4120 | add(e, r = {}) {
|
4121 | var i;
|
4122 | if (this[Ul].push(e), r.apply)
|
4123 | for (let s = r.apply, n = 0, o = Object.keys(s), a = o.length, l, p; n < a; n++) {
|
4124 | l = o[n], p = s[l];
|
4125 | let c = (i = this[Yl])[l] || (i[l] = []);
|
4126 | for (let _ = 0, f = Ar(p), m = f.length; _ < m; _++) {
|
4127 | let g = f[_];
|
4128 | c.indexOf(g) < 0 && c.push(g);
|
4129 | }
|
4130 | }
|
4131 | }
|
4132 | js(e, r) {
|
4133 | let i = [];
|
4134 | for (let s = this[H1], n = 0, o = Object.keys(s), a = o.length, l, p; n < a; n++)
|
4135 | l = o[n], p = s[l], i.push(e.runtime().transitions + (".addSelectors(" + JSON.stringify(p) + ",'" + l + "')"));
|
4136 | return i.join(`
|
4137 | `);
|
4138 | }
|
4139 | parse() {
|
4140 | if (this[xn])
|
4141 | return this[xn];
|
4142 | let e = [], r = this[Ul].slice(0);
|
4143 | for (let i = this[Yl], s = 0, n = Object.keys(i), o = n.length, a, l; s < o; s++) {
|
4144 | a = n[s], l = i[a];
|
4145 | let p = qp[a], c = {}, _ = {}, f = {"": c}, m = a == "transition" || a.match(/^_(off|out|in)_sized/);
|
4146 | for (let b = 0, N = Ar(l), y = N.length; b < y; b++) {
|
4147 | let v = N[b];
|
4148 | for (let d = 0, w = Ar(v[e_]), k = w.length; d < k; d++) {
|
4149 | let T = w[d], S = T[t_], C = T[xn].replace(/:not\((#_|\._0?)+\)/g, "");
|
4150 | m && (C = C.replace(/\._(off|out|in|on)_\b/g, ""));
|
4151 | let L = f[S] || (f[S] = {});
|
4152 | L[C] = T, _[C] = true;
|
4153 | }
|
4154 | }
|
4155 | if (p)
|
4156 | for (let b = 0, N = Object.keys(f), y = N.length, v, d; b < y; b++) {
|
4157 | v = N[b], d = f[v];
|
4158 | let w = Object.keys(d);
|
4159 | if (v != "" && (w = w.filter(function(T) {
|
4160 | return !c[T];
|
4161 | })), w.length == 0)
|
4162 | continue;
|
4163 | a == "transition" && w.unshift("._ease_");
|
4164 | let k = w.join(", ") + ` {
|
4165 | ` + p + `
|
4166 | }`;
|
4167 | v && (k = v + ` {
|
4168 | ` + k + `
|
4169 | }`), r.unshift(k);
|
4170 | }
|
4171 | let g = Object.keys(_);
|
4172 | a == "transition" && g.length && (r.unshift("._easing_ {--e_d:300ms;}"), r.unshift("._instant_ { transition-duration:0ms !important; }"), r.unshift(":root {--e_d:0ms;--e_f:ease-in-out;--e_w:0ms}")), m && (this[H1][a] = g), a == "ease" && g.length && r.unshift(":root {--e_d:0ms;--e_f:ease-in-out;--e_w:0ms}");
|
4173 | }
|
4174 | return this[xn] = r.join(`
|
4175 |
|
4176 | `), this[zl].resolveColors() && (this[xn] = this[zl].theme().transformColors(this[xn], {prefix: false})), this[xn];
|
4177 | }
|
4178 | toString() {
|
4179 | return this.parse();
|
4180 | }
|
4181 | }, ss = class {
|
4182 | constructor(e, r, i, s = {}) {
|
4183 | this.parent = e, this.selector = r, this.content = i, this.options = s, this.isKeyFrames = !!r.match(/\@keyframes \w/), this.isKeyFrame = e && e.isKeyFrames, this.meta = {};
|
4184 | }
|
4185 | root() {
|
4186 | return this.parent ? this.parent.root : this;
|
4187 | }
|
4188 | apply(e, r) {
|
4189 | var i;
|
4190 | return ((i = this.options.apply)[e] || (i[e] = [])).push(r);
|
4191 | }
|
4192 | register(e, r) {
|
4193 | var i;
|
4194 | return ((i = this.options.register)[e] || (i[e] = [])).push(r);
|
4195 | }
|
4196 | toString(e = {}) {
|
4197 | let r = [], i = [];
|
4198 | if (this.isKeyFrames) {
|
4199 | let [o, a] = this.selector.split(/\s*\@keyframes\s*/);
|
4200 | o = o.trim(), a = a.trim();
|
4201 | let l = [a, o, this.options.ns].filter(function(c) {
|
4202 | return c;
|
4203 | }).join("-");
|
4204 | this.meta.name = a, this.meta.uniqueName = l.replace(/[\s\.\,]+/g, "").replace(/[^\w\-]/g, "_"), this.options.global && !o && (this.meta.uniqueName = this.meta.name);
|
4205 | let p = {};
|
4206 | p["--animation-" + a] = "" + this.meta.uniqueName, o ? i.push(new ss(null, o, p, this.options)) : this.options.ns && !this.options.global && i.push(new ss(null, "." + this.options.ns, p, {}));
|
4207 | }
|
4208 | for (let o = this.content, a = 0, l = Object.keys(o), p = l.length, c, _; a < p; a++) {
|
4209 | if (c = l[a], _ = o[c], _ == null)
|
4210 | continue;
|
4211 | let f = null;
|
4212 | if (c.indexOf("&") >= 0) {
|
4213 | if (this.isKeyFrames) {
|
4214 | let g = c.replace(/&/g, ""), b = new ss(this, g, _, this.options);
|
4215 | r.push(b.toString({indent: true}));
|
4216 | continue;
|
4217 | }
|
4218 | let m = Bl(this.selector, c);
|
4219 | i.push(new ss(this, m, _, this.options));
|
4220 | continue;
|
4221 | } else if (c.indexOf("\xA7") >= 0) {
|
4222 | let m = c.split("\xA7"), g = Bl(this.selector, m.slice(1).join(" ")), b = {};
|
4223 | b[m[0]] = _, i.push(new ss(this, g, b, this.options));
|
4224 | continue;
|
4225 | } else if (c[0] == "[") {
|
4226 | console.warn("DEPRECATED", c, this);
|
4227 | let m = JSON.parse(c);
|
4228 | i.push(new ss(this, this.selector, _, this.options));
|
4229 | continue;
|
4230 | } else
|
4231 | c.match(/^(x|y|z|scale|scale-x|scale-y|skew-x|skew-y|rotate)$/) ? (this.meta.transform || (this.meta.transform = true), r.push("--t_" + c + ": " + _ + " !important;")) : c.match(/^__ease__$/) ? this.meta.ease = true : (c.match(/^(width|height)$/) && (this.meta.size = true), r.push("" + c + ": " + _ + ";"));
|
4232 | }
|
4233 | let s = r.join(`
|
4234 | `), n = "";
|
4235 | if ((e.indent || this.isKeyFrames) && (s = `
|
4236 | ` + s + `
|
4237 | `), this.isKeyFrame)
|
4238 | n = "" + this.selector + " {" + s + "}";
|
4239 | else if (this.isKeyFrames)
|
4240 | n = "@keyframes " + this.meta.uniqueName + " {" + s + "}";
|
4241 | else {
|
4242 | let o = this.isKeyFrame ? this.selector : Mp(this.selector, this.options);
|
4243 | if (this.meta.transform && this.apply("transform", o), this.meta.ease && this.apply("ease", o), o && o.hasTransitionStyles && this.apply("transition", o), this.meta.size)
|
4244 | for (let a = 0, l = ["_off_", "_out_", "_in_"], p = l.length; a < p; a++) {
|
4245 | let c = l[a];
|
4246 | o[c] && this.apply("" + c + "sized", o);
|
4247 | }
|
4248 | n = s.match(/[^\n\s]/) ? Pp(o, s, this.options) : "";
|
4249 | }
|
4250 | for (let o = 0, a = Ar(i), l = a.length; o < l; o++) {
|
4251 | let p = a[o];
|
4252 | n += `
|
4253 | ` + p.toString();
|
4254 | }
|
4255 | return n;
|
4256 | }
|
4257 | };
|
4258 | });
|
4259 | var Zp = er((o_) => {
|
4260 | Hi(o_);
|
4261 | Fi(o_, {parseAsset: () => a_, parseHTML: () => l_});
|
4262 | function z1(t) {
|
4263 | let e;
|
4264 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
4265 | }
|
4266 | var _a = Symbol.for("#attributes");
|
4267 | function a_(t, e) {
|
4268 | var r, i;
|
4269 | let s = t.body, n = s.indexOf("<svg");
|
4270 | n > 0 && (s = s.slice(n));
|
4271 | let o = ko.getTokenizer("xml"), a = o.getInitialState(), l = o.tokenize(s, a, 0), p = {}, c = {attributes: p, flags: []}, _, f = 0;
|
4272 | for (let m = 0, g = z1(l.tokens), b = g.length; m < b; m++) {
|
4273 | let N = g[m], y = N.value;
|
4274 | if (N.type == "attribute.name.xml" && (_ = N, p[y] = true), N.type == "attribute.value.xml") {
|
4275 | let v = y.length;
|
4276 | v > 2 && y[0] == y[v - 1] && (y[0] == '"' || y[0] == "'") && (y = y.slice(1, -1)), p[_.value] = y;
|
4277 | }
|
4278 | if (N.type == "delimiter.xml" && y == ">") {
|
4279 | f = N.offset + 1;
|
4280 | break;
|
4281 | }
|
4282 | }
|
4283 | return c.content = s.slice(f).replace("</svg>", ""), p.class && (c.flags = p.class.split(/\s+/g), r = p.class, delete p.class), e && c.flags.push("asset-" + e.toLowerCase()), i = p.xmlns, delete p.xmlns, c;
|
4284 | }
|
4285 | function l_(t) {
|
4286 | var b;
|
4287 | let e = t.body, r = ko.getTokenizer("xml"), i = r.getInitialState(), s = r.tokenize(e, i, 0), n, o = 0, a = {attributes: {}, [_a]: {}}, l = [], p = {text: t}, c = p.imports = [], _ = "", f = new Set(), m = s.tokens.slice(0);
|
4288 | for (let N = 0, y = z1(m), v = y.length; N < v; N++) {
|
4289 | let d = y[N], w = d.type, k = d.value, T = s.tokens[N - 1];
|
4290 | if (w == "tag.xml" && (T.value == "<" ? (l.push(a = d), d.attributes = {}, d[_a] = {}, l[k] || (l[k] = []), l[k].push(d)) : T.value == "</" && (a.closer || (a.closer = d))), w == "delimiter.xml" && k == ">") {
|
4291 | let S = a == null ? void 0 : a.value;
|
4292 | (S == "head" || S == "body") && (d.value += "<!--$" + S + "$-->");
|
4293 | }
|
4294 | if (w == "attribute.name.xml" && (a[_a][k] = d, n = k), w == "attribute.value.xml") {
|
4295 | let S = k;
|
4296 | k.length > 2 && k[0] == k[k.length - 1] && (k[0] == '"' || k[0] == "'") && (S = k.slice(1, -1)), d.raw = S, a.attributes[n] = d;
|
4297 | }
|
4298 | }
|
4299 | for (let N = 0, y = z1(l), v = y.length; N < v; N++) {
|
4300 | let d = y[N], w = null, k = d.attributes.src;
|
4301 | if (d.value == "script" && k)
|
4302 | w = {path: k.raw, tagType: "script"};
|
4303 | else if (d.value == "img" && k)
|
4304 | w = {path: k.raw, tagType: "img"};
|
4305 | else if (d.value == "link") {
|
4306 | let T = (b = d.attributes.rel) == null ? void 0 : b.raw;
|
4307 | k = d.attributes.href;
|
4308 | let S = (k == null ? void 0 : k.raw) || "";
|
4309 | if (T == "stylesheet")
|
4310 | w = {path: S, tagType: "style"};
|
4311 | else if (k && S.match(/^\.\.?\//)) {
|
4312 | let C = k.raw;
|
4313 | C.match(/\.json$/) && (C = C += "?as=file"), w = {path: C, tagType: "link"};
|
4314 | }
|
4315 | } else
|
4316 | d.value == "style" && k && (w = {path: k.raw, tagType: "style"}, d.value = "link rel='stylesheet'", d.closer && (d.closer.value = "link"), d[_a].src && (d[_a].src.value = "href"));
|
4317 | if (k && w && !w.path.match(/^(\/|https?\:\/\/)/)) {
|
4318 | let T = c.push(w);
|
4319 | k.value = "'ASSET_REF_" + (T - 1) + "'";
|
4320 | }
|
4321 | }
|
4322 | let g = "";
|
4323 | for (let N = 0, y = z1(m), v = y.length; N < v; N++)
|
4324 | g += y[N].value;
|
4325 | return p.contents = g.replace(/<\/link>/g, ""), p;
|
4326 | }
|
4327 | });
|
4328 | var I3 = er((E) => {
|
4329 | function Xl(t) {
|
4330 | return t && (t.len instanceof Function ? t.len() : t.length) || 0;
|
4331 | }
|
4332 | function da(t, e) {
|
4333 | return e && e.indexOf ? e.indexOf(t) : [].indexOf.call(t, e);
|
4334 | }
|
4335 | function A(t, e) {
|
4336 | for (var r in e)
|
4337 | e.hasOwnProperty(r) && (t[r] = e[r]);
|
4338 | t.prototype = Object.create(e.prototype), t.__super__ = t.prototype.__super__ = e.prototype, t.prototype.initialize = t.prototype.constructor = t;
|
4339 | }
|
4340 | function It(t) {
|
4341 | return t ? t.toArray ? t.toArray() : t : [];
|
4342 | }
|
4343 | var c_ = {}, be = lo(), U1 = v1(), Y1 = N1(), Qp = Ml(), $p = C1(), Y4 = $p.ImbaParseError, u_ = $p.ImbaTraverseError, br = ta().Token, h_ = Ep().SourceMap, ns = Wp(), p_ = ns.StyleRule, t3 = ns.StyleTheme, K4 = ns.Color, f_ = ns.StyleSheet, ns = J2(), __ = ns.ReservedIdentifierRegex, K1 = ns.InternalPrefixes, d_ = ns.toJSIdentifier, q4 = ns.toCustomTagIdentifier, X4 = Zp().parseAsset, e3 = O1().Compilation, ma = Tl().SourceMapper, r3 = U1.TAG_NAMES, i3 = U1.TAG_GLOBAL_ATTRIBUTES, ya = {}, s3 = {}, m_ = {svg: "image", png: "image", apng: "image", jpg: "image", jpeg: "image", gif: "image", tiff: "image", bmp: "image"};
|
4344 | ya.HTML = "a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strong strike style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr".split(" ");
|
4345 | ya.SVG = "circle defs ellipse g line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" ");
|
4346 | s3.HTML = "accept accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked className cols colSpan content contentEditable contextMenu controls coords crossOrigin data dateTime defer dir disabled download draggable encType form formNoValidate frameBorder height hidden href hrefLang htmlFor httpEquiv icon id label lang list loop max maxLength mediaGroup method min multiple muted name noValidate pattern placeholder poster preload radioGroup readOnly rel required role rows rowSpan sandbox scope scrollLeft scrolling scrollTop seamless selected shape size span spellCheck src srcDoc srcSet start step style tabIndex target title type useMap value width wmode";
|
4347 | s3.SVG = "cx cy d dx dy fill fillOpacity fontFamily fontSize fx fy gradientTransform gradientUnits markerEnd markerMid markerStart offset opacity patternContentUnits patternUnits points preserveAspectRatio r rx ry spreadMethod stopColor stopOpacity stroke strokeDasharray strokeLinecap strokeOpacity strokeWidth textAnchor transform version viewBox x1 x2 x y1 y2 y";
|
4348 | var n3 = {intersect: "events_intersect", selection: "events_selection", resize: "events_resize", hotkey: "events_hotkey", touch: "events_touch", pointer: "events_pointer", pointerdown: "events_pointer", pointermove: "events_pointer", pointerover: "events_pointer", pointerout: "events_pointer", pointerup: "events_pointer", pointercancel: "events_pointer", lostpointercapture: "events_pointer", click: "events_mouse", mousedown: "events_mouse", mouseup: "events_mouse", mouseenter: "events_mouse", mouseleave: "events_mouse", mousemove: "events_mouse", mouseout: "events_mouse", mouseover: "events_mouse", mousewheel: "events_mouse", keydown: "events_keyboard", keyup: "events_keyboard", keypress: "events_keyboard"}, Pt = E.AST = {}, Se = E.F = {TAG_INITED: 2 ** 0, TAG_BUILT: 2 ** 1, TAG_CUSTOM: 2 ** 2, TAG_AWAKENED: 2 ** 3, TAG_MOUNTED: 2 ** 4, TAG_SCHEDULE: 2 ** 5, TAG_SCHEDULED: 2 ** 6, TAG_FIRST_CHILD: 2 ** 7, TAG_LAST_CHILD: 2 ** 8, TAG_HAS_DYNAMIC_FLAGS: 2 ** 9, TAG_HAS_BRANCHES: 2 ** 10, TAG_HAS_LOOPS: 2 ** 11, TAG_HAS_DYNAMIC_CHILDREN: 2 ** 12, TAG_IN_BRANCH: 2 ** 13, TAG_BIND_MODEL: 2 ** 14, TAG_INDEXED: 2 ** 15, TAG_KEYED: 2 ** 16, EL_INITED: 2 ** 0, EL_HYDRATED: 2 ** 1, EL_HYDRATING: 2 ** 2, EL_AWAKENED: 2 ** 3, EL_MOUNTING: 2 ** 4, EL_MOUNTED: 2 ** 5, EL_SCHEDULE: 2 ** 6, EL_SCHEDULED: 2 ** 7, EL_RENDERING: 2 ** 8, EL_RENDERED: 2 ** 9, EL_SSR: 2 ** 10, EL_TRACKED: 2 ** 11, EL_SUSPENDED: 2 ** 12, EL_UNRENDERED: 2 ** 13, DIFF_BUILT: 2 ** 0, DIFF_FLAGS: 2 ** 1, DIFF_ATTRS: 2 ** 2, DIFF_CHILDREN: 2 ** 3, DIFF_MODIFIERS: 2 ** 4, DIFF_INLINE: 2 ** 5}, J = E.OP = function(t, e, r) {
|
4349 | var i = String(t);
|
4350 | switch (i) {
|
4351 | case ".":
|
4352 | case "?.": {
|
4353 | if (e instanceof Xe)
|
4354 | return e.setMember(r), e;
|
4355 | return (typeof r == "string" || r instanceof String) && (r = new At(r)), new se(t, e, r);
|
4356 | break;
|
4357 | }
|
4358 | case "=":
|
4359 | return new Ve(t, e, r);
|
4360 | case "~=":
|
4361 | return J("&=", e, J("~", r));
|
4362 | case "?=":
|
4363 | case "||=":
|
4364 | case "&&=":
|
4365 | case "??=":
|
4366 | return new Cs(t, e, r);
|
4367 | case "+=":
|
4368 | case "-=":
|
4369 | case "*=":
|
4370 | case "/=":
|
4371 | case "^=":
|
4372 | case "%=":
|
4373 | case "**=":
|
4374 | return new Ls(t, e, r);
|
4375 | case "instanceof":
|
4376 | case "isa":
|
4377 | return new q1(t, e, r);
|
4378 | case "in":
|
4379 | return new va(t, e, r);
|
4380 | case "typeof":
|
4381 | return new X1(t, e, r);
|
4382 | case "delete":
|
4383 | return new ga(t, e, r);
|
4384 | case "--":
|
4385 | case "++":
|
4386 | case "!":
|
4387 | case "\u221A":
|
4388 | case "not":
|
4389 | case "!!":
|
4390 | return new ti(t, e, r);
|
4391 | case ">":
|
4392 | case "<":
|
4393 | case ">=":
|
4394 | case "<=":
|
4395 | case "==":
|
4396 | case "===":
|
4397 | case "!=":
|
4398 | case "!==":
|
4399 | return new os(t, e, r);
|
4400 | case "..":
|
4401 | case "...":
|
4402 | return new Sn(t, e, r);
|
4403 | default:
|
4404 | return new re(t, e, r);
|
4405 | }
|
4406 | }, o3 = function(t) {
|
4407 | for (t instanceof Ds && (t = t.value()), t instanceof ar && (t = t.values()[0]); t instanceof Ae; )
|
4408 | t = t.value();
|
4409 | if (t instanceof he && (t = t._variable || t.value()), t instanceof se) {
|
4410 | let e = t.left(), r = t.right() instanceof as ? t.right().value() : t.right();
|
4411 | return e instanceof he && (e = e._variable || e.value()), r instanceof he && (r = r._variable || r.value()), t instanceof Tn && (e || (e = t.scope__().context())), r instanceof ei || r instanceof At && (r = be.singlequote(String(r.js())), r = new de(r)), [e, r];
|
4412 | }
|
4413 | return t;
|
4414 | }, ls = {}, W1 = null, W4 = E.NODES = [], Fs = function(t, e) {
|
4415 | return typeof t == "string" || typeof t == "number" ? t : t.c(e);
|
4416 | }, xo = function(t, e) {
|
4417 | return e === void 0 && (e = "path"), O.tsc() ? t : "" + t + "/*$" + e + "$*/";
|
4418 | }, Wl = function(t, e) {
|
4419 | return e == null && (e = t), {startLoc: function() {
|
4420 | return t;
|
4421 | }, endLoc: function() {
|
4422 | return e;
|
4423 | }};
|
4424 | }, Tt = function(t, e, r) {
|
4425 | if (e == null && (e = t), e && e.startLoc) {
|
4426 | t = Fs(t, r);
|
4427 | let i = O.incr("sourcePair"), s = e.startLoc(), n = e.endLoc(), o = "", a = "";
|
4428 | return (s == 0 || s > 0) && (o = n >= s ? "/*%" + s + "|" + i + "$*/" : "/*%" + s + "$*/"), (n == 0 || n > 0) && (a = s >= 0 ? "/*%" + n + "|" + i + "$*/" : "/*%" + n + "$*/"), r && r.locRef && (t = xo(t, r.locRef)), o + t + a;
|
4429 | }
|
4430 | return Fs(t, r);
|
4431 | }, y_ = function() {
|
4432 | for (var t = arguments, e = t.length, r = new Array(e > 0 ? e : 0); e > 0; )
|
4433 | r[e - 1] = t[--e];
|
4434 | for (let i = 0, s = It(r), n = s.length, o; i < n; i++) {
|
4435 | if (o = s[i], typeof o == "number" || o instanceof Number)
|
4436 | return o;
|
4437 | if (o && o.startLoc instanceof Function)
|
4438 | return o.startLoc();
|
4439 | }
|
4440 | return null;
|
4441 | }, g_ = function() {
|
4442 | for (var t = arguments, e = t.length, r = new Array(e > 0 ? e : 0); e > 0; )
|
4443 | r[e - 1] = t[--e];
|
4444 | for (let i = 0, s = It(r), n = s.length, o; i < n; i++) {
|
4445 | if (o = s[i], typeof o == "number" || o instanceof Number)
|
4446 | return o;
|
4447 | if (o && o.endLoc instanceof Function)
|
4448 | return o.endLoc();
|
4449 | }
|
4450 | return null;
|
4451 | }, Rt = function(t) {
|
4452 | return new ba(t);
|
4453 | }, a3 = function(t) {
|
4454 | return t instanceof br && (t = t.value()), (typeof t == "string" || t instanceof String) && (t.match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/) ? t = new At(t) : t = new de(be.singlequote(String(t)))), t;
|
4455 | }, Ze = function(t) {
|
4456 | return t instanceof de ? t : new de(be.singlequote(String(t)));
|
4457 | }, J1 = function(t, e, r, i) {
|
4458 | i === void 0 && (i = {});
|
4459 | var s = new pe(t, e, i);
|
4460 | return r && s.addElse(r), s;
|
4461 | }, v_ = function(t) {
|
4462 | return t == null ? new Ps() : t == false ? new Vs() : t == true ? new Ms() : typeof t == "string" || t instanceof String ? Ze(t) : typeof t == "number" || t instanceof Number ? new Ie(t) : t;
|
4463 | }, js = function(t, e, r) {
|
4464 | let i = new ie(t, e);
|
4465 | return r && (i._scope._systemscope = r), i;
|
4466 | }, He = function(t, e) {
|
4467 | return e === void 0 && (e = []), new ke(t, e);
|
4468 | }, En = function(t, e) {
|
4469 | return J(".", t, e);
|
4470 | }, J4 = E.SPLAT = function(t) {
|
4471 | return new An(t);
|
4472 | }, b_ = /;(\s*\/\/.*)?[\n\s\t]*$/, k_ = /^(default|char|for)$/;
|
4473 | E.parseError = c_.parseError = function(t, e) {
|
4474 | var r = e3.error({category: "parser", severity: "error", offset: e.offset, length: e.length, message: t});
|
4475 | return r.raise();
|
4476 | };
|
4477 | Pt.c = function(t) {
|
4478 | return typeof t == "string" ? t : t.c();
|
4479 | };
|
4480 | Pt.compileRaw = function(t) {
|
4481 | let e = "";
|
4482 | if (t instanceof Array) {
|
4483 | e = "[";
|
4484 | for (let r = 0, i = It(t), s = i.length; r < s; r++)
|
4485 | e += Pt.compileRaw(i[r]) + ",";
|
4486 | e = e.slice(0, -1) + "]";
|
4487 | } else if (t instanceof Object) {
|
4488 | e = "{";
|
4489 | for (let r, i = 0, s = Object.keys(t), n = s.length, o; i < n; i++)
|
4490 | o = s[i], r = t[o], e = +("" + o + ":" + Pt.compileRaw(r) + ",");
|
4491 | e = e.slice(0, -1) + "}";
|
4492 | } else
|
4493 | e = JSON.stringify(t);
|
4494 | return e;
|
4495 | };
|
4496 | Pt.blk = function(t) {
|
4497 | return t instanceof Array ? Lt.wrap(t) : t;
|
4498 | };
|
4499 | Pt.sym = function(t) {
|
4500 | return be.symbolize(String(t), O);
|
4501 | };
|
4502 | Pt.cary = function(t, e) {
|
4503 | return e === void 0 && (e = null), t.map(function(r) {
|
4504 | return typeof r == "string" ? r : r && r.c ? e ? r.c(e) : r.c() : (console.warn("could not compile", r), String(r));
|
4505 | });
|
4506 | };
|
4507 | Pt.dump = function(t, e) {
|
4508 | if (t instanceof Array)
|
4509 | return t.map(function(r) {
|
4510 | return r && r.dump ? r.dump(e) : r;
|
4511 | });
|
4512 | if (t && t.dump)
|
4513 | return t.dump();
|
4514 | };
|
4515 | Pt.compact = function(t) {
|
4516 | return t instanceof jt ? t.compact() : t.filter(function(e) {
|
4517 | return e != null && e != null;
|
4518 | });
|
4519 | };
|
4520 | Pt.reduce = function(t, e) {
|
4521 | for (let r = 0, i = It(e), s = i.length, n; r < s; r++)
|
4522 | n = i[r], n instanceof Array ? Pt.reduce(t, n) : t.push(n);
|
4523 | };
|
4524 | Pt.flatten = function(t, e) {
|
4525 | e === void 0 && (e = false);
|
4526 | var r = [];
|
4527 | for (let i = 0, s = It(t), n = s.length, o; i < n; i++)
|
4528 | o = s[i], o instanceof Array ? Pt.reduce(r, o) : r.push(o);
|
4529 | return r;
|
4530 | };
|
4531 | Pt.loc = function(t) {
|
4532 | if (t) {
|
4533 | if (t instanceof br)
|
4534 | return t.region();
|
4535 | if (t instanceof Z)
|
4536 | return t.loc();
|
4537 | } else
|
4538 | return [0, 0];
|
4539 | };
|
4540 | Pt.parse = function(t, e) {
|
4541 | e === void 0 && (e = {});
|
4542 | var r = t.match(/\t+/)[0];
|
4543 | return Imbac.parse(t, e);
|
4544 | };
|
4545 | Pt.inline = function(t, e) {
|
4546 | return e === void 0 && (e = {}), this.parse(t, e).body();
|
4547 | };
|
4548 | Pt.node = function(t, e) {
|
4549 | if (t == "call")
|
4550 | return e[0].c() == "return" && (e[0] = "tata"), new ke(e[0], e[1], e[2]);
|
4551 | };
|
4552 | Pt.escapeComments = function(t) {
|
4553 | return t || "";
|
4554 | };
|
4555 | var Z1 = [];
|
4556 | Pt.counterToShortRef = function(t) {
|
4557 | var e = "A".charCodeAt(0);
|
4558 | for (t += 30; Z1.length <= t; ) {
|
4559 | for (var r = Z1.length + 1, i = ""; r -= 1, i = String.fromCharCode(e + r % 26) + i, r = Math.floor(r / 26), !(r <= 0); )
|
4560 | ;
|
4561 | Z1.push(i.toLowerCase());
|
4562 | }
|
4563 | return Z1[t];
|
4564 | };
|
4565 | Pt.truthy = function(t) {
|
4566 | if (t instanceof Ms)
|
4567 | return true;
|
4568 | if (t instanceof Vs)
|
4569 | return false;
|
4570 | if (t.isTruthy)
|
4571 | return t.isTruthy();
|
4572 | };
|
4573 | function Ir(t, e) {
|
4574 | this._open = t, this._close = e;
|
4575 | }
|
4576 | E.Indentation = Ir;
|
4577 | Ir.prototype.open = function(t) {
|
4578 | return this._open;
|
4579 | };
|
4580 | Ir.prototype.setOpen = function(t) {
|
4581 | return this._open = t, this;
|
4582 | };
|
4583 | Ir.prototype.close = function(t) {
|
4584 | return this._close;
|
4585 | };
|
4586 | Ir.prototype.setClose = function(t) {
|
4587 | return this._close = t, this;
|
4588 | };
|
4589 | Ir.prototype.isGenerated = function() {
|
4590 | return this._open && this._open.generated;
|
4591 | };
|
4592 | Ir.prototype.aloc = function() {
|
4593 | return this._open && this._open._loc || 0;
|
4594 | };
|
4595 | Ir.prototype.bloc = function() {
|
4596 | return this._close && this._close._loc || 0;
|
4597 | };
|
4598 | Ir.prototype.startLoc = function() {
|
4599 | return this.aloc();
|
4600 | };
|
4601 | Ir.prototype.endLoc = function() {
|
4602 | return this.bloc();
|
4603 | };
|
4604 | Ir.prototype.wrap = function(t) {
|
4605 | var e = this._open && this._open._meta, r = e && e.pre || "", i = e && e.post || "", s = Pt.escapeComments, n = this._close;
|
4606 | return t = i.replace(/^\n/, "") + t, t = t.replace(/^/g, " ").replace(/\n/g, `
|
4607 | `).replace(/\n\t$/g, `
|
4608 | `), t = r + `
|
4609 | ` + t, n instanceof ri && (t += n.c()), t[t.length - 1] != `
|
4610 | ` && (t = t + `
|
4611 | `), t;
|
4612 | };
|
4613 | var Jl = new Ir({}, {});
|
4614 | function Zl() {
|
4615 | this._entities = [];
|
4616 | }
|
4617 | Zl.prototype.add = function(t) {
|
4618 | return this._entities.unshift(t), this;
|
4619 | };
|
4620 | Zl.prototype.pluck = function(t) {
|
4621 | var e = null;
|
4622 | for (let r = 0, i = It(this._entities), s = i.length, n; r < s; r++)
|
4623 | if (n = i[r], n == t || n instanceof t)
|
4624 | return e = n, this._entities.splice(r, 1), e;
|
4625 | return null;
|
4626 | };
|
4627 | function Gt() {
|
4628 | this.reset();
|
4629 | }
|
4630 | E.Stack = Gt;
|
4631 | Gt.prototype.loglevel = function(t) {
|
4632 | return this._loglevel;
|
4633 | };
|
4634 | Gt.prototype.setLoglevel = function(t) {
|
4635 | return this._loglevel = t, this;
|
4636 | };
|
4637 | Gt.prototype.nodes = function(t) {
|
4638 | return this._nodes;
|
4639 | };
|
4640 | Gt.prototype.setNodes = function(t) {
|
4641 | return this._nodes = t, this;
|
4642 | };
|
4643 | Gt.prototype.scopes = function(t) {
|
4644 | return this._scopes;
|
4645 | };
|
4646 | Gt.prototype.setScopes = function(t) {
|
4647 | return this._scopes = t, this;
|
4648 | };
|
4649 | Gt.prototype.root = function(t) {
|
4650 | return this._root;
|
4651 | };
|
4652 | Gt.prototype.setRoot = function(t) {
|
4653 | return this._root = t, this;
|
4654 | };
|
4655 | Gt.prototype.state = function(t) {
|
4656 | return this._state;
|
4657 | };
|
4658 | Gt.prototype.setState = function(t) {
|
4659 | return this._state = t, this;
|
4660 | };
|
4661 | Gt.prototype.semanticTokens = function(t) {
|
4662 | return this._semanticTokens;
|
4663 | };
|
4664 | Gt.prototype.setSemanticTokens = function(t) {
|
4665 | return this._semanticTokens = t, this;
|
4666 | };
|
4667 | Gt.prototype.meta = function(t) {
|
4668 | return this._meta;
|
4669 | };
|
4670 | Gt.prototype.setMeta = function(t) {
|
4671 | return this._meta = t, this;
|
4672 | };
|
4673 | Gt.prototype.theme = function(t) {
|
4674 | return this._theme;
|
4675 | };
|
4676 | Gt.prototype.setTheme = function(t) {
|
4677 | return this._theme = t, this;
|
4678 | };
|
4679 | Gt.prototype.css = function(t) {
|
4680 | return this._css;
|
4681 | };
|
4682 | Gt.prototype.setCss = function(t) {
|
4683 | return this._css = t, this;
|
4684 | };
|
4685 | Gt.prototype.reset = function() {
|
4686 | return this._nodes = [], this._scoping = [], this._scopes = [], this._stash = new Zl(this), this._loglevel = 3, this._counter = 0, this._counters = {}, this._options = {}, this._state = {}, this._tag = null, this._sourceId = null, this._semanticTokens = [], this._symbols = {}, this._css = new f_(this), this._theme = null, this._meta = {}, this._runtime, this;
|
4687 | };
|
4688 | Gt.prototype.runtime = function() {
|
4689 | return this._root.runtime();
|
4690 | };
|
4691 | Gt.prototype.cssns = function() {
|
4692 | return this._root.cssns();
|
4693 | };
|
4694 | Gt.prototype.registerSemanticToken = function(t, e, r) {
|
4695 | return t instanceof Z && (e || (e = t._variable), t = t._value), typeof t != "string" && (e instanceof Ft ? (t._kind = e.type(), t._level = e.scope().level(), t._scope = e.scope().kind()) : t._kind = e), this._semanticTokens.push(t);
|
4696 | };
|
4697 | Gt.prototype.use = function(t) {
|
4698 | return this._root.use(t);
|
4699 | };
|
4700 | Gt.prototype.incr = function(t) {
|
4701 | return this._counters[t] || (this._counters[t] = 0), this._counters[t] += 1;
|
4702 | };
|
4703 | Gt.prototype.decr = function(t) {
|
4704 | return this._counters[t] || (this._counters[t] = 0), this._counters[t] -= 1;
|
4705 | };
|
4706 | Gt.prototype.generateId = function(t) {
|
4707 | return t === void 0 && (t = "oid"), Pt.counterToShortRef(O.incr(t));
|
4708 | };
|
4709 | Gt.prototype.getSymbol = function(t, e) {
|
4710 | e === void 0 && (e = null);
|
4711 | let r = t || this.incr("symbols");
|
4712 | return this._symbols[r] || (this._symbols[r] = this._root.declare(e || t, Rt("Symbol()"), {system: true, alias: e || t}).resolve().c());
|
4713 | };
|
4714 | Gt.prototype.symbolFor = function(t) {
|
4715 | return this._root.symbolRef(t);
|
4716 | };
|
4717 | Gt.prototype.domCall = function(t) {
|
4718 | return t = {start: "beforeVisit", end: "afterVisit", open: "beforeReconcile", close: "afterReconcile", insert: "placeChild"}[t] || t, "[" + this.symbolFor("#" + t) + "]";
|
4719 | };
|
4720 | Gt.prototype.sourceId = function() {
|
4721 | if (this._sourceId || (this._sourceId = this._options.sourceId))
|
4722 | return this._sourceId;
|
4723 | let t = this.sourcePath(), e = this.cwd();
|
4724 | return this._options.path && e && (t = this._options.path.relative(e, t)), this._sourceId = be.identifierForPath(t), this._sourceId;
|
4725 | };
|
4726 | Gt.prototype.theme = function() {
|
4727 | return this._theme || (this._theme = t3.wrap(this._options.config));
|
4728 | };
|
4729 | Gt.prototype.stash = function() {
|
4730 | return this._stash;
|
4731 | };
|
4732 | Gt.prototype.set = function(t) {
|
4733 | this._options || (this._options = {});
|
4734 | for (let e, r = 0, i = Object.keys(t), s = i.length, n; r < s; r++)
|
4735 | n = i[r], e = t[n], this._options[n] = e;
|
4736 | return this;
|
4737 | };
|
4738 | Gt.prototype.option = function(t, e) {
|
4739 | return e != null ? (this._options || (this._options = {}), this._options[t] = e, this) : this._options && this._options[t];
|
4740 | };
|
4741 | Gt.prototype.platform = function() {
|
4742 | return this._options.platform || "browser";
|
4743 | };
|
4744 | Gt.prototype.format = function() {
|
4745 | return this._options.format;
|
4746 | };
|
4747 | Gt.prototype.sourcePath = function() {
|
4748 | return this._options.sourcePath;
|
4749 | };
|
4750 | Gt.prototype.imbaPath = function() {
|
4751 | return this._options.imbaPath;
|
4752 | };
|
4753 | Gt.prototype.resolveColors = function() {
|
4754 | return this._options.styles !== "extern";
|
4755 | };
|
4756 | Gt.prototype.config = function() {
|
4757 | return this._options.config || {};
|
4758 | };
|
4759 | Gt.prototype.cwd = function() {
|
4760 | return this.config() && this.config().cwd;
|
4761 | };
|
4762 | Gt.prototype.tsc = function() {
|
4763 | return this.platform() == "tsc" || this._options.tsc;
|
4764 | };
|
4765 | Gt.prototype.hmr = function() {
|
4766 | return !!this._options.hmr;
|
4767 | };
|
4768 | Gt.prototype.isStdLib = function() {
|
4769 | return !!this._options.stdlib;
|
4770 | };
|
4771 | Gt.prototype.isWeb = function() {
|
4772 | return this.platform() == "browser" || this.platform() == "web";
|
4773 | };
|
4774 | Gt.prototype.isWorker = function() {
|
4775 | return this.platform() == "worker";
|
4776 | };
|
4777 | Gt.prototype.isNode = function() {
|
4778 | return this.platform() == "node";
|
4779 | };
|
4780 | Gt.prototype.cjs = function() {
|
4781 | return this.format() == "cjs";
|
4782 | };
|
4783 | Gt.prototype.esm = function() {
|
4784 | return !this.cjs();
|
4785 | };
|
4786 | Gt.prototype.env = function(t) {
|
4787 | var e, r = this._options["ENV_" + t];
|
4788 | if (r != null)
|
4789 | return r;
|
4790 | if (Se[t] !== void 0)
|
4791 | return Se[t];
|
4792 | var i = t.toLowerCase();
|
4793 | if (this._options[i] != null)
|
4794 | return this._options[i];
|
4795 | if (t == "WEB" || t == "BROWSER")
|
4796 | return this._meta.universal = false, this.isWeb();
|
4797 | if (t == "NODE")
|
4798 | return this._meta.universal = false, this.isNode();
|
4799 | if (t == "WORKER" || t == "WEBWORKER")
|
4800 | return this._meta.universal = false, this.isWorker();
|
4801 | if (t == "HMR")
|
4802 | return !!this._options.hmr;
|
4803 | if (e = this._options.env) {
|
4804 | if (e.hasOwnProperty(t))
|
4805 | return e[t];
|
4806 | if (e.hasOwnProperty(t.toLowerCase()))
|
4807 | return e[t.toLowerCase()];
|
4808 | }
|
4809 | };
|
4810 | Gt.prototype.addScope = function(t) {
|
4811 | return this._scopes.push(t), this;
|
4812 | };
|
4813 | Gt.prototype.traverse = function(t) {
|
4814 | return this;
|
4815 | };
|
4816 | Gt.prototype.push = function(t) {
|
4817 | return this._nodes.push(t), this;
|
4818 | };
|
4819 | Gt.prototype.pop = function(t) {
|
4820 | return this._nodes.pop(), this;
|
4821 | };
|
4822 | Gt.prototype.parent = function() {
|
4823 | return this._nodes[this._nodes.length - 2];
|
4824 | };
|
4825 | Gt.prototype.current = function() {
|
4826 | return this._nodes[this._nodes.length - 1];
|
4827 | };
|
4828 | Gt.prototype.up = function(t) {
|
4829 | if (t || (t = function(i) {
|
4830 | return !(i instanceof he);
|
4831 | }), typeof t == "number")
|
4832 | return this._nodes[this._nodes.length - (1 + t)];
|
4833 | var e = this._nodes.length - 2;
|
4834 | if (t.prototype instanceof Z) {
|
4835 | for (; e >= 0; ) {
|
4836 | var r = this._nodes[e--];
|
4837 | if (r instanceof t)
|
4838 | return r;
|
4839 | }
|
4840 | return null;
|
4841 | }
|
4842 | for (; e >= 0; ) {
|
4843 | if (r = this._nodes[e], t(r))
|
4844 | return r;
|
4845 | e -= 1;
|
4846 | }
|
4847 | return null;
|
4848 | };
|
4849 | Gt.prototype.parents = function(t) {
|
4850 | if (t || (t = function(e) {
|
4851 | return !(e instanceof he);
|
4852 | }), t.prototype instanceof Z) {
|
4853 | let e = t;
|
4854 | t = function(r) {
|
4855 | return r instanceof e;
|
4856 | };
|
4857 | }
|
4858 | return this._nodes.filter(t);
|
4859 | };
|
4860 | Gt.prototype.relative = function(t, e) {
|
4861 | e === void 0 && (e = 0);
|
4862 | var r = this._nodes.indexOf(t);
|
4863 | return r >= 0 ? this._nodes[r + e] : null;
|
4864 | };
|
4865 | Gt.prototype.scope = function(t) {
|
4866 | if (t === void 0 && (t = 0), this._withScope)
|
4867 | return this._withScope;
|
4868 | for (var e = this._nodes.length - 1 - t; e >= 0; ) {
|
4869 | var r = this._nodes[e];
|
4870 | if (r._scope)
|
4871 | return r._scope;
|
4872 | e -= 1;
|
4873 | }
|
4874 | return null;
|
4875 | };
|
4876 | Gt.prototype.withScope = function(t, e) {
|
4877 | let r = this._withScope;
|
4878 | this._withScope = t, e(), this._withScope = r;
|
4879 | };
|
4880 | Gt.prototype.scopes = function() {
|
4881 | for (var t = [], e = this._nodes.length - 1; e >= 0; ) {
|
4882 | var r = this._nodes[e];
|
4883 | r._scope && t.push(r._scope), e -= 1;
|
4884 | }
|
4885 | return t;
|
4886 | };
|
4887 | Gt.prototype.closures = function() {
|
4888 | return this.scopes().filter(function(t) {
|
4889 | return t.closure() == t;
|
4890 | });
|
4891 | };
|
4892 | Gt.prototype.method = function() {
|
4893 | return this.up(Re);
|
4894 | };
|
4895 | Gt.prototype.block = function() {
|
4896 | return this.up(Lt);
|
4897 | };
|
4898 | Gt.prototype.blockpart = function() {
|
4899 | let t = this._nodes.length - 1;
|
4900 | for (; t; ) {
|
4901 | if (this._nodes[t - 1] instanceof Lt)
|
4902 | return this._nodes[t];
|
4903 | t--;
|
4904 | }
|
4905 | };
|
4906 | Gt.prototype.lastImport = function() {
|
4907 | let t = this.scopes();
|
4908 | for (let e = 0, r = It(t), i = r.length, s; e < i; e++)
|
4909 | if (s = r[e], s._lastImport)
|
4910 | return s._lastImport;
|
4911 | return null;
|
4912 | };
|
4913 | Gt.prototype.isExpression = function() {
|
4914 | for (var t = this._nodes.length - 1; t >= 0; ) {
|
4915 | var e = this._nodes[t];
|
4916 | if (e instanceof fr || e instanceof De || e.isStatementLike())
|
4917 | return false;
|
4918 | if (e.isExpression())
|
4919 | return true;
|
4920 | t -= 1;
|
4921 | }
|
4922 | return false;
|
4923 | };
|
4924 | Gt.prototype.toString = function() {
|
4925 | return "Stack(" + this._nodes.join(" -> ") + ")";
|
4926 | };
|
4927 | Gt.prototype.isAnalyzing = function() {
|
4928 | return this._analyzing;
|
4929 | };
|
4930 | Gt.prototype.scoping = function() {
|
4931 | return this._nodes.filter(function(t) {
|
4932 | return t._scope;
|
4933 | }).map(function(t) {
|
4934 | return t._scope;
|
4935 | });
|
4936 | };
|
4937 | Gt.prototype.currentRegion = function() {
|
4938 | let t = this._nodes.length, e = this._nodes[--t];
|
4939 | return e && [e.startLoc(), e.endLoc()];
|
4940 | };
|
4941 | var O = E.STACK = new Gt();
|
4942 | function Z() {
|
4943 | this.setup();
|
4944 | }
|
4945 | E.Node = Z;
|
4946 | Z.prototype.o = function(t) {
|
4947 | return this._o;
|
4948 | };
|
4949 | Z.prototype.setO = function(t) {
|
4950 | return this._o = t, this;
|
4951 | };
|
4952 | Z.prototype.options = function(t) {
|
4953 | return this._options;
|
4954 | };
|
4955 | Z.prototype.setOptions = function(t) {
|
4956 | return this._options = t, this;
|
4957 | };
|
4958 | Z.prototype.traversed = function(t) {
|
4959 | return this._traversed;
|
4960 | };
|
4961 | Z.prototype.setTraversed = function(t) {
|
4962 | return this._traversed = t, this;
|
4963 | };
|
4964 | Z.prototype.script = function() {
|
4965 | return e3.current;
|
4966 | };
|
4967 | Z.prototype.safechain = function() {
|
4968 | return false;
|
4969 | };
|
4970 | Z.prototype.oid = function() {
|
4971 | return this._oid || (this._oid = O.generateId(""));
|
4972 | };
|
4973 | Z.prototype.osym = function(t) {
|
4974 | return t === void 0 && (t = ""), O.getSymbol(this.oid() + t);
|
4975 | };
|
4976 | Z.prototype.symbolRef = function(t) {
|
4977 | return O.root().symbolRef(t);
|
4978 | };
|
4979 | Z.prototype.domCall = function(t) {
|
4980 | return O.domCall(t);
|
4981 | };
|
4982 | Z.prototype.gsym = function(t) {
|
4983 | return O.root().symbolRef(t);
|
4984 | };
|
4985 | Z.prototype.sourceId = function() {
|
4986 | return O.sourceId();
|
4987 | };
|
4988 | Z.prototype.slf = function() {
|
4989 | return this.scope__().context();
|
4990 | };
|
4991 | Z.prototype.p = function() {
|
4992 | return O.loglevel() > 0 && console.log.apply(console, arguments), this;
|
4993 | };
|
4994 | Z.prototype.runtime = function() {
|
4995 | return O.runtime();
|
4996 | };
|
4997 | Z.prototype.typeName = function() {
|
4998 | return this.constructor.name;
|
4999 | };
|
5000 | Z.prototype.namepath = function() {
|
5001 | return this.typeName();
|
5002 | };
|
5003 | Z.prototype.setup = function() {
|
5004 | return this._expression = false, this._traversed = false, this._parens = false, this._cache = null, this._value = null, this;
|
5005 | };
|
5006 | Z.prototype.setStartLoc = function(t) {
|
5007 | return this._startLoc = t, this;
|
5008 | };
|
5009 | Z.prototype.setEndLoc = function(t) {
|
5010 | return this._endLoc = t, this;
|
5011 | };
|
5012 | Z.prototype.setRegion = function(t) {
|
5013 | return t instanceof Z && (t = t.region()), t instanceof Array && (this._startLoc = t[0], this._endLoc = t[1]), this;
|
5014 | };
|
5015 | Z.prototype.setEnds = function(t, e) {
|
5016 | return e && e.endLoc && (this._endLoc = e.endLoc()), t && t.startLoc && (this._startLoc = t.startLoc()), this;
|
5017 | };
|
5018 | Z.prototype.startLoc = function() {
|
5019 | return this._startLoc;
|
5020 | };
|
5021 | Z.prototype.endLoc = function() {
|
5022 | return this._endLoc;
|
5023 | };
|
5024 | Z.prototype.set = function(t) {
|
5025 | this._options || (this._options = {});
|
5026 | for (let e, r = 0, i = Object.keys(t), s = i.length, n; r < s; r++)
|
5027 | n = i[r], e = t[n], this._options[n] = e;
|
5028 | return this;
|
5029 | };
|
5030 | Z.prototype.option = function(t, e) {
|
5031 | return e != null ? (this._options || (this._options = {}), this._options[t] = e, this) : this._options && this._options[t];
|
5032 | };
|
5033 | Z.prototype.o = function() {
|
5034 | return this._options || (this._options = {});
|
5035 | };
|
5036 | Z.prototype.keyword = function() {
|
5037 | return this._keyword || this._options && this._options.keyword;
|
5038 | };
|
5039 | Z.prototype.datatype = function() {
|
5040 | return this._options ? this._options.datatype : null;
|
5041 | };
|
5042 | Z.prototype.configure = function(t) {
|
5043 | return this.set(t);
|
5044 | };
|
5045 | Z.prototype.region = function() {
|
5046 | return [0, 0];
|
5047 | };
|
5048 | Z.prototype.loc = function() {
|
5049 | return [this.startLoc() || 0, this.endLoc() || 0];
|
5050 | };
|
5051 | Z.prototype.token = function() {
|
5052 | return null;
|
5053 | };
|
5054 | Z.prototype.compile = function() {
|
5055 | return this;
|
5056 | };
|
5057 | Z.prototype.visit = function() {
|
5058 | return this;
|
5059 | };
|
5060 | Z.prototype.stack = function() {
|
5061 | return O;
|
5062 | };
|
5063 | Z.prototype.isString = function() {
|
5064 | return false;
|
5065 | };
|
5066 | Z.prototype.isPrimitive = function(t) {
|
5067 | return false;
|
5068 | };
|
5069 | Z.prototype.isReserved = function() {
|
5070 | return false;
|
5071 | };
|
5072 | Z.prototype.isGlobal = function(t) {
|
5073 | return false;
|
5074 | };
|
5075 | Z.prototype.isConstant = function() {
|
5076 | return false;
|
5077 | };
|
5078 | Z.prototype.traverse = function(t) {
|
5079 | if (this._traversed)
|
5080 | return this;
|
5081 | this._traversed = true;
|
5082 | let e;
|
5083 | return t && (e = O.state(), O.setState(t)), O.push(this), this.visit(O, O.state()), O.pop(this), t && O.setState(e), this;
|
5084 | };
|
5085 | Z.prototype.inspect = function() {
|
5086 | return {type: this.constructor.toString()};
|
5087 | };
|
5088 | Z.prototype.js = function(t) {
|
5089 | return "NODE";
|
5090 | };
|
5091 | Z.prototype.toString = function() {
|
5092 | return "" + this.constructor.name;
|
5093 | };
|
5094 | Z.prototype.consume = function(t) {
|
5095 | return t instanceof Et ? t.register(this) : t instanceof ii ? (t.register(this), new ii(t.op(), t.left(), this)) : t instanceof Ve ? J(t.op(), t.left(), this) : t instanceof Ke ? J("=", t.left(), this) : t instanceof re ? J(t.op(), t.left(), this) : t instanceof Qe ? new Qe(this) : this;
|
5096 | };
|
5097 | Z.prototype.toExpression = function() {
|
5098 | return this._expression = true, this;
|
5099 | };
|
5100 | Z.prototype.forceExpression = function() {
|
5101 | return this._expression = true, this;
|
5102 | };
|
5103 | Z.prototype.isExpressable = function() {
|
5104 | return true;
|
5105 | };
|
5106 | Z.prototype.isExpression = function() {
|
5107 | return this._expression || false;
|
5108 | };
|
5109 | Z.prototype.isStatementLike = function() {
|
5110 | return false;
|
5111 | };
|
5112 | Z.prototype.isRuntimeReference = function() {
|
5113 | return false;
|
5114 | };
|
5115 | Z.prototype.hasSideEffects = function() {
|
5116 | return true;
|
5117 | };
|
5118 | Z.prototype.isUsed = function() {
|
5119 | return true;
|
5120 | };
|
5121 | Z.prototype.shouldParenthesize = function() {
|
5122 | return false;
|
5123 | };
|
5124 | Z.prototype.shouldParenthesizeInTernary = function() {
|
5125 | return true;
|
5126 | };
|
5127 | Z.prototype.block = function() {
|
5128 | return Lt.wrap([this]);
|
5129 | };
|
5130 | Z.prototype.node = function() {
|
5131 | return this;
|
5132 | };
|
5133 | Z.prototype.unwrappedNode = function() {
|
5134 | return this;
|
5135 | };
|
5136 | Z.prototype.scope__ = function() {
|
5137 | return O.scope();
|
5138 | };
|
5139 | Z.prototype.up = function() {
|
5140 | return O.parent();
|
5141 | };
|
5142 | Z.prototype.util = function() {
|
5143 | return Ht;
|
5144 | };
|
5145 | Z.prototype.receiver = function() {
|
5146 | return this;
|
5147 | };
|
5148 | Z.prototype.indented = function(t, e) {
|
5149 | return t instanceof Ir ? (this._indentation = t, this) : (e instanceof Array && (this.add(e[0]), e = e[1]), this._indentation || (this._indentation = t && e ? new Ir(t, e) : Jl), this);
|
5150 | };
|
5151 | Z.prototype.prebreak = function(t) {
|
5152 | return t === void 0 && (t = `
|
5153 | `), this;
|
5154 | };
|
5155 | Z.prototype.invert = function() {
|
5156 | return J("!", this);
|
5157 | };
|
5158 | Z.prototype.cache = function(t) {
|
5159 | return t === void 0 && (t = {}), this._cache = t, t.var = (t.scope || this.scope__()).temporary(this, t), t.lookups = 0, this;
|
5160 | };
|
5161 | Z.prototype.cachevar = function() {
|
5162 | return this._cache && this._cache.var;
|
5163 | };
|
5164 | Z.prototype.decache = function() {
|
5165 | return this._cache && (this.cachevar().free(), this._cache = null), this;
|
5166 | };
|
5167 | Z.prototype.alias = function() {
|
5168 | return null;
|
5169 | };
|
5170 | Z.prototype.warn = function(t, e) {
|
5171 | e === void 0 && (e = {});
|
5172 | let r = e.loc || this.loc() || [0, 0];
|
5173 | return r instanceof Z && (r = [r.startLoc(), r.endLoc()]), r instanceof br && (r = r.loc()), this.script().addDiagnostic(e.severity || "warning", {message: t, range: this.script().rangeAt(r[0], r[1])});
|
5174 | };
|
5175 | Z.prototype.error = function(t, e) {
|
5176 | return e === void 0 && (e = {}), e.severity = "error", this.warn(t, e);
|
5177 | };
|
5178 | Z.prototype.c = function(t) {
|
5179 | var e, r = O, i = this._cache;
|
5180 | if (i && i.cached)
|
5181 | return this.c_cached(i);
|
5182 | r.push(this), t && t.expression && this.forceExpression(), t && t.indent && (this._indentation || (this._indentation = Jl));
|
5183 | var s = this.js(r, t), n = this.shouldParenthesize();
|
5184 | if (r.pop(this), s == null)
|
5185 | return s;
|
5186 | if ((e = this._indentation) && (s = e.wrap(s, t)), n && (s = "(" + s + ")"), (t && t.braces || this._options && this._options.braces) && (e ? s = "{" + s + "}" : s = "{ " + s + " }"), i = this._cache) {
|
5187 | i.manual || (s = "" + i.var.c() + " = " + s);
|
5188 | var o = r.current();
|
5189 | o instanceof Ut && (o = o.node()), (o instanceof se || o instanceof re) && (s = "(" + s + ")"), i.cached = true;
|
5190 | }
|
5191 | return ls.sourcemap && (!t || t.mark !== false) && (s = Tt(s, this)), s;
|
5192 | };
|
5193 | Z.prototype.c_cached = function(t) {
|
5194 | return t.lookups++, t.uses == t.lookups && t.var.free(), t.var.c();
|
5195 | };
|
5196 | function Ut(t) {
|
5197 | this.setup(), this._value = this.load(t);
|
5198 | }
|
5199 | A(Ut, Z);
|
5200 | E.ValueNode = Ut;
|
5201 | Ut.prototype.value = function(t) {
|
5202 | return this._value;
|
5203 | };
|
5204 | Ut.prototype.setValue = function(t) {
|
5205 | return this._value = t, this;
|
5206 | };
|
5207 | Ut.prototype.startLoc = function() {
|
5208 | return this._value && this._value.startLoc && this._value.startLoc();
|
5209 | };
|
5210 | Ut.prototype.endLoc = function() {
|
5211 | return this._value && this._value.endLoc && this._value.endLoc();
|
5212 | };
|
5213 | Ut.prototype.load = function(t) {
|
5214 | return t;
|
5215 | };
|
5216 | Ut.prototype.js = function(t) {
|
5217 | return typeof this._value == "string" ? this._value : this._value.c();
|
5218 | };
|
5219 | Ut.prototype.visit = function() {
|
5220 | return this._value instanceof Z && this._value.traverse(), this;
|
5221 | };
|
5222 | Ut.prototype.region = function() {
|
5223 | return [this._value._loc, this._value._loc + this._value._len];
|
5224 | };
|
5225 | function pi(t, e) {
|
5226 | this.setup(), this._value = t, this._orig = e || t;
|
5227 | }
|
5228 | A(pi, Z);
|
5229 | E.ValueReferenceNode = pi;
|
5230 | pi.prototype.value = function(t) {
|
5231 | return this._value;
|
5232 | };
|
5233 | pi.prototype.setValue = function(t) {
|
5234 | return this._value = t, this;
|
5235 | };
|
5236 | pi.prototype.orig = function(t) {
|
5237 | return this._orig;
|
5238 | };
|
5239 | pi.prototype.setOrig = function(t) {
|
5240 | return this._orig = t, this;
|
5241 | };
|
5242 | pi.prototype.startLoc = function() {
|
5243 | return this._orig && this._orig.startLoc && this._orig.startLoc();
|
5244 | };
|
5245 | pi.prototype.endLoc = function() {
|
5246 | return this._orig && this._orig.endLoc && this._orig.endLoc();
|
5247 | };
|
5248 | pi.prototype.load = function(t) {
|
5249 | return t;
|
5250 | };
|
5251 | pi.prototype.js = function(t) {
|
5252 | return Tt(this._value.c({mark: false}), this);
|
5253 | };
|
5254 | pi.prototype.visit = function() {
|
5255 | return this._value instanceof Z && this._value.traverse(), this;
|
5256 | };
|
5257 | pi.prototype.region = function() {
|
5258 | return [this._orig._loc, this._orig._loc + this._orig._len];
|
5259 | };
|
5260 | function Q1() {
|
5261 | return Ut.apply(this, arguments);
|
5262 | }
|
5263 | A(Q1, Ut);
|
5264 | E.ExpressionNode = Q1;
|
5265 | function Ql() {
|
5266 | return Ut.apply(this, arguments);
|
5267 | }
|
5268 | A(Ql, Ut);
|
5269 | E.AssertionNode = Ql;
|
5270 | Ql.prototype.js = function(t) {
|
5271 | let e = this._value, r = [];
|
5272 | if (e instanceof re && !(e instanceof se)) {
|
5273 | let i = e.left(), s = e.right();
|
5274 | r.push(i.cache().c(t)), r.push(be.singlequote(e._op)), r.push(s.cache().c(t)), r = ["imba.$a=[" + r.join(",") + "]"], r.push(e.c(t));
|
5275 | } else
|
5276 | r.push("imba.$a=null"), r.push(e.c(t));
|
5277 | return "(" + r.join(",") + ")";
|
5278 | };
|
5279 | function Pi() {
|
5280 | return Ut.apply(this, arguments);
|
5281 | }
|
5282 | A(Pi, Ut);
|
5283 | E.Statement = Pi;
|
5284 | Pi.prototype.isExpressable = function() {
|
5285 | return false;
|
5286 | };
|
5287 | function Mr() {
|
5288 | return Ut.apply(this, arguments);
|
5289 | }
|
5290 | A(Mr, Ut);
|
5291 | E.Meta = Mr;
|
5292 | Mr.prototype.isPrimitive = function(t) {
|
5293 | return true;
|
5294 | };
|
5295 | function In() {
|
5296 | return Mr.apply(this, arguments);
|
5297 | }
|
5298 | A(In, Mr);
|
5299 | E.Comment = In;
|
5300 | In.prototype.visit = function() {
|
5301 | var t, e;
|
5302 | if (t = this.up()) {
|
5303 | var r = t.indexOf(this) + 1;
|
5304 | t.index(r) instanceof ri && (r += 1), (e = t.index(r)) && (e._desc = this);
|
5305 | }
|
5306 | return this;
|
5307 | };
|
5308 | In.prototype.toDoc = function() {
|
5309 | return be.normalizeIndentation("" + this._value._value);
|
5310 | };
|
5311 | In.prototype.toJSON = function() {
|
5312 | return be.normalizeIndentation("" + this._value._value);
|
5313 | };
|
5314 | In.prototype.toString = function() {
|
5315 | return this._value._value;
|
5316 | };
|
5317 | In.prototype.c = function(t) {
|
5318 | if (O.option("comments") == false || this._skip)
|
5319 | return "";
|
5320 | var e = this._value._value;
|
5321 | if (t && t.expression || e.match(/\n/) || this._value.type() == "HERECOMMENT") {
|
5322 | var r = e.replace(/\*\//g, "\\*\\/").replace(/\/\*/g, "\\/\\*");
|
5323 | return "/*" + r + "*/";
|
5324 | } else
|
5325 | return e.match(/\@(type|param)/) ? "/** " + e + " */" : "// " + e;
|
5326 | };
|
5327 | function ri(t) {
|
5328 | this._value = t;
|
5329 | }
|
5330 | A(ri, Mr);
|
5331 | E.Terminator = ri;
|
5332 | ri.prototype.traverse = function() {
|
5333 | return this;
|
5334 | };
|
5335 | ri.prototype.loc = function() {
|
5336 | return [this._value._loc, this._value._loc + this._value._value.length];
|
5337 | };
|
5338 | ri.prototype.startLoc = function() {
|
5339 | return this._value.startLoc ? this._value.startLoc() : -1;
|
5340 | };
|
5341 | ri.prototype.endLoc = function() {
|
5342 | return this._value._value ? this.startLoc() + this._value._value.length : -1;
|
5343 | };
|
5344 | ri.prototype.c = function() {
|
5345 | let t = this._value.c();
|
5346 | return O.option("comments") == false && (t = t.replace(/\/\/.*$/gm, "")), O.tsc() && (t = t.replace(/\/\/(.*)$/gm, "/**$1 */ ")), O.tsc() && (t.length > 1 || this._first) ? Tt(t.replace(/^[\t ]+/gm, ""), this) : t.replace(/^[\t ]+/gm, "");
|
5347 | };
|
5348 | function wo(t) {
|
5349 | this._traversed = false, this._value = t || `
|
5350 | `;
|
5351 | }
|
5352 | A(wo, ri);
|
5353 | E.Newline = wo;
|
5354 | wo.prototype.c = function() {
|
5355 | return this._value;
|
5356 | };
|
5357 | function as() {
|
5358 | return Ut.apply(this, arguments);
|
5359 | }
|
5360 | A(as, Ut);
|
5361 | E.Index = as;
|
5362 | as.prototype.cache = function(t) {
|
5363 | return t === void 0 && (t = {}), this._value.cache(t);
|
5364 | };
|
5365 | as.prototype.js = function(t) {
|
5366 | return this._value.c();
|
5367 | };
|
5368 | function jt(t) {
|
5369 | this.setup(), this._nodes = this.load(t || []), this._indentation = null;
|
5370 | }
|
5371 | A(jt, Z);
|
5372 | E.ListNode = jt;
|
5373 | jt.prototype.nodes = function(t) {
|
5374 | return this._nodes;
|
5375 | };
|
5376 | jt.prototype.setNodes = function(t) {
|
5377 | return this._nodes = t, this;
|
5378 | };
|
5379 | jt.prototype.list = function() {
|
5380 | return this._nodes;
|
5381 | };
|
5382 | jt.prototype.compact = function() {
|
5383 | return this._nodes = Pt.compact(this._nodes), this;
|
5384 | };
|
5385 | jt.prototype.load = function(t) {
|
5386 | return t;
|
5387 | };
|
5388 | jt.prototype.concat = function(t) {
|
5389 | return this._nodes = this.nodes().concat(t instanceof Array ? t : t.nodes()), this;
|
5390 | };
|
5391 | jt.prototype.swap = function(t, e) {
|
5392 | var r = this.indexOf(t);
|
5393 | return r >= 0 && (this.nodes()[r] = e), this;
|
5394 | };
|
5395 | jt.prototype.push = function(t) {
|
5396 | return this._nodes.push(t), this;
|
5397 | };
|
5398 | jt.prototype.pop = function() {
|
5399 | var t = this._nodes.pop();
|
5400 | return t;
|
5401 | };
|
5402 | jt.prototype.add = function(t, e) {
|
5403 | let r = null;
|
5404 | if (e && e.before)
|
5405 | r = this._nodes.indexOf(e.before), r == -1 && (r = null);
|
5406 | else if (e && e.after) {
|
5407 | if (r = this._nodes.indexOf(e.after) + 1, r == 0 && (r = null), r >= 1)
|
5408 | for (; this._nodes[r] instanceof Mr; )
|
5409 | r++;
|
5410 | } else
|
5411 | (typeof e == "number" || e instanceof Number) && (r = e);
|
5412 | return r !== null ? t instanceof Array ? this._nodes.splice.apply(this._nodes, [].concat([r, 0], Array.from(t))) : this._nodes.splice(r, 0, t) : t instanceof Array ? this._nodes.push.apply(this._nodes, t) : this._nodes.push(t), this;
|
5413 | };
|
5414 | jt.prototype.unshift = function(t, e) {
|
5415 | return e && this._nodes.unshift(Fe), this._nodes.unshift(t), this;
|
5416 | };
|
5417 | jt.prototype.slice = function(t, e) {
|
5418 | return new this.constructor(this._nodes.slice(t, e));
|
5419 | };
|
5420 | jt.prototype.break = function(t, e) {
|
5421 | return e === void 0 && (e = false), typeof t == "string" && (t = new ri(t)), e ? this.unshift(t) : this.push(t), this;
|
5422 | };
|
5423 | jt.prototype.some = function(t) {
|
5424 | for (let e = 0, r = It(this._nodes), i = r.length, s; e < i; e++)
|
5425 | if (s = r[e], t(s))
|
5426 | return true;
|
5427 | return false;
|
5428 | };
|
5429 | jt.prototype.every = function(t) {
|
5430 | for (let e = 0, r = It(this._nodes), i = r.length, s; e < i; e++)
|
5431 | if (s = r[e], !t(s))
|
5432 | return false;
|
5433 | return true;
|
5434 | };
|
5435 | jt.prototype.values = function() {
|
5436 | return this._nodes.filter(function(t) {
|
5437 | return !(t instanceof Mr);
|
5438 | });
|
5439 | };
|
5440 | jt.prototype.filter = function(t) {
|
5441 | return this._nodes.filter(t);
|
5442 | };
|
5443 | jt.prototype.pluck = function(t) {
|
5444 | var e = this.filter(t)[0];
|
5445 | return e && this.remove(e), e;
|
5446 | };
|
5447 | jt.prototype.indexOf = function(t) {
|
5448 | return this._nodes.indexOf(t);
|
5449 | };
|
5450 | jt.prototype.index = function(t) {
|
5451 | return this._nodes[t];
|
5452 | };
|
5453 | jt.prototype.remove = function(t) {
|
5454 | var e = this._nodes.indexOf(t);
|
5455 | return e >= 0 && this._nodes.splice(e, 1), this;
|
5456 | };
|
5457 | jt.prototype.removeAt = function(t) {
|
5458 | var e = this._nodes[t];
|
5459 | return t >= 0 && this._nodes.splice(t, 1), e;
|
5460 | };
|
5461 | jt.prototype.replace = function(t, e) {
|
5462 | var r = this._nodes.indexOf(t);
|
5463 | return r >= 0 && (e instanceof Array ? this._nodes.splice.apply(this._nodes, [].concat([r, 1], Array.from(e))) : this._nodes[r] = e), this;
|
5464 | };
|
5465 | jt.prototype.first = function() {
|
5466 | return this._nodes[0];
|
5467 | };
|
5468 | jt.prototype.last = function() {
|
5469 | for (var t = this._nodes.length; t; ) {
|
5470 | t = t - 1;
|
5471 | var e = this._nodes[t];
|
5472 | if (!(e instanceof Mr))
|
5473 | return e;
|
5474 | }
|
5475 | return null;
|
5476 | };
|
5477 | jt.prototype.map = function(t) {
|
5478 | return this._nodes.map(t);
|
5479 | };
|
5480 | jt.prototype.forEach = function(t) {
|
5481 | return this._nodes.forEach(t);
|
5482 | };
|
5483 | jt.prototype.remap = function(t) {
|
5484 | return this._nodes = this.map(t), this;
|
5485 | };
|
5486 | jt.prototype.count = function() {
|
5487 | return this._nodes.length;
|
5488 | };
|
5489 | jt.prototype.len = function() {
|
5490 | return this._nodes.length;
|
5491 | };
|
5492 | jt.prototype.realCount = function() {
|
5493 | var t = 0;
|
5494 | for (let e = 0, r = It(this._nodes), i = r.length, s; e < i; e++)
|
5495 | s = r[e], s && !(s instanceof Mr) && t++;
|
5496 | return t;
|
5497 | };
|
5498 | jt.prototype.isEmpty = function() {
|
5499 | return this.realCount() == 0;
|
5500 | };
|
5501 | jt.prototype.visit = function() {
|
5502 | let t = this._nodes, e = 0;
|
5503 | for (; e < t.length; ) {
|
5504 | let r = t[e];
|
5505 | if (r.traverse) {
|
5506 | let i = r.traverse();
|
5507 | if (i != r && i instanceof Array) {
|
5508 | t.splice.apply(t, [].concat([e, 1], Array.from(i)));
|
5509 | continue;
|
5510 | }
|
5511 | }
|
5512 | e++;
|
5513 | }
|
5514 | return this;
|
5515 | };
|
5516 | jt.prototype.isExpressable = function() {
|
5517 | for (let t = 0, e = It(this.nodes()), r = e.length, i; t < r; t++)
|
5518 | if (i = e[t], i && !i.isExpressable())
|
5519 | return false;
|
5520 | return true;
|
5521 | };
|
5522 | jt.prototype.toArray = function() {
|
5523 | return this._nodes;
|
5524 | };
|
5525 | jt.prototype.delimiter = function() {
|
5526 | return this._delimiter || ",";
|
5527 | };
|
5528 | jt.prototype.js = function(t, e) {
|
5529 | (!e || e.constructor !== Object) && (e = {});
|
5530 | var r = e.nodes !== void 0 ? e.nodes : this._nodes, i = ",", s = i != ";", n = this.last(), o = 0, a = r.length, l = "";
|
5531 | for (let c = 0, _ = It(r), f = _.length, m; c < f; c++) {
|
5532 | m = _[c];
|
5533 | var p = typeof m == "string" ? m : m ? m.c({expression: s}) : "";
|
5534 | l += p, p && (!s || m != n) && !(m instanceof Mr) && (l += i);
|
5535 | }
|
5536 | return l;
|
5537 | };
|
5538 | jt.prototype.indented = function(t, e) {
|
5539 | return t instanceof Ir ? (this._indentation = t, this) : (this._indentation || (this._indentation = t && e ? new Ir(t, e) : Jl), this);
|
5540 | };
|
5541 | jt.prototype.endLoc = function() {
|
5542 | var t;
|
5543 | if (this._endLoc)
|
5544 | return this._endLoc;
|
5545 | var e = this._nodes.length;
|
5546 | return (t = this._nodes[e - 1]) && t.endLoc && t.endLoc();
|
5547 | };
|
5548 | function ar() {
|
5549 | return jt.apply(this, arguments);
|
5550 | }
|
5551 | A(ar, jt);
|
5552 | E.ArgList = ar;
|
5553 | ar.prototype.startLoc = function() {
|
5554 | var t;
|
5555 | return typeof this._startLoc == "number" ? this._startLoc : (t = this.first()) && t.startLoc && t.startLoc();
|
5556 | };
|
5557 | ar.prototype.consume = function(t) {
|
5558 | return t instanceof Et ? (this._nodes = this._nodes.map(function(e) {
|
5559 | return e instanceof Mr ? e : e.consume(t);
|
5560 | }), this) : ar.prototype.__super__.consume.apply(this, arguments);
|
5561 | };
|
5562 | ar.prototype.setEnds = function(t, e) {
|
5563 | return e && e.endLoc && e.endLoc() != -1 && (this._endLoc = e.endLoc()), t && t.startLoc && t.startLoc() != -1 && (this._startLoc = t.startLoc()), this;
|
5564 | };
|
5565 | function So() {
|
5566 | return ar.apply(this, arguments);
|
5567 | }
|
5568 | A(So, ar);
|
5569 | E.AssignList = So;
|
5570 | So.prototype.concat = function(t) {
|
5571 | return this._nodes.length == 0 && t instanceof So ? t : (So.prototype.__super__.concat.call(this, t), this);
|
5572 | };
|
5573 | function Lt(t) {
|
5574 | this.setup(), this._nodes = t || [], this._head = null, this._indentation = null;
|
5575 | }
|
5576 | A(Lt, jt);
|
5577 | E.Block = Lt;
|
5578 | Lt.prototype.head = function(t) {
|
5579 | return this._head;
|
5580 | };
|
5581 | Lt.prototype.setHead = function(t) {
|
5582 | return this._head = t, this;
|
5583 | };
|
5584 | Lt.prototype.startLoc = function() {
|
5585 | return this._indentation ? this._indentation.startLoc() : Lt.prototype.__super__.startLoc.apply(this, arguments);
|
5586 | };
|
5587 | Lt.prototype.endLoc = function() {
|
5588 | return this._indentation ? this._indentation.endLoc() : Lt.prototype.__super__.endLoc.apply(this, arguments);
|
5589 | };
|
5590 | Lt.wrap = function(t) {
|
5591 | if (!(t instanceof Array))
|
5592 | throw new SyntaxError("what");
|
5593 | return t.length == 1 && t[0] instanceof Lt ? t[0] : new Lt(t);
|
5594 | };
|
5595 | Lt.prototype.visit = function(t) {
|
5596 | this._scope && this._scope.visit(), t && t._tag && (this._tag = t._tag), this._traversing = true;
|
5597 | for (let e = 0, r = It(this._nodes.slice(0)), i = r.length, s; e < i; e++)
|
5598 | s = r[e], s && s.traverse();
|
5599 | return this._traversing = false, this;
|
5600 | };
|
5601 | Lt.prototype.block = function() {
|
5602 | return this;
|
5603 | };
|
5604 | Lt.prototype.collectDecorators = function() {
|
5605 | var t;
|
5606 | return (t = this._decorators) ? (this._decorators = null, t) : null;
|
5607 | };
|
5608 | Lt.prototype.loc = function() {
|
5609 | var t, e;
|
5610 | if (t = this.option("ends")) {
|
5611 | var r = t[0].loc(), i = t[1].loc();
|
5612 | return r || this.p("no loc for " + t[0]), i || this.p("no loc for " + t[1]), [r[0], i[1]];
|
5613 | }
|
5614 | return (e = this._indentation) && e.aloc() != -1 ? [e.aloc(), e.bloc()] : (r = this._nodes[0], i = this._nodes[this._nodes.length - 1], [r && r.loc()[0] || 0, i && i.loc()[1] || 0]);
|
5615 | };
|
5616 | Lt.prototype.unwrap = function() {
|
5617 | var t = [];
|
5618 | for (let e = 0, r = It(this.nodes()), i = r.length, s; e < i; e++)
|
5619 | s = r[e], s instanceof Lt ? t.push.apply(t, s.unwrap()) : t.push(s);
|
5620 | return t;
|
5621 | };
|
5622 | Lt.prototype.compile = function(t) {
|
5623 | t === void 0 && (t = {});
|
5624 | var e = new cs(this, t);
|
5625 | return e.compile(t);
|
5626 | };
|
5627 | Lt.prototype.analyze = function(t) {
|
5628 | return t === void 0 && (t = {}), this;
|
5629 | };
|
5630 | Lt.prototype.cpart = function(t) {
|
5631 | if (t === x_)
|
5632 | return "";
|
5633 | var e = typeof t == "string" ? t : t ? t.c() : "";
|
5634 | if (e == null || e == null || e == "")
|
5635 | return "";
|
5636 | if (e instanceof Array) {
|
5637 | for (var r = "", i = e.length, s = 0; s < i; )
|
5638 | r += this.cpart(e[s++]);
|
5639 | return r;
|
5640 | }
|
5641 | var n = b_.test(e);
|
5642 | return n || t instanceof Mr || (e += this.delimiter()), e;
|
5643 | };
|
5644 | Lt.prototype.delimiter = function() {
|
5645 | return this._delimiter == null ? ";" : this._delimiter;
|
5646 | };
|
5647 | Lt.prototype.js = function(t, e) {
|
5648 | var r = this._nodes, i = r.length, s = this.isExpression() || t.isExpression() || this.option("express") && this.isExpressable();
|
5649 | if (r.length == 0 && (!this._head || this._head.length == 0))
|
5650 | return "";
|
5651 | if (s)
|
5652 | return Lt.prototype.__super__.js.call(this, t, {nodes: r});
|
5653 | var n = "";
|
5654 | let o = false;
|
5655 | for (let p = 0, c = It(r), _ = c.length; p < _; p++) {
|
5656 | let f = this.cpart(c[p]);
|
5657 | if (f[0] == `
|
5658 | ` && /^\n+$/.test(f)) {
|
5659 | if (o)
|
5660 | continue;
|
5661 | o = true;
|
5662 | } else
|
5663 | f && (o = false);
|
5664 | n += f;
|
5665 | }
|
5666 | if (this._head && this._head.length > 0) {
|
5667 | var a = "";
|
5668 | for (let p = 0, c = It(this._head), _ = c.length; p < _; p++) {
|
5669 | var l = this.cpart(c[p]);
|
5670 | l && (a += l + `
|
5671 | `);
|
5672 | }
|
5673 | n = a + n;
|
5674 | }
|
5675 | return this.option("strict") && (n = this.cpart(`"use strict";
|
5676 | `) + n), n;
|
5677 | };
|
5678 | Lt.prototype.defers = function(t, e) {
|
5679 | var r = this._nodes.indexOf(t);
|
5680 | r >= 0 && (this._nodes[r] = e);
|
5681 | var i = this._nodes.splice(r + 1);
|
5682 | return i;
|
5683 | };
|
5684 | Lt.prototype.expressions = function() {
|
5685 | var t = [];
|
5686 | for (let e = 0, r = It(this.nodes()), i = r.length, s; e < i; e++)
|
5687 | s = r[e], s instanceof ri || t.push(s);
|
5688 | return t;
|
5689 | };
|
5690 | Lt.prototype.consume = function(t) {
|
5691 | var e;
|
5692 | if (t instanceof Et) {
|
5693 | let i = this.expressions();
|
5694 | return this._nodes = this._nodes.map(function(s) {
|
5695 | return da(s, i) >= 0 && !(s instanceof Ve) ? s.consume(t) : s;
|
5696 | }), this;
|
5697 | }
|
5698 | if (e = this.last()) {
|
5699 | var r = e.consume(t);
|
5700 | r != e && (r instanceof Lt && (r = r.nodes()), this.replace(e, r));
|
5701 | }
|
5702 | return this;
|
5703 | };
|
5704 | Lt.prototype.isExpressable = function() {
|
5705 | return !!this._nodes.every(function(t) {
|
5706 | return t.isExpressable();
|
5707 | });
|
5708 | };
|
5709 | Lt.prototype.isExpression = function() {
|
5710 | return this.option("express") || this._expression;
|
5711 | };
|
5712 | Lt.prototype.shouldParenthesizeInTernary = function() {
|
5713 | return this.count() == 1 ? this.first().shouldParenthesizeInTernary() : true;
|
5714 | };
|
5715 | Lt.prototype.indented = function(t, e) {
|
5716 | var r;
|
5717 | if (Lt.prototype.__super__.indented.apply(this, arguments), t instanceof br && t._type == "INDENT" && (r = t._meta && t._meta.post)) {
|
5718 | let i = new br("TERMINATOR", r);
|
5719 | this._nodes.unshift(new ri(i)), t._meta.post = "";
|
5720 | }
|
5721 | return this;
|
5722 | };
|
5723 | function $1() {
|
5724 | return Lt.apply(this, arguments);
|
5725 | }
|
5726 | A($1, Lt);
|
5727 | function ka() {
|
5728 | return Lt.apply(this, arguments);
|
5729 | }
|
5730 | A(ka, Lt);
|
5731 | function $l() {
|
5732 | return ka.apply(this, arguments);
|
5733 | }
|
5734 | A($l, ka);
|
5735 | function xe(t) {
|
5736 | xe.prototype.__super__.constructor.apply(this, arguments), this._name = t;
|
5737 | }
|
5738 | A(xe, Z);
|
5739 | E.ClassField = xe;
|
5740 | xe.prototype.name = function(t) {
|
5741 | return this._name;
|
5742 | };
|
5743 | xe.prototype.setName = function(t) {
|
5744 | return this._name = t, this;
|
5745 | };
|
5746 | xe.prototype.visit = function() {
|
5747 | var t;
|
5748 | return this._decorators = (t = this.up()) && t.collectDecorators && t.collectDecorators(), this._classdecl = O.up(_e), this._name && this._name.traverse && this._name.traverse(), this.value() && (this.value()._scope = this._vscope = new xa(this.value()), this.value()._scope._parent = this.scope__(), this.value().traverse()), this.watchBody() && (this._descriptor = O.root().declare("" + this.oid() + "$Prop", this.util().watcher(this.storageSymbol(), this.watcherSymbol()), {type: "const", system: true})), this;
|
5749 | };
|
5750 | xe.prototype.value = function() {
|
5751 | return this.option("value");
|
5752 | };
|
5753 | xe.prototype.target = function() {
|
5754 | return this.option("static") ? Rt("this") : Rt("this.prototype");
|
5755 | };
|
5756 | xe.prototype.storageSymbol = function() {
|
5757 | return this.symbolRef("#" + this.name().c({as: "symbolpart"}));
|
5758 | };
|
5759 | xe.prototype.watcherSymbol = function() {
|
5760 | return this.symbolRef("#" + this.name().c({as: "symbolpart"}) + "DidSet");
|
5761 | };
|
5762 | xe.prototype.storageKey = function() {
|
5763 | return this._storageKey || (this._storageKey = Ze(this.name().c() + "$$"));
|
5764 | };
|
5765 | xe.prototype.storageMap = function() {
|
5766 | return this._storageMap || (this._storageMap = this.scope__().root().declare(null, Rt("new WeakMap()")));
|
5767 | };
|
5768 | xe.prototype.isPlain = function() {
|
5769 | return !this._decorators && (!this._value || this._value.isPrimitive());
|
5770 | };
|
5771 | xe.prototype.isMember = function() {
|
5772 | return !this.option("static");
|
5773 | };
|
5774 | xe.prototype.isLazy = function() {
|
5775 | return false;
|
5776 | };
|
5777 | xe.prototype.hasStaticInits = function() {
|
5778 | return this.isStatic() || this._decorators;
|
5779 | };
|
5780 | xe.prototype.hasConstructorInits = function() {
|
5781 | return !this.isStatic();
|
5782 | };
|
5783 | xe.prototype.isStatic = function() {
|
5784 | return this.option("static");
|
5785 | };
|
5786 | xe.prototype.watchBody = function() {
|
5787 | return this.option("watch");
|
5788 | };
|
5789 | xe.prototype.loc = function() {
|
5790 | return [this._name._loc, this._name.region()[1]];
|
5791 | };
|
5792 | xe.prototype.c = function() {
|
5793 | var t, e;
|
5794 | if (this.option("struct"))
|
5795 | return;
|
5796 | let r = O.current(), i;
|
5797 | if (r instanceof us) {
|
5798 | let s = this.isStatic() ? "" + Tt("static", this.option("static")) + " " : "", n = this.name() instanceof Pe ? this.name().asObjectKey() : this.name().c({as: "field"});
|
5799 | if (O.tsc()) {
|
5800 | i = "" + s + Tt(n, this._name), this.value() && (i += " = " + this.value().c() + ";");
|
5801 | let o = this.datatype();
|
5802 | o && (i = "" + o.c() + " " + i);
|
5803 | } else if (this instanceof Rn || this._decorators && this._decorators.length > 0 && false) {
|
5804 | let o = "" + s + "set " + n + this.setter().c({keyword: ""}), a = "" + s + "get " + n + this.getter().c({keyword: ""});
|
5805 | i = "" + o + `
|
5806 | ` + a;
|
5807 | }
|
5808 | return i;
|
5809 | }
|
5810 | if (!O.tsc()) {
|
5811 | if (this.isStatic() && r instanceof $1)
|
5812 | this._vscope && (t = O.up(ie)) && this._vscope.mergeScopeInto(t._scope), i = J("=", J(".", kr, this.name()), this.value() || To).c() + `;
|
5813 | `;
|
5814 | else {
|
5815 | if (!this.isStatic() && r instanceof $1)
|
5816 | return "";
|
5817 | if (!this.isStatic() && r instanceof ka) {
|
5818 | this._vscope && (e = O.up(ie)) && this._vscope.mergeScopeInto(e._scope);
|
5819 | let s = this.name();
|
5820 | this.name() instanceof At && (s = this.name().toStr());
|
5821 | let n = r.option("ctor"), o = r.option("opts"), a = this.value() || To, l = this.option("paramIndex"), p = this.option("restIndex"), c;
|
5822 | if (r instanceof $l) {
|
5823 | let _ = n._params.at(p, true, "$$", Rt("{}"));
|
5824 | c = J(".", _, this.name()), c.cache({reuse: true, name: "v"});
|
5825 | let f = J("=", J(".", kr, this.name()), c);
|
5826 | i = J("&&", J("!==", c, To), f);
|
5827 | } else if (l != null) {
|
5828 | let _ = this.option("paramName");
|
5829 | c = n._params.at(l, true, _), this.value() ? a = pe.ternary(J("!==", c, To), c, a) : a = c;
|
5830 | } else if (p != null) {
|
5831 | let _ = n._params.at(p, true, "$$", Rt("null"));
|
5832 | c = J(".", _, this.name()), this.value() ? (c.cache({reuse: true, name: "v"}), a = pe.ternary(J("&&", _, J("!==", c, To)), c, a)) : a = pe.ternary(_, c, To);
|
5833 | }
|
5834 | if (this instanceof Rn && !this.value())
|
5835 | return;
|
5836 | i || (i = J("=", J(".", kr, this.name()), a)), i = i.c() + `;
|
5837 | `, this.watchBody() && (this._descriptor || (this._descriptor = O.root().declare("" + this.oid() + "$Prop", this.util().watcher(this.storageSymbol(), this.watcherSymbol()), {type: "const", system: true})), i = "Object.defineProperty(this," + s.c() + "," + this._descriptor.c() + `);
|
5838 | ` + i);
|
5839 | }
|
5840 | }
|
5841 | return i;
|
5842 | }
|
5843 | };
|
5844 | xe.prototype.getter = function() {
|
5845 | return this._getter ? this._getter : this.parseTemplate("(){ return $get$; }");
|
5846 | };
|
5847 | xe.prototype.setterForValue = function(t) {
|
5848 | return J("=", J(".", kr, this.storageKey()), t);
|
5849 | };
|
5850 | xe.prototype.parseTemplate = function(t) {
|
5851 | var e = this;
|
5852 | return t = t.replace(/\$(\w+)\$/g, function(r, i) {
|
5853 | return i == "get" ? En(kr, e.storageSymbol()).c() : i == "set" ? J("=", En(kr, e.storageSymbol()), Rt("value")).c() : i == "watcher" ? En(kr, e.watcherSymbol()).c() : "";
|
5854 | }), Rt(t);
|
5855 | };
|
5856 | xe.prototype.setter = function() {
|
5857 | return this._setter || (this._setter = this.parseTemplate("(value){ $set$; }"));
|
5858 | };
|
5859 | xe.prototype.decorater = function() {
|
5860 | return this._decorater || (this._decorater = this.util().decorate(new je(this._decorators), this.target(), this.name(), Rt("null")));
|
5861 | };
|
5862 | function l3() {
|
5863 | return xe.apply(this, arguments);
|
5864 | }
|
5865 | A(l3, xe);
|
5866 | E.ClassProperty = l3;
|
5867 | function Rn() {
|
5868 | return xe.apply(this, arguments);
|
5869 | }
|
5870 | A(Rn, xe);
|
5871 | E.ClassAttribute = Rn;
|
5872 | Rn.prototype.hasConstructorInits = function() {
|
5873 | return !this.isStatic() && this.value();
|
5874 | };
|
5875 | Rn.prototype.getter = function() {
|
5876 | var t;
|
5877 | return this._getter || (this._getter = (t = He(En(kr, "getAttribute"), [this.name().toAttrString()]), js([], [t])));
|
5878 | };
|
5879 | Rn.prototype.setter = function() {
|
5880 | var t;
|
5881 | return this._setter || (this._setter = (t = He(En(kr, "setAttribute"), [this.name().toAttrString(), Rt("value")]), js([Rt("value")], [t]).set({noreturn: true})));
|
5882 | };
|
5883 | function us() {
|
5884 | return Lt.apply(this, arguments);
|
5885 | }
|
5886 | A(us, Lt);
|
5887 | E.ClassBody = us;
|
5888 | us.prototype.setup = function() {
|
5889 | return us.prototype.__super__.setup.apply(this, arguments), this._fields = [], this._staticFields = [];
|
5890 | };
|
5891 | us.prototype.visit = function(t) {
|
5892 | this._scope && this._scope.visit(), t && t._tag && (this._tag = t._tag);
|
5893 | for (let e = 0, r = It(this._nodes), i = r.length, s; e < i; e++) {
|
5894 | if (s = r[e], s instanceof ne) {
|
5895 | s.tagName() != "self" && (s._options.type || s).error("only <self> tag allowed here");
|
5896 | let n = new Re([], [s], new At("render"), null, {});
|
5897 | this._nodes[e] = s = n;
|
5898 | }
|
5899 | s && s.traverse();
|
5900 | }
|
5901 | return this;
|
5902 | };
|
5903 | function c3() {
|
5904 | return Lt.apply(this, arguments);
|
5905 | }
|
5906 | A(c3, Lt);
|
5907 | E.ExpressionList = c3;
|
5908 | function wa() {
|
5909 | return Lt.apply(this, arguments);
|
5910 | }
|
5911 | A(wa, Lt);
|
5912 | E.VarDeclList = wa;
|
5913 | wa.prototype.type = function() {
|
5914 | return this.option("type") || "var";
|
5915 | };
|
5916 | wa.prototype.add = function(t) {
|
5917 | this._nodes.length && this.push(Fe);
|
5918 | let e = new Ke(t[0], t[1], this.type()).set({decl: this, datatype: t[0].option("datatype")});
|
5919 | return this._firstDeclaration || (this._firstDeclaration = e, e.set({keyword: this.keyword()})), this.push(e), this;
|
5920 | };
|
5921 | wa.prototype.consume = function(t) {
|
5922 | return this._nodes.length == 1 ? this._nodes[0].consume(t) : this;
|
5923 | };
|
5924 | function Ae(t, e, r) {
|
5925 | this.setup(), this._open = e, this._close = r, this._value = this.load(t);
|
5926 | }
|
5927 | A(Ae, Ut);
|
5928 | E.Parens = Ae;
|
5929 | Ae.prototype.unwrappedNode = function() {
|
5930 | return this._value.unwrappedNode();
|
5931 | };
|
5932 | Ae.prototype.loc = function() {
|
5933 | try {
|
5934 | let t = this._open.loc(), e = this._close.loc();
|
5935 | return [t[0], e[1]];
|
5936 | } catch (t) {
|
5937 | return [0, 0];
|
5938 | }
|
5939 | };
|
5940 | Ae.prototype.load = function(t) {
|
5941 | return this._noparen = false, t instanceof Lt && t.count() == 1 ? t.first() : t;
|
5942 | };
|
5943 | Ae.prototype.isString = function() {
|
5944 | return this._open && String(this._open) == '("' || this.value().isString();
|
5945 | };
|
5946 | Ae.prototype.js = function(t) {
|
5947 | var e = this.up(), r = this._value, i = null;
|
5948 | return r instanceof ie && (this._noparen = true), e instanceof Lt ? (t.isExpression() || (this._noparen = true), i = r instanceof Array ? Pt.cary(r) : r.c({expression: t.isExpression()})) : i = r instanceof Array ? Pt.cary(r) : r.c({expression: true}), this.datatype() && O.tsc() && (i = this.datatype().c() + "(" + i + ")"), i;
|
5949 | };
|
5950 | Ae.prototype.set = function(t) {
|
5951 | return Ae.prototype.__super__.set.call(this, t);
|
5952 | };
|
5953 | Ae.prototype.shouldParenthesize = function() {
|
5954 | return !this._noparen;
|
5955 | };
|
5956 | Ae.prototype.prebreak = function(t) {
|
5957 | return Ae.prototype.__super__.prebreak.call(this, t), console.log("PREBREAK"), this._value && this._value.prebreak(t), this;
|
5958 | };
|
5959 | Ae.prototype.isExpressable = function() {
|
5960 | return this._value.isExpressable();
|
5961 | };
|
5962 | Ae.prototype.consume = function(t) {
|
5963 | return this._value.consume(t);
|
5964 | };
|
5965 | function u3() {
|
5966 | return Ae.apply(this, arguments);
|
5967 | }
|
5968 | A(u3, Ae);
|
5969 | E.PureExpression = u3;
|
5970 | function Sa() {
|
5971 | return jt.apply(this, arguments);
|
5972 | }
|
5973 | A(Sa, jt);
|
5974 | E.ExpressionBlock = Sa;
|
5975 | Sa.prototype.c = function(t) {
|
5976 | return this.map(function(e) {
|
5977 | return e.c(t);
|
5978 | }).join(",");
|
5979 | };
|
5980 | Sa.prototype.consume = function(t) {
|
5981 | return this.value().consume(t);
|
5982 | };
|
5983 | function Qe(t) {
|
5984 | return this._traversed = false, this._value = t instanceof ar && t.count() == 1 ? t.last() : t, this;
|
5985 | }
|
5986 | A(Qe, Pi);
|
5987 | E.Return = Qe;
|
5988 | Qe.prototype.value = function(t) {
|
5989 | return this._value;
|
5990 | };
|
5991 | Qe.prototype.setValue = function(t) {
|
5992 | return this._value = t, this;
|
5993 | };
|
5994 | Qe.prototype.visit = function() {
|
5995 | if (this._value instanceof Oe && this._value.option("virtualize", true), this._value && this._value.traverse)
|
5996 | return this._value.traverse();
|
5997 | };
|
5998 | Qe.prototype.startLoc = function() {
|
5999 | let t = this.keyword() || this._value;
|
6000 | return t ? t.startLoc() : null;
|
6001 | };
|
6002 | Qe.prototype.js = function(t) {
|
6003 | var e = this._value;
|
6004 | let r = Tt("return", this.keyword());
|
6005 | return e instanceof ar ? "" + r + " [" + e.c({expression: true}) + "]" : e ? "" + r + " " + e.c({expression: true}) : r;
|
6006 | };
|
6007 | Qe.prototype.c = function() {
|
6008 | return !this.value() || this.value().isExpressable() ? Qe.prototype.__super__.c.apply(this, arguments) : this.value().consume(this).c();
|
6009 | };
|
6010 | Qe.prototype.consume = function(t) {
|
6011 | return this;
|
6012 | };
|
6013 | function Nn() {
|
6014 | return Qe.apply(this, arguments);
|
6015 | }
|
6016 | A(Nn, Qe);
|
6017 | E.ImplicitReturn = Nn;
|
6018 | function tc() {
|
6019 | return Nn.apply(this, arguments);
|
6020 | }
|
6021 | A(tc, Nn);
|
6022 | E.GreedyReturn = tc;
|
6023 | function t2() {
|
6024 | return Pi.apply(this, arguments);
|
6025 | }
|
6026 | A(t2, Pi);
|
6027 | E.Throw = t2;
|
6028 | t2.prototype.js = function(t) {
|
6029 | return "throw " + this.value().c();
|
6030 | };
|
6031 | t2.prototype.consume = function(t) {
|
6032 | return this;
|
6033 | };
|
6034 | function Rr(t, e) {
|
6035 | this.setLiteral(t), this.setExpression(e);
|
6036 | }
|
6037 | A(Rr, Pi);
|
6038 | E.LoopFlowStatement = Rr;
|
6039 | Rr.prototype.literal = function(t) {
|
6040 | return this._literal;
|
6041 | };
|
6042 | Rr.prototype.setLiteral = function(t) {
|
6043 | return this._literal = t, this;
|
6044 | };
|
6045 | Rr.prototype.expression = function(t) {
|
6046 | return this._expression;
|
6047 | };
|
6048 | Rr.prototype.setExpression = function(t) {
|
6049 | return this._expression = t, this;
|
6050 | };
|
6051 | Rr.prototype.visit = function() {
|
6052 | if (this.expression())
|
6053 | return this.expression().traverse();
|
6054 | };
|
6055 | Rr.prototype.consume = function(t) {
|
6056 | return this;
|
6057 | };
|
6058 | Rr.prototype.c = function() {
|
6059 | if (!this.expression())
|
6060 | return Rr.prototype.__super__.c.apply(this, arguments);
|
6061 | var t = O.up(De), e = this.expression();
|
6062 | if (t.catcher()) {
|
6063 | e = e.consume(t.catcher());
|
6064 | var r = new this.constructor(this.literal());
|
6065 | return new Lt([e, r]).c();
|
6066 | } else
|
6067 | return e ? (r = new this.constructor(this.literal()), new Lt([e, r]).c()) : Rr.prototype.__super__.c.apply(this, arguments);
|
6068 | };
|
6069 | function Ta() {
|
6070 | return Rr.apply(this, arguments);
|
6071 | }
|
6072 | A(Ta, Rr);
|
6073 | E.BreakStatement = Ta;
|
6074 | Ta.prototype.js = function(t) {
|
6075 | return "break";
|
6076 | };
|
6077 | function e2() {
|
6078 | return Rr.apply(this, arguments);
|
6079 | }
|
6080 | A(e2, Rr);
|
6081 | E.ContinueStatement = e2;
|
6082 | e2.prototype.js = function(t) {
|
6083 | return "continue";
|
6084 | };
|
6085 | function ec() {
|
6086 | return Pi.apply(this, arguments);
|
6087 | }
|
6088 | A(ec, Pi);
|
6089 | E.DebuggerStatement = ec;
|
6090 | ec.prototype.consume = function(t) {
|
6091 | return this;
|
6092 | };
|
6093 | function fe(t, e, r) {
|
6094 | typeof t == "string" && (t = new At(t)), this._traversed = false, this._name = t, this._value = t, this._defaults = e, this._typ = r, this._variable = null;
|
6095 | }
|
6096 | A(fe, Z);
|
6097 | E.Param = fe;
|
6098 | fe.prototype.name = function(t) {
|
6099 | return this._name;
|
6100 | };
|
6101 | fe.prototype.setName = function(t) {
|
6102 | return this._name = t, this;
|
6103 | };
|
6104 | fe.prototype.index = function(t) {
|
6105 | return this._index;
|
6106 | };
|
6107 | fe.prototype.setIndex = function(t) {
|
6108 | return this._index = t, this;
|
6109 | };
|
6110 | fe.prototype.defaults = function(t) {
|
6111 | return this._defaults;
|
6112 | };
|
6113 | fe.prototype.setDefaults = function(t) {
|
6114 | return this._defaults = t, this;
|
6115 | };
|
6116 | fe.prototype.splat = function(t) {
|
6117 | return this._splat;
|
6118 | };
|
6119 | fe.prototype.setSplat = function(t) {
|
6120 | return this._splat = t, this;
|
6121 | };
|
6122 | fe.prototype.variable = function(t) {
|
6123 | return this._variable;
|
6124 | };
|
6125 | fe.prototype.setVariable = function(t) {
|
6126 | return this._variable = t, this;
|
6127 | };
|
6128 | fe.prototype.value = function(t) {
|
6129 | return this._value;
|
6130 | };
|
6131 | fe.prototype.setValue = function(t) {
|
6132 | return this._value = t, this;
|
6133 | };
|
6134 | fe.prototype.varname = function() {
|
6135 | return this._variable ? this._variable.c() : this.name();
|
6136 | };
|
6137 | fe.prototype.datatype = function() {
|
6138 | return fe.prototype.__super__.datatype.apply(this, arguments) || this._value.datatype();
|
6139 | };
|
6140 | fe.prototype.type = function() {
|
6141 | return "param";
|
6142 | };
|
6143 | fe.prototype.jsdoc = function() {
|
6144 | let t = this.datatype();
|
6145 | return t && this.name() ? t.asParam(this.name()) : "";
|
6146 | };
|
6147 | fe.prototype.js = function(t, e) {
|
6148 | return !e || e.as != "declaration" ? "" + this._value.c() : this._defaults ? "" + this._value.c() + " = " + this._defaults.c() : this.option("splat") ? "..." + this._value.c() : this._value.c();
|
6149 | };
|
6150 | fe.prototype.visit = function(t) {
|
6151 | return this._defaults && this._defaults.traverse(), this._value && this._value.traverse({declaring: "param"}), this._value instanceof At && (this._value._variable || (this._value._variable = this.scope__().register(this._value.symbol(), this._value, {type: this.type()})), t.registerSemanticToken(this._value)), this;
|
6152 | };
|
6153 | fe.prototype.assignment = function() {
|
6154 | return J("=", this.variable().accessor(), this.defaults());
|
6155 | };
|
6156 | fe.prototype.isExpressable = function() {
|
6157 | return !this.defaults() || this.defaults().isExpressable();
|
6158 | };
|
6159 | fe.prototype.dump = function() {
|
6160 | return {loc: this.loc()};
|
6161 | };
|
6162 | fe.prototype.loc = function() {
|
6163 | return this._name && this._name.region();
|
6164 | };
|
6165 | fe.prototype.toJSON = function() {
|
6166 | return {type: this.typeName(), name: this.name(), defaults: this.defaults()};
|
6167 | };
|
6168 | function rc() {
|
6169 | return fe.apply(this, arguments);
|
6170 | }
|
6171 | A(rc, fe);
|
6172 | E.RestParam = rc;
|
6173 | function Eo() {
|
6174 | return fe.apply(this, arguments);
|
6175 | }
|
6176 | A(Eo, fe);
|
6177 | E.BlockParam = Eo;
|
6178 | Eo.prototype.c = function() {
|
6179 | return "blockparam";
|
6180 | };
|
6181 | Eo.prototype.loc = function() {
|
6182 | var t = this.name().region();
|
6183 | return [t[0] - 1, t[1]];
|
6184 | };
|
6185 | function ic() {
|
6186 | return fe.apply(this, arguments);
|
6187 | }
|
6188 | A(ic, fe);
|
6189 | E.OptionalParam = ic;
|
6190 | function h3() {
|
6191 | return fe.apply(this, arguments);
|
6192 | }
|
6193 | A(h3, fe);
|
6194 | E.NamedParam = h3;
|
6195 | function p3() {
|
6196 | return fe.apply(this, arguments);
|
6197 | }
|
6198 | A(p3, fe);
|
6199 | E.RequiredParam = p3;
|
6200 | function Vr() {
|
6201 | return jt.apply(this, arguments);
|
6202 | }
|
6203 | A(Vr, jt);
|
6204 | E.ParamList = Vr;
|
6205 | Vr.prototype.splat = function(t) {
|
6206 | return this._splat;
|
6207 | };
|
6208 | Vr.prototype.setSplat = function(t) {
|
6209 | return this._splat = t, this;
|
6210 | };
|
6211 | Vr.prototype.block = function(t) {
|
6212 | return this._block;
|
6213 | };
|
6214 | Vr.prototype.setBlock = function(t) {
|
6215 | return this._block = t, this;
|
6216 | };
|
6217 | Vr.prototype.at = function(t, e, r, i) {
|
6218 | if (e === void 0 && (e = false), r === void 0 && (r = null), i === void 0 && (i = null), e)
|
6219 | for (; t >= this.count(); ) {
|
6220 | let s = this.count() == t, n = s ? i : null;
|
6221 | this.add(new fe(s && r || "_" + this.count(), n));
|
6222 | }
|
6223 | return this.list()[t];
|
6224 | };
|
6225 | Vr.prototype.metadata = function() {
|
6226 | return this.filter(function(t) {
|
6227 | return !(t instanceof Mr);
|
6228 | });
|
6229 | };
|
6230 | Vr.prototype.toJSON = function() {
|
6231 | return this.metadata();
|
6232 | };
|
6233 | Vr.prototype.jsdoc = function() {
|
6234 | let t = [];
|
6235 | for (let r = 0, i = It(this.nodes()), s = i.length, n; r < s; r++)
|
6236 | n = i[r], n instanceof fe && n.datatype() && t.push(n.jsdoc());
|
6237 | let e = t.join(`
|
6238 | `);
|
6239 | return e ? `/**
|
6240 | ` + e + `
|
6241 | */
|
6242 | ` : "";
|
6243 | };
|
6244 | Vr.prototype.visit = function() {
|
6245 | var t = this.filter(function(e) {
|
6246 | return e instanceof Eo;
|
6247 | });
|
6248 | return t.length > 1 ? t[1].warn("a method can only have one &block parameter") : t[0] && t[0] != this.last() && t[0].warn("&block must be the last parameter of a method"), Vr.prototype.__super__.visit.apply(this, arguments);
|
6249 | };
|
6250 | Vr.prototype.js = function(t) {
|
6251 | if (this.count() == 0)
|
6252 | return sc;
|
6253 | if (t.parent() instanceof Lt)
|
6254 | return this.head(t);
|
6255 | if (t.parent() instanceof fr) {
|
6256 | let i = !(t.parent() instanceof Re);
|
6257 | var e = this.nodes(), r = {as: "declaration", typed: i};
|
6258 | return Pt.compact(this.nodes().map(function(s) {
|
6259 | let n = s.c(r), o = i && s.datatype();
|
6260 | return o && (n = o.c() + n), n;
|
6261 | })).join(",");
|
6262 | } else
|
6263 | throw "not implemented paramlist js";
|
6264 | };
|
6265 | Vr.prototype.head = function(t) {
|
6266 | var e = [], r = [], i = null, s = null, n = null, o = [], a = [], l = 0;
|
6267 | if (this.nodes().forEach(function(S, C) {
|
6268 | if (!(S instanceof ba))
|
6269 | return S.setIndex(l), S instanceof ic ? (a.push("opt"), r.push(S)) : S instanceof Eo ? (a.push("blk"), i = S) : (a.push("reg"), e.push(S)), l++;
|
6270 | }), n)
|
6271 | var p = n.variable();
|
6272 | var c = [], _ = function(S) {
|
6273 | return "typeof " + S + " == 'function'";
|
6274 | }, f = function(S) {
|
6275 | return "" + S + ".constructor === Object";
|
6276 | }, m = function(S) {
|
6277 | return "" + S + ".constructor !== Object";
|
6278 | };
|
6279 | if (!n && !s && !i && r.length > 0 && a.join(" ").match(/opt$/))
|
6280 | for (let S = 0, C = r.length, L; S < C; S++)
|
6281 | L = r[S], c.push("if(" + L.name().c() + " === undefined) " + L.name().c() + " = " + L.defaults().c());
|
6282 | else if (n && !s && !i && r.length == 0)
|
6283 | c.push("if(!" + p.c() + "||" + m(p.c()) + ") " + p.c() + " = {}");
|
6284 | else if (i && r.length == 1 && !s && !n) {
|
6285 | var g = r[0], b = g.name().c(), N = i.name().c();
|
6286 | c.push("if(" + N + "==undefined && " + _(b) + ") " + N + " = " + b + "," + b + " = " + g.defaults().c()), c.push("if(" + b + "==undefined) " + b + " = " + g.defaults().c());
|
6287 | } else if (i && n && r.length == 0 && !s)
|
6288 | N = i.name().c(), c.push("if(" + N + "==undefined && " + _(p.c()) + ") " + N + " = " + p.c() + "," + p.c() + " = {}"), c.push("else if(!" + p.c() + "||" + m(p.c()) + ") " + p.c() + " = {}");
|
6289 | else if (r.length > 0 || s) {
|
6290 | var y = this.scope__().temporary(this, {pool: "arguments"}).predeclared().c(), v = this.scope__().temporary(this, {pool: "counter"}).predeclared().c(), d = "" + y + "[" + v + "-1]", w = "" + y + "[--" + v + "]";
|
6291 | c.push("var " + y + " = arguments, " + v + " = " + y + ".length"), i && (N = i.name().c(), s ? c.push("var " + N + " = " + _(d) + " ? " + w + " : null") : e.length > 0 ? c.push("var " + N + " = " + v + " > " + e.length + " && " + _(d) + " ? " + w + " : null") : c.push("var " + N + " = " + _(d) + " ? " + w + " : null")), n && c.push("var " + p.c() + " = " + d + "&&" + f(d) + " ? " + w + " : {}");
|
6292 | for (let S = 0, C = r.length, L; S < C; S++)
|
6293 | L = r[S], c.push("if(" + v + " < " + (L.index() + 1) + ") " + L.name().c() + " = " + L.defaults().c());
|
6294 | if (s) {
|
6295 | var k = s.name().c(), T = s.index();
|
6296 | T == 0 ? (c.push("var " + k + " = new Array(" + v + ">" + T + " ? " + v + " : 0)"), c.push("while(" + v + ">" + T + ") " + k + "[" + v + "-1] = " + w)) : (c.push("var " + k + " = new Array(" + v + ">" + T + " ? " + v + "-" + T + " : 0)"), c.push("while(" + v + ">" + T + ") " + k + "[--" + v + " - " + T + "] = " + y + "[" + v + "]"));
|
6297 | }
|
6298 | } else if (r.length > 0)
|
6299 | for (let S = 0, C = r.length, L; S < C; S++)
|
6300 | L = r[S], c.push("if(" + L.name().c() + " === undefined) " + L.name().c() + " = " + L.defaults().c());
|
6301 | if (n)
|
6302 | for (let S = 0, C = It(n.nodes()), L = C.length, D; S < L; S++)
|
6303 | D = C[S], g = J(".", p, D.c()).c(), c.push("var " + D.c() + " = " + g + " !== undefined ? " + g + " : " + D.defaults().c());
|
6304 | if (o.length)
|
6305 | for (let S = 0, C = o.length; S < C; S++)
|
6306 | o[S].head(t, c, this);
|
6307 | return c.length > 0 ? c.join(`;
|
6308 | `) + ";" : sc;
|
6309 | };
|
6310 | function Mi() {
|
6311 | return jt.apply(this, arguments);
|
6312 | }
|
6313 | A(Mi, jt);
|
6314 | E.ScopeVariables = Mi;
|
6315 | Mi.prototype.kind = function(t) {
|
6316 | return this._kind;
|
6317 | };
|
6318 | Mi.prototype.setKind = function(t) {
|
6319 | return this._kind = t, this;
|
6320 | };
|
6321 | Mi.prototype.split = function(t) {
|
6322 | return this._split;
|
6323 | };
|
6324 | Mi.prototype.setSplit = function(t) {
|
6325 | return this._split = t, this;
|
6326 | };
|
6327 | Mi.prototype.add = function(t, e, r) {
|
6328 | r === void 0 && (r = -1);
|
6329 | var i = new hs(t, e);
|
6330 | return t instanceof Ft && i.setVariable(t), r == 0 ? this.unshift(i) : this.push(i), i;
|
6331 | };
|
6332 | Mi.prototype.load = function(t) {
|
6333 | return t.map(function(e) {
|
6334 | return new hs(e.name(), e.defaults(), e.splat());
|
6335 | });
|
6336 | };
|
6337 | Mi.prototype.isExpressable = function() {
|
6338 | return this.nodes().every(function(t) {
|
6339 | return t.isExpressable();
|
6340 | });
|
6341 | };
|
6342 | Mi.prototype.js = function(t) {
|
6343 | if (this.count() == 0)
|
6344 | return sc;
|
6345 | if (this.count() == 1 && !this.isExpressable())
|
6346 | return this.first().variable().autodeclare(), this.first().assignment().c();
|
6347 | var e = "var", r = {};
|
6348 | if (this.nodes().forEach(function(s) {
|
6349 | let n = s._variable || s, o = n instanceof Ft && n.type();
|
6350 | if (o)
|
6351 | return r[o] || (r[o] = []), r[o].push(s);
|
6352 | }), r.let && (r.var || r.const) ? r.let.forEach(function(s) {
|
6353 | return (s._variable || s)._virtual = true;
|
6354 | }) : r.let && (e = "let"), this.split()) {
|
6355 | let s = [];
|
6356 | for (let n, o = 0, a = Object.keys(r), l = a.length, p; o < l; o++)
|
6357 | p = a[o], n = r[p], s.push("" + p + " " + Pt.cary(n, {as: "declaration"}).join(", ") + ";");
|
6358 | return s.join(`
|
6359 | `);
|
6360 | }
|
6361 | var i = Pt.compact(Pt.cary(this.nodes(), {as: "declaration"})).join(", ");
|
6362 | return i ? "" + e + " " + i : "";
|
6363 | };
|
6364 | function hs() {
|
6365 | return fe.apply(this, arguments);
|
6366 | }
|
6367 | A(hs, fe);
|
6368 | E.VariableDeclarator = hs;
|
6369 | hs.prototype.type = function(t) {
|
6370 | return this._type;
|
6371 | };
|
6372 | hs.prototype.setType = function(t) {
|
6373 | return this._type = t, this;
|
6374 | };
|
6375 | hs.prototype.visit = function() {
|
6376 | var t, e;
|
6377 | return (t = this.variable()) || this.setVariable(e = this.scope__().register(this.name(), null, {type: this._type || "var"})), this.defaults() && this.defaults().traverse(), this.variable().setDeclarator(this), this.variable().addReference(this.name()), this;
|
6378 | };
|
6379 | hs.prototype.js = function(t) {
|
6380 | if (this.variable()._proxy)
|
6381 | return null;
|
6382 | var e = this.defaults();
|
6383 | let r = this.variable().datatype();
|
6384 | return e != null && e != null ? (e instanceof Z && (e = e.c({expression: true})), r && (e = "" + r.c() + "(" + e + ")"), "" + this.variable().c() + " = " + e) : r ? "" + this.variable().c() + " = " + r.c() + "(undefined)" : "" + this.variable().c();
|
6385 | };
|
6386 | hs.prototype.accessor = function() {
|
6387 | return this;
|
6388 | };
|
6389 | function Ke(t, e, r, i) {
|
6390 | i === void 0 && (i = "="), this._op = i, this._left = t, this._right = e, this._kind = r;
|
6391 | }
|
6392 | A(Ke, Z);
|
6393 | E.VarDeclaration = Ke;
|
6394 | Ke.prototype.kind = function(t) {
|
6395 | return this._kind;
|
6396 | };
|
6397 | Ke.prototype.setKind = function(t) {
|
6398 | return this._kind = t, this;
|
6399 | };
|
6400 | Ke.prototype.left = function(t) {
|
6401 | return this._left;
|
6402 | };
|
6403 | Ke.prototype.setLeft = function(t) {
|
6404 | return this._left = t, this;
|
6405 | };
|
6406 | Ke.prototype.right = function(t) {
|
6407 | return this._right;
|
6408 | };
|
6409 | Ke.prototype.setRight = function(t) {
|
6410 | return this._right = t, this;
|
6411 | };
|
6412 | Ke.prototype.op = function() {
|
6413 | return this._op;
|
6414 | };
|
6415 | Ke.prototype.type = function() {
|
6416 | return this._kind;
|
6417 | };
|
6418 | Ke.prototype.visit = function(t) {
|
6419 | var e = this;
|
6420 | return e._left instanceof At && e._right instanceof ie || e._right && e._right.traverse(), e._variables = e.scope__().captureVariableDeclarations(function() {
|
6421 | if (e._left && e._left.traverse({declaring: e.type()}), e._left instanceof At)
|
6422 | return e._left._variable || (e._left._variable = e.scope__().register(e._left.symbol(), e._left, {type: e.type()})), t.registerSemanticToken(e._left);
|
6423 | }), e._right && e._right.traverse(), e;
|
6424 | };
|
6425 | Ke.prototype.isExpressable = function() {
|
6426 | return false;
|
6427 | };
|
6428 | Ke.prototype.consume = function(t) {
|
6429 | if (t instanceof Et)
|
6430 | return this;
|
6431 | if (t instanceof ii || t instanceof Qe) {
|
6432 | let e = this;
|
6433 | if (this.right() && !this.right().isExpressable()) {
|
6434 | let r = this.scope__().temporary(this), i = this.right().consume(J("=", r, Gs));
|
6435 | return this.setRight(r), new Lt([i, Fe, this.consume(t)]);
|
6436 | }
|
6437 | return new Lt([e, Fe, this._left.consume(t)]);
|
6438 | }
|
6439 | return t instanceof Qe ? new Lt([this, Fe, this._left.consume(t)]) : Ke.prototype.__super__.consume.call(this, t);
|
6440 | };
|
6441 | Ke.prototype.c = function(t) {
|
6442 | if (this.right() && !this.right().isExpressable()) {
|
6443 | let e = this.scope__().temporary(this), r = this.right().consume(J("=", e, Gs));
|
6444 | return this.setRight(e), new Lt([r, Fe, this]).c(t);
|
6445 | }
|
6446 | return Ke.prototype.__super__.c.call(this, t);
|
6447 | };
|
6448 | Ke.prototype.js = function() {
|
6449 | let t = "", e = this.kind(), r = this.datatype() || this._left && this._left.datatype();
|
6450 | if (O.tsc() && this._variables.length > 1 && this._variables.some(function(i) {
|
6451 | return i.vartype();
|
6452 | })) {
|
6453 | e = "let";
|
6454 | for (let i = 0, s = It(this._variables), n = s.length, o; i < n; i++)
|
6455 | o = s[i], o.vartype() && (t += o.vartype().c() + " "), t += "" + Tt(e, this.keyword()) + " " + o.c() + `;
|
6456 | `;
|
6457 | t += "(" + this.left().c(), this.right() && (t += " = " + this.right().c({expression: true})), t += ")";
|
6458 | } else
|
6459 | t += "" + Tt(e, this.keyword()) + " " + this.left().c(), this.right() && (t += " = " + this.right().c({expression: true}));
|
6460 | return this.option("export") && (O.cjs() ? t = "" + t + `;
|
6461 | exports.` + this.left().c() + " = " + this.left().c() : t = Tt("export", this.option("export")) + (" " + t)), r && (t = r.c() + `
|
6462 | ` + t), t;
|
6463 | };
|
6464 | function Ki(t, e) {
|
6465 | Ki.prototype.__super__.constructor.apply(this, arguments), this._splat = e;
|
6466 | }
|
6467 | A(Ki, Ut);
|
6468 | E.VarName = Ki;
|
6469 | Ki.prototype.variable = function(t) {
|
6470 | return this._variable;
|
6471 | };
|
6472 | Ki.prototype.setVariable = function(t) {
|
6473 | return this._variable = t, this;
|
6474 | };
|
6475 | Ki.prototype.splat = function(t) {
|
6476 | return this._splat;
|
6477 | };
|
6478 | Ki.prototype.setSplat = function(t) {
|
6479 | return this._splat = t, this;
|
6480 | };
|
6481 | Ki.prototype.visit = function() {
|
6482 | var t, e;
|
6483 | return (t = this.variable()) || this.setVariable(e = this.scope__().register(this.value().c(), null)), this.variable().setDeclarator(this), this.variable().addReference(this.value()), this;
|
6484 | };
|
6485 | Ki.prototype.js = function(t) {
|
6486 | return this.variable().c();
|
6487 | };
|
6488 | Ki.prototype.c = function() {
|
6489 | return this.variable().c();
|
6490 | };
|
6491 | function fr() {
|
6492 | return Z.apply(this, arguments);
|
6493 | }
|
6494 | A(fr, Z);
|
6495 | E.Code = fr;
|
6496 | fr.prototype.head = function(t) {
|
6497 | return this._head;
|
6498 | };
|
6499 | fr.prototype.setHead = function(t) {
|
6500 | return this._head = t, this;
|
6501 | };
|
6502 | fr.prototype.body = function(t) {
|
6503 | return this._body;
|
6504 | };
|
6505 | fr.prototype.setBody = function(t) {
|
6506 | return this._body = t, this;
|
6507 | };
|
6508 | fr.prototype.scope = function(t) {
|
6509 | return this._scope;
|
6510 | };
|
6511 | fr.prototype.setScope = function(t) {
|
6512 | return this._scope = t, this;
|
6513 | };
|
6514 | fr.prototype.params = function(t) {
|
6515 | return this._params;
|
6516 | };
|
6517 | fr.prototype.setParams = function(t) {
|
6518 | return this._params = t, this;
|
6519 | };
|
6520 | fr.prototype.isStatementLike = function() {
|
6521 | return true;
|
6522 | };
|
6523 | fr.prototype.scopetype = function() {
|
6524 | return Nt;
|
6525 | };
|
6526 | fr.prototype.visit = function() {
|
6527 | return this._scope && this._scope.visit(), this;
|
6528 | };
|
6529 | function cs(t, e) {
|
6530 | this._traversed = false, this._body = Pt.blk(t), this._scope = new le(this, null), this._options = {};
|
6531 | }
|
6532 | A(cs, fr);
|
6533 | E.Root = cs;
|
6534 | cs.prototype.loc = function() {
|
6535 | return this._body.loc();
|
6536 | };
|
6537 | cs.prototype.visit = function() {
|
6538 | W1 = O.ROOT = this._scope;
|
6539 | try {
|
6540 | if (this.scope().visit(), this.body().traverse(), this.body().first() instanceof ri)
|
6541 | return this.body().first()._first = true;
|
6542 | } catch (t) {
|
6543 | let e = u_.wrap(t);
|
6544 | throw e._sourcePath = ls.sourcePath, e._loc = O.currentRegion(), e;
|
6545 | }
|
6546 | };
|
6547 | cs.prototype.compile = function(t, e) {
|
6548 | if (e === void 0 && (e = {}), O.reset(), this._scope.setOptions(ls = O._options = this._options = t || {}), O.setRoot(this._scope), this._scope._imba.configure(t), this.traverse(), O.setRoot(this._scope), t.bundle)
|
6549 | if (t.cwd && O.isNode()) {
|
6550 | let n = Y1.resolve(t.cwd, t.sourcePath), o = Y1.relative(t.cwd, n).split(Y1.sep).join("/"), a = this._scope.importProxy("path").proxy();
|
6551 | this._scope.lookup("__filename").c = function() {
|
6552 | return Rt("" + a.resolve + "(" + Ze(o).c() + ")").c();
|
6553 | }, this._scope.lookup("__dirname").c = function() {
|
6554 | return Rt("" + a.dirname + "(" + a.resolve + "(" + Ze(o).c() + "))").c();
|
6555 | };
|
6556 | } else
|
6557 | this._scope.lookup("__filename")._c = Ze(t.sourcePath).c(), this._scope.lookup("__dirname")._c = Ze(Y1.dirname(t.sourcePath)).c();
|
6558 | t.onTraversed instanceof Function && t.onTraversed(this, O);
|
6559 | let r = O.css(), i = r.toString();
|
6560 | r.transitions && this.runtime().transitions, i && (!t.styles || t.styles == "inline") && this.runtime().styles;
|
6561 | var s = this.c(t);
|
6562 | if (O.tsc() && (s = `export {};String();
|
6563 | ` + s + `
|
6564 | `), e.rawResult = {js: s, css: i}, e.js = s, e.css = i || "", e.sourceId = this.sourceId(), e.assets = this.scope().assets(), e.dependencies = Object.keys(this.scope()._dependencies), e.universal = O.meta().universal !== false, e.imports = Qp.extractDependencies(e.js), t.resolve && (e.js = Qp.resolveDependencies(t.sourcePath, e.js, t.resolve)), !O.tsc() && e.css && (!t.styles || t.styles == "inline")) {
|
6565 | let n = "`\n" + e.css + "\n`";
|
6566 | e.js = "" + e.js + `
|
6567 | ` + this.runtime().styles + ".register('" + e.sourceId + "'," + n + ");", t.debug && (e.js += `
|
6568 | /*
|
6569 | ` + e.css + `
|
6570 | */
|
6571 | `);
|
6572 | }
|
6573 | if (t.sourcemap || O.tsc()) {
|
6574 | let n = new h_(e, t).generate();
|
6575 | e.sourcemap = n.result(), t.sourcemap == "inline" && (e.js += n.inlined());
|
6576 | }
|
6577 | return t.raw || (e.css && (e.css = ma.strip(e.css)), e.js = ma.strip(e.js), O.tsc() && (e.js = e.js.replace(/\*\/\s[\r\n]+(\t*)\/\*\*/gm, function(n) {
|
6578 | return n.replace(/[^\n\t]/g, " ");
|
6579 | }))), e;
|
6580 | };
|
6581 | cs.prototype.js = function(t) {
|
6582 | var e = this.scope().c(), r = [];
|
6583 | return e = e.replace(/^[ \t]*\/\/(\!.+)$/mg, function(i, s) {
|
6584 | return s = s.replace(/\bimba\b/g, "node"), r.push("#" + s + `
|
6585 | `), "";
|
6586 | }), e = r.join("") + e, e;
|
6587 | };
|
6588 | cs.prototype.analyze = function(t) {
|
6589 | return t === void 0 && (t = {}), O.setLoglevel(t.loglevel || 0), O._analyzing = true, W1 = O.ROOT = this._scope, ls = O._options = {platform: t.platform, loglevel: t.loglevel || 0, analysis: {entities: t.entities || false, scopes: t.scopes == null ? t.scopes = true : t.scopes}}, this.traverse(), O._analyzing = false, this.scope().dump();
|
6590 | };
|
6591 | cs.prototype.inspect = function() {
|
6592 | return true;
|
6593 | };
|
6594 | function _e(t, e, r) {
|
6595 | this._traversed = false, t instanceof he && (t = t._value), this._name = t, this._superclass = e, this._scope = this.isTag() ? new r2(this) : new Ii(this), this._body = Pt.blk(r) || new us([]), this._entities = {};
|
6596 | }
|
6597 | A(_e, fr);
|
6598 | E.ClassDeclaration = _e;
|
6599 | _e.prototype.name = function(t) {
|
6600 | return this._name;
|
6601 | };
|
6602 | _e.prototype.setName = function(t) {
|
6603 | return this._name = t, this;
|
6604 | };
|
6605 | _e.prototype.superclass = function(t) {
|
6606 | return this._superclass;
|
6607 | };
|
6608 | _e.prototype.setSuperclass = function(t) {
|
6609 | return this._superclass = t, this;
|
6610 | };
|
6611 | _e.prototype.initor = function(t) {
|
6612 | return this._initor;
|
6613 | };
|
6614 | _e.prototype.setInitor = function(t) {
|
6615 | return this._initor = t, this;
|
6616 | };
|
6617 | _e.prototype.consume = function(t) {
|
6618 | return t instanceof Qe ? (this.option("return", t), this) : _e.prototype.__super__.consume.apply(this, arguments);
|
6619 | };
|
6620 | _e.prototype.namepath = function() {
|
6621 | return this._namepath || (this._namepath = "" + (this.name() ? this.name().c() : "--"));
|
6622 | };
|
6623 | _e.prototype.metadata = function() {
|
6624 | var t;
|
6625 | return {type: "class", namepath: this.namepath(), inherits: (t = this.superclass()) && t.namepath && t.namepath(), path: this.name() && this.name().c().toString(), desc: this._desc, loc: this.loc(), symbols: this._scope.entities()};
|
6626 | };
|
6627 | _e.prototype.loc = function() {
|
6628 | var t;
|
6629 | return (t = this.option("keyword")) ? [t._loc, this.body().loc()[1]] : _e.prototype.__super__.loc.apply(this, arguments);
|
6630 | };
|
6631 | _e.prototype.startLoc = function() {
|
6632 | return this._startLoc == null ? this._startLoc = y_(this.option("export"), this.option("keyword")) : this._startLoc;
|
6633 | };
|
6634 | _e.prototype.endLoc = function() {
|
6635 | return this._endLoc == null ? this._endLoc = g_(this.body()) : this._endLoc;
|
6636 | };
|
6637 | _e.prototype.toJSON = function() {
|
6638 | return this.metadata();
|
6639 | };
|
6640 | _e.prototype.isStruct = function() {
|
6641 | return this.keyword() && String(this.keyword()) == "struct";
|
6642 | };
|
6643 | _e.prototype.isExtension = function() {
|
6644 | return this.option("extension");
|
6645 | };
|
6646 | _e.prototype.isTag = function() {
|
6647 | return false;
|
6648 | };
|
6649 | _e.prototype.staticInit = function() {
|
6650 | return this._staticInit || (this._staticInit = this.addMethod(this.initKey(), [], "this").set({static: true}));
|
6651 | };
|
6652 | _e.prototype.initKey = function() {
|
6653 | return this._initKey || (this._initKey = O.tsc() ? O.root().symbolRef("#__init__") : new ei("#__init__"));
|
6654 | };
|
6655 | _e.prototype.patchKey = function() {
|
6656 | return this._patchKey || (this._patchKey = O.tsc() ? O.root().symbolRef("#__patch__") : new ei("#__patch__"));
|
6657 | };
|
6658 | _e.prototype.initPath = function() {
|
6659 | return this._initPath || (this._initPath = J(".", Rt("super"), this.initKey()));
|
6660 | };
|
6661 | _e.prototype.virtualSuper = function() {
|
6662 | return this._virtualSuper || (this._virtualSuper = this._scope.parent().declare("tmp", null, {system: true, type: "let"}));
|
6663 | };
|
6664 | _e.prototype.instanceInit = function() {
|
6665 | if (this._instanceInit)
|
6666 | return this._instanceInit;
|
6667 | let t = Xe.callOp(this.initKey());
|
6668 | this._superclass && (t = J("&&", Rt("deep"), J("&&", J(".", Rt("super"), this.initKey()), t)));
|
6669 | let e = this.addMethod(this.initKey(), [], this.isTag() || this._superclass ? [t, Fe] : "", {}, function(r) {
|
6670 | return true;
|
6671 | });
|
6672 | return e.set({noreturn: true}), e.params().at(0, true, "$$", Rt("null")), e.params().at(1, true, "deep", Rt("true")), this._instanceInit = e;
|
6673 | };
|
6674 | _e.prototype.instancePatch = function() {
|
6675 | if (this._instancePatch)
|
6676 | return this._instancePatch;
|
6677 | let t = [], e = this.addMethod(this.patchKey(), [], t, {}, function(i) {
|
6678 | return true;
|
6679 | }), r = e._params.at(0, true, "$$", Rt("{}"));
|
6680 | if (this._superclass) {
|
6681 | let i = Xe.callOp(this.patchKey(), [r]);
|
6682 | i = J("&&", J(".", Rt("super"), this.patchKey()), i), e.inject(i);
|
6683 | }
|
6684 | return e.set({noreturn: true}), this._instancePatch = e;
|
6685 | };
|
6686 | _e.prototype.isInitingFields = function() {
|
6687 | return this._inits || this._supernode && this._supernode.isInitingFields && this._supernode.isInitingFields();
|
6688 | };
|
6689 | _e.prototype.visit = function() {
|
6690 | this._body._delimiter = "";
|
6691 | let t = O.up(Lt);
|
6692 | this._decorators = t && t.collectDecorators(), O.pop(this);
|
6693 | let e = this._superclass;
|
6694 | if (e && (e.traverse(), e instanceof he)) {
|
6695 | if (e._variable) {
|
6696 | let N = e._variable.value();
|
6697 | N instanceof _e && (this._supernode = N);
|
6698 | } else if (e.symbol() == "Object")
|
6699 | if (!O.tsc())
|
6700 | e = this._superclass = null;
|
6701 | else {
|
6702 | this._autosuper = true;
|
6703 | try {
|
6704 | e._identifier._symbol = "\u03A4Object";
|
6705 | } catch (N) {
|
6706 | }
|
6707 | }
|
6708 | }
|
6709 | this.isExtension() && this._name ? (this._name.traverse(), this._name instanceof At && this._name.resolveVariable(), this.isTag() ? this._className = Rt(this._name.toClassName()) : (this._className = this._name, this._name = this.scope__().register("\u03A9" + this._name.value() + "\u03A9" + this.oid(), null), O.tsc() && this.option("export", true))) : this._name instanceof At ? (!this.isTag() || this._name.isCapitalized()) && (this._name.registerVariable("const"), this._name._variable.setValue(this)) : this._name && !(this._name instanceof se) ? this._name.traverse({declaring: this}) : this._name && this._name.traverse(), O.push(this), W1.entities().add(this.namepath(), this), this.scope().visit(), this.set({iife: O.up() instanceof Ea});
|
6710 | var r = true, i = [], s = [], n = [], o = {}, a = void 0, l = {};
|
6711 | for (let N = 0, y = It(this.body()), v = y.length, d; N < v; N++) {
|
6712 | if (d = y[N], d instanceof xe && !d.isStatic()) {
|
6713 | let w = String(d.name());
|
6714 | o[w] = d, r && d.set({restIndex: 0});
|
6715 | }
|
6716 | if (d instanceof Re) {
|
6717 | let w = d.rawName();
|
6718 | d.isMember() && (l[w] = d);
|
6719 | }
|
6720 | }
|
6721 | if (this.option("params")) {
|
6722 | let N = [];
|
6723 | for (let y = 0, v = It(this.option("params")), d = v.length, w; y < d; y++) {
|
6724 | if (w = v[y], w instanceof rc) {
|
6725 | a = y;
|
6726 | continue;
|
6727 | }
|
6728 | let k = String(w.name()), T = o[k], S = w.option("datatype");
|
6729 | T ? (S && !T.datatype() && T.set({datatype: S}), w.defaults() && !T.value() && T.set({value: w.defaults()})) : (T = i[k] = new xe(w.name()).set({datatype: S, value: w.defaults()}), N.push(T), n.push(w)), T && T.set({paramIndex: y, paramName: k});
|
6730 | }
|
6731 | for (let y = 0, v = It(N.reverse()), d = v.length; y < d; y++)
|
6732 | this.body().unshift(v[y]);
|
6733 | }
|
6734 | this.body().traverse();
|
6735 | var p = this.body().option("ctor");
|
6736 | let c = O.tsc();
|
6737 | var _ = new ka(), f = new $1(), m = new $l();
|
6738 | p = this.body().option("ctor");
|
6739 | let g = this.body().filter(function(N) {
|
6740 | return N instanceof xe;
|
6741 | }), b = [];
|
6742 | for (let N = 0, y = It(g), v = y.length, d; N < v; N++)
|
6743 | d = y[N], d.watchBody() && this.addMethod(d.watcherSymbol(), [], [d.watchBody()], {}, function(w) {
|
6744 | return d._watchMethod = w, d._watchParam = w.params().at(0, true, "e");
|
6745 | }), d.hasStaticInits() && !d.option("declareOnly") && f.add(d), d.hasConstructorInits() && (this.isExtension() ? d.value() && d._name.warn("field with value not supported in class extension") : d.option("declareOnly") || (_.add(d), m.add(d))), !d.isStatic() && a != null && d.set({restIndex: a});
|
6746 | if (!c && this._decorators) {
|
6747 | let N = this.util().decorate(new je(this._decorators), kr);
|
6748 | f.add([N, Fe]), b.push(this._decorators);
|
6749 | }
|
6750 | for (let N = 0, y = It(this.body()), v = y.length, d; N < v; N++)
|
6751 | if (d = y[N], d._decorators) {
|
6752 | let w = d.option("static") ? kr : w_, k = Rt("null"), T = this.util().decorate(new je(d._decorators), w, d.name(), k);
|
6753 | b.push(d._decorators), f.add([T, Fe]);
|
6754 | }
|
6755 | if (!_.isEmpty() && !c && (this._inits = _, this.instanceInit(), _.set({ctor: this.instanceInit()}), this.instanceInit().inject(_), !this.isTag()))
|
6756 | if (this._superclass) {
|
6757 | if (!this._supernode || !this._supernode.isInitingFields()) {
|
6758 | let N = J("||", this.initPath(), He(J(".", kr, this.initKey()), []));
|
6759 | if (!p)
|
6760 | p = this.addMethod("constructor", [], [new Xe(), Fe, N], {});
|
6761 | else {
|
6762 | let y = p.option("injectInitAfter");
|
6763 | p.inject(N, y ? {after: y} : 0);
|
6764 | }
|
6765 | }
|
6766 | } else {
|
6767 | let N = J(".", kr, this.initKey());
|
6768 | if (p) {
|
6769 | let y = p.option("supr");
|
6770 | y ? y.real.set({target: N, args: []}) : p.body().add([He(N, []), Fe], 0);
|
6771 | } else {
|
6772 | p = this.addMethod("constructor", [], [], {});
|
6773 | let y = p.params().at(0, true, "$$", Rt("null")), v = He(N, [y]);
|
6774 | c || p.body().add([v, Fe], 0);
|
6775 | }
|
6776 | }
|
6777 | if (!m.isEmpty() && !c && (this.instancePatch(), m.set({ctor: this.instancePatch()}), this.instancePatch().inject(m)), c && p && this._autosuper && p.body().add([Rt("super()"), Fe], 0), !f.isEmpty() && !c && this.staticInit().inject(f, 0), !O.tsc()) {
|
6778 | let N = !!l["#__inited__"], y = b.length > 0;
|
6779 | if (y) {
|
6780 | O.use("hooks");
|
6781 | let v = O.symbolFor("#__hooks__");
|
6782 | this.staticInit().inject(Rt("this.prototype[" + v + "] = " + this.runtime().hooks), 0);
|
6783 | }
|
6784 | if (!this.isTag() && !p && (N || y)) {
|
6785 | let v = e ? [new Xe(), Fe] : [Fe];
|
6786 | p = this.addMethod("constructor", [], v, {});
|
6787 | }
|
6788 | if (p && !this.isTag() && !O.isStdLib()) {
|
6789 | let v = O.symbolFor("#__initor__"), d = O.symbolFor("#__inited__"), w = O.symbolFor("#__hooks__"), k = Rt("this[" + w + "]&&this[" + w + "].inited(this)");
|
6790 | if (e) {
|
6791 | let T = O.getSymbol();
|
6792 | this.staticInit().inject(Rt("this.prototype[" + v + "] = " + T), 0), N ? p.inject(Rt("if(this[" + v + "]===" + T + ") (" + k + ",this[" + d + "]());")) : p.inject(Rt("this[" + v + "]===" + T + " && (" + k + ",this[" + d + "] && this[" + d + "]())"));
|
6793 | } else
|
6794 | N ? p.inject(Rt("if(!this[" + v + "]) (" + k + ",this[" + d + "]());")) : y && p.inject(Rt("!this[" + v + "] && this[" + w + "].inited(this);"));
|
6795 | }
|
6796 | }
|
6797 | return this;
|
6798 | };
|
6799 | _e.prototype.addMethod = function(t, e, r, i, s) {
|
6800 | (typeof r == "string" || r instanceof String) && (r = [Rt(r)]), (typeof t == "string" || t instanceof String) && (t = new At(t));
|
6801 | let n = new Re(e, r || [], t, null, i || {});
|
6802 | return this.body().unshift(n, true), s instanceof Function && s(n), n.traverse(), n;
|
6803 | };
|
6804 | _e.prototype.js = function(t) {
|
6805 | this.scope().virtualize(), this.scope().context().setValue(this.name()), this.scope().context().setReference(this.name());
|
6806 | var e = O.up(), t = this._options || {}, r = this.name() instanceof se ? this.name().right() : this.name(), i = null, s = this.superclass();
|
6807 | typeof r != "string" && r && (r = r.c({mark: true})), this._cname = r;
|
6808 | var n = Rt(r), o = null;
|
6809 | let a = this.body().c(), l = Tt("class", this.keyword());
|
6810 | if (this.name())
|
6811 | l += " " + Tt(r, this.name());
|
6812 | else if (e instanceof Oe)
|
6813 | try {
|
6814 | l += " " + e._value._symbol;
|
6815 | } catch (c) {
|
6816 | }
|
6817 | s && (o = Tt(s), l += " extends " + o), this.name() instanceof se && (this._staticInit && (n = this.scope().root().declare(null), l = "" + n.c() + " = " + l), l = "" + this.name().c() + " = " + l), this.option("export") && !O.cjs() && (this.option("default") ? l = "" + Tt("export", this.option("export")) + " " + Tt("default", this.option("default")) + " " + l : l = "" + Tt("export", this.option("export")) + " " + l), this.isExtension() && O.tsc() && (a = `
|
6818 | __extends__=` + this._className.c() + `;
|
6819 | ` + a);
|
6820 | let p = "" + l + " {" + a + "}";
|
6821 | if (this.option("export") && O.cjs()) {
|
6822 | let c = this.option("default") ? "default" : r;
|
6823 | p = "" + p + `;
|
6824 | ` + Tt("exports", t.export) + "." + c + " = " + r;
|
6825 | }
|
6826 | if (this._staticInit && (e instanceof Lt || e instanceof Ri ? p = "" + p + "; " + J(".", n, this.initKey()).c() + "();" : p = "((" + p + ")[" + this.initKey().c() + "]())"), this.isExtension() && !O.tsc()) {
|
6827 | let c = this instanceof nc ? Rt(this._className.c()) : Rt("" + this._className.c() + ".prototype");
|
6828 | if (this._virtualSuper) {
|
6829 | let _ = J("=", this._virtualSuper, this.util().virtualSuper(c));
|
6830 | c = Rt("(" + _.c() + "," + c.c() + ")");
|
6831 | }
|
6832 | p += `;
|
6833 | ` + this.util().extend(c, Rt("" + n + ".prototype")).c() + `;
|
6834 | `;
|
6835 | }
|
6836 | return this.option("global") && (p = "" + p + "; " + this.scope__().root().globalRef() + "." + this._cname + " = " + this._cname), p;
|
6837 | };
|
6838 | function nc() {
|
6839 | return _e.apply(this, arguments);
|
6840 | }
|
6841 | A(nc, _e);
|
6842 | E.ExtendDeclaration = nc;
|
6843 | function sr() {
|
6844 | return _e.apply(this, arguments);
|
6845 | }
|
6846 | A(sr, _e);
|
6847 | E.TagDeclaration = sr;
|
6848 | sr.prototype.isTag = function() {
|
6849 | return true;
|
6850 | };
|
6851 | sr.prototype.isInitingFields = function() {
|
6852 | return true;
|
6853 | };
|
6854 | sr.prototype.namepath = function() {
|
6855 | return "<" + this.name() + ">";
|
6856 | };
|
6857 | sr.prototype.metadata = function() {
|
6858 | return Object.assign(sr.prototype.__super__.metadata.apply(this, arguments), {type: "tag"});
|
6859 | };
|
6860 | sr.prototype.cssns = function() {
|
6861 | return this._cssns || (this._cssns = this._scope.cssns());
|
6862 | };
|
6863 | sr.prototype.cssid = function() {
|
6864 | return this._cssid || (this._cssid = this._scope.cssid());
|
6865 | };
|
6866 | sr.prototype.cssref = function(t) {
|
6867 | if (this.isNeverExtended() && !this.superclass())
|
6868 | return this._cssns;
|
6869 | if (t) {
|
6870 | let e = t.closure();
|
6871 | return e.memovar("_ns_", J("||", J(".", e.context(), "_ns_"), Ze("")));
|
6872 | } else
|
6873 | return J("||", J(".", kr, "_ns_"), Ze(""));
|
6874 | };
|
6875 | sr.prototype.isNeverExtended = function() {
|
6876 | return this.name() && this.name().isClass() ? !this.option("export") && !this.option("extended") : false;
|
6877 | };
|
6878 | sr.prototype.visit = function() {
|
6879 | this.scope__().imbaDependency("core"), O.hmr() && (this.cssid(), this.cssns()), sr.prototype.__super__.visit.apply(this, arguments);
|
6880 | let t = this.superclass();
|
6881 | if (this._config = {}, t && !O.tsc()) {
|
6882 | if (t.isNative() || t.isNativeSVG()) {
|
6883 | let e = t.nativeCreateNode();
|
6884 | e = this.util().extendTag(e, kr), this.addMethod("create$", [], [e]).set({static: true}), this.set({extends: ze.wrap({extends: t.name()})}), this._config.extends = t.name();
|
6885 | } else if (t.isClass()) {
|
6886 | t.resolveVariable(this.scope__().parent());
|
6887 | let e = t._variable && t._variable.value();
|
6888 | e && e.set({extended: this});
|
6889 | }
|
6890 | }
|
6891 | if (this._elementReferences) {
|
6892 | for (let e = this._elementReferences, r, i = 0, s = Object.keys(e), n = s.length, o; i < n; i++)
|
6893 | if (o = s[i], r = e[o], O.tsc()) {
|
6894 | let a = r.option("reference"), l = r.type(), p = "" + Tt(Pt.sym(a), a);
|
6895 | l && l.toClassName && (p += " = new " + l.toClassName()), this.body().unshift(Rt(p + ";"), true);
|
6896 | }
|
6897 | }
|
6898 | if (!O.tsc() && this.name() && this.name().toNodeName && !this.option("extension")) {
|
6899 | let e = this.name().toNodeName();
|
6900 | e.indexOf("-") == -1 && (e = e + "-tag"), O.css().add(e + " { display:block; }");
|
6901 | }
|
6902 | this.option("export") && this.name() && this.name().isLowerCase && this.name().isLowerCase() && this.warn("Lowercased tags are globally available - not exportable", {loc: this.option("export")});
|
6903 | };
|
6904 | sr.prototype.addElementReference = function(t, e) {
|
6905 | let r = this._elementReferences || (this._elementReferences = {});
|
6906 | return r[t] && r[t] != e ? e.warn("Duplicate elements with same reference", {loc: t}) : (r[t] = e, e.set({tagdeclbody: this._body})), e;
|
6907 | };
|
6908 | sr.prototype.js = function(t) {
|
6909 | this.scope().virtualize(), this.scope().context().setValue(this.name()), this.scope().context().setReference(this.name());
|
6910 | let e = this.name().toClassName(), r = this.superclass(), i = !this.option("extension") && !this.name().isClass() && O.tsc();
|
6911 | if (r && r._variable ? r = r._variable : r ? r = He(this.runtime().getSuperTagType, [r, Ze(r.toClassName()), this.runtime().Component]) : r = this.runtime().Component, O.tsc())
|
6912 | if (r = this.superclass() ? this.superclass().toClassName() : Rt("imba.Component"), this.option("extension")) {
|
6913 | let l = "class \u03A9" + e.replace(/\./g, "__") + "\u03A9" + this.oid(), p = this.body().c();
|
6914 | return l = "" + l + " {" + p + "}", this._name._variable || (l = "export " + l), l;
|
6915 | } else
|
6916 | this.body().unshift(Rt(`static $$TAG$$
|
6917 | `));
|
6918 | else if (this.option("extension")) {
|
6919 | let p = this._name._variable || He(this.runtime().getTagType, [this.name(), Ze(this.name().toClassName())]);
|
6920 | (e == "ImbaElement" || e == "imba.Component") && (p = this.runtime().Component);
|
6921 | let c = new ce(this.name()), _ = "(class {" + this.body().c() + "}).prototype";
|
6922 | return this.util().extend("" + p.c() + ".prototype", Rt(_)).c();
|
6923 | } else
|
6924 | this.name().isNative() && this.name().error("tag " + this.name().symbol() + " already exists");
|
6925 | let s = this.scope__().parent(), n = this.body().c(), o = "" + Tt("class", this.keyword()) + " " + Tt(e, this.name()) + " extends " + Tt(r, this.superclass());
|
6926 | this.option("export") && !O.cjs() && (this.option("default") ? o = "" + Tt("export", this.option("export")) + " " + Tt("default", this.option("default")) + " " + o : o = "" + Tt("export", this.option("export")) + " " + o), i && (o = "globalThis[" + Tt("'" + Tt(this.name().toNodeName(), this.name()) + " tag'", this.name()) + "] = " + Tt("class", this.keyword()) + " extends " + Tt(r, this.superclass()), o = "globalThis." + Tt(e, this.name()) + " = " + Tt("class", this.keyword()) + " extends " + Tt(r, this.superclass()));
|
6927 | let a = "" + o + " {" + n + "}";
|
6928 | if (this.option("export") && O.cjs()) {
|
6929 | let l = this.option("default") ? "default" : e;
|
6930 | a = "" + a + `;
|
6931 | ` + Tt("exports", this.o().export) + "." + l + " = " + e;
|
6932 | }
|
6933 | if (this._cssns && (this._config.cssns = this.cssns()), this._cssid && (this._config.cssid = this.cssid()), !O.tsc()) {
|
6934 | this._staticInit && (a += "; " + J(".", Rt(e), this.initKey()).c() + "()");
|
6935 | let l = ze.wrap(this._config).c();
|
6936 | this.name().isClass() && (this._config.name = this.name().symbol()), a += "; " + this.runtime().defineTag + "(" + this.name().c() + "," + e + "," + l + ")";
|
6937 | }
|
6938 | return O.tsc() && this.option("global") && this.name().isClass() && (a += "; globalThis." + e + " = " + e), a;
|
6939 | };
|
6940 | function ie(t, e, r, i, s) {
|
6941 | this._options = s;
|
6942 | var n = this.scopetype();
|
6943 | this._traversed = false, this._body = Pt.blk(e), this._scope || (this._scope = s && s.scope || new n(this)), this._scope.setParams(this._params = new Vr(t)), this._name = r || "", this._target = i, this._type = "function", this._variable = null;
|
6944 | }
|
6945 | A(ie, fr);
|
6946 | E.Func = ie;
|
6947 | ie.prototype.name = function(t) {
|
6948 | return this._name;
|
6949 | };
|
6950 | ie.prototype.setName = function(t) {
|
6951 | return this._name = t, this;
|
6952 | };
|
6953 | ie.prototype.params = function(t) {
|
6954 | return this._params;
|
6955 | };
|
6956 | ie.prototype.setParams = function(t) {
|
6957 | return this._params = t, this;
|
6958 | };
|
6959 | ie.prototype.target = function(t) {
|
6960 | return this._target;
|
6961 | };
|
6962 | ie.prototype.setTarget = function(t) {
|
6963 | return this._target = t, this;
|
6964 | };
|
6965 | ie.prototype.options = function(t) {
|
6966 | return this._options;
|
6967 | };
|
6968 | ie.prototype.setOptions = function(t) {
|
6969 | return this._options = t, this;
|
6970 | };
|
6971 | ie.prototype.type = function(t) {
|
6972 | return this._type;
|
6973 | };
|
6974 | ie.prototype.setType = function(t) {
|
6975 | return this._type = t, this;
|
6976 | };
|
6977 | ie.prototype.context = function(t) {
|
6978 | return this._context;
|
6979 | };
|
6980 | ie.prototype.setContext = function(t) {
|
6981 | return this._context = t, this;
|
6982 | };
|
6983 | ie.prototype.scopetype = function() {
|
6984 | return Aa;
|
6985 | };
|
6986 | ie.prototype.inject = function(t, e) {
|
6987 | return this._body.add([t, Fe], e);
|
6988 | };
|
6989 | ie.prototype.nonlocals = function() {
|
6990 | return this._scope._nonlocals;
|
6991 | };
|
6992 | ie.prototype.returnType = function() {
|
6993 | return this.datatype();
|
6994 | };
|
6995 | ie.prototype.visit = function(t, e) {
|
6996 | return this.scope().visit(), this._context = this.scope().parent(), this._params.traverse({declaring: "arg"}), this._body.traverse();
|
6997 | };
|
6998 | ie.prototype.funcKeyword = function() {
|
6999 | let t = "function";
|
7000 | return this.option("async") && (t = "async " + t), t;
|
7001 | };
|
7002 | ie.prototype.jsdoc = function() {
|
7003 | let t = [];
|
7004 | this._desc && (this._desc._skip = true, t.push(this._desc.toString()));
|
7005 | for (let r = 0, i = It(this._params.nodes()), s = i.length, n; r < s; r++)
|
7006 | n = i[r], n instanceof fe && n.datatype() && t.push(n.jsdoc());
|
7007 | if (this.option("inExtension") && this._target) {
|
7008 | let r = this._context.node(), i = this._context.node()._className;
|
7009 | if (i && O.tsc()) {
|
7010 | let s = i.c();
|
7011 | r.option("instanceOnly") && (s = "typeof " + s), t.push("@this { " + s + " }");
|
7012 | }
|
7013 | } else
|
7014 | this.option("jsdocthis") && t.push("@this { " + this.option("jsdocthis") + " }");
|
7015 | this.returnType() && t.push("@returns { " + this.returnType().asRawType() + " }");
|
7016 | let e = t.join(`
|
7017 | `);
|
7018 | return e ? `/**
|
7019 | ` + e + `
|
7020 | */
|
7021 | ` : "";
|
7022 | };
|
7023 | ie.prototype.js = function(t, e) {
|
7024 | this.option("noreturn") || this.body().consume(new Nn());
|
7025 | var r = this.body()._indentation;
|
7026 | r && r.isGenerated() && (this.body()._indentation = null);
|
7027 | var i = this.scope().c({indent: !r || !r.isGenerated(), braces: true}), s = typeof this._name == "string" ? this._name : this._name.c();
|
7028 | s = s ? " " + s.replace(/\./g, "_") : "";
|
7029 | var n = e && e.keyword != null ? e.keyword : this.funcKeyword(), o = "" + Tt(n, this.option("def") || this.option("keyword")) + be.toValidIdentifier(s) + "(" + this.params().c() + ") " + i;
|
7030 | return this.option("eval") && (o = "(" + o + ")()"), o;
|
7031 | };
|
7032 | ie.prototype.shouldParenthesize = function(t) {
|
7033 | return t === void 0 && (t = this.up()), t instanceof ke && t.callee() == this;
|
7034 | };
|
7035 | function Ni() {
|
7036 | return ie.apply(this, arguments);
|
7037 | }
|
7038 | A(Ni, ie);
|
7039 | E.IsolatedFunc = Ni;
|
7040 | Ni.prototype.leaks = function(t) {
|
7041 | return this._leaks;
|
7042 | };
|
7043 | Ni.prototype.setLeaks = function(t) {
|
7044 | return this._leaks = t, this;
|
7045 | };
|
7046 | Ni.prototype.scopetype = function() {
|
7047 | return i2;
|
7048 | };
|
7049 | Ni.prototype.isStatic = function() {
|
7050 | return true;
|
7051 | };
|
7052 | Ni.prototype.isPrimitive = function() {
|
7053 | return true;
|
7054 | };
|
7055 | Ni.prototype.visit = function(t) {
|
7056 | var e = this, r;
|
7057 | if (Ni.prototype.__super__.visit.apply(e, arguments), !t.tsc())
|
7058 | return (r = e._scope._leaks) && (e._leaks = [], r.forEach(function(i, s) {
|
7059 | return i._proxy = e._params.at(e._params.count(), true), e._leaks.push(s);
|
7060 | })), e;
|
7061 | };
|
7062 | function s2() {
|
7063 | return ie.apply(this, arguments);
|
7064 | }
|
7065 | A(s2, ie);
|
7066 | E.Lambda = s2;
|
7067 | s2.prototype.scopetype = function() {
|
7068 | var t = this.option("keyword");
|
7069 | return t && t._value == "\u0192" ? Bs : Ao;
|
7070 | };
|
7071 | function oc() {
|
7072 | return ie.apply(this, arguments);
|
7073 | }
|
7074 | A(oc, ie);
|
7075 | E.ClosedFunc = oc;
|
7076 | oc.prototype.scopetype = function() {
|
7077 | return Bs;
|
7078 | };
|
7079 | function ac() {
|
7080 | return ie.apply(this, arguments);
|
7081 | }
|
7082 | A(ac, ie);
|
7083 | E.TagFragmentFunc = ac;
|
7084 | ac.prototype.scopetype = function() {
|
7085 | return this.option("closed") ? Bs : Ao;
|
7086 | };
|
7087 | function Re() {
|
7088 | return ie.apply(this, arguments);
|
7089 | }
|
7090 | A(Re, ie);
|
7091 | E.MethodDeclaration = Re;
|
7092 | Re.prototype.variable = function(t) {
|
7093 | return this._variable;
|
7094 | };
|
7095 | Re.prototype.setVariable = function(t) {
|
7096 | return this._variable = t, this;
|
7097 | };
|
7098 | Re.prototype.decorators = function(t) {
|
7099 | return this._decorators;
|
7100 | };
|
7101 | Re.prototype.setDecorators = function(t) {
|
7102 | return this._decorators = t, this;
|
7103 | };
|
7104 | Re.prototype.scopetype = function() {
|
7105 | return Bs;
|
7106 | };
|
7107 | Re.prototype.consume = function(t) {
|
7108 | return t instanceof Qe ? (this.option("return", true), this) : Re.prototype.__super__.consume.apply(this, arguments);
|
7109 | };
|
7110 | Re.prototype.identifier = function() {
|
7111 | return this._name;
|
7112 | };
|
7113 | Re.prototype.rawName = function() {
|
7114 | return this._name instanceof At ? this._name.toRaw() : "";
|
7115 | };
|
7116 | Re.prototype.metadata = function() {
|
7117 | return {type: "method", name: "" + this.name(), namepath: this.namepath(), params: this._params.metadata(), desc: this._desc, scopenr: this.scope()._nr, loc: this.loc()};
|
7118 | };
|
7119 | Re.prototype.loc = function() {
|
7120 | var t;
|
7121 | if (t = this.option("def")) {
|
7122 | let e = this.body().option("end") || this.body().loc()[1];
|
7123 | return [t._loc, e];
|
7124 | } else
|
7125 | return [0, 0];
|
7126 | };
|
7127 | Re.prototype.isGetter = function() {
|
7128 | return this._type == "get";
|
7129 | };
|
7130 | Re.prototype.isSetter = function() {
|
7131 | return this._type == "set";
|
7132 | };
|
7133 | Re.prototype.isConstructor = function() {
|
7134 | return String(this.name()) == "constructor";
|
7135 | };
|
7136 | Re.prototype.isMember = function() {
|
7137 | return !this.option("static");
|
7138 | };
|
7139 | Re.prototype.toJSON = function() {
|
7140 | return this.metadata();
|
7141 | };
|
7142 | Re.prototype.namepath = function() {
|
7143 | if (this._namepath)
|
7144 | return this._namepath;
|
7145 | var t = String(this.name().c()), e = this.option("static") ? "." : "#";
|
7146 | if (this.target()) {
|
7147 | let r = this.target();
|
7148 | return r.namepath() == "ValueNode" && (r = this._context.node()), this._namepath = r.namepath() + e + t;
|
7149 | } else
|
7150 | return this._namepath = "&" + t;
|
7151 | };
|
7152 | Re.prototype.visit = function() {
|
7153 | var t, e, r;
|
7154 | this._type = this.option("type") || (t = this.option("def")) && t._value || "def", this._decorators = (e = this.up()) && e.collectDecorators && e.collectDecorators();
|
7155 | var i = this._options;
|
7156 | if (this.scope().visit(), this.option("inObject"))
|
7157 | return this._params.traverse(), this._body.traverse(), this;
|
7158 | var s = this._context = this.scope().parent().closure();
|
7159 | if (s instanceof le && !this.target() ? this.scope()._context = s.context() : s instanceof Bs && !this.target() && (this.scope()._selfless = true), this._params.traverse(), this._name.isPredicate && this._name.isPredicate() && !this.isSetter() && !this.isGetter() && this._name.warn("Only getters/setters should end with ?"), this.target() instanceof At && (r = this.scope().lookup(this.target().toString())) && this.setTarget(r), String(this.name()) == "initialize" && s instanceof Ii && !(s instanceof r2) && this.setType("constructor"), (String(this.name()) == "constructor" || this.isConstructor()) && (this.up().set({ctor: this}), this.set({noreturn: true})), s instanceof Ii && !this.target() && (this._target = s.prototype(), this.set({prototype: this._target, inClassBody: true, inExtension: s.node().option("extension")}), s.annotate(this)), this.target() instanceof si ? (this._target = s.context(), s.annotate(this), this.set({static: true})) : i.variable ? (this._variable = this.scope().parent().register(this.name(), this, {type: String(i.variable)}), this.target() && this.warn("" + String(i.variable) + " def cannot have a target")) : this.target() || (this._variable = this.scope().parent().register(this.name(), this, {type: "const"})), i.export && !(s instanceof le) && this.warn("cannot export non-root method", {loc: i.export.loc()}), W1.entities().add(this.namepath(), this), this._body.traverse(), this.isConstructor() && this.option("supr")) {
|
7160 | let n = this.scope__().context()._reference, o = this.option("supr"), a = o.node, l = o.block;
|
7161 | if (n) {
|
7162 | n.declarator()._defaults = null;
|
7163 | let p = J("=", n, new ps());
|
7164 | l.replace(a, [a, p]);
|
7165 | }
|
7166 | }
|
7167 | return this;
|
7168 | };
|
7169 | Re.prototype.supername = function() {
|
7170 | return this.type() == "constructor" ? this.type() : this.name();
|
7171 | };
|
7172 | Re.prototype.js = function(t) {
|
7173 | var t = this._options;
|
7174 | this.type() == "constructor" || this.option("noreturn") || this.isSetter() || (this.option("chainable") ? this.body().add(new Nn(this.scope().context())) : this.option("greedy") ? this.body().consume(new tc()) : this.body().consume(new Nn()));
|
7175 | var e = this.scope().c({indent: true, braces: true}), r = typeof this._name == "string" ? this._name : this._name.c({as: "field"}), i = "";
|
7176 | if (this.option("inClassBody") || this.option("inObject")) {
|
7177 | let a = "";
|
7178 | return this.isGetter() ? a = Tt("get", this.option("keyword")) + " " : this.isSetter() && (a = Tt("set", this.option("keyword")) + " "), this.option("async") && (a = "async " + a), this.option("static") && (a = "" + Tt("static", this.option("static")) + " " + a), i = "" + a + Tt(r, null, {as: "field"}) + "(" + this.params().c() + ")" + e, i = this.jsdoc() + i, i;
|
7179 | }
|
7180 | var s = "(" + this.params().c() + ")" + e, n = this.context(), o = be.toValidIdentifier(Pt.sym(this.name()));
|
7181 | if (this.target()) {
|
7182 | if (o[0] == "[" ? o = o.slice(1, -1) : o = "'" + o + "'", this.isGetter())
|
7183 | i = "Object.defineProperty(" + this.target().c() + ",'" + o + "',{get: " + this.funcKeyword() + s + ", configurable: true})";
|
7184 | else if (this.isSetter())
|
7185 | i = "Object.defineProperty(" + this.target().c() + ",'" + o + "',{set: " + this.funcKeyword() + s + ", configurable: true})";
|
7186 | else {
|
7187 | O.tsc() && this.set({jsdocthis: this.target().c()});
|
7188 | let a = J(".", this.target(), this._name);
|
7189 | i = "" + a.c() + " = " + this.funcKeyword() + " " + s;
|
7190 | }
|
7191 | t.export && (i = "exports." + (t.default ? "default" : o) + " = " + i);
|
7192 | } else if (i = "" + Tt(this.funcKeyword(), this.keyword()) + " " + Tt(o, this._name) + s, t.export)
|
7193 | if (O.cjs()) {
|
7194 | let a = t.default ? "default" : o;
|
7195 | i = "" + i + `;
|
7196 | ` + Tt("exports", t.export) + "." + a + " = " + o;
|
7197 | } else
|
7198 | i = "" + Tt("export", t.export) + " " + (t.default ? Tt("default ", t.default) : "") + i;
|
7199 | return t.global && (i = "" + i + "; " + this.scope__().root().globalRef() + "." + o + " = " + o + ";"), this.option("return") && (i = "return " + i), i = this.jsdoc() + i, i;
|
7200 | };
|
7201 | function Ce(t) {
|
7202 | this._traversed = false, this._expression = true, this._cache = null, this._raw = null, this._value = this.load(t);
|
7203 | }
|
7204 | A(Ce, Ut);
|
7205 | E.Literal = Ce;
|
7206 | Ce.prototype.isConstant = function() {
|
7207 | return true;
|
7208 | };
|
7209 | Ce.prototype.load = function(t) {
|
7210 | return t;
|
7211 | };
|
7212 | Ce.prototype.toString = function() {
|
7213 | return "" + this.value();
|
7214 | };
|
7215 | Ce.prototype.hasSideEffects = function() {
|
7216 | return false;
|
7217 | };
|
7218 | Ce.prototype.shouldParenthesizeInTernary = function() {
|
7219 | return false;
|
7220 | };
|
7221 | Ce.prototype.startLoc = function() {
|
7222 | return this._startLoc || this._value && this._value.startLoc && this._value.startLoc();
|
7223 | };
|
7224 | Ce.prototype.endLoc = function() {
|
7225 | return this._endLoc || this._value && this._value.endLoc && this._value.endLoc();
|
7226 | };
|
7227 | function ba() {
|
7228 | return Ce.apply(this, arguments);
|
7229 | }
|
7230 | A(ba, Ce);
|
7231 | E.RawScript = ba;
|
7232 | ba.prototype.c = function() {
|
7233 | return this._value;
|
7234 | };
|
7235 | function fi(t) {
|
7236 | this._value = t, this._raw = String(t) == "true";
|
7237 | }
|
7238 | A(fi, Ce);
|
7239 | E.Bool = fi;
|
7240 | fi.prototype.cache = function() {
|
7241 | return this;
|
7242 | };
|
7243 | fi.prototype.isPrimitive = function() {
|
7244 | return true;
|
7245 | };
|
7246 | fi.prototype.truthy = function() {
|
7247 | return String(this.value()) == "true";
|
7248 | };
|
7249 | fi.prototype.js = function(t) {
|
7250 | return String(this._value);
|
7251 | };
|
7252 | fi.prototype.c = function() {
|
7253 | return O._counter += 1, String(this._value);
|
7254 | };
|
7255 | fi.prototype.toJSON = function() {
|
7256 | return {type: "Bool", value: this._value};
|
7257 | };
|
7258 | fi.prototype.loc = function() {
|
7259 | return this._value.region ? this._value.region() : [0, 0];
|
7260 | };
|
7261 | function On() {
|
7262 | return Ce.apply(this, arguments);
|
7263 | }
|
7264 | A(On, Ce);
|
7265 | E.Undefined = On;
|
7266 | On.prototype.isPrimitive = function() {
|
7267 | return true;
|
7268 | };
|
7269 | On.prototype.isTruthy = function() {
|
7270 | return false;
|
7271 | };
|
7272 | On.prototype.cache = function() {
|
7273 | return this;
|
7274 | };
|
7275 | On.prototype.c = function() {
|
7276 | return Tt("undefined", this._value);
|
7277 | };
|
7278 | function Ps() {
|
7279 | return Ce.apply(this, arguments);
|
7280 | }
|
7281 | A(Ps, Ce);
|
7282 | E.Nil = Ps;
|
7283 | Ps.prototype.isPrimitive = function() {
|
7284 | return true;
|
7285 | };
|
7286 | Ps.prototype.isTruthy = function() {
|
7287 | return false;
|
7288 | };
|
7289 | Ps.prototype.cache = function() {
|
7290 | return this;
|
7291 | };
|
7292 | Ps.prototype.c = function() {
|
7293 | return Tt("null", this._value);
|
7294 | };
|
7295 | function Ms() {
|
7296 | return fi.apply(this, arguments);
|
7297 | }
|
7298 | A(Ms, fi);
|
7299 | E.True = Ms;
|
7300 | Ms.prototype.raw = function() {
|
7301 | return true;
|
7302 | };
|
7303 | Ms.prototype.isTruthy = function() {
|
7304 | return true;
|
7305 | };
|
7306 | Ms.prototype.c = function() {
|
7307 | return Tt("true", this._value);
|
7308 | };
|
7309 | function Vs() {
|
7310 | return fi.apply(this, arguments);
|
7311 | }
|
7312 | A(Vs, fi);
|
7313 | E.False = Vs;
|
7314 | Vs.prototype.raw = function() {
|
7315 | return false;
|
7316 | };
|
7317 | Vs.prototype.isTruthy = function() {
|
7318 | return false;
|
7319 | };
|
7320 | Vs.prototype.c = function() {
|
7321 | return Tt("false", this._value);
|
7322 | };
|
7323 | function Ie(t) {
|
7324 | this._traversed = false, this._value = t;
|
7325 | }
|
7326 | A(Ie, Ce);
|
7327 | E.Num = Ie;
|
7328 | Ie.prototype.toString = function() {
|
7329 | return String(this._value).replace(/\_/g, "");
|
7330 | };
|
7331 | Ie.prototype.toNumber = function() {
|
7332 | return this._number == null ? this._number = parseFloat(this.toString()) : this._number;
|
7333 | };
|
7334 | Ie.prototype.isPrimitive = function(t) {
|
7335 | return true;
|
7336 | };
|
7337 | Ie.prototype.isTruthy = function() {
|
7338 | return this.toNumber() != 0;
|
7339 | };
|
7340 | Ie.prototype.negate = function() {
|
7341 | return this._value = -this.toNumber(), this;
|
7342 | };
|
7343 | Ie.prototype.shouldParenthesize = function(t) {
|
7344 | return t === void 0 && (t = this.up()), t instanceof se && t.left() == this;
|
7345 | };
|
7346 | Ie.prototype.js = function(t) {
|
7347 | return this.toString();
|
7348 | };
|
7349 | Ie.prototype.c = function(t) {
|
7350 | if (this._cache)
|
7351 | return Ie.prototype.__super__.c.call(this, t);
|
7352 | var e = Tt(this.toString(), this._value), r = O.current(), i = r instanceof se && r.left() == this;
|
7353 | return i ? "(" + e + ")" : e;
|
7354 | };
|
7355 | Ie.prototype.cache = function(t) {
|
7356 | return t && (t.cache || t.pool) ? Ie.prototype.__super__.cache.call(this, t) : this;
|
7357 | };
|
7358 | Ie.prototype.raw = function() {
|
7359 | return JSON.parse(this.toString());
|
7360 | };
|
7361 | Ie.prototype.toJSON = function() {
|
7362 | return {type: this.typeName(), value: this.raw()};
|
7363 | };
|
7364 | function Ia(t, e) {
|
7365 | this._traversed = false, this._value = t, this._unit = e;
|
7366 | }
|
7367 | A(Ia, Ce);
|
7368 | E.NumWithUnit = Ia;
|
7369 | Ia.prototype.negate = function() {
|
7370 | return this.set({negate: true}), this;
|
7371 | };
|
7372 | Ia.prototype.c = function(t) {
|
7373 | let e = String(this._unit), r = String(this._value);
|
7374 | return this.option("negate") && (r = "-" + r), e == "s" ? r = "(" + r + " * 1000)" : e == "ms" ? r = "" + r : e == "n" ? r = "" + r + "n" : e == "fps" ? r = "(1000 / " + r + ")" : (r = "" + r + e, t && t.unqouted || (r = "'" + r + "'")), ls.sourcemap && (!t || t.mark !== false) && (r = Tt(r, this)), r;
|
7375 | };
|
7376 | Ia.prototype.endLoc = function() {
|
7377 | return this._unit.endLoc();
|
7378 | };
|
7379 | function lc(t, e) {
|
7380 | this._value = t, this._unit = e;
|
7381 | }
|
7382 | A(lc, Ut);
|
7383 | E.ExpressionWithUnit = lc;
|
7384 | lc.prototype.js = function(t) {
|
7385 | let e = String(this._unit);
|
7386 | return "(" + this.value().c() + "+" + Ze(this._unit).c() + ")";
|
7387 | };
|
7388 | function de(t) {
|
7389 | this._traversed = false, this._expression = true, this._cache = null, this._value = t;
|
7390 | }
|
7391 | A(de, Ce);
|
7392 | E.Str = de;
|
7393 | de.prototype.isString = function() {
|
7394 | return true;
|
7395 | };
|
7396 | de.prototype.isPrimitive = function(t) {
|
7397 | return true;
|
7398 | };
|
7399 | de.prototype.raw = function() {
|
7400 | return this._raw || (this._raw = String(this.value()).slice(1, -1));
|
7401 | };
|
7402 | de.prototype.isValidIdentifier = function() {
|
7403 | return !!this.raw().match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/);
|
7404 | };
|
7405 | de.prototype.isTemplate = function() {
|
7406 | return String(this._value)[0] == "`";
|
7407 | };
|
7408 | de.prototype.js = function(t) {
|
7409 | return String(this._value);
|
7410 | };
|
7411 | de.prototype.c = function(t) {
|
7412 | return this._cache ? de.prototype.__super__.c.call(this, t) : Tt(this.js(), this._value, t);
|
7413 | };
|
7414 | function cc() {
|
7415 | return jt.apply(this, arguments);
|
7416 | }
|
7417 | A(cc, jt);
|
7418 | E.TemplateString = cc;
|
7419 | cc.prototype.js = function() {
|
7420 | let t = this._nodes.map(function(r) {
|
7421 | return typeof r == "string" || r instanceof String ? r : r.c();
|
7422 | });
|
7423 | return "`" + t.join("") + "`";
|
7424 | };
|
7425 | function f3() {
|
7426 | return Ut.apply(this, arguments);
|
7427 | }
|
7428 | A(f3, Ut);
|
7429 | E.Interpolation = f3;
|
7430 | function _i(t, e) {
|
7431 | e === void 0 && (e = {}), this._nodes = t, this._options = e;
|
7432 | }
|
7433 | A(_i, Z);
|
7434 | E.InterpolatedString = _i;
|
7435 | _i.prototype.add = function(t) {
|
7436 | return t && this._nodes.push(t), this;
|
7437 | };
|
7438 | _i.prototype.visit = function() {
|
7439 | for (let t = 0, e = It(this._nodes), r = e.length; t < r; t++)
|
7440 | e[t].traverse();
|
7441 | return this;
|
7442 | };
|
7443 | _i.prototype.startLoc = function() {
|
7444 | return this.option("open").startLoc();
|
7445 | };
|
7446 | _i.prototype.endLoc = function() {
|
7447 | return this.option("close").endLoc();
|
7448 | };
|
7449 | _i.prototype.isString = function() {
|
7450 | return true;
|
7451 | };
|
7452 | _i.prototype.isTemplate = function() {
|
7453 | return String(this.option("open")) == "`";
|
7454 | };
|
7455 | _i.prototype.escapeString = function(t) {
|
7456 | return t = t.replace(/\n/g, `\\
|
7457 | `);
|
7458 | };
|
7459 | _i.prototype.toArray = function() {
|
7460 | return this._nodes.map(function(e, r) {
|
7461 | return e instanceof br && e._type == "NEOSTRING" ? new de('"' + e._value + '"') : e;
|
7462 | });
|
7463 | };
|
7464 | _i.prototype.js = function(t, e) {
|
7465 | var r = this, i = String(r.option("open") || '"');
|
7466 | if (i.length == 3 && (i = i[0]), e && e.as == "template") {
|
7467 | var s = [];
|
7468 | return r._nodes.map(function(a, l) {
|
7469 | if (a instanceof br && a._type == "NEOSTRING")
|
7470 | return s.push(r.escapeString(a._value));
|
7471 | if (a)
|
7472 | return s.push("${", a.c({expression: true}), "}");
|
7473 | }), "`" + s.join("") + "`";
|
7474 | } else {
|
7475 | var n = r._noparen;
|
7476 | s = [];
|
7477 | var o = n ? "" : "(";
|
7478 | r._nodes.map(function(a, l) {
|
7479 | if (a instanceof br && a._type == "NEOSTRING")
|
7480 | return s.push(i + r.escapeString(a._value) + i);
|
7481 | if (a)
|
7482 | return l == 0 && s.push('""'), a._parens = true, s.push(a.c({expression: true}));
|
7483 | }), o += s.join(" + "), n || (o += ")");
|
7484 | }
|
7485 | return o;
|
7486 | };
|
7487 | function Hs() {
|
7488 | return Ce.apply(this, arguments);
|
7489 | }
|
7490 | A(Hs, Ce);
|
7491 | E.Symbol = Hs;
|
7492 | Hs.prototype.isValidIdentifier = function() {
|
7493 | return !!this.raw().match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/);
|
7494 | };
|
7495 | Hs.prototype.isPrimitive = function(t) {
|
7496 | return true;
|
7497 | };
|
7498 | Hs.prototype.raw = function() {
|
7499 | return this._raw || (this._raw = Pt.sym(this.value().toString().replace(/^\:/, "")));
|
7500 | };
|
7501 | Hs.prototype.js = function(t) {
|
7502 | return "'" + Pt.sym(this.raw()) + "'";
|
7503 | };
|
7504 | function Ra() {
|
7505 | return Ce.apply(this, arguments);
|
7506 | }
|
7507 | A(Ra, Ce);
|
7508 | E.RegExp = Ra;
|
7509 | Ra.prototype.isPrimitive = function() {
|
7510 | return true;
|
7511 | };
|
7512 | Ra.prototype.js = function() {
|
7513 | var t, e = Ra.prototype.__super__.js.apply(this, arguments);
|
7514 | if (t = U1.HEREGEX.exec(e)) {
|
7515 | var r = t[1].replace(U1.HEREGEX_OMIT, "").replace(/\//g, "\\/");
|
7516 | return "/" + (r || "(?:)") + "/" + t[2];
|
7517 | }
|
7518 | return e == "//" ? "/(?:)/" : e;
|
7519 | };
|
7520 | function je() {
|
7521 | return Ce.apply(this, arguments);
|
7522 | }
|
7523 | A(je, Ce);
|
7524 | E.Arr = je;
|
7525 | je.prototype.load = function(t) {
|
7526 | return t instanceof Array ? new ar(t) : t;
|
7527 | };
|
7528 | je.prototype.push = function(t) {
|
7529 | return this.value().push(t), this;
|
7530 | };
|
7531 | je.prototype.count = function() {
|
7532 | return this.value().length;
|
7533 | };
|
7534 | je.prototype.nodes = function() {
|
7535 | var t = this.value();
|
7536 | return t instanceof Array ? t : t.nodes();
|
7537 | };
|
7538 | je.prototype.splat = function() {
|
7539 | return this.value().some(function(t) {
|
7540 | return t instanceof An;
|
7541 | });
|
7542 | };
|
7543 | je.prototype.visit = function() {
|
7544 | return this._value && this._value.traverse && this._value.traverse(), this;
|
7545 | };
|
7546 | je.prototype.isPrimitive = function(t) {
|
7547 | return !this.value().some(function(e) {
|
7548 | return !e.isPrimitive(true);
|
7549 | });
|
7550 | };
|
7551 | je.prototype.js = function(t) {
|
7552 | var e = this._value;
|
7553 | if (!e)
|
7554 | return "[]";
|
7555 | var r = e instanceof Array ? e : e.nodes(), i = e instanceof Array ? Pt.cary(e) : e.c();
|
7556 | return i = "[" + i + "]", this.datatype() && O.tsc() && (i = this.datatype().c() + "(" + i + ")"), i;
|
7557 | };
|
7558 | je.prototype.hasSideEffects = function() {
|
7559 | return this.value().some(function(t) {
|
7560 | return t.hasSideEffects();
|
7561 | });
|
7562 | };
|
7563 | je.prototype.toString = function() {
|
7564 | return "Arr";
|
7565 | };
|
7566 | je.prototype.indented = function(t, e) {
|
7567 | return this._value.indented(t, e), this;
|
7568 | };
|
7569 | je.wrap = function(t) {
|
7570 | return new je(t);
|
7571 | };
|
7572 | function ze() {
|
7573 | return Ce.apply(this, arguments);
|
7574 | }
|
7575 | A(ze, Ce);
|
7576 | E.Obj = ze;
|
7577 | ze.prototype.load = function(t) {
|
7578 | return t instanceof Array ? new So(t) : t;
|
7579 | };
|
7580 | ze.prototype.visit = function() {
|
7581 | return this._value && this._value.traverse(), this;
|
7582 | };
|
7583 | ze.prototype.isPrimitive = function(t) {
|
7584 | return !this.value().some(function(e) {
|
7585 | return !e.isPrimitive(true);
|
7586 | });
|
7587 | };
|
7588 | ze.prototype.js = function(t) {
|
7589 | return "{" + this.value().c() + "}";
|
7590 | };
|
7591 | ze.prototype.add = function(t, e) {
|
7592 | (typeof t == "string" || t instanceof String || t instanceof br) && (t = new At(t));
|
7593 | var r = new _r(t, e);
|
7594 | return this.value().push(r), r;
|
7595 | };
|
7596 | ze.prototype.remove = function(t) {
|
7597 | for (let e = 0, r = It(this.value()), i = r.length, s; e < i; e++)
|
7598 | s = r[e], s.key().symbol() == t && this.value().remove(s);
|
7599 | return this;
|
7600 | };
|
7601 | ze.prototype.keys = function() {
|
7602 | return Object.keys(this.hash());
|
7603 | };
|
7604 | ze.prototype.hash = function() {
|
7605 | var t = {};
|
7606 | for (let e = 0, r = It(this.value()), i = r.length, s; e < i; e++)
|
7607 | s = r[e], s instanceof _r && (t[s.key().symbol()] = s.value());
|
7608 | return t;
|
7609 | };
|
7610 | ze.prototype.key = function(t) {
|
7611 | for (let e = 0, r = It(this.value()), i = r.length, s; e < i; e++)
|
7612 | if (s = r[e], s instanceof _r && s.key().symbol() == t)
|
7613 | return s;
|
7614 | return null;
|
7615 | };
|
7616 | ze.prototype.indented = function(t, e) {
|
7617 | return this._value.indented(t, e), this;
|
7618 | };
|
7619 | ze.prototype.hasSideEffects = function() {
|
7620 | return this.value().some(function(t) {
|
7621 | return t.hasSideEffects();
|
7622 | });
|
7623 | };
|
7624 | ze.wrap = function(t) {
|
7625 | var e = [];
|
7626 | for (let r, i = 0, s = Object.keys(t), n = s.length, o; i < n; i++)
|
7627 | o = s[i], r = t[o], r instanceof Array ? r = je.wrap(r) : r.constructor == Object && (r = ze.wrap(r)), r = v_(r), (typeof o == "string" || o instanceof String) && (o = new At(o)), e.push(new _r(o, r));
|
7628 | return new ze(e);
|
7629 | };
|
7630 | ze.prototype.toString = function() {
|
7631 | return "Obj";
|
7632 | };
|
7633 | function _r(t, e, r) {
|
7634 | this._traversed = false, this._key = t, this._value = e, this._dynamic = t instanceof re, this._defaults = r;
|
7635 | }
|
7636 | A(_r, Z);
|
7637 | E.ObjAttr = _r;
|
7638 | _r.prototype.key = function(t) {
|
7639 | return this._key;
|
7640 | };
|
7641 | _r.prototype.setKey = function(t) {
|
7642 | return this._key = t, this;
|
7643 | };
|
7644 | _r.prototype.value = function(t) {
|
7645 | return this._value;
|
7646 | };
|
7647 | _r.prototype.setValue = function(t) {
|
7648 | return this._value = t, this;
|
7649 | };
|
7650 | _r.prototype.options = function(t) {
|
7651 | return this._options;
|
7652 | };
|
7653 | _r.prototype.setOptions = function(t) {
|
7654 | return this._options = t, this;
|
7655 | };
|
7656 | _r.prototype.visit = function(t, e) {
|
7657 | this.key().traverse(), this.value() && this.value().traverse(), this._defaults && this._defaults.traverse();
|
7658 | let r = e && e.declaring;
|
7659 | return this.key() instanceof Cn ? this.value() || (this.setKey(new At(this.key().value())), this.setValue(J(".", this.scope__().context(), this.key())), this._defaults && (this.setValue(J("=", this.value(), this._defaults)), this._defaults = null)) : this.key() instanceof Na ? this.value() || (this.setValue(J(".", this.scope__().context(), this.key())), this.setKey(new At(this.key().value()))) : this.key() instanceof At && (this.value() || (r ? (this.setValue(this.scope__().register(this.key().symbol(), this.key(), {type: r})), t.registerSemanticToken(this.key(), this.value()), this.setValue(this.value().via(this.key())), this._defaults && (this.setValue(J("=", this.value(), this._defaults)), this._defaults = null)) : (this.setValue(this.scope__().lookup(this.key().symbol())), this.value() || this.setValue(J(".", this.scope__().context(), this.key()))))), this;
|
7660 | };
|
7661 | _r.prototype.js = function(t) {
|
7662 | let e = this.key(), r;
|
7663 | return e instanceof Pe || e instanceof ei ? r = e.asObjectKey() : e instanceof _i ? r = "[" + e.c() + "]" : e.isReserved() ? r = "'" + e.c() + "'" : e instanceof de && e.isValidIdentifier() ? r = e.raw() : r = e.c({as: "key"}), this._defaults ? "" + r + " = " + this._defaults.c() : this.value() ? "" + r + ": " + this.value().c() : "" + r;
|
7664 | };
|
7665 | _r.prototype.hasSideEffects = function() {
|
7666 | return true;
|
7667 | };
|
7668 | _r.prototype.isPrimitive = function(t) {
|
7669 | return !this._value || this._value.isPrimitive(t);
|
7670 | };
|
7671 | function uc() {
|
7672 | return _r.apply(this, arguments);
|
7673 | }
|
7674 | A(uc, _r);
|
7675 | E.ObjRestAttr = uc;
|
7676 | uc.prototype.js = function(t) {
|
7677 | let e = this.key();
|
7678 | return this.value() ? "..." + this.value().c() : "..." + e.c();
|
7679 | };
|
7680 | function n2() {
|
7681 | return Z.apply(this, arguments);
|
7682 | }
|
7683 | A(n2, Z);
|
7684 | E.ArgsReference = n2;
|
7685 | n2.prototype.c = function() {
|
7686 | return "arguments";
|
7687 | };
|
7688 | function si(t) {
|
7689 | this._value = t;
|
7690 | }
|
7691 | A(si, Ce);
|
7692 | E.Self = si;
|
7693 | si.prototype.cache = function() {
|
7694 | return this;
|
7695 | };
|
7696 | si.prototype.reference = function() {
|
7697 | return this;
|
7698 | };
|
7699 | si.prototype.visit = function() {
|
7700 | return this.scope__().context(), this;
|
7701 | };
|
7702 | si.prototype.js = function() {
|
7703 | var t = this.scope__();
|
7704 | return t ? t.context().c() : "this";
|
7705 | };
|
7706 | si.prototype.c = function() {
|
7707 | let t = Tt(this.js(), this._value), e = O.tsc() && this.option("datatype");
|
7708 | return e && (t = "" + e.c() + "(" + t + ")"), t;
|
7709 | };
|
7710 | function ps() {
|
7711 | return si.apply(this, arguments);
|
7712 | }
|
7713 | A(ps, si);
|
7714 | E.This = ps;
|
7715 | ps.prototype.cache = function() {
|
7716 | return this;
|
7717 | };
|
7718 | ps.prototype.reference = function() {
|
7719 | return this;
|
7720 | };
|
7721 | ps.prototype.visit = function() {
|
7722 | return this;
|
7723 | };
|
7724 | ps.prototype.js = function() {
|
7725 | return "this";
|
7726 | };
|
7727 | function re(t, e, r) {
|
7728 | return this._expression = false, this._traversed = false, this._parens = false, this._cache = null, this._invert = false, this._opToken = t, this._op = t && t._value || t, this._op == "and" ? this._op = "&&" : this._op == "or" ? this._op = "||" : this._op == "is" ? this._op = "===" : this._op == "isnt" ? this._op = "!==" : this._op == "not" && (this._op = "!"), this._left = e, this._right = r, this;
|
7729 | }
|
7730 | A(re, Z);
|
7731 | E.Op = re;
|
7732 | re.prototype.op = function(t) {
|
7733 | return this._op;
|
7734 | };
|
7735 | re.prototype.setOp = function(t) {
|
7736 | return this._op = t, this;
|
7737 | };
|
7738 | re.prototype.left = function(t) {
|
7739 | return this._left;
|
7740 | };
|
7741 | re.prototype.setLeft = function(t) {
|
7742 | return this._left = t, this;
|
7743 | };
|
7744 | re.prototype.right = function(t) {
|
7745 | return this._right;
|
7746 | };
|
7747 | re.prototype.setRight = function(t) {
|
7748 | return this._right = t, this;
|
7749 | };
|
7750 | re.prototype.visit = function() {
|
7751 | return this._right && this._right.traverse && this._right.traverse(), this._left && this._left.traverse && this._left.traverse(), this;
|
7752 | };
|
7753 | re.prototype.hasTagRight = function() {
|
7754 | if (this.isLogical()) {
|
7755 | let t = this._left.unwrappedNode(), e = this._right.unwrappedNode();
|
7756 | if (e instanceof Et || e instanceof re && e.hasTagRight() || e instanceof re && e.hasTagRight())
|
7757 | return true;
|
7758 | }
|
7759 | return false;
|
7760 | };
|
7761 | re.prototype.opToIfTree = function() {
|
7762 | if (this.hasTagRight()) {
|
7763 | let t = this._left.unwrappedNode(), e = this._right.unwrappedNode();
|
7764 | if (this._op == "&&")
|
7765 | return t instanceof re && t.hasTagRight() && this._left.warn("Tag not allowed here"), t instanceof re && (t = t.opToIfTree()), e instanceof re && (e = e.opToIfTree()), e instanceof pe ? (e.setTest(J("&&", t, e.test())), e) : new pe(t, new Lt([e])).traverse();
|
7766 | if (this._op == "||")
|
7767 | return t instanceof re && (t = t.opToIfTree()), t instanceof pe ? t.addElse(new Lt([e])) : new pe(t, new Lt([])).addElse(new Lt([e])).traverse();
|
7768 | }
|
7769 | return this;
|
7770 | };
|
7771 | re.prototype.isExpressable = function() {
|
7772 | return !this.right() || this.right().isExpressable();
|
7773 | };
|
7774 | re.prototype.startLoc = function() {
|
7775 | let t = this._left;
|
7776 | return t && t.startLoc ? t.startLoc() : re.prototype.__super__.startLoc.apply(this, arguments);
|
7777 | };
|
7778 | re.prototype.js = function(t) {
|
7779 | var e = null, r = this._op;
|
7780 | let i = r;
|
7781 | var s = this._left, n = this._right;
|
7782 | if (r == "!&")
|
7783 | return "(" + Fs(s) + " " + Tt("&", this._opToken) + " " + Fs(n) + ")==0";
|
7784 | if (r == "??") {
|
7785 | let o = J1(J("!=", s.cache(), Gs), s, n, {type: "?"});
|
7786 | return o._scope._systemscope = this.stack().scope(), o.c({expression: true});
|
7787 | } else {
|
7788 | if (r == "|=?")
|
7789 | return pe.ternary(J("!&", s, n.cache()), new Ae([J("|=", s, n), hc]), pc).c();
|
7790 | if (r == "~=?")
|
7791 | return pe.ternary(J("&", s, n.cache()), new Ae([J("~=", s, n), hc]), pc).c();
|
7792 | if (r == "^=?")
|
7793 | return J("!!", J("&", J("^=", s, n.cache()), n)).c();
|
7794 | if (r == "=?")
|
7795 | return n.cache(), pe.ternary(J("!=", s, n), new Ae([J("=", s, n), hc]), pc).c();
|
7796 | }
|
7797 | if (s instanceof Z && (s = s.c()), n instanceof Z && (n = n.c()), s && n)
|
7798 | e || (e = "" + s + " " + Tt(r, this._opToken) + " " + n);
|
7799 | else if (s) {
|
7800 | let o = this._opToken && this._opToken.spaced ? " " : "";
|
7801 | e || (e = "" + Tt(r, this._opToken) + o + s);
|
7802 | }
|
7803 | return e;
|
7804 | };
|
7805 | re.prototype.isString = function() {
|
7806 | return this._op == "+" && this._left && this._left.isString();
|
7807 | };
|
7808 | re.prototype.isLogical = function() {
|
7809 | return this._op == "&&" || this._op == "||";
|
7810 | };
|
7811 | re.prototype.shouldParenthesize = function() {
|
7812 | return this._parens;
|
7813 | };
|
7814 | re.prototype.precedence = function() {
|
7815 | return 10;
|
7816 | };
|
7817 | re.prototype.consume = function(t) {
|
7818 | if (this.isExpressable())
|
7819 | return re.prototype.__super__.consume.apply(this, arguments);
|
7820 | var e = this.scope__().declare("tmp", null, {system: true}), r = J(this.op(), this.left(), null), i = this.right().consume(r);
|
7821 | return t && i.consume(t), i;
|
7822 | };
|
7823 | function os() {
|
7824 | return re.apply(this, arguments);
|
7825 | }
|
7826 | A(os, re);
|
7827 | E.ComparisonOp = os;
|
7828 | os.prototype.invert = function() {
|
7829 | var t = this._op, e = ["==", "!=", "===", "!==", ">", "<=", "<", ">="], r = e.indexOf(t);
|
7830 | return r += r % 2 ? -1 : 1, this.setOp(e[r]), this._invert = !this._invert, this;
|
7831 | };
|
7832 | os.prototype.c = function() {
|
7833 | return this.left() instanceof os ? (this.left().right().cache(), J("&&", this.left(), J(this.op(), this.left().right(), this.right())).c()) : os.prototype.__super__.c.apply(this, arguments);
|
7834 | };
|
7835 | os.prototype.js = function(t) {
|
7836 | var e = this._op, r = this._left, i = this._right;
|
7837 | return r instanceof Z && (r = r.c()), i instanceof Z && (i = i.c()), "" + r + " " + Tt(e, this._opToken) + " " + i;
|
7838 | };
|
7839 | function ti() {
|
7840 | return re.apply(this, arguments);
|
7841 | }
|
7842 | A(ti, re);
|
7843 | E.UnaryOp = ti;
|
7844 | ti.prototype.invert = function() {
|
7845 | return this.op() == "!" ? this.left() : ti.prototype.__super__.invert.apply(this, arguments);
|
7846 | };
|
7847 | ti.prototype.isTruthy = function() {
|
7848 | var t = Pt.truthy(this.left());
|
7849 | return t !== void 0 ? !t : void 0;
|
7850 | };
|
7851 | ti.prototype.startLoc = function() {
|
7852 | let t = this._left || this._op;
|
7853 | return t && t.startLoc ? t.startLoc() : this._startLoc;
|
7854 | };
|
7855 | ti.prototype.js = function(t) {
|
7856 | var e = this._left, r = this._right, i = this.op(), s = this._opToken && this._opToken.spaced ? " " : "";
|
7857 | if (i == "not" && (i = "!"), i == "!" || i == "!!") {
|
7858 | var n = e.c(), o = e.shouldParenthesize(this);
|
7859 | return (n.match(/^\!?([\w\.]+)$/) || e instanceof Ae || o || e instanceof se || e instanceof ke) && !n.match(/[\s\&\|]/) || (n = "(" + n + ")"), "" + i + n;
|
7860 | } else
|
7861 | return this.left() ? "" + e.c() + s + i : "" + i + s + r.c();
|
7862 | };
|
7863 | ti.prototype.normalize = function() {
|
7864 | if (this.op() == "!")
|
7865 | return this;
|
7866 | var t = (this.left() || this.right()).node();
|
7867 | return this;
|
7868 | };
|
7869 | ti.prototype.consume = function(t) {
|
7870 | var e = this.normalize();
|
7871 | return e == this ? ti.prototype.__super__.consume.apply(this, arguments) : e.consume(t);
|
7872 | };
|
7873 | ti.prototype.c = function() {
|
7874 | var t = this.normalize();
|
7875 | return t == this ? ti.prototype.__super__.c.apply(this, arguments) : t.c();
|
7876 | };
|
7877 | function q1() {
|
7878 | return re.apply(this, arguments);
|
7879 | }
|
7880 | A(q1, re);
|
7881 | E.InstanceOf = q1;
|
7882 | q1.prototype.js = function(t) {
|
7883 | if (this.right() instanceof At || this.right() instanceof he) {
|
7884 | var e = Pt.c(this.right().value()), r = this.left().node();
|
7885 | if (da(e, ["String", "Number", "Boolean"]) >= 0)
|
7886 | return O.tsc() ? "(typeof " + r.c() + "=='" + e.toLowerCase() + "')" : (r instanceof Oi || r.cache(), "(typeof " + r.c() + "=='" + e.toLowerCase() + "'||" + r.c() + " instanceof " + e + ")");
|
7887 | }
|
7888 | var i = "" + this.left().c() + " instanceof " + this.right().c();
|
7889 | return t.parent() instanceof re && (i = be.parenthesize(i)), i;
|
7890 | };
|
7891 | function X1() {
|
7892 | return re.apply(this, arguments);
|
7893 | }
|
7894 | A(X1, re);
|
7895 | E.TypeOf = X1;
|
7896 | X1.prototype.js = function(t) {
|
7897 | return "typeof " + this.left().c();
|
7898 | };
|
7899 | function ga() {
|
7900 | return re.apply(this, arguments);
|
7901 | }
|
7902 | A(ga, re);
|
7903 | E.Delete = ga;
|
7904 | ga.prototype.js = function(t) {
|
7905 | var e = this.left(), r = this.scope__().temporary(this, {pool: "val"}), t = J("=", r, e);
|
7906 | return "(" + t.c() + ",delete " + e.c() + ", " + r.c() + ")";
|
7907 | };
|
7908 | ga.prototype.shouldParenthesize = function() {
|
7909 | return true;
|
7910 | };
|
7911 | function va() {
|
7912 | return re.apply(this, arguments);
|
7913 | }
|
7914 | A(va, re);
|
7915 | E.In = va;
|
7916 | va.prototype.invert = function() {
|
7917 | return this._invert = !this._invert, this;
|
7918 | };
|
7919 | va.prototype.js = function(t) {
|
7920 | var e = this.util().contains(this.left(), this.right());
|
7921 | return "" + (this._invert ? "!" : "") + e.c();
|
7922 | };
|
7923 | function se(t, e, r) {
|
7924 | return this._expression = false, this._traversed = false, this._parens = false, this._cache = null, this._invert = false, this._op = t && t._value || t, this._left = e, this._right = r, this;
|
7925 | }
|
7926 | A(se, re);
|
7927 | E.Access = se;
|
7928 | se.prototype.startLoc = function() {
|
7929 | return (this._left || this._right).startLoc();
|
7930 | };
|
7931 | se.prototype.endLoc = function() {
|
7932 | return this._right && this._right.endLoc();
|
7933 | };
|
7934 | se.prototype.clone = function(t, e) {
|
7935 | var r = this.constructor;
|
7936 | return new r(this.op(), t, e);
|
7937 | };
|
7938 | se.prototype.isRuntimeReference = function() {
|
7939 | return this.left() instanceof he && this.left()._variable instanceof zs ? this.right() instanceof At ? this.right().toString() : true : false;
|
7940 | };
|
7941 | se.prototype.js = function(t) {
|
7942 | var e, r = null, i = this.left(), s = this.right(), n = null;
|
7943 | if (i instanceof he && i._variable instanceof xr)
|
7944 | return i._variable.access(s, i).c();
|
7945 | s instanceof br && (s = new At(s));
|
7946 | var o = i || this.scope__().context(), a = "", l = "";
|
7947 | let p = this.safechain() ? "?" : "";
|
7948 | if (this._startLoc || (this._startLoc = (i || s).startLoc()), i instanceof Xe && t.method() && t.method().option("inExtension"), s instanceof as && s.value() instanceof Ie && (s = s.value()), s instanceof Ie)
|
7949 | return s.toNumber() < 0 ? p ? this.util().optNegIndex(o, s).c() : this.util().negIndex(o, s).c() : o.c() + ("" + (p ? "?." : "") + "[") + s.c() + "]";
|
7950 | s instanceof as && (s.value() instanceof de || s.value() instanceof Hs) && (s = s.value()), s instanceof de && s.isValidIdentifier() || s instanceof Hs && s.isValidIdentifier() ? r = s.raw() : s instanceof o2 ? s = s.value() : s instanceof ei || s instanceof At && s.isValidIdentifier() && (r = s.c());
|
7951 | var c = r ? o ? "" + p + "." + r : r : (e = s instanceof Z ? s.c({expression: true, as: "value"}) : s, "" + (p ? "?." : "") + "[" + e + "]");
|
7952 | let _ = t.up(), f = this.option("datatype");
|
7953 | return o && (this instanceof Us && f && t.tsc() && _ instanceof Lt, c = o.c() + c), this instanceof Us && (c = Tt(c, s._token || s._value)), f && (!(_ instanceof Ve) || _.right().node() == this) && (_ instanceof Lt && (this instanceof Us || i instanceof si) ? c = f.c() + " " + c : c = f.c() + "(" + c + ")"), c = a + c, a && (c = "(" + c + ")"), c;
|
7954 | };
|
7955 | se.prototype.visit = function() {
|
7956 | let t = this.left();
|
7957 | this.left() && this.left().traverse(), this.right() && this.right().traverse(), this._left || (this._left = this.scope__().context());
|
7958 | };
|
7959 | se.prototype.isExpressable = function() {
|
7960 | return true;
|
7961 | };
|
7962 | se.prototype.alias = function() {
|
7963 | return this.right() instanceof At ? this.right().alias() : se.prototype.__super__.alias.call(this);
|
7964 | };
|
7965 | se.prototype.safechain = function() {
|
7966 | return String(this._op) == "?.";
|
7967 | };
|
7968 | se.prototype.cache = function(t) {
|
7969 | return this.right() instanceof Cn && !this.left() ? this : se.prototype.__super__.cache.call(this, t);
|
7970 | };
|
7971 | se.prototype.shouldParenthesizeInTernary = function() {
|
7972 | return this._parens || this._cache;
|
7973 | };
|
7974 | function Us() {
|
7975 | return se.apply(this, arguments);
|
7976 | }
|
7977 | A(Us, se);
|
7978 | E.ImplicitAccess = Us;
|
7979 | Us.prototype.datatype = function() {
|
7980 | return Us.prototype.__super__.datatype.apply(this, arguments) || this._right.datatype();
|
7981 | };
|
7982 | function Oi() {
|
7983 | return se.apply(this, arguments);
|
7984 | }
|
7985 | A(Oi, se);
|
7986 | E.LocalVarAccess = Oi;
|
7987 | Oi.prototype.safechain = function(t) {
|
7988 | return this._safechain;
|
7989 | };
|
7990 | Oi.prototype.setSafechain = function(t) {
|
7991 | return this._safechain = t, this;
|
7992 | };
|
7993 | Oi.prototype.js = function(t) {
|
7994 | return this.right() instanceof Ft && this.right().type() == "meth" && !(this.up() instanceof ke) ? "" + this.right().c() + "()" : this.right().c();
|
7995 | };
|
7996 | Oi.prototype.variable = function() {
|
7997 | return this.right();
|
7998 | };
|
7999 | Oi.prototype.cache = function(t) {
|
8000 | return t === void 0 && (t = {}), t.force && Oi.prototype.__super__.cache.call(this, t), this;
|
8001 | };
|
8002 | Oi.prototype.alias = function() {
|
8003 | return this.variable()._alias || Oi.prototype.__super__.alias.call(this);
|
8004 | };
|
8005 | function qi(t, e, r) {
|
8006 | return this._traversed = false, this._invert = false, this._parens = false, this._expression = false, this._cache = null, this._op = t, this._left = e, this._right = r, this;
|
8007 | }
|
8008 | A(qi, se);
|
8009 | E.PropertyAccess = qi;
|
8010 | qi.prototype.visit = function() {
|
8011 | return this._right && this._right.traverse(), this._left && this._left.traverse(), this;
|
8012 | };
|
8013 | qi.prototype.js = function(t) {
|
8014 | var e = this.up(), r = "" + qi.prototype.__super__.js.call(this, t);
|
8015 | return r;
|
8016 | };
|
8017 | qi.prototype.receiver = function() {
|
8018 | return this.left() instanceof Xe ? S_ : null;
|
8019 | };
|
8020 | function Tn() {
|
8021 | return se.apply(this, arguments);
|
8022 | }
|
8023 | A(Tn, se);
|
8024 | E.IvarAccess = Tn;
|
8025 | Tn.prototype.visit = function() {
|
8026 | return this._right && this._right.traverse(), this._left ? this._left.traverse() : this.scope__().context(), this;
|
8027 | };
|
8028 | Tn.prototype.cache = function() {
|
8029 | return this;
|
8030 | };
|
8031 | function Oa() {
|
8032 | return se.apply(this, arguments);
|
8033 | }
|
8034 | A(Oa, se);
|
8035 | E.IndexAccess = Oa;
|
8036 | Oa.prototype.cache = function(t) {
|
8037 | return t === void 0 && (t = {}), t.force ? Oa.prototype.__super__.cache.apply(this, arguments) : (this.right().cache(), this);
|
8038 | };
|
8039 | function fc() {
|
8040 | return Ut.apply(this, arguments);
|
8041 | }
|
8042 | A(fc, Ut);
|
8043 | E.VarAccess = fc;
|
8044 | function he(t) {
|
8045 | this._traversed = false, this._parens = false, this._value = t, this._identifier = t, this._token = t._value, this._variable = null;
|
8046 | }
|
8047 | A(he, Ut);
|
8048 | E.VarOrAccess = he;
|
8049 | he.prototype.isGlobal = function(t) {
|
8050 | return this._variable && this._variable.isGlobal(t);
|
8051 | };
|
8052 | he.prototype.startLoc = function() {
|
8053 | return this._token.startLoc();
|
8054 | };
|
8055 | he.prototype.endLoc = function() {
|
8056 | return this._token.endLoc();
|
8057 | };
|
8058 | he.prototype.visit = function(t, e) {
|
8059 | var r, i = this.scope__(), s = this.value().symbol();
|
8060 | if (e && e.declaring && (r = i.register(this.value(), this, {type: e.declaring})), r || (r = i.lookup(this.value().symbol())), r && r instanceof Ln) {
|
8061 | let n = r.name();
|
8062 | r instanceof Dn && !t.tsc() ? this._value = r.forScope(i) : t.tsc() ? this._value = Rt(n) : t.isNode() ? (this._value = Rt(i.imba().c()), n != "imba" && (this._value = Rt("" + i.imba().c() + "." + n))) : this._value = Rt(n);
|
8063 | } else if (r && r.declarator()) {
|
8064 | let n = r.scope();
|
8065 | if (n == i && !r._initialized) {
|
8066 | let o = i.parent().lookup(this.value());
|
8067 | o && (r._virtual = true, r._shadowing = o, r = o);
|
8068 | }
|
8069 | if (r && r._initialized || i.closure() != n.closure())
|
8070 | return this._variable = r, r.addReference(this), this._value = r, this._token._variable = r, t.registerSemanticToken(this._token, r), this;
|
8071 | } else if (this.value().symbol() == "self")
|
8072 | this._value = i.context();
|
8073 | else if (!this._identifier.isCapitalized()) {
|
8074 | let n = i.lookup("self"), o = i.context();
|
8075 | !n && o.isGlobalContext() ? this._includeType = true : (o = n || o, this._value = new Us(".", o, this._value).set({datatype: this.datatype()}), t.registerSemanticToken(this._token, "accessor"));
|
8076 | }
|
8077 | return this;
|
8078 | };
|
8079 | he.prototype.js = function(t) {
|
8080 | if (this._tagref)
|
8081 | return this._tagref.ref();
|
8082 | let e = this._variable || this._value;
|
8083 | if (this._variable && this._variable.declarator() != this) {
|
8084 | if (O.tsc() && e._typedAlias)
|
8085 | return e._typedAlias.c();
|
8086 | let r = this.datatype();
|
8087 | if (r)
|
8088 | return r.c() + "(" + this._variable.c() + ")";
|
8089 | }
|
8090 | return e.c();
|
8091 | };
|
8092 | he.prototype.node = function() {
|
8093 | return this._variable ? this : this.value();
|
8094 | };
|
8095 | he.prototype.datatype = function() {
|
8096 | return he.prototype.__super__.datatype.apply(this, arguments) || this._identifier.datatype();
|
8097 | };
|
8098 | he.prototype.symbol = function() {
|
8099 | return this._identifier.symbol();
|
8100 | };
|
8101 | he.prototype.cache = function(t) {
|
8102 | return t === void 0 && (t = {}), this._variable ? t.force ? he.prototype.__super__.cache.call(this, t) : this : this.value().cache(t);
|
8103 | };
|
8104 | he.prototype.decache = function() {
|
8105 | return this._variable ? he.prototype.__super__.decache.call(this) : this.value().decache(), this;
|
8106 | };
|
8107 | he.prototype.dom = function() {
|
8108 | return this.value().dom();
|
8109 | };
|
8110 | he.prototype.safechain = function() {
|
8111 | return this._identifier.safechain();
|
8112 | };
|
8113 | he.prototype.dump = function() {
|
8114 | return {loc: this.loc()};
|
8115 | };
|
8116 | he.prototype.loc = function() {
|
8117 | var t = this._identifier.region();
|
8118 | return t || [0, 0];
|
8119 | };
|
8120 | he.prototype.region = function() {
|
8121 | return this._identifier.region();
|
8122 | };
|
8123 | he.prototype.shouldParenthesizeInTernary = function() {
|
8124 | return this._cache || this._value && this._value._cache || this._parens;
|
8125 | };
|
8126 | he.prototype.toString = function() {
|
8127 | return "VarOrAccess(" + this.value() + ")";
|
8128 | };
|
8129 | he.prototype.toJSON = function() {
|
8130 | return {type: this.typeName(), value: this._identifier.toString()};
|
8131 | };
|
8132 | function Oe(t, e) {
|
8133 | t instanceof he ? (t = t.value(), this._variable = null) : t instanceof Ft && (this._variable = t, t = ""), Oe.prototype.__super__.constructor.call(this, t), this._export = false, this._type = e && String(e), this._declared = true;
|
8134 | }
|
8135 | A(Oe, Ut);
|
8136 | E.VarReference = Oe;
|
8137 | Oe.prototype.variable = function(t) {
|
8138 | return this._variable;
|
8139 | };
|
8140 | Oe.prototype.setVariable = function(t) {
|
8141 | return this._variable = t, this;
|
8142 | };
|
8143 | Oe.prototype.declared = function(t) {
|
8144 | return this._declared;
|
8145 | };
|
8146 | Oe.prototype.setDeclared = function(t) {
|
8147 | return this._declared = t, this;
|
8148 | };
|
8149 | Oe.prototype.type = function(t) {
|
8150 | return this._type;
|
8151 | };
|
8152 | Oe.prototype.setType = function(t) {
|
8153 | return this._type = t, this;
|
8154 | };
|
8155 | Oe.prototype.datatype = function() {
|
8156 | return Oe.prototype.__super__.datatype.apply(this, arguments) || (this._value.datatype ? this._value.datatype() : null);
|
8157 | };
|
8158 | Oe.prototype.loc = function() {
|
8159 | return this._value.region();
|
8160 | };
|
8161 | Oe.prototype.declare = function() {
|
8162 | return this;
|
8163 | };
|
8164 | Oe.prototype.consume = function(t) {
|
8165 | return this.forceExpression(), this;
|
8166 | };
|
8167 | Oe.prototype.forceExpression = function() {
|
8168 | if (this._expression != true) {
|
8169 | this._expression = true;
|
8170 | for (let t = 0, e = It(this._variables), r = e.length, i; t < r; t++)
|
8171 | i = e[t], i._type = "let", i._virtual = true, i.autodeclare();
|
8172 | }
|
8173 | return this;
|
8174 | };
|
8175 | Oe.prototype.visit = function(t, e) {
|
8176 | var r = this, i = [], s = t;
|
8177 | let n = r.scope__();
|
8178 | return r._variables = n.captureVariableDeclarations(function() {
|
8179 | if (r._value.traverse({declaring: r._type, variables: i}), r._value instanceof At)
|
8180 | return r._value._variable || (r._value._variable = n.register(r._value.symbol(), r._value, {type: r._type, datatype: r.datatype()})), t.registerSemanticToken(r._value, r._variable);
|
8181 | }), r;
|
8182 | };
|
8183 | Oe.prototype.js = function(t, e) {
|
8184 | let r = this._value.c(), i = O.tsc() && this.datatype();
|
8185 | if (this._right) {
|
8186 | let s = this._right.c({expression: true});
|
8187 | i && (s = "" + i.c() + "(" + s + ")"), r += " = " + s;
|
8188 | }
|
8189 | if (this._expression)
|
8190 | this._value instanceof ze && (r = "(" + r + ")");
|
8191 | else {
|
8192 | if (O.tsc() && this._variables.length > 1 && this._variables.some(function(s) {
|
8193 | return s.vartype();
|
8194 | })) {
|
8195 | let s = this._type, n = "";
|
8196 | for (let o = 0, a = It(this._variables), l = a.length, p; o < l; o++)
|
8197 | p = a[o], p.vartype() && (n += p.vartype().c() + " "), n += "" + Tt(s, this._keyword) + " " + p.c() + `;
|
8198 | `;
|
8199 | return this._value instanceof ze && (r = "(" + r + ")"), n += "" + r, n;
|
8200 | }
|
8201 | r = "" + this._type + " " + r, this.option("export") && (r = "" + Tt("export", this.option("export")) + " " + r), !this._right && i && (r = i.c() + " " + r);
|
8202 | }
|
8203 | return r;
|
8204 | };
|
8205 | function Ve(t, e, r) {
|
8206 | return this._expression = false, this._traversed = false, this._parens = false, this._cache = null, this._invert = false, this._opToken = t, this._op = t && t._value || t, this._left = e, this._right = r, this;
|
8207 | }
|
8208 | A(Ve, re);
|
8209 | E.Assign = Ve;
|
8210 | Ve.prototype.isExpressable = function() {
|
8211 | return !this.right() || this.right().isExpressable();
|
8212 | };
|
8213 | Ve.prototype.isUsed = function() {
|
8214 | return !(this.up() instanceof Lt);
|
8215 | };
|
8216 | Ve.prototype.visit = function() {
|
8217 | var t = this._left, e = this._right;
|
8218 | t instanceof he && e instanceof he && t._identifier.symbol() == e._identifier.symbol() && (this._left = t = new se(".", this.scope__().context(), t._value)), t instanceof Oe && e instanceof s2 && t.traverse(), e && e.traverse({assignment: true}), t && t.traverse();
|
8219 | let r = O.up();
|
8220 | return t instanceof Oe && !(r instanceof Lt) && !(r instanceof Ri) && !(r instanceof fs) && t.forceExpression(), this;
|
8221 | };
|
8222 | Ve.prototype.c = function(t) {
|
8223 | return this.right().isExpressable() ? Ve.prototype.__super__.c.call(this, t) : (this.left() instanceof Oe && (!(this.right() instanceof De) || this._expression) && this.left().forceExpression(), this.right().consume(this).c(t));
|
8224 | };
|
8225 | Ve.prototype.js = function(t) {
|
8226 | var e, r;
|
8227 | if (!this.right().isExpressable())
|
8228 | return this.p("Assign#js right is not expressable "), this.left() instanceof Oe && this.left().forceExpression(), this.right().consume(this).c();
|
8229 | this._expression && this.left().forceExpression();
|
8230 | var i = this.left().node(), s = this.right();
|
8231 | if (i instanceof se && i.left() instanceof Xe && (e = O.method()) && e.option("inExtension")) {
|
8232 | let l = i.right();
|
8233 | return l instanceof At && (l = l.toStr()), He(J(".", this.scope__().context(), "super$set"), [l, this.right()]).c({expression: true});
|
8234 | }
|
8235 | if (i instanceof si) {
|
8236 | var n = this.scope__().context();
|
8237 | i = n.reference();
|
8238 | }
|
8239 | if (i instanceof Oe)
|
8240 | return i._right = s, i.c();
|
8241 | var o = i.c(), a = "" + o + " " + this.op() + " " + this.right().c({expression: true});
|
8242 | return (r = this.datatype() || i && !(i instanceof Oe) && i.datatype()) && (a = r.c() + " " + a), i instanceof ze && (a = "(" + a + ")"), a;
|
8243 | };
|
8244 | Ve.prototype.shouldParenthesize = function(t) {
|
8245 | return t === void 0 && (t = this.up()), this._parens || t instanceof re && t.op() != "=";
|
8246 | };
|
8247 | Ve.prototype.consume = function(t) {
|
8248 | if (t instanceof Et)
|
8249 | return this.right() instanceof Et ? (this.right().set({assign: this.left()}), this.right().consume(t)) : this;
|
8250 | if (t instanceof Qe && this.left() instanceof Oe) {
|
8251 | if (O.tsc()) {
|
8252 | let r = this._right, i = this._left._variables, s = i[0] ? new fc(i[0]).consume(t) : t;
|
8253 | return new Lt([this, Fe, s]);
|
8254 | }
|
8255 | this.left().forceExpression();
|
8256 | }
|
8257 | if (this.isExpressable())
|
8258 | return this.forceExpression(), Ve.prototype.__super__.consume.call(this, t);
|
8259 | var e = this.right().consume(this);
|
8260 | return e.consume(t);
|
8261 | };
|
8262 | function ii() {
|
8263 | return Ve.apply(this, arguments);
|
8264 | }
|
8265 | A(ii, Ve);
|
8266 | E.PushAssign = ii;
|
8267 | ii.prototype.consumed = function(t) {
|
8268 | return this._consumed;
|
8269 | };
|
8270 | ii.prototype.setConsumed = function(t) {
|
8271 | return this._consumed = t, this;
|
8272 | };
|
8273 | ii.prototype.register = function(t) {
|
8274 | return this._consumed || (this._consumed = []), this._consumed.push(t), this;
|
8275 | };
|
8276 | ii.prototype.js = function(t) {
|
8277 | return "" + this.left().c() + ".push(" + this.right().c() + ")";
|
8278 | };
|
8279 | ii.prototype.consume = function(t) {
|
8280 | return this;
|
8281 | };
|
8282 | function Ca() {
|
8283 | return ii.apply(this, arguments);
|
8284 | }
|
8285 | A(Ca, ii);
|
8286 | E.TagPushAssign = Ca;
|
8287 | Ca.prototype.js = function(t) {
|
8288 | return "" + this.left().c() + ".push(" + this.right().c() + ")";
|
8289 | };
|
8290 | Ca.prototype.consume = function(t) {
|
8291 | return this;
|
8292 | };
|
8293 | function Cs() {
|
8294 | return Ve.apply(this, arguments);
|
8295 | }
|
8296 | A(Cs, Ve);
|
8297 | E.ConditionalAssign = Cs;
|
8298 | Cs.prototype.consume = function(t) {
|
8299 | return this.normalize().consume(t);
|
8300 | };
|
8301 | Cs.prototype.normalize = function() {
|
8302 | var t = this.left().node(), e = t;
|
8303 | t instanceof se && (t.left() && t.left().cache(), e = t.clone(t.left(), t.right()), t instanceof qi && t.cache(), (t instanceof Oa || t.right() instanceof Pe) && t.right().cache());
|
8304 | var r = this.right().isExpressable(), i = null;
|
8305 | return r && this.op() == "||=" ? i = J("||", t, J("=", e, this.right())) : r && this.op() == "&&=" ? i = J("&&", t, J("=", e, this.right())) : (i = J1(this.condition(), J("=", e, this.right()), t), i.setScope(null)), i.isExpressable() && i.toExpression(), i;
|
8306 | };
|
8307 | Cs.prototype.c = function() {
|
8308 | return this.normalize().c();
|
8309 | };
|
8310 | Cs.prototype.condition = function() {
|
8311 | return this.op() == "?=" || this.op() == "??=" ? J("==", this.left(), Gs) : this.op() == "||=" ? J("!", this.left()) : this.op() == "&&=" ? this.left() : this.op() == "!?=" ? J("!=", this.left(), Gs) : this.left();
|
8312 | };
|
8313 | Cs.prototype.js = function(t) {
|
8314 | var e = J1(this.condition(), J("=", this.left(), this.right()), this.left());
|
8315 | return e.setScope(null), e.isExpressable() && e.toExpression(), e.c();
|
8316 | };
|
8317 | function Ls() {
|
8318 | return Ve.apply(this, arguments);
|
8319 | }
|
8320 | A(Ls, Ve);
|
8321 | E.CompoundAssign = Ls;
|
8322 | Ls.prototype.consume = function(t) {
|
8323 | if (this.isExpressable())
|
8324 | return Ls.prototype.__super__.consume.apply(this, arguments);
|
8325 | var e = this.normalize();
|
8326 | return e != this || (e = this.right().consume(this)), e.consume(t);
|
8327 | };
|
8328 | Ls.prototype.normalize = function() {
|
8329 | var t = this.left().node();
|
8330 | if (!(t instanceof qi))
|
8331 | return this;
|
8332 | t.left() && t.left().cache();
|
8333 | var e = J("=", this.left(), J(this.op()[0], this.left(), this.right()));
|
8334 | return e.isExpressable() && e.toExpression(), e;
|
8335 | };
|
8336 | Ls.prototype.c = function() {
|
8337 | var t = this.normalize();
|
8338 | if (t == this)
|
8339 | return Ls.prototype.__super__.c.apply(this, arguments);
|
8340 | var e = O.current();
|
8341 | return e instanceof Lt && e.replace(this, t), t.c();
|
8342 | };
|
8343 | function Xi(t) {
|
8344 | this._value = t;
|
8345 | }
|
8346 | A(Xi, Z);
|
8347 | E.TypeAnnotation = Xi;
|
8348 | Xi.prototype.add = function(t) {
|
8349 | return this._parts.push(t);
|
8350 | };
|
8351 | Xi.prototype.startLoc = function() {
|
8352 | return this._value.startLoc() + 1;
|
8353 | };
|
8354 | Xi.prototype.endLoc = function() {
|
8355 | return this._value.endLoc();
|
8356 | };
|
8357 | Xi.prototype.asParam = function(t) {
|
8358 | return "@param {" + this.asRawType() + "} " + t;
|
8359 | };
|
8360 | Xi.prototype.asRawType = function() {
|
8361 | let t = String(this._value).slice(1);
|
8362 | return t = t.replace(/(^|[\[\,])\<([a-z\-\d]+)\>/g, function(e, r, i) {
|
8363 | return r + new ce(i).toClassName();
|
8364 | }), Tt(t, this);
|
8365 | };
|
8366 | Xi.prototype.asIteratorValue = function() {
|
8367 | return console.log("asInteratorValue"), this.wrapDoc(this.asRawType() + "[]");
|
8368 | };
|
8369 | Xi.prototype.wrapDoc = function(t) {
|
8370 | return "/**@type {" + t + "}*/";
|
8371 | };
|
8372 | Xi.prototype.c = function() {
|
8373 | return "/**@type {" + this.asRawType() + "}*/";
|
8374 | };
|
8375 | function At(t) {
|
8376 | t instanceof br && (this._startLoc = t.startLoc()), this._value = this.load(t), this._symbol = null, ("" + t).indexOf("?") >= 0 && (this._safechain = true);
|
8377 | }
|
8378 | A(At, Z);
|
8379 | E.Identifier = At;
|
8380 | At.prototype.safechain = function(t) {
|
8381 | return this._safechain;
|
8382 | };
|
8383 | At.prototype.setSafechain = function(t) {
|
8384 | return this._safechain = t, this;
|
8385 | };
|
8386 | At.prototype.value = function(t) {
|
8387 | return this._value;
|
8388 | };
|
8389 | At.prototype.setValue = function(t) {
|
8390 | return this._value = t, this;
|
8391 | };
|
8392 | At.prototype.variable = function(t) {
|
8393 | return this._variable;
|
8394 | };
|
8395 | At.prototype.setVariable = function(t) {
|
8396 | return this._variable = t, this;
|
8397 | };
|
8398 | At.prototype.isStatic = function() {
|
8399 | return true;
|
8400 | };
|
8401 | At.prototype.toRaw = function() {
|
8402 | return this._value._value || this._value;
|
8403 | };
|
8404 | At.prototype.add = function(t) {
|
8405 | return new Pe(this).add(t);
|
8406 | };
|
8407 | At.prototype.references = function(t) {
|
8408 | return this._value && (this._value._variable = t), this._value && O.registerSemanticToken(this._value, t), this;
|
8409 | };
|
8410 | At.prototype.load = function(t) {
|
8411 | return t instanceof At ? t.value() : t;
|
8412 | };
|
8413 | At.prototype.traverse = function() {
|
8414 | return this;
|
8415 | };
|
8416 | At.prototype.visit = function() {
|
8417 | return this._value instanceof Z && this._value.traverse(), this;
|
8418 | };
|
8419 | At.prototype.region = function() {
|
8420 | return [this._value._loc, this._value._loc + this._value._len];
|
8421 | };
|
8422 | At.prototype.startLoc = function() {
|
8423 | return this._value && this._value.startLoc ? this._value.startLoc() : null;
|
8424 | };
|
8425 | At.prototype.endLoc = function() {
|
8426 | return this._value && this._value.endLoc ? this._value.endLoc() : null;
|
8427 | };
|
8428 | At.prototype.loc = function() {
|
8429 | return [this.startLoc(), this.endLoc()];
|
8430 | };
|
8431 | At.prototype.isValidIdentifier = function() {
|
8432 | return be.isValidIdentifier(this.symbol());
|
8433 | };
|
8434 | At.prototype.isReserved = function() {
|
8435 | return this._value.reserved || k_.test(String(this._value));
|
8436 | };
|
8437 | At.prototype.isPredicate = function() {
|
8438 | return /\?$/.test(String(this._value));
|
8439 | };
|
8440 | At.prototype.isCapitalized = function() {
|
8441 | return /^[A-Z]/.test(String(this._value));
|
8442 | };
|
8443 | At.prototype.isInternal = function() {
|
8444 | return /^\$/.test(String(this._value));
|
8445 | };
|
8446 | At.prototype.symbol = function() {
|
8447 | return this._symbol || (this._symbol = Pt.sym(this.value()));
|
8448 | };
|
8449 | At.prototype.toString = function() {
|
8450 | return String(this._value);
|
8451 | };
|
8452 | At.prototype.toStr = function() {
|
8453 | return new de("'" + this.symbol() + "'");
|
8454 | };
|
8455 | At.prototype.toAttrString = function() {
|
8456 | return new de("'" + String(this._value) + "'");
|
8457 | };
|
8458 | At.prototype.toJSON = function() {
|
8459 | return this.toString();
|
8460 | };
|
8461 | At.prototype.alias = function() {
|
8462 | return Pt.sym(this._value);
|
8463 | };
|
8464 | At.prototype.js = function(t) {
|
8465 | return this._variable ? this._variable.c() : this.symbol();
|
8466 | };
|
8467 | At.prototype.c = function(t) {
|
8468 | if (t) {
|
8469 | if (t.as == "value")
|
8470 | return "'" + this.symbol() + "'";
|
8471 | if (t.as == "field" && !this.isValidIdentifier())
|
8472 | return Tt("['" + this.symbol() + "']", this._token || this._value);
|
8473 | if (t.as == "key" && !this.isValidIdentifier())
|
8474 | return "'" + this.symbol() + "'";
|
8475 | }
|
8476 | let e = O.current();
|
8477 | if (e instanceof Ht && !(e instanceof Ht.Iterable))
|
8478 | return this.toStr().c();
|
8479 | let r = this.js();
|
8480 | return ls.sourcemap && (!t || t.mark !== false) && (r = Tt(r, this._token || this._value)), r;
|
8481 | };
|
8482 | At.prototype.dump = function() {
|
8483 | return {loc: this.region()};
|
8484 | };
|
8485 | At.prototype.namepath = function() {
|
8486 | return this.toString();
|
8487 | };
|
8488 | At.prototype.shouldParenthesizeInTernary = function() {
|
8489 | return this._parens || this._cache;
|
8490 | };
|
8491 | At.prototype.registerVariable = function(t, e) {
|
8492 | return e === void 0 && (e = this.scope__()), this._variable = e.register(this.symbol(), this, {type: t}), this.stack().registerSemanticToken(this._value, this._variable), this;
|
8493 | };
|
8494 | At.prototype.resolveVariable = function(t) {
|
8495 | t === void 0 && (t = this.scope__());
|
8496 | let e = t.lookup(this.symbol());
|
8497 | return this._variable = e, this.stack().registerSemanticToken(this._value, this._variable), this;
|
8498 | };
|
8499 | function a2() {
|
8500 | return At.apply(this, arguments);
|
8501 | }
|
8502 | A(a2, At);
|
8503 | E.DecoratorIdentifier = a2;
|
8504 | a2.prototype.symbol = function() {
|
8505 | return be.toValidIdentifier(String(this._value));
|
8506 | };
|
8507 | a2.prototype.toString = function() {
|
8508 | return this.symbol();
|
8509 | };
|
8510 | function ei() {
|
8511 | return At.apply(this, arguments);
|
8512 | }
|
8513 | A(ei, At);
|
8514 | E.SymbolIdentifier = ei;
|
8515 | ei.prototype.c = function(t) {
|
8516 | if (t === void 0 && (t = {}), O.tsc())
|
8517 | return this.variable().c();
|
8518 | let e = this.variable().c();
|
8519 | return t.as == "field" ? "[" + e + "]" : e;
|
8520 | };
|
8521 | ei.prototype.variable = function() {
|
8522 | return this._variable || (this._variable = this.scope__().root().symbolRef(this._value.slice(0)));
|
8523 | };
|
8524 | ei.prototype.isConstant = function() {
|
8525 | return true;
|
8526 | };
|
8527 | ei.prototype.asObjectKey = function() {
|
8528 | return "[" + this.c() + "]";
|
8529 | };
|
8530 | ei.prototype.toString = function() {
|
8531 | return this.c();
|
8532 | };
|
8533 | ei.prototype.resolveVariable = function() {
|
8534 | return this;
|
8535 | };
|
8536 | ei.prototype.registerVariable = function() {
|
8537 | return this;
|
8538 | };
|
8539 | function Ci() {
|
8540 | return At.apply(this, arguments);
|
8541 | }
|
8542 | A(Ci, At);
|
8543 | E.MixinIdentifier = Ci;
|
8544 | Ci.prototype.symbol = function() {
|
8545 | return "mixin$" + this._value.slice(1);
|
8546 | };
|
8547 | Ci.prototype.traverse = function(t) {
|
8548 | return this._traversed ? this : (this._variable || this.resolveVariable(), this._traversed = true);
|
8549 | };
|
8550 | Ci.prototype.c = function(t) {
|
8551 | if (t && (t.as == "string" || t.as == "substr")) {
|
8552 | let s = this.toFlags().map(function(n) {
|
8553 | return n instanceof Ft ? "${" + n.c() + "}" : n.raw();
|
8554 | }).join(" ");
|
8555 | return t.as == "string" ? "`" + s + "`" : s;
|
8556 | }
|
8557 | let e = O.current();
|
8558 | if (e instanceof Ht && !(e instanceof Ht.Iterable))
|
8559 | return this.toStr().c();
|
8560 | let r = this.js();
|
8561 | return ls.sourcemap && (!t || t.mark !== false) && (r = Tt(r, this._token || this._value)), r;
|
8562 | };
|
8563 | Ci.prototype.toString = function() {
|
8564 | return this.symbol();
|
8565 | };
|
8566 | Ci.prototype.toFlagName = function() {
|
8567 | return this.symbol();
|
8568 | };
|
8569 | Ci.prototype.toFlags = function() {
|
8570 | if (this._parts)
|
8571 | return this._parts;
|
8572 | this.traverse();
|
8573 | let t = this._variable, e = [], r = t;
|
8574 | for (; r; )
|
8575 | r._declarator instanceof dr ? e.push(Ze(r._declarator._name)) : e.push(r), r = r._parent;
|
8576 | return this._parts = e;
|
8577 | };
|
8578 | function Na() {
|
8579 | return At.apply(this, arguments);
|
8580 | }
|
8581 | A(Na, At);
|
8582 | E.Private = Na;
|
8583 | Na.prototype.symbol = function() {
|
8584 | return this._symbol || (this._symbol = Pt.sym("__" + this.value()));
|
8585 | };
|
8586 | Na.prototype.add = function(t) {
|
8587 | return new Pe(this.value()).add(t).set({prefix: "__", private: true});
|
8588 | };
|
8589 | function _c(t) {
|
8590 | this._value = t instanceof At ? t.value() : t;
|
8591 | }
|
8592 | A(_c, Ut);
|
8593 | E.TagIdRef = _c;
|
8594 | _c.prototype.js = function() {
|
8595 | return "" + this.scope__().imba().c() + ".getElementById('" + this.value().c() + "')";
|
8596 | };
|
8597 | function Cn(t) {
|
8598 | this._value = t instanceof At ? t.value() : t;
|
8599 | }
|
8600 | A(Cn, At);
|
8601 | E.Ivar = Cn;
|
8602 | Cn.prototype.name = function() {
|
8603 | return be.dashToCamelCase(this._value).replace(/^[\#]/, "");
|
8604 | };
|
8605 | Cn.prototype.alias = function() {
|
8606 | return this.name();
|
8607 | };
|
8608 | Cn.prototype.js = function(t) {
|
8609 | return this.symbol();
|
8610 | };
|
8611 | function Io() {
|
8612 | return Ut.apply(this, arguments);
|
8613 | }
|
8614 | A(Io, Ut);
|
8615 | E.Decorator = Io;
|
8616 | Io.prototype.name = function() {
|
8617 | return this._name || (this._name = this._value.js());
|
8618 | };
|
8619 | Io.prototype.visit = function() {
|
8620 | var t;
|
8621 | if (this._variable = this.scope__().lookup(this.name()), this._value._variable || (this._value._variable = this._variable), this._variable || (this._value = this.runtime()[this.name()]), this._call && this._call.traverse(), this.option("params") && (this._params = this.option("params"), this._params.traverse()), t = this.up())
|
8622 | return t._decorators || (t._decorators = []), t._decorators.push(this);
|
8623 | };
|
8624 | Io.prototype.c = function() {
|
8625 | if (O.current() instanceof us)
|
8626 | return;
|
8627 | let t = this._value.c();
|
8628 | return this._params ? t += ".bind([" + this._params.c({expression: true}) + "])" : t += ".bind([])", t;
|
8629 | };
|
8630 | function Ys() {
|
8631 | return At.apply(this, arguments);
|
8632 | }
|
8633 | A(Ys, At);
|
8634 | E.Const = Ys;
|
8635 | Ys.prototype.symbol = function() {
|
8636 | return this._symbol || (this._symbol = Pt.sym(this.value()));
|
8637 | };
|
8638 | Ys.prototype.js = function(t) {
|
8639 | return this._variable ? this._variable.c() : this.symbol();
|
8640 | };
|
8641 | Ys.prototype.traverse = function() {
|
8642 | if (this._traversed)
|
8643 | return this;
|
8644 | this._traversed = true;
|
8645 | var t = O.current();
|
8646 | return (!(t instanceof se) || t.left() == this) && (this.symbol() == "Imba" ? this._variable = this.scope__().imba() : this._variable = this.scope__().lookup(this.value())), this;
|
8647 | };
|
8648 | Ys.prototype.c = function() {
|
8649 | return this.option("export") ? "exports." + this._value + " = " + this.js() : Ys.prototype.__super__.c.apply(this, arguments);
|
8650 | };
|
8651 | function ce(t) {
|
8652 | this._token = t, this._value = this.load(t);
|
8653 | }
|
8654 | A(ce, At);
|
8655 | E.TagTypeIdentifier = ce;
|
8656 | ce.prototype.name = function(t) {
|
8657 | return this._name;
|
8658 | };
|
8659 | ce.prototype.setName = function(t) {
|
8660 | return this._name = t, this;
|
8661 | };
|
8662 | ce.prototype.ns = function(t) {
|
8663 | return this._ns;
|
8664 | };
|
8665 | ce.prototype.setNs = function(t) {
|
8666 | return this._ns = t, this;
|
8667 | };
|
8668 | ce.prototype.startLoc = function() {
|
8669 | return this._token && this._token.startLoc && this._token.startLoc();
|
8670 | };
|
8671 | ce.prototype.endLoc = function() {
|
8672 | return this._token && this._token.endLoc && this._token.endLoc();
|
8673 | };
|
8674 | ce.prototype.toFunctionalType = function() {
|
8675 | let t = new At(this._token);
|
8676 | return this.isClass() || (t = new he(t)), t;
|
8677 | };
|
8678 | ce.prototype.load = function(t) {
|
8679 | this._str = "" + t;
|
8680 | var e = this._str.split(":");
|
8681 | return this._raw = t, this._name = e.pop(), this._ns = e.shift(), this._str;
|
8682 | };
|
8683 | ce.prototype.traverse = function(t) {
|
8684 | return this._traversed ? this : (this._traversed = true, this.isClass() && (t && t.declaring ? (this.registerVariable("const", t.declscope || O.scope()), this._variable && this._variable.setValue(t.declaring)) : this.resolveVariable()), this);
|
8685 | };
|
8686 | ce.prototype.js = function(t) {
|
8687 | return "'" + this.toNodeName() + "'";
|
8688 | };
|
8689 | ce.prototype.c = function() {
|
8690 | return this.js();
|
8691 | };
|
8692 | ce.prototype.func = function() {
|
8693 | var t = this._name.replace(/-/g, "_").replace(/\#/, "");
|
8694 | return this._ns && (t += "$" + this._ns.toLowerCase()), t;
|
8695 | };
|
8696 | ce.prototype.nativeCreateNode = function() {
|
8697 | let t = this.scope__().root().document().c();
|
8698 | return this.isSVG() ? He(Rt("" + t + ".createElementNS"), [Ze("http://www.w3.org/2000/svg"), Ze(this.name())]) : He(Rt("" + t + ".createElement"), [Ze(this.name())]);
|
8699 | };
|
8700 | ce.prototype.isClass = function() {
|
8701 | return !!this._str.match(/^[A-Z]/);
|
8702 | };
|
8703 | ce.prototype.isLowerCase = function() {
|
8704 | return !this._name.match(/^[A-Z]/);
|
8705 | };
|
8706 | ce.prototype.isNative = function() {
|
8707 | return !this._ns && ya.HTML.indexOf(this._str) >= 0;
|
8708 | };
|
8709 | ce.prototype.isNativeHTML = function() {
|
8710 | return (!this._ns || this._ns == "html") && ya.HTML.indexOf(this._name) >= 0;
|
8711 | };
|
8712 | ce.prototype.isNativeSVG = function() {
|
8713 | return this._ns == "svg" && ya.SVG.indexOf(this._str) >= 0;
|
8714 | };
|
8715 | ce.prototype.isSVG = function() {
|
8716 | return this._ns == "svg" || !this.isNative() && !this._ns && r3["svg_" + this._str];
|
8717 | };
|
8718 | ce.prototype.isAsset = function() {
|
8719 | return false;
|
8720 | };
|
8721 | ce.prototype.toAssetName = function() {
|
8722 | return this.isAsset() ? this._str : null;
|
8723 | };
|
8724 | ce.prototype.symbol = function() {
|
8725 | return this._str;
|
8726 | };
|
8727 | ce.prototype.isCustom = function() {
|
8728 | return !this.isNative() && !this.isNativeSVG();
|
8729 | };
|
8730 | ce.prototype.isComponent = function() {
|
8731 | return !this.isNative() && !this.isNativeSVG();
|
8732 | };
|
8733 | ce.prototype.toSelector = function() {
|
8734 | return this.toNodeName();
|
8735 | };
|
8736 | ce.prototype.resolveVariable = function(t) {
|
8737 | t === void 0 && (t = this.scope__());
|
8738 | let e = this.scope__().lookup(this._str);
|
8739 | return (this._variable = e) && this.stack().registerSemanticToken(this._value, this._variable), this;
|
8740 | };
|
8741 | ce.prototype.toVarPrefix = function() {
|
8742 | return this._str.replace(/[\:\-]/g, "");
|
8743 | };
|
8744 | ce.prototype.toClassName = function() {
|
8745 | let t = this._str;
|
8746 | if (t == "element")
|
8747 | return "Element";
|
8748 | if (t == "component")
|
8749 | return "imba.Component";
|
8750 | if (t == "svg:element")
|
8751 | return "SVGElement";
|
8752 | if (t == "htmlelement")
|
8753 | return "HTMLElement";
|
8754 | if (t == "fragment")
|
8755 | return "DocumentFragment";
|
8756 | let e = r3[this.isSVG() ? "svg_" + this._name : this._name];
|
8757 | return e ? e.name : this._str == "fragment" ? "DocumentFragment" : this.isClass() ? this._str : O.tsc() ? "\u0393" + be.toValidIdentifier(this._str) : be.pascalCase(this._str + "-component");
|
8758 | };
|
8759 | ce.prototype.toTscName = function() {
|
8760 | return this._str.replace(/\-/g, "_") + "$$TAG$$";
|
8761 | };
|
8762 | ce.prototype.sourceId = function() {
|
8763 | return this._sourceId || (this._sourceId = O.sourceId() + "-" + O.generateId("tag"));
|
8764 | };
|
8765 | ce.prototype.toNodeName = function() {
|
8766 | return this.isClass() ? this._nodeName || (this._nodeName = be.dasherize(this._str + "-" + this.sourceId())) : this._str;
|
8767 | };
|
8768 | ce.prototype.toTypeArgument = function() {
|
8769 | return this._variable ? this._variable.c() : this.name();
|
8770 | };
|
8771 | ce.prototype.id = function() {
|
8772 | var t = this._str.match(/\#([\w\-\d\_]+)\b/);
|
8773 | return t ? t[1] : null;
|
8774 | };
|
8775 | ce.prototype.flag = function() {
|
8776 | return "_" + this.name().replace(/--/g, "_").toLowerCase();
|
8777 | };
|
8778 | ce.prototype.sel = function() {
|
8779 | return "." + this.flag();
|
8780 | };
|
8781 | ce.prototype.string = function() {
|
8782 | return this.value();
|
8783 | };
|
8784 | ce.prototype.toString = function() {
|
8785 | return this.value();
|
8786 | };
|
8787 | function o2() {
|
8788 | return Ut.apply(this, arguments);
|
8789 | }
|
8790 | A(o2, Ut);
|
8791 | E.InterpolatedIdentifier = o2;
|
8792 | o2.prototype.js = function() {
|
8793 | return "[" + this.value().c() + "]";
|
8794 | };
|
8795 | function dc() {
|
8796 | return Ut.apply(this, arguments);
|
8797 | }
|
8798 | A(dc, Ut);
|
8799 | E.Argvar = dc;
|
8800 | dc.prototype.c = function() {
|
8801 | var t = parseInt(String(this.value())), e = "arguments";
|
8802 | if (t > 0) {
|
8803 | var r = this.scope__(), i = r.params().at(t - 1, true);
|
8804 | e = "" + Pt.c(i.name());
|
8805 | }
|
8806 | return Tt(e, this._token || this._value);
|
8807 | };
|
8808 | function mc() {
|
8809 | return Z.apply(this, arguments);
|
8810 | }
|
8811 | A(mc, Z);
|
8812 | E.DoPlaceholder = mc;
|
8813 | function Ks(t, e) {
|
8814 | this._value = t, this._string = e;
|
8815 | }
|
8816 | A(Ks, Z);
|
8817 | E.TaggedTemplate = Ks;
|
8818 | Ks.prototype.value = function(t) {
|
8819 | return this._value;
|
8820 | };
|
8821 | Ks.prototype.setValue = function(t) {
|
8822 | return this._value = t, this;
|
8823 | };
|
8824 | Ks.prototype.string = function(t) {
|
8825 | return this._string;
|
8826 | };
|
8827 | Ks.prototype.setString = function(t) {
|
8828 | return this._string = t, this;
|
8829 | };
|
8830 | Ks.prototype.visit = function() {
|
8831 | return this._value instanceof Z && this._value.traverse(), this._string.traverse(), this._string.isTemplate() || this._string.warn("Only `` strings allowed in template literals"), this;
|
8832 | };
|
8833 | Ks.prototype.js = function() {
|
8834 | return this._value.c() + this._string.c({as: "template"});
|
8835 | };
|
8836 | function ke(t, e, r) {
|
8837 | if (this._traversed = false, this._expression = false, this._parens = false, this._cache = null, this._receiver = null, this._opexists = r, t instanceof qs && (t = t._callee), t instanceof Xe)
|
8838 | return t.setArgs(this instanceof qs ? [] : e), t;
|
8839 | if (t instanceof he) {
|
8840 | var i = t.value().symbol();
|
8841 | if (i == "new" && console.log("calling"), i == "extern")
|
8842 | return t.value().value()._type = "EXTERN", new La(e);
|
8843 | if (i == "tag")
|
8844 | return new Da(e && e.index ? e.index(0) : e[0]);
|
8845 | if (i == "export")
|
8846 | return new Ri(e);
|
8847 | }
|
8848 | return this._callee = t, this._args = e || new ar([]), e instanceof Array && (this._args = new ar(e)), t instanceof Io ? (t._call = this, t) : this;
|
8849 | }
|
8850 | A(ke, Z);
|
8851 | E.Call = ke;
|
8852 | ke.prototype.callee = function(t) {
|
8853 | return this._callee;
|
8854 | };
|
8855 | ke.prototype.setCallee = function(t) {
|
8856 | return this._callee = t, this;
|
8857 | };
|
8858 | ke.prototype.receiver = function(t) {
|
8859 | return this._receiver;
|
8860 | };
|
8861 | ke.prototype.setReceiver = function(t) {
|
8862 | return this._receiver = t, this;
|
8863 | };
|
8864 | ke.prototype.args = function(t) {
|
8865 | return this._args;
|
8866 | };
|
8867 | ke.prototype.setArgs = function(t) {
|
8868 | return this._args = t, this;
|
8869 | };
|
8870 | ke.prototype.block = function(t) {
|
8871 | return this._block;
|
8872 | };
|
8873 | ke.prototype.setBlock = function(t) {
|
8874 | return this._block = t, this;
|
8875 | };
|
8876 | ke.prototype.loc = function() {
|
8877 | return this._callee.loc();
|
8878 | };
|
8879 | ke.prototype.visit = function() {
|
8880 | this.args().traverse(), this.callee().traverse();
|
8881 | let t = this.callee().isRuntimeReference();
|
8882 | if (this.callee() instanceof se && this.callee().left().isGlobal("import")) {
|
8883 | let e = this.args().first(), r = this.callee().right().toString();
|
8884 | if (this.setCallee(this.runtime().asset), e instanceof de) {
|
8885 | let i = O.root().registerAsset(e.raw(), "" + r, this);
|
8886 | this.args().replace(e, i.ref);
|
8887 | }
|
8888 | } else if (this.callee().isGlobal("import")) {
|
8889 | let e = this.args().first(), r = e instanceof de && e.raw();
|
8890 | if (r) {
|
8891 | let i = r.split(".").pop();
|
8892 | (m_[i] || r.indexOf("?as=") >= 0) && (this._asset = O.root().registerAsset(r, "", this), this.args().replace(e, this._asset.ref));
|
8893 | }
|
8894 | } else if (this.callee().isGlobal("require")) {
|
8895 | let e = this.args().first();
|
8896 | e instanceof de && e.raw() && this.args().replace(e, Rt(xo(e.c())));
|
8897 | }
|
8898 | if (t == "asset") {
|
8899 | let e = this.args().first();
|
8900 | if (e instanceof de) {
|
8901 | let r = O.root().registerAsset(e.raw(), "asset", this);
|
8902 | this.args().replace(e, r.ref);
|
8903 | }
|
8904 | }
|
8905 | if (this._block && this._block.traverse(), this instanceof qs && this._args.count() == 0 && this.option("keyword")) {
|
8906 | let e = this.option("keyword");
|
8907 | this._args.setEnds(e, e);
|
8908 | }
|
8909 | return this;
|
8910 | };
|
8911 | ke.prototype.addBlock = function(t) {
|
8912 | var e = this._args.filter(function(r, i) {
|
8913 | return r instanceof mc;
|
8914 | })[0];
|
8915 | return e ? this.args().replace(e, t) : this.args().push(t), this;
|
8916 | };
|
8917 | ke.prototype.receiver = function() {
|
8918 | return this._receiver || (this._receiver = this.callee() instanceof se && this.callee().left() || Gs);
|
8919 | };
|
8920 | ke.prototype.safechain = function() {
|
8921 | return this.callee().safechain();
|
8922 | };
|
8923 | ke.prototype.shouldParenthesizeInTernary = function() {
|
8924 | return this._parens || this.safechain() || this._cache;
|
8925 | };
|
8926 | ke.prototype.startLoc = function() {
|
8927 | return this._startLoc || this._callee && this._callee.startLoc ? this._callee.startLoc() : 0;
|
8928 | };
|
8929 | ke.prototype.endLoc = function() {
|
8930 | return this._endLoc || this._args && this._args.endLoc() || this._callee.endLoc();
|
8931 | };
|
8932 | ke.prototype.js = function(t) {
|
8933 | var e;
|
8934 | if (this._asset)
|
8935 | return this._asset.ref.c();
|
8936 | var r = {expression: true}, i = null, s = this.args(), n = s.some(function(f) {
|
8937 | return f instanceof An;
|
8938 | }), o = null, a = null, l = null, p = null, c = this._callee = this._callee.node();
|
8939 | c instanceof se && (a = c.left(), l = c.right()), c instanceof Xe && (e = O.method()) && e.option("inExtension") && (c = J(".", c, e.name()), this._receiver = this.scope__().context()), c instanceof qi && (this._receiver = c.receiver(), c = this._callee = new se(c.op(), c.left(), c.right())), l instanceof At && l.value() == "assert";
|
8940 | let _ = "";
|
8941 | if (c instanceof se && c.op() == "?." && (_ = "?."), this._receiver)
|
8942 | this._receiver instanceof rr || this._receiver.cache(), s.unshift(this.receiver()), o = "" + c.c({expression: true}) + ".call(" + s.c({expression: true, mark: false}) + ")";
|
8943 | else {
|
8944 | let f = "(" + s.c({expression: true, mark: false}) + ")";
|
8945 | o = "" + c.c({expression: true}) + _ + Tt(f, this._args);
|
8946 | }
|
8947 | return p && (this._cache && (this._cache.manual = true, o = "(" + this.cachevar().c() + "=" + o + ")"), o = [p[0], o, p[1]].join("")), o;
|
8948 | };
|
8949 | function qs() {
|
8950 | return ke.apply(this, arguments);
|
8951 | }
|
8952 | A(qs, ke);
|
8953 | E.BangCall = qs;
|
8954 | function Ea() {
|
8955 | return Ut.apply(this, arguments);
|
8956 | }
|
8957 | A(Ea, Ut);
|
8958 | E.Instantiation = Ea;
|
8959 | Ea.for = function(t, e) {
|
8960 | return t instanceof ne ? t.set({unmemoized: e}) : new this(t).set({keyword: e});
|
8961 | };
|
8962 | Ea.prototype.js = function(t) {
|
8963 | return "" + Tt("new", this.keyword()) + " " + this.value().c();
|
8964 | };
|
8965 | function Xs() {
|
8966 | return ke.apply(this, arguments);
|
8967 | }
|
8968 | A(Xs, ke);
|
8969 | E.New = Xs;
|
8970 | Xs.prototype.visit = function() {
|
8971 | return this.keyword().warn("Value.new is deprecated - use new Value"), Xs.prototype.__super__.visit.apply(this, arguments);
|
8972 | };
|
8973 | Xs.prototype.endLoc = function() {
|
8974 | return this.keyword() && this.keyword().endLoc() || Xs.prototype.__super__.endLoc.apply(this, arguments);
|
8975 | };
|
8976 | Xs.prototype.startLoc = function() {
|
8977 | return null;
|
8978 | };
|
8979 | Xs.prototype.js = function(t) {
|
8980 | for (var e = this.callee(); e instanceof se; ) {
|
8981 | let i = e.left();
|
8982 | if (i instanceof qi || i instanceof he) {
|
8983 | this.callee()._parens = true;
|
8984 | break;
|
8985 | }
|
8986 | e = i;
|
8987 | }
|
8988 | var r = "" + Tt("new", this.keyword()) + " " + Tt(this.callee().c(), this.callee());
|
8989 | return t.parent() instanceof ke || t.parent() instanceof qs || (r += "()"), r;
|
8990 | };
|
8991 | function La() {
|
8992 | return jt.apply(this, arguments);
|
8993 | }
|
8994 | A(La, jt);
|
8995 | E.ExternDeclaration = La;
|
8996 | La.prototype.visit = function() {
|
8997 | this.setNodes(this.map(function(r) {
|
8998 | return r.node();
|
8999 | }));
|
9000 | var t = this.scope__();
|
9001 | for (let r = 0, i = It(this.nodes()), s = i.length, n; r < s; r++) {
|
9002 | n = i[r];
|
9003 | var e = t.register(n.symbol(), n, {type: "global"});
|
9004 | e.addReference(n);
|
9005 | }
|
9006 | return this;
|
9007 | };
|
9008 | La.prototype.c = function() {
|
9009 | return "// externs";
|
9010 | };
|
9011 | function Ro() {
|
9012 | return Z.apply(this, arguments);
|
9013 | }
|
9014 | A(Ro, Z);
|
9015 | E.ControlFlow = Ro;
|
9016 | Ro.prototype.loc = function() {
|
9017 | return this._body ? this._body.loc() : [0, 0];
|
9018 | };
|
9019 | function Ws() {
|
9020 | return Ro.apply(this, arguments);
|
9021 | }
|
9022 | A(Ws, Ro);
|
9023 | E.ControlFlowStatement = Ws;
|
9024 | Ws.prototype.isExpressable = function() {
|
9025 | return false;
|
9026 | };
|
9027 | function pe(t, e, r) {
|
9028 | r === void 0 && (r = {}), this.setup(), this._test = t, this._body = e, this._alt = null, this._type = r.type, this._type == "unless" && this.invert(), this._scope = new yc(this);
|
9029 | }
|
9030 | A(pe, Ro);
|
9031 | E.If = pe;
|
9032 | pe.prototype.test = function(t) {
|
9033 | return this._test;
|
9034 | };
|
9035 | pe.prototype.setTest = function(t) {
|
9036 | return this._test = t, this;
|
9037 | };
|
9038 | pe.prototype.body = function(t) {
|
9039 | return this._body;
|
9040 | };
|
9041 | pe.prototype.setBody = function(t) {
|
9042 | return this._body = t, this;
|
9043 | };
|
9044 | pe.prototype.alt = function(t) {
|
9045 | return this._alt;
|
9046 | };
|
9047 | pe.prototype.setAlt = function(t) {
|
9048 | return this._alt = t, this;
|
9049 | };
|
9050 | pe.prototype.scope = function(t) {
|
9051 | return this._scope;
|
9052 | };
|
9053 | pe.prototype.setScope = function(t) {
|
9054 | return this._scope = t, this;
|
9055 | };
|
9056 | pe.prototype.prevIf = function(t) {
|
9057 | return this._prevIf;
|
9058 | };
|
9059 | pe.prototype.setPrevIf = function(t) {
|
9060 | return this._prevIf = t, this;
|
9061 | };
|
9062 | pe.ternary = function(t, e, r) {
|
9063 | var i = new pe(t, new Lt([e]), {type: "?"});
|
9064 | return i.addElse(new Lt([r])), i;
|
9065 | };
|
9066 | pe.prototype.addElse = function(t) {
|
9067 | return this.alt() && this.alt() instanceof pe ? this.alt().addElse(t) : (this.setAlt(t), t instanceof pe && t.setPrevIf(this)), this;
|
9068 | };
|
9069 | pe.prototype.loc = function() {
|
9070 | return this._loc || (this._loc = [this._type ? this._type._loc : 0, this.body().loc()[1]]);
|
9071 | };
|
9072 | pe.prototype.invert = function() {
|
9073 | return this._test instanceof os ? this._test = this._test.invert() : this._test = new ti("!", this._test, null);
|
9074 | };
|
9075 | pe.prototype.visit = function(t) {
|
9076 | var e = this.alt(), r = this._scope;
|
9077 | r && r.visit(), this.test() && (this._scope = null, this.test().traverse(), this._scope = r), this._tag = t._tag;
|
9078 | for (let i = this._scope.varmap(), s, n = 0, o = Object.keys(i), a = o.length, l; n < a; n++)
|
9079 | l = o[n], s = i[l], s.type() == "let" && (s._virtual = true, s.autodeclare());
|
9080 | return !t.isAnalyzing() && !t.tsc() && (this._pretest = Pt.truthy(this.test()), this._pretest === true ? (e = this._alt = null, this.test() instanceof Js && (this._preunwrap = true)) : this._pretest === false && (this.loc(), this.setBody(null))), this.body() && this.body().traverse(), e && (O.pop(this), e._scope || (e._scope = new Fa(e)), e.traverse(), O.push(this)), this._type == "?" && this.isExpressable() && this.toExpression(), this;
|
9081 | };
|
9082 | pe.prototype.js = function(t) {
|
9083 | var e, r, i = this.body(), s = {braces: true, indent: true};
|
9084 | if (this._pretest === true && this._preunwrap) {
|
9085 | let p = i ? i.c({braces: !!this.prevIf()}) : "true";
|
9086 | return this.prevIf() || (p = be.normalizeIndentation(p)), t.isExpression() && (p = "(" + p + ")"), p;
|
9087 | } else
|
9088 | this._pretest;
|
9089 | if (t.isExpression()) {
|
9090 | (r = this.test()) && r.shouldParenthesizeInTernary && r.shouldParenthesizeInTernary() && (this.test()._parens = true);
|
9091 | var n = this.test().c({expression: true}), o = i ? i.c() : "true";
|
9092 | if (i && i.shouldParenthesizeInTernary() && (o = "(" + o + ")"), this.alt()) {
|
9093 | var a = this.alt().c();
|
9094 | return this.alt().shouldParenthesizeInTernary() && (a = "(" + a + ")"), "" + n + " ? " + o + " : " + a;
|
9095 | } else
|
9096 | return this._tag ? "" + n + " ? " + o + " : void(0)" : "" + n + " && " + o;
|
9097 | } else {
|
9098 | o = null, n = this.test().c({expression: true}), i instanceof Lt && i.count() == 1 && !(i.first() instanceof Rr) && (i = i.first()), o = i ? i.c({braces: true}) : "{}";
|
9099 | var l = "" + Tt("if", this._type) + " (" + n + ") " + o;
|
9100 | return this.alt() && (l += " else " + this.alt().c(this.alt() instanceof pe ? {} : s)), l;
|
9101 | }
|
9102 | };
|
9103 | pe.prototype.shouldParenthesize = function() {
|
9104 | return !!this._parens;
|
9105 | };
|
9106 | pe.prototype.consume = function(t) {
|
9107 | if (t instanceof Et) {
|
9108 | if (t.flag(Se.TAG_HAS_BRANCHES), t.body() == this) {
|
9109 | let r = this._body ? [this._body] : [], i = this._alt;
|
9110 | for (; i instanceof pe; )
|
9111 | i._body && r.push(i._body), i = i._alt;
|
9112 | i && r.push(i);
|
9113 | for (let s = 0, n = It(r), o = n.length; s < o; s++)
|
9114 | t._branches.push([]), n[s].consume(t);
|
9115 | return this;
|
9116 | }
|
9117 | return t instanceof Nr ? (this._body && (this._body = this._body.consume(t)), this._alt && (this._alt = this._alt.consume(t)), this) : t.register(this);
|
9118 | }
|
9119 | if (t instanceof Ca || t instanceof gc)
|
9120 | return t.register(this), this._body && (this._body = this._body.consume(t)), this._alt && (this._alt = this._alt.consume(t)), this;
|
9121 | var e = t instanceof Qe;
|
9122 | return this._expression || (!e || this._type == "?") && this.isExpressable() ? (this.toExpression(), pe.prototype.__super__.consume.call(this, t)) : (this._body && (this._body = this._body.consume(t)), this._alt && (this._alt = this._alt.consume(t)), this);
|
9123 | };
|
9124 | pe.prototype.isExpressable = function() {
|
9125 | var t = (!this.body() || this.body().isExpressable()) && (!this.alt() || this.alt().isExpressable());
|
9126 | return t;
|
9127 | };
|
9128 | function De(t) {
|
9129 | t === void 0 && (t = {}), this._traversed = false, this._options = t, this._body = null;
|
9130 | }
|
9131 | A(De, Pi);
|
9132 | E.Loop = De;
|
9133 | De.prototype.scope = function(t) {
|
9134 | return this._scope;
|
9135 | };
|
9136 | De.prototype.setScope = function(t) {
|
9137 | return this._scope = t, this;
|
9138 | };
|
9139 | De.prototype.options = function(t) {
|
9140 | return this._options;
|
9141 | };
|
9142 | De.prototype.setOptions = function(t) {
|
9143 | return this._options = t, this;
|
9144 | };
|
9145 | De.prototype.body = function(t) {
|
9146 | return this._body;
|
9147 | };
|
9148 | De.prototype.setBody = function(t) {
|
9149 | return this._body = t, this;
|
9150 | };
|
9151 | De.prototype.catcher = function(t) {
|
9152 | return this._catcher;
|
9153 | };
|
9154 | De.prototype.setCatcher = function(t) {
|
9155 | return this._catcher = t, this;
|
9156 | };
|
9157 | De.prototype.elseBody = function(t) {
|
9158 | return this._elseBody;
|
9159 | };
|
9160 | De.prototype.setElseBody = function(t) {
|
9161 | return this._elseBody = t, this;
|
9162 | };
|
9163 | De.prototype.loc = function() {
|
9164 | var t = this._options.keyword, e = this._body;
|
9165 | return t && e ? [t._loc, e.loc()[1]] : [0, 0];
|
9166 | };
|
9167 | De.prototype.set = function(t) {
|
9168 | this._options || (this._options = {});
|
9169 | var e = Object.keys(t);
|
9170 | for (let r = 0, i = It(e), s = i.length, n; r < s; r++)
|
9171 | n = i[r], this._options[n] = t[n];
|
9172 | return this;
|
9173 | };
|
9174 | De.prototype.addBody = function(t) {
|
9175 | return this.setBody(Pt.blk(t)), this;
|
9176 | };
|
9177 | De.prototype.addElse = function(t) {
|
9178 | return this.setElseBody(t), this;
|
9179 | };
|
9180 | De.prototype.isReactive = function() {
|
9181 | return this._tag && this._tag.fragment().isReactive();
|
9182 | };
|
9183 | De.prototype.isStatementLike = function() {
|
9184 | return true;
|
9185 | };
|
9186 | De.prototype.c = function(t) {
|
9187 | var e = this.stack(), r = e.current();
|
9188 | if (this.stack().isExpression() || this.isExpression()) {
|
9189 | this.scope().closeScope();
|
9190 | var i = He(js([], [this]), []);
|
9191 | return i.c(t);
|
9192 | } else
|
9193 | return this.stack().current() instanceof Lt || e.up() instanceof Lt && e.current()._consumer == this ? De.prototype.__super__.c.call(this, t) : this._tag ? De.prototype.__super__.c.call(this, 0) : (this.scope().closeScope(), i = He(js([], [this]), []), i.c(t));
|
9194 | };
|
9195 | function _s(t, e) {
|
9196 | this._traversed = false, this._test = t, this._options = e || {}, this._scope = new l2(this), this.option("invert") && (this._test = t.invert());
|
9197 | }
|
9198 | A(_s, De);
|
9199 | E.While = _s;
|
9200 | _s.prototype.test = function(t) {
|
9201 | return this._test;
|
9202 | };
|
9203 | _s.prototype.setTest = function(t) {
|
9204 | return this._test = t, this;
|
9205 | };
|
9206 | _s.prototype.visit = function() {
|
9207 | if (this.scope().visit(), this.test() && this.test().traverse(), this.body())
|
9208 | return this.body().traverse();
|
9209 | };
|
9210 | _s.prototype.loc = function() {
|
9211 | var t = this._options;
|
9212 | return be.unionOfLocations(t.keyword, this._body, t.guard, this._test);
|
9213 | };
|
9214 | _s.prototype.consume = function(t) {
|
9215 | if (this.isExpressable())
|
9216 | return _s.prototype.__super__.consume.apply(this, arguments);
|
9217 | var e = false, r = this.scope().declare("res", new je([]), {system: true});
|
9218 | this._catcher = new ii("push", r, null), this.body().consume(this._catcher);
|
9219 | var i = new Lt([this, r.accessor()]);
|
9220 | return i.consume(t);
|
9221 | };
|
9222 | _s.prototype.js = function(t) {
|
9223 | var e = "while (" + this.test().c({expression: true}) + ")" + this.body().c({braces: true, indent: true});
|
9224 | return this.scope().vars().count() > 0 && (e = this.scope().vars().c() + ";" + e), e;
|
9225 | };
|
9226 | function ni(t) {
|
9227 | t === void 0 && (t = {}), this._traversed = false, this._options = t, this._scope = new c2(this), this._catcher = null;
|
9228 | }
|
9229 | A(ni, De);
|
9230 | E.For = ni;
|
9231 | ni.prototype.loc = function() {
|
9232 | var t = this._options;
|
9233 | return be.unionOfLocations(t.keyword, this._body, t.guard, t.step, t.source);
|
9234 | };
|
9235 | ni.prototype.ref = function() {
|
9236 | return this._ref || "" + this._tag.fragment().cvar() + "." + this.oid();
|
9237 | };
|
9238 | ni.prototype.visit = function(t) {
|
9239 | this.scope().visit();
|
9240 | var e = t._tag;
|
9241 | if (this.options().source.traverse(), this.options().guard) {
|
9242 | var r = J1(this.options().guard.invert(), Lt.wrap([new e2("continue")]));
|
9243 | this.body().unshift(r, Fe);
|
9244 | }
|
9245 | if (this.declare(), this.options().await) {
|
9246 | var i = t.up(ie);
|
9247 | i && (this.set({native: true}), i.set({async: true}));
|
9248 | }
|
9249 | return e && (this._tag = e, t._tag = this, this._level = (this._tag && this._tag._level || 0) + 1), this.body().traverse(), t._tag = e, this;
|
9250 | };
|
9251 | ni.prototype.isBare = function(t) {
|
9252 | return t && t._variable && t._variable._isArray;
|
9253 | };
|
9254 | ni.prototype.declare = function() {
|
9255 | var t = this.options(), e = this.scope(), r = t.source, i = t.vars = {}, s = t.index, n = t.params, o = this.isBare(r);
|
9256 | if (r instanceof Sn) {
|
9257 | let a = r.left(), l = r.right(), p = !(a instanceof Ie) || !(l instanceof Ie);
|
9258 | l instanceof Ie ? i.len = l : i.len = e.declare("len", l, {type: "let"}), i.value = e.declare(t.name, a, {type: "let"}), t.name && i.value.addReference(t.name), t.index ? (i.index = e.declare(t.index, 0, {type: "let"}), i.index.addReference(t.index)) : i.index = i.value, p && (i.diff = e.declare("rd", J("-", i.len, i.value), {type: "let"}));
|
9259 | } else {
|
9260 | if (s ? i.index = e.declare(s, 0, {type: "let"}) : i.index = e.declare("i", new Ie(0), {system: true, type: "let", pool: "counter"}), i.source = o ? r : e.declare("items", this.util().iterable(r), {system: true, type: "let", pool: "iter"}), n[2] ? i.len = e.declare(n[2], this.util().len(i.source), {type: "let"}) : i.len = e.declare("len", this.util().len(i.source), {type: "let", pool: "len", system: true}), t.name) {
|
9261 | let a = J(".", i.source, i.index).set({datatype: t.name.datatype()});
|
9262 | t.name.set({datatype: void 0});
|
9263 | let l = new Ke(t.name, a, "let");
|
9264 | this.body().unshift(l, Fe);
|
9265 | }
|
9266 | s && i.index.addReference(s);
|
9267 | }
|
9268 | return this;
|
9269 | };
|
9270 | ni.prototype.consume = function(t) {
|
9271 | if (t instanceof Et)
|
9272 | return t.register(this);
|
9273 | if (this.isExpressable())
|
9274 | return ni.prototype.__super__.consume.apply(this, arguments);
|
9275 | if (this._resvar) {
|
9276 | var e = new Lt([this, Fe, this._resvar.accessor()]);
|
9277 | return e.consume(t), e;
|
9278 | }
|
9279 | var r = null, i = false, s = null;
|
9280 | r = this._resvar || (this._resvar = this.scope().register("res", null, {system: true, type: "var"})), this._catcher = new ii("push", r, null);
|
9281 | let n = new je([]);
|
9282 | if (this.body().consume(this._catcher), r.autodeclare(), t instanceof Ke || t instanceof Ve)
|
9283 | return t.setRight(r.accessor()), new Lt([J("=", r, n), Fe, this, Fe, t]);
|
9284 | if (t) {
|
9285 | let o = [J("=", r, n), Fe, this, Fe, r.accessor().consume(t)];
|
9286 | return new Lt(o);
|
9287 | }
|
9288 | return this;
|
9289 | };
|
9290 | ni.prototype.js = function(t) {
|
9291 | var e = this.options().vars, r = e.index, i = e.value, s = this.options().source, n, o;
|
9292 | if (s instanceof Sn) {
|
9293 | let _ = s.left(), f = s.right(), m = s.inclusive();
|
9294 | n = J(m ? "<=" : "<", i, e.len), o = J("++", i), e.diff && (n = pe.ternary(J(">", e.diff, new Ie(0)), n, J(m ? ">=" : ">", i, e.len)), o = pe.ternary(J(">", e.diff, new Ie(0)), J("++", i), J("--", i))), r && r != i && (o = new Sa([o, J("++", r)]));
|
9295 | } else
|
9296 | n = J("<", r, e.len), this.options().step ? o = J("=", r, J("+", r, this.options().step)) : o = J("++", r);
|
9297 | var a = "", l = "", p = this.body().c({braces: true, indent: true}), c = "" + Tt("for", this.keyword()) + " (" + this.scope().vars().c() + "; " + n.c({expression: true}) + "; " + o.c({expression: true}) + ") ";
|
9298 | return a + c + p + l;
|
9299 | };
|
9300 | function _3() {
|
9301 | return ni.apply(this, arguments);
|
9302 | }
|
9303 | A(_3, ni);
|
9304 | E.ForIn = _3;
|
9305 | function Fn() {
|
9306 | return ni.apply(this, arguments);
|
9307 | }
|
9308 | A(Fn, ni);
|
9309 | E.ForOf = Fn;
|
9310 | Fn.prototype.source = function(t) {
|
9311 | return this._source;
|
9312 | };
|
9313 | Fn.prototype.setSource = function(t) {
|
9314 | return this._source = t, this;
|
9315 | };
|
9316 | Fn.prototype.declare = function() {
|
9317 | var t = this, e = t.options(), r = e.vars = {}, i = e.params, s, n;
|
9318 | if (e.own) {
|
9319 | r.source = e.source._variable || t.scope().declare("o", e.source, {system: true, type: "let"}), e.value = e.index;
|
9320 | var o = r.index = t.scope().declare("i", new Ie(0), {system: true, type: "let", pool: "counter"}), a = r.keys = t.scope().declare("keys", Ht.keys(r.source.accessor()), {system: true, type: "let"}), l = r.len = t.scope().declare("l", Ht.len(a.accessor()), {system: true, type: "let"});
|
9321 | s = r.key = t.scope().declare(e.name, null, {type: "let"}), e.value instanceof ze || e.value instanceof je ? (t.body().unshift(new Ke(e.value, J(".", r.source, s), "let"), Fe), r.value = null) : e.value && (n = r.value = t.scope().declare(e.value, null, {let: true, type: "let"}));
|
9322 | } else {
|
9323 | t.setSource(r.source = O.tsc() ? e.source : t.util().iterable(e.source)), r.value = e.value = e.name;
|
9324 | let p = t.scope__().captureVariableDeclarations(function() {
|
9325 | var c;
|
9326 | if (e.value.traverse({declaring: "let"}), e.value instanceof At)
|
9327 | return (c = e.value)._variable || (c._variable = t.scope__().register(e.value.symbol(), e.value, {type: "let"})), O.registerSemanticToken(e.value);
|
9328 | });
|
9329 | t._declvars = p, e.index && (r.counter = t.scope().parent().temporary(null, {}, "" + e.index + "$"), t.body().unshift(new Ke(e.index, J("++", r.counter), "let"), Fe)), i[2] && i[2].warn("Length parameter only allowed on for-in loops");
|
9330 | }
|
9331 | return n && e.index && n.addReference(e.index), s && e.name && s.addReference(e.name), t;
|
9332 | };
|
9333 | Fn.prototype.js = function(t) {
|
9334 | var e = this.options().vars, r = this.options().source, i = e.source, s = e.key, n = e.value, o = e.index, a;
|
9335 | if (this.options().own) {
|
9336 | n && n.refcount() > 0 && this.body().unshift(J("=", n, J(".", i, s))), this.body().unshift(J("=", s, J(".", e.keys, o))), a = this.body().c({indent: true, braces: true});
|
9337 | var l = "" + Tt("for", this.keyword()) + " (" + this.scope().vars().c() + "; " + J("<", o, e.len).c() + "; " + J("++", o).c() + ")";
|
9338 | return l + a;
|
9339 | } else {
|
9340 | if (O.tsc()) {
|
9341 | for (let _ = 0, f = It(this._declvars), m = f.length, g; _ < m; _++)
|
9342 | if (g = f[_], g.vartype()) {
|
9343 | let b = g.c(), N = g._declarator, y = Rt("let " + Tt(g.typedAlias().c(), N) + " = " + g.vartype().c() + "(" + b + ")");
|
9344 | this.body().unshift(y);
|
9345 | }
|
9346 | }
|
9347 | a = this.scope().c({braces: true, indent: true});
|
9348 | let p = i.c({expression: true}), c = "(let " + n.c() + " of " + p + ")" + a;
|
9349 | return this.options().await && (c = "" + Tt("await", this.options().await) + " " + c), c = "" + Tt("for", this.keyword()) + " " + c, e.counter && (c = "" + e.counter + " = 0; " + c), c;
|
9350 | }
|
9351 | };
|
9352 | Fn.prototype.head = function() {
|
9353 | var t = this.options().vars;
|
9354 | return [J("=", t.key, J(".", t.keys, t.index)), t.value && J("=", t.value, J(".", t.source, t.key))];
|
9355 | };
|
9356 | function vc(t) {
|
9357 | this._nodes = Pt.blk(t).nodes();
|
9358 | }
|
9359 | A(vc, Lt);
|
9360 | E.Begin = vc;
|
9361 | vc.prototype.shouldParenthesize = function() {
|
9362 | return this.isExpression();
|
9363 | };
|
9364 | function oi(t, e, r) {
|
9365 | this._traversed = false, this._source = t, this._cases = e, this._fallback = r;
|
9366 | }
|
9367 | A(oi, Ws);
|
9368 | E.Switch = oi;
|
9369 | oi.prototype.source = function(t) {
|
9370 | return this._source;
|
9371 | };
|
9372 | oi.prototype.setSource = function(t) {
|
9373 | return this._source = t, this;
|
9374 | };
|
9375 | oi.prototype.cases = function(t) {
|
9376 | return this._cases;
|
9377 | };
|
9378 | oi.prototype.setCases = function(t) {
|
9379 | return this._cases = t, this;
|
9380 | };
|
9381 | oi.prototype.fallback = function(t) {
|
9382 | return this._fallback;
|
9383 | };
|
9384 | oi.prototype.setFallback = function(t) {
|
9385 | return this._fallback = t, this;
|
9386 | };
|
9387 | oi.prototype.visit = function() {
|
9388 | for (let t = 0, e = It(this.cases()), r = e.length; t < r; t++)
|
9389 | e[t].traverse();
|
9390 | this.fallback() && this.fallback().traverse(), this.source() && this.source().traverse();
|
9391 | };
|
9392 | oi.prototype.consume = function(t) {
|
9393 | if (t instanceof Et) {
|
9394 | if (t.body() == this) {
|
9395 | let e = this._cases.slice(0).concat([this._fallback]);
|
9396 | for (let r = 0, i = It(e), s = i.length, n; r < s; r++)
|
9397 | n = i[r], !!n && (t._branches.push([]), n.consume(t));
|
9398 | return this;
|
9399 | }
|
9400 | return t.register(this);
|
9401 | }
|
9402 | return this._cases = this._cases.map(function(e) {
|
9403 | return e.consume(t);
|
9404 | }), this._fallback && (this._fallback = this._fallback.consume(t)), this;
|
9405 | };
|
9406 | oi.prototype.c = function(t) {
|
9407 | if (this.stack().isExpression() || this.isExpression()) {
|
9408 | var e = He(js([], [this]), []);
|
9409 | return e.c(t);
|
9410 | }
|
9411 | return oi.prototype.__super__.c.call(this, t);
|
9412 | };
|
9413 | oi.prototype.js = function(t) {
|
9414 | var e = [];
|
9415 | for (let r = 0, i = It(this.cases()), s = i.length, n; r < s; r++)
|
9416 | n = i[r], n.autobreak(), e.push(n);
|
9417 | return this.fallback() && e.push(`default:
|
9418 | ` + this.fallback().c({indent: true})), "switch (" + this.source().c() + ") " + be.bracketize(Pt.cary(e).join(`
|
9419 | `), true);
|
9420 | };
|
9421 | function Wi(t, e) {
|
9422 | this._traversed = false, this._test = t, this._body = Pt.blk(e), this._scope = new Fa(this);
|
9423 | }
|
9424 | A(Wi, Ws);
|
9425 | E.SwitchCase = Wi;
|
9426 | Wi.prototype.test = function(t) {
|
9427 | return this._test;
|
9428 | };
|
9429 | Wi.prototype.setTest = function(t) {
|
9430 | return this._test = t, this;
|
9431 | };
|
9432 | Wi.prototype.body = function(t) {
|
9433 | return this._body;
|
9434 | };
|
9435 | Wi.prototype.setBody = function(t) {
|
9436 | return this._body = t, this;
|
9437 | };
|
9438 | Wi.prototype.visit = function() {
|
9439 | return this.scope__().visit(), this.body().traverse();
|
9440 | };
|
9441 | Wi.prototype.consume = function(t) {
|
9442 | return this.body().consume(t), this;
|
9443 | };
|
9444 | Wi.prototype.autobreak = function() {
|
9445 | return this.body().last() instanceof Ta || this.body().push(new Ta()), this;
|
9446 | };
|
9447 | Wi.prototype.js = function(t) {
|
9448 | this._test instanceof Array || (this._test = [this._test]);
|
9449 | var e = this._test.map(function(r) {
|
9450 | return "case " + r.c() + ": ";
|
9451 | });
|
9452 | return e.join(`
|
9453 | `) + this.body().c({indent: true, braces: true});
|
9454 | };
|
9455 | function Pn(t, e, r) {
|
9456 | this._traversed = false, this._body = Pt.blk(t), this._catch = e, this._finally = r;
|
9457 | }
|
9458 | A(Pn, Ws);
|
9459 | E.Try = Pn;
|
9460 | Pn.prototype.body = function(t) {
|
9461 | return this._body;
|
9462 | };
|
9463 | Pn.prototype.setBody = function(t) {
|
9464 | return this._body = t, this;
|
9465 | };
|
9466 | Pn.prototype.consume = function(t) {
|
9467 | return this._body = this._body.consume(t), this._catch && (this._catch = this._catch.consume(t)), this._finally && (this._finally = this._finally.consume(t)), this;
|
9468 | };
|
9469 | Pn.prototype.visit = function() {
|
9470 | if (this._body.traverse(), this._catch && this._catch.traverse(), this._finally)
|
9471 | return this._finally.traverse();
|
9472 | };
|
9473 | Pn.prototype.js = function(t) {
|
9474 | var e = "try " + this.body().c({braces: true, indent: true});
|
9475 | return this._catch && (e += " " + this._catch.c()), this._finally && (e += " " + this._finally.c()), this._catch || this._finally || (e += " catch (e) { }"), e += ";", e;
|
9476 | };
|
9477 | function Mn(t, e) {
|
9478 | this._traversed = false, this._body = Pt.blk(t || []), this._scope = new bc(this), this._varname = e;
|
9479 | }
|
9480 | A(Mn, Ws);
|
9481 | E.Catch = Mn;
|
9482 | Mn.prototype.body = function(t) {
|
9483 | return this._body;
|
9484 | };
|
9485 | Mn.prototype.setBody = function(t) {
|
9486 | return this._body = t, this;
|
9487 | };
|
9488 | Mn.prototype.consume = function(t) {
|
9489 | return this._body = this._body.consume(t), this;
|
9490 | };
|
9491 | Mn.prototype.visit = function() {
|
9492 | return this._scope.visit(), this._variable = this._scope.register(this._varname, this, {type: "let", pool: "catchvar"}), this._body.traverse();
|
9493 | };
|
9494 | Mn.prototype.js = function(t) {
|
9495 | return "catch (" + this._variable.c() + ") " + this._body.c({braces: true, indent: true});
|
9496 | };
|
9497 | function Pa(t) {
|
9498 | this._traversed = false, this._body = Pt.blk(t || []);
|
9499 | }
|
9500 | A(Pa, Ws);
|
9501 | E.Finally = Pa;
|
9502 | Pa.prototype.visit = function() {
|
9503 | return this._body.traverse();
|
9504 | };
|
9505 | Pa.prototype.consume = function(t) {
|
9506 | return this;
|
9507 | };
|
9508 | Pa.prototype.js = function(t) {
|
9509 | return "finally " + this._body.c({braces: true, indent: true});
|
9510 | };
|
9511 | function Sn() {
|
9512 | return re.apply(this, arguments);
|
9513 | }
|
9514 | A(Sn, re);
|
9515 | E.Range = Sn;
|
9516 | Sn.prototype.inclusive = function() {
|
9517 | return this.op() == "..";
|
9518 | };
|
9519 | Sn.prototype.c = function() {
|
9520 | return "range";
|
9521 | };
|
9522 | function An() {
|
9523 | return Ut.apply(this, arguments);
|
9524 | }
|
9525 | A(An, Ut);
|
9526 | E.Splat = An;
|
9527 | An.prototype.js = function(t) {
|
9528 | return "..." + this.value().c();
|
9529 | var e;
|
9530 | };
|
9531 | An.prototype.node = function() {
|
9532 | return this.value();
|
9533 | };
|
9534 | function Pe(t) {
|
9535 | Pe.prototype.__super__.constructor.apply(this, arguments), this._static = true, this._nodes = [this._single = t];
|
9536 | }
|
9537 | A(Pe, Z);
|
9538 | E.IdentifierExpression = Pe;
|
9539 | Pe.prototype.single = function(t) {
|
9540 | return this._single;
|
9541 | };
|
9542 | Pe.prototype.setSingle = function(t) {
|
9543 | return this._single = t, this;
|
9544 | };
|
9545 | Pe.wrap = function(t) {
|
9546 | return t;
|
9547 | };
|
9548 | Pe.prototype.add = function(t) {
|
9549 | return this._nodes.push(t), this._single = null, this;
|
9550 | };
|
9551 | Pe.prototype.isPrimitive = function() {
|
9552 | return this._single && this._single instanceof br;
|
9553 | };
|
9554 | Pe.prototype.isStatic = function() {
|
9555 | return this.isPrimitive();
|
9556 | };
|
9557 | Pe.prototype.visit = function() {
|
9558 | for (let t = 0, e = It(this._nodes), r = e.length, i; t < r; t++)
|
9559 | i = e[t], i instanceof Z && i.traverse();
|
9560 | return this;
|
9561 | };
|
9562 | Pe.prototype.asObjectKey = function() {
|
9563 | return this.isPrimitive() ? "" + this._single.c() : this._single ? "[" + this._single.c() + "]" : "[" + this.asString() + "]";
|
9564 | };
|
9565 | Pe.prototype.startLoc = function() {
|
9566 | var t;
|
9567 | return (t = this._nodes[0]) && t.startLoc && t.startLoc();
|
9568 | };
|
9569 | Pe.prototype.endLoc = function() {
|
9570 | var t;
|
9571 | return (t = this._nodes[this._nodes.length - 1]) && t.endLoc && t.endLoc();
|
9572 | };
|
9573 | Pe.prototype.asIdentifier = function() {
|
9574 | return this._single ? "[" + this._single.c() + "]" : "[" + this.asString() + "]";
|
9575 | };
|
9576 | Pe.prototype.asString = function() {
|
9577 | let t = "`";
|
9578 | this.option("prefix") && (t += this.option("prefix"));
|
9579 | for (let e = 0, r = It(this._nodes), i = r.length, s; e < i; e++)
|
9580 | s = r[e], s instanceof br ? t += s.value() : (t += "${", t += s.c(), t += "}");
|
9581 | return t += "`", t;
|
9582 | };
|
9583 | Pe.prototype.toRaw = function() {
|
9584 | return this._single ? this._single.c() : "";
|
9585 | };
|
9586 | Pe.prototype.toString = function() {
|
9587 | return this.toRaw();
|
9588 | };
|
9589 | Pe.prototype.js = function(t, e) {
|
9590 | return e === void 0 && (e = {}), e.as == "string" || t.parent() instanceof Ht ? this.asString() : e.as == "key" ? this.asObjectKey() : e.as == "access" ? true : this._single && this._single instanceof Z ? this._single.c(e) : this.asString();
|
9591 | };
|
9592 | function me(t, e) {
|
9593 | this._name = this.load(t), this._tag = e, this._chain = [], this._special = false, this._params = null;
|
9594 | }
|
9595 | A(me, Z);
|
9596 | E.TagPart = me;
|
9597 | me.prototype.name = function(t) {
|
9598 | return this._name;
|
9599 | };
|
9600 | me.prototype.setName = function(t) {
|
9601 | return this._name = t, this;
|
9602 | };
|
9603 | me.prototype.value = function(t) {
|
9604 | return this._value;
|
9605 | };
|
9606 | me.prototype.setValue = function(t) {
|
9607 | return this._value = t, this;
|
9608 | };
|
9609 | me.prototype.params = function(t) {
|
9610 | return this._params;
|
9611 | };
|
9612 | me.prototype.setParams = function(t) {
|
9613 | return this._params = t, this;
|
9614 | };
|
9615 | me.prototype.load = function(t) {
|
9616 | return t;
|
9617 | };
|
9618 | me.prototype.isSpecial = function() {
|
9619 | return this._special;
|
9620 | };
|
9621 | me.prototype.visit = function() {
|
9622 | return this._chain.map(function(t) {
|
9623 | return t.traverse();
|
9624 | }), this._value && this._value.traverse(), this._name.traverse && this._name.traverse(), this;
|
9625 | };
|
9626 | me.prototype.quoted = function() {
|
9627 | return this._quoted || (this._quoted = this._name instanceof Pe ? this._name.asString() : be.singlequote(this._name));
|
9628 | };
|
9629 | me.prototype.valueIsStatic = function() {
|
9630 | return !this.value() || this.value().isPrimitive() || this.value() instanceof ie && !this.value().nonlocals();
|
9631 | };
|
9632 | me.prototype.isStatic = function() {
|
9633 | return this.valueIsStatic();
|
9634 | };
|
9635 | me.prototype.isProxy = function() {
|
9636 | return false;
|
9637 | };
|
9638 | me.prototype.add = function(t, e) {
|
9639 | return e == u2 ? (this._last || this).setParams(t || new jt([])) : this._chain.push(this._last = new Vi(t)), this;
|
9640 | };
|
9641 | me.prototype.modifiers = function() {
|
9642 | return this._modifiers || (this._modifiers = new Vn(this._chain).traverse());
|
9643 | };
|
9644 | me.prototype.js = function() {
|
9645 | return "";
|
9646 | };
|
9647 | me.prototype.ref = function() {
|
9648 | return "c$." + this.oid();
|
9649 | };
|
9650 | me.prototype.tagRef = function() {
|
9651 | return this._tagRef || this._tag.ref();
|
9652 | };
|
9653 | function h2() {
|
9654 | return me.apply(this, arguments);
|
9655 | }
|
9656 | A(h2, me);
|
9657 | E.TagId = h2;
|
9658 | h2.prototype.js = function() {
|
9659 | return "" + this.tagRef() + ".id=" + this.quoted();
|
9660 | };
|
9661 | function mr() {
|
9662 | return me.apply(this, arguments);
|
9663 | }
|
9664 | A(mr, me);
|
9665 | E.TagFlag = mr;
|
9666 | mr.prototype.condition = function(t) {
|
9667 | return this._condition;
|
9668 | };
|
9669 | mr.prototype.setCondition = function(t) {
|
9670 | return this._condition = t, this;
|
9671 | };
|
9672 | mr.prototype.rawClassName = function() {
|
9673 | return this.name().toRaw();
|
9674 | };
|
9675 | mr.prototype.value = function() {
|
9676 | return this._name;
|
9677 | };
|
9678 | mr.prototype.visit = function() {
|
9679 | if (this._chain.map(function(t) {
|
9680 | return t.traverse();
|
9681 | }), this._condition && this._condition.traverse(), this._name.traverse)
|
9682 | return this._name.traverse();
|
9683 | };
|
9684 | mr.prototype.isStatic = function() {
|
9685 | return !this.isConditional() && (this._name instanceof br || this._name.isStatic() || this._name instanceof Ci);
|
9686 | };
|
9687 | mr.prototype.isConditional = function() {
|
9688 | return !!this.condition();
|
9689 | };
|
9690 | mr.prototype.js = function() {
|
9691 | if (O.tsc()) {
|
9692 | let e = this.value().c();
|
9693 | return this.condition() ? "[" + e + "," + this.condition().c() + "]" : "[" + e + "]";
|
9694 | }
|
9695 | let t = this.value().c({as: "string"});
|
9696 | return this.condition() ? "" + this.tagRef() + ".flags.toggle(" + t + "," + this.condition().c() + ")" : "" + this.tagRef() + ".classList.add(" + t + ")";
|
9697 | };
|
9698 | function kc() {
|
9699 | return me.apply(this, arguments);
|
9700 | }
|
9701 | A(kc, me);
|
9702 | E.TagSep = kc;
|
9703 | function u2() {
|
9704 | return me.apply(this, arguments);
|
9705 | }
|
9706 | A(u2, me);
|
9707 | E.TagArgList = u2;
|
9708 | function nr() {
|
9709 | return me.apply(this, arguments);
|
9710 | }
|
9711 | A(nr, me);
|
9712 | E.TagAttr = nr;
|
9713 | nr.prototype.isSpecial = function() {
|
9714 | return String(this._name) == "value";
|
9715 | };
|
9716 | nr.prototype.startLoc = function() {
|
9717 | return this._name && this._name.startLoc && this._name.startLoc();
|
9718 | };
|
9719 | nr.prototype.endLoc = function() {
|
9720 | return this._value && this._value.endLoc && this._value.endLoc();
|
9721 | };
|
9722 | nr.prototype.isStatic = function() {
|
9723 | return nr.prototype.__super__.isStatic.apply(this, arguments) && this._chain.every(function(t) {
|
9724 | let e = t instanceof Ae ? t.value() : t;
|
9725 | return e instanceof ie ? !e.nonlocals() : e.isPrimitive();
|
9726 | });
|
9727 | };
|
9728 | nr.prototype.visit = function() {
|
9729 | this._chain.map(function(i) {
|
9730 | return i.traverse();
|
9731 | }), this._value && this._value.traverse(), this._name.traverse && this._name.traverse();
|
9732 | let t = this._key = String(this._name), e = t.indexOf(":");
|
9733 | if (e >= 0 && (this._ns = t.slice(0, e), this._key = t.slice(e + 1)), this._value || (this._autovalue = true, this._value = Ze(t)), this._chain.length) {
|
9734 | this._mods = {};
|
9735 | for (let i = 0, s = It(this._chain), n = s.length; i < n; i++)
|
9736 | this._mods[s[i].name()] = 1;
|
9737 | }
|
9738 | if (this._ns == "bind" && O.use("dom_bind"), !this._ns && this._key == "ease" && O.use("dom_transitions"), t == "asset" || t == "src" && this.value() instanceof de && /^(style|img|script|svg)$/.test(this._tag.tagName())) {
|
9739 | let i = this._tag.tagName(), s = "asset";
|
9740 | i == "img" || i == "svg" ? s = "img" : i == "script" ? s = "web" : i == "style" && (s = "css");
|
9741 | let n = this.value() instanceof de && this.value().raw();
|
9742 | n && !n.match(/^(\/|https?\:\/\/)/) && (O.tsc() || (this._asset = O.root().registerAsset(n, s, this)));
|
9743 | }
|
9744 | return this;
|
9745 | };
|
9746 | nr.prototype.ns = function() {
|
9747 | return this._ns;
|
9748 | };
|
9749 | nr.prototype.key = function() {
|
9750 | return this._key;
|
9751 | };
|
9752 | nr.prototype.mods = function() {
|
9753 | return this._mods;
|
9754 | };
|
9755 | nr.prototype.nameIdentifier = function() {
|
9756 | return this._nameIdentifier || (this._nameIdentifier = new At(this.key()));
|
9757 | };
|
9758 | nr.prototype.modsIdentifier = function() {
|
9759 | return this._modsIdentifier || (this._modsIdentifier = new At(this.key() + "__"));
|
9760 | };
|
9761 | nr.prototype.js = function(t) {
|
9762 | let e = this.value().c(t), r = e, i = Tt("=", this.option("op")), s = this.key().match(/^(aria-|data-)/) || this.key() == "style" || this._tag && this._tag.isSVG() || this.ns() == "html", n = this._tag && this._tag._tagName, o = this._tag.ref(), a = this.key() == "asset" || this.key() == "src" && this.value() instanceof de && (n == "style" || n == "img" || n == "script" || n == "svg");
|
9763 | if (this._asset && !O.tsc() && (e = this._asset.ref.c()), O.tsc() && (s || i3[this.key()]))
|
9764 | return "" + o + ".setAttribute('" + this.key() + "',String(" + e + "))";
|
9765 | if (s && (O.isNode() || this.ns() == "html") && !this._asset)
|
9766 | return O.meta().universal = false, "" + o + ".setAttribute('" + this.key() + "'," + e + ")";
|
9767 | if (O.tsc()) {
|
9768 | let p = this.nameIdentifier().c();
|
9769 | p == "value" && da(this._tag._tagName, ["input", "textarea", "select", "option", "button"]) >= 0 && (e = "/**@type {any}*/(" + e + ")");
|
9770 | let c = "" + o + "." + Tt(p, this._name);
|
9771 | return "" + Tt(c, this._name) + i + (this._autovalue ? Tt("true", this._value) : e);
|
9772 | }
|
9773 | let l = this.key();
|
9774 | if (l == "tabindex" && (l = "tabIndex"), l == "value" && da(this._tag._tagName, ["input", "textarea", "select", "option", "button"]) >= 0 && !O.isNode() && (l = "richValue"), this.ns() == "css")
|
9775 | return "" + o + ".css$('" + l + "'," + e + ")";
|
9776 | if (this.ns() == "bind") {
|
9777 | let p = o3(this.value());
|
9778 | if (p instanceof Ft) {
|
9779 | let c = "function(){ return " + e + " }", _ = "function(v$){ " + e + " = v$ }";
|
9780 | r = "{get:" + c + ",set:" + _ + "}";
|
9781 | } else
|
9782 | p instanceof Array && (r = "[" + e[0].c(t) + "," + e[1].c(t) + "]");
|
9783 | return "" + o + ".bind$('" + l + "'," + r + ")";
|
9784 | } else if (l.indexOf("--") == 0) {
|
9785 | let p = ["'" + l + "'", e], c = this.option("unit"), _ = t3.propAbbr(this.option("propname"));
|
9786 | (c || _) && (p.push(c ? Ze(c) : Gs), _ && p.push(Ze(_))), O.use("styles");
|
9787 | let f = this.option("styleterm");
|
9788 | if (f && f.param) {
|
9789 | for (; p.length < 4; )
|
9790 | p.push(Gs);
|
9791 | p.push(f.param);
|
9792 | }
|
9793 | return "" + o + ".css$var(" + Pt.cary(p, {as: "js"}).join(",") + ")";
|
9794 | } else
|
9795 | return l.indexOf("aria-") == 0 || this._tag && this._tag.isSVG() || l == "for" || i3[l] ? this.ns() ? "" + o + ".setns$('" + this.ns() + "','" + l + "'," + e + ")" : "" + o + ".set$('" + l + "'," + e + ")" : l.indexOf("data-") == 0 ? "" + o + ".setAttribute('" + l + "'," + e + ")" : J(".", Rt(o), l).c() + ("" + i + e);
|
9796 | };
|
9797 | function p2() {
|
9798 | return nr.apply(this, arguments);
|
9799 | }
|
9800 | A(p2, nr);
|
9801 | E.TagStyleAttr = p2;
|
9802 | function Ds() {
|
9803 | return me.apply(this, arguments);
|
9804 | }
|
9805 | A(Ds, me);
|
9806 | E.TagAttrValue = Ds;
|
9807 | Ds.prototype.isPrimitive = function() {
|
9808 | return this.value().isPrimitive();
|
9809 | };
|
9810 | Ds.prototype.value = function() {
|
9811 | return this.name();
|
9812 | };
|
9813 | Ds.prototype.js = function() {
|
9814 | return this.value().c();
|
9815 | };
|
9816 | Ds.prototype.toRaw = function() {
|
9817 | return this.value() instanceof de ? this.value().raw() : null;
|
9818 | };
|
9819 | function f2() {
|
9820 | return Ut.apply(this, arguments);
|
9821 | }
|
9822 | A(f2, Ut);
|
9823 | E.TagHandlerSpecialArg = f2;
|
9824 | f2.prototype.isPrimitive = function() {
|
9825 | return true;
|
9826 | };
|
9827 | f2.prototype.c = function() {
|
9828 | return "'~$" + this.value() + "'";
|
9829 | };
|
9830 | function Vn() {
|
9831 | return jt.apply(this, arguments);
|
9832 | }
|
9833 | A(Vn, jt);
|
9834 | E.TagModifiers = Vn;
|
9835 | Vn.prototype.isStatic = function() {
|
9836 | return this._nodes.every(function(t) {
|
9837 | let e = t instanceof Ae ? t.value() : t;
|
9838 | return e instanceof ie ? !e.nonlocals() : e.isPrimitive();
|
9839 | });
|
9840 | };
|
9841 | Vn.prototype.visit = function() {
|
9842 | var t = {FUNC: 0};
|
9843 | for (let e = 0, r = It(this.nodes()), i = r.length, s; e < i; e++) {
|
9844 | s = r[e];
|
9845 | let n = String(s.name());
|
9846 | t[n] ? s.setName(n + "~" + t[n]++) : t[n] = 1;
|
9847 | }
|
9848 | return this;
|
9849 | };
|
9850 | Vn.prototype.extractDynamics = function() {
|
9851 | if (this._dynamics)
|
9852 | return this._dynamics;
|
9853 | this._dynamics = [];
|
9854 | for (let t = 0, e = It(this.nodes()), r = e.length, i; t < r; t++)
|
9855 | if (i = e[t], i instanceof Vi) {
|
9856 | for (let s = 0, n = It(i.params()), o = n.length, a; s < o; s++)
|
9857 | if (a = n[s], !a.isPrimitive()) {
|
9858 | let l = new _2(a).set({key: a3(i.name()), index: s});
|
9859 | i.params().swap(a, Rt("null")), this._dynamics.push(l);
|
9860 | }
|
9861 | }
|
9862 | return this._dynamics;
|
9863 | };
|
9864 | Vn.prototype.c = function() {
|
9865 | if (O.tsc())
|
9866 | return "[" + this.nodes().map(function(e) {
|
9867 | return e.c();
|
9868 | }).join(",") + "]";
|
9869 | let t = new ze([]);
|
9870 | for (let e = 0, r = It(this.nodes()), i = r.length, s; e < i; e++) {
|
9871 | s = r[e];
|
9872 | let n = s.params() ? new je(s.params()) : Rt("true");
|
9873 | t.add(a3(s.name()), n);
|
9874 | }
|
9875 | return t.c();
|
9876 | };
|
9877 | function Vi() {
|
9878 | return me.apply(this, arguments);
|
9879 | }
|
9880 | A(Vi, me);
|
9881 | E.TagModifier = Vi;
|
9882 | Vi.prototype.params = function(t) {
|
9883 | return this._params;
|
9884 | };
|
9885 | Vi.prototype.setParams = function(t) {
|
9886 | return this._params = t, this;
|
9887 | };
|
9888 | Vi.prototype.load = function(t) {
|
9889 | return t instanceof Pe ? t._single : t;
|
9890 | };
|
9891 | Vi.prototype.isPrimitive = function() {
|
9892 | return !this.params() || this.params().every(function(t) {
|
9893 | return t.isPrimitive();
|
9894 | });
|
9895 | };
|
9896 | Vi.prototype.visit = function() {
|
9897 | if (this._name instanceof jn && (this._name.traverse(), this._name = this._name.value()), this._name instanceof ie) {
|
9898 | let t = this._name.params().at(0, true, "e"), e = this._name.params().at(1, true, "$");
|
9899 | this._name.traverse();
|
9900 | }
|
9901 | return this._name instanceof Ni && (this._value = this._name, this._name = Ze("$_"), this._params = new jt([this._value].concat(this._value.leaks() || []))), this._params && this._params.traverse(), this;
|
9902 | };
|
9903 | Vi.prototype.js = function() {
|
9904 | if (O.tsc()) {
|
9905 | if (this._name instanceof ie)
|
9906 | return "(" + this._name.c() + ")(e,{})";
|
9907 | let t = this.quoted().slice(1, -1).split("-"), e = false;
|
9908 | t[0][0] == "!" && (e = true, t[0] = t[0].slice(1));
|
9909 | let r = t[0];
|
9910 | t.length > 1 && (r == "emit" || r == "flag" || r == "css" ? r = "" + r + "-name" : r = t.join("-")), r = be.toValidIdentifier("\u03B1" + r);
|
9911 | let i = this.params() ? this.params().c() : "";
|
9912 | this.params() && i == "" && (r == "\u03B1options" ? i = Tt("", Wl(this._handlerName.endLoc() + 1)) : i = Tt("", Wl(this._name.endLoc() + 1)));
|
9913 | let s = "" + Tt(r, this._name) + "(" + i + ")";
|
9914 | if ((!this.params() || this.params().count() == 0) && (s = Tt(s, this._name)), e) {
|
9915 | let n = Wl(this._name.startLoc() - 1, this._name.startLoc());
|
9916 | return Tt("e." + s + "===true", n);
|
9917 | }
|
9918 | return "e." + s;
|
9919 | }
|
9920 | return this.params() && this.params().count() > 0 ? "[" + this.quoted() + "," + this.params().c() + "]" : this.params() ? "[" + this.quoted() + "]" : this.quoted();
|
9921 | };
|
9922 | function Zs() {
|
9923 | return me.apply(this, arguments);
|
9924 | }
|
9925 | A(Zs, me);
|
9926 | E.TagData = Zs;
|
9927 | Zs.prototype.value = function() {
|
9928 | return this.name();
|
9929 | };
|
9930 | Zs.prototype.isStatic = function() {
|
9931 | return !this.value() || this.value().isPrimitive();
|
9932 | };
|
9933 | Zs.prototype.isSpecial = function() {
|
9934 | return true;
|
9935 | };
|
9936 | Zs.prototype.isProxy = function() {
|
9937 | return this.proxyParts() instanceof Array;
|
9938 | };
|
9939 | Zs.prototype.proxyParts = function() {
|
9940 | var t = this.value();
|
9941 | if (t instanceof ar && (t = t.values()[0]), t instanceof Ae && (t = t.value()), t instanceof he && (t = t._variable || t.value()), t instanceof se) {
|
9942 | let e = t.left(), r = t.right() instanceof as ? t.right().value() : t.right();
|
9943 | return t instanceof Tn && (e || (e = t.scope__().context())), [e, r];
|
9944 | }
|
9945 | return t;
|
9946 | };
|
9947 | Zs.prototype.js = function() {
|
9948 | var t = this.value();
|
9949 | if (t instanceof ar && (t = t.values()[0]), t instanceof Ae && (t = t.value()), t instanceof he && (t = t._variable || t.value()), t instanceof se) {
|
9950 | let e = t.left(), r = t.right() instanceof as ? t.right().value() : t.right();
|
9951 | t instanceof Tn && (e || (e = t.scope__().context()));
|
9952 | let i = [e.c(), r.c()];
|
9953 | return r instanceof At && (i[1] = "'" + i[1] + "'"), "bind$('data',[" + i.join(",") + "])";
|
9954 | } else
|
9955 | return "data=(" + t.c() + ")";
|
9956 | };
|
9957 | function _2() {
|
9958 | return Ut.apply(this, arguments);
|
9959 | }
|
9960 | A(_2, Ut);
|
9961 | E.TagDynamicArg = _2;
|
9962 | _2.prototype.c = function() {
|
9963 | return this.value().c();
|
9964 | };
|
9965 | function lr() {
|
9966 | return me.apply(this, arguments);
|
9967 | }
|
9968 | A(lr, me);
|
9969 | E.TagHandler = lr;
|
9970 | lr.prototype.__params = {watch: "paramsDidSet", name: "params"};
|
9971 | lr.prototype.params = function(t) {
|
9972 | return this._params;
|
9973 | };
|
9974 | lr.prototype.setParams = function(t) {
|
9975 | var e = this.params();
|
9976 | return t != e && (this._params = t), t != e && this.paramsDidSet && this.paramsDidSet(t, e, this.__params), this;
|
9977 | };
|
9978 | lr.prototype.paramsDidSet = function(t) {
|
9979 | return this._chain.push(this._last = new Vi("options")), this._last._handlerName = this._name, this._last.setParams(t), t;
|
9980 | };
|
9981 | lr.prototype.add = function(t, e, r, i) {
|
9982 | return e == jn && (t instanceof ar && (t = t.first()), t = new jn(t)), lr.prototype.__super__.add.call(this, t, e);
|
9983 | };
|
9984 | lr.prototype.visit = function() {
|
9985 | if (lr.prototype.__super__.visit.apply(this, arguments), O.use("events"), this._name && n3[String(this._name)] && O.isWeb())
|
9986 | return O.use(n3[String(this._name)]);
|
9987 | };
|
9988 | lr.prototype.isStatic = function() {
|
9989 | return (!this.value() || this.value().isPrimitive() || this.value() instanceof ie && !this.value().nonlocals()) && this._chain.every(function(e) {
|
9990 | let r = e instanceof Ae ? e.value() : e;
|
9991 | return r instanceof ie ? !r.nonlocals() : r.isPrimitive();
|
9992 | });
|
9993 | };
|
9994 | lr.prototype.modsIdentifier = function() {
|
9995 | return null;
|
9996 | };
|
9997 | lr.prototype.js = function(t) {
|
9998 | if (O.tsc()) {
|
9999 | let e = "" + this.tagRef() + ".addEventListener(" + this.quoted() + `,(e)=>{
|
10000 | `;
|
10001 | for (let r = 0, i = It(this.modifiers()), s = i.length; r < s; r++)
|
10002 | e += i[r].c() + `;
|
10003 | `;
|
10004 | return e += "})", e;
|
10005 | }
|
10006 | if (this._standalone) {
|
10007 | let e = this._tag, r = "" + e.cvar() + "[" + this.osym() + "]", i = this.modifiers(), s = i.extractDynamics(), n = false, o = [], a = function(p) {
|
10008 | return o.push(p);
|
10009 | }, l = e.hvar();
|
10010 | a("" + e.hvar() + " = " + r + " || (" + r + "=" + i.c(t) + ")");
|
10011 | for (let p = 0, c = It(s), _ = c.length, f; p < _; p++) {
|
10012 | f = c[p];
|
10013 | let m = f.option("key"), g = f.option("index"), b = "" + J(".", l, m).c() + "[" + g + "]";
|
10014 | m == "options" ? (n = true, a("(" + this.vvar() + "=" + f.c(t) + "," + this.vvar() + "===" + b + " || (" + b + "=" + this.vvar() + "," + this.dvar() + "|=" + Se.DIFF_MODIFIERS + "|" + Se.DIFF_INLINE + "))")) : a("" + b + "=" + f.c(t));
|
10015 | }
|
10016 | return a("" + e.bvar() + " || " + e.ref() + ".on$(" + this.quoted() + "," + l.c() + "," + this.scope__().context().c() + ")"), n && a("" + e.dvar() + "&" + Se.DIFF_INLINE + " && (" + e.dvar() + "^=" + Se.DIFF_INLINE + "," + l + "[" + this.gsym("#visit") + "]?.())"), "(" + o.join(`,
|
10017 | `) + ")";
|
10018 | }
|
10019 | return "" + this.tagRef() + ".on$(" + this.quoted() + "," + this.modifiers().c() + "," + this.scope__().context().c() + ")";
|
10020 | };
|
10021 | lr.prototype.consume = function(t) {
|
10022 | return t instanceof Et && (this._tag = t, this._standalone = true), this;
|
10023 | };
|
10024 | function jn() {
|
10025 | return Ut.apply(this, arguments);
|
10026 | }
|
10027 | A(jn, Ut);
|
10028 | E.TagHandlerCallback = jn;
|
10029 | jn.prototype.visit = function() {
|
10030 | let t = this.value();
|
10031 | if (t instanceof Ae && (t = t.value()), t instanceof ie && (t = t.body()), t instanceof se || t instanceof he) {
|
10032 | let e = t;
|
10033 | t = He(t, [Rt("e")]), t._args._startLoc = e.endLoc(), t._args._endLoc = e.endLoc();
|
10034 | }
|
10035 | if (this.setValue(new (O.tsc() ? ie : Ni)([], [t], null, {})), this.value() instanceof ie) {
|
10036 | let e = this.value().params().at(0, true, "e"), r = this.value().params().at(1, true, "$$");
|
10037 | }
|
10038 | this.value().traverse();
|
10039 | };
|
10040 | function fs() {
|
10041 | return jt.apply(this, arguments);
|
10042 | }
|
10043 | A(fs, jt);
|
10044 | E.TagBody = fs;
|
10045 | fs.prototype.add = function(t, e) {
|
10046 | return t instanceof _i && (t = t.toArray(), t.length == 1 && (t = new No(t[0]))), fs.prototype.__super__.add.call(this, t, e);
|
10047 | };
|
10048 | fs.prototype.consume = function(t) {
|
10049 | return t instanceof Et ? (this._nodes = this._nodes.map(function(e) {
|
10050 | return e instanceof Mr ? e : e.consume(t);
|
10051 | }), this) : fs.prototype.__super__.consume.apply(this, arguments);
|
10052 | };
|
10053 | function Et(t) {
|
10054 | t === void 0 && (t = {}), this._options = t, this._flags = 0, this._tagvars = {}, this.setup(t);
|
10055 | }
|
10056 | A(Et, Z);
|
10057 | Et.prototype.isIndexableInLoop = function() {
|
10058 | return false;
|
10059 | };
|
10060 | Et.prototype.sourceId = function() {
|
10061 | return this._sourceId || (this._sourceId = O.sourceId() + "-" + this.oid());
|
10062 | };
|
10063 | Et.prototype.body = function() {
|
10064 | return this._body || this._options.body;
|
10065 | };
|
10066 | Et.prototype.value = function() {
|
10067 | return this._options.value;
|
10068 | };
|
10069 | Et.prototype.isReactive = function() {
|
10070 | return true;
|
10071 | };
|
10072 | Et.prototype.isDetached = function() {
|
10073 | return this.option("detached");
|
10074 | };
|
10075 | Et.prototype.isSVG = function() {
|
10076 | return this._isSVG == null ? this._isSVG = this._parent ? this._parent.isSVG() : false : this._isSVG;
|
10077 | };
|
10078 | Et.prototype.parentTag = function() {
|
10079 | let t = this._parent;
|
10080 | for (; t && !(t instanceof ne); )
|
10081 | t = t._parent;
|
10082 | return t;
|
10083 | };
|
10084 | Et.prototype.tagLikeParents = function() {
|
10085 | let t = [], e = this._parent;
|
10086 | for (; e instanceof Et; )
|
10087 | t.push(e), e = e.parent();
|
10088 | return t;
|
10089 | };
|
10090 | Et.prototype.setup = function() {
|
10091 | return this._traversed = false, this._consumed = [], this;
|
10092 | };
|
10093 | Et.prototype.osym = function(t) {
|
10094 | return t === void 0 && (t = ""), O.getSymbol(this.oid() + t, K1.SYM + (this.tagvarprefix() || "") + t);
|
10095 | };
|
10096 | Et.prototype.root = function() {
|
10097 | return this._parent ? this._parent.root() : this;
|
10098 | };
|
10099 | Et.prototype.register = function(t) {
|
10100 | return t instanceof pe || t instanceof oi ? (this.flag(Se.TAG_HAS_BRANCHES), t = new Ue({body: t})) : t instanceof De ? (this.flag(Se.TAG_HAS_LOOPS), t = new Nr({body: t.body(), value: t})) : t instanceof ne ? t.isSlot() && this.flag(Se.TAG_HAS_DYNAMIC_CHILDREN) : t instanceof re ? (t = t.opToIfTree(), t instanceof pe ? (this.flag(Se.TAG_HAS_BRANCHES), t = new Ue({body: t})) : (this.flag(Se.TAG_HAS_DYNAMIC_CHILDREN), t = new ji({value: t}))) : t instanceof dr || (t instanceof de || this.flag(Se.TAG_HAS_DYNAMIC_CHILDREN), t = new ji({value: t})), this._consumed.push(t), t._consumedBy = this, t._parent = this, t;
|
10101 | };
|
10102 | Et.prototype.flag = function(t) {
|
10103 | return this._flags |= t;
|
10104 | };
|
10105 | Et.prototype.type = function() {
|
10106 | return "frag";
|
10107 | };
|
10108 | Et.prototype.unflag = function(t) {
|
10109 | return this._flags = this._flags & ~t;
|
10110 | };
|
10111 | Et.prototype.hasFlag = function(t) {
|
10112 | return this._flags & t;
|
10113 | };
|
10114 | Et.prototype.isAbstract = function() {
|
10115 | return true;
|
10116 | };
|
10117 | Et.prototype.isOnlyChild = function() {
|
10118 | return this.isFirstChild() && this.isLastChild();
|
10119 | };
|
10120 | Et.prototype.isFirstChild = function() {
|
10121 | return this.hasFlag(Se.TAG_FIRST_CHILD);
|
10122 | };
|
10123 | Et.prototype.isLastChild = function() {
|
10124 | return this.hasFlag(Se.TAG_LAST_CHILD);
|
10125 | };
|
10126 | Et.prototype.isIndexed = function() {
|
10127 | return this.option("indexed");
|
10128 | };
|
10129 | Et.prototype.isComponent = function() {
|
10130 | return this._kind == "component";
|
10131 | };
|
10132 | Et.prototype.isSelf = function() {
|
10133 | return this.type() instanceof si || this.type() instanceof ps;
|
10134 | };
|
10135 | Et.prototype.isShadowRoot = function() {
|
10136 | return this._tagName && this._tagName == "shadow-root";
|
10137 | };
|
10138 | Et.prototype.isSlot = function() {
|
10139 | return this._kind == "slot";
|
10140 | };
|
10141 | Et.prototype.isFragment = function() {
|
10142 | return this._kind == "fragment";
|
10143 | };
|
10144 | Et.prototype.isMemoized = function() {
|
10145 | return !this.option("unmemoized");
|
10146 | };
|
10147 | Et.prototype.hasLoops = function() {
|
10148 | return this.hasFlag(Se.TAG_HAS_LOOPS);
|
10149 | };
|
10150 | Et.prototype.hasBranches = function() {
|
10151 | return this.hasFlag(Se.TAG_HAS_BRANCHES);
|
10152 | };
|
10153 | Et.prototype.hasDynamicChildren = function() {
|
10154 | return this.hasFlag(Se.TAG_HAS_DYNAMIC_CHILDREN);
|
10155 | };
|
10156 | Et.prototype.hasDynamicFlags = function() {
|
10157 | return this.hasFlag(Se.TAG_HAS_DYNAMIC_FLAGS);
|
10158 | };
|
10159 | Et.prototype.hasNonTagChildren = function() {
|
10160 | return this.hasLoops() || this.hasBranches() || this.hasDynamicChildren();
|
10161 | };
|
10162 | Et.prototype.hasDynamicDescendants = function() {
|
10163 | if (this.hasNonTagChildren())
|
10164 | return true;
|
10165 | for (let t = 0, e = It(this._consumed), r = e.length, i; t < r; t++)
|
10166 | if (i = e[t], i instanceof ne && i.hasDynamicDescendants())
|
10167 | return true;
|
10168 | return false;
|
10169 | };
|
10170 | Et.prototype.hasChildren = function() {
|
10171 | return this._consumed.length > 0;
|
10172 | };
|
10173 | Et.prototype.tagvar = function(t) {
|
10174 | return t = K1[t] || t, this._tagvars[t] || (this._tagvars[t] = this.scope__().closure().temporary(null, {reuse: false, alias: "" + t + this.tagvarprefix()}, "" + t + this.tagvarprefix()));
|
10175 | };
|
10176 | Et.prototype.tagvarprefix = function() {
|
10177 | return "";
|
10178 | };
|
10179 | Et.prototype.level = function() {
|
10180 | return this._level;
|
10181 | };
|
10182 | Et.prototype.parent = function() {
|
10183 | return this._parent || (this._parent = this.option("parent"));
|
10184 | };
|
10185 | Et.prototype.fragment = function() {
|
10186 | return this._fragment || this.parent();
|
10187 | };
|
10188 | Et.prototype.tvar = function() {
|
10189 | return this._tvar || this.tagvar("T");
|
10190 | };
|
10191 | Et.prototype.parentRef = function() {
|
10192 | return this._parentRef || (this._parentRef = this.parent() ? this.parent().ref() : "" + this.parentCache() + "._");
|
10193 | };
|
10194 | Et.prototype.parentCache = function() {
|
10195 | return this._parentCache || (this._parentCache = this.parent() ? this.parent().cvar() : this.isMemoized() ? this.scope__().closure().tagCache() : this.scope__().closure().tagTempCache());
|
10196 | };
|
10197 | Et.prototype.renderContextFn = function() {
|
10198 | return "" + this.parentCache() + "[" + this.gsym("#getRenderContext") + "]";
|
10199 | };
|
10200 | Et.prototype.dynamicContextFn = function() {
|
10201 | return "" + this.parentCache() + "[" + this.gsym("#getDynamicContext") + "]";
|
10202 | };
|
10203 | Et.prototype.bvar = function() {
|
10204 | return this._bvar || (this._parent ? this._parent.bvar() : this.tagvar("B"));
|
10205 | };
|
10206 | Et.prototype.cvar = function() {
|
10207 | return this._cvar || (this._parent ? this._parent.cvar() : this.tagvar("C"));
|
10208 | };
|
10209 | Et.prototype.owncvar = function() {
|
10210 | return this.tagvar("C");
|
10211 | };
|
10212 | Et.prototype.vvar = function() {
|
10213 | return this.tagvar("V");
|
10214 | };
|
10215 | Et.prototype.hvar = function() {
|
10216 | return this.tagvar("H");
|
10217 | };
|
10218 | Et.prototype.kvar = function() {
|
10219 | return this.tagvar("K");
|
10220 | };
|
10221 | Et.prototype.dvar = function() {
|
10222 | return this.tagvar("D");
|
10223 | };
|
10224 | Et.prototype.ref = function() {
|
10225 | return this._ref || (this._cachedRef = "" + (this.parent() ? this.parent().cvar() : "") + "[" + this.osym() + "]");
|
10226 | };
|
10227 | Et.prototype.visit = function(t) {
|
10228 | var e = this._options, r = this._tagScope = this.scope__();
|
10229 | this.up() instanceof re && this.set({detached: true});
|
10230 | let i = this._parent = t._tag;
|
10231 | this._level = (this._parent && this._parent._level || 0) + 1, t._tag = null;
|
10232 | for (let s = 0, n = It(this._attributes), o = n.length; s < o; s++)
|
10233 | n[s].traverse();
|
10234 | return t._tag = this, e.key && e.key.traverse(), this.visitBeforeBody(t), this.body() && this.body().traverse(), this.visitAfterBody(t), t._tag = this._parent, this._parent || (this._level = 0, this.consumeChildren(), this.visitAfterConsumed()), this;
|
10235 | };
|
10236 | Et.prototype.visitBeforeBody = function() {
|
10237 | return this;
|
10238 | };
|
10239 | Et.prototype.visitAfterBody = function() {
|
10240 | return this;
|
10241 | };
|
10242 | Et.prototype.consumeChildren = function() {
|
10243 | if (this._consumed.length)
|
10244 | return;
|
10245 | this.body() && this.body().consume(this);
|
10246 | let t = this._consumed[0], e = this._consumed[this._consumed.length - 1];
|
10247 | this.isAbstract() || (t instanceof Et && t.flag(Se.TAG_FIRST_CHILD), e instanceof Et && e.flag(Se.TAG_LAST_CHILD));
|
10248 | for (let r = 0, i = It(this._consumed), s = i.length, n; r < s; r++)
|
10249 | n = i[r], n instanceof Et && (n._consumedBy = this, n._parent = this, n._level = this._level + 1, n.visitAfterConsumed(), n.consumeChildren());
|
10250 | return this.visitAfterConsumedChildren(), this;
|
10251 | };
|
10252 | Et.prototype.visitAfterConsumedChildren = function() {
|
10253 | return this;
|
10254 | };
|
10255 | Et.prototype.visitAfterConsumed = function() {
|
10256 | return this;
|
10257 | };
|
10258 | Et.prototype.consume = function(t) {
|
10259 | return t instanceof Et ? t.register(this) : t instanceof Ft ? (this.option("assignToVar", t), this) : t instanceof Ve ? J(t.op(), t.left(), this) : t instanceof Ke ? J("=", t.left(), this) : t instanceof re ? J(t.op(), t.left(), this) : t instanceof Qe ? (this.option("return", true), this) : this;
|
10260 | };
|
10261 | function No() {
|
10262 | return Ut.apply(this, arguments);
|
10263 | }
|
10264 | A(No, Ut);
|
10265 | E.TagTextContent = No;
|
10266 | function ji() {
|
10267 | return Et.apply(this, arguments);
|
10268 | }
|
10269 | A(ji, Et);
|
10270 | E.TagContent = ji;
|
10271 | ji.prototype.vvar = function() {
|
10272 | return this.parent().vvar();
|
10273 | };
|
10274 | ji.prototype.bvar = function() {
|
10275 | return this.parent().bvar();
|
10276 | };
|
10277 | ji.prototype.ref = function() {
|
10278 | return this.fragment().tvar();
|
10279 | };
|
10280 | ji.prototype.key = function() {
|
10281 | return this._key || (this._key = "" + this.parent().cvar() + "[" + this.osym() + "]");
|
10282 | };
|
10283 | ji.prototype.isStatic = function() {
|
10284 | return this.value() instanceof de || this.value() instanceof Ie;
|
10285 | };
|
10286 | ji.prototype.js = function() {
|
10287 | let t = this.value(), e = [], r = t instanceof de || t instanceof Ie || t instanceof No, i = this.isStatic();
|
10288 | if (O.tsc())
|
10289 | return t.c(this.o());
|
10290 | if (this.parent() instanceof Ue || this._tvar && this.parent() instanceof ne && (this.parent().isSlot() || this.isDetached())) {
|
10291 | if (e.push("" + this._tvar + "=" + t.c(this.o())), t instanceof ke || t instanceof qs) {
|
10292 | let s = "" + this.parent().cvar() + "[" + this.osym("$") + "]";
|
10293 | e.unshift("" + this.runtime().renderContext + ".context=(" + s + " || (" + s + "={_:" + this.fragment().tvar() + "}))"), e.push("" + this.runtime().renderContext + ".context=null");
|
10294 | }
|
10295 | } else {
|
10296 | if (this.isOnlyChild() && (t instanceof de || t instanceof Ie))
|
10297 | return "" + this.bvar() + " || " + this.ref() + ".text$(" + t.c(this.o()) + ")";
|
10298 | if (i)
|
10299 | return "" + this.bvar() + " || " + this.ref() + this.domCall("insert") + "(" + t.c(this.o()) + ")";
|
10300 | if (t instanceof No && this.isOnlyChild() && !(this.parent() instanceof Ue))
|
10301 | return "(" + this.vvar() + "=" + t.c(this.o()) + "," + this.vvar() + "===" + this.key() + " || " + this.ref() + ".text$(String(" + this.key() + "=" + this.vvar() + ")))";
|
10302 | {
|
10303 | e.push("" + this.vvar() + "=" + t.c(this.o()));
|
10304 | let s = "" + this.parent().cvar() + "[" + this.osym("i") + "]";
|
10305 | if (t instanceof ke || t instanceof qs) {
|
10306 | let n = "" + this.parent().cvar() + "[" + this.osym("$") + "]";
|
10307 | e.unshift("" + this.runtime().renderContext + ".context=(" + n + " || (" + n + "={_:" + this.fragment().tvar() + "}))"), e.push("" + this.runtime().renderContext + ".context=null");
|
10308 | }
|
10309 | t instanceof No ? e.push("(" + this.vvar() + "===" + this.key() + "&&" + this.bvar() + ") || (" + s + " = " + this.ref() + this.domCall("insert") + "(String(" + this.key() + "=" + this.vvar() + ")," + this._flags + "," + s + "))") : e.push("(" + this.vvar() + "===" + this.key() + "&&" + this.bvar() + ") || (" + s + " = " + this.ref() + this.domCall("insert") + "(" + this.key() + "=" + this.vvar() + "," + this._flags + "," + s + "))");
|
10310 | }
|
10311 | }
|
10312 | return "(" + e.join(",") + ")";
|
10313 | };
|
10314 | function gc() {
|
10315 | return Et.apply(this, arguments);
|
10316 | }
|
10317 | A(gc, Et);
|
10318 | E.TagFragment = gc;
|
10319 | function Ue() {
|
10320 | return Et.apply(this, arguments);
|
10321 | }
|
10322 | A(Ue, Et);
|
10323 | E.TagSwitchFragment = Ue;
|
10324 | Ue.prototype.setup = function() {
|
10325 | return Ue.prototype.__super__.setup.apply(this, arguments), this._branches = [], this._inserts = [], this._styles = [];
|
10326 | };
|
10327 | Ue.prototype.getInsertVar = function(t) {
|
10328 | return this._inserts[t] || (this._inserts[t] = this.tagvar("\u03C4" + t + "if"));
|
10329 | };
|
10330 | Ue.prototype.getStyleVar = function(t) {
|
10331 | return this._styles[t] || (this._styles[t] = this.tagvar("\u03C4" + t + "css"));
|
10332 | };
|
10333 | Ue.prototype.tvar = function() {
|
10334 | return this.fragment().tvar();
|
10335 | };
|
10336 | Ue.prototype.register = function(t) {
|
10337 | let e = Ue.prototype.__super__.register.apply(this, arguments);
|
10338 | if (this._branches) {
|
10339 | let r = this._branches[this._branches.length - 1];
|
10340 | r && r.push(e);
|
10341 | }
|
10342 | return e;
|
10343 | };
|
10344 | Ue.prototype.visitAfterConsumedChildren = function() {
|
10345 | if (!(this._parent instanceof Ue)) {
|
10346 | let t = this.assignChildIndices(0, 0, this);
|
10347 | }
|
10348 | return this;
|
10349 | };
|
10350 | Ue.prototype.assignChildIndices = function(t, e, r) {
|
10351 | let i = t, s = t, n = e, o = e;
|
10352 | for (let a = 0, l = It(this._branches), p = l.length, c; a < p; a++) {
|
10353 | c = l[a], i = t;
|
10354 | for (let _ = 0, f = It(c), m = f.length, g; _ < m; _++)
|
10355 | if (g = f[_], g instanceof Ue) {
|
10356 | let b = g.assignChildIndices(i, n, r);
|
10357 | i = b[0], n = b[1];
|
10358 | } else
|
10359 | g instanceof dr ? (g._tvar = r.getStyleVar(n), g._tvar._stylerule = g, n++) : (g._tvar = r.getInsertVar(i), g.set({detached: true}), i++);
|
10360 | i > s && (s = i), n > o && (o = n);
|
10361 | }
|
10362 | return [s, o];
|
10363 | };
|
10364 | Ue.prototype.js = function(t) {
|
10365 | var e = [], r = "";
|
10366 | let i = this._inserts.concat(this._styles);
|
10367 | Xl(i) && (r = i.join(" = ") + " = null");
|
10368 | let s = t.inline;
|
10369 | this.body().isExpression() && (t.inline = true);
|
10370 | var n = this.body().c(t);
|
10371 | if (t.inline = s, O.tsc())
|
10372 | return n;
|
10373 | r && e.push(r), e.push(n);
|
10374 | for (let o = 0, a = It(this._inserts), l = a.length; o < l; o++) {
|
10375 | let p = "" + this.cvar() + "[" + this.osym(o) + "]";
|
10376 | e.push("(" + p + " = " + this.tvar() + this.domCall("insert") + "(" + a[o] + ",0," + p + "))");
|
10377 | }
|
10378 | for (let o = 0, a = It(this._styles), l = a.length, p; o < l; o++) {
|
10379 | p = a[o];
|
10380 | let c = p._stylerule._name;
|
10381 | e.push("" + this.tvar() + ".flags.toggle('" + c + "',!!" + p + ")");
|
10382 | }
|
10383 | return t.inline ? e.join(",") : e.join(`;
|
10384 | `);
|
10385 | };
|
10386 | function Nr() {
|
10387 | return Et.apply(this, arguments);
|
10388 | }
|
10389 | A(Nr, Et);
|
10390 | E.TagLoopFragment = Nr;
|
10391 | Nr.prototype.isKeyed = function() {
|
10392 | return this.option("keyed") || this.hasFlag(Se.TAG_HAS_BRANCHES);
|
10393 | };
|
10394 | Nr.prototype.isIndexableInLoop = function() {
|
10395 | return true;
|
10396 | };
|
10397 | Nr.prototype.consumeChildren = function() {
|
10398 | return Nr.prototype.__super__.consumeChildren.apply(this, arguments), this.hasFlag(Se.TAG_HAS_BRANCHES) ? this.set({keyed: true}) : this._consumed.every(function(t) {
|
10399 | return t instanceof Et && t.isIndexableInLoop();
|
10400 | }) ? this.set({indexed: true}) : this.set({keyed: true});
|
10401 | };
|
10402 | Nr.prototype.cvar = function() {
|
10403 | return this._cvar || this.tagvar("C");
|
10404 | };
|
10405 | Nr.prototype.js = function(t) {
|
10406 | if (this.stack().isExpression())
|
10407 | return He(js([], [this], this.stack().scope()), []).c();
|
10408 | if (O.tsc())
|
10409 | return "" + this.tvar() + ` = new DocumentFragment;
|
10410 | ` + this.value().c(t);
|
10411 | this.parent() instanceof Nr && this.parent().isKeyed() && this.set({detached: true}), this.parent() instanceof Ue && this.set({detached: true}), this.parent() && !this._consumedBy && this.set({detached: true});
|
10412 | let e = this.option("indexed") ? this.runtime().createIndexedList : this.runtime().createKeyedList, r = this.parent().cvar(), i = this.isDetached() ? Rt("null") : this.fragment().tvar(), s = "", n;
|
10413 | return this.parent() instanceof Nr ? this.parent().isKeyed() ? (this.option("key", J("+", Rt("'" + this.oid() + "$'"), this.parent().kvar())), s += "" + this.hvar() + "=" + this.option("key").c() + `;
|
10414 | `, n = this._ref = "" + this.parent().cvar() + "[" + this.hvar() + "]") : n = this._ref = "" + this.parent().cvar() + "[" + this.parent().kvar() + "]" : n = "" + r + "[" + this.osym() + "]", s += "(" + this.tvar() + " = " + n + ") || (" + n + "=" + this.tvar() + "=" + e + "(" + this._flags + "," + i + `));
|
10415 | `, this._ref = "" + this.tvar(), this.isDetached() && (s += "" + this.tvar() + "[" + this.gsym("##up") + "] = " + this.fragment().tvar() + `;
|
10416 | `), s += "" + this.kvar() + ` = 0;
|
10417 | `, s += "" + this.cvar() + "=" + this.tvar() + `.$;
|
10418 | `, s += this.value().c(t), s += ";" + this.tvar() + this.domCall("end") + "(" + this.kvar() + ");", this.parent() instanceof Nr && (this.parent().isKeyed() ? s += "" + this.parent().ref() + ".push(" + this.tvar() + "," + this.parent().kvar() + "++," + this.hvar() + ");" : this.parent().isIndexed() && (s += "" + this.parent().kvar() + "++;")), s;
|
10419 | };
|
10420 | function d3() {
|
10421 | return Et.apply(this, arguments);
|
10422 | }
|
10423 | A(d3, Et);
|
10424 | E.TagIndexedFragment = d3;
|
10425 | function m3() {
|
10426 | return Et.apply(this, arguments);
|
10427 | }
|
10428 | A(m3, Et);
|
10429 | E.TagKeyedFragment = m3;
|
10430 | function Oo() {
|
10431 | return Et.apply(this, arguments);
|
10432 | }
|
10433 | A(Oo, Et);
|
10434 | E.TagSlotProxy = Oo;
|
10435 | Oo.prototype.ref = function() {
|
10436 | return this.tvar();
|
10437 | };
|
10438 | Oo.prototype.tagvarprefix = function() {
|
10439 | return this.oid() + "S";
|
10440 | };
|
10441 | function ne() {
|
10442 | return Et.apply(this, arguments);
|
10443 | }
|
10444 | A(ne, Et);
|
10445 | E.Tag = ne;
|
10446 | ne.prototype.attrmap = function(t) {
|
10447 | return this._attrmap;
|
10448 | };
|
10449 | ne.prototype.setAttrmap = function(t) {
|
10450 | return this._attrmap = t, this;
|
10451 | };
|
10452 | ne.prototype.setup = function() {
|
10453 | return ne.prototype.__super__.setup.apply(this, arguments), this._attributes = this._options.attributes || [], this._attrmap = {}, this._classNames = [], this._className = null;
|
10454 | };
|
10455 | ne.prototype.isAbstract = function() {
|
10456 | return this.isSlot() || this.isFragment();
|
10457 | };
|
10458 | ne.prototype.attrs = function() {
|
10459 | return this._attributes;
|
10460 | };
|
10461 | ne.prototype.cssns = function() {
|
10462 | return this._cssns || (this._cssns = ("" + this.sourceId()).replace("-", "_"));
|
10463 | };
|
10464 | ne.prototype.cssid = function() {
|
10465 | return this._cssid || (this._cssid = ("" + this.sourceId()).replace("_", "-"));
|
10466 | };
|
10467 | ne.prototype.cssflag = function() {
|
10468 | return this._cssflag || (this._cssflag = "" + this.sourceId());
|
10469 | };
|
10470 | ne.prototype.tagvarprefix = function() {
|
10471 | return this.isSelf() ? "SELF" : "T";
|
10472 | };
|
10473 | ne.prototype.isStatementLike = function() {
|
10474 | return this.option("iife");
|
10475 | };
|
10476 | ne.prototype.isIndexableInLoop = function() {
|
10477 | return !this.option("key") && !this.isDynamicType();
|
10478 | };
|
10479 | ne.prototype.traverse = function() {
|
10480 | if (this._traversed)
|
10481 | return this;
|
10482 | this._tid = O.generateId("tag"), this.scope__().imbaDependency("core"), this._tagDeclaration = O.up(sr);
|
10483 | let t = this._options.close, e = this._options.body || [], r = this;
|
10484 | return t && t._value == "/>" && Xl(e) && (r = [this].concat(e._nodes), this._options.body = new ar([])), ne.prototype.__super__.traverse.apply(this, arguments), r;
|
10485 | };
|
10486 | ne.prototype.visitBeforeBody = function(t) {
|
10487 | var e = this;
|
10488 | e.oid();
|
10489 | let r = e._options.type;
|
10490 | r && r.traverse(), O.hmr() && e.cssid(), e.isSelf() || e.tagName().indexOf("-") >= 0 || e.isDynamicType() || r && r.isComponent() ? (e._options.custom = true, e._kind = "component") : e._kind = "element", e.attrs().length == 0 && !e._options.type && (e._options.type = "fragment");
|
10491 | let i = e.tagName();
|
10492 | if (i == "slot" ? e._kind = "slot" : i == "fragment" && (e._kind = "fragment"), i == "shadow-root" && (e._kind = "shadow-root"), e.isSelf()) {
|
10493 | let n = t.up(sr);
|
10494 | n && n.set({self: e, sourceId: e.sourceId()});
|
10495 | }
|
10496 | e._tagName = i, e._dynamics = [];
|
10497 | let s = 0;
|
10498 | for (; s < e._attributes.length; ) {
|
10499 | let n = e._attributes[s++];
|
10500 | if (n instanceof mr && n.name() instanceof dr && n.name().placeholders().length)
|
10501 | for (let o = 0, a = It(n.name().placeholders()), l = a.length, p; o < l; o++) {
|
10502 | p = a[o];
|
10503 | let c = new p2(p.name());
|
10504 | c._tag = e, c.setValue(p.runtimeValue()), c.set({propname: p._propname, unit: p.option("unit"), styleterm: p}), e._attributes.splice(s++, 0, c), c.traverse();
|
10505 | }
|
10506 | }
|
10507 | if (e._attributes = e._attributes.filter(function(n) {
|
10508 | if (n instanceof mr && n.isStatic())
|
10509 | return e._classNames.push(n), false;
|
10510 | if (!O.tsc()) {
|
10511 | if (n == e._attrmap.$key)
|
10512 | return n.warn("$key= is deprecated, use key=", {loc: n._name}), e.set({key: n.value()}), false;
|
10513 | if (n == e._attrmap.key)
|
10514 | return e.set({key: n.value()}), false;
|
10515 | }
|
10516 | return n.isStatic() || e._dynamics.push(n), true;
|
10517 | }), e.isSlot()) {
|
10518 | let n = e._attrmap.name ? e._attrmap.name.value() : "__";
|
10519 | n instanceof de && (n = n.raw()), e.set({name: n}), e._attributes = [];
|
10520 | }
|
10521 | return e._scope = new xc(e), e._scope.visit(), ne.prototype.__super__.visitBeforeBody.apply(e, arguments);
|
10522 | };
|
10523 | ne.prototype.register = function(t) {
|
10524 | if (t = ne.prototype.__super__.register.call(this, t), t instanceof Et && this.isComponent() && !this.isSelf()) {
|
10525 | let e = t instanceof ne ? t._attrmap.slot : null, r = "__";
|
10526 | e && e.value() instanceof de && (r = e.value().raw());
|
10527 | let i = this.getSlot(r);
|
10528 | t._fragment = i;
|
10529 | }
|
10530 | return t;
|
10531 | };
|
10532 | ne.prototype.visitAfterBody = function(t) {
|
10533 | return this;
|
10534 | };
|
10535 | ne.prototype.visitAfterConsumed = function() {
|
10536 | if (this.isSVG() && (this._kind = "svg"), this._options.reference) {
|
10537 | let t = this.stack().up(Re), e = this.stack().up(sr), r;
|
10538 | if (this._options.key && (r = "Named element cannot be keyed at the same time"), e && t && String(t.name()) == "render") {
|
10539 | for (let i = 0, s = It(this.tagLikeParents()), n = s.length, o; i < n; i++)
|
10540 | o = s[i], o instanceof Nr && (r = "Named tags not allowed inside loops"), o instanceof ne && o.isDynamicType() && (r = "Named tags not allowed inside dynamic parent");
|
10541 | r || e.addElementReference(this._options.reference, this);
|
10542 | } else
|
10543 | r = "Named tags are only allowed inside render method";
|
10544 | r && this.warn(r, {loc: this._options.reference});
|
10545 | }
|
10546 | return this;
|
10547 | };
|
10548 | ne.prototype.visitAfterConsumedChildren = function() {
|
10549 | this.isSlot() && this._consumed.length > 1 && this.set({markWhenBuilt: true, reactive: true});
|
10550 | };
|
10551 | ne.prototype.hasBlockScopedVariables = function() {
|
10552 | return Object.keys(this._scope.varmap()).length > 0;
|
10553 | };
|
10554 | ne.prototype.getSlot = function(t) {
|
10555 | return this._slots || (this._slots = {}), this._slots[t] || (this._slots[t] = new Oo({parent: this, name: t}));
|
10556 | };
|
10557 | ne.prototype.addPart = function(t, e, r) {
|
10558 | let i = this._attributes, s = i.CURRENT, n = s;
|
10559 | if (e == h2 && this.set({id: t}), e == u2 && i.length == 0) {
|
10560 | let o = this.option("type");
|
10561 | o._token == "div" && (o = null), this.set({dynamic: true});
|
10562 | let a = t.nodes()[0];
|
10563 | return o && (a = He(o.toFunctionalType(), t.nodes())), this.set({type: a, functional: a}), this;
|
10564 | }
|
10565 | if (e == kc)
|
10566 | n = null;
|
10567 | else if (e == Ds)
|
10568 | t instanceof Ae && (t = t.value()), s instanceof mr ? (s.setCondition(t), this.flag(Se.TAG_HAS_DYNAMIC_FLAGS), s.set({op: r})) : s instanceof lr ? t && s.add(new jn(t), e) : s && (s.setValue(t), s.set({op: r}));
|
10569 | else if (s instanceof lr)
|
10570 | t instanceof Pe && t.single() && !t.isPrimitive() && (t = new (O.tsc() ? ie : Ni)([], [t.single()], null, {})), s.add(t, e);
|
10571 | else if (s instanceof nr)
|
10572 | s.add(t, e);
|
10573 | else if (e == mr && t instanceof Pe && !t.isPrimitive() && this.flag(Se.TAG_HAS_DYNAMIC_FLAGS), t instanceof e ? t._tag = this : t = new e(t, this), i.push(n = t), n instanceof nr && n.name().isPrimitive()) {
|
10574 | let o = String(n.name().toRaw());
|
10575 | o.match(/^bind(?=\:|$)/) && this.isFunctional() && n._name.error("bind not supported for functional fragments"), o == "bind" && ((n._name._single || n._name)._value = "bind:data", o = "bind:data"), this._attrmap[o] = n;
|
10576 | }
|
10577 | return n != s && (i.CURRENT = n), this;
|
10578 | };
|
10579 | ne.prototype.type = function() {
|
10580 | return this._options.type || (this._attributes.length == 0 ? "fragment" : "div");
|
10581 | };
|
10582 | ne.prototype.tagName = function() {
|
10583 | return this._tagName || String(this._options.type);
|
10584 | };
|
10585 | ne.prototype.isDynamicType = function() {
|
10586 | return this.type() instanceof Q1 || this._options.dynamic;
|
10587 | };
|
10588 | ne.prototype.isFunctional = function() {
|
10589 | return !!this._options.functional;
|
10590 | };
|
10591 | ne.prototype.isSVG = function() {
|
10592 | return this._isSVG == null ? this._isSVG = this.type() instanceof ce && this.type().isSVG() || this._parent && this._parent.isSVG() : this._isSVG;
|
10593 | };
|
10594 | ne.prototype.isAsset = function() {
|
10595 | return this._isAsset || false;
|
10596 | };
|
10597 | ne.prototype.create_ = function() {
|
10598 | return this.isFragment() || this.isSlot() ? this.runtime().createLiveFragment : this.isAsset() ? this.runtime().createAssetElement : this.isSVG() ? this.runtime().createSVGElement : this.isDynamicType() ? this.runtime().createDynamic : this.isComponent() ? this.runtime().createComponent : this.runtime().createElement;
|
10599 | };
|
10600 | ne.prototype.isReactive = function() {
|
10601 | return this.option("reactive") || (this._parent ? this._parent.isReactive() : !(this.scope__() instanceof le));
|
10602 | };
|
10603 | ne.prototype.isDetached = function() {
|
10604 | return this.option("detached");
|
10605 | };
|
10606 | ne.prototype.hasDynamicParts = function() {
|
10607 | return this._dynamics.length == 0 && !this.hasDynamicFlags() && !(this.type() instanceof Q1) && (this.body() ? this.body().values() : []).every(function(e) {
|
10608 | return e instanceof de || e instanceof ne && !e.isDynamicType();
|
10609 | }) && !this.hasNonTagChildren() && !this.isSlot() && !this.option("dynamic") && this.setHasDynamicParts(false), true;
|
10610 | };
|
10611 | ne.prototype.js = function(t) {
|
10612 | var e, r = O, i = r.isExpression(), s = [], n = [], o = [], a = function(Q) {
|
10613 | return Q instanceof Ft && (Q = Q.toString()), n.push(Q);
|
10614 | }, l = this.parent(), p = this.fragment(), c = this._tagDeclaration;
|
10615 | let _ = this._tagDeclaration ? this._tagDeclaration.scope() : null, f = this.isSelf() ? "self" : this.isFragment() ? "'fragment'" : this.type().isClass && this.type().isClass() ? this.type().toTypeArgument() : "'" + this.type()._value + "'";
|
10616 | (this.type()._value == "global" || this.type()._value == "teleport") && (f = "'i-" + this.type()._value + "'", O.use("dom_teleport")), l && !this._consumedBy && this.set({detached: true});
|
10617 | var m = t.inline, g = this.isSVG(), b = this.isReactive(), N = false, y = true, v = this._attrmap.route || this._attrmap.routeTo || this._attrmap["route-to"], d = this.isComponent() || v;
|
10618 | v && r.use("router");
|
10619 | var w = null, k = false;
|
10620 | this._asset && (f = this._assetRef.c());
|
10621 | var T = "";
|
10622 | if (this.isSlot())
|
10623 | if (this.root().isSelf())
|
10624 | T = J(".", J(".", this.root().tvar(), Ze("__slots")), Ze(this.option("name"))).c();
|
10625 | else {
|
10626 | let Q = J(".", this.root().tvar(), this.gsym("#registerFunctionalSlot")).c();
|
10627 | T = "" + Q + "(" + Ze(this.option("name")).c() + ")";
|
10628 | }
|
10629 | if (r.tsc()) {
|
10630 | this.type() instanceof ce && !this.isSelf() ? this.type().isAsset() ? a("" + this.tvar() + " = new " + Tt("SVGSVGElement", this.type())) : a("" + this.tvar() + " = new " + Tt(this.type().toClassName(), this.type())) : this.isSelf() ? a("" + this.tvar() + " = " + this.type().c()) : this.isDynamicType() ? this._options.dynamic ? (a("" + this.tvar() + " = new \u0393any"), a("" + this.type().c())) : (a("" + this.tvar() + " = new " + Tt("\u0393any", this.type())), a("" + this.type().c())) : (a("" + this.tvar() + " = new " + Tt("HTMLElement", this.type())), a("" + this.type().c()));
|
10631 | for (let Dt = 0, Zt = It(this._attributes), F = Zt.length, H; Dt < F; Dt++)
|
10632 | H = Zt[Dt], this._ref = this.tvar(), (H instanceof nr || H instanceof lr || H instanceof mr) && a(H.c(t));
|
10633 | let Q = this.body() ? this.body().values() : [];
|
10634 | for (let Dt = 0, Zt = It(Q), F = Zt.length; Dt < F; Dt++)
|
10635 | a(Zt[Dt].c());
|
10636 | if (t.inline || i)
|
10637 | return a(this.option("return") ? "return " + this.tvar() : "" + this.tvar()), "(" + n.join(`,
|
10638 | `) + ")";
|
10639 | {
|
10640 | this.option("return") && a("return " + this.tvar());
|
10641 | let Dt = n.join(`;
|
10642 | `);
|
10643 | return this.hasBlockScopedVariables() && (Dt = "{" + Dt + "}"), Dt;
|
10644 | }
|
10645 | }
|
10646 | var S = d || this.hasDynamicFlags() || this.attrs().length || this.option("markWhenBuilt") || this.isDetached() || this.isDynamicType() || !!this.option("key"), C = l && l.option("condition");
|
10647 | this.isDynamicType() && (k = true, f = "" + this.owncvar() + ".value"), this._cssid && this._classNames.unshift(this.cssid());
|
10648 | for (let Q = 0, Dt = It(O.closures()), Zt = Dt.length, F; Q < Zt; Q++)
|
10649 | F = Dt[Q], F._cssns && (!this.isSelf() || F != _) && this._classNames.push(F._cssns);
|
10650 | for (let Q = 0, Dt = It(this.tagLikeParents()), Zt = Dt.length, F; Q < Zt; Q++)
|
10651 | F = Dt[Q], F._cssns && this._classNames.push(F._cssns);
|
10652 | if (c && !this.isSelf() && (e = c.cssref(this.option("reference") ? null : this.scope__()))) {
|
10653 | let Q = c._cssns;
|
10654 | this._classNames.indexOf(Q) >= 0 && this._classNames.splice(this._classNames.indexOf(Q), 1), this._classNames.push(e);
|
10655 | }
|
10656 | if (this.option("reference") && _) {
|
10657 | let Q = String(this.option("reference")).slice(1);
|
10658 | this._classNames.push("ref--" + Q);
|
10659 | }
|
10660 | if (this.option("key") && this.set({detached: true}), this._classNames.length) {
|
10661 | let Q = [], Dt = false;
|
10662 | for (let F = 0, H = It(this._classNames), Y = H.length, P; F < Y; F++)
|
10663 | P = H[F], P instanceof mr ? P.name() instanceof Ci ? (Q.push(P.name().c({as: "substr"})), Dt = true) : Q.push(P.rawClassName()) : P instanceof Z ? (Dt = true, Q.push("${" + P.c() + "}")) : Q.push(P);
|
10664 | Q = Q.filter(function(F, H) {
|
10665 | return Q.indexOf(F) == H;
|
10666 | });
|
10667 | let Zt = Dt ? "`" : "'";
|
10668 | this._className = Zt + Q.join(" ") + Zt;
|
10669 | }
|
10670 | var L = [f, p && !this.option("detached") ? p.tvar() : "null", this._className || "null", "null"], D = this.body() ? this.body().values() : [];
|
10671 | D.length == 1 && D[0] instanceof ji && D[0].isStatic() && !this.isSelf() && !this.isSlot() && (L[3] = D[0].value().c(), D = []), this._dynamics.length == 0 && !this.hasDynamicFlags() && !w && !this.isDynamicType() && D.every(function(Q) {
|
10672 | return Q instanceof de || Q instanceof ne && !Q.isDynamicType() && !Q.option("key");
|
10673 | }) && !d && !this.hasNonTagChildren() && !this.isSlot() && !this.option("dynamic") && !this.option("reference") && (y = false, l instanceof ne && !(this.up() instanceof re) && (N = true)), (this.isFragment() || this.isSlot()) && (L = [this._flags].concat(L.slice(1, 2))), this.isSlot() && (L[1] = "null");
|
10674 | var I = Tt("" + this.create_() + "(" + L.join(",") + ")", this.type());
|
10675 | if (this.option("reference")) {
|
10676 | let Q = L[1];
|
10677 | L[1] = "null", I = Tt("" + this.create_() + "(" + L.join(",") + ")", this.type()), this.set({ctor: I}), I = J(".", this.scope__().context(), this.option("reference")).c(), I = "(" + this.tvar() + "=" + I + "," + this.tvar() + "[" + this.gsym("##up") + "]=" + Q + "," + this.tvar() + ")";
|
10678 | let Dt = this.option("tagdeclbody");
|
10679 | if (Dt && !O.tsc()) {
|
10680 | let Zt = Dt._head || (Dt._head = []), F = be.toValidIdentifier(this.option("reference").c()), H = this.option("ctor"), Y = "let el=" + H + `;
|
10681 | return (Object.defineProperty(this,'` + F + "',{value:el}),el);", P = "get " + F + `(){
|
10682 | ` + Y + `
|
10683 | }`;
|
10684 | Zt.push(P);
|
10685 | }
|
10686 | } else
|
10687 | I = "" + this.tvar() + "=" + I;
|
10688 | this.option("assign") && (I = J("=", this.option("assign"), Rt(I)).c());
|
10689 | let U = this.hasDynamicDescendants();
|
10690 | if (this._consumedBy) {
|
10691 | if (t.inline && !N && (this.option("iife", true), t.inline = false), this.isShadowRoot()) {
|
10692 | let Q = "" + this.cvar() + "[" + this.osym() + "]";
|
10693 | a("" + this.tvar() + "=" + Q + " || (" + Q + "=" + p.tvar() + ".attachShadow({mode:'open'}))");
|
10694 | } else if (this.isSlot() && !this.hasChildren()) {
|
10695 | if (a("" + this.tvar() + "=" + T), !(l instanceof Ue)) {
|
10696 | let Q = "" + this.cvar() + "[" + this.osym() + "]";
|
10697 | a("(" + Q + " = " + p.tvar() + this.domCall("insert") + "(" + this.tvar() + "," + this._flags + "," + Q + "))");
|
10698 | }
|
10699 | } else if (this.isSlot() && this._consumed.length == 1)
|
10700 | this._consumed[0].set({dynamic: true, detached: true}), this._consumed[0]._tvar = this.tvar(), this._consumed[0]._parent = l;
|
10701 | else if (l instanceof Nr) {
|
10702 | this._bvar = this.tagvar("B");
|
10703 | let Q = this.option("key");
|
10704 | if (this.option("key"))
|
10705 | if (this.isDynamicType()) {
|
10706 | a("" + this.owncvar() + "=" + this.renderContextFn() + "(" + this.option("key").c() + ")");
|
10707 | let Dt = "" + this.owncvar() + ".run(" + this.type().c() + ")";
|
10708 | a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Dt + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + this.owncvar() + ".cache(" + I + "))");
|
10709 | } else {
|
10710 | let Dt = "" + this.parentCache() + ".get(" + this.kvar() + "=" + this.option("key").c() + ")";
|
10711 | a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Dt + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + this.parentCache() + ".set(" + this.kvar() + "," + I + "))");
|
10712 | }
|
10713 | else if (l.isIndexed()) {
|
10714 | let Dt = "" + this.parentCache() + "[" + l.kvar() + "]";
|
10715 | a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Dt + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + Dt + "=" + I + ")");
|
10716 | } else if (l.isKeyed())
|
10717 | if (this.isDynamicType()) {
|
10718 | let Dt = "(" + this.owncvar() + "=" + this.dynamicContextFn() + "(" + this.type().osym() + "," + l.kvar() + ")).run(" + this.type().c() + ")";
|
10719 | a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Dt + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + this.owncvar() + ".cache(" + I + "))");
|
10720 | } else {
|
10721 | let Dt = "(" + this.kvar() + "=" + this.renderContextFn() + "(" + this.osym() + ")).get(" + l.kvar() + ")";
|
10722 | a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Dt + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + this.kvar() + ".set(" + l.kvar() + "," + I + "))");
|
10723 | }
|
10724 | this._ref = "" + this.tvar(), a("" + this.bvar() + "||(" + this.tvar() + "[" + this.gsym("##up") + "]=" + p.tvar() + ")"), (this._dynamics.length || this._consumed.length && D.length) && (k = true);
|
10725 | } else if (!b)
|
10726 | a("(" + I + ")");
|
10727 | else if (N)
|
10728 | this._ref = this.tvar(), this._bvar = l.bvar(), a("" + l.bvar() + " || (" + I + ")");
|
10729 | else {
|
10730 | let Q = this.option("key"), Dt = this._cref || (this._cref = "" + this.cvar() + "[" + this.osym() + "]");
|
10731 | if (S && (this._bvar = this.tagvar("B")), this.isDynamicType()) {
|
10732 | a(Q ? "" + this.owncvar() + "=" + this.dynamicContextFn() + "(" + Q.osym() + "," + Q.c() + ")" : "" + this.owncvar() + "=" + this.renderContextFn() + "(" + this.type().osym() + ")");
|
10733 | let Zt = "" + this.owncvar() + ".run(" + this.type().c() + ")";
|
10734 | a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Zt + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + this.owncvar() + ".cache(" + I + "))");
|
10735 | } else if (Q) {
|
10736 | a("" + this.owncvar() + "=" + this.renderContextFn() + "(" + Q.osym() + ")");
|
10737 | let Zt = "" + this.owncvar() + ".run(" + Q.c() + ")";
|
10738 | a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Zt + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + this.owncvar() + ".cache(" + I + "))");
|
10739 | } else {
|
10740 | let Zt = "" + this.parentCache() + "[" + this.osym() + "]";
|
10741 | a(S ? "(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Zt + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + Zt + "=" + I + ")" : "(" + this.tvar() + "=" + Zt + ") || (" + Zt + "=" + I + ")");
|
10742 | }
|
10743 | this.isDetached() && a("" + this.bvar() + "||(" + this.tvar() + "[" + this.gsym("##up") + "]=" + p.tvar() + ")"), this._ref = this.tvar(), w && (k = true), l instanceof Ue && (k = true);
|
10744 | }
|
10745 | k && (this._cvar = this.tvar());
|
10746 | } else if (this._ref = "" + this.tvar(), this.isSelf())
|
10747 | a("" + this.tvar() + "=this"), a("" + this.tvar() + this.domCall("open") + "()"), a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "[" + this.osym() + "] === 1) || (" + this.bvar() + "=" + this.dvar() + "=0," + this.tvar() + "[" + this.osym() + "]=1)"), this._cvar = this.tvar();
|
10748 | else if (b) {
|
10749 | let Q = "" + this.parentCache() + "[" + this.osym() + "]";
|
10750 | this.isDynamicType() ? (this.option("key") ? a("" + this.owncvar() + "=" + this.dynamicContextFn() + "(" + this.osym() + "," + this.option("key").c() + ")") : a("" + this.owncvar() + "=" + this.renderContextFn() + "(" + this.osym() + ")"), I = "" + this.owncvar() + ".cache(" + I + ")", a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + this.owncvar() + ".run(" + this.type().c() + ")) || (" + this.bvar() + "=" + this.dvar() + "=0," + I + ")")) : this.option("key") ? (a("" + this.cvar() + "=(" + Q + "=" + Q + "||new Map())"), a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + this.cvar() + ".get(" + this.kvar() + "=" + this.option("key").c() + ")) || (" + this.bvar() + "=" + this.dvar() + "=0," + this.cvar() + ".set(" + this.kvar() + "," + I + "))")) : this.isMemoized() ? a("(" + this.bvar() + "=" + this.dvar() + "=1," + this.tvar() + "=" + Q + ") || (" + this.bvar() + "=" + this.dvar() + "=0," + this.tvar() + "=" + Q + "=" + I + ")") : a("(" + this.bvar() + "=" + this.dvar() + "=0," + this.tvar() + "=" + I + ")"), a("" + this.bvar() + " || (" + this.tvar() + "[" + this.gsym("##up") + "]=" + this.parentRef() + ")"), this._cvar = this.tvar(), this._ref = this.tvar(), i && !U ? (this.option("inline", N = true), t.inline = true) : (i && this.option("iife", true), t.inline = false);
|
10751 | } else
|
10752 | a("(" + I + ")"), this._cvar = this.tvar(), i && !y ? (this.option("inline", N = true), t.inline = true) : (this.option("iife", true), t.inline = false);
|
10753 | if (this.isDynamicType() && a({if: "" + this.tvar() + "[" + this.gsym("#isRichElement") + "]"}), this._slots)
|
10754 | for (let Q = this._slots, Dt, Zt = 0, F = Object.keys(Q), H = F.length, Y; Zt < H; Zt++) {
|
10755 | Y = F[Zt], Dt = Q[Y], O.use("slots");
|
10756 | let P = this.isDynamicType() ? this.gsym("#getFunctionalSlot") : this.gsym("#getSlot");
|
10757 | a("" + Dt.tvar() + " = " + J(".", this.tvar(), P).c() + "('" + Y + "'," + this.cvar() + ")");
|
10758 | }
|
10759 | let B = [];
|
10760 | for (let Q = 0, Dt = It(this._attributes), Zt = Dt.length, F; Q < Zt; Q++) {
|
10761 | if (F = Dt[Q], F._chain && F._chain.length && !(F instanceof lr)) {
|
10762 | let H = F.modifiers(), Y = !H.isStatic(), P = H.extractDynamics(), M = F.modsIdentifier(), X = M ? J(".", this.tvar(), M).c() : "" + this.cvar() + "[" + H.osym() + "]";
|
10763 | if (Y) {
|
10764 | a("" + this.vvar() + " = " + X + " || (" + H.c(t) + ")");
|
10765 | for (let ee = 0, oe = It(P), tt = oe.length, $; ee < tt; ee++) {
|
10766 | $ = oe[ee];
|
10767 | let et = $.option("key"), W = $.option("index");
|
10768 | a("" + J(".", this.vvar(), et).c() + "[" + W + "]=" + $.c(t));
|
10769 | }
|
10770 | a("" + this.bvar() + " || (" + X + "=" + this.vvar() + ")");
|
10771 | } else
|
10772 | a("" + this.bvar() + " || (" + X + "=" + H.c(t) + ")");
|
10773 | }
|
10774 | if (!b)
|
10775 | a(F.c(t));
|
10776 | else if (F.isStatic())
|
10777 | a("" + this.bvar() + " || (" + F.c(t) + ")");
|
10778 | else {
|
10779 | let H = "" + this.cvar() + "[" + F.osym() + "]";
|
10780 | if (F instanceof mr) {
|
10781 | let Y = F.condition(), P = F.name(), M, X, ee = !this.isDynamicType();
|
10782 | Y && !Y.isPrimitive() && (M = "" + this.cvar() + "[" + Y.osym() + "]", a("(" + this.vvar() + "=(" + Y.c(t) + "||undefined)," + this.vvar() + "===" + M + "||(" + this.dvar() + "|=" + Se.DIFF_FLAGS + "," + M + "=" + this.vvar() + "))")), P && !(P instanceof br) && !P.isPrimitive() && !(P instanceof Ci) && !(P instanceof dr) && (X = "" + this.cvar() + "[" + P.osym() + "]", a("(" + this.vvar() + "=" + P.c(t) + "," + this.vvar() + "===" + X + "||(" + this.dvar() + "|=" + Se.DIFF_FLAGS + "," + X + "=" + this.vvar() + "))")), M && X ? B.push("(" + M + " ? (" + X + "||'') : '')") : M ? B.push("(" + M + " ? " + P.c({as: "string"}) + " : '')") : X ? B.push("(" + X + "||'')") : P instanceof Ci ? B.push(P.c({as: "string"})) : B.push("'" + P.c({as: "substring"}) + "'");
|
10783 | } else if (F instanceof lr) {
|
10784 | let Y = F.modifiers(), P = Y.extractDynamics(), M = false;
|
10785 | a("" + this.hvar() + " = " + H + " || (" + H + "=" + Y.c(t) + ")");
|
10786 | for (let X = 0, ee = It(P), oe = ee.length, tt; X < oe; X++) {
|
10787 | tt = ee[X];
|
10788 | let $ = tt.option("key"), et = tt.option("index"), W = "" + J(".", this.hvar(), $).c() + "[" + et + "]";
|
10789 | $ == "options" ? (M = true, a("(" + this.vvar() + "=" + tt.c(t) + "," + this.vvar() + "===" + W + " || (" + W + "=" + this.vvar() + "," + this.dvar() + "|=" + Se.DIFF_MODIFIERS + "|" + Se.DIFF_INLINE + "))")) : a("" + W + "=" + tt.c(t));
|
10790 | }
|
10791 | a("" + this.bvar() + " || " + this.ref() + ".on$(" + F.quoted() + "," + this.hvar().c() + "," + this.scope__().context().c() + ")"), M && a("" + this.dvar() + "&" + Se.DIFF_INLINE + " && (" + this.dvar() + "^=" + Se.DIFF_INLINE + "," + this.hvar() + "[" + this.gsym("#visit") + "]?.())");
|
10792 | } else if (F instanceof nr && F.ns() == "bind") {
|
10793 | let Y = F.value(), P = o3(Y);
|
10794 | if (d = true, P instanceof Array) {
|
10795 | let M = P[0], X = P[1], ee = "[]", oe = M && M.isConstant(), tt = X && X.isConstant();
|
10796 | oe && tt ? ee = "[" + M.c(t) + "," + X.c(t) + "]" : tt && (ee = "[null," + X.c(t) + "]"), a("" + this.vvar() + "=" + H + " || (" + H + "=" + this.ref() + ".bind$('" + F.key() + "'," + ee + "))");
|
10797 | for (let $ = 0, et = It(P), W = et.length, rt; $ < W; $++)
|
10798 | rt = et[$], rt && rt.isConstant() || a("" + this.vvar() + "[" + $ + "]=" + rt.c(t));
|
10799 | } else if (P instanceof Ft) {
|
10800 | let M = "function(){ return " + P.c(t) + " }", X = "function(v$){ " + P.c(t) + " = v$ }", ee = "{get:" + M + ",set:" + X + "}";
|
10801 | a("" + this.bvar() + " || " + this.ref() + ".bind$('" + F.key() + "'," + ee + ")");
|
10802 | }
|
10803 | } else {
|
10804 | g && F.option({svg: true});
|
10805 | let Y = F.value();
|
10806 | if (F.valueIsStatic())
|
10807 | a("" + this.bvar() + " || (" + Tt(F.js(t), F) + ")");
|
10808 | else if (Y instanceof ie)
|
10809 | a("(" + F.js(t) + ")");
|
10810 | else if (Y._variable) {
|
10811 | let P = Y.c(t);
|
10812 | F.setValue(Rt("" + H + "=" + P)), a("(" + P + "===" + H + " || (" + Tt(F.js(t), F) + "))");
|
10813 | } else
|
10814 | F.setValue(Rt("" + H + "=" + this.vvar())), a("(" + this.vvar() + "=" + Y.c(t) + "," + this.vvar() + "===" + H + " || (" + Tt(F.js(t), F) + "))");
|
10815 | }
|
10816 | }
|
10817 | }
|
10818 | if (B.length || (this.isSelf() || this.isDynamicType()) && this._className) {
|
10819 | this._className && B.unshift(this._className);
|
10820 | let Q = "" + this.dvar() + "&" + Se.DIFF_FLAGS, Dt = this.isSelf() ? "flagSelf$" : "flag$";
|
10821 | (this.isSelf() || this.isDynamicType()) && (Q = "(!" + this.bvar() + "||" + Q + ")"), this.isDynamicType() ? a("(" + Q + " && " + this.tvar() + ".flags.reconcile(" + this.osym() + "," + B.join("+' '+") + "))") : a("(" + Q + " && " + this.tvar() + "." + Dt + "(" + B.join("+' '+") + "))");
|
10822 | }
|
10823 | let q = D.length;
|
10824 | for (let Q = 0, Dt = D.length, Zt; Q < Dt; Q++)
|
10825 | if (Zt = D[Q], Zt instanceof de)
|
10826 | a(b ? "" + this.bvar() + " || " + this.tvar() + this.domCall("insert") + "(" + Zt.c(t) + ")" : "" + this.tvar() + this.domCall("insert") + "(" + Zt.c(t) + ")");
|
10827 | else if (Zt instanceof dr)
|
10828 | for (let F = 0, H = It(Zt.placeholders()), Y = H.length; F < Y; F++) {
|
10829 | let P = H[F]._setter, M = "" + this.cvar() + "[" + P.osym() + "]", X = P.value();
|
10830 | if (P.valueIsStatic())
|
10831 | a("" + this.bvar() + " || (" + Tt(P.js(t), P) + ")");
|
10832 | else if (X instanceof ie)
|
10833 | a("(" + P.js(t) + ")");
|
10834 | else if (X._variable) {
|
10835 | let ee = X.c(t);
|
10836 | P.setValue(Rt("" + M + "=" + ee)), a("(" + ee + "===" + M + " || (" + Tt(P.js(t), P) + "))");
|
10837 | } else
|
10838 | P.setValue(Rt("" + M + "=" + this.vvar())), a("(" + this.vvar() + "=" + X.c(t) + "," + this.vvar() + "===" + M + " || (" + Tt(P.js(t), P) + "))");
|
10839 | }
|
10840 | else
|
10841 | a(Zt.c(t));
|
10842 | if (d && (!l && !this.isSelf() ? (o.push("" + this.bvar() + " || " + this.parentCache() + ".sym || !" + this.tvar() + ".setup || " + this.tvar() + ".setup(" + this.dvar() + ")"), o.push("" + this.parentCache() + ".sym || " + this.tvar() + this.domCall("end") + "(" + this.dvar() + ")")) : this.isSelf() ? o.push("" + this.tvar() + this.domCall("close") + "(" + this.dvar() + ")") : (o.push("" + this.bvar() + " || !" + this.tvar() + ".setup || " + this.tvar() + ".setup(" + this.dvar() + ")"), o.push("" + this.tvar() + this.domCall("end") + "(" + this.dvar() + ")"))), this.isDynamicType() && o.push({endif: true}), l instanceof Nr)
|
10843 | l.isKeyed() ? o.push("" + l.ref() + ".push(" + this.tvar() + "," + l.kvar() + "++," + this.kvar() + ")") : l.isIndexed() && o.push("" + l.kvar() + "++");
|
10844 | else if (!(this.isFragment() && l && !(l instanceof Ue))) {
|
10845 | if (l && !(l instanceof Ue) && (this.isComponent() || w || this.option("reference"))) {
|
10846 | let Q = p.ref(), Dt = this._cref;
|
10847 | w || this.isDynamicType() || this.isDetached() ? p instanceof Oo ? o.push("(" + this.tvar() + "==" + Dt + ") || (!" + Dt + " && " + Q + this.domCall("appendChild") + "(" + Dt + "=" + this.tvar() + ")) || (" + Q + this.domCall("replaceChild") + "(" + this.tvar() + "," + Dt + ")," + Dt + "=" + this.tvar() + ")") : o.push("(" + this.tvar() + "==" + Dt + ") || (!" + Dt + " && (" + Dt + "=" + this.tvar() + ")" + this.domCall("insertInto") + "(" + Q + ")) || " + Dt + this.domCall("replaceWith") + "(" + Dt + "=" + this.tvar() + "," + Q + ")") : this.isDetached() || o.push("" + this.bvar() + " || " + Q + this.domCall("appendChild") + "(" + this.tvar() + ")");
|
10848 | }
|
10849 | }
|
10850 | if (this.option("fragmented") && a("" + this.runtime().renderContext + ".context=null"), this._consumedBy || (this.option("return") || this.option("iife") ? o.push("return " + this.tvar()) : (!b || t.inline) && o.push("" + this.tvar())), n = n.concat(o), t.inline) {
|
10851 | t.inline = m;
|
10852 | let Q = "(", Dt = n.length - 1;
|
10853 | for (let Zt = 0, F = It(n), H = F.length, Y; Zt < H; Zt++)
|
10854 | Y = F[Zt], Y.if ? Q += "(" + Y.if + ` && (
|
10855 | ` : (Q += Y.endif ? "))" : Y, Zt == Dt || n[Zt + 1].endif || (Q += `,
|
10856 | `));
|
10857 | if (Q += ")", this.isSlot() && this.hasChildren()) {
|
10858 | let Zt = "";
|
10859 | if (!(l instanceof Ue)) {
|
10860 | let F = "" + this.cvar() + "[" + this.osym() + "]", H = "" + this.cvar() + "[" + this.osym("_") + "]", Y = "" + this.cvar() + "[" + this.osym("__") + "]", P = "" + this.tvar() + "===" + Y + " || (" + H + " = " + p.tvar() + this.domCall("insert") + "(" + Y + "=" + this.tvar() + "," + this._flags + "," + H + "))";
|
10861 | }
|
10862 | Q = "(" + this.tvar() + "=" + T + "),(!" + this.tvar() + " || !" + this.tvar() + ".hasChildNodes() && " + Q + "),(" + Zt + ")";
|
10863 | }
|
10864 | return Q;
|
10865 | }
|
10866 | t.inline = m;
|
10867 | let K = "";
|
10868 | for (let Q = 0, Dt = It(n), Zt = Dt.length, F; Q < Zt; Q++)
|
10869 | F = Dt[Q], F.if ? K += "if(" + F.if + `){
|
10870 | ` : F.endif ? K += `};
|
10871 | ` : K += F + `;
|
10872 | `;
|
10873 | if (this.isSlot() && this.hasChildren()) {
|
10874 | let Q = "";
|
10875 | if (!(l instanceof Ue)) {
|
10876 | let Dt = "" + this.cvar() + "[" + this.osym() + "]", Zt = "" + this.cvar() + "[" + this.osym("_") + "]", F = "" + this.cvar() + "[" + this.osym("__") + "]";
|
10877 | Q = "" + this.tvar() + "===" + F + " || (" + Zt + " = " + p.tvar() + this.domCall("insert") + "(" + F + "=" + this.tvar() + "," + this._flags + "," + Zt + "))";
|
10878 | }
|
10879 | K = "" + this.tvar() + "=" + T + `;
|
10880 | if(!` + this.tvar() + " || !" + this.tvar() + `.hasChildNodes()){
|
10881 | ` + K + `
|
10882 | }
|
10883 | ` + Q;
|
10884 | }
|
10885 | return this.option("iife") ? (K = "(()=>{" + K + ";})()", this.option("return") && (K = "return " + K)) : this.hasBlockScopedVariables() && (K = "{" + K + "}"), K;
|
10886 | };
|
10887 | function Da() {
|
10888 | return Ut.apply(this, arguments);
|
10889 | }
|
10890 | A(Da, Ut);
|
10891 | E.TagWrapper = Da;
|
10892 | Da.prototype.visit = function() {
|
10893 | return this.value() instanceof Array ? this.value().map(function(t) {
|
10894 | return t.traverse();
|
10895 | }) : this.value().traverse(), this;
|
10896 | };
|
10897 | Da.prototype.c = function() {
|
10898 | return "" + this.scope__().imba().c() + ".getTagForDom(" + this.value().c({expression: true}) + ")";
|
10899 | };
|
10900 | function Qs(t, e) {
|
10901 | this._nodes = t || [], this._options = e;
|
10902 | }
|
10903 | A(Qs, jt);
|
10904 | E.Selector = Qs;
|
10905 | Qs.prototype.add = function(t, e) {
|
10906 | return this.push(t), this;
|
10907 | };
|
10908 | Qs.prototype.isExpressable = function() {
|
10909 | return true;
|
10910 | };
|
10911 | Qs.prototype.visit = function() {
|
10912 | let t = [];
|
10913 | for (let e = 0, r = It(this._nodes), i = r.length, s; e < i; e++)
|
10914 | s = r[e], t.push(!(s instanceof br) && s.traverse());
|
10915 | return t;
|
10916 | };
|
10917 | Qs.prototype.query = function() {
|
10918 | var t = "", e = [];
|
10919 | for (let i = 0, s = It(this.nodes()), n = s.length, o; i < n; i++) {
|
10920 | o = s[i];
|
10921 | var r = o.c();
|
10922 | o instanceof br ? e.push("'" + r.replace(/\'/g, '"') + "'") : e.push(r);
|
10923 | }
|
10924 | return e.join(" + ");
|
10925 | };
|
10926 | Qs.prototype.toString = function() {
|
10927 | return Pt.cary(this.nodes()).join("");
|
10928 | };
|
10929 | Qs.prototype.js = function(t) {
|
10930 | var e = this.option("type"), r = Pt.c(this.query()), i = this.scope__().imba().c();
|
10931 | return e == "%" ? "" + i + ".q$(" + r + "," + t.scope().context().c({explicit: true}) + ")" : e == "%%" ? "" + i + ".q$$(" + r + "," + t.scope().context().c({explicit: true}) + ")" : "" + i + ".q" + e + "(" + r + ")";
|
10932 | };
|
10933 | function y3() {
|
10934 | return Ut.apply(this, arguments);
|
10935 | }
|
10936 | A(y3, Ut);
|
10937 | E.SelectorPart = y3;
|
10938 | function Co() {
|
10939 | return Ut.apply(this, arguments);
|
10940 | }
|
10941 | A(Co, Ut);
|
10942 | E.Await = Co;
|
10943 | Co.prototype.func = function(t) {
|
10944 | return this._func;
|
10945 | };
|
10946 | Co.prototype.setFunc = function(t) {
|
10947 | return this._func = t, this;
|
10948 | };
|
10949 | Co.prototype.js = function(t) {
|
10950 | return "await " + this.value().c();
|
10951 | };
|
10952 | Co.prototype.visit = function(t) {
|
10953 | this.value().traverse();
|
10954 | var e = t.up(ie);
|
10955 | return e && e.set({async: true}), this;
|
10956 | this.warn("toplevel await not allowed");
|
10957 | var r = t.up(Lt), i = t.relative(r, 1), s = t.relative(this, -1);
|
10958 | if (this.setFunc(new Ma([], [])), this.func().body().setNodes(r.defers(i, this)), this.func().scope().visit(), s instanceof Ve) {
|
10959 | s.left().traverse();
|
10960 | var n = s.left().node();
|
10961 | n instanceof Oe ? this.func().params().at(0, true, n.variable().name()) : (s.setRight(this.func().params().at(0, true)), this.func().body().unshift(s), this.func().scope().context());
|
10962 | }
|
10963 | return this.func().traverse(), this;
|
10964 | };
|
10965 | function Ma(t, e, r, i, s) {
|
10966 | Ma.prototype.__super__.constructor.call(this, t, e, r, i, s);
|
10967 | }
|
10968 | A(Ma, ie);
|
10969 | E.AsyncFunc = Ma;
|
10970 | Ma.prototype.scopetype = function() {
|
10971 | return Ao;
|
10972 | };
|
10973 | function cr(t, e) {
|
10974 | this._name = t, this._alias = e;
|
10975 | }
|
10976 | A(cr, Z);
|
10977 | E.ESMSpecifier = cr;
|
10978 | cr.prototype.alias = function(t) {
|
10979 | return this._alias;
|
10980 | };
|
10981 | cr.prototype.setAlias = function(t) {
|
10982 | return this._alias = t, this;
|
10983 | };
|
10984 | cr.prototype.name = function(t) {
|
10985 | return this._name;
|
10986 | };
|
10987 | cr.prototype.setName = function(t) {
|
10988 | return this._name = t, this;
|
10989 | };
|
10990 | cr.prototype.loc = function() {
|
10991 | return this._alias ? this._alias.loc() : this._name.loc();
|
10992 | };
|
10993 | cr.prototype.visit = function(t) {
|
10994 | return this._declaration = t.up(jr), this._declaration instanceof Gn ? this._importer = this._declaration : this._exporter = this._declaration, this._cname = be.clearLocationMarkers(this._name.c()), this._key = this._alias ? be.clearLocationMarkers(this._alias.c()) : this._cname, this._exporter ? this._exporter.source() || (this._variable = this.scope__().root().lookup(this._cname)) : (this._variable = this.scope__().root().register(this._key, this, {type: "imported"}), t.registerSemanticToken(this._alias || this._name, this._variable)), this;
|
10995 | };
|
10996 | cr.prototype.js = function() {
|
10997 | let t = be.toValidIdentifier(this._name.c()), e = this._alias && be.toValidIdentifier(this._alias.c());
|
10998 | return e ? "" + t + " as " + e : "" + t;
|
10999 | };
|
11000 | function d2() {
|
11001 | return cr.apply(this, arguments);
|
11002 | }
|
11003 | A(d2, cr);
|
11004 | E.ImportSpecifier = d2;
|
11005 | d2.prototype.visit = function() {
|
11006 | if (d2.prototype.__super__.visit.apply(this, arguments), this._importer && O.cjs())
|
11007 | return this._variable._c = J(".", this._importer.variable(), this._name).c();
|
11008 | };
|
11009 | function m2() {
|
11010 | return cr.apply(this, arguments);
|
11011 | }
|
11012 | A(m2, cr);
|
11013 | E.ImportNamespaceSpecifier = m2;
|
11014 | m2.prototype.visit = function() {
|
11015 | if (m2.prototype.__super__.visit.apply(this, arguments), this._importer && O.cjs())
|
11016 | return this._variable._c = this._importer.variable().c();
|
11017 | };
|
11018 | function g3() {
|
11019 | return cr.apply(this, arguments);
|
11020 | }
|
11021 | A(g3, cr);
|
11022 | E.ExportSpecifier = g3;
|
11023 | function v3() {
|
11024 | return cr.apply(this, arguments);
|
11025 | }
|
11026 | A(v3, cr);
|
11027 | E.ExportAllSpecifier = v3;
|
11028 | function Va() {
|
11029 | return cr.apply(this, arguments);
|
11030 | }
|
11031 | A(Va, cr);
|
11032 | E.ImportDefaultSpecifier = Va;
|
11033 | Va.prototype.visit = function() {
|
11034 | if (Va.prototype.__super__.visit.apply(this, arguments), O.cjs() && this._importer)
|
11035 | return this._variable._c = "" + this._importer.variable().c() + ".default";
|
11036 | };
|
11037 | function y2() {
|
11038 | return jt.apply(this, arguments);
|
11039 | }
|
11040 | A(y2, jt);
|
11041 | E.ESMSpecifierList = y2;
|
11042 | y2.prototype.js = function() {
|
11043 | return "{" + y2.prototype.__super__.js.apply(this, arguments) + "}";
|
11044 | };
|
11045 | function jr(t, e, r) {
|
11046 | this.setup(), this._keyword = t, this._specifiers = e, this._source = r, this._defaults = e && e.find(function(i) {
|
11047 | return i instanceof Va;
|
11048 | });
|
11049 | }
|
11050 | A(jr, Pi);
|
11051 | E.ESMDeclaration = jr;
|
11052 | jr.prototype.variable = function(t) {
|
11053 | return this._variable;
|
11054 | };
|
11055 | jr.prototype.setVariable = function(t) {
|
11056 | return this._variable = t, this;
|
11057 | };
|
11058 | jr.prototype.source = function(t) {
|
11059 | return this._source;
|
11060 | };
|
11061 | jr.prototype.setSource = function(t) {
|
11062 | return this._source = t, this;
|
11063 | };
|
11064 | jr.prototype.isExport = function() {
|
11065 | return String(this.keyword()) == "export";
|
11066 | };
|
11067 | jr.prototype.js = function() {
|
11068 | let t = Tt(this.keyword().c(), this.keyword());
|
11069 | if (this._specifiers && this._source)
|
11070 | return "" + t + " " + Pt.cary(this._specifiers).join(",") + " from " + this._source.c();
|
11071 | if (this._specifiers)
|
11072 | return "" + t + " " + Pt.cary(this._specifiers).join(",");
|
11073 | if (this._source)
|
11074 | return "" + t + " " + this._source.c();
|
11075 | };
|
11076 | function Lo() {
|
11077 | return Ut.apply(this, arguments);
|
11078 | }
|
11079 | A(Lo, Ut);
|
11080 | E.AssetReference = Lo;
|
11081 | Lo.prototype.setup = function() {
|
11082 | return this;
|
11083 | };
|
11084 | Lo.prototype.asset = function() {
|
11085 | return this._value;
|
11086 | };
|
11087 | Lo.prototype.c = function() {
|
11088 | let t = "", e = this.value().ref.c(), r = this.value().path;
|
11089 | return this.asset().kind && r.indexOf("?as=") == -1 && (r += "?as=" + this.asset().kind), O.tsc() ? t = "const " + e + " = /** @type{ImbaAsset} */({path:'" + r + "'})" : t = "import " + e + " from " + xo("'" + r + "'"), t;
|
11090 | };
|
11091 | function Gn() {
|
11092 | return jr.apply(this, arguments);
|
11093 | }
|
11094 | A(Gn, jr);
|
11095 | E.ImportDeclaration = Gn;
|
11096 | Gn.prototype.ownjs = function() {
|
11097 | var t, e = this._source && this._source.c({locRef: "path"});
|
11098 | if (O.tsc()) {
|
11099 | var t = It(this._source.raw().split("?"));
|
11100 | let i = t[0], s = t[1];
|
11101 | (i.match(/\.(html|svg|png|jpe?g|gif)$/) || s && s.match(/^as=/)) && (e = Tt("'data:text/asset;charset=utf-8," + this._source.raw() + "'", this._source));
|
11102 | }
|
11103 | if (O.cjs()) {
|
11104 | let r = "require(" + e + ")";
|
11105 | return this._specifiers ? this._defaults && this._specifiers.length == 1 ? "var " + this._variable.c() + " = " + this.util().requireDefault(Rt(r)).c() : "var " + this._variable.c() + " = " + r : r;
|
11106 | }
|
11107 | return this._specifiers && this._source ? "" + Tt(this.keyword().c(), this.keyword()) + " " + Pt.cary(this._specifiers).join(",") + " from " + e : "" + Tt(this.keyword().c(), this.keyword()) + " " + e;
|
11108 | };
|
11109 | Gn.prototype.js = function() {
|
11110 | return this.ownjs();
|
11111 | };
|
11112 | Gn.prototype.push = function(t) {
|
11113 | let e = this._next || this;
|
11114 | return this._up.replace(e, [e, Fe, this._next = t]);
|
11115 | };
|
11116 | Gn.prototype.visit = function() {
|
11117 | var t;
|
11118 | if (O.cjs() && this._specifiers) {
|
11119 | var e = this._source.c(), r = be.clearLocationMarkers(e).match(/([\w\_\-]+)(\.js|imba)?[\"\']$/);
|
11120 | this._alias = r ? "_$" + r[1].replace(/[\/\-]/g, "_") : "mod$", this._variable = this.scope__().register(this._alias, null, {system: true});
|
11121 | }
|
11122 | for (let i = 0, s = It(this._specifiers), n = s.length; i < n; i++)
|
11123 | (t = s[i]) && t.traverse && t.traverse();
|
11124 | this.scope__()._lastImport = this, this._up = this.up();
|
11125 | };
|
11126 | function wc() {
|
11127 | return jr.apply(this, arguments);
|
11128 | }
|
11129 | A(wc, jr);
|
11130 | E.ImportTypeDeclaration = wc;
|
11131 | wc.prototype.js = function() {
|
11132 | if (!O.tsc())
|
11133 | return "";
|
11134 | let t = this._source.c();
|
11135 | if (this._defaults) {
|
11136 | let e = "/** @typedef {import(SOURCE).default} NAME */true";
|
11137 | return e = e.replace("SOURCE", t).replace("NAME", this._defaults.c()), e;
|
11138 | } else {
|
11139 | let e = [];
|
11140 | for (let r = 0, i = It(this._specifiers[0].nodes()), s = i.length, n; r < s; r++) {
|
11141 | n = i[r];
|
11142 | let o = n._name.c(), a = n._alias ? n._alias.c() : n._name.c(), l = "/** @typedef {import(" + t + ")." + o + "} " + a + " */true";
|
11143 | e.push(l);
|
11144 | }
|
11145 | return e.join(`;
|
11146 | `);
|
11147 | }
|
11148 | };
|
11149 | function $s() {
|
11150 | return jr.apply(this, arguments);
|
11151 | }
|
11152 | A($s, jr);
|
11153 | E.ExportDeclaration = $s;
|
11154 | $s.prototype.visit = function() {
|
11155 | var t;
|
11156 | this.scope__().root().activateExports();
|
11157 | for (let e = 0, r = It(this._specifiers), i = r.length; e < i; e++)
|
11158 | (t = r[e]) && t.traverse && t.traverse();
|
11159 | return this;
|
11160 | };
|
11161 | $s.prototype.js = function() {
|
11162 | let t = Tt(this.keyword().c(), this.keyword());
|
11163 | if (O.cjs()) {
|
11164 | let r = [];
|
11165 | if (this._source) {
|
11166 | this._variable || (this._variable = this.scope__().register(null, null, {system: true}));
|
11167 | let i = "var " + this._variable.c() + " = require(" + this._source.c() + ")";
|
11168 | r.push(i);
|
11169 | let s = `Object.defineProperty(exports, $name$, {
|
11170 | enumerable: true, get: function get() { return $path$; }
|
11171 | });`;
|
11172 | for (let n = 0, o = It(this._specifiers[0]), a = o.length, l; n < a; n++) {
|
11173 | l = o[n];
|
11174 | let p = s.replace("$name$", (l.alias() || l.name()).toStr().c());
|
11175 | p = p.replace("$path$", J(".", this._variable, l.name()).c()), r.push(p);
|
11176 | }
|
11177 | } else
|
11178 | for (let i = 0, s = It(this._specifiers[0]), n = s.length, o; i < n; i++) {
|
11179 | o = s[i];
|
11180 | let a = J("=", J(".", Rt("exports"), o.alias() || o.name()), o._variable);
|
11181 | r.push(a.c());
|
11182 | }
|
11183 | return r.join(`;
|
11184 | `);
|
11185 | }
|
11186 | if (this._specifiers && this._source)
|
11187 | return "" + t + " " + Pt.cary(this._specifiers).join(",") + " from " + this._source.c();
|
11188 | if (this._specifiers)
|
11189 | return "" + t + " " + Pt.cary(this._specifiers).join(",");
|
11190 | if (this._source)
|
11191 | return "" + t + " " + this._source.c();
|
11192 | };
|
11193 | function b3() {
|
11194 | return $s.apply(this, arguments);
|
11195 | }
|
11196 | A(b3, $s);
|
11197 | E.ExportAllDeclaration = b3;
|
11198 | function k3() {
|
11199 | return $s.apply(this, arguments);
|
11200 | }
|
11201 | A(k3, $s);
|
11202 | E.ExportNamedDeclaration = k3;
|
11203 | function Ri() {
|
11204 | return Ut.apply(this, arguments);
|
11205 | }
|
11206 | A(Ri, Ut);
|
11207 | E.Export = Ri;
|
11208 | Ri.prototype.loc = function() {
|
11209 | let t = this.option("keyword");
|
11210 | return t && t.region ? t.region() : Ri.prototype.__super__.loc.apply(this, arguments);
|
11211 | };
|
11212 | Ri.prototype.consume = function(t) {
|
11213 | return t instanceof Qe ? (this.option("return", true), this) : Ri.prototype.__super__.consume.apply(this, arguments);
|
11214 | };
|
11215 | Ri.prototype.visit = function() {
|
11216 | return this.scope__().root().activateExports(), this.value().set({export: this.option("keyword") || this, return: this.option("return"), default: this.option("default")}), Ri.prototype.__super__.visit.apply(this, arguments);
|
11217 | };
|
11218 | Ri.prototype.js = function(t) {
|
11219 | var e = this;
|
11220 | let r = e.option("default");
|
11221 | if (e.value() instanceof jt && e.value().map(function(i) {
|
11222 | return i.set({export: e});
|
11223 | }), e.value() instanceof Re || e.value() instanceof _e)
|
11224 | return e.value().c();
|
11225 | if (e.value() instanceof Ve && e.value().left() instanceof Oe)
|
11226 | if (O.cjs()) {
|
11227 | let i = e.value().left().value(), s = r ? "default" : e.value().left().value().symbol();
|
11228 | return e.value().setRight(J("=", Rt("exports." + s), e.value().right())), e.value().c();
|
11229 | } else {
|
11230 | let i = Tt("export", e.option("keyword")), s = r && Tt("default", e.option("default"));
|
11231 | return r ? "" + i + " " + s + " " + e.value().c() : "" + i + " " + e.value().c();
|
11232 | }
|
11233 | if (r) {
|
11234 | let i = e.value().c();
|
11235 | return O.cjs() ? "exports.default = " + i : "export default " + i;
|
11236 | }
|
11237 | return e.value().c();
|
11238 | };
|
11239 | function g2() {
|
11240 | return Ut.apply(this, arguments);
|
11241 | }
|
11242 | A(g2, Ut);
|
11243 | E.Require = g2;
|
11244 | g2.prototype.js = function(t) {
|
11245 | var e = this.value() instanceof Ae ? this.value().value() : this.value(), r = e.c({locRef: "path"});
|
11246 | return r == "require" ? "require" : "require(" + r + ")";
|
11247 | };
|
11248 | function Js() {
|
11249 | Js.prototype.__super__.constructor.apply(this, arguments), this._key = String(this._value).slice(1, -1);
|
11250 | }
|
11251 | A(Js, Ut);
|
11252 | E.EnvFlag = Js;
|
11253 | Js.prototype.raw = function() {
|
11254 | return this._raw == null ? this._raw = O.env("" + this._key) : this._raw;
|
11255 | };
|
11256 | Js.prototype.isTruthy = function() {
|
11257 | var t = this.raw();
|
11258 | if (t !== void 0)
|
11259 | return !!t;
|
11260 | };
|
11261 | Js.prototype.loc = function() {
|
11262 | return [0, 0];
|
11263 | };
|
11264 | Js.prototype.c = function() {
|
11265 | var t = this.raw(), e = t;
|
11266 | return t !== void 0 ? typeof t == "string" || t instanceof String ? t.match(/^\d+(\.\d+)?$/) ? e = String(parseFloat(t)) : e = "'" + t + "'" : e = "" + t : e = "ENV_" + this._key, Tt(e, this._value);
|
11267 | };
|
11268 | function ds() {
|
11269 | return Z.apply(this, arguments);
|
11270 | }
|
11271 | A(ds, Z);
|
11272 | E.StyleNode = ds;
|
11273 | function x3() {
|
11274 | return ds.apply(this, arguments);
|
11275 | }
|
11276 | A(x3, ds);
|
11277 | E.StyleSelector = x3;
|
11278 | function dr(t, e) {
|
11279 | this._placeholders = [], this._selectors = t, this._body = e;
|
11280 | }
|
11281 | A(dr, ds);
|
11282 | E.StyleRuleSet = dr;
|
11283 | dr.prototype.isStatic = function() {
|
11284 | return true;
|
11285 | };
|
11286 | dr.prototype.isGlobal = function() {
|
11287 | return !!this.option("global");
|
11288 | };
|
11289 | dr.prototype.addPlaceholder = function(t) {
|
11290 | return this._placeholders.push(t), this;
|
11291 | };
|
11292 | dr.prototype.placeholders = function() {
|
11293 | return this._placeholders;
|
11294 | };
|
11295 | dr.prototype.cssid = function() {
|
11296 | return this._cssid || (this._cssid = "" + O.root().sourceId() + "-" + this.oid());
|
11297 | };
|
11298 | dr.prototype.visit = function(t, e) {
|
11299 | let r = this._tagDeclaration = t.up(sr);
|
11300 | this._css = {}, this._flag = t.up(mr), this._tag = this._flag && this._flag._tag;
|
11301 | let i = String(this._selectors).trim();
|
11302 | if (t.parent() instanceof us)
|
11303 | if (t.up(2) instanceof sr)
|
11304 | this._css.type = "component", this._variable || (this._sel = i || "&", this._css.scope = r);
|
11305 | else
|
11306 | throw "css not allowed in class declaration";
|
11307 | else
|
11308 | t.parent() instanceof fs ? (this._tag = t.up(Et), this._sel = i || "&", this._css.type = "scoped", this._css.scope = this._tag) : this.option("toplevel") ? t.up(fs) ? (this._tag = t.up(Et), this._sel = i || "&", this._css.scope = this._tag, this._css.ns = this.cssid(), this._css.id = this.cssid(), this._css.type = "scoped", this._name = this.cssid(), this.set({inTagTree: true})) : (this._css.scope = this.isGlobal() ? null : this.scope__().closure(), this._sel || (this._sel = i)) : e.rule ? (this._sel || (this._sel = this._selectors && this._selectors.toString && this._selectors.toString().trim()), this._sel.indexOf("&") == -1 && (this._sel = "& " + this._sel)) : !this._name && this._tag && this._flag && !this._flag._condition ? (this._css.scope = this._tag, this._name = this._tag.cssid(), this._sel = "&") : this._name || (this._name = this.cssid(), this._sel = "." + this._name);
|
11309 | if (this._selectors && this._selectors.traverse && this._selectors.traverse(), this._styles = {}, this._body && this._body.traverse && this._body.traverse({rule: this, styles: this._styles, rootRule: e.rule || this}), this._placeholders.length) {
|
11310 | if (this.option("inTagTree"))
|
11311 | for (let s = 0, n = It(this._placeholders), o = n.length, a; s < o; s++) {
|
11312 | a = n[s];
|
11313 | let l = new p2(a.name());
|
11314 | l._tag = this._tag, l.setValue(a.runtimeValue()), l.set({propname: a._propname, unit: a.option("unit"), styleterm: a}), a._setter = l, l.traverse();
|
11315 | }
|
11316 | else if (!this._flag)
|
11317 | for (let s = 0, n = It(this._placeholders), o = n.length, a; s < o; s++)
|
11318 | a = n[s], console.log("" + a), a.warn("Only allowed inside tag tree");
|
11319 | }
|
11320 | if (e.rule && e.styles)
|
11321 | e.styles[this._sel] ? Object.assign(e.styles[this._sel], this._styles) : e.styles[this._sel] = this._styles;
|
11322 | else {
|
11323 | let s = this._tagDeclaration, n = {selectors: [], ns: this._css.ns, id: this._css.id, type: this._css.type, scope: this._css.scope, component: r, inline: !!this._flag, global: !!this.isGlobal(), mixins: {}, apply: {}, depth: this._tag ? this._tag._level : 0};
|
11324 | this._css = new p_(null, this._sel, this._styles, n).toString(), O.css().add(this._css, n);
|
11325 | }
|
11326 | return this;
|
11327 | };
|
11328 | dr.prototype.toRaw = function() {
|
11329 | return "" + this._name;
|
11330 | };
|
11331 | dr.prototype.c = function() {
|
11332 | if (this.option("toplevel") && this.option("export"))
|
11333 | return O.cjs() ? "exports." + this._identifier.c() + " = '" + this._name + "'" : Tt("export", this.option("export")) + (" const " + this._identifier.c() + " = '" + this._name + "'");
|
11334 | if (this._tvar) {
|
11335 | let e = ["" + this._tvar + " = '" + this._name + "'"], r = function(o) {
|
11336 | return e.push(o);
|
11337 | }, i = this._tag.cvar(), s = this._tag.bvar();
|
11338 | for (let o = 0, a = It(this._placeholders), l = a.length; o < l; o++) {
|
11339 | let p = a[o]._setter, c = "" + i + "[" + p.osym() + "]", _ = p.value();
|
11340 | r("" + Tt(p.js(this.o()), p));
|
11341 | }
|
11342 | return O.isExpression() ? "(" + e.join(",") + ")" : e.join(`;
|
11343 | `);
|
11344 | }
|
11345 | if (O.tsc() && this._placeholders.length) {
|
11346 | let e = [];
|
11347 | for (let i = 0, s = It(this.placeholders()), n = s.length; i < n; i++)
|
11348 | e.push(s[i].runtimeValue().c());
|
11349 | return O.isExpression() ? "(" + e.join(",") + ")" : e.join(`;
|
11350 | `);
|
11351 | }
|
11352 | return this.option("inClassBody") || this.option("inTagTree") || this.option("toplevel") ? "" : "'" + this._name + "'";
|
11353 | };
|
11354 | function ja() {
|
11355 | return jt.apply(this, arguments);
|
11356 | }
|
11357 | A(ja, jt);
|
11358 | E.StyleBody = ja;
|
11359 | ja.prototype.visit = function() {
|
11360 | let t = this._nodes, e = 0, r;
|
11361 | for (let i = 0, s = It(t), n = s.length, o; i < n; i++)
|
11362 | o = s[i], o instanceof tn && (o._property._name || o._property.setName(r), r = o._property._name);
|
11363 | for (; e < t.length; ) {
|
11364 | let i = t[e], s = i.traverse();
|
11365 | if (s != i && s instanceof Array) {
|
11366 | t.splice.apply(t, [].concat([e, 1], Array.from(s)));
|
11367 | continue;
|
11368 | }
|
11369 | i == t[e] && e++;
|
11370 | }
|
11371 | return this;
|
11372 | };
|
11373 | ja.prototype.toJSON = function() {
|
11374 | return this.values();
|
11375 | };
|
11376 | function tn(t, e) {
|
11377 | this._property = t, this._expr = e instanceof Ji ? e : new Ji(e);
|
11378 | }
|
11379 | A(tn, ds);
|
11380 | E.StyleDeclaration = tn;
|
11381 | tn.prototype.clone = function(t, e) {
|
11382 | return e || (e = this._expr.clone()), (typeof e == "string" || typeof e == "number") && (e = [e]), !(e instanceof Array) && (!(e instanceof jt) || e instanceof v2) && (e = [e]), new tn(this._property.clone(t), e);
|
11383 | };
|
11384 | tn.prototype.visit = function(t, e) {
|
11385 | var r = this, i;
|
11386 | let s = t.theme(), n = t.parent(), o = String(r._property.name()), a = s.expandProperty(o);
|
11387 | if (r._expr && r._expr.traverse({rule: e.rule, rootRule: e.rootRule, decl: r, property: r._property}), a instanceof Array) {
|
11388 | n.replace(r, a.map(function(p) {
|
11389 | return r.clone(p);
|
11390 | }));
|
11391 | return;
|
11392 | } else
|
11393 | a && a != o && (r._property = r._property.clone(a));
|
11394 | let l = String(a || o).replace(/-/g, "_");
|
11395 | if (r._expr && r._expr.traverse({decl: r, property: r._property}), s[l] && !r.option("plain")) {
|
11396 | let p = s[l].apply(s, r._expr.toArray()), c = [];
|
11397 | if (p instanceof Array)
|
11398 | r._expr = new Ji(p);
|
11399 | else if (p instanceof Object) {
|
11400 | for (let _, f = 0, m = Object.keys(p), g = m.length, b; f < g; f++)
|
11401 | if (b = m[f], _ = p[b], b.indexOf("&") >= 0) {
|
11402 | let N = new ja([]), y = new dr(Rt(b), N);
|
11403 | c.push(y);
|
11404 | for (let v, d = 0, w = Object.keys(_), k = w.length, T; d < k; d++)
|
11405 | T = w[d], v = _[T], N.add(r.clone(T, v));
|
11406 | } else
|
11407 | c.push(r.clone(b, _).set({plain: b == o}));
|
11408 | n.replace(r, c);
|
11409 | return;
|
11410 | }
|
11411 | }
|
11412 | if (r._expr && (r._expr.traverse({decl: r, property: r._property}), r._expr.set({parens: false})), e.styles) {
|
11413 | let p = r._property.toKey(), c = r._expr;
|
11414 | e.selector && (p = JSON.stringify([e.selector, p])), r._property.isUnit() && r._property.number() != 1 && (c = Rt("calc(" + c.c() + " / " + r._property.number() + ")")), e.styles[p] && (i = e.styles[p], delete e.styles[p]), e.styles[p] = c.c({property: r._property});
|
11415 | }
|
11416 | return r;
|
11417 | };
|
11418 | tn.prototype.toCSS = function() {
|
11419 | return "" + this._property.c() + ": " + Pt.cary(this._expr).join(" ");
|
11420 | };
|
11421 | tn.prototype.toJSON = function() {
|
11422 | return this.toCSS();
|
11423 | };
|
11424 | function ur(t) {
|
11425 | var e;
|
11426 | this._token = t, this._parts = String(this._token).replace(/(^|\b)\$/g, "--").split(/\b(?=[\.\@])/g);
|
11427 | for (let r = 0, i = It(this._parts), s = i.length; r < s; r++)
|
11428 | this._parts[r] = i[r].replace(/^\./, "@.");
|
11429 | this._name = String(this._parts[0]), (e = this._name.match(/^(\d+)([a-zA-Z]+)$/)) && (this._number = parseInt(e[1]), this._unit = e[2]), this._name.match(/^[\w\-]/) || this._parts.unshift(this._name = null);
|
11430 | }
|
11431 | A(ur, ds);
|
11432 | E.StyleProperty = ur;
|
11433 | ur.prototype.name = function(t) {
|
11434 | return this._name;
|
11435 | };
|
11436 | ur.prototype.setName = function(t) {
|
11437 | return this._name = t, this;
|
11438 | };
|
11439 | ur.prototype.number = function(t) {
|
11440 | return this._number;
|
11441 | };
|
11442 | ur.prototype.setNumber = function(t) {
|
11443 | return this._number = t, this;
|
11444 | };
|
11445 | ur.prototype.unit = function(t) {
|
11446 | return this._unit;
|
11447 | };
|
11448 | ur.prototype.setUnit = function(t) {
|
11449 | return this._unit = t, this;
|
11450 | };
|
11451 | ur.prototype.setName = function(t) {
|
11452 | var e;
|
11453 | return (e = t.match(/^(\d+)([a-zA-Z]+)$/)) ? (this._number = parseInt(e[1]), this._unit = e[2]) : this._number = this._unit = null, this._name = t, this;
|
11454 | };
|
11455 | ur.prototype.name = function() {
|
11456 | return this._name || (this._name = String(this._parts[0]));
|
11457 | };
|
11458 | ur.prototype.clone = function(t) {
|
11459 | return new ur([t || this.name()].concat(this.modifiers()).join(""));
|
11460 | };
|
11461 | ur.prototype.addModifier = function(t) {
|
11462 | return this._parts.push(t), this;
|
11463 | };
|
11464 | ur.prototype.isUnit = function() {
|
11465 | return this._unit;
|
11466 | };
|
11467 | ur.prototype.modifiers = function() {
|
11468 | return this._parts.slice(1);
|
11469 | };
|
11470 | ur.prototype.toJSON = function() {
|
11471 | return this.name() + this.modifiers().join("\xA7");
|
11472 | };
|
11473 | ur.prototype.toString = function() {
|
11474 | return this.name() + this.modifiers().join("\xA7");
|
11475 | };
|
11476 | ur.prototype.toKey = function() {
|
11477 | return [this.isUnit() ? "--u_" + this._unit : this.name()].concat(this.modifiers()).join("\xA7");
|
11478 | };
|
11479 | ur.prototype.c = function() {
|
11480 | return this.toString();
|
11481 | };
|
11482 | function b2(t) {
|
11483 | this._name = t, String(t)[0] == "$" && (this._name = "--" + String(t).slice(1));
|
11484 | }
|
11485 | A(b2, ds);
|
11486 | E.StylePropertyIdentifier = b2;
|
11487 | b2.prototype.toJSON = function() {
|
11488 | return String(this._name);
|
11489 | };
|
11490 | b2.prototype.toString = function() {
|
11491 | return String(this._name);
|
11492 | };
|
11493 | function k2(t) {
|
11494 | this._name = t;
|
11495 | }
|
11496 | A(k2, ds);
|
11497 | E.StylePropertyModifier = k2;
|
11498 | k2.prototype.toJSON = function() {
|
11499 | return String(this._name);
|
11500 | };
|
11501 | k2.prototype.toString = function() {
|
11502 | return String(this._name);
|
11503 | };
|
11504 | function Ji() {
|
11505 | return jt.apply(this, arguments);
|
11506 | }
|
11507 | A(Ji, jt);
|
11508 | E.StyleExpressions = Ji;
|
11509 | Ji.prototype.load = function(t) {
|
11510 | return t instanceof Array && (t = t.map(function(e) {
|
11511 | return e instanceof hr ? e : new hr(e);
|
11512 | })), [].concat(t);
|
11513 | };
|
11514 | Ji.prototype.c = function(t) {
|
11515 | let e = Pt.cary(this._nodes, t).join(", ");
|
11516 | return this.option("parens") && (e = "( " + e + " )"), e;
|
11517 | };
|
11518 | Ji.prototype.clone = function() {
|
11519 | return new Ji(this._nodes.slice(0));
|
11520 | };
|
11521 | Ji.prototype.toArray = function() {
|
11522 | return this._nodes.filter(function(t) {
|
11523 | return t instanceof hr;
|
11524 | }).map(function(t) {
|
11525 | return t.toArray();
|
11526 | });
|
11527 | };
|
11528 | function hr() {
|
11529 | return jt.apply(this, arguments);
|
11530 | }
|
11531 | A(hr, jt);
|
11532 | E.StyleExpression = hr;
|
11533 | hr.prototype.load = function(t) {
|
11534 | return [].concat(t);
|
11535 | };
|
11536 | hr.prototype.toString = function() {
|
11537 | return Pt.cary(this._nodes).join(" ");
|
11538 | };
|
11539 | hr.prototype.toArray = function() {
|
11540 | return this._nodes.slice(0);
|
11541 | };
|
11542 | hr.prototype.clone = function() {
|
11543 | return new hr(this._nodes.slice(0));
|
11544 | };
|
11545 | hr.prototype.c = function(t) {
|
11546 | return t && t.as == "js" ? Pt.cary(this._nodes, t).join(" ") : this.toString();
|
11547 | };
|
11548 | hr.prototype.toJSON = function() {
|
11549 | return this.toString();
|
11550 | };
|
11551 | hr.prototype.toArray = function() {
|
11552 | return this._nodes;
|
11553 | };
|
11554 | hr.prototype.toIterable = function() {
|
11555 | return this._nodes;
|
11556 | };
|
11557 | hr.prototype.addParam = function(t, e) {
|
11558 | return t._op = e, this.last().addParam(t), this;
|
11559 | };
|
11560 | hr.prototype.reclaimParams = function() {
|
11561 | let t = this.filter(function(e) {
|
11562 | return e.param;
|
11563 | });
|
11564 | for (let e = 0, r = It(t), i = r.length, s; e < i; e++) {
|
11565 | s = r[e];
|
11566 | let n = s.param, o = n._op;
|
11567 | this.add([o, n], {after: s}), s._params = [];
|
11568 | }
|
11569 | };
|
11570 | hr.prototype.visit = function(t, e) {
|
11571 | if (e && e.property) {
|
11572 | let r = e.property._name;
|
11573 | (r == "gt" || r == "grid-template") && this.reclaimParams();
|
11574 | }
|
11575 | return hr.prototype.__super__.visit.apply(this, arguments);
|
11576 | };
|
11577 | function Bn() {
|
11578 | return Ut.apply(this, arguments);
|
11579 | }
|
11580 | A(Bn, Ut);
|
11581 | E.StyleParens = Bn;
|
11582 | Bn.prototype.visit = function(t, e) {
|
11583 | return Bn.prototype.__super__.visit.apply(this, arguments), this.set({calc: !t.up(Bn) && !t.up(en)});
|
11584 | };
|
11585 | Bn.prototype.c = function(t) {
|
11586 | let e = this._value.c();
|
11587 | return t && t.as == "js" ? e : this.option("calc") ? "calc(" + e + ")" : "(" + e + ")";
|
11588 | };
|
11589 | function v2() {
|
11590 | return jt.apply(this, arguments);
|
11591 | }
|
11592 | A(v2, jt);
|
11593 | E.StyleOperation = v2;
|
11594 | v2.prototype.c = function(t) {
|
11595 | return Pt.cary(this._nodes, t).join(" ");
|
11596 | };
|
11597 | function We() {
|
11598 | return Ut.apply(this, arguments);
|
11599 | }
|
11600 | A(We, Ut);
|
11601 | E.StyleTerm = We;
|
11602 | We.prototype.valueOf = function() {
|
11603 | return String(this._value);
|
11604 | };
|
11605 | We.prototype.toString = function() {
|
11606 | return String(this._value);
|
11607 | };
|
11608 | We.prototype.toRaw = function() {
|
11609 | return this.valueOf();
|
11610 | };
|
11611 | We.prototype.toAlpha = function() {
|
11612 | return this.toString();
|
11613 | };
|
11614 | We.prototype.visit = function(t, e) {
|
11615 | this._token = this._value, this._property = e.property, this._propname = e.property && e.property._name, this.alone = t.up() instanceof hr && t.up().values().length == 1;
|
11616 | let r = t.theme().$value(this, 0, this._propname);
|
11617 | return t.up(Bn) || t.up(en) || (this._resolvedValue = r), this;
|
11618 | };
|
11619 | Object.defineProperty(We.prototype, "param", {get: function() {
|
11620 | return this._params && this._params[0];
|
11621 | }, configurable: true});
|
11622 | We.prototype.kind = function() {
|
11623 | return this._kind;
|
11624 | };
|
11625 | We.prototype.runtimeValue = function() {
|
11626 | return this.value();
|
11627 | };
|
11628 | We.prototype.addParam = function(t) {
|
11629 | return this._params || (this._params = []), this._params.push(t), this;
|
11630 | };
|
11631 | We.prototype.c = function(t) {
|
11632 | return this._resolvedValue && !(this._resolvedValue instanceof Z) ? Fs(this._resolvedValue) : this.valueOf();
|
11633 | };
|
11634 | function ms() {
|
11635 | return We.apply(this, arguments);
|
11636 | }
|
11637 | A(ms, We);
|
11638 | E.StyleInterpolationExpression = ms;
|
11639 | ms.prototype.name = function(t) {
|
11640 | return this._name;
|
11641 | };
|
11642 | ms.prototype.setName = function(t) {
|
11643 | return this._name = t, this;
|
11644 | };
|
11645 | ms.prototype.loc = function() {
|
11646 | return [this._startLoc, this._endLoc];
|
11647 | };
|
11648 | ms.prototype.visit = function(t, e) {
|
11649 | return ms.prototype.__super__.visit.apply(this, arguments), e.rootRule && e.rootRule.addPlaceholder(this), this._id = "" + this.sourceId() + "_" + this.oid(), this._name = "--" + this._id, this._runtimeValue = this.value();
|
11650 | };
|
11651 | ms.prototype.runtimeValue = function() {
|
11652 | return this._runtimeValue;
|
11653 | };
|
11654 | ms.prototype.c = function() {
|
11655 | return "var(--" + this._id + ")";
|
11656 | };
|
11657 | function en(t, e) {
|
11658 | this._name = t, this._params = e;
|
11659 | }
|
11660 | A(en, Z);
|
11661 | E.StyleFunction = en;
|
11662 | en.prototype.kind = function() {
|
11663 | return "function";
|
11664 | };
|
11665 | en.prototype.visit = function(t, e) {
|
11666 | return this._params && this._params.traverse && this._params.traverse(), this;
|
11667 | };
|
11668 | en.prototype.toString = function() {
|
11669 | return this.c();
|
11670 | };
|
11671 | en.prototype.c = function(t) {
|
11672 | let e = String(this._name), r = this._params.c();
|
11673 | if (e == "url")
|
11674 | return xo("" + e + "(" + ma.strip(r) + ")", "path");
|
11675 | let i = "" + e + "(" + r + ")";
|
11676 | return t && t.as == "js" && (i = be.singlequote(i)), i;
|
11677 | };
|
11678 | function Sc() {
|
11679 | return Ut.apply(this, arguments);
|
11680 | }
|
11681 | A(Sc, Ut);
|
11682 | E.StyleURL = Sc;
|
11683 | Sc.prototype.c = function() {
|
11684 | let t = String(this._value);
|
11685 | return xo(ma.strip(t), "path");
|
11686 | };
|
11687 | function rn() {
|
11688 | return We.apply(this, arguments);
|
11689 | }
|
11690 | A(rn, We);
|
11691 | E.StyleIdentifier = rn;
|
11692 | rn.prototype.color = function(t) {
|
11693 | return this._color;
|
11694 | };
|
11695 | rn.prototype.setColor = function(t) {
|
11696 | return this._color = t, this;
|
11697 | };
|
11698 | rn.prototype.visit = function(t) {
|
11699 | var e;
|
11700 | let r = this.toString();
|
11701 | return r == "black" || r == "white" ? (e = t.theme().$color(r)) && this.setColor(this.param ? e.alpha(this.param.toAlpha()) : e) : r.match(/^[a-zA-Z]+\d$/) && (this.setColor("/*#*/" + r), this.param && this.setColor(this.color() + "/" + this.param.toAlpha())), rn.prototype.__super__.visit.apply(this, arguments);
|
11702 | };
|
11703 | rn.prototype.c = function(t) {
|
11704 | if (this.color())
|
11705 | return this.color().toString();
|
11706 | let e = this.toString();
|
11707 | return e[0] == "$" ? (e = "var(--" + e.slice(1) + ")", t && t.as == "js" && (e = be.singlequote(e)), e) : rn.prototype.__super__.c.apply(this, arguments);
|
11708 | };
|
11709 | function w3() {
|
11710 | return We.apply(this, arguments);
|
11711 | }
|
11712 | A(w3, We);
|
11713 | E.StyleString = w3;
|
11714 | function S3() {
|
11715 | return We.apply(this, arguments);
|
11716 | }
|
11717 | A(S3, We);
|
11718 | E.StyleColor = S3;
|
11719 | function Tc() {
|
11720 | return We.apply(this, arguments);
|
11721 | }
|
11722 | A(Tc, We);
|
11723 | E.StyleVar = Tc;
|
11724 | Tc.prototype.c = function(t) {
|
11725 | return this.toString();
|
11726 | };
|
11727 | var T_ = "cm mm Q in pc pt px em ex ch rem vw vh vmin vmax % s ms fr deg rad grad turn Hz kHz".split(" ");
|
11728 | function Gr(t) {
|
11729 | this._value = t;
|
11730 | let e = String(t).match(/^([\-\+]?[\d\.]*)([a-zA-Z]+|%)?$/);
|
11731 | this._number = parseFloat(e[1]), this._unit = e[2] || null;
|
11732 | }
|
11733 | A(Gr, We);
|
11734 | E.StyleDimension = Gr;
|
11735 | Gr.prototype.unit = function(t) {
|
11736 | return this._unit;
|
11737 | };
|
11738 | Gr.prototype.setUnit = function(t) {
|
11739 | return this._unit = t, this;
|
11740 | };
|
11741 | Gr.prototype.number = function(t) {
|
11742 | return this._number;
|
11743 | };
|
11744 | Gr.prototype.setNumber = function(t) {
|
11745 | return this._number = t, this;
|
11746 | };
|
11747 | Gr.prototype.clone = function(t, e) {
|
11748 | t === void 0 && (t = this._number), e === void 0 && (e = this._unit);
|
11749 | let r = new Gr(this.value());
|
11750 | return r._unit = e, r._number = t, r;
|
11751 | };
|
11752 | Gr.prototype.toString = function() {
|
11753 | return "" + this._number + (this._unit || "");
|
11754 | };
|
11755 | Gr.prototype.toRaw = function() {
|
11756 | return this._unit ? this.toString() : this._number;
|
11757 | };
|
11758 | Gr.prototype.c = function(t) {
|
11759 | let e = this._resolvedValue && !(this._resolvedValue instanceof Z) ? Fs(this._resolvedValue) : this.valueOf();
|
11760 | return t && t.as == "js" && this._unit && (e = be.singlequote(e)), e;
|
11761 | };
|
11762 | Gr.prototype.valueOf = function() {
|
11763 | return this.unit() == "u" ? this.number() * 4 + "px" : this.unit() == null ? this.number() : da(this.unit(), T_) >= 0 ? String(this._value) : "calc(var(--u_" + this.unit() + ",1" + this.unit() + ") * " + this._number + ")";
|
11764 | };
|
11765 | Gr.prototype.toAlpha = function() {
|
11766 | return this.unit() ? this.valueOf() : this.number() + "%";
|
11767 | };
|
11768 | function T3() {
|
11769 | return Gr.apply(this, arguments);
|
11770 | }
|
11771 | A(T3, Gr);
|
11772 | E.StyleNumber = T3;
|
11773 | function Ht(t) {
|
11774 | this._args = t;
|
11775 | }
|
11776 | A(Ht, Z);
|
11777 | E.Util = Ht;
|
11778 | Ht.prototype.args = function(t) {
|
11779 | return this._args;
|
11780 | };
|
11781 | Ht.prototype.setArgs = function(t) {
|
11782 | return this._args = t, this;
|
11783 | };
|
11784 | Ht.extend = function(t, e) {
|
11785 | return new Ht.Extend([t, e]);
|
11786 | };
|
11787 | Ht.callImba = function(t, e, r) {
|
11788 | return He(J(".", t.imba(), new At(e)), r);
|
11789 | };
|
11790 | Ht.repeat = function(t, e) {
|
11791 | for (var r = ""; e > 0; )
|
11792 | e % 2 == 1 && (r += t), t += t, e >>= 1;
|
11793 | return r;
|
11794 | };
|
11795 | Ht.keys = function(t) {
|
11796 | var e = new Ys("Object"), r = new At("keys");
|
11797 | return He(J(".", e, r), [t]);
|
11798 | };
|
11799 | Ht.len = function(t, e) {
|
11800 | var r = new At("length"), i = J(".", t, r);
|
11801 | return e && i.cache({force: true, pool: "len"}), i;
|
11802 | };
|
11803 | Ht.indexOf = function(t, e) {
|
11804 | var r = new Ht.IndexOf([t, e]);
|
11805 | return r;
|
11806 | };
|
11807 | Ht.slice = function(t, e, r) {
|
11808 | var i = new At("slice");
|
11809 | return console.log("slice " + e + " " + r), He(J(".", t, i), Pt.compact([e, r]));
|
11810 | };
|
11811 | Ht.iterable = function(t, e) {
|
11812 | if (O.tsc())
|
11813 | return t;
|
11814 | var r = new Ht.Iterable([t]);
|
11815 | return e && r.cache({force: true, pool: "iter"}), r;
|
11816 | };
|
11817 | Ht.counter = function(t, e) {
|
11818 | var r = new Ie(t);
|
11819 | return e && r.cache({force: true, pool: "counter"}), r;
|
11820 | };
|
11821 | Ht.array = function(t, e) {
|
11822 | var r = new Ht.Array([t]);
|
11823 | return e && r.cache({force: true, pool: "list"}), r;
|
11824 | };
|
11825 | Ht.prototype.name = function() {
|
11826 | return "requireDefault$";
|
11827 | };
|
11828 | Ht.prototype.js = function() {
|
11829 | return this.scope__().root().helper(this, this.helper()), "" + this.name() + "(" + this._args.map(function(t) {
|
11830 | return t.c();
|
11831 | }).join(",") + ")";
|
11832 | };
|
11833 | var E3 = {setField: `(target,key,value,o){
|
11834 | Object.defineProperty(target,key,{value:value});
|
11835 | };`, unit: `(value,unit){
|
11836 | return value + unit;
|
11837 | };`, optNegIndex: "(value,index){ return value ? value[value.length + index] : null };", negIndex: "(value,index){ return value[value.length + index] };", extendTag: `(el,cls){
|
11838 | Object.defineProperties(el,Object.getOwnPropertyDescriptors(cls.prototype));
|
11839 | return el;
|
11840 | };`, initField: `(target,key,o){
|
11841 | Object.defineProperty(target,key,o);
|
11842 | };`, watcher: `(k,w){
|
11843 | return { enumerable:true,
|
11844 | set(v){var o=this[k]; (v===o)||(this[k]=v,this[w]({value:v,oldValue:o}));},
|
11845 | get(){ return this[k] }
|
11846 | };
|
11847 | };`, decorate: `(decorators,target,key,desc){
|
11848 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
11849 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
11850 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
11851 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
11852 | };`, contains: `(a,b){
|
11853 | var res = (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b);
|
11854 | return res >= 0;
|
11855 | };`, requireDefault: `(obj){
|
11856 | return obj && obj.__esModule ? obj : { default: obj };
|
11857 | };`, virtualSuper: `(target){
|
11858 | var up = Object.getPrototypeOf(target);
|
11859 | var supers = Object.getOwnPropertyDescriptors(target);
|
11860 |
|
11861 | const map = new WeakMap();
|
11862 | const obj = Object.defineProperties(Object.create(up), supers);
|
11863 |
|
11864 | const proxy = {
|
11865 | apply: (self, key, ...params) => { return obj[key].apply(self, params) },
|
11866 | get: (self, key) => { return Reflect.get(obj, key, self); },
|
11867 | set: (self, key, value, receiver) => { return Reflect.set(obj, key, value, self);}
|
11868 | }
|
11869 |
|
11870 | return function (s) {
|
11871 | return map.get(s) || map.set(s, new Proxy(s, proxy)) && map.get(s);
|
11872 | }
|
11873 | };`};
|
11874 | Ht.Helper = function() {
|
11875 | return Ht.apply(this, arguments);
|
11876 | };
|
11877 | A(Ht.Helper, Ht);
|
11878 | Ht.Helper.prototype.name = function() {
|
11879 | return this.option("name");
|
11880 | };
|
11881 | Ht.Helper.prototype.helper = function() {
|
11882 | return this.option("helper");
|
11883 | };
|
11884 | for (let t, e = 0, r = Object.keys(E3), i = r.length, s; e < i; e++)
|
11885 | s = r[e], t = E3[s], Ht[s] = function() {
|
11886 | for (var n = arguments, o = n.length, a = new Array(o > 0 ? o : 0); o > 0; )
|
11887 | a[o - 1] = n[--o];
|
11888 | let l = "function " + s + "$__" + t;
|
11889 | return new Ht.Helper(a).set({name: s + "$__", helper: l});
|
11890 | };
|
11891 | Ht.Extend = function() {
|
11892 | return Ht.apply(this, arguments);
|
11893 | };
|
11894 | A(Ht.Extend, Ht);
|
11895 | Ht.Extend.prototype.helper = function() {
|
11896 | return `function extend$__(target,ext){
|
11897 | // @ts-ignore
|
11898 | const descriptors = Object.getOwnPropertyDescriptors(ext);
|
11899 | delete descriptors.constructor;
|
11900 | // @ts-ignore
|
11901 | Object.defineProperties(target,descriptors);
|
11902 | return target;
|
11903 | };`;
|
11904 | };
|
11905 | Ht.Extend.prototype.js = function(t) {
|
11906 | return this.scope__().root().helper(this, this.helper()), "extend$__(" + Pt.compact(Pt.cary(this.args())).join(",") + ")";
|
11907 | };
|
11908 | Ht.IndexOf = function() {
|
11909 | return Ht.apply(this, arguments);
|
11910 | };
|
11911 | A(Ht.IndexOf, Ht);
|
11912 | Ht.IndexOf.prototype.helper = function() {
|
11913 | return `function idx$__(a,b){
|
11914 | return (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b);
|
11915 | };`;
|
11916 | };
|
11917 | Ht.IndexOf.prototype.js = function(t) {
|
11918 | return this.scope__().root().helper(this, this.helper()), "idx$__(" + this.args().map(function(e) {
|
11919 | return e.c();
|
11920 | }).join(",") + ")";
|
11921 | };
|
11922 | Ht.Promisify = function() {
|
11923 | return Ht.apply(this, arguments);
|
11924 | };
|
11925 | A(Ht.Promisify, Ht);
|
11926 | Ht.Promisify.prototype.helper = function() {
|
11927 | return `function promise$__(a){
|
11928 | if(a instanceof Array){
|
11929 | console.warn("await (Array) is deprecated - use await Promise.all(Array)");
|
11930 | return Promise.all(a);
|
11931 | } else {
|
11932 | return (a && a.then ? a : Promise.resolve(a));
|
11933 | }
|
11934 | }`;
|
11935 | };
|
11936 | Ht.Promisify.prototype.js = function(t) {
|
11937 | return this.scope__().root().helper(this, this.helper()), "promise$__(" + this.args().map(function(e) {
|
11938 | return e.c();
|
11939 | }).join(",") + ")";
|
11940 | };
|
11941 | Ht.Iterable = function() {
|
11942 | return Ht.apply(this, arguments);
|
11943 | };
|
11944 | A(Ht.Iterable, Ht);
|
11945 | Ht.Iterable.prototype.helper = function() {
|
11946 | return "function iter$__(a){ let v; return a ? ((v=a.toIterable) ? v.call(a) : a) : a; };";
|
11947 | };
|
11948 | Ht.Iterable.prototype.js = function(t) {
|
11949 | return this.args()[0] instanceof je ? this.args()[0].c() : (this.scope__().root().helper(this, this.helper()), "iter$__(" + this.args()[0].c() + ")");
|
11950 | };
|
11951 | Ht.IsFunction = function() {
|
11952 | return Ht.apply(this, arguments);
|
11953 | };
|
11954 | A(Ht.IsFunction, Ht);
|
11955 | Ht.IsFunction.prototype.js = function(t) {
|
11956 | return "" + this.args()[0].c();
|
11957 | };
|
11958 | Ht.Array = function() {
|
11959 | return Ht.apply(this, arguments);
|
11960 | };
|
11961 | A(Ht.Array, Ht);
|
11962 | Ht.Array.prototype.js = function(t) {
|
11963 | return "new Array(" + this.args().map(function(e) {
|
11964 | return e.c();
|
11965 | }) + ")";
|
11966 | };
|
11967 | function Ga(t) {
|
11968 | return this._root = t, this._map = [], this;
|
11969 | }
|
11970 | Ga.prototype.add = function(t, e) {
|
11971 | return this._map[t] = e, this._map.indexOf(e) < 0 && this._map.push(e), this;
|
11972 | };
|
11973 | Ga.prototype.lookup = function(t) {
|
11974 | return this._map[t];
|
11975 | };
|
11976 | Ga.prototype.plain = function() {
|
11977 | return JSON.parse(JSON.stringify(this._map));
|
11978 | };
|
11979 | Ga.prototype.toJSON = function() {
|
11980 | return this._map;
|
11981 | };
|
11982 | function Ba(t) {
|
11983 | return this._root = t, this._map = {}, this;
|
11984 | }
|
11985 | Ba.prototype.add = function(t, e) {
|
11986 | return this._map[t] = e, this;
|
11987 | };
|
11988 | Ba.prototype.register = function(t) {
|
11989 | var e = t.namepath();
|
11990 | return this._map[e] || (this._map[e] = t), this;
|
11991 | };
|
11992 | Ba.prototype.plain = function() {
|
11993 | return JSON.parse(JSON.stringify(this._map));
|
11994 | };
|
11995 | Ba.prototype.toJSON = function() {
|
11996 | return this._map;
|
11997 | };
|
11998 | function Nt(t, e) {
|
11999 | this._nr = O.incr("scopes"), this._head = [], this._node = t, this._parent = e, this._vars = new Mi([]), this._entities = new Ga(this), this._meta = {}, this._annotations = [], this._closure = this, this._virtual = false, this._counter = 0, this._varmap = {}, this._counters = {}, this._varpool = [], this._refcounter = 0, this._declListeners = [], this._level = (e ? e._level : -1) + 1, this.setup();
|
12000 | }
|
12001 | E.Scope = Nt;
|
12002 | Nt.prototype.level = function(t) {
|
12003 | return this._level;
|
12004 | };
|
12005 | Nt.prototype.setLevel = function(t) {
|
12006 | return this._level = t, this;
|
12007 | };
|
12008 | Nt.prototype.context = function(t) {
|
12009 | return this._context;
|
12010 | };
|
12011 | Nt.prototype.setContext = function(t) {
|
12012 | return this._context = t, this;
|
12013 | };
|
12014 | Nt.prototype.node = function(t) {
|
12015 | return this._node;
|
12016 | };
|
12017 | Nt.prototype.setNode = function(t) {
|
12018 | return this._node = t, this;
|
12019 | };
|
12020 | Nt.prototype.parent = function(t) {
|
12021 | return this._parent;
|
12022 | };
|
12023 | Nt.prototype.setParent = function(t) {
|
12024 | return this._parent = t, this;
|
12025 | };
|
12026 | Nt.prototype.varmap = function(t) {
|
12027 | return this._varmap;
|
12028 | };
|
12029 | Nt.prototype.setVarmap = function(t) {
|
12030 | return this._varmap = t, this;
|
12031 | };
|
12032 | Nt.prototype.varpool = function(t) {
|
12033 | return this._varpool;
|
12034 | };
|
12035 | Nt.prototype.setVarpool = function(t) {
|
12036 | return this._varpool = t, this;
|
12037 | };
|
12038 | Nt.prototype.params = function(t) {
|
12039 | return this._params;
|
12040 | };
|
12041 | Nt.prototype.setParams = function(t) {
|
12042 | return this._params = t, this;
|
12043 | };
|
12044 | Nt.prototype.head = function(t) {
|
12045 | return this._head;
|
12046 | };
|
12047 | Nt.prototype.setHead = function(t) {
|
12048 | return this._head = t, this;
|
12049 | };
|
12050 | Nt.prototype.vars = function(t) {
|
12051 | return this._vars;
|
12052 | };
|
12053 | Nt.prototype.setVars = function(t) {
|
12054 | return this._vars = t, this;
|
12055 | };
|
12056 | Nt.prototype.counter = function(t) {
|
12057 | return this._counter;
|
12058 | };
|
12059 | Nt.prototype.setCounter = function(t) {
|
12060 | return this._counter = t, this;
|
12061 | };
|
12062 | Nt.prototype.entities = function(t) {
|
12063 | return this._entities;
|
12064 | };
|
12065 | Nt.prototype.setEntities = function(t) {
|
12066 | return this._entities = t, this;
|
12067 | };
|
12068 | Nt.prototype.p = function() {
|
12069 | return O.loglevel() > 0 && console.log.apply(console, arguments), this;
|
12070 | };
|
12071 | Nt.prototype.oid = function() {
|
12072 | return this._oid || (this._oid = O.generateId(""));
|
12073 | };
|
12074 | Nt.prototype.stack = function() {
|
12075 | return O;
|
12076 | };
|
12077 | Nt.prototype.kind = function() {
|
12078 | return this._kind || (this._kind = this.constructor.name.replace("Scope", "").toLowerCase());
|
12079 | };
|
12080 | Nt.prototype.runtime = function() {
|
12081 | return this.root().runtime();
|
12082 | };
|
12083 | Nt.prototype.setup = function() {
|
12084 | return this._selfless = true;
|
12085 | };
|
12086 | Nt.prototype.incr = function(t) {
|
12087 | t === void 0 && (t = "i");
|
12088 | var e = this._counters[t] || (this._counters[t] = 0);
|
12089 | return this._counters[t]++, e;
|
12090 | };
|
12091 | Nt.prototype.nextShortRef = function() {
|
12092 | return Pt.counterToShortRef(this._refcounter++);
|
12093 | };
|
12094 | Nt.prototype.memovar = function(t, e) {
|
12095 | this._memovars || (this._memovars = {});
|
12096 | let r = this._memovars[t];
|
12097 | return r || (r = this._memovars[t] = this.declare(r, e)), r;
|
12098 | };
|
12099 | Nt.prototype.captureVariableDeclarations = function(t) {
|
12100 | let e = [];
|
12101 | return this._declListeners.push(e), t(), this._declListeners.pop(), e;
|
12102 | };
|
12103 | Nt.prototype.meta = function(t, e) {
|
12104 | return e != null ? (this._meta[t] = e, this) : this._meta[t];
|
12105 | };
|
12106 | Nt.prototype.namepath = function() {
|
12107 | return "?";
|
12108 | };
|
12109 | Nt.prototype.cssid = function() {
|
12110 | return this._cssid || (this._cssid = "" + this.root().sourceId() + "-" + this.oid());
|
12111 | };
|
12112 | Nt.prototype.cssns = function() {
|
12113 | return this._cssns || (this._cssns = "" + this.root().sourceId() + "_" + this.oid());
|
12114 | };
|
12115 | Nt.prototype.tagCache = function() {
|
12116 | return this._tagCache || (this._tagCache = this.declare("\u03F2\u03C4", Rt("" + this.runtime().getRenderContext + "()"), {system: true, temporary: true, alias: "\u03F2\u03C4"}));
|
12117 | };
|
12118 | Nt.prototype.tagTempCache = function() {
|
12119 | return this._tagTempCache || (this._tagTempCache = this.declare("\u03F2\u03C4\u03C4", Rt("{}"), {system: true, temporary: true, alias: "\u03F2\u03C4\u03C4"}));
|
12120 | };
|
12121 | Nt.prototype.context = function() {
|
12122 | return this._context || (this.selfless() ? this._context = this.parent().context().fromScope(this) : this._context = new rr(this)), this._context;
|
12123 | };
|
12124 | Nt.prototype.traverse = function() {
|
12125 | return this;
|
12126 | };
|
12127 | Nt.prototype.visit = function() {
|
12128 | return this._parent ? this : (this._parent = O.scope(1), this._level = O.scopes().length - 1, O.addScope(this), this.root().scopes().push(this), this);
|
12129 | };
|
12130 | Nt.prototype.wrap = function(t) {
|
12131 | return this._parent = t._parent, t._parent = this, this;
|
12132 | };
|
12133 | Nt.prototype.virtualize = function() {
|
12134 | return this;
|
12135 | };
|
12136 | Nt.prototype.root = function() {
|
12137 | return O.ROOT;
|
12138 | var t;
|
12139 | };
|
12140 | Nt.prototype.register = function(t, e, r) {
|
12141 | if (e === void 0 && (e = null), r === void 0 && (r = {}), t || (r.system = true), r.system)
|
12142 | return new (r.varclass || sn)(this, t, e, r);
|
12143 | t = Pt.sym(t);
|
12144 | var i = this._varmap.hasOwnProperty(t) && this._varmap[t];
|
12145 | if (i && e && i.type() != "global" && e.error("Cannot redeclare variable"), i && !r.unique && i.type() != "global")
|
12146 | return i;
|
12147 | let s = r.lookup && this.parent() && this.parent().lookup(t);
|
12148 | var n = new (r.varclass || Ft)(this, t, e, r);
|
12149 | if (s && (n._parent = s), !r.system && (!i || i.type() == "global") && (this._varmap[t] = n), O.state() && O.state().variables instanceof Array && O.state().variables.push(n), this._declListeners.length)
|
12150 | for (let o = 0, a = It(this._declListeners), l = a.length; o < l; o++)
|
12151 | a[o].push(n);
|
12152 | return n;
|
12153 | };
|
12154 | Nt.prototype.annotate = function(t) {
|
12155 | return this._annotations.push(t), this;
|
12156 | };
|
12157 | Nt.prototype.declare = function(t, e, r) {
|
12158 | var i;
|
12159 | e === void 0 && (e = null), r === void 0 && (r = {});
|
12160 | var s = t instanceof Ft ? t : this.register(t, null, r), n = this._vars.add(s, e);
|
12161 | return (i = s.declarator()) || s.setDeclarator(n), s;
|
12162 | };
|
12163 | Nt.prototype.reusevar = function(t) {
|
12164 | return this.temporary(null, {reuse: true}, t);
|
12165 | };
|
12166 | Nt.prototype.temporary = function(t, e, r) {
|
12167 | if (e === void 0 && (e = {}), r === void 0 && (r = null), this._systemscope && this._systemscope != this)
|
12168 | return this._systemscope.temporary(t, e, r);
|
12169 | if (r || (r = e.name), e.temporary = true, r && e.reuse && this._vars["_temp_" + r])
|
12170 | return this._vars["_temp_" + r];
|
12171 | if (e.pool) {
|
12172 | for (let s = 0, n = It(this._varpool), o = n.length, a; s < o; s++)
|
12173 | if (a = n[s], a.pool() == e.pool && a.declarator() == null)
|
12174 | return a.reuse(t);
|
12175 | }
|
12176 | var i = new sn(this, r, t, e);
|
12177 | return this._varpool.push(i), this._vars.push(i), r && e.reuse && (this._vars["_temp_" + r] = i), i;
|
12178 | };
|
12179 | Nt.prototype.lookup = function(t) {
|
12180 | this._lookups || (this._lookups = {});
|
12181 | var e = null;
|
12182 | return t = Pt.sym(t), this._varmap.hasOwnProperty(t) ? e = this._varmap[t] : (e = this.parent() && this.parent().lookup(t), e && (this._nonlocals || (this._nonlocals = {}), this._nonlocals[t] = e)), e;
|
12183 | };
|
12184 | Nt.prototype.requires = function(t, e) {
|
12185 | return e === void 0 && (e = ""), this.root().requires(t, e);
|
12186 | };
|
12187 | Nt.prototype.imba = function() {
|
12188 | return this._imba || this.imbaDependency("core"), O.meta().universal = false, this._imba || (this._imba = O.isNode() ? Rt("(this && this[" + this.root().symbolRef("#imba").c() + "] || globalThis[" + this.root().symbolRef("#imba").c() + "])") : Rt("imba"));
|
12189 | };
|
12190 | Nt.prototype.imbaDependency = function() {
|
12191 | for (var t, e = arguments, r = e.length, i = new Array(r > 0 ? r : 0); r > 0; )
|
12192 | i[r - 1] = e[--r];
|
12193 | return (t = this.root()).imbaDependency.apply(t, i);
|
12194 | };
|
12195 | Nt.prototype.autodeclare = function(t) {
|
12196 | return this.vars().add(t);
|
12197 | };
|
12198 | Nt.prototype.free = function(t) {
|
12199 | return t.free(), this;
|
12200 | };
|
12201 | Nt.prototype.selfless = function() {
|
12202 | return !!this._selfless;
|
12203 | };
|
12204 | Nt.prototype.closure = function() {
|
12205 | return this._closure;
|
12206 | };
|
12207 | Nt.prototype.finalize = function() {
|
12208 | return this;
|
12209 | };
|
12210 | Nt.prototype.klass = function() {
|
12211 | for (var t = this; t; )
|
12212 | if (t = t.parent(), t instanceof Ii)
|
12213 | return t;
|
12214 | return null;
|
12215 | };
|
12216 | Nt.prototype.head = function() {
|
12217 | return [this._vars, this._params];
|
12218 | };
|
12219 | Nt.prototype.c = function(t) {
|
12220 | var e;
|
12221 | return t === void 0 && (t = {}), t.expression = false, this.node().body().setHead(this.head()), e = this.node().body().c(t);
|
12222 | };
|
12223 | Nt.prototype.region = function() {
|
12224 | return this.node().body().region();
|
12225 | };
|
12226 | Nt.prototype.loc = function() {
|
12227 | return this.node().loc();
|
12228 | };
|
12229 | Nt.prototype.dump = function() {
|
12230 | var t = this, e = Object.keys(t._varmap).map(function(i) {
|
12231 | var s = t._varmap[i];
|
12232 | return s.references().length ? Pt.dump(s) : null;
|
12233 | }), r = {nr: t._nr, type: t.constructor.name, level: t.level() || 0, vars: Pt.compact(e), loc: t.loc()};
|
12234 | return r;
|
12235 | };
|
12236 | Nt.prototype.toJSON = function() {
|
12237 | return this.dump();
|
12238 | };
|
12239 | Nt.prototype.toString = function() {
|
12240 | return "" + this.constructor.name;
|
12241 | };
|
12242 | Nt.prototype.closeScope = function() {
|
12243 | return this;
|
12244 | };
|
12245 | function le() {
|
12246 | le.prototype.__super__.constructor.apply(this, arguments), this.register("global", this, {type: "global"})._c = "globalThis", this.REQUIRE = this.register("require", this, {type: "global"}), this.IMPORT = this.register("import", this, {type: "global"}), this.MODULE = this.register("module", this, {type: "global"}), this.register("window", this, {type: "global", varclass: x2}), this.setDocument(this.register("document", this, {type: "global", varclass: Ha})), this.register("exports", this, {type: "global"}), this.register("console", this, {type: "global"}), this.register("process", this, {type: "global"}), this.register("parseInt", this, {type: "global"}), this.register("parseFloat", this, {type: "global"}), this.register("setTimeout", this, {type: "global"}), this.register("setInterval", this, {type: "global"}), this.register("setImmediate", this, {type: "global"}), this.register("clearTimeout", this, {type: "global"}), this.register("clearInterval", this, {type: "global"}), this.register("clearImmediate", this, {type: "global"}), this.register("globalThis", this, {type: "global"}), this.register("isNaN", this, {type: "global"}), this.register("isFinite", this, {type: "global"}), this.register("__dirname", this, {type: "global"}), this.register("__filename", this, {type: "global"}), this.register("__realname", this, {type: "global"})._c = "__filename", this.register("__pure__", this, {type: "global", varclass: Ec})._c = "/* @__PURE__ */", this.register("_", this, {type: "global"}), this._requires = {}, this._warnings = [], this._scopes = [], this._helpers = [], this._assets = {}, this._selfless = true, this._implicitAccessors = [], this._entities = new Ba(this), this._object = ze.wrap({}), this._head = [this._vars], this._dependencies = {}, this._symbolRefs = {}, this._importProxies = {}, this._vars.setSplit(true), this._imba = this.register("imba", this, {type: "global", varclass: zs, path: "imba"}), this._runtime = this._imba.proxy();
|
12247 | }
|
12248 | A(le, Nt);
|
12249 | E.RootScope = le;
|
12250 | le.prototype.warnings = function(t) {
|
12251 | return this._warnings;
|
12252 | };
|
12253 | le.prototype.setWarnings = function(t) {
|
12254 | return this._warnings = t, this;
|
12255 | };
|
12256 | le.prototype.scopes = function(t) {
|
12257 | return this._scopes;
|
12258 | };
|
12259 | le.prototype.setScopes = function(t) {
|
12260 | return this._scopes = t, this;
|
12261 | };
|
12262 | le.prototype.entities = function(t) {
|
12263 | return this._entities;
|
12264 | };
|
12265 | le.prototype.setEntities = function(t) {
|
12266 | return this._entities = t, this;
|
12267 | };
|
12268 | le.prototype.object = function(t) {
|
12269 | return this._object;
|
12270 | };
|
12271 | le.prototype.setObject = function(t) {
|
12272 | return this._object = t, this;
|
12273 | };
|
12274 | le.prototype.options = function(t) {
|
12275 | return this._options;
|
12276 | };
|
12277 | le.prototype.setOptions = function(t) {
|
12278 | return this._options = t, this;
|
12279 | };
|
12280 | le.prototype.assets = function(t) {
|
12281 | return this._assets;
|
12282 | };
|
12283 | le.prototype.setAssets = function(t) {
|
12284 | return this._assets = t, this;
|
12285 | };
|
12286 | le.prototype.document = function(t) {
|
12287 | return this._document;
|
12288 | };
|
12289 | le.prototype.setDocument = function(t) {
|
12290 | return this._document = t, this;
|
12291 | };
|
12292 | le.prototype.importProxy = function(t, e) {
|
12293 | return this._importProxies[t] || (this._importProxies[t] = this.register("$" + t + "$", this, {type: "global", varclass: xr, path: e || t}));
|
12294 | };
|
12295 | le.prototype.runtime = function() {
|
12296 | return this._runtime;
|
12297 | };
|
12298 | le.prototype.use = function(t) {
|
12299 | if (!O.tsc())
|
12300 | return this._imba.touch("use_" + t);
|
12301 | };
|
12302 | le.prototype.sourceId = function() {
|
12303 | return this._sourceId || (this._sourceId = O.sourceId());
|
12304 | };
|
12305 | le.prototype.cssns = function() {
|
12306 | return this._cssns || (this._cssns = "" + this.sourceId() + "_");
|
12307 | };
|
12308 | le.prototype.sfco = function() {
|
12309 | return this._sfco || (this._sfco = this.declare("sfc$", Rt("{/*$sfc$*/}")));
|
12310 | };
|
12311 | le.prototype.context = function() {
|
12312 | return this._context || (this._context = new Do(this));
|
12313 | };
|
12314 | le.prototype.globalRef = function() {
|
12315 | return this._globalRef || (this._globalRef = Rt("globalThis"));
|
12316 | };
|
12317 | le.prototype.activateExports = function() {
|
12318 | if (O.cjs() && !this._hasExports)
|
12319 | return this._hasExports = true, this._head.push(Rt('Object.defineProperty(exports, "__esModule", {value: true});'));
|
12320 | };
|
12321 | le.prototype.registerAsset = function(t, e, r) {
|
12322 | let i = t + e;
|
12323 | if (this._assets[i])
|
12324 | return this._assets[i];
|
12325 | let s = O.lastImport() || this.head(), n = this._assets[i] = {path: t, kind: e, external: true, context: r, ref: this.register("asset", null, {system: true})};
|
12326 | return s.push(new Lo(n)), n;
|
12327 | };
|
12328 | le.prototype.lookup = function(t) {
|
12329 | if (t = Pt.sym(t), this._varmap.hasOwnProperty(t))
|
12330 | return this._varmap[t];
|
12331 | };
|
12332 | le.prototype.visit = function() {
|
12333 | return O.addScope(this), this;
|
12334 | };
|
12335 | le.prototype.helper = function(t, e) {
|
12336 | return this._helpers.indexOf(e) == -1 && this._helpers.push(e), this;
|
12337 | };
|
12338 | le.prototype.head = function() {
|
12339 | return this._head;
|
12340 | };
|
12341 | le.prototype.dump = function() {
|
12342 | var t = {autoself: this._implicitAccessors.map(function(r) {
|
12343 | return r.dump();
|
12344 | })};
|
12345 | if (ls.analysis.scopes) {
|
12346 | var e = this._scopes.map(function(r) {
|
12347 | return r.dump();
|
12348 | });
|
12349 | e.unshift(le.prototype.__super__.dump.call(this)), t.scopes = e;
|
12350 | }
|
12351 | return ls.analysis.entities && (t.entities = this._entities), t;
|
12352 | };
|
12353 | le.prototype.requires = function(t, e) {
|
12354 | var r, i;
|
12355 | if (r = this.lookup(e))
|
12356 | return r;
|
12357 | if (r = this._requires[e]) {
|
12358 | if (r._requirePath != t)
|
12359 | throw new Error("" + e + " is already defined as require('" + r._requirePath + "')");
|
12360 | return r;
|
12361 | }
|
12362 | var s = new g2(new de("'" + t + "'"));
|
12363 | r = new Ft(this, e, null, {system: true});
|
12364 | var n = this._vars.add(r, s);
|
12365 | return (i = r.declarator()) || r.setDeclarator(n), r._requirePath = t, this._requires[e] = r, r;
|
12366 | };
|
12367 | le.prototype.imba = function() {
|
12368 | return this._imba;
|
12369 | };
|
12370 | le.prototype.imbaDependency = function(t) {
|
12371 | };
|
12372 | le.prototype.symbolRef = function(t) {
|
12373 | if (t = ma.strip(t), O.tsc())
|
12374 | return this._symbolRefs[t] || (this._symbolRefs[t] = new At(t.slice(1) + "_$INTERNAL$_"));
|
12375 | let e = this._symbolRefs, r = d_(t);
|
12376 | return e[t] || (e[t] = this.declare(null, Rt("Symbol.for('" + t + "')"), {type: "const", system: true, alias: r, gsym: t}));
|
12377 | };
|
12378 | le.prototype.c = function(t) {
|
12379 | t === void 0 && (t = {}), t.expression = false;
|
12380 | let e = this.node().body().c(t), r = O.css(), i = new Lt([]);
|
12381 | i.setHead(this.head()), i.add(Rt(r.js(this, O)));
|
12382 | let s = i.c(t) + `
|
12383 | /*body*/
|
12384 | ` + e;
|
12385 | return Xl(this._helpers) && (s = Pt.cary(this._helpers).join(`;
|
12386 | `) + `
|
12387 | ` + s), s;
|
12388 | };
|
12389 | function w2() {
|
12390 | return Nt.apply(this, arguments);
|
12391 | }
|
12392 | A(w2, Nt);
|
12393 | E.ModuleScope = w2;
|
12394 | w2.prototype.setup = function() {
|
12395 | return this._selfless = false;
|
12396 | };
|
12397 | w2.prototype.namepath = function() {
|
12398 | return this._node.namepath();
|
12399 | };
|
12400 | function Ii() {
|
12401 | return Nt.apply(this, arguments);
|
12402 | }
|
12403 | A(Ii, Nt);
|
12404 | E.ClassScope = Ii;
|
12405 | Ii.prototype.setup = function() {
|
12406 | return this._selfless = false;
|
12407 | };
|
12408 | Ii.prototype.namepath = function() {
|
12409 | return this._node.namepath();
|
12410 | };
|
12411 | Ii.prototype.virtualize = function() {
|
12412 | var t = this.parent();
|
12413 | for (let e = this._varmap, r, i = 0, s = Object.keys(e), n = s.length, o; i < n; i++)
|
12414 | o = s[i], r = e[o], r.resolve(t, true);
|
12415 | return this;
|
12416 | };
|
12417 | Ii.prototype.prototype = function() {
|
12418 | return this._prototype || (this._prototype = new Ut(J(".", this.context(), "prototype")));
|
12419 | };
|
12420 | function r2() {
|
12421 | return Ii.apply(this, arguments);
|
12422 | }
|
12423 | A(r2, Ii);
|
12424 | E.TagScope = r2;
|
12425 | function A3() {
|
12426 | return Nt.apply(this, arguments);
|
12427 | }
|
12428 | A(A3, Nt);
|
12429 | E.ClosureScope = A3;
|
12430 | function Aa() {
|
12431 | return Nt.apply(this, arguments);
|
12432 | }
|
12433 | A(Aa, Nt);
|
12434 | E.FunctionScope = Aa;
|
12435 | function i2() {
|
12436 | return Aa.apply(this, arguments);
|
12437 | }
|
12438 | A(i2, Aa);
|
12439 | E.IsolatedFunctionScope = i2;
|
12440 | i2.prototype.lookup = function(t) {
|
12441 | this._lookups || (this._lookups = {});
|
12442 | var e = null;
|
12443 | if (t = Pt.sym(t), this._varmap.hasOwnProperty(t))
|
12444 | e = this._varmap[t];
|
12445 | else if (e = this.parent() && this.parent().lookup(t), e && e.closure() == this.parent().closure()) {
|
12446 | this._leaks || (this._leaks = new Map()), this._nonlocals || (this._nonlocals = {}), this._nonlocals[t] = e;
|
12447 | let r = this._leaks.get(e);
|
12448 | r || this._leaks.set(e, r = new Ac(this, t, e)), e = r;
|
12449 | }
|
12450 | return e;
|
12451 | };
|
12452 | function Bs() {
|
12453 | return Nt.apply(this, arguments);
|
12454 | }
|
12455 | A(Bs, Nt);
|
12456 | E.MethodScope = Bs;
|
12457 | Bs.prototype.setup = function() {
|
12458 | return this._selfless = false;
|
12459 | };
|
12460 | function xa() {
|
12461 | return Nt.apply(this, arguments);
|
12462 | }
|
12463 | A(xa, Nt);
|
12464 | E.FieldScope = xa;
|
12465 | xa.prototype.setup = function() {
|
12466 | return this._selfless = false;
|
12467 | };
|
12468 | xa.prototype.mergeScopeInto = function(t) {
|
12469 | for (let e = this._varmap, r, i = 0, s = Object.keys(e), n = s.length, o; i < n; i++)
|
12470 | o = s[i], r = e[o], o != "self" && (r.resolve(t, true), t.declare(r));
|
12471 | return this._context && this._context._reference && (this._context._reference = t.context().reference()), true;
|
12472 | };
|
12473 | function Ao() {
|
12474 | return Nt.apply(this, arguments);
|
12475 | }
|
12476 | A(Ao, Nt);
|
12477 | E.LambdaScope = Ao;
|
12478 | Ao.prototype.context = function() {
|
12479 | return this._context || (this._context = this.parent().context().fromScope(this)), this._context;
|
12480 | };
|
12481 | function $e() {
|
12482 | return Nt.apply(this, arguments);
|
12483 | }
|
12484 | A($e, Nt);
|
12485 | E.FlowScope = $e;
|
12486 | $e.prototype.params = function() {
|
12487 | if (this._parent)
|
12488 | return this._parent.params();
|
12489 | };
|
12490 | $e.prototype.register = function(t, e, r) {
|
12491 | var i;
|
12492 | return e === void 0 && (e = null), r === void 0 && (r = {}), r.type != "let" && r.type != "const" && this.closure() != this ? ((i = this.lookup(t)) && i.type() == "let" && e && e.warn("Variable already exists in block"), this.closure().register(t, e, r)) : $e.prototype.__super__.register.call(this, t, e, r);
|
12493 | };
|
12494 | $e.prototype.autodeclare = function(t) {
|
12495 | return this.parent().autodeclare(t);
|
12496 | };
|
12497 | $e.prototype.closure = function() {
|
12498 | return this._parent.closure();
|
12499 | };
|
12500 | $e.prototype.context = function() {
|
12501 | return this._context || (this._context = this.parent().context());
|
12502 | };
|
12503 | $e.prototype.closeScope = function() {
|
12504 | return this._context && this._context.reference(), this;
|
12505 | };
|
12506 | $e.prototype.temporary = function(t, e, r) {
|
12507 | return e === void 0 && (e = {}), r === void 0 && (r = null), (this._systemscope || this.parent()).temporary(t, e, r);
|
12508 | };
|
12509 | function bc() {
|
12510 | return $e.apply(this, arguments);
|
12511 | }
|
12512 | A(bc, $e);
|
12513 | E.CatchScope = bc;
|
12514 | function l2() {
|
12515 | return $e.apply(this, arguments);
|
12516 | }
|
12517 | A(l2, $e);
|
12518 | E.WhileScope = l2;
|
12519 | l2.prototype.autodeclare = function(t) {
|
12520 | return this.vars().add(t);
|
12521 | };
|
12522 | function c2() {
|
12523 | return $e.apply(this, arguments);
|
12524 | }
|
12525 | A(c2, $e);
|
12526 | E.ForScope = c2;
|
12527 | c2.prototype.autodeclare = function(t) {
|
12528 | return this.vars().add(t);
|
12529 | };
|
12530 | function yc() {
|
12531 | return $e.apply(this, arguments);
|
12532 | }
|
12533 | A(yc, $e);
|
12534 | E.IfScope = yc;
|
12535 | function Fa() {
|
12536 | return $e.apply(this, arguments);
|
12537 | }
|
12538 | A(Fa, $e);
|
12539 | E.BlockScope = Fa;
|
12540 | Fa.prototype.region = function() {
|
12541 | return this.node().region();
|
12542 | };
|
12543 | function xc() {
|
12544 | return $e.apply(this, arguments);
|
12545 | }
|
12546 | A(xc, $e);
|
12547 | E.TagBodyScope = xc;
|
12548 | function Ft(t, e, r, i) {
|
12549 | this._ref = O._counter++, this._c = null, this._scope = t, this._name = e, this._alias = null, this._initialized = true, this._declarator = r, this._autodeclare = false, this._declared = i && i.declared || false, this._datatype = i && i.datatype, this._resolved = false, this._options = i || {}, this._type = i && i.type || "var", this._export = false, this._references = [], this._assignments = [];
|
12550 | }
|
12551 | A(Ft, Z);
|
12552 | E.Variable = Ft;
|
12553 | Ft.prototype.scope = function(t) {
|
12554 | return this._scope;
|
12555 | };
|
12556 | Ft.prototype.setScope = function(t) {
|
12557 | return this._scope = t, this;
|
12558 | };
|
12559 | Ft.prototype.name = function(t) {
|
12560 | return this._name;
|
12561 | };
|
12562 | Ft.prototype.setName = function(t) {
|
12563 | return this._name = t, this;
|
12564 | };
|
12565 | Ft.prototype.alias = function(t) {
|
12566 | return this._alias;
|
12567 | };
|
12568 | Ft.prototype.setAlias = function(t) {
|
12569 | return this._alias = t, this;
|
12570 | };
|
12571 | Ft.prototype.type = function(t) {
|
12572 | return this._type;
|
12573 | };
|
12574 | Ft.prototype.setType = function(t) {
|
12575 | return this._type = t, this;
|
12576 | };
|
12577 | Ft.prototype.options = function(t) {
|
12578 | return this._options;
|
12579 | };
|
12580 | Ft.prototype.setOptions = function(t) {
|
12581 | return this._options = t, this;
|
12582 | };
|
12583 | Ft.prototype.initialized = function(t) {
|
12584 | return this._initialized;
|
12585 | };
|
12586 | Ft.prototype.setInitialized = function(t) {
|
12587 | return this._initialized = t, this;
|
12588 | };
|
12589 | Ft.prototype.declared = function(t) {
|
12590 | return this._declared;
|
12591 | };
|
12592 | Ft.prototype.setDeclared = function(t) {
|
12593 | return this._declared = t, this;
|
12594 | };
|
12595 | Ft.prototype.declarator = function(t) {
|
12596 | return this._declarator;
|
12597 | };
|
12598 | Ft.prototype.setDeclarator = function(t) {
|
12599 | return this._declarator = t, this;
|
12600 | };
|
12601 | Ft.prototype.autodeclare = function(t) {
|
12602 | return this._autodeclare;
|
12603 | };
|
12604 | Ft.prototype.setAutodeclare = function(t) {
|
12605 | return this._autodeclare = t, this;
|
12606 | };
|
12607 | Ft.prototype.references = function(t) {
|
12608 | return this._references;
|
12609 | };
|
12610 | Ft.prototype.setReferences = function(t) {
|
12611 | return this._references = t, this;
|
12612 | };
|
12613 | Ft.prototype.export = function(t) {
|
12614 | return this._export;
|
12615 | };
|
12616 | Ft.prototype.setExport = function(t) {
|
12617 | return this._export = t, this;
|
12618 | };
|
12619 | Ft.prototype.value = function(t) {
|
12620 | return this._value;
|
12621 | };
|
12622 | Ft.prototype.setValue = function(t) {
|
12623 | return this._value = t, this;
|
12624 | };
|
12625 | Ft.prototype.datatype = function(t) {
|
12626 | return this._datatype;
|
12627 | };
|
12628 | Ft.prototype.setDatatype = function(t) {
|
12629 | return this._datatype = t, this;
|
12630 | };
|
12631 | Ft.prototype.pool = function() {
|
12632 | return null;
|
12633 | };
|
12634 | Ft.prototype.typedAlias = function() {
|
12635 | return this._typedAlias || (this._typedAlias = new Ft(this._scope, this._name + "$TYPED$", this._declarator, this._options));
|
12636 | };
|
12637 | Ft.prototype.isGlobal = function(t) {
|
12638 | return this._type == "global" && (!t || this._name == t);
|
12639 | };
|
12640 | Ft.prototype.closure = function() {
|
12641 | return this._scope.closure();
|
12642 | };
|
12643 | Ft.prototype.assignments = function() {
|
12644 | return this._assignments;
|
12645 | };
|
12646 | Ft.prototype.vartype = function() {
|
12647 | return this._vartype || this._declarator && this._declarator.datatype && this._declarator.datatype();
|
12648 | };
|
12649 | Ft.prototype.assigned = function(t, e) {
|
12650 | return this._assignments.push(t), t instanceof je ? this._isArray = true : this._isArray = false, this;
|
12651 | };
|
12652 | Ft.prototype.parents = function() {
|
12653 | let t = [], e = this.closure().parent(), r = this;
|
12654 | for (; e && r && t.length < 5; )
|
12655 | if (console.log("get parents!!!"), r = e.lookup(this._name)) {
|
12656 | t.unshift(r);
|
12657 | let i = r.scope().parent();
|
12658 | if (e == i)
|
12659 | break;
|
12660 | e = i;
|
12661 | }
|
12662 | return t;
|
12663 | };
|
12664 | Ft.prototype.resolve = function(t, e) {
|
12665 | if (t === void 0 && (t = this.scope()), e === void 0 && (e = false), this._resolved && !e)
|
12666 | return this;
|
12667 | this._resolved = true;
|
12668 | var r = this._scope.closure(), i = this._shadowing || t.lookup(this._name);
|
12669 | if (this._scope != r && this._type == "let" && this._virtual && (i = r.lookup(this._name), t = r), i == this)
|
12670 | return t.varmap()[this._name] = this, this;
|
12671 | if (i) {
|
12672 | if (i.scope() != t && (this.options().let || this._type == "let") && (t.varmap()[this._name] = this, !this._virtual && !this._shadowing))
|
12673 | return this;
|
12674 | if (!this._options.proxy)
|
12675 | for (var s = 0, n = this._name; t.lookup(this._name); )
|
12676 | this._name = "" + n + (s += 1);
|
12677 | }
|
12678 | return t.varmap()[this._name] = this, r.varmap()[this._name] = this, this;
|
12679 | };
|
12680 | Ft.prototype.reference = function() {
|
12681 | return this;
|
12682 | };
|
12683 | Ft.prototype.node = function() {
|
12684 | return this;
|
12685 | };
|
12686 | Ft.prototype.cache = function() {
|
12687 | return this;
|
12688 | };
|
12689 | Ft.prototype.traverse = function() {
|
12690 | return this;
|
12691 | };
|
12692 | Ft.prototype.free = function(t) {
|
12693 | return this._declarator = null, this;
|
12694 | };
|
12695 | Ft.prototype.reuse = function(t) {
|
12696 | return this._declarator = t, this;
|
12697 | };
|
12698 | Ft.prototype.proxy = function(t, e) {
|
12699 | return this._proxy = [t, e], this;
|
12700 | };
|
12701 | Ft.prototype.refcount = function() {
|
12702 | return this._references.length;
|
12703 | };
|
12704 | Ft.prototype.c = function(t) {
|
12705 | if (t && t.as == "field")
|
12706 | return "[" + this.c({}) + "]";
|
12707 | if (this._c)
|
12708 | return this._c;
|
12709 | if (this._typedAlias && this._typedAlias.c(t), this._proxy)
|
12710 | this._proxy instanceof Z ? this._c = this._proxy.c() : (this._c = this._proxy[0].c(), this._proxy[1] && (this._c += "[" + this._proxy[1].c() + "]"));
|
12711 | else {
|
12712 | this._resolved || this.resolve();
|
12713 | var e = this.alias() || this.name();
|
12714 | this._c = typeof e == "string" ? be.toValidIdentifier(e) : e.c({as: "variable"}), E_.test(this._c) && (this._c = "" + this.c() + "$");
|
12715 | }
|
12716 | return this._c;
|
12717 | };
|
12718 | Ft.prototype.js = function() {
|
12719 | return this.c();
|
12720 | };
|
12721 | Ft.prototype.consume = function(t) {
|
12722 | return this;
|
12723 | };
|
12724 | Ft.prototype.accessor = function(t) {
|
12725 | var e = new Oi(".", null, this);
|
12726 | return e;
|
12727 | };
|
12728 | Ft.prototype.assignment = function(t) {
|
12729 | return new Ve("=", this, t);
|
12730 | };
|
12731 | Ft.prototype.addReference = function(t) {
|
12732 | return t instanceof At && t.references(this), t.region && t.region() && (this._references.push(t), t.scope__() != this._scope && (this._noproxy = true)), this;
|
12733 | };
|
12734 | Ft.prototype.autodeclare = function() {
|
12735 | return this._declared ? this : (this._autodeclare = true, this.scope().autodeclare(this), this._declared = true, this);
|
12736 | };
|
12737 | Ft.prototype.predeclared = function() {
|
12738 | return this._declared = true, this;
|
12739 | };
|
12740 | Ft.prototype.toString = function() {
|
12741 | return String(this.name());
|
12742 | };
|
12743 | Ft.prototype.dump = function(t) {
|
12744 | var e = this.name();
|
12745 | return e[0].match(/[A-Z]/) ? null : {type: this.type(), name: e, refs: Pt.dump(this._references, t)};
|
12746 | };
|
12747 | Ft.prototype.via = function(t) {
|
12748 | return new pi(this, t);
|
12749 | };
|
12750 | function sn() {
|
12751 | return Ft.apply(this, arguments);
|
12752 | }
|
12753 | A(sn, Ft);
|
12754 | E.SystemVariable = sn;
|
12755 | sn.prototype.pool = function() {
|
12756 | return this._options.pool;
|
12757 | };
|
12758 | sn.prototype.predeclared = function() {
|
12759 | return this.scope().vars().remove(this), this;
|
12760 | };
|
12761 | sn.prototype.resolve = function() {
|
12762 | if (this._resolved)
|
12763 | return this;
|
12764 | this._resolved = true;
|
12765 | let t = this._options;
|
12766 | if (t.gsym)
|
12767 | return this._name = "" + t.gsym.replace(/\#/g, "$") + "$", this;
|
12768 | let e = O.incr("sysvar");
|
12769 | return this._name = "$" + e, this;
|
12770 | t = this._options;
|
12771 | var r = t.alias || this._name, i = t.pool, s = [].concat(t.names), n = null, o = null;
|
12772 | this._name = null;
|
12773 | let a = r || K1.ANY;
|
12774 | /\d/.test(a[0]) && (a = "_" + a), /\d$/.test(a) && (a = a + K1.SEP);
|
12775 | let l = O.incr(a);
|
12776 | return l == 1 && (l = ""), __.test(a) ? this._name = "" + a + l : this._name = "" + a + "\u03C6" + l, this;
|
12777 | };
|
12778 | sn.prototype.name = function() {
|
12779 | return this.resolve(), this._name;
|
12780 | };
|
12781 | function Ac() {
|
12782 | return Ft.apply(this, arguments);
|
12783 | }
|
12784 | A(Ac, Ft);
|
12785 | E.ShadowedVariable = Ac;
|
12786 | function Ln() {
|
12787 | return Ft.apply(this, arguments);
|
12788 | }
|
12789 | A(Ln, Ft);
|
12790 | E.GlobalReference = Ln;
|
12791 | function Ec() {
|
12792 | return Ft.apply(this, arguments);
|
12793 | }
|
12794 | A(Ec, Ft);
|
12795 | E.PureReference = Ec;
|
12796 | function Dn() {
|
12797 | return Ln.apply(this, arguments);
|
12798 | }
|
12799 | A(Dn, Ln);
|
12800 | E.ZonedVariable = Dn;
|
12801 | Dn.prototype.forScope = function(t) {
|
12802 | return new S2(this, t);
|
12803 | };
|
12804 | Dn.prototype.c = function() {
|
12805 | return "" + this._name;
|
12806 | };
|
12807 | function Ha() {
|
12808 | return Dn.apply(this, arguments);
|
12809 | }
|
12810 | A(Ha, Dn);
|
12811 | E.DocumentReference = Ha;
|
12812 | Ha.prototype.forScope = function(t) {
|
12813 | return this;
|
12814 | };
|
12815 | Ha.prototype.c = function() {
|
12816 | return O.isNode() ? "" + this.runtime().get_document + "()" : "globalThis.document";
|
12817 | };
|
12818 | function x2() {
|
12819 | return Ln.apply(this, arguments);
|
12820 | }
|
12821 | A(x2, Ln);
|
12822 | E.WindowReference = x2;
|
12823 | x2.prototype.c = function() {
|
12824 | return O.isNode() ? "" + this.runtime().get_window + "()" : "window";
|
12825 | };
|
12826 | function S2(t, e) {
|
12827 | this._variable = t, this._scope = e;
|
12828 | }
|
12829 | A(S2, Z);
|
12830 | E.ZonedVariableAccess = S2;
|
12831 | S2.prototype.c = function() {
|
12832 | let t = this._variable._name;
|
12833 | return O.isNode() ? (O.use("" + t), "" + this.runtime().zone + ".get('" + t + "'," + this._scope.context().c() + ")") : "" + t;
|
12834 | };
|
12835 | function xr() {
|
12836 | var t = this;
|
12837 | xr.prototype.__super__.constructor.apply(t, arguments), t._path = t._options.path, t._exports = {}, t._touched = {}, t._head = Rt("import "), t._head.c = t.head.bind(t), t.scope()._head.push(t._head);
|
12838 | var e = function(r, i, s) {
|
12839 | return t.access(i);
|
12840 | };
|
12841 | t._proxy_ = new Proxy(t, {get: e});
|
12842 | }
|
12843 | A(xr, Ft);
|
12844 | E.ImportProxy = xr;
|
12845 | xr.prototype.proxy = function(t) {
|
12846 | return this._proxy;
|
12847 | };
|
12848 | xr.prototype.setProxy = function(t) {
|
12849 | return this._proxy = t, this;
|
12850 | };
|
12851 | xr.prototype.path = function(t) {
|
12852 | return this._path;
|
12853 | };
|
12854 | xr.prototype.setPath = function(t) {
|
12855 | return this._path = t, this;
|
12856 | };
|
12857 | xr.prototype.proxy = function() {
|
12858 | return this._proxy_;
|
12859 | };
|
12860 | xr.prototype.touch = function(t) {
|
12861 | return this._touched[t] || (this._touched[t] = this.access(t)), this;
|
12862 | };
|
12863 | xr.prototype.head = function() {
|
12864 | var t = this;
|
12865 | let e = Object.keys(t._exports), r = Object.values(t._touched), i = [], s = O.cjs(), n = t.path();
|
12866 | n == "imba" && (n = O.imbaPath() || "imba");
|
12867 | let o = xo("'" + n + "'");
|
12868 | if (t._importAll && (s ? i.push("const " + t._name + " = require(" + o + ");") : i.push("import * as " + t._name + " from " + o + ";")), e.length > 0)
|
12869 | if (s) {
|
12870 | let a = e.map(function(l) {
|
12871 | return "" + l + ": " + t._exports[l];
|
12872 | }).join(", ");
|
12873 | i.push("const {" + a + "} = require(" + o + ");");
|
12874 | } else {
|
12875 | let a = e.map(function(l) {
|
12876 | return "" + l + " as " + t._exports[l];
|
12877 | }).join(", ");
|
12878 | i.push("import {" + a + "} from " + o + ";");
|
12879 | }
|
12880 | return r.length && i.push("(" + r.map(function(a) {
|
12881 | return a.c() + "()";
|
12882 | }).join(",") + ");"), i.length ? i.join(`
|
12883 | `) : "";
|
12884 | };
|
12885 | xr.prototype.access = function(t, e) {
|
12886 | if (e === void 0 && (e = null), this._globalName)
|
12887 | return Rt("" + Tt(this._globalName, e) + "." + Fs(t));
|
12888 | let r = Fs(t, {mark: false});
|
12889 | return this._exports[r] || (this._exports[r] = Rt("" + this._name + "_" + r));
|
12890 | };
|
12891 | xr.prototype.c = function() {
|
12892 | return this._importAll || (this._importAll = true), xr.prototype.__super__.c.apply(this, arguments);
|
12893 | };
|
12894 | function zs() {
|
12895 | return xr.apply(this, arguments);
|
12896 | }
|
12897 | A(zs, xr);
|
12898 | E.ImbaRuntime = zs;
|
12899 | zs.prototype.configure = function(t) {
|
12900 | return t.runtime == "global" || O.tsc() ? this._globalName = "imba" : t.runtime && this.setPath(t.runtime), this;
|
12901 | };
|
12902 | zs.prototype.head = function() {
|
12903 | return O.tsc() ? "" : zs.prototype.__super__.head.apply(this, arguments);
|
12904 | };
|
12905 | zs.prototype.c = function() {
|
12906 | return this._importAll || (this._importAll = true, O.current().warn("Referencing imba directly disables efficient tree-shaking")), this._c = "imba";
|
12907 | };
|
12908 | function rr(t, e) {
|
12909 | this._scope = t, this._value = e, this._reference = null;
|
12910 | }
|
12911 | A(rr, Z);
|
12912 | E.ScopeContext = rr;
|
12913 | rr.prototype.scope = function(t) {
|
12914 | return this._scope;
|
12915 | };
|
12916 | rr.prototype.setScope = function(t) {
|
12917 | return this._scope = t, this;
|
12918 | };
|
12919 | rr.prototype.value = function(t) {
|
12920 | return this._value;
|
12921 | };
|
12922 | rr.prototype.setValue = function(t) {
|
12923 | return this._value = t, this;
|
12924 | };
|
12925 | rr.prototype.reference = function(t) {
|
12926 | return this._reference;
|
12927 | };
|
12928 | rr.prototype.setReference = function(t) {
|
12929 | return this._reference = t, this;
|
12930 | };
|
12931 | rr.prototype.namepath = function() {
|
12932 | return this._scope.namepath();
|
12933 | };
|
12934 | rr.prototype.reference = function() {
|
12935 | return this._reference || (this._reference = this.scope().lookup("self") || this.scope().declare("self", new ps()));
|
12936 | };
|
12937 | rr.prototype.fromScope = function(t) {
|
12938 | return new Fo(t, this);
|
12939 | };
|
12940 | rr.prototype.isConstant = function() {
|
12941 | return true;
|
12942 | };
|
12943 | rr.prototype.c = function() {
|
12944 | var t = this._value;
|
12945 | return t ? t.c() : "this";
|
12946 | };
|
12947 | rr.prototype.cache = function() {
|
12948 | return this;
|
12949 | };
|
12950 | rr.prototype.proto = function() {
|
12951 | return "" + this.c() + ".prototype";
|
12952 | };
|
12953 | rr.prototype.isGlobalContext = function() {
|
12954 | return false;
|
12955 | };
|
12956 | function Fo(t, e) {
|
12957 | this._scope = t, this._parent = e, this._reference = e.reference();
|
12958 | }
|
12959 | A(Fo, rr);
|
12960 | E.IndirectScopeContext = Fo;
|
12961 | Fo.prototype.reference = function() {
|
12962 | return this._reference;
|
12963 | };
|
12964 | Fo.prototype.c = function() {
|
12965 | return this.reference().c();
|
12966 | };
|
12967 | Fo.prototype.isGlobalContext = function() {
|
12968 | return this._parent.isGlobalContext();
|
12969 | };
|
12970 | function Do() {
|
12971 | return rr.apply(this, arguments);
|
12972 | }
|
12973 | A(Do, rr);
|
12974 | E.RootScopeContext = Do;
|
12975 | Do.prototype.reference = function() {
|
12976 | return this._reference || (this._reference = this.scope().lookup("global"));
|
12977 | };
|
12978 | Do.prototype.c = function(t) {
|
12979 | return "globalThis";
|
12980 | var e;
|
12981 | };
|
12982 | Do.prototype.isGlobalContext = function() {
|
12983 | return true;
|
12984 | };
|
12985 | function Xe(t, e) {
|
12986 | this._keyword = t, this._member = e, Xe.prototype.__super__.constructor.apply(this, arguments);
|
12987 | }
|
12988 | A(Xe, Z);
|
12989 | E.Super = Xe;
|
12990 | Xe.prototype.member = function(t) {
|
12991 | return this._member;
|
12992 | };
|
12993 | Xe.prototype.setMember = function(t) {
|
12994 | return this._member = t, this;
|
12995 | };
|
12996 | Xe.prototype.args = function(t) {
|
12997 | return this._args;
|
12998 | };
|
12999 | Xe.prototype.setArgs = function(t) {
|
13000 | return this._args = t, this;
|
13001 | };
|
13002 | Xe.prototype.visit = function() {
|
13003 | var t;
|
13004 | return this._method = O.method(), this._up = O.parent(), (t = O.method()) && (t.set({supr: {node: O.blockpart(), block: O.block(), real: this}}), t.set({injectInitAfter: O.blockpart()})), this._method && (this._class = O.up(_e)), this.args() && this.args().traverse(), this;
|
13005 | };
|
13006 | Xe.prototype.replaceWithInitor = function() {
|
13007 | if (this.up() instanceof ke)
|
13008 | return true;
|
13009 | };
|
13010 | Xe.prototype.startLoc = function() {
|
13011 | return this._keyword && this._keyword.startLoc();
|
13012 | };
|
13013 | Xe.prototype.endLoc = function() {
|
13014 | return this._keyword && this._keyword.endLoc();
|
13015 | };
|
13016 | Xe.callOp = function(t, e) {
|
13017 | let r = J(".", Rt("super"), t);
|
13018 | return He(r, e || [Rt("...arguments")]);
|
13019 | };
|
13020 | Xe.prototype.c = function() {
|
13021 | let t = this._method, e = this._up, r = Rt("super"), i, s = this.option("top"), n = t && t.option("inExtension"), o = this.args();
|
13022 | if (n && this._class && (r = He(this._class.virtualSuper(), [this.slf()])), !(e instanceof se || e instanceof ke)) {
|
13023 | if (t && t.isConstructor() && !this.member()) {
|
13024 | if (O.tsc() && this._class && !this._class.superclass())
|
13025 | return o ? "[" + o.c() + "]" : "";
|
13026 | let a = this.option("target") || Rt("super"), l = this.option("args") || [Rt("...arguments")];
|
13027 | return Tt(He(a, o || l).c(), this._keyword);
|
13028 | } else
|
13029 | this.member() ? i = J(".", r, this.member()) : t && (i = J(".", r, t.name()), t.isSetter() ? i = J("=", i, t.params().at(0)) : t.isGetter() || o || (o = [Rt("...arguments")]));
|
13030 | return o && (i = He(i, o)), i ? Tt(i.c({mark: false}), this._keyword) : "/**/";
|
13031 | }
|
13032 | return e instanceof ke && t && !t.isConstructor() ? J(".", r, t.name()).c() : "super";
|
13033 | };
|
13034 | var x_ = E.BR0 = new wo(`
|
13035 | `), Fe = E.BR = new wo(`
|
13036 | `), Z4 = E.BR2 = new wo(`
|
13037 |
|
13038 | `), S_ = E.SELF = new si(), kr = E.THIS = Rt("this"), w_ = E.PROTO = Rt("this.prototype"), hc = E.TRUE = new Ms("true"), pc = E.FALSE = new Vs("false"), To = E.UNDEFINED = new On(), Q4 = E.NIL = new Ps(), $4 = E.ARGUMENTS = new n2("arguments"), sc = E.EMPTY = "", Gs = E.NULL = "null", t9 = E.RESERVED = ["default", "native", "enum", "with"], E_ = E.RESERVED_REGEX = /^(default|native|enum|with|new|char)$/;
|
13039 | });
|
13040 | var N3 = er((A_) => {
|
13041 | Hi(A_);
|
13042 | Fi(A_, {resolveConfigFile: () => R3});
|
13043 | function I_(t) {
|
13044 | let e;
|
13045 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
13046 | }
|
13047 | var za = {};
|
13048 | function Ic(t, e) {
|
13049 | var r;
|
13050 | if (t instanceof Array)
|
13051 | for (let i = 0, s = I_(t), n = s.length; i < n; i++) {
|
13052 | let o = s[i];
|
13053 | t[i] = Ic(o, e);
|
13054 | }
|
13055 | else {
|
13056 | if (typeof t == "string")
|
13057 | return t.replace(/^\.\//, e + "/");
|
13058 | if (typeof t == "object")
|
13059 | for (let i = 0, s = Object.keys(t), n = s.length, o, a; i < n; i++) {
|
13060 | o = s[i], a = t[o];
|
13061 | let l = o.replace(/^\.\//, e + "/");
|
13062 | t[l] = Ic(a, e), l != o && (r = t[o], delete t[o]);
|
13063 | }
|
13064 | }
|
13065 | return t;
|
13066 | }
|
13067 | function R3(t, {path: e, fs: r}) {
|
13068 | if (!e || !r || !t || t == e.dirname(t))
|
13069 | return null;
|
13070 | let i = e.resolve(t, "package.json");
|
13071 | if (za[i])
|
13072 | return za[i];
|
13073 | if (za[i] !== null && r.existsSync(i)) {
|
13074 | let s = function(a, l) {
|
13075 | return typeof l == "string" && l.match(/^\.\//) ? e.resolve(t, l) : l;
|
13076 | }, n = JSON.parse(r.readFileSync(i, "utf8")), o = n.imba || (n.imba = {});
|
13077 | return Ic(o, t), o.package = n, o.cwd || (o.cwd = t), za[i] = o;
|
13078 | } else
|
13079 | za[i] = null;
|
13080 | return R3(e.dirname(t), {path: e, fs: r});
|
13081 | }
|
13082 | });
|
13083 | var D3 = er((di) => {
|
13084 | var mi = {}, i9 = ta(), R_ = lo(), N_ = pp(), T2 = vp(), E2 = di.parser = bp().parser, O_ = I3(), s9 = Ml(), C_ = N3().resolveConfigFile, O3 = C1().ImbaParseError, C3 = O1(), n9 = C3.Diagnostic, Hn = C3.Compilation, L3 = di.lex = new N_.Lexer(), L_ = di.Rewriter = T2.Rewriter, o9 = di.helpers = R_;
|
13085 | T2 = new L_();
|
13086 | E2.lexer = L3.jisonBridge();
|
13087 | E2.yy = O_;
|
13088 | Hn.prototype.lexer = L3;
|
13089 | Hn.prototype.rewriter = T2;
|
13090 | Hn.prototype.parser = E2;
|
13091 | di.resolveConfig = mi.resolveConfig = function(t) {
|
13092 | t === void 0 && (t = {});
|
13093 | let e = t.sourcePath;
|
13094 | return t.config || (t.config = C_(e, t) || {}), t;
|
13095 | };
|
13096 | di.deserialize = mi.deserialize = function(t, e) {
|
13097 | return e === void 0 && (e = {}), Hn.deserialize(t, e);
|
13098 | };
|
13099 | di.tokenize = mi.tokenize = function(t, e) {
|
13100 | return e === void 0 && (e = {}), new Hn(t, e).tokenize();
|
13101 | };
|
13102 | di.rewrite = mi.rewrite = function(t, e) {
|
13103 | return e === void 0 && (e = {}), T2.rewrite(t, e);
|
13104 | };
|
13105 | di.parse = mi.parse = function(t, e) {
|
13106 | e === void 0 && (e = {}), e = mi.resolveConfig(e);
|
13107 | var r = t instanceof Array ? t : mi.tokenize(t, e);
|
13108 | try {
|
13109 | return E2.parse(r);
|
13110 | } catch (i) {
|
13111 | throw i._code = t, e.sourcePath && (i._sourcePath = e.sourcePath), i;
|
13112 | }
|
13113 | };
|
13114 | di.compile = mi.compile = function(t, e) {
|
13115 | return e === void 0 && (e = {}), new Hn(t, mi.resolveConfig(e)).compile();
|
13116 | };
|
13117 | di.resolve = mi.resolve = function(t, e) {
|
13118 | return e === void 0 && (e = {}), new Hn(t, mi.resolveConfig(e)).compile();
|
13119 | };
|
13120 | di.analyze = mi.analyze = function(t, e) {
|
13121 | e === void 0 && (e = {});
|
13122 | var r;
|
13123 | try {
|
13124 | var i = mi.parse(t, e);
|
13125 | r = i.analyze(e);
|
13126 | } catch (s) {
|
13127 | if (!(s instanceof O3))
|
13128 | if (s.lexer)
|
13129 | s = new O3(s, {tokens: s.lexer.tokens, pos: s.lexer.pos});
|
13130 | else
|
13131 | throw s;
|
13132 | r = {warnings: [s]};
|
13133 | }
|
13134 | return r;
|
13135 | };
|
13136 | });
|
13137 | var V3 = er((V_) => {
|
13138 | Hi(V_);
|
13139 | Fi(V_, {program: () => M3});
|
13140 | fn(V_, Ou(D3()));
|
13141 | var M3 = Rc;
|
13142 | });
|
13143 | var b1 = Symbol.for("#__init__");
|
13144 | var pd = Symbol.for("#__initor__");
|
13145 | var fd = Symbol.for("#__inited__");
|
13146 | var co = Symbol.for("#source");
|
13147 | var ff = Symbol.for("#lineText");
|
13148 | var _f = Symbol.for("#version");
|
13149 | var Gu = new WeakMap();
|
13150 | var _n = class {
|
13151 | [b1](e = null) {
|
13152 | this.line = e ? e.line : void 0, this.character = e ? e.character : void 0, this.offset = e ? e.offset : void 0;
|
13153 | }
|
13154 | constructor(e, r, i, s = null) {
|
13155 | this[b1](), this.line = e, this.character = r, this.offset = i, this[_f] = s;
|
13156 | }
|
13157 | toString() {
|
13158 | return "" + this.line + ":" + this.character;
|
13159 | }
|
13160 | valueOf() {
|
13161 | return this.offset;
|
13162 | }
|
13163 | };
|
13164 | var ts = class {
|
13165 | [b1](e = null) {
|
13166 | this.start = e ? e.start : void 0, this.end = e ? e.end : void 0;
|
13167 | }
|
13168 | constructor(e, r) {
|
13169 | this[b1](), this.start = e, this.end = r;
|
13170 | }
|
13171 | get offset() {
|
13172 | return this.start.offset;
|
13173 | }
|
13174 | get length() {
|
13175 | return this.end.offset - this.start.offset;
|
13176 | }
|
13177 | get ["0"]() {
|
13178 | return this.start.offset;
|
13179 | }
|
13180 | get ["1"]() {
|
13181 | return this.end.offset;
|
13182 | }
|
13183 | getText(e) {
|
13184 | return e.slice(this.start, this.end);
|
13185 | }
|
13186 | equals(e) {
|
13187 | return e.offset == this.offset && e.length == this.length;
|
13188 | }
|
13189 | };
|
13190 | var ea = {Error: 1, Warning: 2, Information: 3, Hint: 4, error: 1, warning: 2, warn: 2, info: 3, hint: 4};
|
13191 | var el = class {
|
13192 | constructor(e, r = null) {
|
13193 | this.range = e.range, this.severity = ea[e.severity] || e.severity, this.code = e.code, this.source = e.source, this.message = e.message, Gu.set(this, r);
|
13194 | }
|
13195 | get [co]() {
|
13196 | return Gu.get(this);
|
13197 | }
|
13198 | get [ff]() {
|
13199 | return this[co].doc.getLineText(this.range.start.line);
|
13200 | }
|
13201 | toSnippet() {
|
13202 | let e = this.range.start, r = this.range.end, i = "" + this[co].sourcePath + ":" + (e.line + 1) + ":" + (e.character + 1) + ": " + this.message, s = this[co].doc.getLineText(e.line), n = [i, s];
|
13203 | return n.push(s.replace(/[^\t]/g, " ").slice(0, e.character) + "^".repeat(r.character - e.character)), n.join(`
|
13204 | `).replace(/\t/g, " ") + `
|
13205 | `;
|
13206 | }
|
13207 | toError() {
|
13208 | let e = this.range.start, r = this.range.end, i = "" + this[co].sourcePath + ":" + (e.line + 1) + ":" + (e.character + 1) + ": " + this.message, s = new SyntaxError(i), n = this[co].doc.getLineText(e.line), o = [i, n];
|
13209 | return o.push(n.replace(/[^\t]/g, " ").slice(0, e.character) + "^".repeat(r.character - e.character)), s.stack = `
|
13210 | ` + o.join(`
|
13211 | `).replace(/\t/g, " ") + `
|
13212 | `, s;
|
13213 | }
|
13214 | raise() {
|
13215 | throw this.toError();
|
13216 | }
|
13217 | };
|
13218 | function df(t) {
|
13219 | let e;
|
13220 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
13221 | }
|
13222 | var md = Symbol.for("#__initor__");
|
13223 | var yd = Symbol.for("#__inited__");
|
13224 | function k1(t, e, r = 1e5) {
|
13225 | let i = t;
|
13226 | for (; i && r > 0; ) {
|
13227 | if (i.match(e))
|
13228 | return i;
|
13229 | r--, i = i.prev;
|
13230 | }
|
13231 | return null;
|
13232 | }
|
13233 | function rl(t, e, r) {
|
13234 | r === void 0 && (r = 0);
|
13235 | for (var i = e ? [r] : [], s = 0; s < t.length; ) {
|
13236 | var n = t.charCodeAt(s);
|
13237 | (n === 13 || n === 10) && (n === 13 && s + 1 < t.length && t.charCodeAt(s + 1) === 10 && s++, i.push(r + s + 1)), s++;
|
13238 | }
|
13239 | return i;
|
13240 | }
|
13241 | function Bu(t) {
|
13242 | var e = t.start, r = t.end;
|
13243 | return e.line > r.line || e.line === r.line && e.character > r.character ? new ts(r, e) : t instanceof ts ? t : new ts(e, r);
|
13244 | }
|
13245 | function Hu(t) {
|
13246 | return t != null && typeof t.text == "string" && t.range === void 0;
|
13247 | }
|
13248 | function zu(t) {
|
13249 | let e = t.split(/\n/), r = [], i = {indent: -1, children: []}, s = i, n, o = Date.now();
|
13250 | for (let a = 0, l = df(e), p = l.length; a < p; a++) {
|
13251 | let c = l[a];
|
13252 | if (c.match(/^\s*$/))
|
13253 | continue;
|
13254 | let _ = c.match(/^\t*/)[0].length;
|
13255 | for (; i.indent >= _; )
|
13256 | i = i.parent || s;
|
13257 | if (n = c.match(/^(\t*((?:export )?(?:static )?(?:extend )?)(class|tag|def|get|set|prop|attr) )(\@?[\w\-\$\:]+(?:\.[\w\-\$]+)?)/), n) {
|
13258 | let f = n[3], m = n[4], g = i.name ? i.name + "." : "", b = n[2].trim().split(/\s+/), N = "", y = {start: {line: a, character: n[1].length}, end: {line: a, character: n[0].length}}, v = {kind: f, ownName: m, name: g + m, span: y, indent: _, modifiers: b, children: [], parent: i == s ? null : i, type: f, data: {}, static: b.indexOf("static") >= 0, extends: b.indexOf("extend") >= 0};
|
13259 | v.static && (v.containerName = "static"), v.containerName = n[2] + n[3], f == "tag" && (n = c.match(/\<\s+([\w\-\$\:]+(?:\.[\w\-\$]+)?)/)) && (v.superclass = n[1]), i.type == "tag" && (N = "```html\n<" + i.name + " " + m + ">\n```\n", v.description = {kind: "markdown", value: N}), i.children.push(v), i = v, r.push(v);
|
13260 | }
|
13261 | }
|
13262 | return s.all = r, console.log("fast outline", t.length, Date.now() - o), s;
|
13263 | }
|
13264 | function il(t) {
|
13265 | let e;
|
13266 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
13267 | }
|
13268 | var sl = [/^/, {token: "@rematch", next: "@pop"}];
|
13269 | var Uu = {token: "@rematch", next: "@pop"};
|
13270 | var Yu = {token: "white.indent", next: "@>illegal_indent"};
|
13271 | function mf(t, e = "#") {
|
13272 | typeof t == "string" && (t = t.split(" "));
|
13273 | let r = t.slice().sort(function(i, s) {
|
13274 | return s.length - i.length;
|
13275 | });
|
13276 | return r = r.map(function(i) {
|
13277 | let s = i.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
|
13278 | return e.replace("#", s);
|
13279 | }), new RegExp("(?:" + r.join("|") + ")");
|
13280 | }
|
13281 | function ve(t, e, r, i = {}) {
|
13282 | var s;
|
13283 | t == null ? t = Yu : t == 1 ? t = {next: "@>"} : t == 2 ? t = {next: "@>_indent&-_indent"} : typeof t == "string" && (t = {next: t}), e == -1 && (e = Uu), r == -1 ? r = Uu : r == 0 && (i.comment == null ? i.comment = true : i.comment, r = {}), t = Object.assign({token: "white.tabs"}, t || {}), r = Object.assign({token: "white.tabs"}, r || {}), e = Object.assign({token: "@rematch", next: "@pop"}, e || {});
|
13284 | let n = {"$1==$S2 ": t, "$1==$S2": {cases: {"$1==$S6": r, "@default": {token: "@rematch", switchTo: "@*$1"}}}, "@default": e};
|
13285 | s = 0;
|
13286 | for (let a of ["next", "switchTo"]) {
|
13287 | let l = s++;
|
13288 | t[a] && t[a].indexOf("*") == -1 && (t[a] += "*$1");
|
13289 | }
|
13290 | let o = [/^(\t*)(?=[^ \t\n])/, {cases: n}];
|
13291 | if (i.comment) {
|
13292 | let a = {};
|
13293 | for (let l = 0, p = Object.keys(n), c = p.length, _, f; l < c; l++) {
|
13294 | _ = p[l], f = n[_];
|
13295 | let m = Object.assign({}, f);
|
13296 | !m.next && !m.switchTo && (m.next = "@>_comment"), a[_] = m;
|
13297 | }
|
13298 | return [[/^(\t*)(?=#\s|#$)/, {cases: a}], o];
|
13299 | }
|
13300 | return o;
|
13301 | }
|
13302 | var nl = {root: [[/^@comment/, "comment", "@>_comment"], [/^(\t+)(?=[^\t\n])/, {cases: {"$1==$S2 ": {token: "white.indent", next: "@>_indent*$1"}, "@default": "white.indent"}}], "block_"], _comment: [[/^([\t\s\n]*)$/, "comment"], [/^(\t*)([\S\s]*)/, {cases: {"$1~$S2 *": {token: "comment"}, "@default": {token: "@rematch", next: "@pop"}}}], [/[\S\s]+/, "comment"]], illegal_indent: [ve()], identifier_: [[/\$\w+\$/, "identifier.env"], [/\$\d+/, "identifier.special"], [/\#+@id/, "identifier.symbol"], [/\¶@id/, "ivar"], [/@id\!?/, {cases: {this: "this", self: "self", "@keywords": "keyword.$#", "$0~[A-Z].*": "identifier.uppercase.$F", "@default": "identifier.$F"}}]], block_: [[/^(\t+)(?=[\r\n]|$)/, "white.tabs"], "class_", "tagclass_", "var_", "func_", "import_", "export_", "flow_", "for_", "try_", "catch_", "while_", "css_", "tag_", "do_", "block_comment_", "expr_", [/[ ]+/, "white"], "common_"], indentable_: [[/^[ ]+/, "white"], ve("@>_paren_indent&-_indent", null, null), [/^(\t+)(?=[\r\n]|$)/, "white.tabs"], "whitespace"], _indent: [ve(2, -1, 0), "block_"], _paren_indent: [ve(2, -1, 0), "block_", [/\)|\}|\]/, "@rematch", "@pop"]], block: [ve("@>", -1, 0), "block_"], bool_: [[/(true|false|yes|no|undefined|null)(?![\:\-\w\.\_])/, "boolean"]], op_: [[/\s+\:\s+/, "operator.ternary"], [/(@unspaced_ops)/, {cases: {"@spread": "operator.spread", "@access": "operator.access", "@default": "operator"}}], [/\/(?!\/)/, "operator.math"], [/\&(?=[,\)])/, "operator.special.blockparam"], [/(\s*)(@symbols)(\s*)/, {cases: {"$2@assignments": "operator.assign", "$2@math": "operator.math", "$2@operators": "operator", "$2@logic": "operator.logic", "$2@access": "operator.access", "@default": "delimiter"}}], [/\&\b/, "operator"]], keyword_: [[/new@B/, "keyword.new"], [/isa@B/, "keyword.isa"], [/is@B/, "keyword.is"], [/(switch|when|throw|continue|break|then|await|typeof|by)@B/, "keyword.$1"], [/delete@B/, "keyword.delete"], [/and@B|or@B/, "operator.flow"]], return_: [[/return@B/, "keyword.new"]], primitive_: ["string_", "number_", "regexp_", "bool_"], value_: ["primitive_", "keyword_", "implicit_call_", "parens_", "key_", "access_", "identifier_", "array_", "object_"], expr_: ["comment_", "inline_var_", "return_", "value_", "tag_", "op_", "type_", "spread_"], attr_expr_: ["primitive_", "parens_", "access_", "identifier_", "array_", "object_", "tag_", "op_"], access_: [[/(\.\.?)(@propid\!?)/, {cases: {"$2~[A-Z].*": ["operator.access", "accessor.uppercase"], "$2~#.*": ["operator.access", "accessor.symbol"], "@default": ["operator.access", "accessor"]}}]], call_: [[/\(/, "(", "@call_body"]], key_: [[/(\#+@id)(\:\s*)/, ["key.symbol", "operator.assign.key-value"]], [/(@propid)(\:\s*)/, {cases: {"@default": ["key", "operator.assign.key-value"]}}]], implicit_call_: [[/(\.\.?)(@propid)@implicitCall/, {cases: {"$2~[A-Z].*": ["operator.access", "accessor.uppercase", "@implicit_call_body"], "@default": ["operator.access", "accessor", "@implicit_call_body"]}}], [/(@propid)@implicitCall/, {cases: {"$2~[A-Z].*": ["identifier.uppercase", "@implicit_call_body"], "@default": ["identifier", "@implicit_call_body"]}}]], implicit_call_body: [sl, [/\)|\}|\]|\>/, "@rematch", "@pop"], "arglist_", "whitespace"], arglist_: ["do_", "expr_", [/\s*\,\s*/, "delimiter.comma"]], params_: [[/\[/, "array.[", "@array_var_body=decl-param"], [/\{/, "object.{", "@object_body=decl-param"], [/(@variable)/, "identifier.decl-param"], "spread_", "type_", [/\s*\=\s*/, "operator", "@var_value="], [/\s*\,\s*/, "separator"]], object_: [[/\{/, "object.{", "@object_body"]], parens_: [[/\(/, "parens.(", "@parens_body"]], parens_body: [[/\)/, ")", "@pop"], "indentable_", "arglist_"], array_: [[/\[/, "array.[", "@array_body"]], array_body: [[/\]@implicitCall/, {token: "]", switchTo: "@implicit_call_body="}], [/\]/, "]", "@pop"], [/\)|\}/, "invalid"], "indentable_", "expr_", [",", "delimiter"]], object_body: [[/\}/, "}", "@pop"], [/(@id)(\s*:\s*)/, ["key", "operator.assign.key-value", "@object_value"]], [/(@id)/, "identifier.$F"], [/\[/, "[", "@object_dynamic_key="], [/\s*=\s*/, "operator.assign", "@object_value="], [/:/, "operator.assign.key-value", "@object_value="], [/\,/, "delimiter.comma"], "indentable_", "expr_"], object_value: [sl, [/,|\}|\]|\)/, "@rematch", "@pop"], "expr_"], object_dynamic_key: [["]", "]", "@pop"], "expr_"], comment_: [[/#(\s.*)?(\n|$)/, "comment"]], block_comment_: [[/###/, "comment.start", "@_block_comment"]], _block_comment: [[/###/, "comment.end", "@pop"], [/[^#]+/, "comment"], [/#(?!##)/, "comment"]], try_: [[/try@B/, "keyword.try", "@>_try&try"]], catch_: [[/(catch\s+)(?=@id(\s|$))/, "keyword.catch", "@catch_start&catch"], [/catch@B/, "keyword.catch", "@catch_start&catch"]], catch_start: [[/@id/, "identifier.decl-const", {switchTo: "@>_catch"}], [/.?/, "@rematch", {switchTo: "@>_catch"}]], _catch: [ve("@>block", -1, 0), "block_"], _try: [ve("@>block", -1, 0), "block_"], do_: [[/do(?=\()/, "keyword.do", "@>do_start&do"], [/do(?=\s*\|)/, "keyword.do", "@>do_piped&do"], [/do@B/, "keyword.do", "@>_do&do"]], do_start: [ve(null, -1, -1), [/\(/, "(", {switchTo: "@_do_params"}], [/./, "@rematch", {switchTo: "@_do"}]], do_piped: [ve(null, -1, -1), [/\s*\|/, "args.open", {switchTo: "@_do_piped_params"}], [/./, "@rematch", {switchTo: "@_do"}]], _do_piped_params: [[/\|/, "args.close", {switchTo: "@_do"}], "params_"], _do_params: [[/\)/, ")", {switchTo: "@_do"}], "params_"], _do: [ve(2, -1, 0), [/(\}|\)|\])/, "@rematch", "@pop"], "block_"], class_: [[/(extend)(?=\s+class )/, "keyword.$1"], [/(global)(?=\s+class )/, "keyword.$1"], [/(class)(\s)(@id)/, ["keyword.$1", "white.$1name", "entity.name.class.decl-const", "@class_start="]], [/(class)(?=\n)/, "keyword.$1", "@>_class&class="]], class_start: [[/(\s+\<\s+)(@id)/, ["keyword.extends", "identifier.superclass"]], [/@comment/, "comment"], [/^/, "@rematch", {switchTo: "@>_class&class="}]], tagclass_: [[/(extend)(?=\s+tag )/, "keyword.$1"], [/(global)(?=\s+tag )/, "keyword.$1"], [/(tag)(\s)(@constant)/, ["keyword.tag", "white.tagname", "entity.name.component.local", "@tagclass_start="]], [/(tag)(\s)(@id)/, ["keyword.tag", "white.tagname", "entity.name.component.global", "@tagclass_start="]]], tagclass_start: [[/(\s+\<\s+)(@id)/, ["keyword.extends", "identifier.superclass"]], [/@comment/, "comment"], [/^/, "@rematch", {switchTo: "@>_tagclass&component="}]], import_: [[/(import)(?=\s+['"])/, "keyword.import", "@>import_source"], [/(import)(\s+type)(?=\s[\w\$\@\{])/, ["keyword.import", "keyword.type", "@>import_body&-_imports=decl-import/part"]], [/(import)@B/, "keyword.import", "@>import_body&-_imports=decl-import/part"]], import_body: [ve(null, -1, 0), [/(@esmIdentifier)( +from)/, ["identifier.$F.default", "keyword.from", {switchTo: "@import_source"}]], [/(\*)(\s+as\s+)(@esmIdentifier)(\s+from)/, ["keyword.star", "keyword.as", "identifier.$F.ns", "keyword.from", {switchTo: "@import_source"}]], [/(@esmIdentifier)(\s*,\s*)(\*)(\s+as\s+)(@esmIdentifier)(from)/, ["identifier.$F.default", "delimiter.comma", "keyword.star", "keyword.as", "identifier.$F.ns", "keyword.from", {switchTo: "@import_source"}]], [/\ *from/, "keyword.from", {switchTo: "@import_source"}], [/\{/, "specifiers.{", "@esm_specifiers/part"], [/(@esmIdentifier)/, "identifier.$F", {switchTo: "@/delim"}], [/\s*\,\s*/, "delimiter.comma", {switchTo: "@/part"}], "comma_", "common_"], import_source: [ve(null, -1, 0), [/["']/, "path.open", "@_path=$#"], sl], export_: [[/(export)( +)(default)@B/, ["keyword.export", "white", "keyword.default"]], [/(export)(?= +(let|const|var|class|tag)@B)/, "keyword.export"], [/(export)( +)(global)@B/, ["keyword.export", "white", "keyword.global"]], [/(export)(\s+\*\s+)(from)@B/, ["keyword.export", "operator.star", "keyword.from", "@>import_source"]], [/(export)@B/, "keyword.export", "@>export_body"]], export_body: [ve(null, -1, 0), [/(\*)(\s+as\s+)(@esmIdentifier)/, ["keyword.star", "keyword.as", "identifier.const.export"]], [/(@esmIdentifier)(\s+as\s+)(default)/, ["alias", "keyword.as", "alias.default"]], [/(@esmIdentifier)(\s+as\s+)(@esmIdentifier)/, ["alias", "keyword.as", "identifier.const.export"]], [/from/, "keyword.from", {switchTo: "@import_source"}], [/\{/, "{", "@esm_specifiers=export/part"], [/(@esmIdentifier)/, "identifier.const.export"], [/\*/, "operator.star"], "comma_", "common_"], esm_specifiers: [[/\}/, "}", "@pop"], [/(@esmIdentifier)(\s+as\s+)(@esmIdentifier)/, ["alias", "keyword.as", "identifier.const.$F", {switchTo: "@/delim"}]], [/@esmIdentifier/, {cases: {"$/==part": {token: "identifier.const.$S4", switchTo: "@/delim"}, "@default": {token: "invalid"}}}], [/\s*\,\s*/, "delimiter.comma", {switchTo: "@/part"}], "whitespace"], _path: [[/[^"'\`\{\\]+/, "path"], [/@escapes/, "path.escape"], [/\./, "path.escape.invalid"], [/\{/, "invalid"], [/["'`]/, {cases: {"$#==$F": {token: "path.close", next: "@pop"}, "@default": "path"}}]], member_: [[/(constructor)@B/, "entity.name.constructor", "@>def_params&def/def"], [/(def|get|set)(\s)(@defid)/, ["keyword.$1", "white.entity", "entity.name.$1", "@>def_params&$1/$1"]], [/(def|get|set)(\s)(\[)/, ["keyword.$1", "white.entity", "$$", "@>def_dynamic_name/$1"]]], func_: [[/export(?=\s+(get|set|def|global) )/, "keyword.export"], [/global(?=\s+(get|set|def) )/, "keyword.global"], [/(def)(\s)(@id)(\.)(@defid)/, ["keyword.$1", "white.entity", "identifier.target", "operator", "entity.name.def", "@>def_params&$1/$1"]], [/(def)(\s)(@defid)/, ["keyword.$1", "white.entity", "entity.name.function.decl-const-func", "@>def_params&$1/$1"]]], flow_: [[/(if|else|elif|unless)(?=\s|$)/, ["keyword.$1", "@flow_start=$1"]]], flow_start: [ve({switchTo: "@>_flow&$F"}, -1, -1), [/[ \t]+/, "white"], "expr_"], for_: [[/for(?: own)?@B/, "keyword.$#", "@for_start&forscope=decl-for"]], while_: [[/(while|until)@B/, "keyword.$#", "@>while_body"]], while_body: [ve(2, -1, 0), "block_"], for_start: [ve({switchTo: "@>for_body"}, -1, -1), [/\[/, "array.[", "@array_var_body"], [/\{/, "object.{", "@object_body"], [/(@variable)/, "identifier.$F"], [/(\s*\,\s*)/, "separator", "@=decl-for-index"], [/\s(in|of)@B/, "keyword.$1", {switchTo: "@>for_source="}], [/[ \t]+/, "white"], "type_"], for_source: [ve({switchTo: "@>for_body"}, -1, {switchTo: "@for_body"}), "expr_", [/[ \t]+/, "white"]], for_body: [ve(2, -1, 0), "block_"], decorator_: [[/(@decid)(\()/, ["decorator", "$2", "@_decorator_params"]], [/(@decid)/, "decorator"]], _decorator_params: [[/\)/, ")", "@pop"], "params_"], field_: [[/((?:lazy )?)((?:static )?)(const|let|attr)(?=\s|$)/, ["keyword.lazy", "keyword.static", "keyword.$1", "@_vardecl=field-$3"]], [/(static\s+)(?=@fieldid)/, "keyword.static"], [/(@fieldid)(?=$)/, "entity.name.field"], [/(@fieldid)/, ["entity.name.field", "@_field_1"]]], _field_1: [ve(null, -1, -1), "type_", [/(\s*=)(?!\=)/, ["operator.assign", "@>_field_value&field"]], [/(\s*(?:\@)set\s*)/, ["keyword.spy", "@>_def&spy"]]], _field_value: [ve(2, -1, 0), "block_", [/(\s*(?:\@)set\s*)/, ["@rematch", "@pop"]]], var_: [[/((?:export )?)(const|let)(?=\s[\[\{\$a-zA-Z]|\s*$)/, ["keyword.export", "keyword.$1", "@_vardecl=decl-$2"]], [/((?:export )?)(const|let)(?=\s|$)/, ["keyword.export", "keyword.$1"]]], inline_var_: [[/(const|let)(?=\s[\[\{\$a-zA-Z]|\s*$)/, ["keyword.$1", "@inline_var_body=decl-$1"]]], string_: [[/"""/, "string", '@_herestring="""'], [/'''/, "string", "@_herestring='''"], [/["'`]/, "string.open", "@_string=$#"]], number_: [[/0[xX][0-9a-fA-F_]+/, "number.hex"], [/0[b][01_]+/, "number.binary"], [/0[o][0-9_]+/, "number.octal"], [/(\d+)([a-z]+|\%)/, ["number", "unit"]], [/(\d*\.\d+(?:[eE][\-+]?\d+)?)([a-z]+|\%)/, ["number.float", "unit"]], [/\d+[eE]([\-+]?\d+)?/, "number.float"], [/\d[\d_]*\.\d[\d_]*([eE][\-+]?\d+)?/, "number.float"], [/\d[\d_]*/, "number.integer"], [/0[0-7]+(?!\d)/, "number.octal"], [/\d+/, "number"]], _string: [[/[^"'\`\{\\]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/\{/, {cases: {"$F=='": "string", "@default": {token: "string.bracket.open", next: "@interpolation_body"}}}], [/["'`]/, {cases: {"$#==$F": {token: "string.close", next: "@pop"}, "@default": "string"}}], [/#/, "string"]], _herestring: [[/("""|''')/, {cases: {"$1==$F": {token: "string", next: "@pop"}, "@default": "string"}}], [/[^#\\'"\{]+/, "string"], [/['"]+/, "string"], [/@escapes/, "string.escape"], [/\./, "string.escape.invalid"], [/\{/, {cases: {'$F=="""': {token: "string", next: "@interpolation_body"}, "@default": "string"}}], [/#/, "string"]], interpolation_body: [[/\}/, "string.bracket.close", "@pop"], "expr_"], _class: [ve(Yu, -1, 0), "css_", "member_", "comment_", "decorator_", [/(get|set|def|static|prop|attr)@B/, "keyword.$0"], "field_", "common_"], _tagclass: ["_class", [/(?=\<self)/, "entity.name.def.render", "@_render&def"]], def_params: [[/\(/, "(", "@def_parens"], [/^/, "@rematch", {switchTo: "@_def"}], [/do@B/, "keyword.do", {switchTo: "@_def"}], "params_", [/@comment/, "comment"]], def_parens: [[/\)/, ")", "@pop"], "params_"], def_dynamic_name: [["]", {token: "square.close", switchTo: "@def_params&$/"}], "expr_"], _render: [ve(2, -1, -1), "block_"], _def: [ve(2, -1, 0), "block_"], _flow: [ve(2, -1, 0), "block_"], _varblock: [ve(1, -1, -1), [/\[/, "array.[", "@array_var_body"], [/\{/, "object.{", "@object_body"], [/(@variable)/, "identifier.$F"], [/\s*\,\s*/, "separator"], [/(\s*\=\s*)(?=(for|while|until|if|unless|try)\s)/, "operator", "@pop"], [/(\s*\=\s*)/, "operator", "@var_value="], "type_", [/#(\s.*)?\n?$/, "comment"]], _vardecl: [ve(null, -1, -1), [/\[/, "array.[", "@array_var_body"], [/\{/, "object.{", "@object_body"], [/(@variable)(?=\n|,|$)/, "identifier.$F", "@pop"], [/(@variable)/, "identifier.$F"], [/(\s*\=\s*)/, "operator.declval", {switchTo: "@var_value&value="}], "type_"], array_var_body: [[/\]/, "]", "@pop"], [/\{/, "object.{", "@object_body"], [/\[/, "array.[", "@array_var_body"], "spread_", [/(@variable)/, "identifier.$F"], [/(\s*\=\s*)/, "operator.assign", "@array_var_body_value="], [",", "delimiter"]], array_var_body_value: [[/(?=,|\)|]|})/, "delimiter", "@pop"], "expr_"], inline_var_body: [[/\[/, "array.[", "@array_var_body"], [/\{/, "object.{", "@object_body"], [/(@variable)/, "identifier.$F"], [/(\s*\=\s*)/, "operator", "@pop"], "type_"], var_value: [[/(?=,|\)|]|})/, "delimiter", "@pop"], ve({switchTo: "@>block"}, -1, -1), "block_"], common_: [[/^(\t+)(?=\n|$)/, "white.tabs"], "whitespace"], comma_: [[/\s*,\s*/, "delimiter.comma"]], spread_: [[/\.\.\./, "operator.spread"]], type_: [[/\\/, "@rematch", "@_type&-_type/0"]], _type: [ve(-1, -1, -1), [/\\/, "delimiter.type.prefix"], [/\[/, "delimiter.type", "@/]"], [/\(/, "delimiter.type", "@/)"], [/\{/, "delimiter.type", "@/}"], [/\</, "delimiter.type", "@/>"], [/\|/, "delimiter.type.union"], [/\,|\s|\=|\./, {cases: {"$/==0": {token: "@rematch", next: "@pop"}, "@default": "type"}}], [/[\]\}\)\>]/, {cases: {"$#==$/": {token: "delimiter.type", next: "@pop"}, "@default": {token: "@rematch", next: "@pop"}}}], [/[\w\-\$]+/, "type"]], css_: [[/global(?=\s+css@B)/, "keyword.$#"], [/css(?:\s+)?/, "keyword.css", "@>css_selector&rule-_sel"]], sel_: [[/(\%)((?:@id)?)/, ["style.selector.mixin.prefix", "style.selector.mixin"]], [/(\@)(\.{0,2}[\w\-\<\>\!]*\+?)/, "style.selector.modifier"], [/(\@)(\.{0,2}[\w\-\<\>\!]*)/, "style.selector.modifier"], [/\.([\w\-]+)/, "style.selector.class-name"], [/\#([\w\-]+)/, "style.selector.id"], [/([\w\-]+)/, "style.selector.element"], [/(>+|~|\+)/, "style.selector.operator"], [/(\*+)/, "style.selector.element.any"], [/(\$)((?:@id)?)/, ["style.selector.reference.prefix", "style.selector.reference"]], [/\&/, "style.selector.context"], [/\(/, "delimiter.selector.parens.open", "@css_selector_parens"], [/\[/, "delimiter.selector.attr.open", "@css_selector_attr"], [/\s+/, "white"], [/,/, "style.selector.delimiter"], [/#(\s.*)?\n?$/, "comment"]], css_props: [ve(null, -1, 0), [/(?=@cssPropertyKey2)/, "", "@css_property&-_styleprop-_stylepropkey"], [/#(\s.*)?\n?$/, "comment"], [/(?=[\%\*\w\&\$\>\.\[\@\!]|\#[\w\-])/, "", "@>css_selector&rule-_sel"], [/\s+/, "white"]], css_selector: [ve({switchTo: "@css_props"}, -1, {token: "@rematch", switchTo: "@css_props&_props"}), [/(\}|\)|\])/, "@rematch", "@pop"], [/(?=\s*@cssPropertyKey2)/, "", {switchTo: "@css_props&_props"}], [/\s*#\s/, "@rematch", {switchTo: "@css_props&_props"}], "sel_"], css_inline: [[/\]/, "style.close", "@pop"], [/(?=@cssPropertyKey2)/, "", "@css_property&-_styleprop-_stylepropkey"], [/(?=@cssPropertyPath\])/, "", "@css_property&-_styleprop-_stylepropkey"]], css_selector_parens: [[/\)/, "delimiter.selector.parens.close", "@pop"], "sel_"], css_selector_attr: [[/\]/, "delimiter.selector.parens.close", "@pop"], "sel_"], css_property: [ve(null, -1, -1), [/\]/, "@rematch", "@pop"], [/(\d+)(@id)/, ["style.property.unit.number", "style.property.unit.name"]], [/((--|\$)@id)/, "style.property.var"], [/(-*@id)/, "style.property.name"], [/@cssModifier/, "style.property.modifier"], [/(\@+|\.+)(@id\-?)/, ["style.property.modifier.start", "style.property.modifier"]], [/\+(@id)/, "style.property.scope"], [/\s*([\:]\s*)(?=@br|$)/, "style.property.operator", {switchTo: "@>css_multiline_value&_stylevalue"}], [/\s*([\:]\s*)/, "style.property.operator", {switchTo: "@>css_value&_stylevalue"}]], css_value_: [[/(x?xs|sm\-?|md\-?|lg\-?|xx*l|\dxl|hg|x+h)\b/, "style.value.size"], [/\#[0-9a-fA-F]+/, "style.value.color.hex"], [/((--|\$)@id)/, "style.value.var"], [/(@optid)(\@+|\.+)(@optid)/, ["style.property.name", "style.property.modifier.prefix", "style.property.modifier"]], "op_", "string_", "number_", "comment_", [/\s+/, "style.value.white"], [/\(/, "delimiter.style.parens.open", "@css_expressions"], [/\{/, "delimiter.style.curly.open", "@css_interpolation&-_styleinterpolation"], [/(@id)/, "style.value"]], css_value: [ve({switchTo: "@>css_multiline_value"}, -1, -1), [/@cssPropertyKey2/, "@rematch", "@pop"], [/;/, "style.delimiter", "@pop"], [/(\}|\)|\])/, "@rematch", "@pop"], "css_value_"], css_multiline_value: [ve(null, -1, 0), [/@cssPropertyKey2/, "invalid"], "css_value_"], css_expressions: [[/\)/, "delimiter.style.parens.close", "@pop"], [/\(/, "delimiter.style.parens.open", "@css_expressions"], "css_value"], css_interpolation: [[/\}/, "delimiter.style.curly.close", "@pop"], "expr_"], expressions: [[/\,/, "delimiter.comma"]], whitespace: [[/[\r\n]+/, "br"], [/[ \t\r\n]+/, "white"]], space: [[/[ \t]+/, "white"]], tag_: [[/(\s*)(<)(?=\.)/, ["white", "tag.open", "@_tag/flag"]], [/(\s*)(<)(?=\w|\{|\[|\%|\#|>)/, ["white", "tag.open", "@_tag/name"]]], tag_content: [ve(2, -1, 0), [/\)|\}|\]/, "@rematch", "@pop"], "common_", "flow_", "var_", "for_", "css_", "expr_", "do_"], tag_children: [], _tag: [[/\/>/, "tag.close", "@pop"], [/>/, "tag.close", {switchTo: "@>tag_content=&-_tagcontent"}], [/>/, "tag.close", "@pop"], [/(\-?\d+)/, "tag.$S3"], [/(\%)(@id)/, ["tag.mixin.prefix", "tag.mixin"]], [/\#@id/, "tag.id"], [/\./, {cases: {"$/==event": {token: "tag.event-modifier.start", switchTo: "@/event-modifier"}, "$/==event-modifier": {token: "tag.event-modifier.start", switchTo: "@/event-modifier"}, "$/==modifier": {token: "tag.modifier.start", switchTo: "@/modifier"}, "$/==rule": {token: "tag.rule-modifier.start", switchTo: "@/rule-modifier"}, "$/==rule-modifier": {token: "tag.rule-modifier.start", switchTo: "@/rule-modifier"}, "@default": {token: "tag.flag.start", switchTo: "@/flag"}}}], [/(\$@id)/, {cases: {"$/==name": "tag.reference", "@default": "tag.$/"}}], [/\{/, "tag.$/.interpolation.open", "@_tag_interpolation"], [/\[/, "style.open", "@css_inline"], [/(\s*\=\s*)/, "operator.equals.tagop.tag-$/", "@_tag_value&-value"], [/\:/, {token: "tag.event.start", switchTo: "@/event"}], "tag_event_", [/(\-?@tagIdentifier)(\:@id)?/, {cases: {"$/==attr": {token: "@rematch", next: "@_tag_attr&-_tagattr"}, "@default": {token: "tag.$/"}}}], [/\(/, {token: "tag.$/.parens.open", next: "@_tag_parens/0"}], [/\s+/, {token: "tag.white", switchTo: "@/attr"}], "comment_"], tag_event_: [[/(?=\@@optid)/, "", "@_tag_event&-_listener"]], _tag_part: [[/\)|\}|\]|\>/, "@rematch", "@pop"]], _tag_event: ["_tag_part", [/(\@)(@optid)/, ["tag.event.start", "tag.event.name"]], [/(\.)(@optid)/, ["tag.event-modifier.start", "tag.event-modifier.name"]], [/\(/, {token: "tag.$/.parens.open", next: "@_tag_parens/0"}], [/(\s*\=\s*)/, "operator.equals.tagop.tag-$/", "@_tag_value&handler"], [/\s+/, "@rematch", "@pop"]], tag_attr_: [[/(?=@tagIdentifier(\:@id)?)/, "", "@_tag_attr&-_attribute"]], _tag_attr: ["_tag_part", [/(\-?@tagIdentifier)(\:@id)?/, "tag.attr"], [/\.(@optid)/, "tag.event-modifierzz"], [/\(/, {token: "tag.parens.open.$/", next: "@_tag_parens/0"}], [/(\s*\=\s*)/, "operator.equals.tagop.tag-$/", "@_tag_value&-tagattrvalue"], [/\s+/, "@rematch", "@pop"]], _tag_interpolation: [[/\}/, "tag.$/.interpolation.close", "@pop"], "expr_", [/\)|\]/, "invalid"]], _tag_parens: [[/\)/, "tag.$/.parens.close", "@pop"], "arglist_", [/\]|\}/, "invalid"]], _tag_value: [[/(?=(\/?\>|\s))/, "", "@pop"], "attr_expr_"], regexp_: [[/\/(?!\ )(?=([^\\\/]|\\.)+\/)/, {token: "regexp.slash.open", bracket: "@open", next: "@_regexp"}], [/\/\/\//, {token: "regexp.slash.open", bracket: "@open", next: "@_hereregexp"}], [/(\/)(\/)/, ["regexp.slash.open", "regexp.slash.close"]]], _regexp: [[/(\{)(\d+(?:,\d*)?)(\})/, ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]], [/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/, ["regexp.escape.control", {token: "regexp.escape.control", next: "@_regexrange"}]], [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]], [/[()]/, "regexp.escape.control"], [/@regexpctl/, "regexp.escape.control"], [/[^\\\/]/, "regexp"], [/@regexpesc/, "regexp.escape"], [/\\:/, "regexp.escape"], [/\\\./, "regexp.invalid"], [/(\/)(\w+)/, [{token: "regexp.slash.close"}, {token: "regexp.flags", next: "@pop"}]], ["/", {token: "regexp.slash.close", next: "@pop"}], [/./, "regexp.invalid"]], _regexrange: [[/-/, "regexp.escape.control"], [/\^/, "regexp.invalid"], [/@regexpesc/, "regexp.escape"], [/[^\]]/, "regexp"], [/\]/, "regexp.escape.control", "@pop"]], _hereregexp: [[/[^\\\/#]/, "regexp"], [/\\./, "regexp"], [/#.*$/, "comment"], ["///[igm]*", "regexp", "@pop"], [/\//, "regexp"], "comment_"]};
|
13303 | function w1(t) {
|
13304 | let e = ["$S1", "$S2", "$S3", "$S4", "$S5", "$S6"];
|
13305 | if (t.match(/\@(pop|push|popall)/) || (t[0] == "@" && (t = t.slice(1)), t.indexOf(".") >= 0))
|
13306 | return t;
|
13307 | t = x1(t), t[0] == ">" && (e[1] = "$S6 ", t = t.slice(1));
|
13308 | for (let r = 0, i = il(t.split(/(?=[\/\&\=\*])/)), s = i.length; r < s; r++) {
|
13309 | let n = i[r];
|
13310 | n[0] == "&" ? n[1] == "-" || n[1] == "_" ? e[2] = "$S3" + n.slice(1) : e[2] = "$S3-" + n.slice(1) : n[0] == "+" ? e[3] = "$S4-" + n.slice(1) : n[0] == "=" ? e[3] = n.slice(1) : n[0] == "/" ? e[4] = n.slice(1) : n[0] == "*" ? e[5] = n.slice(1) : e[0] = n;
|
13311 | }
|
13312 | return e.join(".");
|
13313 | }
|
13314 | function x1(t) {
|
13315 | let e = t;
|
13316 | return t = t.replace("$/", "$S5"), t = t.replace("$F", "$S4"), t = t.replace("$&", "$S3"), t = t.replace("$I", "$S2"), t = t.replace("$T", "$S2"), t;
|
13317 | }
|
13318 | function ol(t, e) {
|
13319 | if (typeof t == "string" && (t = {token: t}), t && t.token != null)
|
13320 | t.token = x1(t.token), typeof e == "string" ? t.next = e : e && Object.assign(t, e), t.next && (t.next = w1(t.next)), t.switchTo && (t.switchTo = w1(t.switchTo));
|
13321 | else if (t && t.cases) {
|
13322 | let r = {};
|
13323 | for (let i = t.cases, s = 0, n = Object.keys(i), o = n.length, a, l; s < o; s++) {
|
13324 | a = n[s], l = i[a];
|
13325 | let p = x1(a);
|
13326 | r[p] = ol(l);
|
13327 | }
|
13328 | t.cases = r;
|
13329 | } else if (t instanceof Array) {
|
13330 | let r = [], i = null;
|
13331 | for (let s = 0, n = il(t), o = n.length; s < o; s++) {
|
13332 | let a = n[s];
|
13333 | a[0] == "@" && s == t.length - 1 && i && (a = {next: a}), typeof a == "object" ? a.token != null || a.cases ? r.push(i = Object.assign({}, a)) : Object.assign(i, a) : typeof a == "string" && r.push(i = {token: x1(a)});
|
13334 | }
|
13335 | t = r;
|
13336 | }
|
13337 | if (t instanceof Array)
|
13338 | for (let r = 0, i = il(t), s = i.length; r < s; r++) {
|
13339 | let n = i[r];
|
13340 | n.token && n.token.indexOf("$$") >= 0 && (n.token = n.token.replace("$$", "$" + (r + 1))), n.next && (n.next = w1(n.next)), n.switchTo && (n.switchTo = w1(n.switchTo));
|
13341 | }
|
13342 | return t;
|
13343 | }
|
13344 | for (let t = 0, e = Object.keys(nl), r = e.length, i, s; t < r; t++) {
|
13345 | i = e[t], s = nl[i];
|
13346 | let n = 0;
|
13347 | for (; n < s.length; ) {
|
13348 | let o = s[n];
|
13349 | if (o[0] instanceof Array) {
|
13350 | s.splice(n, 1, ...o);
|
13351 | continue;
|
13352 | } else
|
13353 | typeof o == "string" ? s[n] = {include: o} : o[1] instanceof Array ? o[1] = ol(o[1]) : o instanceof Array && o.splice(1, 2, ol(o[1], o[2]));
|
13354 | n++;
|
13355 | }
|
13356 | }
|
13357 | var S1 = {defaultToken: "invalid", ignoreCase: false, tokenPostfix: "", brackets: [{open: "{", close: "}", token: "bracket.curly"}, {open: "[", close: "]", token: "bracket.square"}, {open: "(", close: ")", token: "bracket.parenthesis"}], keywords: ["def", "and", "or", "is", "isnt", "not", "on", "yes", "@", "no", "off", "true", "false", "null", "this", "self", "as", "new", "delete", "typeof", "in", "instanceof", "return", "throw", "break", "continue", "debugger", "if", "elif", "else", "switch", "for", "while", "do", "try", "catch", "finally", "class", "extends", "super", "undefined", "then", "unless", "until", "loop", "of", "by", "when", "tag", "prop", "attr", "export", "import", "extend", "var", "let", "const", "require", "isa", "await"], boolean: ["true", "false", "yes", "no", "undefined", "null"], operators: ["=", "!", "~", "?", ":", "!!", "??", "&", "|", "^", "%", "<<", "!&", ">>", ">>>", "+=", "-=", "*=", "/=", "&=", "|=", "?=", "??=", "^=", "%=", "~=", "<<=", ">>=", ">>>=", "..", "...", "||=", "&&=", "**=", "**", "|=?", "~=?", "^=?", "=?", "and", "or"], assignments: ["=", "|=?", "~=?", "^=?", "=?", "^=", "%=", "~=", "<<=", ">>=", ">>>=", "||=", "&&=", "?=", "??=", "+=", "-=", "*=", "/=", "&=", "|=", "**="], logic: [">", "<", "==", "<=", ">=", "!=", "&&", "||", "===", "!=="], ranges: ["..", "..."], spread: ["..."], dot: ["."], access: [".", ".."], math: ["+", "-", "*", "/", "++", "--"], unspaced_ops: mf("... . .. + * ++ --"), comment: /#(\s.*)?(\n|$)/, symbols: /[=><!~?&%|+\-*\^,]+/, escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, postaccess: /(:(?=\w))?/, ivar: /\@[a-zA-Z_]\w*/, B: /(?=\s|$)/, br: /[\r\n]+/, constant: /[A-Z][\w\$]*(?:\-+[\w\$]+)*/, id: /[A-Za-z_\$][\w\$]*(?:\-+[\w\$]+)*\??/, plainid: /[A-Za-z_\$][\w\$]*(?:\-+[\w\$]+)*\??/, fieldid: /[\@\#]*@plainid/, propid: /[\@\#]*@plainid/, defid: /[\@\#]*@plainid/, decid: /\@@plainid/, symid: /\#+@plainid/, symref: /\#\#@plainid/, optid: /(?:@id)?/, esmIdentifier: /[A-Za-z_\$\@][\w\$]*(?:\-+[\w\$]+)*\??/, propertyPath: /(?:[A-Za-z_\$][A-Za-z\d\-\_\$]*\.)?(?:[A-Za-z_\$][A-Za-z\d\-\_\$]*)/, tagNameIdentifier: /(?:[\w\-]+\:)?\w+(?:\-\w+)*/, variable: /[\w\$]+(?:-[\w\$]*)*\??/, varKeyword: /var|let|const/, tagIdentifier: /-*[a-zA-Z][\w\-]*/, implicitCall: /(?!\s(?:and|or|is|isa)\s)(?=\s[\w\'\"\/\[\{])/, cssModifier: /(?:\@+[\<\>\!]?[\w\-]+\+?|\.+@id\-?)/, cssPropertyPath: /[\@\.]*[\w\-\$]+(?:[\@\.]+[\w\-\$]+)*/, cssPropertyKey: /[\@\.]*[\w\-\$]+(?:[\@\.]+[\w\-\$]+)*(?:\s*\:)/, cssVariable: /(?:--|\$)[\w\-\$]+/, cssPropertyName: /[\w\-\$]+/, cssPropertyKey2: /(?:@cssPropertyName(?:@cssModifier)*|@cssModifier+)(?:\s*\:)/, cssUpModifier: /\.\.[\w\-\$]+/, cssIsModifier: /\.[\w\-\$]+/, regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/, regexpctl: /[(){}\[\]\$\^|\-*+?\.]/, regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/, tokenizer: nl};
|
13358 | var Es;
|
13359 | (function(t) {
|
13360 | t[t.None = 0] = "None", t[t.Open = 1] = "Open", t[t.Close = -1] = "Close";
|
13361 | })(Es || (Es = {}));
|
13362 | function yf(t) {
|
13363 | return Array.isArray(t);
|
13364 | }
|
13365 | function Ku(t) {
|
13366 | return !yf(t);
|
13367 | }
|
13368 | function al(t) {
|
13369 | return typeof t == "string";
|
13370 | }
|
13371 | function qu(t) {
|
13372 | return !al(t);
|
13373 | }
|
13374 | function Xu(t) {
|
13375 | return !t;
|
13376 | }
|
13377 | function dn(t, e) {
|
13378 | return t.ignoreCase && e ? e.toLowerCase() : e;
|
13379 | }
|
13380 | function ll(t) {
|
13381 | return t.replace(/[&<>'"_]/g, "-");
|
13382 | }
|
13383 | function Wu(t, e) {
|
13384 | console.log(`${t.languageId}: ${e}`);
|
13385 | }
|
13386 | function we(t, e) {
|
13387 | return new Error(`${t.languageId}: ${e}`);
|
13388 | }
|
13389 | var Ju = {};
|
13390 | function gf(t) {
|
13391 | let e = [], r = 0, i = t.length, s = "", n = 0;
|
13392 | for (; r < i; ) {
|
13393 | let o = t[r++];
|
13394 | if (o == "$") {
|
13395 | let a = t[r++];
|
13396 | if (a == "$") {
|
13397 | s += "$";
|
13398 | continue;
|
13399 | }
|
13400 | s && e.push(s), s = "", a == "#" ? e.push(0) : a == "S" ? e.push(parseInt(t[r++]) + 100) : e.push(parseInt(a) + 1);
|
13401 | } else
|
13402 | s += o;
|
13403 | }
|
13404 | return s && e.push(s), Ju[t] = e, e;
|
13405 | }
|
13406 | function es(t, e, r, i, s) {
|
13407 | let n = null, o = Ju[e] || gf(e), a = "";
|
13408 | for (let l = 0; l < o.length; l++) {
|
13409 | let p = o[l];
|
13410 | typeof p == "string" ? a += p : p > 100 ? (n === null && (n = s.split(".")), a += n[p - 101] || "") : p === 100 ? a += s : p === 0 ? a += r : p > 0 && (a += i[p - 1]);
|
13411 | }
|
13412 | return a;
|
13413 | }
|
13414 | var cl = {};
|
13415 | function T1(t, e) {
|
13416 | let r = e;
|
13417 | if (cl[r])
|
13418 | return t.tokenizer[cl[r]];
|
13419 | for (; r && r.length > 0; ) {
|
13420 | let i = t.tokenizer[r];
|
13421 | if (i)
|
13422 | return cl[e] = r, i;
|
13423 | let s = r.lastIndexOf(".");
|
13424 | s < 0 ? r = null : r = r.substr(0, s);
|
13425 | }
|
13426 | return null;
|
13427 | }
|
13428 | function Zu(t, e) {
|
13429 | let r = e;
|
13430 | for (; r && r.length > 0; ) {
|
13431 | if (t.stateNames[r])
|
13432 | return true;
|
13433 | let s = r.lastIndexOf(".");
|
13434 | s < 0 ? r = null : r = r.substr(0, s);
|
13435 | }
|
13436 | return false;
|
13437 | }
|
13438 | function vf(t, e) {
|
13439 | if (!e || !Array.isArray(e))
|
13440 | return false;
|
13441 | for (let r of e)
|
13442 | if (!t(r))
|
13443 | return false;
|
13444 | return true;
|
13445 | }
|
13446 | function Qu(t, e) {
|
13447 | return typeof t == "boolean" ? t : e;
|
13448 | }
|
13449 | function $u(t, e) {
|
13450 | return typeof t == "string" ? t : e;
|
13451 | }
|
13452 | function bf(t) {
|
13453 | let e = {};
|
13454 | for (let r of t)
|
13455 | e[r] = true;
|
13456 | return e;
|
13457 | }
|
13458 | function th(t, e = false) {
|
13459 | e && (t = t.map(function(i) {
|
13460 | return i.toLowerCase();
|
13461 | }));
|
13462 | let r = bf(t);
|
13463 | return e ? function(i) {
|
13464 | return r[i.toLowerCase()] !== void 0 && r.hasOwnProperty(i.toLowerCase());
|
13465 | } : function(i) {
|
13466 | return r[i] !== void 0 && r.hasOwnProperty(i);
|
13467 | };
|
13468 | }
|
13469 | function ul(t, e) {
|
13470 | let r = 0;
|
13471 | for (; e.indexOf("@") >= 0 && r < 5; )
|
13472 | r++, e = e.replace(/@(\w+)/g, function(i, s) {
|
13473 | let n = "";
|
13474 | if (typeof t[s] == "string")
|
13475 | n = t[s];
|
13476 | else if (t[s] && t[s] instanceof RegExp)
|
13477 | n = t[s].source;
|
13478 | else
|
13479 | throw t[s] === void 0 ? we(t, "language definition does not contain attribute '" + s + "', used at: " + e) : we(t, "attribute reference '" + s + "' must be a string, used at: " + e);
|
13480 | return Xu(n) ? "" : "(?:" + n + ")";
|
13481 | });
|
13482 | return new RegExp(e, t.ignoreCase ? "i" : "");
|
13483 | }
|
13484 | function kf(t, e, r, i) {
|
13485 | if (i < 0)
|
13486 | return t;
|
13487 | if (i < e.length)
|
13488 | return e[i];
|
13489 | if (i >= 100) {
|
13490 | i = i - 100;
|
13491 | let s = r.split(".");
|
13492 | if (s.unshift(r), i < s.length)
|
13493 | return s[i];
|
13494 | }
|
13495 | return null;
|
13496 | }
|
13497 | function xf(t, e, r, i) {
|
13498 | let s = -1, n = r, o = r.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);
|
13499 | o && (o[3] && (s = parseInt(o[3]), o[2] && (s = s + 100)), n = o[4]);
|
13500 | let a = "~", l = n;
|
13501 | !n || n.length === 0 ? (a = "!=", l = "") : /^\w*$/.test(l) ? a = "==" : (o = n.match(/^(@|!@|~|!~|==|!=)(.*)$/), o && (a = o[1], l = o[2]));
|
13502 | let p;
|
13503 | if ((a === "~" || a === "!~") && /^(\w|\|)*$/.test(l)) {
|
13504 | let c = th(l.split("|"), t.ignoreCase);
|
13505 | p = function(_) {
|
13506 | return a === "~" ? c(_) : !c(_);
|
13507 | };
|
13508 | } else if (a === "@" || a === "!@") {
|
13509 | let c = t[l];
|
13510 | if (!c)
|
13511 | throw we(t, "the @ match target '" + l + "' is not defined, in rule: " + e);
|
13512 | if (!vf(function(f) {
|
13513 | return typeof f == "string";
|
13514 | }, c))
|
13515 | throw we(t, "the @ match target '" + l + "' must be an array of strings, in rule: " + e);
|
13516 | let _ = th(c, t.ignoreCase);
|
13517 | p = function(f) {
|
13518 | return a === "@" ? _(f) : !_(f);
|
13519 | };
|
13520 | } else if (a === "~" || a === "!~")
|
13521 | if (l.indexOf("$") < 0) {
|
13522 | let c = ul(t, "^" + l + "$");
|
13523 | p = function(_) {
|
13524 | return a === "~" ? c.test(_) : !c.test(_);
|
13525 | };
|
13526 | } else
|
13527 | p = function(c, _, f, m) {
|
13528 | return ul(t, "^" + es(t, l, _, f, m) + "$").test(c);
|
13529 | };
|
13530 | else if (l.indexOf("$") < 0) {
|
13531 | let c = dn(t, l);
|
13532 | p = function(_) {
|
13533 | return a === "==" ? _ === c : _ !== c;
|
13534 | };
|
13535 | } else {
|
13536 | let c = dn(t, l);
|
13537 | p = function(_, f, m, g, b) {
|
13538 | let N = es(t, c, f, m, g);
|
13539 | return a === "==" ? _ === N : _ !== N;
|
13540 | };
|
13541 | }
|
13542 | return s === -1 ? {name: r, value: i, test: function(c, _, f, m) {
|
13543 | return p(c, c, _, f, m);
|
13544 | }} : {name: r, value: i, test: function(c, _, f, m) {
|
13545 | let g = kf(c, _, f, s);
|
13546 | return p(g || "", c, _, f, m);
|
13547 | }};
|
13548 | }
|
13549 | function hl(t, e, r) {
|
13550 | if (r) {
|
13551 | if (typeof r == "string")
|
13552 | return r;
|
13553 | if (r.token || r.token === "") {
|
13554 | if (typeof r.token != "string")
|
13555 | throw we(t, "a 'token' attribute must be of type string, in rule: " + e);
|
13556 | {
|
13557 | let i = {token: r.token};
|
13558 | if (r.token.indexOf("$") >= 0 && (i.tokenSubst = true), typeof r.bracket == "string")
|
13559 | if (r.bracket === "@open")
|
13560 | i.bracket = Es.Open;
|
13561 | else if (r.bracket === "@close")
|
13562 | i.bracket = Es.Close;
|
13563 | else
|
13564 | throw we(t, "a 'bracket' attribute must be either '@open' or '@close', in rule: " + e);
|
13565 | if (r.next) {
|
13566 | if (typeof r.next != "string")
|
13567 | throw we(t, "the next state must be a string value in rule: " + e);
|
13568 | {
|
13569 | let s = r.next;
|
13570 | if (!/^(@pop|@push|@popall)$/.test(s) && (s[0] === "@" && (s = s.substr(1)), s.indexOf("$") < 0 && !Zu(t, es(t, s, "", [], ""))))
|
13571 | throw we(t, "the next state '" + r.next + "' is not defined in rule: " + e);
|
13572 | i.next = s;
|
13573 | }
|
13574 | }
|
13575 | return typeof r.goBack == "number" && (i.goBack = r.goBack), typeof r.switchTo == "string" && (i.switchTo = r.switchTo), typeof r.log == "string" && (i.log = r.log), typeof r._push == "string" && (i._push = r._push), typeof r._pop == "string" && (i._pop = r._pop), typeof r.mark == "string" && (i.mark = r.mark), typeof r.fn == "string" && (i.fn = r.fn), typeof r.nextEmbedded == "string" && (i.nextEmbedded = r.nextEmbedded, t.usesEmbedded = true), i;
|
13576 | }
|
13577 | } else if (Array.isArray(r)) {
|
13578 | let i = [];
|
13579 | for (let s = 0, n = r.length; s < n; s++)
|
13580 | i[s] = hl(t, e, r[s]);
|
13581 | return {group: i};
|
13582 | } else if (r.cases) {
|
13583 | let i = [];
|
13584 | for (let n in r.cases)
|
13585 | if (r.cases.hasOwnProperty(n)) {
|
13586 | let o = hl(t, e, r.cases[n]);
|
13587 | n === "@default" || n === "@" || n === "" ? i.push({test: void 0, value: o, name: n}) : n === "@eos" ? i.push({test: function(a, l, p, c) {
|
13588 | return c;
|
13589 | }, value: o, name: n}) : i.push(xf(t, e, n, o));
|
13590 | }
|
13591 | let s = t.defaultToken;
|
13592 | return {test: function(n, o, a, l) {
|
13593 | for (let p of i)
|
13594 | if (!p.test || p.test(n, o, a, l))
|
13595 | return p.value;
|
13596 | return s;
|
13597 | }};
|
13598 | } else
|
13599 | throw we(t, "an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: " + e);
|
13600 | } else
|
13601 | return {token: ""};
|
13602 | }
|
13603 | var eh = class {
|
13604 | constructor(e) {
|
13605 | this.regex = new RegExp("");
|
13606 | this.action = {token: ""};
|
13607 | this.matchOnlyAtLineStart = false;
|
13608 | this.name = "";
|
13609 | this.name = e, this.stats = {time: 0, count: 0, hits: 0};
|
13610 | }
|
13611 | setRegex(e, r) {
|
13612 | let i;
|
13613 | if (typeof r == "string")
|
13614 | i = r;
|
13615 | else if (r instanceof RegExp)
|
13616 | i = r.source;
|
13617 | else
|
13618 | throw we(e, "rules must start with a match string or regular expression: " + this.name);
|
13619 | i.length == 2 && i[0] == "\\" && /[\{\}\(\)\[\]]/.test(i[1]) && (this.string = i[1]), this.matchOnlyAtLineStart = i.length > 0 && i[0] === "^", this.name = this.name + ": " + i, this.regex = ul(e, "^(?:" + (this.matchOnlyAtLineStart ? i.substr(1) : i) + ")");
|
13620 | }
|
13621 | setAction(e, r) {
|
13622 | this.action = hl(e, this.name, r);
|
13623 | }
|
13624 | };
|
13625 | function E1(t, e) {
|
13626 | if (!e || typeof e != "object")
|
13627 | throw new Error("Monarch: expecting a language definition object");
|
13628 | let r = {};
|
13629 | r.languageId = t, r.noThrow = false, r.maxStack = 100, r.start = typeof e.start == "string" ? e.start : null, r.ignoreCase = Qu(e.ignoreCase, false), r.tokenPostfix = $u(e.tokenPostfix, "." + r.languageId), r.defaultToken = $u(e.defaultToken, "source"), r.usesEmbedded = false;
|
13630 | let i = e;
|
13631 | i.languageId = t, i.ignoreCase = r.ignoreCase, i.noThrow = r.noThrow, i.usesEmbedded = r.usesEmbedded, i.stateNames = e.tokenizer, i.defaultToken = r.defaultToken;
|
13632 | function s(o, a, l) {
|
13633 | for (let p of l) {
|
13634 | let c = p.include;
|
13635 | if (c) {
|
13636 | if (typeof c != "string")
|
13637 | throw we(r, "an 'include' attribute must be a string at: " + o);
|
13638 | if (c[0] === "@" && (c = c.substr(1)), !e.tokenizer[c])
|
13639 | throw we(r, "include target '" + c + "' is not defined at: " + o);
|
13640 | s(o + "." + c, a, e.tokenizer[c]);
|
13641 | } else {
|
13642 | let _ = new eh(o);
|
13643 | if (Array.isArray(p) && p.length >= 1 && p.length <= 3)
|
13644 | if (_.setRegex(i, p[0]), p.length >= 3)
|
13645 | if (typeof p[1] == "string")
|
13646 | _.setAction(i, {token: p[1], next: p[2]});
|
13647 | else if (typeof p[1] == "object") {
|
13648 | let f = p[1];
|
13649 | f.next = p[2], _.setAction(i, f);
|
13650 | } else
|
13651 | throw we(r, "a next state as the last element of a rule can only be given if the action is either an object or a string, at: " + o);
|
13652 | else
|
13653 | _.setAction(i, p[1]);
|
13654 | else {
|
13655 | if (!p.regex)
|
13656 | throw we(r, "a rule must either be an array, or an object with a 'regex' or 'include' field at: " + o);
|
13657 | p.name && typeof p.name == "string" && (_.name = p.name), p.matchOnlyAtStart && (_.matchOnlyAtLineStart = Qu(p.matchOnlyAtLineStart, false)), _.setRegex(i, p.regex), _.setAction(i, p.action);
|
13658 | }
|
13659 | a.push(_);
|
13660 | }
|
13661 | }
|
13662 | }
|
13663 | if (!e.tokenizer || typeof e.tokenizer != "object")
|
13664 | throw we(r, "a language definition must define the 'tokenizer' attribute as an object");
|
13665 | r.tokenizer = [];
|
13666 | for (let o in e.tokenizer)
|
13667 | if (e.tokenizer.hasOwnProperty(o)) {
|
13668 | r.start || (r.start = o);
|
13669 | let a = e.tokenizer[o];
|
13670 | r.tokenizer[o] = new Array(), s("tokenizer." + o, r.tokenizer[o], a);
|
13671 | }
|
13672 | if (r.usesEmbedded = i.usesEmbedded, e.brackets) {
|
13673 | if (!Array.isArray(e.brackets))
|
13674 | throw we(r, "the 'brackets' attribute must be defined as an array");
|
13675 | } else
|
13676 | e.brackets = [{open: "{", close: "}", token: "delimiter.curly"}, {open: "[", close: "]", token: "delimiter.square"}, {open: "(", close: ")", token: "delimiter.parenthesis"}, {open: "<", close: ">", token: "delimiter.angle"}];
|
13677 | let n = [];
|
13678 | for (let o of e.brackets) {
|
13679 | let a = o;
|
13680 | if (a && Array.isArray(a) && a.length === 3 && (a = {token: a[2], open: a[0], close: a[1]}), a.open === a.close)
|
13681 | throw we(r, "open and close brackets in a 'brackets' attribute must be different: " + a.open + `
|
13682 | hint: use the 'bracket' attribute if matching on equal brackets is required.`);
|
13683 | if (typeof a.open == "string" && typeof a.token == "string" && typeof a.close == "string")
|
13684 | n.push({token: a.token + r.tokenPostfix, open: dn(r, a.open), close: dn(r, a.close)});
|
13685 | else
|
13686 | throw we(r, "every element in the 'brackets' array must be a '{open,close,token}' object or array");
|
13687 | }
|
13688 | return r.brackets = n, r.noThrow = true, r;
|
13689 | }
|
13690 | var Ti = class {
|
13691 | constructor(e, r, i) {
|
13692 | this.offset = e | 0, this.type = r, this.language = i, this.kind = 0, this.mods = 0, this.value = null, this.stack = null;
|
13693 | }
|
13694 | toString() {
|
13695 | return this.value || "";
|
13696 | }
|
13697 | get span() {
|
13698 | return {offset: this.offset, length: this.value ? this.value.length : 0};
|
13699 | }
|
13700 | get indent() {
|
13701 | return 0;
|
13702 | }
|
13703 | get startOffset() {
|
13704 | return this.offset;
|
13705 | }
|
13706 | get endOffset() {
|
13707 | return this.offset + (this.value ? this.value.length : 0);
|
13708 | }
|
13709 | clone() {
|
13710 | let e = new Ti(this.offset, this.type, this.language);
|
13711 | return e.value = this.value, e.stack = this.stack, e;
|
13712 | }
|
13713 | match(e) {
|
13714 | if (typeof e == "string")
|
13715 | if (e.indexOf(" ") > 0)
|
13716 | e = e.split(" ");
|
13717 | else {
|
13718 | let r = this.type.indexOf(e);
|
13719 | return e[0] == "." ? r >= 0 : r == 0;
|
13720 | }
|
13721 | if (e instanceof Array)
|
13722 | for (let r of e) {
|
13723 | let i = this.type.indexOf(r);
|
13724 | if (r[0] == "." ? i >= 0 : i == 0)
|
13725 | return true;
|
13726 | }
|
13727 | return e instanceof RegExp ? e.test(this.type) : false;
|
13728 | }
|
13729 | };
|
13730 | var pl = class {
|
13731 | constructor(e, r) {
|
13732 | this.tokens = e, this.endState = r;
|
13733 | }
|
13734 | };
|
13735 | var rh = 10;
|
13736 | function ra(t, e) {
|
13737 | return t.split(".")[e];
|
13738 | }
|
13739 | var fl = class {
|
13740 | static create(e, r) {
|
13741 | return this._INSTANCE.create(e, r);
|
13742 | }
|
13743 | constructor(e) {
|
13744 | this._maxCacheDepth = e, this._entries = Object.create(null);
|
13745 | }
|
13746 | create(e, r) {
|
13747 | if (e !== null && e.depth >= this._maxCacheDepth)
|
13748 | return new mn(e, r);
|
13749 | let i = mn.getStackElementId(e);
|
13750 | i.length > 0 && (i += "|"), i += r;
|
13751 | let s = this._entries[i];
|
13752 | return s || (s = new mn(e, r), this._entries[i] = s, s);
|
13753 | }
|
13754 | };
|
13755 | var ia = fl;
|
13756 | ia._INSTANCE = new fl(rh);
|
13757 | var mn = class {
|
13758 | constructor(e, r) {
|
13759 | this.parent = e, this.state = r, this.depth = (this.parent ? this.parent.depth : 0) + 1;
|
13760 | }
|
13761 | static getStackElementId(e) {
|
13762 | let r = "";
|
13763 | for (; e !== null; )
|
13764 | r.length > 0 && (r += "|"), r += e.state, e = e.parent;
|
13765 | return r;
|
13766 | }
|
13767 | static _equals(e, r) {
|
13768 | for (; e !== null && r !== null; ) {
|
13769 | if (e === r)
|
13770 | return true;
|
13771 | if (e.state !== r.state)
|
13772 | return false;
|
13773 | e = e.parent, r = r.parent;
|
13774 | }
|
13775 | return e === null && r === null;
|
13776 | }
|
13777 | get indent() {
|
13778 | return this.state.lastIndexOf(" ") - this.state.indexOf(" ");
|
13779 | }
|
13780 | get scope() {
|
13781 | return this.part(2);
|
13782 | }
|
13783 | get detail() {
|
13784 | return this.part(2);
|
13785 | }
|
13786 | part(e) {
|
13787 | return this.state.split(".")[e];
|
13788 | }
|
13789 | equals(e) {
|
13790 | return mn._equals(this, e);
|
13791 | }
|
13792 | push(e) {
|
13793 | return ia.create(this, e);
|
13794 | }
|
13795 | pop() {
|
13796 | return this.parent;
|
13797 | }
|
13798 | popall() {
|
13799 | let e = this;
|
13800 | for (; e.parent; )
|
13801 | e = e.parent;
|
13802 | return e;
|
13803 | }
|
13804 | switchTo(e) {
|
13805 | return ia.create(this.parent, e);
|
13806 | }
|
13807 | };
|
13808 | var _l = class {
|
13809 | static create(e) {
|
13810 | return this._INSTANCE.create(e);
|
13811 | }
|
13812 | constructor(e) {
|
13813 | this._maxCacheDepth = e, this._entries = Object.create(null);
|
13814 | }
|
13815 | create(e) {
|
13816 | if (e !== null && e.depth >= this._maxCacheDepth)
|
13817 | return new na(e);
|
13818 | let r = mn.getStackElementId(e), i = this._entries[r];
|
13819 | return i || (i = new na(e), this._entries[r] = i, i);
|
13820 | }
|
13821 | };
|
13822 | var sa = _l;
|
13823 | sa._INSTANCE = new _l(rh);
|
13824 | var na = class {
|
13825 | constructor(e) {
|
13826 | this.stack = e;
|
13827 | }
|
13828 | clone() {
|
13829 | return sa.create(this.stack);
|
13830 | }
|
13831 | equals(e) {
|
13832 | return !(!(e instanceof na) || !this.stack.equals(e.stack));
|
13833 | }
|
13834 | };
|
13835 | var ih = class {
|
13836 | constructor() {
|
13837 | this._tokens = [], this._language = null, this._lastToken = new Ti(0, "start", "imba"), this._lastTokenType = null;
|
13838 | }
|
13839 | enterMode(e, r) {
|
13840 | this._language = r;
|
13841 | }
|
13842 | emit(e, r, i) {
|
13843 | this._lastTokenType;
|
13844 | let s = new Ti(e, r, this._language);
|
13845 | return this._lastTokenType = r, this._lastToken = s, this._tokens.push(s), s;
|
13846 | }
|
13847 | finalize(e) {
|
13848 | return new pl(this._tokens, e);
|
13849 | }
|
13850 | };
|
13851 | var oa = class {
|
13852 | constructor(e, r) {
|
13853 | this._modeId = e, this._lexer = r, this._profile = false;
|
13854 | }
|
13855 | dispose() {
|
13856 | }
|
13857 | getLoadStatus() {
|
13858 | return {loaded: true};
|
13859 | }
|
13860 | getInitialState() {
|
13861 | let e = ia.create(null, this._lexer.start);
|
13862 | return sa.create(e);
|
13863 | }
|
13864 | tokenize(e, r, i) {
|
13865 | let s = new ih(), n = this._tokenize(e, r, i, s);
|
13866 | return s.finalize(n);
|
13867 | }
|
13868 | _tokenize(e, r, i, s) {
|
13869 | return this._myTokenize(e, r, i, s);
|
13870 | }
|
13871 | _safeRuleName(e) {
|
13872 | return e ? e.name : "(unknown)";
|
13873 | }
|
13874 | _rescope(e, r, i, s) {
|
13875 | let n = (e || "").split("-"), o = (r || "").split("-");
|
13876 | if (e == r)
|
13877 | return;
|
13878 | let a = 1;
|
13879 | for (; n[a] && n[a] == o[a]; )
|
13880 | a++;
|
13881 | let l = n.length;
|
13882 | for (; l > a; )
|
13883 | i.push("pop." + n[--l] + "." + l);
|
13884 | for (; o.length > a; ) {
|
13885 | let p = "push." + o[a++] + "." + (a - 1);
|
13886 | if (s) {
|
13887 | let c = ra(s, 1);
|
13888 | p += "." + c;
|
13889 | }
|
13890 | i.push(p);
|
13891 | }
|
13892 | }
|
13893 | _myTokenize(e, r, i, s) {
|
13894 | s.enterMode(i, this._modeId);
|
13895 | let n = e.length, o = r.stack, a = null, l = 0, p = this._profile, c = null, _ = true, f = [], m = 0, g = [], b = null, N = -1;
|
13896 | for (; _ || l < n; ) {
|
13897 | if (m++, m > 1e3) {
|
13898 | if (l == N)
|
13899 | throw console.log("infinite recursion", l, n, o, s), "infinite recursion in tokenizer?";
|
13900 | N = l, m = 0;
|
13901 | }
|
13902 | let y = l, v = o.depth, d = c ? c.groups.length : 0, w = o.state, k = null, T = null, S = null, C = null;
|
13903 | if (c) {
|
13904 | k = c.matches;
|
13905 | let D = c.groups.shift();
|
13906 | T = D.matched, S = D.action, C = c.rule, c.groups.length === 0 && (c = null);
|
13907 | } else {
|
13908 | if (!_ && l >= n)
|
13909 | break;
|
13910 | if (_ = false, g = this._lexer.tokenizer[w], !g && (g = T1(this._lexer, w), !g))
|
13911 | throw we(this._lexer, "tokenizer state is not defined: " + w);
|
13912 | let D = e.substr(l);
|
13913 | for (let I of g)
|
13914 | if (I.string !== void 0) {
|
13915 | if (D[0] === I.string) {
|
13916 | k = [I.string], T = I.string, S = I.action;
|
13917 | break;
|
13918 | }
|
13919 | } else if (l === 0 || !I.matchOnlyAtLineStart) {
|
13920 | if (p) {
|
13921 | I.stats.count++;
|
13922 | let U = performance.now();
|
13923 | k = D.match(I.regex), I.stats.time += performance.now() - U, k && I.stats.hits++;
|
13924 | } else
|
13925 | k = D.match(I.regex);
|
13926 | if (k) {
|
13927 | T = k[0], S = I.action;
|
13928 | break;
|
13929 | }
|
13930 | }
|
13931 | }
|
13932 | if (k || (k = [""], T = ""), S || (l < n && (k = [e.charAt(l)], T = k[0]), S = this._lexer.defaultToken), T === null)
|
13933 | break;
|
13934 | for (l += T.length; Ku(S) && qu(S) && S.test; )
|
13935 | S = S.test(T, k, w, l === n);
|
13936 | let L = null;
|
13937 | if (typeof S == "string" || Array.isArray(S))
|
13938 | L = S;
|
13939 | else if (S.group)
|
13940 | L = S.group;
|
13941 | else if (S.token !== null && S.token !== void 0) {
|
13942 | if (S.tokenSubst ? L = es(this._lexer, S.token, T, k, w) : L = S.token, S.goBack && (l = Math.max(0, l - S.goBack)), S.switchTo && typeof S.switchTo == "string") {
|
13943 | let D = es(this._lexer, S.switchTo, T, k, w);
|
13944 | if (D[0] === "@" && (D = D.substr(1)), T1(this._lexer, D)) {
|
13945 | let I = o.scope, U = ra(D, 2);
|
13946 | I !== U && this._rescope(I, U, f, D), o = o.switchTo(D);
|
13947 | } else
|
13948 | throw we(this._lexer, "trying to switch to a state '" + D + "' that is undefined in rule: " + this._safeRuleName(C));
|
13949 | } else {
|
13950 | if (S.transform && typeof S.transform == "function")
|
13951 | throw we(this._lexer, "action.transform not supported");
|
13952 | if (S.next)
|
13953 | if (S.next === "@push") {
|
13954 | if (o.depth >= this._lexer.maxStack)
|
13955 | throw we(this._lexer, "maximum tokenizer stack size reached: [" + o.state + "," + o.parent.state + ",...]");
|
13956 | o = o.push(w);
|
13957 | } else if (S.next === "@pop") {
|
13958 | if (o.depth <= 1)
|
13959 | throw we(this._lexer, "trying to pop an empty stack in rule: " + this._safeRuleName(C));
|
13960 | {
|
13961 | let D = o;
|
13962 | o = o.pop();
|
13963 | let I = ra(D.state, 2), U = ra(o.state, 2);
|
13964 | I !== U && this._rescope(I, U, f, o.state);
|
13965 | }
|
13966 | } else if (S.next === "@popall")
|
13967 | o = o.popall();
|
13968 | else {
|
13969 | let D = es(this._lexer, S.next, T, k, w);
|
13970 | D[0] === "@" && (D = D.substr(1));
|
13971 | let I = ra(D, 2);
|
13972 | if (T1(this._lexer, D))
|
13973 | I != o.scope && this._rescope(o.scope || "", I, f, D), o = o.push(D);
|
13974 | else
|
13975 | throw we(this._lexer, "trying to set a next state '" + D + "' that is undefined in rule: " + this._safeRuleName(C));
|
13976 | }
|
13977 | }
|
13978 | S.log && typeof S.log == "string" && Wu(this._lexer, this._lexer.languageId + ": " + es(this._lexer, S.log, T, k, w)), S.mark && s.emit(y + i, S.mark, o);
|
13979 | }
|
13980 | if (L === null)
|
13981 | throw we(this._lexer, "lexer rule has no well-defined action in rule: " + this._safeRuleName(C));
|
13982 | if (Array.isArray(L)) {
|
13983 | if (c && c.groups.length > 0)
|
13984 | throw we(this._lexer, "groups cannot be nested: " + this._safeRuleName(C));
|
13985 | if (k.length !== L.length + 1)
|
13986 | throw we(this._lexer, "matched number of groups does not match the number of actions in rule: " + this._safeRuleName(C));
|
13987 | let D = 0;
|
13988 | for (let I = 1; I < k.length; I++)
|
13989 | D += k[I].length;
|
13990 | if (D !== T.length)
|
13991 | throw we(this._lexer, "with groups, all characters should be matched in consecutive groups in rule: " + this._safeRuleName(C));
|
13992 | c = {rule: C, matches: k, groups: []};
|
13993 | for (let I = 0; I < L.length; I++)
|
13994 | c.groups[I] = {action: L[I], matched: k[I + 1]};
|
13995 | l -= T.length;
|
13996 | continue;
|
13997 | } else {
|
13998 | if (L === "@rematch" && (l -= T.length, T = "", k = null, L = ""), T.length === 0)
|
13999 | if (n === 0 || v !== o.depth || w !== o.state || (c ? c.groups.length : 0) !== d) {
|
14000 | for (typeof L == "string" && L && s.emit(l + i, L, o); f.length > 0; )
|
14001 | s.emit(l + i, f.shift(), o);
|
14002 | continue;
|
14003 | } else
|
14004 | throw we(this._lexer, "no progress in tokenizer in rule: " + this._safeRuleName(C));
|
14005 | let D = null;
|
14006 | if (al(L) && L.indexOf("@brackets") === 0) {
|
14007 | let U = L.substr("@brackets".length), B = wf(this._lexer, T);
|
14008 | if (!B)
|
14009 | throw we(this._lexer, "@brackets token returned but no bracket defined as: " + T);
|
14010 | D = ll(B.token + U);
|
14011 | } else {
|
14012 | let U = L === "" ? "" : L + this._lexer.tokenPostfix;
|
14013 | D = ll(U);
|
14014 | }
|
14015 | let I = s.emit(y + i, D, o);
|
14016 | for (I.stack = o, a && a != I && (a.value = e.slice(a.offset - i, y)), a = I; f.length > 0; )
|
14017 | s.emit(l + i, f.shift(), o);
|
14018 | }
|
14019 | }
|
14020 | return a && !a.value && (a.value = e.slice(a.offset - i)), sa.create(o);
|
14021 | }
|
14022 | };
|
14023 | function wf(t, e) {
|
14024 | if (!e)
|
14025 | return null;
|
14026 | e = dn(t, e);
|
14027 | let r = t.brackets;
|
14028 | for (let i of r) {
|
14029 | if (i.open === e)
|
14030 | return {token: i.token, bracketType: Es.Open};
|
14031 | if (i.close === e)
|
14032 | return {token: i.token, bracketType: Es.Close};
|
14033 | }
|
14034 | return null;
|
14035 | }
|
14036 | function Sf(t) {
|
14037 | let e;
|
14038 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
14039 | }
|
14040 | var sh = Symbol.for("#__init__");
|
14041 | var Od = Symbol.for("#__initor__");
|
14042 | var Cd = Symbol.for("#__inited__");
|
14043 | var aa = class {
|
14044 | constructor(e = null) {
|
14045 | this[sh](e);
|
14046 | }
|
14047 | [sh](e = null) {
|
14048 | this.offset = e ? e.offset : void 0, this.text = e ? e.text : void 0, this.tokens = e ? e.tokens : void 0, this.startState = e ? e.startState : void 0, this.endState = e ? e.endState : void 0;
|
14049 | }
|
14050 | clone(e = this.offset) {
|
14051 | let r = [], i = e - this.offset;
|
14052 | for (let s = 0, n = Sf(this.tokens), o = n.length; s < o; s++) {
|
14053 | let a = n[s], l = a.clone();
|
14054 | l.offset = a.offset + i, r.push(l);
|
14055 | }
|
14056 | return new aa({offset: e, startState: this.startState, endState: this.endState, text: this.text, tokens: r});
|
14057 | }
|
14058 | };
|
14059 | var Tf = E1("imba", S1);
|
14060 | var yn = new oa("imba", Tf);
|
14061 | function nh(t) {
|
14062 | let e;
|
14063 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
14064 | }
|
14065 | var uo = ["comment", "string", "keyword", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "typeParameter", "function", "member", "macro", "variable", "parameter", "property", "label"];
|
14066 | for (let t = 0, e = nh(uo), r = e.length; t < r; t++) {
|
14067 | let i = e[t];
|
14068 | uo[i] = t;
|
14069 | }
|
14070 | var Be = {Declaration: 1 << 0, Import: 1 << 1, Export: 1 << 2, Global: 1 << 3, ReadOnly: 1 << 4, Static: 1 << 5, Modification: 1 << 6, Deprecated: 1 << 7, Access: 1 << 8, Root: 1 << 9, Special: 1 << 10, Class: 1 << 11, Member: 1 << 12, Function: 1 << 13, Def: 1 << 14, Var: 1 << 15, Let: 1 << 16, Const: 1 << 17, Get: 1 << 18, Set: 1 << 19};
|
14071 | var oh = Object.keys(Be).map(function(t) {
|
14072 | return t.toLowerCase();
|
14073 | });
|
14074 | for (let t = 0, e = nh(Object.keys(Be)), r = e.length; t < r; t++) {
|
14075 | let i = e[t];
|
14076 | Be[i.toLowerCase()] = Be[i];
|
14077 | }
|
14078 | var Fr = {Keyword: 1 << 0, Access: 1 << 1, Key: 1 << 2, TagName: 1 << 3, TagEvent: 1 << 4, TagFlag: 1 << 5, TagProp: 1 << 6, TagEventModifier: 1 << 7, Value: 1 << 8, Path: 1 << 9, StyleProp: 1 << 10, StyleValue: 1 << 11, Type: 1 << 12, StyleModifier: 1 << 13, StyleSelector: 1 << 14, VarName: 1 << 15, ImportName: 1 << 16};
|
14079 | var zt = {Keyword: 1 << 0, Root: 1 << 1, Class: 1 << 2, Block: 1 << 3};
|
14080 | var la = {and: zt.Block, await: zt.Block, begin: zt.Block, break: zt.Block, by: zt.Block, case: zt.Block, catch: zt.Block, class: zt.Block, const: zt.Block, continue: zt.Block, css: zt.Class | zt.Root, debugger: zt.Block, def: zt.Class | zt.Block, get: zt.Class, set: zt.Class, delete: zt.Block, do: zt.Block, elif: zt.Block, else: zt.Block, export: zt.Root, extends: zt.Block, false: zt.Block, finally: zt.Block, for: zt.Block, if: zt.Block, import: zt.Root, in: zt.Block, instanceof: zt.Block, is: zt.Block, isa: zt.Block, isnt: zt.Block, let: zt.Block, loop: zt.Block, module: zt.Block, nil: zt.Block, no: zt.Block, not: zt.Block, null: zt.Block, of: zt.Block, or: zt.Block, require: zt.Block, return: zt.Block, self: zt.Block, static: zt.Block | zt.Class, super: zt.Block, switch: zt.Block, tag: zt.Root, then: zt.Block, this: zt.Block, throw: zt.Block, true: zt.Block, try: zt.Block, typeof: zt.Block, undefined: zt.Block, unless: zt.Block, until: zt.Block, var: zt.Block, when: zt.Block, while: zt.Block, yes: zt.Block};
|
14081 | var pr = {File: 1, Module: 2, Namespace: 3, Package: 4, Class: 5, Method: 6, Property: 7, Field: 8, Constructor: 9, Enum: 10, Interface: 11, Function: 12, Variable: 13, Constant: 14, String: 15, Number: 16, Boolean: 17, Array: 18, Object: 19, Key: 20, Null: 21, EnumMember: 22, Struct: 23, Event: 24, Operator: 25, TypeParameter: 26};
|
14082 | for (let t = 0, e = Object.keys(pr), r = e.length, i, s; t < r; t++)
|
14083 | i = e[t], s = pr[i], pr[s] = i;
|
14084 | function Ef(t) {
|
14085 | let e;
|
14086 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
14087 | }
|
14088 | var ah = Symbol.for("#__init__");
|
14089 | var jd = Symbol.for("#__initor__");
|
14090 | var Gd = Symbol.for("#__inited__");
|
14091 | var A1 = Symbol.for("#datatype");
|
14092 | var Mt = {None: 0, ConstVariable: 1 << 0, LetVariable: 1 << 1, Property: 1 << 2, EnumMember: 1 << 3, Function: 1 << 4, Class: 1 << 5, LocalComponent: 1 << 6, GlobalComponent: 1 << 7, RegularEnum: 1 << 8, ValueModule: 1 << 9, Parameter: 1 << 10, TypeLiteral: 1 << 11, ObjectLiteral: 1 << 12, Method: 1 << 13, Constructor: 1 << 14, GetAccessor: 1 << 15, SetAccessor: 1 << 16, Signature: 1 << 17, TypeParameter: 1 << 18, TypeAlias: 1 << 19, ExportValue: 1 << 20, Alias: 1 << 21, Prototype: 1 << 22, ExportStar: 1 << 23, Optional: 1 << 24, IsSpecial: 1 << 27, IsImport: 1 << 28, IsStatic: 1 << 29, IsGlobal: 1 << 30, IsRoot: 1 << 31};
|
14093 | Mt.Component = Mt.LocalComponent | Mt.GlobalComponent;
|
14094 | Mt.Variable = Mt.LetVariable | Mt.ConstVariable | Mt.Parameter;
|
14095 | Mt.Accessor = Mt.GetAccessor | Mt.SetAccessor;
|
14096 | Mt.ClassMember = Mt.Method | Mt.Accessor | Mt.Property;
|
14097 | Mt.Scoped = Mt.Function | Mt.Variable | Mt.Class | Mt.Enum | Mt.LocalComponent;
|
14098 | Mt.Type = Mt.Component | Mt.Class;
|
14099 | Mt.GlobalVar = Mt.ConstVariable | Mt.IsGlobal;
|
14100 | Mt.SpecialVar = Mt.ConstVariable | Mt.IsSpecial;
|
14101 | var lh = [["entity.name.component.local", 0, Mt.LocalComponent], ["entity.name.component.global", 0, Mt.GlobalComponent], ["entity.name.function", 0, Mt.Function], ["entity.name.class", 0, Mt.Class], ["entity.name.constructor", 0, Mt.Method], ["entity.name.def", 0, Mt.Method], ["entity.name.get", 0, Mt.GetAccessor], ["entity.name.set", 0, Mt.SetAccessor], ["field", 0, Mt.Property], ["decl-let", 0, Mt.LetVariable], ["decl-for-index", 0, Mt.LetVariable, {datatype: "\\number"}], ["decl-for", 0, Mt.LetVariable, {kind: "for"}], ["decl-var", 0, Mt.LetVariable], ["decl-param", 0, Mt.Parameter], ["decl-const", 0, Mt.ConstVariable], ["decl-import", 0, Mt.ConstVariable | Mt.IsImport]];
|
14102 | var dl = {};
|
14103 | var rs = class {
|
14104 | [ah](e = null) {
|
14105 | var r;
|
14106 | this.value = e ? e.value : void 0, this.body = e && (r = e.body) !== void 0 ? r : null;
|
14107 | }
|
14108 | static typeMatch(e) {
|
14109 | if (dl[e] != null)
|
14110 | return dl[e];
|
14111 | for (let r = 0, i = Ef(lh), s = i.length; r < s; r++) {
|
14112 | let [n, o, a, l] = i[r];
|
14113 | if (e.indexOf(n) >= 0)
|
14114 | return dl[e] = lh[r];
|
14115 | }
|
14116 | return null;
|
14117 | }
|
14118 | static forToken(e, r, i = 0) {
|
14119 | let s = this.typeMatch(r);
|
14120 | return s ? new this(s[2], e.value, e, s[3]) : null;
|
14121 | }
|
14122 | constructor(e, r, i, s = null) {
|
14123 | this[ah](), this.flags = e, this.name = r, this.node = i, this.desc = s;
|
14124 | }
|
14125 | get importSource() {
|
14126 | return this.imported\u03A6 ? this.node.context.closest("imports").sourcePath : null;
|
14127 | }
|
14128 | get exportName() {
|
14129 | return this.node.prev.match("keyword.as") ? this.node.prev.prev.value : this.node.match(".default") ? "default" : this.node.value;
|
14130 | }
|
14131 | get importInfo() {
|
14132 | if (!this.imported\u03A6)
|
14133 | return null;
|
14134 | let e = this.node.context.closest("imports");
|
14135 | return {exportName: this.exportName, name: this.node.value, isTypeOnly: e.isTypeOnly, path: e.sourcePath};
|
14136 | }
|
14137 | get datatype() {
|
14138 | var n;
|
14139 | let e, r = this.desc && this.desc.datatype;
|
14140 | if (r)
|
14141 | return r;
|
14142 | if (this[A1])
|
14143 | return this[A1];
|
14144 | let i = this.node && this.node.nextNode;
|
14145 | if (i && i.type == "type")
|
14146 | return i;
|
14147 | let s = this.scope;
|
14148 | if (s && ((n = this.desc) == null ? void 0 : n.kind) == "for") {
|
14149 | let o = s.doc.getDestructuredPath(this.node, [[s.expression, "__@iterable"]]);
|
14150 | return this[A1] || (this[A1] = o);
|
14151 | }
|
14152 | return (e = this.importInfo) ? e : null;
|
14153 | }
|
14154 | get static\u03A6() {
|
14155 | return this.node && this.node.mods & Be.Static;
|
14156 | }
|
14157 | get itervar\u03A6() {
|
14158 | return this.node && this.node.match(".decl-for");
|
14159 | }
|
14160 | get variable\u03A6() {
|
14161 | return this.flags & Mt.Variable;
|
14162 | }
|
14163 | get parameter\u03A6() {
|
14164 | return this.flags & Mt.Parameter;
|
14165 | }
|
14166 | get member\u03A6() {
|
14167 | return this.flags & Mt.ClassMember;
|
14168 | }
|
14169 | get scoped\u03A6() {
|
14170 | return this.flags & Mt.Scoped;
|
14171 | }
|
14172 | get type\u03A6() {
|
14173 | return this.flags & Mt.Type;
|
14174 | }
|
14175 | get global\u03A6() {
|
14176 | return this.flags & Mt.IsGlobal;
|
14177 | }
|
14178 | get imported\u03A6() {
|
14179 | return this.flags & Mt.IsImport;
|
14180 | }
|
14181 | get component\u03A6() {
|
14182 | return this.flags & Mt.Component;
|
14183 | }
|
14184 | get escapedName() {
|
14185 | return this.name;
|
14186 | }
|
14187 | get scope() {
|
14188 | var e, r;
|
14189 | return (r = (e = this.node) == null ? void 0 : e.context) == null ? void 0 : r.scope;
|
14190 | }
|
14191 | addReference(e) {
|
14192 | return this.references || (this.references = []), this.references.push(e), e.symbol = this, this;
|
14193 | }
|
14194 | dereference(e) {
|
14195 | let r = this.references.indexOf(e);
|
14196 | return r >= 0 && (e.symbol = null, this.references.splice(r, 1)), this;
|
14197 | }
|
14198 | get kind() {
|
14199 | return this.variable\u03A6 ? pr.Variable : this.flags & Mt.Class ? pr.Class : this.flags & Mt.Component ? pr.Class : this.flags & Mt.Property ? pr.Field : this.flags & Mt.Method ? this.escapedName == "constructor" ? pr.Constructor : pr.Method : this.flags & Mt.Function ? pr.Function : pr.Method;
|
14200 | }
|
14201 | get semanticKind() {
|
14202 | return this.flags & Mt.Parameter ? "parameter" : this.variable\u03A6 ? "variable" : this.type\u03A6 ? "type" : this.flags & Mt.Function ? "function" : this.member\u03A6 ? "member" : this.component\u03A6 ? "component" : "variable";
|
14203 | }
|
14204 | get semanticFlags() {
|
14205 | let e = 0;
|
14206 | return this.flags & Mt.ConstVariable && (e |= Be.ReadOnly), this.static\u03A6 && (e |= Be.Static), this.flags & Mt.IsImport && (e |= Be.Import), this.flags & Mt.IsGlobal && (e |= Be.Global), this.flags & Mt.IsRoot && (e |= Be.Root), this.flags & Mt.IsSpecial && (e |= Be.Special), e;
|
14207 | }
|
14208 | };
|
14209 | function Af(t) {
|
14210 | let e;
|
14211 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
14212 | }
|
14213 | var As = Symbol.for("#__init__");
|
14214 | var ho = Symbol.for("#__initor__");
|
14215 | var po = Symbol.for("#__inited__");
|
14216 | var ch = Symbol();
|
14217 | var uh = Symbol();
|
14218 | var hh = Symbol();
|
14219 | var ph = {global: {datatype: "globalThis"}, imba: {datatype: "globalThis.imba"}, module: {}, window: {datatype: "globalThis.window"}, document: {datatype: "globalThis.document"}, exports: {}, console: {datatype: "globalThis.console"}, process: {datatype: "globalThis.process"}, parseInt: {datatype: "globalThis.parseInt"}, parseFloat: {datatype: "globalThis.parseFloat"}, setTimeout: {datatype: "globalThis.setTimeout"}, setInterval: {datatype: "globalThis.setInterval"}, setImmediate: {datatype: "globalThis.setImmediate"}, clearTimeout: {datatype: "globalThis.clearTimeout"}, clearInterval: {datatype: "globalThis.clearInterval"}, clearImmediate: {datatype: "globalThis.clearImmediate"}, globalThis: {datatype: "globalThis"}, isNaN: {datatype: "globalThis.isNaN"}, isFinite: {datatype: "globalThis.isFinite"}, __dirname: {datatype: "\\string"}, __filename: {datatype: "\\string"}, __realname: {datatype: "\\string"}};
|
14220 | var ca = class {
|
14221 | [As](e = null) {
|
14222 | var r;
|
14223 | this.type = e && (r = e.type) !== void 0 ? r : "", this.start = e ? e.start : void 0, this.end = e ? e.end : void 0, this.parent = e ? e.parent : void 0;
|
14224 | }
|
14225 | static build(e, r, i, s, n) {
|
14226 | return new this(e, r, i, s, n);
|
14227 | }
|
14228 | constructor(e, r, i, s) {
|
14229 | this[As](), this.doc = e, this.start = r, this.end = null, this.type = s, this.parent = i, this.$name = null, r.scope = this;
|
14230 | }
|
14231 | pop(e) {
|
14232 | return this.end = e, e.start = this.start, e.pops = this, this.start.end = e, this.visit(), this.parent;
|
14233 | }
|
14234 | find(e) {
|
14235 | return this.findChildren(e, true)[0];
|
14236 | }
|
14237 | get childNodes() {
|
14238 | return this.doc.getNodesInScope(this);
|
14239 | }
|
14240 | findChildren(e, r = false) {
|
14241 | let i = [], s = this.start;
|
14242 | for (; s; ) {
|
14243 | if (r && i.length)
|
14244 | return i;
|
14245 | if (s.scope && s.scope != this) {
|
14246 | s.scope.match(e) && i.push(s.scope), s = s.scope.next;
|
14247 | continue;
|
14248 | }
|
14249 | if (s.match(e) && i.push(s), s == this.end)
|
14250 | break;
|
14251 | s = s.next;
|
14252 | }
|
14253 | return i;
|
14254 | }
|
14255 | closest(e) {
|
14256 | return this.match(e) ? this : this.parent ? this.parent.closest(e) : null;
|
14257 | }
|
14258 | visit() {
|
14259 | return this;
|
14260 | }
|
14261 | get member\u03A6() {
|
14262 | return false;
|
14263 | }
|
14264 | get top\u03A6() {
|
14265 | return false;
|
14266 | }
|
14267 | get selfScope() {
|
14268 | return this.member\u03A6 || this.top\u03A6 ? this : this.parent.selfScope;
|
14269 | }
|
14270 | get name() {
|
14271 | return this.$name || "";
|
14272 | }
|
14273 | get value() {
|
14274 | return this.doc.content.slice(this.start.offset, this.next ? this.next.offset : -1);
|
14275 | }
|
14276 | get next() {
|
14277 | return this.end ? this.end.next : null;
|
14278 | }
|
14279 | get prev() {
|
14280 | return this.start ? this.start.prev : null;
|
14281 | }
|
14282 | match(e) {
|
14283 | return typeof e == "string" ? this.type == e : e instanceof RegExp ? e.test(this.type) : e instanceof Function ? e(this) : true;
|
14284 | }
|
14285 | };
|
14286 | var Le = class extends ca {
|
14287 | static [As]() {
|
14288 | return this.prototype[ho] = ch, this;
|
14289 | }
|
14290 | constructor(e, r, i, s, n = []) {
|
14291 | super(e, r, i, s);
|
14292 | this[ho] === ch && this[po] && this[po]();
|
14293 | }
|
14294 | get scope() {
|
14295 | return this.parent.scope;
|
14296 | }
|
14297 | get varmap() {
|
14298 | return this.parent.varmap;
|
14299 | }
|
14300 | register(e) {
|
14301 | return this.parent.register(e);
|
14302 | }
|
14303 | lookup(...e) {
|
14304 | return this.parent.lookup(...e);
|
14305 | }
|
14306 | };
|
14307 | Le[As]();
|
14308 | var fh = class extends Le {
|
14309 | };
|
14310 | var _h = class extends Le {
|
14311 | };
|
14312 | var dh = class extends Le {
|
14313 | get properties() {
|
14314 | return this.findChildren("styleprop");
|
14315 | }
|
14316 | };
|
14317 | var mh = class extends Le {
|
14318 | };
|
14319 | var Ui = class extends ca {
|
14320 | static [As]() {
|
14321 | return this.prototype[ho] = uh, this;
|
14322 | }
|
14323 | constructor(e, r, i, s, n = []) {
|
14324 | super(e, r, i, s);
|
14325 | if (this.children = [], this.entities = [], this.refs = [], this.varmap = Object.create(i ? i.varmap : {}), this instanceof fo)
|
14326 | for (let o = 0, a = Object.keys(ph), l = a.length, p, c; o < l; o++) {
|
14327 | p = a[o], c = ph[p];
|
14328 | let _ = {value: p, offset: -1, mods: 0};
|
14329 | this.varmap[p] = new rs(Mt.GlobalVar, p, _, c);
|
14330 | }
|
14331 | return this.indent = n[3] && n[3][0] == " " ? n[3].length : 0, this.setup(), this;
|
14332 | this[ho] === uh && this[po] && this[po]();
|
14333 | }
|
14334 | setup() {
|
14335 | if (this.handler\u03A6 && (this.varmap.e = new rs(Mt.SpecialVar, "e", null, "eventReference")), (this.class\u03A6 || this.property\u03A6) && (this.ident = this.token = k1(this.start, "entity."), this.ident && (this.ident.body = this), this.ident && this.ident.type == "entity.name.def.render" && (this.$name = "render", this.ident.symbol)))
|
14336 | return this.ident.symbol.name = "render";
|
14337 | }
|
14338 | get selfPath() {
|
14339 | let e = this.path;
|
14340 | return this.property\u03A6 ? e.slice(0, e.lastIndexOf(".")) : e;
|
14341 | }
|
14342 | get path() {
|
14343 | let e = this.parent ? this.parent.path : "";
|
14344 | if (this.property\u03A6) {
|
14345 | let r = this.static\u03A6 ? "." : ".prototype.";
|
14346 | return this.parent ? "" + this.parent.path + r + this.name : this.name;
|
14347 | }
|
14348 | return this.component\u03A6 ? this.name[0] == this.name[0].toLowerCase() ? this.name.replace(/\-/g, "_") + "$$TAG$$" : this.name : this.class\u03A6 ? this.name : e;
|
14349 | }
|
14350 | get allowedKeywordTypes() {
|
14351 | return this.class\u03A6 ? zt.Class : this.root\u03A6 ? zt.Root | zt.Block : zt.Block;
|
14352 | }
|
14353 | get component\u03A6() {
|
14354 | return !!this.type.match(/^component/);
|
14355 | }
|
14356 | get root\u03A6() {
|
14357 | return this instanceof fo;
|
14358 | }
|
14359 | get top\u03A6() {
|
14360 | return this instanceof fo;
|
14361 | }
|
14362 | get class\u03A6() {
|
14363 | return !!this.type.match(/^class/) || this.component\u03A6;
|
14364 | }
|
14365 | get def\u03A6() {
|
14366 | return !!this.type.match(/def|get|set/);
|
14367 | }
|
14368 | get static\u03A6() {
|
14369 | return !!(this.ident && this.ident.mods & Be.Static);
|
14370 | }
|
14371 | get handler\u03A6() {
|
14372 | return !!this.type.match(/handler|spy/);
|
14373 | }
|
14374 | get member\u03A6() {
|
14375 | return !!this.type.match(/def|get|set/);
|
14376 | }
|
14377 | get property\u03A6() {
|
14378 | return !!this.type.match(/def|get|set|field/);
|
14379 | }
|
14380 | get flow\u03A6() {
|
14381 | return !!this.type.match(/if|else|elif|unless|for|while|until/);
|
14382 | }
|
14383 | get closure\u03A6() {
|
14384 | return !!this.type.match(/class|component|def|get|set|do/);
|
14385 | }
|
14386 | get scope() {
|
14387 | return this;
|
14388 | }
|
14389 | get name() {
|
14390 | return this.$name || (this.ident ? this.ident.value : "");
|
14391 | }
|
14392 | visit() {
|
14393 | return this;
|
14394 | }
|
14395 | register(e) {
|
14396 | return e.scoped\u03A6 && (this.varmap[e.name] = e, this.root\u03A6 && (e.flags |= Mt.IsRoot)), e;
|
14397 | }
|
14398 | lookup(e, r = Mt.Scoped) {
|
14399 | let i, s = e.value;
|
14400 | return s[s.length - 1] == "!" && (s = s.slice(0, -1)), (i = this.varmap[s]) ? i : null;
|
14401 | }
|
14402 | toOutline() {
|
14403 | return {kind: this.type, name: this.name, children: [], span: this.ident ? this.ident.span : this.start.span};
|
14404 | }
|
14405 | };
|
14406 | Ui[As]();
|
14407 | var fo = class extends Ui {
|
14408 | };
|
14409 | var yh = class extends Ui {
|
14410 | get expression() {
|
14411 | return this.find("keyword.in keyword.of").next.next;
|
14412 | }
|
14413 | get forvars() {
|
14414 | return Object.values(this.varmap).filter(function(e) {
|
14415 | return e.itervar\u03A6;
|
14416 | });
|
14417 | }
|
14418 | };
|
14419 | var gh = class extends Ui {
|
14420 | register(e) {
|
14421 | return this.parent.register(e);
|
14422 | }
|
14423 | lookup(...e) {
|
14424 | return this.parent.lookup(...e);
|
14425 | }
|
14426 | };
|
14427 | var vh = class extends Ui {
|
14428 | get selfScope() {
|
14429 | return this;
|
14430 | }
|
14431 | };
|
14432 | var bh = class extends Le {
|
14433 | };
|
14434 | var kh = class extends Le {
|
14435 | get propertyName() {
|
14436 | var e;
|
14437 | return this.start.next.match("style.property.name") ? this.start.next.value : (e = this.parent.prevProperty) == null ? void 0 : e.propertyName;
|
14438 | }
|
14439 | get modifier() {
|
14440 | if (this.start.next.match("style.property.modifier"))
|
14441 | return this.start.next.value;
|
14442 | }
|
14443 | get styleValue() {
|
14444 | return true;
|
14445 | }
|
14446 | };
|
14447 | var xh = class extends Le {
|
14448 | get key() {
|
14449 | return this.parent.key;
|
14450 | }
|
14451 | get propertyName() {
|
14452 | return this.parent.propertyName;
|
14453 | }
|
14454 | get modifier() {
|
14455 | return this.parent.modifier;
|
14456 | }
|
14457 | };
|
14458 | var wh = class extends Le {
|
14459 | get key() {
|
14460 | return this.find("stylepropkey");
|
14461 | }
|
14462 | get prevProperty() {
|
14463 | return this.start.prev.pops ? this.start.prev.pops : null;
|
14464 | }
|
14465 | get propertyName() {
|
14466 | var e;
|
14467 | return (e = this.key) == null ? void 0 : e.propertyName;
|
14468 | }
|
14469 | get modifier() {
|
14470 | var e;
|
14471 | return (e = this.key) == null ? void 0 : e.modifier;
|
14472 | }
|
14473 | };
|
14474 | var Sh = class extends Le {
|
14475 | };
|
14476 | var Th = class extends Le {
|
14477 | get innerText() {
|
14478 | return this.value.slice(1, -1);
|
14479 | }
|
14480 | };
|
14481 | var Eh = class extends Le {
|
14482 | get name() {
|
14483 | let e = this.findChildren("tag.name").join("");
|
14484 | return e == "self" ? this.closest("component").name : e;
|
14485 | }
|
14486 | get local\u03A6() {
|
14487 | return this.name[0] == this.name[0].toUpperCase();
|
14488 | }
|
14489 | get tagName() {
|
14490 | return this.name;
|
14491 | }
|
14492 | get parentTag() {
|
14493 | var e;
|
14494 | return (e = this.closest("tagcontent")) == null ? void 0 : e.ownerTag;
|
14495 | }
|
14496 | get ancestorTags() {
|
14497 | var e;
|
14498 | return (e = this.closest("tagcontent")) == null ? void 0 : e.ownerTags;
|
14499 | }
|
14500 | get ancestorPath() {
|
14501 | return this.ancestorTags.map(function(e) {
|
14502 | return e.tagName;
|
14503 | }).join(".");
|
14504 | }
|
14505 | get pathName() {
|
14506 | return "<" + this.name + ">";
|
14507 | }
|
14508 | get outline() {
|
14509 | return this.findChildren(/tag\.(reference|name|id|white|flag|event(?!\-))/).join("");
|
14510 | }
|
14511 | };
|
14512 | var Ah = class extends Le {
|
14513 | get propertyName() {
|
14514 | return this.start.next.match("tag.attr") ? this.start.next.value : "";
|
14515 | }
|
14516 | get tagName() {
|
14517 | return this.parent.name;
|
14518 | }
|
14519 | };
|
14520 | var Ih = class extends Le {
|
14521 | get propertyName() {
|
14522 | return this.parent.propertyName;
|
14523 | }
|
14524 | get tagName() {
|
14525 | return this.parent.tagName;
|
14526 | }
|
14527 | };
|
14528 | var Rh = class extends gh {
|
14529 | get ownerTag() {
|
14530 | return this.start.prev.pops;
|
14531 | }
|
14532 | get ownerTags() {
|
14533 | let e = [this.ownerTag], r;
|
14534 | for (; r = e[0].parentTag; )
|
14535 | e.unshift(r);
|
14536 | return e;
|
14537 | }
|
14538 | };
|
14539 | var Nh = class extends Le {
|
14540 | get name() {
|
14541 | return this.findChildren("tag.event.name").join("").replace("@", "");
|
14542 | }
|
14543 | };
|
14544 | var ml = class extends Le {
|
14545 | };
|
14546 | var ua = class extends Le {
|
14547 | static build(e, r, i, s, n) {
|
14548 | let o = this, a = e.content[r.offset - 1];
|
14549 | return !a || ` [{(|=&-;
|
14550 | :/*%+-`.indexOf(a) >= 0 ? (s = "array", o = Oh) : (s = "index", o = Ch), new o(e, r, i, s, n);
|
14551 | }
|
14552 | };
|
14553 | var I1 = class extends Le {
|
14554 | };
|
14555 | var Lh = class extends I1 {
|
14556 | };
|
14557 | var Oh = class extends ua {
|
14558 | get delimiters() {
|
14559 | return this.childNodes.filter(function(e) {
|
14560 | return e.match("delimiter");
|
14561 | });
|
14562 | }
|
14563 | indexOfNode(e) {
|
14564 | var r;
|
14565 | let i = this.delimiters, s = 0;
|
14566 | r = 0;
|
14567 | for (let n of Af(i)) {
|
14568 | let o = r++;
|
14569 | e.offset > n.offset && s++;
|
14570 | }
|
14571 | return s;
|
14572 | }
|
14573 | };
|
14574 | var Ch = class extends ua {
|
14575 | };
|
14576 | var yl = class extends Le {
|
14577 | static [As]() {
|
14578 | return this.prototype[ho] = hh, this;
|
14579 | }
|
14580 | constructor() {
|
14581 | super(...arguments);
|
14582 | this.prev.datatype = this, this[ho] === hh && this[po] && this[po]();
|
14583 | }
|
14584 | toString() {
|
14585 | return this.value;
|
14586 | }
|
14587 | };
|
14588 | yl[As]();
|
14589 | var Dh = class extends Le {
|
14590 | };
|
14591 | var Fh = class extends I1 {
|
14592 | };
|
14593 | var Ph = class extends Le {
|
14594 | get isTypeOnly() {
|
14595 | return this.start.prev.match("keyword.type");
|
14596 | }
|
14597 | get sourcePath() {
|
14598 | let e = this.childNodes.find(function(r) {
|
14599 | return r.match("path");
|
14600 | });
|
14601 | return e == null ? void 0 : e.innerText;
|
14602 | }
|
14603 | get specifiers() {
|
14604 | return this.childNodes.find(function(e) {
|
14605 | return e.match("specifiers");
|
14606 | });
|
14607 | }
|
14608 | get default() {
|
14609 | return this.childNodes.find(function(e) {
|
14610 | return e.match(".default");
|
14611 | });
|
14612 | }
|
14613 | get namespace() {
|
14614 | return this.childNodes.find(function(e) {
|
14615 | return e.match(".ns");
|
14616 | });
|
14617 | }
|
14618 | };
|
14619 | var is = {style: dh, array: ua, stylerule: mh, sel: bh, path: Th, value: fh, tag: Eh, forscope: yh, field: vh, type: yl, parens: ml, brackets: ua, object: Fh, braces: I1, specifiers: Lh, string: _h, tagattr: Ah, imports: Ph, interpolation: Dh, tagattrvalue: Ih, tagcontent: Rh, listener: Nh, styleinterpolation: Sh, styleprop: wh, stylepropkey: kh, stylevalue: xh, args: ml};
|
14620 | function If(t, e) {
|
14621 | let r = Object.getOwnPropertyDescriptors(e);
|
14622 | return delete r.constructor, Object.defineProperties(t, r), t;
|
14623 | }
|
14624 | function yr(t) {
|
14625 | let e;
|
14626 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
14627 | }
|
14628 | var n4 = Symbol.for("#__initor__");
|
14629 | var o4 = Symbol.for("#__inited__");
|
14630 | var gl = Symbol.for("#ins");
|
14631 | var vl = Symbol.for("#del");
|
14632 | var Mh = Symbol.for("#version");
|
14633 | var Vh = Symbol.for("#multiline");
|
14634 | var jh = Symbol.for("#significant");
|
14635 | var bl = Symbol.for("#body");
|
14636 | var gn = Symbol.for("#lexed");
|
14637 | var Gh = class {
|
14638 | get node() {
|
14639 | return this.scope && this.scope.start == this ? this.scope : this.pops ? this.pops : this;
|
14640 | }
|
14641 | get nextNode() {
|
14642 | var e;
|
14643 | return (e = this.next) == null ? void 0 : e.node;
|
14644 | }
|
14645 | get prevNode() {
|
14646 | var e;
|
14647 | return (e = this.prev) == null ? void 0 : e.node;
|
14648 | }
|
14649 | };
|
14650 | If(Ti.prototype, Gh.prototype);
|
14651 | var vn = class {
|
14652 | static tmp(e) {
|
14653 | return new this("file://temporary.imba", "imba", 0, e);
|
14654 | }
|
14655 | static from(e, r, i, s) {
|
14656 | return new this(e, r, i, s);
|
14657 | }
|
14658 | constructor(e, r, i, s) {
|
14659 | this.uri = e, this.languageId = r, this.version = i, this.content = s, this.connection = null, this.lineTokens = [], this.isLegacy = r == "imba1" || e && e.match(/\.imba1$/), this.head = this.seed = new Ti(0, "eol", "imba"), this.initialState = yn.getInitialState(), this.seed.stack = yn.getInitialState(), this.history = [], this.lexer = yn, this.versionToHistoryMap = {}, this.versionToHistoryMap[i] = -1, s && s.match(/^\#[^\n]+imba1/m) && (this.isLegacy = true);
|
14660 | }
|
14661 | log(...e) {
|
14662 | return console.log(...e);
|
14663 | }
|
14664 | get lineCount() {
|
14665 | return this.lineOffsets.length;
|
14666 | }
|
14667 | get lineOffsets() {
|
14668 | return this._lineOffsets || (this._lineOffsets = rl(this.content, true));
|
14669 | }
|
14670 | getText(e = null) {
|
14671 | if (e) {
|
14672 | let r = this.offsetAt(e.start), i = this.offsetAt(e.end);
|
14673 | return this.content.substring(r, i);
|
14674 | }
|
14675 | return this.content;
|
14676 | }
|
14677 | getLineText(e) {
|
14678 | let r = this.lineOffsets[e], i = this.lineOffsets[e + 1];
|
14679 | return this.content.substring(r, i).replace(/[\r\n]/g, "");
|
14680 | }
|
14681 | positionAt(e) {
|
14682 | if (e instanceof _n)
|
14683 | return e;
|
14684 | typeof e == "object" && (e = e.offset), e = Math.max(Math.min(e, this.content.length), 0);
|
14685 | let r = this.lineOffsets, i = 0, s = r.length;
|
14686 | if (s === 0)
|
14687 | return new _n(0, e, e, this.version);
|
14688 | for (; i < s; ) {
|
14689 | let o = Math.floor((i + s) / 2);
|
14690 | r[o] > e ? s = o : i = o + 1;
|
14691 | }
|
14692 | let n = i - 1;
|
14693 | return new _n(n, e - r[n], e, this.version);
|
14694 | }
|
14695 | offsetAt(e) {
|
14696 | if (e.offset)
|
14697 | return e.offset;
|
14698 | let r = this.lineOffsets;
|
14699 | if (e.line >= r.length)
|
14700 | return this.content.length;
|
14701 | if (e.line < 0)
|
14702 | return 0;
|
14703 | let i = r[e.line], s = e.line + 1 < r.length ? r[e.line + 1] : this.content.length;
|
14704 | return e.offset = Math.max(Math.min(i + e.character, s), i);
|
14705 | }
|
14706 | rangeAt(e, r = e) {
|
14707 | return new ts(this.positionAt(e), this.positionAt(r));
|
14708 | }
|
14709 | overwrite(e, r) {
|
14710 | return this.version = r || this.version + 1, this.content = e, this._lineOffsets = null, this.invalidateFromLine(0), this;
|
14711 | }
|
14712 | update(e, r) {
|
14713 | r == null && (r = this.version + 1);
|
14714 | let i = [], s = false;
|
14715 | i[gl] = "", i[vl] = "";
|
14716 | for (let a = 0, l = yr(e), p = l.length; a < p; a++) {
|
14717 | let c = l[a];
|
14718 | if (Hu(c)) {
|
14719 | this.overwrite(c.text, r), i.push([0, this.content.length, c.text]), s = true;
|
14720 | continue;
|
14721 | }
|
14722 | let _ = Bu(c.range), f = this.offsetAt(_.start), m = this.offsetAt(_.end);
|
14723 | c.range = _, c.offset = f, c.length = m - f, _.start.offset = f, _.end.offset = m;
|
14724 | let b = m - f ? this.content.slice(f, m) : "";
|
14725 | i[vl] += b, i[gl] += c.text || "", this.applyEdit(c, r, e), i.push([f, m - f, c.text || "", b]);
|
14726 | let N = Math.max(_.start.line, 0), y = Math.max(_.end.line, 0), v = this.lineOffsets, d = rl(c.text, false, f);
|
14727 | if (y - N === d.length)
|
14728 | for (let k = 0, T = yr(d), S = T.length; k < S; k++) {
|
14729 | let C = T[k];
|
14730 | v[k + N + 1] = d[a];
|
14731 | }
|
14732 | else
|
14733 | d.length < 1e4 ? v.splice.apply(v, [N + 1, y - N].concat(d)) : this._lineOffsets = v = v.slice(0, N + 1).concat(d, v.slice(y + 1));
|
14734 | let w = c.text.length - (m - f);
|
14735 | if (w !== 0) {
|
14736 | let k = N + 1 + d.length;
|
14737 | for (; k < v.length; )
|
14738 | v[k] = v[k] + w, k++;
|
14739 | }
|
14740 | }
|
14741 | this.history.push(i), i[Mh] = r;
|
14742 | let n = this.history[this.history.length - 2];
|
14743 | return (i[gl] + i[vl]).indexOf(`
|
14744 | `) >= 0 && (i[Vh] = true, n && !n[Vh] && (i[jh] = true, i[bl] = this.content)), this.versionToHistoryMap[r] = this.history.length - 1, this.updated(e, r);
|
14745 | }
|
14746 | get lastSignificantVersion() {
|
14747 | let e = this.history.length;
|
14748 | for (; e > 0; ) {
|
14749 | let r = this.history[--e];
|
14750 | if (r && r[jh])
|
14751 | return r[Mh];
|
14752 | }
|
14753 | return null;
|
14754 | }
|
14755 | editsSinceVersion(e) {
|
14756 | let r = this.versionToHistoryMap[e], i = [];
|
14757 | for (let s = 0, n = yr(this.history.slice(r + 1)), o = n.length; s < o; s++) {
|
14758 | let a = n[s];
|
14759 | i.push(...a);
|
14760 | }
|
14761 | return i;
|
14762 | }
|
14763 | contentAtVersion(e) {
|
14764 | let r = this.versionToHistoryMap[e], i = this.history[r];
|
14765 | return i[bl] != null ? i[bl] : null;
|
14766 | }
|
14767 | offsetAtVersion(e, r, i = this.version, s = false) {
|
14768 | let n = this.versionToHistoryMap[r], o = this.versionToHistoryMap[i], a = e, l = false;
|
14769 | if (n < o)
|
14770 | for (; n < o; ) {
|
14771 | let p = this.history[++n];
|
14772 | for (let c = 0, _ = yr(p), f = _.length; c < f; c++) {
|
14773 | let [m, g, b] = _[c];
|
14774 | m > a || (s && (m -= 1), a > m && a > m + g && (a += b.length - g));
|
14775 | }
|
14776 | }
|
14777 | else if (o < n)
|
14778 | for (; o < n; ) {
|
14779 | let p = this.history[n--];
|
14780 | for (let c = 0, _ = yr(p), f = _.length; c < f; c++) {
|
14781 | let [m, g, b] = _[c];
|
14782 | m > a || a > m && a > m + g && (a -= b.length - g);
|
14783 | }
|
14784 | }
|
14785 | return a;
|
14786 | }
|
14787 | historicalOffset(e, r) {
|
14788 | return this.offsetAtVersion(e, this.version, r, true);
|
14789 | }
|
14790 | applyEdit(e, r, i) {
|
14791 | this.content = this.content.substring(0, e.range.start.offset) + e.text + this.content.substring(e.range.end.offset, this.content.length);
|
14792 | let s = e.range.start.line;
|
14793 | this.invalidateFromLine(s);
|
14794 | }
|
14795 | updated(e, r) {
|
14796 | return this.version = r, this;
|
14797 | }
|
14798 | invalidateFromLine(e) {
|
14799 | return this.head = this.seed, this;
|
14800 | }
|
14801 | after(e, r) {
|
14802 | let i = this.tokens.indexOf(e);
|
14803 | if (r) {
|
14804 | for (; i < this.tokens.length; ) {
|
14805 | let s = this.tokens[++i];
|
14806 | if (s && this.matchToken(s, r))
|
14807 | return s;
|
14808 | }
|
14809 | return null;
|
14810 | }
|
14811 | return this.tokens[i + 1];
|
14812 | }
|
14813 | matchToken(e, r) {
|
14814 | return r instanceof RegExp ? e.type.match(r) : typeof r == "string" ? e.type == r : false;
|
14815 | }
|
14816 | before(e, r, i = 0) {
|
14817 | let s = this.tokens.indexOf(e) + i;
|
14818 | if (r) {
|
14819 | for (; s > 0; ) {
|
14820 | let n = this.tokens[--s];
|
14821 | if (this.matchToken(n, r))
|
14822 | return n;
|
14823 | }
|
14824 | return null;
|
14825 | }
|
14826 | return this.tokens[s - 1];
|
14827 | }
|
14828 | getTokenRange(e) {
|
14829 | return {start: this.positionAt(e.offset), end: this.positionAt(e.offset + e.value.length)};
|
14830 | }
|
14831 | getTokensInScope(e) {
|
14832 | let r = this.tokens.indexOf(e.start), i = e.end ? this.tokens.indexOf(e.end) : this.tokens.length, s = r, n = [];
|
14833 | for (; s < i; ) {
|
14834 | let o = this.tokens[s++];
|
14835 | o.scope && o.scope != e ? (n.push(o.scope), s = o.scope.endIndex + 1) : n.push(o);
|
14836 | }
|
14837 | return n;
|
14838 | }
|
14839 | getSymbols() {
|
14840 | var e;
|
14841 | return this.astify(), (e = this[gn]).symbols || (e.symbols = this.tokens.map(function(r) {
|
14842 | return r.symbol;
|
14843 | }).filter(function(r) {
|
14844 | return r;
|
14845 | }).filter(function(r, i, s) {
|
14846 | return s.indexOf(r) == i;
|
14847 | }));
|
14848 | }
|
14849 | getImportedSymbols() {
|
14850 | return this.getSymbols().filter(function(e) {
|
14851 | return e.imported\u03A6;
|
14852 | });
|
14853 | }
|
14854 | getImportNodes() {
|
14855 | return this.tokens.filter(function(r) {
|
14856 | return r.match("push._imports");
|
14857 | }).map(function(r) {
|
14858 | return r.scope;
|
14859 | });
|
14860 | }
|
14861 | getNodesInScope(e, r = false) {
|
14862 | let i = e.start, s = e.end;
|
14863 | r ? s = s.next : i = i.next;
|
14864 | let n = [];
|
14865 | for (; i && i != s; ) {
|
14866 | if (i.scope && i.scope != e) {
|
14867 | n.push(i.scope), i = i.scope.end.next;
|
14868 | continue;
|
14869 | } else
|
14870 | i.type != "white" && n.push(i);
|
14871 | i = i.next;
|
14872 | }
|
14873 | return n;
|
14874 | }
|
14875 | getTokenAtOffset(e, r = false) {
|
14876 | return this.tokenAtOffset(e);
|
14877 | }
|
14878 | getSemanticTokens(e = Mt.Scoped) {
|
14879 | let r = this.parse(), i = [];
|
14880 | for (let s = 0, n = yr(r), o = n.length; s < o; s++) {
|
14881 | let a = n[s], l = a.symbol;
|
14882 | if (!(l && (!e || l.flags & e)))
|
14883 | continue;
|
14884 | let p = uo[l.semanticKind], c = a.mods | l.semanticFlags;
|
14885 | i.push([a.offset, a.value.length, p, c]);
|
14886 | }
|
14887 | return i;
|
14888 | }
|
14889 | getEncodedSemanticTokens() {
|
14890 | let e = this.getSemanticTokens(), r = [], i = 0, s = 0;
|
14891 | for (let n = 0, o = yr(e), a = o.length; n < a; n++) {
|
14892 | let l = o[n], p = this.positionAt(l[0]), c = p.line - i, _ = c ? p.character : p.character - s;
|
14893 | r.push(c, _, l[1], l[2], l[3]), i = p.line, s = p.character;
|
14894 | }
|
14895 | return r;
|
14896 | }
|
14897 | getDestructuredPath(e, r = [], i = null) {
|
14898 | if (e.context.type == "array")
|
14899 | return this.getDestructuredPath(e.context.start, r, i), r.push(e.context.indexOfNode(e)), r;
|
14900 | let s = e.value;
|
14901 | return e.prev.match("operator.assign.key-value") && (s = e.prev.prev.value), e.context.type == "object" && (this.getDestructuredPath(e.context.start, r, i), r.push(s)), r;
|
14902 | }
|
14903 | tokenAtOffset(e) {
|
14904 | let r = this.tokens[0];
|
14905 | for (; r; ) {
|
14906 | let i = r.next;
|
14907 | if (r.offset >= e)
|
14908 | return r.prev;
|
14909 | if (r.end && r.end.offset < e)
|
14910 | r = r.end;
|
14911 | else if (i)
|
14912 | r = i;
|
14913 | else
|
14914 | return r;
|
14915 | }
|
14916 | return r;
|
14917 | }
|
14918 | patternAtOffset(e, r = /[\w\-\.\%]/) {
|
14919 | let i = e, s = e, n = this.content;
|
14920 | for (; i > 0 && r.test(this.content[i - 1]); )
|
14921 | i--;
|
14922 | for (; r.test(this.content[s + 1] || ""); )
|
14923 | s++;
|
14924 | return [n.slice(i, s + 1), i, s];
|
14925 | }
|
14926 | adjustmentAtOffset(e, r = 1) {
|
14927 | let [i, s, n] = this.patternAtOffset(e), [o, a = ""] = i.split(/[\d\.]+/), l = parseFloat(i.slice(o.length).slice(0, a.length ? -a.length : 1e3));
|
14928 | return Number.isNaN(l) ? null : (l += r, [s + o.length, i.length - o.length - a.length, String(l)]);
|
14929 | }
|
14930 | contextAtOffset(e) {
|
14931 | var r;
|
14932 | this.ensureParsed();
|
14933 | let i = this.positionAt(e), s = this.tokenAtOffset(e), n = this.lineOffsets[i.line], o = e - s.offset, a = s.context, l = {character: this.content[e - 1], line: this.content.slice(n, e), token: s.value.slice(0, o)}, p = {character: this.content[e], token: s.value.slice(o), line: this.content.slice(e, this.lineOffsets[i.line + 1]).replace(/[\r\n]+/, "")};
|
14934 | s.scope && !p.token && (a = s.scope), s.next && s.next.value == null && s.next.scope && !p.token && s.match("operator.assign") && (a = s.next.scope);
|
14935 | let c = k1(s, "white.tabs"), _ = c ? c.value.length : 0, f = a, m = a.scope, g = {}, b = s, N = s.stack.state || "", y = Fr;
|
14936 | f && (f.start && (l.group = this.content.slice(f.start.offset, e)), f.end && (p.group = this.content.slice(e, f.end.offset)));
|
14937 | let v = {keywords: []}, d = 0;
|
14938 | if (s == c && (_ = o), s.match("br white.tabs"))
|
14939 | for (; m.indent > _; )
|
14940 | m = m.parent;
|
14941 | if (f.type == "tag", s.match("entity string regexp comment style.") && (d = 0), s.match("tag.event.name tag.event-modifier.name") && (b = s.prev), (s.type == "path" || s.type == "path.open") && (d |= Fr.Path, v.paths = 1), s.match("identifier tag.operator.equals br white delimiter array operator ( self") && (d |= Fr.Value, b = null), s.match("operator.access") && (d |= Fr.Access, b = s), s.match("accessor") && (d |= Fr.Access, b = s.prev), s.match("delimiter.type.prefix type") && (d |= Fr.Type), s.match("tag.name tag.open") ? d |= Fr.TagName : s.match("tag.attr tag.white") ? d |= Fr.TagProp : s.match("tag.flag") ? d |= Fr.TagFlag : s.match("tag.event.modifier") ? d |= Fr.TagEventModifier : s.match("tag.event") ? d |= Fr.TagEvent : s.match("operator.equals.tagop") && (d |= Fr.Value), s.match("style.property.operator") || f.closest("stylevalue")) {
|
14942 | d |= y.StyleValue;
|
14943 | try {
|
14944 | v.styleProperty = f.closest("styleprop").propertyName;
|
14945 | } catch (T) {
|
14946 | }
|
14947 | }
|
14948 | s.match("style.open style.property.name") && (d |= y.StyleProp), (s.match("style.value.white") || s.prev && s.prev.match("style.value.white")) && (d |= y.StyleProp), s.match("style.selector.element") && p.line.match(/^\s*$/) && (d |= y.StyleProp), m.closest("rule") && (d |= y.StyleProp, d &= ~y.Value), s.match("style.property.operator") && (d &= ~y.StyleProp), f.match("stylevalue") && l.group.indexOf(" ") == -1 && (d = y.StyleValue), s.match("style.selector.modifier style.property.modifier") && (d = y.StyleModifier), s.match("style.selector.element") && (d |= y.StyleSelector), m.closest("rule") && l.line.match(/^\s*$/) && (d |= y.StyleSelector, d &= ~y.StyleValue), s.match("operator.access accessor white.classname white.tagname") && (d &= ~y.Value), f.closest("imports") && (d &= ~y.Value, d |= y.ImportName), (N.match(/\.decl-(let|var|const|param|for)/) || s.match(/\.decl-(for|let|var|const|param)/)) && (d &= ~y.Value, d |= y.VarName);
|
14949 | let w = m.allowedKeywordTypes;
|
14950 | r = [];
|
14951 | for (let T = 0, S = Object.keys(la), C = S.length, L, D; T < C; T++)
|
14952 | L = S[T], D = la[L], !!(D & w) && r.push(L);
|
14953 | v.keywords = r, v.flags = d;
|
14954 | for (let T = 0, S = Object.keys(y), C = S.length, L, D; T < C; T++)
|
14955 | L = S[T], D = y[L], d & D && (v[L] || (v[L] = true));
|
14956 | return {token: s, offset: e, position: i, linePos: n, scope: m, indent: _, group: a, mode: "", target: b, path: m.path, suggest: v, before: l, after: p};
|
14957 | }
|
14958 | textBefore(e) {
|
14959 | let r = this.content.slice(0, e), i = r.lastIndexOf(`
|
14960 | `);
|
14961 | return r.slice(i + 1);
|
14962 | }
|
14963 | varsAtOffset(e, r = false) {
|
14964 | let i = this.tokenAtOffset(e), s = [], n = i.context.scope, o = {};
|
14965 | for (; n; ) {
|
14966 | for (let a = 0, l = yr(Object.values(n.varmap)), p = l.length; a < p; a++) {
|
14967 | let c = l[a];
|
14968 | c.global\u03A6 && !r || o[c.name] || (!c.node || c.node.offset < e) && (s.push(c), o[c.name] = c);
|
14969 | }
|
14970 | n = n.parent;
|
14971 | }
|
14972 | return s;
|
14973 | }
|
14974 | getOutline(e = null) {
|
14975 | var r, i, s, n;
|
14976 | if (this.isLegacy) {
|
14977 | let y = zu(this.content);
|
14978 | for (let v = 0, d = yr(y.all), w = d.length; v < w; v++) {
|
14979 | let k = d[v];
|
14980 | r = k.parent, delete k.parent, k.path = k.name, k.name = k.ownName, e && e(k, y.all);
|
14981 | }
|
14982 | return y;
|
14983 | }
|
14984 | this.ensureParsed();
|
14985 | let o = Date.now(), a = [], l = {children: []}, p = l, c = null, _ = {}, f = new Set(), m = null;
|
14986 | function g(y, v) {
|
14987 | return y instanceof rs && (f.add(y), y = {name: y.name, kind: y.kind}), _ = y, y.token = v, y.children || (y.children = []), y.span || (y.span = v.span), y.name || (y.name = v.value), a.push(y), p.children.push(y);
|
14988 | }
|
14989 | function b(y) {
|
14990 | return _.children || (_.children = []), _.parent || (_.parent = p), p = _, p.end = y;
|
14991 | }
|
14992 | function N(y) {
|
14993 | return p = p.parent;
|
14994 | }
|
14995 | for (let y = 0, v = yr(this.tokens), d = v.length; y < d; y++) {
|
14996 | let w = v[y], k = w.symbol, T = w.scope;
|
14997 | if (w.type == "key")
|
14998 | g({kind: pr.Key}, w);
|
14999 | else if (k) {
|
15000 | if (k.parameter\u03A6)
|
15001 | continue;
|
15002 | f.has(k) || g(k, w), k.body && (m = k.body.start);
|
15003 | } else if (T && T.type == "do") {
|
15004 | let S = this.textBefore(w.offset - 3).replace(/^\s*(return\s*)?/, "");
|
15005 | S += " callback", g({kind: pr.Function, name: S}, w.prev), m = w;
|
15006 | } else
|
15007 | T && T.type == "tag" && g({kind: pr.Field, name: T.outline}, w);
|
15008 | w == m && b(w.end), w == p.end && N();
|
15009 | }
|
15010 | for (let y = 0, v = yr(a), d = v.length; y < d; y++) {
|
15011 | let w = v[y];
|
15012 | if (w.span) {
|
15013 | let k = w.span.length;
|
15014 | w.span.start = this.positionAt(w.span.offset), w.span.end = k ? this.positionAt(w.span.offset + k) : w.span.start;
|
15015 | }
|
15016 | e && e(w, a), i = w.parent, delete w.parent, s = w.end, delete w.end, n = w.token, delete w.token;
|
15017 | }
|
15018 | return l;
|
15019 | }
|
15020 | getContextAtOffset(e, r = false) {
|
15021 | return this.contextAtOffset(e);
|
15022 | }
|
15023 | ensureParsed() {
|
15024 | return this.parse(), this;
|
15025 | }
|
15026 | reparse() {
|
15027 | return this.invalidateFromLine(0), this.parse();
|
15028 | }
|
15029 | profileReparse() {
|
15030 | let e = Date.now(), r = this.reparse();
|
15031 | return console.log("took", Date.now() - e), r;
|
15032 | }
|
15033 | tokenize(e = false) {
|
15034 | var r;
|
15035 | let i = this[gn] || {lines: [], version: -1};
|
15036 | if (i.version == this.version && !e)
|
15037 | return i;
|
15038 | let s = this.content;
|
15039 | this.isLegacy && (s = s.replace(/\@\w/g, function(f) {
|
15040 | return "\xB6" + f.slice(1);
|
15041 | }), s = s.replace(/\w\:(?=\w)/g, function(f) {
|
15042 | return f[0] + ".";
|
15043 | }), s = s.replace(/(do)(\s?)\|([^\|]*)\|/g, function(f, m, g, b) {
|
15044 | return m + "(" + (g || "") + b + ")";
|
15045 | }));
|
15046 | let n = this.lineOffsets, o = [], l = this.seed, p = Date.now(), c = this.initialState;
|
15047 | this[gn] = {version: this.version, lines: [], tokens: o};
|
15048 | let _ = {};
|
15049 | this[gn].cache = _;
|
15050 | for (let f = 0, m = yr(i.lines), g = m.length; f < g; f++) {
|
15051 | let b = m[f];
|
15052 | (_[r = b.text] || (_[r] = [])).push(b);
|
15053 | }
|
15054 | for (let f = 0, m = yr(n), g = m.length; f < g; f++) {
|
15055 | let b = m[f], y = n[f + 1] || s.length, v = s.slice(b, y), d = c, w = _[v], k = w && w.filter(function(C) {
|
15056 | return C.startState == d;
|
15057 | }), T = k && (k.find(function(C) {
|
15058 | return C.offset == b;
|
15059 | }) || k[0]), S = null;
|
15060 | if (T && (T.offset == b, S = T.clone(b)), !S) {
|
15061 | let C = yn.tokenize(v, d, b);
|
15062 | S = new aa({offset: b, text: v, startState: d, endState: C.endState, tokens: C.tokens});
|
15063 | }
|
15064 | for (let C = 0, L = yr(S.tokens), D = L.length; C < D; C++) {
|
15065 | let I = L[C];
|
15066 | o.push(I);
|
15067 | }
|
15068 | this[gn].lines.push(S), c = S.endState;
|
15069 | }
|
15070 | return this[gn];
|
15071 | }
|
15072 | get tokens() {
|
15073 | return this.astify(), this[gn].tokens;
|
15074 | }
|
15075 | getTokens(e = null) {
|
15076 | return this.tokens;
|
15077 | }
|
15078 | astify() {
|
15079 | let e = this.tokenize();
|
15080 | if (e.root)
|
15081 | return this;
|
15082 | let r = {"]": "[", ")": "(", "}": "{", ">": "<"}, i = {"[": "]", "(": ")", "{": "}", "<": ">"}, s = /[\w\$\)\]\?]/, n = Date.now(), o = null, a = e.root = new fo(this, this.seed, null, "root"), l = this.content, p = console.log.bind(console), c = null, _ = null, f = null, m = null, g = 0;
|
15083 | for (let b = 0, N = yr(e.tokens), y = N.length; b < y; b++) {
|
15084 | let v = N[b], d = v.type.split("."), w = v.value, k = e.tokens[b + 1], [T, S, C] = d, L = d[d.length - 1], D = d[d.length - 2], I = null, U = 0;
|
15085 | if (T == "ivar" && (w = v.value = "@" + w.slice(1)), m && (m.next = v), v.prev = m, v.context = a, T == "(" && m) {
|
15086 | let B = l[v.offset - 1] || "";
|
15087 | s.test(B) && (a = v.scope = is.args.build(this, v, a, "args", d));
|
15088 | }
|
15089 | if (T == "operator" && (v.op = v.value.trim()), T == "keyword" && (Be[S] && (g |= Be[S]), (w == "let" || w == "const") && (_ = v, f = null)), T == "entity" && (v.mods |= g, g = 0), T == "push") {
|
15090 | let B = S, q = S.lastIndexOf("_"), K = q >= 0 ? Le : Ui;
|
15091 | q >= 0 ? (B = B.slice(q + 1), K = is[B] || Le) : is[B] && (K = is[B]), a = v.scope = new K(this, v, a, B, d), c && (c.body = a, a.symbol = c, c = null), a == a.scope && (_ = null, f = null);
|
15092 | } else
|
15093 | T == "pop" ? (S == "value" && (f = null), a = a.pop(v)) : (S == "open" || i[S]) && is[T] ? a = v.scope = is[T].build(this, v, a, T, d) : L == "open" && (I = is[D]) ? a = v.scope = I.build(this, v, a, D, d) : (L == "close" && a.type == D || S == "close" && is[T] || r[T] && a && a.start.value == r[T]) && (a = a.pop(v));
|
15094 | if (v.match(/entity\.name|decl-/)) {
|
15095 | let B = rs.forToken(v, v.type, v.mods);
|
15096 | B && (c = v.symbol = B, v.symbol.keyword = _, a.register(v.symbol)), v.mods |= Be.Declaration;
|
15097 | }
|
15098 | if (S == "declval" && (f = v), v.match("identifier") && !v.symbol) {
|
15099 | let B = a.lookup(v, _);
|
15100 | if (B && B.scoped\u03A6 && (f && B.keyword == _ || B.addReference(v)), m && m.op == "=" && B) {
|
15101 | let q = m.prev;
|
15102 | q && q.symbol == B && (q.mods & Be.Declaration ? B.dereference(v) : (!k || k.match("br")) && B.dereference(q));
|
15103 | }
|
15104 | }
|
15105 | m = v;
|
15106 | }
|
15107 | return this;
|
15108 | }
|
15109 | parse() {
|
15110 | return this.tokens;
|
15111 | }
|
15112 | getMatchingTokens(e) {
|
15113 | let r = this.getTokens();
|
15114 | return r = r.slice(0).filter(function(i) {
|
15115 | return i.match(e);
|
15116 | }), r;
|
15117 | }
|
15118 | migrateToImba2() {
|
15119 | let e = this.content;
|
15120 | e = e.replace(/\bdef self\./g, "static def "), e = e.replace(/\b(var|let|const) def /g, "def "), e = e.replace(/\?\./g, ".."), e = e.replace(/def ([\w\-]+)\=/g, "set $1"), e = e.replace(/do\s?\|([^\|]+)\|/g, "do($1)"), e = e.replace(/(prop) ([\w\-]+) (.+)$/gm, function(n, o, a, l) {
|
15121 | var p, c;
|
15122 | let _ = {};
|
15123 | l.split(/,\s*/).map(function(m) {
|
15124 | return m.split(/\:\s*/);
|
15125 | }).map(function(m) {
|
15126 | return _[m[0]] = m[1];
|
15127 | });
|
15128 | let f = "" + o + " " + a;
|
15129 | return _.watch && _.watch[0].match(/[\'\"\:]/) ? f = "@watch(" + _.watch + ") " + f : _.watch && (f = "@watch " + f), p = _.watch, delete _.watch, _.default && (f = "" + f + " = " + _.default, c = _.default, delete _.default), Object.keys(_).length && console.log("more prop values", n, _), f;
|
15130 | });
|
15131 | let i = vn.tmp(e).getTokens(), s = "";
|
15132 | for (let n = 0, o = yr(i), a = o.length; n < a; n++) {
|
15133 | let l = o[n], p = i[n + 1], {value: c, type: _, offset: f} = l, m = f + c.length;
|
15134 | _ == "operator.dot.legacy" && (c = ".", p && (p.access = true)), _ == "operator.spread.legacy" && (c = "..."), _ == "identifier.tagname" && c.indexOf(":") >= 0 && (c = c.replace(":", "-")), _ == "identifier.def.propname" && c == "initialize" && (c = "constructor"), _ == "decorator" && !e.slice(m).match(/^\s(prop|def|get|set)/) && (c = s + c.slice(1)), _ == "property" && (c[0] == "@" ? (c = c.replace(/^\@/, s), l.access = true) : c == "len" ? c = "length" : /^(\n|\s\:|\)|\,|\.)/.test(e.slice(m)) && !l.access && c[0] == c[0].toLowerCase() && (c = c + "!")), _ == "identifier" && !l.access && c[0] == c[0].toLowerCase() && c[0] != "_" && !l.variable && /^(\n|\s\:|\)|\,|\.)/.test(e.slice(m)) && c != "new" && (c = c + "!"), l.value = c;
|
15135 | }
|
15136 | return i.map(function(n) {
|
15137 | return n.value;
|
15138 | }).join("");
|
15139 | }
|
15140 | createImportEdit(e, r, i = r) {
|
15141 | e = e.replace(/\.imba$/, "");
|
15142 | let s = this.getImportNodes().filter(function(p) {
|
15143 | return p.sourcePath == e;
|
15144 | }), n = "", o = 0, a = [], l = {changes: a};
|
15145 | if (this.getImportedSymbols().map(function(_) {
|
15146 | return _.importInfo;
|
15147 | }).find(function(_) {
|
15148 | return _.path == e && _.name == i && _.exportName == r;
|
15149 | }))
|
15150 | return l;
|
15151 | r != "default" && r != "*" && (s = s.filter(function(p) {
|
15152 | return p.specifiers || !p.ns;
|
15153 | }));
|
15154 | for (let p = 0, c = yr(s), _ = c.length; p < _; p++) {
|
15155 | let f = c[p], m = f.default, g = f.specifiers, b = f.namespace;
|
15156 | if (r == "default")
|
15157 | if (o = f.start.offset + 1, m) {
|
15158 | if (m.value == i)
|
15159 | return l;
|
15160 | l.alias = m.value, o = 0;
|
15161 | continue;
|
15162 | } else
|
15163 | n = i, (b || g) && (n += ", ");
|
15164 | else if (r == "*") {
|
15165 | if (g)
|
15166 | continue;
|
15167 | m ? (o = m.endOffset, n = ", * as " + i) : (o = f.start.offset + 1, n = "* as " + i + " ");
|
15168 | } else if (b) {
|
15169 | l.alias = "" + b.value + "." + r;
|
15170 | continue;
|
15171 | } else {
|
15172 | let N = r;
|
15173 | i != r && (N += " as " + i), g ? (o = g.start.offset + 1, n = " " + N + ",") : m ? (o = m.endOffset, n = ", { " + N + " }") : (n = "{ " + N + " }", o = f.start.offset + 1);
|
15174 | }
|
15175 | if (n)
|
15176 | break;
|
15177 | }
|
15178 | return n || (r == "default" ? n = "import " + i + " from '" + e + "'" : r == "*" ? n = "import * as " + i + " from '" + e + "'" : i != r ? n = "import { " + r + " as " + i + " } from '" + e + "'" : n = "import { " + r + " } from '" + e + "'", n += `
|
15179 | `), a.push({newText: n, range: this.rangeAt(o, o)}), l;
|
15180 | }
|
15181 | };
|
15182 | function Er() {
|
15183 | this.pseudos = {}, this.attrEqualityMods = {}, this.ruleNestingOperators = {}, this.substitutesEnabled = false;
|
15184 | }
|
15185 | Er.prototype.registerSelectorPseudos = function(t) {
|
15186 | for (var e = 0, r = arguments.length; e < r; e++)
|
15187 | t = arguments[e], this.pseudos[t] = "selector";
|
15188 | return this;
|
15189 | };
|
15190 | Er.prototype.unregisterSelectorPseudos = function(t) {
|
15191 | for (var e = 0, r = arguments.length; e < r; e++)
|
15192 | t = arguments[e], delete this.pseudos[t];
|
15193 | return this;
|
15194 | };
|
15195 | Er.prototype.registerNumericPseudos = function(t) {
|
15196 | for (var e = 0, r = arguments.length; e < r; e++)
|
15197 | t = arguments[e], this.pseudos[t] = "numeric";
|
15198 | return this;
|
15199 | };
|
15200 | Er.prototype.unregisterNumericPseudos = function(t) {
|
15201 | for (var e = 0, r = arguments.length; e < r; e++)
|
15202 | t = arguments[e], delete this.pseudos[t];
|
15203 | return this;
|
15204 | };
|
15205 | Er.prototype.registerNestingOperators = function(t) {
|
15206 | for (var e = 0, r = arguments.length; e < r; e++)
|
15207 | t = arguments[e], this.ruleNestingOperators[t] = true;
|
15208 | return this;
|
15209 | };
|
15210 | Er.prototype.unregisterNestingOperators = function(t) {
|
15211 | for (var e = 0, r = arguments.length; e < r; e++)
|
15212 | t = arguments[e], delete this.ruleNestingOperators[t];
|
15213 | return this;
|
15214 | };
|
15215 | Er.prototype.registerAttrEqualityMods = function(t) {
|
15216 | for (var e = 0, r = arguments.length; e < r; e++)
|
15217 | t = arguments[e], this.attrEqualityMods[t] = true;
|
15218 | return this;
|
15219 | };
|
15220 | Er.prototype.unregisterAttrEqualityMods = function(t) {
|
15221 | for (var e = 0, r = arguments.length; e < r; e++)
|
15222 | t = arguments[e], delete this.attrEqualityMods[t];
|
15223 | return this;
|
15224 | };
|
15225 | Er.prototype.enableSubstitutes = function() {
|
15226 | return this.substitutesEnabled = true, this;
|
15227 | };
|
15228 | Er.prototype.disableSubstitutes = function() {
|
15229 | return this.substitutesEnabled = false, this;
|
15230 | };
|
15231 | function Y0(t) {
|
15232 | return t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t === "-" || t === "_";
|
15233 | }
|
15234 | function K0(t) {
|
15235 | return t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t >= "0" && t <= "9" || t === "-" || t === "_";
|
15236 | }
|
15237 | function G1(t) {
|
15238 | return t >= "a" && t <= "f" || t >= "A" && t <= "F" || t >= "0" && t <= "9";
|
15239 | }
|
15240 | var Ap = {"!": true, '"': true, "#": true, $: true, "%": true, "&": true, "'": true, "(": true, ")": true, "*": true, "+": true, ",": true, ".": true, "/": true, ";": true, "<": true, "=": true, ">": true, "?": true, "@": true, "[": true, "\\": true, "]": true, "^": true, "`": true, "{": true, "|": true, "}": true, "~": true};
|
15241 | var q0 = {"\n": "\\n", "\r": "\\r", " ": "\\t", "\f": "\\f", "\v": "\\v"};
|
15242 | var Ip = {n: `
|
15243 | `, r: "\r", t: " ", f: "\f", "\\": "\\", "'": "'"};
|
15244 | var Rp = {n: `
|
15245 | `, r: "\r", t: " ", f: "\f", "\\": "\\", '"': '"'};
|
15246 | function X0(t, e, r, i, s, n) {
|
15247 | var o, a, l, p, c;
|
15248 | return p = t.length, o = null, l = function(_, f) {
|
15249 | var m, g, b;
|
15250 | for (b = "", e++, o = t.charAt(e); e < p; ) {
|
15251 | if (o === _)
|
15252 | return e++, b;
|
15253 | if (o === "\\")
|
15254 | if (e++, o = t.charAt(e), o === _)
|
15255 | b += _;
|
15256 | else if (m = f[o])
|
15257 | b += m;
|
15258 | else if (G1(o)) {
|
15259 | for (g = o, e++, o = t.charAt(e); G1(o); )
|
15260 | g += o, e++, o = t.charAt(e);
|
15261 | o === " " && (e++, o = t.charAt(e)), b += String.fromCharCode(parseInt(g, 16));
|
15262 | continue;
|
15263 | } else
|
15264 | b += o;
|
15265 | else
|
15266 | b += o;
|
15267 | e++, o = t.charAt(e);
|
15268 | }
|
15269 | return b;
|
15270 | }, a = function(_) {
|
15271 | var f = "";
|
15272 | for (o = t.charAt(e); e < p; ) {
|
15273 | if (K0(o) || _ && _[o])
|
15274 | f += o;
|
15275 | else if (o === "\\") {
|
15276 | if (e++, e >= p)
|
15277 | throw Error("Expected symbol but end of file reached.");
|
15278 | if (o = t.charAt(e), Ap[o])
|
15279 | f += o;
|
15280 | else if (G1(o)) {
|
15281 | var m = o;
|
15282 | for (e++, o = t.charAt(e); G1(o); )
|
15283 | m += o, e++, o = t.charAt(e);
|
15284 | o === " " && (e++, o = t.charAt(e)), f += String.fromCharCode(parseInt(m, 16));
|
15285 | continue;
|
15286 | } else
|
15287 | f += o;
|
15288 | } else
|
15289 | return f;
|
15290 | e++, o = t.charAt(e);
|
15291 | }
|
15292 | return f;
|
15293 | }, c = function() {
|
15294 | o = t.charAt(e);
|
15295 | for (var _ = false; o === " " || o === " " || o === `
|
15296 | ` || o === "\r" || o === "\f"; )
|
15297 | _ = true, e++, o = t.charAt(e);
|
15298 | return _;
|
15299 | }, this.parse = function() {
|
15300 | var _ = this.parseSelector();
|
15301 | if (e < p)
|
15302 | throw Error('Rule expected but "' + t.charAt(e) + '" found.');
|
15303 | return _;
|
15304 | }, this.parseSelector = function() {
|
15305 | var _, f = _ = this.parseSingleSelector();
|
15306 | for (o = t.charAt(e); o === ","; ) {
|
15307 | if (e++, c(), _.type !== "selectors" && (_ = {type: "selectors", selectors: [f]}), f = this.parseSingleSelector(), !f)
|
15308 | throw Error('Rule expected after ",".');
|
15309 | _.selectors.push(f);
|
15310 | }
|
15311 | return _;
|
15312 | }, this.parseSingleSelector = function() {
|
15313 | c();
|
15314 | let _ = t.slice(e, e + 4).match(/^(\>{1,3}|\+|~)/);
|
15315 | var f = {type: "ruleSet"}, m = _ ? {type: "rule", isScope: true} : this.parseRule();
|
15316 | if (!m)
|
15317 | return null;
|
15318 | for (var g = f; m && (m.type = "rule", g.rule = m, g = m, c(), o = t.charAt(e), !(e >= p || o === "," || o === ")")); )
|
15319 | if (s[o]) {
|
15320 | var b = o;
|
15321 | if (b == ">" && t.charAt(e + 1) == ">" && t.charAt(e + 2) == ">" ? (b = ">>>", e = e + 3) : b == ">" && t.charAt(e + 1) == ">" ? (b = ">>", e = e + 2) : e++, c(), m = this.parseRule(), !m)
|
15322 | if (b == ">" || b == ">>>" || b == ">>")
|
15323 | m = {tagName: "*"};
|
15324 | else
|
15325 | throw Error('Rule expected after "' + b + '".');
|
15326 | m.nestingOperator = b;
|
15327 | } else
|
15328 | m = this.parseRule(), m && (m.nestingOperator = null);
|
15329 | return f;
|
15330 | }, this.parseRule = function() {
|
15331 | for (var _ = null; e < p; )
|
15332 | if (o = t.charAt(e), o === "&")
|
15333 | e++, (_ = _ || {}).isScope = true;
|
15334 | else if (o === "*")
|
15335 | e++, (_ = _ || {}).tagName = "*";
|
15336 | else if (Y0(o) || o === "\\")
|
15337 | (_ = _ || {}).tagName = a();
|
15338 | else if (o === "$" || o === "%")
|
15339 | e++, _ = _ || {}, (_.classNames = _.classNames || []).push(o + a());
|
15340 | else if (o === ".")
|
15341 | e++, _ = _ || {}, (_.classNames = _.classNames || []).push(a());
|
15342 | else if (o === "#")
|
15343 | e++, (_ = _ || {}).id = a();
|
15344 | else if (o === "[") {
|
15345 | e++, c();
|
15346 | var f = {name: a()};
|
15347 | if (c(), o === "]")
|
15348 | e++;
|
15349 | else {
|
15350 | var m = "";
|
15351 | if (i[o] && (m = o, e++, o = t.charAt(e)), e >= p)
|
15352 | throw Error('Expected "=" but end of file reached.');
|
15353 | if (o !== "=")
|
15354 | throw Error('Expected "=" but "' + o + '" found.');
|
15355 | f.operator = m + "=", e++, c();
|
15356 | var g = "";
|
15357 | if (f.valueType = "string", o === '"')
|
15358 | g = l('"', Rp);
|
15359 | else if (o === "'")
|
15360 | g = l("'", Ip);
|
15361 | else if (n && o === "$")
|
15362 | e++, g = a(), f.valueType = "substitute";
|
15363 | else {
|
15364 | for (; e < p && o !== "]"; )
|
15365 | g += o, e++, o = t.charAt(e);
|
15366 | g = g.trim();
|
15367 | }
|
15368 | if (c(), e >= p)
|
15369 | throw Error('Expected "]" but end of file reached.');
|
15370 | if (o !== "]")
|
15371 | throw Error('Expected "]" but "' + o + '" found.');
|
15372 | e++, f.value = g;
|
15373 | }
|
15374 | _ = _ || {}, (_.attrs = _.attrs || []).push(f);
|
15375 | } else if (o === ":" || o === "@") {
|
15376 | let v = o === "@";
|
15377 | e++;
|
15378 | for (var b = ""; t.charAt(e) == "."; )
|
15379 | b += ".", e++;
|
15380 | b += a({"~": true, "+": true, ".": false, ">": true, "<": true, "!": true});
|
15381 | var N = {special: v, name: b};
|
15382 | if (o === "(") {
|
15383 | e++;
|
15384 | var y = "";
|
15385 | if (c(), r[b] === "selector")
|
15386 | N.valueType = "selector", y = this.parseSelector();
|
15387 | else {
|
15388 | if (N.valueType = r[b] || "string", o === '"')
|
15389 | y = l('"', Rp);
|
15390 | else if (o === "'")
|
15391 | y = l("'", Ip);
|
15392 | else if (n && o === "$")
|
15393 | e++, y = a(), N.valueType = "substitute";
|
15394 | else {
|
15395 | for (; e < p && o !== ")"; )
|
15396 | y += o, e++, o = t.charAt(e);
|
15397 | y = y.trim();
|
15398 | }
|
15399 | c();
|
15400 | }
|
15401 | if (e >= p)
|
15402 | throw Error('Expected ")" but end of file reached.');
|
15403 | if (o !== ")")
|
15404 | throw Error('Expected ")" but "' + o + '" found.');
|
15405 | e++, N.value = y;
|
15406 | }
|
15407 | _ = _ || {}, (_.pseudos = _.pseudos || []).push(N);
|
15408 | } else
|
15409 | break;
|
15410 | return _;
|
15411 | }, this;
|
15412 | }
|
15413 | Er.prototype.parse = function(t) {
|
15414 | var e = new X0(t, 0, this.pseudos, this.attrEqualityMods, this.ruleNestingOperators, this.substitutesEnabled);
|
15415 | return e.parse();
|
15416 | };
|
15417 | Er.prototype.escapeIdentifier = function(t) {
|
15418 | for (var e = "", r = 0, i = t.length; r < i; ) {
|
15419 | var s = t.charAt(r);
|
15420 | if (Ap[s])
|
15421 | e += "\\" + s;
|
15422 | else if (s === "_" || s === "-" || s >= "A" && s <= "Z" || s >= "a" && s <= "z" || r !== 0 && s >= "0" && s <= "9")
|
15423 | e += s;
|
15424 | else {
|
15425 | var n = s.charCodeAt(0);
|
15426 | if ((n & 63488) == 55296) {
|
15427 | var o = t.charCodeAt(r++);
|
15428 | if ((n & 64512) != 55296 || (o & 64512) != 56320)
|
15429 | throw Error("UCS-2(decode): illegal sequence");
|
15430 | n = ((n & 1023) << 10) + (o & 1023) + 65536;
|
15431 | }
|
15432 | e += "\\" + n.toString(16) + " ";
|
15433 | }
|
15434 | r++;
|
15435 | }
|
15436 | return e;
|
15437 | };
|
15438 | Er.prototype.escapeStr = function(t) {
|
15439 | for (var e = "", r = 0, i = t.length, s, n; r < i; )
|
15440 | s = t.charAt(r), s === '"' ? s = '\\"' : s === "\\" ? s = "\\\\" : (n = q0[s]) && (s = n), e += s, r++;
|
15441 | return '"' + e + '"';
|
15442 | };
|
15443 | Er.prototype.render = function(t) {
|
15444 | return this._renderEntity(t).trim();
|
15445 | };
|
15446 | Er.prototype._renderEntity = function(t) {
|
15447 | var e, r, i;
|
15448 | switch (i = "", t.type) {
|
15449 | case "ruleSet":
|
15450 | for (e = t.rule, r = []; e; )
|
15451 | e.nestingOperator && r.push(e.nestingOperator), r.push(this._renderEntity(e)), e = e.rule;
|
15452 | i = r.join(" ");
|
15453 | break;
|
15454 | case "selectors":
|
15455 | i = t.selectors.map(this._renderEntity, this).join(", ");
|
15456 | break;
|
15457 | case "rule":
|
15458 | let s = t.s1, n = t.s2;
|
15459 | if (t.tagName && (t.tagName === "*" ? i = "*" : i = this.escapeIdentifier(t.tagName)), t.id && (i += "#" + this.escapeIdentifier(t.id)), t.classNames) {
|
15460 | let o = null;
|
15461 | if (i += t.classNames.map(function(a) {
|
15462 | if (a[0] == "!")
|
15463 | return ":not(." + this.escapeIdentifier(a.slice(1)) + ")";
|
15464 | {
|
15465 | let l = this.escapeIdentifier(a);
|
15466 | return n && (!o || o.length > l.length) && (o = l), "." + l;
|
15467 | }
|
15468 | }, this).join(""), n > 0 && o && o.length < 9)
|
15469 | for (; --n >= 0; )
|
15470 | i += "." + o;
|
15471 | }
|
15472 | if (t.pri > 0, s > 0)
|
15473 | for (; --s >= 0; )
|
15474 | i += ":not(#_)";
|
15475 | if (n > 0)
|
15476 | for (; --s >= 0; )
|
15477 | i += ":not(._0)";
|
15478 | t.attrs && (i += t.attrs.map(function(o) {
|
15479 | return o.operator ? o.valueType === "substitute" ? "[" + this.escapeIdentifier(o.name) + o.operator + "$" + o.value + "]" : "[" + this.escapeIdentifier(o.name) + o.operator + this.escapeStr(o.value) + "]" : "[" + this.escapeIdentifier(o.name) + "]";
|
15480 | }, this).join("")), t.pseudos && (i += t.pseudos.map(function(o) {
|
15481 | let a = ":" + this.escapeIdentifier(o.name), l = "";
|
15482 | return o.neg && (a = ":not(" + a, l = ")"), o.valueType ? o.valueType === "selector" ? a + "(" + this._renderEntity(o.value) + ")" + l : o.valueType === "substitute" ? a + "($" + o.value + ")" + l : o.valueType === "numeric" || o.valueType === "raw" || o.valueType === "string" ? a + "(" + o.value + ")" + l : a + "(" + this.escapeIdentifier(o.value) + ")" + l : o.type == "el" ? ":" + a : a + l;
|
15483 | }, this).join(""));
|
15484 | break;
|
15485 | default:
|
15486 | throw Error('Unknown entity type: "' + t.type(+'".'));
|
15487 | }
|
15488 | return i;
|
15489 | };
|
15490 | var go = new Er();
|
15491 | go.registerSelectorPseudos("has", "not", "is", "matches", "any");
|
15492 | go.registerNumericPseudos("nth-child");
|
15493 | go.registerNestingOperators(">>>", ">>", ">", "+", "~");
|
15494 | go.registerAttrEqualityMods("^", "$", "*", "~");
|
15495 | var Np = function(t) {
|
15496 | return go.parse(t);
|
15497 | };
|
15498 | var Op = function(t) {
|
15499 | return go.render(t);
|
15500 | };
|
15501 | var Vl = {};
|
15502 | Fi(Vl, {colors: () => Gl, fonts: () => B1, modifiers: () => jl, variants: () => W0});
|
15503 | var B1 = {sans: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"', serif: 'Georgia, Cambria, "Times New Roman", Times, serif', mono: 'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'};
|
15504 | var jl = {odd: {name: "nth-child", valueType: "string", value: "odd"}, even: {name: "nth-child", valueType: "string", value: "even"}, first: {name: "first-child"}, last: {name: "last-child"}, only: {name: "only-child"}, "not-first": {name: "not", valueType: "raw", value: ":first-child"}, "not-last": {name: "not", valueType: "raw", value: ":last-child"}, "first-child": {}, "last-child": {}, active: {}, checked: {}, default: {}, defined: {}, disabled: {}, empty: {}, enabled: {}, "first-of-type": {}, "first-page": {name: "first"}, fullscreen: {}, focus: {}, focin: {name: "focus-within"}, "focus-within": {}, "focus-visible": {}, hover: {}, indeterminate: {}, "in-range": {}, invalid: {}, is: {type: "selector"}, lang: {}, "last-of-type": {}, left: {}, link: {}, not: {type: "selector"}, "nth-child": {}, "nth-last-child": {}, "nth-last-of-type": {}, "nth-of-type": {}, "only-child": {}, "only-of-type": {}, optional: {}, "out-of-range": {}, "placeholder-shown": {}, "read-only": {}, "read-write": {}, required: {}, right: {}, scope: {}, root: {}, target: {}, "target-within": {}, valid: {}, visited: {}, where: {}, after: {type: "el"}, "-webkit-scrollbar": {type: "el"}, "-webkit-scrollbar-button": {type: "el"}, "-webkit-scrollbar-track": {type: "el"}, "-webkit-scrollbar-track-piece": {type: "el"}, "-webkit-scrollbar-thumb": {type: "el"}, "-webkit-scrollbar-corner": {type: "el"}, "-webkit-resizer": {type: "el"}, backdrop: {type: "el"}, before: {type: "el"}, cue: {type: "el"}, "cue-region": {type: "el"}, "first-letter": {type: "el"}, "first-line": {type: "el"}, marker: {type: "el"}, placeholder: {type: "el"}, selection: {type: "el"}, inline: {pri: 3}, important: {pri: 4}, force: {pri: 6}, media: {type: "media"}, print: {media: "print"}, screen: {media: "screen"}, speech: {media: "speech"}, all: {media: "all"}, xs: {media: "(min-width: 480px)", medianeg: "(max-width: 479px)"}, sm: {media: "(min-width: 640px)", medianeg: "(max-width: 639px)"}, md: {media: "(min-width: 768px)", medianeg: "(max-width: 767px)"}, lg: {media: "(min-width: 1024px)", medianeg: "(max-width: 1023px)"}, xl: {media: "(min-width: 1280px)", medianeg: "(max-width: 1279px)"}, "2xl": {media: "(min-width: 1536px)"}, "lt-xs": {media: "(max-width: 479px)"}, "lt-sm": {media: "(max-width: 639px)"}, "lt-md": {media: "(max-width: 767px)"}, "lt-lg": {media: "(max-width: 1023px)"}, "lt-xl": {media: "(max-width: 1279px)"}, "lt-2xl": {media: "(max-width: 1535px)"}, landscape: {media: "(orientation: landscape)", medianeg: "(orientation: portrait)"}, portrait: {media: "(orientation: portrait)", medianeg: "(orientation: landscape)"}, dark: {media: "(prefers-color-scheme: dark)", medianeg: "(prefers-color-scheme: light)"}, light: {media: "(prefers-color-scheme: light)", medianeg: "(prefers-color-scheme: dark)"}, mac: {ua: "mac"}, ios: {ua: "ios"}, win: {ua: "win"}, android: {ua: "android"}, linux: {ua: "linux"}, ie: {ua: "ie"}, chrome: {ua: "chrome"}, safari: {ua: "safari"}, firefox: {ua: "firefox"}, opera: {ua: "opera"}, blink: {ua: "blink"}, webkit: {ua: "webkit"}, touch: {flag: "_touch_"}, suspended: {flag: "_suspended_"}, move: {flag: "_move_"}, hold: {flag: "_hold_"}, ssr: {flag: "_ssr_"}};
|
15505 | var W0 = {radius: {full: "9999px", xxs: "1px", xs: "2px", sm: "3px", md: "4px", lg: "6px", xl: "8px", NUMBER: "2px"}, sizing: {NUMBER: "0.25rem"}, "letter-spacing": {NUMBER: "0.05em"}, "font-size": {xxs: ["10px", 1.5], xs: ["12px", 1.5], "sm-": ["13px", 1.5], sm: ["14px", 1.5], "md-": ["15px", 1.5], md: ["16px", 1.5], lg: ["18px", 1.5], xl: ["20px", 1.5], "2xl": ["24px", 1.5], "3xl": ["30px", 1.5], "4xl": ["36px", 1.5], "5xl": ["48px", 1.5], "6xl": ["64px", 1.5], "1": ["10px", 1.5], "2": ["12px", 1.5], "3": ["13px", 1.5], "4": ["14px", 1.5], "5": ["15px", 1.5], "6": ["16px", 1.5], "7": ["17px", 1.5], "8": ["18px", 1.5], "9": ["19px", 1.5], "10": ["20px", 1.5], "11": ["24px", 1.4], "12": ["30px", 1.3], "13": ["36px", 1.3], "14": ["48px", 1.2], "15": ["64px", 1.2], "16": ["96px", 1.2]}, "box-shadow": {xxs: "0 0 0 1px rgba(0, 0, 0, 0.05)", xs: "0 1px 2px 0 rgba(0, 0, 0, 0.05)", sm: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)", md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)", lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", xxl: "0 25px 50px -6px rgba(0, 0, 0, 0.25)", inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)", outline: "0 0 0 3px rgba(66, 153, 225, 0.5)", none: "none"}, easings: {"sine-in": "cubic-bezier(0.47, 0, 0.745, 0.715)", "sine-out": "cubic-bezier(0.39, 0.575, 0.565, 1)", "sine-in-out": "cubic-bezier(0.445, 0.05, 0.55, 0.95)", "quad-in": "cubic-bezier(0.55, 0.085, 0.68, 0.53)", "quad-out": "cubic-bezier(0.25, 0.46, 0.45, 0.94)", "quad-in-out": "cubic-bezier(0.455, 0.03, 0.515, 0.955)", "cubic-in": "cubic-bezier(0.55, 0.055, 0.675, 0.19)", "cubic-out": "cubic-bezier(0.215, 0.61, 0.355, 1)", "cubic-in-out": "cubic-bezier(0.645, 0.045, 0.355, 1)", "quart-in": "cubic-bezier(0.895, 0.03, 0.685, 0.22)", "quart-out": "cubic-bezier(0.165, 0.84, 0.44, 1)", "quart-in-out": "cubic-bezier(0.77, 0, 0.175, 1)", "quint-in": "cubic-bezier(0.755, 0.05, 0.855, 0.06)", "quint-out": "cubic-bezier(0.23, 1, 0.32, 1)", "quint-in-out": "cubic-bezier(0.86, 0, 0.07, 1)", "expo-in": "cubic-bezier(0.95, 0.05, 0.795, 0.035)", "expo-out": "cubic-bezier(0.19, 1, 0.22, 1)", "expo-in-out": "cubic-bezier(1, 0, 0, 1)", "circ-in": "cubic-bezier(0.6, 0.04, 0.98, 0.335)", "circ-out": "cubic-bezier(0.075, 0.82, 0.165, 1)", "circ-in-out": "cubic-bezier(0.785, 0.135, 0.15, 0.86)", "back-in": "cubic-bezier(0.6, -0.28, 0.735, 0.045)", "back-out": "cubic-bezier(0.175, 0.885, 0.32, 1.275)", "back-in-out": "cubic-bezier(0.68, -0.55, 0.265, 1.55)"}};
|
15506 | var Gl = {rose: {0: "#fff1f2", 1: "#ffe4e6", 2: "#fecdd3", 3: "#fda4af", 4: "#fb7185", 5: "#f43f5e", 6: "#e11d48", 7: "#be123c", 8: "#9f1239", 9: "#881337"}, pink: {0: "#fdf2f8", 1: "#fce7f3", 2: "#fbcfe8", 3: "#f9a8d4", 4: "#f472b6", 5: "#ec4899", 6: "#db2777", 7: "#be185d", 8: "#9d174d", 9: "#831843"}, fuchsia: {0: "#fdf4ff", 1: "#fae8ff", 2: "#f5d0fe", 3: "#f0abfc", 4: "#e879f9", 5: "#d946ef", 6: "#c026d3", 7: "#a21caf", 8: "#86198f", 9: "#701a75"}, purple: {0: "#faf5ff", 1: "#f3e8ff", 2: "#e9d5ff", 3: "#d8b4fe", 4: "#c084fc", 5: "#a855f7", 6: "#9333ea", 7: "#7e22ce", 8: "#6b21a8", 9: "#581c87"}, violet: {0: "#f5f3ff", 1: "#ede9fe", 2: "#ddd6fe", 3: "#c4b5fd", 4: "#a78bfa", 5: "#8b5cf6", 6: "#7c3aed", 7: "#6d28d9", 8: "#5b21b6", 9: "#4c1d95"}, indigo: {0: "#eef2ff", 1: "#e0e7ff", 2: "#c7d2fe", 3: "#a5b4fc", 4: "#818cf8", 5: "#6366f1", 6: "#4f46e5", 7: "#4338ca", 8: "#3730a3", 9: "#312e81"}, blue: {0: "#eff6ff", 1: "#dbeafe", 2: "#bfdbfe", 3: "#93c5fd", 4: "#60a5fa", 5: "#3b82f6", 6: "#2563eb", 7: "#1d4ed8", 8: "#1e40af", 9: "#1e3a8a"}, sky: {0: "#f0f9ff", 1: "#e0f2fe", 2: "#bae6fd", 3: "#7dd3fc", 4: "#38bdf8", 5: "#0ea5e9", 6: "#0284c7", 7: "#0369a1", 8: "#075985", 9: "#0c4a6e"}, cyan: {0: "#ecfeff", 1: "#cffafe", 2: "#a5f3fc", 3: "#67e8f9", 4: "#22d3ee", 5: "#06b6d4", 6: "#0891b2", 7: "#0e7490", 8: "#155e75", 9: "#164e63"}, teal: {0: "#f0fdfa", 1: "#ccfbf1", 2: "#99f6e4", 3: "#5eead4", 4: "#2dd4bf", 5: "#14b8a6", 6: "#0d9488", 7: "#0f766e", 8: "#115e59", 9: "#134e4a"}, emerald: {0: "#ecfdf5", 1: "#d1fae5", 2: "#a7f3d0", 3: "#6ee7b7", 4: "#34d399", 5: "#10b981", 6: "#059669", 7: "#047857", 8: "#065f46", 9: "#064e3b"}, green: {0: "#f0fdf4", 1: "#dcfce7", 2: "#bbf7d0", 3: "#86efac", 4: "#4ade80", 5: "#22c55e", 6: "#16a34a", 7: "#15803d", 8: "#166534", 9: "#14532d"}, lime: {0: "#f7fee7", 1: "#ecfccb", 2: "#d9f99d", 3: "#bef264", 4: "#a3e635", 5: "#84cc16", 6: "#65a30d", 7: "#4d7c0f", 8: "#3f6212", 9: "#365314"}, yellow: {0: "#fefce8", 1: "#fef9c3", 2: "#fef08a", 3: "#fde047", 4: "#facc15", 5: "#eab308", 6: "#ca8a04", 7: "#a16207", 8: "#854d0e", 9: "#713f12"}, amber: {0: "#fffbeb", 1: "#fef3c7", 2: "#fde68a", 3: "#fcd34d", 4: "#fbbf24", 5: "#f59e0b", 6: "#d97706", 7: "#b45309", 8: "#92400e", 9: "#78350f"}, orange: {0: "#fff7ed", 1: "#ffedd5", 2: "#fed7aa", 3: "#fdba74", 4: "#fb923c", 5: "#f97316", 6: "#ea580c", 7: "#c2410c", 8: "#9a3412", 9: "#7c2d12"}, red: {0: "#fef2f2", 1: "#fee2e2", 2: "#fecaca", 3: "#fca5a5", 4: "#f87171", 5: "#ef4444", 6: "#dc2626", 7: "#b91c1c", 8: "#991b1b", 9: "#7f1d1d"}, warmer: {0: "#fafaf9", 1: "#f5f5f4", 2: "#e7e5e4", 3: "#d6d3d1", 4: "#a8a29e", 5: "#78716c", 6: "#57534e", 7: "#44403c", 8: "#292524", 9: "#1c1917"}, warm: {0: "#fafafa", 1: "#f5f5f5", 2: "#e5e5e5", 3: "#d4d4d4", 4: "#a3a3a3", 5: "#737373", 6: "#525252", 7: "#404040", 8: "#262626", 9: "#171717"}, gray: {0: "#fafafa", 1: "#f4f4f5", 2: "#e4e4e7", 3: "#d4d4d8", 4: "#a1a1aa", 5: "#71717a", 6: "#52525b", 7: "#3f3f46", 8: "#27272a", 9: "#18181b"}, cool: {0: "#f9fafb", 1: "#f3f4f6", 2: "#e5e7eb", 3: "#d1d5db", 4: "#9ca3af", 5: "#6b7280", 6: "#4b5563", 7: "#374151", 8: "#1f2937", 9: "#111827"}, cooler: {0: "#f8fafc", 1: "#f1f5f9", 2: "#e2e8f0", 3: "#cbd5e1", 4: "#94a3b8", 5: "#64748b", 6: "#475569", 7: "#334155", 8: "#1e293b", 9: "#0f172a"}};
|
15507 | function Ei(t) {
|
15508 | let e;
|
15509 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
15510 | }
|
15511 | var Cp = Symbol.for("#rules");
|
15512 | var J0 = Symbol.for("#string");
|
15513 | var Z0 = Symbol.for("#media");
|
15514 | function Ns(t, e) {
|
15515 | return t.classNames || (t.classNames = []), t.classNames.indexOf(e) == -1 && t.classNames.push(e), t;
|
15516 | }
|
15517 | function Lp(t, e) {
|
15518 | return Ns(t, e), t.metas || (t.metas = []), t.metas.push(e), t;
|
15519 | }
|
15520 | function Q0(t, e) {
|
15521 | return t.pseudos || (t.pseudos = []), typeof e == "string" && (e = {name: e}), t.pseudos.push(e), t;
|
15522 | }
|
15523 | function Dp(t, e) {
|
15524 | let r = t.rule, i;
|
15525 | return r.isRoot || (r = t.rule = {type: "rule", rule: r, isRoot: true}), r;
|
15526 | }
|
15527 | function Fp(t, e, r = {}) {
|
15528 | var w, k, T, S;
|
15529 | if (t.type == "selectors")
|
15530 | for (let C = 0, L = Ei(t.selectors), D = L.length; C < D; C++) {
|
15531 | let I = L[C];
|
15532 | Fp(I, t, r);
|
15533 | }
|
15534 | if (t.type != "ruleSet")
|
15535 | return t;
|
15536 | let i = t, s = 0, n = 0, o = 0, a = 0, l = 0;
|
15537 | t.meta = {}, t.media = [];
|
15538 | let p = [], c = t.rule;
|
15539 | for (; c; )
|
15540 | p.push(c), c = c.rule;
|
15541 | let _ = p.slice(0).reverse();
|
15542 | for (let C = 0, L = Ei(_), D = L.length; C < D; C++) {
|
15543 | let I = L[C], U = _[C + 1], B = I.classNames, q = I.pseudos, K = I.tagName, Q = I.nestingOperator;
|
15544 | !B && !K && !Q && q && q.every(function(Dt) {
|
15545 | return Dt.special;
|
15546 | }) && (U ? (U.pseudos = (U.pseudos || []).concat(q), U.rule = I.rule, p.splice(p.indexOf(I), 1)) : I.implicitScope = true);
|
15547 | }
|
15548 | let f = p[0], m = null, g = null, b = false, N = !!r.global;
|
15549 | for (let C = 0, L = Ei(p), D = L.length; C < D; C++) {
|
15550 | let I = L[C], U = p[C - 1], B = p[C + 1], q = I.classNames || (I.classNames = []), K = I.pseudos || [], Q = I.tagName, Dt = I.op = I.nestingOperator;
|
15551 | if (Dt == ">>" ? (m = U, b = I, I.nestingOperator = ">", N = true) : Dt == ">>>" && (m = U, b = I, I.nestingOperator = null, N = true), N || (I.isScoped = true), Q == "html" && (I.isRoot = true), K.some(function(F) {
|
15552 | return F.name == "root";
|
15553 | }) && (I.isRoot = true), Q == "self" || I.isScope) {
|
15554 | for (let F = 0, H = Ei(p.slice(0, C)), Y = H.length; F < Y; F++) {
|
15555 | let P = H[F];
|
15556 | P.isScoped = false;
|
15557 | }
|
15558 | I.isScope = true, I.isScoped = false, I.tagName = null;
|
15559 | }
|
15560 | (Q == "body" || Q == "html") && (I.isScoped = false);
|
15561 | for (let F = 0, H = Ei(q), Y = H.length; F < Y; F++) {
|
15562 | let P = H[F];
|
15563 | P[0] == "$" && (q[F] = "ref--" + P.slice(1));
|
15564 | }
|
15565 | I.tagName && n++, r.ns && (!B || B.nestingOperator == ">>>") && !m && !g && (I.isScope, m = I), n += I.classNames.length;
|
15566 | let Zt = I;
|
15567 | for (let F = 0, H = Ei(K), Y = H.length, P; F < Y; F++) {
|
15568 | let M = H[F];
|
15569 | if (!M.special)
|
15570 | continue;
|
15571 | let [X, ee, oe, tt] = M.name.match(/^(\$|\.+)?([^\~\+]*)([\~\+]*)$/) || [], $, et, W = M.name[0] == "!" ? "!" : "", rt = W ? M.name.slice(1) : M.name;
|
15572 | if (W && (M.neg = true, M.name = M.name.slice(1)), ee == ".")
|
15573 | Ns(Zt, oe), M.remove = true, n++;
|
15574 | else if (ee == "..")
|
15575 | U || (U = i.rule = {type: "rule", classNames: [], rule: i.rule}), Ns(Zt = U, oe), M.remove = true, n++;
|
15576 | else if (rt.match(/^\d+$/)) {
|
15577 | let it = parseInt(rt);
|
15578 | W ? et = "(max-width: " + (it - 1) + "px)" : et = "(min-width: " + it + "px)";
|
15579 | }
|
15580 | if (oe == "media" && (et = "(" + M.value + ")"), tt == "~", et)
|
15581 | t.media.push(et), M.remove = true;
|
15582 | else if (P = jl[rt]) {
|
15583 | if (P.media) {
|
15584 | let it = P.media;
|
15585 | W && P.medianeg && (it = P.medianeg), t.media.push(it), M.remove = true;
|
15586 | }
|
15587 | P.ua && (Ns(Dp(t), "" + W + "ua-" + P.ua), M.remove = true, n++), P.flag && (Ns(Zt, "" + W + P.flag), M.remove = true, n++), P.pri && (s = P.pri, o += 4, M.remove = true), M.remove || Object.assign(M, P);
|
15588 | } else if (M.name == "local")
|
15589 | M.remove = true, r.hasScopedStyles = true, r.ns && Ns(I, r.ns), n++;
|
15590 | else if (M.name == "off" || M.name == "out" || M.name == "in")
|
15591 | M.remove = true, Ns(Zt, "_" + M.name + "_"), (e || t).hasTransitionStyles = true, (e || t)["_" + M.name + "_"] = true;
|
15592 | else if (M.name == "deep")
|
15593 | M.remove = true, g = I, U ? U.isRoot ? m = U.rule = {type: "rule", rule: U.rule} : m = U : m = t.rule = {type: "rule", rule: t.rule};
|
15594 | else if (!M.remove) {
|
15595 | let it = W ? "!mod-" + M.name.slice(1) : "mod-" + M.name;
|
15596 | Ns(Dp(t), it), M.remove = true, n++;
|
15597 | }
|
15598 | Zt != I && !M.remove ? (Q0(Zt, M), M.remove = true, n++) : M.remove || n++;
|
15599 | }
|
15600 | K = K.filter(function(F) {
|
15601 | return !F.remove;
|
15602 | }), I.pseudos = K.filter(function(F) {
|
15603 | return F.type != "el";
|
15604 | }).concat(K.filter(function(F) {
|
15605 | return F.type == "el";
|
15606 | }));
|
15607 | }
|
15608 | t.specificity = n;
|
15609 | let y = p[p.length - 1], v = p.find(function(C) {
|
15610 | return C.isScope;
|
15611 | });
|
15612 | if (!v && (r.id || p[0].nestingOperator)) {
|
15613 | let C = p.findIndex(function(D) {
|
15614 | return D.isScoped;
|
15615 | }), L = C == 0 ? t : p[C - 1];
|
15616 | v = L.rule = {isScope: true, rule: p[C], classNames: [], type: "rule"};
|
15617 | }
|
15618 | !v && p[0].implicitScope && (p[0].isScope = true, v = p[0], v.isScoped = false);
|
15619 | for (let C = 0, L = Ei(p), D = L.length; C < D; C++) {
|
15620 | let I = L[C];
|
15621 | I.isScoped && r.scope && Lp(I, r.scope.cssns());
|
15622 | }
|
15623 | if (v && r.scope && !(!v.classNames.length && !((w = v.pseudos) == null ? void 0 : w.length) && v != y && v == p[0] && !r.id && (!v.rule || !v.rule.op))) {
|
15624 | let C = r.id || (r.scope.cssid ? r.scope.cssid() : r.scope.cssns());
|
15625 | Lp(v, C);
|
15626 | }
|
15627 | let d = 0;
|
15628 | for (let C = 0, L = Ei(p), D = L.length; C < D; C++) {
|
15629 | let I = L[C];
|
15630 | if (I.isScope)
|
15631 | continue;
|
15632 | !(((k = I.metas) == null ? void 0 : k.length) || 0) && (((T = I.classNames) == null ? void 0 : T.length) || ((S = I == null ? void 0 : I.pseudos) == null ? void 0 : S.length)) && (d += 1);
|
15633 | }
|
15634 | return d > 1 && (d = 1), l = d, r.inline && (a = 3, l = 0), r.type == "component" && (a = y.isScope ? 0 : 1), r.type == "scoped" && (a = y.isScope ? 2 : 1), y.s1 = Math.max(o, a), y.s2 = l, t;
|
15635 | }
|
15636 | function Pp(t, e, r = {}) {
|
15637 | let i = [""], s = [i], n = t.selectors || [t];
|
15638 | t[Cp] = [];
|
15639 | for (let a = 0, l = Ei(n), p = l.length; a < p; a++) {
|
15640 | let c = l[a], _ = Op(c);
|
15641 | c[J0] = _;
|
15642 | let f = c.media.length ? "@media " + c.media.join(" and ") : "";
|
15643 | c[Z0] = f, f != i[0] && s.push(i = [f]), i.push(_), t[Cp].push(c);
|
15644 | }
|
15645 | let o = [];
|
15646 | for (let a = 0, l = Ei(s), p = l.length; a < p; a++) {
|
15647 | let c = l[a];
|
15648 | if (!c[1])
|
15649 | continue;
|
15650 | let _ = c.slice(1).join(",") + " {$CONTENT$}";
|
15651 | c[0] && (_ = c[0] + `{
|
15652 | ` + _ + `
|
15653 | }`), o.push(_);
|
15654 | }
|
15655 | return o.join(`
|
15656 | `).replace(/\$CONTENT\$/g, e);
|
15657 | }
|
15658 | function Bl(t, e) {
|
15659 | let r = t.split(","), i = e.split(","), s = [];
|
15660 | for (let n = 0, o = Ei(i), a = o.length; n < a; n++) {
|
15661 | let l = o[n];
|
15662 | for (let p = 0, c = Ei(r), _ = c.length; p < _; p++) {
|
15663 | let f = c[p], m = l;
|
15664 | m.indexOf("&") >= 0 ? m = m.replace("&", f) : m = f + " " + m, s.push(m);
|
15665 | }
|
15666 | }
|
15667 | return s.join(",");
|
15668 | }
|
15669 | function Mp(t, e) {
|
15670 | let r = Np(t);
|
15671 | return r && Fp(r, null, e);
|
15672 | }
|
15673 | var Jp = {defaultToken: "", tokenPostfix: ".xml", ignoreCase: true, qualifiedName: /(?:[\w\.\-]+:)?[\w\.\-]+/, tokenizer: {root: [[/[^<&]+/, ""], {include: "@whitespace"}, [/(<)(@qualifiedName)/, [{token: "delimiter"}, {token: "tag", next: "@tag"}]], [/(<\/)(@qualifiedName)(\s*)(>)/, [{token: "delimiter"}, {token: "tag"}, "", {token: "delimiter"}]], [/(<\?)(@qualifiedName)/, [{token: "delimiter"}, {token: "metatag", next: "@tag"}]], [/(<\!)(@qualifiedName)/, [{token: "delimiter"}, {token: "metatag", next: "@tag"}]], [/<\!\[CDATA\[/, {token: "delimiter.cdata", next: "@cdata"}], [/&\w+;/, "string.escape"]], cdata: [[/[^\]]+/, ""], [/\]\]>/, {token: "delimiter.cdata", next: "@pop"}], [/\]/, ""]], tag: [[/[ \t\r\n]+/, ""], [/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name", "", "attribute.value"]], [/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/, ["attribute.name", "", "attribute.value"]], [/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/, ["attribute.name", "", "attribute.value"]], [/@qualifiedName/, "attribute.name"], [/\?>/, {token: "delimiter", next: "@pop"}], [/(\/)(>)/, [{token: "tag"}, {token: "delimiter", next: "@pop"}]], [/>/, {token: "delimiter", next: "@pop"}]], whitespace: [[/[ \t\r\n]+/, ""], [/<!--/, {token: "comment", next: "@comment"}]], comment: [[/[^<\-]+/, "comment.content"], [/-->/, {token: "comment", next: "@pop"}], [/<!--/, "comment.content.invalid"], [/[<\-]/, "comment.content"]]}};
|
15674 | var ql = {};
|
15675 | var ko = class {
|
15676 | static getTokenizer(e) {
|
15677 | return e == "xml" && !ql[e] ? this.createTokenizer("xml", Jp) : ql[e];
|
15678 | }
|
15679 | static createTokenizer(e, r) {
|
15680 | let i = E1(e, r);
|
15681 | return ql[e] = new oa(e, i);
|
15682 | }
|
15683 | };
|
15684 | var Rc = {};
|
15685 | Fi(Rc, {CompletionTypes: () => Fr, Group: () => Le, ImbaDocument: () => vn, KeywordTypes: () => zt, Keywords: () => la, M: () => Be, Monarch: () => ko, Node: () => ca, Position: () => _n, Range: () => ts, Scope: () => Ui, SemanticTokenModifiers: () => oh, SemanticTokenTypes: () => uo, Sym: () => rs, SymbolFlags: () => Mt, SymbolKind: () => pr, Token: () => Ti, grammar: () => S1, highlight: () => P3, lexer: () => yn});
|
15686 | function D_(t) {
|
15687 | let e;
|
15688 | return t ? (e = t.toIterable) ? e.call(t) : t : [];
|
15689 | }
|
15690 | var F_ = {"&": "&", "<": "<", ">": ">", '"': """, "'": "'"};
|
15691 | var P_ = {"[": "square open", "]": "square close", "{": "curly open", "}": "curly close", "(": "paren open", ")": "paren close"};
|
15692 | function F3(t) {
|
15693 | return t.replace(/[\&\<\>]/g, function(e) {
|
15694 | return F_[e];
|
15695 | });
|
15696 | }
|
15697 | function M_(t) {
|
15698 | return t.join(" ").replace(/[\[\]\{\}\(\)]/g, function(e) {
|
15699 | return P_[e];
|
15700 | });
|
15701 | }
|
15702 | function P3(t, {verbose: e = false}) {
|
15703 | let r = [], i = 0, s = 0, n = [];
|
15704 | for (let o = 0, a = D_(t), l = a.length; o < l; o++) {
|
15705 | let p = a[o], c = p.value, _ = p.type.split("."), [f, m] = _, g = p.mods;
|
15706 | if (p.var) {
|
15707 | let b = n.indexOf(p.var);
|
15708 | b == -1 && (b = n.push(p.var) - 1), _.push("vref"), _.push("var" + b), _.push(p.var.type + "-ref"), g |= p.var.mods;
|
15709 | }
|
15710 | if (g & Be.Declaration && _.push("decl"), g & Be.Root && _.push("root"), g & Be.Local && _.push("local"), p.end && p.end.start == p && r.push("<b>"), !((m == "start" || m == "open") && (r.push("<b class='" + f + "'>"), !c))) {
|
15711 | if ((m == "end" || m == "close") && !c) {
|
15712 | r.push("</b>");
|
15713 | continue;
|
15714 | }
|
15715 | if (f == "push") {
|
15716 | c = String(++i);
|
15717 | let b = m.indexOf("_") >= 0 ? "group" : "scope", N = p.scope && p.scope.end;
|
15718 | r.push("<div class='" + b + "-" + m.split("_").pop() + " _" + m + " l" + i + " o" + p.offset + " e" + (N && N.offset) + "'>");
|
15719 | continue;
|
15720 | } else if (f == "pop") {
|
15721 | c = String(--i), r.push("</div>");
|
15722 | continue;
|
15723 | }
|
15724 | f != "white" && f != "line" ? c = "<i class='" + M_(_) + " o" + p.offset + "'>" + F3(c || "") + "</i>" : f == "white" && c != `
|
15725 | ` && (c = "<i raw='" + JSON.stringify(c) + "'>" + F3(c || "") + "</i>"), r.push(c), (m == "end" || m == "close" || p.start) && r.push("</b>");
|
15726 | }
|
15727 | }
|
15728 | return r.join("");
|
15729 | }
|
15730 | var stdin_default = V3();
|
15731 | |
15732 |
|
15733 |
|
15734 |
|
15735 |
|
15736 |
|
15737 |
|
15738 |
|
15739 | return stdin_exports;
|
15740 | })();
|