@idmui/spot 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/dist/{index-cba1108d.js → index-abf08d14.js} +7 -9
- package/dist/{index.es-8bdbaf79.js → index.es-1a8098f3.js} +1345 -1371
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +73 -73
- package/dist/{purify.es-78c333b1.js → purify.es-bcffc71a.js} +235 -244
- package/dist/style.css +1 -1
- package/package.json +79 -79
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as za } from "./index-abf08d14.js";
|
|
2
2
|
import "moment";
|
|
3
3
|
import "moment-timezone";
|
|
4
4
|
import "@element-plus/icons-vue";
|
|
@@ -7,272 +7,272 @@ import "@idm-plugin/meteo";
|
|
|
7
7
|
import "vue";
|
|
8
8
|
import "echarts";
|
|
9
9
|
import "axios";
|
|
10
|
-
var
|
|
11
|
-
function
|
|
10
|
+
var Ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
|
+
function _o(a) {
|
|
12
12
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
13
13
|
}
|
|
14
|
-
var
|
|
14
|
+
var vt = function(a) {
|
|
15
15
|
return a && a.Math === Math && a;
|
|
16
|
-
},
|
|
16
|
+
}, V = (
|
|
17
17
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
vt(typeof globalThis == "object" && globalThis) || vt(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
19
|
+
vt(typeof self == "object" && self) || vt(typeof Ke == "object" && Ke) || vt(typeof Ke == "object" && Ke) || // eslint-disable-next-line no-new-func -- fallback
|
|
20
20
|
function() {
|
|
21
21
|
return this;
|
|
22
22
|
}() || Function("return this")()
|
|
23
|
-
),
|
|
23
|
+
), $t = {}, k = function(a) {
|
|
24
24
|
try {
|
|
25
25
|
return !!a();
|
|
26
26
|
} catch {
|
|
27
27
|
return !0;
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, $l = k, le = !$l(function() {
|
|
30
30
|
return Object.defineProperty({}, 1, { get: function() {
|
|
31
31
|
return 7;
|
|
32
32
|
} })[1] !== 7;
|
|
33
|
-
}),
|
|
33
|
+
}), wl = k, mr = !wl(function() {
|
|
34
34
|
var a = (function() {
|
|
35
35
|
}).bind();
|
|
36
36
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
|
37
|
-
}),
|
|
38
|
-
return
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
var t =
|
|
37
|
+
}), Cl = mr, Ut = Function.prototype.call, Y = Cl ? Ut.bind(Ut) : function() {
|
|
38
|
+
return Ut.apply(Ut, arguments);
|
|
39
|
+
}, Vo = {}, Do = {}.propertyIsEnumerable, ko = Object.getOwnPropertyDescriptor, Al = ko && !Do.call({ 1: 2 }, 1);
|
|
40
|
+
Vo.f = Al ? function(e) {
|
|
41
|
+
var t = ko(this, e);
|
|
42
42
|
return !!t && t.enumerable;
|
|
43
|
-
} :
|
|
44
|
-
var
|
|
43
|
+
} : Do;
|
|
44
|
+
var Ti = function(a, e) {
|
|
45
45
|
return {
|
|
46
46
|
enumerable: !(a & 1),
|
|
47
47
|
configurable: !(a & 2),
|
|
48
48
|
writable: !(a & 4),
|
|
49
49
|
value: e
|
|
50
50
|
};
|
|
51
|
-
},
|
|
51
|
+
}, Lo = mr, Bo = Function.prototype, Ha = Bo.call, Pl = Lo && Bo.bind.bind(Ha, Ha), L = Lo ? Pl : function(a) {
|
|
52
52
|
return function() {
|
|
53
|
-
return
|
|
53
|
+
return Ha.apply(a, arguments);
|
|
54
54
|
};
|
|
55
|
-
},
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
return !
|
|
55
|
+
}, jo = L, Rl = jo({}.toString), Nl = jo("".slice), Be = function(a) {
|
|
56
|
+
return Nl(Rl(a), 8, -1);
|
|
57
|
+
}, Il = L, Ml = k, _l = Be, Qr = Object, Vl = Il("".split), Fo = Ml(function() {
|
|
58
|
+
return !Qr("z").propertyIsEnumerable(0);
|
|
59
59
|
}) ? function(a) {
|
|
60
|
-
return
|
|
61
|
-
} :
|
|
60
|
+
return _l(a) === "String" ? Vl(a, "") : Qr(a);
|
|
61
|
+
} : Qr, je = function(a) {
|
|
62
62
|
return a == null;
|
|
63
|
-
},
|
|
64
|
-
if (
|
|
65
|
-
throw new
|
|
63
|
+
}, Dl = je, kl = TypeError, he = function(a) {
|
|
64
|
+
if (Dl(a))
|
|
65
|
+
throw new kl("Can't call method on " + a);
|
|
66
66
|
return a;
|
|
67
|
-
},
|
|
68
|
-
return
|
|
69
|
-
},
|
|
70
|
-
return typeof a == "function" || a ===
|
|
67
|
+
}, Ll = Fo, Bl = he, wt = function(a) {
|
|
68
|
+
return Ll(Bl(a));
|
|
69
|
+
}, Kr = typeof document == "object" && document.all, B = typeof Kr > "u" && Kr !== void 0 ? function(a) {
|
|
70
|
+
return typeof a == "function" || a === Kr;
|
|
71
71
|
} : function(a) {
|
|
72
72
|
return typeof a == "function";
|
|
73
|
-
},
|
|
74
|
-
return typeof a == "object" ? a !== null :
|
|
75
|
-
},
|
|
76
|
-
return
|
|
73
|
+
}, jl = B, ve = function(a) {
|
|
74
|
+
return typeof a == "object" ? a !== null : jl(a);
|
|
75
|
+
}, Zr = V, Fl = B, Ul = function(a) {
|
|
76
|
+
return Fl(a) ? a : void 0;
|
|
77
77
|
}, Fe = function(a, e) {
|
|
78
|
-
return arguments.length < 2 ?
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
!
|
|
82
|
-
var
|
|
78
|
+
return arguments.length < 2 ? Ul(Zr[a]) : Zr[a] && Zr[a][e];
|
|
79
|
+
}, Gl = L, br = Gl({}.isPrototypeOf), zl = V, dn = zl.navigator, pn = dn && dn.userAgent, Ct = pn ? String(pn) : "", Uo = V, Jr = Ct, yn = Uo.process, mn = Uo.Deno, bn = yn && yn.versions || mn && mn.version, xn = bn && bn.v8, ue, fr;
|
|
80
|
+
xn && (ue = xn.split("."), fr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
|
|
81
|
+
!fr && Jr && (ue = Jr.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = Jr.match(/Chrome\/(\d+)/), ue && (fr = +ue[1])));
|
|
82
|
+
var Oi = fr, Tn = Oi, Hl = k, Yl = V, Xl = Yl.String, Go = !!Object.getOwnPropertySymbols && !Hl(function() {
|
|
83
83
|
var a = Symbol("symbol detection");
|
|
84
|
-
return !
|
|
85
|
-
!Symbol.sham &&
|
|
86
|
-
}),
|
|
84
|
+
return !Xl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
85
|
+
!Symbol.sham && Tn && Tn < 41;
|
|
86
|
+
}), Wl = Go, zo = Wl && !Symbol.sham && typeof Symbol.iterator == "symbol", ql = Fe, Ql = B, Kl = br, Zl = zo, Jl = Object, Ho = Zl ? function(a) {
|
|
87
87
|
return typeof a == "symbol";
|
|
88
88
|
} : function(a) {
|
|
89
|
-
var e =
|
|
90
|
-
return
|
|
91
|
-
},
|
|
89
|
+
var e = ql("Symbol");
|
|
90
|
+
return Ql(e) && Kl(e.prototype, Jl(a));
|
|
91
|
+
}, eh = String, xr = function(a) {
|
|
92
92
|
try {
|
|
93
|
-
return
|
|
93
|
+
return eh(a);
|
|
94
94
|
} catch {
|
|
95
95
|
return "Object";
|
|
96
96
|
}
|
|
97
|
-
},
|
|
98
|
-
if (
|
|
97
|
+
}, th = B, rh = xr, ah = TypeError, Te = function(a) {
|
|
98
|
+
if (th(a))
|
|
99
99
|
return a;
|
|
100
|
-
throw new
|
|
101
|
-
},
|
|
100
|
+
throw new ah(rh(a) + " is not a function");
|
|
101
|
+
}, ih = Te, nh = je, ot = function(a, e) {
|
|
102
102
|
var t = a[e];
|
|
103
|
-
return
|
|
104
|
-
},
|
|
103
|
+
return nh(t) ? void 0 : ih(t);
|
|
104
|
+
}, ea = Y, ta = B, ra = ve, sh = TypeError, oh = function(a, e) {
|
|
105
105
|
var t, r;
|
|
106
|
-
if (e === "string" &&
|
|
106
|
+
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)))
|
|
107
107
|
return r;
|
|
108
|
-
throw new
|
|
109
|
-
},
|
|
108
|
+
throw new sh("Can't convert object to primitive value");
|
|
109
|
+
}, Yo = { exports: {} }, On = V, uh = Object.defineProperty, Si = function(a, e) {
|
|
110
110
|
try {
|
|
111
|
-
|
|
111
|
+
uh(On, a, { value: e, configurable: !0, writable: !0 });
|
|
112
112
|
} catch {
|
|
113
|
-
|
|
113
|
+
On[a] = e;
|
|
114
114
|
}
|
|
115
115
|
return e;
|
|
116
|
-
},
|
|
117
|
-
(
|
|
118
|
-
version: "3.
|
|
116
|
+
}, lh = V, hh = Si, Sn = "__core-js_shared__", En = Yo.exports = lh[Sn] || hh(Sn, {});
|
|
117
|
+
(En.versions || (En.versions = [])).push({
|
|
118
|
+
version: "3.41.0",
|
|
119
119
|
mode: "global",
|
|
120
120
|
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
|
|
121
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
|
121
|
+
license: "https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",
|
|
122
122
|
source: "https://github.com/zloirock/core-js"
|
|
123
123
|
});
|
|
124
|
-
var
|
|
125
|
-
return
|
|
126
|
-
},
|
|
127
|
-
return
|
|
128
|
-
},
|
|
129
|
-
return
|
|
130
|
-
},
|
|
131
|
-
return "Symbol(" + (a === void 0 ? "" : a) + ")_" +
|
|
132
|
-
},
|
|
133
|
-
return
|
|
134
|
-
},
|
|
135
|
-
if (!
|
|
124
|
+
var Ei = Yo.exports, $n = Ei, $i = function(a, e) {
|
|
125
|
+
return $n[a] || ($n[a] = e || {});
|
|
126
|
+
}, vh = he, fh = Object, Tr = function(a) {
|
|
127
|
+
return fh(vh(a));
|
|
128
|
+
}, ch = L, gh = Tr, dh = ch({}.hasOwnProperty), fe = Object.hasOwn || function(e, t) {
|
|
129
|
+
return dh(gh(e), t);
|
|
130
|
+
}, ph = L, yh = 0, mh = Math.random(), bh = ph(1 .toString), Xo = function(a) {
|
|
131
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + bh(++yh + mh, 36);
|
|
132
|
+
}, xh = V, Th = $i, wn = fe, Oh = Xo, Sh = Go, Eh = zo, Ze = xh.Symbol, aa = Th("wks"), $h = Eh ? Ze.for || Ze : Ze && Ze.withoutSetter || Oh, z = function(a) {
|
|
133
|
+
return wn(aa, a) || (aa[a] = Sh && wn(Ze, a) ? Ze[a] : $h("Symbol." + a)), aa[a];
|
|
134
|
+
}, wh = Y, Cn = ve, An = Ho, Ch = ot, Ah = oh, Ph = z, Rh = TypeError, Nh = Ph("toPrimitive"), Ih = function(a, e) {
|
|
135
|
+
if (!Cn(a) || An(a))
|
|
136
136
|
return a;
|
|
137
|
-
var t =
|
|
137
|
+
var t = Ch(a, Nh), r;
|
|
138
138
|
if (t) {
|
|
139
|
-
if (e === void 0 && (e = "default"), r =
|
|
139
|
+
if (e === void 0 && (e = "default"), r = wh(t, a, e), !Cn(r) || An(r))
|
|
140
140
|
return r;
|
|
141
|
-
throw new
|
|
142
|
-
}
|
|
143
|
-
return e === void 0 && (e = "number"),
|
|
144
|
-
},
|
|
145
|
-
var e =
|
|
146
|
-
return
|
|
147
|
-
},
|
|
148
|
-
return
|
|
149
|
-
},
|
|
150
|
-
return Object.defineProperty(
|
|
141
|
+
throw new Rh("Can't convert object to primitive value");
|
|
142
|
+
}
|
|
143
|
+
return e === void 0 && (e = "number"), Ah(a, e);
|
|
144
|
+
}, Mh = Ih, _h = Ho, Wo = function(a) {
|
|
145
|
+
var e = Mh(a, "string");
|
|
146
|
+
return _h(e) ? e : e + "";
|
|
147
|
+
}, Vh = V, Pn = ve, Ya = Vh.document, Dh = Pn(Ya) && Pn(Ya.createElement), Or = function(a) {
|
|
148
|
+
return Dh ? Ya.createElement(a) : {};
|
|
149
|
+
}, kh = le, Lh = k, Bh = Or, qo = !kh && !Lh(function() {
|
|
150
|
+
return Object.defineProperty(Bh("div"), "a", {
|
|
151
151
|
get: function() {
|
|
152
152
|
return 7;
|
|
153
153
|
}
|
|
154
154
|
}).a !== 7;
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
if (e =
|
|
155
|
+
}), jh = le, Fh = Y, Uh = Vo, Gh = Ti, zh = wt, Hh = Wo, Yh = fe, Xh = qo, Rn = Object.getOwnPropertyDescriptor;
|
|
156
|
+
$t.f = jh ? Rn : function(e, t) {
|
|
157
|
+
if (e = zh(e), t = Hh(t), Xh)
|
|
158
158
|
try {
|
|
159
|
-
return
|
|
159
|
+
return Rn(e, t);
|
|
160
160
|
} catch {
|
|
161
161
|
}
|
|
162
|
-
if (
|
|
163
|
-
return
|
|
162
|
+
if (Yh(e, t))
|
|
163
|
+
return Gh(!Fh(Uh.f, e, t), e[t]);
|
|
164
164
|
};
|
|
165
|
-
var Oe = {},
|
|
165
|
+
var Oe = {}, Wh = le, qh = k, Qo = Wh && qh(function() {
|
|
166
166
|
return Object.defineProperty(function() {
|
|
167
167
|
}, "prototype", {
|
|
168
168
|
value: 42,
|
|
169
169
|
writable: !1
|
|
170
170
|
}).prototype !== 42;
|
|
171
|
-
}),
|
|
172
|
-
if (
|
|
171
|
+
}), Qh = ve, Kh = String, Zh = TypeError, J = function(a) {
|
|
172
|
+
if (Qh(a))
|
|
173
173
|
return a;
|
|
174
|
-
throw new
|
|
175
|
-
},
|
|
176
|
-
Oe.f =
|
|
177
|
-
if (
|
|
178
|
-
var i =
|
|
179
|
-
i && i[
|
|
180
|
-
configurable:
|
|
181
|
-
enumerable:
|
|
174
|
+
throw new Zh(Kh(a) + " is not an object");
|
|
175
|
+
}, Jh = le, ev = qo, tv = Qo, Gt = J, Nn = Wo, rv = TypeError, ia = Object.defineProperty, av = Object.getOwnPropertyDescriptor, na = "enumerable", sa = "configurable", oa = "writable";
|
|
176
|
+
Oe.f = Jh ? tv ? function(e, t, r) {
|
|
177
|
+
if (Gt(e), t = Nn(t), Gt(r), typeof e == "function" && t === "prototype" && "value" in r && oa in r && !r[oa]) {
|
|
178
|
+
var i = av(e, t);
|
|
179
|
+
i && i[oa] && (e[t] = r.value, r = {
|
|
180
|
+
configurable: sa in r ? r[sa] : i[sa],
|
|
181
|
+
enumerable: na in r ? r[na] : i[na],
|
|
182
182
|
writable: !1
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
return
|
|
186
|
-
} :
|
|
187
|
-
if (
|
|
185
|
+
return ia(e, t, r);
|
|
186
|
+
} : ia : function(e, t, r) {
|
|
187
|
+
if (Gt(e), t = Nn(t), Gt(r), ev)
|
|
188
188
|
try {
|
|
189
|
-
return
|
|
189
|
+
return ia(e, t, r);
|
|
190
190
|
} catch {
|
|
191
191
|
}
|
|
192
192
|
if ("get" in r || "set" in r)
|
|
193
|
-
throw new
|
|
193
|
+
throw new rv("Accessors not supported");
|
|
194
194
|
return "value" in r && (e[t] = r.value), e;
|
|
195
195
|
};
|
|
196
|
-
var
|
|
197
|
-
return
|
|
196
|
+
var iv = le, nv = Oe, sv = Ti, At = iv ? function(a, e, t) {
|
|
197
|
+
return nv.f(a, e, sv(1, t));
|
|
198
198
|
} : function(a, e, t) {
|
|
199
199
|
return a[e] = t, a;
|
|
200
|
-
},
|
|
201
|
-
}).name === "something",
|
|
202
|
-
EXISTS:
|
|
203
|
-
PROPER:
|
|
204
|
-
CONFIGURABLE:
|
|
205
|
-
},
|
|
206
|
-
|
|
207
|
-
return
|
|
200
|
+
}, Ko = { exports: {} }, Xa = le, ov = fe, Zo = Function.prototype, uv = Xa && Object.getOwnPropertyDescriptor, wi = ov(Zo, "name"), lv = wi && (function() {
|
|
201
|
+
}).name === "something", hv = wi && (!Xa || Xa && uv(Zo, "name").configurable), Sr = {
|
|
202
|
+
EXISTS: wi,
|
|
203
|
+
PROPER: lv,
|
|
204
|
+
CONFIGURABLE: hv
|
|
205
|
+
}, vv = L, fv = B, Wa = Ei, cv = vv(Function.toString);
|
|
206
|
+
fv(Wa.inspectSource) || (Wa.inspectSource = function(a) {
|
|
207
|
+
return cv(a);
|
|
208
208
|
});
|
|
209
|
-
var
|
|
210
|
-
return
|
|
211
|
-
},
|
|
212
|
-
return
|
|
213
|
-
},
|
|
209
|
+
var Ci = Wa.inspectSource, gv = V, dv = B, In = gv.WeakMap, pv = dv(In) && /native code/.test(String(In)), yv = $i, mv = Xo, Mn = yv("keys"), Ai = function(a) {
|
|
210
|
+
return Mn[a] || (Mn[a] = mv(a));
|
|
211
|
+
}, Pi = {}, bv = pv, Jo = V, xv = ve, Tv = At, ua = fe, la = Ei, Ov = Ai, Sv = Pi, _n = "Object already initialized", qa = Jo.TypeError, Ev = Jo.WeakMap, cr, Ot, gr, $v = function(a) {
|
|
212
|
+
return gr(a) ? Ot(a) : cr(a, {});
|
|
213
|
+
}, wv = function(a) {
|
|
214
214
|
return function(e) {
|
|
215
215
|
var t;
|
|
216
|
-
if (!
|
|
217
|
-
throw new
|
|
216
|
+
if (!xv(e) || (t = Ot(e)).type !== a)
|
|
217
|
+
throw new qa("Incompatible receiver, " + a + " required");
|
|
218
218
|
return t;
|
|
219
219
|
};
|
|
220
220
|
};
|
|
221
|
-
if (
|
|
222
|
-
var de =
|
|
223
|
-
de.get = de.get, de.has = de.has, de.set = de.set,
|
|
221
|
+
if (bv || la.state) {
|
|
222
|
+
var de = la.state || (la.state = new Ev());
|
|
223
|
+
de.get = de.get, de.has = de.has, de.set = de.set, cr = function(a, e) {
|
|
224
224
|
if (de.has(a))
|
|
225
|
-
throw new
|
|
225
|
+
throw new qa(_n);
|
|
226
226
|
return e.facade = a, de.set(a, e), e;
|
|
227
|
-
},
|
|
227
|
+
}, Ot = function(a) {
|
|
228
228
|
return de.get(a) || {};
|
|
229
|
-
},
|
|
229
|
+
}, gr = function(a) {
|
|
230
230
|
return de.has(a);
|
|
231
231
|
};
|
|
232
232
|
} else {
|
|
233
|
-
var Ye =
|
|
234
|
-
|
|
235
|
-
if (
|
|
236
|
-
throw new
|
|
237
|
-
return e.facade = a,
|
|
238
|
-
},
|
|
239
|
-
return
|
|
240
|
-
},
|
|
241
|
-
return
|
|
233
|
+
var Ye = Ov("state");
|
|
234
|
+
Sv[Ye] = !0, cr = function(a, e) {
|
|
235
|
+
if (ua(a, Ye))
|
|
236
|
+
throw new qa(_n);
|
|
237
|
+
return e.facade = a, Tv(a, Ye, e), e;
|
|
238
|
+
}, Ot = function(a) {
|
|
239
|
+
return ua(a, Ye) ? a[Ye] : {};
|
|
240
|
+
}, gr = function(a) {
|
|
241
|
+
return ua(a, Ye);
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
var
|
|
245
|
-
set:
|
|
246
|
-
get:
|
|
247
|
-
has:
|
|
248
|
-
enforce:
|
|
249
|
-
getterFor:
|
|
250
|
-
},
|
|
251
|
-
return
|
|
244
|
+
var Er = {
|
|
245
|
+
set: cr,
|
|
246
|
+
get: Ot,
|
|
247
|
+
has: gr,
|
|
248
|
+
enforce: $v,
|
|
249
|
+
getterFor: wv
|
|
250
|
+
}, Ri = L, Cv = k, Av = B, zt = fe, Qa = le, Pv = Sr.CONFIGURABLE, Rv = Ci, eu = Er, Nv = eu.enforce, Iv = eu.get, Vn = String, sr = Object.defineProperty, Mv = Ri("".slice), _v = Ri("".replace), Vv = Ri([].join), Dv = Qa && !Cv(function() {
|
|
251
|
+
return sr(function() {
|
|
252
252
|
}, "length", { value: 8 }).length !== 8;
|
|
253
|
-
}),
|
|
254
|
-
|
|
253
|
+
}), kv = String(String).split("String"), Lv = Ko.exports = function(a, e, t) {
|
|
254
|
+
Mv(Vn(e), 0, 7) === "Symbol(" && (e = "[" + _v(Vn(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!zt(a, "name") || Pv && a.name !== e) && (Qa ? sr(a, "name", { value: e, configurable: !0 }) : a.name = e), Dv && t && zt(t, "arity") && a.length !== t.arity && sr(a, "length", { value: t.arity });
|
|
255
255
|
try {
|
|
256
|
-
t &&
|
|
256
|
+
t && zt(t, "constructor") && t.constructor ? Qa && sr(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
|
257
257
|
} catch {
|
|
258
258
|
}
|
|
259
|
-
var r =
|
|
260
|
-
return
|
|
259
|
+
var r = Nv(a);
|
|
260
|
+
return zt(r, "source") || (r.source = Vv(kv, typeof e == "string" ? e : "")), a;
|
|
261
261
|
};
|
|
262
|
-
Function.prototype.toString =
|
|
263
|
-
return
|
|
262
|
+
Function.prototype.toString = Lv(function() {
|
|
263
|
+
return Av(this) && Iv(this).source || Rv(this);
|
|
264
264
|
}, "toString");
|
|
265
|
-
var
|
|
265
|
+
var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r) {
|
|
266
266
|
r || (r = {});
|
|
267
267
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
|
268
|
-
if (
|
|
269
|
-
i ? a[e] = t :
|
|
268
|
+
if (Bv(t) && Fv(t, n, r), r.global)
|
|
269
|
+
i ? a[e] = t : Uv(e, t);
|
|
270
270
|
else {
|
|
271
271
|
try {
|
|
272
272
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
|
273
273
|
} catch {
|
|
274
274
|
}
|
|
275
|
-
i ? a[e] = t :
|
|
275
|
+
i ? a[e] = t : jv.f(a, e, {
|
|
276
276
|
value: t,
|
|
277
277
|
enumerable: !1,
|
|
278
278
|
configurable: !r.nonConfigurable,
|
|
@@ -280,26 +280,26 @@ var iu = eu.exports, Gv = B, zv = Oe, Hv = iu, Yv = Ei, Ue = function(a, e, t, r
|
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
return a;
|
|
283
|
-
},
|
|
283
|
+
}, ru = {}, Gv = Math.ceil, zv = Math.floor, Hv = Math.trunc || function(e) {
|
|
284
284
|
var t = +e;
|
|
285
|
-
return (t > 0 ?
|
|
286
|
-
},
|
|
285
|
+
return (t > 0 ? zv : Gv)(t);
|
|
286
|
+
}, Yv = Hv, $r = function(a) {
|
|
287
287
|
var e = +a;
|
|
288
|
-
return e !== e || e === 0 ? 0 :
|
|
289
|
-
},
|
|
290
|
-
var t =
|
|
291
|
-
return t < 0 ?
|
|
292
|
-
},
|
|
293
|
-
var e =
|
|
294
|
-
return e > 0 ?
|
|
295
|
-
},
|
|
296
|
-
return
|
|
297
|
-
},
|
|
288
|
+
return e !== e || e === 0 ? 0 : Yv(e);
|
|
289
|
+
}, Xv = $r, Wv = Math.max, qv = Math.min, Qv = function(a, e) {
|
|
290
|
+
var t = Xv(a);
|
|
291
|
+
return t < 0 ? Wv(t + e, 0) : qv(t, e);
|
|
292
|
+
}, Kv = $r, Zv = Math.min, ut = function(a) {
|
|
293
|
+
var e = Kv(a);
|
|
294
|
+
return e > 0 ? Zv(e, 9007199254740991) : 0;
|
|
295
|
+
}, Jv = ut, Ni = function(a) {
|
|
296
|
+
return Jv(a.length);
|
|
297
|
+
}, ef = wt, tf = Qv, rf = Ni, Dn = function(a) {
|
|
298
298
|
return function(e, t, r) {
|
|
299
|
-
var i =
|
|
299
|
+
var i = ef(e), n = rf(i);
|
|
300
300
|
if (n === 0)
|
|
301
301
|
return !a && -1;
|
|
302
|
-
var o =
|
|
302
|
+
var o = tf(r, n), s;
|
|
303
303
|
if (a && t !== t) {
|
|
304
304
|
for (; n > o; )
|
|
305
305
|
if (s = i[o++], s !== s)
|
|
@@ -310,21 +310,21 @@ var iu = eu.exports, Gv = B, zv = Oe, Hv = iu, Yv = Ei, Ue = function(a, e, t, r
|
|
|
310
310
|
return a || o || 0;
|
|
311
311
|
return !a && -1;
|
|
312
312
|
};
|
|
313
|
-
},
|
|
313
|
+
}, au = {
|
|
314
314
|
// `Array.prototype.includes` method
|
|
315
315
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
316
|
-
includes:
|
|
316
|
+
includes: Dn(!0),
|
|
317
317
|
// `Array.prototype.indexOf` method
|
|
318
318
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
319
|
-
indexOf:
|
|
320
|
-
},
|
|
321
|
-
var t =
|
|
319
|
+
indexOf: Dn(!1)
|
|
320
|
+
}, af = L, ha = fe, nf = wt, sf = au.indexOf, of = Pi, kn = af([].push), iu = function(a, e) {
|
|
321
|
+
var t = nf(a), r = 0, i = [], n;
|
|
322
322
|
for (n in t)
|
|
323
|
-
!
|
|
323
|
+
!ha(of, n) && ha(t, n) && kn(i, n);
|
|
324
324
|
for (; e.length > r; )
|
|
325
|
-
|
|
325
|
+
ha(t, n = e[r++]) && (~sf(i, n) || kn(i, n));
|
|
326
326
|
return i;
|
|
327
|
-
},
|
|
327
|
+
}, Ii = [
|
|
328
328
|
"constructor",
|
|
329
329
|
"hasOwnProperty",
|
|
330
330
|
"isPrototypeOf",
|
|
@@ -332,187 +332,187 @@ var iu = eu.exports, Gv = B, zv = Oe, Hv = iu, Yv = Ei, Ue = function(a, e, t, r
|
|
|
332
332
|
"toLocaleString",
|
|
333
333
|
"toString",
|
|
334
334
|
"valueOf"
|
|
335
|
-
],
|
|
336
|
-
|
|
337
|
-
return
|
|
335
|
+
], uf = iu, lf = Ii, hf = lf.concat("length", "prototype");
|
|
336
|
+
ru.f = Object.getOwnPropertyNames || function(e) {
|
|
337
|
+
return uf(e, hf);
|
|
338
338
|
};
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
var
|
|
342
|
-
var t =
|
|
343
|
-
return r ?
|
|
344
|
-
},
|
|
345
|
-
for (var r =
|
|
339
|
+
var nu = {};
|
|
340
|
+
nu.f = Object.getOwnPropertySymbols;
|
|
341
|
+
var vf = Fe, ff = L, cf = ru, gf = nu, df = J, pf = ff([].concat), yf = vf("Reflect", "ownKeys") || function(e) {
|
|
342
|
+
var t = cf.f(df(e)), r = gf.f;
|
|
343
|
+
return r ? pf(t, r(e)) : t;
|
|
344
|
+
}, Ln = fe, mf = yf, bf = $t, xf = Oe, Tf = function(a, e, t) {
|
|
345
|
+
for (var r = mf(e), i = xf.f, n = bf.f, o = 0; o < r.length; o++) {
|
|
346
346
|
var s = r[o];
|
|
347
|
-
!
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
var t =
|
|
351
|
-
return t ===
|
|
352
|
-
},
|
|
353
|
-
return String(a).replace(
|
|
354
|
-
},
|
|
347
|
+
!Ln(a, s) && !(t && Ln(t, s)) && i(a, s, n(e, s));
|
|
348
|
+
}
|
|
349
|
+
}, Of = k, Sf = B, Ef = /#|\.prototype\./, Pt = function(a, e) {
|
|
350
|
+
var t = wf[$f(a)];
|
|
351
|
+
return t === Af ? !0 : t === Cf ? !1 : Sf(e) ? Of(e) : !!e;
|
|
352
|
+
}, $f = Pt.normalize = function(a) {
|
|
353
|
+
return String(a).replace(Ef, ".").toLowerCase();
|
|
354
|
+
}, wf = Pt.data = {}, Cf = Pt.NATIVE = "N", Af = Pt.POLYFILL = "P", su = Pt, Ht = V, Pf = $t.f, Rf = At, Nf = Ue, If = Si, Mf = Tf, _f = su, ee = function(a, e) {
|
|
355
355
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
|
356
|
-
if (r ? o =
|
|
356
|
+
if (r ? o = Ht : i ? o = Ht[t] || If(t, {}) : o = Ht[t] && Ht[t].prototype, o)
|
|
357
357
|
for (s in e) {
|
|
358
|
-
if (l = e[s], a.dontCallGetSet ? (h =
|
|
358
|
+
if (l = e[s], a.dontCallGetSet ? (h = Pf(o, s), u = h && h.value) : u = o[s], n = _f(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
359
359
|
if (typeof l == typeof u)
|
|
360
360
|
continue;
|
|
361
|
-
|
|
361
|
+
Mf(l, u);
|
|
362
362
|
}
|
|
363
|
-
(a.sham || u && u.sham) &&
|
|
363
|
+
(a.sham || u && u.sham) && Rf(l, "sham", !0), Nf(o, s, l, a);
|
|
364
364
|
}
|
|
365
|
-
},
|
|
366
|
-
return
|
|
367
|
-
},
|
|
368
|
-
return
|
|
369
|
-
}(),
|
|
365
|
+
}, ft = V, Vf = Ct, Df = Be, Yt = function(a) {
|
|
366
|
+
return Vf.slice(0, a.length) === a;
|
|
367
|
+
}, ou = function() {
|
|
368
|
+
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" : Df(ft.process) === "process" ? "NODE" : ft.window && ft.document ? "BROWSER" : "REST";
|
|
369
|
+
}(), kf = ou, wr = kf === "NODE", Lf = L, Bf = Te, jf = function(a, e, t) {
|
|
370
370
|
try {
|
|
371
|
-
return
|
|
371
|
+
return Lf(Bf(Object.getOwnPropertyDescriptor(a, e)[t]));
|
|
372
372
|
} catch {
|
|
373
373
|
}
|
|
374
|
-
},
|
|
375
|
-
return
|
|
376
|
-
},
|
|
377
|
-
if (
|
|
374
|
+
}, Ff = ve, Uf = function(a) {
|
|
375
|
+
return Ff(a) || a === null;
|
|
376
|
+
}, Gf = Uf, zf = String, Hf = TypeError, Yf = function(a) {
|
|
377
|
+
if (Gf(a))
|
|
378
378
|
return a;
|
|
379
|
-
throw new
|
|
380
|
-
},
|
|
379
|
+
throw new Hf("Can't set " + zf(a) + " as a prototype");
|
|
380
|
+
}, Xf = jf, Wf = ve, qf = he, Qf = Yf, uu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
381
381
|
var a = !1, e = {}, t;
|
|
382
382
|
try {
|
|
383
|
-
t =
|
|
383
|
+
t = Xf(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
|
|
384
384
|
} catch {
|
|
385
385
|
}
|
|
386
386
|
return function(i, n) {
|
|
387
|
-
return
|
|
387
|
+
return qf(i), Qf(n), Wf(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
|
388
388
|
};
|
|
389
|
-
}() : void 0),
|
|
390
|
-
a && !t && (a = a.prototype), a && !
|
|
391
|
-
},
|
|
392
|
-
return t.get &&
|
|
393
|
-
},
|
|
394
|
-
var e =
|
|
395
|
-
|
|
389
|
+
}() : void 0), Kf = Oe.f, Zf = fe, Jf = z, Bn = Jf("toStringTag"), Cr = function(a, e, t) {
|
|
390
|
+
a && !t && (a = a.prototype), a && !Zf(a, Bn) && Kf(a, Bn, { configurable: !0, value: e });
|
|
391
|
+
}, jn = tu, ec = Oe, tc = function(a, e, t) {
|
|
392
|
+
return t.get && jn(t.get, e, { getter: !0 }), t.set && jn(t.set, e, { setter: !0 }), ec.f(a, e, t);
|
|
393
|
+
}, rc = Fe, ac = tc, ic = z, nc = le, Fn = ic("species"), sc = function(a) {
|
|
394
|
+
var e = rc(a);
|
|
395
|
+
nc && e && !e[Fn] && ac(e, Fn, {
|
|
396
396
|
configurable: !0,
|
|
397
397
|
get: function() {
|
|
398
398
|
return this;
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
|
-
},
|
|
402
|
-
if (
|
|
401
|
+
}, oc = br, uc = TypeError, lc = function(a, e) {
|
|
402
|
+
if (oc(e, a))
|
|
403
403
|
return a;
|
|
404
|
-
throw new
|
|
405
|
-
},
|
|
406
|
-
|
|
407
|
-
var
|
|
404
|
+
throw new uc("Incorrect invocation");
|
|
405
|
+
}, hc = z, vc = hc("toStringTag"), lu = {};
|
|
406
|
+
lu[vc] = "z";
|
|
407
|
+
var fc = String(lu) === "[object z]", cc = fc, gc = B, or = Be, dc = z, pc = dc("toStringTag"), yc = Object, mc = or(function() {
|
|
408
408
|
return arguments;
|
|
409
|
-
}()) === "Arguments",
|
|
409
|
+
}()) === "Arguments", bc = function(a, e) {
|
|
410
410
|
try {
|
|
411
411
|
return a[e];
|
|
412
412
|
} catch {
|
|
413
413
|
}
|
|
414
|
-
},
|
|
414
|
+
}, Mi = cc ? or : function(a) {
|
|
415
415
|
var e, t, r;
|
|
416
|
-
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t =
|
|
417
|
-
},
|
|
418
|
-
},
|
|
419
|
-
if (!
|
|
416
|
+
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = bc(e = yc(a), pc)) == "string" ? t : mc ? or(e) : (r = or(e)) === "Object" && gc(e.callee) ? "Arguments" : r;
|
|
417
|
+
}, xc = L, Tc = k, hu = B, Oc = Mi, Sc = Fe, Ec = Ci, vu = function() {
|
|
418
|
+
}, fu = Sc("Reflect", "construct"), _i = /^\s*(?:class|function)\b/, $c = xc(_i.exec), wc = !_i.test(vu), ct = function(e) {
|
|
419
|
+
if (!hu(e))
|
|
420
420
|
return !1;
|
|
421
421
|
try {
|
|
422
|
-
return
|
|
422
|
+
return fu(vu, [], e), !0;
|
|
423
423
|
} catch {
|
|
424
424
|
return !1;
|
|
425
425
|
}
|
|
426
|
-
},
|
|
427
|
-
if (!
|
|
426
|
+
}, cu = function(e) {
|
|
427
|
+
if (!hu(e))
|
|
428
428
|
return !1;
|
|
429
|
-
switch (
|
|
429
|
+
switch (Oc(e)) {
|
|
430
430
|
case "AsyncFunction":
|
|
431
431
|
case "GeneratorFunction":
|
|
432
432
|
case "AsyncGeneratorFunction":
|
|
433
433
|
return !1;
|
|
434
434
|
}
|
|
435
435
|
try {
|
|
436
|
-
return
|
|
436
|
+
return wc || !!$c(_i, Ec(e));
|
|
437
437
|
} catch {
|
|
438
438
|
return !0;
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
|
-
|
|
442
|
-
var
|
|
441
|
+
cu.sham = !0;
|
|
442
|
+
var Cc = !fu || Tc(function() {
|
|
443
443
|
var a;
|
|
444
|
-
return
|
|
444
|
+
return ct(ct.call) || !ct(Object) || !ct(function() {
|
|
445
445
|
a = !0;
|
|
446
446
|
}) || a;
|
|
447
|
-
}) ?
|
|
448
|
-
if (
|
|
447
|
+
}) ? cu : ct, Ac = Cc, Pc = xr, Rc = TypeError, Nc = function(a) {
|
|
448
|
+
if (Ac(a))
|
|
449
449
|
return a;
|
|
450
|
-
throw new
|
|
451
|
-
},
|
|
452
|
-
var t =
|
|
453
|
-
return t === void 0 ||
|
|
454
|
-
},
|
|
455
|
-
return
|
|
456
|
-
}),
|
|
457
|
-
if (
|
|
458
|
-
return
|
|
459
|
-
},
|
|
460
|
-
return
|
|
450
|
+
throw new Rc(Pc(a) + " is not a constructor");
|
|
451
|
+
}, Un = J, Ic = Nc, Mc = je, _c = z, Vc = _c("species"), gu = function(a, e) {
|
|
452
|
+
var t = Un(a).constructor, r;
|
|
453
|
+
return t === void 0 || Mc(r = Un(t)[Vc]) ? e : Ic(r);
|
|
454
|
+
}, Dc = mr, du = Function.prototype, Gn = du.apply, zn = du.call, pu = typeof Reflect == "object" && Reflect.apply || (Dc ? zn.bind(Gn) : function() {
|
|
455
|
+
return zn.apply(Gn, arguments);
|
|
456
|
+
}), kc = Be, Lc = L, Ar = function(a) {
|
|
457
|
+
if (kc(a) === "Function")
|
|
458
|
+
return Lc(a);
|
|
459
|
+
}, Hn = Ar, Bc = Te, jc = mr, Fc = Hn(Hn.bind), Vi = function(a, e) {
|
|
460
|
+
return Bc(a), e === void 0 ? a : jc ? Fc(a, e) : function() {
|
|
461
461
|
return a.apply(e, arguments);
|
|
462
462
|
};
|
|
463
|
-
},
|
|
463
|
+
}, Uc = Fe, yu = Uc("document", "documentElement"), Gc = L, zc = Gc([].slice), Hc = TypeError, Yc = function(a, e) {
|
|
464
464
|
if (a < e)
|
|
465
|
-
throw new
|
|
465
|
+
throw new Hc("Not enough arguments");
|
|
466
466
|
return a;
|
|
467
|
-
},
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
}, Xc = Ct, mu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Xc), ae = V, Wc = pu, qc = Vi, Yn = B, Qc = fe, bu = k, Xn = yu, Kc = zc, Wn = Or, Zc = Yc, Jc = mu, eg = wr, Ka = ae.setImmediate, Za = ae.clearImmediate, tg = ae.process, va = ae.Dispatch, rg = ae.Function, qn = ae.MessageChannel, ag = ae.String, fa = 0, xt = {}, Qn = "onreadystatechange", St, Ie, ca, ga;
|
|
468
|
+
bu(function() {
|
|
469
|
+
St = ae.location;
|
|
470
470
|
});
|
|
471
|
-
var
|
|
472
|
-
if (
|
|
473
|
-
var e =
|
|
474
|
-
delete
|
|
471
|
+
var Di = function(a) {
|
|
472
|
+
if (Qc(xt, a)) {
|
|
473
|
+
var e = xt[a];
|
|
474
|
+
delete xt[a], e();
|
|
475
475
|
}
|
|
476
|
-
},
|
|
476
|
+
}, da = function(a) {
|
|
477
477
|
return function() {
|
|
478
|
-
|
|
478
|
+
Di(a);
|
|
479
479
|
};
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
},
|
|
483
|
-
|
|
480
|
+
}, Kn = function(a) {
|
|
481
|
+
Di(a.data);
|
|
482
|
+
}, Zn = function(a) {
|
|
483
|
+
ae.postMessage(ag(a), St.protocol + "//" + St.host);
|
|
484
484
|
};
|
|
485
|
-
(!
|
|
486
|
-
|
|
487
|
-
var t =
|
|
488
|
-
return
|
|
489
|
-
|
|
490
|
-
}, Ie(
|
|
491
|
-
},
|
|
492
|
-
delete
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
} :
|
|
496
|
-
|
|
497
|
-
} :
|
|
498
|
-
|
|
499
|
-
|
|
485
|
+
(!Ka || !Za) && (Ka = function(e) {
|
|
486
|
+
Zc(arguments.length, 1);
|
|
487
|
+
var t = Yn(e) ? e : rg(e), r = Kc(arguments, 1);
|
|
488
|
+
return xt[++fa] = function() {
|
|
489
|
+
Wc(t, void 0, r);
|
|
490
|
+
}, Ie(fa), fa;
|
|
491
|
+
}, Za = function(e) {
|
|
492
|
+
delete xt[e];
|
|
493
|
+
}, eg ? Ie = function(a) {
|
|
494
|
+
tg.nextTick(da(a));
|
|
495
|
+
} : va && va.now ? Ie = function(a) {
|
|
496
|
+
va.now(da(a));
|
|
497
|
+
} : qn && !Jc ? (ca = new qn(), ga = ca.port2, ca.port1.onmessage = Kn, Ie = qc(ga.postMessage, ga)) : ae.addEventListener && Yn(ae.postMessage) && !ae.importScripts && St && St.protocol !== "file:" && !bu(Zn) ? (Ie = Zn, ae.addEventListener("message", Kn, !1)) : Qn in Wn("script") ? Ie = function(a) {
|
|
498
|
+
Xn.appendChild(Wn("script"))[Qn] = function() {
|
|
499
|
+
Xn.removeChild(this), Di(a);
|
|
500
500
|
};
|
|
501
501
|
} : Ie = function(a) {
|
|
502
|
-
setTimeout(
|
|
502
|
+
setTimeout(da(a), 0);
|
|
503
503
|
});
|
|
504
|
-
var
|
|
505
|
-
set:
|
|
506
|
-
clear:
|
|
507
|
-
},
|
|
508
|
-
if (!
|
|
509
|
-
return
|
|
510
|
-
var e =
|
|
504
|
+
var xu = {
|
|
505
|
+
set: Ka,
|
|
506
|
+
clear: Za
|
|
507
|
+
}, Jn = V, ig = le, ng = Object.getOwnPropertyDescriptor, sg = function(a) {
|
|
508
|
+
if (!ig)
|
|
509
|
+
return Jn[a];
|
|
510
|
+
var e = ng(Jn, a);
|
|
511
511
|
return e && e.value;
|
|
512
|
-
},
|
|
512
|
+
}, Tu = function() {
|
|
513
513
|
this.head = null, this.tail = null;
|
|
514
514
|
};
|
|
515
|
-
|
|
515
|
+
Tu.prototype = {
|
|
516
516
|
add: function(a) {
|
|
517
517
|
var e = { item: a, next: null }, t = this.tail;
|
|
518
518
|
t ? t.next = e : this.head = e, this.tail = e;
|
|
@@ -525,31 +525,31 @@ Eu.prototype = {
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
|
-
var
|
|
529
|
-
if (!
|
|
530
|
-
var
|
|
528
|
+
var Ou = Tu, og = Ct, ug = /ipad|iphone|ipod/i.test(og) && typeof Pebble < "u", lg = Ct, hg = /web0s(?!.*chrome)/i.test(lg), it = V, vg = sg, es = Vi, pa = xu.set, fg = Ou, cg = mu, gg = ug, dg = hg, ya = wr, ts = it.MutationObserver || it.WebKitMutationObserver, rs = it.document, as = it.process, Xt = it.Promise, Ja = vg("queueMicrotask"), Xe, ma, ba, Wt, is;
|
|
529
|
+
if (!Ja) {
|
|
530
|
+
var qt = new fg(), Qt = function() {
|
|
531
531
|
var a, e;
|
|
532
|
-
for (
|
|
532
|
+
for (ya && (a = as.domain) && a.exit(); e = qt.get(); )
|
|
533
533
|
try {
|
|
534
534
|
e();
|
|
535
535
|
} catch (t) {
|
|
536
|
-
throw
|
|
536
|
+
throw qt.head && Xe(), t;
|
|
537
537
|
}
|
|
538
538
|
a && a.enter();
|
|
539
539
|
};
|
|
540
|
-
!
|
|
541
|
-
|
|
542
|
-
}) : !
|
|
543
|
-
|
|
544
|
-
}) :
|
|
545
|
-
|
|
546
|
-
} : (
|
|
547
|
-
|
|
548
|
-
}),
|
|
549
|
-
|
|
540
|
+
!cg && !ya && !dg && ts && rs ? (ma = !0, ba = rs.createTextNode(""), new ts(Qt).observe(ba, { characterData: !0 }), Xe = function() {
|
|
541
|
+
ba.data = ma = !ma;
|
|
542
|
+
}) : !gg && Xt && Xt.resolve ? (Wt = Xt.resolve(void 0), Wt.constructor = Xt, is = es(Wt.then, Wt), Xe = function() {
|
|
543
|
+
is(Qt);
|
|
544
|
+
}) : ya ? Xe = function() {
|
|
545
|
+
as.nextTick(Qt);
|
|
546
|
+
} : (pa = es(pa, it), Xe = function() {
|
|
547
|
+
pa(Qt);
|
|
548
|
+
}), Ja = function(a) {
|
|
549
|
+
qt.head || Xe(), qt.add(a);
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
var
|
|
552
|
+
var pg = Ja, yg = function(a, e) {
|
|
553
553
|
try {
|
|
554
554
|
arguments.length === 1 ? console.error(a) : console.error(a, e);
|
|
555
555
|
} catch {
|
|
@@ -560,173 +560,172 @@ var Og = ei, Sg = function(a, e) {
|
|
|
560
560
|
} catch (e) {
|
|
561
561
|
return { error: !0, value: e };
|
|
562
562
|
}
|
|
563
|
-
},
|
|
564
|
-
|
|
565
|
-
var
|
|
566
|
-
var a =
|
|
567
|
-
if (!e &&
|
|
563
|
+
}, mg = V, Pr = mg.Promise, bg = V, Tt = Pr, xg = B, Tg = su, Og = Ci, Sg = z, ns = ou, xa = Oi;
|
|
564
|
+
Tt && Tt.prototype;
|
|
565
|
+
var Eg = Sg("species"), ei = !1, Su = xg(bg.PromiseRejectionEvent), $g = Tg("Promise", function() {
|
|
566
|
+
var a = Og(Tt), e = a !== String(Tt);
|
|
567
|
+
if (!e && xa === 66)
|
|
568
568
|
return !0;
|
|
569
|
-
if (!
|
|
570
|
-
var t = new
|
|
569
|
+
if (!xa || xa < 51 || !/native code/.test(a)) {
|
|
570
|
+
var t = new Tt(function(n) {
|
|
571
571
|
n(1);
|
|
572
572
|
}), r = function(n) {
|
|
573
573
|
n(function() {
|
|
574
574
|
}, function() {
|
|
575
575
|
});
|
|
576
576
|
}, i = t.constructor = {};
|
|
577
|
-
if (i[
|
|
578
|
-
}) instanceof r, !
|
|
577
|
+
if (i[Eg] = r, ei = t.then(function() {
|
|
578
|
+
}) instanceof r, !ei)
|
|
579
579
|
return !0;
|
|
580
580
|
}
|
|
581
|
-
return !e && (
|
|
582
|
-
}),
|
|
583
|
-
CONSTRUCTOR:
|
|
584
|
-
REJECTION_EVENT:
|
|
585
|
-
SUBCLASSING:
|
|
586
|
-
},
|
|
581
|
+
return !e && (ns === "BROWSER" || ns === "DENO") && !Su;
|
|
582
|
+
}), Rt = {
|
|
583
|
+
CONSTRUCTOR: $g,
|
|
584
|
+
REJECTION_EVENT: Su,
|
|
585
|
+
SUBCLASSING: ei
|
|
586
|
+
}, lt = {}, ss = Te, wg = TypeError, Cg = function(a) {
|
|
587
587
|
var e, t;
|
|
588
588
|
this.promise = new a(function(r, i) {
|
|
589
589
|
if (e !== void 0 || t !== void 0)
|
|
590
|
-
throw new
|
|
590
|
+
throw new wg("Bad Promise constructor");
|
|
591
591
|
e = r, t = i;
|
|
592
|
-
}), this.resolve =
|
|
592
|
+
}), this.resolve = ss(e), this.reject = ss(t);
|
|
593
593
|
};
|
|
594
|
-
|
|
595
|
-
return new
|
|
594
|
+
lt.f = function(a) {
|
|
595
|
+
return new Cg(a);
|
|
596
596
|
};
|
|
597
|
-
var
|
|
597
|
+
var Ag = ee, dr = wr, we = V, nt = Y, os = Ue, us = uu, Pg = Cr, Rg = sc, Ng = Te, ur = B, Ig = ve, Mg = lc, _g = gu, Eu = xu.set, Li = pg, Vg = yg, Dg = ki, kg = Ou, $u = Er, pr = Pr, Bi = Rt, wu = lt, Rr = "Promise", Cu = Bi.CONSTRUCTOR, Lg = Bi.REJECTION_EVENT, Bg = Bi.SUBCLASSING, Ta = $u.getterFor(Rr), jg = $u.set, Qe = pr && pr.prototype, De = pr, Kt = Qe, Au = we.TypeError, ti = we.document, ji = we.process, ri = wu.f, Fg = ri, Ug = !!(ti && ti.createEvent && we.dispatchEvent), Pu = "unhandledrejection", Gg = "rejectionhandled", ls = 0, Ru = 1, zg = 2, Fi = 1, Nu = 2, Zt, hs, Hg, vs, Iu = function(a) {
|
|
598
598
|
var e;
|
|
599
|
-
return
|
|
600
|
-
},
|
|
601
|
-
var t = e.value, r = e.state ===
|
|
599
|
+
return Ig(a) && ur(e = a.then) ? e : !1;
|
|
600
|
+
}, Mu = function(a, e) {
|
|
601
|
+
var t = e.value, r = e.state === Ru, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
|
602
602
|
try {
|
|
603
|
-
i ? (r || (e.rejection ===
|
|
603
|
+
i ? (r || (e.rejection === Nu && Xg(e), e.rejection = Fi), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(new Au("Promise-chain cycle")) : (l = Iu(u)) ? nt(l, u, n, o) : n(u)) : o(t);
|
|
604
604
|
} catch (f) {
|
|
605
605
|
s && !h && s.exit(), o(f);
|
|
606
606
|
}
|
|
607
|
-
},
|
|
608
|
-
a.notified || (a.notified = !0,
|
|
607
|
+
}, _u = function(a, e) {
|
|
608
|
+
a.notified || (a.notified = !0, Li(function() {
|
|
609
609
|
for (var t = a.reactions, r; r = t.get(); )
|
|
610
|
-
|
|
611
|
-
a.notified = !1, e && !a.rejection &&
|
|
610
|
+
Mu(r, a);
|
|
611
|
+
a.notified = !1, e && !a.rejection && Yg(a);
|
|
612
612
|
}));
|
|
613
|
-
},
|
|
613
|
+
}, Vu = function(a, e, t) {
|
|
614
614
|
var r, i;
|
|
615
|
-
|
|
616
|
-
},
|
|
617
|
-
|
|
618
|
-
var e = a.facade, t = a.value, r =
|
|
619
|
-
if (r && (i =
|
|
620
|
-
|
|
621
|
-
}), a.rejection =
|
|
615
|
+
Ug ? (r = ti.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), we.dispatchEvent(r)) : r = { promise: e, reason: t }, !Lg && (i = we["on" + a]) ? i(r) : a === Pu && Vg("Unhandled promise rejection", t);
|
|
616
|
+
}, Yg = function(a) {
|
|
617
|
+
nt(Eu, we, function() {
|
|
618
|
+
var e = a.facade, t = a.value, r = fs(a), i;
|
|
619
|
+
if (r && (i = Dg(function() {
|
|
620
|
+
dr ? ji.emit("unhandledRejection", t, e) : Vu(Pu, e, t);
|
|
621
|
+
}), a.rejection = dr || fs(a) ? Nu : Fi, i.error))
|
|
622
622
|
throw i.value;
|
|
623
623
|
});
|
|
624
|
-
},
|
|
625
|
-
return a.rejection !==
|
|
626
|
-
},
|
|
627
|
-
|
|
624
|
+
}, fs = function(a) {
|
|
625
|
+
return a.rejection !== Fi && !a.parent;
|
|
626
|
+
}, Xg = function(a) {
|
|
627
|
+
nt(Eu, we, function() {
|
|
628
628
|
var e = a.facade;
|
|
629
|
-
|
|
629
|
+
dr ? ji.emit("rejectionHandled", e) : Vu(Gg, e, a.value);
|
|
630
630
|
});
|
|
631
|
-
},
|
|
631
|
+
}, Je = function(a, e, t) {
|
|
632
632
|
return function(r) {
|
|
633
633
|
a(e, r, t);
|
|
634
634
|
};
|
|
635
|
-
},
|
|
636
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
|
637
|
-
},
|
|
635
|
+
}, tt = function(a, e, t) {
|
|
636
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = zg, _u(a, !0));
|
|
637
|
+
}, ai = function(a, e, t) {
|
|
638
638
|
if (!a.done) {
|
|
639
639
|
a.done = !0, t && (a = t);
|
|
640
640
|
try {
|
|
641
641
|
if (a.facade === e)
|
|
642
|
-
throw new
|
|
643
|
-
var r =
|
|
644
|
-
r ?
|
|
642
|
+
throw new Au("Promise can't be resolved itself");
|
|
643
|
+
var r = Iu(e);
|
|
644
|
+
r ? Li(function() {
|
|
645
645
|
var i = { done: !1 };
|
|
646
646
|
try {
|
|
647
|
-
|
|
647
|
+
nt(
|
|
648
648
|
r,
|
|
649
649
|
e,
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
Je(ai, i, a),
|
|
651
|
+
Je(tt, i, a)
|
|
652
652
|
);
|
|
653
653
|
} catch (n) {
|
|
654
|
-
|
|
654
|
+
tt(i, n, a);
|
|
655
655
|
}
|
|
656
|
-
}) : (a.value = e, a.state =
|
|
656
|
+
}) : (a.value = e, a.state = Ru, _u(a, !1));
|
|
657
657
|
} catch (i) {
|
|
658
|
-
|
|
658
|
+
tt({ done: !1 }, i, a);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
if (
|
|
663
|
-
|
|
664
|
-
var t =
|
|
662
|
+
if (Cu && (De = function(e) {
|
|
663
|
+
Mg(this, Kt), Ng(e), nt(Zt, this);
|
|
664
|
+
var t = Ta(this);
|
|
665
665
|
try {
|
|
666
|
-
e(
|
|
666
|
+
e(Je(ai, t), Je(tt, t));
|
|
667
667
|
} catch (r) {
|
|
668
|
-
|
|
668
|
+
tt(t, r);
|
|
669
669
|
}
|
|
670
|
-
},
|
|
671
|
-
|
|
672
|
-
type:
|
|
670
|
+
}, Kt = De.prototype, Zt = function(e) {
|
|
671
|
+
jg(this, {
|
|
672
|
+
type: Rr,
|
|
673
673
|
done: !1,
|
|
674
674
|
notified: !1,
|
|
675
675
|
parent: !1,
|
|
676
|
-
reactions: new
|
|
676
|
+
reactions: new kg(),
|
|
677
677
|
rejection: !1,
|
|
678
|
-
state:
|
|
678
|
+
state: ls,
|
|
679
679
|
value: null
|
|
680
680
|
});
|
|
681
|
-
},
|
|
682
|
-
var r =
|
|
683
|
-
return r.parent = !0, i.ok =
|
|
684
|
-
|
|
681
|
+
}, Zt.prototype = os(Kt, "then", function(e, t) {
|
|
682
|
+
var r = Ta(this), i = ri(_g(this, De));
|
|
683
|
+
return r.parent = !0, i.ok = ur(e) ? e : !0, i.fail = ur(t) && t, i.domain = dr ? ji.domain : void 0, r.state === ls ? r.reactions.add(i) : Li(function() {
|
|
684
|
+
Mu(i, r);
|
|
685
685
|
}), i.promise;
|
|
686
|
-
}),
|
|
687
|
-
var a = new
|
|
688
|
-
this.promise = a, this.resolve =
|
|
689
|
-
},
|
|
690
|
-
return a ===
|
|
691
|
-
},
|
|
692
|
-
|
|
686
|
+
}), hs = function() {
|
|
687
|
+
var a = new Zt(), e = Ta(a);
|
|
688
|
+
this.promise = a, this.resolve = Je(ai, e), this.reject = Je(tt, e);
|
|
689
|
+
}, wu.f = ri = function(a) {
|
|
690
|
+
return a === De || a === Hg ? new hs(a) : Fg(a);
|
|
691
|
+
}, ur(pr) && Qe !== Object.prototype)) {
|
|
692
|
+
vs = Qe.then, Bg || os(Qe, "then", function(e, t) {
|
|
693
693
|
var r = this;
|
|
694
|
-
return new
|
|
695
|
-
|
|
694
|
+
return new De(function(i, n) {
|
|
695
|
+
nt(vs, r, i, n);
|
|
696
696
|
}).then(e, t);
|
|
697
697
|
}, { unsafe: !0 });
|
|
698
698
|
try {
|
|
699
|
-
delete
|
|
699
|
+
delete Qe.constructor;
|
|
700
700
|
} catch {
|
|
701
701
|
}
|
|
702
|
-
|
|
702
|
+
us && us(Qe, Kt);
|
|
703
703
|
}
|
|
704
|
-
|
|
705
|
-
Promise:
|
|
704
|
+
Ag({ global: !0, constructor: !0, wrap: !0, forced: Cu }, {
|
|
705
|
+
Promise: De
|
|
706
706
|
});
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}, yd = Y, ps = J, md = st, bd = function(a, e, t) {
|
|
707
|
+
Pg(De, Rr, !1);
|
|
708
|
+
Rg(Rr);
|
|
709
|
+
var Nt = {}, Wg = z, qg = Nt, Qg = Wg("iterator"), Kg = Array.prototype, Zg = function(a) {
|
|
710
|
+
return a !== void 0 && (qg.Array === a || Kg[Qg] === a);
|
|
711
|
+
}, Jg = Mi, cs = ot, ed = je, td = Nt, rd = z, ad = rd("iterator"), Du = function(a) {
|
|
712
|
+
if (!ed(a))
|
|
713
|
+
return cs(a, ad) || cs(a, "@@iterator") || td[Jg(a)];
|
|
714
|
+
}, id = Y, nd = Te, sd = J, od = xr, ud = Du, ld = TypeError, hd = function(a, e) {
|
|
715
|
+
var t = arguments.length < 2 ? ud(a) : e;
|
|
716
|
+
if (nd(t))
|
|
717
|
+
return sd(id(t, a));
|
|
718
|
+
throw new ld(od(a) + " is not iterable");
|
|
719
|
+
}, vd = Y, gs = J, fd = ot, cd = function(a, e, t) {
|
|
721
720
|
var r, i;
|
|
722
|
-
|
|
721
|
+
gs(a);
|
|
723
722
|
try {
|
|
724
|
-
if (r =
|
|
723
|
+
if (r = fd(a, "return"), !r) {
|
|
725
724
|
if (e === "throw")
|
|
726
725
|
throw t;
|
|
727
726
|
return t;
|
|
728
727
|
}
|
|
729
|
-
r =
|
|
728
|
+
r = vd(r, a);
|
|
730
729
|
} catch (n) {
|
|
731
730
|
i = !0, r = n;
|
|
732
731
|
}
|
|
@@ -734,60 +733,60 @@ var Rt = {}, ed = z, td = Rt, rd = ed("iterator"), ad = Array.prototype, id = fu
|
|
|
734
733
|
throw t;
|
|
735
734
|
if (i)
|
|
736
735
|
throw r;
|
|
737
|
-
return
|
|
738
|
-
},
|
|
736
|
+
return gs(r), t;
|
|
737
|
+
}, gd = Vi, dd = Y, pd = J, yd = xr, md = Zg, bd = Ni, ds = br, xd = hd, Td = Du, ps = cd, Od = TypeError, lr = function(a, e) {
|
|
739
738
|
this.stopped = a, this.result = e;
|
|
740
|
-
},
|
|
741
|
-
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 =
|
|
742
|
-
return l &&
|
|
739
|
+
}, ys = lr.prototype, ku = function(a, e, t) {
|
|
740
|
+
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 = gd(e, r), l, h, f, c, v, d, g, p = function(x) {
|
|
741
|
+
return l && ps(l, "normal", x), new lr(!0, x);
|
|
743
742
|
}, y = function(x) {
|
|
744
|
-
return i ? (
|
|
743
|
+
return i ? (pd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
|
|
745
744
|
};
|
|
746
745
|
if (n)
|
|
747
746
|
l = a.iterator;
|
|
748
747
|
else if (o)
|
|
749
748
|
l = a;
|
|
750
749
|
else {
|
|
751
|
-
if (h =
|
|
752
|
-
throw new
|
|
753
|
-
if (
|
|
754
|
-
for (f = 0, c =
|
|
755
|
-
if (v = y(a[f]), v && ys
|
|
750
|
+
if (h = Td(a), !h)
|
|
751
|
+
throw new Od(yd(a) + " is not iterable");
|
|
752
|
+
if (md(h)) {
|
|
753
|
+
for (f = 0, c = bd(a); c > f; f++)
|
|
754
|
+
if (v = y(a[f]), v && ds(ys, v))
|
|
756
755
|
return v;
|
|
757
|
-
return new
|
|
756
|
+
return new lr(!1);
|
|
758
757
|
}
|
|
759
|
-
l =
|
|
758
|
+
l = xd(a, h);
|
|
760
759
|
}
|
|
761
|
-
for (
|
|
760
|
+
for (d = n ? a.next : l.next; !(g = dd(d, l)).done; ) {
|
|
762
761
|
try {
|
|
763
|
-
v = y(
|
|
762
|
+
v = y(g.value);
|
|
764
763
|
} catch (x) {
|
|
765
|
-
|
|
764
|
+
ps(l, "throw", x);
|
|
766
765
|
}
|
|
767
|
-
if (typeof v == "object" && v && ys
|
|
766
|
+
if (typeof v == "object" && v && ds(ys, v))
|
|
768
767
|
return v;
|
|
769
768
|
}
|
|
770
|
-
return new
|
|
771
|
-
},
|
|
769
|
+
return new lr(!1);
|
|
770
|
+
}, Sd = z, Lu = Sd("iterator"), Bu = !1;
|
|
772
771
|
try {
|
|
773
|
-
var
|
|
772
|
+
var Ed = 0, ms = {
|
|
774
773
|
next: function() {
|
|
775
|
-
return { done: !!
|
|
774
|
+
return { done: !!Ed++ };
|
|
776
775
|
},
|
|
777
776
|
return: function() {
|
|
778
|
-
|
|
777
|
+
Bu = !0;
|
|
779
778
|
}
|
|
780
779
|
};
|
|
781
|
-
|
|
780
|
+
ms[Lu] = function() {
|
|
782
781
|
return this;
|
|
783
|
-
}, Array.from(
|
|
782
|
+
}, Array.from(ms, function() {
|
|
784
783
|
throw 2;
|
|
785
784
|
});
|
|
786
785
|
} catch {
|
|
787
786
|
}
|
|
788
|
-
var
|
|
787
|
+
var $d = function(a, e) {
|
|
789
788
|
try {
|
|
790
|
-
if (!e && !
|
|
789
|
+
if (!e && !Bu)
|
|
791
790
|
return !1;
|
|
792
791
|
} catch {
|
|
793
792
|
return !1;
|
|
@@ -795,7 +794,7 @@ var Nd = function(a, e) {
|
|
|
795
794
|
var t = !1;
|
|
796
795
|
try {
|
|
797
796
|
var r = {};
|
|
798
|
-
r[
|
|
797
|
+
r[Lu] = function() {
|
|
799
798
|
return {
|
|
800
799
|
next: function() {
|
|
801
800
|
return { done: t = !0 };
|
|
@@ -805,66 +804,66 @@ var Nd = function(a, e) {
|
|
|
805
804
|
} catch {
|
|
806
805
|
}
|
|
807
806
|
return t;
|
|
808
|
-
},
|
|
809
|
-
|
|
807
|
+
}, wd = Pr, Cd = $d, Ad = Rt.CONSTRUCTOR, ju = Ad || !Cd(function(a) {
|
|
808
|
+
wd.all(a).then(void 0, function() {
|
|
810
809
|
});
|
|
811
|
-
}),
|
|
812
|
-
|
|
810
|
+
}), Pd = ee, Rd = Y, Nd = Te, Id = lt, Md = ki, _d = ku, Vd = ju;
|
|
811
|
+
Pd({ target: "Promise", stat: !0, forced: Vd }, {
|
|
813
812
|
all: function(e) {
|
|
814
|
-
var t = this, r =
|
|
815
|
-
var s =
|
|
816
|
-
|
|
813
|
+
var t = this, r = Id.f(t), i = r.resolve, n = r.reject, o = Md(function() {
|
|
814
|
+
var s = Nd(t.resolve), u = [], l = 0, h = 1;
|
|
815
|
+
_d(e, function(f) {
|
|
817
816
|
var c = l++, v = !1;
|
|
818
|
-
h++,
|
|
819
|
-
v || (v = !0, u[c] =
|
|
817
|
+
h++, Rd(s, t, f).then(function(d) {
|
|
818
|
+
v || (v = !0, u[c] = d, --h || i(u));
|
|
820
819
|
}, n);
|
|
821
820
|
}), --h || i(u);
|
|
822
821
|
});
|
|
823
822
|
return o.error && n(o.value), r.promise;
|
|
824
823
|
}
|
|
825
824
|
});
|
|
826
|
-
var
|
|
827
|
-
|
|
825
|
+
var Dd = ee, kd = Rt.CONSTRUCTOR, ii = Pr, Ld = Fe, Bd = B, jd = Ue, bs = ii && ii.prototype;
|
|
826
|
+
Dd({ target: "Promise", proto: !0, forced: kd, real: !0 }, {
|
|
828
827
|
catch: function(a) {
|
|
829
828
|
return this.then(void 0, a);
|
|
830
829
|
}
|
|
831
830
|
});
|
|
832
|
-
if (
|
|
833
|
-
var
|
|
834
|
-
|
|
831
|
+
if (Bd(ii)) {
|
|
832
|
+
var xs = Ld("Promise").prototype.catch;
|
|
833
|
+
bs.catch !== xs && jd(bs, "catch", xs, { unsafe: !0 });
|
|
835
834
|
}
|
|
836
|
-
var
|
|
837
|
-
|
|
835
|
+
var Fd = ee, Ud = Y, Gd = Te, zd = lt, Hd = ki, Yd = ku, Xd = ju;
|
|
836
|
+
Fd({ target: "Promise", stat: !0, forced: Xd }, {
|
|
838
837
|
race: function(e) {
|
|
839
|
-
var t = this, r =
|
|
840
|
-
var o =
|
|
841
|
-
|
|
842
|
-
|
|
838
|
+
var t = this, r = zd.f(t), i = r.reject, n = Hd(function() {
|
|
839
|
+
var o = Gd(t.resolve);
|
|
840
|
+
Yd(e, function(s) {
|
|
841
|
+
Ud(o, t, s).then(r.resolve, i);
|
|
843
842
|
});
|
|
844
843
|
});
|
|
845
844
|
return n.error && i(n.value), r.promise;
|
|
846
845
|
}
|
|
847
846
|
});
|
|
848
|
-
var
|
|
849
|
-
|
|
847
|
+
var Wd = ee, qd = lt, Qd = Rt.CONSTRUCTOR;
|
|
848
|
+
Wd({ target: "Promise", stat: !0, forced: Qd }, {
|
|
850
849
|
reject: function(e) {
|
|
851
|
-
var t =
|
|
850
|
+
var t = qd.f(this), r = t.reject;
|
|
852
851
|
return r(e), t.promise;
|
|
853
852
|
}
|
|
854
853
|
});
|
|
855
|
-
var
|
|
856
|
-
if (
|
|
854
|
+
var Kd = J, Zd = ve, Jd = lt, ep = function(a, e) {
|
|
855
|
+
if (Kd(a), Zd(e) && e.constructor === a)
|
|
857
856
|
return e;
|
|
858
|
-
var t =
|
|
857
|
+
var t = Jd.f(a), r = t.resolve;
|
|
859
858
|
return r(e), t.promise;
|
|
860
|
-
},
|
|
861
|
-
|
|
862
|
-
|
|
859
|
+
}, tp = ee, rp = Fe, ap = Rt.CONSTRUCTOR, ip = ep;
|
|
860
|
+
rp("Promise");
|
|
861
|
+
tp({ target: "Promise", stat: !0, forced: ap }, {
|
|
863
862
|
resolve: function(e) {
|
|
864
|
-
return
|
|
863
|
+
return ip(this, e);
|
|
865
864
|
}
|
|
866
865
|
});
|
|
867
|
-
function
|
|
866
|
+
function Ts(a, e, t, r, i, n, o) {
|
|
868
867
|
try {
|
|
869
868
|
var s = a[n](o), u = s.value;
|
|
870
869
|
} catch (l) {
|
|
@@ -878,105 +877,105 @@ function xe(a) {
|
|
|
878
877
|
return new Promise(function(r, i) {
|
|
879
878
|
var n = a.apply(e, t);
|
|
880
879
|
function o(u) {
|
|
881
|
-
|
|
880
|
+
Ts(n, r, i, o, s, "next", u);
|
|
882
881
|
}
|
|
883
882
|
function s(u) {
|
|
884
|
-
|
|
883
|
+
Ts(n, r, i, o, s, "throw", u);
|
|
885
884
|
}
|
|
886
885
|
o(void 0);
|
|
887
886
|
});
|
|
888
887
|
};
|
|
889
888
|
}
|
|
890
|
-
var
|
|
891
|
-
if (
|
|
889
|
+
var np = Mi, sp = String, pe = function(a) {
|
|
890
|
+
if (np(a) === "Symbol")
|
|
892
891
|
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
893
|
-
return
|
|
894
|
-
},
|
|
895
|
-
var a =
|
|
892
|
+
return sp(a);
|
|
893
|
+
}, op = J, Fu = function() {
|
|
894
|
+
var a = op(this), e = "";
|
|
896
895
|
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;
|
|
897
|
-
},
|
|
898
|
-
var a =
|
|
896
|
+
}, Ui = k, up = V, Gi = up.RegExp, zi = Ui(function() {
|
|
897
|
+
var a = Gi("a", "y");
|
|
899
898
|
return a.lastIndex = 2, a.exec("abcd") !== null;
|
|
900
|
-
}),
|
|
901
|
-
return !
|
|
902
|
-
}),
|
|
903
|
-
var a =
|
|
899
|
+
}), lp = zi || Ui(function() {
|
|
900
|
+
return !Gi("a", "y").sticky;
|
|
901
|
+
}), hp = zi || Ui(function() {
|
|
902
|
+
var a = Gi("^r", "gy");
|
|
904
903
|
return a.lastIndex = 2, a.exec("str") !== null;
|
|
905
|
-
}),
|
|
906
|
-
BROKEN_CARET:
|
|
907
|
-
MISSED_STICKY:
|
|
908
|
-
UNSUPPORTED_Y:
|
|
909
|
-
},
|
|
910
|
-
return
|
|
911
|
-
},
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
for (var r =
|
|
915
|
-
|
|
904
|
+
}), Uu = {
|
|
905
|
+
BROKEN_CARET: hp,
|
|
906
|
+
MISSED_STICKY: lp,
|
|
907
|
+
UNSUPPORTED_Y: zi
|
|
908
|
+
}, Gu = {}, vp = iu, fp = Ii, cp = Object.keys || function(e) {
|
|
909
|
+
return vp(e, fp);
|
|
910
|
+
}, gp = le, dp = Qo, pp = Oe, yp = J, mp = wt, bp = cp;
|
|
911
|
+
Gu.f = gp && !dp ? Object.defineProperties : function(e, t) {
|
|
912
|
+
yp(e);
|
|
913
|
+
for (var r = mp(t), i = bp(t), n = i.length, o = 0, s; n > o; )
|
|
914
|
+
pp.f(e, s = i[o++], r[s]);
|
|
916
915
|
return e;
|
|
917
916
|
};
|
|
918
|
-
var
|
|
919
|
-
},
|
|
920
|
-
return
|
|
921
|
-
},
|
|
922
|
-
a.write(
|
|
917
|
+
var xp = J, Tp = Gu, Os = Ii, Op = Pi, Sp = yu, Ep = Or, $p = Ai, Ss = ">", Es = "<", ni = "prototype", si = "script", zu = $p("IE_PROTO"), Oa = function() {
|
|
918
|
+
}, Hu = function(a) {
|
|
919
|
+
return Es + si + Ss + a + Es + "/" + si + Ss;
|
|
920
|
+
}, $s = function(a) {
|
|
921
|
+
a.write(Hu("")), a.close();
|
|
923
922
|
var e = a.parentWindow.Object;
|
|
924
923
|
return a = null, e;
|
|
925
|
-
},
|
|
926
|
-
var a =
|
|
927
|
-
return a.style.display = "none",
|
|
928
|
-
},
|
|
924
|
+
}, wp = function() {
|
|
925
|
+
var a = Ep("iframe"), e = "java" + si + ":", t;
|
|
926
|
+
return a.style.display = "none", Sp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Hu("document.F=Object")), t.close(), t.F;
|
|
927
|
+
}, Jt, hr = function() {
|
|
929
928
|
try {
|
|
930
|
-
|
|
929
|
+
Jt = new ActiveXObject("htmlfile");
|
|
931
930
|
} catch {
|
|
932
931
|
}
|
|
933
|
-
|
|
934
|
-
for (var a =
|
|
935
|
-
delete
|
|
936
|
-
return
|
|
932
|
+
hr = typeof document < "u" ? document.domain && Jt ? $s(Jt) : wp() : $s(Jt);
|
|
933
|
+
for (var a = Os.length; a--; )
|
|
934
|
+
delete hr[ni][Os[a]];
|
|
935
|
+
return hr();
|
|
937
936
|
};
|
|
938
|
-
|
|
939
|
-
var
|
|
937
|
+
Op[zu] = !0;
|
|
938
|
+
var Hi = Object.create || function(e, t) {
|
|
940
939
|
var r;
|
|
941
|
-
return e !== null ? (
|
|
942
|
-
},
|
|
943
|
-
var a =
|
|
940
|
+
return e !== null ? (Oa[ni] = xp(e), r = new Oa(), Oa[ni] = null, r[zu] = e) : r = hr(), t === void 0 ? r : Tp.f(r, t);
|
|
941
|
+
}, Cp = k, Ap = V, Pp = Ap.RegExp, Rp = Cp(function() {
|
|
942
|
+
var a = Pp(".", "s");
|
|
944
943
|
return !(a.dotAll && a.test(`
|
|
945
944
|
`) && a.flags === "s");
|
|
946
|
-
}),
|
|
947
|
-
var a =
|
|
945
|
+
}), Np = k, Ip = V, Mp = Ip.RegExp, _p = Np(function() {
|
|
946
|
+
var a = Mp("(?<a>b)", "g");
|
|
948
947
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
|
949
|
-
}),
|
|
948
|
+
}), et = Y, Nr = L, Vp = pe, Dp = Fu, kp = Uu, Lp = $i, Bp = Hi, jp = Er.get, Fp = Rp, Up = _p, Gp = Lp("native-string-replace", String.prototype.replace), yr = RegExp.prototype.exec, oi = yr, zp = Nr("".charAt), Hp = Nr("".indexOf), Yp = Nr("".replace), Sa = Nr("".slice), ui = function() {
|
|
950
949
|
var a = /a/, e = /b*/g;
|
|
951
|
-
return
|
|
952
|
-
}(),
|
|
953
|
-
|
|
954
|
-
var t = this, r =
|
|
950
|
+
return et(yr, a, "a"), et(yr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
|
951
|
+
}(), Yu = kp.BROKEN_CARET, li = /()??/.exec("")[1] !== void 0, Xp = ui || li || Yu || Fp || Up;
|
|
952
|
+
Xp && (oi = function(e) {
|
|
953
|
+
var t = this, r = jp(t), i = Vp(e), n = r.raw, o, s, u, l, h, f, c;
|
|
955
954
|
if (n)
|
|
956
|
-
return n.lastIndex = t.lastIndex, o =
|
|
957
|
-
var v = r.groups,
|
|
958
|
-
if (
|
|
959
|
-
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")",
|
|
955
|
+
return n.lastIndex = t.lastIndex, o = et(oi, n, i), t.lastIndex = n.lastIndex, o;
|
|
956
|
+
var v = r.groups, d = Yu && t.sticky, g = et(Dp, t), p = t.source, y = 0, x = i;
|
|
957
|
+
if (d && (g = Yp(g, "y", ""), Hp(g, "g") === -1 && (g += "g"), x = Sa(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && zp(i, t.lastIndex - 1) !== `
|
|
958
|
+
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), li && (s = new RegExp("^" + p + "$(?!\\s)", g)), ui && (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 : ui && l && (t.lastIndex = t.global ? l.index + l[0].length : u), li && l && l.length > 1 && et(Gp, l[0], s, function() {
|
|
960
959
|
for (h = 1; h < arguments.length - 2; h++)
|
|
961
960
|
arguments[h] === void 0 && (l[h] = void 0);
|
|
962
961
|
}), l && v)
|
|
963
|
-
for (l.groups = f =
|
|
962
|
+
for (l.groups = f = Bp(null), h = 0; h < v.length; h++)
|
|
964
963
|
c = v[h], f[c[0]] = l[c[1]];
|
|
965
964
|
return l;
|
|
966
965
|
});
|
|
967
|
-
var
|
|
968
|
-
|
|
969
|
-
exec:
|
|
966
|
+
var Yi = oi, Wp = ee, ws = Yi;
|
|
967
|
+
Wp({ target: "RegExp", proto: !0, forced: /./.exec !== ws }, {
|
|
968
|
+
exec: ws
|
|
970
969
|
});
|
|
971
|
-
var
|
|
972
|
-
var i =
|
|
970
|
+
var Cs = Y, As = Ue, qp = Yi, Ps = k, Xu = z, Qp = At, Kp = Xu("species"), Ea = RegExp.prototype, Xi = function(a, e, t, r) {
|
|
971
|
+
var i = Xu(a), n = !Ps(function() {
|
|
973
972
|
var l = {};
|
|
974
973
|
return l[i] = function() {
|
|
975
974
|
return 7;
|
|
976
975
|
}, ""[a](l) !== 7;
|
|
977
|
-
}), o = n && !
|
|
976
|
+
}), o = n && !Ps(function() {
|
|
978
977
|
var l = !1, h = /a/;
|
|
979
|
-
return a === "split" && (h = {}, h.constructor = {}, h.constructor[
|
|
978
|
+
return a === "split" && (h = {}, h.constructor = {}, h.constructor[Kp] = function() {
|
|
980
979
|
return h;
|
|
981
980
|
}, h.flags = "", h[i] = /./[i]), h.exec = function() {
|
|
982
981
|
return l = !0, null;
|
|
@@ -984,257 +983,229 @@ var Ps = Y, Rs = Ue, ty = Xi, Ns = D, Ku = z, ry = Ct, ay = Ku("species"), wa =
|
|
|
984
983
|
});
|
|
985
984
|
if (!n || !o || t) {
|
|
986
985
|
var s = /./[i], u = e(i, ""[a], function(l, h, f, c, v) {
|
|
987
|
-
var
|
|
988
|
-
return
|
|
986
|
+
var d = h.exec;
|
|
987
|
+
return d === qp || d === Ea.exec ? n && !v ? { done: !0, value: Cs(s, h, f, c) } : { done: !0, value: Cs(l, f, h, c) } : { done: !1 };
|
|
989
988
|
});
|
|
990
|
-
|
|
989
|
+
As(String.prototype, a, u[0]), As(Ea, i, u[1]);
|
|
991
990
|
}
|
|
992
|
-
r &&
|
|
993
|
-
},
|
|
991
|
+
r && Qp(Ea[i], "sham", !0);
|
|
992
|
+
}, Wi = L, Zp = $r, Jp = pe, ey = he, ty = Wi("".charAt), Rs = Wi("".charCodeAt), ry = Wi("".slice), Ns = function(a) {
|
|
994
993
|
return function(e, t) {
|
|
995
|
-
var r =
|
|
996
|
-
return i < 0 || i >= n ? a ? "" : void 0 : (o =
|
|
994
|
+
var r = Jp(ey(e)), i = Zp(t), n = r.length, o, s;
|
|
995
|
+
return i < 0 || i >= n ? a ? "" : void 0 : (o = Rs(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = Rs(r, i + 1)) < 56320 || s > 57343 ? a ? ty(r, i) : o : a ? ry(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
|
997
996
|
};
|
|
998
|
-
},
|
|
997
|
+
}, ay = {
|
|
999
998
|
// `String.prototype.codePointAt` method
|
|
1000
999
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
1001
|
-
codeAt:
|
|
1000
|
+
codeAt: Ns(!1),
|
|
1002
1001
|
// `String.prototype.at` method
|
|
1003
1002
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
1004
|
-
charAt:
|
|
1005
|
-
},
|
|
1006
|
-
return e + (t ?
|
|
1007
|
-
},
|
|
1008
|
-
var a = !0;
|
|
1009
|
-
try {
|
|
1010
|
-
_s(".", "d");
|
|
1011
|
-
} catch {
|
|
1012
|
-
a = !1;
|
|
1013
|
-
}
|
|
1014
|
-
var e = {}, t = "", r = a ? "dgimsy" : "gimsy", i = function(u, l) {
|
|
1015
|
-
Object.defineProperty(e, u, { get: function() {
|
|
1016
|
-
return t += l, !0;
|
|
1017
|
-
} });
|
|
1018
|
-
}, n = {
|
|
1019
|
-
dotAll: "s",
|
|
1020
|
-
global: "g",
|
|
1021
|
-
ignoreCase: "i",
|
|
1022
|
-
multiline: "m",
|
|
1023
|
-
sticky: "y"
|
|
1024
|
-
};
|
|
1025
|
-
a && (n.hasIndices = "d");
|
|
1026
|
-
for (var o in n)
|
|
1027
|
-
i(o, n[o]);
|
|
1028
|
-
var s = Object.getOwnPropertyDescriptor(_s.prototype, "flags").get.call(e);
|
|
1029
|
-
return s !== r || t !== r;
|
|
1030
|
-
}), gy = { correct: cy }, dy = Y, py = fe, yy = Tr, Vs = gy, my = Hu, by = RegExp.prototype, Ki = Vs.correct ? function(a) {
|
|
1031
|
-
return a.flags;
|
|
1032
|
-
} : function(a) {
|
|
1033
|
-
return !Vs.correct && yy(by, a) && !py(a, "flags") ? dy(my, a) : a.flags;
|
|
1034
|
-
}, Ds = Y, xy = J, Ty = B, Oy = je, Sy = Xi, Ey = TypeError, Zi = function(a, e) {
|
|
1003
|
+
charAt: Ns(!0)
|
|
1004
|
+
}, iy = ay.charAt, qi = function(a, e, t) {
|
|
1005
|
+
return e + (t ? iy(a, e).length : 1);
|
|
1006
|
+
}, Is = Y, ny = J, sy = B, oy = Be, uy = Yi, ly = TypeError, Qi = function(a, e) {
|
|
1035
1007
|
var t = a.exec;
|
|
1036
|
-
if (
|
|
1037
|
-
var r =
|
|
1038
|
-
return r !== null &&
|
|
1039
|
-
}
|
|
1040
|
-
if (
|
|
1041
|
-
return
|
|
1042
|
-
throw new
|
|
1043
|
-
},
|
|
1044
|
-
|
|
1008
|
+
if (sy(t)) {
|
|
1009
|
+
var r = Is(t, a, e);
|
|
1010
|
+
return r !== null && ny(r), r;
|
|
1011
|
+
}
|
|
1012
|
+
if (oy(a) === "RegExp")
|
|
1013
|
+
return Is(uy, a, e);
|
|
1014
|
+
throw new ly("RegExp#exec called on incompatible receiver");
|
|
1015
|
+
}, hy = Y, vy = Xi, fy = J, cy = je, gy = ut, $a = pe, dy = he, py = ot, yy = qi, Ms = Qi;
|
|
1016
|
+
vy("match", function(a, e, t) {
|
|
1045
1017
|
return [
|
|
1046
1018
|
// `String.prototype.match` method
|
|
1047
1019
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
1048
1020
|
function(i) {
|
|
1049
|
-
var n =
|
|
1050
|
-
return o ?
|
|
1021
|
+
var n = dy(this), o = cy(i) ? void 0 : py(i, a);
|
|
1022
|
+
return o ? hy(o, i, n) : new RegExp(i)[a]($a(n));
|
|
1051
1023
|
},
|
|
1052
1024
|
// `RegExp.prototype[@@match]` method
|
|
1053
1025
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
1054
1026
|
function(r) {
|
|
1055
|
-
var i =
|
|
1027
|
+
var i = fy(this), n = $a(r), o = t(e, i, n);
|
|
1056
1028
|
if (o.done)
|
|
1057
1029
|
return o.value;
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
var u = ks(s, "u") !== -1;
|
|
1030
|
+
if (!i.global)
|
|
1031
|
+
return Ms(i, n);
|
|
1032
|
+
var s = i.unicode;
|
|
1062
1033
|
i.lastIndex = 0;
|
|
1063
|
-
for (var
|
|
1064
|
-
var
|
|
1065
|
-
l
|
|
1034
|
+
for (var u = [], l = 0, h; (h = Ms(i, n)) !== null; ) {
|
|
1035
|
+
var f = $a(h[0]);
|
|
1036
|
+
u[l] = f, f === "" && (i.lastIndex = yy(n, gy(i.lastIndex), s)), l++;
|
|
1066
1037
|
}
|
|
1067
|
-
return
|
|
1038
|
+
return l === 0 ? null : u;
|
|
1068
1039
|
}
|
|
1069
1040
|
];
|
|
1070
1041
|
});
|
|
1071
|
-
var
|
|
1072
|
-
var o = t + a.length, s = r.length, u =
|
|
1073
|
-
return i !== void 0 && (i =
|
|
1042
|
+
var Ki = L, my = Tr, by = Math.floor, wa = Ki("".charAt), xy = Ki("".replace), Ca = Ki("".slice), Ty = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Oy = /\$([$&'`]|\d{1,2})/g, Sy = function(a, e, t, r, i, n) {
|
|
1043
|
+
var o = t + a.length, s = r.length, u = Oy;
|
|
1044
|
+
return i !== void 0 && (i = my(i), u = Ty), xy(n, u, function(l, h) {
|
|
1074
1045
|
var f;
|
|
1075
|
-
switch (
|
|
1046
|
+
switch (wa(h, 0)) {
|
|
1076
1047
|
case "$":
|
|
1077
1048
|
return "$";
|
|
1078
1049
|
case "&":
|
|
1079
1050
|
return a;
|
|
1080
1051
|
case "`":
|
|
1081
|
-
return
|
|
1052
|
+
return Ca(e, 0, t);
|
|
1082
1053
|
case "'":
|
|
1083
|
-
return
|
|
1054
|
+
return Ca(e, o);
|
|
1084
1055
|
case "<":
|
|
1085
|
-
f = i[
|
|
1056
|
+
f = i[Ca(h, 1, -1)];
|
|
1086
1057
|
break;
|
|
1087
1058
|
default:
|
|
1088
1059
|
var c = +h;
|
|
1089
1060
|
if (c === 0)
|
|
1090
1061
|
return l;
|
|
1091
1062
|
if (c > s) {
|
|
1092
|
-
var v =
|
|
1093
|
-
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ?
|
|
1063
|
+
var v = by(c / 10);
|
|
1064
|
+
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? wa(h, 1) : r[v - 1] + wa(h, 1) : l;
|
|
1094
1065
|
}
|
|
1095
1066
|
f = r[c - 1];
|
|
1096
1067
|
}
|
|
1097
1068
|
return f === void 0 ? "" : f;
|
|
1098
1069
|
});
|
|
1099
|
-
},
|
|
1070
|
+
}, Ey = pu, _s = Y, Ir = L, $y = Xi, wy = k, Cy = J, Ay = B, Py = je, Ry = $r, Ny = ut, We = pe, Iy = he, My = qi, _y = ot, Vy = Sy, Dy = Qi, ky = z, hi = ky("replace"), Ly = Math.max, By = Math.min, jy = Ir([].concat), Aa = Ir([].push), Vs = Ir("".indexOf), Ds = Ir("".slice), Fy = function(a) {
|
|
1100
1071
|
return a === void 0 ? a : String(a);
|
|
1101
|
-
},
|
|
1072
|
+
}, Uy = function() {
|
|
1102
1073
|
return "a".replace(/./, "$0") === "$0";
|
|
1103
|
-
}(),
|
|
1104
|
-
return /./[
|
|
1105
|
-
}(),
|
|
1074
|
+
}(), ks = function() {
|
|
1075
|
+
return /./[hi] ? /./[hi]("a", "$0") === "" : !1;
|
|
1076
|
+
}(), Gy = !wy(function() {
|
|
1106
1077
|
var a = /./;
|
|
1107
1078
|
return a.exec = function() {
|
|
1108
1079
|
var e = [];
|
|
1109
1080
|
return e.groups = { a: "7" }, e;
|
|
1110
1081
|
}, "".replace(a, "$<a>") !== "7";
|
|
1111
1082
|
});
|
|
1112
|
-
|
|
1113
|
-
var r =
|
|
1083
|
+
$y("replace", function(a, e, t) {
|
|
1084
|
+
var r = ks ? "$" : "$0";
|
|
1114
1085
|
return [
|
|
1115
1086
|
// `String.prototype.replace` method
|
|
1116
1087
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1117
1088
|
function(n, o) {
|
|
1118
|
-
var s =
|
|
1119
|
-
return u ?
|
|
1089
|
+
var s = Iy(this), u = Py(n) ? void 0 : _y(n, hi);
|
|
1090
|
+
return u ? _s(u, n, s, o) : _s(e, We(s), n, o);
|
|
1120
1091
|
},
|
|
1121
1092
|
// `RegExp.prototype[@@replace]` method
|
|
1122
1093
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1123
1094
|
function(i, n) {
|
|
1124
|
-
var o =
|
|
1125
|
-
if (typeof n == "string" &&
|
|
1095
|
+
var o = Cy(this), s = We(i);
|
|
1096
|
+
if (typeof n == "string" && Vs(n, r) === -1 && Vs(n, "$<") === -1) {
|
|
1126
1097
|
var u = t(e, o, s, n);
|
|
1127
1098
|
if (u.done)
|
|
1128
1099
|
return u.value;
|
|
1129
1100
|
}
|
|
1130
|
-
var l =
|
|
1131
|
-
l || (n =
|
|
1132
|
-
var h =
|
|
1133
|
-
|
|
1134
|
-
for (var
|
|
1135
|
-
var d =
|
|
1136
|
-
d === "" && (o.lastIndex =
|
|
1101
|
+
var l = Ay(n);
|
|
1102
|
+
l || (n = We(n));
|
|
1103
|
+
var h = o.global, f;
|
|
1104
|
+
h && (f = o.unicode, o.lastIndex = 0);
|
|
1105
|
+
for (var c = [], v; v = Dy(o, s), !(v === null || (Aa(c, v), !h)); ) {
|
|
1106
|
+
var d = We(v[0]);
|
|
1107
|
+
d === "" && (o.lastIndex = My(s, Ny(o.lastIndex), f));
|
|
1137
1108
|
}
|
|
1138
|
-
for (var
|
|
1139
|
-
|
|
1140
|
-
for (var
|
|
1141
|
-
|
|
1142
|
-
var
|
|
1109
|
+
for (var g = "", p = 0, y = 0; y < c.length; y++) {
|
|
1110
|
+
v = c[y];
|
|
1111
|
+
for (var x = We(v[0]), b = Ly(By(Ry(v.index), s.length), 0), T = [], $, E = 1; E < v.length; E++)
|
|
1112
|
+
Aa(T, Fy(v[E]));
|
|
1113
|
+
var O = v.groups;
|
|
1143
1114
|
if (l) {
|
|
1144
|
-
var
|
|
1145
|
-
|
|
1115
|
+
var C = jy([x], T, b, s);
|
|
1116
|
+
O !== void 0 && Aa(C, O), $ = We(Ey(n, void 0, C));
|
|
1146
1117
|
} else
|
|
1147
|
-
|
|
1148
|
-
|
|
1118
|
+
$ = Vy(x, s, b, T, O, n);
|
|
1119
|
+
b >= p && (g += Ds(s, p, b) + $, p = b + x.length);
|
|
1149
1120
|
}
|
|
1150
|
-
return
|
|
1121
|
+
return g + Ds(s, p);
|
|
1151
1122
|
}
|
|
1152
1123
|
];
|
|
1153
|
-
}, !
|
|
1154
|
-
var
|
|
1124
|
+
}, !Gy || !Uy || ks);
|
|
1125
|
+
var zy = ve, Hy = Be, Yy = z, Xy = Yy("match"), Wy = function(a) {
|
|
1155
1126
|
var e;
|
|
1156
|
-
return
|
|
1157
|
-
},
|
|
1158
|
-
if (
|
|
1159
|
-
throw new
|
|
1127
|
+
return zy(a) && ((e = a[Xy]) !== void 0 ? !!e : Hy(a) === "RegExp");
|
|
1128
|
+
}, qy = Wy, Qy = TypeError, Zi = function(a) {
|
|
1129
|
+
if (qy(a))
|
|
1130
|
+
throw new Qy("The method doesn't accept regular expressions");
|
|
1160
1131
|
return a;
|
|
1161
|
-
},
|
|
1132
|
+
}, Ky = z, Zy = Ky("match"), Ji = function(a) {
|
|
1162
1133
|
var e = /./;
|
|
1163
1134
|
try {
|
|
1164
1135
|
"/./"[a](e);
|
|
1165
1136
|
} catch {
|
|
1166
1137
|
try {
|
|
1167
|
-
return e[
|
|
1138
|
+
return e[Zy] = !1, "/./"[a](e);
|
|
1168
1139
|
} catch {
|
|
1169
1140
|
}
|
|
1170
1141
|
}
|
|
1171
1142
|
return !1;
|
|
1172
|
-
},
|
|
1173
|
-
var a =
|
|
1143
|
+
}, Jy = ee, em = Ar, tm = $t.f, rm = ut, Ls = pe, am = Zi, im = he, nm = Ji, sm = em("".slice), om = Math.min, Wu = nm("startsWith"), um = !Wu && !!function() {
|
|
1144
|
+
var a = tm(String.prototype, "startsWith");
|
|
1174
1145
|
return a && !a.writable;
|
|
1175
1146
|
}();
|
|
1176
|
-
|
|
1147
|
+
Jy({ target: "String", proto: !0, forced: !um && !Wu }, {
|
|
1177
1148
|
startsWith: function(e) {
|
|
1178
|
-
var t =
|
|
1179
|
-
|
|
1180
|
-
var r =
|
|
1181
|
-
return
|
|
1149
|
+
var t = Ls(im(this));
|
|
1150
|
+
am(e);
|
|
1151
|
+
var r = rm(om(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = Ls(e);
|
|
1152
|
+
return sm(t, r, r + i.length) === i;
|
|
1182
1153
|
}
|
|
1183
1154
|
});
|
|
1184
|
-
var
|
|
1185
|
-
|
|
1155
|
+
var lm = z, hm = Hi, vm = Oe.f, vi = lm("unscopables"), fi = Array.prototype;
|
|
1156
|
+
fi[vi] === void 0 && vm(fi, vi, {
|
|
1186
1157
|
configurable: !0,
|
|
1187
|
-
value:
|
|
1158
|
+
value: hm(null)
|
|
1188
1159
|
});
|
|
1189
|
-
var
|
|
1190
|
-
|
|
1191
|
-
},
|
|
1160
|
+
var fm = function(a) {
|
|
1161
|
+
fi[vi][a] = !0;
|
|
1162
|
+
}, cm = k, gm = !cm(function() {
|
|
1192
1163
|
function a() {
|
|
1193
1164
|
}
|
|
1194
1165
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
|
1195
|
-
}),
|
|
1196
|
-
var e =
|
|
1197
|
-
if (
|
|
1198
|
-
return e[
|
|
1166
|
+
}), dm = fe, pm = B, ym = Tr, mm = Ai, bm = gm, Bs = mm("IE_PROTO"), ci = Object, xm = ci.prototype, qu = bm ? ci.getPrototypeOf : function(a) {
|
|
1167
|
+
var e = ym(a);
|
|
1168
|
+
if (dm(e, Bs))
|
|
1169
|
+
return e[Bs];
|
|
1199
1170
|
var t = e.constructor;
|
|
1200
|
-
return
|
|
1201
|
-
},
|
|
1202
|
-
[].keys && (
|
|
1203
|
-
var
|
|
1171
|
+
return pm(t) && e instanceof t ? t.prototype : e instanceof ci ? xm : null;
|
|
1172
|
+
}, Tm = k, Om = B, Sm = ve, js = qu, Em = Ue, $m = z, gi = $m("iterator"), Qu = !1, ke, Pa, Ra;
|
|
1173
|
+
[].keys && (Ra = [].keys(), "next" in Ra ? (Pa = js(js(Ra)), Pa !== Object.prototype && (ke = Pa)) : Qu = !0);
|
|
1174
|
+
var wm = !Sm(ke) || Tm(function() {
|
|
1204
1175
|
var a = {};
|
|
1205
|
-
return ke[
|
|
1176
|
+
return ke[gi].call(a) !== a;
|
|
1206
1177
|
});
|
|
1207
|
-
|
|
1208
|
-
|
|
1178
|
+
wm && (ke = {});
|
|
1179
|
+
Om(ke[gi]) || Em(ke, gi, function() {
|
|
1209
1180
|
return this;
|
|
1210
1181
|
});
|
|
1211
|
-
var
|
|
1182
|
+
var Ku = {
|
|
1212
1183
|
IteratorPrototype: ke,
|
|
1213
|
-
BUGGY_SAFARI_ITERATORS:
|
|
1214
|
-
},
|
|
1184
|
+
BUGGY_SAFARI_ITERATORS: Qu
|
|
1185
|
+
}, Cm = Ku.IteratorPrototype, Am = Hi, Pm = Ti, Rm = Cr, Nm = Nt, Im = function() {
|
|
1215
1186
|
return this;
|
|
1216
|
-
},
|
|
1187
|
+
}, Mm = function(a, e, t, r) {
|
|
1217
1188
|
var i = e + " Iterator";
|
|
1218
|
-
return a.prototype =
|
|
1219
|
-
},
|
|
1189
|
+
return a.prototype = Am(Cm, { next: Pm(+!r, t) }), Rm(a, i, !1), Nm[i] = Im, a;
|
|
1190
|
+
}, _m = ee, Vm = Y, Zu = Sr, Dm = B, km = Mm, Fs = qu, Us = uu, Lm = Cr, Bm = At, Na = Ue, jm = z, Fm = Nt, Ju = Ku, Um = Zu.PROPER, Gm = Zu.CONFIGURABLE, Gs = Ju.IteratorPrototype, er = Ju.BUGGY_SAFARI_ITERATORS, gt = jm("iterator"), zs = "keys", dt = "values", Hs = "entries", zm = function() {
|
|
1220
1191
|
return this;
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1192
|
+
}, Hm = function(a, e, t, r, i, n, o) {
|
|
1193
|
+
km(t, e, r);
|
|
1223
1194
|
var s = function(y) {
|
|
1224
1195
|
if (y === i && c)
|
|
1225
1196
|
return c;
|
|
1226
|
-
if (!
|
|
1197
|
+
if (!er && y && y in h)
|
|
1227
1198
|
return h[y];
|
|
1228
1199
|
switch (y) {
|
|
1229
|
-
case
|
|
1200
|
+
case zs:
|
|
1230
1201
|
return function() {
|
|
1231
1202
|
return new t(this, y);
|
|
1232
1203
|
};
|
|
1233
|
-
case
|
|
1204
|
+
case dt:
|
|
1234
1205
|
return function() {
|
|
1235
1206
|
return new t(this, y);
|
|
1236
1207
|
};
|
|
1237
|
-
case
|
|
1208
|
+
case Hs:
|
|
1238
1209
|
return function() {
|
|
1239
1210
|
return new t(this, y);
|
|
1240
1211
|
};
|
|
@@ -1242,26 +1213,26 @@ var tl = {
|
|
|
1242
1213
|
return function() {
|
|
1243
1214
|
return new t(this);
|
|
1244
1215
|
};
|
|
1245
|
-
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[
|
|
1246
|
-
if (v && (
|
|
1247
|
-
return
|
|
1216
|
+
}, 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;
|
|
1217
|
+
if (v && (d = Fs(v.call(new a())), d !== Object.prototype && d.next && (Fs(d) !== Gs && (Us ? Us(d, Gs) : Dm(d[gt]) || Na(d, gt, zm)), Lm(d, u, !0))), Um && i === dt && f && f.name !== dt && (Gm ? Bm(h, "name", dt) : (l = !0, c = function() {
|
|
1218
|
+
return Vm(f, this);
|
|
1248
1219
|
})), i)
|
|
1249
|
-
if (
|
|
1250
|
-
values: s(
|
|
1251
|
-
keys: n ? c : s(
|
|
1252
|
-
entries: s(
|
|
1220
|
+
if (g = {
|
|
1221
|
+
values: s(dt),
|
|
1222
|
+
keys: n ? c : s(zs),
|
|
1223
|
+
entries: s(Hs)
|
|
1253
1224
|
}, o)
|
|
1254
|
-
for (p in
|
|
1255
|
-
(
|
|
1225
|
+
for (p in g)
|
|
1226
|
+
(er || l || !(p in h)) && Na(h, p, g[p]);
|
|
1256
1227
|
else
|
|
1257
|
-
|
|
1258
|
-
return h[
|
|
1259
|
-
},
|
|
1228
|
+
_m({ target: e, proto: !0, forced: er || l }, g);
|
|
1229
|
+
return h[gt] !== c && Na(h, gt, c, { name: i }), Fm[e] = c, g;
|
|
1230
|
+
}, Ym = function(a, e) {
|
|
1260
1231
|
return { value: a, done: e };
|
|
1261
|
-
},
|
|
1262
|
-
|
|
1263
|
-
type:
|
|
1264
|
-
target:
|
|
1232
|
+
}, Xm = wt, en = fm, Ys = Nt, el = Er, Wm = Oe.f, qm = Hm, tr = Ym, Qm = le, tl = "Array Iterator", Km = el.set, Zm = el.getterFor(tl), Jm = qm(Array, "Array", function(a, e) {
|
|
1233
|
+
Km(this, {
|
|
1234
|
+
type: tl,
|
|
1235
|
+
target: Xm(a),
|
|
1265
1236
|
// target
|
|
1266
1237
|
index: 0,
|
|
1267
1238
|
// next index
|
|
@@ -1269,26 +1240,26 @@ var tl = {
|
|
|
1269
1240
|
// kind
|
|
1270
1241
|
});
|
|
1271
1242
|
}, function() {
|
|
1272
|
-
var a =
|
|
1243
|
+
var a = Zm(this), e = a.target, t = a.index++;
|
|
1273
1244
|
if (!e || t >= e.length)
|
|
1274
|
-
return a.target = null,
|
|
1245
|
+
return a.target = null, tr(void 0, !0);
|
|
1275
1246
|
switch (a.kind) {
|
|
1276
1247
|
case "keys":
|
|
1277
|
-
return
|
|
1248
|
+
return tr(t, !1);
|
|
1278
1249
|
case "values":
|
|
1279
|
-
return
|
|
1280
|
-
}
|
|
1281
|
-
return
|
|
1282
|
-
}, "values"),
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
if (
|
|
1250
|
+
return tr(e[t], !1);
|
|
1251
|
+
}
|
|
1252
|
+
return tr([t, e[t]], !1);
|
|
1253
|
+
}, "values"), Xs = Ys.Arguments = Ys.Array;
|
|
1254
|
+
en("keys");
|
|
1255
|
+
en("values");
|
|
1256
|
+
en("entries");
|
|
1257
|
+
if (Qm && Xs.name !== "values")
|
|
1287
1258
|
try {
|
|
1288
|
-
|
|
1259
|
+
Wm(Xs, "name", { value: "values" });
|
|
1289
1260
|
} catch {
|
|
1290
1261
|
}
|
|
1291
|
-
var
|
|
1262
|
+
var e0 = {
|
|
1292
1263
|
CSSRuleList: 0,
|
|
1293
1264
|
CSSStyleDeclaration: 0,
|
|
1294
1265
|
CSSValueList: 0,
|
|
@@ -1320,57 +1291,57 @@ var m0 = {
|
|
|
1320
1291
|
TextTrackCueList: 0,
|
|
1321
1292
|
TextTrackList: 0,
|
|
1322
1293
|
TouchList: 0
|
|
1323
|
-
},
|
|
1294
|
+
}, t0 = Or, Ia = t0("span").classList, Ws = Ia && Ia.constructor && Ia.constructor.prototype, r0 = Ws === Object.prototype ? void 0 : Ws, qs = V, rl = e0, a0 = r0, yt = Jm, Qs = At, i0 = Cr, n0 = z, Ma = n0("iterator"), _a = yt.values, al = function(a, e) {
|
|
1324
1295
|
if (a) {
|
|
1325
|
-
if (a[
|
|
1296
|
+
if (a[Ma] !== _a)
|
|
1326
1297
|
try {
|
|
1327
|
-
|
|
1298
|
+
Qs(a, Ma, _a);
|
|
1328
1299
|
} catch {
|
|
1329
|
-
a[
|
|
1300
|
+
a[Ma] = _a;
|
|
1330
1301
|
}
|
|
1331
|
-
if (
|
|
1332
|
-
for (var t in
|
|
1333
|
-
if (a[t] !==
|
|
1302
|
+
if (i0(a, e, !0), rl[e]) {
|
|
1303
|
+
for (var t in yt)
|
|
1304
|
+
if (a[t] !== yt[t])
|
|
1334
1305
|
try {
|
|
1335
|
-
|
|
1306
|
+
Qs(a, t, yt[t]);
|
|
1336
1307
|
} catch {
|
|
1337
|
-
a[t] =
|
|
1308
|
+
a[t] = yt[t];
|
|
1338
1309
|
}
|
|
1339
1310
|
}
|
|
1340
1311
|
}
|
|
1341
1312
|
};
|
|
1342
|
-
for (var
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
function
|
|
1346
|
-
if (
|
|
1313
|
+
for (var Va in rl)
|
|
1314
|
+
al(qs[Va] && qs[Va].prototype, Va);
|
|
1315
|
+
al(a0, "DOMTokenList");
|
|
1316
|
+
function s0(a, e) {
|
|
1317
|
+
if (za(a) != "object" || !a)
|
|
1347
1318
|
return a;
|
|
1348
1319
|
var t = a[Symbol.toPrimitive];
|
|
1349
1320
|
if (t !== void 0) {
|
|
1350
1321
|
var r = t.call(a, e || "default");
|
|
1351
|
-
if (
|
|
1322
|
+
if (za(r) != "object")
|
|
1352
1323
|
return r;
|
|
1353
1324
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1354
1325
|
}
|
|
1355
1326
|
return (e === "string" ? String : Number)(a);
|
|
1356
1327
|
}
|
|
1357
|
-
function
|
|
1358
|
-
var e =
|
|
1359
|
-
return
|
|
1328
|
+
function o0(a) {
|
|
1329
|
+
var e = s0(a, "string");
|
|
1330
|
+
return za(e) == "symbol" ? e : e + "";
|
|
1360
1331
|
}
|
|
1361
|
-
function
|
|
1362
|
-
return (e =
|
|
1332
|
+
function tn(a, e, t) {
|
|
1333
|
+
return (e = o0(e)) in a ? Object.defineProperty(a, e, {
|
|
1363
1334
|
value: t,
|
|
1364
1335
|
enumerable: !0,
|
|
1365
1336
|
configurable: !0,
|
|
1366
1337
|
writable: !0
|
|
1367
1338
|
}) : a[e] = t, a;
|
|
1368
1339
|
}
|
|
1369
|
-
var
|
|
1340
|
+
var u0 = Te, l0 = Tr, h0 = Fo, v0 = Ni, Ks = TypeError, Zs = "Reduce of empty array with no initial value", Js = function(a) {
|
|
1370
1341
|
return function(e, t, r, i) {
|
|
1371
|
-
var n =
|
|
1372
|
-
if (
|
|
1373
|
-
throw new
|
|
1342
|
+
var n = l0(e), o = h0(n), s = v0(n);
|
|
1343
|
+
if (u0(t), s === 0 && r < 2)
|
|
1344
|
+
throw new Ks(Zs);
|
|
1374
1345
|
var u = a ? s - 1 : 0, l = a ? -1 : 1;
|
|
1375
1346
|
if (r < 2)
|
|
1376
1347
|
for (; ; ) {
|
|
@@ -1379,65 +1350,65 @@ var w0 = Te, C0 = Sr, A0 = zo, P0 = Ii, to = TypeError, ro = "Reduce of empty ar
|
|
|
1379
1350
|
break;
|
|
1380
1351
|
}
|
|
1381
1352
|
if (u += l, a ? u < 0 : s <= u)
|
|
1382
|
-
throw new
|
|
1353
|
+
throw new Ks(Zs);
|
|
1383
1354
|
}
|
|
1384
1355
|
for (; a ? u >= 0 : s > u; u += l)
|
|
1385
1356
|
u in o && (i = t(i, o[u], u, n));
|
|
1386
1357
|
return i;
|
|
1387
1358
|
};
|
|
1388
|
-
},
|
|
1359
|
+
}, f0 = {
|
|
1389
1360
|
// `Array.prototype.reduce` method
|
|
1390
1361
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1391
|
-
left:
|
|
1362
|
+
left: Js(!1),
|
|
1392
1363
|
// `Array.prototype.reduceRight` method
|
|
1393
1364
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1394
|
-
right:
|
|
1395
|
-
},
|
|
1365
|
+
right: Js(!0)
|
|
1366
|
+
}, c0 = k, il = function(a, e) {
|
|
1396
1367
|
var t = [][a];
|
|
1397
|
-
return !!t &&
|
|
1368
|
+
return !!t && c0(function() {
|
|
1398
1369
|
t.call(null, e || function() {
|
|
1399
1370
|
return 1;
|
|
1400
1371
|
}, 1);
|
|
1401
1372
|
});
|
|
1402
|
-
},
|
|
1403
|
-
|
|
1373
|
+
}, g0 = ee, d0 = f0.left, p0 = il, eo = Oi, y0 = wr, m0 = !y0 && eo > 79 && eo < 83, b0 = m0 || !p0("reduce");
|
|
1374
|
+
g0({ target: "Array", proto: !0, forced: b0 }, {
|
|
1404
1375
|
reduce: function(e) {
|
|
1405
1376
|
var t = arguments.length;
|
|
1406
|
-
return
|
|
1377
|
+
return d0(this, e, t, t > 1 ? arguments[1] : void 0);
|
|
1407
1378
|
}
|
|
1408
1379
|
});
|
|
1409
|
-
var
|
|
1410
|
-
var a =
|
|
1380
|
+
var x0 = ee, T0 = Ar, O0 = $t.f, S0 = ut, to = pe, E0 = Zi, $0 = he, w0 = Ji, C0 = T0("".slice), A0 = Math.min, nl = w0("endsWith"), P0 = !nl && !!function() {
|
|
1381
|
+
var a = O0(String.prototype, "endsWith");
|
|
1411
1382
|
return a && !a.writable;
|
|
1412
1383
|
}();
|
|
1413
|
-
|
|
1384
|
+
x0({ target: "String", proto: !0, forced: !P0 && !nl }, {
|
|
1414
1385
|
endsWith: function(e) {
|
|
1415
|
-
var t =
|
|
1416
|
-
|
|
1417
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i :
|
|
1418
|
-
return
|
|
1386
|
+
var t = to($0(this));
|
|
1387
|
+
E0(e);
|
|
1388
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : A0(S0(r), i), o = to(e);
|
|
1389
|
+
return C0(t, n - o.length, n) === o;
|
|
1419
1390
|
}
|
|
1420
1391
|
});
|
|
1421
|
-
var
|
|
1392
|
+
var Da = Y, sl = L, R0 = Xi, N0 = J, I0 = je, M0 = he, _0 = gu, V0 = qi, D0 = ut, ro = pe, k0 = ot, ao = Qi, L0 = Uu, B0 = k, qe = L0.UNSUPPORTED_Y, j0 = 4294967295, F0 = Math.min, ka = sl([].push), La = sl("".slice), U0 = !B0(function() {
|
|
1422
1393
|
var a = /(?:)/, e = a.exec;
|
|
1423
1394
|
a.exec = function() {
|
|
1424
1395
|
return e.apply(this, arguments);
|
|
1425
1396
|
};
|
|
1426
1397
|
var t = "ab".split(a);
|
|
1427
1398
|
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
|
|
1428
|
-
}),
|
|
1399
|
+
}), io = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
1429
1400
|
"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
|
|
1430
1401
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
|
1431
|
-
|
|
1402
|
+
R0("split", function(a, e, t) {
|
|
1432
1403
|
var r = "0".split(void 0, 0).length ? function(i, n) {
|
|
1433
|
-
return i === void 0 && n === 0 ? [] :
|
|
1404
|
+
return i === void 0 && n === 0 ? [] : Da(e, this, i, n);
|
|
1434
1405
|
} : e;
|
|
1435
1406
|
return [
|
|
1436
1407
|
// `String.prototype.split` method
|
|
1437
1408
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1438
1409
|
function(n, o) {
|
|
1439
|
-
var s =
|
|
1440
|
-
return u ?
|
|
1410
|
+
var s = M0(this), u = I0(n) ? void 0 : k0(n, a);
|
|
1411
|
+
return u ? Da(u, n, s, o) : Da(r, ro(s), n, o);
|
|
1441
1412
|
},
|
|
1442
1413
|
// `RegExp.prototype[@@split]` method
|
|
1443
1414
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1445,66 +1416,66 @@ W0("split", function(a, e, t) {
|
|
|
1445
1416
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
1446
1417
|
// the 'y' flag.
|
|
1447
1418
|
function(i, n) {
|
|
1448
|
-
var o =
|
|
1449
|
-
if (!
|
|
1419
|
+
var o = N0(this), s = ro(i);
|
|
1420
|
+
if (!io) {
|
|
1450
1421
|
var u = t(r, o, s, n, r !== e);
|
|
1451
1422
|
if (u.done)
|
|
1452
1423
|
return u.value;
|
|
1453
1424
|
}
|
|
1454
|
-
var l =
|
|
1425
|
+
var l = _0(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 ? j0 : n >>> 0;
|
|
1455
1426
|
if (v === 0)
|
|
1456
1427
|
return [];
|
|
1457
1428
|
if (s.length === 0)
|
|
1458
|
-
return
|
|
1459
|
-
for (var
|
|
1460
|
-
c.lastIndex =
|
|
1461
|
-
var y =
|
|
1462
|
-
if (y === null || (x =
|
|
1463
|
-
|
|
1429
|
+
return ao(c, s) === null ? [s] : [];
|
|
1430
|
+
for (var d = 0, g = 0, p = []; g < s.length; ) {
|
|
1431
|
+
c.lastIndex = qe ? 0 : g;
|
|
1432
|
+
var y = ao(c, qe ? La(s, g) : s), x;
|
|
1433
|
+
if (y === null || (x = F0(D0(c.lastIndex + (qe ? g : 0)), s.length)) === d)
|
|
1434
|
+
g = V0(s, g, h);
|
|
1464
1435
|
else {
|
|
1465
|
-
if (ka(p,
|
|
1436
|
+
if (ka(p, La(s, d, g)), p.length === v)
|
|
1466
1437
|
return p;
|
|
1467
1438
|
for (var b = 1; b <= y.length - 1; b++)
|
|
1468
1439
|
if (ka(p, y[b]), p.length === v)
|
|
1469
1440
|
return p;
|
|
1470
|
-
|
|
1441
|
+
g = d = x;
|
|
1471
1442
|
}
|
|
1472
1443
|
}
|
|
1473
|
-
return ka(p,
|
|
1444
|
+
return ka(p, La(s, d)), p;
|
|
1474
1445
|
}
|
|
1475
1446
|
];
|
|
1476
|
-
},
|
|
1477
|
-
var
|
|
1447
|
+
}, io || !U0, qe);
|
|
1448
|
+
var Mr = { exports: {} }, mt = { exports: {} };
|
|
1478
1449
|
(function() {
|
|
1479
1450
|
var a, e, t, r, i, n;
|
|
1480
|
-
typeof performance < "u" && performance !== null && performance.now ?
|
|
1451
|
+
typeof performance < "u" && performance !== null && performance.now ? mt.exports = function() {
|
|
1481
1452
|
return performance.now();
|
|
1482
|
-
} : typeof process < "u" && process !== null && process.hrtime ? (
|
|
1453
|
+
} : typeof process < "u" && process !== null && process.hrtime ? (mt.exports = function() {
|
|
1483
1454
|
return (a() - i) / 1e6;
|
|
1484
1455
|
}, e = process.hrtime, a = function() {
|
|
1485
1456
|
var o;
|
|
1486
1457
|
return o = e(), o[0] * 1e9 + o[1];
|
|
1487
|
-
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (
|
|
1458
|
+
}, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (mt.exports = function() {
|
|
1488
1459
|
return Date.now() - t;
|
|
1489
|
-
}, t = Date.now()) : (
|
|
1460
|
+
}, t = Date.now()) : (mt.exports = function() {
|
|
1490
1461
|
return (/* @__PURE__ */ new Date()).getTime() - t;
|
|
1491
1462
|
}, t = (/* @__PURE__ */ new Date()).getTime());
|
|
1492
|
-
}).call(
|
|
1493
|
-
var
|
|
1494
|
-
for (var
|
|
1495
|
-
|
|
1496
|
-
if (!
|
|
1497
|
-
var
|
|
1498
|
-
|
|
1499
|
-
if (
|
|
1500
|
-
var e =
|
|
1501
|
-
|
|
1502
|
-
var r =
|
|
1503
|
-
|
|
1463
|
+
}).call(Ke);
|
|
1464
|
+
var G0 = mt.exports, z0 = G0, be = typeof window > "u" ? Ke : window, rr = ["moz", "webkit"], rt = "AnimationFrame", st = be["request" + rt], Et = be["cancel" + rt] || be["cancelRequest" + rt];
|
|
1465
|
+
for (var pt = 0; !st && pt < rr.length; pt++)
|
|
1466
|
+
st = be[rr[pt] + "Request" + rt], Et = be[rr[pt] + "Cancel" + rt] || be[rr[pt] + "CancelRequest" + rt];
|
|
1467
|
+
if (!st || !Et) {
|
|
1468
|
+
var Ba = 0, no = 0, Me = [], H0 = 1e3 / 60;
|
|
1469
|
+
st = function(a) {
|
|
1470
|
+
if (Me.length === 0) {
|
|
1471
|
+
var e = z0(), t = Math.max(0, H0 - (e - Ba));
|
|
1472
|
+
Ba = t + e, setTimeout(function() {
|
|
1473
|
+
var r = Me.slice(0);
|
|
1474
|
+
Me.length = 0;
|
|
1504
1475
|
for (var i = 0; i < r.length; i++)
|
|
1505
1476
|
if (!r[i].cancelled)
|
|
1506
1477
|
try {
|
|
1507
|
-
r[i].callback(
|
|
1478
|
+
r[i].callback(Ba);
|
|
1508
1479
|
} catch (n) {
|
|
1509
1480
|
setTimeout(function() {
|
|
1510
1481
|
throw n;
|
|
@@ -1512,54 +1483,54 @@ if (!nt || !St) {
|
|
|
1512
1483
|
}
|
|
1513
1484
|
}, Math.round(t));
|
|
1514
1485
|
}
|
|
1515
|
-
return
|
|
1516
|
-
handle: ++
|
|
1486
|
+
return Me.push({
|
|
1487
|
+
handle: ++no,
|
|
1517
1488
|
callback: a,
|
|
1518
1489
|
cancelled: !1
|
|
1519
|
-
}),
|
|
1520
|
-
},
|
|
1521
|
-
for (var e = 0; e <
|
|
1522
|
-
|
|
1490
|
+
}), no;
|
|
1491
|
+
}, Et = function(a) {
|
|
1492
|
+
for (var e = 0; e < Me.length; e++)
|
|
1493
|
+
Me[e].handle === a && (Me[e].cancelled = !0);
|
|
1523
1494
|
};
|
|
1524
1495
|
}
|
|
1525
|
-
|
|
1526
|
-
return
|
|
1496
|
+
Mr.exports = function(a) {
|
|
1497
|
+
return st.call(be, a);
|
|
1527
1498
|
};
|
|
1528
|
-
|
|
1529
|
-
|
|
1499
|
+
Mr.exports.cancel = function() {
|
|
1500
|
+
Et.apply(be, arguments);
|
|
1530
1501
|
};
|
|
1531
|
-
|
|
1532
|
-
a || (a = be), a.requestAnimationFrame =
|
|
1502
|
+
Mr.exports.polyfill = function(a) {
|
|
1503
|
+
a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame = Et;
|
|
1533
1504
|
};
|
|
1534
|
-
var
|
|
1535
|
-
const
|
|
1536
|
-
var
|
|
1537
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
1505
|
+
var Y0 = Mr.exports;
|
|
1506
|
+
const ja = /* @__PURE__ */ _o(Y0);
|
|
1507
|
+
var ol = `
|
|
1508
|
+
\v\f\r \u2028\u2029\uFEFF`, X0 = L, W0 = he, q0 = pe, di = ol, so = X0("".replace), Q0 = RegExp("^[" + di + "]+"), K0 = RegExp("(^|[^" + di + "])[" + di + "]+$"), Fa = function(a) {
|
|
1538
1509
|
return function(e) {
|
|
1539
|
-
var t =
|
|
1540
|
-
return a & 1 && (t =
|
|
1510
|
+
var t = q0(W0(e));
|
|
1511
|
+
return a & 1 && (t = so(t, Q0, "")), a & 2 && (t = so(t, K0, "$1")), t;
|
|
1541
1512
|
};
|
|
1542
|
-
},
|
|
1513
|
+
}, Z0 = {
|
|
1543
1514
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1544
1515
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1545
|
-
start:
|
|
1516
|
+
start: Fa(1),
|
|
1546
1517
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1547
1518
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1548
|
-
end:
|
|
1519
|
+
end: Fa(2),
|
|
1549
1520
|
// `String.prototype.trim` method
|
|
1550
1521
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1551
|
-
trim:
|
|
1552
|
-
},
|
|
1553
|
-
return
|
|
1554
|
-
return !!
|
|
1522
|
+
trim: Fa(3)
|
|
1523
|
+
}, J0 = Sr.PROPER, eb = k, oo = ol, uo = "
", tb = function(a) {
|
|
1524
|
+
return eb(function() {
|
|
1525
|
+
return !!oo[a]() || uo[a]() !== uo || J0 && oo[a].name !== a;
|
|
1555
1526
|
});
|
|
1556
|
-
},
|
|
1557
|
-
|
|
1527
|
+
}, rb = ee, ab = Z0.trim, ib = tb;
|
|
1528
|
+
rb({ target: "String", proto: !0, forced: ib("trim") }, {
|
|
1558
1529
|
trim: function() {
|
|
1559
|
-
return
|
|
1530
|
+
return ab(this);
|
|
1560
1531
|
}
|
|
1561
1532
|
});
|
|
1562
|
-
var
|
|
1533
|
+
var nb = function(a) {
|
|
1563
1534
|
this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
|
|
1564
1535
|
var e = {
|
|
1565
1536
|
aliceblue: "f0f8ff",
|
|
@@ -1778,41 +1749,41 @@ var Sb = function(a) {
|
|
|
1778
1749
|
v.setAttribute("id", "rgbcolor-examples");
|
|
1779
1750
|
for (var l = 0; l < u.length; l++)
|
|
1780
1751
|
try {
|
|
1781
|
-
var
|
|
1782
|
-
p.style.cssText = "margin: 3px; border: 1px solid black; background:" +
|
|
1752
|
+
var d = document.createElement("li"), g = new RGBColor(u[l]), p = document.createElement("div");
|
|
1753
|
+
p.style.cssText = "margin: 3px; border: 1px solid black; background:" + g.toHex() + "; color:" + g.toHex(), p.appendChild(document.createTextNode("test"));
|
|
1783
1754
|
var y = document.createTextNode(
|
|
1784
|
-
" " + u[l] + " -> " +
|
|
1755
|
+
" " + u[l] + " -> " + g.toRGB() + " -> " + g.toHex()
|
|
1785
1756
|
);
|
|
1786
|
-
|
|
1757
|
+
d.appendChild(p), d.appendChild(y), v.appendChild(d);
|
|
1787
1758
|
} catch {
|
|
1788
1759
|
}
|
|
1789
1760
|
return v;
|
|
1790
1761
|
};
|
|
1791
1762
|
};
|
|
1792
|
-
const
|
|
1793
|
-
var
|
|
1794
|
-
|
|
1763
|
+
const pi = /* @__PURE__ */ _o(nb);
|
|
1764
|
+
var sb = ee, ob = Ar, ub = au.indexOf, lb = il, yi = ob([].indexOf), ul = !!yi && 1 / yi([1], 1, -0) < 0, hb = ul || !lb("indexOf");
|
|
1765
|
+
sb({ target: "Array", proto: !0, forced: hb }, {
|
|
1795
1766
|
indexOf: function(e) {
|
|
1796
1767
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1797
|
-
return
|
|
1768
|
+
return ul ? yi(this, e, t) || 0 : ub(this, e, t);
|
|
1798
1769
|
}
|
|
1799
1770
|
});
|
|
1800
|
-
var
|
|
1801
|
-
|
|
1771
|
+
var vb = ee, fb = L, cb = Zi, gb = he, lo = pe, db = Ji, pb = fb("".indexOf);
|
|
1772
|
+
vb({ target: "String", proto: !0, forced: !db("includes") }, {
|
|
1802
1773
|
includes: function(e) {
|
|
1803
|
-
return !!~
|
|
1804
|
-
|
|
1805
|
-
|
|
1774
|
+
return !!~pb(
|
|
1775
|
+
lo(gb(this)),
|
|
1776
|
+
lo(cb(e)),
|
|
1806
1777
|
arguments.length > 1 ? arguments[1] : void 0
|
|
1807
1778
|
);
|
|
1808
1779
|
}
|
|
1809
1780
|
});
|
|
1810
|
-
var
|
|
1811
|
-
return
|
|
1812
|
-
},
|
|
1813
|
-
|
|
1781
|
+
var yb = Be, mb = Array.isArray || function(e) {
|
|
1782
|
+
return yb(e) === "Array";
|
|
1783
|
+
}, bb = ee, xb = L, Tb = mb, Ob = xb([].reverse), ho = [1, 2];
|
|
1784
|
+
bb({ target: "Array", proto: !0, forced: String(ho) === String(ho.reverse()) }, {
|
|
1814
1785
|
reverse: function() {
|
|
1815
|
-
return
|
|
1786
|
+
return Tb(this) && (this.length = this.length), Ob(this);
|
|
1816
1787
|
}
|
|
1817
1788
|
});
|
|
1818
1789
|
/*! *****************************************************************************
|
|
@@ -1829,23 +1800,23 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1829
1800
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1830
1801
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1831
1802
|
***************************************************************************** */
|
|
1832
|
-
var
|
|
1833
|
-
return (
|
|
1803
|
+
var ll = function(a, e) {
|
|
1804
|
+
return (ll = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
1834
1805
|
t.__proto__ = r;
|
|
1835
1806
|
} || function(t, r) {
|
|
1836
1807
|
for (var i in r)
|
|
1837
1808
|
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1838
1809
|
})(a, e);
|
|
1839
1810
|
};
|
|
1840
|
-
function
|
|
1811
|
+
function hl(a, e) {
|
|
1841
1812
|
if (typeof e != "function" && e !== null)
|
|
1842
1813
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1843
1814
|
function t() {
|
|
1844
1815
|
this.constructor = a;
|
|
1845
1816
|
}
|
|
1846
|
-
|
|
1817
|
+
ll(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
1847
1818
|
}
|
|
1848
|
-
function
|
|
1819
|
+
function Sb(a) {
|
|
1849
1820
|
var e = "";
|
|
1850
1821
|
Array.isArray(a) || (a = [a]);
|
|
1851
1822
|
for (var t = 0; t < a.length; t++) {
|
|
@@ -1876,11 +1847,11 @@ function Fb(a) {
|
|
|
1876
1847
|
}
|
|
1877
1848
|
return e;
|
|
1878
1849
|
}
|
|
1879
|
-
function
|
|
1850
|
+
function mi(a, e) {
|
|
1880
1851
|
var t = a[0], r = a[1];
|
|
1881
1852
|
return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
|
|
1882
1853
|
}
|
|
1883
|
-
function
|
|
1854
|
+
function oe() {
|
|
1884
1855
|
for (var a = [], e = 0; e < arguments.length; e++)
|
|
1885
1856
|
a[e] = arguments[e];
|
|
1886
1857
|
for (var t = 0; t < a.length; t++)
|
|
@@ -1889,17 +1860,17 @@ function ue() {
|
|
|
1889
1860
|
return !0;
|
|
1890
1861
|
}
|
|
1891
1862
|
var Ee = Math.PI;
|
|
1892
|
-
function
|
|
1863
|
+
function Ua(a, e, t) {
|
|
1893
1864
|
a.lArcFlag = a.lArcFlag === 0 ? 0 : 1, a.sweepFlag = a.sweepFlag === 0 ? 0 : 1;
|
|
1894
1865
|
var r = a.rX, i = a.rY, n = a.x, o = a.y;
|
|
1895
1866
|
r = Math.abs(a.rX), i = Math.abs(a.rY);
|
|
1896
|
-
var s =
|
|
1867
|
+
var s = mi([(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);
|
|
1897
1868
|
1 < h && (r *= Math.sqrt(h), i *= Math.sqrt(h)), a.rX = r, a.rY = i;
|
|
1898
|
-
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,
|
|
1899
|
-
a.cX =
|
|
1869
|
+
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 = mi([v, d], a.xRot / 180 * Ee);
|
|
1870
|
+
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;
|
|
1900
1871
|
}
|
|
1901
|
-
function
|
|
1902
|
-
|
|
1872
|
+
function vo(a, e, t) {
|
|
1873
|
+
oe(a, e, t);
|
|
1903
1874
|
var r = a * a + e * e - t * t;
|
|
1904
1875
|
if (0 > r)
|
|
1905
1876
|
return [];
|
|
@@ -1909,13 +1880,13 @@ function po(a, e, t) {
|
|
|
1909
1880
|
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)]];
|
|
1910
1881
|
}
|
|
1911
1882
|
var U, ye = Math.PI / 180;
|
|
1912
|
-
function
|
|
1883
|
+
function fo(a, e, t) {
|
|
1913
1884
|
return (1 - t) * a + t * e;
|
|
1914
1885
|
}
|
|
1915
|
-
function
|
|
1886
|
+
function co(a, e, t, r) {
|
|
1916
1887
|
return a + Math.cos(r / 180 * Ee) * e + Math.sin(r / 180 * Ee) * t;
|
|
1917
1888
|
}
|
|
1918
|
-
function
|
|
1889
|
+
function go(a, e, t, r) {
|
|
1919
1890
|
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;
|
|
1920
1891
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
|
1921
1892
|
c === void 0 && (c = 1e-6);
|
|
@@ -1924,11 +1895,11 @@ function bo(a, e, t, r) {
|
|
|
1924
1895
|
return [];
|
|
1925
1896
|
if (v <= c)
|
|
1926
1897
|
return [-h / 2];
|
|
1927
|
-
var
|
|
1928
|
-
return [-h / 2 -
|
|
1898
|
+
var d = Math.sqrt(v);
|
|
1899
|
+
return [-h / 2 - d, -h / 2 + d];
|
|
1929
1900
|
}(u / s, l / s, i);
|
|
1930
1901
|
}
|
|
1931
|
-
function
|
|
1902
|
+
function po(a, e, t, r, i) {
|
|
1932
1903
|
var n = 1 - i;
|
|
1933
1904
|
return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
|
|
1934
1905
|
}
|
|
@@ -1966,19 +1937,19 @@ function xo(a, e, t, r, i) {
|
|
|
1966
1937
|
};
|
|
1967
1938
|
}
|
|
1968
1939
|
function n(s, u, l, h, f, c) {
|
|
1969
|
-
return
|
|
1970
|
-
var y = v.x1, x = v.x2, b = v.relative && !isNaN(p), T = v.x !== void 0 ? v.x : b ? 0 :
|
|
1971
|
-
function E(
|
|
1972
|
-
return
|
|
1940
|
+
return oe(s, u, l, h, f, c), i(function(v, d, g, p) {
|
|
1941
|
+
var y = v.x1, x = v.x2, b = v.relative && !isNaN(p), T = v.x !== void 0 ? v.x : b ? 0 : d, $ = v.y !== void 0 ? v.y : b ? 0 : g;
|
|
1942
|
+
function E(ne) {
|
|
1943
|
+
return ne * ne;
|
|
1973
1944
|
}
|
|
1974
|
-
v.type & m.HORIZ_LINE_TO && u !== 0 && (v.type = m.LINE_TO, v.y = v.relative ? 0 :
|
|
1945
|
+
v.type & m.HORIZ_LINE_TO && u !== 0 && (v.type = m.LINE_TO, v.y = v.relative ? 0 : g), v.type & m.VERT_LINE_TO && l !== 0 && (v.type = m.LINE_TO, v.x = v.relative ? 0 : d), v.x !== void 0 && (v.x = v.x * s + $ * l + (b ? 0 : f)), v.y !== void 0 && (v.y = T * u + v.y * h + (b ? 0 : c)), v.x1 !== void 0 && (v.x1 = v.x1 * s + v.y1 * l + (b ? 0 : f)), v.y1 !== void 0 && (v.y1 = y * u + v.y1 * h + (b ? 0 : c)), v.x2 !== void 0 && (v.x2 = v.x2 * s + v.y2 * l + (b ? 0 : f)), v.y2 !== void 0 && (v.y2 = x * u + v.y2 * h + (b ? 0 : c));
|
|
1975
1946
|
var O = s * h - u * l;
|
|
1976
1947
|
if (v.xRot !== void 0 && (s !== 1 || u !== 0 || l !== 0 || h !== 1))
|
|
1977
1948
|
if (O === 0)
|
|
1978
1949
|
delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = m.LINE_TO;
|
|
1979
1950
|
else {
|
|
1980
|
-
var C = v.xRot * Math.PI / 180,
|
|
1981
|
-
v.rX = Math.abs(O) / Math.sqrt(q * E(K) + H * M * K + Q * E(M)), v.rY = Math.abs(O) / Math.sqrt(q * E(M) - H * M * K + Q * E(K)), v.xRot = 180 *
|
|
1951
|
+
var C = v.xRot * Math.PI / 180, I = Math.sin(C), _ = Math.cos(C), j = 1 / E(v.rX), P = 1 / E(v.rY), X = E(_) * j + E(I) * P, W = 2 * I * _ * (j - P), G = E(I) * j + E(_) * P, q = X * h * h - W * u * h + G * u * u, H = W * (s * h + u * l) - 2 * (X * l * h + G * s * u), Q = X * l * l - W * s * l + G * s * s, R = (Math.atan2(H, q - Q) + Math.PI) % Math.PI / 2, M = Math.sin(R), K = Math.cos(R);
|
|
1952
|
+
v.rX = Math.abs(O) / Math.sqrt(q * E(K) + H * M * K + Q * E(M)), v.rY = Math.abs(O) / Math.sqrt(q * E(M) - H * M * K + Q * E(K)), v.xRot = 180 * R / Math.PI;
|
|
1982
1953
|
}
|
|
1983
1954
|
return v.sweepFlag !== void 0 && 0 > O && (v.sweepFlag = +!v.sweepFlag), v;
|
|
1984
1955
|
});
|
|
@@ -1995,7 +1966,7 @@ function xo(a, e, t, r, i) {
|
|
|
1995
1966
|
function u(l) {
|
|
1996
1967
|
return Math.round(l * s) / s;
|
|
1997
1968
|
}
|
|
1998
|
-
return s === void 0 && (s = 1e13),
|
|
1969
|
+
return s === void 0 && (s = 1e13), oe(s), function(l) {
|
|
1999
1970
|
return l.x1 !== void 0 && (l.x1 = u(l.x1)), l.y1 !== void 0 && (l.y1 = u(l.y1)), l.x2 !== void 0 && (l.x2 = u(l.x2)), l.y2 !== void 0 && (l.y2 = u(l.y2)), l.x !== void 0 && (l.x = u(l.x)), l.y !== void 0 && (l.y = u(l.y)), l.rX !== void 0 && (l.rX = u(l.rX)), l.rY !== void 0 && (l.rY = u(l.rY)), l;
|
|
2000
1971
|
};
|
|
2001
1972
|
}, a.TO_ABS = e, a.TO_REL = function() {
|
|
@@ -2003,92 +1974,92 @@ function xo(a, e, t, r, i) {
|
|
|
2003
1974
|
return s.relative || (s.x1 !== void 0 && (s.x1 -= u), s.y1 !== void 0 && (s.y1 -= l), s.x2 !== void 0 && (s.x2 -= u), s.y2 !== void 0 && (s.y2 -= l), s.x !== void 0 && (s.x -= u), s.y !== void 0 && (s.y -= l), s.relative = !0), s;
|
|
2004
1975
|
});
|
|
2005
1976
|
}, a.NORMALIZE_HVZ = function(s, u, l) {
|
|
2006
|
-
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, f, c, v,
|
|
1977
|
+
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, f, c, v, d) {
|
|
2007
1978
|
if (isNaN(v) && !(h.type & m.MOVE_TO))
|
|
2008
1979
|
throw new Error("path must start with moveto");
|
|
2009
|
-
return u && h.type & m.HORIZ_LINE_TO && (h.type = m.LINE_TO, h.y = h.relative ? 0 : c), l && h.type & m.VERT_LINE_TO && (h.type = m.LINE_TO, h.x = h.relative ? 0 : f), s && h.type & m.CLOSE_PATH && (h.type = m.LINE_TO, h.x = h.relative ? v - f : v, h.y = h.relative ?
|
|
1980
|
+
return u && h.type & m.HORIZ_LINE_TO && (h.type = m.LINE_TO, h.y = h.relative ? 0 : c), l && h.type & m.VERT_LINE_TO && (h.type = m.LINE_TO, h.x = h.relative ? 0 : f), s && h.type & m.CLOSE_PATH && (h.type = m.LINE_TO, h.x = h.relative ? v - f : v, h.y = h.relative ? d - c : d), h.type & m.ARC && (h.rX === 0 || h.rY === 0) && (h.type = m.LINE_TO, delete h.rX, delete h.rY, delete h.xRot, delete h.lArcFlag, delete h.sweepFlag), h;
|
|
2010
1981
|
});
|
|
2011
1982
|
}, a.NORMALIZE_ST = t, a.QT_TO_C = r, a.INFO = i, a.SANITIZE = function(s) {
|
|
2012
|
-
s === void 0 && (s = 0),
|
|
1983
|
+
s === void 0 && (s = 0), oe(s);
|
|
2013
1984
|
var u = NaN, l = NaN, h = NaN, f = NaN;
|
|
2014
|
-
return i(function(c, v,
|
|
1985
|
+
return i(function(c, v, d, g, p) {
|
|
2015
1986
|
var y = Math.abs, x = !1, b = 0, T = 0;
|
|
2016
|
-
if (c.type & m.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : v - u, T = isNaN(l) ? 0 :
|
|
2017
|
-
var $ = c.x === void 0 ? 0 : c.relative ? c.x : c.x - v, E = c.y === void 0 ? 0 : c.relative ? c.y : c.y -
|
|
2018
|
-
b = isNaN(h) ? c.x1 === void 0 ? b : c.relative ? c.x : c.x1 - v : h - v, T = isNaN(f) ? c.y1 === void 0 ? T : c.relative ? c.y : c.y1 -
|
|
2019
|
-
var O = c.x2 === void 0 ? 0 : c.relative ? c.x : c.x2 - v, C = c.y2 === void 0 ? 0 : c.relative ? c.y : c.y2 -
|
|
1987
|
+
if (c.type & m.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : v - u, T = isNaN(l) ? 0 : d - l), c.type & (m.CURVE_TO | m.SMOOTH_CURVE_TO) ? (u = c.relative ? v + c.x2 : c.x2, l = c.relative ? d + c.y2 : c.y2) : (u = NaN, l = NaN), c.type & m.SMOOTH_QUAD_TO ? (h = isNaN(h) ? v : 2 * v - h, f = isNaN(f) ? d : 2 * d - f) : c.type & m.QUAD_TO ? (h = c.relative ? v + c.x1 : c.x1, f = c.relative ? d + c.y1 : c.y2) : (h = NaN, f = NaN), c.type & m.LINE_COMMANDS || c.type & m.ARC && (c.rX === 0 || c.rY === 0 || !c.lArcFlag) || c.type & m.CURVE_TO || c.type & m.SMOOTH_CURVE_TO || c.type & m.QUAD_TO || c.type & m.SMOOTH_QUAD_TO) {
|
|
1988
|
+
var $ = c.x === void 0 ? 0 : c.relative ? c.x : c.x - v, E = c.y === void 0 ? 0 : c.relative ? c.y : c.y - d;
|
|
1989
|
+
b = isNaN(h) ? c.x1 === void 0 ? b : c.relative ? c.x : c.x1 - v : h - v, T = isNaN(f) ? c.y1 === void 0 ? T : c.relative ? c.y : c.y1 - d : f - d;
|
|
1990
|
+
var O = c.x2 === void 0 ? 0 : c.relative ? c.x : c.x2 - v, C = c.y2 === void 0 ? 0 : c.relative ? c.y : c.y2 - d;
|
|
2020
1991
|
y($) <= s && y(E) <= s && y(b) <= s && y(T) <= s && y(O) <= s && y(C) <= s && (x = !0);
|
|
2021
1992
|
}
|
|
2022
|
-
return c.type & m.CLOSE_PATH && y(v -
|
|
1993
|
+
return c.type & m.CLOSE_PATH && y(v - g) <= s && y(d - p) <= s && (x = !0), x ? [] : c;
|
|
2023
1994
|
});
|
|
2024
1995
|
}, a.MATRIX = n, a.ROTATE = function(s, u, l) {
|
|
2025
|
-
u === void 0 && (u = 0), l === void 0 && (l = 0),
|
|
1996
|
+
u === void 0 && (u = 0), l === void 0 && (l = 0), oe(s, u, l);
|
|
2026
1997
|
var h = Math.sin(s), f = Math.cos(s);
|
|
2027
1998
|
return n(f, h, -h, f, u - u * f + l * h, l - u * h - l * f);
|
|
2028
1999
|
}, a.TRANSLATE = function(s, u) {
|
|
2029
|
-
return u === void 0 && (u = 0),
|
|
2000
|
+
return u === void 0 && (u = 0), oe(s, u), n(1, 0, 0, 1, s, u);
|
|
2030
2001
|
}, a.SCALE = function(s, u) {
|
|
2031
|
-
return u === void 0 && (u = s),
|
|
2002
|
+
return u === void 0 && (u = s), oe(s, u), n(s, 0, 0, u, 0, 0);
|
|
2032
2003
|
}, a.SKEW_X = function(s) {
|
|
2033
|
-
return
|
|
2004
|
+
return oe(s), n(1, 0, Math.atan(s), 1, 0, 0);
|
|
2034
2005
|
}, a.SKEW_Y = function(s) {
|
|
2035
|
-
return
|
|
2006
|
+
return oe(s), n(1, Math.atan(s), 0, 1, 0, 0);
|
|
2036
2007
|
}, a.X_AXIS_SYMMETRY = function(s) {
|
|
2037
|
-
return s === void 0 && (s = 0),
|
|
2008
|
+
return s === void 0 && (s = 0), oe(s), n(-1, 0, 0, 1, s, 0);
|
|
2038
2009
|
}, a.Y_AXIS_SYMMETRY = function(s) {
|
|
2039
|
-
return s === void 0 && (s = 0),
|
|
2010
|
+
return s === void 0 && (s = 0), oe(s), n(1, 0, 0, -1, 0, s);
|
|
2040
2011
|
}, a.A_TO_C = function() {
|
|
2041
2012
|
return i(function(s, u, l) {
|
|
2042
2013
|
return m.ARC === s.type ? function(h, f, c) {
|
|
2043
|
-
var v,
|
|
2044
|
-
h.cX ||
|
|
2014
|
+
var v, d, g, p;
|
|
2015
|
+
h.cX || Ua(h, f, c);
|
|
2045
2016
|
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++) {
|
|
2046
|
-
var C =
|
|
2017
|
+
var C = fo(h.phi1, h.phi2, O / b), I = fo(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];
|
|
2047
2018
|
T[O] = { relative: h.relative, type: m.CURVE_TO };
|
|
2048
|
-
var K = function(
|
|
2049
|
-
var Se =
|
|
2050
|
-
return [h.cX + ze, h.cY +
|
|
2019
|
+
var K = function(ne, ge) {
|
|
2020
|
+
var Se = mi([ne * h.rX, ge * h.rY], h.xRot), ze = Se[0], Mt = Se[1];
|
|
2021
|
+
return [h.cX + ze, h.cY + Mt];
|
|
2051
2022
|
};
|
|
2052
|
-
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1],
|
|
2023
|
+
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];
|
|
2053
2024
|
}
|
|
2054
2025
|
return T;
|
|
2055
2026
|
}(s, s.relative ? 0 : u, s.relative ? 0 : l) : s;
|
|
2056
2027
|
});
|
|
2057
2028
|
}, a.ANNOTATE_ARCS = function() {
|
|
2058
2029
|
return i(function(s, u, l) {
|
|
2059
|
-
return s.relative && (u = 0, l = 0), m.ARC === s.type &&
|
|
2030
|
+
return s.relative && (u = 0, l = 0), m.ARC === s.type && Ua(s, u, l), s;
|
|
2060
2031
|
});
|
|
2061
2032
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
|
2062
2033
|
var s = function(c) {
|
|
2063
2034
|
var v = {};
|
|
2064
|
-
for (var
|
|
2065
|
-
v[
|
|
2035
|
+
for (var d in c)
|
|
2036
|
+
v[d] = c[d];
|
|
2066
2037
|
return v;
|
|
2067
|
-
}, u = e(), l = r(), h = t(), f = i(function(c, v,
|
|
2068
|
-
var
|
|
2038
|
+
}, u = e(), l = r(), h = t(), f = i(function(c, v, d) {
|
|
2039
|
+
var g = h(l(u(s(c))));
|
|
2069
2040
|
function p(M) {
|
|
2070
2041
|
M > f.maxX && (f.maxX = M), M < f.minX && (f.minX = M);
|
|
2071
2042
|
}
|
|
2072
2043
|
function y(M) {
|
|
2073
2044
|
M > f.maxY && (f.maxY = M), M < f.minY && (f.minY = M);
|
|
2074
2045
|
}
|
|
2075
|
-
if (
|
|
2076
|
-
p(
|
|
2077
|
-
for (var x = 0, b =
|
|
2078
|
-
0 < (
|
|
2079
|
-
for (var T = 0, $ =
|
|
2080
|
-
0 < (
|
|
2046
|
+
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) {
|
|
2047
|
+
p(g.x), y(g.y);
|
|
2048
|
+
for (var x = 0, b = go(v, g.x1, g.x2, g.x); x < b.length; x++)
|
|
2049
|
+
0 < (R = b[x]) && 1 > R && p(po(v, g.x1, g.x2, g.x, R));
|
|
2050
|
+
for (var T = 0, $ = go(d, g.y1, g.y2, g.y); T < $.length; T++)
|
|
2051
|
+
0 < (R = $[T]) && 1 > R && y(po(d, g.y1, g.y2, g.y, R));
|
|
2081
2052
|
}
|
|
2082
|
-
if (
|
|
2083
|
-
p(
|
|
2084
|
-
for (var E =
|
|
2085
|
-
var K = M[0],
|
|
2086
|
-
return ge <
|
|
2087
|
-
}, G = 0, q =
|
|
2088
|
-
(
|
|
2089
|
-
for (var H = 0, Q =
|
|
2090
|
-
var
|
|
2091
|
-
(
|
|
2053
|
+
if (g.type & m.ARC) {
|
|
2054
|
+
p(g.x), y(g.y), Ua(g, v, d);
|
|
2055
|
+
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) {
|
|
2056
|
+
var K = M[0], ne = M[1], ge = 180 * Math.atan2(ne, K) / Math.PI;
|
|
2057
|
+
return ge < P ? ge + 360 : ge;
|
|
2058
|
+
}, G = 0, q = vo(I, -O, 0).map(W); G < q.length; G++)
|
|
2059
|
+
(R = q[G]) > P && R < X && p(co(g.cX, O, I, R));
|
|
2060
|
+
for (var H = 0, Q = vo(_, -C, 0).map(W); H < Q.length; H++) {
|
|
2061
|
+
var R;
|
|
2062
|
+
(R = Q[H]) > P && R < X && y(co(g.cY, C, _, R));
|
|
2092
2063
|
}
|
|
2093
2064
|
}
|
|
2094
2065
|
return c;
|
|
@@ -2096,7 +2067,7 @@ function xo(a, e, t, r, i) {
|
|
|
2096
2067
|
return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
|
|
2097
2068
|
};
|
|
2098
2069
|
})(U || (U = {}));
|
|
2099
|
-
var
|
|
2070
|
+
var se, vl = function() {
|
|
2100
2071
|
function a() {
|
|
2101
2072
|
}
|
|
2102
2073
|
return a.prototype.round = function(e) {
|
|
@@ -2134,17 +2105,17 @@ var oe, dl = function() {
|
|
|
2134
2105
|
}, a.prototype.annotateArcs = function() {
|
|
2135
2106
|
return this.transform(U.ANNOTATE_ARCS());
|
|
2136
2107
|
}, a;
|
|
2137
|
-
}(),
|
|
2108
|
+
}(), Eb = function(a) {
|
|
2138
2109
|
return a === " " || a === " " || a === "\r" || a === `
|
|
2139
2110
|
`;
|
|
2140
|
-
},
|
|
2111
|
+
}, yo = function(a) {
|
|
2141
2112
|
return "0".charCodeAt(0) <= a.charCodeAt(0) && a.charCodeAt(0) <= "9".charCodeAt(0);
|
|
2142
|
-
},
|
|
2113
|
+
}, $b = function(a) {
|
|
2143
2114
|
function e() {
|
|
2144
2115
|
var t = a.call(this) || this;
|
|
2145
2116
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
|
2146
2117
|
}
|
|
2147
|
-
return
|
|
2118
|
+
return hl(e, a), e.prototype.finish = function(t) {
|
|
2148
2119
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma)
|
|
2149
2120
|
throw new SyntaxError("Unterminated command at the path end.");
|
|
2150
2121
|
return t;
|
|
@@ -2154,8 +2125,8 @@ var oe, dl = function() {
|
|
|
2154
2125
|
for (var n = function(f) {
|
|
2155
2126
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
|
2156
2127
|
}, o = 0; o < t.length; o++) {
|
|
2157
|
-
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 =
|
|
2158
|
-
if (!
|
|
2128
|
+
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 = yo(s) && (this.curNumber === "0" && s === "0" || u);
|
|
2129
|
+
if (!yo(s) || l)
|
|
2159
2130
|
if (s !== "e" && s !== "E")
|
|
2160
2131
|
if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits)
|
|
2161
2132
|
if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
|
@@ -2170,9 +2141,9 @@ var oe, dl = function() {
|
|
|
2170
2141
|
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1")
|
|
2171
2142
|
throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
|
|
2172
2143
|
}
|
|
2173
|
-
this.curArgs.push(h), this.curArgs.length ===
|
|
2144
|
+
this.curArgs.push(h), this.curArgs.length === wb[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;
|
|
2174
2145
|
}
|
|
2175
|
-
if (!
|
|
2146
|
+
if (!Eb(s))
|
|
2176
2147
|
if (s === "," && this.canParseCommandOrComma)
|
|
2177
2148
|
this.canParseCommandOrComma = !1;
|
|
2178
2149
|
else if (s !== "+" && s !== "-" && s !== ".")
|
|
@@ -2230,12 +2201,12 @@ var oe, dl = function() {
|
|
|
2230
2201
|
return i;
|
|
2231
2202
|
} } });
|
|
2232
2203
|
}, e;
|
|
2233
|
-
}(
|
|
2204
|
+
}(vl), m = function(a) {
|
|
2234
2205
|
function e(t) {
|
|
2235
2206
|
var r = a.call(this) || this;
|
|
2236
2207
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
|
2237
2208
|
}
|
|
2238
|
-
return
|
|
2209
|
+
return hl(e, a), e.prototype.encode = function() {
|
|
2239
2210
|
return e.encode(this.commands);
|
|
2240
2211
|
}, e.prototype.getBounds = function() {
|
|
2241
2212
|
var t = U.CALCULATE_BOUNDS();
|
|
@@ -2247,33 +2218,36 @@ var oe, dl = function() {
|
|
|
2247
2218
|
}
|
|
2248
2219
|
return this.commands = r, this;
|
|
2249
2220
|
}, e.encode = function(t) {
|
|
2250
|
-
return
|
|
2221
|
+
return Sb(t);
|
|
2251
2222
|
}, e.parse = function(t) {
|
|
2252
|
-
var r = new
|
|
2223
|
+
var r = new $b(), i = [];
|
|
2253
2224
|
return r.parse(t, i), r.finish(i), i;
|
|
2254
2225
|
}, 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;
|
|
2255
|
-
}(
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2226
|
+
}(vl), wb = ((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), Cb = Y, Ab = fe, Pb = br, Rb = Fu, mo = RegExp.prototype, Nb = function(a) {
|
|
2227
|
+
var e = a.flags;
|
|
2228
|
+
return e === void 0 && !("flags" in mo) && !Ab(a, "flags") && Pb(mo, a) ? Cb(Rb, a) : e;
|
|
2229
|
+
}, Ib = Sr.PROPER, Mb = Ue, _b = J, bo = pe, Vb = k, Db = Nb, rn = "toString", fl = RegExp.prototype, cl = fl[rn], kb = Vb(function() {
|
|
2230
|
+
return cl.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
2231
|
+
}), Lb = Ib && cl.name !== rn;
|
|
2232
|
+
(kb || Lb) && Mb(fl, rn, function() {
|
|
2233
|
+
var e = _b(this), t = bo(e.source), r = bo(Db(e));
|
|
2260
2234
|
return "/" + t + "/" + r;
|
|
2261
2235
|
}, { unsafe: !0 });
|
|
2262
|
-
function
|
|
2236
|
+
function vr(a) {
|
|
2263
2237
|
"@babel/helpers - typeof";
|
|
2264
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2238
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? vr = function(e) {
|
|
2265
2239
|
return typeof e;
|
|
2266
|
-
} :
|
|
2240
|
+
} : vr = function(e) {
|
|
2267
2241
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2268
|
-
},
|
|
2242
|
+
}, vr(a);
|
|
2269
2243
|
}
|
|
2270
|
-
function
|
|
2244
|
+
function Bb(a, e) {
|
|
2271
2245
|
if (!(a instanceof e))
|
|
2272
2246
|
throw new TypeError("Cannot call a class as a function");
|
|
2273
2247
|
}
|
|
2274
|
-
var
|
|
2275
|
-
function
|
|
2276
|
-
if (typeof a == "string" && (a = document.getElementById(a)), !a ||
|
|
2248
|
+
var jb = [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], Fb = [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];
|
|
2249
|
+
function Ub(a, e, t, r, i) {
|
|
2250
|
+
if (typeof a == "string" && (a = document.getElementById(a)), !a || vr(a) !== "object" || !("getContext" in a))
|
|
2277
2251
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
|
2278
2252
|
var n = a.getContext("2d");
|
|
2279
2253
|
try {
|
|
@@ -2282,69 +2256,69 @@ function t1(a, e, t, r, i) {
|
|
|
2282
2256
|
throw new Error("unable to access image data: " + o);
|
|
2283
2257
|
}
|
|
2284
2258
|
}
|
|
2285
|
-
function
|
|
2259
|
+
function Gb(a, e, t, r, i, n) {
|
|
2286
2260
|
if (!(isNaN(n) || n < 1)) {
|
|
2287
2261
|
n |= 0;
|
|
2288
|
-
var o =
|
|
2289
|
-
o =
|
|
2262
|
+
var o = Ub(a, e, t, r, i);
|
|
2263
|
+
o = zb(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
|
2290
2264
|
}
|
|
2291
2265
|
}
|
|
2292
|
-
function
|
|
2293
|
-
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
|
|
2294
|
-
v = v.next = new
|
|
2266
|
+
function zb(a, e, t, r, i, n) {
|
|
2267
|
+
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 xo(), v = c, d, g = 1; g < s; g++)
|
|
2268
|
+
v = v.next = new xo(), g === h && (d = v);
|
|
2295
2269
|
v.next = c;
|
|
2296
|
-
for (var p = null, y = null, x = 0, b = 0, T =
|
|
2270
|
+
for (var p = null, y = null, x = 0, b = 0, T = jb[n], $ = Fb[n], E = 0; E < i; E++) {
|
|
2297
2271
|
v = c;
|
|
2298
|
-
for (var O = o[b], C = o[b + 1],
|
|
2299
|
-
v.r = O, v.g = C, v.b =
|
|
2300
|
-
for (var
|
|
2301
|
-
var ze = b + ((u < Se ? u : Se) << 2),
|
|
2302
|
-
M += (v.r =
|
|
2272
|
+
for (var O = o[b], C = o[b + 1], I = o[b + 2], _ = o[b + 3], j = 0; j < h; j++)
|
|
2273
|
+
v.r = O, v.g = C, v.b = I, v.a = _, v = v.next;
|
|
2274
|
+
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++) {
|
|
2275
|
+
var ze = b + ((u < Se ? u : Se) << 2), Mt = o[ze], sn = o[ze + 1], on = o[ze + 2], un = o[ze + 3], _t = h - Se;
|
|
2276
|
+
M += (v.r = Mt) * _t, K += (v.g = sn) * _t, ne += (v.b = on) * _t, ge += (v.a = un) * _t, P += Mt, X += sn, W += on, G += un, v = v.next;
|
|
2303
2277
|
}
|
|
2304
|
-
p = c, y =
|
|
2305
|
-
for (var
|
|
2306
|
-
var
|
|
2307
|
-
if (o[b + 3] =
|
|
2308
|
-
var
|
|
2309
|
-
o[b] = (M * T >>> $) *
|
|
2278
|
+
p = c, y = d;
|
|
2279
|
+
for (var Lr = 0; Lr < r; Lr++) {
|
|
2280
|
+
var Br = ge * T >>> $;
|
|
2281
|
+
if (o[b + 3] = Br, Br !== 0) {
|
|
2282
|
+
var jr = 255 / Br;
|
|
2283
|
+
o[b] = (M * T >>> $) * jr, o[b + 1] = (K * T >>> $) * jr, o[b + 2] = (ne * T >>> $) * jr;
|
|
2310
2284
|
} else
|
|
2311
2285
|
o[b] = o[b + 1] = o[b + 2] = 0;
|
|
2312
|
-
M -= q, K -= H,
|
|
2313
|
-
var Ae =
|
|
2314
|
-
Ae = x + (Ae < u ? Ae : u) << 2,
|
|
2315
|
-
var
|
|
2316
|
-
q +=
|
|
2286
|
+
M -= q, K -= H, ne -= Q, ge -= R, q -= p.r, H -= p.g, Q -= p.b, R -= p.a;
|
|
2287
|
+
var Ae = Lr + n + 1;
|
|
2288
|
+
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;
|
|
2289
|
+
var Vt = y, ln = Vt.r, hn = Vt.g, vn = Vt.b, fn = Vt.a;
|
|
2290
|
+
q += ln, H += hn, Q += vn, R += fn, P -= ln, X -= hn, W -= vn, G -= fn, y = y.next, b += 4;
|
|
2317
2291
|
}
|
|
2318
2292
|
x += r;
|
|
2319
2293
|
}
|
|
2320
2294
|
for (var He = 0; He < r; He++) {
|
|
2321
2295
|
b = He << 2;
|
|
2322
|
-
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3],
|
|
2296
|
+
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;
|
|
2323
2297
|
v = c;
|
|
2324
|
-
for (var
|
|
2298
|
+
for (var cn = 0; cn < h; cn++)
|
|
2325
2299
|
v.r = Pe, v.g = Re, v.b = Ne, v.a = te, v = v.next;
|
|
2326
|
-
for (var
|
|
2327
|
-
b =
|
|
2328
|
-
var
|
|
2329
|
-
|
|
2300
|
+
for (var gn = r, Hr = 0, Yr = 0, Xr = 0, Wr = 0, jt = 1; jt <= n; jt++) {
|
|
2301
|
+
b = gn + He << 2;
|
|
2302
|
+
var Ft = h - jt;
|
|
2303
|
+
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 && (gn += r);
|
|
2330
2304
|
}
|
|
2331
|
-
b = He, p = c, y =
|
|
2332
|
-
for (var
|
|
2305
|
+
b = He, p = c, y = d;
|
|
2306
|
+
for (var qr = 0; qr < i; qr++) {
|
|
2333
2307
|
var re = b << 2;
|
|
2334
|
-
o[re + 3] = te =
|
|
2308
|
+
o[re + 3] = te = Bt * T >>> $, te > 0 ? (te = 255 / te, o[re] = (Dt * T >>> $) * te, o[re + 1] = (kt * T >>> $) * te, o[re + 2] = (Lt * T >>> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, Dt -= Fr, kt -= Ur, Lt -= Gr, Bt -= zr, Fr -= p.r, Ur -= p.g, Gr -= p.b, zr -= p.a, re = He + ((re = qr + h) < l ? re : l) * r << 2, Dt += Wr += p.r = o[re], kt += Hr += p.g = o[re + 1], Lt += Yr += p.b = o[re + 2], Bt += Xr += p.a = o[re + 3], p = p.next, Fr += Pe = y.r, Ur += Re = y.g, Gr += Ne = y.b, zr += te = y.a, Wr -= Pe, Hr -= Re, Yr -= Ne, Xr -= te, y = y.next, b += r;
|
|
2335
2309
|
}
|
|
2336
2310
|
}
|
|
2337
2311
|
return a;
|
|
2338
2312
|
}
|
|
2339
|
-
var
|
|
2313
|
+
var xo = (
|
|
2340
2314
|
/**
|
|
2341
2315
|
* Set properties.
|
|
2342
2316
|
*/
|
|
2343
2317
|
function a() {
|
|
2344
|
-
|
|
2318
|
+
Bb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
|
2345
2319
|
}
|
|
2346
2320
|
);
|
|
2347
|
-
function
|
|
2321
|
+
function Hb() {
|
|
2348
2322
|
var {
|
|
2349
2323
|
DOMParser: a
|
|
2350
2324
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
|
@@ -2364,7 +2338,7 @@ function i1() {
|
|
|
2364
2338
|
};
|
|
2365
2339
|
return (typeof DOMParser < "u" || typeof a > "u") && Reflect.deleteProperty(e, "DOMParser"), e;
|
|
2366
2340
|
}
|
|
2367
|
-
function
|
|
2341
|
+
function Yb(a) {
|
|
2368
2342
|
var {
|
|
2369
2343
|
DOMParser: e,
|
|
2370
2344
|
canvas: t,
|
|
@@ -2380,76 +2354,76 @@ function n1(a) {
|
|
|
2380
2354
|
createImage: t.loadImage
|
|
2381
2355
|
};
|
|
2382
2356
|
}
|
|
2383
|
-
var
|
|
2357
|
+
var f2 = /* @__PURE__ */ Object.freeze({
|
|
2384
2358
|
__proto__: null,
|
|
2385
|
-
offscreen:
|
|
2386
|
-
node:
|
|
2359
|
+
offscreen: Hb,
|
|
2360
|
+
node: Yb
|
|
2387
2361
|
});
|
|
2388
|
-
function
|
|
2362
|
+
function ht(a) {
|
|
2389
2363
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
|
2390
2364
|
}
|
|
2391
|
-
function
|
|
2365
|
+
function Xb(a) {
|
|
2392
2366
|
return a.replace(/^[\n \t]+/, "");
|
|
2393
2367
|
}
|
|
2394
|
-
function
|
|
2368
|
+
function Wb(a) {
|
|
2395
2369
|
return a.replace(/[\n \t]+$/, "");
|
|
2396
2370
|
}
|
|
2397
|
-
function
|
|
2371
|
+
function ie(a) {
|
|
2398
2372
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
|
2399
2373
|
return e.map(parseFloat);
|
|
2400
2374
|
}
|
|
2401
|
-
var
|
|
2402
|
-
function
|
|
2403
|
-
return
|
|
2375
|
+
var qb = /^[A-Z-]+$/;
|
|
2376
|
+
function Qb(a) {
|
|
2377
|
+
return qb.test(a) ? a.toLowerCase() : a;
|
|
2404
2378
|
}
|
|
2405
|
-
function
|
|
2379
|
+
function gl(a) {
|
|
2406
2380
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
|
2407
2381
|
return e[2] || e[3] || e[4];
|
|
2408
2382
|
}
|
|
2409
|
-
function
|
|
2383
|
+
function Kb(a) {
|
|
2410
2384
|
if (!a.startsWith("rgb"))
|
|
2411
2385
|
return a;
|
|
2412
2386
|
var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
|
|
2413
2387
|
return t;
|
|
2414
2388
|
}
|
|
2415
|
-
var
|
|
2416
|
-
function
|
|
2389
|
+
var Zb = /(\[[^\]]+\])/g, Jb = /(#[^\s+>~.[:]+)/g, e1 = /(\.[^\s+>~.[:]+)/g, t1 = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, r1 = /(:[\w-]+\([^)]*\))/gi, a1 = /(:[^\s+>~.[:]+)/g, i1 = /([^\s+>~.[:]+)/g;
|
|
2390
|
+
function _e(a, e) {
|
|
2417
2391
|
var t = e.exec(a);
|
|
2418
2392
|
return t ? [a.replace(e, " "), t.length] : [a, 0];
|
|
2419
2393
|
}
|
|
2420
|
-
function
|
|
2394
|
+
function n1(a) {
|
|
2421
2395
|
var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
|
|
2422
|
-
return [t, r] =
|
|
2396
|
+
return [t, r] = _e(t, Zb), e[1] += r, [t, r] = _e(t, Jb), e[0] += r, [t, r] = _e(t, e1), e[1] += r, [t, r] = _e(t, t1), e[2] += r, [t, r] = _e(t, r1), e[1] += r, [t, r] = _e(t, a1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = _e(t, i1), e[2] += r, e.join("");
|
|
2423
2397
|
}
|
|
2424
|
-
var
|
|
2425
|
-
function
|
|
2398
|
+
var at = 1e-8;
|
|
2399
|
+
function To(a) {
|
|
2426
2400
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
|
2427
2401
|
}
|
|
2428
|
-
function
|
|
2429
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
|
2402
|
+
function bi(a, e) {
|
|
2403
|
+
return (a[0] * e[0] + a[1] * e[1]) / (To(a) * To(e));
|
|
2430
2404
|
}
|
|
2431
|
-
function
|
|
2432
|
-
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(
|
|
2405
|
+
function Oo(a, e) {
|
|
2406
|
+
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(bi(a, e));
|
|
2433
2407
|
}
|
|
2434
|
-
function
|
|
2408
|
+
function So(a) {
|
|
2435
2409
|
return a * a * a;
|
|
2436
2410
|
}
|
|
2437
|
-
function
|
|
2411
|
+
function Eo(a) {
|
|
2438
2412
|
return 3 * a * a * (1 - a);
|
|
2439
2413
|
}
|
|
2440
|
-
function
|
|
2414
|
+
function $o(a) {
|
|
2441
2415
|
return 3 * a * (1 - a) * (1 - a);
|
|
2442
2416
|
}
|
|
2443
|
-
function
|
|
2417
|
+
function wo(a) {
|
|
2444
2418
|
return (1 - a) * (1 - a) * (1 - a);
|
|
2445
2419
|
}
|
|
2446
|
-
function
|
|
2420
|
+
function Co(a) {
|
|
2447
2421
|
return a * a;
|
|
2448
2422
|
}
|
|
2449
|
-
function
|
|
2423
|
+
function Ao(a) {
|
|
2450
2424
|
return 2 * a * (1 - a);
|
|
2451
2425
|
}
|
|
2452
|
-
function
|
|
2426
|
+
function Po(a) {
|
|
2453
2427
|
return (1 - a) * (1 - a);
|
|
2454
2428
|
}
|
|
2455
2429
|
class S {
|
|
@@ -2464,7 +2438,7 @@ class S {
|
|
|
2464
2438
|
document: t,
|
|
2465
2439
|
name: r
|
|
2466
2440
|
} = this;
|
|
2467
|
-
return
|
|
2441
|
+
return ht(this.getString()).trim().split(e).map((i) => new S(t, r, i));
|
|
2468
2442
|
}
|
|
2469
2443
|
hasValue(e) {
|
|
2470
2444
|
var {
|
|
@@ -2512,7 +2486,7 @@ class S {
|
|
|
2512
2486
|
}
|
|
2513
2487
|
getColor(e) {
|
|
2514
2488
|
var t = this.getString(e);
|
|
2515
|
-
return this.isNormalizedColor || (this.isNormalizedColor = !0, t =
|
|
2489
|
+
return this.isNormalizedColor || (this.isNormalizedColor = !0, t = Kb(t), this.value = t), t;
|
|
2516
2490
|
}
|
|
2517
2491
|
getDpi() {
|
|
2518
2492
|
return 96;
|
|
@@ -2613,7 +2587,7 @@ class S {
|
|
|
2613
2587
|
for (var t = this.getColor(), r = t.length, i = 0, n = 0; n < r && (t[n] === "," && i++, i !== 3); n++)
|
|
2614
2588
|
;
|
|
2615
2589
|
if (e.hasValue() && this.isString() && i !== 3) {
|
|
2616
|
-
var o = new
|
|
2590
|
+
var o = new pi(t);
|
|
2617
2591
|
o.ok && (o.alpha = e.getNumber(), t = o.toRGBA());
|
|
2618
2592
|
}
|
|
2619
2593
|
return new S(this.document, this.name, t);
|
|
@@ -2632,7 +2606,7 @@ S.textBaselineMapping = {
|
|
|
2632
2606
|
hanging: "hanging",
|
|
2633
2607
|
mathematical: "alphabetic"
|
|
2634
2608
|
};
|
|
2635
|
-
class
|
|
2609
|
+
class s1 {
|
|
2636
2610
|
constructor() {
|
|
2637
2611
|
this.viewPorts = [];
|
|
2638
2612
|
}
|
|
@@ -2664,21 +2638,21 @@ class b1 {
|
|
|
2664
2638
|
return typeof e == "number" ? e : e === "x" ? this.width : e === "y" ? this.height : Math.sqrt(Math.pow(this.width, 2) + Math.pow(this.height, 2)) / Math.sqrt(2);
|
|
2665
2639
|
}
|
|
2666
2640
|
}
|
|
2667
|
-
class
|
|
2641
|
+
class D {
|
|
2668
2642
|
constructor(e, t) {
|
|
2669
2643
|
this.x = e, this.y = t;
|
|
2670
2644
|
}
|
|
2671
2645
|
static parse(e) {
|
|
2672
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [r = t, i = t] =
|
|
2673
|
-
return new
|
|
2646
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [r = t, i = t] = ie(e);
|
|
2647
|
+
return new D(r, i);
|
|
2674
2648
|
}
|
|
2675
2649
|
static parseScale(e) {
|
|
2676
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [r = t, i = r] =
|
|
2677
|
-
return new
|
|
2650
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [r = t, i = r] = ie(e);
|
|
2651
|
+
return new D(r, i);
|
|
2678
2652
|
}
|
|
2679
2653
|
static parsePath(e) {
|
|
2680
|
-
for (var t =
|
|
2681
|
-
i.push(new
|
|
2654
|
+
for (var t = ie(e), r = t.length, i = [], n = 0; n < r; n += 2)
|
|
2655
|
+
i.push(new D(t[n], t[n + 1]));
|
|
2682
2656
|
return i;
|
|
2683
2657
|
}
|
|
2684
2658
|
angleTo(e) {
|
|
@@ -2692,7 +2666,7 @@ class k {
|
|
|
2692
2666
|
this.x = i, this.y = n;
|
|
2693
2667
|
}
|
|
2694
2668
|
}
|
|
2695
|
-
class
|
|
2669
|
+
class o1 {
|
|
2696
2670
|
constructor(e) {
|
|
2697
2671
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
|
2698
2672
|
}
|
|
@@ -2769,7 +2743,7 @@ class x1 {
|
|
|
2769
2743
|
for (var {
|
|
2770
2744
|
window: r,
|
|
2771
2745
|
ctx: i
|
|
2772
|
-
} = this.screen, n = new
|
|
2746
|
+
} = this.screen, n = new D(e, t), o = i.canvas; o; )
|
|
2773
2747
|
n.x -= o.offsetLeft, n.y -= o.offsetTop, o = o.offsetParent;
|
|
2774
2748
|
return r.scrollX && (n.x += r.scrollX), r.scrollY && (n.y += r.scrollY), n;
|
|
2775
2749
|
}
|
|
@@ -2802,14 +2776,14 @@ class x1 {
|
|
|
2802
2776
|
});
|
|
2803
2777
|
}
|
|
2804
2778
|
}
|
|
2805
|
-
var
|
|
2806
|
-
class
|
|
2779
|
+
var dl = typeof window < "u" ? window : null, pl = typeof fetch < "u" ? fetch.bind(void 0) : null;
|
|
2780
|
+
class _r {
|
|
2807
2781
|
constructor(e) {
|
|
2808
2782
|
var {
|
|
2809
|
-
fetch: t =
|
|
2810
|
-
window: r =
|
|
2783
|
+
fetch: t = pl,
|
|
2784
|
+
window: r = dl
|
|
2811
2785
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2812
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
|
2786
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new s1(), this.mouse = new o1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
|
|
2813
2787
|
}
|
|
2814
2788
|
wait(e) {
|
|
2815
2789
|
this.waits.push(e);
|
|
@@ -2840,18 +2814,18 @@ class Dr {
|
|
|
2840
2814
|
refX: f,
|
|
2841
2815
|
refY: c,
|
|
2842
2816
|
clip: v = !1,
|
|
2843
|
-
clipX:
|
|
2844
|
-
clipY:
|
|
2845
|
-
} = e, p =
|
|
2846
|
-
T === "meet" && (
|
|
2847
|
-
var j = new S(t, "refX", f),
|
|
2848
|
-
if (X && r.translate(-O * j.getPixels("x"), -O *
|
|
2849
|
-
var W = O *
|
|
2817
|
+
clipX: d = 0,
|
|
2818
|
+
clipY: g = 0
|
|
2819
|
+
} = e, p = ht(i).replace(/^defer\s/, ""), [y, x] = p.split(" "), b = y || "xMidYMid", T = x || "meet", $ = n / o, E = s / u, O = Math.min($, E), C = Math.max($, E), I = o, _ = u;
|
|
2820
|
+
T === "meet" && (I *= O, _ *= O), T === "slice" && (I *= C, _ *= C);
|
|
2821
|
+
var j = new S(t, "refX", f), P = new S(t, "refY", c), X = j.hasValue() && P.hasValue();
|
|
2822
|
+
if (X && r.translate(-O * j.getPixels("x"), -O * P.getPixels("y")), v) {
|
|
2823
|
+
var W = O * d, G = O * g;
|
|
2850
2824
|
r.beginPath(), r.moveTo(W, G), r.lineTo(n, G), r.lineTo(n, s), r.lineTo(W, s), r.closePath(), r.clip();
|
|
2851
2825
|
}
|
|
2852
2826
|
if (!X) {
|
|
2853
|
-
var q = T === "meet" && O === E, H = T === "slice" && C === E, Q = T === "meet" && O === $,
|
|
2854
|
-
b.startsWith("xMid") && (q || H) && r.translate(n / 2 -
|
|
2827
|
+
var q = T === "meet" && O === E, H = T === "slice" && C === E, Q = T === "meet" && O === $, R = T === "slice" && C === $;
|
|
2828
|
+
b.startsWith("xMid") && (q || H) && r.translate(n / 2 - I / 2, 0), b.endsWith("YMid") && (Q || R) && r.translate(0, s / 2 - _ / 2), b.startsWith("xMax") && (q || H) && r.translate(n - I, 0), b.endsWith("YMax") && (Q || R) && r.translate(0, s - _);
|
|
2855
2829
|
}
|
|
2856
2830
|
switch (!0) {
|
|
2857
2831
|
case b === "none":
|
|
@@ -2881,18 +2855,18 @@ class Dr {
|
|
|
2881
2855
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
2882
2856
|
FRAMERATE: c,
|
|
2883
2857
|
mouse: v
|
|
2884
|
-
} = this,
|
|
2885
|
-
if (this.frameDuration =
|
|
2858
|
+
} = this, d = 1e3 / c;
|
|
2859
|
+
if (this.frameDuration = d, this.readyPromise = new Promise((b) => {
|
|
2886
2860
|
this.resolveReady = b;
|
|
2887
2861
|
}), this.isReady() && this.render(e, n, o, u, l, h, f), !!t) {
|
|
2888
|
-
var
|
|
2889
|
-
|
|
2862
|
+
var g = Date.now(), p = g, y = 0, x = () => {
|
|
2863
|
+
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId = ja(x);
|
|
2890
2864
|
};
|
|
2891
|
-
r || v.start(), this.intervalId =
|
|
2865
|
+
r || v.start(), this.intervalId = ja(x);
|
|
2892
2866
|
}
|
|
2893
2867
|
}
|
|
2894
2868
|
stop() {
|
|
2895
|
-
this.intervalId && (
|
|
2869
|
+
this.intervalId && (ja.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
|
|
2896
2870
|
}
|
|
2897
2871
|
shouldUpdate(e, t) {
|
|
2898
2872
|
if (!e) {
|
|
@@ -2913,11 +2887,11 @@ class Dr {
|
|
|
2913
2887
|
isFirstRender: c
|
|
2914
2888
|
} = this, v = f.canvas;
|
|
2915
2889
|
h.clear(), v.width && v.height ? h.setCurrent(v.width, v.height) : h.setCurrent(u, l);
|
|
2916
|
-
var
|
|
2917
|
-
!t && (c || typeof i != "number" && typeof n != "number") && (
|
|
2890
|
+
var d = e.getStyle("width"), g = e.getStyle("height");
|
|
2891
|
+
!t && (c || typeof i != "number" && typeof n != "number") && (d.hasValue() && (v.width = d.getPixels("x"), v.style && (v.style.width = "".concat(v.width, "px"))), g.hasValue() && (v.height = g.getPixels("y"), v.style && (v.style.height = "".concat(v.height, "px"))));
|
|
2918
2892
|
var p = v.clientWidth || v.width, y = v.clientHeight || v.height;
|
|
2919
|
-
if (t &&
|
|
2920
|
-
var x =
|
|
2893
|
+
if (t && d.hasValue() && g.hasValue() && (p = d.getPixels("x"), y = g.getPixels("y")), h.setCurrent(p, y), typeof o == "number" && e.getAttribute("x", !0).setValue(o), typeof s == "number" && e.getAttribute("y", !0).setValue(s), typeof i == "number" || typeof n == "number") {
|
|
2894
|
+
var x = ie(e.getAttribute("viewBox").getString()), b = 0, T = 0;
|
|
2921
2895
|
if (typeof i == "number") {
|
|
2922
2896
|
var $ = e.getStyle("width");
|
|
2923
2897
|
$.hasValue() ? b = $.getPixels("x") / i : isNaN(x[2]) || (b = x[2] / i);
|
|
@@ -2933,16 +2907,16 @@ class Dr {
|
|
|
2933
2907
|
r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
|
|
2934
2908
|
}
|
|
2935
2909
|
}
|
|
2936
|
-
|
|
2937
|
-
|
|
2910
|
+
_r.defaultWindow = dl;
|
|
2911
|
+
_r.defaultFetch = pl;
|
|
2938
2912
|
var {
|
|
2939
|
-
defaultFetch:
|
|
2940
|
-
} =
|
|
2941
|
-
class
|
|
2913
|
+
defaultFetch: u1
|
|
2914
|
+
} = _r, l1 = typeof DOMParser < "u" ? DOMParser : null;
|
|
2915
|
+
class Ga {
|
|
2942
2916
|
constructor() {
|
|
2943
2917
|
var {
|
|
2944
|
-
fetch: e =
|
|
2945
|
-
DOMParser: t =
|
|
2918
|
+
fetch: e = u1,
|
|
2919
|
+
DOMParser: t = l1
|
|
2946
2920
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2947
2921
|
this.fetch = e, this.DOMParser = t;
|
|
2948
2922
|
}
|
|
@@ -2974,9 +2948,9 @@ class za {
|
|
|
2974
2948
|
})();
|
|
2975
2949
|
}
|
|
2976
2950
|
}
|
|
2977
|
-
class
|
|
2951
|
+
class h1 {
|
|
2978
2952
|
constructor(e, t) {
|
|
2979
|
-
this.type = "translate", this.point = null, this.point =
|
|
2953
|
+
this.type = "translate", this.point = null, this.point = D.parse(t);
|
|
2980
2954
|
}
|
|
2981
2955
|
apply(e) {
|
|
2982
2956
|
var {
|
|
@@ -3000,10 +2974,10 @@ class S1 {
|
|
|
3000
2974
|
e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
|
|
3001
2975
|
}
|
|
3002
2976
|
}
|
|
3003
|
-
class
|
|
2977
|
+
class v1 {
|
|
3004
2978
|
constructor(e, t, r) {
|
|
3005
2979
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
|
3006
|
-
var i =
|
|
2980
|
+
var i = ie(t);
|
|
3007
2981
|
this.angle = new S(e, "angle", i[0]), this.originX = r[0], this.originY = r[1], this.cx = i[1] || 0, this.cy = i[2] || 0;
|
|
3008
2982
|
}
|
|
3009
2983
|
apply(e) {
|
|
@@ -3051,11 +3025,11 @@ class E1 {
|
|
|
3051
3025
|
]);
|
|
3052
3026
|
}
|
|
3053
3027
|
}
|
|
3054
|
-
class
|
|
3028
|
+
class f1 {
|
|
3055
3029
|
constructor(e, t, r) {
|
|
3056
3030
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
|
3057
|
-
var i =
|
|
3058
|
-
(i.x === 0 || i.y === 0) && (i.x =
|
|
3031
|
+
var i = D.parseScale(t);
|
|
3032
|
+
(i.x === 0 || i.y === 0) && (i.x = at, i.y = at), this.scale = i, this.originX = r[0], this.originY = r[1];
|
|
3059
3033
|
}
|
|
3060
3034
|
apply(e) {
|
|
3061
3035
|
var {
|
|
@@ -3087,9 +3061,9 @@ class $1 {
|
|
|
3087
3061
|
e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
|
|
3088
3062
|
}
|
|
3089
3063
|
}
|
|
3090
|
-
class
|
|
3064
|
+
class yl {
|
|
3091
3065
|
constructor(e, t, r) {
|
|
3092
|
-
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix =
|
|
3066
|
+
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ie(t), this.originX = r[0], this.originY = r[1];
|
|
3093
3067
|
}
|
|
3094
3068
|
apply(e) {
|
|
3095
3069
|
var {
|
|
@@ -3104,49 +3078,49 @@ class Tl {
|
|
|
3104
3078
|
originX: t,
|
|
3105
3079
|
originY: r,
|
|
3106
3080
|
matrix: i
|
|
3107
|
-
} = this, n = i[0], o = i[2], s = i[4], u = i[1], l = i[3], h = i[5], f = 0, c = 0, v = 1,
|
|
3108
|
-
e.translate(
|
|
3081
|
+
} = this, n = i[0], o = i[2], s = i[4], u = i[1], l = i[3], h = i[5], f = 0, c = 0, v = 1, d = 1 / (n * (l * v - h * c) - o * (u * v - h * f) + s * (u * c - l * f)), g = t.getPixels("x"), p = r.getPixels("y");
|
|
3082
|
+
e.translate(g, p), e.transform(d * (l * v - h * c), d * (h * f - u * v), d * (s * c - o * v), d * (n * v - s * f), d * (o * h - s * l), d * (s * u - n * h)), e.translate(-g, -p);
|
|
3109
3083
|
}
|
|
3110
3084
|
applyToPoint(e) {
|
|
3111
3085
|
e.applyTransform(this.matrix);
|
|
3112
3086
|
}
|
|
3113
3087
|
}
|
|
3114
|
-
class
|
|
3088
|
+
class ml extends yl {
|
|
3115
3089
|
constructor(e, t, r) {
|
|
3116
3090
|
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
|
|
3117
3091
|
}
|
|
3118
3092
|
}
|
|
3119
|
-
class
|
|
3093
|
+
class c1 extends ml {
|
|
3120
3094
|
constructor(e, t, r) {
|
|
3121
3095
|
super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
|
|
3122
3096
|
}
|
|
3123
3097
|
}
|
|
3124
|
-
class
|
|
3098
|
+
class g1 extends ml {
|
|
3125
3099
|
constructor(e, t, r) {
|
|
3126
3100
|
super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
|
|
3127
3101
|
}
|
|
3128
3102
|
}
|
|
3129
|
-
function
|
|
3130
|
-
return
|
|
3103
|
+
function d1(a) {
|
|
3104
|
+
return ht(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
|
3131
3105
|
}
|
|
3132
|
-
function
|
|
3106
|
+
function p1(a) {
|
|
3133
3107
|
var [e, t] = a.split("(");
|
|
3134
3108
|
return [e.trim(), t.trim().replace(")", "")];
|
|
3135
3109
|
}
|
|
3136
|
-
class
|
|
3110
|
+
class Le {
|
|
3137
3111
|
constructor(e, t, r) {
|
|
3138
3112
|
this.document = e, this.transforms = [];
|
|
3139
|
-
var i =
|
|
3113
|
+
var i = d1(t);
|
|
3140
3114
|
i.forEach((n) => {
|
|
3141
3115
|
if (n !== "none") {
|
|
3142
|
-
var [o, s] =
|
|
3116
|
+
var [o, s] = p1(n), u = Le.transformTypes[o];
|
|
3143
3117
|
typeof u < "u" && this.transforms.push(new u(this.document, s, r));
|
|
3144
3118
|
}
|
|
3145
3119
|
});
|
|
3146
3120
|
}
|
|
3147
3121
|
static fromElement(e, t) {
|
|
3148
3122
|
var r = t.getStyle("transform", !1, !0), [i, n = i] = t.getStyle("transform-origin", !1, !0).split(), o = [i, n];
|
|
3149
|
-
return r.hasValue() ? new
|
|
3123
|
+
return r.hasValue() ? new Le(e, r.getString(), o) : null;
|
|
3150
3124
|
}
|
|
3151
3125
|
apply(e) {
|
|
3152
3126
|
for (var {
|
|
@@ -3168,20 +3142,20 @@ class Be {
|
|
|
3168
3142
|
t[i].applyToPoint(e);
|
|
3169
3143
|
}
|
|
3170
3144
|
}
|
|
3171
|
-
|
|
3172
|
-
translate:
|
|
3173
|
-
rotate:
|
|
3174
|
-
scale:
|
|
3175
|
-
matrix:
|
|
3176
|
-
skewX:
|
|
3177
|
-
skewY:
|
|
3145
|
+
Le.transformTypes = {
|
|
3146
|
+
translate: h1,
|
|
3147
|
+
rotate: v1,
|
|
3148
|
+
scale: f1,
|
|
3149
|
+
matrix: yl,
|
|
3150
|
+
skewX: c1,
|
|
3151
|
+
skewY: g1
|
|
3178
3152
|
};
|
|
3179
|
-
class
|
|
3153
|
+
class N {
|
|
3180
3154
|
constructor(e, t) {
|
|
3181
3155
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3182
3156
|
if (this.document = e, this.node = t, this.captureTextNodes = r, this.attributes = /* @__PURE__ */ Object.create(null), this.styles = /* @__PURE__ */ Object.create(null), this.stylesSpecificity = /* @__PURE__ */ Object.create(null), this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!t || t.nodeType !== 1)) {
|
|
3183
3157
|
if (Array.from(t.attributes).forEach((s) => {
|
|
3184
|
-
var u =
|
|
3158
|
+
var u = Qb(s.nodeName);
|
|
3185
3159
|
this.attributes[u] = new S(e, u, s.value);
|
|
3186
3160
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
|
3187
3161
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
|
@@ -3258,7 +3232,7 @@ class I {
|
|
|
3258
3232
|
setContext(e) {
|
|
3259
3233
|
}
|
|
3260
3234
|
applyEffects(e) {
|
|
3261
|
-
var t =
|
|
3235
|
+
var t = Le.fromElement(this.document, this);
|
|
3262
3236
|
t && t.apply(e);
|
|
3263
3237
|
var r = this.getStyle("clip-path", !1, !0);
|
|
3264
3238
|
if (r.hasValue()) {
|
|
@@ -3274,8 +3248,8 @@ class I {
|
|
|
3274
3248
|
});
|
|
3275
3249
|
}
|
|
3276
3250
|
addChild(e) {
|
|
3277
|
-
var t = e instanceof
|
|
3278
|
-
t.parent = this,
|
|
3251
|
+
var t = e instanceof N ? e : this.document.createElement(e);
|
|
3252
|
+
t.parent = this, N.ignoreChildTypes.includes(t.type) || this.children.push(t);
|
|
3279
3253
|
}
|
|
3280
3254
|
matchesSelector(e) {
|
|
3281
3255
|
var t, {
|
|
@@ -3322,20 +3296,20 @@ class I {
|
|
|
3322
3296
|
return ((e = this.parent) === null || e === void 0 ? void 0 : e.children.indexOf(this)) === 0;
|
|
3323
3297
|
}
|
|
3324
3298
|
}
|
|
3325
|
-
|
|
3326
|
-
class
|
|
3299
|
+
N.ignoreChildTypes = ["title"];
|
|
3300
|
+
class y1 extends N {
|
|
3327
3301
|
constructor(e, t, r) {
|
|
3328
3302
|
super(e, t, r);
|
|
3329
3303
|
}
|
|
3330
3304
|
}
|
|
3331
|
-
function
|
|
3305
|
+
function m1(a) {
|
|
3332
3306
|
var e = a.trim();
|
|
3333
3307
|
return /^('|")/.test(e) ? e : '"'.concat(e, '"');
|
|
3334
3308
|
}
|
|
3335
|
-
function
|
|
3336
|
-
return typeof process > "u" ? a : a.trim().split(",").map(
|
|
3309
|
+
function b1(a) {
|
|
3310
|
+
return typeof process > "u" ? a : a.trim().split(",").map(m1).join(",");
|
|
3337
3311
|
}
|
|
3338
|
-
function
|
|
3312
|
+
function x1(a) {
|
|
3339
3313
|
if (!a)
|
|
3340
3314
|
return "";
|
|
3341
3315
|
var e = a.trim().toLowerCase();
|
|
@@ -3351,7 +3325,7 @@ function M1(a) {
|
|
|
3351
3325
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
|
3352
3326
|
}
|
|
3353
3327
|
}
|
|
3354
|
-
function
|
|
3328
|
+
function T1(a) {
|
|
3355
3329
|
if (!a)
|
|
3356
3330
|
return "";
|
|
3357
3331
|
var e = a.trim().toLowerCase();
|
|
@@ -3374,7 +3348,7 @@ class Z {
|
|
|
3374
3348
|
this.fontFamily = n || s.fontFamily, this.fontSize = i || s.fontSize, this.fontStyle = e || s.fontStyle, this.fontWeight = r || s.fontWeight, this.fontVariant = t || s.fontVariant;
|
|
3375
3349
|
}
|
|
3376
3350
|
static parse() {
|
|
3377
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u =
|
|
3351
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u = ht(e).trim().split(" "), l = {
|
|
3378
3352
|
fontSize: !1,
|
|
3379
3353
|
fontStyle: !1,
|
|
3380
3354
|
fontWeight: !1,
|
|
@@ -3401,12 +3375,12 @@ class Z {
|
|
|
3401
3375
|
}
|
|
3402
3376
|
toString() {
|
|
3403
3377
|
return [
|
|
3404
|
-
|
|
3378
|
+
x1(this.fontStyle),
|
|
3405
3379
|
this.fontVariant,
|
|
3406
|
-
|
|
3380
|
+
T1(this.fontWeight),
|
|
3407
3381
|
this.fontSize,
|
|
3408
3382
|
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
|
3409
|
-
|
|
3383
|
+
b1(this.fontFamily)
|
|
3410
3384
|
].join(" ").trim();
|
|
3411
3385
|
}
|
|
3412
3386
|
}
|
|
@@ -3493,7 +3467,7 @@ class w extends m {
|
|
|
3493
3467
|
super(e.replace(/([+\-.])\s+/gm, "$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g, "")), this.control = null, this.start = null, this.current = null, this.command = null, this.commands = this.commands, this.i = -1, this.previousCommand = null, this.points = [], this.angles = [];
|
|
3494
3468
|
}
|
|
3495
3469
|
reset() {
|
|
3496
|
-
this.i = -1, this.command = null, this.previousCommand = null, this.start = new
|
|
3470
|
+
this.i = -1, this.command = null, this.previousCommand = null, this.start = new D(0, 0), this.control = new D(0, 0), this.current = new D(0, 0), this.points = [], this.angles = [];
|
|
3497
3471
|
}
|
|
3498
3472
|
isEnd() {
|
|
3499
3473
|
var {
|
|
@@ -3507,7 +3481,7 @@ class w extends m {
|
|
|
3507
3481
|
return this.previousCommand = this.command, this.command = e, e;
|
|
3508
3482
|
}
|
|
3509
3483
|
getPoint() {
|
|
3510
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "x", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "y", r = new
|
|
3484
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "x", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "y", r = new D(this.command[e], this.command[t]);
|
|
3511
3485
|
return this.makeAbsolute(r);
|
|
3512
3486
|
}
|
|
3513
3487
|
getAsControlPoint(e, t) {
|
|
@@ -3531,7 +3505,7 @@ class w extends m {
|
|
|
3531
3505
|
x: i,
|
|
3532
3506
|
y: n
|
|
3533
3507
|
}
|
|
3534
|
-
} = this, o = new
|
|
3508
|
+
} = this, o = new D(2 * t - i, 2 * r - n);
|
|
3535
3509
|
return o;
|
|
3536
3510
|
}
|
|
3537
3511
|
makeAbsolute(e) {
|
|
@@ -3571,7 +3545,7 @@ class w extends m {
|
|
|
3571
3545
|
return e;
|
|
3572
3546
|
}
|
|
3573
3547
|
}
|
|
3574
|
-
class Ge extends
|
|
3548
|
+
class Ge extends N {
|
|
3575
3549
|
constructor() {
|
|
3576
3550
|
super(...arguments), this.modifiedEmSizeStack = !1;
|
|
3577
3551
|
}
|
|
@@ -3612,20 +3586,20 @@ class Ge extends I {
|
|
|
3612
3586
|
}
|
|
3613
3587
|
var v = this.getStyle("stroke-width");
|
|
3614
3588
|
if (v.hasValue()) {
|
|
3615
|
-
var
|
|
3616
|
-
e.lineWidth =
|
|
3589
|
+
var d = v.getPixels();
|
|
3590
|
+
e.lineWidth = d || at;
|
|
3617
3591
|
}
|
|
3618
|
-
var
|
|
3619
|
-
if (
|
|
3620
|
-
var T =
|
|
3592
|
+
var g = this.getStyle("stroke-linecap"), p = this.getStyle("stroke-linejoin"), y = this.getStyle("stroke-miterlimit"), x = this.getStyle("stroke-dasharray"), b = this.getStyle("stroke-dashoffset");
|
|
3593
|
+
if (g.hasValue() && (e.lineCap = g.getString()), p.hasValue() && (e.lineJoin = p.getString()), y.hasValue() && (e.miterLimit = y.getNumber()), x.hasValue() && x.getString() !== "none") {
|
|
3594
|
+
var T = ie(x.getString());
|
|
3621
3595
|
typeof e.setLineDash < "u" ? e.setLineDash(T) : typeof e.webkitLineDash < "u" ? e.webkitLineDash = T : typeof e.mozDash < "u" && !(T.length === 1 && T[0] === 0) && (e.mozDash = T);
|
|
3622
3596
|
var $ = b.getPixels();
|
|
3623
3597
|
typeof e.lineDashOffset < "u" ? e.lineDashOffset = $ : typeof e.webkitLineDashOffset < "u" ? e.webkitLineDashOffset = $ : typeof e.mozDashOffset < "u" && (e.mozDashOffset = $);
|
|
3624
3598
|
}
|
|
3625
3599
|
}
|
|
3626
3600
|
if (this.modifiedEmSizeStack = !1, typeof e.font < "u") {
|
|
3627
|
-
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"),
|
|
3628
|
-
O.setValue(
|
|
3601
|
+
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"), I = this.getStyle("font-weight"), _ = this.getStyle("font-size"), j = this.getStyle("font-family"), P = new Z(O.getString(), C.getString(), I.getString(), _.hasValue() ? "".concat(_.getPixels(!0), "px") : "", j.getString(), Z.parse(E.getString(), e.font));
|
|
3602
|
+
O.setValue(P.fontStyle), C.setValue(P.fontVariant), I.setValue(P.fontWeight), _.setValue(P.fontSize), j.setValue(P.fontFamily), e.font = P.toString(), _.isPixels() && (this.document.emSize = _.getPixels(), this.modifiedEmSizeStack = !0);
|
|
3629
3603
|
}
|
|
3630
3604
|
t || (this.applyEffects(e), e.globalAlpha = this.calculateOpacity());
|
|
3631
3605
|
}
|
|
@@ -3698,12 +3672,12 @@ class A extends Ge {
|
|
|
3698
3672
|
}
|
|
3699
3673
|
if (o.isUrlDefinition())
|
|
3700
3674
|
for (var f = o.getDefinition(), c = 1; c < i; c++) {
|
|
3701
|
-
var [v,
|
|
3702
|
-
f.render(e, v,
|
|
3675
|
+
var [v, d] = r[c];
|
|
3676
|
+
f.render(e, v, d);
|
|
3703
3677
|
}
|
|
3704
3678
|
if (s.isUrlDefinition()) {
|
|
3705
|
-
var
|
|
3706
|
-
|
|
3679
|
+
var g = s.getDefinition(), [p, y] = r[i];
|
|
3680
|
+
g.render(e, p, y);
|
|
3707
3681
|
}
|
|
3708
3682
|
}
|
|
3709
3683
|
}
|
|
@@ -3749,7 +3723,7 @@ class A extends Ge {
|
|
|
3749
3723
|
var {
|
|
3750
3724
|
current: t,
|
|
3751
3725
|
command: r
|
|
3752
|
-
} = e, i = new
|
|
3726
|
+
} = e, i = new D((r.relative ? t.x : 0) + r.x, t.y);
|
|
3753
3727
|
return e.current = i, {
|
|
3754
3728
|
current: t,
|
|
3755
3729
|
point: i
|
|
@@ -3771,7 +3745,7 @@ class A extends Ge {
|
|
|
3771
3745
|
var {
|
|
3772
3746
|
current: t,
|
|
3773
3747
|
command: r
|
|
3774
|
-
} = e, i = new
|
|
3748
|
+
} = e, i = new D(t.x, (r.relative ? t.y : 0) + r.y);
|
|
3775
3749
|
return e.current = i, {
|
|
3776
3750
|
current: t,
|
|
3777
3751
|
point: i
|
|
@@ -3885,18 +3859,18 @@ class A extends Ge {
|
|
|
3885
3859
|
xRot: o,
|
|
3886
3860
|
lArcFlag: s,
|
|
3887
3861
|
sweepFlag: u
|
|
3888
|
-
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new
|
|
3862
|
+
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new D(Math.cos(l) * (t.x - h.x) / 2 + Math.sin(l) * (t.y - h.y) / 2, -Math.sin(l) * (t.x - h.x) / 2 + Math.cos(l) * (t.y - h.y) / 2), c = Math.pow(f.x, 2) / Math.pow(i, 2) + Math.pow(f.y, 2) / Math.pow(n, 2);
|
|
3889
3863
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
|
3890
3864
|
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)));
|
|
3891
3865
|
isNaN(v) && (v = 0);
|
|
3892
|
-
var
|
|
3893
|
-
return
|
|
3866
|
+
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 = Oo([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 = Oo(y, x);
|
|
3867
|
+
return bi(y, x) <= -1 && (b = Math.PI), bi(y, x) >= 1 && (b = 0), {
|
|
3894
3868
|
currentPoint: h,
|
|
3895
3869
|
rX: i,
|
|
3896
3870
|
rY: n,
|
|
3897
3871
|
sweepFlag: u,
|
|
3898
3872
|
xAxisRotation: l,
|
|
3899
|
-
centp:
|
|
3873
|
+
centp: g,
|
|
3900
3874
|
a1: p,
|
|
3901
3875
|
ad: b
|
|
3902
3876
|
};
|
|
@@ -3913,10 +3887,10 @@ class A extends Ge {
|
|
|
3913
3887
|
centp: l,
|
|
3914
3888
|
a1: h,
|
|
3915
3889
|
ad: f
|
|
3916
|
-
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2),
|
|
3917
|
-
if (r.addMarkerAngle(
|
|
3918
|
-
var
|
|
3919
|
-
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0,
|
|
3890
|
+
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), d = new D(l.x + n * Math.cos(v), l.y + o * Math.sin(v));
|
|
3891
|
+
if (r.addMarkerAngle(d, v - c * Math.PI / 2), r.addMarkerAngle(i, v - c * Math.PI), t.addPoint(i.x, i.y), e && !isNaN(h) && !isNaN(f)) {
|
|
3892
|
+
var g = n > o ? n : o, p = n > o ? 1 : n / o, y = n > o ? o / n : 1;
|
|
3893
|
+
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, g, h, h + f, !!(1 - s)), e.scale(1 / p, 1 / y), e.rotate(-u), e.translate(-l.x, -l.y);
|
|
3920
3894
|
}
|
|
3921
3895
|
}
|
|
3922
3896
|
static pathZ(e) {
|
|
@@ -3926,7 +3900,7 @@ class A extends Ge {
|
|
|
3926
3900
|
A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
|
|
3927
3901
|
}
|
|
3928
3902
|
}
|
|
3929
|
-
class
|
|
3903
|
+
class bl extends A {
|
|
3930
3904
|
constructor(e, t, r) {
|
|
3931
3905
|
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();
|
|
3932
3906
|
}
|
|
@@ -3971,7 +3945,7 @@ class Ce extends Ge {
|
|
|
3971
3945
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
|
3972
3946
|
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") {
|
|
3973
3947
|
var h = e.glyphs[i];
|
|
3974
|
-
n = h instanceof
|
|
3948
|
+
n = h instanceof bl ? h : h[l];
|
|
3975
3949
|
}
|
|
3976
3950
|
} else
|
|
3977
3951
|
n = e.glyphs[i];
|
|
@@ -3981,12 +3955,12 @@ class Ce extends Ge {
|
|
|
3981
3955
|
return "";
|
|
3982
3956
|
}
|
|
3983
3957
|
getTextFromNode(e) {
|
|
3984
|
-
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o =
|
|
3958
|
+
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = ht(
|
|
3985
3959
|
// textNode.value
|
|
3986
3960
|
// || textNode.text
|
|
3987
3961
|
t.textContent || ""
|
|
3988
3962
|
);
|
|
3989
|
-
return i === 0 && (o =
|
|
3963
|
+
return i === 0 && (o = Xb(o)), i === n && (o = Wb(o)), o;
|
|
3990
3964
|
}
|
|
3991
3965
|
renderChildren(e) {
|
|
3992
3966
|
if (this.type !== "text") {
|
|
@@ -4009,11 +3983,11 @@ class Ce extends Ge {
|
|
|
4009
3983
|
if (n) {
|
|
4010
3984
|
for (var {
|
|
4011
3985
|
unitsPerEm: o
|
|
4012
|
-
} = n.fontFace, s = Z.parse(t.ctx.font), u = r.getStyle("font-size").getNumber(s.fontSize), l = r.getStyle("font-style").getString(s.fontStyle), h = u / o, f = n.isRTL ? i.split("").reverse().join("") : i, c =
|
|
4013
|
-
var
|
|
3986
|
+
} = n.fontFace, s = Z.parse(t.ctx.font), u = r.getStyle("font-size").getNumber(s.fontSize), l = r.getStyle("font-style").getString(s.fontStyle), h = u / o, f = n.isRTL ? i.split("").reverse().join("") : i, c = ie(r.getAttribute("dx").getString()), v = f.length, d = 0; d < v; d++) {
|
|
3987
|
+
var g = this.getGlyph(n, f, d);
|
|
4014
3988
|
e.translate(this.x, this.y), e.scale(h, -h);
|
|
4015
3989
|
var p = e.lineWidth;
|
|
4016
|
-
e.lineWidth = e.lineWidth * o / u, l === "italic" && e.transform(1, 0, 0.4, 1, 0, 0),
|
|
3990
|
+
e.lineWidth = e.lineWidth * o / u, l === "italic" && e.transform(1, 0, 0.4, 1, 0, 0), g.render(e), l === "italic" && e.transform(1, 0, -0.4, 1, 0, 0), e.lineWidth = p, e.scale(1 / h, -1 / h), e.translate(-this.x, -this.y), this.x += u * (g.horizAdvX || n.horizAdvX) / o, typeof c[d] < "u" && !isNaN(c[d]) && (this.x += c[d]);
|
|
4017
3991
|
}
|
|
4018
3992
|
return;
|
|
4019
3993
|
}
|
|
@@ -4085,7 +4059,7 @@ class Ce extends Ge {
|
|
|
4085
4059
|
parent: r
|
|
4086
4060
|
} = this, i = r.getStyle("font-family").getDefinition();
|
|
4087
4061
|
if (i) {
|
|
4088
|
-
for (var n = this.getFontSize(), o = i.isRTL ? t.split("").reverse().join("") : t, s =
|
|
4062
|
+
for (var n = this.getFontSize(), o = i.isRTL ? t.split("").reverse().join("") : t, s = ie(r.getAttribute("dx").getString()), u = o.length, l = 0, h = 0; h < u; h++) {
|
|
4089
4063
|
var f = this.getGlyph(i, o, h);
|
|
4090
4064
|
l += (f.horizAdvX || i.horizAdvX) * n / i.fontFace.unitsPerEm, typeof s[h] < "u" && !isNaN(s[h]) && (l += s[h]);
|
|
4091
4065
|
}
|
|
@@ -4115,20 +4089,20 @@ class Ce extends Ge {
|
|
|
4115
4089
|
return null;
|
|
4116
4090
|
}
|
|
4117
4091
|
}
|
|
4118
|
-
class
|
|
4092
|
+
class Vr extends Ce {
|
|
4119
4093
|
constructor(e, t, r) {
|
|
4120
|
-
super(e, t, new.target ===
|
|
4094
|
+
super(e, t, new.target === Vr ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
|
|
4121
4095
|
}
|
|
4122
4096
|
getText() {
|
|
4123
4097
|
return this.text;
|
|
4124
4098
|
}
|
|
4125
4099
|
}
|
|
4126
|
-
class
|
|
4100
|
+
class O1 extends Vr {
|
|
4127
4101
|
constructor() {
|
|
4128
4102
|
super(...arguments), this.type = "textNode";
|
|
4129
4103
|
}
|
|
4130
4104
|
}
|
|
4131
|
-
class
|
|
4105
|
+
class It extends Ge {
|
|
4132
4106
|
constructor() {
|
|
4133
4107
|
super(...arguments), this.type = "svg", this.root = !1;
|
|
4134
4108
|
}
|
|
@@ -4150,19 +4124,19 @@ class Nt extends Ge {
|
|
|
4150
4124
|
height: l
|
|
4151
4125
|
} = i.viewPort;
|
|
4152
4126
|
this.getStyle("width").hasValue() || this.getStyle("width", !0).setValue("100%"), this.getStyle("height").hasValue() || this.getStyle("height", !0).setValue("100%"), this.getStyle("color").hasValue() || this.getStyle("color", !0).setValue("black");
|
|
4153
|
-
var h = this.getAttribute("refX"), f = this.getAttribute("refY"), c = this.getAttribute("viewBox"), v = c.hasValue() ?
|
|
4154
|
-
v && (
|
|
4127
|
+
var h = this.getAttribute("refX"), f = this.getAttribute("refY"), c = this.getAttribute("viewBox"), v = c.hasValue() ? ie(c.getString()) : null, d = !this.root && this.getStyle("overflow").getValue("hidden") !== "visible", g = 0, p = 0, y = 0, x = 0;
|
|
4128
|
+
v && (g = v[0], p = v[1]), this.root || (u = this.getStyle("width").getPixels("x"), l = this.getStyle("height").getPixels("y"), this.type === "marker" && (y = g, x = p, g = 0, p = 0)), i.viewPort.setCurrent(u, l), this.node && (!this.parent || ((t = this.node.parentNode) === null || t === void 0 ? void 0 : t.nodeName) === "foreignObject") && this.getStyle("transform", !1, !0).hasValue() && !this.getStyle("transform-origin", !1, !0).hasValue() && this.getStyle("transform-origin", !0, !0).setValue("50% 50%"), super.setContext(e), e.translate(this.getAttribute("x").getPixels("x"), this.getAttribute("y").getPixels("y")), v && (u = v[2], l = v[3]), r.setViewBox({
|
|
4155
4129
|
ctx: e,
|
|
4156
4130
|
aspectRatio: this.getAttribute("preserveAspectRatio").getString(),
|
|
4157
4131
|
width: i.viewPort.width,
|
|
4158
4132
|
desiredWidth: u,
|
|
4159
4133
|
height: i.viewPort.height,
|
|
4160
4134
|
desiredHeight: l,
|
|
4161
|
-
minX:
|
|
4135
|
+
minX: g,
|
|
4162
4136
|
minY: p,
|
|
4163
4137
|
refX: h.getValue(),
|
|
4164
4138
|
refY: f.getValue(),
|
|
4165
|
-
clip:
|
|
4139
|
+
clip: d,
|
|
4166
4140
|
clipX: y,
|
|
4167
4141
|
clipY: x
|
|
4168
4142
|
}), v && (i.viewPort.removeCurrent(), i.viewPort.setCurrent(u, l));
|
|
@@ -4191,7 +4165,7 @@ class Nt extends Ge {
|
|
|
4191
4165
|
}
|
|
4192
4166
|
}
|
|
4193
4167
|
}
|
|
4194
|
-
class
|
|
4168
|
+
class xl extends A {
|
|
4195
4169
|
constructor() {
|
|
4196
4170
|
super(...arguments), this.type = "rect";
|
|
4197
4171
|
}
|
|
@@ -4207,7 +4181,7 @@ class El extends A {
|
|
|
4207
4181
|
return null;
|
|
4208
4182
|
}
|
|
4209
4183
|
}
|
|
4210
|
-
class
|
|
4184
|
+
class S1 extends A {
|
|
4211
4185
|
constructor() {
|
|
4212
4186
|
super(...arguments), this.type = "circle";
|
|
4213
4187
|
}
|
|
@@ -4219,7 +4193,7 @@ class D1 extends A {
|
|
|
4219
4193
|
return null;
|
|
4220
4194
|
}
|
|
4221
4195
|
}
|
|
4222
|
-
class
|
|
4196
|
+
class E1 extends A {
|
|
4223
4197
|
constructor() {
|
|
4224
4198
|
super(...arguments), this.type = "ellipse";
|
|
4225
4199
|
}
|
|
@@ -4231,12 +4205,12 @@ class L1 extends A {
|
|
|
4231
4205
|
return null;
|
|
4232
4206
|
}
|
|
4233
4207
|
}
|
|
4234
|
-
class
|
|
4208
|
+
class $1 extends A {
|
|
4235
4209
|
constructor() {
|
|
4236
4210
|
super(...arguments), this.type = "line";
|
|
4237
4211
|
}
|
|
4238
4212
|
getPoints() {
|
|
4239
|
-
return [new
|
|
4213
|
+
return [new D(this.getAttribute("x1").getPixels("x"), this.getAttribute("y1").getPixels("y")), new D(this.getAttribute("x2").getPixels("x"), this.getAttribute("y2").getPixels("y"))];
|
|
4240
4214
|
}
|
|
4241
4215
|
path(e) {
|
|
4242
4216
|
var [{
|
|
@@ -4253,9 +4227,9 @@ class k1 extends A {
|
|
|
4253
4227
|
return [[e, r], [t, r]];
|
|
4254
4228
|
}
|
|
4255
4229
|
}
|
|
4256
|
-
class
|
|
4230
|
+
class Tl extends A {
|
|
4257
4231
|
constructor(e, t, r) {
|
|
4258
|
-
super(e, t, r), this.type = "polyline", this.points = [], this.points =
|
|
4232
|
+
super(e, t, r), this.type = "polyline", this.points = [], this.points = D.parsePath(this.getAttribute("points").getString());
|
|
4259
4233
|
}
|
|
4260
4234
|
path(e) {
|
|
4261
4235
|
var {
|
|
@@ -4281,7 +4255,7 @@ class $l extends A {
|
|
|
4281
4255
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
|
4282
4256
|
}
|
|
4283
4257
|
}
|
|
4284
|
-
class
|
|
4258
|
+
class w1 extends Tl {
|
|
4285
4259
|
constructor() {
|
|
4286
4260
|
super(...arguments), this.type = "polygon";
|
|
4287
4261
|
}
|
|
@@ -4293,12 +4267,12 @@ class B1 extends $l {
|
|
|
4293
4267
|
return e && (e.lineTo(r, i), e.closePath()), t;
|
|
4294
4268
|
}
|
|
4295
4269
|
}
|
|
4296
|
-
class
|
|
4270
|
+
class C1 extends N {
|
|
4297
4271
|
constructor() {
|
|
4298
4272
|
super(...arguments), this.type = "pattern";
|
|
4299
4273
|
}
|
|
4300
4274
|
createPattern(e, t, r) {
|
|
4301
|
-
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new
|
|
4275
|
+
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new It(this.document, null);
|
|
4302
4276
|
o.attributes.viewBox = new S(this.document, "viewBox", this.getAttribute("viewBox").getValue()), o.attributes.width = new S(this.document, "width", "".concat(i, "px")), o.attributes.height = new S(this.document, "height", "".concat(n, "px")), o.attributes.transform = new S(this.document, "transform", this.getAttribute("patternTransform").getValue()), o.children = this.children;
|
|
4303
4277
|
var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
|
|
4304
4278
|
l.hasValue() && h.hasValue() && u.translate(l.getPixels("x", !0), h.getPixels("y", !0)), r.hasValue() ? this.styles["fill-opacity"] = r : Reflect.deleteProperty(this.styles, "fill-opacity");
|
|
@@ -4309,7 +4283,7 @@ class j1 extends I {
|
|
|
4309
4283
|
return v;
|
|
4310
4284
|
}
|
|
4311
4285
|
}
|
|
4312
|
-
class
|
|
4286
|
+
class A1 extends N {
|
|
4313
4287
|
constructor() {
|
|
4314
4288
|
super(...arguments), this.type = "marker";
|
|
4315
4289
|
}
|
|
@@ -4320,19 +4294,19 @@ class F1 extends I {
|
|
|
4320
4294
|
y: n
|
|
4321
4295
|
} = t, o = this.getAttribute("orient").getString("auto"), s = this.getAttribute("markerUnits").getString("strokeWidth");
|
|
4322
4296
|
e.translate(i, n), o === "auto" && e.rotate(r), s === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
|
4323
|
-
var u = new
|
|
4297
|
+
var u = new It(this.document, null);
|
|
4324
4298
|
u.type = this.type, u.attributes.viewBox = new S(this.document, "viewBox", this.getAttribute("viewBox").getValue()), u.attributes.refX = new S(this.document, "refX", this.getAttribute("refX").getValue()), u.attributes.refY = new S(this.document, "refY", this.getAttribute("refY").getValue()), u.attributes.width = new S(this.document, "width", this.getAttribute("markerWidth").getValue()), u.attributes.height = new S(this.document, "height", this.getAttribute("markerHeight").getValue()), u.attributes.overflow = new S(this.document, "overflow", this.getAttribute("overflow").getValue()), u.attributes.fill = new S(this.document, "fill", this.getAttribute("fill").getColor("black")), u.attributes.stroke = new S(this.document, "stroke", this.getAttribute("stroke").getValue("none")), u.children = this.children, u.render(e), e.restore(), s === "strokeWidth" && e.scale(1 / e.lineWidth, 1 / e.lineWidth), o === "auto" && e.rotate(-r), e.translate(-i, -n);
|
|
4325
4299
|
}
|
|
4326
4300
|
}
|
|
4327
4301
|
}
|
|
4328
|
-
class
|
|
4302
|
+
class P1 extends N {
|
|
4329
4303
|
constructor() {
|
|
4330
4304
|
super(...arguments), this.type = "defs";
|
|
4331
4305
|
}
|
|
4332
4306
|
render() {
|
|
4333
4307
|
}
|
|
4334
4308
|
}
|
|
4335
|
-
class
|
|
4309
|
+
class an extends Ge {
|
|
4336
4310
|
constructor() {
|
|
4337
4311
|
super(...arguments), this.type = "g";
|
|
4338
4312
|
}
|
|
@@ -4343,7 +4317,7 @@ class sn extends Ge {
|
|
|
4343
4317
|
}), t;
|
|
4344
4318
|
}
|
|
4345
4319
|
}
|
|
4346
|
-
class
|
|
4320
|
+
class Ol extends N {
|
|
4347
4321
|
constructor(e, t, r) {
|
|
4348
4322
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
|
4349
4323
|
var {
|
|
@@ -4373,14 +4347,14 @@ class wl extends I {
|
|
|
4373
4347
|
} = this, {
|
|
4374
4348
|
MAX_VIRTUAL_PIXELS: u,
|
|
4375
4349
|
viewPort: l
|
|
4376
|
-
} = s.screen, [h] = l.viewPorts, f = new
|
|
4350
|
+
} = s.screen, [h] = l.viewPorts, f = new xl(s, null);
|
|
4377
4351
|
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);
|
|
4378
|
-
var c = new
|
|
4352
|
+
var c = new an(s, null);
|
|
4379
4353
|
c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
|
4380
|
-
var v = new
|
|
4354
|
+
var v = new It(s, null);
|
|
4381
4355
|
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];
|
|
4382
|
-
var
|
|
4383
|
-
return
|
|
4356
|
+
var d = s.createCanvas(h.width, h.height), g = d.getContext("2d");
|
|
4357
|
+
return g.fillStyle = o, v.render(g), g.createPattern(d, "no-repeat");
|
|
4384
4358
|
}
|
|
4385
4359
|
return o;
|
|
4386
4360
|
}
|
|
@@ -4397,7 +4371,7 @@ class wl extends I {
|
|
|
4397
4371
|
return t;
|
|
4398
4372
|
}
|
|
4399
4373
|
}
|
|
4400
|
-
class
|
|
4374
|
+
class R1 extends Ol {
|
|
4401
4375
|
constructor(e, t, r) {
|
|
4402
4376
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
|
4403
4377
|
}
|
|
@@ -4410,7 +4384,7 @@ class G1 extends wl {
|
|
|
4410
4384
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
|
4411
4385
|
}
|
|
4412
4386
|
}
|
|
4413
|
-
class
|
|
4387
|
+
class N1 extends Ol {
|
|
4414
4388
|
constructor(e, t, r) {
|
|
4415
4389
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
|
4416
4390
|
}
|
|
@@ -4425,14 +4399,14 @@ class z1 extends wl {
|
|
|
4425
4399
|
return e.createRadialGradient(s, u, h, n, o, l);
|
|
4426
4400
|
}
|
|
4427
4401
|
}
|
|
4428
|
-
class
|
|
4402
|
+
class I1 extends N {
|
|
4429
4403
|
constructor(e, t, r) {
|
|
4430
4404
|
super(e, t, r), this.type = "stop";
|
|
4431
4405
|
var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
|
|
4432
4406
|
o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
|
|
4433
4407
|
}
|
|
4434
4408
|
}
|
|
4435
|
-
class
|
|
4409
|
+
class nn extends N {
|
|
4436
4410
|
constructor(e, t, r) {
|
|
4437
4411
|
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);
|
|
4438
4412
|
var i = this.getAttribute("values");
|
|
@@ -4493,7 +4467,7 @@ class on extends I {
|
|
|
4493
4467
|
return r;
|
|
4494
4468
|
}
|
|
4495
4469
|
}
|
|
4496
|
-
class
|
|
4470
|
+
class M1 extends nn {
|
|
4497
4471
|
constructor() {
|
|
4498
4472
|
super(...arguments), this.type = "animateColor";
|
|
4499
4473
|
}
|
|
@@ -4502,7 +4476,7 @@ class Y1 extends on {
|
|
|
4502
4476
|
progress: e,
|
|
4503
4477
|
from: t,
|
|
4504
4478
|
to: r
|
|
4505
|
-
} = this.getProgress(), i = new
|
|
4479
|
+
} = this.getProgress(), i = new pi(t.getColor()), n = new pi(r.getColor());
|
|
4506
4480
|
if (i.ok && n.ok) {
|
|
4507
4481
|
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;
|
|
4508
4482
|
return "rgb(".concat(Math.floor(o), ", ").concat(Math.floor(s), ", ").concat(Math.floor(u), ")");
|
|
@@ -4510,7 +4484,7 @@ class Y1 extends on {
|
|
|
4510
4484
|
return this.getAttribute("from").getColor();
|
|
4511
4485
|
}
|
|
4512
4486
|
}
|
|
4513
|
-
class
|
|
4487
|
+
class _1 extends nn {
|
|
4514
4488
|
constructor() {
|
|
4515
4489
|
super(...arguments), this.type = "animateTransform";
|
|
4516
4490
|
}
|
|
@@ -4519,14 +4493,14 @@ class X1 extends on {
|
|
|
4519
4493
|
progress: e,
|
|
4520
4494
|
from: t,
|
|
4521
4495
|
to: r
|
|
4522
|
-
} = this.getProgress(), i =
|
|
4496
|
+
} = this.getProgress(), i = ie(t.getString()), n = ie(r.getString()), o = i.map((s, u) => {
|
|
4523
4497
|
var l = n[u];
|
|
4524
4498
|
return s + (l - s) * e;
|
|
4525
4499
|
}).join(" ");
|
|
4526
4500
|
return o;
|
|
4527
4501
|
}
|
|
4528
4502
|
}
|
|
4529
|
-
class
|
|
4503
|
+
class V1 extends N {
|
|
4530
4504
|
constructor(e, t, r) {
|
|
4531
4505
|
super(e, t, r), this.type = "font", this.glyphs = /* @__PURE__ */ Object.create(null), this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
|
4532
4506
|
var {
|
|
@@ -4555,17 +4529,17 @@ class W1 extends I {
|
|
|
4555
4529
|
render() {
|
|
4556
4530
|
}
|
|
4557
4531
|
}
|
|
4558
|
-
class
|
|
4532
|
+
class D1 extends N {
|
|
4559
4533
|
constructor(e, t, r) {
|
|
4560
4534
|
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();
|
|
4561
4535
|
}
|
|
4562
4536
|
}
|
|
4563
|
-
class
|
|
4537
|
+
class k1 extends A {
|
|
4564
4538
|
constructor() {
|
|
4565
4539
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
|
4566
4540
|
}
|
|
4567
4541
|
}
|
|
4568
|
-
class
|
|
4542
|
+
class L1 extends Ce {
|
|
4569
4543
|
constructor() {
|
|
4570
4544
|
super(...arguments), this.type = "tref";
|
|
4571
4545
|
}
|
|
@@ -4579,7 +4553,7 @@ class K1 extends Ce {
|
|
|
4579
4553
|
return "";
|
|
4580
4554
|
}
|
|
4581
4555
|
}
|
|
4582
|
-
class
|
|
4556
|
+
class B1 extends Ce {
|
|
4583
4557
|
constructor(e, t, r) {
|
|
4584
4558
|
super(e, t, r), this.type = "a";
|
|
4585
4559
|
var {
|
|
@@ -4602,7 +4576,7 @@ class Z1 extends Ce {
|
|
|
4602
4576
|
} = t.screen, o = new S(t, "fontSize", Z.parse(t.ctx.font).fontSize);
|
|
4603
4577
|
n.isWorking() && n.checkBoundingBox(this, new ce(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
|
4604
4578
|
} else if (this.children.length > 0) {
|
|
4605
|
-
var s = new
|
|
4579
|
+
var s = new an(this.document, null);
|
|
4606
4580
|
s.children = this.children, s.parent = this, s.render(e);
|
|
4607
4581
|
}
|
|
4608
4582
|
}
|
|
@@ -4617,7 +4591,7 @@ class Z1 extends Ce {
|
|
|
4617
4591
|
e.canvas.style.cursor = "pointer";
|
|
4618
4592
|
}
|
|
4619
4593
|
}
|
|
4620
|
-
function
|
|
4594
|
+
function Ro(a, e) {
|
|
4621
4595
|
var t = Object.keys(a);
|
|
4622
4596
|
if (Object.getOwnPropertySymbols) {
|
|
4623
4597
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -4627,18 +4601,18 @@ function Mo(a, e) {
|
|
|
4627
4601
|
}
|
|
4628
4602
|
return t;
|
|
4629
4603
|
}
|
|
4630
|
-
function
|
|
4604
|
+
function ar(a) {
|
|
4631
4605
|
for (var e = 1; e < arguments.length; e++) {
|
|
4632
4606
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
4633
|
-
e % 2 ?
|
|
4634
|
-
|
|
4635
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
4607
|
+
e % 2 ? Ro(Object(t), !0).forEach(function(r) {
|
|
4608
|
+
tn(a, r, t[r]);
|
|
4609
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ro(Object(t)).forEach(function(r) {
|
|
4636
4610
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4637
4611
|
});
|
|
4638
4612
|
}
|
|
4639
4613
|
return a;
|
|
4640
4614
|
}
|
|
4641
|
-
class
|
|
4615
|
+
class j1 extends Ce {
|
|
4642
4616
|
constructor(e, t, r) {
|
|
4643
4617
|
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]]);
|
|
4644
4618
|
var i = this.getHrefAttribute().getDefinition();
|
|
@@ -4670,8 +4644,8 @@ class J1 extends Ce {
|
|
|
4670
4644
|
e && e.quadraticCurveTo(n[0], n[1], n[2], n[3]);
|
|
4671
4645
|
break;
|
|
4672
4646
|
case w.ARC: {
|
|
4673
|
-
var [o, s, u, l, h, f, c, v] = n,
|
|
4674
|
-
e && (e.translate(o, s), e.rotate(c), e.scale(
|
|
4647
|
+
var [o, s, u, l, h, f, c, v] = n, d = u > l ? u : l, g = u > l ? 1 : u / l, p = u > l ? l / u : 1;
|
|
4648
|
+
e && (e.translate(o, s), e.rotate(c), e.scale(g, p), e.arc(0, 0, d, h, h + f, !!(1 - v)), e.scale(1 / g, 1 / p), e.rotate(-c), e.translate(-o, -s));
|
|
4675
4649
|
break;
|
|
4676
4650
|
}
|
|
4677
4651
|
case w.CLOSE_PATH:
|
|
@@ -4702,23 +4676,23 @@ class J1 extends Ce {
|
|
|
4702
4676
|
findSegmentToFitChar(e, t, r, i, n, o, s, u, l) {
|
|
4703
4677
|
var h = o, f = this.measureText(e, u);
|
|
4704
4678
|
u === " " && t === "justify" && r < i && (f += (i - r) / n), l > -1 && (h += this.getLetterSpacingAt(l));
|
|
4705
|
-
var c = this.textHeight / 20, v = this.getEquidistantPointOnPath(h, c, 0),
|
|
4679
|
+
var c = this.textHeight / 20, v = this.getEquidistantPointOnPath(h, c, 0), d = this.getEquidistantPointOnPath(h + f, c, 0), g = {
|
|
4706
4680
|
p0: v,
|
|
4707
|
-
p1:
|
|
4708
|
-
}, p = v &&
|
|
4681
|
+
p1: d
|
|
4682
|
+
}, p = v && d ? Math.atan2(d.y - v.y, d.x - v.x) : 0;
|
|
4709
4683
|
if (s) {
|
|
4710
4684
|
var y = Math.cos(Math.PI / 2 + p) * s, x = Math.cos(-p) * s;
|
|
4711
|
-
|
|
4685
|
+
g.p0 = ar(ar({}, v), {}, {
|
|
4712
4686
|
x: v.x + y,
|
|
4713
4687
|
y: v.y + x
|
|
4714
|
-
}),
|
|
4715
|
-
x:
|
|
4716
|
-
y:
|
|
4688
|
+
}), g.p1 = ar(ar({}, d), {}, {
|
|
4689
|
+
x: d.x + y,
|
|
4690
|
+
y: d.y + x
|
|
4717
4691
|
});
|
|
4718
4692
|
}
|
|
4719
4693
|
return h += f, {
|
|
4720
4694
|
offset: h,
|
|
4721
|
-
segment:
|
|
4695
|
+
segment: g,
|
|
4722
4696
|
rotation: p
|
|
4723
4697
|
};
|
|
4724
4698
|
}
|
|
@@ -4742,8 +4716,8 @@ class J1 extends Ce {
|
|
|
4742
4716
|
this.letterSpacingCache = f;
|
|
4743
4717
|
for (var v = 0; v < c; v++)
|
|
4744
4718
|
f.push(typeof n[v] < "u" ? n[v] : h);
|
|
4745
|
-
var
|
|
4746
|
-
this.textWidth =
|
|
4719
|
+
var d = f.reduce((T, $, E) => E === 0 ? 0 : T + $ || 0, 0), g = this.measureText(e), p = Math.max(g + d, 0);
|
|
4720
|
+
this.textWidth = g, this.textHeight = this.getFontSize(), this.glyphInfo = [];
|
|
4747
4721
|
var y = this.getPathLength(), x = this.getStyle("startOffset").getNumber(0) * y, b = 0;
|
|
4748
4722
|
(s === "middle" || s === "center") && (b = -p / 2), (s === "end" || s === "right") && (b = -p), b += x, r.forEach((T, $) => {
|
|
4749
4723
|
var {
|
|
@@ -4918,7 +4892,7 @@ class J1 extends Ce {
|
|
|
4918
4892
|
return 0;
|
|
4919
4893
|
}
|
|
4920
4894
|
getPointOnLine(e, t, r, i, n) {
|
|
4921
|
-
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t +
|
|
4895
|
+
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t + at), l = Math.sqrt(e * e / (1 + u * u));
|
|
4922
4896
|
i < t && (l *= -1);
|
|
4923
4897
|
var h = u * l, f = null;
|
|
4924
4898
|
if (i === t)
|
|
@@ -4926,17 +4900,17 @@ class J1 extends Ce {
|
|
|
4926
4900
|
x: o,
|
|
4927
4901
|
y: s + h
|
|
4928
4902
|
};
|
|
4929
|
-
else if ((s - r) / (o - t +
|
|
4903
|
+
else if ((s - r) / (o - t + at) === u)
|
|
4930
4904
|
f = {
|
|
4931
4905
|
x: o + l,
|
|
4932
4906
|
y: s + h
|
|
4933
4907
|
};
|
|
4934
4908
|
else {
|
|
4935
|
-
var c = 0, v = 0,
|
|
4936
|
-
if (
|
|
4909
|
+
var c = 0, v = 0, d = this.getLineLength(t, r, i, n);
|
|
4910
|
+
if (d < at)
|
|
4937
4911
|
return null;
|
|
4938
|
-
var
|
|
4939
|
-
|
|
4912
|
+
var g = (o - t) * (i - t) + (s - r) * (n - r);
|
|
4913
|
+
g /= d * d, c = t + g * (i - t), v = r + g * (n - r);
|
|
4940
4914
|
var p = this.getLineLength(o, s, c, v), y = Math.sqrt(e * e - p * p);
|
|
4941
4915
|
l = Math.sqrt(y * y / (1 + u * u)), i < t && (l *= -1), h = u * l, f = {
|
|
4942
4916
|
x: c + l,
|
|
@@ -4989,14 +4963,14 @@ class J1 extends Ce {
|
|
|
4989
4963
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
|
4990
4964
|
}
|
|
4991
4965
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
|
4992
|
-
var h = u *
|
|
4966
|
+
var h = u * So(e) + o * Eo(e) + i * $o(e) + t * wo(e), f = l * So(e) + s * Eo(e) + n * $o(e) + r * wo(e);
|
|
4993
4967
|
return {
|
|
4994
4968
|
x: h,
|
|
4995
4969
|
y: f
|
|
4996
4970
|
};
|
|
4997
4971
|
}
|
|
4998
4972
|
getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
|
|
4999
|
-
var u = o *
|
|
4973
|
+
var u = o * Co(e) + i * Ao(e) + t * Po(e), l = s * Co(e) + n * Ao(e) + r * Po(e);
|
|
5000
4974
|
return {
|
|
5001
4975
|
x: u,
|
|
5002
4976
|
y: l
|
|
@@ -5038,8 +5012,8 @@ class J1 extends Ce {
|
|
|
5038
5012
|
return this.equidistantCache.points[i] || null;
|
|
5039
5013
|
}
|
|
5040
5014
|
}
|
|
5041
|
-
var
|
|
5042
|
-
class
|
|
5015
|
+
var F1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
|
5016
|
+
class U1 extends Ge {
|
|
5043
5017
|
constructor(e, t, r) {
|
|
5044
5018
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
|
5045
5019
|
var i = this.getHrefAttribute().getString();
|
|
@@ -5063,7 +5037,7 @@ class t2 extends Ge {
|
|
|
5063
5037
|
loadSvg(e) {
|
|
5064
5038
|
var t = this;
|
|
5065
5039
|
return xe(function* () {
|
|
5066
|
-
var r =
|
|
5040
|
+
var r = F1.exec(e);
|
|
5067
5041
|
if (r) {
|
|
5068
5042
|
var i = r[5];
|
|
5069
5043
|
r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
|
|
@@ -5115,14 +5089,14 @@ class t2 extends Ge {
|
|
|
5115
5089
|
return new ce(e, t, e + r, t + i);
|
|
5116
5090
|
}
|
|
5117
5091
|
}
|
|
5118
|
-
class
|
|
5092
|
+
class G1 extends Ge {
|
|
5119
5093
|
constructor() {
|
|
5120
5094
|
super(...arguments), this.type = "symbol";
|
|
5121
5095
|
}
|
|
5122
5096
|
render(e) {
|
|
5123
5097
|
}
|
|
5124
5098
|
}
|
|
5125
|
-
class
|
|
5099
|
+
class z1 {
|
|
5126
5100
|
constructor(e) {
|
|
5127
5101
|
this.document = e, this.loaded = !1, e.fonts.push(this);
|
|
5128
5102
|
}
|
|
@@ -5144,10 +5118,10 @@ class a2 {
|
|
|
5144
5118
|
})();
|
|
5145
5119
|
}
|
|
5146
5120
|
}
|
|
5147
|
-
class
|
|
5121
|
+
class Sl extends N {
|
|
5148
5122
|
constructor(e, t, r) {
|
|
5149
5123
|
super(e, t, r), this.type = "style";
|
|
5150
|
-
var i =
|
|
5124
|
+
var i = ht(
|
|
5151
5125
|
Array.from(t.childNodes).map((o) => o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
|
|
5152
5126
|
// remove imports
|
|
5153
5127
|
), n = i.split("}");
|
|
@@ -5162,12 +5136,12 @@ class Cl extends I {
|
|
|
5162
5136
|
if (h.forEach((p) => {
|
|
5163
5137
|
var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
|
|
5164
5138
|
x && b && (v[x] = new S(e, x, b));
|
|
5165
|
-
}), e.styles[c] = v, e.stylesSpecificity[c] =
|
|
5166
|
-
var
|
|
5167
|
-
|
|
5139
|
+
}), e.styles[c] = v, e.stylesSpecificity[c] = n1(c), c === "@font-face") {
|
|
5140
|
+
var d = v["font-family"].getString().replace(/"|'/g, ""), g = v.src.getString().split(",");
|
|
5141
|
+
g.forEach((p) => {
|
|
5168
5142
|
if (p.indexOf('format("svg")') > 0) {
|
|
5169
|
-
var y =
|
|
5170
|
-
y && new
|
|
5143
|
+
var y = gl(p);
|
|
5144
|
+
y && new z1(e).load(d, y);
|
|
5171
5145
|
}
|
|
5172
5146
|
});
|
|
5173
5147
|
}
|
|
@@ -5177,8 +5151,8 @@ class Cl extends I {
|
|
|
5177
5151
|
});
|
|
5178
5152
|
}
|
|
5179
5153
|
}
|
|
5180
|
-
|
|
5181
|
-
class
|
|
5154
|
+
Sl.parseExternalUrl = gl;
|
|
5155
|
+
class H1 extends Ge {
|
|
5182
5156
|
constructor() {
|
|
5183
5157
|
super(...arguments), this.type = "use";
|
|
5184
5158
|
}
|
|
@@ -5200,7 +5174,7 @@ class i2 extends Ge {
|
|
|
5200
5174
|
} = this;
|
|
5201
5175
|
if (r) {
|
|
5202
5176
|
var i = r;
|
|
5203
|
-
if (r.type === "symbol" && (i = new
|
|
5177
|
+
if (r.type === "symbol" && (i = new It(t, null), i.attributes.viewBox = new S(t, "viewBox", r.getAttribute("viewBox").getString()), i.attributes.preserveAspectRatio = new S(t, "preserveAspectRatio", r.getAttribute("preserveAspectRatio").getString()), i.attributes.overflow = new S(t, "overflow", r.getAttribute("overflow").getString()), i.children = r.children, r.styles.opacity = new S(t, "opacity", this.calculateOpacity())), i.type === "svg") {
|
|
5204
5178
|
var n = this.getStyle("width", !1, !0), o = this.getStyle("height", !1, !0);
|
|
5205
5179
|
n.hasValue() && (i.attributes.width = new S(t, "width", n.getString())), o.hasValue() && (i.attributes.height = new S(t, "height", o.getString()));
|
|
5206
5180
|
}
|
|
@@ -5219,16 +5193,16 @@ class i2 extends Ge {
|
|
|
5219
5193
|
document: e,
|
|
5220
5194
|
element: t
|
|
5221
5195
|
} = this;
|
|
5222
|
-
return
|
|
5196
|
+
return Le.fromElement(e, t);
|
|
5223
5197
|
}
|
|
5224
5198
|
get element() {
|
|
5225
5199
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
|
5226
5200
|
}
|
|
5227
5201
|
}
|
|
5228
|
-
function
|
|
5202
|
+
function ir(a, e, t, r, i, n) {
|
|
5229
5203
|
return a[t * r * 4 + e * 4 + n];
|
|
5230
5204
|
}
|
|
5231
|
-
function
|
|
5205
|
+
function nr(a, e, t, r, i, n, o) {
|
|
5232
5206
|
a[t * r * 4 + e * 4 + n] = o;
|
|
5233
5207
|
}
|
|
5234
5208
|
function F(a, e, t) {
|
|
@@ -5238,10 +5212,10 @@ function F(a, e, t) {
|
|
|
5238
5212
|
function me(a, e, t, r) {
|
|
5239
5213
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
|
5240
5214
|
}
|
|
5241
|
-
class
|
|
5215
|
+
class El extends N {
|
|
5242
5216
|
constructor(e, t, r) {
|
|
5243
5217
|
super(e, t, r), this.type = "feColorMatrix";
|
|
5244
|
-
var i =
|
|
5218
|
+
var i = ie(this.getAttribute("values").getString());
|
|
5245
5219
|
switch (this.getAttribute("type").getString("matrix")) {
|
|
5246
5220
|
case "saturate": {
|
|
5247
5221
|
var n = i[0];
|
|
@@ -5265,13 +5239,13 @@ class Al extends I {
|
|
|
5265
5239
|
matrix: s
|
|
5266
5240
|
} = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
|
|
5267
5241
|
for (var h = 0; h < i; h++) {
|
|
5268
|
-
var f =
|
|
5269
|
-
o && (
|
|
5242
|
+
var f = ir(u.data, h, l, i, n, 0), c = ir(u.data, h, l, i, n, 1), v = ir(u.data, h, l, i, n, 2), d = ir(u.data, h, l, i, n, 3), g = F(s, 0, f) + F(s, 1, c) + F(s, 2, v) + F(s, 3, d) + F(s, 4, 1), p = F(s, 5, f) + F(s, 6, c) + F(s, 7, v) + F(s, 8, d) + F(s, 9, 1), y = F(s, 10, f) + F(s, 11, c) + F(s, 12, v) + F(s, 13, d) + F(s, 14, 1), x = F(s, 15, f) + F(s, 16, c) + F(s, 17, v) + F(s, 18, d) + F(s, 19, 1);
|
|
5243
|
+
o && (g = 0, p = 0, y = 0, x *= d / 255), nr(u.data, h, l, i, n, 0, g), nr(u.data, h, l, i, n, 1, p), nr(u.data, h, l, i, n, 2, y), nr(u.data, h, l, i, n, 3, x);
|
|
5270
5244
|
}
|
|
5271
5245
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
|
5272
5246
|
}
|
|
5273
5247
|
}
|
|
5274
|
-
class
|
|
5248
|
+
class Dr extends N {
|
|
5275
5249
|
constructor() {
|
|
5276
5250
|
super(...arguments), this.type = "mask";
|
|
5277
5251
|
}
|
|
@@ -5281,12 +5255,12 @@ class kr extends I {
|
|
|
5281
5255
|
} = this, i = this.getAttribute("x").getPixels("x"), n = this.getAttribute("y").getPixels("y"), o = this.getStyle("width").getPixels("x"), s = this.getStyle("height").getPixels("y");
|
|
5282
5256
|
if (!o && !s) {
|
|
5283
5257
|
var u = new ce();
|
|
5284
|
-
this.children.forEach((
|
|
5285
|
-
u.addBoundingBox(
|
|
5258
|
+
this.children.forEach((d) => {
|
|
5259
|
+
u.addBoundingBox(d.getBoundingBox(e));
|
|
5286
5260
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
|
5287
5261
|
}
|
|
5288
|
-
var l = this.removeStyles(t,
|
|
5289
|
-
r.screen.setDefaults(f), this.renderChildren(f), new
|
|
5262
|
+
var l = this.removeStyles(t, Dr.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
|
5263
|
+
r.screen.setDefaults(f), this.renderChildren(f), new El(r, {
|
|
5290
5264
|
nodeType: 1,
|
|
5291
5265
|
childNodes: [],
|
|
5292
5266
|
attributes: [{
|
|
@@ -5303,10 +5277,10 @@ class kr extends I {
|
|
|
5303
5277
|
render(e) {
|
|
5304
5278
|
}
|
|
5305
5279
|
}
|
|
5306
|
-
|
|
5307
|
-
var
|
|
5280
|
+
Dr.ignoreStyles = ["mask", "transform", "clip-path"];
|
|
5281
|
+
var No = () => {
|
|
5308
5282
|
};
|
|
5309
|
-
class
|
|
5283
|
+
class Y1 extends N {
|
|
5310
5284
|
constructor() {
|
|
5311
5285
|
super(...arguments), this.type = "clipPath";
|
|
5312
5286
|
}
|
|
@@ -5317,17 +5291,17 @@ class n2 extends I {
|
|
|
5317
5291
|
beginPath: i,
|
|
5318
5292
|
closePath: n
|
|
5319
5293
|
} = e;
|
|
5320
|
-
r && (r.beginPath =
|
|
5294
|
+
r && (r.beginPath = No, r.closePath = No), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
|
5321
5295
|
if (!(typeof o.path > "u")) {
|
|
5322
5296
|
var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
|
|
5323
|
-
s || (s =
|
|
5297
|
+
s || (s = Le.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
|
5324
5298
|
}
|
|
5325
5299
|
}), Reflect.apply(n, e, []), e.clip(), r && (r.beginPath = i, r.closePath = n);
|
|
5326
5300
|
}
|
|
5327
5301
|
render(e) {
|
|
5328
5302
|
}
|
|
5329
5303
|
}
|
|
5330
|
-
class
|
|
5304
|
+
class kr extends N {
|
|
5331
5305
|
constructor() {
|
|
5332
5306
|
super(...arguments), this.type = "filter";
|
|
5333
5307
|
}
|
|
@@ -5344,39 +5318,39 @@ class Br extends I {
|
|
|
5344
5318
|
});
|
|
5345
5319
|
var u = Math.floor(n.width), l = Math.floor(n.height), h = u + 2 * o, f = l + 2 * s;
|
|
5346
5320
|
if (!(h < 1 || f < 1)) {
|
|
5347
|
-
var c = Math.floor(n.x), v = Math.floor(n.y),
|
|
5321
|
+
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t, kr.ignoreStyles), g = r.createCanvas(h, f), p = g.getContext("2d");
|
|
5348
5322
|
r.screen.setDefaults(p), p.translate(-c + o, -v + s), t.render(p), i.forEach((y) => {
|
|
5349
5323
|
typeof y.apply == "function" && y.apply(p, 0, 0, h, f);
|
|
5350
|
-
}), e.drawImage(
|
|
5324
|
+
}), e.drawImage(g, 0, 0, h, f, c - o, v - s, h, f), this.restoreStyles(t, d);
|
|
5351
5325
|
}
|
|
5352
5326
|
}
|
|
5353
5327
|
}
|
|
5354
5328
|
render(e) {
|
|
5355
5329
|
}
|
|
5356
5330
|
}
|
|
5357
|
-
|
|
5358
|
-
class
|
|
5331
|
+
kr.ignoreStyles = ["filter", "transform", "clip-path"];
|
|
5332
|
+
class X1 extends N {
|
|
5359
5333
|
constructor(e, t, r) {
|
|
5360
5334
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
|
5361
5335
|
}
|
|
5362
5336
|
apply(e, t, r, i, n) {
|
|
5363
5337
|
}
|
|
5364
5338
|
}
|
|
5365
|
-
class
|
|
5339
|
+
class W1 extends N {
|
|
5366
5340
|
constructor() {
|
|
5367
5341
|
super(...arguments), this.type = "feMorphology";
|
|
5368
5342
|
}
|
|
5369
5343
|
apply(e, t, r, i, n) {
|
|
5370
5344
|
}
|
|
5371
5345
|
}
|
|
5372
|
-
class
|
|
5346
|
+
class q1 extends N {
|
|
5373
5347
|
constructor() {
|
|
5374
5348
|
super(...arguments), this.type = "feComposite";
|
|
5375
5349
|
}
|
|
5376
5350
|
apply(e, t, r, i, n) {
|
|
5377
5351
|
}
|
|
5378
5352
|
}
|
|
5379
|
-
class
|
|
5353
|
+
class Q1 extends N {
|
|
5380
5354
|
constructor(e, t, r) {
|
|
5381
5355
|
super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
|
|
5382
5356
|
}
|
|
@@ -5385,63 +5359,63 @@ class l2 extends I {
|
|
|
5385
5359
|
document: o,
|
|
5386
5360
|
blurRadius: s
|
|
5387
5361
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
|
5388
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
|
5362
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), Gb(l, t, r, i, n, s), u && u.removeChild(l);
|
|
5389
5363
|
}
|
|
5390
5364
|
}
|
|
5391
|
-
class
|
|
5365
|
+
class K1 extends N {
|
|
5392
5366
|
constructor() {
|
|
5393
5367
|
super(...arguments), this.type = "title";
|
|
5394
5368
|
}
|
|
5395
5369
|
}
|
|
5396
|
-
class
|
|
5370
|
+
class Z1 extends N {
|
|
5397
5371
|
constructor() {
|
|
5398
5372
|
super(...arguments), this.type = "desc";
|
|
5399
5373
|
}
|
|
5400
5374
|
}
|
|
5401
|
-
var
|
|
5402
|
-
svg:
|
|
5403
|
-
rect:
|
|
5404
|
-
circle:
|
|
5405
|
-
ellipse:
|
|
5406
|
-
line:
|
|
5407
|
-
polyline:
|
|
5408
|
-
polygon:
|
|
5375
|
+
var J1 = {
|
|
5376
|
+
svg: It,
|
|
5377
|
+
rect: xl,
|
|
5378
|
+
circle: S1,
|
|
5379
|
+
ellipse: E1,
|
|
5380
|
+
line: $1,
|
|
5381
|
+
polyline: Tl,
|
|
5382
|
+
polygon: w1,
|
|
5409
5383
|
path: A,
|
|
5410
|
-
pattern:
|
|
5411
|
-
marker:
|
|
5412
|
-
defs:
|
|
5413
|
-
linearGradient:
|
|
5414
|
-
radialGradient:
|
|
5415
|
-
stop:
|
|
5416
|
-
animate:
|
|
5417
|
-
animateColor:
|
|
5418
|
-
animateTransform:
|
|
5419
|
-
font:
|
|
5420
|
-
"font-face":
|
|
5421
|
-
"missing-glyph":
|
|
5422
|
-
glyph:
|
|
5384
|
+
pattern: C1,
|
|
5385
|
+
marker: A1,
|
|
5386
|
+
defs: P1,
|
|
5387
|
+
linearGradient: R1,
|
|
5388
|
+
radialGradient: N1,
|
|
5389
|
+
stop: I1,
|
|
5390
|
+
animate: nn,
|
|
5391
|
+
animateColor: M1,
|
|
5392
|
+
animateTransform: _1,
|
|
5393
|
+
font: V1,
|
|
5394
|
+
"font-face": D1,
|
|
5395
|
+
"missing-glyph": k1,
|
|
5396
|
+
glyph: bl,
|
|
5423
5397
|
text: Ce,
|
|
5424
|
-
tspan:
|
|
5425
|
-
tref:
|
|
5426
|
-
a:
|
|
5427
|
-
textPath:
|
|
5428
|
-
image:
|
|
5429
|
-
g:
|
|
5430
|
-
symbol:
|
|
5431
|
-
style:
|
|
5432
|
-
use:
|
|
5433
|
-
mask:
|
|
5434
|
-
clipPath:
|
|
5435
|
-
filter:
|
|
5436
|
-
feDropShadow:
|
|
5437
|
-
feMorphology:
|
|
5438
|
-
feComposite:
|
|
5439
|
-
feColorMatrix:
|
|
5440
|
-
feGaussianBlur:
|
|
5441
|
-
title:
|
|
5442
|
-
desc:
|
|
5398
|
+
tspan: Vr,
|
|
5399
|
+
tref: L1,
|
|
5400
|
+
a: B1,
|
|
5401
|
+
textPath: j1,
|
|
5402
|
+
image: U1,
|
|
5403
|
+
g: an,
|
|
5404
|
+
symbol: G1,
|
|
5405
|
+
style: Sl,
|
|
5406
|
+
use: H1,
|
|
5407
|
+
mask: Dr,
|
|
5408
|
+
clipPath: Y1,
|
|
5409
|
+
filter: kr,
|
|
5410
|
+
feDropShadow: X1,
|
|
5411
|
+
feMorphology: W1,
|
|
5412
|
+
feComposite: q1,
|
|
5413
|
+
feColorMatrix: El,
|
|
5414
|
+
feGaussianBlur: Q1,
|
|
5415
|
+
title: K1,
|
|
5416
|
+
desc: Z1
|
|
5443
5417
|
};
|
|
5444
|
-
function
|
|
5418
|
+
function Io(a, e) {
|
|
5445
5419
|
var t = Object.keys(a);
|
|
5446
5420
|
if (Object.getOwnPropertySymbols) {
|
|
5447
5421
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5451,26 +5425,26 @@ function Vo(a, e) {
|
|
|
5451
5425
|
}
|
|
5452
5426
|
return t;
|
|
5453
5427
|
}
|
|
5454
|
-
function
|
|
5428
|
+
function e2(a) {
|
|
5455
5429
|
for (var e = 1; e < arguments.length; e++) {
|
|
5456
5430
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5457
|
-
e % 2 ?
|
|
5458
|
-
|
|
5459
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5431
|
+
e % 2 ? Io(Object(t), !0).forEach(function(r) {
|
|
5432
|
+
tn(a, r, t[r]);
|
|
5433
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Io(Object(t)).forEach(function(r) {
|
|
5460
5434
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5461
5435
|
});
|
|
5462
5436
|
}
|
|
5463
5437
|
return a;
|
|
5464
5438
|
}
|
|
5465
|
-
function
|
|
5439
|
+
function t2(a, e) {
|
|
5466
5440
|
var t = document.createElement("canvas");
|
|
5467
5441
|
return t.width = a, t.height = e, t;
|
|
5468
5442
|
}
|
|
5469
|
-
function
|
|
5470
|
-
return
|
|
5443
|
+
function r2(a) {
|
|
5444
|
+
return xi.apply(this, arguments);
|
|
5471
5445
|
}
|
|
5472
|
-
function
|
|
5473
|
-
return
|
|
5446
|
+
function xi() {
|
|
5447
|
+
return xi = xe(function* (a) {
|
|
5474
5448
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = document.createElement("img");
|
|
5475
5449
|
return e && (t.crossOrigin = "Anonymous"), new Promise((r, i) => {
|
|
5476
5450
|
t.onload = () => {
|
|
@@ -5479,7 +5453,7 @@ function Ti() {
|
|
|
5479
5453
|
i(l);
|
|
5480
5454
|
}, t.src = a;
|
|
5481
5455
|
});
|
|
5482
|
-
}),
|
|
5456
|
+
}), xi.apply(this, arguments);
|
|
5483
5457
|
}
|
|
5484
5458
|
class $e {
|
|
5485
5459
|
constructor(e) {
|
|
@@ -5537,21 +5511,21 @@ class $e {
|
|
|
5537
5511
|
}
|
|
5538
5512
|
createElement(e) {
|
|
5539
5513
|
var t = e.nodeName.replace(/^[^:]+:/, ""), r = $e.elementTypes[t];
|
|
5540
|
-
return typeof r < "u" ? new r(this, e) : new
|
|
5514
|
+
return typeof r < "u" ? new r(this, e) : new y1(this, e);
|
|
5541
5515
|
}
|
|
5542
5516
|
createTextNode(e) {
|
|
5543
|
-
return new
|
|
5517
|
+
return new O1(this, e);
|
|
5544
5518
|
}
|
|
5545
5519
|
setViewBox(e) {
|
|
5546
|
-
this.screen.setViewBox(
|
|
5520
|
+
this.screen.setViewBox(e2({
|
|
5547
5521
|
document: this
|
|
5548
5522
|
}, e));
|
|
5549
5523
|
}
|
|
5550
5524
|
}
|
|
5551
|
-
$e.createCanvas =
|
|
5552
|
-
$e.createImage =
|
|
5553
|
-
$e.elementTypes =
|
|
5554
|
-
function
|
|
5525
|
+
$e.createCanvas = t2;
|
|
5526
|
+
$e.createImage = r2;
|
|
5527
|
+
$e.elementTypes = J1;
|
|
5528
|
+
function Mo(a, e) {
|
|
5555
5529
|
var t = Object.keys(a);
|
|
5556
5530
|
if (Object.getOwnPropertySymbols) {
|
|
5557
5531
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5561,18 +5535,18 @@ function Do(a, e) {
|
|
|
5561
5535
|
}
|
|
5562
5536
|
return t;
|
|
5563
5537
|
}
|
|
5564
|
-
function
|
|
5538
|
+
function Ve(a) {
|
|
5565
5539
|
for (var e = 1; e < arguments.length; e++) {
|
|
5566
5540
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5567
|
-
e % 2 ?
|
|
5568
|
-
|
|
5569
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5541
|
+
e % 2 ? Mo(Object(t), !0).forEach(function(r) {
|
|
5542
|
+
tn(a, r, t[r]);
|
|
5543
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Mo(Object(t)).forEach(function(r) {
|
|
5570
5544
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5571
5545
|
});
|
|
5572
5546
|
}
|
|
5573
5547
|
return a;
|
|
5574
5548
|
}
|
|
5575
|
-
class
|
|
5549
|
+
class bt {
|
|
5576
5550
|
/**
|
|
5577
5551
|
* Main constructor.
|
|
5578
5552
|
* @param ctx - Rendering context.
|
|
@@ -5581,7 +5555,7 @@ class mt {
|
|
|
5581
5555
|
*/
|
|
5582
5556
|
constructor(e, t) {
|
|
5583
5557
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5584
|
-
this.parser = new
|
|
5558
|
+
this.parser = new Ga(r), this.screen = new _r(e, r), this.options = r;
|
|
5585
5559
|
var i = new $e(this, r), n = i.createDocumentElement(t);
|
|
5586
5560
|
this.document = i, this.documentElement = n;
|
|
5587
5561
|
}
|
|
@@ -5595,8 +5569,8 @@ class mt {
|
|
|
5595
5569
|
static from(e, t) {
|
|
5596
5570
|
var r = arguments;
|
|
5597
5571
|
return xe(function* () {
|
|
5598
|
-
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new
|
|
5599
|
-
return new
|
|
5572
|
+
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new Ga(i), o = yield n.parse(t);
|
|
5573
|
+
return new bt(e, o, i);
|
|
5600
5574
|
})();
|
|
5601
5575
|
}
|
|
5602
5576
|
/**
|
|
@@ -5607,8 +5581,8 @@ class mt {
|
|
|
5607
5581
|
* @returns Canvg instance.
|
|
5608
5582
|
*/
|
|
5609
5583
|
static fromString(e, t) {
|
|
5610
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new
|
|
5611
|
-
return new
|
|
5584
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new Ga(r), n = i.parseFromString(t);
|
|
5585
|
+
return new bt(e, n, r);
|
|
5612
5586
|
}
|
|
5613
5587
|
/**
|
|
5614
5588
|
* Create new Canvg instance with inherited options.
|
|
@@ -5619,7 +5593,7 @@ class mt {
|
|
|
5619
5593
|
*/
|
|
5620
5594
|
fork(e, t) {
|
|
5621
5595
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5622
|
-
return
|
|
5596
|
+
return bt.from(e, t, Ve(Ve({}, this.options), r));
|
|
5623
5597
|
}
|
|
5624
5598
|
/**
|
|
5625
5599
|
* Create new Canvg instance with inherited options.
|
|
@@ -5630,7 +5604,7 @@ class mt {
|
|
|
5630
5604
|
*/
|
|
5631
5605
|
forkString(e, t) {
|
|
5632
5606
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5633
|
-
return
|
|
5607
|
+
return bt.fromString(e, t, Ve(Ve({}, this.options), r));
|
|
5634
5608
|
}
|
|
5635
5609
|
/**
|
|
5636
5610
|
* Document is ready promise.
|
|
@@ -5654,7 +5628,7 @@ class mt {
|
|
|
5654
5628
|
var e = arguments, t = this;
|
|
5655
5629
|
return xe(function* () {
|
|
5656
5630
|
var r = e.length > 0 && e[0] !== void 0 ? e[0] : {};
|
|
5657
|
-
t.start(
|
|
5631
|
+
t.start(Ve({
|
|
5658
5632
|
enableRedraw: !0,
|
|
5659
5633
|
ignoreAnimation: !0,
|
|
5660
5634
|
ignoreMouse: !0
|
|
@@ -5671,7 +5645,7 @@ class mt {
|
|
|
5671
5645
|
screen: r,
|
|
5672
5646
|
options: i
|
|
5673
5647
|
} = this;
|
|
5674
|
-
r.start(t,
|
|
5648
|
+
r.start(t, Ve(Ve({
|
|
5675
5649
|
enableRedraw: !0
|
|
5676
5650
|
}, i), e));
|
|
5677
5651
|
}
|
|
@@ -5693,90 +5667,90 @@ class mt {
|
|
|
5693
5667
|
}
|
|
5694
5668
|
}
|
|
5695
5669
|
export {
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5670
|
+
B1 as AElement,
|
|
5671
|
+
M1 as AnimateColorElement,
|
|
5672
|
+
nn as AnimateElement,
|
|
5673
|
+
_1 as AnimateTransformElement,
|
|
5700
5674
|
ce as BoundingBox,
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5675
|
+
So as CB1,
|
|
5676
|
+
Eo as CB2,
|
|
5677
|
+
$o as CB3,
|
|
5678
|
+
wo as CB4,
|
|
5679
|
+
bt as Canvg,
|
|
5680
|
+
S1 as CircleElement,
|
|
5681
|
+
Y1 as ClipPathElement,
|
|
5682
|
+
P1 as DefsElement,
|
|
5683
|
+
Z1 as DescElement,
|
|
5710
5684
|
$e as Document,
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5685
|
+
N as Element,
|
|
5686
|
+
E1 as EllipseElement,
|
|
5687
|
+
El as FeColorMatrixElement,
|
|
5688
|
+
q1 as FeCompositeElement,
|
|
5689
|
+
X1 as FeDropShadowElement,
|
|
5690
|
+
Q1 as FeGaussianBlurElement,
|
|
5691
|
+
W1 as FeMorphologyElement,
|
|
5692
|
+
kr as FilterElement,
|
|
5719
5693
|
Z as Font,
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5694
|
+
V1 as FontElement,
|
|
5695
|
+
D1 as FontFaceElement,
|
|
5696
|
+
an as GElement,
|
|
5697
|
+
bl as GlyphElement,
|
|
5698
|
+
Ol as GradientElement,
|
|
5699
|
+
U1 as ImageElement,
|
|
5700
|
+
$1 as LineElement,
|
|
5701
|
+
R1 as LinearGradientElement,
|
|
5702
|
+
A1 as MarkerElement,
|
|
5703
|
+
Dr as MaskElement,
|
|
5704
|
+
yl as Matrix,
|
|
5705
|
+
k1 as MissingGlyphElement,
|
|
5706
|
+
o1 as Mouse,
|
|
5707
|
+
at as PSEUDO_ZERO,
|
|
5708
|
+
Ga as Parser,
|
|
5735
5709
|
A as PathElement,
|
|
5736
5710
|
w as PathParser,
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5711
|
+
C1 as PatternElement,
|
|
5712
|
+
D as Point,
|
|
5713
|
+
w1 as PolygonElement,
|
|
5714
|
+
Tl as PolylineElement,
|
|
5741
5715
|
S as Property,
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5716
|
+
Co as QB1,
|
|
5717
|
+
Ao as QB2,
|
|
5718
|
+
Po as QB3,
|
|
5719
|
+
N1 as RadialGradientElement,
|
|
5720
|
+
xl as RectElement,
|
|
5747
5721
|
Ge as RenderedElement,
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5722
|
+
v1 as Rotate,
|
|
5723
|
+
It as SVGElement,
|
|
5724
|
+
z1 as SVGFontLoader,
|
|
5725
|
+
f1 as Scale,
|
|
5726
|
+
_r as Screen,
|
|
5727
|
+
ml as Skew,
|
|
5728
|
+
c1 as SkewX,
|
|
5729
|
+
g1 as SkewY,
|
|
5730
|
+
I1 as StopElement,
|
|
5731
|
+
Sl as StyleElement,
|
|
5732
|
+
G1 as SymbolElement,
|
|
5733
|
+
L1 as TRefElement,
|
|
5734
|
+
Vr as TSpanElement,
|
|
5761
5735
|
Ce as TextElement,
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5736
|
+
j1 as TextPathElement,
|
|
5737
|
+
K1 as TitleElement,
|
|
5738
|
+
Le as Transform,
|
|
5739
|
+
h1 as Translate,
|
|
5740
|
+
y1 as UnknownElement,
|
|
5741
|
+
H1 as UseElement,
|
|
5742
|
+
s1 as ViewPort,
|
|
5743
|
+
ht as compressSpaces,
|
|
5744
|
+
bt as default,
|
|
5745
|
+
n1 as getSelectorSpecificity,
|
|
5746
|
+
Qb as normalizeAttributeName,
|
|
5747
|
+
Kb as normalizeColor,
|
|
5748
|
+
gl as parseExternalUrl,
|
|
5749
|
+
f2 as presets,
|
|
5750
|
+
ie as toNumbers,
|
|
5751
|
+
Xb as trimLeft,
|
|
5752
|
+
Wb as trimRight,
|
|
5753
|
+
To as vectorMagnitude,
|
|
5754
|
+
Oo as vectorsAngle,
|
|
5755
|
+
bi as vectorsRatio
|
|
5782
5756
|
};
|