vue-data-ui 2.2.89 → 2.2.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-table-d-VcuH-r.js +1488 -0
- package/dist/{index.es-5fba9ad2.js → index.es-Dc9Fd4o6.js} +173 -301
- package/dist/legend-DJCYLsl_.js +61 -0
- package/dist/{purify.es-00041b4f.js → purify.es-BwOkayRK.js} +9 -18
- package/dist/style.css +1 -1
- package/dist/themes-lgjsYHsH.js +4967 -0
- package/dist/title-BF-9Qcni.js +56 -0
- package/dist/tooltip-D85WEOKi.js +94 -0
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/user-options-DZgCz8UA.js +415 -0
- package/dist/vue-data-ui.js +455 -62
- package/dist/vue-ui-3d-bar-DW7kGJSz.js +20360 -0
- package/dist/vue-ui-age-pyramid-4hcuKpFY.js +781 -0
- package/dist/vue-ui-annotator-C83FVvl8.js +2175 -0
- package/dist/vue-ui-candlestick-diclGj95.js +807 -0
- package/dist/vue-ui-chestnut-ACetHLdG.js +1049 -0
- package/dist/vue-ui-cursor-Rx7UNaYT.js +229 -0
- package/dist/vue-ui-dashboard-B3PlN0ks.js +231 -0
- package/dist/vue-ui-digits-CxMXID42.js +154 -0
- package/dist/vue-ui-donut-DMiwVXNd.js +1534 -0
- package/dist/vue-ui-dumbbell-B_X1T8TR.js +621 -0
- package/dist/vue-ui-flow-B72wzQ6V.js +451 -0
- package/dist/vue-ui-galaxy-DXX5yivT.js +482 -0
- package/dist/vue-ui-gauge-Cs9PDurH.js +466 -0
- package/dist/vue-ui-heatmap-PcoNSLdN.js +581 -0
- package/dist/vue-ui-kpi-DchEmPtB.js +55 -0
- package/dist/vue-ui-mini-loader-DltJLkqy.js +131 -0
- package/dist/vue-ui-molecule-CWvukBzs.js +746 -0
- package/dist/vue-ui-mood-radar-DEfdtIi8.js +544 -0
- package/dist/vue-ui-nested-donuts-9URpqgXE.js +768 -0
- package/dist/vue-ui-onion-C0eowUT6.js +551 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +647 -0
- package/dist/vue-ui-quadrant-_ddVAm9V.js +1174 -0
- package/dist/vue-ui-quick-chart-Cio0hDYO.js +1310 -0
- package/dist/vue-ui-radar-Dyg38i33.js +853 -0
- package/dist/vue-ui-rating-CE1Lmwd2.js +271 -0
- package/dist/vue-ui-relation-circle-BMlB3k3d.js +303 -0
- package/dist/vue-ui-rings-BuXeijvb.js +507 -0
- package/dist/vue-ui-scatter-B1hZfOua.js +870 -0
- package/dist/vue-ui-screenshot-0QXgxzGs.js +160 -0
- package/dist/vue-ui-smiley-B7kR7exr.js +763 -0
- package/dist/vue-ui-spark-trend-BmL2KiYL.js +245 -0
- package/dist/vue-ui-sparkgauge-BMzFv14L.js +158 -0
- package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +243 -0
- package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +244 -0
- package/dist/vue-ui-strip-plot-DyN6P0JO.js +614 -0
- package/dist/vue-ui-table-DM3zL89q.js +2180 -0
- package/dist/vue-ui-table-heatmap-gWx0Nslu.js +237 -0
- package/dist/vue-ui-thermometer-Bcqv5kd_.js +384 -0
- package/dist/vue-ui-timer-BIFxjujK.js +451 -0
- package/dist/vue-ui-tiremarks-zBwHpED_.js +248 -0
- package/dist/vue-ui-treemap-BaplVc_z.js +719 -0
- package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +734 -0
- package/dist/vue-ui-waffle-COOzH7M3.js +635 -0
- package/dist/vue-ui-wheel-BEpuVTBk.js +226 -0
- package/dist/vue-ui-word-cloud-DNqxAAiX.js +344 -0
- package/dist/vue-ui-xy-_mHq-czW.js +2058 -0
- package/dist/vue-ui-xy-canvas-DqX8Gee5.js +1003 -0
- package/package.json +5 -5
- package/dist/index-fb63a0e3.js +0 -58150
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { _ as Ha } from "./
|
|
2
|
-
import "vue";
|
|
1
|
+
import { _ as Ha } from "./vue-ui-3d-bar-DW7kGJSz.js";
|
|
3
2
|
var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
3
|
function Vo(a) {
|
|
5
4
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
@@ -10,7 +9,7 @@ var Gt = function(a) {
|
|
|
10
9
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
11
10
|
Gt(typeof globalThis == "object" && globalThis) || Gt(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
12
11
|
Gt(typeof self == "object" && self) || Gt(typeof Tt == "object" && Tt) || // eslint-disable-next-line no-new-func -- fallback
|
|
13
|
-
function() {
|
|
12
|
+
/* @__PURE__ */ function() {
|
|
14
13
|
return this;
|
|
15
14
|
}() || Tt || Function("return this")()
|
|
16
15
|
), ot = {}, L = function(a) {
|
|
@@ -54,8 +53,7 @@ var xr = function(a, e) {
|
|
|
54
53
|
} : Zr, je = function(a) {
|
|
55
54
|
return a == null;
|
|
56
55
|
}, zl = je, Gl = TypeError, ge = function(a) {
|
|
57
|
-
if (zl(a))
|
|
58
|
-
throw Gl("Can't call method on " + a);
|
|
56
|
+
if (zl(a)) throw Gl("Can't call method on " + a);
|
|
59
57
|
return a;
|
|
60
58
|
}, Hl = zo, Yl = ge, Ct = function(a) {
|
|
61
59
|
return Hl(Yl(a));
|
|
@@ -93,16 +91,14 @@ var Oi = cr, On = Oi, Jl = L, eh = U, th = eh.String, Wo = !!Object.getOwnProper
|
|
|
93
91
|
return "Object";
|
|
94
92
|
}
|
|
95
93
|
}, lh = D, hh = Or, vh = TypeError, Se = function(a) {
|
|
96
|
-
if (lh(a))
|
|
97
|
-
return a;
|
|
94
|
+
if (lh(a)) return a;
|
|
98
95
|
throw vh(hh(a) + " is not a function");
|
|
99
96
|
}, fh = Se, ch = je, ut = function(a, e) {
|
|
100
97
|
var t = a[e];
|
|
101
98
|
return ch(t) ? void 0 : fh(t);
|
|
102
99
|
}, ta = Y, ra = D, aa = Te, gh = TypeError, dh = function(a, e) {
|
|
103
100
|
var t, r;
|
|
104
|
-
if (e === "string" && ra(t = a.toString) && !aa(r = ta(t, a)) || ra(t = a.valueOf) && !aa(r = ta(t, a)) || e !== "string" && ra(t = a.toString) && !aa(r = ta(t, a)))
|
|
105
|
-
return r;
|
|
101
|
+
if (e === "string" && ra(t = a.toString) && !aa(r = ta(t, a)) || ra(t = a.valueOf) && !aa(r = ta(t, a)) || e !== "string" && ra(t = a.toString) && !aa(r = ta(t, a))) return r;
|
|
106
102
|
throw gh("Can't convert object to primitive value");
|
|
107
103
|
}, Ko = { exports: {} }, En = U, ph = Object.defineProperty, Ei = function(a, e) {
|
|
108
104
|
try {
|
|
@@ -130,12 +126,10 @@ var wi = Ko.exports, xh = ge, Th = Object, Er = function(a) {
|
|
|
130
126
|
}, Ph = U, Rh = wi, Cn = le, Ih = Zo, Nh = Wo, Mh = qo, Je = Ph.Symbol, ia = Rh("wks"), _h = Mh ? Je.for || Je : Je && Je.withoutSetter || Ih, G = function(a) {
|
|
131
127
|
return Cn(ia, a) || (ia[a] = Nh && Cn(Je, a) ? Je[a] : _h("Symbol." + a)), ia[a];
|
|
132
128
|
}, Dh = Y, An = Te, Pn = Qo, Vh = ut, Lh = dh, kh = G, Bh = TypeError, Fh = kh("toPrimitive"), jh = function(a, e) {
|
|
133
|
-
if (!An(a) || Pn(a))
|
|
134
|
-
return a;
|
|
129
|
+
if (!An(a) || Pn(a)) return a;
|
|
135
130
|
var t = Vh(a, Fh), r;
|
|
136
131
|
if (t) {
|
|
137
|
-
if (e === void 0 && (e = "default"), r = Dh(t, a, e), !An(r) || Pn(r))
|
|
138
|
-
return r;
|
|
132
|
+
if (e === void 0 && (e = "default"), r = Dh(t, a, e), !An(r) || Pn(r)) return r;
|
|
139
133
|
throw Bh("Can't convert object to primitive value");
|
|
140
134
|
}
|
|
141
135
|
return e === void 0 && (e = "number"), Lh(a, e);
|
|
@@ -152,13 +146,11 @@ var wi = Ko.exports, xh = ge, Th = Object, Er = function(a) {
|
|
|
152
146
|
}).a != 7;
|
|
153
147
|
}), qh = ce, Qh = Y, Kh = Lo, Zh = xr, Jh = Ct, ev = Ci, tv = le, rv = Jo, In = Object.getOwnPropertyDescriptor;
|
|
154
148
|
ot.f = qh ? In : function(e, t) {
|
|
155
|
-
if (e = Jh(e), t = ev(t), rv)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
if (tv(e, t))
|
|
161
|
-
return Zh(!Qh(Kh.f, e, t), e[t]);
|
|
149
|
+
if (e = Jh(e), t = ev(t), rv) try {
|
|
150
|
+
return In(e, t);
|
|
151
|
+
} catch {
|
|
152
|
+
}
|
|
153
|
+
if (tv(e, t)) return Zh(!Qh(Kh.f, e, t), e[t]);
|
|
162
154
|
};
|
|
163
155
|
var de = {}, av = ce, iv = L, eu = av && iv(function() {
|
|
164
156
|
return Object.defineProperty(function() {
|
|
@@ -167,8 +159,7 @@ var de = {}, av = ce, iv = L, eu = av && iv(function() {
|
|
|
167
159
|
writable: !1
|
|
168
160
|
}).prototype != 42;
|
|
169
161
|
}), nv = Te, sv = String, ov = TypeError, K = function(a) {
|
|
170
|
-
if (nv(a))
|
|
171
|
-
return a;
|
|
162
|
+
if (nv(a)) return a;
|
|
172
163
|
throw ov(sv(a) + " is not an object");
|
|
173
164
|
}, uv = ce, lv = Jo, hv = eu, Yt = K, Nn = Ci, vv = TypeError, na = Object.defineProperty, fv = Object.getOwnPropertyDescriptor, sa = "enumerable", oa = "configurable", ua = "writable";
|
|
174
165
|
de.f = uv ? hv ? function(e, t, r) {
|
|
@@ -182,13 +173,11 @@ de.f = uv ? hv ? function(e, t, r) {
|
|
|
182
173
|
}
|
|
183
174
|
return na(e, t, r);
|
|
184
175
|
} : na : function(e, t, r) {
|
|
185
|
-
if (Yt(e), t = Nn(t), Yt(r), lv)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if ("get" in r || "set" in r)
|
|
191
|
-
throw vv("Accessors not supported");
|
|
176
|
+
if (Yt(e), t = Nn(t), Yt(r), lv) try {
|
|
177
|
+
return na(e, t, r);
|
|
178
|
+
} catch {
|
|
179
|
+
}
|
|
180
|
+
if ("get" in r || "set" in r) throw vv("Accessors not supported");
|
|
192
181
|
return "value" in r && (e[t] = r.value), e;
|
|
193
182
|
};
|
|
194
183
|
var cv = ce, gv = de, dv = xr, At = cv ? function(a, e, t) {
|
|
@@ -219,8 +208,7 @@ var Pi = Qa.inspectSource, Ov = U, Ev = D, Mn = Ov.WeakMap, $v = Ev(Mn) && /nati
|
|
|
219
208
|
if (Av || ha.state) {
|
|
220
209
|
var fe = ha.state || (ha.state = new Mv());
|
|
221
210
|
fe.get = fe.get, fe.has = fe.has, fe.set = fe.set, gr = function(a, e) {
|
|
222
|
-
if (fe.has(a))
|
|
223
|
-
throw Ka(Dn);
|
|
211
|
+
if (fe.has(a)) throw Ka(Dn);
|
|
224
212
|
return e.facade = a, fe.set(a, e), e;
|
|
225
213
|
}, Et = function(a) {
|
|
226
214
|
return fe.get(a) || {};
|
|
@@ -230,8 +218,7 @@ if (Av || ha.state) {
|
|
|
230
218
|
} else {
|
|
231
219
|
var Xe = Iv("state");
|
|
232
220
|
Nv[Xe] = !0, gr = function(a, e) {
|
|
233
|
-
if (la(a, Xe))
|
|
234
|
-
throw Ka(Dn);
|
|
221
|
+
if (la(a, Xe)) throw Ka(Dn);
|
|
235
222
|
return e.facade = a, Rv(a, Xe, e), e;
|
|
236
223
|
}, Et = function(a) {
|
|
237
224
|
return la(a, Xe) ? a[Xe] : {};
|
|
@@ -296,12 +283,9 @@ var nu = tu.exports, Wv = D, qv = de, Qv = nu, Kv = Ei, ze = function(a, e, t, r
|
|
|
296
283
|
var i = lf(e), n = vf(i), o = hf(r, n), s;
|
|
297
284
|
if (a && t != t) {
|
|
298
285
|
for (; n > o; )
|
|
299
|
-
if (s = i[o++], s != s)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
for (; n > o; o++)
|
|
303
|
-
if ((a || o in i) && i[o] === t)
|
|
304
|
-
return a || o || 0;
|
|
286
|
+
if (s = i[o++], s != s) return !0;
|
|
287
|
+
} else for (; n > o; o++)
|
|
288
|
+
if ((a || o in i) && i[o] === t) return a || o || 0;
|
|
305
289
|
return !a && -1;
|
|
306
290
|
};
|
|
307
291
|
}, uu = {
|
|
@@ -313,10 +297,8 @@ var nu = tu.exports, Wv = D, qv = de, Qv = nu, Kv = Ei, ze = function(a, e, t, r
|
|
|
313
297
|
indexOf: Ln(!1)
|
|
314
298
|
}, ff = k, va = le, cf = Ct, gf = uu.indexOf, df = Ii, kn = ff([].push), lu = function(a, e) {
|
|
315
299
|
var t = cf(a), r = 0, i = [], n;
|
|
316
|
-
for (n in t)
|
|
317
|
-
|
|
318
|
-
for (; e.length > r; )
|
|
319
|
-
va(t, n = e[r++]) && (~gf(i, n) || kn(i, n));
|
|
300
|
+
for (n in t) !va(df, n) && va(t, n) && kn(i, n);
|
|
301
|
+
for (; e.length > r; ) va(t, n = e[r++]) && (~gf(i, n) || kn(i, n));
|
|
320
302
|
return i;
|
|
321
303
|
}, Mi = [
|
|
322
304
|
"constructor",
|
|
@@ -347,23 +329,20 @@ var bf = Ue, xf = k, Tf = su, Sf = hu, Of = K, Ef = xf([].concat), $f = bf("Refl
|
|
|
347
329
|
return String(a).replace(Nf, ".").toLowerCase();
|
|
348
330
|
}, _f = Pt.data = {}, Df = Pt.NATIVE = "N", Vf = Pt.POLYFILL = "P", vu = Pt, fa = U, Lf = ot.f, kf = At, Bf = ze, Ff = Ei, jf = Pf, Uf = vu, ee = function(a, e) {
|
|
349
331
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
|
350
|
-
if (r ? o = fa : i ? o = fa[t] || Ff(t, {}) : o = (fa[t] || {}).prototype, o)
|
|
351
|
-
|
|
352
|
-
if (l
|
|
353
|
-
|
|
354
|
-
continue;
|
|
355
|
-
jf(l, u);
|
|
356
|
-
}
|
|
357
|
-
(a.sham || u && u.sham) && kf(l, "sham", !0), Bf(o, s, l, a);
|
|
332
|
+
if (r ? o = fa : i ? o = fa[t] || Ff(t, {}) : o = (fa[t] || {}).prototype, o) for (s in e) {
|
|
333
|
+
if (l = e[s], a.dontCallGetSet ? (h = Lf(o, s), u = h && h.value) : u = o[s], n = Uf(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
334
|
+
if (typeof l == typeof u) continue;
|
|
335
|
+
jf(l, u);
|
|
358
336
|
}
|
|
337
|
+
(a.sham || u && u.sham) && kf(l, "sham", !0), Bf(o, s, l, a);
|
|
338
|
+
}
|
|
359
339
|
}, zf = Fe, Rt = typeof process < "u" && zf(process) == "process", Gf = k, Hf = Se, Yf = function(a, e, t) {
|
|
360
340
|
try {
|
|
361
341
|
return Gf(Hf(Object.getOwnPropertyDescriptor(a, e)[t]));
|
|
362
342
|
} catch {
|
|
363
343
|
}
|
|
364
344
|
}, Xf = D, Wf = String, qf = TypeError, Qf = function(a) {
|
|
365
|
-
if (typeof a == "object" || Xf(a))
|
|
366
|
-
return a;
|
|
345
|
+
if (typeof a == "object" || Xf(a)) return a;
|
|
367
346
|
throw qf("Can't set " + Wf(a) + " as a prototype");
|
|
368
347
|
}, Kf = Yf, Zf = K, Jf = Qf, fu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
369
348
|
var a = !1, e = {}, t;
|
|
@@ -387,12 +366,11 @@ var bf = Ue, xf = k, Tf = su, Sf = hu, Of = K, Ef = xf([].concat), $f = bf("Refl
|
|
|
387
366
|
}
|
|
388
367
|
});
|
|
389
368
|
}, hc = Tr, vc = TypeError, fc = function(a, e) {
|
|
390
|
-
if (hc(e, a))
|
|
391
|
-
return a;
|
|
369
|
+
if (hc(e, a)) return a;
|
|
392
370
|
throw vc("Incorrect invocation");
|
|
393
371
|
}, cc = G, gc = cc("toStringTag"), cu = {};
|
|
394
372
|
cu[gc] = "z";
|
|
395
|
-
var dc = String(cu) === "[object z]", pc = dc, yc = D, ur = Fe, mc = G, bc = mc("toStringTag"), xc = Object, Tc = ur(function() {
|
|
373
|
+
var dc = String(cu) === "[object z]", pc = dc, yc = D, ur = Fe, mc = G, bc = mc("toStringTag"), xc = Object, Tc = ur(/* @__PURE__ */ function() {
|
|
396
374
|
return arguments;
|
|
397
375
|
}()) == "Arguments", Sc = function(a, e) {
|
|
398
376
|
try {
|
|
@@ -404,16 +382,14 @@ var dc = String(cu) === "[object z]", pc = dc, yc = D, ur = Fe, mc = G, bc = mc(
|
|
|
404
382
|
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = Sc(e = xc(a), bc)) == "string" ? t : Tc ? ur(e) : (r = ur(e)) == "Object" && yc(e.callee) ? "Arguments" : r;
|
|
405
383
|
}, Oc = k, Ec = L, gu = D, $c = Di, wc = Ue, Cc = Pi, du = function() {
|
|
406
384
|
}, Ac = [], pu = wc("Reflect", "construct"), Vi = /^\s*(?:class|function)\b/, Pc = Oc(Vi.exec), Rc = !Vi.exec(du), ft = function(e) {
|
|
407
|
-
if (!gu(e))
|
|
408
|
-
return !1;
|
|
385
|
+
if (!gu(e)) return !1;
|
|
409
386
|
try {
|
|
410
387
|
return pu(du, Ac, e), !0;
|
|
411
388
|
} catch {
|
|
412
389
|
return !1;
|
|
413
390
|
}
|
|
414
391
|
}, yu = function(e) {
|
|
415
|
-
if (!gu(e))
|
|
416
|
-
return !1;
|
|
392
|
+
if (!gu(e)) return !1;
|
|
417
393
|
switch ($c(e)) {
|
|
418
394
|
case "AsyncFunction":
|
|
419
395
|
case "GeneratorFunction":
|
|
@@ -433,8 +409,7 @@ var Ic = !pu || Ec(function() {
|
|
|
433
409
|
a = !0;
|
|
434
410
|
}) || a;
|
|
435
411
|
}) ? yu : ft, Nc = Ic, Mc = Or, _c = TypeError, Dc = function(a) {
|
|
436
|
-
if (Nc(a))
|
|
437
|
-
return a;
|
|
412
|
+
if (Nc(a)) return a;
|
|
438
413
|
throw _c(Mc(a) + " is not a constructor");
|
|
439
414
|
}, zn = K, Vc = Dc, Lc = je, kc = G, Bc = kc("species"), mu = function(a, e) {
|
|
440
415
|
var t = zn(a).constructor, r;
|
|
@@ -442,15 +417,13 @@ var Ic = !pu || Ec(function() {
|
|
|
442
417
|
}, Fc = br, bu = Function.prototype, Gn = bu.apply, Hn = bu.call, Li = typeof Reflect == "object" && Reflect.apply || (Fc ? Hn.bind(Gn) : function() {
|
|
443
418
|
return Hn.apply(Gn, arguments);
|
|
444
419
|
}), jc = Fe, Uc = k, It = function(a) {
|
|
445
|
-
if (jc(a) === "Function")
|
|
446
|
-
return Uc(a);
|
|
420
|
+
if (jc(a) === "Function") return Uc(a);
|
|
447
421
|
}, Yn = It, zc = Se, Gc = br, Hc = Yn(Yn.bind), ki = function(a, e) {
|
|
448
422
|
return zc(a), e === void 0 ? a : Gc ? Hc(a, e) : function() {
|
|
449
423
|
return a.apply(e, arguments);
|
|
450
424
|
};
|
|
451
425
|
}, Yc = Ue, xu = Yc("document", "documentElement"), Xc = k, Wc = Xc([].slice), qc = TypeError, Qc = function(a, e) {
|
|
452
|
-
if (a < e)
|
|
453
|
-
throw qc("Not enough arguments");
|
|
426
|
+
if (a < e) throw qc("Not enough arguments");
|
|
454
427
|
return a;
|
|
455
428
|
}, Kc = Sr, Tu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Kc), ae = U, Zc = Li, Jc = ki, Xn = D, eg = le, Su = L, Wn = xu, tg = Wc, qn = $r, rg = Qc, ag = Tu, ig = Rt, Ja = ae.setImmediate, ei = ae.clearImmediate, ng = ae.process, ca = ae.Dispatch, sg = ae.Function, Qn = ae.MessageChannel, og = ae.String, ga = 0, St = {}, Kn = "onreadystatechange", $t, Ne, da, pa;
|
|
456
429
|
Su(function() {
|
|
@@ -512,12 +485,11 @@ var $u = Eu, ug = Sr, lg = /ipad|iphone|ipod/i.test(ug) && typeof Pebble < "u",
|
|
|
512
485
|
if (!ti) {
|
|
513
486
|
var Qt = new cg(), Kt = function() {
|
|
514
487
|
var a, e;
|
|
515
|
-
for (ba && (a = as.domain) && a.exit(); e = Qt.get(); )
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
488
|
+
for (ba && (a = as.domain) && a.exit(); e = Qt.get(); ) try {
|
|
489
|
+
e();
|
|
490
|
+
} catch (t) {
|
|
491
|
+
throw Qt.head && We(), t;
|
|
492
|
+
}
|
|
521
493
|
a && a.enter();
|
|
522
494
|
};
|
|
523
495
|
!gg && !ba && !pg && ts && rs ? (xa = !0, Ta = rs.createTextNode(""), new ts(Kt).observe(Ta, { characterData: !0 }), We = function() {
|
|
@@ -547,8 +519,7 @@ var yg = ti, mg = function(a, e) {
|
|
|
547
519
|
Ot && Ot.prototype;
|
|
548
520
|
var Rg = Cg("species"), ri = !1, Cu = Eg(Og.PromiseRejectionEvent), Ig = $g("Promise", function() {
|
|
549
521
|
var a = wg(Ot), e = a !== String(Ot);
|
|
550
|
-
if (!e && Sa === 66)
|
|
551
|
-
return !0;
|
|
522
|
+
if (!e && Sa === 66) return !0;
|
|
552
523
|
if (!Sa || Sa < 51 || !/native code/.test(a)) {
|
|
553
524
|
var t = new Ot(function(n) {
|
|
554
525
|
n(1);
|
|
@@ -558,8 +529,7 @@ var Rg = Cg("species"), ri = !1, Cu = Eg(Og.PromiseRejectionEvent), Ig = $g("Pro
|
|
|
558
529
|
});
|
|
559
530
|
}, i = t.constructor = {};
|
|
560
531
|
if (i[Rg] = r, ri = t.then(function() {
|
|
561
|
-
}) instanceof r, !ri)
|
|
562
|
-
return !0;
|
|
532
|
+
}) instanceof r, !ri) return !0;
|
|
563
533
|
}
|
|
564
534
|
return !e && (Ag || Pg) && !Cu;
|
|
565
535
|
}), Nt = {
|
|
@@ -569,8 +539,7 @@ var Rg = Cg("species"), ri = !1, Cu = Eg(Og.PromiseRejectionEvent), Ig = $g("Pro
|
|
|
569
539
|
}, ht = {}, ss = Se, Ng = TypeError, Mg = function(a) {
|
|
570
540
|
var e, t;
|
|
571
541
|
this.promise = new a(function(r, i) {
|
|
572
|
-
if (e !== void 0 || t !== void 0)
|
|
573
|
-
throw Ng("Bad Promise constructor");
|
|
542
|
+
if (e !== void 0 || t !== void 0) throw Ng("Bad Promise constructor");
|
|
574
543
|
e = r, t = i;
|
|
575
544
|
}), this.resolve = ss(e), this.reject = ss(t);
|
|
576
545
|
};
|
|
@@ -621,8 +590,7 @@ var _g = ee, pr = Rt, we = U, nt = Y, os = ze, us = fu, Dg = _i, Vg = lc, Lg = S
|
|
|
621
590
|
if (!a.done) {
|
|
622
591
|
a.done = !0, t && (a = t);
|
|
623
592
|
try {
|
|
624
|
-
if (a.facade === e)
|
|
625
|
-
throw Nu("Promise can't be resolved itself");
|
|
593
|
+
if (a.facade === e) throw Nu("Promise can't be resolved itself");
|
|
626
594
|
var r = Vu(e);
|
|
627
595
|
r ? ji(function() {
|
|
628
596
|
var i = { done: !1 };
|
|
@@ -692,30 +660,25 @@ Vg(Ir);
|
|
|
692
660
|
var Mt = {}, ed = G, td = Mt, rd = ed("iterator"), ad = Array.prototype, id = function(a) {
|
|
693
661
|
return a !== void 0 && (td.Array === a || ad[rd] === a);
|
|
694
662
|
}, nd = Di, cs = ut, sd = je, od = Mt, ud = G, ld = ud("iterator"), Fu = function(a) {
|
|
695
|
-
if (!sd(a))
|
|
696
|
-
return cs(a, ld) || cs(a, "@@iterator") || od[nd(a)];
|
|
663
|
+
if (!sd(a)) return cs(a, ld) || cs(a, "@@iterator") || od[nd(a)];
|
|
697
664
|
}, hd = Y, vd = Se, fd = K, cd = Or, gd = Fu, dd = TypeError, pd = function(a, e) {
|
|
698
665
|
var t = arguments.length < 2 ? gd(a) : e;
|
|
699
|
-
if (vd(t))
|
|
700
|
-
return fd(hd(t, a));
|
|
666
|
+
if (vd(t)) return fd(hd(t, a));
|
|
701
667
|
throw dd(cd(a) + " is not iterable");
|
|
702
668
|
}, yd = Y, gs = K, md = ut, bd = function(a, e, t) {
|
|
703
669
|
var r, i;
|
|
704
670
|
gs(a);
|
|
705
671
|
try {
|
|
706
672
|
if (r = md(a, "return"), !r) {
|
|
707
|
-
if (e === "throw")
|
|
708
|
-
throw t;
|
|
673
|
+
if (e === "throw") throw t;
|
|
709
674
|
return t;
|
|
710
675
|
}
|
|
711
676
|
r = yd(r, a);
|
|
712
677
|
} catch (n) {
|
|
713
678
|
i = !0, r = n;
|
|
714
679
|
}
|
|
715
|
-
if (e === "throw")
|
|
716
|
-
|
|
717
|
-
if (i)
|
|
718
|
-
throw r;
|
|
680
|
+
if (e === "throw") throw t;
|
|
681
|
+
if (i) throw r;
|
|
719
682
|
return gs(r), t;
|
|
720
683
|
}, xd = ki, Td = Y, Sd = K, Od = Or, Ed = id, $d = Pr, ds = Tr, wd = pd, Cd = Fu, ps = bd, Ad = TypeError, hr = function(a, e) {
|
|
721
684
|
this.stopped = a, this.result = e;
|
|
@@ -730,12 +693,10 @@ var Mt = {}, ed = G, td = Mt, rd = ed("iterator"), ad = Array.prototype, id = fu
|
|
|
730
693
|
else if (o)
|
|
731
694
|
l = a;
|
|
732
695
|
else {
|
|
733
|
-
if (h = Cd(a), !h)
|
|
734
|
-
throw Ad(Od(a) + " is not iterable");
|
|
696
|
+
if (h = Cd(a), !h) throw Ad(Od(a) + " is not iterable");
|
|
735
697
|
if (Ed(h)) {
|
|
736
698
|
for (f = 0, c = $d(a); c > f; f++)
|
|
737
|
-
if (v = y(a[f]), v && ds(ys, v))
|
|
738
|
-
return v;
|
|
699
|
+
if (v = y(a[f]), v && ds(ys, v)) return v;
|
|
739
700
|
return new hr(!1);
|
|
740
701
|
}
|
|
741
702
|
l = wd(a, h);
|
|
@@ -746,8 +707,7 @@ var Mt = {}, ed = G, td = Mt, rd = ed("iterator"), ad = Array.prototype, id = fu
|
|
|
746
707
|
} catch (x) {
|
|
747
708
|
ps(l, "throw", x);
|
|
748
709
|
}
|
|
749
|
-
if (typeof v == "object" && v && ds(ys, v))
|
|
750
|
-
return v;
|
|
710
|
+
if (typeof v == "object" && v && ds(ys, v)) return v;
|
|
751
711
|
}
|
|
752
712
|
return new hr(!1);
|
|
753
713
|
}, Pd = G, Uu = Pd("iterator"), zu = !1;
|
|
@@ -768,8 +728,7 @@ try {
|
|
|
768
728
|
} catch {
|
|
769
729
|
}
|
|
770
730
|
var Id = function(a, e) {
|
|
771
|
-
if (!e && !zu)
|
|
772
|
-
return !1;
|
|
731
|
+
if (!e && !zu) return !1;
|
|
773
732
|
var t = !1;
|
|
774
733
|
try {
|
|
775
734
|
var r = {};
|
|
@@ -831,8 +790,7 @@ ep({ target: "Promise", stat: !0, forced: ap }, {
|
|
|
831
790
|
}
|
|
832
791
|
});
|
|
833
792
|
var ip = K, np = Te, sp = ht, op = function(a, e) {
|
|
834
|
-
if (ip(a), np(e) && e.constructor === a)
|
|
835
|
-
return e;
|
|
793
|
+
if (ip(a), np(e) && e.constructor === a) return e;
|
|
836
794
|
var t = sp.f(a), r = t.resolve;
|
|
837
795
|
return r(e), t.promise;
|
|
838
796
|
}, up = ee, lp = Ue, hp = Nt.CONSTRUCTOR, vp = op;
|
|
@@ -867,8 +825,7 @@ function xe(a) {
|
|
|
867
825
|
};
|
|
868
826
|
}
|
|
869
827
|
var fp = Di, cp = String, pe = function(a) {
|
|
870
|
-
if (fp(a) === "Symbol")
|
|
871
|
-
throw TypeError("Cannot convert a Symbol value to a string");
|
|
828
|
+
if (fp(a) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
|
|
872
829
|
return cp(a);
|
|
873
830
|
}, gp = K, Hu = function() {
|
|
874
831
|
var a = gp(this), e = "";
|
|
@@ -890,8 +847,7 @@ var fp = Di, cp = String, pe = function(a) {
|
|
|
890
847
|
}, Tp = ce, Sp = eu, Op = de, Ep = K, $p = Ct, wp = xp;
|
|
891
848
|
Xu.f = Tp && !Sp ? Object.defineProperties : function(e, t) {
|
|
892
849
|
Ep(e);
|
|
893
|
-
for (var r = $p(t), i = wp(t), n = i.length, o = 0, s; n > o; )
|
|
894
|
-
Op.f(e, s = i[o++], r[s]);
|
|
850
|
+
for (var r = $p(t), i = wp(t), n = i.length, o = 0, s; n > o; ) Op.f(e, s = i[o++], r[s]);
|
|
895
851
|
return e;
|
|
896
852
|
};
|
|
897
853
|
var Cp = K, Ap = Xu, Ss = Mi, Pp = Ii, Rp = xu, Ip = $r, Np = Ri, Os = ">", Es = "<", oi = "prototype", ui = "script", Wu = Np("IE_PROTO"), Ea = function() {
|
|
@@ -910,8 +866,7 @@ var Cp = K, Ap = Xu, Ss = Mi, Pp = Ii, Rp = xu, Ip = $r, Np = Ri, Os = ">", Es =
|
|
|
910
866
|
} catch {
|
|
911
867
|
}
|
|
912
868
|
vr = typeof document < "u" ? document.domain && er ? $s(er) : Mp() : $s(er);
|
|
913
|
-
for (var a = Ss.length; a--; )
|
|
914
|
-
delete vr[oi][Ss[a]];
|
|
869
|
+
for (var a = Ss.length; a--; ) delete vr[oi][Ss[a]];
|
|
915
870
|
return vr();
|
|
916
871
|
};
|
|
917
872
|
Pp[Wu] = !0;
|
|
@@ -989,8 +944,7 @@ var Cs = It, As = ze, ry = Mr, Ps = L, Ku = G, ay = At, iy = Ku("species"), wa =
|
|
|
989
944
|
var r = Ns(t, a, e);
|
|
990
945
|
return r !== null && fy(r), r;
|
|
991
946
|
}
|
|
992
|
-
if (gy(a) === "RegExp")
|
|
993
|
-
return Ns(dy, a, e);
|
|
947
|
+
if (gy(a) === "RegExp") return Ns(dy, a, e);
|
|
994
948
|
throw py("RegExp#exec called on incompatible receiver");
|
|
995
949
|
}, yy = Y, my = qi, by = K, xy = je, Ty = lt, Ca = pe, Sy = ge, Oy = ut, Ey = Ki, Ms = Zi;
|
|
996
950
|
my("match", function(a, e, t) {
|
|
@@ -1005,10 +959,8 @@ my("match", function(a, e, t) {
|
|
|
1005
959
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
1006
960
|
function(r) {
|
|
1007
961
|
var i = by(this), n = Ca(r), o = t(e, i, n);
|
|
1008
|
-
if (o.done)
|
|
1009
|
-
|
|
1010
|
-
if (!i.global)
|
|
1011
|
-
return Ms(i, n);
|
|
962
|
+
if (o.done) return o.value;
|
|
963
|
+
if (!i.global) return Ms(i, n);
|
|
1012
964
|
var s = i.unicode;
|
|
1013
965
|
i.lastIndex = 0;
|
|
1014
966
|
for (var u = [], l = 0, h; (h = Ms(i, n)) !== null; ) {
|
|
@@ -1037,8 +989,7 @@ var Ji = k, $y = Er, wy = Math.floor, Aa = Ji("".charAt), Cy = Ji("".replace), P
|
|
|
1037
989
|
break;
|
|
1038
990
|
default:
|
|
1039
991
|
var c = +h;
|
|
1040
|
-
if (c === 0)
|
|
1041
|
-
return l;
|
|
992
|
+
if (c === 0) return l;
|
|
1042
993
|
if (c > s) {
|
|
1043
994
|
var v = wy(c / 10);
|
|
1044
995
|
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Aa(h, 1) : r[v - 1] + Aa(h, 1) : l;
|
|
@@ -1075,8 +1026,7 @@ Ny("replace", function(a, e, t) {
|
|
|
1075
1026
|
var o = _y(this), s = qe(i);
|
|
1076
1027
|
if (typeof n == "string" && Ds(n, r) === -1 && Ds(n, "$<") === -1) {
|
|
1077
1028
|
var u = t(e, o, s, n);
|
|
1078
|
-
if (u.done)
|
|
1079
|
-
return u.value;
|
|
1029
|
+
if (u.done) return u.value;
|
|
1080
1030
|
}
|
|
1081
1031
|
var l = Dy(n);
|
|
1082
1032
|
l || (n = qe(n));
|
|
@@ -1087,15 +1037,13 @@ Ny("replace", function(a, e, t) {
|
|
|
1087
1037
|
}
|
|
1088
1038
|
for (var c = []; ; ) {
|
|
1089
1039
|
var v = zy(o, s);
|
|
1090
|
-
if (v === null || (Ra(c, v), !h))
|
|
1091
|
-
break;
|
|
1040
|
+
if (v === null || (Ra(c, v), !h)) break;
|
|
1092
1041
|
var d = qe(v[0]);
|
|
1093
1042
|
d === "" && (o.lastIndex = Fy(s, ky(o.lastIndex), f));
|
|
1094
1043
|
}
|
|
1095
1044
|
for (var g = "", p = 0, y = 0; y < c.length; y++) {
|
|
1096
1045
|
v = c[y];
|
|
1097
|
-
for (var x = qe(v[0]), b = Hy(Yy(Ly(v.index), s.length), 0), T = [], $ = 1; $ < v.length; $++)
|
|
1098
|
-
Ra(T, Wy(v[$]));
|
|
1046
|
+
for (var x = qe(v[0]), b = Hy(Yy(Ly(v.index), s.length), 0), T = [], $ = 1; $ < v.length; $++) Ra(T, Wy(v[$]));
|
|
1099
1047
|
var E = v.groups;
|
|
1100
1048
|
if (l) {
|
|
1101
1049
|
var S = Xy([x], T, b, s);
|
|
@@ -1152,8 +1100,7 @@ var ym = function(a) {
|
|
|
1152
1100
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
|
1153
1101
|
}), xm = le, Tm = D, Sm = Er, Om = Ri, Em = bm, Fs = Om("IE_PROTO"), di = Object, $m = di.prototype, tl = Em ? di.getPrototypeOf : function(a) {
|
|
1154
1102
|
var e = Sm(a);
|
|
1155
|
-
if (xm(e, Fs))
|
|
1156
|
-
return e[Fs];
|
|
1103
|
+
if (xm(e, Fs)) return e[Fs];
|
|
1157
1104
|
var t = e.constructor;
|
|
1158
1105
|
return Tm(t) && e instanceof t ? t.prototype : e instanceof di ? $m : null;
|
|
1159
1106
|
}, wm = L, Cm = D, Am = Te, js = tl, Pm = ze, Rm = G, pi = Rm("iterator"), rl = !1, ke, Ia, Na;
|
|
@@ -1179,10 +1126,8 @@ var al = {
|
|
|
1179
1126
|
}, Qm = function(a, e, t, r, i, n, o) {
|
|
1180
1127
|
Um(t, e, r);
|
|
1181
1128
|
var s = function(y) {
|
|
1182
|
-
if (y === i && c)
|
|
1183
|
-
|
|
1184
|
-
if (!tr && y in h)
|
|
1185
|
-
return h[y];
|
|
1129
|
+
if (y === i && c) return c;
|
|
1130
|
+
if (!tr && y in h) return h[y];
|
|
1186
1131
|
switch (y) {
|
|
1187
1132
|
case Hs:
|
|
1188
1133
|
return function() {
|
|
@@ -1208,11 +1153,9 @@ var al = {
|
|
|
1208
1153
|
values: s(gt),
|
|
1209
1154
|
keys: n ? c : s(Hs),
|
|
1210
1155
|
entries: s(Ys)
|
|
1211
|
-
}, o)
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
else
|
|
1215
|
-
Bm({ target: e, proto: !0, forced: tr || l }, g);
|
|
1156
|
+
}, o) for (p in g)
|
|
1157
|
+
(tr || l || !(p in h)) && Ma(h, p, g[p]);
|
|
1158
|
+
else Bm({ target: e, proto: !0, forced: tr || l }, g);
|
|
1216
1159
|
return h[ct] !== c && Ma(h, ct, c, { name: i }), Ym[e] = c, g;
|
|
1217
1160
|
}, Km = function(a, e) {
|
|
1218
1161
|
return { value: a, done: e };
|
|
@@ -1233,11 +1176,10 @@ var al = {
|
|
|
1233
1176
|
rn("keys");
|
|
1234
1177
|
rn("values");
|
|
1235
1178
|
rn("entries");
|
|
1236
|
-
if (t0 && Ws.name !== "values")
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
}
|
|
1179
|
+
if (t0 && Ws.name !== "values") try {
|
|
1180
|
+
Jm(Ws, "name", { value: "values" });
|
|
1181
|
+
} catch {
|
|
1182
|
+
}
|
|
1241
1183
|
var n0 = {
|
|
1242
1184
|
CSSRuleList: 0,
|
|
1243
1185
|
CSSStyleDeclaration: 0,
|
|
@@ -1272,20 +1214,18 @@ var n0 = {
|
|
|
1272
1214
|
TouchList: 0
|
|
1273
1215
|
}, s0 = $r, _a = s0("span").classList, qs = _a && _a.constructor && _a.constructor.prototype, o0 = qs === Object.prototype ? void 0 : qs, Qs = U, ul = n0, u0 = o0, mt = i0, Da = At, ll = G, Va = ll("iterator"), Ks = ll("toStringTag"), La = mt.values, hl = function(a, e) {
|
|
1274
1216
|
if (a) {
|
|
1275
|
-
if (a[Va] !== La)
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
}
|
|
1217
|
+
if (a[Va] !== La) try {
|
|
1218
|
+
Da(a, Va, La);
|
|
1219
|
+
} catch {
|
|
1220
|
+
a[Va] = La;
|
|
1221
|
+
}
|
|
1281
1222
|
if (a[Ks] || Da(a, Ks, e), ul[e]) {
|
|
1282
1223
|
for (var t in mt)
|
|
1283
|
-
if (a[t] !== mt[t])
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
}
|
|
1224
|
+
if (a[t] !== mt[t]) try {
|
|
1225
|
+
Da(a, t, mt[t]);
|
|
1226
|
+
} catch {
|
|
1227
|
+
a[t] = mt[t];
|
|
1228
|
+
}
|
|
1289
1229
|
}
|
|
1290
1230
|
}
|
|
1291
1231
|
};
|
|
@@ -1293,13 +1233,11 @@ for (var ka in ul)
|
|
|
1293
1233
|
hl(Qs[ka] && Qs[ka].prototype, ka);
|
|
1294
1234
|
hl(u0, "DOMTokenList");
|
|
1295
1235
|
function l0(a, e) {
|
|
1296
|
-
if (Ha(a) !== "object" || a === null)
|
|
1297
|
-
return a;
|
|
1236
|
+
if (Ha(a) !== "object" || a === null) return a;
|
|
1298
1237
|
var t = a[Symbol.toPrimitive];
|
|
1299
1238
|
if (t !== void 0) {
|
|
1300
1239
|
var r = t.call(a, e || "default");
|
|
1301
|
-
if (Ha(r) !== "object")
|
|
1302
|
-
return r;
|
|
1240
|
+
if (Ha(r) !== "object") return r;
|
|
1303
1241
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1304
1242
|
}
|
|
1305
1243
|
return (e === "string" ? String : Number)(a);
|
|
@@ -1320,17 +1258,15 @@ var v0 = Se, f0 = Er, c0 = zo, g0 = Pr, d0 = TypeError, Zs = function(a) {
|
|
|
1320
1258
|
return function(e, t, r, i) {
|
|
1321
1259
|
v0(t);
|
|
1322
1260
|
var n = f0(e), o = c0(n), s = g0(n), u = a ? s - 1 : 0, l = a ? -1 : 1;
|
|
1323
|
-
if (r < 2)
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
break;
|
|
1328
|
-
}
|
|
1329
|
-
if (u += l, a ? u < 0 : s <= u)
|
|
1330
|
-
throw d0("Reduce of empty array with no initial value");
|
|
1261
|
+
if (r < 2) for (; ; ) {
|
|
1262
|
+
if (u in o) {
|
|
1263
|
+
i = o[u], u += l;
|
|
1264
|
+
break;
|
|
1331
1265
|
}
|
|
1332
|
-
|
|
1333
|
-
|
|
1266
|
+
if (u += l, a ? u < 0 : s <= u)
|
|
1267
|
+
throw d0("Reduce of empty array with no initial value");
|
|
1268
|
+
}
|
|
1269
|
+
for (; a ? u >= 0 : s > u; u += l) u in o && (i = t(i, o[u], u, n));
|
|
1334
1270
|
return i;
|
|
1335
1271
|
};
|
|
1336
1272
|
}, p0 = {
|
|
@@ -1370,8 +1306,7 @@ var M0 = Ci, _0 = de, D0 = xr, V0 = function(a, e, t) {
|
|
|
1370
1306
|
var r = M0(e);
|
|
1371
1307
|
r in a ? _0.f(a, r, D0(0, t)) : a[r] = t;
|
|
1372
1308
|
}, ro = ou, L0 = Pr, k0 = V0, B0 = Array, F0 = Math.max, j0 = function(a, e, t) {
|
|
1373
|
-
for (var r = L0(a), i = ro(e, r), n = ro(t === void 0 ? r : t, r), o = B0(F0(n - i, 0)), s = 0; i < n; i++, s++)
|
|
1374
|
-
k0(o, s, a[i]);
|
|
1309
|
+
for (var r = L0(a), i = ro(e, r), n = ro(t === void 0 ? r : t, r), o = B0(F0(n - i, 0)), s = 0; i < n; i++, s++) k0(o, s, a[i]);
|
|
1375
1310
|
return o.length = s, o;
|
|
1376
1311
|
}, U0 = Li, dt = Y, nn = k, z0 = qi, G0 = K, H0 = je, Y0 = Zu, ao = ge, X0 = mu, W0 = Ki, q0 = lt, Ba = pe, Q0 = ut, io = j0, no = Zi, K0 = Mr, Z0 = Yu, J0 = L, Qe = Z0.UNSUPPORTED_Y, so = 4294967295, eb = Math.min, gl = [].push, tb = nn(/./.exec), Ke = nn(gl), pt = nn("".slice), rb = !J0(function() {
|
|
1377
1312
|
var a = /(?:)/, e = a.exec;
|
|
@@ -1387,10 +1322,8 @@ z0("split", function(a, e, t) {
|
|
|
1387
1322
|
"test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
1388
1323
|
".".split(/()()/).length > 1 || "".split(/.?/).length ? r = function(i, n) {
|
|
1389
1324
|
var o = Ba(ao(this)), s = n === void 0 ? so : n >>> 0;
|
|
1390
|
-
if (s === 0)
|
|
1391
|
-
|
|
1392
|
-
if (i === void 0)
|
|
1393
|
-
return [o];
|
|
1325
|
+
if (s === 0) return [];
|
|
1326
|
+
if (i === void 0) return [o];
|
|
1394
1327
|
if (!Y0(i))
|
|
1395
1328
|
return dt(e, o, i, s);
|
|
1396
1329
|
for (var u = [], l = (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.unicode ? "u" : "") + (i.sticky ? "y" : ""), h = 0, f = new RegExp(i.source, l + "g"), c, v, d; (c = dt(K0, f, o)) && (v = f.lastIndex, !(v > h && (Ke(u, pt(o, h, c.index)), c.length > 1 && c.index < o.length && U0(gl, u, io(c, 1)), d = c[0].length, h = v, u.length >= s))); )
|
|
@@ -1412,24 +1345,19 @@ z0("split", function(a, e, t) {
|
|
|
1412
1345
|
// the 'y' flag.
|
|
1413
1346
|
function(i, n) {
|
|
1414
1347
|
var o = G0(this), s = Ba(i), u = t(r, o, s, n, r !== e);
|
|
1415
|
-
if (u.done)
|
|
1416
|
-
return u.value;
|
|
1348
|
+
if (u.done) return u.value;
|
|
1417
1349
|
var l = X0(o, RegExp), h = o.unicode, f = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (Qe ? "g" : "y"), c = new l(Qe ? "^(?:" + o.source + ")" : o, f), v = n === void 0 ? so : n >>> 0;
|
|
1418
|
-
if (v === 0)
|
|
1419
|
-
|
|
1420
|
-
if (s.length === 0)
|
|
1421
|
-
return no(c, s) === null ? [s] : [];
|
|
1350
|
+
if (v === 0) return [];
|
|
1351
|
+
if (s.length === 0) return no(c, s) === null ? [s] : [];
|
|
1422
1352
|
for (var d = 0, g = 0, p = []; g < s.length; ) {
|
|
1423
1353
|
c.lastIndex = Qe ? 0 : g;
|
|
1424
1354
|
var y = no(c, Qe ? pt(s, g) : s), x;
|
|
1425
1355
|
if (y === null || (x = eb(q0(c.lastIndex + (Qe ? g : 0)), s.length)) === d)
|
|
1426
1356
|
g = W0(s, g, h);
|
|
1427
1357
|
else {
|
|
1428
|
-
if (Ke(p, pt(s, d, g)), p.length === v)
|
|
1429
|
-
return p;
|
|
1358
|
+
if (Ke(p, pt(s, d, g)), p.length === v) return p;
|
|
1430
1359
|
for (var b = 1; b <= y.length - 1; b++)
|
|
1431
|
-
if (Ke(p, y[b]), p.length === v)
|
|
1432
|
-
return p;
|
|
1360
|
+
if (Ke(p, y[b]), p.length === v) return p;
|
|
1433
1361
|
g = d = x;
|
|
1434
1362
|
}
|
|
1435
1363
|
}
|
|
@@ -1796,13 +1724,11 @@ var yl = function(a, e) {
|
|
|
1796
1724
|
return (yl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
1797
1725
|
t.__proto__ = r;
|
|
1798
1726
|
} || function(t, r) {
|
|
1799
|
-
for (var i in r)
|
|
1800
|
-
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1727
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1801
1728
|
})(a, e);
|
|
1802
1729
|
};
|
|
1803
1730
|
function ml(a, e) {
|
|
1804
|
-
if (typeof e != "function" && e !== null)
|
|
1805
|
-
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1731
|
+
if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1806
1732
|
function t() {
|
|
1807
1733
|
this.constructor = a;
|
|
1808
1734
|
}
|
|
@@ -1813,27 +1739,17 @@ function Lb(a) {
|
|
|
1813
1739
|
Array.isArray(a) || (a = [a]);
|
|
1814
1740
|
for (var t = 0; t < a.length; t++) {
|
|
1815
1741
|
var r = a[t];
|
|
1816
|
-
if (r.type === m.CLOSE_PATH)
|
|
1817
|
-
|
|
1818
|
-
else if (r.type === m.
|
|
1819
|
-
|
|
1820
|
-
else if (r.type === m.
|
|
1821
|
-
|
|
1822
|
-
else if (r.type === m.
|
|
1823
|
-
|
|
1824
|
-
else if (r.type === m.
|
|
1825
|
-
e += (r.relative ? "l" : "L") + r.x + " " + r.y;
|
|
1826
|
-
else if (r.type === m.CURVE_TO)
|
|
1827
|
-
e += (r.relative ? "c" : "C") + r.x1 + " " + r.y1 + " " + r.x2 + " " + r.y2 + " " + r.x + " " + r.y;
|
|
1828
|
-
else if (r.type === m.SMOOTH_CURVE_TO)
|
|
1829
|
-
e += (r.relative ? "s" : "S") + r.x2 + " " + r.y2 + " " + r.x + " " + r.y;
|
|
1830
|
-
else if (r.type === m.QUAD_TO)
|
|
1831
|
-
e += (r.relative ? "q" : "Q") + r.x1 + " " + r.y1 + " " + r.x + " " + r.y;
|
|
1832
|
-
else if (r.type === m.SMOOTH_QUAD_TO)
|
|
1833
|
-
e += (r.relative ? "t" : "T") + r.x + " " + r.y;
|
|
1742
|
+
if (r.type === m.CLOSE_PATH) e += "z";
|
|
1743
|
+
else if (r.type === m.HORIZ_LINE_TO) e += (r.relative ? "h" : "H") + r.x;
|
|
1744
|
+
else if (r.type === m.VERT_LINE_TO) e += (r.relative ? "v" : "V") + r.y;
|
|
1745
|
+
else if (r.type === m.MOVE_TO) e += (r.relative ? "m" : "M") + r.x + " " + r.y;
|
|
1746
|
+
else if (r.type === m.LINE_TO) e += (r.relative ? "l" : "L") + r.x + " " + r.y;
|
|
1747
|
+
else if (r.type === m.CURVE_TO) e += (r.relative ? "c" : "C") + r.x1 + " " + r.y1 + " " + r.x2 + " " + r.y2 + " " + r.x + " " + r.y;
|
|
1748
|
+
else if (r.type === m.SMOOTH_CURVE_TO) e += (r.relative ? "s" : "S") + r.x2 + " " + r.y2 + " " + r.x + " " + r.y;
|
|
1749
|
+
else if (r.type === m.QUAD_TO) e += (r.relative ? "q" : "Q") + r.x1 + " " + r.y1 + " " + r.x + " " + r.y;
|
|
1750
|
+
else if (r.type === m.SMOOTH_QUAD_TO) e += (r.relative ? "t" : "T") + r.x + " " + r.y;
|
|
1834
1751
|
else {
|
|
1835
|
-
if (r.type !== m.ARC)
|
|
1836
|
-
throw new Error('Unexpected command type "' + r.type + '" at index ' + t + ".");
|
|
1752
|
+
if (r.type !== m.ARC) throw new Error('Unexpected command type "' + r.type + '" at index ' + t + ".");
|
|
1837
1753
|
e += (r.relative ? "a" : "A") + r.rX + " " + r.rY + " " + r.xRot + " " + +r.lArcFlag + " " + +r.sweepFlag + " " + r.x + " " + r.y;
|
|
1838
1754
|
}
|
|
1839
1755
|
}
|
|
@@ -1844,11 +1760,8 @@ function xi(a, e) {
|
|
|
1844
1760
|
return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
|
|
1845
1761
|
}
|
|
1846
1762
|
function oe() {
|
|
1847
|
-
for (var a = [], e = 0; e < arguments.length; e++)
|
|
1848
|
-
|
|
1849
|
-
for (var t = 0; t < a.length; t++)
|
|
1850
|
-
if (typeof a[t] != "number")
|
|
1851
|
-
throw new Error("assertNumbers arguments[" + t + "] is not a number. " + typeof a[t] + " == typeof " + a[t]);
|
|
1763
|
+
for (var a = [], e = 0; e < arguments.length; e++) a[e] = arguments[e];
|
|
1764
|
+
for (var t = 0; t < a.length; t++) if (typeof a[t] != "number") throw new Error("assertNumbers arguments[" + t + "] is not a number. " + typeof a[t] + " == typeof " + a[t]);
|
|
1852
1765
|
return !0;
|
|
1853
1766
|
}
|
|
1854
1767
|
var Ee = Math.PI;
|
|
@@ -1864,10 +1777,8 @@ function za(a, e, t) {
|
|
|
1864
1777
|
function co(a, e, t) {
|
|
1865
1778
|
oe(a, e, t);
|
|
1866
1779
|
var r = a * a + e * e - t * t;
|
|
1867
|
-
if (0 > r)
|
|
1868
|
-
|
|
1869
|
-
if (r === 0)
|
|
1870
|
-
return [[a * t / (a * a + e * e), e * t / (a * a + e * e)]];
|
|
1780
|
+
if (0 > r) return [];
|
|
1781
|
+
if (r === 0) return [[a * t / (a * a + e * e), e * t / (a * a + e * e)]];
|
|
1871
1782
|
var i = Math.sqrt(r);
|
|
1872
1783
|
return [[(a * t + e * i) / (a * a + e * e), (e * t - a * i) / (a * a + e * e)], [(a * t - e * i) / (a * a + e * e), (e * t + a * i) / (a * a + e * e)]];
|
|
1873
1784
|
}
|
|
@@ -1881,12 +1792,9 @@ function po(a, e, t, r) {
|
|
|
1881
1792
|
function yo(a, e, t, r) {
|
|
1882
1793
|
var i = 1e-6, n = e - a, o = t - e, s = 3 * n + 3 * (r - t) - 6 * o, u = 6 * (o - n), l = 3 * n;
|
|
1883
1794
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
|
1884
|
-
c === void 0 && (c = 1e-6);
|
|
1885
1795
|
var v = h * h / 4 - f;
|
|
1886
|
-
if (v < -c)
|
|
1887
|
-
|
|
1888
|
-
if (v <= c)
|
|
1889
|
-
return [-h / 2];
|
|
1796
|
+
if (v < -c) return [];
|
|
1797
|
+
if (v <= c) return [-h / 2];
|
|
1890
1798
|
var d = Math.sqrt(v);
|
|
1891
1799
|
return [-h / 2 - d, -h / 2 + d];
|
|
1892
1800
|
}(u / s, l / s, i);
|
|
@@ -1914,16 +1822,14 @@ function mo(a, e, t, r, i) {
|
|
|
1914
1822
|
s = l.relative ? h + l.x1 : l.x1, u = l.relative ? f + l.y1 : l.y1;
|
|
1915
1823
|
var c = l.x1, v = l.y1;
|
|
1916
1824
|
l.type = m.CURVE_TO, l.x1 = ((l.relative ? 0 : h) + 2 * c) / 3, l.y1 = ((l.relative ? 0 : f) + 2 * v) / 3, l.x2 = (l.x + 2 * c) / 3, l.y2 = (l.y + 2 * v) / 3;
|
|
1917
|
-
} else
|
|
1918
|
-
s = NaN, u = NaN;
|
|
1825
|
+
} else s = NaN, u = NaN;
|
|
1919
1826
|
return l;
|
|
1920
1827
|
});
|
|
1921
1828
|
}
|
|
1922
1829
|
function i(s) {
|
|
1923
1830
|
var u = 0, l = 0, h = NaN, f = NaN;
|
|
1924
1831
|
return function(c) {
|
|
1925
|
-
if (isNaN(h) && !(c.type & m.MOVE_TO))
|
|
1926
|
-
throw new Error("path must start with moveto");
|
|
1832
|
+
if (isNaN(h) && !(c.type & m.MOVE_TO)) throw new Error("path must start with moveto");
|
|
1927
1833
|
var v = s(c, u, l, h, f);
|
|
1928
1834
|
return c.type & m.CLOSE_PATH && (u = h, l = f), c.x !== void 0 && (u = c.relative ? u + c.x : c.x), c.y !== void 0 && (l = c.relative ? l + c.y : c.y), c.type & m.MOVE_TO && (h = u, f = l), v;
|
|
1929
1835
|
};
|
|
@@ -1936,21 +1842,18 @@ function mo(a, e, t, r, i) {
|
|
|
1936
1842
|
}
|
|
1937
1843
|
v.type & m.HORIZ_LINE_TO && u !== 0 && (v.type = m.LINE_TO, v.y = v.relative ? 0 : g), v.type & m.VERT_LINE_TO && l !== 0 && (v.type = m.LINE_TO, v.x = v.relative ? 0 : d), v.x !== void 0 && (v.x = v.x * s + $ * l + (b ? 0 : f)), v.y !== void 0 && (v.y = T * u + v.y * h + (b ? 0 : c)), v.x1 !== void 0 && (v.x1 = v.x1 * s + v.y1 * l + (b ? 0 : f)), v.y1 !== void 0 && (v.y1 = y * u + v.y1 * h + (b ? 0 : c)), v.x2 !== void 0 && (v.x2 = v.x2 * s + v.y2 * l + (b ? 0 : f)), v.y2 !== void 0 && (v.y2 = x * u + v.y2 * h + (b ? 0 : c));
|
|
1938
1844
|
var S = s * h - u * l;
|
|
1939
|
-
if (v.xRot !== void 0 && (s !== 1 || u !== 0 || l !== 0 || h !== 1))
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
v.rX = Math.abs(S) / Math.sqrt(q * E(Z) + H * M * Z + Q * E(M)), v.rY = Math.abs(S) / Math.sqrt(q * E(M) - H * M * Z + Q * E(Z)), v.xRot = 180 * R / Math.PI;
|
|
1945
|
-
}
|
|
1845
|
+
if (v.xRot !== void 0 && (s !== 1 || u !== 0 || l !== 0 || h !== 1)) if (S === 0) delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = m.LINE_TO;
|
|
1846
|
+
else {
|
|
1847
|
+
var C = v.xRot * Math.PI / 180, N = Math.sin(C), _ = Math.cos(C), B = 1 / E(v.rX), P = 1 / E(v.rY), X = E(_) * B + E(N) * P, W = 2 * N * _ * (B - P), z = E(N) * B + E(_) * P, q = X * h * h - W * u * h + z * u * u, H = W * (s * h + u * l) - 2 * (X * l * h + z * s * u), Q = X * l * l - W * s * l + z * s * s, R = (Math.atan2(H, q - Q) + Math.PI) % Math.PI / 2, M = Math.sin(R), Z = Math.cos(R);
|
|
1848
|
+
v.rX = Math.abs(S) / Math.sqrt(q * E(Z) + H * M * Z + Q * E(M)), v.rY = Math.abs(S) / Math.sqrt(q * E(M) - H * M * Z + Q * E(Z)), v.xRot = 180 * R / Math.PI;
|
|
1849
|
+
}
|
|
1946
1850
|
return v.sweepFlag !== void 0 && 0 > S && (v.sweepFlag = +!v.sweepFlag), v;
|
|
1947
1851
|
});
|
|
1948
1852
|
}
|
|
1949
1853
|
function o() {
|
|
1950
1854
|
return function(s) {
|
|
1951
1855
|
var u = {};
|
|
1952
|
-
for (var l in s)
|
|
1953
|
-
u[l] = s[l];
|
|
1856
|
+
for (var l in s) u[l] = s[l];
|
|
1954
1857
|
return u;
|
|
1955
1858
|
};
|
|
1956
1859
|
}
|
|
@@ -1967,8 +1870,7 @@ function mo(a, e, t, r, i) {
|
|
|
1967
1870
|
});
|
|
1968
1871
|
}, a.NORMALIZE_HVZ = function(s, u, l) {
|
|
1969
1872
|
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, f, c, v, d) {
|
|
1970
|
-
if (isNaN(v) && !(h.type & m.MOVE_TO))
|
|
1971
|
-
throw new Error("path must start with moveto");
|
|
1873
|
+
if (isNaN(v) && !(h.type & m.MOVE_TO)) throw new Error("path must start with moveto");
|
|
1972
1874
|
return u && h.type & m.HORIZ_LINE_TO && (h.type = m.LINE_TO, h.y = h.relative ? 0 : c), l && h.type & m.VERT_LINE_TO && (h.type = m.LINE_TO, h.x = h.relative ? 0 : f), s && h.type & m.CLOSE_PATH && (h.type = m.LINE_TO, h.x = h.relative ? v - f : v, h.y = h.relative ? d - c : d), h.type & m.ARC && (h.rX === 0 || h.rY === 0) && (h.type = m.LINE_TO, delete h.rX, delete h.rY, delete h.xRot, delete h.lArcFlag, delete h.sweepFlag), h;
|
|
1973
1875
|
});
|
|
1974
1876
|
}, a.NORMALIZE_ST = t, a.QT_TO_C = r, a.INFO = i, a.SANITIZE = function(s) {
|
|
@@ -2024,8 +1926,7 @@ function mo(a, e, t, r, i) {
|
|
|
2024
1926
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
|
2025
1927
|
var s = function(c) {
|
|
2026
1928
|
var v = {};
|
|
2027
|
-
for (var d in c)
|
|
2028
|
-
v[d] = c[d];
|
|
1929
|
+
for (var d in c) v[d] = c[d];
|
|
2029
1930
|
return v;
|
|
2030
1931
|
}, u = e(), l = r(), h = t(), f = i(function(c, v, d) {
|
|
2031
1932
|
var g = h(l(u(s(c))));
|
|
@@ -2101,15 +2002,14 @@ var se, bl = function() {
|
|
|
2101
2002
|
return a === " " || a === " " || a === "\r" || a === `
|
|
2102
2003
|
`;
|
|
2103
2004
|
}, bo = function(a) {
|
|
2104
|
-
return
|
|
2005
|
+
return 48 <= a.charCodeAt(0) && a.charCodeAt(0) <= 57;
|
|
2105
2006
|
}, Bb = function(a) {
|
|
2106
2007
|
function e() {
|
|
2107
2008
|
var t = a.call(this) || this;
|
|
2108
2009
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
|
2109
2010
|
}
|
|
2110
2011
|
return ml(e, a), e.prototype.finish = function(t) {
|
|
2111
|
-
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma)
|
|
2112
|
-
throw new SyntaxError("Unterminated command at the path end.");
|
|
2012
|
+
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma) throw new SyntaxError("Unterminated command at the path end.");
|
|
2113
2013
|
return t;
|
|
2114
2014
|
}, e.prototype.parse = function(t, r) {
|
|
2115
2015
|
var i = this;
|
|
@@ -2118,69 +2018,41 @@ var se, bl = function() {
|
|
|
2118
2018
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
|
2119
2019
|
}, o = 0; o < t.length; o++) {
|
|
2120
2020
|
var s = t[o], u = !(this.curCommandType !== m.ARC || this.curArgs.length !== 3 && this.curArgs.length !== 4 || this.curNumber.length !== 1 || this.curNumber !== "0" && this.curNumber !== "1"), l = bo(s) && (this.curNumber === "0" && s === "0" || u);
|
|
2121
|
-
if (!bo(s) || l)
|
|
2122
|
-
if (
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
else if (s === "l" || s === "L")
|
|
2157
|
-
this.curCommandType = m.LINE_TO, this.curCommandRelative = s === "l";
|
|
2158
|
-
else if (s === "c" || s === "C")
|
|
2159
|
-
this.curCommandType = m.CURVE_TO, this.curCommandRelative = s === "c";
|
|
2160
|
-
else if (s === "s" || s === "S")
|
|
2161
|
-
this.curCommandType = m.SMOOTH_CURVE_TO, this.curCommandRelative = s === "s";
|
|
2162
|
-
else if (s === "q" || s === "Q")
|
|
2163
|
-
this.curCommandType = m.QUAD_TO, this.curCommandRelative = s === "q";
|
|
2164
|
-
else if (s === "t" || s === "T")
|
|
2165
|
-
this.curCommandType = m.SMOOTH_QUAD_TO, this.curCommandRelative = s === "t";
|
|
2166
|
-
else {
|
|
2167
|
-
if (s !== "a" && s !== "A")
|
|
2168
|
-
throw new SyntaxError('Unexpected character "' + s + '" at index ' + o + ".");
|
|
2169
|
-
this.curCommandType = m.ARC, this.curCommandRelative = s === "a";
|
|
2170
|
-
}
|
|
2171
|
-
else
|
|
2172
|
-
r.push({ type: m.CLOSE_PATH }), this.canParseCommandOrComma = !0, this.curCommandType = -1;
|
|
2173
|
-
}
|
|
2174
|
-
else
|
|
2175
|
-
this.curNumber = s, this.curNumberHasDecimal = s === ".";
|
|
2176
|
-
} else
|
|
2177
|
-
this.curNumber += s, this.curNumberHasDecimal = !0;
|
|
2178
|
-
else
|
|
2179
|
-
this.curNumber += s;
|
|
2180
|
-
else
|
|
2181
|
-
this.curNumber += s, this.curNumberHasExp = !0;
|
|
2182
|
-
else
|
|
2183
|
-
this.curNumber += s, this.curNumberHasExpDigits = this.curNumberHasExp;
|
|
2021
|
+
if (!bo(s) || l) if (s !== "e" && s !== "E") if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits) if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
|
2022
|
+
if (this.curNumber && this.curCommandType !== -1) {
|
|
2023
|
+
var h = Number(this.curNumber);
|
|
2024
|
+
if (isNaN(h)) throw new SyntaxError("Invalid number ending at " + o);
|
|
2025
|
+
if (this.curCommandType === m.ARC) {
|
|
2026
|
+
if (this.curArgs.length === 0 || this.curArgs.length === 1) {
|
|
2027
|
+
if (0 > h) throw new SyntaxError('Expected positive number, got "' + h + '" at index "' + o + '"');
|
|
2028
|
+
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1") throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
|
|
2029
|
+
}
|
|
2030
|
+
this.curArgs.push(h), this.curArgs.length === Fb[this.curCommandType] && (m.HORIZ_LINE_TO === this.curCommandType ? n({ type: m.HORIZ_LINE_TO, relative: this.curCommandRelative, x: h }) : m.VERT_LINE_TO === this.curCommandType ? n({ type: m.VERT_LINE_TO, relative: this.curCommandRelative, y: h }) : this.curCommandType === m.MOVE_TO || this.curCommandType === m.LINE_TO || this.curCommandType === m.SMOOTH_QUAD_TO ? (n({ type: this.curCommandType, relative: this.curCommandRelative, x: this.curArgs[0], y: this.curArgs[1] }), m.MOVE_TO === this.curCommandType && (this.curCommandType = m.LINE_TO)) : this.curCommandType === m.CURVE_TO ? n({ type: m.CURVE_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x2: this.curArgs[2], y2: this.curArgs[3], x: this.curArgs[4], y: this.curArgs[5] }) : this.curCommandType === m.SMOOTH_CURVE_TO ? n({ type: m.SMOOTH_CURVE_TO, relative: this.curCommandRelative, x2: this.curArgs[0], y2: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === m.QUAD_TO ? n({ type: m.QUAD_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === m.ARC && n({ type: m.ARC, relative: this.curCommandRelative, rX: this.curArgs[0], rY: this.curArgs[1], xRot: this.curArgs[2], lArcFlag: this.curArgs[3], sweepFlag: this.curArgs[4], x: this.curArgs[5], y: this.curArgs[6] })), this.curNumber = "", this.curNumberHasExpDigits = !1, this.curNumberHasExp = !1, this.curNumberHasDecimal = !1, this.canParseCommandOrComma = !0;
|
|
2031
|
+
}
|
|
2032
|
+
if (!kb(s)) if (s === "," && this.canParseCommandOrComma) this.canParseCommandOrComma = !1;
|
|
2033
|
+
else if (s !== "+" && s !== "-" && s !== ".") if (l) this.curNumber = s, this.curNumberHasDecimal = !1;
|
|
2034
|
+
else {
|
|
2035
|
+
if (this.curArgs.length !== 0) throw new SyntaxError("Unterminated command at index " + o + ".");
|
|
2036
|
+
if (!this.canParseCommandOrComma) throw new SyntaxError('Unexpected character "' + s + '" at index ' + o + ". Command cannot follow comma");
|
|
2037
|
+
if (this.canParseCommandOrComma = !1, s !== "z" && s !== "Z") if (s === "h" || s === "H") this.curCommandType = m.HORIZ_LINE_TO, this.curCommandRelative = s === "h";
|
|
2038
|
+
else if (s === "v" || s === "V") this.curCommandType = m.VERT_LINE_TO, this.curCommandRelative = s === "v";
|
|
2039
|
+
else if (s === "m" || s === "M") this.curCommandType = m.MOVE_TO, this.curCommandRelative = s === "m";
|
|
2040
|
+
else if (s === "l" || s === "L") this.curCommandType = m.LINE_TO, this.curCommandRelative = s === "l";
|
|
2041
|
+
else if (s === "c" || s === "C") this.curCommandType = m.CURVE_TO, this.curCommandRelative = s === "c";
|
|
2042
|
+
else if (s === "s" || s === "S") this.curCommandType = m.SMOOTH_CURVE_TO, this.curCommandRelative = s === "s";
|
|
2043
|
+
else if (s === "q" || s === "Q") this.curCommandType = m.QUAD_TO, this.curCommandRelative = s === "q";
|
|
2044
|
+
else if (s === "t" || s === "T") this.curCommandType = m.SMOOTH_QUAD_TO, this.curCommandRelative = s === "t";
|
|
2045
|
+
else {
|
|
2046
|
+
if (s !== "a" && s !== "A") throw new SyntaxError('Unexpected character "' + s + '" at index ' + o + ".");
|
|
2047
|
+
this.curCommandType = m.ARC, this.curCommandRelative = s === "a";
|
|
2048
|
+
}
|
|
2049
|
+
else r.push({ type: m.CLOSE_PATH }), this.canParseCommandOrComma = !0, this.curCommandType = -1;
|
|
2050
|
+
}
|
|
2051
|
+
else this.curNumber = s, this.curNumberHasDecimal = s === ".";
|
|
2052
|
+
} else this.curNumber += s, this.curNumberHasDecimal = !0;
|
|
2053
|
+
else this.curNumber += s;
|
|
2054
|
+
else this.curNumber += s, this.curNumberHasExp = !0;
|
|
2055
|
+
else this.curNumber += s, this.curNumberHasExpDigits = this.curNumberHasExp;
|
|
2184
2056
|
}
|
|
2185
2057
|
return r;
|
|
2186
2058
|
}, e.prototype.transform = function(t) {
|
|
@@ -2346,7 +2218,7 @@ function o1(a) {
|
|
|
2346
2218
|
createImage: t.loadImage
|
|
2347
2219
|
};
|
|
2348
2220
|
}
|
|
2349
|
-
var
|
|
2221
|
+
var b2 = /* @__PURE__ */ Object.freeze({
|
|
2350
2222
|
__proto__: null,
|
|
2351
2223
|
offscreen: s1,
|
|
2352
2224
|
node: o1
|
|
@@ -5738,7 +5610,7 @@ export {
|
|
|
5738
5610
|
v1 as normalizeAttributeName,
|
|
5739
5611
|
f1 as normalizeColor,
|
|
5740
5612
|
Tl as parseExternalUrl,
|
|
5741
|
-
|
|
5613
|
+
b2 as presets,
|
|
5742
5614
|
ie as toNumbers,
|
|
5743
5615
|
u1 as trimLeft,
|
|
5744
5616
|
l1 as trimRight,
|