@tongfun/ui 0.0.1-alpha.13 → 0.0.1-alpha.15
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/dashboard-data-table/types.d.ts +15 -0
- package/dist/{exceljs.min-7ZdqzaDb.js → exceljs.min--w2Gnf2S.js} +1 -1
- package/dist/{index-Djcrydo4.js → index-DeFCl1SX.js} +103540 -94067
- package/dist/index.d.ts +27 -0
- package/dist/{index.es-DidZnnzi.js → index.es-DwBVhTTr.js} +118 -118
- package/dist/index.js +1070 -1033
- package/dist/{jspdf.es.min-DKb_BKff.js → jspdf.es.min-DNbeD7Ag.js} +2 -2
- package/dist/list-filter/types.d.ts +32 -0
- package/dist/lowcode-agent/index.js +1030 -27
- package/dist/mock-region-data-CvYhx8jL.js +39 -0
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as Xa } from "./jspdf.es.min-
|
|
1
|
+
import { ju as Ke, k$ as Do } from "./index-DeFCl1SX.js";
|
|
2
|
+
import { _ as Xa } from "./jspdf.es.min-DNbeD7Ag.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "@lucide/vue";
|
|
5
5
|
import "reka-ui";
|
|
@@ -42,9 +42,9 @@ var vt = function(a) {
|
|
|
42
42
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
|
43
43
|
}), Nl = br, Ft = Function.prototype.call, Y = Nl ? Ft.bind(Ft) : function() {
|
|
44
44
|
return Ft.apply(Ft, arguments);
|
|
45
|
-
}, ko = {}, Lo = {}.propertyIsEnumerable,
|
|
45
|
+
}, ko = {}, Lo = {}.propertyIsEnumerable, Bo = Object.getOwnPropertyDescriptor, Il = Bo && !Lo.call({ 1: 2 }, 1);
|
|
46
46
|
ko.f = Il ? function(e) {
|
|
47
|
-
var t =
|
|
47
|
+
var t = Bo(this, e);
|
|
48
48
|
return !!t && t.enumerable;
|
|
49
49
|
} : Lo;
|
|
50
50
|
var Si = function(a, e) {
|
|
@@ -54,20 +54,20 @@ var Si = function(a, e) {
|
|
|
54
54
|
writable: !(a & 4),
|
|
55
55
|
value: e
|
|
56
56
|
};
|
|
57
|
-
},
|
|
57
|
+
}, jo = br, Fo = Function.prototype, Wa = Fo.call, Ml = jo && Fo.bind.bind(Wa, Wa), k = jo ? Ml : function(a) {
|
|
58
58
|
return function() {
|
|
59
59
|
return Wa.apply(a, arguments);
|
|
60
60
|
};
|
|
61
61
|
}, Uo = k, _l = Uo({}.toString), Vl = Uo("".slice), Ce = function(a) {
|
|
62
62
|
return Vl(_l(a), 8, -1);
|
|
63
|
-
}, Dl = k, kl = D, Ll = Ce, ea = Object,
|
|
63
|
+
}, Dl = k, kl = D, Ll = Ce, ea = Object, Bl = Dl("".split), Go = kl(function() {
|
|
64
64
|
return !ea("z").propertyIsEnumerable(0);
|
|
65
65
|
}) ? function(a) {
|
|
66
|
-
return Ll(a) === "String" ?
|
|
66
|
+
return Ll(a) === "String" ? Bl(a, "") : ea(a);
|
|
67
67
|
} : ea, xr = function(a) {
|
|
68
68
|
return a == null;
|
|
69
|
-
},
|
|
70
|
-
if (
|
|
69
|
+
}, jl = xr, Fl = TypeError, ve = function(a) {
|
|
70
|
+
if (jl(a))
|
|
71
71
|
throw new Fl("Can't call method on " + a);
|
|
72
72
|
return a;
|
|
73
73
|
}, Ul = Go, Gl = ve, wt = function(a) {
|
|
@@ -147,10 +147,10 @@ var wi = Wo.exports, wn = wi, dh = Object.create || Object, Ci = function(a, e)
|
|
|
147
147
|
throw new Vh("Can't convert object to primitive value");
|
|
148
148
|
}
|
|
149
149
|
return e === void 0 && (e = "number"), Mh(a, e);
|
|
150
|
-
}, Lh = kh,
|
|
150
|
+
}, Lh = kh, Bh = Xo, Qo = function(a) {
|
|
151
151
|
var e = Lh(a, "string");
|
|
152
|
-
return
|
|
153
|
-
},
|
|
152
|
+
return Bh(e) ? e : e + "";
|
|
153
|
+
}, jh = _, Rn = ae, qa = jh.document, Fh = Rn(qa) && Rn(qa.createElement), Er = function(a) {
|
|
154
154
|
return Fh ? qa.createElement(a) : {};
|
|
155
155
|
}, Uh = he, Gh = D, zh = Er, Ko = !Uh && !Gh(function() {
|
|
156
156
|
return Object.defineProperty(zh("div"), "a", {
|
|
@@ -252,17 +252,17 @@ var wr = {
|
|
|
252
252
|
has: dr,
|
|
253
253
|
enforce: Rv,
|
|
254
254
|
getterFor: Nv
|
|
255
|
-
}, Ni = k, Iv = D, Mv = L, Gt = fe, Ja = he, _v = $r.CONFIGURABLE, Vv = Ai, au = wr, Dv = au.enforce, kv = au.get, Dn = String, or = Object.defineProperty, Lv = Ni("".slice),
|
|
255
|
+
}, Ni = k, Iv = D, Mv = L, Gt = fe, Ja = he, _v = $r.CONFIGURABLE, Vv = Ai, au = wr, Dv = au.enforce, kv = au.get, Dn = String, or = Object.defineProperty, Lv = Ni("".slice), Bv = Ni("".replace), jv = Ni([].join), Fv = Ja && !Iv(function() {
|
|
256
256
|
return or(function() {
|
|
257
257
|
}, "length", { value: 8 }).length !== 8;
|
|
258
258
|
}), Uv = String(String).split("String"), Gv = Jo.exports = function(a, e, t) {
|
|
259
|
-
Lv(Dn(e), 0, 7) === "Symbol(" && (e = "[" +
|
|
259
|
+
Lv(Dn(e), 0, 7) === "Symbol(" && (e = "[" + Bv(Dn(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Gt(a, "name") || _v && a.name !== e) && (Ja ? or(a, "name", { value: e, configurable: !0 }) : a.name = e), Fv && t && Gt(t, "arity") && a.length !== t.arity && or(a, "length", { value: t.arity });
|
|
260
260
|
try {
|
|
261
261
|
t && Gt(t, "constructor") && t.constructor ? Ja && or(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
|
262
262
|
} catch {
|
|
263
263
|
}
|
|
264
264
|
var r = Dv(a);
|
|
265
|
-
return Gt(r, "source") || (r.source =
|
|
265
|
+
return Gt(r, "source") || (r.source = jv(Uv, typeof e == "string" ? e : "")), a;
|
|
266
266
|
};
|
|
267
267
|
Function.prototype.toString = Gv(function() {
|
|
268
268
|
return Mv(this) && kv(this).source || Vv(this);
|
|
@@ -353,14 +353,14 @@ var yf = Fe, mf = k, bf = nu, xf = uu, Tf = J, Of = mf([].concat), Sf = yf("Refl
|
|
|
353
353
|
return t === _f ? !0 : t === Mf ? !1 : Pf(e) ? Af(e) : !!e;
|
|
354
354
|
}, Nf = Pt.normalize = function(a) {
|
|
355
355
|
return String(a).replace(Rf, ".").toLowerCase();
|
|
356
|
-
}, If = Pt.data = {}, Mf = Pt.NATIVE = "N", _f = Pt.POLYFILL = "P", lu = Pt, zt = _, Vf = $t.f, Df = At, kf = Ue, Lf = $i,
|
|
356
|
+
}, If = Pt.data = {}, Mf = Pt.NATIVE = "N", _f = Pt.POLYFILL = "P", lu = Pt, zt = _, Vf = $t.f, Df = At, kf = Ue, Lf = $i, Bf = Cf, jf = lu, ee = function(a, e) {
|
|
357
357
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
|
358
358
|
if (r ? o = zt : i ? o = zt[t] || Lf(t, {}) : o = zt[t] && zt[t].prototype, o)
|
|
359
359
|
for (s in e) {
|
|
360
|
-
if (l = e[s], a.dontCallGetSet ? (h = Vf(o, s), u = h && h.value) : u = o[s], n =
|
|
360
|
+
if (l = e[s], a.dontCallGetSet ? (h = Vf(o, s), u = h && h.value) : u = o[s], n = jf(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
361
361
|
if (typeof l == typeof u)
|
|
362
362
|
continue;
|
|
363
|
-
|
|
363
|
+
Bf(l, u);
|
|
364
364
|
}
|
|
365
365
|
(a.sham || u && u.sham) && Df(l, "sham", !0), kf(o, s, l, a);
|
|
366
366
|
}
|
|
@@ -388,10 +388,10 @@ var yf = Fe, mf = k, bf = nu, xf = uu, Tf = J, Of = mf([].concat), Sf = yf("Refl
|
|
|
388
388
|
return function(i, n) {
|
|
389
389
|
return ac(i), ic(n), rc(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
|
390
390
|
};
|
|
391
|
-
}() : void 0), nc = Te.f, sc = fe, oc = z,
|
|
392
|
-
a && !t && (a = a.prototype), a && !sc(a,
|
|
393
|
-
},
|
|
394
|
-
return t.get &&
|
|
391
|
+
}() : void 0), nc = Te.f, sc = fe, oc = z, Bn = oc("toStringTag"), Pr = function(a, e, t) {
|
|
392
|
+
a && !t && (a = a.prototype), a && !sc(a, Bn) && nc(a, Bn, { configurable: !0, value: e });
|
|
393
|
+
}, jn = iu, uc = Te, lc = function(a, e, t) {
|
|
394
|
+
return t.get && jn(t.get, e, { getter: !0 }), t.set && jn(t.set, e, { setter: !0 }), uc.f(a, e, t);
|
|
395
395
|
}, hc = Fe, vc = lc, fc = z, cc = he, Fn = fc("species"), gc = function(a) {
|
|
396
396
|
var e = hc(a);
|
|
397
397
|
cc && e && !e[Fn] && vc(e, Fn, {
|
|
@@ -446,13 +446,13 @@ var Vc = !pu || Pc(function() {
|
|
|
446
446
|
return ct(ct.call) || !ct(Object) || !ct(function() {
|
|
447
447
|
a = !0;
|
|
448
448
|
}) || a;
|
|
449
|
-
}) ? yu : ct, Dc = Vc, kc = Or, Lc = TypeError,
|
|
449
|
+
}) ? yu : ct, Dc = Vc, kc = Or, Lc = TypeError, Bc = function(a) {
|
|
450
450
|
if (Dc(a))
|
|
451
451
|
return a;
|
|
452
452
|
throw new Lc(kc(a) + " is not a constructor");
|
|
453
|
-
}, Un = J,
|
|
453
|
+
}, Un = J, jc = Bc, Fc = xr, Uc = z, Gc = Uc("species"), mu = function(a, e) {
|
|
454
454
|
var t = Un(a).constructor, r;
|
|
455
|
-
return t === void 0 || Fc(r = Un(t)[Gc]) ? e :
|
|
455
|
+
return t === void 0 || Fc(r = Un(t)[Gc]) ? e : jc(r);
|
|
456
456
|
}, zc = br, bu = Function.prototype, Gn = bu.apply, zn = bu.call, xu = typeof Reflect == "object" && Reflect.apply || (zc ? zn.bind(Gn) : function() {
|
|
457
457
|
return zn.apply(Gn, arguments);
|
|
458
458
|
}), Hc = Ce, Yc = k, Rr = function(a) {
|
|
@@ -595,9 +595,9 @@ var Ng = Rg("species"), ri = !1, Cu = Cg(wg.PromiseRejectionEvent), Ig = Ag("Pro
|
|
|
595
595
|
lt.f = function(a) {
|
|
596
596
|
return new _g(a);
|
|
597
597
|
};
|
|
598
|
-
var Vg = ee, pr = Ar, $e = _, Dg = Hf, nt = Y, ls = Ue, hs = vu, kg = Pr, Lg = gc,
|
|
598
|
+
var Vg = ee, pr = Ar, $e = _, Dg = Hf, nt = Y, ls = Ue, hs = vu, kg = Pr, Lg = gc, Bg = Ae, lr = L, jg = ae, Fg = yc, Ug = mu, Au = Eu.set, Li = Sg, Gg = Eg, zg = ki, Hg = wu, Pu = wr, yr = Nr, Bi = Rt, Ru = lt, Ir = "Promise", Nu = Bi.CONSTRUCTOR, Yg = Bi.REJECTION_EVENT, Xg = Bi.SUBCLASSING, $a = Pu.getterFor(Ir), Wg = Pu.set, Qe = yr && yr.prototype, Le = yr, Qt = Qe, Iu = $e.TypeError, ai = $e.document, ji = $e.process, ii = Ru.f, qg = ii, Qg = !!(ai && ai.createEvent && $e.dispatchEvent), Mu = "unhandledrejection", Kg = "rejectionhandled", vs = 0, _u = 1, Zg = 2, Fi = 1, Vu = 2, Kt, fs, Du, cs, ku = function(a) {
|
|
599
599
|
var e;
|
|
600
|
-
return
|
|
600
|
+
return jg(a) && lr(e = a.then) ? e : !1;
|
|
601
601
|
}, Lu = function(a, e) {
|
|
602
602
|
var t = e.value, r = e.state === _u, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
|
603
603
|
try {
|
|
@@ -605,20 +605,20 @@ var Vg = ee, pr = Ar, $e = _, Dg = Hf, nt = Y, ls = Ue, hs = vu, kg = Pr, Lg = g
|
|
|
605
605
|
} catch (f) {
|
|
606
606
|
s && !h && s.exit(), o(f);
|
|
607
607
|
}
|
|
608
|
-
},
|
|
608
|
+
}, Bu = function(a, e) {
|
|
609
609
|
a.notified || (a.notified = !0, Li(function() {
|
|
610
610
|
for (var t = a.reactions, r; r = t.get(); )
|
|
611
611
|
Lu(r, a);
|
|
612
612
|
a.notified = !1, e && !a.rejection && Jg(a);
|
|
613
613
|
}));
|
|
614
|
-
},
|
|
614
|
+
}, ju = function(a, e, t) {
|
|
615
615
|
var r, i;
|
|
616
616
|
Qg ? (r = ai.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), $e.dispatchEvent(r)) : r = { promise: e, reason: t }, !Yg && (i = $e["on" + a]) ? i(r) : a === Mu && Gg("Unhandled promise rejection", t);
|
|
617
617
|
}, Jg = function(a) {
|
|
618
618
|
nt(Au, $e, function() {
|
|
619
619
|
var e = a.facade, t = a.value, r = gs(a), i;
|
|
620
620
|
if (r && (i = zg(function() {
|
|
621
|
-
pr ?
|
|
621
|
+
pr ? ji.emit("unhandledRejection", t, e) : ju(Mu, e, t);
|
|
622
622
|
}), a.rejection = pr || gs(a) ? Vu : Fi, i.error))
|
|
623
623
|
throw i.value;
|
|
624
624
|
});
|
|
@@ -627,14 +627,14 @@ var Vg = ee, pr = Ar, $e = _, Dg = Hf, nt = Y, ls = Ue, hs = vu, kg = Pr, Lg = g
|
|
|
627
627
|
}, ed = function(a) {
|
|
628
628
|
nt(Au, $e, function() {
|
|
629
629
|
var e = a.facade;
|
|
630
|
-
pr ?
|
|
630
|
+
pr ? ji.emit("rejectionHandled", e) : ju(Kg, e, a.value);
|
|
631
631
|
});
|
|
632
632
|
}, Je = function(a, e, t) {
|
|
633
633
|
return function(r) {
|
|
634
634
|
a(e, r, t);
|
|
635
635
|
};
|
|
636
636
|
}, tt = function(a, e, t) {
|
|
637
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Zg,
|
|
637
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Zg, Bu(a, !0));
|
|
638
638
|
}, ni = function(a, e, t) {
|
|
639
639
|
if (!a.done) {
|
|
640
640
|
a.done = !0, t && (a = t);
|
|
@@ -654,14 +654,14 @@ var Vg = ee, pr = Ar, $e = _, Dg = Hf, nt = Y, ls = Ue, hs = vu, kg = Pr, Lg = g
|
|
|
654
654
|
} catch (n) {
|
|
655
655
|
tt(i, n, a);
|
|
656
656
|
}
|
|
657
|
-
}) : (a.value = e, a.state = _u,
|
|
657
|
+
}) : (a.value = e, a.state = _u, Bu(a, !1));
|
|
658
658
|
} catch (i) {
|
|
659
659
|
tt({ done: !1 }, i, a);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
};
|
|
663
663
|
if (Nu && (Le = function(e) {
|
|
664
|
-
Fg(this, Qt),
|
|
664
|
+
Fg(this, Qt), Bg(e), nt(Kt, this);
|
|
665
665
|
var t = $a(this);
|
|
666
666
|
try {
|
|
667
667
|
e(Je(ni, t), Je(tt, t));
|
|
@@ -681,7 +681,7 @@ if (Nu && (Le = function(e) {
|
|
|
681
681
|
});
|
|
682
682
|
}, Kt.prototype = ls(Qt, "then", function(e, t) {
|
|
683
683
|
var r = $a(this), i = ii(Ug(this, Le));
|
|
684
|
-
return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = pr ?
|
|
684
|
+
return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = pr ? ji.domain : void 0, r.state === vs ? r.reactions.add(i) : Li(function() {
|
|
685
685
|
Lu(i, r);
|
|
686
686
|
}), i.promise;
|
|
687
687
|
}), fs = function() {
|
|
@@ -814,12 +814,12 @@ var Nd = function(a, e) {
|
|
|
814
814
|
}, Id = Nr, Md = Nd, _d = Rt.CONSTRUCTOR, Hu = _d || !Md(function(a) {
|
|
815
815
|
Id.all(a).then(void 0, function() {
|
|
816
816
|
});
|
|
817
|
-
}), Vd = ee, Dd = Y, kd = Ae, Ld = lt,
|
|
817
|
+
}), Vd = ee, Dd = Y, kd = Ae, Ld = lt, Bd = ki, jd = Uu, Fd = Hu;
|
|
818
818
|
Vd({ target: "Promise", stat: !0, forced: Fd }, {
|
|
819
819
|
all: function(e) {
|
|
820
|
-
var t = this, r = Ld.f(t), i = r.resolve, n = r.reject, o =
|
|
820
|
+
var t = this, r = Ld.f(t), i = r.resolve, n = r.reject, o = Bd(function() {
|
|
821
821
|
var s = kd(t.resolve), u = [], l = 0, h = 1;
|
|
822
|
-
|
|
822
|
+
jd(e, function(f) {
|
|
823
823
|
var c = l++, v = !1;
|
|
824
824
|
h++, Dd(s, t, f).then(function(g) {
|
|
825
825
|
v || (v = !0, u[c] = g, --h || i(u));
|
|
@@ -950,10 +950,10 @@ var Hi = Object.create || function(e, t) {
|
|
|
950
950
|
var a = _p(".", "s");
|
|
951
951
|
return !(a.dotAll && a.test(`
|
|
952
952
|
`) && a.flags === "s");
|
|
953
|
-
}), Dp = D, kp = _, Lp = kp.RegExp,
|
|
953
|
+
}), Dp = D, kp = _, Lp = kp.RegExp, Bp = Dp(function() {
|
|
954
954
|
var a = Lp("(?<a>b)", "g");
|
|
955
955
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
|
956
|
-
}), et = Y, _r = k,
|
|
956
|
+
}), et = Y, _r = k, jp = pe, Fp = Yu, Up = Xu, Gp = Ci, zp = Hi, Hp = wr.get, Yp = Vp, Xp = Bp, Wp = Gp("native-string-replace", String.prototype.replace), mr = RegExp.prototype.exec, li = mr, qp = _r("".charAt), Qp = _r("".indexOf), Kp = _r("".replace), Ps = _r("".slice), hi = function() {
|
|
957
957
|
var a = /a/, e = /b*/g;
|
|
958
958
|
return et(mr, a, "a"), et(mr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
|
959
959
|
}(), Ku = Up.BROKEN_CARET, vi = /()??/.exec("")[1] !== void 0, Zp = hi || vi || Ku || Yp || Xp, Rs = function(a, e) {
|
|
@@ -963,7 +963,7 @@ var Hi = Object.create || function(e, t) {
|
|
|
963
963
|
}
|
|
964
964
|
};
|
|
965
965
|
Zp && (li = function(e) {
|
|
966
|
-
var t = this, r = Hp(t), i =
|
|
966
|
+
var t = this, r = Hp(t), i = jp(e), n = r.raw, o, s, u;
|
|
967
967
|
if (n)
|
|
968
968
|
return n.lastIndex = t.lastIndex, o = et(li, n, i), t.lastIndex = n.lastIndex, o && r.groups && Rs(o, r.groups), o;
|
|
969
969
|
var l = r.groups, h = Ku && t.sticky, f = et(Fp, t), c = t.source, v = 0, g = i;
|
|
@@ -1057,7 +1057,7 @@ var Is = Y, Ms = Ue, ey = Yi, _s = D, Zu = z, ty = At, ry = Zu("species"), Ca =
|
|
|
1057
1057
|
if (Oy(a) === "RegExp")
|
|
1058
1058
|
return Ls(Sy, a, e);
|
|
1059
1059
|
throw new Ey("RegExp#exec called on incompatible receiver");
|
|
1060
|
-
}, $y = Y, wy = k, Cy = Xi, Ay = J, Py = ae, Ry = ut, Jt = pe, Ny = ve, Iy = ot, My = qi, _y = Vr,
|
|
1060
|
+
}, $y = Y, wy = k, Cy = Xi, Ay = J, Py = ae, Ry = ut, Jt = pe, Ny = ve, Iy = ot, My = qi, _y = Vr, Bs = Qi, Aa = wy("".indexOf);
|
|
1061
1061
|
Cy("match", function(a, e, t) {
|
|
1062
1062
|
return [
|
|
1063
1063
|
// `String.prototype.match` method
|
|
@@ -1077,10 +1077,10 @@ Cy("match", function(a, e, t) {
|
|
|
1077
1077
|
return o.value;
|
|
1078
1078
|
var s = Jt(_y(i));
|
|
1079
1079
|
if (!~Aa(s, "g"))
|
|
1080
|
-
return
|
|
1080
|
+
return Bs(i, n);
|
|
1081
1081
|
var u = !!~Aa(s, "u") || !!~Aa(s, "v");
|
|
1082
1082
|
i.lastIndex = 0;
|
|
1083
|
-
for (var l = [], h = 0, f; (f =
|
|
1083
|
+
for (var l = [], h = 0, f; (f = Bs(i, n)) !== null; ) {
|
|
1084
1084
|
var c = Jt(f[0]);
|
|
1085
1085
|
l[h] = c, c === "" && (i.lastIndex = My(n, Ry(i.lastIndex), u)), h++;
|
|
1086
1086
|
}
|
|
@@ -1088,8 +1088,8 @@ Cy("match", function(a, e, t) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
];
|
|
1090
1090
|
});
|
|
1091
|
-
var Ki = k, Vy = Sr, Dy = Math.floor, Pa = Ki("".charAt), ky = Ki("".replace), Ra = Ki("".slice), Ly = /\$([$&'`]|\d{1,2}|<[^>]*>)/g,
|
|
1092
|
-
var o = t + a.length, s = r.length, u =
|
|
1091
|
+
var Ki = k, Vy = Sr, Dy = Math.floor, Pa = Ki("".charAt), ky = Ki("".replace), Ra = Ki("".slice), Ly = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, By = /\$([$&'`]|\d{1,2})/g, jy = function(a, e, t, r, i, n) {
|
|
1092
|
+
var o = t + a.length, s = r.length, u = By;
|
|
1093
1093
|
return i !== void 0 && (i = Vy(i), u = Ly), ky(n, u, function(l, h) {
|
|
1094
1094
|
var f;
|
|
1095
1095
|
switch (Pa(h, 0)) {
|
|
@@ -1116,7 +1116,7 @@ var Ki = k, Vy = Sr, Dy = Math.floor, Pa = Ki("".charAt), ky = Ki("".replace), R
|
|
|
1116
1116
|
}
|
|
1117
1117
|
return f === void 0 ? "" : f;
|
|
1118
1118
|
});
|
|
1119
|
-
}, Fy = xu,
|
|
1119
|
+
}, Fy = xu, js = Y, Dr = k, Uy = Xi, Gy = D, zy = J, Hy = L, Yy = ae, Xy = Cr, Wy = ut, _e = pe, qy = ve, Qy = qi, Ky = ot, Zy = jy, Jy = Vr, em = Qi, tm = z, fi = tm("replace"), rm = Math.max, am = Math.min, im = Dr([].concat), Na = Dr([].push), We = Dr("".indexOf), Fs = Dr("".slice), nm = function(a) {
|
|
1120
1120
|
return a === void 0 ? a : String(a);
|
|
1121
1121
|
}, sm = function() {
|
|
1122
1122
|
return "a".replace(/./, "$0") === "$0";
|
|
@@ -1136,7 +1136,7 @@ Uy("replace", function(a, e, t) {
|
|
|
1136
1136
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1137
1137
|
function(n, o) {
|
|
1138
1138
|
var s = qy(this), u = Yy(n) ? Ky(n, fi) : void 0;
|
|
1139
|
-
return u ?
|
|
1139
|
+
return u ? js(u, n, s, o) : js(e, _e(s), n, o);
|
|
1140
1140
|
},
|
|
1141
1141
|
// `RegExp.prototype[@@replace]` method
|
|
1142
1142
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
@@ -1218,18 +1218,18 @@ var Rm = function(a) {
|
|
|
1218
1218
|
return e[zs];
|
|
1219
1219
|
var t = e.constructor;
|
|
1220
1220
|
return _m(t) && e instanceof t ? t.prototype : e instanceof di ? Lm : null;
|
|
1221
|
-
},
|
|
1222
|
-
[].keys && (Ma = [].keys(), "next" in Ma ? (Ia = Hs(Hs(Ma)), Ia !== Object.prototype && (
|
|
1223
|
-
var zm = !Fm(
|
|
1221
|
+
}, Bm = D, jm = L, Fm = ae, Hs = el, Um = Ue, Gm = z, pi = Gm("iterator"), tl = !1, Be, Ia, Ma;
|
|
1222
|
+
[].keys && (Ma = [].keys(), "next" in Ma ? (Ia = Hs(Hs(Ma)), Ia !== Object.prototype && (Be = Ia)) : tl = !0);
|
|
1223
|
+
var zm = !Fm(Be) || Bm(function() {
|
|
1224
1224
|
var a = {};
|
|
1225
|
-
return
|
|
1225
|
+
return Be[pi].call(a) !== a;
|
|
1226
1226
|
});
|
|
1227
|
-
zm && (
|
|
1228
|
-
|
|
1227
|
+
zm && (Be = {});
|
|
1228
|
+
jm(Be[pi]) || Um(Be, pi, function() {
|
|
1229
1229
|
return this;
|
|
1230
1230
|
});
|
|
1231
1231
|
var rl = {
|
|
1232
|
-
IteratorPrototype:
|
|
1232
|
+
IteratorPrototype: Be,
|
|
1233
1233
|
BUGGY_SAFARI_ITERATORS: tl
|
|
1234
1234
|
}, Hm = rl.IteratorPrototype, Ym = Hi, Xm = Si, Wm = Pr, qm = Mr, Qm = function() {
|
|
1235
1235
|
return this;
|
|
@@ -1423,11 +1423,11 @@ M0({ target: "Array", proto: !0, forced: L0 }, {
|
|
|
1423
1423
|
return _0(this, e, t, t > 1 ? arguments[1] : void 0);
|
|
1424
1424
|
}
|
|
1425
1425
|
});
|
|
1426
|
-
var
|
|
1426
|
+
var B0 = ee, j0 = Rr, F0 = $t.f, U0 = ut, no = pe, G0 = Zi, z0 = ve, H0 = Ji, Y0 = j0("".slice), X0 = Math.min, hl = H0("endsWith"), W0 = !hl && !!function() {
|
|
1427
1427
|
var a = F0(String.prototype, "endsWith");
|
|
1428
1428
|
return a && !a.writable;
|
|
1429
1429
|
}();
|
|
1430
|
-
|
|
1430
|
+
B0({ target: "String", proto: !0, forced: !W0 && !hl }, {
|
|
1431
1431
|
endsWith: function(e) {
|
|
1432
1432
|
var t = no(z0(this));
|
|
1433
1433
|
G0(e);
|
|
@@ -1435,7 +1435,7 @@ j0({ target: "String", proto: !0, forced: !W0 && !hl }, {
|
|
|
1435
1435
|
return Y0(t, o - r.length, o) === r;
|
|
1436
1436
|
}
|
|
1437
1437
|
});
|
|
1438
|
-
var
|
|
1438
|
+
var Ba = Y, rn = k, q0 = Xi, Q0 = J, K0 = ae, Z0 = ve, J0 = mu, eb = qi, tb = ut, ja = pe, rb = ot, ab = Vr, so = Qi, ib = Xu, nb = D, qe = ib.UNSUPPORTED_Y, sb = 4294967295, ob = Math.min, Fa = rn([].push), Ua = rn("".slice), rr = rn("".indexOf), ub = !nb(function() {
|
|
1439
1439
|
var a = /(?:)/, e = a.exec;
|
|
1440
1440
|
a.exec = function() {
|
|
1441
1441
|
return e.apply(this, arguments);
|
|
@@ -1447,14 +1447,14 @@ var ja = Y, rn = k, q0 = Xi, Q0 = J, K0 = ae, Z0 = ve, J0 = mu, eb = qi, tb = ut
|
|
|
1447
1447
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
|
1448
1448
|
q0("split", function(a, e, t) {
|
|
1449
1449
|
var r = "0".split(void 0, 0).length ? function(i, n) {
|
|
1450
|
-
return i === void 0 && n === 0 ? [] :
|
|
1450
|
+
return i === void 0 && n === 0 ? [] : Ba(e, this, i, n);
|
|
1451
1451
|
} : e;
|
|
1452
1452
|
return [
|
|
1453
1453
|
// `String.prototype.split` method
|
|
1454
1454
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1455
1455
|
function(n, o) {
|
|
1456
1456
|
var s = Z0(this), u = K0(n) ? rb(n, a) : void 0;
|
|
1457
|
-
return u ?
|
|
1457
|
+
return u ? Ba(u, n, s, o) : Ba(r, ja(s), n, o);
|
|
1458
1458
|
},
|
|
1459
1459
|
// `RegExp.prototype[@@split]` method
|
|
1460
1460
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1462,13 +1462,13 @@ q0("split", function(a, e, t) {
|
|
|
1462
1462
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
1463
1463
|
// the 'y' flag.
|
|
1464
1464
|
function(i, n) {
|
|
1465
|
-
var o = Q0(this), s =
|
|
1465
|
+
var o = Q0(this), s = ja(i);
|
|
1466
1466
|
if (!oo) {
|
|
1467
1467
|
var u = t(r, o, s, n, r !== e);
|
|
1468
1468
|
if (u.done)
|
|
1469
1469
|
return u.value;
|
|
1470
1470
|
}
|
|
1471
|
-
var l = J0(o, RegExp), h =
|
|
1471
|
+
var l = J0(o, RegExp), h = ja(ab(o)), f = !!~rr(h, "u") || !!~rr(h, "v");
|
|
1472
1472
|
qe ? ~rr(h, "g") || (h += "g") : ~rr(h, "y") || (h += "y");
|
|
1473
1473
|
var c = new l(qe ? "^(?:" + o.source + ")" : o, h), v = n === void 0 ? sb : n >>> 0;
|
|
1474
1474
|
if (v === 0)
|
|
@@ -1820,10 +1820,10 @@ Ib({ target: "String", proto: !0, forced: !Db("includes") }, {
|
|
|
1820
1820
|
);
|
|
1821
1821
|
}
|
|
1822
1822
|
});
|
|
1823
|
-
var Lb = Ce,
|
|
1823
|
+
var Lb = Ce, Bb = Array.isArray || function(e) {
|
|
1824
1824
|
return Lb(e) === "Array";
|
|
1825
|
-
},
|
|
1826
|
-
|
|
1825
|
+
}, jb = ee, Fb = k, Ub = Bb, Gb = Fb([].reverse), co = [1, 2];
|
|
1826
|
+
jb({ target: "Array", proto: !0, forced: String(co) === String(co.reverse()) }, {
|
|
1827
1827
|
reverse: function() {
|
|
1828
1828
|
return Ub(this) && (this.length = this.length), Gb(this);
|
|
1829
1829
|
}
|
|
@@ -1989,7 +1989,7 @@ function bo(a, e, t, r, i) {
|
|
|
1989
1989
|
if (O === 0)
|
|
1990
1990
|
delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = m.LINE_TO;
|
|
1991
1991
|
else {
|
|
1992
|
-
var C = v.xRot * Math.PI / 180, P = Math.sin(C), V = Math.cos(C),
|
|
1992
|
+
var C = v.xRot * Math.PI / 180, P = Math.sin(C), V = Math.cos(C), j = 1 / E(v.rX), R = 1 / E(v.rY), X = E(V) * j + E(P) * R, W = 2 * P * V * (j - R), G = E(P) * j + E(V) * R, q = X * h * h - W * u * h + G * u * u, H = W * (s * h + u * l) - 2 * (X * l * h + G * s * u), Q = X * l * l - W * s * l + G * s * s, N = (Math.atan2(H, q - Q) + Math.PI) % Math.PI / 2, M = Math.sin(N), K = Math.cos(N);
|
|
1993
1993
|
v.rX = Math.abs(O) / Math.sqrt(q * E(K) + H * M * K + Q * E(M)), v.rY = Math.abs(O) / Math.sqrt(q * E(M) - H * M * K + Q * E(K)), v.xRot = 180 * N / Math.PI;
|
|
1994
1994
|
}
|
|
1995
1995
|
return v.sweepFlag !== void 0 && 0 > O && (v.sweepFlag = +!v.sweepFlag), v;
|
|
@@ -2055,7 +2055,7 @@ function bo(a, e, t, r, i) {
|
|
|
2055
2055
|
var v, g, d, p;
|
|
2056
2056
|
h.cX || Ha(h, f, c);
|
|
2057
2057
|
for (var y = Math.min(h.phi1, h.phi2), T = Math.max(h.phi1, h.phi2) - y, b = Math.ceil(T / 90), x = new Array(b), $ = f, E = c, O = 0; O < b; O++) {
|
|
2058
|
-
var C = po(h.phi1, h.phi2, O / b), P = po(h.phi1, h.phi2, (O + 1) / b), V = P - C,
|
|
2058
|
+
var C = po(h.phi1, h.phi2, O / b), P = po(h.phi1, h.phi2, (O + 1) / b), V = P - C, j = 4 / 3 * Math.tan(V * ye / 4), R = [Math.cos(C * ye) - j * Math.sin(C * ye), Math.sin(C * ye) + j * Math.cos(C * ye)], X = R[0], W = R[1], G = [Math.cos(P * ye), Math.sin(P * ye)], q = G[0], H = G[1], Q = [q + j * Math.sin(P * ye), H - j * Math.cos(P * ye)], N = Q[0], M = Q[1];
|
|
2059
2059
|
x[O] = { relative: h.relative, type: m.CURVE_TO };
|
|
2060
2060
|
var K = function(se, ge) {
|
|
2061
2061
|
var Oe = xi([se * h.rX, ge * h.rY], h.xRot), ze = Oe[0], It = Oe[1];
|
|
@@ -2093,7 +2093,7 @@ function bo(a, e, t, r, i) {
|
|
|
2093
2093
|
}
|
|
2094
2094
|
if (d.type & m.ARC) {
|
|
2095
2095
|
p(d.x), y(d.y), Ha(d, v, g);
|
|
2096
|
-
for (var E = d.xRot / 180 * Math.PI, O = Math.cos(E) * d.rX, C = Math.sin(E) * d.rX, P = -Math.sin(E) * d.rY, V = Math.cos(E) * d.rY,
|
|
2096
|
+
for (var E = d.xRot / 180 * Math.PI, O = Math.cos(E) * d.rX, C = Math.sin(E) * d.rX, P = -Math.sin(E) * d.rY, V = Math.cos(E) * d.rY, j = d.phi1 < d.phi2 ? [d.phi1, d.phi2] : -180 > d.phi2 ? [d.phi2 + 360, d.phi1 + 360] : [d.phi2, d.phi1], R = j[0], X = j[1], W = function(M) {
|
|
2097
2097
|
var K = M[0], se = M[1], ge = 180 * Math.atan2(se, K) / Math.PI;
|
|
2098
2098
|
return ge < R ? ge + 360 : ge;
|
|
2099
2099
|
}, G = 0, q = go(P, -O, 0).map(W); G < q.length; G++)
|
|
@@ -2307,7 +2307,7 @@ function s1(a, e, t, r, i, n) {
|
|
|
2307
2307
|
v.next = c;
|
|
2308
2308
|
for (var p = null, y = null, T = 0, b = 0, x = r1[n], $ = a1[n], E = 0; E < i; E++) {
|
|
2309
2309
|
v = c;
|
|
2310
|
-
for (var O = o[b], C = o[b + 1], P = o[b + 2], V = o[b + 3],
|
|
2310
|
+
for (var O = o[b], C = o[b + 1], P = o[b + 2], V = o[b + 3], j = 0; j < h; j++)
|
|
2311
2311
|
v.r = O, v.g = C, v.b = P, v.a = V, v = v.next;
|
|
2312
2312
|
for (var R = 0, X = 0, W = 0, G = 0, q = h * O, H = h * C, Q = h * P, N = h * V, M = f * O, K = f * C, se = f * P, ge = f * V, Oe = 1; Oe < h; Oe++) {
|
|
2313
2313
|
var ze = b + ((u < Oe ? u : Oe) << 2), It = o[ze], on = o[ze + 1], un = o[ze + 2], ln = o[ze + 3], Mt = h - Oe;
|
|
@@ -2335,10 +2335,10 @@ function s1(a, e, t, r, i, n) {
|
|
|
2335
2335
|
v = c;
|
|
2336
2336
|
for (var gn = 0; gn < h; gn++)
|
|
2337
2337
|
v.r = Re, v.g = Ne, v.b = Ie, v.a = te, v = v.next;
|
|
2338
|
-
for (var dn = r, qr = 0, Qr = 0, Kr = 0, Zr = 0,
|
|
2338
|
+
for (var dn = r, qr = 0, Qr = 0, Kr = 0, Zr = 0, Bt = 1; Bt <= n; Bt++) {
|
|
2339
2339
|
b = dn + He << 2;
|
|
2340
|
-
var
|
|
2341
|
-
Vt += (v.r = Re = o[b]) *
|
|
2340
|
+
var jt = h - Bt;
|
|
2341
|
+
Vt += (v.r = Re = o[b]) * jt, Dt += (v.g = Ne = o[b + 1]) * jt, kt += (v.b = Ie = o[b + 2]) * jt, Lt += (v.a = te = o[b + 3]) * jt, Zr += Re, qr += Ne, Qr += Ie, Kr += te, v = v.next, Bt < l && (dn += r);
|
|
2342
2342
|
}
|
|
2343
2343
|
b = He, p = c, y = g;
|
|
2344
2344
|
for (var Jr = 0; Jr < i; Jr++) {
|
|
@@ -2676,21 +2676,21 @@ class O1 {
|
|
|
2676
2676
|
return typeof e == "number" ? e : e === "x" ? this.width : e === "y" ? this.height : Math.sqrt(Math.pow(this.width, 2) + Math.pow(this.height, 2)) / Math.sqrt(2);
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
|
-
class
|
|
2679
|
+
class B {
|
|
2680
2680
|
constructor(e, t) {
|
|
2681
2681
|
this.x = e, this.y = t;
|
|
2682
2682
|
}
|
|
2683
2683
|
static parse(e) {
|
|
2684
2684
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [r = t, i = t] = ne(e);
|
|
2685
|
-
return new
|
|
2685
|
+
return new B(r, i);
|
|
2686
2686
|
}
|
|
2687
2687
|
static parseScale(e) {
|
|
2688
2688
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [r = t, i = r] = ne(e);
|
|
2689
|
-
return new
|
|
2689
|
+
return new B(r, i);
|
|
2690
2690
|
}
|
|
2691
2691
|
static parsePath(e) {
|
|
2692
2692
|
for (var t = ne(e), r = t.length, i = [], n = 0; n < r; n += 2)
|
|
2693
|
-
i.push(new
|
|
2693
|
+
i.push(new B(t[n], t[n + 1]));
|
|
2694
2694
|
return i;
|
|
2695
2695
|
}
|
|
2696
2696
|
angleTo(e) {
|
|
@@ -2781,7 +2781,7 @@ class S1 {
|
|
|
2781
2781
|
for (var {
|
|
2782
2782
|
window: r,
|
|
2783
2783
|
ctx: i
|
|
2784
|
-
} = this.screen, n = new
|
|
2784
|
+
} = this.screen, n = new B(e, t), o = i.canvas; o; )
|
|
2785
2785
|
n.x -= o.offsetLeft, n.y -= o.offsetTop, o = o.offsetParent;
|
|
2786
2786
|
return r.scrollX && (n.x += r.scrollX), r.scrollY && (n.y += r.scrollY), n;
|
|
2787
2787
|
}
|
|
@@ -2856,8 +2856,8 @@ class Lr {
|
|
|
2856
2856
|
clipY: d = 0
|
|
2857
2857
|
} = e, p = ht(i).replace(/^defer\s/, ""), [y, T] = p.split(" "), b = y || "xMidYMid", x = T || "meet", $ = n / o, E = s / u, O = Math.min($, E), C = Math.max($, E), P = o, V = u;
|
|
2858
2858
|
x === "meet" && (P *= O, V *= O), x === "slice" && (P *= C, V *= C);
|
|
2859
|
-
var
|
|
2860
|
-
if (X && r.translate(-O *
|
|
2859
|
+
var j = new S(t, "refX", f), R = new S(t, "refY", c), X = j.hasValue() && R.hasValue();
|
|
2860
|
+
if (X && r.translate(-O * j.getPixels("x"), -O * R.getPixels("y")), v) {
|
|
2861
2861
|
var W = O * g, G = O * d;
|
|
2862
2862
|
r.beginPath(), r.moveTo(W, G), r.lineTo(n, G), r.lineTo(n, s), r.lineTo(W, s), r.closePath(), r.clip();
|
|
2863
2863
|
}
|
|
@@ -2988,7 +2988,7 @@ class Ya {
|
|
|
2988
2988
|
}
|
|
2989
2989
|
class w1 {
|
|
2990
2990
|
constructor(e, t) {
|
|
2991
|
-
this.type = "translate", this.point = null, this.point =
|
|
2991
|
+
this.type = "translate", this.point = null, this.point = B.parse(t);
|
|
2992
2992
|
}
|
|
2993
2993
|
apply(e) {
|
|
2994
2994
|
var {
|
|
@@ -3066,7 +3066,7 @@ class C1 {
|
|
|
3066
3066
|
class A1 {
|
|
3067
3067
|
constructor(e, t, r) {
|
|
3068
3068
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
|
3069
|
-
var i =
|
|
3069
|
+
var i = B.parseScale(t);
|
|
3070
3070
|
(i.x === 0 || i.y === 0) && (i.x = at, i.y = at), this.scale = i, this.originX = r[0], this.originY = r[1];
|
|
3071
3071
|
}
|
|
3072
3072
|
apply(e) {
|
|
@@ -3145,20 +3145,20 @@ function I1(a) {
|
|
|
3145
3145
|
var [e, t] = a.split("(");
|
|
3146
3146
|
return [e.trim(), t.trim().replace(")", "")];
|
|
3147
3147
|
}
|
|
3148
|
-
class
|
|
3148
|
+
class je {
|
|
3149
3149
|
constructor(e, t, r) {
|
|
3150
3150
|
this.document = e, this.transforms = [];
|
|
3151
3151
|
var i = N1(t);
|
|
3152
3152
|
i.forEach((n) => {
|
|
3153
3153
|
if (n !== "none") {
|
|
3154
|
-
var [o, s] = I1(n), u =
|
|
3154
|
+
var [o, s] = I1(n), u = je.transformTypes[o];
|
|
3155
3155
|
typeof u < "u" && this.transforms.push(new u(this.document, s, r));
|
|
3156
3156
|
}
|
|
3157
3157
|
});
|
|
3158
3158
|
}
|
|
3159
3159
|
static fromElement(e, t) {
|
|
3160
3160
|
var r = t.getStyle("transform", !1, !0), [i, n = i] = t.getStyle("transform-origin", !1, !0).split(), o = [i, n];
|
|
3161
|
-
return r.hasValue() ? new
|
|
3161
|
+
return r.hasValue() ? new je(e, r.getString(), o) : null;
|
|
3162
3162
|
}
|
|
3163
3163
|
apply(e) {
|
|
3164
3164
|
for (var {
|
|
@@ -3180,7 +3180,7 @@ class Be {
|
|
|
3180
3180
|
t[i].applyToPoint(e);
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
3183
|
-
|
|
3183
|
+
je.transformTypes = {
|
|
3184
3184
|
translate: w1,
|
|
3185
3185
|
rotate: C1,
|
|
3186
3186
|
scale: A1,
|
|
@@ -3270,7 +3270,7 @@ class I {
|
|
|
3270
3270
|
setContext(e) {
|
|
3271
3271
|
}
|
|
3272
3272
|
applyEffects(e) {
|
|
3273
|
-
var t =
|
|
3273
|
+
var t = je.fromElement(this.document, this);
|
|
3274
3274
|
t && t.apply(e);
|
|
3275
3275
|
var r = this.getStyle("clip-path", !1, !0);
|
|
3276
3276
|
if (r.hasValue()) {
|
|
@@ -3505,7 +3505,7 @@ class w extends m {
|
|
|
3505
3505
|
super(e.replace(/([+\-.])\s+/gm, "$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g, "")), this.control = null, this.start = null, this.current = null, this.command = null, this.commands = this.commands, this.i = -1, this.previousCommand = null, this.points = [], this.angles = [];
|
|
3506
3506
|
}
|
|
3507
3507
|
reset() {
|
|
3508
|
-
this.i = -1, this.command = null, this.previousCommand = null, this.start = new
|
|
3508
|
+
this.i = -1, this.command = null, this.previousCommand = null, this.start = new B(0, 0), this.control = new B(0, 0), this.current = new B(0, 0), this.points = [], this.angles = [];
|
|
3509
3509
|
}
|
|
3510
3510
|
isEnd() {
|
|
3511
3511
|
var {
|
|
@@ -3519,7 +3519,7 @@ class w extends m {
|
|
|
3519
3519
|
return this.previousCommand = this.command, this.command = e, e;
|
|
3520
3520
|
}
|
|
3521
3521
|
getPoint() {
|
|
3522
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "x", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "y", r = new
|
|
3522
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "x", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "y", r = new B(this.command[e], this.command[t]);
|
|
3523
3523
|
return this.makeAbsolute(r);
|
|
3524
3524
|
}
|
|
3525
3525
|
getAsControlPoint(e, t) {
|
|
@@ -3543,7 +3543,7 @@ class w extends m {
|
|
|
3543
3543
|
x: i,
|
|
3544
3544
|
y: n
|
|
3545
3545
|
}
|
|
3546
|
-
} = this, o = new
|
|
3546
|
+
} = this, o = new B(2 * t - i, 2 * r - n);
|
|
3547
3547
|
return o;
|
|
3548
3548
|
}
|
|
3549
3549
|
makeAbsolute(e) {
|
|
@@ -3636,8 +3636,8 @@ class Ge extends I {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
}
|
|
3638
3638
|
if (this.modifiedEmSizeStack = !1, typeof e.font < "u") {
|
|
3639
|
-
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"), P = this.getStyle("font-weight"), V = this.getStyle("font-size"),
|
|
3640
|
-
O.setValue(R.fontStyle), C.setValue(R.fontVariant), P.setValue(R.fontWeight), V.setValue(R.fontSize),
|
|
3639
|
+
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"), P = this.getStyle("font-weight"), V = this.getStyle("font-size"), j = this.getStyle("font-family"), R = new Z(O.getString(), C.getString(), P.getString(), V.hasValue() ? "".concat(V.getPixels(!0), "px") : "", j.getString(), Z.parse(E.getString(), e.font));
|
|
3640
|
+
O.setValue(R.fontStyle), C.setValue(R.fontVariant), P.setValue(R.fontWeight), V.setValue(R.fontSize), j.setValue(R.fontFamily), e.font = R.toString(), V.isPixels() && (this.document.emSize = V.getPixels(), this.modifiedEmSizeStack = !0);
|
|
3641
3641
|
}
|
|
3642
3642
|
t || (this.applyEffects(e), e.globalAlpha = this.calculateOpacity());
|
|
3643
3643
|
}
|
|
@@ -3761,7 +3761,7 @@ class A extends Ge {
|
|
|
3761
3761
|
var {
|
|
3762
3762
|
current: t,
|
|
3763
3763
|
command: r
|
|
3764
|
-
} = e, i = new
|
|
3764
|
+
} = e, i = new B((r.relative ? t.x : 0) + r.x, t.y);
|
|
3765
3765
|
return e.current = i, {
|
|
3766
3766
|
current: t,
|
|
3767
3767
|
point: i
|
|
@@ -3783,7 +3783,7 @@ class A extends Ge {
|
|
|
3783
3783
|
var {
|
|
3784
3784
|
current: t,
|
|
3785
3785
|
command: r
|
|
3786
|
-
} = e, i = new
|
|
3786
|
+
} = e, i = new B(t.x, (r.relative ? t.y : 0) + r.y);
|
|
3787
3787
|
return e.current = i, {
|
|
3788
3788
|
current: t,
|
|
3789
3789
|
point: i
|
|
@@ -3897,11 +3897,11 @@ class A extends Ge {
|
|
|
3897
3897
|
xRot: o,
|
|
3898
3898
|
lArcFlag: s,
|
|
3899
3899
|
sweepFlag: u
|
|
3900
|
-
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new
|
|
3900
|
+
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new B(Math.cos(l) * (t.x - h.x) / 2 + Math.sin(l) * (t.y - h.y) / 2, -Math.sin(l) * (t.x - h.x) / 2 + Math.cos(l) * (t.y - h.y) / 2), c = Math.pow(f.x, 2) / Math.pow(i, 2) + Math.pow(f.y, 2) / Math.pow(n, 2);
|
|
3901
3901
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
|
3902
3902
|
var v = (s === u ? -1 : 1) * Math.sqrt((Math.pow(i, 2) * Math.pow(n, 2) - Math.pow(i, 2) * Math.pow(f.y, 2) - Math.pow(n, 2) * Math.pow(f.x, 2)) / (Math.pow(i, 2) * Math.pow(f.y, 2) + Math.pow(n, 2) * Math.pow(f.x, 2)));
|
|
3903
3903
|
isNaN(v) && (v = 0);
|
|
3904
|
-
var g = new
|
|
3904
|
+
var g = new B(v * i * f.y / n, v * -n * f.x / i), d = new B((t.x + h.x) / 2 + Math.cos(l) * g.x - Math.sin(l) * g.y, (t.y + h.y) / 2 + Math.sin(l) * g.x + Math.cos(l) * g.y), p = Eo([1, 0], [(f.x - g.x) / i, (f.y - g.y) / n]), y = [(f.x - g.x) / i, (f.y - g.y) / n], T = [(-f.x - g.x) / i, (-f.y - g.y) / n], b = Eo(y, T);
|
|
3905
3905
|
return Ti(y, T) <= -1 && (b = Math.PI), Ti(y, T) >= 1 && (b = 0), {
|
|
3906
3906
|
currentPoint: h,
|
|
3907
3907
|
rX: i,
|
|
@@ -3925,7 +3925,7 @@ class A extends Ge {
|
|
|
3925
3925
|
centp: l,
|
|
3926
3926
|
a1: h,
|
|
3927
3927
|
ad: f
|
|
3928
|
-
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), g = new
|
|
3928
|
+
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), g = new B(l.x + n * Math.cos(v), l.y + o * Math.sin(v));
|
|
3929
3929
|
if (r.addMarkerAngle(g, v - c * Math.PI / 2), r.addMarkerAngle(i, v - c * Math.PI), t.addPoint(i.x, i.y), e && !isNaN(h) && !isNaN(f)) {
|
|
3930
3930
|
var d = n > o ? n : o, p = n > o ? 1 : n / o, y = n > o ? o / n : 1;
|
|
3931
3931
|
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, d, h, h + f, !!(1 - s)), e.scale(1 / p, 1 / y), e.rotate(-u), e.translate(-l.x, -l.y);
|
|
@@ -4127,15 +4127,15 @@ class we extends Ge {
|
|
|
4127
4127
|
return null;
|
|
4128
4128
|
}
|
|
4129
4129
|
}
|
|
4130
|
-
class
|
|
4130
|
+
class Br extends we {
|
|
4131
4131
|
constructor(e, t, r) {
|
|
4132
|
-
super(e, t, new.target ===
|
|
4132
|
+
super(e, t, new.target === Br ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
|
|
4133
4133
|
}
|
|
4134
4134
|
getText() {
|
|
4135
4135
|
return this.text;
|
|
4136
4136
|
}
|
|
4137
4137
|
}
|
|
4138
|
-
class L1 extends
|
|
4138
|
+
class L1 extends Br {
|
|
4139
4139
|
constructor() {
|
|
4140
4140
|
super(...arguments), this.type = "textNode";
|
|
4141
4141
|
}
|
|
@@ -4219,7 +4219,7 @@ class El extends A {
|
|
|
4219
4219
|
return null;
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
|
-
class
|
|
4222
|
+
class B1 extends A {
|
|
4223
4223
|
constructor() {
|
|
4224
4224
|
super(...arguments), this.type = "circle";
|
|
4225
4225
|
}
|
|
@@ -4231,7 +4231,7 @@ class j1 extends A {
|
|
|
4231
4231
|
return null;
|
|
4232
4232
|
}
|
|
4233
4233
|
}
|
|
4234
|
-
class
|
|
4234
|
+
class j1 extends A {
|
|
4235
4235
|
constructor() {
|
|
4236
4236
|
super(...arguments), this.type = "ellipse";
|
|
4237
4237
|
}
|
|
@@ -4248,7 +4248,7 @@ class F1 extends A {
|
|
|
4248
4248
|
super(...arguments), this.type = "line";
|
|
4249
4249
|
}
|
|
4250
4250
|
getPoints() {
|
|
4251
|
-
return [new
|
|
4251
|
+
return [new B(this.getAttribute("x1").getPixels("x"), this.getAttribute("y1").getPixels("y")), new B(this.getAttribute("x2").getPixels("x"), this.getAttribute("y2").getPixels("y"))];
|
|
4252
4252
|
}
|
|
4253
4253
|
path(e) {
|
|
4254
4254
|
var [{
|
|
@@ -4267,7 +4267,7 @@ class F1 extends A {
|
|
|
4267
4267
|
}
|
|
4268
4268
|
class $l extends A {
|
|
4269
4269
|
constructor(e, t, r) {
|
|
4270
|
-
super(e, t, r), this.type = "polyline", this.points = [], this.points =
|
|
4270
|
+
super(e, t, r), this.type = "polyline", this.points = [], this.points = B.parsePath(this.getAttribute("points").getString());
|
|
4271
4271
|
}
|
|
4272
4272
|
path(e) {
|
|
4273
4273
|
var {
|
|
@@ -5231,7 +5231,7 @@ class o2 extends Ge {
|
|
|
5231
5231
|
document: e,
|
|
5232
5232
|
element: t
|
|
5233
5233
|
} = this;
|
|
5234
|
-
return
|
|
5234
|
+
return je.fromElement(e, t);
|
|
5235
5235
|
}
|
|
5236
5236
|
get element() {
|
|
5237
5237
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
|
@@ -5283,7 +5283,7 @@ class Al extends I {
|
|
|
5283
5283
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
|
5284
5284
|
}
|
|
5285
5285
|
}
|
|
5286
|
-
class
|
|
5286
|
+
class jr extends I {
|
|
5287
5287
|
constructor() {
|
|
5288
5288
|
super(...arguments), this.type = "mask";
|
|
5289
5289
|
}
|
|
@@ -5297,7 +5297,7 @@ class Br extends I {
|
|
|
5297
5297
|
u.addBoundingBox(g.getBoundingBox(e));
|
|
5298
5298
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
|
5299
5299
|
}
|
|
5300
|
-
var l = this.removeStyles(t,
|
|
5300
|
+
var l = this.removeStyles(t, jr.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
|
5301
5301
|
r.screen.setDefaults(f), this.renderChildren(f), new Al(r, {
|
|
5302
5302
|
nodeType: 1,
|
|
5303
5303
|
childNodes: [],
|
|
@@ -5315,7 +5315,7 @@ class Br extends I {
|
|
|
5315
5315
|
render(e) {
|
|
5316
5316
|
}
|
|
5317
5317
|
}
|
|
5318
|
-
|
|
5318
|
+
jr.ignoreStyles = ["mask", "transform", "clip-path"];
|
|
5319
5319
|
var Mo = () => {
|
|
5320
5320
|
};
|
|
5321
5321
|
class u2 extends I {
|
|
@@ -5332,7 +5332,7 @@ class u2 extends I {
|
|
|
5332
5332
|
r && (r.beginPath = Mo, r.closePath = Mo), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
|
5333
5333
|
if (!(typeof o.path > "u")) {
|
|
5334
5334
|
var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
|
|
5335
|
-
s || (s =
|
|
5335
|
+
s || (s = je.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
|
5336
5336
|
}
|
|
5337
5337
|
}), Reflect.apply(n, e, []), e.clip(), r && (r.beginPath = i, r.closePath = n);
|
|
5338
5338
|
}
|
|
@@ -5413,8 +5413,8 @@ class g2 extends I {
|
|
|
5413
5413
|
var d2 = {
|
|
5414
5414
|
svg: Nt,
|
|
5415
5415
|
rect: El,
|
|
5416
|
-
circle:
|
|
5417
|
-
ellipse:
|
|
5416
|
+
circle: B1,
|
|
5417
|
+
ellipse: j1,
|
|
5418
5418
|
line: F1,
|
|
5419
5419
|
polyline: $l,
|
|
5420
5420
|
polygon: U1,
|
|
@@ -5433,7 +5433,7 @@ var d2 = {
|
|
|
5433
5433
|
"missing-glyph": J1,
|
|
5434
5434
|
glyph: Sl,
|
|
5435
5435
|
text: we,
|
|
5436
|
-
tspan:
|
|
5436
|
+
tspan: Br,
|
|
5437
5437
|
tref: e2,
|
|
5438
5438
|
a: t2,
|
|
5439
5439
|
textPath: r2,
|
|
@@ -5442,7 +5442,7 @@ var d2 = {
|
|
|
5442
5442
|
symbol: n2,
|
|
5443
5443
|
style: Cl,
|
|
5444
5444
|
use: o2,
|
|
5445
|
-
mask:
|
|
5445
|
+
mask: jr,
|
|
5446
5446
|
clipPath: u2,
|
|
5447
5447
|
filter: Fr,
|
|
5448
5448
|
feDropShadow: l2,
|
|
@@ -5715,13 +5715,13 @@ export {
|
|
|
5715
5715
|
Co as CB3,
|
|
5716
5716
|
Ao as CB4,
|
|
5717
5717
|
bt as Canvg,
|
|
5718
|
-
|
|
5718
|
+
B1 as CircleElement,
|
|
5719
5719
|
u2 as ClipPathElement,
|
|
5720
5720
|
H1 as DefsElement,
|
|
5721
5721
|
g2 as DescElement,
|
|
5722
5722
|
Ee as Document,
|
|
5723
5723
|
I as Element,
|
|
5724
|
-
|
|
5724
|
+
j1 as EllipseElement,
|
|
5725
5725
|
Al as FeColorMatrixElement,
|
|
5726
5726
|
v2 as FeCompositeElement,
|
|
5727
5727
|
l2 as FeDropShadowElement,
|
|
@@ -5738,7 +5738,7 @@ export {
|
|
|
5738
5738
|
F1 as LineElement,
|
|
5739
5739
|
Y1 as LinearGradientElement,
|
|
5740
5740
|
z1 as MarkerElement,
|
|
5741
|
-
|
|
5741
|
+
jr as MaskElement,
|
|
5742
5742
|
Tl as Matrix,
|
|
5743
5743
|
J1 as MissingGlyphElement,
|
|
5744
5744
|
S1 as Mouse,
|
|
@@ -5747,7 +5747,7 @@ export {
|
|
|
5747
5747
|
A as PathElement,
|
|
5748
5748
|
w as PathParser,
|
|
5749
5749
|
G1 as PatternElement,
|
|
5750
|
-
|
|
5750
|
+
B as Point,
|
|
5751
5751
|
U1 as PolygonElement,
|
|
5752
5752
|
$l as PolylineElement,
|
|
5753
5753
|
S as Property,
|
|
@@ -5769,11 +5769,11 @@ export {
|
|
|
5769
5769
|
Cl as StyleElement,
|
|
5770
5770
|
n2 as SymbolElement,
|
|
5771
5771
|
e2 as TRefElement,
|
|
5772
|
-
|
|
5772
|
+
Br as TSpanElement,
|
|
5773
5773
|
we as TextElement,
|
|
5774
5774
|
r2 as TextPathElement,
|
|
5775
5775
|
c2 as TitleElement,
|
|
5776
|
-
|
|
5776
|
+
je as Transform,
|
|
5777
5777
|
w1 as Translate,
|
|
5778
5778
|
M1 as UnknownElement,
|
|
5779
5779
|
o2 as UseElement,
|