@ianicdev/datatables2 0.2.2 → 0.2.3
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/datatables.js +1 -1
- package/dist/datatables.mjs +1 -1
- package/dist/index-CWtQWzJb.js +325 -0
- package/dist/{index-B_LcTHjR.mjs → index-HQNCf2lO.mjs} +26547 -26564
- package/dist/{index.es-tdG0XDuh.mjs → index.es-CNLQQBay.mjs} +959 -975
- package/dist/index.es-CTEmW802.js +18 -0
- package/dist/purify.es-BGDLgQxM.mjs +519 -0
- package/dist/purify.es-DSp9NJ6S.js +2 -0
- package/dist/style.css +1 -1
- package/package.json +33 -33
- package/dist/index-KrtDRiBG.js +0 -333
- package/dist/index.es-uQXM2zxp.js +0 -18
- package/dist/purify.es-BJHiDXdY.js +0 -3
- package/dist/purify.es-BwOkayRK.mjs +0 -471
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Ke, _ as
|
|
1
|
+
import { c as Ke, _ as Ga, g as Po } from "./index-HQNCf2lO.mjs";
|
|
2
2
|
var vt = function(a) {
|
|
3
3
|
return a && a.Math === Math && a;
|
|
4
4
|
}, V = (
|
|
@@ -14,148 +14,148 @@ var vt = function(a) {
|
|
|
14
14
|
} catch {
|
|
15
15
|
return !0;
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, Tl = k, le = !Tl(function() {
|
|
18
18
|
return Object.defineProperty({}, 1, { get: function() {
|
|
19
19
|
return 7;
|
|
20
20
|
} })[1] !== 7;
|
|
21
|
-
}),
|
|
21
|
+
}), Ol = k, mr = !Ol(function() {
|
|
22
22
|
var a = (function() {
|
|
23
23
|
}).bind();
|
|
24
24
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
|
25
|
-
}),
|
|
25
|
+
}), Sl = mr, Ut = Function.prototype.call, Y = Sl ? Ut.bind(Ut) : function() {
|
|
26
26
|
return Ut.apply(Ut, arguments);
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
var t =
|
|
27
|
+
}, Ro = {}, No = {}.propertyIsEnumerable, Io = Object.getOwnPropertyDescriptor, El = Io && !No.call({ 1: 2 }, 1);
|
|
28
|
+
Ro.f = El ? function(e) {
|
|
29
|
+
var t = Io(this, e);
|
|
30
30
|
return !!t && t.enumerable;
|
|
31
|
-
} :
|
|
32
|
-
var
|
|
31
|
+
} : No;
|
|
32
|
+
var bi = function(a, e) {
|
|
33
33
|
return {
|
|
34
34
|
enumerable: !(a & 1),
|
|
35
35
|
configurable: !(a & 2),
|
|
36
36
|
writable: !(a & 4),
|
|
37
37
|
value: e
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, Mo = mr, _o = Function.prototype, za = _o.call, $l = Mo && _o.bind.bind(za, za), L = Mo ? $l : function(a) {
|
|
40
40
|
return function() {
|
|
41
|
-
return
|
|
41
|
+
return za.apply(a, arguments);
|
|
42
42
|
};
|
|
43
|
-
},
|
|
44
|
-
return
|
|
45
|
-
},
|
|
43
|
+
}, Vo = L, wl = Vo({}.toString), Cl = Vo("".slice), Be = function(a) {
|
|
44
|
+
return Cl(wl(a), 8, -1);
|
|
45
|
+
}, Al = L, Pl = k, Rl = Be, Qr = Object, Nl = Al("".split), Do = Pl(function() {
|
|
46
46
|
return !Qr("z").propertyIsEnumerable(0);
|
|
47
47
|
}) ? function(a) {
|
|
48
|
-
return
|
|
48
|
+
return Rl(a) === "String" ? Nl(a, "") : Qr(a);
|
|
49
49
|
} : Qr, je = function(a) {
|
|
50
50
|
return a == null;
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
51
|
+
}, Il = je, Ml = TypeError, he = function(a) {
|
|
52
|
+
if (Il(a)) throw new Ml("Can't call method on " + a);
|
|
53
53
|
return a;
|
|
54
|
-
},
|
|
55
|
-
return
|
|
54
|
+
}, _l = Do, Vl = he, wt = function(a) {
|
|
55
|
+
return _l(Vl(a));
|
|
56
56
|
}, Kr = typeof document == "object" && document.all, B = typeof Kr > "u" && Kr !== void 0 ? function(a) {
|
|
57
57
|
return typeof a == "function" || a === Kr;
|
|
58
58
|
} : function(a) {
|
|
59
59
|
return typeof a == "function";
|
|
60
|
-
},
|
|
61
|
-
return typeof a == "object" ? a !== null :
|
|
62
|
-
}, Zr = V,
|
|
63
|
-
return
|
|
60
|
+
}, Dl = B, ve = function(a) {
|
|
61
|
+
return typeof a == "object" ? a !== null : Dl(a);
|
|
62
|
+
}, Zr = V, kl = B, Ll = function(a) {
|
|
63
|
+
return kl(a) ? a : void 0;
|
|
64
64
|
}, Fe = function(a, e) {
|
|
65
|
-
return arguments.length < 2 ?
|
|
66
|
-
},
|
|
67
|
-
|
|
65
|
+
return arguments.length < 2 ? Ll(Zr[a]) : Zr[a] && Zr[a][e];
|
|
66
|
+
}, Bl = L, br = Bl({}.isPrototypeOf), jl = V, fn = jl.navigator, cn = fn && fn.userAgent, Ct = cn ? String(cn) : "", ko = V, Jr = Ct, gn = ko.process, dn = ko.Deno, pn = gn && gn.versions || dn && dn.version, yn = pn && pn.v8, ue, fr;
|
|
67
|
+
yn && (ue = yn.split("."), fr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
|
|
68
68
|
!fr && Jr && (ue = Jr.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = Jr.match(/Chrome\/(\d+)/), ue && (fr = +ue[1])));
|
|
69
|
-
var
|
|
69
|
+
var xi = fr, mn = xi, Fl = k, Ul = V, Gl = Ul.String, Lo = !!Object.getOwnPropertySymbols && !Fl(function() {
|
|
70
70
|
var a = Symbol("symbol detection");
|
|
71
|
-
return !
|
|
72
|
-
!Symbol.sham &&
|
|
73
|
-
}),
|
|
71
|
+
return !Gl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
72
|
+
!Symbol.sham && mn && mn < 41;
|
|
73
|
+
}), zl = Lo, Bo = zl && !Symbol.sham && typeof Symbol.iterator == "symbol", Hl = Fe, Yl = B, Xl = br, Wl = Bo, ql = Object, jo = Wl ? function(a) {
|
|
74
74
|
return typeof a == "symbol";
|
|
75
75
|
} : function(a) {
|
|
76
|
-
var e =
|
|
77
|
-
return
|
|
78
|
-
},
|
|
76
|
+
var e = Hl("Symbol");
|
|
77
|
+
return Yl(e) && Xl(e.prototype, ql(a));
|
|
78
|
+
}, Ql = String, xr = function(a) {
|
|
79
79
|
try {
|
|
80
|
-
return
|
|
80
|
+
return Ql(a);
|
|
81
81
|
} catch {
|
|
82
82
|
return "Object";
|
|
83
83
|
}
|
|
84
|
-
},
|
|
85
|
-
if (
|
|
86
|
-
throw new
|
|
87
|
-
},
|
|
84
|
+
}, Kl = B, Zl = xr, Jl = TypeError, Te = function(a) {
|
|
85
|
+
if (Kl(a)) return a;
|
|
86
|
+
throw new Jl(Zl(a) + " is not a function");
|
|
87
|
+
}, eh = Te, th = je, ot = function(a, e) {
|
|
88
88
|
var t = a[e];
|
|
89
|
-
return
|
|
90
|
-
}, ea = Y, ta = B, ra = ve,
|
|
89
|
+
return th(t) ? void 0 : eh(t);
|
|
90
|
+
}, ea = Y, ta = B, ra = ve, rh = TypeError, ah = function(a, e) {
|
|
91
91
|
var t, r;
|
|
92
92
|
if (e === "string" && ta(t = a.toString) && !ra(r = ea(t, a)) || ta(t = a.valueOf) && !ra(r = ea(t, a)) || e !== "string" && ta(t = a.toString) && !ra(r = ea(t, a))) return r;
|
|
93
|
-
throw new
|
|
94
|
-
},
|
|
93
|
+
throw new rh("Can't convert object to primitive value");
|
|
94
|
+
}, Fo = { exports: {} }, bn = V, ih = Object.defineProperty, Ti = function(a, e) {
|
|
95
95
|
try {
|
|
96
|
-
|
|
96
|
+
ih(bn, a, { value: e, configurable: !0, writable: !0 });
|
|
97
97
|
} catch {
|
|
98
|
-
|
|
98
|
+
bn[a] = e;
|
|
99
99
|
}
|
|
100
100
|
return e;
|
|
101
|
-
},
|
|
102
|
-
(
|
|
103
|
-
version: "3.
|
|
101
|
+
}, nh = V, sh = Ti, xn = "__core-js_shared__", Tn = Fo.exports = nh[xn] || sh(xn, {});
|
|
102
|
+
(Tn.versions || (Tn.versions = [])).push({
|
|
103
|
+
version: "3.41.0",
|
|
104
104
|
mode: "global",
|
|
105
|
-
copyright: "© 2014-
|
|
106
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
|
105
|
+
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
|
|
106
|
+
license: "https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",
|
|
107
107
|
source: "https://github.com/zloirock/core-js"
|
|
108
108
|
});
|
|
109
|
-
var
|
|
110
|
-
return
|
|
111
|
-
},
|
|
112
|
-
return
|
|
113
|
-
},
|
|
114
|
-
return
|
|
115
|
-
},
|
|
116
|
-
return "Symbol(" + (a === void 0 ? "" : a) + ")_" +
|
|
117
|
-
},
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
if (!
|
|
121
|
-
var t =
|
|
109
|
+
var Oi = Fo.exports, On = Oi, Si = function(a, e) {
|
|
110
|
+
return On[a] || (On[a] = e || {});
|
|
111
|
+
}, oh = he, uh = Object, Tr = function(a) {
|
|
112
|
+
return uh(oh(a));
|
|
113
|
+
}, lh = L, hh = Tr, vh = lh({}.hasOwnProperty), fe = Object.hasOwn || function(e, t) {
|
|
114
|
+
return vh(hh(e), t);
|
|
115
|
+
}, fh = L, ch = 0, gh = Math.random(), dh = fh(1 .toString), Uo = function(a) {
|
|
116
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + dh(++ch + gh, 36);
|
|
117
|
+
}, ph = V, yh = Si, Sn = fe, mh = Uo, bh = Lo, xh = Bo, Ze = ph.Symbol, aa = yh("wks"), Th = xh ? Ze.for || Ze : Ze && Ze.withoutSetter || mh, z = function(a) {
|
|
118
|
+
return Sn(aa, a) || (aa[a] = bh && Sn(Ze, a) ? Ze[a] : Th("Symbol." + a)), aa[a];
|
|
119
|
+
}, Oh = Y, En = ve, $n = jo, Sh = ot, Eh = ah, $h = z, wh = TypeError, Ch = $h("toPrimitive"), Ah = function(a, e) {
|
|
120
|
+
if (!En(a) || $n(a)) return a;
|
|
121
|
+
var t = Sh(a, Ch), r;
|
|
122
122
|
if (t) {
|
|
123
|
-
if (e === void 0 && (e = "default"), r =
|
|
124
|
-
throw new
|
|
125
|
-
}
|
|
126
|
-
return e === void 0 && (e = "number"),
|
|
127
|
-
},
|
|
128
|
-
var e =
|
|
129
|
-
return
|
|
130
|
-
},
|
|
131
|
-
return
|
|
132
|
-
},
|
|
133
|
-
return Object.defineProperty(
|
|
123
|
+
if (e === void 0 && (e = "default"), r = Oh(t, a, e), !En(r) || $n(r)) return r;
|
|
124
|
+
throw new wh("Can't convert object to primitive value");
|
|
125
|
+
}
|
|
126
|
+
return e === void 0 && (e = "number"), Eh(a, e);
|
|
127
|
+
}, Ph = Ah, Rh = jo, Go = function(a) {
|
|
128
|
+
var e = Ph(a, "string");
|
|
129
|
+
return Rh(e) ? e : e + "";
|
|
130
|
+
}, Nh = V, wn = ve, Ha = Nh.document, Ih = wn(Ha) && wn(Ha.createElement), Or = function(a) {
|
|
131
|
+
return Ih ? Ha.createElement(a) : {};
|
|
132
|
+
}, Mh = le, _h = k, Vh = Or, zo = !Mh && !_h(function() {
|
|
133
|
+
return Object.defineProperty(Vh("div"), "a", {
|
|
134
134
|
get: function() {
|
|
135
135
|
return 7;
|
|
136
136
|
}
|
|
137
137
|
}).a !== 7;
|
|
138
|
-
}),
|
|
139
|
-
$t.f =
|
|
140
|
-
if (e =
|
|
141
|
-
return
|
|
138
|
+
}), Dh = le, kh = Y, Lh = Ro, Bh = bi, jh = wt, Fh = Go, Uh = fe, Gh = zo, Cn = Object.getOwnPropertyDescriptor;
|
|
139
|
+
$t.f = Dh ? Cn : function(e, t) {
|
|
140
|
+
if (e = jh(e), t = Fh(t), Gh) try {
|
|
141
|
+
return Cn(e, t);
|
|
142
142
|
} catch {
|
|
143
143
|
}
|
|
144
|
-
if (
|
|
144
|
+
if (Uh(e, t)) return Bh(!kh(Lh.f, e, t), e[t]);
|
|
145
145
|
};
|
|
146
|
-
var Oe = {},
|
|
146
|
+
var Oe = {}, zh = le, Hh = k, Ho = zh && Hh(function() {
|
|
147
147
|
return Object.defineProperty(function() {
|
|
148
148
|
}, "prototype", {
|
|
149
149
|
value: 42,
|
|
150
150
|
writable: !1
|
|
151
151
|
}).prototype !== 42;
|
|
152
|
-
}),
|
|
153
|
-
if (
|
|
154
|
-
throw new
|
|
155
|
-
},
|
|
156
|
-
Oe.f =
|
|
157
|
-
if (Gt(e), t =
|
|
158
|
-
var i =
|
|
152
|
+
}), Yh = ve, Xh = String, Wh = TypeError, J = function(a) {
|
|
153
|
+
if (Yh(a)) return a;
|
|
154
|
+
throw new Wh(Xh(a) + " is not an object");
|
|
155
|
+
}, qh = le, Qh = zo, Kh = Ho, Gt = J, An = Go, Zh = TypeError, ia = Object.defineProperty, Jh = Object.getOwnPropertyDescriptor, na = "enumerable", sa = "configurable", oa = "writable";
|
|
156
|
+
Oe.f = qh ? Kh ? function(e, t, r) {
|
|
157
|
+
if (Gt(e), t = An(t), Gt(r), typeof e == "function" && t === "prototype" && "value" in r && oa in r && !r[oa]) {
|
|
158
|
+
var i = Jh(e, t);
|
|
159
159
|
i && i[oa] && (e[t] = r.value, r = {
|
|
160
160
|
configurable: sa in r ? r[sa] : i[sa],
|
|
161
161
|
enumerable: na in r ? r[na] : i[na],
|
|
@@ -164,42 +164,41 @@ Oe.f = Jh ? tv ? function(e, t, r) {
|
|
|
164
164
|
}
|
|
165
165
|
return ia(e, t, r);
|
|
166
166
|
} : ia : function(e, t, r) {
|
|
167
|
-
if (Gt(e), t =
|
|
167
|
+
if (Gt(e), t = An(t), Gt(r), Qh) try {
|
|
168
168
|
return ia(e, t, r);
|
|
169
169
|
} catch {
|
|
170
170
|
}
|
|
171
|
-
if ("get" in r || "set" in r) throw new
|
|
171
|
+
if ("get" in r || "set" in r) throw new Zh("Accessors not supported");
|
|
172
172
|
return "value" in r && (e[t] = r.value), e;
|
|
173
173
|
};
|
|
174
|
-
var
|
|
175
|
-
return
|
|
174
|
+
var ev = le, tv = Oe, rv = bi, At = ev ? function(a, e, t) {
|
|
175
|
+
return tv.f(a, e, rv(1, t));
|
|
176
176
|
} : function(a, e, t) {
|
|
177
177
|
return a[e] = t, a;
|
|
178
|
-
},
|
|
179
|
-
}).name === "something",
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
return cv(a);
|
|
178
|
+
}, Yo = { exports: {} }, Ya = le, av = fe, Xo = Function.prototype, iv = Ya && Object.getOwnPropertyDescriptor, Wo = av(Xo, "name"), nv = Wo && (function() {
|
|
179
|
+
}).name === "something", sv = Wo && (!Ya || Ya && iv(Xo, "name").configurable), Sr = {
|
|
180
|
+
PROPER: nv,
|
|
181
|
+
CONFIGURABLE: sv
|
|
182
|
+
}, ov = L, uv = B, Xa = Oi, lv = ov(Function.toString);
|
|
183
|
+
uv(Xa.inspectSource) || (Xa.inspectSource = function(a) {
|
|
184
|
+
return lv(a);
|
|
186
185
|
});
|
|
187
|
-
var
|
|
188
|
-
return
|
|
189
|
-
},
|
|
186
|
+
var Ei = Xa.inspectSource, hv = V, vv = B, Pn = hv.WeakMap, fv = vv(Pn) && /native code/.test(String(Pn)), cv = Si, gv = Uo, Rn = cv("keys"), $i = function(a) {
|
|
187
|
+
return Rn[a] || (Rn[a] = gv(a));
|
|
188
|
+
}, wi = {}, dv = fv, qo = V, pv = ve, yv = At, ua = fe, la = Oi, mv = $i, bv = wi, Nn = "Object already initialized", Wa = qo.TypeError, xv = qo.WeakMap, cr, Ot, gr, Tv = function(a) {
|
|
190
189
|
return gr(a) ? Ot(a) : cr(a, {});
|
|
191
|
-
},
|
|
190
|
+
}, Ov = function(a) {
|
|
192
191
|
return function(e) {
|
|
193
192
|
var t;
|
|
194
|
-
if (!
|
|
195
|
-
throw new
|
|
193
|
+
if (!pv(e) || (t = Ot(e)).type !== a)
|
|
194
|
+
throw new Wa("Incompatible receiver, " + a + " required");
|
|
196
195
|
return t;
|
|
197
196
|
};
|
|
198
197
|
};
|
|
199
|
-
if (
|
|
200
|
-
var de = la.state || (la.state = new
|
|
198
|
+
if (dv || la.state) {
|
|
199
|
+
var de = la.state || (la.state = new xv());
|
|
201
200
|
de.get = de.get, de.has = de.has, de.set = de.set, cr = function(a, e) {
|
|
202
|
-
if (de.has(a)) throw new
|
|
201
|
+
if (de.has(a)) throw new Wa(Nn);
|
|
203
202
|
return e.facade = a, de.set(a, e), e;
|
|
204
203
|
}, Ot = function(a) {
|
|
205
204
|
return de.get(a) || {};
|
|
@@ -207,10 +206,10 @@ if (bv || la.state) {
|
|
|
207
206
|
return de.has(a);
|
|
208
207
|
};
|
|
209
208
|
} else {
|
|
210
|
-
var Ye =
|
|
211
|
-
|
|
212
|
-
if (ua(a, Ye)) throw new
|
|
213
|
-
return e.facade = a,
|
|
209
|
+
var Ye = mv("state");
|
|
210
|
+
bv[Ye] = !0, cr = function(a, e) {
|
|
211
|
+
if (ua(a, Ye)) throw new Wa(Nn);
|
|
212
|
+
return e.facade = a, yv(a, Ye, e), e;
|
|
214
213
|
}, Ot = function(a) {
|
|
215
214
|
return ua(a, Ye) ? a[Ye] : {};
|
|
216
215
|
}, gr = function(a) {
|
|
@@ -221,34 +220,34 @@ var Er = {
|
|
|
221
220
|
set: cr,
|
|
222
221
|
get: Ot,
|
|
223
222
|
has: gr,
|
|
224
|
-
enforce:
|
|
225
|
-
getterFor:
|
|
226
|
-
},
|
|
223
|
+
enforce: Tv,
|
|
224
|
+
getterFor: Ov
|
|
225
|
+
}, Ci = L, Sv = k, Ev = B, zt = fe, qa = le, $v = Sr.CONFIGURABLE, wv = Ei, Qo = Er, Cv = Qo.enforce, Av = Qo.get, In = String, sr = Object.defineProperty, Pv = Ci("".slice), Rv = Ci("".replace), Nv = Ci([].join), Iv = qa && !Sv(function() {
|
|
227
226
|
return sr(function() {
|
|
228
227
|
}, "length", { value: 8 }).length !== 8;
|
|
229
|
-
}),
|
|
230
|
-
|
|
228
|
+
}), Mv = String(String).split("String"), _v = Yo.exports = function(a, e, t) {
|
|
229
|
+
Pv(In(e), 0, 7) === "Symbol(" && (e = "[" + Rv(In(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!zt(a, "name") || $v && a.name !== e) && (qa ? sr(a, "name", { value: e, configurable: !0 }) : a.name = e), Iv && t && zt(t, "arity") && a.length !== t.arity && sr(a, "length", { value: t.arity });
|
|
231
230
|
try {
|
|
232
|
-
t && zt(t, "constructor") && t.constructor ?
|
|
231
|
+
t && zt(t, "constructor") && t.constructor ? qa && sr(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
|
233
232
|
} catch {
|
|
234
233
|
}
|
|
235
|
-
var r =
|
|
236
|
-
return zt(r, "source") || (r.source =
|
|
234
|
+
var r = Cv(a);
|
|
235
|
+
return zt(r, "source") || (r.source = Nv(Mv, typeof e == "string" ? e : "")), a;
|
|
237
236
|
};
|
|
238
|
-
Function.prototype.toString =
|
|
239
|
-
return
|
|
237
|
+
Function.prototype.toString = _v(function() {
|
|
238
|
+
return Ev(this) && Av(this).source || wv(this);
|
|
240
239
|
}, "toString");
|
|
241
|
-
var
|
|
240
|
+
var Ko = Yo.exports, Vv = B, Dv = Oe, kv = Ko, Lv = Ti, Ue = function(a, e, t, r) {
|
|
242
241
|
r || (r = {});
|
|
243
242
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
|
244
|
-
if (
|
|
245
|
-
i ? a[e] = t :
|
|
243
|
+
if (Vv(t) && kv(t, n, r), r.global)
|
|
244
|
+
i ? a[e] = t : Lv(e, t);
|
|
246
245
|
else {
|
|
247
246
|
try {
|
|
248
247
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
|
249
248
|
} catch {
|
|
250
249
|
}
|
|
251
|
-
i ? a[e] = t :
|
|
250
|
+
i ? a[e] = t : Dv.f(a, e, {
|
|
252
251
|
value: t,
|
|
253
252
|
enumerable: !1,
|
|
254
253
|
configurable: !r.nonConfigurable,
|
|
@@ -256,25 +255,25 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
256
255
|
});
|
|
257
256
|
}
|
|
258
257
|
return a;
|
|
259
|
-
},
|
|
258
|
+
}, Zo = {}, Bv = Math.ceil, jv = Math.floor, Fv = Math.trunc || function(e) {
|
|
260
259
|
var t = +e;
|
|
261
|
-
return (t > 0 ?
|
|
262
|
-
},
|
|
260
|
+
return (t > 0 ? jv : Bv)(t);
|
|
261
|
+
}, Uv = Fv, $r = function(a) {
|
|
263
262
|
var e = +a;
|
|
264
|
-
return e !== e || e === 0 ? 0 :
|
|
265
|
-
},
|
|
266
|
-
var t =
|
|
267
|
-
return t < 0 ?
|
|
268
|
-
},
|
|
269
|
-
var e =
|
|
270
|
-
return e > 0 ?
|
|
271
|
-
},
|
|
272
|
-
return
|
|
273
|
-
},
|
|
263
|
+
return e !== e || e === 0 ? 0 : Uv(e);
|
|
264
|
+
}, Gv = $r, zv = Math.max, Hv = Math.min, Yv = function(a, e) {
|
|
265
|
+
var t = Gv(a);
|
|
266
|
+
return t < 0 ? zv(t + e, 0) : Hv(t, e);
|
|
267
|
+
}, Xv = $r, Wv = Math.min, ut = function(a) {
|
|
268
|
+
var e = Xv(a);
|
|
269
|
+
return e > 0 ? Wv(e, 9007199254740991) : 0;
|
|
270
|
+
}, qv = ut, Ai = function(a) {
|
|
271
|
+
return qv(a.length);
|
|
272
|
+
}, Qv = wt, Kv = Yv, Zv = Ai, Jv = function(a) {
|
|
274
273
|
return function(e, t, r) {
|
|
275
|
-
var i =
|
|
274
|
+
var i = Qv(e), n = Zv(i);
|
|
276
275
|
if (n === 0) return !a && -1;
|
|
277
|
-
var o =
|
|
276
|
+
var o = Kv(r, n), s;
|
|
278
277
|
if (a && t !== t) {
|
|
279
278
|
for (; n > o; )
|
|
280
279
|
if (s = i[o++], s !== s) return !0;
|
|
@@ -282,19 +281,16 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
282
281
|
if ((a || o in i) && i[o] === t) return a || o || 0;
|
|
283
282
|
return !a && -1;
|
|
284
283
|
};
|
|
285
|
-
},
|
|
286
|
-
// `Array.prototype.includes` method
|
|
287
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
288
|
-
includes: Dn(!0),
|
|
284
|
+
}, Jo = {
|
|
289
285
|
// `Array.prototype.indexOf` method
|
|
290
286
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
291
|
-
indexOf:
|
|
292
|
-
},
|
|
293
|
-
var t =
|
|
294
|
-
for (n in t) !ha(
|
|
295
|
-
for (; e.length > r; ) ha(t, n = e[r++]) && (~
|
|
287
|
+
indexOf: Jv(!1)
|
|
288
|
+
}, ef = L, ha = fe, tf = wt, rf = Jo.indexOf, af = wi, Mn = ef([].push), eu = function(a, e) {
|
|
289
|
+
var t = tf(a), r = 0, i = [], n;
|
|
290
|
+
for (n in t) !ha(af, n) && ha(t, n) && Mn(i, n);
|
|
291
|
+
for (; e.length > r; ) ha(t, n = e[r++]) && (~rf(i, n) || Mn(i, n));
|
|
296
292
|
return i;
|
|
297
|
-
},
|
|
293
|
+
}, Pi = [
|
|
298
294
|
"constructor",
|
|
299
295
|
"hasOwnProperty",
|
|
300
296
|
"isPrototypeOf",
|
|
@@ -302,177 +298,176 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
302
298
|
"toLocaleString",
|
|
303
299
|
"toString",
|
|
304
300
|
"valueOf"
|
|
305
|
-
],
|
|
306
|
-
|
|
307
|
-
return
|
|
301
|
+
], nf = eu, sf = Pi, of = sf.concat("length", "prototype");
|
|
302
|
+
Zo.f = Object.getOwnPropertyNames || function(e) {
|
|
303
|
+
return nf(e, of);
|
|
308
304
|
};
|
|
309
|
-
var
|
|
310
|
-
|
|
311
|
-
var
|
|
312
|
-
var t =
|
|
313
|
-
return r ?
|
|
314
|
-
},
|
|
315
|
-
for (var r =
|
|
305
|
+
var tu = {};
|
|
306
|
+
tu.f = Object.getOwnPropertySymbols;
|
|
307
|
+
var uf = Fe, lf = L, hf = Zo, vf = tu, ff = J, cf = lf([].concat), gf = uf("Reflect", "ownKeys") || function(e) {
|
|
308
|
+
var t = hf.f(ff(e)), r = vf.f;
|
|
309
|
+
return r ? cf(t, r(e)) : t;
|
|
310
|
+
}, _n = fe, df = gf, pf = $t, yf = Oe, mf = function(a, e, t) {
|
|
311
|
+
for (var r = df(e), i = yf.f, n = pf.f, o = 0; o < r.length; o++) {
|
|
316
312
|
var s = r[o];
|
|
317
|
-
!
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
var t =
|
|
321
|
-
return t ===
|
|
322
|
-
},
|
|
323
|
-
return String(a).replace(
|
|
324
|
-
},
|
|
313
|
+
!_n(a, s) && !(t && _n(t, s)) && i(a, s, n(e, s));
|
|
314
|
+
}
|
|
315
|
+
}, bf = k, xf = B, Tf = /#|\.prototype\./, Pt = function(a, e) {
|
|
316
|
+
var t = Sf[Of(a)];
|
|
317
|
+
return t === $f ? !0 : t === Ef ? !1 : xf(e) ? bf(e) : !!e;
|
|
318
|
+
}, Of = Pt.normalize = function(a) {
|
|
319
|
+
return String(a).replace(Tf, ".").toLowerCase();
|
|
320
|
+
}, Sf = Pt.data = {}, Ef = Pt.NATIVE = "N", $f = Pt.POLYFILL = "P", ru = Pt, Ht = V, wf = $t.f, Cf = At, Af = Ue, Pf = Ti, Rf = mf, Nf = ru, ee = function(a, e) {
|
|
325
321
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
|
326
|
-
if (r ? o = Ht : i ? o = Ht[t] ||
|
|
327
|
-
if (l = e[s], a.dontCallGetSet ? (h =
|
|
322
|
+
if (r ? o = Ht : i ? o = Ht[t] || Pf(t, {}) : o = Ht[t] && Ht[t].prototype, o) for (s in e) {
|
|
323
|
+
if (l = e[s], a.dontCallGetSet ? (h = wf(o, s), u = h && h.value) : u = o[s], n = Nf(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
328
324
|
if (typeof l == typeof u) continue;
|
|
329
|
-
|
|
325
|
+
Rf(l, u);
|
|
330
326
|
}
|
|
331
|
-
(a.sham || u && u.sham) &&
|
|
327
|
+
(a.sham || u && u.sham) && Cf(l, "sham", !0), Af(o, s, l, a);
|
|
332
328
|
}
|
|
333
|
-
}, ft = V,
|
|
334
|
-
return
|
|
335
|
-
},
|
|
336
|
-
return Yt("Bun/") ? "BUN" : Yt("Cloudflare-Workers") ? "CLOUDFLARE" : Yt("Deno/") ? "DENO" : Yt("Node.js/") ? "NODE" : ft.Bun && typeof Bun.version == "string" ? "BUN" : ft.Deno && typeof Deno.version == "object" ? "DENO" :
|
|
337
|
-
}(),
|
|
329
|
+
}, ft = V, If = Ct, Mf = Be, Yt = function(a) {
|
|
330
|
+
return If.slice(0, a.length) === a;
|
|
331
|
+
}, au = function() {
|
|
332
|
+
return Yt("Bun/") ? "BUN" : Yt("Cloudflare-Workers") ? "CLOUDFLARE" : Yt("Deno/") ? "DENO" : Yt("Node.js/") ? "NODE" : ft.Bun && typeof Bun.version == "string" ? "BUN" : ft.Deno && typeof Deno.version == "object" ? "DENO" : Mf(ft.process) === "process" ? "NODE" : ft.window && ft.document ? "BROWSER" : "REST";
|
|
333
|
+
}(), _f = au, wr = _f === "NODE", Vf = L, Df = Te, kf = function(a, e, t) {
|
|
338
334
|
try {
|
|
339
|
-
return
|
|
335
|
+
return Vf(Df(Object.getOwnPropertyDescriptor(a, e)[t]));
|
|
340
336
|
} catch {
|
|
341
337
|
}
|
|
342
|
-
},
|
|
343
|
-
return
|
|
344
|
-
},
|
|
345
|
-
if (
|
|
346
|
-
throw new
|
|
347
|
-
},
|
|
338
|
+
}, Lf = ve, Bf = function(a) {
|
|
339
|
+
return Lf(a) || a === null;
|
|
340
|
+
}, jf = Bf, Ff = String, Uf = TypeError, Gf = function(a) {
|
|
341
|
+
if (jf(a)) return a;
|
|
342
|
+
throw new Uf("Can't set " + Ff(a) + " as a prototype");
|
|
343
|
+
}, zf = kf, Hf = ve, Yf = he, Xf = Gf, iu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
348
344
|
var a = !1, e = {}, t;
|
|
349
345
|
try {
|
|
350
|
-
t =
|
|
346
|
+
t = zf(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
|
|
351
347
|
} catch {
|
|
352
348
|
}
|
|
353
349
|
return function(i, n) {
|
|
354
|
-
return
|
|
350
|
+
return Yf(i), Xf(n), Hf(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
|
355
351
|
};
|
|
356
|
-
}() : void 0),
|
|
357
|
-
a && !t && (a = a.prototype), a && !
|
|
358
|
-
},
|
|
359
|
-
return t.get &&
|
|
360
|
-
},
|
|
361
|
-
var e =
|
|
362
|
-
|
|
352
|
+
}() : void 0), Wf = Oe.f, qf = fe, Qf = z, Vn = Qf("toStringTag"), Cr = function(a, e, t) {
|
|
353
|
+
a && !t && (a = a.prototype), a && !qf(a, Vn) && Wf(a, Vn, { configurable: !0, value: e });
|
|
354
|
+
}, Dn = Ko, Kf = Oe, Zf = function(a, e, t) {
|
|
355
|
+
return t.get && Dn(t.get, e, { getter: !0 }), t.set && Dn(t.set, e, { setter: !0 }), Kf.f(a, e, t);
|
|
356
|
+
}, Jf = Fe, ec = Zf, tc = z, rc = le, kn = tc("species"), ac = function(a) {
|
|
357
|
+
var e = Jf(a);
|
|
358
|
+
rc && e && !e[kn] && ec(e, kn, {
|
|
363
359
|
configurable: !0,
|
|
364
360
|
get: function() {
|
|
365
361
|
return this;
|
|
366
362
|
}
|
|
367
363
|
});
|
|
368
|
-
},
|
|
369
|
-
if (
|
|
370
|
-
throw new
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
var
|
|
364
|
+
}, ic = br, nc = TypeError, sc = function(a, e) {
|
|
365
|
+
if (ic(e, a)) return a;
|
|
366
|
+
throw new nc("Incorrect invocation");
|
|
367
|
+
}, oc = z, uc = oc("toStringTag"), nu = {};
|
|
368
|
+
nu[uc] = "z";
|
|
369
|
+
var lc = String(nu) === "[object z]", hc = lc, vc = B, or = Be, fc = z, cc = fc("toStringTag"), gc = Object, dc = or(/* @__PURE__ */ function() {
|
|
374
370
|
return arguments;
|
|
375
|
-
}()) === "Arguments",
|
|
371
|
+
}()) === "Arguments", pc = function(a, e) {
|
|
376
372
|
try {
|
|
377
373
|
return a[e];
|
|
378
374
|
} catch {
|
|
379
375
|
}
|
|
380
|
-
},
|
|
376
|
+
}, Ri = hc ? or : function(a) {
|
|
381
377
|
var e, t, r;
|
|
382
|
-
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t =
|
|
383
|
-
},
|
|
384
|
-
},
|
|
385
|
-
if (!
|
|
378
|
+
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = pc(e = gc(a), cc)) == "string" ? t : dc ? or(e) : (r = or(e)) === "Object" && vc(e.callee) ? "Arguments" : r;
|
|
379
|
+
}, yc = L, mc = k, su = B, bc = Ri, xc = Fe, Tc = Ei, ou = function() {
|
|
380
|
+
}, uu = xc("Reflect", "construct"), Ni = /^\s*(?:class|function)\b/, Oc = yc(Ni.exec), Sc = !Ni.test(ou), ct = function(e) {
|
|
381
|
+
if (!su(e)) return !1;
|
|
386
382
|
try {
|
|
387
|
-
return
|
|
383
|
+
return uu(ou, [], e), !0;
|
|
388
384
|
} catch {
|
|
389
385
|
return !1;
|
|
390
386
|
}
|
|
391
|
-
},
|
|
392
|
-
if (!
|
|
393
|
-
switch (
|
|
387
|
+
}, lu = function(e) {
|
|
388
|
+
if (!su(e)) return !1;
|
|
389
|
+
switch (bc(e)) {
|
|
394
390
|
case "AsyncFunction":
|
|
395
391
|
case "GeneratorFunction":
|
|
396
392
|
case "AsyncGeneratorFunction":
|
|
397
393
|
return !1;
|
|
398
394
|
}
|
|
399
395
|
try {
|
|
400
|
-
return
|
|
396
|
+
return Sc || !!Oc(Ni, Tc(e));
|
|
401
397
|
} catch {
|
|
402
398
|
return !0;
|
|
403
399
|
}
|
|
404
400
|
};
|
|
405
|
-
|
|
406
|
-
var
|
|
401
|
+
lu.sham = !0;
|
|
402
|
+
var Ec = !uu || mc(function() {
|
|
407
403
|
var a;
|
|
408
404
|
return ct(ct.call) || !ct(Object) || !ct(function() {
|
|
409
405
|
a = !0;
|
|
410
406
|
}) || a;
|
|
411
|
-
}) ?
|
|
412
|
-
if (
|
|
413
|
-
throw new
|
|
414
|
-
},
|
|
415
|
-
var t =
|
|
416
|
-
return t === void 0 ||
|
|
417
|
-
},
|
|
418
|
-
return
|
|
419
|
-
}),
|
|
420
|
-
if (
|
|
421
|
-
},
|
|
422
|
-
return
|
|
407
|
+
}) ? lu : ct, $c = Ec, wc = xr, Cc = TypeError, Ac = function(a) {
|
|
408
|
+
if ($c(a)) return a;
|
|
409
|
+
throw new Cc(wc(a) + " is not a constructor");
|
|
410
|
+
}, Ln = J, Pc = Ac, Rc = je, Nc = z, Ic = Nc("species"), hu = function(a, e) {
|
|
411
|
+
var t = Ln(a).constructor, r;
|
|
412
|
+
return t === void 0 || Rc(r = Ln(t)[Ic]) ? e : Pc(r);
|
|
413
|
+
}, Mc = mr, vu = Function.prototype, Bn = vu.apply, jn = vu.call, fu = typeof Reflect == "object" && Reflect.apply || (Mc ? jn.bind(Bn) : function() {
|
|
414
|
+
return jn.apply(Bn, arguments);
|
|
415
|
+
}), _c = Be, Vc = L, Ar = function(a) {
|
|
416
|
+
if (_c(a) === "Function") return Vc(a);
|
|
417
|
+
}, Fn = Ar, Dc = Te, kc = mr, Lc = Fn(Fn.bind), Ii = function(a, e) {
|
|
418
|
+
return Dc(a), e === void 0 ? a : kc ? Lc(a, e) : function() {
|
|
423
419
|
return a.apply(e, arguments);
|
|
424
420
|
};
|
|
425
|
-
},
|
|
426
|
-
if (a < e) throw new
|
|
421
|
+
}, Bc = Fe, cu = Bc("document", "documentElement"), jc = L, Fc = jc([].slice), Uc = TypeError, Gc = function(a, e) {
|
|
422
|
+
if (a < e) throw new Uc("Not enough arguments");
|
|
427
423
|
return a;
|
|
428
|
-
},
|
|
429
|
-
|
|
424
|
+
}, zc = Ct, gu = /(?:ipad|iphone|ipod).*applewebkit/i.test(zc), ae = V, Hc = fu, Yc = Ii, Un = B, Xc = fe, du = k, Gn = cu, Wc = Fc, zn = Or, qc = Gc, Qc = gu, Kc = wr, Qa = ae.setImmediate, Hn = ae.clearImmediate, Zc = ae.process, va = ae.Dispatch, Jc = ae.Function, Yn = ae.MessageChannel, eg = ae.String, fa = 0, xt = {}, Xn = "onreadystatechange", St, Ie, ca, ga;
|
|
425
|
+
du(function() {
|
|
430
426
|
St = ae.location;
|
|
431
427
|
});
|
|
432
|
-
var
|
|
433
|
-
if (
|
|
428
|
+
var Mi = function(a) {
|
|
429
|
+
if (Xc(xt, a)) {
|
|
434
430
|
var e = xt[a];
|
|
435
431
|
delete xt[a], e();
|
|
436
432
|
}
|
|
437
433
|
}, da = function(a) {
|
|
438
434
|
return function() {
|
|
439
|
-
|
|
435
|
+
Mi(a);
|
|
440
436
|
};
|
|
441
|
-
},
|
|
442
|
-
|
|
443
|
-
},
|
|
444
|
-
ae.postMessage(
|
|
437
|
+
}, Wn = function(a) {
|
|
438
|
+
Mi(a.data);
|
|
439
|
+
}, qn = function(a) {
|
|
440
|
+
ae.postMessage(eg(a), St.protocol + "//" + St.host);
|
|
445
441
|
};
|
|
446
|
-
(!
|
|
447
|
-
|
|
448
|
-
var t =
|
|
442
|
+
(!Qa || !Hn) && (Qa = function(e) {
|
|
443
|
+
qc(arguments.length, 1);
|
|
444
|
+
var t = Un(e) ? e : Jc(e), r = Wc(arguments, 1);
|
|
449
445
|
return xt[++fa] = function() {
|
|
450
|
-
|
|
446
|
+
Hc(t, void 0, r);
|
|
451
447
|
}, Ie(fa), fa;
|
|
452
|
-
},
|
|
448
|
+
}, Hn = function(e) {
|
|
453
449
|
delete xt[e];
|
|
454
|
-
},
|
|
455
|
-
|
|
450
|
+
}, Kc ? Ie = function(a) {
|
|
451
|
+
Zc.nextTick(da(a));
|
|
456
452
|
} : va && va.now ? Ie = function(a) {
|
|
457
453
|
va.now(da(a));
|
|
458
|
-
} :
|
|
459
|
-
|
|
460
|
-
|
|
454
|
+
} : Yn && !Qc ? (ca = new Yn(), ga = ca.port2, ca.port1.onmessage = Wn, Ie = Yc(ga.postMessage, ga)) : ae.addEventListener && Un(ae.postMessage) && !ae.importScripts && St && St.protocol !== "file:" && !du(qn) ? (Ie = qn, ae.addEventListener("message", Wn, !1)) : Xn in zn("script") ? Ie = function(a) {
|
|
455
|
+
Gn.appendChild(zn("script"))[Xn] = function() {
|
|
456
|
+
Gn.removeChild(this), Mi(a);
|
|
461
457
|
};
|
|
462
458
|
} : Ie = function(a) {
|
|
463
459
|
setTimeout(da(a), 0);
|
|
464
460
|
});
|
|
465
|
-
var
|
|
466
|
-
set:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
var e = ng(Jn, a);
|
|
461
|
+
var pu = {
|
|
462
|
+
set: Qa
|
|
463
|
+
}, Qn = V, tg = le, rg = Object.getOwnPropertyDescriptor, ag = function(a) {
|
|
464
|
+
if (!tg) return Qn[a];
|
|
465
|
+
var e = rg(Qn, a);
|
|
471
466
|
return e && e.value;
|
|
472
|
-
},
|
|
467
|
+
}, yu = function() {
|
|
473
468
|
this.head = null, this.tail = null;
|
|
474
469
|
};
|
|
475
|
-
|
|
470
|
+
yu.prototype = {
|
|
476
471
|
add: function(a) {
|
|
477
472
|
var e = { item: a, next: null }, t = this.tail;
|
|
478
473
|
t ? t.next = e : this.head = e, this.tail = e;
|
|
@@ -485,44 +480,44 @@ Tu.prototype = {
|
|
|
485
480
|
}
|
|
486
481
|
}
|
|
487
482
|
};
|
|
488
|
-
var
|
|
489
|
-
if (!
|
|
490
|
-
var qt = new
|
|
483
|
+
var mu = yu, ig = Ct, ng = /ipad|iphone|ipod/i.test(ig) && typeof Pebble < "u", sg = Ct, og = /web0s(?!.*chrome)/i.test(sg), it = V, ug = ag, Kn = Ii, pa = pu.set, lg = mu, hg = gu, vg = ng, fg = og, ya = wr, Zn = it.MutationObserver || it.WebKitMutationObserver, Jn = it.document, es = it.process, Xt = it.Promise, Ka = ug("queueMicrotask"), Xe, ma, ba, Wt, ts;
|
|
484
|
+
if (!Ka) {
|
|
485
|
+
var qt = new lg(), Qt = function() {
|
|
491
486
|
var a, e;
|
|
492
|
-
for (ya && (a =
|
|
487
|
+
for (ya && (a = es.domain) && a.exit(); e = qt.get(); ) try {
|
|
493
488
|
e();
|
|
494
489
|
} catch (t) {
|
|
495
490
|
throw qt.head && Xe(), t;
|
|
496
491
|
}
|
|
497
492
|
a && a.enter();
|
|
498
493
|
};
|
|
499
|
-
!
|
|
494
|
+
!hg && !ya && !fg && Zn && Jn ? (ma = !0, ba = Jn.createTextNode(""), new Zn(Qt).observe(ba, { characterData: !0 }), Xe = function() {
|
|
500
495
|
ba.data = ma = !ma;
|
|
501
|
-
}) : !
|
|
502
|
-
|
|
496
|
+
}) : !vg && Xt && Xt.resolve ? (Wt = Xt.resolve(void 0), Wt.constructor = Xt, ts = Kn(Wt.then, Wt), Xe = function() {
|
|
497
|
+
ts(Qt);
|
|
503
498
|
}) : ya ? Xe = function() {
|
|
504
|
-
|
|
505
|
-
} : (pa =
|
|
499
|
+
es.nextTick(Qt);
|
|
500
|
+
} : (pa = Kn(pa, it), Xe = function() {
|
|
506
501
|
pa(Qt);
|
|
507
|
-
}),
|
|
502
|
+
}), Ka = function(a) {
|
|
508
503
|
qt.head || Xe(), qt.add(a);
|
|
509
504
|
};
|
|
510
505
|
}
|
|
511
|
-
var
|
|
506
|
+
var cg = Ka, gg = function(a, e) {
|
|
512
507
|
try {
|
|
513
508
|
arguments.length === 1 ? console.error(a) : console.error(a, e);
|
|
514
509
|
} catch {
|
|
515
510
|
}
|
|
516
|
-
},
|
|
511
|
+
}, _i = function(a) {
|
|
517
512
|
try {
|
|
518
513
|
return { error: !1, value: a() };
|
|
519
514
|
} catch (e) {
|
|
520
515
|
return { error: !0, value: e };
|
|
521
516
|
}
|
|
522
|
-
},
|
|
517
|
+
}, dg = V, Pr = dg.Promise, pg = V, Tt = Pr, yg = B, mg = ru, bg = Ei, xg = z, rs = au, xa = xi;
|
|
523
518
|
Tt && Tt.prototype;
|
|
524
|
-
var
|
|
525
|
-
var a =
|
|
519
|
+
var Tg = xg("species"), Za = !1, bu = yg(pg.PromiseRejectionEvent), Og = mg("Promise", function() {
|
|
520
|
+
var a = bg(Tt), e = a !== String(Tt);
|
|
526
521
|
if (!e && xa === 66) return !0;
|
|
527
522
|
if (!xa || xa < 51 || !/native code/.test(a)) {
|
|
528
523
|
var t = new Tt(function(n) {
|
|
@@ -532,215 +527,215 @@ var Eg = Sg("species"), ei = !1, Su = xg(bg.PromiseRejectionEvent), $g = Tg("Pro
|
|
|
532
527
|
}, function() {
|
|
533
528
|
});
|
|
534
529
|
}, i = t.constructor = {};
|
|
535
|
-
if (i[
|
|
536
|
-
}) instanceof r, !
|
|
530
|
+
if (i[Tg] = r, Za = t.then(function() {
|
|
531
|
+
}) instanceof r, !Za) return !0;
|
|
537
532
|
}
|
|
538
|
-
return !e && (
|
|
533
|
+
return !e && (rs === "BROWSER" || rs === "DENO") && !bu;
|
|
539
534
|
}), Rt = {
|
|
540
|
-
CONSTRUCTOR:
|
|
541
|
-
REJECTION_EVENT:
|
|
542
|
-
SUBCLASSING:
|
|
543
|
-
}, lt = {},
|
|
535
|
+
CONSTRUCTOR: Og,
|
|
536
|
+
REJECTION_EVENT: bu,
|
|
537
|
+
SUBCLASSING: Za
|
|
538
|
+
}, lt = {}, as = Te, Sg = TypeError, Eg = function(a) {
|
|
544
539
|
var e, t;
|
|
545
540
|
this.promise = new a(function(r, i) {
|
|
546
|
-
if (e !== void 0 || t !== void 0) throw new
|
|
541
|
+
if (e !== void 0 || t !== void 0) throw new Sg("Bad Promise constructor");
|
|
547
542
|
e = r, t = i;
|
|
548
|
-
}), this.resolve =
|
|
543
|
+
}), this.resolve = as(e), this.reject = as(t);
|
|
549
544
|
};
|
|
550
545
|
lt.f = function(a) {
|
|
551
|
-
return new
|
|
546
|
+
return new Eg(a);
|
|
552
547
|
};
|
|
553
|
-
var
|
|
548
|
+
var $g = ee, dr = wr, we = V, nt = Y, is = Ue, ns = iu, wg = Cr, Cg = ac, Ag = Te, ur = B, Pg = ve, Rg = sc, Ng = hu, xu = pu.set, Vi = cg, Ig = gg, Mg = _i, _g = mu, Tu = Er, pr = Pr, Di = Rt, Ou = lt, Rr = "Promise", Su = Di.CONSTRUCTOR, Vg = Di.REJECTION_EVENT, Dg = Di.SUBCLASSING, Ta = Tu.getterFor(Rr), kg = Tu.set, Qe = pr && pr.prototype, De = pr, Kt = Qe, Eu = we.TypeError, Ja = we.document, ki = we.process, ei = Ou.f, Lg = ei, Bg = !!(Ja && Ja.createEvent && we.dispatchEvent), $u = "unhandledrejection", jg = "rejectionhandled", ss = 0, wu = 1, Fg = 2, Li = 1, Cu = 2, Zt, os, Ug, us, Au = function(a) {
|
|
554
549
|
var e;
|
|
555
|
-
return
|
|
556
|
-
},
|
|
557
|
-
var t = e.value, r = e.state ===
|
|
550
|
+
return Pg(a) && ur(e = a.then) ? e : !1;
|
|
551
|
+
}, Pu = function(a, e) {
|
|
552
|
+
var t = e.value, r = e.state === wu, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
|
558
553
|
try {
|
|
559
|
-
i ? (r || (e.rejection ===
|
|
554
|
+
i ? (r || (e.rejection === Cu && zg(e), e.rejection = Li), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(new Eu("Promise-chain cycle")) : (l = Au(u)) ? nt(l, u, n, o) : n(u)) : o(t);
|
|
560
555
|
} catch (f) {
|
|
561
556
|
s && !h && s.exit(), o(f);
|
|
562
557
|
}
|
|
563
|
-
},
|
|
564
|
-
a.notified || (a.notified = !0,
|
|
558
|
+
}, Ru = function(a, e) {
|
|
559
|
+
a.notified || (a.notified = !0, Vi(function() {
|
|
565
560
|
for (var t = a.reactions, r; r = t.get(); )
|
|
566
|
-
|
|
567
|
-
a.notified = !1, e && !a.rejection &&
|
|
561
|
+
Pu(r, a);
|
|
562
|
+
a.notified = !1, e && !a.rejection && Gg(a);
|
|
568
563
|
}));
|
|
569
|
-
},
|
|
564
|
+
}, Nu = function(a, e, t) {
|
|
570
565
|
var r, i;
|
|
571
|
-
|
|
572
|
-
},
|
|
573
|
-
nt(
|
|
574
|
-
var e = a.facade, t = a.value, r =
|
|
575
|
-
if (r && (i =
|
|
576
|
-
dr ?
|
|
577
|
-
}), a.rejection = dr ||
|
|
566
|
+
Bg ? (r = Ja.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), we.dispatchEvent(r)) : r = { promise: e, reason: t }, !Vg && (i = we["on" + a]) ? i(r) : a === $u && Ig("Unhandled promise rejection", t);
|
|
567
|
+
}, Gg = function(a) {
|
|
568
|
+
nt(xu, we, function() {
|
|
569
|
+
var e = a.facade, t = a.value, r = ls(a), i;
|
|
570
|
+
if (r && (i = Mg(function() {
|
|
571
|
+
dr ? ki.emit("unhandledRejection", t, e) : Nu($u, e, t);
|
|
572
|
+
}), a.rejection = dr || ls(a) ? Cu : Li, i.error))
|
|
578
573
|
throw i.value;
|
|
579
574
|
});
|
|
580
|
-
},
|
|
581
|
-
return a.rejection !==
|
|
582
|
-
},
|
|
583
|
-
nt(
|
|
575
|
+
}, ls = function(a) {
|
|
576
|
+
return a.rejection !== Li && !a.parent;
|
|
577
|
+
}, zg = function(a) {
|
|
578
|
+
nt(xu, we, function() {
|
|
584
579
|
var e = a.facade;
|
|
585
|
-
dr ?
|
|
580
|
+
dr ? ki.emit("rejectionHandled", e) : Nu(jg, e, a.value);
|
|
586
581
|
});
|
|
587
582
|
}, Je = function(a, e, t) {
|
|
588
583
|
return function(r) {
|
|
589
584
|
a(e, r, t);
|
|
590
585
|
};
|
|
591
586
|
}, tt = function(a, e, t) {
|
|
592
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
|
593
|
-
},
|
|
587
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Fg, Ru(a, !0));
|
|
588
|
+
}, ti = function(a, e, t) {
|
|
594
589
|
if (!a.done) {
|
|
595
590
|
a.done = !0, t && (a = t);
|
|
596
591
|
try {
|
|
597
|
-
if (a.facade === e) throw new
|
|
598
|
-
var r =
|
|
599
|
-
r ?
|
|
592
|
+
if (a.facade === e) throw new Eu("Promise can't be resolved itself");
|
|
593
|
+
var r = Au(e);
|
|
594
|
+
r ? Vi(function() {
|
|
600
595
|
var i = { done: !1 };
|
|
601
596
|
try {
|
|
602
597
|
nt(
|
|
603
598
|
r,
|
|
604
599
|
e,
|
|
605
|
-
Je(
|
|
600
|
+
Je(ti, i, a),
|
|
606
601
|
Je(tt, i, a)
|
|
607
602
|
);
|
|
608
603
|
} catch (n) {
|
|
609
604
|
tt(i, n, a);
|
|
610
605
|
}
|
|
611
|
-
}) : (a.value = e, a.state =
|
|
606
|
+
}) : (a.value = e, a.state = wu, Ru(a, !1));
|
|
612
607
|
} catch (i) {
|
|
613
608
|
tt({ done: !1 }, i, a);
|
|
614
609
|
}
|
|
615
610
|
}
|
|
616
611
|
};
|
|
617
|
-
if (
|
|
618
|
-
|
|
612
|
+
if (Su && (De = function(e) {
|
|
613
|
+
Rg(this, Kt), Ag(e), nt(Zt, this);
|
|
619
614
|
var t = Ta(this);
|
|
620
615
|
try {
|
|
621
|
-
e(Je(
|
|
616
|
+
e(Je(ti, t), Je(tt, t));
|
|
622
617
|
} catch (r) {
|
|
623
618
|
tt(t, r);
|
|
624
619
|
}
|
|
625
620
|
}, Kt = De.prototype, Zt = function(e) {
|
|
626
|
-
|
|
621
|
+
kg(this, {
|
|
627
622
|
type: Rr,
|
|
628
623
|
done: !1,
|
|
629
624
|
notified: !1,
|
|
630
625
|
parent: !1,
|
|
631
|
-
reactions: new
|
|
626
|
+
reactions: new _g(),
|
|
632
627
|
rejection: !1,
|
|
633
|
-
state:
|
|
628
|
+
state: ss,
|
|
634
629
|
value: null
|
|
635
630
|
});
|
|
636
|
-
}, Zt.prototype =
|
|
637
|
-
var r = Ta(this), i =
|
|
638
|
-
return r.parent = !0, i.ok = ur(e) ? e : !0, i.fail = ur(t) && t, i.domain = dr ?
|
|
639
|
-
|
|
631
|
+
}, Zt.prototype = is(Kt, "then", function(e, t) {
|
|
632
|
+
var r = Ta(this), i = ei(Ng(this, De));
|
|
633
|
+
return r.parent = !0, i.ok = ur(e) ? e : !0, i.fail = ur(t) && t, i.domain = dr ? ki.domain : void 0, r.state === ss ? r.reactions.add(i) : Vi(function() {
|
|
634
|
+
Pu(i, r);
|
|
640
635
|
}), i.promise;
|
|
641
|
-
}),
|
|
636
|
+
}), os = function() {
|
|
642
637
|
var a = new Zt(), e = Ta(a);
|
|
643
|
-
this.promise = a, this.resolve = Je(
|
|
644
|
-
},
|
|
645
|
-
return a === De || a ===
|
|
638
|
+
this.promise = a, this.resolve = Je(ti, e), this.reject = Je(tt, e);
|
|
639
|
+
}, Ou.f = ei = function(a) {
|
|
640
|
+
return a === De || a === Ug ? new os(a) : Lg(a);
|
|
646
641
|
}, ur(pr) && Qe !== Object.prototype)) {
|
|
647
|
-
|
|
642
|
+
us = Qe.then, Dg || is(Qe, "then", function(e, t) {
|
|
648
643
|
var r = this;
|
|
649
644
|
return new De(function(i, n) {
|
|
650
|
-
nt(
|
|
645
|
+
nt(us, r, i, n);
|
|
651
646
|
}).then(e, t);
|
|
652
647
|
}, { unsafe: !0 });
|
|
653
648
|
try {
|
|
654
649
|
delete Qe.constructor;
|
|
655
650
|
} catch {
|
|
656
651
|
}
|
|
657
|
-
|
|
652
|
+
ns && ns(Qe, Kt);
|
|
658
653
|
}
|
|
659
|
-
|
|
654
|
+
$g({ global: !0, constructor: !0, wrap: !0, forced: Su }, {
|
|
660
655
|
Promise: De
|
|
661
656
|
});
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
var Nt = {},
|
|
665
|
-
return a !== void 0 && (
|
|
666
|
-
},
|
|
667
|
-
if (!
|
|
668
|
-
},
|
|
669
|
-
var t = arguments.length < 2 ?
|
|
670
|
-
if (
|
|
671
|
-
throw new
|
|
672
|
-
},
|
|
657
|
+
wg(De, Rr, !1);
|
|
658
|
+
Cg(Rr);
|
|
659
|
+
var Nt = {}, Hg = z, Yg = Nt, Xg = Hg("iterator"), Wg = Array.prototype, qg = function(a) {
|
|
660
|
+
return a !== void 0 && (Yg.Array === a || Wg[Xg] === a);
|
|
661
|
+
}, Qg = Ri, hs = ot, Kg = je, Zg = Nt, Jg = z, ed = Jg("iterator"), Iu = function(a) {
|
|
662
|
+
if (!Kg(a)) return hs(a, ed) || hs(a, "@@iterator") || Zg[Qg(a)];
|
|
663
|
+
}, td = Y, rd = Te, ad = J, id = xr, nd = Iu, sd = TypeError, od = function(a, e) {
|
|
664
|
+
var t = arguments.length < 2 ? nd(a) : e;
|
|
665
|
+
if (rd(t)) return ad(td(t, a));
|
|
666
|
+
throw new sd(id(a) + " is not iterable");
|
|
667
|
+
}, ud = Y, vs = J, ld = ot, hd = function(a, e, t) {
|
|
673
668
|
var r, i;
|
|
674
|
-
|
|
669
|
+
vs(a);
|
|
675
670
|
try {
|
|
676
|
-
if (r =
|
|
671
|
+
if (r = ld(a, "return"), !r) {
|
|
677
672
|
if (e === "throw") throw t;
|
|
678
673
|
return t;
|
|
679
674
|
}
|
|
680
|
-
r =
|
|
675
|
+
r = ud(r, a);
|
|
681
676
|
} catch (n) {
|
|
682
677
|
i = !0, r = n;
|
|
683
678
|
}
|
|
684
679
|
if (e === "throw") throw t;
|
|
685
680
|
if (i) throw r;
|
|
686
|
-
return
|
|
687
|
-
},
|
|
681
|
+
return vs(r), t;
|
|
682
|
+
}, vd = Ii, fd = Y, cd = J, gd = xr, dd = qg, pd = Ai, fs = br, yd = od, md = Iu, cs = hd, bd = TypeError, lr = function(a, e) {
|
|
688
683
|
this.stopped = a, this.result = e;
|
|
689
|
-
},
|
|
690
|
-
var r = t && t.that, i = !!(t && t.AS_ENTRIES), n = !!(t && t.IS_RECORD), o = !!(t && t.IS_ITERATOR), s = !!(t && t.INTERRUPTED), u =
|
|
691
|
-
return l &&
|
|
684
|
+
}, gs = lr.prototype, Mu = function(a, e, t) {
|
|
685
|
+
var r = t && t.that, i = !!(t && t.AS_ENTRIES), n = !!(t && t.IS_RECORD), o = !!(t && t.IS_ITERATOR), s = !!(t && t.INTERRUPTED), u = vd(e, r), l, h, f, c, v, d, g, p = function(x) {
|
|
686
|
+
return l && cs(l, "normal", x), new lr(!0, x);
|
|
692
687
|
}, y = function(x) {
|
|
693
|
-
return i ? (
|
|
688
|
+
return i ? (cd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
|
|
694
689
|
};
|
|
695
690
|
if (n)
|
|
696
691
|
l = a.iterator;
|
|
697
692
|
else if (o)
|
|
698
693
|
l = a;
|
|
699
694
|
else {
|
|
700
|
-
if (h =
|
|
701
|
-
if (
|
|
702
|
-
for (f = 0, c =
|
|
703
|
-
if (v = y(a[f]), v &&
|
|
695
|
+
if (h = md(a), !h) throw new bd(gd(a) + " is not iterable");
|
|
696
|
+
if (dd(h)) {
|
|
697
|
+
for (f = 0, c = pd(a); c > f; f++)
|
|
698
|
+
if (v = y(a[f]), v && fs(gs, v)) return v;
|
|
704
699
|
return new lr(!1);
|
|
705
700
|
}
|
|
706
|
-
l =
|
|
701
|
+
l = yd(a, h);
|
|
707
702
|
}
|
|
708
|
-
for (d = n ? a.next : l.next; !(g =
|
|
703
|
+
for (d = n ? a.next : l.next; !(g = fd(d, l)).done; ) {
|
|
709
704
|
try {
|
|
710
705
|
v = y(g.value);
|
|
711
706
|
} catch (x) {
|
|
712
|
-
|
|
707
|
+
cs(l, "throw", x);
|
|
713
708
|
}
|
|
714
|
-
if (typeof v == "object" && v &&
|
|
709
|
+
if (typeof v == "object" && v && fs(gs, v)) return v;
|
|
715
710
|
}
|
|
716
711
|
return new lr(!1);
|
|
717
|
-
},
|
|
712
|
+
}, xd = z, _u = xd("iterator"), Vu = !1;
|
|
718
713
|
try {
|
|
719
|
-
var
|
|
714
|
+
var Td = 0, ds = {
|
|
720
715
|
next: function() {
|
|
721
|
-
return { done: !!
|
|
716
|
+
return { done: !!Td++ };
|
|
722
717
|
},
|
|
723
718
|
return: function() {
|
|
724
|
-
|
|
719
|
+
Vu = !0;
|
|
725
720
|
}
|
|
726
721
|
};
|
|
727
|
-
|
|
722
|
+
ds[_u] = function() {
|
|
728
723
|
return this;
|
|
729
|
-
}, Array.from(
|
|
724
|
+
}, Array.from(ds, function() {
|
|
730
725
|
throw 2;
|
|
731
726
|
});
|
|
732
727
|
} catch {
|
|
733
728
|
}
|
|
734
|
-
var
|
|
729
|
+
var Od = function(a, e) {
|
|
735
730
|
try {
|
|
736
|
-
if (!e && !
|
|
731
|
+
if (!e && !Vu) return !1;
|
|
737
732
|
} catch {
|
|
738
733
|
return !1;
|
|
739
734
|
}
|
|
740
735
|
var t = !1;
|
|
741
736
|
try {
|
|
742
737
|
var r = {};
|
|
743
|
-
r[
|
|
738
|
+
r[_u] = function() {
|
|
744
739
|
return {
|
|
745
740
|
next: function() {
|
|
746
741
|
return { done: t = !0 };
|
|
@@ -750,17 +745,17 @@ var $d = function(a, e) {
|
|
|
750
745
|
} catch {
|
|
751
746
|
}
|
|
752
747
|
return t;
|
|
753
|
-
},
|
|
754
|
-
|
|
748
|
+
}, Sd = Pr, Ed = Od, $d = Rt.CONSTRUCTOR, Du = $d || !Ed(function(a) {
|
|
749
|
+
Sd.all(a).then(void 0, function() {
|
|
755
750
|
});
|
|
756
|
-
}),
|
|
757
|
-
|
|
751
|
+
}), wd = ee, Cd = Y, Ad = Te, Pd = lt, Rd = _i, Nd = Mu, Id = Du;
|
|
752
|
+
wd({ target: "Promise", stat: !0, forced: Id }, {
|
|
758
753
|
all: function(e) {
|
|
759
|
-
var t = this, r =
|
|
760
|
-
var s =
|
|
761
|
-
|
|
754
|
+
var t = this, r = Pd.f(t), i = r.resolve, n = r.reject, o = Rd(function() {
|
|
755
|
+
var s = Ad(t.resolve), u = [], l = 0, h = 1;
|
|
756
|
+
Nd(e, function(f) {
|
|
762
757
|
var c = l++, v = !1;
|
|
763
|
-
h++,
|
|
758
|
+
h++, Cd(s, t, f).then(function(d) {
|
|
764
759
|
v || (v = !0, u[c] = d, --h || i(u));
|
|
765
760
|
}, n);
|
|
766
761
|
}), --h || i(u);
|
|
@@ -768,47 +763,47 @@ Pd({ target: "Promise", stat: !0, forced: Vd }, {
|
|
|
768
763
|
return o.error && n(o.value), r.promise;
|
|
769
764
|
}
|
|
770
765
|
});
|
|
771
|
-
var
|
|
772
|
-
|
|
766
|
+
var Md = ee, _d = Rt.CONSTRUCTOR, ri = Pr, Vd = Fe, Dd = B, kd = Ue, ps = ri && ri.prototype;
|
|
767
|
+
Md({ target: "Promise", proto: !0, forced: _d, real: !0 }, {
|
|
773
768
|
catch: function(a) {
|
|
774
769
|
return this.then(void 0, a);
|
|
775
770
|
}
|
|
776
771
|
});
|
|
777
|
-
if (
|
|
778
|
-
var
|
|
779
|
-
|
|
772
|
+
if (Dd(ri)) {
|
|
773
|
+
var ys = Vd("Promise").prototype.catch;
|
|
774
|
+
ps.catch !== ys && kd(ps, "catch", ys, { unsafe: !0 });
|
|
780
775
|
}
|
|
781
|
-
var
|
|
782
|
-
|
|
776
|
+
var Ld = ee, Bd = Y, jd = Te, Fd = lt, Ud = _i, Gd = Mu, zd = Du;
|
|
777
|
+
Ld({ target: "Promise", stat: !0, forced: zd }, {
|
|
783
778
|
race: function(e) {
|
|
784
|
-
var t = this, r =
|
|
785
|
-
var o =
|
|
786
|
-
|
|
787
|
-
|
|
779
|
+
var t = this, r = Fd.f(t), i = r.reject, n = Ud(function() {
|
|
780
|
+
var o = jd(t.resolve);
|
|
781
|
+
Gd(e, function(s) {
|
|
782
|
+
Bd(o, t, s).then(r.resolve, i);
|
|
788
783
|
});
|
|
789
784
|
});
|
|
790
785
|
return n.error && i(n.value), r.promise;
|
|
791
786
|
}
|
|
792
787
|
});
|
|
793
|
-
var
|
|
794
|
-
|
|
788
|
+
var Hd = ee, Yd = lt, Xd = Rt.CONSTRUCTOR;
|
|
789
|
+
Hd({ target: "Promise", stat: !0, forced: Xd }, {
|
|
795
790
|
reject: function(e) {
|
|
796
|
-
var t =
|
|
791
|
+
var t = Yd.f(this), r = t.reject;
|
|
797
792
|
return r(e), t.promise;
|
|
798
793
|
}
|
|
799
794
|
});
|
|
800
|
-
var
|
|
801
|
-
if (
|
|
802
|
-
var t =
|
|
795
|
+
var Wd = J, qd = ve, Qd = lt, Kd = function(a, e) {
|
|
796
|
+
if (Wd(a), qd(e) && e.constructor === a) return e;
|
|
797
|
+
var t = Qd.f(a), r = t.resolve;
|
|
803
798
|
return r(e), t.promise;
|
|
804
|
-
},
|
|
805
|
-
|
|
806
|
-
|
|
799
|
+
}, Zd = ee, Jd = Fe, ep = Rt.CONSTRUCTOR, tp = Kd;
|
|
800
|
+
Jd("Promise");
|
|
801
|
+
Zd({ target: "Promise", stat: !0, forced: ep }, {
|
|
807
802
|
resolve: function(e) {
|
|
808
|
-
return
|
|
803
|
+
return tp(this, e);
|
|
809
804
|
}
|
|
810
805
|
});
|
|
811
|
-
function
|
|
806
|
+
function ms(a, e, t, r, i, n, o) {
|
|
812
807
|
try {
|
|
813
808
|
var s = a[n](o), u = s.value;
|
|
814
809
|
} catch (l) {
|
|
@@ -822,102 +817,103 @@ function xe(a) {
|
|
|
822
817
|
return new Promise(function(r, i) {
|
|
823
818
|
var n = a.apply(e, t);
|
|
824
819
|
function o(u) {
|
|
825
|
-
|
|
820
|
+
ms(n, r, i, o, s, "next", u);
|
|
826
821
|
}
|
|
827
822
|
function s(u) {
|
|
828
|
-
|
|
823
|
+
ms(n, r, i, o, s, "throw", u);
|
|
829
824
|
}
|
|
830
825
|
o(void 0);
|
|
831
826
|
});
|
|
832
827
|
};
|
|
833
828
|
}
|
|
834
|
-
var
|
|
835
|
-
if (
|
|
836
|
-
return
|
|
837
|
-
},
|
|
838
|
-
var a =
|
|
829
|
+
var rp = Ri, ap = String, pe = function(a) {
|
|
830
|
+
if (rp(a) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
831
|
+
return ap(a);
|
|
832
|
+
}, ip = J, ku = function() {
|
|
833
|
+
var a = ip(this), e = "";
|
|
839
834
|
return a.hasIndices && (e += "d"), a.global && (e += "g"), a.ignoreCase && (e += "i"), a.multiline && (e += "m"), a.dotAll && (e += "s"), a.unicode && (e += "u"), a.unicodeSets && (e += "v"), a.sticky && (e += "y"), e;
|
|
840
|
-
},
|
|
841
|
-
var a =
|
|
835
|
+
}, Bi = k, np = V, ji = np.RegExp, Fi = Bi(function() {
|
|
836
|
+
var a = ji("a", "y");
|
|
842
837
|
return a.lastIndex = 2, a.exec("abcd") !== null;
|
|
843
|
-
})
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
838
|
+
});
|
|
839
|
+
Fi || Bi(function() {
|
|
840
|
+
return !ji("a", "y").sticky;
|
|
841
|
+
});
|
|
842
|
+
var sp = Fi || Bi(function() {
|
|
843
|
+
var a = ji("^r", "gy");
|
|
847
844
|
return a.lastIndex = 2, a.exec("str") !== null;
|
|
848
|
-
}),
|
|
849
|
-
BROKEN_CARET:
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
for (var r = mp(t), i = bp(t), n = i.length, o = 0, s; n > o; ) pp.f(e, s = i[o++], r[s]);
|
|
845
|
+
}), Lu = {
|
|
846
|
+
BROKEN_CARET: sp,
|
|
847
|
+
UNSUPPORTED_Y: Fi
|
|
848
|
+
}, Bu = {}, op = eu, up = Pi, lp = Object.keys || function(e) {
|
|
849
|
+
return op(e, up);
|
|
850
|
+
}, hp = le, vp = Ho, fp = Oe, cp = J, gp = wt, dp = lp;
|
|
851
|
+
Bu.f = hp && !vp ? Object.defineProperties : function(e, t) {
|
|
852
|
+
cp(e);
|
|
853
|
+
for (var r = gp(t), i = dp(t), n = i.length, o = 0, s; n > o; ) fp.f(e, s = i[o++], r[s]);
|
|
858
854
|
return e;
|
|
859
855
|
};
|
|
860
|
-
var
|
|
861
|
-
},
|
|
862
|
-
return
|
|
863
|
-
},
|
|
864
|
-
a.write(
|
|
856
|
+
var pp = J, yp = Bu, bs = Pi, mp = wi, bp = cu, xp = Or, Tp = $i, xs = ">", Ts = "<", ai = "prototype", ii = "script", ju = Tp("IE_PROTO"), Oa = function() {
|
|
857
|
+
}, Fu = function(a) {
|
|
858
|
+
return Ts + ii + xs + a + Ts + "/" + ii + xs;
|
|
859
|
+
}, Os = function(a) {
|
|
860
|
+
a.write(Fu("")), a.close();
|
|
865
861
|
var e = a.parentWindow.Object;
|
|
866
862
|
return a = null, e;
|
|
867
|
-
},
|
|
868
|
-
var a =
|
|
869
|
-
return a.style.display = "none",
|
|
863
|
+
}, Op = function() {
|
|
864
|
+
var a = xp("iframe"), e = "java" + ii + ":", t;
|
|
865
|
+
return a.style.display = "none", bp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Fu("document.F=Object")), t.close(), t.F;
|
|
870
866
|
}, Jt, hr = function() {
|
|
871
867
|
try {
|
|
872
868
|
Jt = new ActiveXObject("htmlfile");
|
|
873
869
|
} catch {
|
|
874
870
|
}
|
|
875
|
-
hr = typeof document < "u" ? document.domain && Jt ?
|
|
876
|
-
for (var a =
|
|
871
|
+
hr = typeof document < "u" ? document.domain && Jt ? Os(Jt) : Op() : Os(Jt);
|
|
872
|
+
for (var a = bs.length; a--; ) delete hr[ai][bs[a]];
|
|
877
873
|
return hr();
|
|
878
874
|
};
|
|
879
|
-
|
|
880
|
-
var
|
|
875
|
+
mp[ju] = !0;
|
|
876
|
+
var Ui = Object.create || function(e, t) {
|
|
881
877
|
var r;
|
|
882
|
-
return e !== null ? (Oa[
|
|
883
|
-
},
|
|
884
|
-
var a =
|
|
878
|
+
return e !== null ? (Oa[ai] = pp(e), r = new Oa(), Oa[ai] = null, r[ju] = e) : r = hr(), t === void 0 ? r : yp.f(r, t);
|
|
879
|
+
}, Sp = k, Ep = V, $p = Ep.RegExp, wp = Sp(function() {
|
|
880
|
+
var a = $p(".", "s");
|
|
885
881
|
return !(a.dotAll && a.test(`
|
|
886
882
|
`) && a.flags === "s");
|
|
887
|
-
}),
|
|
888
|
-
var a =
|
|
883
|
+
}), Cp = k, Ap = V, Pp = Ap.RegExp, Rp = Cp(function() {
|
|
884
|
+
var a = Pp("(?<a>b)", "g");
|
|
889
885
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
|
890
|
-
}), et = Y, Nr = L,
|
|
886
|
+
}), et = Y, Nr = L, Np = pe, Ip = ku, Mp = Lu, _p = Si, Vp = Ui, Dp = Er.get, kp = wp, Lp = Rp, Bp = _p("native-string-replace", String.prototype.replace), yr = RegExp.prototype.exec, ni = yr, jp = Nr("".charAt), Fp = Nr("".indexOf), Up = Nr("".replace), Sa = Nr("".slice), si = function() {
|
|
891
887
|
var a = /a/, e = /b*/g;
|
|
892
888
|
return et(yr, a, "a"), et(yr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
|
893
|
-
}(),
|
|
894
|
-
|
|
895
|
-
var t = this, r =
|
|
889
|
+
}(), Uu = Mp.BROKEN_CARET, oi = /()??/.exec("")[1] !== void 0, Gp = si || oi || Uu || kp || Lp;
|
|
890
|
+
Gp && (ni = function(e) {
|
|
891
|
+
var t = this, r = Dp(t), i = Np(e), n = r.raw, o, s, u, l, h, f, c;
|
|
896
892
|
if (n)
|
|
897
|
-
return n.lastIndex = t.lastIndex, o = et(
|
|
898
|
-
var v = r.groups, d =
|
|
899
|
-
if (d && (g =
|
|
900
|
-
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)),
|
|
893
|
+
return n.lastIndex = t.lastIndex, o = et(ni, n, i), t.lastIndex = n.lastIndex, o;
|
|
894
|
+
var v = r.groups, d = Uu && t.sticky, g = et(Ip, t), p = t.source, y = 0, x = i;
|
|
895
|
+
if (d && (g = Up(g, "y", ""), Fp(g, "g") === -1 && (g += "g"), x = Sa(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && jp(i, t.lastIndex - 1) !== `
|
|
896
|
+
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), oi && (s = new RegExp("^" + p + "$(?!\\s)", g)), si && (u = t.lastIndex), l = et(yr, d ? s : t, x), d ? l ? (l.input = Sa(l.input, y), l[0] = Sa(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : si && l && (t.lastIndex = t.global ? l.index + l[0].length : u), oi && l && l.length > 1 && et(Bp, l[0], s, function() {
|
|
901
897
|
for (h = 1; h < arguments.length - 2; h++)
|
|
902
898
|
arguments[h] === void 0 && (l[h] = void 0);
|
|
903
899
|
}), l && v)
|
|
904
|
-
for (l.groups = f =
|
|
900
|
+
for (l.groups = f = Vp(null), h = 0; h < v.length; h++)
|
|
905
901
|
c = v[h], f[c[0]] = l[c[1]];
|
|
906
902
|
return l;
|
|
907
903
|
});
|
|
908
|
-
var
|
|
909
|
-
|
|
910
|
-
exec:
|
|
904
|
+
var Gi = ni, zp = ee, Ss = Gi;
|
|
905
|
+
zp({ target: "RegExp", proto: !0, forced: /./.exec !== Ss }, {
|
|
906
|
+
exec: Ss
|
|
911
907
|
});
|
|
912
|
-
var
|
|
913
|
-
var i =
|
|
908
|
+
var Es = Y, $s = Ue, Hp = Gi, ws = k, Gu = z, Yp = At, Xp = Gu("species"), Ea = RegExp.prototype, zi = function(a, e, t, r) {
|
|
909
|
+
var i = Gu(a), n = !ws(function() {
|
|
914
910
|
var l = {};
|
|
915
911
|
return l[i] = function() {
|
|
916
912
|
return 7;
|
|
917
913
|
}, ""[a](l) !== 7;
|
|
918
|
-
}), o = n && !
|
|
914
|
+
}), o = n && !ws(function() {
|
|
919
915
|
var l = !1, h = /a/;
|
|
920
|
-
return a === "split" && (h = {}, h.constructor = {}, h.constructor[
|
|
916
|
+
return a === "split" && (h = {}, h.constructor = {}, h.constructor[Xp] = function() {
|
|
921
917
|
return h;
|
|
922
918
|
}, h.flags = "", h[i] = /./[i]), h.exec = function() {
|
|
923
919
|
return l = !0, null;
|
|
@@ -926,61 +922,58 @@ var Cs = Y, As = Ue, qp = Yi, Ps = k, Xu = z, Qp = At, Kp = Xu("species"), Ea =
|
|
|
926
922
|
if (!n || !o || t) {
|
|
927
923
|
var s = /./[i], u = e(i, ""[a], function(l, h, f, c, v) {
|
|
928
924
|
var d = h.exec;
|
|
929
|
-
return d ===
|
|
925
|
+
return d === Hp || d === Ea.exec ? n && !v ? { done: !0, value: Es(s, h, f, c) } : { done: !0, value: Es(l, f, h, c) } : { done: !1 };
|
|
930
926
|
});
|
|
931
|
-
|
|
927
|
+
$s(String.prototype, a, u[0]), $s(Ea, i, u[1]);
|
|
932
928
|
}
|
|
933
|
-
r &&
|
|
934
|
-
},
|
|
929
|
+
r && Yp(Ea[i], "sham", !0);
|
|
930
|
+
}, Hi = L, Wp = $r, qp = pe, Qp = he, Kp = Hi("".charAt), Cs = Hi("".charCodeAt), Zp = Hi("".slice), Jp = function(a) {
|
|
935
931
|
return function(e, t) {
|
|
936
|
-
var r =
|
|
937
|
-
return i < 0 || i >= n ? a ? "" : void 0 : (o =
|
|
932
|
+
var r = qp(Qp(e)), i = Wp(t), n = r.length, o, s;
|
|
933
|
+
return i < 0 || i >= n ? a ? "" : void 0 : (o = Cs(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = Cs(r, i + 1)) < 56320 || s > 57343 ? a ? Kp(r, i) : o : a ? Zp(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
|
938
934
|
};
|
|
939
|
-
},
|
|
940
|
-
// `String.prototype.codePointAt` method
|
|
941
|
-
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
942
|
-
codeAt: Ns(!1),
|
|
935
|
+
}, ey = {
|
|
943
936
|
// `String.prototype.at` method
|
|
944
937
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
945
|
-
charAt:
|
|
946
|
-
},
|
|
947
|
-
return e + (t ?
|
|
948
|
-
},
|
|
938
|
+
charAt: Jp(!0)
|
|
939
|
+
}, ty = ey.charAt, Yi = function(a, e, t) {
|
|
940
|
+
return e + (t ? ty(a, e).length : 1);
|
|
941
|
+
}, As = Y, ry = J, ay = B, iy = Be, ny = Gi, sy = TypeError, Xi = function(a, e) {
|
|
949
942
|
var t = a.exec;
|
|
950
|
-
if (
|
|
951
|
-
var r =
|
|
952
|
-
return r !== null &&
|
|
953
|
-
}
|
|
954
|
-
if (
|
|
955
|
-
throw new
|
|
956
|
-
},
|
|
957
|
-
|
|
943
|
+
if (ay(t)) {
|
|
944
|
+
var r = As(t, a, e);
|
|
945
|
+
return r !== null && ry(r), r;
|
|
946
|
+
}
|
|
947
|
+
if (iy(a) === "RegExp") return As(ny, a, e);
|
|
948
|
+
throw new sy("RegExp#exec called on incompatible receiver");
|
|
949
|
+
}, oy = Y, uy = zi, ly = J, hy = je, vy = ut, $a = pe, fy = he, cy = ot, gy = Yi, Ps = Xi;
|
|
950
|
+
uy("match", function(a, e, t) {
|
|
958
951
|
return [
|
|
959
952
|
// `String.prototype.match` method
|
|
960
953
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
961
954
|
function(i) {
|
|
962
|
-
var n =
|
|
963
|
-
return o ?
|
|
955
|
+
var n = fy(this), o = hy(i) ? void 0 : cy(i, a);
|
|
956
|
+
return o ? oy(o, i, n) : new RegExp(i)[a]($a(n));
|
|
964
957
|
},
|
|
965
958
|
// `RegExp.prototype[@@match]` method
|
|
966
959
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
967
960
|
function(r) {
|
|
968
|
-
var i =
|
|
961
|
+
var i = ly(this), n = $a(r), o = t(e, i, n);
|
|
969
962
|
if (o.done) return o.value;
|
|
970
|
-
if (!i.global) return
|
|
963
|
+
if (!i.global) return Ps(i, n);
|
|
971
964
|
var s = i.unicode;
|
|
972
965
|
i.lastIndex = 0;
|
|
973
|
-
for (var u = [], l = 0, h; (h =
|
|
966
|
+
for (var u = [], l = 0, h; (h = Ps(i, n)) !== null; ) {
|
|
974
967
|
var f = $a(h[0]);
|
|
975
|
-
u[l] = f, f === "" && (i.lastIndex =
|
|
968
|
+
u[l] = f, f === "" && (i.lastIndex = gy(n, vy(i.lastIndex), s)), l++;
|
|
976
969
|
}
|
|
977
970
|
return l === 0 ? null : u;
|
|
978
971
|
}
|
|
979
972
|
];
|
|
980
973
|
});
|
|
981
|
-
var
|
|
982
|
-
var o = t + a.length, s = r.length, u =
|
|
983
|
-
return i !== void 0 && (i =
|
|
974
|
+
var Wi = L, dy = Tr, py = Math.floor, wa = Wi("".charAt), yy = Wi("".replace), Ca = Wi("".slice), my = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, by = /\$([$&'`]|\d{1,2})/g, xy = function(a, e, t, r, i, n) {
|
|
975
|
+
var o = t + a.length, s = r.length, u = by;
|
|
976
|
+
return i !== void 0 && (i = dy(i), u = my), yy(n, u, function(l, h) {
|
|
984
977
|
var f;
|
|
985
978
|
switch (wa(h, 0)) {
|
|
986
979
|
case "$":
|
|
@@ -998,139 +991,139 @@ var Ki = L, my = Tr, by = Math.floor, wa = Ki("".charAt), xy = Ki("".replace), C
|
|
|
998
991
|
var c = +h;
|
|
999
992
|
if (c === 0) return l;
|
|
1000
993
|
if (c > s) {
|
|
1001
|
-
var v =
|
|
994
|
+
var v = py(c / 10);
|
|
1002
995
|
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? wa(h, 1) : r[v - 1] + wa(h, 1) : l;
|
|
1003
996
|
}
|
|
1004
997
|
f = r[c - 1];
|
|
1005
998
|
}
|
|
1006
999
|
return f === void 0 ? "" : f;
|
|
1007
1000
|
});
|
|
1008
|
-
},
|
|
1001
|
+
}, Ty = fu, Rs = Y, Ir = L, Oy = zi, Sy = k, Ey = J, $y = B, wy = je, Cy = $r, Ay = ut, We = pe, Py = he, Ry = Yi, Ny = ot, Iy = xy, My = Xi, _y = z, ui = _y("replace"), Vy = Math.max, Dy = Math.min, ky = Ir([].concat), Aa = Ir([].push), Ns = Ir("".indexOf), Is = Ir("".slice), Ly = function(a) {
|
|
1009
1002
|
return a === void 0 ? a : String(a);
|
|
1010
|
-
},
|
|
1003
|
+
}, By = function() {
|
|
1011
1004
|
return "a".replace(/./, "$0") === "$0";
|
|
1012
|
-
}(),
|
|
1013
|
-
return /./[
|
|
1014
|
-
}(),
|
|
1005
|
+
}(), Ms = function() {
|
|
1006
|
+
return /./[ui] ? /./[ui]("a", "$0") === "" : !1;
|
|
1007
|
+
}(), jy = !Sy(function() {
|
|
1015
1008
|
var a = /./;
|
|
1016
1009
|
return a.exec = function() {
|
|
1017
1010
|
var e = [];
|
|
1018
1011
|
return e.groups = { a: "7" }, e;
|
|
1019
1012
|
}, "".replace(a, "$<a>") !== "7";
|
|
1020
1013
|
});
|
|
1021
|
-
|
|
1022
|
-
var r =
|
|
1014
|
+
Oy("replace", function(a, e, t) {
|
|
1015
|
+
var r = Ms ? "$" : "$0";
|
|
1023
1016
|
return [
|
|
1024
1017
|
// `String.prototype.replace` method
|
|
1025
1018
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1026
1019
|
function(n, o) {
|
|
1027
|
-
var s =
|
|
1028
|
-
return u ?
|
|
1020
|
+
var s = Py(this), u = wy(n) ? void 0 : Ny(n, ui);
|
|
1021
|
+
return u ? Rs(u, n, s, o) : Rs(e, We(s), n, o);
|
|
1029
1022
|
},
|
|
1030
1023
|
// `RegExp.prototype[@@replace]` method
|
|
1031
1024
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1032
1025
|
function(i, n) {
|
|
1033
|
-
var o =
|
|
1034
|
-
if (typeof n == "string" &&
|
|
1026
|
+
var o = Ey(this), s = We(i);
|
|
1027
|
+
if (typeof n == "string" && Ns(n, r) === -1 && Ns(n, "$<") === -1) {
|
|
1035
1028
|
var u = t(e, o, s, n);
|
|
1036
1029
|
if (u.done) return u.value;
|
|
1037
1030
|
}
|
|
1038
|
-
var l =
|
|
1031
|
+
var l = $y(n);
|
|
1039
1032
|
l || (n = We(n));
|
|
1040
1033
|
var h = o.global, f;
|
|
1041
1034
|
h && (f = o.unicode, o.lastIndex = 0);
|
|
1042
|
-
for (var c = [], v; v =
|
|
1035
|
+
for (var c = [], v; v = My(o, s), !(v === null || (Aa(c, v), !h)); ) {
|
|
1043
1036
|
var d = We(v[0]);
|
|
1044
|
-
d === "" && (o.lastIndex =
|
|
1037
|
+
d === "" && (o.lastIndex = Ry(s, Ay(o.lastIndex), f));
|
|
1045
1038
|
}
|
|
1046
1039
|
for (var g = "", p = 0, y = 0; y < c.length; y++) {
|
|
1047
1040
|
v = c[y];
|
|
1048
|
-
for (var x = We(v[0]), b =
|
|
1041
|
+
for (var x = We(v[0]), b = Vy(Dy(Cy(v.index), s.length), 0), T = [], $, E = 1; E < v.length; E++) Aa(T, Ly(v[E]));
|
|
1049
1042
|
var O = v.groups;
|
|
1050
1043
|
if (l) {
|
|
1051
|
-
var C =
|
|
1052
|
-
O !== void 0 && Aa(C, O), $ = We(
|
|
1044
|
+
var C = ky([x], T, b, s);
|
|
1045
|
+
O !== void 0 && Aa(C, O), $ = We(Ty(n, void 0, C));
|
|
1053
1046
|
} else
|
|
1054
|
-
$ =
|
|
1055
|
-
b >= p && (g +=
|
|
1047
|
+
$ = Iy(x, s, b, T, O, n);
|
|
1048
|
+
b >= p && (g += Is(s, p, b) + $, p = b + x.length);
|
|
1056
1049
|
}
|
|
1057
|
-
return g +
|
|
1050
|
+
return g + Is(s, p);
|
|
1058
1051
|
}
|
|
1059
1052
|
];
|
|
1060
|
-
}, !
|
|
1061
|
-
var
|
|
1053
|
+
}, !jy || !By || Ms);
|
|
1054
|
+
var Fy = ve, Uy = Be, Gy = z, zy = Gy("match"), Hy = function(a) {
|
|
1062
1055
|
var e;
|
|
1063
|
-
return
|
|
1064
|
-
},
|
|
1065
|
-
if (
|
|
1066
|
-
throw new
|
|
1056
|
+
return Fy(a) && ((e = a[zy]) !== void 0 ? !!e : Uy(a) === "RegExp");
|
|
1057
|
+
}, Yy = Hy, Xy = TypeError, qi = function(a) {
|
|
1058
|
+
if (Yy(a))
|
|
1059
|
+
throw new Xy("The method doesn't accept regular expressions");
|
|
1067
1060
|
return a;
|
|
1068
|
-
},
|
|
1061
|
+
}, Wy = z, qy = Wy("match"), Qi = function(a) {
|
|
1069
1062
|
var e = /./;
|
|
1070
1063
|
try {
|
|
1071
1064
|
"/./"[a](e);
|
|
1072
1065
|
} catch {
|
|
1073
1066
|
try {
|
|
1074
|
-
return e[
|
|
1067
|
+
return e[qy] = !1, "/./"[a](e);
|
|
1075
1068
|
} catch {
|
|
1076
1069
|
}
|
|
1077
1070
|
}
|
|
1078
1071
|
return !1;
|
|
1079
|
-
},
|
|
1080
|
-
var a =
|
|
1072
|
+
}, Qy = ee, Ky = Ar, Zy = $t.f, Jy = ut, _s = pe, em = qi, tm = he, rm = Qi, am = Ky("".slice), im = Math.min, zu = rm("startsWith"), nm = !zu && !!function() {
|
|
1073
|
+
var a = Zy(String.prototype, "startsWith");
|
|
1081
1074
|
return a && !a.writable;
|
|
1082
1075
|
}();
|
|
1083
|
-
|
|
1076
|
+
Qy({ target: "String", proto: !0, forced: !nm && !zu }, {
|
|
1084
1077
|
startsWith: function(e) {
|
|
1085
|
-
var t =
|
|
1086
|
-
|
|
1087
|
-
var r =
|
|
1088
|
-
return
|
|
1078
|
+
var t = _s(tm(this));
|
|
1079
|
+
em(e);
|
|
1080
|
+
var r = Jy(im(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = _s(e);
|
|
1081
|
+
return am(t, r, r + i.length) === i;
|
|
1089
1082
|
}
|
|
1090
1083
|
});
|
|
1091
|
-
var
|
|
1092
|
-
|
|
1084
|
+
var sm = z, om = Ui, um = Oe.f, li = sm("unscopables"), hi = Array.prototype;
|
|
1085
|
+
hi[li] === void 0 && um(hi, li, {
|
|
1093
1086
|
configurable: !0,
|
|
1094
|
-
value:
|
|
1087
|
+
value: om(null)
|
|
1095
1088
|
});
|
|
1096
|
-
var
|
|
1097
|
-
|
|
1098
|
-
},
|
|
1089
|
+
var lm = function(a) {
|
|
1090
|
+
hi[li][a] = !0;
|
|
1091
|
+
}, hm = k, vm = !hm(function() {
|
|
1099
1092
|
function a() {
|
|
1100
1093
|
}
|
|
1101
1094
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
|
1102
|
-
}),
|
|
1103
|
-
var e =
|
|
1104
|
-
if (
|
|
1095
|
+
}), fm = fe, cm = B, gm = Tr, dm = $i, pm = vm, Vs = dm("IE_PROTO"), vi = Object, ym = vi.prototype, Hu = pm ? vi.getPrototypeOf : function(a) {
|
|
1096
|
+
var e = gm(a);
|
|
1097
|
+
if (fm(e, Vs)) return e[Vs];
|
|
1105
1098
|
var t = e.constructor;
|
|
1106
|
-
return
|
|
1107
|
-
},
|
|
1108
|
-
[].keys && (Ra = [].keys(), "next" in Ra ? (Pa =
|
|
1109
|
-
var
|
|
1099
|
+
return cm(t) && e instanceof t ? t.prototype : e instanceof vi ? ym : null;
|
|
1100
|
+
}, mm = k, bm = B, xm = ve, Ds = Hu, Tm = Ue, Om = z, fi = Om("iterator"), Yu = !1, ke, Pa, Ra;
|
|
1101
|
+
[].keys && (Ra = [].keys(), "next" in Ra ? (Pa = Ds(Ds(Ra)), Pa !== Object.prototype && (ke = Pa)) : Yu = !0);
|
|
1102
|
+
var Sm = !xm(ke) || mm(function() {
|
|
1110
1103
|
var a = {};
|
|
1111
|
-
return ke[
|
|
1104
|
+
return ke[fi].call(a) !== a;
|
|
1112
1105
|
});
|
|
1113
|
-
|
|
1114
|
-
|
|
1106
|
+
Sm && (ke = {});
|
|
1107
|
+
bm(ke[fi]) || Tm(ke, fi, function() {
|
|
1115
1108
|
return this;
|
|
1116
1109
|
});
|
|
1117
|
-
var
|
|
1110
|
+
var Xu = {
|
|
1118
1111
|
IteratorPrototype: ke,
|
|
1119
|
-
BUGGY_SAFARI_ITERATORS:
|
|
1120
|
-
},
|
|
1112
|
+
BUGGY_SAFARI_ITERATORS: Yu
|
|
1113
|
+
}, Em = Xu.IteratorPrototype, $m = Ui, wm = bi, Cm = Cr, Am = Nt, Pm = function() {
|
|
1121
1114
|
return this;
|
|
1122
|
-
},
|
|
1115
|
+
}, Rm = function(a, e, t, r) {
|
|
1123
1116
|
var i = e + " Iterator";
|
|
1124
|
-
return a.prototype =
|
|
1125
|
-
},
|
|
1117
|
+
return a.prototype = $m(Em, { next: wm(+!r, t) }), Cm(a, i, !1), Am[i] = Pm, a;
|
|
1118
|
+
}, Nm = ee, Im = Y, Wu = Sr, Mm = B, _m = Rm, ks = Hu, Ls = iu, Vm = Cr, Dm = At, Na = Ue, km = z, Lm = Nt, qu = Xu, Bm = Wu.PROPER, jm = Wu.CONFIGURABLE, Bs = qu.IteratorPrototype, er = qu.BUGGY_SAFARI_ITERATORS, gt = km("iterator"), js = "keys", dt = "values", Fs = "entries", Fm = function() {
|
|
1126
1119
|
return this;
|
|
1127
|
-
},
|
|
1128
|
-
|
|
1120
|
+
}, Um = function(a, e, t, r, i, n, o) {
|
|
1121
|
+
_m(t, e, r);
|
|
1129
1122
|
var s = function(y) {
|
|
1130
1123
|
if (y === i && c) return c;
|
|
1131
1124
|
if (!er && y && y in h) return h[y];
|
|
1132
1125
|
switch (y) {
|
|
1133
|
-
case
|
|
1126
|
+
case js:
|
|
1134
1127
|
return function() {
|
|
1135
1128
|
return new t(this, y);
|
|
1136
1129
|
};
|
|
@@ -1138,7 +1131,7 @@ var Ku = {
|
|
|
1138
1131
|
return function() {
|
|
1139
1132
|
return new t(this, y);
|
|
1140
1133
|
};
|
|
1141
|
-
case
|
|
1134
|
+
case Fs:
|
|
1142
1135
|
return function() {
|
|
1143
1136
|
return new t(this, y);
|
|
1144
1137
|
};
|
|
@@ -1147,23 +1140,23 @@ var Ku = {
|
|
|
1147
1140
|
return new t(this);
|
|
1148
1141
|
};
|
|
1149
1142
|
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[gt] || h["@@iterator"] || i && h[i], c = !er && f || s(i), v = e === "Array" && h.entries || f, d, g, p;
|
|
1150
|
-
if (v && (d =
|
|
1151
|
-
return
|
|
1143
|
+
if (v && (d = ks(v.call(new a())), d !== Object.prototype && d.next && (ks(d) !== Bs && (Ls ? Ls(d, Bs) : Mm(d[gt]) || Na(d, gt, Fm)), Vm(d, u, !0))), Bm && i === dt && f && f.name !== dt && (jm ? Dm(h, "name", dt) : (l = !0, c = function() {
|
|
1144
|
+
return Im(f, this);
|
|
1152
1145
|
})), i)
|
|
1153
1146
|
if (g = {
|
|
1154
1147
|
values: s(dt),
|
|
1155
|
-
keys: n ? c : s(
|
|
1156
|
-
entries: s(
|
|
1148
|
+
keys: n ? c : s(js),
|
|
1149
|
+
entries: s(Fs)
|
|
1157
1150
|
}, o) for (p in g)
|
|
1158
1151
|
(er || l || !(p in h)) && Na(h, p, g[p]);
|
|
1159
|
-
else
|
|
1160
|
-
return h[gt] !== c && Na(h, gt, c, { name: i }),
|
|
1161
|
-
},
|
|
1152
|
+
else Nm({ target: e, proto: !0, forced: er || l }, g);
|
|
1153
|
+
return h[gt] !== c && Na(h, gt, c, { name: i }), Lm[e] = c, g;
|
|
1154
|
+
}, Gm = function(a, e) {
|
|
1162
1155
|
return { value: a, done: e };
|
|
1163
|
-
},
|
|
1164
|
-
|
|
1165
|
-
type:
|
|
1166
|
-
target:
|
|
1156
|
+
}, zm = wt, Ki = lm, Us = Nt, Qu = Er, Hm = Oe.f, Ym = Um, tr = Gm, Xm = le, Ku = "Array Iterator", Wm = Qu.set, qm = Qu.getterFor(Ku), Qm = Ym(Array, "Array", function(a, e) {
|
|
1157
|
+
Wm(this, {
|
|
1158
|
+
type: Ku,
|
|
1159
|
+
target: zm(a),
|
|
1167
1160
|
// target
|
|
1168
1161
|
index: 0,
|
|
1169
1162
|
// next index
|
|
@@ -1171,7 +1164,7 @@ var Ku = {
|
|
|
1171
1164
|
// kind
|
|
1172
1165
|
});
|
|
1173
1166
|
}, function() {
|
|
1174
|
-
var a =
|
|
1167
|
+
var a = qm(this), e = a.target, t = a.index++;
|
|
1175
1168
|
if (!e || t >= e.length)
|
|
1176
1169
|
return a.target = null, tr(void 0, !0);
|
|
1177
1170
|
switch (a.kind) {
|
|
@@ -1181,15 +1174,15 @@ var Ku = {
|
|
|
1181
1174
|
return tr(e[t], !1);
|
|
1182
1175
|
}
|
|
1183
1176
|
return tr([t, e[t]], !1);
|
|
1184
|
-
}, "values"),
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
if (
|
|
1189
|
-
|
|
1177
|
+
}, "values"), Gs = Us.Arguments = Us.Array;
|
|
1178
|
+
Ki("keys");
|
|
1179
|
+
Ki("values");
|
|
1180
|
+
Ki("entries");
|
|
1181
|
+
if (Xm && Gs.name !== "values") try {
|
|
1182
|
+
Hm(Gs, "name", { value: "values" });
|
|
1190
1183
|
} catch {
|
|
1191
1184
|
}
|
|
1192
|
-
var
|
|
1185
|
+
var Km = {
|
|
1193
1186
|
CSSRuleList: 0,
|
|
1194
1187
|
CSSStyleDeclaration: 0,
|
|
1195
1188
|
CSSValueList: 0,
|
|
@@ -1221,52 +1214,52 @@ var e0 = {
|
|
|
1221
1214
|
TextTrackCueList: 0,
|
|
1222
1215
|
TextTrackList: 0,
|
|
1223
1216
|
TouchList: 0
|
|
1224
|
-
},
|
|
1217
|
+
}, Zm = Or, Ia = Zm("span").classList, zs = Ia && Ia.constructor && Ia.constructor.prototype, Jm = zs === Object.prototype ? void 0 : zs, Hs = V, Zu = Km, e0 = Jm, yt = Qm, Ys = At, t0 = Cr, r0 = z, Ma = r0("iterator"), _a = yt.values, Ju = function(a, e) {
|
|
1225
1218
|
if (a) {
|
|
1226
1219
|
if (a[Ma] !== _a) try {
|
|
1227
|
-
|
|
1220
|
+
Ys(a, Ma, _a);
|
|
1228
1221
|
} catch {
|
|
1229
1222
|
a[Ma] = _a;
|
|
1230
1223
|
}
|
|
1231
|
-
if (
|
|
1224
|
+
if (t0(a, e, !0), Zu[e]) {
|
|
1232
1225
|
for (var t in yt)
|
|
1233
1226
|
if (a[t] !== yt[t]) try {
|
|
1234
|
-
|
|
1227
|
+
Ys(a, t, yt[t]);
|
|
1235
1228
|
} catch {
|
|
1236
1229
|
a[t] = yt[t];
|
|
1237
1230
|
}
|
|
1238
1231
|
}
|
|
1239
1232
|
}
|
|
1240
1233
|
};
|
|
1241
|
-
for (var Va in
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
function
|
|
1245
|
-
if (
|
|
1234
|
+
for (var Va in Zu)
|
|
1235
|
+
Ju(Hs[Va] && Hs[Va].prototype, Va);
|
|
1236
|
+
Ju(e0, "DOMTokenList");
|
|
1237
|
+
function a0(a, e) {
|
|
1238
|
+
if (Ga(a) != "object" || !a) return a;
|
|
1246
1239
|
var t = a[Symbol.toPrimitive];
|
|
1247
1240
|
if (t !== void 0) {
|
|
1248
|
-
var r = t.call(a, e
|
|
1249
|
-
if (
|
|
1241
|
+
var r = t.call(a, e);
|
|
1242
|
+
if (Ga(r) != "object") return r;
|
|
1250
1243
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1251
1244
|
}
|
|
1252
1245
|
return (e === "string" ? String : Number)(a);
|
|
1253
1246
|
}
|
|
1254
|
-
function
|
|
1255
|
-
var e =
|
|
1256
|
-
return
|
|
1247
|
+
function i0(a) {
|
|
1248
|
+
var e = a0(a, "string");
|
|
1249
|
+
return Ga(e) == "symbol" ? e : e + "";
|
|
1257
1250
|
}
|
|
1258
|
-
function
|
|
1259
|
-
return (e =
|
|
1251
|
+
function Zi(a, e, t) {
|
|
1252
|
+
return (e = i0(e)) in a ? Object.defineProperty(a, e, {
|
|
1260
1253
|
value: t,
|
|
1261
1254
|
enumerable: !0,
|
|
1262
1255
|
configurable: !0,
|
|
1263
1256
|
writable: !0
|
|
1264
1257
|
}) : a[e] = t, a;
|
|
1265
1258
|
}
|
|
1266
|
-
var
|
|
1259
|
+
var n0 = Te, s0 = Tr, o0 = Do, u0 = Ai, Xs = TypeError, Ws = "Reduce of empty array with no initial value", l0 = function(a) {
|
|
1267
1260
|
return function(e, t, r, i) {
|
|
1268
|
-
var n =
|
|
1269
|
-
if (
|
|
1261
|
+
var n = s0(e), o = o0(n), s = u0(n);
|
|
1262
|
+
if (n0(t), s === 0 && r < 2) throw new Xs(Ws);
|
|
1270
1263
|
var u = a ? s - 1 : 0, l = a ? -1 : 1;
|
|
1271
1264
|
if (r < 2) for (; ; ) {
|
|
1272
1265
|
if (u in o) {
|
|
@@ -1274,55 +1267,52 @@ var u0 = Te, l0 = Tr, h0 = Fo, v0 = Ni, Ks = TypeError, Zs = "Reduce of empty ar
|
|
|
1274
1267
|
break;
|
|
1275
1268
|
}
|
|
1276
1269
|
if (u += l, a ? u < 0 : s <= u)
|
|
1277
|
-
throw new
|
|
1270
|
+
throw new Xs(Ws);
|
|
1278
1271
|
}
|
|
1279
1272
|
for (; a ? u >= 0 : s > u; u += l) u in o && (i = t(i, o[u], u, n));
|
|
1280
1273
|
return i;
|
|
1281
1274
|
};
|
|
1282
|
-
},
|
|
1275
|
+
}, h0 = {
|
|
1283
1276
|
// `Array.prototype.reduce` method
|
|
1284
1277
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1285
|
-
left:
|
|
1286
|
-
|
|
1287
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1288
|
-
right: Js(!0)
|
|
1289
|
-
}, c0 = k, il = function(a, e) {
|
|
1278
|
+
left: l0(!1)
|
|
1279
|
+
}, v0 = k, el = function(a, e) {
|
|
1290
1280
|
var t = [][a];
|
|
1291
|
-
return !!t &&
|
|
1281
|
+
return !!t && v0(function() {
|
|
1292
1282
|
t.call(null, e || function() {
|
|
1293
1283
|
return 1;
|
|
1294
1284
|
}, 1);
|
|
1295
1285
|
});
|
|
1296
|
-
},
|
|
1297
|
-
|
|
1286
|
+
}, f0 = ee, c0 = h0.left, g0 = el, qs = xi, d0 = wr, p0 = !d0 && qs > 79 && qs < 83, y0 = p0 || !g0("reduce");
|
|
1287
|
+
f0({ target: "Array", proto: !0, forced: y0 }, {
|
|
1298
1288
|
reduce: function(e) {
|
|
1299
1289
|
var t = arguments.length;
|
|
1300
|
-
return
|
|
1290
|
+
return c0(this, e, t, t > 1 ? arguments[1] : void 0);
|
|
1301
1291
|
}
|
|
1302
1292
|
});
|
|
1303
|
-
var
|
|
1304
|
-
var a =
|
|
1293
|
+
var m0 = ee, b0 = Ar, x0 = $t.f, T0 = ut, Qs = pe, O0 = qi, S0 = he, E0 = Qi, $0 = b0("".slice), w0 = Math.min, tl = E0("endsWith"), C0 = !tl && !!function() {
|
|
1294
|
+
var a = x0(String.prototype, "endsWith");
|
|
1305
1295
|
return a && !a.writable;
|
|
1306
1296
|
}();
|
|
1307
|
-
|
|
1297
|
+
m0({ target: "String", proto: !0, forced: !C0 && !tl }, {
|
|
1308
1298
|
endsWith: function(e) {
|
|
1309
|
-
var t =
|
|
1310
|
-
|
|
1311
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i :
|
|
1312
|
-
return
|
|
1299
|
+
var t = Qs(S0(this));
|
|
1300
|
+
O0(e);
|
|
1301
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : w0(T0(r), i), o = Qs(e);
|
|
1302
|
+
return $0(t, n - o.length, n) === o;
|
|
1313
1303
|
}
|
|
1314
1304
|
});
|
|
1315
|
-
var Da = Y,
|
|
1305
|
+
var Da = Y, rl = L, A0 = zi, P0 = J, R0 = je, N0 = he, I0 = hu, M0 = Yi, _0 = ut, Ks = pe, V0 = ot, Zs = Xi, D0 = Lu, k0 = k, qe = D0.UNSUPPORTED_Y, L0 = 4294967295, B0 = Math.min, ka = rl([].push), La = rl("".slice), j0 = !k0(function() {
|
|
1316
1306
|
var a = /(?:)/, e = a.exec;
|
|
1317
1307
|
a.exec = function() {
|
|
1318
1308
|
return e.apply(this, arguments);
|
|
1319
1309
|
};
|
|
1320
1310
|
var t = "ab".split(a);
|
|
1321
1311
|
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
|
|
1322
|
-
}),
|
|
1312
|
+
}), Js = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
1323
1313
|
"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
|
|
1324
1314
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
|
1325
|
-
|
|
1315
|
+
A0("split", function(a, e, t) {
|
|
1326
1316
|
var r = "0".split(void 0, 0).length ? function(i, n) {
|
|
1327
1317
|
return i === void 0 && n === 0 ? [] : Da(e, this, i, n);
|
|
1328
1318
|
} : e;
|
|
@@ -1330,8 +1320,8 @@ R0("split", function(a, e, t) {
|
|
|
1330
1320
|
// `String.prototype.split` method
|
|
1331
1321
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1332
1322
|
function(n, o) {
|
|
1333
|
-
var s =
|
|
1334
|
-
return u ? Da(u, n, s, o) : Da(r,
|
|
1323
|
+
var s = N0(this), u = R0(n) ? void 0 : V0(n, a);
|
|
1324
|
+
return u ? Da(u, n, s, o) : Da(r, Ks(s), n, o);
|
|
1335
1325
|
},
|
|
1336
1326
|
// `RegExp.prototype[@@split]` method
|
|
1337
1327
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1339,19 +1329,19 @@ R0("split", function(a, e, t) {
|
|
|
1339
1329
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
1340
1330
|
// the 'y' flag.
|
|
1341
1331
|
function(i, n) {
|
|
1342
|
-
var o =
|
|
1343
|
-
if (!
|
|
1332
|
+
var o = P0(this), s = Ks(i);
|
|
1333
|
+
if (!Js) {
|
|
1344
1334
|
var u = t(r, o, s, n, r !== e);
|
|
1345
1335
|
if (u.done) return u.value;
|
|
1346
1336
|
}
|
|
1347
|
-
var l =
|
|
1337
|
+
var l = I0(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 ? L0 : n >>> 0;
|
|
1348
1338
|
if (v === 0) return [];
|
|
1349
|
-
if (s.length === 0) return
|
|
1339
|
+
if (s.length === 0) return Zs(c, s) === null ? [s] : [];
|
|
1350
1340
|
for (var d = 0, g = 0, p = []; g < s.length; ) {
|
|
1351
1341
|
c.lastIndex = qe ? 0 : g;
|
|
1352
|
-
var y =
|
|
1353
|
-
if (y === null || (x =
|
|
1354
|
-
g =
|
|
1342
|
+
var y = Zs(c, qe ? La(s, g) : s), x;
|
|
1343
|
+
if (y === null || (x = B0(_0(c.lastIndex + (qe ? g : 0)), s.length)) === d)
|
|
1344
|
+
g = M0(s, g, h);
|
|
1355
1345
|
else {
|
|
1356
1346
|
if (ka(p, La(s, d, g)), p.length === v) return p;
|
|
1357
1347
|
for (var b = 1; b <= y.length - 1; b++)
|
|
@@ -1362,7 +1352,7 @@ R0("split", function(a, e, t) {
|
|
|
1362
1352
|
return ka(p, La(s, d)), p;
|
|
1363
1353
|
}
|
|
1364
1354
|
];
|
|
1365
|
-
},
|
|
1355
|
+
}, Js || !j0, qe);
|
|
1366
1356
|
var Mr = { exports: {} }, mt = { exports: {} };
|
|
1367
1357
|
(function() {
|
|
1368
1358
|
var a, e, t, r, i, n;
|
|
@@ -1379,14 +1369,14 @@ var Mr = { exports: {} }, mt = { exports: {} };
|
|
|
1379
1369
|
return (/* @__PURE__ */ new Date()).getTime() - t;
|
|
1380
1370
|
}, t = (/* @__PURE__ */ new Date()).getTime());
|
|
1381
1371
|
}).call(Ke);
|
|
1382
|
-
var
|
|
1372
|
+
var F0 = mt.exports, U0 = F0, be = typeof window > "u" ? Ke : window, rr = ["moz", "webkit"], rt = "AnimationFrame", st = be["request" + rt], Et = be["cancel" + rt] || be["cancelRequest" + rt];
|
|
1383
1373
|
for (var pt = 0; !st && pt < rr.length; pt++)
|
|
1384
1374
|
st = be[rr[pt] + "Request" + rt], Et = be[rr[pt] + "Cancel" + rt] || be[rr[pt] + "CancelRequest" + rt];
|
|
1385
1375
|
if (!st || !Et) {
|
|
1386
|
-
var Ba = 0,
|
|
1376
|
+
var Ba = 0, eo = 0, Me = [], G0 = 1e3 / 60;
|
|
1387
1377
|
st = function(a) {
|
|
1388
1378
|
if (Me.length === 0) {
|
|
1389
|
-
var e =
|
|
1379
|
+
var e = U0(), t = Math.max(0, G0 - (e - Ba));
|
|
1390
1380
|
Ba = t + e, setTimeout(function() {
|
|
1391
1381
|
var r = Me.slice(0);
|
|
1392
1382
|
Me.length = 0;
|
|
@@ -1402,10 +1392,10 @@ if (!st || !Et) {
|
|
|
1402
1392
|
}, Math.round(t));
|
|
1403
1393
|
}
|
|
1404
1394
|
return Me.push({
|
|
1405
|
-
handle: ++
|
|
1395
|
+
handle: ++eo,
|
|
1406
1396
|
callback: a,
|
|
1407
1397
|
cancelled: !1
|
|
1408
|
-
}),
|
|
1398
|
+
}), eo;
|
|
1409
1399
|
}, Et = function(a) {
|
|
1410
1400
|
for (var e = 0; e < Me.length; e++)
|
|
1411
1401
|
Me[e].handle === a && (Me[e].cancelled = !0);
|
|
@@ -1420,35 +1410,29 @@ Mr.exports.cancel = function() {
|
|
|
1420
1410
|
Mr.exports.polyfill = function(a) {
|
|
1421
1411
|
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame = Et;
|
|
1422
1412
|
};
|
|
1423
|
-
var
|
|
1424
|
-
const ja = /* @__PURE__ */
|
|
1425
|
-
var
|
|
1426
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
1413
|
+
var z0 = Mr.exports;
|
|
1414
|
+
const ja = /* @__PURE__ */ Po(z0);
|
|
1415
|
+
var al = `
|
|
1416
|
+
\v\f\r \u2028\u2029\uFEFF`, H0 = L, Y0 = he, X0 = pe, ci = al, to = H0("".replace), W0 = RegExp("^[" + ci + "]+"), q0 = RegExp("(^|[^" + ci + "])[" + ci + "]+$"), Q0 = function(a) {
|
|
1427
1417
|
return function(e) {
|
|
1428
|
-
var t =
|
|
1429
|
-
return a & 1 && (t =
|
|
1418
|
+
var t = X0(Y0(e));
|
|
1419
|
+
return a & 1 && (t = to(t, W0, "")), a & 2 && (t = to(t, q0, "$1")), t;
|
|
1430
1420
|
};
|
|
1431
|
-
},
|
|
1432
|
-
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1433
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1434
|
-
start: Fa(1),
|
|
1435
|
-
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1436
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1437
|
-
end: Fa(2),
|
|
1421
|
+
}, K0 = {
|
|
1438
1422
|
// `String.prototype.trim` method
|
|
1439
1423
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1440
|
-
trim:
|
|
1441
|
-
},
|
|
1442
|
-
return
|
|
1443
|
-
return !!
|
|
1424
|
+
trim: Q0(3)
|
|
1425
|
+
}, Z0 = Sr.PROPER, J0 = k, ro = al, ao = "
", eb = function(a) {
|
|
1426
|
+
return J0(function() {
|
|
1427
|
+
return !!ro[a]() || ao[a]() !== ao || Z0 && ro[a].name !== a;
|
|
1444
1428
|
});
|
|
1445
|
-
},
|
|
1446
|
-
|
|
1429
|
+
}, tb = ee, rb = K0.trim, ab = eb;
|
|
1430
|
+
tb({ target: "String", proto: !0, forced: ab("trim") }, {
|
|
1447
1431
|
trim: function() {
|
|
1448
|
-
return
|
|
1432
|
+
return rb(this);
|
|
1449
1433
|
}
|
|
1450
1434
|
});
|
|
1451
|
-
var
|
|
1435
|
+
var ib = function(a) {
|
|
1452
1436
|
this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
|
|
1453
1437
|
var e = {
|
|
1454
1438
|
aliceblue: "f0f8ff",
|
|
@@ -1678,30 +1662,30 @@ var nb = function(a) {
|
|
|
1678
1662
|
return v;
|
|
1679
1663
|
};
|
|
1680
1664
|
};
|
|
1681
|
-
const
|
|
1682
|
-
var
|
|
1683
|
-
|
|
1665
|
+
const gi = /* @__PURE__ */ Po(ib);
|
|
1666
|
+
var nb = ee, sb = Ar, ob = Jo.indexOf, ub = el, di = sb([].indexOf), il = !!di && 1 / di([1], 1, -0) < 0, lb = il || !ub("indexOf");
|
|
1667
|
+
nb({ target: "Array", proto: !0, forced: lb }, {
|
|
1684
1668
|
indexOf: function(e) {
|
|
1685
1669
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1686
|
-
return
|
|
1670
|
+
return il ? di(this, e, t) || 0 : ob(this, e, t);
|
|
1687
1671
|
}
|
|
1688
1672
|
});
|
|
1689
|
-
var
|
|
1690
|
-
|
|
1673
|
+
var hb = ee, vb = L, fb = qi, cb = he, io = pe, gb = Qi, db = vb("".indexOf);
|
|
1674
|
+
hb({ target: "String", proto: !0, forced: !gb("includes") }, {
|
|
1691
1675
|
includes: function(e) {
|
|
1692
|
-
return !!~
|
|
1693
|
-
|
|
1694
|
-
|
|
1676
|
+
return !!~db(
|
|
1677
|
+
io(cb(this)),
|
|
1678
|
+
io(fb(e)),
|
|
1695
1679
|
arguments.length > 1 ? arguments[1] : void 0
|
|
1696
1680
|
);
|
|
1697
1681
|
}
|
|
1698
1682
|
});
|
|
1699
|
-
var
|
|
1700
|
-
return
|
|
1701
|
-
},
|
|
1702
|
-
|
|
1683
|
+
var pb = Be, yb = Array.isArray || function(e) {
|
|
1684
|
+
return pb(e) === "Array";
|
|
1685
|
+
}, mb = ee, bb = L, xb = yb, Tb = bb([].reverse), no = [1, 2];
|
|
1686
|
+
mb({ target: "Array", proto: !0, forced: String(no) === String(no.reverse()) }, {
|
|
1703
1687
|
reverse: function() {
|
|
1704
|
-
return
|
|
1688
|
+
return xb(this) && (this.length = this.length), Tb(this);
|
|
1705
1689
|
}
|
|
1706
1690
|
});
|
|
1707
1691
|
/*! *****************************************************************************
|
|
@@ -1718,21 +1702,21 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1718
1702
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1719
1703
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1720
1704
|
***************************************************************************** */
|
|
1721
|
-
var
|
|
1722
|
-
return (
|
|
1705
|
+
var nl = function(a, e) {
|
|
1706
|
+
return (nl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
1723
1707
|
t.__proto__ = r;
|
|
1724
1708
|
} || function(t, r) {
|
|
1725
1709
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1726
1710
|
})(a, e);
|
|
1727
1711
|
};
|
|
1728
|
-
function
|
|
1712
|
+
function sl(a, e) {
|
|
1729
1713
|
if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1730
1714
|
function t() {
|
|
1731
1715
|
this.constructor = a;
|
|
1732
1716
|
}
|
|
1733
|
-
|
|
1717
|
+
nl(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
1734
1718
|
}
|
|
1735
|
-
function
|
|
1719
|
+
function Ob(a) {
|
|
1736
1720
|
var e = "";
|
|
1737
1721
|
Array.isArray(a) || (a = [a]);
|
|
1738
1722
|
for (var t = 0; t < a.length; t++) {
|
|
@@ -1753,7 +1737,7 @@ function Sb(a) {
|
|
|
1753
1737
|
}
|
|
1754
1738
|
return e;
|
|
1755
1739
|
}
|
|
1756
|
-
function
|
|
1740
|
+
function pi(a, e) {
|
|
1757
1741
|
var t = a[0], r = a[1];
|
|
1758
1742
|
return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
|
|
1759
1743
|
}
|
|
@@ -1763,16 +1747,16 @@ function oe() {
|
|
|
1763
1747
|
return !0;
|
|
1764
1748
|
}
|
|
1765
1749
|
var Ee = Math.PI;
|
|
1766
|
-
function
|
|
1750
|
+
function Fa(a, e, t) {
|
|
1767
1751
|
a.lArcFlag = a.lArcFlag === 0 ? 0 : 1, a.sweepFlag = a.sweepFlag === 0 ? 0 : 1;
|
|
1768
1752
|
var r = a.rX, i = a.rY, n = a.x, o = a.y;
|
|
1769
1753
|
r = Math.abs(a.rX), i = Math.abs(a.rY);
|
|
1770
|
-
var s =
|
|
1754
|
+
var s = pi([(e - n) / 2, (t - o) / 2], -a.xRot / 180 * Ee), u = s[0], l = s[1], h = Math.pow(u, 2) / Math.pow(r, 2) + Math.pow(l, 2) / Math.pow(i, 2);
|
|
1771
1755
|
1 < h && (r *= Math.sqrt(h), i *= Math.sqrt(h)), a.rX = r, a.rY = i;
|
|
1772
|
-
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g =
|
|
1756
|
+
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g = pi([v, d], a.xRot / 180 * Ee);
|
|
1773
1757
|
a.cX = g[0] + (e + n) / 2, a.cY = g[1] + (t + o) / 2, a.phi1 = Math.atan2((l - d) / i, (u - v) / r), a.phi2 = Math.atan2((-l - d) / i, (-u - v) / r), a.sweepFlag === 0 && a.phi2 > a.phi1 && (a.phi2 -= 2 * Ee), a.sweepFlag === 1 && a.phi2 < a.phi1 && (a.phi2 += 2 * Ee), a.phi1 *= 180 / Ee, a.phi2 *= 180 / Ee;
|
|
1774
1758
|
}
|
|
1775
|
-
function
|
|
1759
|
+
function so(a, e, t) {
|
|
1776
1760
|
oe(a, e, t);
|
|
1777
1761
|
var r = a * a + e * e - t * t;
|
|
1778
1762
|
if (0 > r) return [];
|
|
@@ -1781,23 +1765,23 @@ function vo(a, e, t) {
|
|
|
1781
1765
|
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)]];
|
|
1782
1766
|
}
|
|
1783
1767
|
var U, ye = Math.PI / 180;
|
|
1784
|
-
function
|
|
1768
|
+
function oo(a, e, t) {
|
|
1785
1769
|
return (1 - t) * a + t * e;
|
|
1786
1770
|
}
|
|
1787
|
-
function
|
|
1771
|
+
function uo(a, e, t, r) {
|
|
1788
1772
|
return a + Math.cos(r / 180 * Ee) * e + Math.sin(r / 180 * Ee) * t;
|
|
1789
1773
|
}
|
|
1790
|
-
function
|
|
1774
|
+
function lo(a, e, t, r) {
|
|
1791
1775
|
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;
|
|
1792
1776
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
|
1793
1777
|
var v = h * h / 4 - f;
|
|
1794
|
-
if (v < -
|
|
1778
|
+
if (v < -1e-6) return [];
|
|
1795
1779
|
if (v <= c) return [-h / 2];
|
|
1796
1780
|
var d = Math.sqrt(v);
|
|
1797
1781
|
return [-h / 2 - d, -h / 2 + d];
|
|
1798
1782
|
}(u / s, l / s, i);
|
|
1799
1783
|
}
|
|
1800
|
-
function
|
|
1784
|
+
function ho(a, e, t, r, i) {
|
|
1801
1785
|
var n = 1 - i;
|
|
1802
1786
|
return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
|
|
1803
1787
|
}
|
|
@@ -1904,12 +1888,12 @@ function po(a, e, t, r, i) {
|
|
|
1904
1888
|
return i(function(s, u, l) {
|
|
1905
1889
|
return m.ARC === s.type ? function(h, f, c) {
|
|
1906
1890
|
var v, d, g, p;
|
|
1907
|
-
h.cX ||
|
|
1891
|
+
h.cX || Fa(h, f, c);
|
|
1908
1892
|
for (var y = Math.min(h.phi1, h.phi2), x = Math.max(h.phi1, h.phi2) - y, b = Math.ceil(x / 90), T = new Array(b), $ = f, E = c, O = 0; O < b; O++) {
|
|
1909
|
-
var C =
|
|
1893
|
+
var C = oo(h.phi1, h.phi2, O / b), I = oo(h.phi1, h.phi2, (O + 1) / b), _ = I - C, j = 4 / 3 * Math.tan(_ * ye / 4), P = [Math.cos(C * ye) - j * Math.sin(C * ye), Math.sin(C * ye) + j * Math.cos(C * ye)], X = P[0], W = P[1], G = [Math.cos(I * ye), Math.sin(I * ye)], q = G[0], H = G[1], Q = [q + j * Math.sin(I * ye), H - j * Math.cos(I * ye)], R = Q[0], M = Q[1];
|
|
1910
1894
|
T[O] = { relative: h.relative, type: m.CURVE_TO };
|
|
1911
1895
|
var K = function(ne, ge) {
|
|
1912
|
-
var Se =
|
|
1896
|
+
var Se = pi([ne * h.rX, ge * h.rY], h.xRot), ze = Se[0], Mt = Se[1];
|
|
1913
1897
|
return [h.cX + ze, h.cY + Mt];
|
|
1914
1898
|
};
|
|
1915
1899
|
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1], d = K(R, M), T[O].x2 = d[0], T[O].y2 = d[1], g = K(q, H), T[O].x = g[0], T[O].y = g[1], h.relative && (T[O].x1 -= $, T[O].y1 -= E, T[O].x2 -= $, T[O].y2 -= E, T[O].x -= $, T[O].y -= E), $ = (p = [T[O].x, T[O].y])[0], E = p[1];
|
|
@@ -1919,7 +1903,7 @@ function po(a, e, t, r, i) {
|
|
|
1919
1903
|
});
|
|
1920
1904
|
}, a.ANNOTATE_ARCS = function() {
|
|
1921
1905
|
return i(function(s, u, l) {
|
|
1922
|
-
return s.relative && (u = 0, l = 0), m.ARC === s.type &&
|
|
1906
|
+
return s.relative && (u = 0, l = 0), m.ARC === s.type && Fa(s, u, l), s;
|
|
1923
1907
|
});
|
|
1924
1908
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
|
1925
1909
|
var s = function(c) {
|
|
@@ -1936,21 +1920,21 @@ function po(a, e, t, r, i) {
|
|
|
1936
1920
|
}
|
|
1937
1921
|
if (g.type & m.DRAWING_COMMANDS && (p(v), y(d)), g.type & m.HORIZ_LINE_TO && p(g.x), g.type & m.VERT_LINE_TO && y(g.y), g.type & m.LINE_TO && (p(g.x), y(g.y)), g.type & m.CURVE_TO) {
|
|
1938
1922
|
p(g.x), y(g.y);
|
|
1939
|
-
for (var x = 0, b =
|
|
1940
|
-
0 < (R = b[x]) && 1 > R && p(
|
|
1941
|
-
for (var T = 0, $ =
|
|
1942
|
-
0 < (R = $[T]) && 1 > R && y(
|
|
1923
|
+
for (var x = 0, b = lo(v, g.x1, g.x2, g.x); x < b.length; x++)
|
|
1924
|
+
0 < (R = b[x]) && 1 > R && p(ho(v, g.x1, g.x2, g.x, R));
|
|
1925
|
+
for (var T = 0, $ = lo(d, g.y1, g.y2, g.y); T < $.length; T++)
|
|
1926
|
+
0 < (R = $[T]) && 1 > R && y(ho(d, g.y1, g.y2, g.y, R));
|
|
1943
1927
|
}
|
|
1944
1928
|
if (g.type & m.ARC) {
|
|
1945
|
-
p(g.x), y(g.y),
|
|
1929
|
+
p(g.x), y(g.y), Fa(g, v, d);
|
|
1946
1930
|
for (var E = g.xRot / 180 * Math.PI, O = Math.cos(E) * g.rX, C = Math.sin(E) * g.rX, I = -Math.sin(E) * g.rY, _ = Math.cos(E) * g.rY, j = g.phi1 < g.phi2 ? [g.phi1, g.phi2] : -180 > g.phi2 ? [g.phi2 + 360, g.phi1 + 360] : [g.phi2, g.phi1], P = j[0], X = j[1], W = function(M) {
|
|
1947
1931
|
var K = M[0], ne = M[1], ge = 180 * Math.atan2(ne, K) / Math.PI;
|
|
1948
1932
|
return ge < P ? ge + 360 : ge;
|
|
1949
|
-
}, G = 0, q =
|
|
1950
|
-
(R = q[G]) > P && R < X && p(
|
|
1951
|
-
for (var H = 0, Q =
|
|
1933
|
+
}, G = 0, q = so(I, -O, 0).map(W); G < q.length; G++)
|
|
1934
|
+
(R = q[G]) > P && R < X && p(uo(g.cX, O, I, R));
|
|
1935
|
+
for (var H = 0, Q = so(_, -C, 0).map(W); H < Q.length; H++) {
|
|
1952
1936
|
var R;
|
|
1953
|
-
(R = Q[H]) > P && R < X && y(
|
|
1937
|
+
(R = Q[H]) > P && R < X && y(uo(g.cY, C, _, R));
|
|
1954
1938
|
}
|
|
1955
1939
|
}
|
|
1956
1940
|
return c;
|
|
@@ -1958,7 +1942,7 @@ function po(a, e, t, r, i) {
|
|
|
1958
1942
|
return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
|
|
1959
1943
|
};
|
|
1960
1944
|
})(U || (U = {}));
|
|
1961
|
-
var se,
|
|
1945
|
+
var se, ol = function() {
|
|
1962
1946
|
function a() {
|
|
1963
1947
|
}
|
|
1964
1948
|
return a.prototype.round = function(e) {
|
|
@@ -1996,17 +1980,17 @@ var se, vl = function() {
|
|
|
1996
1980
|
}, a.prototype.annotateArcs = function() {
|
|
1997
1981
|
return this.transform(U.ANNOTATE_ARCS());
|
|
1998
1982
|
}, a;
|
|
1999
|
-
}(),
|
|
1983
|
+
}(), Sb = function(a) {
|
|
2000
1984
|
return a === " " || a === " " || a === "\r" || a === `
|
|
2001
1985
|
`;
|
|
2002
|
-
},
|
|
1986
|
+
}, vo = function(a) {
|
|
2003
1987
|
return 48 <= a.charCodeAt(0) && a.charCodeAt(0) <= 57;
|
|
2004
|
-
},
|
|
1988
|
+
}, Eb = function(a) {
|
|
2005
1989
|
function e() {
|
|
2006
1990
|
var t = a.call(this) || this;
|
|
2007
1991
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
|
2008
1992
|
}
|
|
2009
|
-
return
|
|
1993
|
+
return sl(e, a), e.prototype.finish = function(t) {
|
|
2010
1994
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma) throw new SyntaxError("Unterminated command at the path end.");
|
|
2011
1995
|
return t;
|
|
2012
1996
|
}, e.prototype.parse = function(t, r) {
|
|
@@ -2015,8 +1999,8 @@ var se, vl = function() {
|
|
|
2015
1999
|
for (var n = function(f) {
|
|
2016
2000
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
|
2017
2001
|
}, o = 0; o < t.length; o++) {
|
|
2018
|
-
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 =
|
|
2019
|
-
if (!
|
|
2002
|
+
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 = vo(s) && (this.curNumber === "0" && s === "0" || u);
|
|
2003
|
+
if (!vo(s) || l) if (s !== "e" && s !== "E") if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits) if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
|
2020
2004
|
if (this.curNumber && this.curCommandType !== -1) {
|
|
2021
2005
|
var h = Number(this.curNumber);
|
|
2022
2006
|
if (isNaN(h)) throw new SyntaxError("Invalid number ending at " + o);
|
|
@@ -2025,9 +2009,9 @@ var se, vl = function() {
|
|
|
2025
2009
|
if (0 > h) throw new SyntaxError('Expected positive number, got "' + h + '" at index "' + o + '"');
|
|
2026
2010
|
} 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 + '"');
|
|
2027
2011
|
}
|
|
2028
|
-
this.curArgs.push(h), this.curArgs.length ===
|
|
2012
|
+
this.curArgs.push(h), this.curArgs.length === $b[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;
|
|
2029
2013
|
}
|
|
2030
|
-
if (!
|
|
2014
|
+
if (!Sb(s)) if (s === "," && this.canParseCommandOrComma) this.canParseCommandOrComma = !1;
|
|
2031
2015
|
else if (s !== "+" && s !== "-" && s !== ".") if (l) this.curNumber = s, this.curNumberHasDecimal = !1;
|
|
2032
2016
|
else {
|
|
2033
2017
|
if (this.curArgs.length !== 0) throw new SyntaxError("Unterminated command at index " + o + ".");
|
|
@@ -2063,12 +2047,12 @@ var se, vl = function() {
|
|
|
2063
2047
|
return i;
|
|
2064
2048
|
} } });
|
|
2065
2049
|
}, e;
|
|
2066
|
-
}(
|
|
2050
|
+
}(ol), m = function(a) {
|
|
2067
2051
|
function e(t) {
|
|
2068
2052
|
var r = a.call(this) || this;
|
|
2069
2053
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
|
2070
2054
|
}
|
|
2071
|
-
return
|
|
2055
|
+
return sl(e, a), e.prototype.encode = function() {
|
|
2072
2056
|
return e.encode(this.commands);
|
|
2073
2057
|
}, e.prototype.getBounds = function() {
|
|
2074
2058
|
var t = U.CALCULATE_BOUNDS();
|
|
@@ -2080,19 +2064,19 @@ var se, vl = function() {
|
|
|
2080
2064
|
}
|
|
2081
2065
|
return this.commands = r, this;
|
|
2082
2066
|
}, e.encode = function(t) {
|
|
2083
|
-
return
|
|
2067
|
+
return Ob(t);
|
|
2084
2068
|
}, e.parse = function(t) {
|
|
2085
|
-
var r = new
|
|
2069
|
+
var r = new Eb(), i = [];
|
|
2086
2070
|
return r.parse(t, i), r.finish(i), i;
|
|
2087
2071
|
}, e.CLOSE_PATH = 1, e.MOVE_TO = 2, e.HORIZ_LINE_TO = 4, e.VERT_LINE_TO = 8, e.LINE_TO = 16, e.CURVE_TO = 32, e.SMOOTH_CURVE_TO = 64, e.QUAD_TO = 128, e.SMOOTH_QUAD_TO = 256, e.ARC = 512, e.LINE_COMMANDS = e.LINE_TO | e.HORIZ_LINE_TO | e.VERT_LINE_TO, e.DRAWING_COMMANDS = e.HORIZ_LINE_TO | e.VERT_LINE_TO | e.LINE_TO | e.CURVE_TO | e.SMOOTH_CURVE_TO | e.QUAD_TO | e.SMOOTH_QUAD_TO | e.ARC, e;
|
|
2088
|
-
}(
|
|
2072
|
+
}(ol), $b = ((se = {})[m.MOVE_TO] = 2, se[m.LINE_TO] = 2, se[m.HORIZ_LINE_TO] = 1, se[m.VERT_LINE_TO] = 1, se[m.CLOSE_PATH] = 0, se[m.QUAD_TO] = 4, se[m.SMOOTH_QUAD_TO] = 2, se[m.CURVE_TO] = 6, se[m.SMOOTH_CURVE_TO] = 4, se[m.ARC] = 7, se), wb = Y, Cb = fe, Ab = br, Pb = ku, fo = RegExp.prototype, Rb = function(a) {
|
|
2089
2073
|
var e = a.flags;
|
|
2090
|
-
return e === void 0 && !("flags" in
|
|
2091
|
-
},
|
|
2092
|
-
return
|
|
2093
|
-
}),
|
|
2094
|
-
(
|
|
2095
|
-
var e =
|
|
2074
|
+
return e === void 0 && !("flags" in fo) && !Cb(a, "flags") && Ab(fo, a) ? wb(Pb, a) : e;
|
|
2075
|
+
}, Nb = Sr.PROPER, Ib = Ue, Mb = J, co = pe, _b = k, Vb = Rb, Ji = "toString", ul = RegExp.prototype, ll = ul[Ji], Db = _b(function() {
|
|
2076
|
+
return ll.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
2077
|
+
}), kb = Nb && ll.name !== Ji;
|
|
2078
|
+
(Db || kb) && Ib(ul, Ji, function() {
|
|
2079
|
+
var e = Mb(this), t = co(e.source), r = co(Vb(e));
|
|
2096
2080
|
return "/" + t + "/" + r;
|
|
2097
2081
|
}, { unsafe: !0 });
|
|
2098
2082
|
function vr(a) {
|
|
@@ -2103,12 +2087,12 @@ function vr(a) {
|
|
|
2103
2087
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2104
2088
|
}, vr(a);
|
|
2105
2089
|
}
|
|
2106
|
-
function
|
|
2090
|
+
function Lb(a, e) {
|
|
2107
2091
|
if (!(a instanceof e))
|
|
2108
2092
|
throw new TypeError("Cannot call a class as a function");
|
|
2109
2093
|
}
|
|
2110
|
-
var
|
|
2111
|
-
function
|
|
2094
|
+
var Bb = [512, 512, 456, 512, 328, 456, 335, 512, 405, 328, 271, 456, 388, 335, 292, 512, 454, 405, 364, 328, 298, 271, 496, 456, 420, 388, 360, 335, 312, 292, 273, 512, 482, 454, 428, 405, 383, 364, 345, 328, 312, 298, 284, 271, 259, 496, 475, 456, 437, 420, 404, 388, 374, 360, 347, 335, 323, 312, 302, 292, 282, 273, 265, 512, 497, 482, 468, 454, 441, 428, 417, 405, 394, 383, 373, 364, 354, 345, 337, 328, 320, 312, 305, 298, 291, 284, 278, 271, 265, 259, 507, 496, 485, 475, 465, 456, 446, 437, 428, 420, 412, 404, 396, 388, 381, 374, 367, 360, 354, 347, 341, 335, 329, 323, 318, 312, 307, 302, 297, 292, 287, 282, 278, 273, 269, 265, 261, 512, 505, 497, 489, 482, 475, 468, 461, 454, 447, 441, 435, 428, 422, 417, 411, 405, 399, 394, 389, 383, 378, 373, 368, 364, 359, 354, 350, 345, 341, 337, 332, 328, 324, 320, 316, 312, 309, 305, 301, 298, 294, 291, 287, 284, 281, 278, 274, 271, 268, 265, 262, 259, 257, 507, 501, 496, 491, 485, 480, 475, 470, 465, 460, 456, 451, 446, 442, 437, 433, 428, 424, 420, 416, 412, 408, 404, 400, 396, 392, 388, 385, 381, 377, 374, 370, 367, 363, 360, 357, 354, 350, 347, 344, 341, 338, 335, 332, 329, 326, 323, 320, 318, 315, 312, 310, 307, 304, 302, 299, 297, 294, 292, 289, 287, 285, 282, 280, 278, 275, 273, 271, 269, 267, 265, 263, 261, 259], jb = [9, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24];
|
|
2095
|
+
function Fb(a, e, t, r, i) {
|
|
2112
2096
|
if (typeof a == "string" && (a = document.getElementById(a)), !a || vr(a) !== "object" || !("getContext" in a))
|
|
2113
2097
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
|
2114
2098
|
var n = a.getContext("2d");
|
|
@@ -2118,24 +2102,24 @@ function Ub(a, e, t, r, i) {
|
|
|
2118
2102
|
throw new Error("unable to access image data: " + o);
|
|
2119
2103
|
}
|
|
2120
2104
|
}
|
|
2121
|
-
function
|
|
2105
|
+
function Ub(a, e, t, r, i, n) {
|
|
2122
2106
|
if (!(isNaN(n) || n < 1)) {
|
|
2123
2107
|
n |= 0;
|
|
2124
|
-
var o =
|
|
2125
|
-
o =
|
|
2108
|
+
var o = Fb(a, e, t, r, i);
|
|
2109
|
+
o = Gb(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
|
2126
2110
|
}
|
|
2127
2111
|
}
|
|
2128
|
-
function
|
|
2129
|
-
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1, h = n + 1, f = h * (h + 1) / 2, c = new
|
|
2130
|
-
v = v.next = new
|
|
2112
|
+
function Gb(a, e, t, r, i, n) {
|
|
2113
|
+
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1, h = n + 1, f = h * (h + 1) / 2, c = new go(), v = c, d, g = 1; g < s; g++)
|
|
2114
|
+
v = v.next = new go(), g === h && (d = v);
|
|
2131
2115
|
v.next = c;
|
|
2132
|
-
for (var p = null, y = null, x = 0, b = 0, T =
|
|
2116
|
+
for (var p = null, y = null, x = 0, b = 0, T = Bb[n], $ = jb[n], E = 0; E < i; E++) {
|
|
2133
2117
|
v = c;
|
|
2134
2118
|
for (var O = o[b], C = o[b + 1], I = o[b + 2], _ = o[b + 3], j = 0; j < h; j++)
|
|
2135
2119
|
v.r = O, v.g = C, v.b = I, v.a = _, v = v.next;
|
|
2136
2120
|
for (var P = 0, X = 0, W = 0, G = 0, q = h * O, H = h * C, Q = h * I, R = h * _, M = f * O, K = f * C, ne = f * I, ge = f * _, Se = 1; Se < h; Se++) {
|
|
2137
|
-
var ze = b + ((u < Se ? u : Se) << 2), Mt = o[ze],
|
|
2138
|
-
M += (v.r = Mt) * _t, K += (v.g =
|
|
2121
|
+
var ze = b + ((u < Se ? u : Se) << 2), Mt = o[ze], rn = o[ze + 1], an = o[ze + 2], nn = o[ze + 3], _t = h - Se;
|
|
2122
|
+
M += (v.r = Mt) * _t, K += (v.g = rn) * _t, ne += (v.b = an) * _t, ge += (v.a = nn) * _t, P += Mt, X += rn, W += an, G += nn, v = v.next;
|
|
2139
2123
|
}
|
|
2140
2124
|
p = c, y = d;
|
|
2141
2125
|
for (var Lr = 0; Lr < r; Lr++) {
|
|
@@ -2148,8 +2132,8 @@ function zb(a, e, t, r, i, n) {
|
|
|
2148
2132
|
M -= q, K -= H, ne -= Q, ge -= R, q -= p.r, H -= p.g, Q -= p.b, R -= p.a;
|
|
2149
2133
|
var Ae = Lr + n + 1;
|
|
2150
2134
|
Ae = x + (Ae < u ? Ae : u) << 2, P += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2], G += p.a = o[Ae + 3], M += P, K += X, ne += W, ge += G, p = p.next;
|
|
2151
|
-
var Vt = y,
|
|
2152
|
-
q +=
|
|
2135
|
+
var Vt = y, sn = Vt.r, on = Vt.g, un = Vt.b, ln = Vt.a;
|
|
2136
|
+
q += sn, H += on, Q += un, R += ln, P -= sn, X -= on, W -= un, G -= ln, y = y.next, b += 4;
|
|
2153
2137
|
}
|
|
2154
2138
|
x += r;
|
|
2155
2139
|
}
|
|
@@ -2157,12 +2141,12 @@ function zb(a, e, t, r, i, n) {
|
|
|
2157
2141
|
b = He << 2;
|
|
2158
2142
|
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3], Fr = h * Pe, Ur = h * Re, Gr = h * Ne, zr = h * te, Dt = f * Pe, kt = f * Re, Lt = f * Ne, Bt = f * te;
|
|
2159
2143
|
v = c;
|
|
2160
|
-
for (var
|
|
2144
|
+
for (var hn = 0; hn < h; hn++)
|
|
2161
2145
|
v.r = Pe, v.g = Re, v.b = Ne, v.a = te, v = v.next;
|
|
2162
|
-
for (var
|
|
2163
|
-
b =
|
|
2146
|
+
for (var vn = r, Hr = 0, Yr = 0, Xr = 0, Wr = 0, jt = 1; jt <= n; jt++) {
|
|
2147
|
+
b = vn + He << 2;
|
|
2164
2148
|
var Ft = h - jt;
|
|
2165
|
-
Dt += (v.r = Pe = o[b]) * Ft, kt += (v.g = Re = o[b + 1]) * Ft, Lt += (v.b = Ne = o[b + 2]) * Ft, Bt += (v.a = te = o[b + 3]) * Ft, Wr += Pe, Hr += Re, Yr += Ne, Xr += te, v = v.next, jt < l && (
|
|
2149
|
+
Dt += (v.r = Pe = o[b]) * Ft, kt += (v.g = Re = o[b + 1]) * Ft, Lt += (v.b = Ne = o[b + 2]) * Ft, Bt += (v.a = te = o[b + 3]) * Ft, Wr += Pe, Hr += Re, Yr += Ne, Xr += te, v = v.next, jt < l && (vn += r);
|
|
2166
2150
|
}
|
|
2167
2151
|
b = He, p = c, y = d;
|
|
2168
2152
|
for (var qr = 0; qr < i; qr++) {
|
|
@@ -2172,15 +2156,15 @@ function zb(a, e, t, r, i, n) {
|
|
|
2172
2156
|
}
|
|
2173
2157
|
return a;
|
|
2174
2158
|
}
|
|
2175
|
-
var
|
|
2159
|
+
var go = (
|
|
2176
2160
|
/**
|
|
2177
2161
|
* Set properties.
|
|
2178
2162
|
*/
|
|
2179
2163
|
function a() {
|
|
2180
|
-
|
|
2164
|
+
Lb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
|
2181
2165
|
}
|
|
2182
2166
|
);
|
|
2183
|
-
function
|
|
2167
|
+
function zb() {
|
|
2184
2168
|
var {
|
|
2185
2169
|
DOMParser: a
|
|
2186
2170
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
|
@@ -2200,7 +2184,7 @@ function Hb() {
|
|
|
2200
2184
|
};
|
|
2201
2185
|
return (typeof DOMParser < "u" || typeof a > "u") && Reflect.deleteProperty(e, "DOMParser"), e;
|
|
2202
2186
|
}
|
|
2203
|
-
function
|
|
2187
|
+
function Hb(a) {
|
|
2204
2188
|
var {
|
|
2205
2189
|
DOMParser: e,
|
|
2206
2190
|
canvas: t,
|
|
@@ -2216,76 +2200,76 @@ function Yb(a) {
|
|
|
2216
2200
|
createImage: t.loadImage
|
|
2217
2201
|
};
|
|
2218
2202
|
}
|
|
2219
|
-
var
|
|
2203
|
+
var a2 = /* @__PURE__ */ Object.freeze({
|
|
2220
2204
|
__proto__: null,
|
|
2221
|
-
offscreen:
|
|
2222
|
-
node:
|
|
2205
|
+
offscreen: zb,
|
|
2206
|
+
node: Hb
|
|
2223
2207
|
});
|
|
2224
2208
|
function ht(a) {
|
|
2225
2209
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
|
2226
2210
|
}
|
|
2227
|
-
function
|
|
2211
|
+
function Yb(a) {
|
|
2228
2212
|
return a.replace(/^[\n \t]+/, "");
|
|
2229
2213
|
}
|
|
2230
|
-
function
|
|
2214
|
+
function Xb(a) {
|
|
2231
2215
|
return a.replace(/[\n \t]+$/, "");
|
|
2232
2216
|
}
|
|
2233
2217
|
function ie(a) {
|
|
2234
2218
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
|
2235
2219
|
return e.map(parseFloat);
|
|
2236
2220
|
}
|
|
2237
|
-
var
|
|
2238
|
-
function
|
|
2239
|
-
return
|
|
2221
|
+
var Wb = /^[A-Z-]+$/;
|
|
2222
|
+
function qb(a) {
|
|
2223
|
+
return Wb.test(a) ? a.toLowerCase() : a;
|
|
2240
2224
|
}
|
|
2241
|
-
function
|
|
2225
|
+
function hl(a) {
|
|
2242
2226
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
|
2243
2227
|
return e[2] || e[3] || e[4];
|
|
2244
2228
|
}
|
|
2245
|
-
function
|
|
2229
|
+
function Qb(a) {
|
|
2246
2230
|
if (!a.startsWith("rgb"))
|
|
2247
2231
|
return a;
|
|
2248
2232
|
var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
|
|
2249
2233
|
return t;
|
|
2250
2234
|
}
|
|
2251
|
-
var
|
|
2235
|
+
var Kb = /(\[[^\]]+\])/g, Zb = /(#[^\s+>~.[:]+)/g, Jb = /(\.[^\s+>~.[:]+)/g, e1 = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, t1 = /(:[\w-]+\([^)]*\))/gi, r1 = /(:[^\s+>~.[:]+)/g, a1 = /([^\s+>~.[:]+)/g;
|
|
2252
2236
|
function _e(a, e) {
|
|
2253
2237
|
var t = e.exec(a);
|
|
2254
2238
|
return t ? [a.replace(e, " "), t.length] : [a, 0];
|
|
2255
2239
|
}
|
|
2256
|
-
function
|
|
2240
|
+
function i1(a) {
|
|
2257
2241
|
var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
|
|
2258
|
-
return [t, r] = _e(t,
|
|
2242
|
+
return [t, r] = _e(t, Kb), e[1] += r, [t, r] = _e(t, Zb), e[0] += r, [t, r] = _e(t, Jb), e[1] += r, [t, r] = _e(t, e1), e[2] += r, [t, r] = _e(t, t1), e[1] += r, [t, r] = _e(t, r1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = _e(t, a1), e[2] += r, e.join("");
|
|
2259
2243
|
}
|
|
2260
2244
|
var at = 1e-8;
|
|
2261
|
-
function
|
|
2245
|
+
function po(a) {
|
|
2262
2246
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
|
2263
2247
|
}
|
|
2264
|
-
function
|
|
2265
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
|
2248
|
+
function yi(a, e) {
|
|
2249
|
+
return (a[0] * e[0] + a[1] * e[1]) / (po(a) * po(e));
|
|
2266
2250
|
}
|
|
2267
|
-
function
|
|
2268
|
-
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(
|
|
2251
|
+
function yo(a, e) {
|
|
2252
|
+
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(yi(a, e));
|
|
2269
2253
|
}
|
|
2270
|
-
function
|
|
2254
|
+
function mo(a) {
|
|
2271
2255
|
return a * a * a;
|
|
2272
2256
|
}
|
|
2273
|
-
function
|
|
2257
|
+
function bo(a) {
|
|
2274
2258
|
return 3 * a * a * (1 - a);
|
|
2275
2259
|
}
|
|
2276
|
-
function
|
|
2260
|
+
function xo(a) {
|
|
2277
2261
|
return 3 * a * (1 - a) * (1 - a);
|
|
2278
2262
|
}
|
|
2279
|
-
function
|
|
2263
|
+
function To(a) {
|
|
2280
2264
|
return (1 - a) * (1 - a) * (1 - a);
|
|
2281
2265
|
}
|
|
2282
|
-
function
|
|
2266
|
+
function Oo(a) {
|
|
2283
2267
|
return a * a;
|
|
2284
2268
|
}
|
|
2285
|
-
function
|
|
2269
|
+
function So(a) {
|
|
2286
2270
|
return 2 * a * (1 - a);
|
|
2287
2271
|
}
|
|
2288
|
-
function
|
|
2272
|
+
function Eo(a) {
|
|
2289
2273
|
return (1 - a) * (1 - a);
|
|
2290
2274
|
}
|
|
2291
2275
|
class S {
|
|
@@ -2348,7 +2332,7 @@ class S {
|
|
|
2348
2332
|
}
|
|
2349
2333
|
getColor(e) {
|
|
2350
2334
|
var t = this.getString(e);
|
|
2351
|
-
return this.isNormalizedColor || (this.isNormalizedColor = !0, t =
|
|
2335
|
+
return this.isNormalizedColor || (this.isNormalizedColor = !0, t = Qb(t), this.value = t), t;
|
|
2352
2336
|
}
|
|
2353
2337
|
getDpi() {
|
|
2354
2338
|
return 96;
|
|
@@ -2449,7 +2433,7 @@ class S {
|
|
|
2449
2433
|
for (var t = this.getColor(), r = t.length, i = 0, n = 0; n < r && (t[n] === "," && i++, i !== 3); n++)
|
|
2450
2434
|
;
|
|
2451
2435
|
if (e.hasValue() && this.isString() && i !== 3) {
|
|
2452
|
-
var o = new
|
|
2436
|
+
var o = new gi(t);
|
|
2453
2437
|
o.ok && (o.alpha = e.getNumber(), t = o.toRGBA());
|
|
2454
2438
|
}
|
|
2455
2439
|
return new S(this.document, this.name, t);
|
|
@@ -2468,7 +2452,7 @@ S.textBaselineMapping = {
|
|
|
2468
2452
|
hanging: "hanging",
|
|
2469
2453
|
mathematical: "alphabetic"
|
|
2470
2454
|
};
|
|
2471
|
-
class
|
|
2455
|
+
class n1 {
|
|
2472
2456
|
constructor() {
|
|
2473
2457
|
this.viewPorts = [];
|
|
2474
2458
|
}
|
|
@@ -2528,7 +2512,7 @@ class D {
|
|
|
2528
2512
|
this.x = i, this.y = n;
|
|
2529
2513
|
}
|
|
2530
2514
|
}
|
|
2531
|
-
class
|
|
2515
|
+
class s1 {
|
|
2532
2516
|
constructor(e) {
|
|
2533
2517
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
|
2534
2518
|
}
|
|
@@ -2638,14 +2622,14 @@ class o1 {
|
|
|
2638
2622
|
});
|
|
2639
2623
|
}
|
|
2640
2624
|
}
|
|
2641
|
-
var
|
|
2625
|
+
var vl = typeof window < "u" ? window : null, fl = typeof fetch < "u" ? fetch.bind(void 0) : null;
|
|
2642
2626
|
class _r {
|
|
2643
2627
|
constructor(e) {
|
|
2644
2628
|
var {
|
|
2645
|
-
fetch: t =
|
|
2646
|
-
window: r =
|
|
2629
|
+
fetch: t = fl,
|
|
2630
|
+
window: r = vl
|
|
2647
2631
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2648
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
|
2632
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new n1(), this.mouse = new s1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
|
|
2649
2633
|
}
|
|
2650
2634
|
wait(e) {
|
|
2651
2635
|
this.waits.push(e);
|
|
@@ -2769,16 +2753,16 @@ class _r {
|
|
|
2769
2753
|
r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
|
|
2770
2754
|
}
|
|
2771
2755
|
}
|
|
2772
|
-
_r.defaultWindow =
|
|
2773
|
-
_r.defaultFetch =
|
|
2756
|
+
_r.defaultWindow = vl;
|
|
2757
|
+
_r.defaultFetch = fl;
|
|
2774
2758
|
var {
|
|
2775
|
-
defaultFetch:
|
|
2776
|
-
} = _r,
|
|
2777
|
-
class
|
|
2759
|
+
defaultFetch: o1
|
|
2760
|
+
} = _r, u1 = typeof DOMParser < "u" ? DOMParser : null;
|
|
2761
|
+
class Ua {
|
|
2778
2762
|
constructor() {
|
|
2779
2763
|
var {
|
|
2780
|
-
fetch: e =
|
|
2781
|
-
DOMParser: t =
|
|
2764
|
+
fetch: e = o1,
|
|
2765
|
+
DOMParser: t = u1
|
|
2782
2766
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2783
2767
|
this.fetch = e, this.DOMParser = t;
|
|
2784
2768
|
}
|
|
@@ -2810,7 +2794,7 @@ class Ga {
|
|
|
2810
2794
|
})();
|
|
2811
2795
|
}
|
|
2812
2796
|
}
|
|
2813
|
-
class
|
|
2797
|
+
class l1 {
|
|
2814
2798
|
constructor(e, t) {
|
|
2815
2799
|
this.type = "translate", this.point = null, this.point = D.parse(t);
|
|
2816
2800
|
}
|
|
@@ -2836,7 +2820,7 @@ class h1 {
|
|
|
2836
2820
|
e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
|
|
2837
2821
|
}
|
|
2838
2822
|
}
|
|
2839
|
-
class
|
|
2823
|
+
class h1 {
|
|
2840
2824
|
constructor(e, t, r) {
|
|
2841
2825
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
|
2842
2826
|
var i = ie(t);
|
|
@@ -2887,7 +2871,7 @@ class v1 {
|
|
|
2887
2871
|
]);
|
|
2888
2872
|
}
|
|
2889
2873
|
}
|
|
2890
|
-
class
|
|
2874
|
+
class v1 {
|
|
2891
2875
|
constructor(e, t, r) {
|
|
2892
2876
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
|
2893
2877
|
var i = D.parseScale(t);
|
|
@@ -2923,7 +2907,7 @@ class f1 {
|
|
|
2923
2907
|
e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
|
|
2924
2908
|
}
|
|
2925
2909
|
}
|
|
2926
|
-
class
|
|
2910
|
+
class cl {
|
|
2927
2911
|
constructor(e, t, r) {
|
|
2928
2912
|
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ie(t), this.originX = r[0], this.originY = r[1];
|
|
2929
2913
|
}
|
|
@@ -2947,35 +2931,35 @@ class yl {
|
|
|
2947
2931
|
e.applyTransform(this.matrix);
|
|
2948
2932
|
}
|
|
2949
2933
|
}
|
|
2950
|
-
class
|
|
2934
|
+
class gl extends cl {
|
|
2951
2935
|
constructor(e, t, r) {
|
|
2952
2936
|
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
|
|
2953
2937
|
}
|
|
2954
2938
|
}
|
|
2955
|
-
class
|
|
2939
|
+
class f1 extends gl {
|
|
2956
2940
|
constructor(e, t, r) {
|
|
2957
2941
|
super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
|
|
2958
2942
|
}
|
|
2959
2943
|
}
|
|
2960
|
-
class
|
|
2944
|
+
class c1 extends gl {
|
|
2961
2945
|
constructor(e, t, r) {
|
|
2962
2946
|
super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
|
|
2963
2947
|
}
|
|
2964
2948
|
}
|
|
2965
|
-
function
|
|
2949
|
+
function g1(a) {
|
|
2966
2950
|
return ht(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
|
2967
2951
|
}
|
|
2968
|
-
function
|
|
2952
|
+
function d1(a) {
|
|
2969
2953
|
var [e, t] = a.split("(");
|
|
2970
2954
|
return [e.trim(), t.trim().replace(")", "")];
|
|
2971
2955
|
}
|
|
2972
2956
|
class Le {
|
|
2973
2957
|
constructor(e, t, r) {
|
|
2974
2958
|
this.document = e, this.transforms = [];
|
|
2975
|
-
var i =
|
|
2959
|
+
var i = g1(t);
|
|
2976
2960
|
i.forEach((n) => {
|
|
2977
2961
|
if (n !== "none") {
|
|
2978
|
-
var [o, s] =
|
|
2962
|
+
var [o, s] = d1(n), u = Le.transformTypes[o];
|
|
2979
2963
|
typeof u < "u" && this.transforms.push(new u(this.document, s, r));
|
|
2980
2964
|
}
|
|
2981
2965
|
});
|
|
@@ -3005,19 +2989,19 @@ class Le {
|
|
|
3005
2989
|
}
|
|
3006
2990
|
}
|
|
3007
2991
|
Le.transformTypes = {
|
|
3008
|
-
translate:
|
|
3009
|
-
rotate:
|
|
3010
|
-
scale:
|
|
3011
|
-
matrix:
|
|
3012
|
-
skewX:
|
|
3013
|
-
skewY:
|
|
2992
|
+
translate: l1,
|
|
2993
|
+
rotate: h1,
|
|
2994
|
+
scale: v1,
|
|
2995
|
+
matrix: cl,
|
|
2996
|
+
skewX: f1,
|
|
2997
|
+
skewY: c1
|
|
3014
2998
|
};
|
|
3015
2999
|
class N {
|
|
3016
3000
|
constructor(e, t) {
|
|
3017
3001
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3018
3002
|
if (this.document = e, this.node = t, this.captureTextNodes = r, this.attributes = {}, this.styles = {}, this.stylesSpecificity = {}, this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!t || t.nodeType !== 1)) {
|
|
3019
3003
|
if (Array.from(t.attributes).forEach((s) => {
|
|
3020
|
-
var u =
|
|
3004
|
+
var u = qb(s.nodeName);
|
|
3021
3005
|
this.attributes[u] = new S(e, u, s.value);
|
|
3022
3006
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
|
3023
3007
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
|
@@ -3159,19 +3143,19 @@ class N {
|
|
|
3159
3143
|
}
|
|
3160
3144
|
}
|
|
3161
3145
|
N.ignoreChildTypes = ["title"];
|
|
3162
|
-
class
|
|
3146
|
+
class p1 extends N {
|
|
3163
3147
|
constructor(e, t, r) {
|
|
3164
3148
|
super(e, t, r);
|
|
3165
3149
|
}
|
|
3166
3150
|
}
|
|
3167
|
-
function
|
|
3151
|
+
function y1(a) {
|
|
3168
3152
|
var e = a.trim();
|
|
3169
3153
|
return /^('|")/.test(e) ? e : '"'.concat(e, '"');
|
|
3170
3154
|
}
|
|
3171
|
-
function
|
|
3172
|
-
return typeof process > "u" ? a : a.trim().split(",").map(
|
|
3155
|
+
function m1(a) {
|
|
3156
|
+
return typeof process > "u" ? a : a.trim().split(",").map(y1).join(",");
|
|
3173
3157
|
}
|
|
3174
|
-
function
|
|
3158
|
+
function b1(a) {
|
|
3175
3159
|
if (!a)
|
|
3176
3160
|
return "";
|
|
3177
3161
|
var e = a.trim().toLowerCase();
|
|
@@ -3187,7 +3171,7 @@ function x1(a) {
|
|
|
3187
3171
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
|
3188
3172
|
}
|
|
3189
3173
|
}
|
|
3190
|
-
function
|
|
3174
|
+
function x1(a) {
|
|
3191
3175
|
if (!a)
|
|
3192
3176
|
return "";
|
|
3193
3177
|
var e = a.trim().toLowerCase();
|
|
@@ -3237,12 +3221,12 @@ class Z {
|
|
|
3237
3221
|
}
|
|
3238
3222
|
toString() {
|
|
3239
3223
|
return [
|
|
3240
|
-
|
|
3224
|
+
b1(this.fontStyle),
|
|
3241
3225
|
this.fontVariant,
|
|
3242
|
-
|
|
3226
|
+
x1(this.fontWeight),
|
|
3243
3227
|
this.fontSize,
|
|
3244
3228
|
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
|
3245
|
-
|
|
3229
|
+
m1(this.fontFamily)
|
|
3246
3230
|
].join(" ").trim();
|
|
3247
3231
|
}
|
|
3248
3232
|
}
|
|
@@ -3725,8 +3709,8 @@ class A extends Ge {
|
|
|
3725
3709
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
|
3726
3710
|
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)));
|
|
3727
3711
|
isNaN(v) && (v = 0);
|
|
3728
|
-
var d = new D(v * i * f.y / n, v * -n * f.x / i), g = new D((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p =
|
|
3729
|
-
return
|
|
3712
|
+
var d = new D(v * i * f.y / n, v * -n * f.x / i), g = new D((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p = yo([1, 0], [(f.x - d.x) / i, (f.y - d.y) / n]), y = [(f.x - d.x) / i, (f.y - d.y) / n], x = [(-f.x - d.x) / i, (-f.y - d.y) / n], b = yo(y, x);
|
|
3713
|
+
return yi(y, x) <= -1 && (b = Math.PI), yi(y, x) >= 1 && (b = 0), {
|
|
3730
3714
|
currentPoint: h,
|
|
3731
3715
|
rX: i,
|
|
3732
3716
|
rY: n,
|
|
@@ -3762,7 +3746,7 @@ class A extends Ge {
|
|
|
3762
3746
|
A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
|
|
3763
3747
|
}
|
|
3764
3748
|
}
|
|
3765
|
-
class
|
|
3749
|
+
class dl extends A {
|
|
3766
3750
|
constructor(e, t, r) {
|
|
3767
3751
|
super(e, t, r), this.type = "glyph", this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber(), this.unicode = this.getAttribute("unicode").getString(), this.arabicForm = this.getAttribute("arabic-form").getString();
|
|
3768
3752
|
}
|
|
@@ -3807,7 +3791,7 @@ class Ce extends Ge {
|
|
|
3807
3791
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
|
3808
3792
|
if ((r === 0 || s === " ") && r < o - 1 && u !== " " && (l = "terminal"), r > 0 && s !== " " && r < o - 1 && u !== " " && (l = "medial"), r > 0 && s !== " " && (r === o - 1 || u === " ") && (l = "initial"), typeof e.glyphs[i] < "u") {
|
|
3809
3793
|
var h = e.glyphs[i];
|
|
3810
|
-
n = h instanceof
|
|
3794
|
+
n = h instanceof dl ? h : h[l];
|
|
3811
3795
|
}
|
|
3812
3796
|
} else
|
|
3813
3797
|
n = e.glyphs[i];
|
|
@@ -3822,7 +3806,7 @@ class Ce extends Ge {
|
|
|
3822
3806
|
// || textNode.text
|
|
3823
3807
|
t.textContent || ""
|
|
3824
3808
|
);
|
|
3825
|
-
return i === 0 && (o =
|
|
3809
|
+
return i === 0 && (o = Yb(o)), i === n && (o = Xb(o)), o;
|
|
3826
3810
|
}
|
|
3827
3811
|
renderChildren(e) {
|
|
3828
3812
|
if (this.type !== "text") {
|
|
@@ -3862,7 +3846,7 @@ class Ce extends Ge {
|
|
|
3862
3846
|
applyAnchoring() {
|
|
3863
3847
|
if (!(this.textChunkStart >= this.leafTexts.length)) {
|
|
3864
3848
|
var e = this.leafTexts[this.textChunkStart], t = e.getStyle("text-anchor").getString("start"), r = !1, i = 0;
|
|
3865
|
-
t === "start"
|
|
3849
|
+
t === "start" || t === "end" && r ? i = e.x - this.minX : t === "end" || t === "start" && r ? i = e.x - this.maxX : i = e.x - (this.minX + this.maxX) / 2;
|
|
3866
3850
|
for (var n = this.textChunkStart; n < this.leafTexts.length; n++)
|
|
3867
3851
|
this.leafTexts[n].x += i;
|
|
3868
3852
|
this.minX = Number.POSITIVE_INFINITY, this.maxX = Number.NEGATIVE_INFINITY, this.textChunkStart = this.leafTexts.length;
|
|
@@ -3959,7 +3943,7 @@ class Vr extends Ce {
|
|
|
3959
3943
|
return this.text;
|
|
3960
3944
|
}
|
|
3961
3945
|
}
|
|
3962
|
-
class
|
|
3946
|
+
class T1 extends Vr {
|
|
3963
3947
|
constructor() {
|
|
3964
3948
|
super(...arguments), this.type = "textNode";
|
|
3965
3949
|
}
|
|
@@ -4027,7 +4011,7 @@ class It extends Ge {
|
|
|
4027
4011
|
}
|
|
4028
4012
|
}
|
|
4029
4013
|
}
|
|
4030
|
-
class
|
|
4014
|
+
class pl extends A {
|
|
4031
4015
|
constructor() {
|
|
4032
4016
|
super(...arguments), this.type = "rect";
|
|
4033
4017
|
}
|
|
@@ -4043,7 +4027,7 @@ class xl extends A {
|
|
|
4043
4027
|
return null;
|
|
4044
4028
|
}
|
|
4045
4029
|
}
|
|
4046
|
-
class
|
|
4030
|
+
class O1 extends A {
|
|
4047
4031
|
constructor() {
|
|
4048
4032
|
super(...arguments), this.type = "circle";
|
|
4049
4033
|
}
|
|
@@ -4055,7 +4039,7 @@ class S1 extends A {
|
|
|
4055
4039
|
return null;
|
|
4056
4040
|
}
|
|
4057
4041
|
}
|
|
4058
|
-
class
|
|
4042
|
+
class S1 extends A {
|
|
4059
4043
|
constructor() {
|
|
4060
4044
|
super(...arguments), this.type = "ellipse";
|
|
4061
4045
|
}
|
|
@@ -4067,7 +4051,7 @@ class E1 extends A {
|
|
|
4067
4051
|
return null;
|
|
4068
4052
|
}
|
|
4069
4053
|
}
|
|
4070
|
-
class
|
|
4054
|
+
class E1 extends A {
|
|
4071
4055
|
constructor() {
|
|
4072
4056
|
super(...arguments), this.type = "line";
|
|
4073
4057
|
}
|
|
@@ -4089,7 +4073,7 @@ class $1 extends A {
|
|
|
4089
4073
|
return [[e, r], [t, r]];
|
|
4090
4074
|
}
|
|
4091
4075
|
}
|
|
4092
|
-
class
|
|
4076
|
+
class yl extends A {
|
|
4093
4077
|
constructor(e, t, r) {
|
|
4094
4078
|
super(e, t, r), this.type = "polyline", this.points = [], this.points = D.parsePath(this.getAttribute("points").getString());
|
|
4095
4079
|
}
|
|
@@ -4117,7 +4101,7 @@ class Tl extends A {
|
|
|
4117
4101
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
|
4118
4102
|
}
|
|
4119
4103
|
}
|
|
4120
|
-
class
|
|
4104
|
+
class $1 extends yl {
|
|
4121
4105
|
constructor() {
|
|
4122
4106
|
super(...arguments), this.type = "polygon";
|
|
4123
4107
|
}
|
|
@@ -4129,7 +4113,7 @@ class w1 extends Tl {
|
|
|
4129
4113
|
return e && (e.lineTo(r, i), e.closePath()), t;
|
|
4130
4114
|
}
|
|
4131
4115
|
}
|
|
4132
|
-
class
|
|
4116
|
+
class w1 extends N {
|
|
4133
4117
|
constructor() {
|
|
4134
4118
|
super(...arguments), this.type = "pattern";
|
|
4135
4119
|
}
|
|
@@ -4145,7 +4129,7 @@ class C1 extends N {
|
|
|
4145
4129
|
return v;
|
|
4146
4130
|
}
|
|
4147
4131
|
}
|
|
4148
|
-
class
|
|
4132
|
+
class C1 extends N {
|
|
4149
4133
|
constructor() {
|
|
4150
4134
|
super(...arguments), this.type = "marker";
|
|
4151
4135
|
}
|
|
@@ -4161,14 +4145,14 @@ class A1 extends N {
|
|
|
4161
4145
|
}
|
|
4162
4146
|
}
|
|
4163
4147
|
}
|
|
4164
|
-
class
|
|
4148
|
+
class A1 extends N {
|
|
4165
4149
|
constructor() {
|
|
4166
4150
|
super(...arguments), this.type = "defs";
|
|
4167
4151
|
}
|
|
4168
4152
|
render() {
|
|
4169
4153
|
}
|
|
4170
4154
|
}
|
|
4171
|
-
class
|
|
4155
|
+
class en extends Ge {
|
|
4172
4156
|
constructor() {
|
|
4173
4157
|
super(...arguments), this.type = "g";
|
|
4174
4158
|
}
|
|
@@ -4179,7 +4163,7 @@ class an extends Ge {
|
|
|
4179
4163
|
}), t;
|
|
4180
4164
|
}
|
|
4181
4165
|
}
|
|
4182
|
-
class
|
|
4166
|
+
class ml extends N {
|
|
4183
4167
|
constructor(e, t, r) {
|
|
4184
4168
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
|
4185
4169
|
var {
|
|
@@ -4209,9 +4193,9 @@ class Ol extends N {
|
|
|
4209
4193
|
} = this, {
|
|
4210
4194
|
MAX_VIRTUAL_PIXELS: u,
|
|
4211
4195
|
viewPort: l
|
|
4212
|
-
} = s.screen, [h] = l.viewPorts, f = new
|
|
4196
|
+
} = s.screen, [h] = l.viewPorts, f = new pl(s, null);
|
|
4213
4197
|
f.attributes.x = new S(s, "x", -u / 3), f.attributes.y = new S(s, "y", -u / 3), f.attributes.width = new S(s, "width", u), f.attributes.height = new S(s, "height", u);
|
|
4214
|
-
var c = new
|
|
4198
|
+
var c = new en(s, null);
|
|
4215
4199
|
c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
|
4216
4200
|
var v = new It(s, null);
|
|
4217
4201
|
v.attributes.x = new S(s, "x", 0), v.attributes.y = new S(s, "y", 0), v.attributes.width = new S(s, "width", h.width), v.attributes.height = new S(s, "height", h.height), v.children = [c];
|
|
@@ -4233,7 +4217,7 @@ class Ol extends N {
|
|
|
4233
4217
|
return t;
|
|
4234
4218
|
}
|
|
4235
4219
|
}
|
|
4236
|
-
class
|
|
4220
|
+
class P1 extends ml {
|
|
4237
4221
|
constructor(e, t, r) {
|
|
4238
4222
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
|
4239
4223
|
}
|
|
@@ -4246,7 +4230,7 @@ class R1 extends Ol {
|
|
|
4246
4230
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
|
4247
4231
|
}
|
|
4248
4232
|
}
|
|
4249
|
-
class
|
|
4233
|
+
class R1 extends ml {
|
|
4250
4234
|
constructor(e, t, r) {
|
|
4251
4235
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
|
4252
4236
|
}
|
|
@@ -4261,14 +4245,14 @@ class N1 extends Ol {
|
|
|
4261
4245
|
return e.createRadialGradient(s, u, h, n, o, l);
|
|
4262
4246
|
}
|
|
4263
4247
|
}
|
|
4264
|
-
class
|
|
4248
|
+
class N1 extends N {
|
|
4265
4249
|
constructor(e, t, r) {
|
|
4266
4250
|
super(e, t, r), this.type = "stop";
|
|
4267
4251
|
var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
|
|
4268
4252
|
o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
|
|
4269
4253
|
}
|
|
4270
4254
|
}
|
|
4271
|
-
class
|
|
4255
|
+
class tn extends N {
|
|
4272
4256
|
constructor(e, t, r) {
|
|
4273
4257
|
super(e, t, r), this.type = "animate", this.duration = 0, this.initialValue = null, this.initialUnits = "", this.removed = !1, this.frozen = !1, e.screen.animations.push(this), this.begin = this.getAttribute("begin").getMilliseconds(), this.maxDuration = this.begin + this.getAttribute("dur").getMilliseconds(), this.from = this.getAttribute("from"), this.to = this.getAttribute("to"), this.values = new S(e, "values", null);
|
|
4274
4258
|
var i = this.getAttribute("values");
|
|
@@ -4329,7 +4313,7 @@ class nn extends N {
|
|
|
4329
4313
|
return r;
|
|
4330
4314
|
}
|
|
4331
4315
|
}
|
|
4332
|
-
class
|
|
4316
|
+
class I1 extends tn {
|
|
4333
4317
|
constructor() {
|
|
4334
4318
|
super(...arguments), this.type = "animateColor";
|
|
4335
4319
|
}
|
|
@@ -4338,7 +4322,7 @@ class M1 extends nn {
|
|
|
4338
4322
|
progress: e,
|
|
4339
4323
|
from: t,
|
|
4340
4324
|
to: r
|
|
4341
|
-
} = this.getProgress(), i = new
|
|
4325
|
+
} = this.getProgress(), i = new gi(t.getColor()), n = new gi(r.getColor());
|
|
4342
4326
|
if (i.ok && n.ok) {
|
|
4343
4327
|
var o = i.r + (n.r - i.r) * e, s = i.g + (n.g - i.g) * e, u = i.b + (n.b - i.b) * e;
|
|
4344
4328
|
return "rgb(".concat(Math.floor(o), ", ").concat(Math.floor(s), ", ").concat(Math.floor(u), ")");
|
|
@@ -4346,7 +4330,7 @@ class M1 extends nn {
|
|
|
4346
4330
|
return this.getAttribute("from").getColor();
|
|
4347
4331
|
}
|
|
4348
4332
|
}
|
|
4349
|
-
class
|
|
4333
|
+
class M1 extends tn {
|
|
4350
4334
|
constructor() {
|
|
4351
4335
|
super(...arguments), this.type = "animateTransform";
|
|
4352
4336
|
}
|
|
@@ -4362,7 +4346,7 @@ class _1 extends nn {
|
|
|
4362
4346
|
return o;
|
|
4363
4347
|
}
|
|
4364
4348
|
}
|
|
4365
|
-
class
|
|
4349
|
+
class _1 extends N {
|
|
4366
4350
|
constructor(e, t, r) {
|
|
4367
4351
|
super(e, t, r), this.type = "font", this.glyphs = {}, this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
|
4368
4352
|
var {
|
|
@@ -4391,17 +4375,17 @@ class V1 extends N {
|
|
|
4391
4375
|
render() {
|
|
4392
4376
|
}
|
|
4393
4377
|
}
|
|
4394
|
-
class
|
|
4378
|
+
class V1 extends N {
|
|
4395
4379
|
constructor(e, t, r) {
|
|
4396
4380
|
super(e, t, r), this.type = "font-face", this.ascent = this.getAttribute("ascent").getNumber(), this.descent = this.getAttribute("descent").getNumber(), this.unitsPerEm = this.getAttribute("units-per-em").getNumber();
|
|
4397
4381
|
}
|
|
4398
4382
|
}
|
|
4399
|
-
class
|
|
4383
|
+
class D1 extends A {
|
|
4400
4384
|
constructor() {
|
|
4401
4385
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
|
4402
4386
|
}
|
|
4403
4387
|
}
|
|
4404
|
-
class
|
|
4388
|
+
class k1 extends Ce {
|
|
4405
4389
|
constructor() {
|
|
4406
4390
|
super(...arguments), this.type = "tref";
|
|
4407
4391
|
}
|
|
@@ -4415,7 +4399,7 @@ class L1 extends Ce {
|
|
|
4415
4399
|
return "";
|
|
4416
4400
|
}
|
|
4417
4401
|
}
|
|
4418
|
-
class
|
|
4402
|
+
class L1 extends Ce {
|
|
4419
4403
|
constructor(e, t, r) {
|
|
4420
4404
|
super(e, t, r), this.type = "a";
|
|
4421
4405
|
var {
|
|
@@ -4438,7 +4422,7 @@ class B1 extends Ce {
|
|
|
4438
4422
|
} = t.screen, o = new S(t, "fontSize", Z.parse(t.ctx.font).fontSize);
|
|
4439
4423
|
n.isWorking() && n.checkBoundingBox(this, new ce(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
|
4440
4424
|
} else if (this.children.length > 0) {
|
|
4441
|
-
var s = new
|
|
4425
|
+
var s = new en(this.document, null);
|
|
4442
4426
|
s.children = this.children, s.parent = this, s.render(e);
|
|
4443
4427
|
}
|
|
4444
4428
|
}
|
|
@@ -4453,7 +4437,7 @@ class B1 extends Ce {
|
|
|
4453
4437
|
e.canvas.style.cursor = "pointer";
|
|
4454
4438
|
}
|
|
4455
4439
|
}
|
|
4456
|
-
function
|
|
4440
|
+
function $o(a, e) {
|
|
4457
4441
|
var t = Object.keys(a);
|
|
4458
4442
|
if (Object.getOwnPropertySymbols) {
|
|
4459
4443
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -4466,15 +4450,15 @@ function Ro(a, e) {
|
|
|
4466
4450
|
function ar(a) {
|
|
4467
4451
|
for (var e = 1; e < arguments.length; e++) {
|
|
4468
4452
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
4469
|
-
e % 2 ?
|
|
4470
|
-
|
|
4471
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
4453
|
+
e % 2 ? $o(Object(t), !0).forEach(function(r) {
|
|
4454
|
+
Zi(a, r, t[r]);
|
|
4455
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : $o(Object(t)).forEach(function(r) {
|
|
4472
4456
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4473
4457
|
});
|
|
4474
4458
|
}
|
|
4475
4459
|
return a;
|
|
4476
4460
|
}
|
|
4477
|
-
class
|
|
4461
|
+
class B1 extends Ce {
|
|
4478
4462
|
constructor(e, t, r) {
|
|
4479
4463
|
super(e, t, r), this.type = "textPath", this.textWidth = 0, this.textHeight = 0, this.pathLength = -1, this.glyphInfo = null, this.letterSpacingCache = [], this.measuresCache = /* @__PURE__ */ new Map([["", 0]]);
|
|
4480
4464
|
var i = this.getHrefAttribute().getDefinition();
|
|
@@ -4825,14 +4809,14 @@ class j1 extends Ce {
|
|
|
4825
4809
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
|
4826
4810
|
}
|
|
4827
4811
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
|
4828
|
-
var h = u *
|
|
4812
|
+
var h = u * mo(e) + o * bo(e) + i * xo(e) + t * To(e), f = l * mo(e) + s * bo(e) + n * xo(e) + r * To(e);
|
|
4829
4813
|
return {
|
|
4830
4814
|
x: h,
|
|
4831
4815
|
y: f
|
|
4832
4816
|
};
|
|
4833
4817
|
}
|
|
4834
4818
|
getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
|
|
4835
|
-
var u = o *
|
|
4819
|
+
var u = o * Oo(e) + i * So(e) + t * Eo(e), l = s * Oo(e) + n * So(e) + r * Eo(e);
|
|
4836
4820
|
return {
|
|
4837
4821
|
x: u,
|
|
4838
4822
|
y: l
|
|
@@ -4874,8 +4858,8 @@ class j1 extends Ce {
|
|
|
4874
4858
|
return this.equidistantCache.points[i] || null;
|
|
4875
4859
|
}
|
|
4876
4860
|
}
|
|
4877
|
-
var
|
|
4878
|
-
class
|
|
4861
|
+
var j1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
|
4862
|
+
class F1 extends Ge {
|
|
4879
4863
|
constructor(e, t, r) {
|
|
4880
4864
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
|
4881
4865
|
var i = this.getHrefAttribute().getString();
|
|
@@ -4899,7 +4883,7 @@ class U1 extends Ge {
|
|
|
4899
4883
|
loadSvg(e) {
|
|
4900
4884
|
var t = this;
|
|
4901
4885
|
return xe(function* () {
|
|
4902
|
-
var r =
|
|
4886
|
+
var r = j1.exec(e);
|
|
4903
4887
|
if (r) {
|
|
4904
4888
|
var i = r[5];
|
|
4905
4889
|
r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
|
|
@@ -4951,14 +4935,14 @@ class U1 extends Ge {
|
|
|
4951
4935
|
return new ce(e, t, e + r, t + i);
|
|
4952
4936
|
}
|
|
4953
4937
|
}
|
|
4954
|
-
class
|
|
4938
|
+
class U1 extends Ge {
|
|
4955
4939
|
constructor() {
|
|
4956
4940
|
super(...arguments), this.type = "symbol";
|
|
4957
4941
|
}
|
|
4958
4942
|
render(e) {
|
|
4959
4943
|
}
|
|
4960
4944
|
}
|
|
4961
|
-
class
|
|
4945
|
+
class G1 {
|
|
4962
4946
|
constructor(e) {
|
|
4963
4947
|
this.document = e, this.loaded = !1, e.fonts.push(this);
|
|
4964
4948
|
}
|
|
@@ -4980,7 +4964,7 @@ class z1 {
|
|
|
4980
4964
|
})();
|
|
4981
4965
|
}
|
|
4982
4966
|
}
|
|
4983
|
-
class
|
|
4967
|
+
class bl extends N {
|
|
4984
4968
|
constructor(e, t, r) {
|
|
4985
4969
|
super(e, t, r), this.type = "style";
|
|
4986
4970
|
var i = ht(
|
|
@@ -4998,12 +4982,12 @@ class Sl extends N {
|
|
|
4998
4982
|
if (h.forEach((p) => {
|
|
4999
4983
|
var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
|
|
5000
4984
|
x && b && (v[x] = new S(e, x, b));
|
|
5001
|
-
}), e.styles[c] = v, e.stylesSpecificity[c] =
|
|
4985
|
+
}), e.styles[c] = v, e.stylesSpecificity[c] = i1(c), c === "@font-face") {
|
|
5002
4986
|
var d = v["font-family"].getString().replace(/"|'/g, ""), g = v.src.getString().split(",");
|
|
5003
4987
|
g.forEach((p) => {
|
|
5004
4988
|
if (p.indexOf('format("svg")') > 0) {
|
|
5005
|
-
var y =
|
|
5006
|
-
y && new
|
|
4989
|
+
var y = hl(p);
|
|
4990
|
+
y && new G1(e).load(d, y);
|
|
5007
4991
|
}
|
|
5008
4992
|
});
|
|
5009
4993
|
}
|
|
@@ -5013,8 +4997,8 @@ class Sl extends N {
|
|
|
5013
4997
|
});
|
|
5014
4998
|
}
|
|
5015
4999
|
}
|
|
5016
|
-
|
|
5017
|
-
class
|
|
5000
|
+
bl.parseExternalUrl = hl;
|
|
5001
|
+
class z1 extends Ge {
|
|
5018
5002
|
constructor() {
|
|
5019
5003
|
super(...arguments), this.type = "use";
|
|
5020
5004
|
}
|
|
@@ -5074,7 +5058,7 @@ function F(a, e, t) {
|
|
|
5074
5058
|
function me(a, e, t, r) {
|
|
5075
5059
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
|
5076
5060
|
}
|
|
5077
|
-
class
|
|
5061
|
+
class xl extends N {
|
|
5078
5062
|
constructor(e, t, r) {
|
|
5079
5063
|
super(e, t, r), this.type = "feColorMatrix";
|
|
5080
5064
|
var i = ie(this.getAttribute("values").getString());
|
|
@@ -5122,7 +5106,7 @@ class Dr extends N {
|
|
|
5122
5106
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
|
5123
5107
|
}
|
|
5124
5108
|
var l = this.removeStyles(t, Dr.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
|
5125
|
-
r.screen.setDefaults(f), this.renderChildren(f), new
|
|
5109
|
+
r.screen.setDefaults(f), this.renderChildren(f), new xl(r, {
|
|
5126
5110
|
nodeType: 1,
|
|
5127
5111
|
childNodes: [],
|
|
5128
5112
|
attributes: [{
|
|
@@ -5140,9 +5124,9 @@ class Dr extends N {
|
|
|
5140
5124
|
}
|
|
5141
5125
|
}
|
|
5142
5126
|
Dr.ignoreStyles = ["mask", "transform", "clip-path"];
|
|
5143
|
-
var
|
|
5127
|
+
var wo = () => {
|
|
5144
5128
|
};
|
|
5145
|
-
class
|
|
5129
|
+
class H1 extends N {
|
|
5146
5130
|
constructor() {
|
|
5147
5131
|
super(...arguments), this.type = "clipPath";
|
|
5148
5132
|
}
|
|
@@ -5153,7 +5137,7 @@ class Y1 extends N {
|
|
|
5153
5137
|
beginPath: i,
|
|
5154
5138
|
closePath: n
|
|
5155
5139
|
} = e;
|
|
5156
|
-
r && (r.beginPath =
|
|
5140
|
+
r && (r.beginPath = wo, r.closePath = wo), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
|
5157
5141
|
if (!(typeof o.path > "u")) {
|
|
5158
5142
|
var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
|
|
5159
5143
|
s || (s = Le.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
|
@@ -5191,28 +5175,28 @@ class kr extends N {
|
|
|
5191
5175
|
}
|
|
5192
5176
|
}
|
|
5193
5177
|
kr.ignoreStyles = ["filter", "transform", "clip-path"];
|
|
5194
|
-
class
|
|
5178
|
+
class Y1 extends N {
|
|
5195
5179
|
constructor(e, t, r) {
|
|
5196
5180
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
|
5197
5181
|
}
|
|
5198
5182
|
apply(e, t, r, i, n) {
|
|
5199
5183
|
}
|
|
5200
5184
|
}
|
|
5201
|
-
class
|
|
5185
|
+
class X1 extends N {
|
|
5202
5186
|
constructor() {
|
|
5203
5187
|
super(...arguments), this.type = "feMorphology";
|
|
5204
5188
|
}
|
|
5205
5189
|
apply(e, t, r, i, n) {
|
|
5206
5190
|
}
|
|
5207
5191
|
}
|
|
5208
|
-
class
|
|
5192
|
+
class W1 extends N {
|
|
5209
5193
|
constructor() {
|
|
5210
5194
|
super(...arguments), this.type = "feComposite";
|
|
5211
5195
|
}
|
|
5212
5196
|
apply(e, t, r, i, n) {
|
|
5213
5197
|
}
|
|
5214
5198
|
}
|
|
5215
|
-
class
|
|
5199
|
+
class q1 extends N {
|
|
5216
5200
|
constructor(e, t, r) {
|
|
5217
5201
|
super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
|
|
5218
5202
|
}
|
|
@@ -5221,63 +5205,63 @@ class Q1 extends N {
|
|
|
5221
5205
|
document: o,
|
|
5222
5206
|
blurRadius: s
|
|
5223
5207
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
|
5224
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
|
5208
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), Ub(l, t, r, i, n, s), u && u.removeChild(l);
|
|
5225
5209
|
}
|
|
5226
5210
|
}
|
|
5227
|
-
class
|
|
5211
|
+
class Q1 extends N {
|
|
5228
5212
|
constructor() {
|
|
5229
5213
|
super(...arguments), this.type = "title";
|
|
5230
5214
|
}
|
|
5231
5215
|
}
|
|
5232
|
-
class
|
|
5216
|
+
class K1 extends N {
|
|
5233
5217
|
constructor() {
|
|
5234
5218
|
super(...arguments), this.type = "desc";
|
|
5235
5219
|
}
|
|
5236
5220
|
}
|
|
5237
|
-
var
|
|
5221
|
+
var Z1 = {
|
|
5238
5222
|
svg: It,
|
|
5239
|
-
rect:
|
|
5240
|
-
circle:
|
|
5241
|
-
ellipse:
|
|
5242
|
-
line:
|
|
5243
|
-
polyline:
|
|
5244
|
-
polygon:
|
|
5223
|
+
rect: pl,
|
|
5224
|
+
circle: O1,
|
|
5225
|
+
ellipse: S1,
|
|
5226
|
+
line: E1,
|
|
5227
|
+
polyline: yl,
|
|
5228
|
+
polygon: $1,
|
|
5245
5229
|
path: A,
|
|
5246
|
-
pattern:
|
|
5247
|
-
marker:
|
|
5248
|
-
defs:
|
|
5249
|
-
linearGradient:
|
|
5250
|
-
radialGradient:
|
|
5251
|
-
stop:
|
|
5252
|
-
animate:
|
|
5253
|
-
animateColor:
|
|
5254
|
-
animateTransform:
|
|
5255
|
-
font:
|
|
5256
|
-
"font-face":
|
|
5257
|
-
"missing-glyph":
|
|
5258
|
-
glyph:
|
|
5230
|
+
pattern: w1,
|
|
5231
|
+
marker: C1,
|
|
5232
|
+
defs: A1,
|
|
5233
|
+
linearGradient: P1,
|
|
5234
|
+
radialGradient: R1,
|
|
5235
|
+
stop: N1,
|
|
5236
|
+
animate: tn,
|
|
5237
|
+
animateColor: I1,
|
|
5238
|
+
animateTransform: M1,
|
|
5239
|
+
font: _1,
|
|
5240
|
+
"font-face": V1,
|
|
5241
|
+
"missing-glyph": D1,
|
|
5242
|
+
glyph: dl,
|
|
5259
5243
|
text: Ce,
|
|
5260
5244
|
tspan: Vr,
|
|
5261
|
-
tref:
|
|
5262
|
-
a:
|
|
5263
|
-
textPath:
|
|
5264
|
-
image:
|
|
5265
|
-
g:
|
|
5266
|
-
symbol:
|
|
5267
|
-
style:
|
|
5268
|
-
use:
|
|
5245
|
+
tref: k1,
|
|
5246
|
+
a: L1,
|
|
5247
|
+
textPath: B1,
|
|
5248
|
+
image: F1,
|
|
5249
|
+
g: en,
|
|
5250
|
+
symbol: U1,
|
|
5251
|
+
style: bl,
|
|
5252
|
+
use: z1,
|
|
5269
5253
|
mask: Dr,
|
|
5270
|
-
clipPath:
|
|
5254
|
+
clipPath: H1,
|
|
5271
5255
|
filter: kr,
|
|
5272
|
-
feDropShadow:
|
|
5273
|
-
feMorphology:
|
|
5274
|
-
feComposite:
|
|
5275
|
-
feColorMatrix:
|
|
5276
|
-
feGaussianBlur:
|
|
5277
|
-
title:
|
|
5278
|
-
desc:
|
|
5256
|
+
feDropShadow: Y1,
|
|
5257
|
+
feMorphology: X1,
|
|
5258
|
+
feComposite: W1,
|
|
5259
|
+
feColorMatrix: xl,
|
|
5260
|
+
feGaussianBlur: q1,
|
|
5261
|
+
title: Q1,
|
|
5262
|
+
desc: K1
|
|
5279
5263
|
};
|
|
5280
|
-
function
|
|
5264
|
+
function Co(a, e) {
|
|
5281
5265
|
var t = Object.keys(a);
|
|
5282
5266
|
if (Object.getOwnPropertySymbols) {
|
|
5283
5267
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5287,26 +5271,26 @@ function Io(a, e) {
|
|
|
5287
5271
|
}
|
|
5288
5272
|
return t;
|
|
5289
5273
|
}
|
|
5290
|
-
function
|
|
5274
|
+
function J1(a) {
|
|
5291
5275
|
for (var e = 1; e < arguments.length; e++) {
|
|
5292
5276
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5293
|
-
e % 2 ?
|
|
5294
|
-
|
|
5295
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5277
|
+
e % 2 ? Co(Object(t), !0).forEach(function(r) {
|
|
5278
|
+
Zi(a, r, t[r]);
|
|
5279
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Co(Object(t)).forEach(function(r) {
|
|
5296
5280
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5297
5281
|
});
|
|
5298
5282
|
}
|
|
5299
5283
|
return a;
|
|
5300
5284
|
}
|
|
5301
|
-
function
|
|
5285
|
+
function e2(a, e) {
|
|
5302
5286
|
var t = document.createElement("canvas");
|
|
5303
5287
|
return t.width = a, t.height = e, t;
|
|
5304
5288
|
}
|
|
5305
|
-
function
|
|
5306
|
-
return
|
|
5289
|
+
function t2(a) {
|
|
5290
|
+
return mi.apply(this, arguments);
|
|
5307
5291
|
}
|
|
5308
|
-
function
|
|
5309
|
-
return
|
|
5292
|
+
function mi() {
|
|
5293
|
+
return mi = xe(function* (a) {
|
|
5310
5294
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = document.createElement("img");
|
|
5311
5295
|
return e && (t.crossOrigin = "Anonymous"), new Promise((r, i) => {
|
|
5312
5296
|
t.onload = () => {
|
|
@@ -5315,7 +5299,7 @@ function xi() {
|
|
|
5315
5299
|
i(l);
|
|
5316
5300
|
}, t.src = a;
|
|
5317
5301
|
});
|
|
5318
|
-
}),
|
|
5302
|
+
}), mi.apply(this, arguments);
|
|
5319
5303
|
}
|
|
5320
5304
|
class $e {
|
|
5321
5305
|
constructor(e) {
|
|
@@ -5373,21 +5357,21 @@ class $e {
|
|
|
5373
5357
|
}
|
|
5374
5358
|
createElement(e) {
|
|
5375
5359
|
var t = e.nodeName.replace(/^[^:]+:/, ""), r = $e.elementTypes[t];
|
|
5376
|
-
return typeof r < "u" ? new r(this, e) : new
|
|
5360
|
+
return typeof r < "u" ? new r(this, e) : new p1(this, e);
|
|
5377
5361
|
}
|
|
5378
5362
|
createTextNode(e) {
|
|
5379
|
-
return new
|
|
5363
|
+
return new T1(this, e);
|
|
5380
5364
|
}
|
|
5381
5365
|
setViewBox(e) {
|
|
5382
|
-
this.screen.setViewBox(
|
|
5366
|
+
this.screen.setViewBox(J1({
|
|
5383
5367
|
document: this
|
|
5384
5368
|
}, e));
|
|
5385
5369
|
}
|
|
5386
5370
|
}
|
|
5387
|
-
$e.createCanvas =
|
|
5388
|
-
$e.createImage =
|
|
5389
|
-
$e.elementTypes =
|
|
5390
|
-
function
|
|
5371
|
+
$e.createCanvas = e2;
|
|
5372
|
+
$e.createImage = t2;
|
|
5373
|
+
$e.elementTypes = Z1;
|
|
5374
|
+
function Ao(a, e) {
|
|
5391
5375
|
var t = Object.keys(a);
|
|
5392
5376
|
if (Object.getOwnPropertySymbols) {
|
|
5393
5377
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5400,9 +5384,9 @@ function Mo(a, e) {
|
|
|
5400
5384
|
function Ve(a) {
|
|
5401
5385
|
for (var e = 1; e < arguments.length; e++) {
|
|
5402
5386
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5403
|
-
e % 2 ?
|
|
5404
|
-
|
|
5405
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5387
|
+
e % 2 ? Ao(Object(t), !0).forEach(function(r) {
|
|
5388
|
+
Zi(a, r, t[r]);
|
|
5389
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ao(Object(t)).forEach(function(r) {
|
|
5406
5390
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5407
5391
|
});
|
|
5408
5392
|
}
|
|
@@ -5417,7 +5401,7 @@ class bt {
|
|
|
5417
5401
|
*/
|
|
5418
5402
|
constructor(e, t) {
|
|
5419
5403
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5420
|
-
this.parser = new
|
|
5404
|
+
this.parser = new Ua(r), this.screen = new _r(e, r), this.options = r;
|
|
5421
5405
|
var i = new $e(this, r), n = i.createDocumentElement(t);
|
|
5422
5406
|
this.document = i, this.documentElement = n;
|
|
5423
5407
|
}
|
|
@@ -5431,7 +5415,7 @@ class bt {
|
|
|
5431
5415
|
static from(e, t) {
|
|
5432
5416
|
var r = arguments;
|
|
5433
5417
|
return xe(function* () {
|
|
5434
|
-
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new
|
|
5418
|
+
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new Ua(i), o = yield n.parse(t);
|
|
5435
5419
|
return new bt(e, o, i);
|
|
5436
5420
|
})();
|
|
5437
5421
|
}
|
|
@@ -5443,7 +5427,7 @@ class bt {
|
|
|
5443
5427
|
* @returns Canvg instance.
|
|
5444
5428
|
*/
|
|
5445
5429
|
static fromString(e, t) {
|
|
5446
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new
|
|
5430
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new Ua(r), n = i.parseFromString(t);
|
|
5447
5431
|
return new bt(e, n, r);
|
|
5448
5432
|
}
|
|
5449
5433
|
/**
|
|
@@ -5529,90 +5513,90 @@ class bt {
|
|
|
5529
5513
|
}
|
|
5530
5514
|
}
|
|
5531
5515
|
export {
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5516
|
+
L1 as AElement,
|
|
5517
|
+
I1 as AnimateColorElement,
|
|
5518
|
+
tn as AnimateElement,
|
|
5519
|
+
M1 as AnimateTransformElement,
|
|
5536
5520
|
ce as BoundingBox,
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5521
|
+
mo as CB1,
|
|
5522
|
+
bo as CB2,
|
|
5523
|
+
xo as CB3,
|
|
5524
|
+
To as CB4,
|
|
5541
5525
|
bt as Canvg,
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5526
|
+
O1 as CircleElement,
|
|
5527
|
+
H1 as ClipPathElement,
|
|
5528
|
+
A1 as DefsElement,
|
|
5529
|
+
K1 as DescElement,
|
|
5546
5530
|
$e as Document,
|
|
5547
5531
|
N as Element,
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5532
|
+
S1 as EllipseElement,
|
|
5533
|
+
xl as FeColorMatrixElement,
|
|
5534
|
+
W1 as FeCompositeElement,
|
|
5535
|
+
Y1 as FeDropShadowElement,
|
|
5536
|
+
q1 as FeGaussianBlurElement,
|
|
5537
|
+
X1 as FeMorphologyElement,
|
|
5554
5538
|
kr as FilterElement,
|
|
5555
5539
|
Z as Font,
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5540
|
+
_1 as FontElement,
|
|
5541
|
+
V1 as FontFaceElement,
|
|
5542
|
+
en as GElement,
|
|
5543
|
+
dl as GlyphElement,
|
|
5544
|
+
ml as GradientElement,
|
|
5545
|
+
F1 as ImageElement,
|
|
5546
|
+
E1 as LineElement,
|
|
5547
|
+
P1 as LinearGradientElement,
|
|
5548
|
+
C1 as MarkerElement,
|
|
5565
5549
|
Dr as MaskElement,
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5550
|
+
cl as Matrix,
|
|
5551
|
+
D1 as MissingGlyphElement,
|
|
5552
|
+
s1 as Mouse,
|
|
5569
5553
|
at as PSEUDO_ZERO,
|
|
5570
|
-
|
|
5554
|
+
Ua as Parser,
|
|
5571
5555
|
A as PathElement,
|
|
5572
5556
|
w as PathParser,
|
|
5573
|
-
|
|
5557
|
+
w1 as PatternElement,
|
|
5574
5558
|
D as Point,
|
|
5575
|
-
|
|
5576
|
-
|
|
5559
|
+
$1 as PolygonElement,
|
|
5560
|
+
yl as PolylineElement,
|
|
5577
5561
|
S as Property,
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5562
|
+
Oo as QB1,
|
|
5563
|
+
So as QB2,
|
|
5564
|
+
Eo as QB3,
|
|
5565
|
+
R1 as RadialGradientElement,
|
|
5566
|
+
pl as RectElement,
|
|
5583
5567
|
Ge as RenderedElement,
|
|
5584
|
-
|
|
5568
|
+
h1 as Rotate,
|
|
5585
5569
|
It as SVGElement,
|
|
5586
|
-
|
|
5587
|
-
|
|
5570
|
+
G1 as SVGFontLoader,
|
|
5571
|
+
v1 as Scale,
|
|
5588
5572
|
_r as Screen,
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5573
|
+
gl as Skew,
|
|
5574
|
+
f1 as SkewX,
|
|
5575
|
+
c1 as SkewY,
|
|
5576
|
+
N1 as StopElement,
|
|
5577
|
+
bl as StyleElement,
|
|
5578
|
+
U1 as SymbolElement,
|
|
5579
|
+
k1 as TRefElement,
|
|
5596
5580
|
Vr as TSpanElement,
|
|
5597
5581
|
Ce as TextElement,
|
|
5598
|
-
|
|
5599
|
-
|
|
5582
|
+
B1 as TextPathElement,
|
|
5583
|
+
Q1 as TitleElement,
|
|
5600
5584
|
Le as Transform,
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5585
|
+
l1 as Translate,
|
|
5586
|
+
p1 as UnknownElement,
|
|
5587
|
+
z1 as UseElement,
|
|
5588
|
+
n1 as ViewPort,
|
|
5605
5589
|
ht as compressSpaces,
|
|
5606
5590
|
bt as default,
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5591
|
+
i1 as getSelectorSpecificity,
|
|
5592
|
+
qb as normalizeAttributeName,
|
|
5593
|
+
Qb as normalizeColor,
|
|
5594
|
+
hl as parseExternalUrl,
|
|
5595
|
+
a2 as presets,
|
|
5612
5596
|
ie as toNumbers,
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5597
|
+
Yb as trimLeft,
|
|
5598
|
+
Xb as trimRight,
|
|
5599
|
+
po as vectorMagnitude,
|
|
5600
|
+
yo as vectorsAngle,
|
|
5601
|
+
yi as vectorsRatio
|
|
5618
5602
|
};
|