@amsom-habitat/ui 2.14.9 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CLFcph8j.js → index-C2M_BBW4.js} +13600 -16392
- package/dist/{index.es-IgSaRC2u.js → index.es-DEJ40Ob7.js} +1306 -1293
- package/dist/{purify.es-BwOkayRK.js → purify.es-CKk_t3XZ.js} +72 -72
- package/dist/ui.js +1 -1
- package/dist/ui.umd.cjs +116 -107
- package/dist/web-CTHUub3k.js +437 -0
- package/package.json +15 -15
|
@@ -1,254 +1,253 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
var
|
|
1
|
+
import { c as Qe, _ as za, g as Io } from "./index-C2M_BBW4.js";
|
|
2
|
+
var ht = function(a) {
|
|
3
3
|
return a && a.Math === Math && a;
|
|
4
|
-
},
|
|
4
|
+
}, _ = (
|
|
5
5
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
ht(typeof globalThis == "object" && globalThis) || ht(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
7
|
+
ht(typeof self == "object" && self) || ht(typeof Qe == "object" && Qe) || ht(typeof Qe == "object" && Qe) || // eslint-disable-next-line no-new-func -- fallback
|
|
8
8
|
/* @__PURE__ */ function() {
|
|
9
9
|
return this;
|
|
10
10
|
}() || Function("return this")()
|
|
11
|
-
), Et = {},
|
|
11
|
+
), Et = {}, D = function(a) {
|
|
12
12
|
try {
|
|
13
13
|
return !!a();
|
|
14
14
|
} catch {
|
|
15
15
|
return !0;
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, $l = D, he = !$l(function() {
|
|
18
18
|
return Object.defineProperty({}, 1, { get: function() {
|
|
19
19
|
return 7;
|
|
20
20
|
} })[1] !== 7;
|
|
21
|
-
}),
|
|
21
|
+
}), wl = D, br = !wl(function() {
|
|
22
22
|
var a = (function() {
|
|
23
23
|
}).bind();
|
|
24
24
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
|
25
|
-
}),
|
|
25
|
+
}), Cl = br, Ft = Function.prototype.call, Y = Cl ? Ft.bind(Ft) : function() {
|
|
26
26
|
return Ft.apply(Ft, arguments);
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
var t =
|
|
27
|
+
}, Mo = {}, _o = {}.propertyIsEnumerable, Vo = Object.getOwnPropertyDescriptor, Al = Vo && !_o.call({ 1: 2 }, 1);
|
|
28
|
+
Mo.f = Al ? function(e) {
|
|
29
|
+
var t = Vo(this, e);
|
|
30
30
|
return !!t && t.enumerable;
|
|
31
|
-
} :
|
|
32
|
-
var
|
|
31
|
+
} : _o;
|
|
32
|
+
var xi = function(a, e) {
|
|
33
33
|
return {
|
|
34
34
|
enumerable: !(a & 1),
|
|
35
35
|
configurable: !(a & 2),
|
|
36
36
|
writable: !(a & 4),
|
|
37
37
|
value: e
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, Do = br, Lo = Function.prototype, Ha = Lo.call, Pl = Do && Lo.bind.bind(Ha, Ha), L = Do ? Pl : function(a) {
|
|
40
40
|
return function() {
|
|
41
|
-
return
|
|
41
|
+
return Ha.apply(a, arguments);
|
|
42
42
|
};
|
|
43
|
-
},
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
return !
|
|
43
|
+
}, ko = L, Rl = ko({}.toString), Nl = ko("".slice), je = function(a) {
|
|
44
|
+
return Nl(Rl(a), 8, -1);
|
|
45
|
+
}, Il = L, Ml = D, _l = je, Zr = Object, Vl = Il("".split), Bo = Ml(function() {
|
|
46
|
+
return !Zr("z").propertyIsEnumerable(0);
|
|
47
47
|
}) ? function(a) {
|
|
48
|
-
return
|
|
49
|
-
} :
|
|
48
|
+
return _l(a) === "String" ? Vl(a, "") : Zr(a);
|
|
49
|
+
} : Zr, xr = function(a) {
|
|
50
50
|
return a == null;
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
51
|
+
}, Dl = xr, Ll = TypeError, ve = function(a) {
|
|
52
|
+
if (Dl(a)) throw new Ll("Can't call method on " + a);
|
|
53
53
|
return a;
|
|
54
|
-
},
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
return typeof a == "function" || a ===
|
|
54
|
+
}, kl = Bo, Bl = ve, $t = function(a) {
|
|
55
|
+
return kl(Bl(a));
|
|
56
|
+
}, Jr = typeof document == "object" && document.all, B = typeof Jr > "u" && Jr !== void 0 ? function(a) {
|
|
57
|
+
return typeof a == "function" || a === Jr;
|
|
58
58
|
} : function(a) {
|
|
59
59
|
return typeof a == "function";
|
|
60
|
-
},
|
|
61
|
-
return typeof a == "object" ? a !== null :
|
|
62
|
-
},
|
|
63
|
-
return
|
|
60
|
+
}, jl = B, ae = function(a) {
|
|
61
|
+
return typeof a == "object" ? a !== null : jl(a);
|
|
62
|
+
}, ea = _, Fl = B, Ul = function(a) {
|
|
63
|
+
return Fl(a) ? a : void 0;
|
|
64
64
|
}, Fe = function(a, e) {
|
|
65
|
-
return arguments.length < 2 ?
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
!
|
|
69
|
-
var
|
|
65
|
+
return arguments.length < 2 ? Ul(ea[a]) : ea[a] && ea[a][e];
|
|
66
|
+
}, Gl = L, Tr = Gl({}.isPrototypeOf), zl = _, gn = zl.navigator, dn = gn && gn.userAgent, wt = dn ? String(dn) : "", jo = _, ta = wt, pn = jo.process, yn = jo.Deno, mn = pn && pn.versions || yn && yn.version, bn = mn && mn.v8, le, cr;
|
|
67
|
+
bn && (le = bn.split("."), cr = le[0] > 0 && le[0] < 4 ? 1 : +(le[0] + le[1]));
|
|
68
|
+
!cr && ta && (le = ta.match(/Edge\/(\d+)/), (!le || le[1] >= 74) && (le = ta.match(/Chrome\/(\d+)/), le && (cr = +le[1])));
|
|
69
|
+
var Ti = cr, xn = Ti, Hl = D, Yl = _, Xl = Yl.String, Fo = !!Object.getOwnPropertySymbols && !Hl(function() {
|
|
70
70
|
var a = Symbol("symbol detection");
|
|
71
|
-
return !
|
|
72
|
-
!Symbol.sham &&
|
|
73
|
-
}),
|
|
71
|
+
return !Xl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
72
|
+
!Symbol.sham && xn && xn < 41;
|
|
73
|
+
}), Wl = Fo, Uo = Wl && !Symbol.sham && typeof Symbol.iterator == "symbol", ql = Fe, Ql = B, Kl = Tr, Zl = Uo, Jl = Object, Go = Zl ? function(a) {
|
|
74
74
|
return typeof a == "symbol";
|
|
75
75
|
} : function(a) {
|
|
76
|
-
var e =
|
|
77
|
-
return
|
|
78
|
-
},
|
|
76
|
+
var e = ql("Symbol");
|
|
77
|
+
return Ql(e) && Kl(e.prototype, Jl(a));
|
|
78
|
+
}, eh = String, Or = function(a) {
|
|
79
79
|
try {
|
|
80
|
-
return
|
|
80
|
+
return eh(a);
|
|
81
81
|
} catch {
|
|
82
82
|
return "Object";
|
|
83
83
|
}
|
|
84
|
-
},
|
|
85
|
-
if (
|
|
86
|
-
throw new
|
|
87
|
-
},
|
|
84
|
+
}, th = B, rh = Or, ah = TypeError, Te = function(a) {
|
|
85
|
+
if (th(a)) return a;
|
|
86
|
+
throw new ah(rh(a) + " is not a function");
|
|
87
|
+
}, ih = Te, nh = xr, st = function(a, e) {
|
|
88
88
|
var t = a[e];
|
|
89
|
-
return
|
|
90
|
-
},
|
|
89
|
+
return nh(t) ? void 0 : ih(t);
|
|
90
|
+
}, ra = Y, aa = B, ia = ae, sh = TypeError, oh = function(a, e) {
|
|
91
91
|
var t, r;
|
|
92
|
-
if (e === "string" &&
|
|
93
|
-
throw new
|
|
94
|
-
},
|
|
92
|
+
if (e === "string" && aa(t = a.toString) && !ia(r = ra(t, a)) || aa(t = a.valueOf) && !ia(r = ra(t, a)) || e !== "string" && aa(t = a.toString) && !ia(r = ra(t, a))) return r;
|
|
93
|
+
throw new sh("Can't convert object to primitive value");
|
|
94
|
+
}, zo = { exports: {} }, Tn = _, uh = Object.defineProperty, Oi = function(a, e) {
|
|
95
95
|
try {
|
|
96
|
-
|
|
96
|
+
uh(Tn, a, { value: e, configurable: !0, writable: !0 });
|
|
97
97
|
} catch {
|
|
98
|
-
|
|
98
|
+
Tn[a] = e;
|
|
99
99
|
}
|
|
100
100
|
return e;
|
|
101
|
-
},
|
|
102
|
-
(
|
|
103
|
-
version: "3.
|
|
101
|
+
}, lh = _, hh = Oi, On = "__core-js_shared__", Sn = zo.exports = lh[On] || hh(On, {});
|
|
102
|
+
(Sn.versions || (Sn.versions = [])).push({
|
|
103
|
+
version: "3.45.1",
|
|
104
104
|
mode: "global",
|
|
105
|
-
copyright: "© 2014-
|
|
106
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
|
105
|
+
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
|
|
106
|
+
license: "https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",
|
|
107
107
|
source: "https://github.com/zloirock/core-js"
|
|
108
108
|
});
|
|
109
|
-
var
|
|
110
|
-
return
|
|
111
|
-
},
|
|
112
|
-
return
|
|
113
|
-
},
|
|
114
|
-
return
|
|
115
|
-
},
|
|
116
|
-
return "Symbol(" + (a === void 0 ? "" : a) + ")_" +
|
|
117
|
-
},
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
if (!
|
|
121
|
-
var t =
|
|
109
|
+
var Si = zo.exports, En = Si, Ei = function(a, e) {
|
|
110
|
+
return En[a] || (En[a] = e || {});
|
|
111
|
+
}, vh = ve, fh = Object, Sr = function(a) {
|
|
112
|
+
return fh(vh(a));
|
|
113
|
+
}, ch = L, gh = Sr, dh = ch({}.hasOwnProperty), fe = Object.hasOwn || function(e, t) {
|
|
114
|
+
return dh(gh(e), t);
|
|
115
|
+
}, ph = L, yh = 0, mh = Math.random(), bh = ph(1.1.toString), Ho = function(a) {
|
|
116
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + bh(++yh + mh, 36);
|
|
117
|
+
}, xh = _, Th = Ei, $n = fe, Oh = Ho, Sh = Fo, Eh = Uo, Ke = xh.Symbol, na = Th("wks"), $h = Eh ? Ke.for || Ke : Ke && Ke.withoutSetter || Oh, z = function(a) {
|
|
118
|
+
return $n(na, a) || (na[a] = Sh && $n(Ke, a) ? Ke[a] : $h("Symbol." + a)), na[a];
|
|
119
|
+
}, wh = Y, wn = ae, Cn = Go, Ch = st, Ah = oh, Ph = z, Rh = TypeError, Nh = Ph("toPrimitive"), Ih = function(a, e) {
|
|
120
|
+
if (!wn(a) || Cn(a)) return a;
|
|
121
|
+
var t = Ch(a, Nh), r;
|
|
122
122
|
if (t) {
|
|
123
|
-
if (e === void 0 && (e = "default"), r =
|
|
124
|
-
throw new
|
|
125
|
-
}
|
|
126
|
-
return e === void 0 && (e = "number"),
|
|
127
|
-
},
|
|
128
|
-
var e =
|
|
129
|
-
return
|
|
130
|
-
},
|
|
131
|
-
return
|
|
132
|
-
},
|
|
133
|
-
return Object.defineProperty(
|
|
123
|
+
if (e === void 0 && (e = "default"), r = wh(t, a, e), !wn(r) || Cn(r)) return r;
|
|
124
|
+
throw new Rh("Can't convert object to primitive value");
|
|
125
|
+
}
|
|
126
|
+
return e === void 0 && (e = "number"), Ah(a, e);
|
|
127
|
+
}, Mh = Ih, _h = Go, Yo = function(a) {
|
|
128
|
+
var e = Mh(a, "string");
|
|
129
|
+
return _h(e) ? e : e + "";
|
|
130
|
+
}, Vh = _, An = ae, Ya = Vh.document, Dh = An(Ya) && An(Ya.createElement), Er = function(a) {
|
|
131
|
+
return Dh ? Ya.createElement(a) : {};
|
|
132
|
+
}, Lh = he, kh = D, Bh = Er, Xo = !Lh && !kh(function() {
|
|
133
|
+
return Object.defineProperty(Bh("div"), "a", {
|
|
134
134
|
get: function() {
|
|
135
135
|
return 7;
|
|
136
136
|
}
|
|
137
137
|
}).a !== 7;
|
|
138
|
-
}),
|
|
139
|
-
Et.f =
|
|
140
|
-
if (e =
|
|
141
|
-
return
|
|
138
|
+
}), jh = he, Fh = Y, Uh = Mo, Gh = xi, zh = $t, Hh = Yo, Yh = fe, Xh = Xo, Pn = Object.getOwnPropertyDescriptor;
|
|
139
|
+
Et.f = jh ? Pn : function(e, t) {
|
|
140
|
+
if (e = zh(e), t = Hh(t), Xh) try {
|
|
141
|
+
return Pn(e, t);
|
|
142
142
|
} catch {
|
|
143
143
|
}
|
|
144
|
-
if (
|
|
144
|
+
if (Yh(e, t)) return Gh(!Fh(Uh.f, e, t), e[t]);
|
|
145
145
|
};
|
|
146
|
-
var Oe = {},
|
|
146
|
+
var Oe = {}, Wh = he, qh = D, Wo = Wh && qh(function() {
|
|
147
147
|
return Object.defineProperty(function() {
|
|
148
148
|
}, "prototype", {
|
|
149
149
|
value: 42,
|
|
150
150
|
writable: !1
|
|
151
151
|
}).prototype !== 42;
|
|
152
|
-
}),
|
|
153
|
-
if (
|
|
154
|
-
throw new
|
|
155
|
-
},
|
|
156
|
-
Oe.f =
|
|
157
|
-
if (Ut(e), t =
|
|
158
|
-
var i =
|
|
159
|
-
i && i[
|
|
160
|
-
configurable:
|
|
161
|
-
enumerable:
|
|
152
|
+
}), Qh = ae, Kh = String, Zh = TypeError, J = function(a) {
|
|
153
|
+
if (Qh(a)) return a;
|
|
154
|
+
throw new Zh(Kh(a) + " is not an object");
|
|
155
|
+
}, Jh = he, ev = Xo, tv = Wo, Ut = J, Rn = Yo, rv = TypeError, sa = Object.defineProperty, av = Object.getOwnPropertyDescriptor, oa = "enumerable", ua = "configurable", la = "writable";
|
|
156
|
+
Oe.f = Jh ? tv ? function(e, t, r) {
|
|
157
|
+
if (Ut(e), t = Rn(t), Ut(r), typeof e == "function" && t === "prototype" && "value" in r && la in r && !r[la]) {
|
|
158
|
+
var i = av(e, t);
|
|
159
|
+
i && i[la] && (e[t] = r.value, r = {
|
|
160
|
+
configurable: ua in r ? r[ua] : i[ua],
|
|
161
|
+
enumerable: oa in r ? r[oa] : i[oa],
|
|
162
162
|
writable: !1
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
return
|
|
166
|
-
} :
|
|
167
|
-
if (Ut(e), t =
|
|
168
|
-
return
|
|
165
|
+
return sa(e, t, r);
|
|
166
|
+
} : sa : function(e, t, r) {
|
|
167
|
+
if (Ut(e), t = Rn(t), Ut(r), ev) try {
|
|
168
|
+
return sa(e, t, r);
|
|
169
169
|
} catch {
|
|
170
170
|
}
|
|
171
|
-
if ("get" in r || "set" in r) throw new
|
|
171
|
+
if ("get" in r || "set" in r) throw new rv("Accessors not supported");
|
|
172
172
|
return "value" in r && (e[t] = r.value), e;
|
|
173
173
|
};
|
|
174
|
-
var
|
|
175
|
-
return
|
|
174
|
+
var iv = he, nv = Oe, sv = xi, Ct = iv ? function(a, e, t) {
|
|
175
|
+
return nv.f(a, e, sv(1, t));
|
|
176
176
|
} : function(a, e, t) {
|
|
177
177
|
return a[e] = t, a;
|
|
178
|
-
},
|
|
179
|
-
}).name === "something",
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
return ov(a);
|
|
178
|
+
}, qo = { exports: {} }, Xa = he, ov = fe, Qo = Function.prototype, uv = Xa && Object.getOwnPropertyDescriptor, Ko = ov(Qo, "name"), lv = Ko && (function() {
|
|
179
|
+
}).name === "something", hv = Ko && (!Xa || Xa && uv(Qo, "name").configurable), $r = {
|
|
180
|
+
PROPER: lv,
|
|
181
|
+
CONFIGURABLE: hv
|
|
182
|
+
}, vv = L, fv = B, Wa = Si, cv = vv(Function.toString);
|
|
183
|
+
fv(Wa.inspectSource) || (Wa.inspectSource = function(a) {
|
|
184
|
+
return cv(a);
|
|
186
185
|
});
|
|
187
|
-
var $i =
|
|
188
|
-
return
|
|
189
|
-
}, Ci = {},
|
|
190
|
-
return
|
|
191
|
-
},
|
|
186
|
+
var $i = Wa.inspectSource, gv = _, dv = B, Nn = gv.WeakMap, pv = dv(Nn) && /native code/.test(String(Nn)), yv = Ei, mv = Ho, In = yv("keys"), wi = function(a) {
|
|
187
|
+
return In[a] || (In[a] = mv(a));
|
|
188
|
+
}, Ci = {}, bv = pv, Zo = _, xv = ae, Tv = Ct, ha = fe, va = Si, Ov = wi, Sv = Ci, Mn = "Object already initialized", qa = Zo.TypeError, Ev = Zo.WeakMap, gr, Tt, dr, $v = function(a) {
|
|
189
|
+
return dr(a) ? Tt(a) : gr(a, {});
|
|
190
|
+
}, wv = function(a) {
|
|
192
191
|
return function(e) {
|
|
193
192
|
var t;
|
|
194
|
-
if (!
|
|
195
|
-
throw new
|
|
193
|
+
if (!xv(e) || (t = Tt(e)).type !== a)
|
|
194
|
+
throw new qa("Incompatible receiver, " + a + " required");
|
|
196
195
|
return t;
|
|
197
196
|
};
|
|
198
197
|
};
|
|
199
|
-
if (
|
|
200
|
-
var de =
|
|
201
|
-
de.get = de.get, de.has = de.has, de.set = de.set,
|
|
202
|
-
if (de.has(a)) throw new
|
|
198
|
+
if (bv || va.state) {
|
|
199
|
+
var de = va.state || (va.state = new Ev());
|
|
200
|
+
de.get = de.get, de.has = de.has, de.set = de.set, gr = function(a, e) {
|
|
201
|
+
if (de.has(a)) throw new qa(Mn);
|
|
203
202
|
return e.facade = a, de.set(a, e), e;
|
|
204
203
|
}, Tt = function(a) {
|
|
205
204
|
return de.get(a) || {};
|
|
206
|
-
},
|
|
205
|
+
}, dr = function(a) {
|
|
207
206
|
return de.has(a);
|
|
208
207
|
};
|
|
209
208
|
} else {
|
|
210
|
-
var Ye =
|
|
211
|
-
|
|
212
|
-
if (
|
|
213
|
-
return e.facade = a,
|
|
209
|
+
var Ye = Ov("state");
|
|
210
|
+
Sv[Ye] = !0, gr = function(a, e) {
|
|
211
|
+
if (ha(a, Ye)) throw new qa(Mn);
|
|
212
|
+
return e.facade = a, Tv(a, Ye, e), e;
|
|
214
213
|
}, Tt = function(a) {
|
|
215
|
-
return
|
|
216
|
-
},
|
|
217
|
-
return
|
|
214
|
+
return ha(a, Ye) ? a[Ye] : {};
|
|
215
|
+
}, dr = function(a) {
|
|
216
|
+
return ha(a, Ye);
|
|
218
217
|
};
|
|
219
218
|
}
|
|
220
|
-
var
|
|
221
|
-
set:
|
|
219
|
+
var wr = {
|
|
220
|
+
set: gr,
|
|
222
221
|
get: Tt,
|
|
223
|
-
has:
|
|
224
|
-
enforce:
|
|
225
|
-
getterFor:
|
|
226
|
-
}, Ai = L,
|
|
227
|
-
return
|
|
222
|
+
has: dr,
|
|
223
|
+
enforce: $v,
|
|
224
|
+
getterFor: wv
|
|
225
|
+
}, Ai = L, Cv = D, Av = B, Gt = fe, Qa = he, Pv = $r.CONFIGURABLE, Rv = $i, Jo = wr, Nv = Jo.enforce, Iv = Jo.get, _n = String, or = Object.defineProperty, Mv = Ai("".slice), _v = Ai("".replace), Vv = Ai([].join), Dv = Qa && !Cv(function() {
|
|
226
|
+
return or(function() {
|
|
228
227
|
}, "length", { value: 8 }).length !== 8;
|
|
229
|
-
}),
|
|
230
|
-
|
|
228
|
+
}), Lv = String(String).split("String"), kv = qo.exports = function(a, e, t) {
|
|
229
|
+
Mv(_n(e), 0, 7) === "Symbol(" && (e = "[" + _v(_n(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Gt(a, "name") || Pv && a.name !== e) && (Qa ? or(a, "name", { value: e, configurable: !0 }) : a.name = e), Dv && t && Gt(t, "arity") && a.length !== t.arity && or(a, "length", { value: t.arity });
|
|
231
230
|
try {
|
|
232
|
-
t && Gt(t, "constructor") && t.constructor ?
|
|
231
|
+
t && Gt(t, "constructor") && t.constructor ? Qa && or(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
|
233
232
|
} catch {
|
|
234
233
|
}
|
|
235
|
-
var r =
|
|
236
|
-
return Gt(r, "source") || (r.source =
|
|
234
|
+
var r = Nv(a);
|
|
235
|
+
return Gt(r, "source") || (r.source = Vv(Lv, typeof e == "string" ? e : "")), a;
|
|
237
236
|
};
|
|
238
|
-
Function.prototype.toString =
|
|
239
|
-
return
|
|
237
|
+
Function.prototype.toString = kv(function() {
|
|
238
|
+
return Av(this) && Iv(this).source || Rv(this);
|
|
240
239
|
}, "toString");
|
|
241
|
-
var
|
|
240
|
+
var eu = qo.exports, Bv = B, jv = Oe, Fv = eu, Uv = Oi, Ue = function(a, e, t, r) {
|
|
242
241
|
r || (r = {});
|
|
243
242
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
|
244
|
-
if (
|
|
245
|
-
i ? a[e] = t :
|
|
243
|
+
if (Bv(t) && Fv(t, n, r), r.global)
|
|
244
|
+
i ? a[e] = t : Uv(e, t);
|
|
246
245
|
else {
|
|
247
246
|
try {
|
|
248
247
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
|
249
248
|
} catch {
|
|
250
249
|
}
|
|
251
|
-
i ? a[e] = t :
|
|
250
|
+
i ? a[e] = t : jv.f(a, e, {
|
|
252
251
|
value: t,
|
|
253
252
|
enumerable: !1,
|
|
254
253
|
configurable: !r.nonConfigurable,
|
|
@@ -256,25 +255,25 @@ var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r
|
|
|
256
255
|
});
|
|
257
256
|
}
|
|
258
257
|
return a;
|
|
259
|
-
},
|
|
258
|
+
}, tu = {}, Gv = Math.ceil, zv = Math.floor, Hv = Math.trunc || function(e) {
|
|
260
259
|
var t = +e;
|
|
261
|
-
return (t > 0 ?
|
|
262
|
-
},
|
|
260
|
+
return (t > 0 ? zv : Gv)(t);
|
|
261
|
+
}, Yv = Hv, Cr = function(a) {
|
|
263
262
|
var e = +a;
|
|
264
|
-
return e !== e || e === 0 ? 0 :
|
|
265
|
-
},
|
|
266
|
-
var t =
|
|
267
|
-
return t < 0 ?
|
|
268
|
-
},
|
|
269
|
-
var e =
|
|
270
|
-
return e > 0 ?
|
|
271
|
-
},
|
|
272
|
-
return
|
|
273
|
-
},
|
|
263
|
+
return e !== e || e === 0 ? 0 : Yv(e);
|
|
264
|
+
}, Xv = Cr, Wv = Math.max, qv = Math.min, Qv = function(a, e) {
|
|
265
|
+
var t = Xv(a);
|
|
266
|
+
return t < 0 ? Wv(t + e, 0) : qv(t, e);
|
|
267
|
+
}, Kv = Cr, Zv = Math.min, ot = function(a) {
|
|
268
|
+
var e = Kv(a);
|
|
269
|
+
return e > 0 ? Zv(e, 9007199254740991) : 0;
|
|
270
|
+
}, Jv = ot, Pi = function(a) {
|
|
271
|
+
return Jv(a.length);
|
|
272
|
+
}, ef = $t, tf = Qv, rf = Pi, af = function(a) {
|
|
274
273
|
return function(e, t, r) {
|
|
275
|
-
var i =
|
|
274
|
+
var i = ef(e), n = rf(i);
|
|
276
275
|
if (n === 0) return !a && -1;
|
|
277
|
-
var o =
|
|
276
|
+
var o = tf(r, n), s;
|
|
278
277
|
if (a && t !== t) {
|
|
279
278
|
for (; n > o; )
|
|
280
279
|
if (s = i[o++], s !== s) return !0;
|
|
@@ -282,17 +281,14 @@ var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r
|
|
|
282
281
|
if ((a || o in i) && i[o] === t) return a || o || 0;
|
|
283
282
|
return !a && -1;
|
|
284
283
|
};
|
|
285
|
-
},
|
|
286
|
-
// `Array.prototype.includes` method
|
|
287
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
288
|
-
includes: In(!0),
|
|
284
|
+
}, ru = {
|
|
289
285
|
// `Array.prototype.indexOf` method
|
|
290
286
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
291
|
-
indexOf:
|
|
292
|
-
},
|
|
293
|
-
var t =
|
|
294
|
-
for (n in t) !
|
|
295
|
-
for (; e.length > r; )
|
|
287
|
+
indexOf: af(!1)
|
|
288
|
+
}, nf = L, fa = fe, sf = $t, of = ru.indexOf, uf = Ci, Vn = nf([].push), au = function(a, e) {
|
|
289
|
+
var t = sf(a), r = 0, i = [], n;
|
|
290
|
+
for (n in t) !fa(uf, n) && fa(t, n) && Vn(i, n);
|
|
291
|
+
for (; e.length > r; ) fa(t, n = e[r++]) && (~of(i, n) || Vn(i, n));
|
|
296
292
|
return i;
|
|
297
293
|
}, Ri = [
|
|
298
294
|
"constructor",
|
|
@@ -302,173 +298,176 @@ var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r
|
|
|
302
298
|
"toLocaleString",
|
|
303
299
|
"toString",
|
|
304
300
|
"valueOf"
|
|
305
|
-
],
|
|
306
|
-
|
|
307
|
-
return
|
|
301
|
+
], lf = au, hf = Ri, vf = hf.concat("length", "prototype");
|
|
302
|
+
tu.f = Object.getOwnPropertyNames || function(e) {
|
|
303
|
+
return lf(e, vf);
|
|
308
304
|
};
|
|
309
|
-
var
|
|
310
|
-
|
|
311
|
-
var
|
|
312
|
-
var t =
|
|
313
|
-
return r ?
|
|
314
|
-
},
|
|
315
|
-
for (var r =
|
|
305
|
+
var iu = {};
|
|
306
|
+
iu.f = Object.getOwnPropertySymbols;
|
|
307
|
+
var ff = Fe, cf = L, gf = tu, df = iu, pf = J, yf = cf([].concat), mf = ff("Reflect", "ownKeys") || function(e) {
|
|
308
|
+
var t = gf.f(pf(e)), r = df.f;
|
|
309
|
+
return r ? yf(t, r(e)) : t;
|
|
310
|
+
}, Dn = fe, bf = mf, xf = Et, Tf = Oe, Of = function(a, e, t) {
|
|
311
|
+
for (var r = bf(e), i = Tf.f, n = xf.f, o = 0; o < r.length; o++) {
|
|
316
312
|
var s = r[o];
|
|
317
|
-
!
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
var t =
|
|
321
|
-
return t ===
|
|
322
|
-
},
|
|
323
|
-
return String(a).replace(
|
|
324
|
-
},
|
|
313
|
+
!Dn(a, s) && !(t && Dn(t, s)) && i(a, s, n(e, s));
|
|
314
|
+
}
|
|
315
|
+
}, Sf = D, Ef = B, $f = /#|\.prototype\./, At = function(a, e) {
|
|
316
|
+
var t = Cf[wf(a)];
|
|
317
|
+
return t === Pf ? !0 : t === Af ? !1 : Ef(e) ? Sf(e) : !!e;
|
|
318
|
+
}, wf = At.normalize = function(a) {
|
|
319
|
+
return String(a).replace($f, ".").toLowerCase();
|
|
320
|
+
}, Cf = At.data = {}, Af = At.NATIVE = "N", Pf = At.POLYFILL = "P", nu = At, zt = _, Rf = Et.f, Nf = Ct, If = Ue, Mf = Oi, _f = Of, Vf = nu, ee = function(a, e) {
|
|
325
321
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
|
326
|
-
if (r ? o = zt : i ? o = zt[t] ||
|
|
327
|
-
if (l = e[s], a.dontCallGetSet ? (h =
|
|
322
|
+
if (r ? o = zt : i ? o = zt[t] || Mf(t, {}) : o = zt[t] && zt[t].prototype, o) for (s in e) {
|
|
323
|
+
if (l = e[s], a.dontCallGetSet ? (h = Rf(o, s), u = h && h.value) : u = o[s], n = Vf(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
328
324
|
if (typeof l == typeof u) continue;
|
|
329
|
-
|
|
325
|
+
_f(l, u);
|
|
330
326
|
}
|
|
331
|
-
(a.sham || u && u.sham) &&
|
|
327
|
+
(a.sham || u && u.sham) && Nf(l, "sham", !0), If(o, s, l, a);
|
|
332
328
|
}
|
|
333
|
-
},
|
|
329
|
+
}, vt = _, Df = wt, Lf = je, Ht = function(a) {
|
|
330
|
+
return Df.slice(0, a.length) === a;
|
|
331
|
+
}, su = function() {
|
|
332
|
+
return Ht("Bun/") ? "BUN" : Ht("Cloudflare-Workers") ? "CLOUDFLARE" : Ht("Deno/") ? "DENO" : Ht("Node.js/") ? "NODE" : vt.Bun && typeof Bun.version == "string" ? "BUN" : vt.Deno && typeof Deno.version == "object" ? "DENO" : Lf(vt.process) === "process" ? "NODE" : vt.window && vt.document ? "BROWSER" : "REST";
|
|
333
|
+
}(), kf = su, Ar = kf === "NODE", Bf = _, jf = Bf, Ff = L, Uf = Te, Gf = function(a, e, t) {
|
|
334
334
|
try {
|
|
335
|
-
return
|
|
335
|
+
return Ff(Uf(Object.getOwnPropertyDescriptor(a, e)[t]));
|
|
336
336
|
} catch {
|
|
337
337
|
}
|
|
338
|
-
},
|
|
339
|
-
return
|
|
340
|
-
},
|
|
341
|
-
if (
|
|
342
|
-
throw new
|
|
343
|
-
},
|
|
338
|
+
}, zf = ae, Hf = function(a) {
|
|
339
|
+
return zf(a) || a === null;
|
|
340
|
+
}, Yf = Hf, Xf = String, Wf = TypeError, qf = function(a) {
|
|
341
|
+
if (Yf(a)) return a;
|
|
342
|
+
throw new Wf("Can't set " + Xf(a) + " as a prototype");
|
|
343
|
+
}, Qf = Gf, Kf = ae, Zf = ve, Jf = qf, ou = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
344
344
|
var a = !1, e = {}, t;
|
|
345
345
|
try {
|
|
346
|
-
t =
|
|
346
|
+
t = Qf(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
|
|
347
347
|
} catch {
|
|
348
348
|
}
|
|
349
349
|
return function(i, n) {
|
|
350
|
-
return
|
|
350
|
+
return Zf(i), Jf(n), Kf(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
|
351
351
|
};
|
|
352
|
-
}() : void 0),
|
|
353
|
-
a && !t && (a = a.prototype), a && !
|
|
354
|
-
},
|
|
355
|
-
return t.get &&
|
|
356
|
-
},
|
|
357
|
-
var e =
|
|
358
|
-
|
|
352
|
+
}() : void 0), ec = Oe.f, tc = fe, rc = z, Ln = rc("toStringTag"), Pr = function(a, e, t) {
|
|
353
|
+
a && !t && (a = a.prototype), a && !tc(a, Ln) && ec(a, Ln, { configurable: !0, value: e });
|
|
354
|
+
}, kn = eu, ac = Oe, ic = function(a, e, t) {
|
|
355
|
+
return t.get && kn(t.get, e, { getter: !0 }), t.set && kn(t.set, e, { setter: !0 }), ac.f(a, e, t);
|
|
356
|
+
}, nc = Fe, sc = ic, oc = z, uc = he, Bn = oc("species"), lc = function(a) {
|
|
357
|
+
var e = nc(a);
|
|
358
|
+
uc && e && !e[Bn] && sc(e, Bn, {
|
|
359
359
|
configurable: !0,
|
|
360
360
|
get: function() {
|
|
361
361
|
return this;
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
|
-
},
|
|
365
|
-
if (
|
|
366
|
-
throw new
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
var
|
|
364
|
+
}, hc = Tr, vc = TypeError, fc = function(a, e) {
|
|
365
|
+
if (hc(e, a)) return a;
|
|
366
|
+
throw new vc("Incorrect invocation");
|
|
367
|
+
}, cc = z, gc = cc("toStringTag"), uu = {};
|
|
368
|
+
uu[gc] = "z";
|
|
369
|
+
var dc = String(uu) === "[object z]", pc = dc, yc = B, ur = je, mc = z, bc = mc("toStringTag"), xc = Object, Tc = ur(/* @__PURE__ */ function() {
|
|
370
370
|
return arguments;
|
|
371
|
-
}()) === "Arguments",
|
|
371
|
+
}()) === "Arguments", Oc = function(a, e) {
|
|
372
372
|
try {
|
|
373
373
|
return a[e];
|
|
374
374
|
} catch {
|
|
375
375
|
}
|
|
376
|
-
}, Ni =
|
|
376
|
+
}, Ni = pc ? ur : function(a) {
|
|
377
377
|
var e, t, r;
|
|
378
|
-
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t =
|
|
379
|
-
},
|
|
380
|
-
},
|
|
381
|
-
if (!
|
|
378
|
+
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = Oc(e = xc(a), bc)) == "string" ? t : Tc ? ur(e) : (r = ur(e)) === "Object" && yc(e.callee) ? "Arguments" : r;
|
|
379
|
+
}, Sc = L, Ec = D, lu = B, $c = Ni, wc = Fe, Cc = $i, hu = function() {
|
|
380
|
+
}, vu = wc("Reflect", "construct"), Ii = /^\s*(?:class|function)\b/, Ac = Sc(Ii.exec), Pc = !Ii.test(hu), ft = function(e) {
|
|
381
|
+
if (!lu(e)) return !1;
|
|
382
382
|
try {
|
|
383
|
-
return
|
|
383
|
+
return vu(hu, [], e), !0;
|
|
384
384
|
} catch {
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
|
-
},
|
|
388
|
-
if (!
|
|
389
|
-
switch (
|
|
387
|
+
}, fu = function(e) {
|
|
388
|
+
if (!lu(e)) return !1;
|
|
389
|
+
switch ($c(e)) {
|
|
390
390
|
case "AsyncFunction":
|
|
391
391
|
case "GeneratorFunction":
|
|
392
392
|
case "AsyncGeneratorFunction":
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
395
|
try {
|
|
396
|
-
return
|
|
396
|
+
return Pc || !!Ac(Ii, Cc(e));
|
|
397
397
|
} catch {
|
|
398
398
|
return !0;
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
|
-
|
|
402
|
-
var
|
|
401
|
+
fu.sham = !0;
|
|
402
|
+
var Rc = !vu || Ec(function() {
|
|
403
403
|
var a;
|
|
404
404
|
return ft(ft.call) || !ft(Object) || !ft(function() {
|
|
405
405
|
a = !0;
|
|
406
406
|
}) || a;
|
|
407
|
-
}) ?
|
|
408
|
-
if (
|
|
409
|
-
throw new
|
|
410
|
-
},
|
|
411
|
-
var t =
|
|
412
|
-
return t === void 0 ||
|
|
413
|
-
},
|
|
414
|
-
return
|
|
415
|
-
}),
|
|
416
|
-
if (
|
|
417
|
-
},
|
|
418
|
-
return
|
|
407
|
+
}) ? fu : ft, Nc = Rc, Ic = Or, Mc = TypeError, _c = function(a) {
|
|
408
|
+
if (Nc(a)) return a;
|
|
409
|
+
throw new Mc(Ic(a) + " is not a constructor");
|
|
410
|
+
}, jn = J, Vc = _c, Dc = xr, Lc = z, kc = Lc("species"), cu = function(a, e) {
|
|
411
|
+
var t = jn(a).constructor, r;
|
|
412
|
+
return t === void 0 || Dc(r = jn(t)[kc]) ? e : Vc(r);
|
|
413
|
+
}, Bc = br, gu = Function.prototype, Fn = gu.apply, Un = gu.call, du = typeof Reflect == "object" && Reflect.apply || (Bc ? Un.bind(Fn) : function() {
|
|
414
|
+
return Un.apply(Fn, arguments);
|
|
415
|
+
}), jc = je, Fc = L, Rr = function(a) {
|
|
416
|
+
if (jc(a) === "Function") return Fc(a);
|
|
417
|
+
}, Gn = Rr, Uc = Te, Gc = br, zc = Gn(Gn.bind), Mi = function(a, e) {
|
|
418
|
+
return Uc(a), e === void 0 ? a : Gc ? zc(a, e) : function() {
|
|
419
419
|
return a.apply(e, arguments);
|
|
420
420
|
};
|
|
421
|
-
},
|
|
422
|
-
if (a < e) throw new
|
|
421
|
+
}, Hc = Fe, pu = Hc("document", "documentElement"), Yc = L, Xc = Yc([].slice), Wc = TypeError, qc = function(a, e) {
|
|
422
|
+
if (a < e) throw new Wc("Not enough arguments");
|
|
423
423
|
return a;
|
|
424
|
-
},
|
|
425
|
-
|
|
426
|
-
Ot =
|
|
424
|
+
}, Qc = wt, yu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Qc), ie = _, Kc = du, Zc = Mi, zn = B, Jc = fe, mu = D, Hn = pu, eg = Xc, Yn = Er, tg = qc, rg = yu, ag = Ar, Ka = ie.setImmediate, Xn = ie.clearImmediate, ig = ie.process, ca = ie.Dispatch, ng = ie.Function, Wn = ie.MessageChannel, sg = ie.String, ga = 0, bt = {}, qn = "onreadystatechange", Ot, Ie, da, pa;
|
|
425
|
+
mu(function() {
|
|
426
|
+
Ot = ie.location;
|
|
427
427
|
});
|
|
428
428
|
var _i = function(a) {
|
|
429
|
-
if (
|
|
429
|
+
if (Jc(bt, a)) {
|
|
430
430
|
var e = bt[a];
|
|
431
431
|
delete bt[a], e();
|
|
432
432
|
}
|
|
433
|
-
},
|
|
433
|
+
}, ya = function(a) {
|
|
434
434
|
return function() {
|
|
435
435
|
_i(a);
|
|
436
436
|
};
|
|
437
|
-
},
|
|
437
|
+
}, Qn = function(a) {
|
|
438
438
|
_i(a.data);
|
|
439
|
-
},
|
|
440
|
-
|
|
439
|
+
}, Kn = function(a) {
|
|
440
|
+
ie.postMessage(sg(a), Ot.protocol + "//" + Ot.host);
|
|
441
441
|
};
|
|
442
|
-
(!
|
|
443
|
-
|
|
444
|
-
var t =
|
|
445
|
-
return bt[++
|
|
446
|
-
|
|
447
|
-
}, Ie(
|
|
448
|
-
},
|
|
442
|
+
(!Ka || !Xn) && (Ka = function(e) {
|
|
443
|
+
tg(arguments.length, 1);
|
|
444
|
+
var t = zn(e) ? e : ng(e), r = eg(arguments, 1);
|
|
445
|
+
return bt[++ga] = function() {
|
|
446
|
+
Kc(t, void 0, r);
|
|
447
|
+
}, Ie(ga), ga;
|
|
448
|
+
}, Xn = function(e) {
|
|
449
449
|
delete bt[e];
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
} :
|
|
453
|
-
|
|
454
|
-
} :
|
|
455
|
-
|
|
456
|
-
|
|
450
|
+
}, ag ? Ie = function(a) {
|
|
451
|
+
ig.nextTick(ya(a));
|
|
452
|
+
} : ca && ca.now ? Ie = function(a) {
|
|
453
|
+
ca.now(ya(a));
|
|
454
|
+
} : Wn && !rg ? (da = new Wn(), pa = da.port2, da.port1.onmessage = Qn, Ie = Zc(pa.postMessage, pa)) : ie.addEventListener && zn(ie.postMessage) && !ie.importScripts && Ot && Ot.protocol !== "file:" && !mu(Kn) ? (Ie = Kn, ie.addEventListener("message", Qn, !1)) : qn in Yn("script") ? Ie = function(a) {
|
|
455
|
+
Hn.appendChild(Yn("script"))[qn] = function() {
|
|
456
|
+
Hn.removeChild(this), _i(a);
|
|
457
457
|
};
|
|
458
458
|
} : Ie = function(a) {
|
|
459
|
-
setTimeout(
|
|
459
|
+
setTimeout(ya(a), 0);
|
|
460
460
|
});
|
|
461
|
-
var
|
|
462
|
-
set:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
var e = Zc(qn, a);
|
|
461
|
+
var bu = {
|
|
462
|
+
set: Ka
|
|
463
|
+
}, Zn = _, og = he, ug = Object.getOwnPropertyDescriptor, lg = function(a) {
|
|
464
|
+
if (!og) return Zn[a];
|
|
465
|
+
var e = ug(Zn, a);
|
|
467
466
|
return e && e.value;
|
|
468
|
-
},
|
|
467
|
+
}, xu = function() {
|
|
469
468
|
this.head = null, this.tail = null;
|
|
470
469
|
};
|
|
471
|
-
|
|
470
|
+
xu.prototype = {
|
|
472
471
|
add: function(a) {
|
|
473
472
|
var e = { item: a, next: null }, t = this.tail;
|
|
474
473
|
t ? t.next = e : this.head = e, this.tail = e;
|
|
@@ -481,30 +480,30 @@ du.prototype = {
|
|
|
481
480
|
}
|
|
482
481
|
}
|
|
483
482
|
};
|
|
484
|
-
var
|
|
485
|
-
if (!
|
|
486
|
-
var
|
|
483
|
+
var Tu = xu, hg = wt, vg = /ipad|iphone|ipod/i.test(hg) && typeof Pebble < "u", fg = wt, cg = /web0s(?!.*chrome)/i.test(fg), at = _, gg = lg, Jn = Mi, ma = bu.set, dg = Tu, pg = yu, yg = vg, mg = cg, ba = Ar, es = at.MutationObserver || at.WebKitMutationObserver, ts = at.document, rs = at.process, Yt = at.Promise, Za = gg("queueMicrotask"), Xe, xa, Ta, Xt, as;
|
|
484
|
+
if (!Za) {
|
|
485
|
+
var Wt = new dg(), qt = function() {
|
|
487
486
|
var a, e;
|
|
488
|
-
for (
|
|
487
|
+
for (ba && (a = rs.domain) && a.exit(); e = Wt.get(); ) try {
|
|
489
488
|
e();
|
|
490
489
|
} catch (t) {
|
|
491
|
-
throw
|
|
490
|
+
throw Wt.head && Xe(), t;
|
|
492
491
|
}
|
|
493
492
|
a && a.enter();
|
|
494
493
|
};
|
|
495
|
-
!
|
|
496
|
-
|
|
497
|
-
}) : !
|
|
498
|
-
|
|
499
|
-
}) :
|
|
500
|
-
|
|
501
|
-
} : (
|
|
502
|
-
|
|
503
|
-
}),
|
|
504
|
-
|
|
494
|
+
!pg && !ba && !mg && es && ts ? (xa = !0, Ta = ts.createTextNode(""), new es(qt).observe(Ta, { characterData: !0 }), Xe = function() {
|
|
495
|
+
Ta.data = xa = !xa;
|
|
496
|
+
}) : !yg && Yt && Yt.resolve ? (Xt = Yt.resolve(void 0), Xt.constructor = Yt, as = Jn(Xt.then, Xt), Xe = function() {
|
|
497
|
+
as(qt);
|
|
498
|
+
}) : ba ? Xe = function() {
|
|
499
|
+
rs.nextTick(qt);
|
|
500
|
+
} : (ma = Jn(ma, at), Xe = function() {
|
|
501
|
+
ma(qt);
|
|
502
|
+
}), Za = function(a) {
|
|
503
|
+
Wt.head || Xe(), Wt.add(a);
|
|
505
504
|
};
|
|
506
505
|
}
|
|
507
|
-
var
|
|
506
|
+
var bg = Za, xg = function(a, e) {
|
|
508
507
|
try {
|
|
509
508
|
arguments.length === 1 ? console.error(a) : console.error(a, e);
|
|
510
509
|
} catch {
|
|
@@ -515,12 +514,12 @@ var lg = Ka, hg = function(a, e) {
|
|
|
515
514
|
} catch (e) {
|
|
516
515
|
return { error: !0, value: e };
|
|
517
516
|
}
|
|
518
|
-
},
|
|
517
|
+
}, Tg = _, Nr = Tg.Promise, Og = _, xt = Nr, Sg = B, Eg = nu, $g = $i, wg = z, is = su, Oa = Ti;
|
|
519
518
|
xt && xt.prototype;
|
|
520
|
-
var
|
|
521
|
-
var a =
|
|
522
|
-
if (!e &&
|
|
523
|
-
if (!
|
|
519
|
+
var Cg = wg("species"), Ja = !1, Ou = Sg(Og.PromiseRejectionEvent), Ag = Eg("Promise", function() {
|
|
520
|
+
var a = $g(xt), e = a !== String(xt);
|
|
521
|
+
if (!e && Oa === 66) return !0;
|
|
522
|
+
if (!Oa || Oa < 51 || !/native code/.test(a)) {
|
|
524
523
|
var t = new xt(function(n) {
|
|
525
524
|
n(1);
|
|
526
525
|
}), r = function(n) {
|
|
@@ -528,215 +527,216 @@ var Og = bg("species"), Za = !1, mu = pg(dg.PromiseRejectionEvent), Sg = yg("Pro
|
|
|
528
527
|
}, function() {
|
|
529
528
|
});
|
|
530
529
|
}, i = t.constructor = {};
|
|
531
|
-
if (i[
|
|
532
|
-
}) instanceof r, !
|
|
530
|
+
if (i[Cg] = r, Ja = t.then(function() {
|
|
531
|
+
}) instanceof r, !Ja) return !0;
|
|
533
532
|
}
|
|
534
|
-
return !e && (
|
|
533
|
+
return !e && (is === "BROWSER" || is === "DENO") && !Ou;
|
|
535
534
|
}), Pt = {
|
|
536
|
-
CONSTRUCTOR:
|
|
537
|
-
REJECTION_EVENT:
|
|
538
|
-
SUBCLASSING:
|
|
539
|
-
},
|
|
535
|
+
CONSTRUCTOR: Ag,
|
|
536
|
+
REJECTION_EVENT: Ou,
|
|
537
|
+
SUBCLASSING: Ja
|
|
538
|
+
}, ut = {}, ns = Te, Pg = TypeError, Rg = function(a) {
|
|
540
539
|
var e, t;
|
|
541
540
|
this.promise = new a(function(r, i) {
|
|
542
|
-
if (e !== void 0 || t !== void 0) throw new
|
|
541
|
+
if (e !== void 0 || t !== void 0) throw new Pg("Bad Promise constructor");
|
|
543
542
|
e = r, t = i;
|
|
544
|
-
}), this.resolve =
|
|
543
|
+
}), this.resolve = ns(e), this.reject = ns(t);
|
|
545
544
|
};
|
|
546
|
-
|
|
547
|
-
return new
|
|
545
|
+
ut.f = function(a) {
|
|
546
|
+
return new Rg(a);
|
|
548
547
|
};
|
|
549
|
-
var
|
|
548
|
+
var Ng = ee, pr = Ar, we = _, Ig = jf, it = Y, ss = Ue, os = ou, Mg = Pr, _g = lc, Vg = Te, lr = B, Dg = ae, Lg = fc, kg = cu, Su = bu.set, Di = bg, Bg = xg, jg = Vi, Fg = Tu, Eu = wr, yr = Nr, Li = Pt, $u = ut, Ir = "Promise", wu = Li.CONSTRUCTOR, Ug = Li.REJECTION_EVENT, Gg = Li.SUBCLASSING, Sa = Eu.getterFor(Ir), zg = Eu.set, qe = yr && yr.prototype, Le = yr, Qt = qe, Cu = we.TypeError, ei = we.document, ki = we.process, ti = $u.f, Hg = ti, Yg = !!(ei && ei.createEvent && we.dispatchEvent), Au = "unhandledrejection", Xg = "rejectionhandled", us = 0, Pu = 1, Wg = 2, Bi = 1, Ru = 2, Kt, ls, Nu, hs, Iu = function(a) {
|
|
550
549
|
var e;
|
|
551
|
-
return
|
|
552
|
-
},
|
|
553
|
-
var t = e.value, r = e.state ===
|
|
550
|
+
return Dg(a) && lr(e = a.then) ? e : !1;
|
|
551
|
+
}, Mu = function(a, e) {
|
|
552
|
+
var t = e.value, r = e.state === Pu, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
|
554
553
|
try {
|
|
555
|
-
i ? (r || (e.rejection ===
|
|
554
|
+
i ? (r || (e.rejection === Ru && Qg(e), e.rejection = Bi), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(new Cu("Promise-chain cycle")) : (l = Iu(u)) ? it(l, u, n, o) : n(u)) : o(t);
|
|
556
555
|
} catch (f) {
|
|
557
556
|
s && !h && s.exit(), o(f);
|
|
558
557
|
}
|
|
559
|
-
},
|
|
558
|
+
}, _u = function(a, e) {
|
|
560
559
|
a.notified || (a.notified = !0, Di(function() {
|
|
561
560
|
for (var t = a.reactions, r; r = t.get(); )
|
|
562
|
-
|
|
563
|
-
a.notified = !1, e && !a.rejection &&
|
|
561
|
+
Mu(r, a);
|
|
562
|
+
a.notified = !1, e && !a.rejection && qg(a);
|
|
564
563
|
}));
|
|
565
|
-
},
|
|
564
|
+
}, Vu = function(a, e, t) {
|
|
566
565
|
var r, i;
|
|
567
|
-
|
|
568
|
-
},
|
|
569
|
-
|
|
570
|
-
var e = a.facade, t = a.value, r =
|
|
571
|
-
if (r && (i =
|
|
572
|
-
|
|
573
|
-
}), a.rejection =
|
|
566
|
+
Yg ? (r = ei.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), we.dispatchEvent(r)) : r = { promise: e, reason: t }, !Ug && (i = we["on" + a]) ? i(r) : a === Au && Bg("Unhandled promise rejection", t);
|
|
567
|
+
}, qg = function(a) {
|
|
568
|
+
it(Su, we, function() {
|
|
569
|
+
var e = a.facade, t = a.value, r = vs(a), i;
|
|
570
|
+
if (r && (i = jg(function() {
|
|
571
|
+
pr ? ki.emit("unhandledRejection", t, e) : Vu(Au, e, t);
|
|
572
|
+
}), a.rejection = pr || vs(a) ? Ru : Bi, i.error))
|
|
574
573
|
throw i.value;
|
|
575
574
|
});
|
|
576
|
-
},
|
|
575
|
+
}, vs = function(a) {
|
|
577
576
|
return a.rejection !== Bi && !a.parent;
|
|
578
|
-
},
|
|
579
|
-
|
|
577
|
+
}, Qg = function(a) {
|
|
578
|
+
it(Su, we, function() {
|
|
580
579
|
var e = a.facade;
|
|
581
|
-
|
|
580
|
+
pr ? ki.emit("rejectionHandled", e) : Vu(Xg, e, a.value);
|
|
582
581
|
});
|
|
583
|
-
},
|
|
582
|
+
}, Ze = function(a, e, t) {
|
|
584
583
|
return function(r) {
|
|
585
584
|
a(e, r, t);
|
|
586
585
|
};
|
|
587
|
-
},
|
|
588
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
|
589
|
-
},
|
|
586
|
+
}, et = function(a, e, t) {
|
|
587
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Wg, _u(a, !0));
|
|
588
|
+
}, ri = function(a, e, t) {
|
|
590
589
|
if (!a.done) {
|
|
591
590
|
a.done = !0, t && (a = t);
|
|
592
591
|
try {
|
|
593
|
-
if (a.facade === e) throw new
|
|
594
|
-
var r =
|
|
592
|
+
if (a.facade === e) throw new Cu("Promise can't be resolved itself");
|
|
593
|
+
var r = Iu(e);
|
|
595
594
|
r ? Di(function() {
|
|
596
595
|
var i = { done: !1 };
|
|
597
596
|
try {
|
|
598
|
-
|
|
597
|
+
it(
|
|
599
598
|
r,
|
|
600
599
|
e,
|
|
601
|
-
|
|
602
|
-
|
|
600
|
+
Ze(ri, i, a),
|
|
601
|
+
Ze(et, i, a)
|
|
603
602
|
);
|
|
604
603
|
} catch (n) {
|
|
605
|
-
|
|
604
|
+
et(i, n, a);
|
|
606
605
|
}
|
|
607
|
-
}) : (a.value = e, a.state =
|
|
606
|
+
}) : (a.value = e, a.state = Pu, _u(a, !1));
|
|
608
607
|
} catch (i) {
|
|
609
|
-
|
|
608
|
+
et({ done: !1 }, i, a);
|
|
610
609
|
}
|
|
611
610
|
}
|
|
612
611
|
};
|
|
613
|
-
if (
|
|
614
|
-
|
|
615
|
-
var t =
|
|
612
|
+
if (wu && (Le = function(e) {
|
|
613
|
+
Lg(this, Qt), Vg(e), it(Kt, this);
|
|
614
|
+
var t = Sa(this);
|
|
616
615
|
try {
|
|
617
|
-
e(
|
|
616
|
+
e(Ze(ri, t), Ze(et, t));
|
|
618
617
|
} catch (r) {
|
|
619
|
-
|
|
618
|
+
et(t, r);
|
|
620
619
|
}
|
|
621
|
-
},
|
|
622
|
-
|
|
623
|
-
type:
|
|
620
|
+
}, Qt = Le.prototype, Kt = function(e) {
|
|
621
|
+
zg(this, {
|
|
622
|
+
type: Ir,
|
|
624
623
|
done: !1,
|
|
625
624
|
notified: !1,
|
|
626
625
|
parent: !1,
|
|
627
|
-
reactions: new
|
|
626
|
+
reactions: new Fg(),
|
|
628
627
|
rejection: !1,
|
|
629
|
-
state:
|
|
630
|
-
value:
|
|
628
|
+
state: us,
|
|
629
|
+
value: null
|
|
631
630
|
});
|
|
632
|
-
},
|
|
633
|
-
var r =
|
|
634
|
-
return r.parent = !0, i.ok =
|
|
635
|
-
|
|
631
|
+
}, Kt.prototype = ss(Qt, "then", function(e, t) {
|
|
632
|
+
var r = Sa(this), i = ti(kg(this, Le));
|
|
633
|
+
return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = pr ? ki.domain : void 0, r.state === us ? r.reactions.add(i) : Di(function() {
|
|
634
|
+
Mu(i, r);
|
|
636
635
|
}), i.promise;
|
|
637
|
-
}),
|
|
638
|
-
var a = new
|
|
639
|
-
this.promise = a, this.resolve =
|
|
640
|
-
},
|
|
641
|
-
return a ===
|
|
642
|
-
},
|
|
643
|
-
|
|
636
|
+
}), ls = function() {
|
|
637
|
+
var a = new Kt(), e = Sa(a);
|
|
638
|
+
this.promise = a, this.resolve = Ze(ri, e), this.reject = Ze(et, e);
|
|
639
|
+
}, $u.f = ti = function(a) {
|
|
640
|
+
return a === Le || a === Nu ? new ls(a) : Hg(a);
|
|
641
|
+
}, lr(yr) && qe !== Object.prototype)) {
|
|
642
|
+
hs = qe.then, Gg || ss(qe, "then", function(e, t) {
|
|
644
643
|
var r = this;
|
|
645
|
-
return new
|
|
646
|
-
|
|
644
|
+
return new Le(function(i, n) {
|
|
645
|
+
it(hs, r, i, n);
|
|
647
646
|
}).then(e, t);
|
|
648
647
|
}, { unsafe: !0 });
|
|
649
648
|
try {
|
|
650
|
-
delete
|
|
649
|
+
delete qe.constructor;
|
|
651
650
|
} catch {
|
|
652
651
|
}
|
|
653
|
-
|
|
652
|
+
os && os(qe, Qt);
|
|
654
653
|
}
|
|
655
|
-
|
|
656
|
-
Promise:
|
|
654
|
+
Ng({ global: !0, constructor: !0, wrap: !0, forced: wu }, {
|
|
655
|
+
Promise: Le
|
|
657
656
|
});
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
657
|
+
Nu = Ig.Promise;
|
|
658
|
+
Mg(Le, Ir, !1);
|
|
659
|
+
_g(Ir);
|
|
660
|
+
var Rt = {}, Kg = z, Zg = Rt, Jg = Kg("iterator"), ed = Array.prototype, td = function(a) {
|
|
661
|
+
return a !== void 0 && (Zg.Array === a || ed[Jg] === a);
|
|
662
|
+
}, rd = Ni, fs = st, ad = xr, id = Rt, nd = z, sd = nd("iterator"), Du = function(a) {
|
|
663
|
+
if (!ad(a)) return fs(a, sd) || fs(a, "@@iterator") || id[rd(a)];
|
|
664
|
+
}, od = Y, ud = Te, ld = J, hd = Or, vd = Du, fd = TypeError, cd = function(a, e) {
|
|
665
|
+
var t = arguments.length < 2 ? vd(a) : e;
|
|
666
|
+
if (ud(t)) return ld(od(t, a));
|
|
667
|
+
throw new fd(hd(a) + " is not iterable");
|
|
668
|
+
}, gd = Y, cs = J, dd = st, pd = function(a, e, t) {
|
|
669
669
|
var r, i;
|
|
670
|
-
|
|
670
|
+
cs(a);
|
|
671
671
|
try {
|
|
672
|
-
if (r =
|
|
672
|
+
if (r = dd(a, "return"), !r) {
|
|
673
673
|
if (e === "throw") throw t;
|
|
674
674
|
return t;
|
|
675
675
|
}
|
|
676
|
-
r =
|
|
676
|
+
r = gd(r, a);
|
|
677
677
|
} catch (n) {
|
|
678
678
|
i = !0, r = n;
|
|
679
679
|
}
|
|
680
680
|
if (e === "throw") throw t;
|
|
681
681
|
if (i) throw r;
|
|
682
|
-
return
|
|
683
|
-
},
|
|
682
|
+
return cs(r), t;
|
|
683
|
+
}, yd = Mi, md = Y, bd = J, xd = Or, Td = td, Od = Pi, gs = Tr, Sd = cd, Ed = Du, ds = pd, $d = TypeError, hr = function(a, e) {
|
|
684
684
|
this.stopped = a, this.result = e;
|
|
685
|
-
},
|
|
686
|
-
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 =
|
|
687
|
-
return l &&
|
|
685
|
+
}, ps = hr.prototype, Lu = function(a, e, t) {
|
|
686
|
+
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 = yd(e, r), l, h, f, c, v, g, d, p = function(x) {
|
|
687
|
+
return l && ds(l, "normal"), new hr(!0, x);
|
|
688
688
|
}, y = function(x) {
|
|
689
|
-
return i ? (
|
|
689
|
+
return i ? (bd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
|
|
690
690
|
};
|
|
691
691
|
if (n)
|
|
692
692
|
l = a.iterator;
|
|
693
693
|
else if (o)
|
|
694
694
|
l = a;
|
|
695
695
|
else {
|
|
696
|
-
if (h =
|
|
697
|
-
if (
|
|
698
|
-
for (f = 0, c =
|
|
699
|
-
if (v = y(a[f]), v &&
|
|
700
|
-
return new
|
|
696
|
+
if (h = Ed(a), !h) throw new $d(xd(a) + " is not iterable");
|
|
697
|
+
if (Td(h)) {
|
|
698
|
+
for (f = 0, c = Od(a); c > f; f++)
|
|
699
|
+
if (v = y(a[f]), v && gs(ps, v)) return v;
|
|
700
|
+
return new hr(!1);
|
|
701
701
|
}
|
|
702
|
-
l =
|
|
702
|
+
l = Sd(a, h);
|
|
703
703
|
}
|
|
704
|
-
for (
|
|
704
|
+
for (g = n ? a.next : l.next; !(d = md(g, l)).done; ) {
|
|
705
705
|
try {
|
|
706
|
-
v = y(
|
|
706
|
+
v = y(d.value);
|
|
707
707
|
} catch (x) {
|
|
708
|
-
|
|
708
|
+
ds(l, "throw", x);
|
|
709
709
|
}
|
|
710
|
-
if (typeof v == "object" && v &&
|
|
710
|
+
if (typeof v == "object" && v && gs(ps, v)) return v;
|
|
711
711
|
}
|
|
712
|
-
return new
|
|
713
|
-
},
|
|
712
|
+
return new hr(!1);
|
|
713
|
+
}, wd = z, ku = wd("iterator"), Bu = !1;
|
|
714
714
|
try {
|
|
715
|
-
var
|
|
715
|
+
var Cd = 0, ys = {
|
|
716
716
|
next: function() {
|
|
717
|
-
return { done: !!
|
|
717
|
+
return { done: !!Cd++ };
|
|
718
718
|
},
|
|
719
719
|
return: function() {
|
|
720
|
-
|
|
720
|
+
Bu = !0;
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
|
-
|
|
723
|
+
ys[ku] = function() {
|
|
724
724
|
return this;
|
|
725
|
-
}, Array.from(
|
|
725
|
+
}, Array.from(ys, function() {
|
|
726
726
|
throw 2;
|
|
727
727
|
});
|
|
728
728
|
} catch {
|
|
729
729
|
}
|
|
730
|
-
var
|
|
730
|
+
var Ad = function(a, e) {
|
|
731
731
|
try {
|
|
732
|
-
if (!e && !
|
|
732
|
+
if (!e && !Bu) return !1;
|
|
733
733
|
} catch {
|
|
734
734
|
return !1;
|
|
735
735
|
}
|
|
736
736
|
var t = !1;
|
|
737
737
|
try {
|
|
738
738
|
var r = {};
|
|
739
|
-
r[
|
|
739
|
+
r[ku] = function() {
|
|
740
740
|
return {
|
|
741
741
|
next: function() {
|
|
742
742
|
return { done: t = !0 };
|
|
@@ -746,65 +746,65 @@ var Sd = function(a, e) {
|
|
|
746
746
|
} catch {
|
|
747
747
|
}
|
|
748
748
|
return t;
|
|
749
|
-
},
|
|
750
|
-
|
|
749
|
+
}, Pd = Nr, Rd = Ad, Nd = Pt.CONSTRUCTOR, ju = Nd || !Rd(function(a) {
|
|
750
|
+
Pd.all(a).then(void 0, function() {
|
|
751
751
|
});
|
|
752
|
-
}),
|
|
753
|
-
|
|
752
|
+
}), Id = ee, Md = Y, _d = Te, Vd = ut, Dd = Vi, Ld = Lu, kd = ju;
|
|
753
|
+
Id({ target: "Promise", stat: !0, forced: kd }, {
|
|
754
754
|
all: function(e) {
|
|
755
|
-
var t = this, r =
|
|
756
|
-
var s =
|
|
757
|
-
|
|
755
|
+
var t = this, r = Vd.f(t), i = r.resolve, n = r.reject, o = Dd(function() {
|
|
756
|
+
var s = _d(t.resolve), u = [], l = 0, h = 1;
|
|
757
|
+
Ld(e, function(f) {
|
|
758
758
|
var c = l++, v = !1;
|
|
759
|
-
h++,
|
|
760
|
-
v || (v = !0, u[c] =
|
|
759
|
+
h++, Md(s, t, f).then(function(g) {
|
|
760
|
+
v || (v = !0, u[c] = g, --h || i(u));
|
|
761
761
|
}, n);
|
|
762
762
|
}), --h || i(u);
|
|
763
763
|
});
|
|
764
764
|
return o.error && n(o.value), r.promise;
|
|
765
765
|
}
|
|
766
766
|
});
|
|
767
|
-
var
|
|
768
|
-
|
|
767
|
+
var Bd = ee, jd = Pt.CONSTRUCTOR, ai = Nr, Fd = Fe, Ud = B, Gd = Ue, ms = ai && ai.prototype;
|
|
768
|
+
Bd({ target: "Promise", proto: !0, forced: jd, real: !0 }, {
|
|
769
769
|
catch: function(a) {
|
|
770
770
|
return this.then(void 0, a);
|
|
771
771
|
}
|
|
772
772
|
});
|
|
773
|
-
if (
|
|
774
|
-
var
|
|
775
|
-
|
|
773
|
+
if (Ud(ai)) {
|
|
774
|
+
var bs = Fd("Promise").prototype.catch;
|
|
775
|
+
ms.catch !== bs && Gd(ms, "catch", bs, { unsafe: !0 });
|
|
776
776
|
}
|
|
777
|
-
var
|
|
778
|
-
|
|
777
|
+
var zd = ee, Hd = Y, Yd = Te, Xd = ut, Wd = Vi, qd = Lu, Qd = ju;
|
|
778
|
+
zd({ target: "Promise", stat: !0, forced: Qd }, {
|
|
779
779
|
race: function(e) {
|
|
780
|
-
var t = this, r =
|
|
781
|
-
var o =
|
|
782
|
-
|
|
783
|
-
|
|
780
|
+
var t = this, r = Xd.f(t), i = r.reject, n = Wd(function() {
|
|
781
|
+
var o = Yd(t.resolve);
|
|
782
|
+
qd(e, function(s) {
|
|
783
|
+
Hd(o, t, s).then(r.resolve, i);
|
|
784
784
|
});
|
|
785
785
|
});
|
|
786
786
|
return n.error && i(n.value), r.promise;
|
|
787
787
|
}
|
|
788
788
|
});
|
|
789
|
-
var
|
|
790
|
-
|
|
789
|
+
var Kd = ee, Zd = ut, Jd = Pt.CONSTRUCTOR;
|
|
790
|
+
Kd({ target: "Promise", stat: !0, forced: Jd }, {
|
|
791
791
|
reject: function(e) {
|
|
792
|
-
var t =
|
|
792
|
+
var t = Zd.f(this), r = t.reject;
|
|
793
793
|
return r(e), t.promise;
|
|
794
794
|
}
|
|
795
795
|
});
|
|
796
|
-
var
|
|
797
|
-
if (
|
|
798
|
-
var t =
|
|
796
|
+
var ep = J, tp = ae, rp = ut, ap = function(a, e) {
|
|
797
|
+
if (ep(a), tp(e) && e.constructor === a) return e;
|
|
798
|
+
var t = rp.f(a), r = t.resolve;
|
|
799
799
|
return r(e), t.promise;
|
|
800
|
-
},
|
|
801
|
-
|
|
802
|
-
|
|
800
|
+
}, ip = ee, np = Fe, sp = Pt.CONSTRUCTOR, op = ap;
|
|
801
|
+
np("Promise");
|
|
802
|
+
ip({ target: "Promise", stat: !0, forced: sp }, {
|
|
803
803
|
resolve: function(e) {
|
|
804
|
-
return
|
|
804
|
+
return op(this, e);
|
|
805
805
|
}
|
|
806
806
|
});
|
|
807
|
-
function
|
|
807
|
+
function xs(a, e, t, r, i, n, o) {
|
|
808
808
|
try {
|
|
809
809
|
var s = a[n](o), u = s.value;
|
|
810
810
|
} catch (l) {
|
|
@@ -818,102 +818,103 @@ function xe(a) {
|
|
|
818
818
|
return new Promise(function(r, i) {
|
|
819
819
|
var n = a.apply(e, t);
|
|
820
820
|
function o(u) {
|
|
821
|
-
|
|
821
|
+
xs(n, r, i, o, s, "next", u);
|
|
822
822
|
}
|
|
823
823
|
function s(u) {
|
|
824
|
-
|
|
824
|
+
xs(n, r, i, o, s, "throw", u);
|
|
825
825
|
}
|
|
826
826
|
o(void 0);
|
|
827
827
|
});
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
var
|
|
831
|
-
if (
|
|
832
|
-
return
|
|
833
|
-
},
|
|
834
|
-
var a =
|
|
830
|
+
var up = Ni, lp = String, pe = function(a) {
|
|
831
|
+
if (up(a) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
832
|
+
return lp(a);
|
|
833
|
+
}, hp = J, Fu = function() {
|
|
834
|
+
var a = hp(this), e = "";
|
|
835
835
|
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;
|
|
836
|
-
}, ji =
|
|
836
|
+
}, ji = D, vp = _, Fi = vp.RegExp, Ui = ji(function() {
|
|
837
837
|
var a = Fi("a", "y");
|
|
838
838
|
return a.lastIndex = 2, a.exec("abcd") !== null;
|
|
839
|
-
})
|
|
839
|
+
});
|
|
840
|
+
Ui || ji(function() {
|
|
840
841
|
return !Fi("a", "y").sticky;
|
|
841
|
-
})
|
|
842
|
+
});
|
|
843
|
+
var fp = Ui || ji(function() {
|
|
842
844
|
var a = Fi("^r", "gy");
|
|
843
845
|
return a.lastIndex = 2, a.exec("str") !== null;
|
|
844
|
-
}),
|
|
845
|
-
BROKEN_CARET:
|
|
846
|
-
MISSED_STICKY: op,
|
|
846
|
+
}), Uu = {
|
|
847
|
+
BROKEN_CARET: fp,
|
|
847
848
|
UNSUPPORTED_Y: Ui
|
|
848
|
-
},
|
|
849
|
-
return
|
|
850
|
-
},
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
for (var r =
|
|
849
|
+
}, Gu = {}, cp = au, gp = Ri, dp = Object.keys || function(e) {
|
|
850
|
+
return cp(e, gp);
|
|
851
|
+
}, pp = he, yp = Wo, mp = Oe, bp = J, xp = $t, Tp = dp;
|
|
852
|
+
Gu.f = pp && !yp ? Object.defineProperties : function(e, t) {
|
|
853
|
+
bp(e);
|
|
854
|
+
for (var r = xp(t), i = Tp(t), n = i.length, o = 0, s; n > o; ) mp.f(e, s = i[o++], r[s]);
|
|
854
855
|
return e;
|
|
855
856
|
};
|
|
856
|
-
var
|
|
857
|
-
},
|
|
858
|
-
return
|
|
859
|
-
},
|
|
860
|
-
a.write(
|
|
857
|
+
var Op = J, Sp = Gu, Ts = Ri, Ep = Ci, $p = pu, wp = Er, Cp = wi, Os = ">", Ss = "<", ii = "prototype", ni = "script", zu = Cp("IE_PROTO"), Ea = function() {
|
|
858
|
+
}, Hu = function(a) {
|
|
859
|
+
return Ss + ni + Os + a + Ss + "/" + ni + Os;
|
|
860
|
+
}, Es = function(a) {
|
|
861
|
+
a.write(Hu("")), a.close();
|
|
861
862
|
var e = a.parentWindow.Object;
|
|
862
863
|
return a = null, e;
|
|
863
|
-
},
|
|
864
|
-
var a =
|
|
865
|
-
return a.style.display = "none",
|
|
866
|
-
},
|
|
864
|
+
}, Ap = function() {
|
|
865
|
+
var a = wp("iframe"), e = "java" + ni + ":", t;
|
|
866
|
+
return a.style.display = "none", $p.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Hu("document.F=Object")), t.close(), t.F;
|
|
867
|
+
}, Zt, vr = function() {
|
|
867
868
|
try {
|
|
868
|
-
|
|
869
|
+
Zt = new ActiveXObject("htmlfile");
|
|
869
870
|
} catch {
|
|
870
871
|
}
|
|
871
|
-
|
|
872
|
-
for (var a =
|
|
873
|
-
return
|
|
872
|
+
vr = typeof document < "u" ? document.domain && Zt ? Es(Zt) : Ap() : Es(Zt);
|
|
873
|
+
for (var a = Ts.length; a--; ) delete vr[ii][Ts[a]];
|
|
874
|
+
return vr();
|
|
874
875
|
};
|
|
875
|
-
|
|
876
|
+
Ep[zu] = !0;
|
|
876
877
|
var Gi = Object.create || function(e, t) {
|
|
877
878
|
var r;
|
|
878
|
-
return e !== null ? (
|
|
879
|
-
},
|
|
880
|
-
var a =
|
|
879
|
+
return e !== null ? (Ea[ii] = Op(e), r = new Ea(), Ea[ii] = null, r[zu] = e) : r = vr(), t === void 0 ? r : Sp.f(r, t);
|
|
880
|
+
}, Pp = D, Rp = _, Np = Rp.RegExp, Ip = Pp(function() {
|
|
881
|
+
var a = Np(".", "s");
|
|
881
882
|
return !(a.dotAll && a.test(`
|
|
882
883
|
`) && a.flags === "s");
|
|
883
|
-
}),
|
|
884
|
-
var a =
|
|
884
|
+
}), Mp = D, _p = _, Vp = _p.RegExp, Dp = Mp(function() {
|
|
885
|
+
var a = Vp("(?<a>b)", "g");
|
|
885
886
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
|
886
|
-
}),
|
|
887
|
+
}), Je = Y, Mr = L, Lp = pe, kp = Fu, Bp = Uu, jp = Ei, Fp = Gi, Up = wr.get, Gp = Ip, zp = Dp, Hp = jp("native-string-replace", String.prototype.replace), mr = RegExp.prototype.exec, si = mr, Yp = Mr("".charAt), Xp = Mr("".indexOf), Wp = Mr("".replace), $a = Mr("".slice), oi = function() {
|
|
887
888
|
var a = /a/, e = /b*/g;
|
|
888
|
-
return
|
|
889
|
-
}(),
|
|
890
|
-
|
|
891
|
-
var t = this, r =
|
|
889
|
+
return Je(mr, a, "a"), Je(mr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
|
890
|
+
}(), Yu = Bp.BROKEN_CARET, ui = /()??/.exec("")[1] !== void 0, qp = oi || ui || Yu || Gp || zp;
|
|
891
|
+
qp && (si = function(e) {
|
|
892
|
+
var t = this, r = Up(t), i = Lp(e), n = r.raw, o, s, u, l, h, f, c;
|
|
892
893
|
if (n)
|
|
893
|
-
return n.lastIndex = t.lastIndex, o =
|
|
894
|
-
var v = r.groups,
|
|
895
|
-
if (
|
|
896
|
-
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")",
|
|
894
|
+
return n.lastIndex = t.lastIndex, o = Je(si, n, i), t.lastIndex = n.lastIndex, o;
|
|
895
|
+
var v = r.groups, g = Yu && t.sticky, d = Je(kp, t), p = t.source, y = 0, x = i;
|
|
896
|
+
if (g && (d = Wp(d, "y", ""), Xp(d, "g") === -1 && (d += "g"), x = $a(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && Yp(i, t.lastIndex - 1) !== `
|
|
897
|
+
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", d)), ui && (s = new RegExp("^" + p + "$(?!\\s)", d)), oi && (u = t.lastIndex), l = Je(mr, g ? s : t, x), g ? l ? (l.input = $a(l.input, y), l[0] = $a(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : oi && l && (t.lastIndex = t.global ? l.index + l[0].length : u), ui && l && l.length > 1 && Je(Hp, l[0], s, function() {
|
|
897
898
|
for (h = 1; h < arguments.length - 2; h++)
|
|
898
899
|
arguments[h] === void 0 && (l[h] = void 0);
|
|
899
900
|
}), l && v)
|
|
900
|
-
for (l.groups = f =
|
|
901
|
+
for (l.groups = f = Fp(null), h = 0; h < v.length; h++)
|
|
901
902
|
c = v[h], f[c[0]] = l[c[1]];
|
|
902
903
|
return l;
|
|
903
904
|
});
|
|
904
|
-
var zi =
|
|
905
|
-
|
|
906
|
-
exec:
|
|
905
|
+
var zi = si, Qp = ee, $s = zi;
|
|
906
|
+
Qp({ target: "RegExp", proto: !0, forced: /./.exec !== $s }, {
|
|
907
|
+
exec: $s
|
|
907
908
|
});
|
|
908
|
-
var
|
|
909
|
-
var i =
|
|
909
|
+
var ws = Y, Cs = Ue, Kp = zi, As = D, Xu = z, Zp = Ct, Jp = Xu("species"), wa = RegExp.prototype, Hi = function(a, e, t, r) {
|
|
910
|
+
var i = Xu(a), n = !As(function() {
|
|
910
911
|
var l = {};
|
|
911
912
|
return l[i] = function() {
|
|
912
913
|
return 7;
|
|
913
914
|
}, ""[a](l) !== 7;
|
|
914
|
-
}), o = n && !
|
|
915
|
+
}), o = n && !As(function() {
|
|
915
916
|
var l = !1, h = /a/;
|
|
916
|
-
return a === "split" && (h = {}, h.constructor = {}, h.constructor[
|
|
917
|
+
return a === "split" && (h = {}, h.constructor = {}, h.constructor[Jp] = function() {
|
|
917
918
|
return h;
|
|
918
919
|
}, h.flags = "", h[i] = /./[i]), h.exec = function() {
|
|
919
920
|
return l = !0, null;
|
|
@@ -921,212 +922,236 @@ var Os = Y, Ss = Ue, Xp = zi, Es = k, Uu = z, Wp = wt, qp = Uu("species"), Oa =
|
|
|
921
922
|
});
|
|
922
923
|
if (!n || !o || t) {
|
|
923
924
|
var s = /./[i], u = e(i, ""[a], function(l, h, f, c, v) {
|
|
924
|
-
var
|
|
925
|
-
return
|
|
925
|
+
var g = h.exec;
|
|
926
|
+
return g === Kp || g === wa.exec ? n && !v ? { done: !0, value: ws(s, h, f, c) } : { done: !0, value: ws(l, f, h, c) } : { done: !1 };
|
|
926
927
|
});
|
|
927
|
-
|
|
928
|
+
Cs(String.prototype, a, u[0]), Cs(wa, i, u[1]);
|
|
928
929
|
}
|
|
929
|
-
r &&
|
|
930
|
-
}, Yi = L,
|
|
930
|
+
r && Zp(wa[i], "sham", !0);
|
|
931
|
+
}, Yi = L, ey = Cr, ty = pe, ry = ve, ay = Yi("".charAt), Ps = Yi("".charCodeAt), iy = Yi("".slice), ny = function(a) {
|
|
931
932
|
return function(e, t) {
|
|
932
|
-
var r =
|
|
933
|
-
return i < 0 || i >= n ? a ? "" : void 0 : (o =
|
|
933
|
+
var r = ty(ry(e)), i = ey(t), n = r.length, o, s;
|
|
934
|
+
return i < 0 || i >= n ? a ? "" : void 0 : (o = Ps(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = Ps(r, i + 1)) < 56320 || s > 57343 ? a ? ay(r, i) : o : a ? iy(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
|
934
935
|
};
|
|
935
|
-
},
|
|
936
|
-
// `String.prototype.codePointAt` method
|
|
937
|
-
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
938
|
-
codeAt: ws(!1),
|
|
936
|
+
}, sy = {
|
|
939
937
|
// `String.prototype.at` method
|
|
940
938
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
941
|
-
charAt:
|
|
942
|
-
},
|
|
943
|
-
return e + (t ?
|
|
944
|
-
},
|
|
939
|
+
charAt: ny(!0)
|
|
940
|
+
}, oy = sy.charAt, Xi = function(a, e, t) {
|
|
941
|
+
return e + (t ? oy(a, e).length : 1);
|
|
942
|
+
}, uy = _, ly = D, Rs = uy.RegExp, hy = !ly(function() {
|
|
943
|
+
var a = !0;
|
|
944
|
+
try {
|
|
945
|
+
Rs(".", "d");
|
|
946
|
+
} catch {
|
|
947
|
+
a = !1;
|
|
948
|
+
}
|
|
949
|
+
var e = {}, t = "", r = a ? "dgimsy" : "gimsy", i = function(u, l) {
|
|
950
|
+
Object.defineProperty(e, u, { get: function() {
|
|
951
|
+
return t += l, !0;
|
|
952
|
+
} });
|
|
953
|
+
}, n = {
|
|
954
|
+
dotAll: "s",
|
|
955
|
+
global: "g",
|
|
956
|
+
ignoreCase: "i",
|
|
957
|
+
multiline: "m",
|
|
958
|
+
sticky: "y"
|
|
959
|
+
};
|
|
960
|
+
a && (n.hasIndices = "d");
|
|
961
|
+
for (var o in n) i(o, n[o]);
|
|
962
|
+
var s = Object.getOwnPropertyDescriptor(Rs.prototype, "flags").get.call(e);
|
|
963
|
+
return s !== r || t !== r;
|
|
964
|
+
}), vy = { correct: hy }, fy = Y, cy = fe, gy = Tr, Ns = vy, dy = Fu, py = RegExp.prototype, Wi = Ns.correct ? function(a) {
|
|
965
|
+
return a.flags;
|
|
966
|
+
} : function(a) {
|
|
967
|
+
return !Ns.correct && gy(py, a) && !cy(a, "flags") ? fy(dy, a) : a.flags;
|
|
968
|
+
}, Is = Y, yy = J, my = B, by = je, xy = zi, Ty = TypeError, qi = function(a, e) {
|
|
945
969
|
var t = a.exec;
|
|
946
|
-
if (
|
|
947
|
-
var r =
|
|
948
|
-
return r !== null &&
|
|
949
|
-
}
|
|
950
|
-
if (
|
|
951
|
-
throw new
|
|
952
|
-
},
|
|
953
|
-
|
|
970
|
+
if (my(t)) {
|
|
971
|
+
var r = Is(t, a, e);
|
|
972
|
+
return r !== null && yy(r), r;
|
|
973
|
+
}
|
|
974
|
+
if (by(a) === "RegExp") return Is(xy, a, e);
|
|
975
|
+
throw new Ty("RegExp#exec called on incompatible receiver");
|
|
976
|
+
}, Oy = Y, Sy = L, Ey = Hi, $y = J, wy = ae, Cy = ot, Jt = pe, Ay = ve, Py = st, Ry = Xi, Ny = Wi, Ms = qi, _s = Sy("".indexOf);
|
|
977
|
+
Ey("match", function(a, e, t) {
|
|
954
978
|
return [
|
|
955
979
|
// `String.prototype.match` method
|
|
956
980
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
957
981
|
function(i) {
|
|
958
|
-
var n =
|
|
959
|
-
return o ?
|
|
982
|
+
var n = Ay(this), o = wy(i) ? Py(i, a) : void 0;
|
|
983
|
+
return o ? Oy(o, i, n) : new RegExp(i)[a](Jt(n));
|
|
960
984
|
},
|
|
961
985
|
// `RegExp.prototype[@@match]` method
|
|
962
986
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
963
987
|
function(r) {
|
|
964
|
-
var i =
|
|
988
|
+
var i = $y(this), n = Jt(r), o = t(e, i, n);
|
|
965
989
|
if (o.done) return o.value;
|
|
966
|
-
|
|
967
|
-
|
|
990
|
+
var s = Jt(Ny(i));
|
|
991
|
+
if (_s(s, "g") === -1) return Ms(i, n);
|
|
992
|
+
var u = _s(s, "u") !== -1;
|
|
968
993
|
i.lastIndex = 0;
|
|
969
|
-
for (var
|
|
970
|
-
var
|
|
971
|
-
|
|
994
|
+
for (var l = [], h = 0, f; (f = Ms(i, n)) !== null; ) {
|
|
995
|
+
var c = Jt(f[0]);
|
|
996
|
+
l[h] = c, c === "" && (i.lastIndex = Ry(n, Cy(i.lastIndex), u)), h++;
|
|
972
997
|
}
|
|
973
|
-
return
|
|
998
|
+
return h === 0 ? null : l;
|
|
974
999
|
}
|
|
975
1000
|
];
|
|
976
1001
|
});
|
|
977
|
-
var
|
|
978
|
-
var o = t + a.length, s = r.length, u =
|
|
979
|
-
return i !== void 0 && (i =
|
|
1002
|
+
var Qi = L, Iy = Sr, My = Math.floor, Ca = Qi("".charAt), _y = Qi("".replace), Aa = Qi("".slice), Vy = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Dy = /\$([$&'`]|\d{1,2})/g, Ly = function(a, e, t, r, i, n) {
|
|
1003
|
+
var o = t + a.length, s = r.length, u = Dy;
|
|
1004
|
+
return i !== void 0 && (i = Iy(i), u = Vy), _y(n, u, function(l, h) {
|
|
980
1005
|
var f;
|
|
981
|
-
switch (
|
|
1006
|
+
switch (Ca(h, 0)) {
|
|
982
1007
|
case "$":
|
|
983
1008
|
return "$";
|
|
984
1009
|
case "&":
|
|
985
1010
|
return a;
|
|
986
1011
|
case "`":
|
|
987
|
-
return
|
|
1012
|
+
return Aa(e, 0, t);
|
|
988
1013
|
case "'":
|
|
989
|
-
return
|
|
1014
|
+
return Aa(e, o);
|
|
990
1015
|
case "<":
|
|
991
|
-
f = i[
|
|
1016
|
+
f = i[Aa(h, 1, -1)];
|
|
992
1017
|
break;
|
|
993
1018
|
default:
|
|
994
1019
|
var c = +h;
|
|
995
1020
|
if (c === 0) return l;
|
|
996
1021
|
if (c > s) {
|
|
997
|
-
var v =
|
|
998
|
-
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ?
|
|
1022
|
+
var v = My(c / 10);
|
|
1023
|
+
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Ca(h, 1) : r[v - 1] + Ca(h, 1) : l;
|
|
999
1024
|
}
|
|
1000
1025
|
f = r[c - 1];
|
|
1001
1026
|
}
|
|
1002
1027
|
return f === void 0 ? "" : f;
|
|
1003
1028
|
});
|
|
1004
|
-
},
|
|
1029
|
+
}, ky = du, Vs = Y, _r = L, By = Hi, jy = D, Fy = J, Uy = B, Gy = ae, zy = Cr, Hy = ot, Me = pe, Yy = ve, Xy = Xi, Wy = st, qy = Ly, Qy = Wi, Ky = qi, Zy = z, li = Zy("replace"), Jy = Math.max, em = Math.min, tm = _r([].concat), Pa = _r([].push), er = _r("".indexOf), Ds = _r("".slice), rm = function(a) {
|
|
1005
1030
|
return a === void 0 ? a : String(a);
|
|
1006
|
-
},
|
|
1031
|
+
}, am = function() {
|
|
1007
1032
|
return "a".replace(/./, "$0") === "$0";
|
|
1008
|
-
}(),
|
|
1009
|
-
return /./[
|
|
1010
|
-
}(),
|
|
1033
|
+
}(), Ls = function() {
|
|
1034
|
+
return /./[li] ? /./[li]("a", "$0") === "" : !1;
|
|
1035
|
+
}(), im = !jy(function() {
|
|
1011
1036
|
var a = /./;
|
|
1012
1037
|
return a.exec = function() {
|
|
1013
1038
|
var e = [];
|
|
1014
1039
|
return e.groups = { a: "7" }, e;
|
|
1015
1040
|
}, "".replace(a, "$<a>") !== "7";
|
|
1016
1041
|
});
|
|
1017
|
-
|
|
1018
|
-
var r =
|
|
1042
|
+
By("replace", function(a, e, t) {
|
|
1043
|
+
var r = Ls ? "$" : "$0";
|
|
1019
1044
|
return [
|
|
1020
1045
|
// `String.prototype.replace` method
|
|
1021
1046
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1022
1047
|
function(n, o) {
|
|
1023
|
-
var s =
|
|
1024
|
-
return u ?
|
|
1048
|
+
var s = Yy(this), u = Gy(n) ? Wy(n, li) : void 0;
|
|
1049
|
+
return u ? Vs(u, n, s, o) : Vs(e, Me(s), n, o);
|
|
1025
1050
|
},
|
|
1026
1051
|
// `RegExp.prototype[@@replace]` method
|
|
1027
1052
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1028
1053
|
function(i, n) {
|
|
1029
|
-
var o =
|
|
1030
|
-
if (typeof n == "string" &&
|
|
1054
|
+
var o = Fy(this), s = Me(i);
|
|
1055
|
+
if (typeof n == "string" && er(n, r) === -1 && er(n, "$<") === -1) {
|
|
1031
1056
|
var u = t(e, o, s, n);
|
|
1032
1057
|
if (u.done) return u.value;
|
|
1033
1058
|
}
|
|
1034
|
-
var l =
|
|
1035
|
-
l || (n =
|
|
1036
|
-
var h = o
|
|
1037
|
-
|
|
1038
|
-
for (var
|
|
1039
|
-
var d =
|
|
1040
|
-
d === "" && (o.lastIndex =
|
|
1059
|
+
var l = Uy(n);
|
|
1060
|
+
l || (n = Me(n));
|
|
1061
|
+
var h = Me(Qy(o)), f = er(h, "g") !== -1, c;
|
|
1062
|
+
f && (c = er(h, "u") !== -1, o.lastIndex = 0);
|
|
1063
|
+
for (var v = [], g; g = Ky(o, s), !(g === null || (Pa(v, g), !f)); ) {
|
|
1064
|
+
var d = Me(g[0]);
|
|
1065
|
+
d === "" && (o.lastIndex = Xy(s, Hy(o.lastIndex), c));
|
|
1041
1066
|
}
|
|
1042
|
-
for (var
|
|
1043
|
-
|
|
1044
|
-
for (var
|
|
1045
|
-
var
|
|
1067
|
+
for (var p = "", y = 0, x = 0; x < v.length; x++) {
|
|
1068
|
+
g = v[x];
|
|
1069
|
+
for (var b = Me(g[0]), T = Jy(em(zy(g.index), s.length), 0), $ = [], E, O = 1; O < g.length; O++) Pa($, rm(g[O]));
|
|
1070
|
+
var C = g.groups;
|
|
1046
1071
|
if (l) {
|
|
1047
|
-
var
|
|
1048
|
-
|
|
1072
|
+
var P = tm([b], $, T, s);
|
|
1073
|
+
C !== void 0 && Pa(P, C), E = Me(ky(n, void 0, P));
|
|
1049
1074
|
} else
|
|
1050
|
-
|
|
1051
|
-
|
|
1075
|
+
E = qy(b, s, T, $, C, n);
|
|
1076
|
+
T >= y && (p += Ds(s, y, T) + E, y = T + b.length);
|
|
1052
1077
|
}
|
|
1053
|
-
return
|
|
1078
|
+
return p + Ds(s, y);
|
|
1054
1079
|
}
|
|
1055
1080
|
];
|
|
1056
|
-
}, !
|
|
1057
|
-
var
|
|
1081
|
+
}, !im || !am || Ls);
|
|
1082
|
+
var nm = ae, sm = je, om = z, um = om("match"), lm = function(a) {
|
|
1058
1083
|
var e;
|
|
1059
|
-
return
|
|
1060
|
-
},
|
|
1061
|
-
if (
|
|
1062
|
-
throw new
|
|
1084
|
+
return nm(a) && ((e = a[um]) !== void 0 ? !!e : sm(a) === "RegExp");
|
|
1085
|
+
}, hm = lm, vm = TypeError, Ki = function(a) {
|
|
1086
|
+
if (hm(a))
|
|
1087
|
+
throw new vm("The method doesn't accept regular expressions");
|
|
1063
1088
|
return a;
|
|
1064
|
-
},
|
|
1089
|
+
}, fm = z, cm = fm("match"), Zi = function(a) {
|
|
1065
1090
|
var e = /./;
|
|
1066
1091
|
try {
|
|
1067
1092
|
"/./"[a](e);
|
|
1068
1093
|
} catch {
|
|
1069
1094
|
try {
|
|
1070
|
-
return e[
|
|
1095
|
+
return e[cm] = !1, "/./"[a](e);
|
|
1071
1096
|
} catch {
|
|
1072
1097
|
}
|
|
1073
1098
|
}
|
|
1074
1099
|
return !1;
|
|
1075
|
-
},
|
|
1076
|
-
var a =
|
|
1100
|
+
}, gm = ee, dm = Rr, pm = Et.f, ym = ot, ks = pe, mm = Ki, bm = ve, xm = Zi, Tm = dm("".slice), Om = Math.min, Wu = xm("startsWith"), Sm = !Wu && !!function() {
|
|
1101
|
+
var a = pm(String.prototype, "startsWith");
|
|
1077
1102
|
return a && !a.writable;
|
|
1078
1103
|
}();
|
|
1079
|
-
|
|
1104
|
+
gm({ target: "String", proto: !0, forced: !Sm && !Wu }, {
|
|
1080
1105
|
startsWith: function(e) {
|
|
1081
|
-
var t =
|
|
1082
|
-
|
|
1083
|
-
var r =
|
|
1084
|
-
return
|
|
1106
|
+
var t = ks(bm(this));
|
|
1107
|
+
mm(e);
|
|
1108
|
+
var r = ym(Om(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = ks(e);
|
|
1109
|
+
return Tm(t, r, r + i.length) === i;
|
|
1085
1110
|
}
|
|
1086
1111
|
});
|
|
1087
|
-
var
|
|
1088
|
-
hi
|
|
1112
|
+
var Em = z, $m = Gi, wm = Oe.f, hi = Em("unscopables"), vi = Array.prototype;
|
|
1113
|
+
vi[hi] === void 0 && wm(vi, hi, {
|
|
1089
1114
|
configurable: !0,
|
|
1090
|
-
value:
|
|
1115
|
+
value: $m(null)
|
|
1091
1116
|
});
|
|
1092
|
-
var
|
|
1093
|
-
hi
|
|
1094
|
-
},
|
|
1117
|
+
var Cm = function(a) {
|
|
1118
|
+
vi[hi][a] = !0;
|
|
1119
|
+
}, Am = D, Pm = !Am(function() {
|
|
1095
1120
|
function a() {
|
|
1096
1121
|
}
|
|
1097
1122
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
|
1098
|
-
}),
|
|
1099
|
-
var e =
|
|
1100
|
-
if (
|
|
1123
|
+
}), Rm = fe, Nm = B, Im = Sr, Mm = wi, _m = Pm, Bs = Mm("IE_PROTO"), fi = Object, Vm = fi.prototype, qu = _m ? fi.getPrototypeOf : function(a) {
|
|
1124
|
+
var e = Im(a);
|
|
1125
|
+
if (Rm(e, Bs)) return e[Bs];
|
|
1101
1126
|
var t = e.constructor;
|
|
1102
|
-
return
|
|
1103
|
-
},
|
|
1104
|
-
[].keys && (
|
|
1105
|
-
var
|
|
1127
|
+
return Nm(t) && e instanceof t ? t.prototype : e instanceof fi ? Vm : null;
|
|
1128
|
+
}, Dm = D, Lm = B, km = ae, js = qu, Bm = Ue, jm = z, ci = jm("iterator"), Qu = !1, ke, Ra, Na;
|
|
1129
|
+
[].keys && (Na = [].keys(), "next" in Na ? (Ra = js(js(Na)), Ra !== Object.prototype && (ke = Ra)) : Qu = !0);
|
|
1130
|
+
var Fm = !km(ke) || Dm(function() {
|
|
1106
1131
|
var a = {};
|
|
1107
|
-
return ke[
|
|
1132
|
+
return ke[ci].call(a) !== a;
|
|
1108
1133
|
});
|
|
1109
|
-
|
|
1110
|
-
|
|
1134
|
+
Fm && (ke = {});
|
|
1135
|
+
Lm(ke[ci]) || Bm(ke, ci, function() {
|
|
1111
1136
|
return this;
|
|
1112
1137
|
});
|
|
1113
|
-
var
|
|
1138
|
+
var Ku = {
|
|
1114
1139
|
IteratorPrototype: ke,
|
|
1115
|
-
BUGGY_SAFARI_ITERATORS:
|
|
1116
|
-
},
|
|
1140
|
+
BUGGY_SAFARI_ITERATORS: Qu
|
|
1141
|
+
}, Um = Ku.IteratorPrototype, Gm = Gi, zm = xi, Hm = Pr, Ym = Rt, Xm = function() {
|
|
1117
1142
|
return this;
|
|
1118
|
-
},
|
|
1143
|
+
}, Wm = function(a, e, t, r) {
|
|
1119
1144
|
var i = e + " Iterator";
|
|
1120
|
-
return a.prototype =
|
|
1121
|
-
},
|
|
1145
|
+
return a.prototype = Gm(Um, { next: zm(+!r, t) }), Hm(a, i, !1), Ym[i] = Xm, a;
|
|
1146
|
+
}, qm = ee, Qm = Y, Zu = $r, Km = B, Zm = Wm, Fs = qu, Us = ou, Jm = Pr, e0 = Ct, Ia = Ue, t0 = z, r0 = Rt, Ju = Ku, a0 = Zu.PROPER, i0 = Zu.CONFIGURABLE, Gs = Ju.IteratorPrototype, tr = Ju.BUGGY_SAFARI_ITERATORS, ct = t0("iterator"), zs = "keys", gt = "values", Hs = "entries", n0 = function() {
|
|
1122
1147
|
return this;
|
|
1123
|
-
},
|
|
1124
|
-
|
|
1148
|
+
}, s0 = function(a, e, t, r, i, n, o) {
|
|
1149
|
+
Zm(t, e, r);
|
|
1125
1150
|
var s = function(y) {
|
|
1126
1151
|
if (y === i && c) return c;
|
|
1127
|
-
if (!
|
|
1152
|
+
if (!tr && y && y in h) return h[y];
|
|
1128
1153
|
switch (y) {
|
|
1129
|
-
case
|
|
1154
|
+
case zs:
|
|
1130
1155
|
return function() {
|
|
1131
1156
|
return new t(this, y);
|
|
1132
1157
|
};
|
|
@@ -1134,7 +1159,7 @@ var Yu = {
|
|
|
1134
1159
|
return function() {
|
|
1135
1160
|
return new t(this, y);
|
|
1136
1161
|
};
|
|
1137
|
-
case
|
|
1162
|
+
case Hs:
|
|
1138
1163
|
return function() {
|
|
1139
1164
|
return new t(this, y);
|
|
1140
1165
|
};
|
|
@@ -1142,24 +1167,24 @@ var Yu = {
|
|
|
1142
1167
|
return function() {
|
|
1143
1168
|
return new t(this);
|
|
1144
1169
|
};
|
|
1145
|
-
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[ct] || h["@@iterator"] || i && h[i], c = !
|
|
1146
|
-
if (v && (
|
|
1147
|
-
return
|
|
1170
|
+
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[ct] || h["@@iterator"] || i && h[i], c = !tr && f || s(i), v = e === "Array" && h.entries || f, g, d, p;
|
|
1171
|
+
if (v && (g = Fs(v.call(new a())), g !== Object.prototype && g.next && (Fs(g) !== Gs && (Us ? Us(g, Gs) : Km(g[ct]) || Ia(g, ct, n0)), Jm(g, u, !0))), a0 && i === gt && f && f.name !== gt && (i0 ? e0(h, "name", gt) : (l = !0, c = function() {
|
|
1172
|
+
return Qm(f, this);
|
|
1148
1173
|
})), i)
|
|
1149
|
-
if (
|
|
1174
|
+
if (d = {
|
|
1150
1175
|
values: s(gt),
|
|
1151
|
-
keys: n ? c : s(
|
|
1152
|
-
entries: s(
|
|
1153
|
-
}, o) for (p in
|
|
1154
|
-
(
|
|
1155
|
-
else
|
|
1156
|
-
return h[ct] !== c &&
|
|
1157
|
-
},
|
|
1176
|
+
keys: n ? c : s(zs),
|
|
1177
|
+
entries: s(Hs)
|
|
1178
|
+
}, o) for (p in d)
|
|
1179
|
+
(tr || l || !(p in h)) && Ia(h, p, d[p]);
|
|
1180
|
+
else qm({ target: e, proto: !0, forced: tr || l }, d);
|
|
1181
|
+
return h[ct] !== c && Ia(h, ct, c, { name: i }), r0[e] = c, d;
|
|
1182
|
+
}, o0 = function(a, e) {
|
|
1158
1183
|
return { value: a, done: e };
|
|
1159
|
-
},
|
|
1160
|
-
|
|
1161
|
-
type:
|
|
1162
|
-
target:
|
|
1184
|
+
}, u0 = $t, Ji = Cm, Ys = Rt, el = wr, l0 = Oe.f, h0 = s0, rr = o0, v0 = he, tl = "Array Iterator", f0 = el.set, c0 = el.getterFor(tl), g0 = h0(Array, "Array", function(a, e) {
|
|
1185
|
+
f0(this, {
|
|
1186
|
+
type: tl,
|
|
1187
|
+
target: u0(a),
|
|
1163
1188
|
// target
|
|
1164
1189
|
index: 0,
|
|
1165
1190
|
// next index
|
|
@@ -1167,25 +1192,25 @@ var Yu = {
|
|
|
1167
1192
|
// kind
|
|
1168
1193
|
});
|
|
1169
1194
|
}, function() {
|
|
1170
|
-
var a =
|
|
1195
|
+
var a = c0(this), e = a.target, t = a.index++;
|
|
1171
1196
|
if (!e || t >= e.length)
|
|
1172
|
-
return a.target =
|
|
1197
|
+
return a.target = null, rr(void 0, !0);
|
|
1173
1198
|
switch (a.kind) {
|
|
1174
1199
|
case "keys":
|
|
1175
|
-
return
|
|
1200
|
+
return rr(t, !1);
|
|
1176
1201
|
case "values":
|
|
1177
|
-
return
|
|
1178
|
-
}
|
|
1179
|
-
return
|
|
1180
|
-
}, "values"),
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
if (
|
|
1185
|
-
|
|
1202
|
+
return rr(e[t], !1);
|
|
1203
|
+
}
|
|
1204
|
+
return rr([t, e[t]], !1);
|
|
1205
|
+
}, "values"), Xs = Ys.Arguments = Ys.Array;
|
|
1206
|
+
Ji("keys");
|
|
1207
|
+
Ji("values");
|
|
1208
|
+
Ji("entries");
|
|
1209
|
+
if (v0 && Xs.name !== "values") try {
|
|
1210
|
+
l0(Xs, "name", { value: "values" });
|
|
1186
1211
|
} catch {
|
|
1187
1212
|
}
|
|
1188
|
-
var
|
|
1213
|
+
var d0 = {
|
|
1189
1214
|
CSSRuleList: 0,
|
|
1190
1215
|
CSSStyleDeclaration: 0,
|
|
1191
1216
|
CSSValueList: 0,
|
|
@@ -1217,52 +1242,52 @@ var Zm = {
|
|
|
1217
1242
|
TextTrackCueList: 0,
|
|
1218
1243
|
TextTrackList: 0,
|
|
1219
1244
|
TouchList: 0
|
|
1220
|
-
},
|
|
1245
|
+
}, p0 = Er, Ma = p0("span").classList, Ws = Ma && Ma.constructor && Ma.constructor.prototype, y0 = Ws === Object.prototype ? void 0 : Ws, qs = _, rl = d0, m0 = y0, pt = g0, Qs = Ct, b0 = Pr, x0 = z, _a = x0("iterator"), Va = pt.values, al = function(a, e) {
|
|
1221
1246
|
if (a) {
|
|
1222
|
-
if (a[
|
|
1223
|
-
|
|
1247
|
+
if (a[_a] !== Va) try {
|
|
1248
|
+
Qs(a, _a, Va);
|
|
1224
1249
|
} catch {
|
|
1225
|
-
a[
|
|
1250
|
+
a[_a] = Va;
|
|
1226
1251
|
}
|
|
1227
|
-
if (
|
|
1252
|
+
if (b0(a, e, !0), rl[e]) {
|
|
1228
1253
|
for (var t in pt)
|
|
1229
1254
|
if (a[t] !== pt[t]) try {
|
|
1230
|
-
|
|
1255
|
+
Qs(a, t, pt[t]);
|
|
1231
1256
|
} catch {
|
|
1232
1257
|
a[t] = pt[t];
|
|
1233
1258
|
}
|
|
1234
1259
|
}
|
|
1235
1260
|
}
|
|
1236
1261
|
};
|
|
1237
|
-
for (var
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
function
|
|
1241
|
-
if (
|
|
1262
|
+
for (var Da in rl)
|
|
1263
|
+
al(qs[Da] && qs[Da].prototype, Da);
|
|
1264
|
+
al(m0, "DOMTokenList");
|
|
1265
|
+
function T0(a, e) {
|
|
1266
|
+
if (za(a) != "object" || !a) return a;
|
|
1242
1267
|
var t = a[Symbol.toPrimitive];
|
|
1243
1268
|
if (t !== void 0) {
|
|
1244
|
-
var r = t.call(a, e
|
|
1245
|
-
if (
|
|
1269
|
+
var r = t.call(a, e);
|
|
1270
|
+
if (za(r) != "object") return r;
|
|
1246
1271
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1247
1272
|
}
|
|
1248
1273
|
return (e === "string" ? String : Number)(a);
|
|
1249
1274
|
}
|
|
1250
|
-
function
|
|
1251
|
-
var e =
|
|
1252
|
-
return
|
|
1275
|
+
function O0(a) {
|
|
1276
|
+
var e = T0(a, "string");
|
|
1277
|
+
return za(e) == "symbol" ? e : e + "";
|
|
1253
1278
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return (e =
|
|
1279
|
+
function en(a, e, t) {
|
|
1280
|
+
return (e = O0(e)) in a ? Object.defineProperty(a, e, {
|
|
1256
1281
|
value: t,
|
|
1257
1282
|
enumerable: !0,
|
|
1258
1283
|
configurable: !0,
|
|
1259
1284
|
writable: !0
|
|
1260
1285
|
}) : a[e] = t, a;
|
|
1261
1286
|
}
|
|
1262
|
-
var
|
|
1287
|
+
var S0 = Te, E0 = Sr, $0 = Bo, w0 = Pi, Ks = TypeError, Zs = "Reduce of empty array with no initial value", C0 = function(a) {
|
|
1263
1288
|
return function(e, t, r, i) {
|
|
1264
|
-
var n =
|
|
1265
|
-
if (
|
|
1289
|
+
var n = E0(e), o = $0(n), s = w0(n);
|
|
1290
|
+
if (S0(t), s === 0 && r < 2) throw new Ks(Zs);
|
|
1266
1291
|
var u = a ? s - 1 : 0, l = a ? -1 : 1;
|
|
1267
1292
|
if (r < 2) for (; ; ) {
|
|
1268
1293
|
if (u in o) {
|
|
@@ -1270,64 +1295,61 @@ var s0 = Te, o0 = xr, u0 = Do, l0 = Pi, Ys = TypeError, Xs = "Reduce of empty ar
|
|
|
1270
1295
|
break;
|
|
1271
1296
|
}
|
|
1272
1297
|
if (u += l, a ? u < 0 : s <= u)
|
|
1273
|
-
throw new
|
|
1298
|
+
throw new Ks(Zs);
|
|
1274
1299
|
}
|
|
1275
1300
|
for (; a ? u >= 0 : s > u; u += l) u in o && (i = t(i, o[u], u, n));
|
|
1276
1301
|
return i;
|
|
1277
1302
|
};
|
|
1278
|
-
},
|
|
1303
|
+
}, A0 = {
|
|
1279
1304
|
// `Array.prototype.reduce` method
|
|
1280
1305
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1281
|
-
left:
|
|
1282
|
-
|
|
1283
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1284
|
-
right: Ws(!0)
|
|
1285
|
-
}, v0 = k, Ju = function(a, e) {
|
|
1306
|
+
left: C0(!1)
|
|
1307
|
+
}, P0 = D, il = function(a, e) {
|
|
1286
1308
|
var t = [][a];
|
|
1287
|
-
return !!t &&
|
|
1309
|
+
return !!t && P0(function() {
|
|
1288
1310
|
t.call(null, e || function() {
|
|
1289
1311
|
return 1;
|
|
1290
1312
|
}, 1);
|
|
1291
1313
|
});
|
|
1292
|
-
},
|
|
1293
|
-
|
|
1314
|
+
}, R0 = ee, N0 = A0.left, I0 = il, Js = Ti, M0 = Ar, _0 = !M0 && Js > 79 && Js < 83, V0 = _0 || !I0("reduce");
|
|
1315
|
+
R0({ target: "Array", proto: !0, forced: V0 }, {
|
|
1294
1316
|
reduce: function(e) {
|
|
1295
1317
|
var t = arguments.length;
|
|
1296
|
-
return
|
|
1318
|
+
return N0(this, e, t, t > 1 ? arguments[1] : void 0);
|
|
1297
1319
|
}
|
|
1298
1320
|
});
|
|
1299
|
-
var
|
|
1300
|
-
var a =
|
|
1321
|
+
var D0 = ee, L0 = Rr, k0 = Et.f, B0 = ot, eo = pe, j0 = Ki, F0 = ve, U0 = Zi, G0 = L0("".slice), z0 = Math.min, nl = U0("endsWith"), H0 = !nl && !!function() {
|
|
1322
|
+
var a = k0(String.prototype, "endsWith");
|
|
1301
1323
|
return a && !a.writable;
|
|
1302
1324
|
}();
|
|
1303
|
-
|
|
1325
|
+
D0({ target: "String", proto: !0, forced: !H0 && !nl }, {
|
|
1304
1326
|
endsWith: function(e) {
|
|
1305
|
-
var t =
|
|
1306
|
-
|
|
1307
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i :
|
|
1308
|
-
return
|
|
1327
|
+
var t = eo(F0(this));
|
|
1328
|
+
j0(e);
|
|
1329
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : z0(B0(r), i), o = eo(e);
|
|
1330
|
+
return G0(t, n - o.length, n) === o;
|
|
1309
1331
|
}
|
|
1310
1332
|
});
|
|
1311
|
-
var
|
|
1333
|
+
var La = Y, sl = L, Y0 = Hi, X0 = J, W0 = ae, q0 = ve, Q0 = cu, K0 = Xi, Z0 = ot, to = pe, J0 = st, ro = qi, eb = Uu, tb = D, We = eb.UNSUPPORTED_Y, rb = 4294967295, ab = Math.min, ka = sl([].push), Ba = sl("".slice), ib = !tb(function() {
|
|
1312
1334
|
var a = /(?:)/, e = a.exec;
|
|
1313
1335
|
a.exec = function() {
|
|
1314
1336
|
return e.apply(this, arguments);
|
|
1315
1337
|
};
|
|
1316
1338
|
var t = "ab".split(a);
|
|
1317
1339
|
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
|
|
1318
|
-
}),
|
|
1340
|
+
}), ao = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
1319
1341
|
"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
|
|
1320
1342
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
|
1321
|
-
|
|
1343
|
+
Y0("split", function(a, e, t) {
|
|
1322
1344
|
var r = "0".split(void 0, 0).length ? function(i, n) {
|
|
1323
|
-
return i === void 0 && n === 0 ? [] :
|
|
1345
|
+
return i === void 0 && n === 0 ? [] : La(e, this, i, n);
|
|
1324
1346
|
} : e;
|
|
1325
1347
|
return [
|
|
1326
1348
|
// `String.prototype.split` method
|
|
1327
1349
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1328
1350
|
function(n, o) {
|
|
1329
|
-
var s =
|
|
1330
|
-
return u ?
|
|
1351
|
+
var s = q0(this), u = W0(n) ? J0(n, a) : void 0;
|
|
1352
|
+
return u ? La(u, n, s, o) : La(r, to(s), n, o);
|
|
1331
1353
|
},
|
|
1332
1354
|
// `RegExp.prototype[@@split]` method
|
|
1333
1355
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1335,31 +1357,31 @@ A0("split", function(a, e, t) {
|
|
|
1335
1357
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
1336
1358
|
// the 'y' flag.
|
|
1337
1359
|
function(i, n) {
|
|
1338
|
-
var o =
|
|
1339
|
-
if (!
|
|
1360
|
+
var o = X0(this), s = to(i);
|
|
1361
|
+
if (!ao) {
|
|
1340
1362
|
var u = t(r, o, s, n, r !== e);
|
|
1341
1363
|
if (u.done) return u.value;
|
|
1342
1364
|
}
|
|
1343
|
-
var l =
|
|
1365
|
+
var l = Q0(o, RegExp), h = o.unicode, f = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (We ? "g" : "y"), c = new l(We ? "^(?:" + o.source + ")" : o, f), v = n === void 0 ? rb : n >>> 0;
|
|
1344
1366
|
if (v === 0) return [];
|
|
1345
|
-
if (s.length === 0) return
|
|
1346
|
-
for (var
|
|
1347
|
-
c.lastIndex =
|
|
1348
|
-
var y =
|
|
1349
|
-
if (y === null || (x =
|
|
1350
|
-
|
|
1367
|
+
if (s.length === 0) return ro(c, s) === null ? [s] : [];
|
|
1368
|
+
for (var g = 0, d = 0, p = []; d < s.length; ) {
|
|
1369
|
+
c.lastIndex = We ? 0 : d;
|
|
1370
|
+
var y = ro(c, We ? Ba(s, d) : s), x;
|
|
1371
|
+
if (y === null || (x = ab(Z0(c.lastIndex + (We ? d : 0)), s.length)) === g)
|
|
1372
|
+
d = K0(s, d, h);
|
|
1351
1373
|
else {
|
|
1352
|
-
if (
|
|
1374
|
+
if (ka(p, Ba(s, g, d)), p.length === v) return p;
|
|
1353
1375
|
for (var b = 1; b <= y.length - 1; b++)
|
|
1354
|
-
if (
|
|
1355
|
-
|
|
1376
|
+
if (ka(p, y[b]), p.length === v) return p;
|
|
1377
|
+
d = g = x;
|
|
1356
1378
|
}
|
|
1357
1379
|
}
|
|
1358
|
-
return
|
|
1380
|
+
return ka(p, Ba(s, g)), p;
|
|
1359
1381
|
}
|
|
1360
1382
|
];
|
|
1361
|
-
},
|
|
1362
|
-
var
|
|
1383
|
+
}, ao || !ib, We);
|
|
1384
|
+
var Vr = { exports: {} }, yt = { exports: {} };
|
|
1363
1385
|
(function() {
|
|
1364
1386
|
var a, e, t, r, i, n;
|
|
1365
1387
|
typeof performance < "u" && performance !== null && performance.now ? yt.exports = function() {
|
|
@@ -1374,22 +1396,22 @@ var Nr = { exports: {} }, yt = { exports: {} };
|
|
|
1374
1396
|
}, t = Date.now()) : (yt.exports = function() {
|
|
1375
1397
|
return (/* @__PURE__ */ new Date()).getTime() - t;
|
|
1376
1398
|
}, t = (/* @__PURE__ */ new Date()).getTime());
|
|
1377
|
-
}).call(
|
|
1378
|
-
var
|
|
1379
|
-
for (var dt = 0; !
|
|
1380
|
-
|
|
1381
|
-
if (!
|
|
1382
|
-
var
|
|
1383
|
-
|
|
1384
|
-
if (
|
|
1385
|
-
var e =
|
|
1386
|
-
|
|
1387
|
-
var r =
|
|
1388
|
-
|
|
1399
|
+
}).call(Qe);
|
|
1400
|
+
var nb = yt.exports, sb = nb, be = typeof window > "u" ? Qe : window, ar = ["moz", "webkit"], tt = "AnimationFrame", nt = be["request" + tt], St = be["cancel" + tt] || be["cancelRequest" + tt];
|
|
1401
|
+
for (var dt = 0; !nt && dt < ar.length; dt++)
|
|
1402
|
+
nt = be[ar[dt] + "Request" + tt], St = be[ar[dt] + "Cancel" + tt] || be[ar[dt] + "CancelRequest" + tt];
|
|
1403
|
+
if (!nt || !St) {
|
|
1404
|
+
var ja = 0, io = 0, _e = [], ob = 1e3 / 60;
|
|
1405
|
+
nt = function(a) {
|
|
1406
|
+
if (_e.length === 0) {
|
|
1407
|
+
var e = sb(), t = Math.max(0, ob - (e - ja));
|
|
1408
|
+
ja = t + e, setTimeout(function() {
|
|
1409
|
+
var r = _e.slice(0);
|
|
1410
|
+
_e.length = 0;
|
|
1389
1411
|
for (var i = 0; i < r.length; i++)
|
|
1390
1412
|
if (!r[i].cancelled)
|
|
1391
1413
|
try {
|
|
1392
|
-
r[i].callback(
|
|
1414
|
+
r[i].callback(ja);
|
|
1393
1415
|
} catch (n) {
|
|
1394
1416
|
setTimeout(function() {
|
|
1395
1417
|
throw n;
|
|
@@ -1397,54 +1419,48 @@ if (!st || !St) {
|
|
|
1397
1419
|
}
|
|
1398
1420
|
}, Math.round(t));
|
|
1399
1421
|
}
|
|
1400
|
-
return
|
|
1401
|
-
handle: ++
|
|
1422
|
+
return _e.push({
|
|
1423
|
+
handle: ++io,
|
|
1402
1424
|
callback: a,
|
|
1403
1425
|
cancelled: !1
|
|
1404
|
-
}),
|
|
1426
|
+
}), io;
|
|
1405
1427
|
}, St = function(a) {
|
|
1406
|
-
for (var e = 0; e <
|
|
1407
|
-
|
|
1428
|
+
for (var e = 0; e < _e.length; e++)
|
|
1429
|
+
_e[e].handle === a && (_e[e].cancelled = !0);
|
|
1408
1430
|
};
|
|
1409
1431
|
}
|
|
1410
|
-
|
|
1411
|
-
return
|
|
1432
|
+
Vr.exports = function(a) {
|
|
1433
|
+
return nt.call(be, a);
|
|
1412
1434
|
};
|
|
1413
|
-
|
|
1435
|
+
Vr.exports.cancel = function() {
|
|
1414
1436
|
St.apply(be, arguments);
|
|
1415
1437
|
};
|
|
1416
|
-
|
|
1417
|
-
a || (a = be), a.requestAnimationFrame =
|
|
1438
|
+
Vr.exports.polyfill = function(a) {
|
|
1439
|
+
a || (a = be), a.requestAnimationFrame = nt, a.cancelAnimationFrame = St;
|
|
1418
1440
|
};
|
|
1419
|
-
var
|
|
1420
|
-
const
|
|
1421
|
-
var
|
|
1422
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
1441
|
+
var ub = Vr.exports;
|
|
1442
|
+
const Fa = /* @__PURE__ */ Io(ub);
|
|
1443
|
+
var ol = `
|
|
1444
|
+
\v\f\r \u2028\u2029\uFEFF`, lb = L, hb = ve, vb = pe, gi = ol, no = lb("".replace), fb = RegExp("^[" + gi + "]+"), cb = RegExp("(^|[^" + gi + "])[" + gi + "]+$"), gb = function(a) {
|
|
1423
1445
|
return function(e) {
|
|
1424
|
-
var t =
|
|
1425
|
-
return a & 1 && (t =
|
|
1446
|
+
var t = vb(hb(e));
|
|
1447
|
+
return a & 1 && (t = no(t, fb, "")), a & 2 && (t = no(t, cb, "$1")), t;
|
|
1426
1448
|
};
|
|
1427
|
-
},
|
|
1428
|
-
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1429
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1430
|
-
start: Ba(1),
|
|
1431
|
-
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1432
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1433
|
-
end: Ba(2),
|
|
1449
|
+
}, db = {
|
|
1434
1450
|
// `String.prototype.trim` method
|
|
1435
1451
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1436
|
-
trim:
|
|
1437
|
-
},
|
|
1438
|
-
return
|
|
1439
|
-
return !!
|
|
1452
|
+
trim: gb(3)
|
|
1453
|
+
}, pb = $r.PROPER, yb = D, so = ol, oo = "
", mb = function(a) {
|
|
1454
|
+
return yb(function() {
|
|
1455
|
+
return !!so[a]() || oo[a]() !== oo || pb && so[a].name !== a;
|
|
1440
1456
|
});
|
|
1441
|
-
},
|
|
1442
|
-
|
|
1457
|
+
}, bb = ee, xb = db.trim, Tb = mb;
|
|
1458
|
+
bb({ target: "String", proto: !0, forced: Tb("trim") }, {
|
|
1443
1459
|
trim: function() {
|
|
1444
|
-
return
|
|
1460
|
+
return xb(this);
|
|
1445
1461
|
}
|
|
1446
1462
|
});
|
|
1447
|
-
var
|
|
1463
|
+
var Ob = function(a) {
|
|
1448
1464
|
this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
|
|
1449
1465
|
var e = {
|
|
1450
1466
|
aliceblue: "f0f8ff",
|
|
@@ -1663,41 +1679,41 @@ var ab = function(a) {
|
|
|
1663
1679
|
v.setAttribute("id", "rgbcolor-examples");
|
|
1664
1680
|
for (var l = 0; l < u.length; l++)
|
|
1665
1681
|
try {
|
|
1666
|
-
var
|
|
1667
|
-
p.style.cssText = "margin: 3px; border: 1px solid black; background:" +
|
|
1682
|
+
var g = document.createElement("li"), d = new RGBColor(u[l]), p = document.createElement("div");
|
|
1683
|
+
p.style.cssText = "margin: 3px; border: 1px solid black; background:" + d.toHex() + "; color:" + d.toHex(), p.appendChild(document.createTextNode("test"));
|
|
1668
1684
|
var y = document.createTextNode(
|
|
1669
|
-
" " + u[l] + " -> " +
|
|
1685
|
+
" " + u[l] + " -> " + d.toRGB() + " -> " + d.toHex()
|
|
1670
1686
|
);
|
|
1671
|
-
|
|
1687
|
+
g.appendChild(p), g.appendChild(y), v.appendChild(g);
|
|
1672
1688
|
} catch {
|
|
1673
1689
|
}
|
|
1674
1690
|
return v;
|
|
1675
1691
|
};
|
|
1676
1692
|
};
|
|
1677
|
-
const
|
|
1678
|
-
var
|
|
1679
|
-
|
|
1693
|
+
const di = /* @__PURE__ */ Io(Ob);
|
|
1694
|
+
var Sb = ee, Eb = Rr, $b = ru.indexOf, wb = il, pi = Eb([].indexOf), ul = !!pi && 1 / pi([1], 1, -0) < 0, Cb = ul || !wb("indexOf");
|
|
1695
|
+
Sb({ target: "Array", proto: !0, forced: Cb }, {
|
|
1680
1696
|
indexOf: function(e) {
|
|
1681
1697
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1682
|
-
return
|
|
1698
|
+
return ul ? pi(this, e, t) || 0 : $b(this, e, t);
|
|
1683
1699
|
}
|
|
1684
1700
|
});
|
|
1685
|
-
var
|
|
1686
|
-
|
|
1701
|
+
var Ab = ee, Pb = L, Rb = Ki, Nb = ve, uo = pe, Ib = Zi, Mb = Pb("".indexOf);
|
|
1702
|
+
Ab({ target: "String", proto: !0, forced: !Ib("includes") }, {
|
|
1687
1703
|
includes: function(e) {
|
|
1688
|
-
return !!~
|
|
1689
|
-
|
|
1690
|
-
|
|
1704
|
+
return !!~Mb(
|
|
1705
|
+
uo(Nb(this)),
|
|
1706
|
+
uo(Rb(e)),
|
|
1691
1707
|
arguments.length > 1 ? arguments[1] : void 0
|
|
1692
1708
|
);
|
|
1693
1709
|
}
|
|
1694
1710
|
});
|
|
1695
|
-
var
|
|
1696
|
-
return
|
|
1697
|
-
},
|
|
1698
|
-
|
|
1711
|
+
var _b = je, Vb = Array.isArray || function(e) {
|
|
1712
|
+
return _b(e) === "Array";
|
|
1713
|
+
}, Db = ee, Lb = L, kb = Vb, Bb = Lb([].reverse), lo = [1, 2];
|
|
1714
|
+
Db({ target: "Array", proto: !0, forced: String(lo) === String(lo.reverse()) }, {
|
|
1699
1715
|
reverse: function() {
|
|
1700
|
-
return
|
|
1716
|
+
return kb(this) && (this.length = this.length), Bb(this);
|
|
1701
1717
|
}
|
|
1702
1718
|
});
|
|
1703
1719
|
/*! *****************************************************************************
|
|
@@ -1714,21 +1730,21 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1714
1730
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1715
1731
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1716
1732
|
***************************************************************************** */
|
|
1717
|
-
var
|
|
1718
|
-
return (
|
|
1733
|
+
var ll = function(a, e) {
|
|
1734
|
+
return (ll = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
1719
1735
|
t.__proto__ = r;
|
|
1720
1736
|
} || function(t, r) {
|
|
1721
1737
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1722
1738
|
})(a, e);
|
|
1723
1739
|
};
|
|
1724
|
-
function
|
|
1740
|
+
function hl(a, e) {
|
|
1725
1741
|
if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1726
1742
|
function t() {
|
|
1727
1743
|
this.constructor = a;
|
|
1728
1744
|
}
|
|
1729
|
-
|
|
1745
|
+
ll(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
1730
1746
|
}
|
|
1731
|
-
function
|
|
1747
|
+
function jb(a) {
|
|
1732
1748
|
var e = "";
|
|
1733
1749
|
Array.isArray(a) || (a = [a]);
|
|
1734
1750
|
for (var t = 0; t < a.length; t++) {
|
|
@@ -1749,27 +1765,27 @@ function Tb(a) {
|
|
|
1749
1765
|
}
|
|
1750
1766
|
return e;
|
|
1751
1767
|
}
|
|
1752
|
-
function
|
|
1768
|
+
function yi(a, e) {
|
|
1753
1769
|
var t = a[0], r = a[1];
|
|
1754
1770
|
return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
|
|
1755
1771
|
}
|
|
1756
|
-
function
|
|
1772
|
+
function ue() {
|
|
1757
1773
|
for (var a = [], e = 0; e < arguments.length; e++) a[e] = arguments[e];
|
|
1758
1774
|
for (var t = 0; t < a.length; t++) if (typeof a[t] != "number") throw new Error("assertNumbers arguments[" + t + "] is not a number. " + typeof a[t] + " == typeof " + a[t]);
|
|
1759
1775
|
return !0;
|
|
1760
1776
|
}
|
|
1761
1777
|
var Ee = Math.PI;
|
|
1762
|
-
function
|
|
1778
|
+
function Ua(a, e, t) {
|
|
1763
1779
|
a.lArcFlag = a.lArcFlag === 0 ? 0 : 1, a.sweepFlag = a.sweepFlag === 0 ? 0 : 1;
|
|
1764
1780
|
var r = a.rX, i = a.rY, n = a.x, o = a.y;
|
|
1765
1781
|
r = Math.abs(a.rX), i = Math.abs(a.rY);
|
|
1766
|
-
var s =
|
|
1782
|
+
var s = yi([(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);
|
|
1767
1783
|
1 < h && (r *= Math.sqrt(h), i *= Math.sqrt(h)), a.rX = r, a.rY = i;
|
|
1768
|
-
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,
|
|
1769
|
-
a.cX =
|
|
1784
|
+
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, g = -i * u / r * c, d = yi([v, g], a.xRot / 180 * Ee);
|
|
1785
|
+
a.cX = d[0] + (e + n) / 2, a.cY = d[1] + (t + o) / 2, a.phi1 = Math.atan2((l - g) / i, (u - v) / r), a.phi2 = Math.atan2((-l - g) / 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;
|
|
1770
1786
|
}
|
|
1771
|
-
function
|
|
1772
|
-
|
|
1787
|
+
function ho(a, e, t) {
|
|
1788
|
+
ue(a, e, t);
|
|
1773
1789
|
var r = a * a + e * e - t * t;
|
|
1774
1790
|
if (0 > r) return [];
|
|
1775
1791
|
if (r === 0) return [[a * t / (a * a + e * e), e * t / (a * a + e * e)]];
|
|
@@ -1777,23 +1793,23 @@ function so(a, e, t) {
|
|
|
1777
1793
|
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)]];
|
|
1778
1794
|
}
|
|
1779
1795
|
var U, ye = Math.PI / 180;
|
|
1780
|
-
function
|
|
1796
|
+
function vo(a, e, t) {
|
|
1781
1797
|
return (1 - t) * a + t * e;
|
|
1782
1798
|
}
|
|
1783
|
-
function
|
|
1799
|
+
function fo(a, e, t, r) {
|
|
1784
1800
|
return a + Math.cos(r / 180 * Ee) * e + Math.sin(r / 180 * Ee) * t;
|
|
1785
1801
|
}
|
|
1786
|
-
function
|
|
1802
|
+
function co(a, e, t, r) {
|
|
1787
1803
|
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;
|
|
1788
1804
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
|
1789
1805
|
var v = h * h / 4 - f;
|
|
1790
1806
|
if (v < -c) return [];
|
|
1791
1807
|
if (v <= c) return [-h / 2];
|
|
1792
|
-
var
|
|
1793
|
-
return [-h / 2 -
|
|
1808
|
+
var g = Math.sqrt(v);
|
|
1809
|
+
return [-h / 2 - g, -h / 2 + g];
|
|
1794
1810
|
}(u / s, l / s, i);
|
|
1795
1811
|
}
|
|
1796
|
-
function
|
|
1812
|
+
function go(a, e, t, r, i) {
|
|
1797
1813
|
var n = 1 - i;
|
|
1798
1814
|
return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
|
|
1799
1815
|
}
|
|
@@ -1829,17 +1845,17 @@ function ho(a, e, t, r, i) {
|
|
|
1829
1845
|
};
|
|
1830
1846
|
}
|
|
1831
1847
|
function n(s, u, l, h, f, c) {
|
|
1832
|
-
return
|
|
1833
|
-
var y = v.x1, x = v.x2, b = v.relative && !isNaN(p), T = v.x !== void 0 ? v.x : b ? 0 :
|
|
1834
|
-
function E(
|
|
1835
|
-
return
|
|
1848
|
+
return ue(s, u, l, h, f, c), i(function(v, g, d, p) {
|
|
1849
|
+
var y = v.x1, x = v.x2, b = v.relative && !isNaN(p), T = v.x !== void 0 ? v.x : b ? 0 : g, $ = v.y !== void 0 ? v.y : b ? 0 : d;
|
|
1850
|
+
function E(se) {
|
|
1851
|
+
return se * se;
|
|
1836
1852
|
}
|
|
1837
|
-
v.type & m.HORIZ_LINE_TO && u !== 0 && (v.type = m.LINE_TO, v.y = v.relative ? 0 :
|
|
1853
|
+
v.type & m.HORIZ_LINE_TO && u !== 0 && (v.type = m.LINE_TO, v.y = v.relative ? 0 : d), v.type & m.VERT_LINE_TO && l !== 0 && (v.type = m.LINE_TO, v.x = v.relative ? 0 : g), 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));
|
|
1838
1854
|
var O = s * h - u * l;
|
|
1839
1855
|
if (v.xRot !== void 0 && (s !== 1 || u !== 0 || l !== 0 || h !== 1)) if (O === 0) delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = m.LINE_TO;
|
|
1840
1856
|
else {
|
|
1841
|
-
var C = v.xRot * Math.PI / 180,
|
|
1842
|
-
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 *
|
|
1857
|
+
var C = v.xRot * Math.PI / 180, P = Math.sin(C), V = Math.cos(C), j = 1 / E(v.rX), R = 1 / E(v.rY), X = E(V) * j + E(P) * R, W = 2 * P * V * (j - R), G = E(P) * j + E(V) * R, q = X * h * h - W * u * h + G * u * u, H = W * (s * h + u * l) - 2 * (X * l * h + G * s * u), Q = X * l * l - W * s * l + G * s * s, N = (Math.atan2(H, q - Q) + Math.PI) % Math.PI / 2, M = Math.sin(N), K = Math.cos(N);
|
|
1858
|
+
v.rX = Math.abs(O) / Math.sqrt(q * E(K) + H * M * K + Q * E(M)), v.rY = Math.abs(O) / Math.sqrt(q * E(M) - H * M * K + Q * E(K)), v.xRot = 180 * N / Math.PI;
|
|
1843
1859
|
}
|
|
1844
1860
|
return v.sweepFlag !== void 0 && 0 > O && (v.sweepFlag = +!v.sweepFlag), v;
|
|
1845
1861
|
});
|
|
@@ -1855,7 +1871,7 @@ function ho(a, e, t, r, i) {
|
|
|
1855
1871
|
function u(l) {
|
|
1856
1872
|
return Math.round(l * s) / s;
|
|
1857
1873
|
}
|
|
1858
|
-
return s === void 0 && (s = 1e13),
|
|
1874
|
+
return s === void 0 && (s = 1e13), ue(s), function(l) {
|
|
1859
1875
|
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;
|
|
1860
1876
|
};
|
|
1861
1877
|
}, a.TO_ABS = e, a.TO_REL = function() {
|
|
@@ -1863,90 +1879,90 @@ function ho(a, e, t, r, i) {
|
|
|
1863
1879
|
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;
|
|
1864
1880
|
});
|
|
1865
1881
|
}, a.NORMALIZE_HVZ = function(s, u, l) {
|
|
1866
|
-
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, f, c, v,
|
|
1882
|
+
return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, f, c, v, g) {
|
|
1867
1883
|
if (isNaN(v) && !(h.type & m.MOVE_TO)) throw new Error("path must start with moveto");
|
|
1868
|
-
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 ?
|
|
1884
|
+
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 ? g - c : g), 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;
|
|
1869
1885
|
});
|
|
1870
1886
|
}, a.NORMALIZE_ST = t, a.QT_TO_C = r, a.INFO = i, a.SANITIZE = function(s) {
|
|
1871
|
-
s === void 0 && (s = 0),
|
|
1887
|
+
s === void 0 && (s = 0), ue(s);
|
|
1872
1888
|
var u = NaN, l = NaN, h = NaN, f = NaN;
|
|
1873
|
-
return i(function(c, v,
|
|
1889
|
+
return i(function(c, v, g, d, p) {
|
|
1874
1890
|
var y = Math.abs, x = !1, b = 0, T = 0;
|
|
1875
|
-
if (c.type & m.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : v - u, T = isNaN(l) ? 0 :
|
|
1876
|
-
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 -
|
|
1877
|
-
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 -
|
|
1878
|
-
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 -
|
|
1891
|
+
if (c.type & m.SMOOTH_CURVE_TO && (b = isNaN(u) ? 0 : v - u, T = isNaN(l) ? 0 : g - l), c.type & (m.CURVE_TO | m.SMOOTH_CURVE_TO) ? (u = c.relative ? v + c.x2 : c.x2, l = c.relative ? g + c.y2 : c.y2) : (u = NaN, l = NaN), c.type & m.SMOOTH_QUAD_TO ? (h = isNaN(h) ? v : 2 * v - h, f = isNaN(f) ? g : 2 * g - f) : c.type & m.QUAD_TO ? (h = c.relative ? v + c.x1 : c.x1, f = c.relative ? g + 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) {
|
|
1892
|
+
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 - g;
|
|
1893
|
+
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 - g : f - g;
|
|
1894
|
+
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 - g;
|
|
1879
1895
|
y($) <= s && y(E) <= s && y(b) <= s && y(T) <= s && y(O) <= s && y(C) <= s && (x = !0);
|
|
1880
1896
|
}
|
|
1881
|
-
return c.type & m.CLOSE_PATH && y(v -
|
|
1897
|
+
return c.type & m.CLOSE_PATH && y(v - d) <= s && y(g - p) <= s && (x = !0), x ? [] : c;
|
|
1882
1898
|
});
|
|
1883
1899
|
}, a.MATRIX = n, a.ROTATE = function(s, u, l) {
|
|
1884
|
-
u === void 0 && (u = 0), l === void 0 && (l = 0),
|
|
1900
|
+
u === void 0 && (u = 0), l === void 0 && (l = 0), ue(s, u, l);
|
|
1885
1901
|
var h = Math.sin(s), f = Math.cos(s);
|
|
1886
1902
|
return n(f, h, -h, f, u - u * f + l * h, l - u * h - l * f);
|
|
1887
1903
|
}, a.TRANSLATE = function(s, u) {
|
|
1888
|
-
return u === void 0 && (u = 0),
|
|
1904
|
+
return u === void 0 && (u = 0), ue(s, u), n(1, 0, 0, 1, s, u);
|
|
1889
1905
|
}, a.SCALE = function(s, u) {
|
|
1890
|
-
return u === void 0 && (u = s),
|
|
1906
|
+
return u === void 0 && (u = s), ue(s, u), n(s, 0, 0, u, 0, 0);
|
|
1891
1907
|
}, a.SKEW_X = function(s) {
|
|
1892
|
-
return
|
|
1908
|
+
return ue(s), n(1, 0, Math.atan(s), 1, 0, 0);
|
|
1893
1909
|
}, a.SKEW_Y = function(s) {
|
|
1894
|
-
return
|
|
1910
|
+
return ue(s), n(1, Math.atan(s), 0, 1, 0, 0);
|
|
1895
1911
|
}, a.X_AXIS_SYMMETRY = function(s) {
|
|
1896
|
-
return s === void 0 && (s = 0),
|
|
1912
|
+
return s === void 0 && (s = 0), ue(s), n(-1, 0, 0, 1, s, 0);
|
|
1897
1913
|
}, a.Y_AXIS_SYMMETRY = function(s) {
|
|
1898
|
-
return s === void 0 && (s = 0),
|
|
1914
|
+
return s === void 0 && (s = 0), ue(s), n(1, 0, 0, -1, 0, s);
|
|
1899
1915
|
}, a.A_TO_C = function() {
|
|
1900
1916
|
return i(function(s, u, l) {
|
|
1901
1917
|
return m.ARC === s.type ? function(h, f, c) {
|
|
1902
|
-
var v,
|
|
1903
|
-
h.cX ||
|
|
1918
|
+
var v, g, d, p;
|
|
1919
|
+
h.cX || Ua(h, f, c);
|
|
1904
1920
|
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++) {
|
|
1905
|
-
var C =
|
|
1921
|
+
var C = vo(h.phi1, h.phi2, O / b), P = vo(h.phi1, h.phi2, (O + 1) / b), V = P - C, j = 4 / 3 * Math.tan(V * ye / 4), R = [Math.cos(C * ye) - j * Math.sin(C * ye), Math.sin(C * ye) + j * Math.cos(C * ye)], X = R[0], W = R[1], G = [Math.cos(P * ye), Math.sin(P * ye)], q = G[0], H = G[1], Q = [q + j * Math.sin(P * ye), H - j * Math.cos(P * ye)], N = Q[0], M = Q[1];
|
|
1906
1922
|
T[O] = { relative: h.relative, type: m.CURVE_TO };
|
|
1907
|
-
var K = function(
|
|
1908
|
-
var Se =
|
|
1923
|
+
var K = function(se, ge) {
|
|
1924
|
+
var Se = yi([se * h.rX, ge * h.rY], h.xRot), ze = Se[0], It = Se[1];
|
|
1909
1925
|
return [h.cX + ze, h.cY + It];
|
|
1910
1926
|
};
|
|
1911
|
-
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1],
|
|
1927
|
+
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1], g = K(N, M), T[O].x2 = g[0], T[O].y2 = g[1], d = K(q, H), T[O].x = d[0], T[O].y = d[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];
|
|
1912
1928
|
}
|
|
1913
1929
|
return T;
|
|
1914
1930
|
}(s, s.relative ? 0 : u, s.relative ? 0 : l) : s;
|
|
1915
1931
|
});
|
|
1916
1932
|
}, a.ANNOTATE_ARCS = function() {
|
|
1917
1933
|
return i(function(s, u, l) {
|
|
1918
|
-
return s.relative && (u = 0, l = 0), m.ARC === s.type &&
|
|
1934
|
+
return s.relative && (u = 0, l = 0), m.ARC === s.type && Ua(s, u, l), s;
|
|
1919
1935
|
});
|
|
1920
1936
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
|
1921
1937
|
var s = function(c) {
|
|
1922
1938
|
var v = {};
|
|
1923
|
-
for (var
|
|
1939
|
+
for (var g in c) v[g] = c[g];
|
|
1924
1940
|
return v;
|
|
1925
|
-
}, u = e(), l = r(), h = t(), f = i(function(c, v,
|
|
1926
|
-
var
|
|
1941
|
+
}, u = e(), l = r(), h = t(), f = i(function(c, v, g) {
|
|
1942
|
+
var d = h(l(u(s(c))));
|
|
1927
1943
|
function p(M) {
|
|
1928
1944
|
M > f.maxX && (f.maxX = M), M < f.minX && (f.minX = M);
|
|
1929
1945
|
}
|
|
1930
1946
|
function y(M) {
|
|
1931
1947
|
M > f.maxY && (f.maxY = M), M < f.minY && (f.minY = M);
|
|
1932
1948
|
}
|
|
1933
|
-
if (
|
|
1934
|
-
p(
|
|
1935
|
-
for (var x = 0, b =
|
|
1936
|
-
0 < (
|
|
1937
|
-
for (var T = 0, $ =
|
|
1938
|
-
0 < (
|
|
1949
|
+
if (d.type & m.DRAWING_COMMANDS && (p(v), y(g)), d.type & m.HORIZ_LINE_TO && p(d.x), d.type & m.VERT_LINE_TO && y(d.y), d.type & m.LINE_TO && (p(d.x), y(d.y)), d.type & m.CURVE_TO) {
|
|
1950
|
+
p(d.x), y(d.y);
|
|
1951
|
+
for (var x = 0, b = co(v, d.x1, d.x2, d.x); x < b.length; x++)
|
|
1952
|
+
0 < (N = b[x]) && 1 > N && p(go(v, d.x1, d.x2, d.x, N));
|
|
1953
|
+
for (var T = 0, $ = co(g, d.y1, d.y2, d.y); T < $.length; T++)
|
|
1954
|
+
0 < (N = $[T]) && 1 > N && y(go(g, d.y1, d.y2, d.y, N));
|
|
1939
1955
|
}
|
|
1940
|
-
if (
|
|
1941
|
-
p(
|
|
1942
|
-
for (var E =
|
|
1943
|
-
var K = M[0],
|
|
1944
|
-
return ge <
|
|
1945
|
-
}, G = 0, q =
|
|
1946
|
-
(
|
|
1947
|
-
for (var H = 0, Q =
|
|
1948
|
-
var
|
|
1949
|
-
(
|
|
1956
|
+
if (d.type & m.ARC) {
|
|
1957
|
+
p(d.x), y(d.y), Ua(d, v, g);
|
|
1958
|
+
for (var E = d.xRot / 180 * Math.PI, O = Math.cos(E) * d.rX, C = Math.sin(E) * d.rX, P = -Math.sin(E) * d.rY, V = Math.cos(E) * d.rY, j = d.phi1 < d.phi2 ? [d.phi1, d.phi2] : -180 > d.phi2 ? [d.phi2 + 360, d.phi1 + 360] : [d.phi2, d.phi1], R = j[0], X = j[1], W = function(M) {
|
|
1959
|
+
var K = M[0], se = M[1], ge = 180 * Math.atan2(se, K) / Math.PI;
|
|
1960
|
+
return ge < R ? ge + 360 : ge;
|
|
1961
|
+
}, G = 0, q = ho(P, -O, 0).map(W); G < q.length; G++)
|
|
1962
|
+
(N = q[G]) > R && N < X && p(fo(d.cX, O, P, N));
|
|
1963
|
+
for (var H = 0, Q = ho(V, -C, 0).map(W); H < Q.length; H++) {
|
|
1964
|
+
var N;
|
|
1965
|
+
(N = Q[H]) > R && N < X && y(fo(d.cY, C, V, N));
|
|
1950
1966
|
}
|
|
1951
1967
|
}
|
|
1952
1968
|
return c;
|
|
@@ -1954,7 +1970,7 @@ function ho(a, e, t, r, i) {
|
|
|
1954
1970
|
return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
|
|
1955
1971
|
};
|
|
1956
1972
|
})(U || (U = {}));
|
|
1957
|
-
var
|
|
1973
|
+
var oe, vl = function() {
|
|
1958
1974
|
function a() {
|
|
1959
1975
|
}
|
|
1960
1976
|
return a.prototype.round = function(e) {
|
|
@@ -1992,17 +2008,17 @@ var se, sl = function() {
|
|
|
1992
2008
|
}, a.prototype.annotateArcs = function() {
|
|
1993
2009
|
return this.transform(U.ANNOTATE_ARCS());
|
|
1994
2010
|
}, a;
|
|
1995
|
-
}(),
|
|
2011
|
+
}(), Fb = function(a) {
|
|
1996
2012
|
return a === " " || a === " " || a === "\r" || a === `
|
|
1997
2013
|
`;
|
|
1998
|
-
},
|
|
2014
|
+
}, po = function(a) {
|
|
1999
2015
|
return 48 <= a.charCodeAt(0) && a.charCodeAt(0) <= 57;
|
|
2000
|
-
},
|
|
2016
|
+
}, Ub = function(a) {
|
|
2001
2017
|
function e() {
|
|
2002
2018
|
var t = a.call(this) || this;
|
|
2003
2019
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
|
2004
2020
|
}
|
|
2005
|
-
return
|
|
2021
|
+
return hl(e, a), e.prototype.finish = function(t) {
|
|
2006
2022
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma) throw new SyntaxError("Unterminated command at the path end.");
|
|
2007
2023
|
return t;
|
|
2008
2024
|
}, e.prototype.parse = function(t, r) {
|
|
@@ -2011,8 +2027,8 @@ var se, sl = function() {
|
|
|
2011
2027
|
for (var n = function(f) {
|
|
2012
2028
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
|
2013
2029
|
}, o = 0; o < t.length; o++) {
|
|
2014
|
-
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 =
|
|
2015
|
-
if (!
|
|
2030
|
+
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 = po(s) && (this.curNumber === "0" && s === "0" || u);
|
|
2031
|
+
if (!po(s) || l) if (s !== "e" && s !== "E") if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits) if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
|
2016
2032
|
if (this.curNumber && this.curCommandType !== -1) {
|
|
2017
2033
|
var h = Number(this.curNumber);
|
|
2018
2034
|
if (isNaN(h)) throw new SyntaxError("Invalid number ending at " + o);
|
|
@@ -2021,9 +2037,9 @@ var se, sl = function() {
|
|
|
2021
2037
|
if (0 > h) throw new SyntaxError('Expected positive number, got "' + h + '" at index "' + o + '"');
|
|
2022
2038
|
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1") throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
|
|
2023
2039
|
}
|
|
2024
|
-
this.curArgs.push(h), this.curArgs.length ===
|
|
2040
|
+
this.curArgs.push(h), this.curArgs.length === Gb[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;
|
|
2025
2041
|
}
|
|
2026
|
-
if (!
|
|
2042
|
+
if (!Fb(s)) if (s === "," && this.canParseCommandOrComma) this.canParseCommandOrComma = !1;
|
|
2027
2043
|
else if (s !== "+" && s !== "-" && s !== ".") if (l) this.curNumber = s, this.curNumberHasDecimal = !1;
|
|
2028
2044
|
else {
|
|
2029
2045
|
if (this.curArgs.length !== 0) throw new SyntaxError("Unterminated command at index " + o + ".");
|
|
@@ -2059,12 +2075,12 @@ var se, sl = function() {
|
|
|
2059
2075
|
return i;
|
|
2060
2076
|
} } });
|
|
2061
2077
|
}, e;
|
|
2062
|
-
}(
|
|
2078
|
+
}(vl), m = function(a) {
|
|
2063
2079
|
function e(t) {
|
|
2064
2080
|
var r = a.call(this) || this;
|
|
2065
2081
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
|
2066
2082
|
}
|
|
2067
|
-
return
|
|
2083
|
+
return hl(e, a), e.prototype.encode = function() {
|
|
2068
2084
|
return e.encode(this.commands);
|
|
2069
2085
|
}, e.prototype.getBounds = function() {
|
|
2070
2086
|
var t = U.CALCULATE_BOUNDS();
|
|
@@ -2076,36 +2092,33 @@ var se, sl = function() {
|
|
|
2076
2092
|
}
|
|
2077
2093
|
return this.commands = r, this;
|
|
2078
2094
|
}, e.encode = function(t) {
|
|
2079
|
-
return
|
|
2095
|
+
return jb(t);
|
|
2080
2096
|
}, e.parse = function(t) {
|
|
2081
|
-
var r = new
|
|
2097
|
+
var r = new Ub(), i = [];
|
|
2082
2098
|
return r.parse(t, i), r.finish(i), i;
|
|
2083
2099
|
}, 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;
|
|
2084
|
-
}(
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
}), Db = Rb && ul.name !== en;
|
|
2090
|
-
(Vb || Db) && Nb(ol, en, function() {
|
|
2091
|
-
var e = Ib(this), t = co(e.source), r = co(_b(e));
|
|
2100
|
+
}(vl), Gb = ((oe = {})[m.MOVE_TO] = 2, oe[m.LINE_TO] = 2, oe[m.HORIZ_LINE_TO] = 1, oe[m.VERT_LINE_TO] = 1, oe[m.CLOSE_PATH] = 0, oe[m.QUAD_TO] = 4, oe[m.SMOOTH_QUAD_TO] = 2, oe[m.CURVE_TO] = 6, oe[m.SMOOTH_CURVE_TO] = 4, oe[m.ARC] = 7, oe), zb = $r.PROPER, Hb = Ue, Yb = J, yo = pe, Xb = D, Wb = Wi, tn = "toString", fl = RegExp.prototype, cl = fl[tn], qb = Xb(function() {
|
|
2101
|
+
return cl.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
2102
|
+
}), Qb = zb && cl.name !== tn;
|
|
2103
|
+
(qb || Qb) && Hb(fl, tn, function() {
|
|
2104
|
+
var e = Yb(this), t = yo(e.source), r = yo(Wb(e));
|
|
2092
2105
|
return "/" + t + "/" + r;
|
|
2093
2106
|
}, { unsafe: !0 });
|
|
2094
|
-
function
|
|
2107
|
+
function fr(a) {
|
|
2095
2108
|
"@babel/helpers - typeof";
|
|
2096
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2109
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fr = function(e) {
|
|
2097
2110
|
return typeof e;
|
|
2098
|
-
} :
|
|
2111
|
+
} : fr = function(e) {
|
|
2099
2112
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2100
|
-
},
|
|
2113
|
+
}, fr(a);
|
|
2101
2114
|
}
|
|
2102
|
-
function
|
|
2115
|
+
function Kb(a, e) {
|
|
2103
2116
|
if (!(a instanceof e))
|
|
2104
2117
|
throw new TypeError("Cannot call a class as a function");
|
|
2105
2118
|
}
|
|
2106
|
-
var
|
|
2107
|
-
function
|
|
2108
|
-
if (typeof a == "string" && (a = document.getElementById(a)), !a ||
|
|
2119
|
+
var Zb = [512, 512, 456, 512, 328, 456, 335, 512, 405, 328, 271, 456, 388, 335, 292, 512, 454, 405, 364, 328, 298, 271, 496, 456, 420, 388, 360, 335, 312, 292, 273, 512, 482, 454, 428, 405, 383, 364, 345, 328, 312, 298, 284, 271, 259, 496, 475, 456, 437, 420, 404, 388, 374, 360, 347, 335, 323, 312, 302, 292, 282, 273, 265, 512, 497, 482, 468, 454, 441, 428, 417, 405, 394, 383, 373, 364, 354, 345, 337, 328, 320, 312, 305, 298, 291, 284, 278, 271, 265, 259, 507, 496, 485, 475, 465, 456, 446, 437, 428, 420, 412, 404, 396, 388, 381, 374, 367, 360, 354, 347, 341, 335, 329, 323, 318, 312, 307, 302, 297, 292, 287, 282, 278, 273, 269, 265, 261, 512, 505, 497, 489, 482, 475, 468, 461, 454, 447, 441, 435, 428, 422, 417, 411, 405, 399, 394, 389, 383, 378, 373, 368, 364, 359, 354, 350, 345, 341, 337, 332, 328, 324, 320, 316, 312, 309, 305, 301, 298, 294, 291, 287, 284, 281, 278, 274, 271, 268, 265, 262, 259, 257, 507, 501, 496, 491, 485, 480, 475, 470, 465, 460, 456, 451, 446, 442, 437, 433, 428, 424, 420, 416, 412, 408, 404, 400, 396, 392, 388, 385, 381, 377, 374, 370, 367, 363, 360, 357, 354, 350, 347, 344, 341, 338, 335, 332, 329, 326, 323, 320, 318, 315, 312, 310, 307, 304, 302, 299, 297, 294, 292, 289, 287, 285, 282, 280, 278, 275, 273, 271, 269, 267, 265, 263, 261, 259], Jb = [9, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24];
|
|
2120
|
+
function e1(a, e, t, r, i) {
|
|
2121
|
+
if (typeof a == "string" && (a = document.getElementById(a)), !a || fr(a) !== "object" || !("getContext" in a))
|
|
2109
2122
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
|
2110
2123
|
var n = a.getContext("2d");
|
|
2111
2124
|
try {
|
|
@@ -2114,69 +2127,69 @@ function jb(a, e, t, r, i) {
|
|
|
2114
2127
|
throw new Error("unable to access image data: " + o);
|
|
2115
2128
|
}
|
|
2116
2129
|
}
|
|
2117
|
-
function
|
|
2130
|
+
function t1(a, e, t, r, i, n) {
|
|
2118
2131
|
if (!(isNaN(n) || n < 1)) {
|
|
2119
2132
|
n |= 0;
|
|
2120
|
-
var o =
|
|
2121
|
-
o =
|
|
2133
|
+
var o = e1(a, e, t, r, i);
|
|
2134
|
+
o = r1(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
|
2122
2135
|
}
|
|
2123
2136
|
}
|
|
2124
|
-
function
|
|
2125
|
-
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
|
|
2126
|
-
v = v.next = new
|
|
2137
|
+
function r1(a, e, t, r, i, n) {
|
|
2138
|
+
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 mo(), v = c, g, d = 1; d < s; d++)
|
|
2139
|
+
v = v.next = new mo(), d === h && (g = v);
|
|
2127
2140
|
v.next = c;
|
|
2128
|
-
for (var p = null, y = null, x = 0, b = 0, T =
|
|
2141
|
+
for (var p = null, y = null, x = 0, b = 0, T = Zb[n], $ = Jb[n], E = 0; E < i; E++) {
|
|
2129
2142
|
v = c;
|
|
2130
|
-
for (var O = o[b], C = o[b + 1],
|
|
2131
|
-
v.r = O, v.g = C, v.b =
|
|
2132
|
-
for (var
|
|
2133
|
-
var ze = b + ((u < Se ? u : Se) << 2), It = o[ze],
|
|
2134
|
-
M += (v.r = It) * Mt, K += (v.g =
|
|
2143
|
+
for (var O = o[b], C = o[b + 1], P = o[b + 2], V = o[b + 3], j = 0; j < h; j++)
|
|
2144
|
+
v.r = O, v.g = C, v.b = P, v.a = V, v = v.next;
|
|
2145
|
+
for (var R = 0, X = 0, W = 0, G = 0, q = h * O, H = h * C, Q = h * P, N = h * V, M = f * O, K = f * C, se = f * P, ge = f * V, Se = 1; Se < h; Se++) {
|
|
2146
|
+
var ze = b + ((u < Se ? u : Se) << 2), It = o[ze], nn = o[ze + 1], sn = o[ze + 2], on = o[ze + 3], Mt = h - Se;
|
|
2147
|
+
M += (v.r = It) * Mt, K += (v.g = nn) * Mt, se += (v.b = sn) * Mt, ge += (v.a = on) * Mt, R += It, X += nn, W += sn, G += on, v = v.next;
|
|
2135
2148
|
}
|
|
2136
|
-
p = c, y =
|
|
2137
|
-
for (var
|
|
2138
|
-
var
|
|
2139
|
-
if (o[b + 3] =
|
|
2140
|
-
var
|
|
2141
|
-
o[b] = (M * T >>> $) *
|
|
2149
|
+
p = c, y = g;
|
|
2150
|
+
for (var jr = 0; jr < r; jr++) {
|
|
2151
|
+
var Fr = ge * T >>> $;
|
|
2152
|
+
if (o[b + 3] = Fr, Fr !== 0) {
|
|
2153
|
+
var Ur = 255 / Fr;
|
|
2154
|
+
o[b] = (M * T >>> $) * Ur, o[b + 1] = (K * T >>> $) * Ur, o[b + 2] = (se * T >>> $) * Ur;
|
|
2142
2155
|
} else
|
|
2143
2156
|
o[b] = o[b + 1] = o[b + 2] = 0;
|
|
2144
|
-
M -= q, K -= H,
|
|
2145
|
-
var Ae =
|
|
2146
|
-
Ae = x + (Ae < u ? Ae : u) << 2,
|
|
2147
|
-
var _t = y,
|
|
2148
|
-
q +=
|
|
2157
|
+
M -= q, K -= H, se -= Q, ge -= N, q -= p.r, H -= p.g, Q -= p.b, N -= p.a;
|
|
2158
|
+
var Ae = jr + n + 1;
|
|
2159
|
+
Ae = x + (Ae < u ? Ae : u) << 2, R += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2], G += p.a = o[Ae + 3], M += R, K += X, se += W, ge += G, p = p.next;
|
|
2160
|
+
var _t = y, un = _t.r, ln = _t.g, hn = _t.b, vn = _t.a;
|
|
2161
|
+
q += un, H += ln, Q += hn, N += vn, R -= un, X -= ln, W -= hn, G -= vn, y = y.next, b += 4;
|
|
2149
2162
|
}
|
|
2150
2163
|
x += r;
|
|
2151
2164
|
}
|
|
2152
2165
|
for (var He = 0; He < r; He++) {
|
|
2153
2166
|
b = He << 2;
|
|
2154
|
-
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3],
|
|
2167
|
+
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3], Gr = h * Pe, zr = h * Re, Hr = h * Ne, Yr = h * te, Vt = f * Pe, Dt = f * Re, Lt = f * Ne, kt = f * te;
|
|
2155
2168
|
v = c;
|
|
2156
|
-
for (var
|
|
2169
|
+
for (var fn = 0; fn < h; fn++)
|
|
2157
2170
|
v.r = Pe, v.g = Re, v.b = Ne, v.a = te, v = v.next;
|
|
2158
|
-
for (var
|
|
2159
|
-
b =
|
|
2171
|
+
for (var cn = r, Xr = 0, Wr = 0, qr = 0, Qr = 0, Bt = 1; Bt <= n; Bt++) {
|
|
2172
|
+
b = cn + He << 2;
|
|
2160
2173
|
var jt = h - Bt;
|
|
2161
|
-
Vt += (v.r = Pe = o[b]) * jt, Dt += (v.g = Re = o[b + 1]) * jt,
|
|
2174
|
+
Vt += (v.r = Pe = o[b]) * jt, Dt += (v.g = Re = o[b + 1]) * jt, Lt += (v.b = Ne = o[b + 2]) * jt, kt += (v.a = te = o[b + 3]) * jt, Qr += Pe, Xr += Re, Wr += Ne, qr += te, v = v.next, Bt < l && (cn += r);
|
|
2162
2175
|
}
|
|
2163
|
-
b = He, p = c, y =
|
|
2164
|
-
for (var
|
|
2176
|
+
b = He, p = c, y = g;
|
|
2177
|
+
for (var Kr = 0; Kr < i; Kr++) {
|
|
2165
2178
|
var re = b << 2;
|
|
2166
|
-
o[re + 3] = te =
|
|
2179
|
+
o[re + 3] = te = kt * T >>> $, te > 0 ? (te = 255 / te, o[re] = (Vt * T >>> $) * te, o[re + 1] = (Dt * T >>> $) * te, o[re + 2] = (Lt * T >>> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, Vt -= Gr, Dt -= zr, Lt -= Hr, kt -= Yr, Gr -= p.r, zr -= p.g, Hr -= p.b, Yr -= p.a, re = He + ((re = Kr + h) < l ? re : l) * r << 2, Vt += Qr += p.r = o[re], Dt += Xr += p.g = o[re + 1], Lt += Wr += p.b = o[re + 2], kt += qr += p.a = o[re + 3], p = p.next, Gr += Pe = y.r, zr += Re = y.g, Hr += Ne = y.b, Yr += te = y.a, Qr -= Pe, Xr -= Re, Wr -= Ne, qr -= te, y = y.next, b += r;
|
|
2167
2180
|
}
|
|
2168
2181
|
}
|
|
2169
2182
|
return a;
|
|
2170
2183
|
}
|
|
2171
|
-
var
|
|
2184
|
+
var mo = (
|
|
2172
2185
|
/**
|
|
2173
2186
|
* Set properties.
|
|
2174
2187
|
*/
|
|
2175
2188
|
function a() {
|
|
2176
|
-
|
|
2189
|
+
Kb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
|
2177
2190
|
}
|
|
2178
2191
|
);
|
|
2179
|
-
function
|
|
2192
|
+
function a1() {
|
|
2180
2193
|
var {
|
|
2181
2194
|
DOMParser: a
|
|
2182
2195
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
|
@@ -2196,7 +2209,7 @@ function Gb() {
|
|
|
2196
2209
|
};
|
|
2197
2210
|
return (typeof DOMParser < "u" || typeof a > "u") && Reflect.deleteProperty(e, "DOMParser"), e;
|
|
2198
2211
|
}
|
|
2199
|
-
function
|
|
2212
|
+
function i1(a) {
|
|
2200
2213
|
var {
|
|
2201
2214
|
DOMParser: e,
|
|
2202
2215
|
canvas: t,
|
|
@@ -2212,76 +2225,76 @@ function zb(a) {
|
|
|
2212
2225
|
createImage: t.loadImage
|
|
2213
2226
|
};
|
|
2214
2227
|
}
|
|
2215
|
-
var
|
|
2228
|
+
var p2 = /* @__PURE__ */ Object.freeze({
|
|
2216
2229
|
__proto__: null,
|
|
2217
|
-
offscreen:
|
|
2218
|
-
node:
|
|
2230
|
+
offscreen: a1,
|
|
2231
|
+
node: i1
|
|
2219
2232
|
});
|
|
2220
|
-
function
|
|
2233
|
+
function lt(a) {
|
|
2221
2234
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
|
2222
2235
|
}
|
|
2223
|
-
function
|
|
2236
|
+
function n1(a) {
|
|
2224
2237
|
return a.replace(/^[\n \t]+/, "");
|
|
2225
2238
|
}
|
|
2226
|
-
function
|
|
2239
|
+
function s1(a) {
|
|
2227
2240
|
return a.replace(/[\n \t]+$/, "");
|
|
2228
2241
|
}
|
|
2229
|
-
function
|
|
2242
|
+
function ne(a) {
|
|
2230
2243
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
|
2231
2244
|
return e.map(parseFloat);
|
|
2232
2245
|
}
|
|
2233
|
-
var
|
|
2234
|
-
function
|
|
2235
|
-
return
|
|
2246
|
+
var o1 = /^[A-Z-]+$/;
|
|
2247
|
+
function u1(a) {
|
|
2248
|
+
return o1.test(a) ? a.toLowerCase() : a;
|
|
2236
2249
|
}
|
|
2237
|
-
function
|
|
2250
|
+
function gl(a) {
|
|
2238
2251
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
|
2239
2252
|
return e[2] || e[3] || e[4];
|
|
2240
2253
|
}
|
|
2241
|
-
function
|
|
2254
|
+
function l1(a) {
|
|
2242
2255
|
if (!a.startsWith("rgb"))
|
|
2243
2256
|
return a;
|
|
2244
2257
|
var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
|
|
2245
2258
|
return t;
|
|
2246
2259
|
}
|
|
2247
|
-
var
|
|
2248
|
-
function
|
|
2260
|
+
var h1 = /(\[[^\]]+\])/g, v1 = /(#[^\s+>~.[:]+)/g, f1 = /(\.[^\s+>~.[:]+)/g, c1 = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, g1 = /(:[\w-]+\([^)]*\))/gi, d1 = /(:[^\s+>~.[:]+)/g, p1 = /([^\s+>~.[:]+)/g;
|
|
2261
|
+
function Ve(a, e) {
|
|
2249
2262
|
var t = e.exec(a);
|
|
2250
2263
|
return t ? [a.replace(e, " "), t.length] : [a, 0];
|
|
2251
2264
|
}
|
|
2252
|
-
function
|
|
2265
|
+
function y1(a) {
|
|
2253
2266
|
var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
|
|
2254
|
-
return [t, r] =
|
|
2267
|
+
return [t, r] = Ve(t, h1), e[1] += r, [t, r] = Ve(t, v1), e[0] += r, [t, r] = Ve(t, f1), e[1] += r, [t, r] = Ve(t, c1), e[2] += r, [t, r] = Ve(t, g1), e[1] += r, [t, r] = Ve(t, d1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = Ve(t, p1), e[2] += r, e.join("");
|
|
2255
2268
|
}
|
|
2256
|
-
var
|
|
2257
|
-
function
|
|
2269
|
+
var rt = 1e-8;
|
|
2270
|
+
function bo(a) {
|
|
2258
2271
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
|
2259
2272
|
}
|
|
2260
|
-
function
|
|
2261
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
|
2273
|
+
function mi(a, e) {
|
|
2274
|
+
return (a[0] * e[0] + a[1] * e[1]) / (bo(a) * bo(e));
|
|
2262
2275
|
}
|
|
2263
|
-
function
|
|
2264
|
-
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(
|
|
2276
|
+
function xo(a, e) {
|
|
2277
|
+
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(mi(a, e));
|
|
2265
2278
|
}
|
|
2266
|
-
function
|
|
2279
|
+
function To(a) {
|
|
2267
2280
|
return a * a * a;
|
|
2268
2281
|
}
|
|
2269
|
-
function
|
|
2282
|
+
function Oo(a) {
|
|
2270
2283
|
return 3 * a * a * (1 - a);
|
|
2271
2284
|
}
|
|
2272
|
-
function
|
|
2285
|
+
function So(a) {
|
|
2273
2286
|
return 3 * a * (1 - a) * (1 - a);
|
|
2274
2287
|
}
|
|
2275
|
-
function
|
|
2288
|
+
function Eo(a) {
|
|
2276
2289
|
return (1 - a) * (1 - a) * (1 - a);
|
|
2277
2290
|
}
|
|
2278
|
-
function
|
|
2291
|
+
function $o(a) {
|
|
2279
2292
|
return a * a;
|
|
2280
2293
|
}
|
|
2281
|
-
function
|
|
2294
|
+
function wo(a) {
|
|
2282
2295
|
return 2 * a * (1 - a);
|
|
2283
2296
|
}
|
|
2284
|
-
function
|
|
2297
|
+
function Co(a) {
|
|
2285
2298
|
return (1 - a) * (1 - a);
|
|
2286
2299
|
}
|
|
2287
2300
|
class S {
|
|
@@ -2296,7 +2309,7 @@ class S {
|
|
|
2296
2309
|
document: t,
|
|
2297
2310
|
name: r
|
|
2298
2311
|
} = this;
|
|
2299
|
-
return
|
|
2312
|
+
return lt(this.getString()).trim().split(e).map((i) => new S(t, r, i));
|
|
2300
2313
|
}
|
|
2301
2314
|
hasValue(e) {
|
|
2302
2315
|
var {
|
|
@@ -2344,7 +2357,7 @@ class S {
|
|
|
2344
2357
|
}
|
|
2345
2358
|
getColor(e) {
|
|
2346
2359
|
var t = this.getString(e);
|
|
2347
|
-
return this.isNormalizedColor || (this.isNormalizedColor = !0, t =
|
|
2360
|
+
return this.isNormalizedColor || (this.isNormalizedColor = !0, t = l1(t), this.value = t), t;
|
|
2348
2361
|
}
|
|
2349
2362
|
getDpi() {
|
|
2350
2363
|
return 96;
|
|
@@ -2445,7 +2458,7 @@ class S {
|
|
|
2445
2458
|
for (var t = this.getColor(), r = t.length, i = 0, n = 0; n < r && (t[n] === "," && i++, i !== 3); n++)
|
|
2446
2459
|
;
|
|
2447
2460
|
if (e.hasValue() && this.isString() && i !== 3) {
|
|
2448
|
-
var o = new
|
|
2461
|
+
var o = new di(t);
|
|
2449
2462
|
o.ok && (o.alpha = e.getNumber(), t = o.toRGBA());
|
|
2450
2463
|
}
|
|
2451
2464
|
return new S(this.document, this.name, t);
|
|
@@ -2464,7 +2477,7 @@ S.textBaselineMapping = {
|
|
|
2464
2477
|
hanging: "hanging",
|
|
2465
2478
|
mathematical: "alphabetic"
|
|
2466
2479
|
};
|
|
2467
|
-
class
|
|
2480
|
+
class m1 {
|
|
2468
2481
|
constructor() {
|
|
2469
2482
|
this.viewPorts = [];
|
|
2470
2483
|
}
|
|
@@ -2496,21 +2509,21 @@ class i1 {
|
|
|
2496
2509
|
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);
|
|
2497
2510
|
}
|
|
2498
2511
|
}
|
|
2499
|
-
class
|
|
2512
|
+
class k {
|
|
2500
2513
|
constructor(e, t) {
|
|
2501
2514
|
this.x = e, this.y = t;
|
|
2502
2515
|
}
|
|
2503
2516
|
static parse(e) {
|
|
2504
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [r = t, i = t] =
|
|
2505
|
-
return new
|
|
2517
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, [r = t, i = t] = ne(e);
|
|
2518
|
+
return new k(r, i);
|
|
2506
2519
|
}
|
|
2507
2520
|
static parseScale(e) {
|
|
2508
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [r = t, i = r] =
|
|
2509
|
-
return new
|
|
2521
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, [r = t, i = r] = ne(e);
|
|
2522
|
+
return new k(r, i);
|
|
2510
2523
|
}
|
|
2511
2524
|
static parsePath(e) {
|
|
2512
|
-
for (var t =
|
|
2513
|
-
i.push(new
|
|
2525
|
+
for (var t = ne(e), r = t.length, i = [], n = 0; n < r; n += 2)
|
|
2526
|
+
i.push(new k(t[n], t[n + 1]));
|
|
2514
2527
|
return i;
|
|
2515
2528
|
}
|
|
2516
2529
|
angleTo(e) {
|
|
@@ -2524,7 +2537,7 @@ class V {
|
|
|
2524
2537
|
this.x = i, this.y = n;
|
|
2525
2538
|
}
|
|
2526
2539
|
}
|
|
2527
|
-
class
|
|
2540
|
+
class b1 {
|
|
2528
2541
|
constructor(e) {
|
|
2529
2542
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
|
2530
2543
|
}
|
|
@@ -2601,7 +2614,7 @@ class n1 {
|
|
|
2601
2614
|
for (var {
|
|
2602
2615
|
window: r,
|
|
2603
2616
|
ctx: i
|
|
2604
|
-
} = this.screen, n = new
|
|
2617
|
+
} = this.screen, n = new k(e, t), o = i.canvas; o; )
|
|
2605
2618
|
n.x -= o.offsetLeft, n.y -= o.offsetTop, o = o.offsetParent;
|
|
2606
2619
|
return r.scrollX && (n.x += r.scrollX), r.scrollY && (n.y += r.scrollY), n;
|
|
2607
2620
|
}
|
|
@@ -2634,14 +2647,14 @@ class n1 {
|
|
|
2634
2647
|
});
|
|
2635
2648
|
}
|
|
2636
2649
|
}
|
|
2637
|
-
var
|
|
2638
|
-
class
|
|
2650
|
+
var dl = typeof window < "u" ? window : null, pl = typeof fetch < "u" ? fetch.bind(void 0) : null;
|
|
2651
|
+
class Dr {
|
|
2639
2652
|
constructor(e) {
|
|
2640
2653
|
var {
|
|
2641
|
-
fetch: t =
|
|
2642
|
-
window: r =
|
|
2654
|
+
fetch: t = pl,
|
|
2655
|
+
window: r = dl
|
|
2643
2656
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2644
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
|
2657
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new m1(), this.mouse = new b1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
|
|
2645
2658
|
}
|
|
2646
2659
|
wait(e) {
|
|
2647
2660
|
this.waits.push(e);
|
|
@@ -2672,18 +2685,18 @@ class Ir {
|
|
|
2672
2685
|
refX: f,
|
|
2673
2686
|
refY: c,
|
|
2674
2687
|
clip: v = !1,
|
|
2675
|
-
clipX:
|
|
2676
|
-
clipY:
|
|
2677
|
-
} = e, p =
|
|
2678
|
-
T === "meet" && (
|
|
2679
|
-
var j = new S(t, "refX", f),
|
|
2680
|
-
if (X && r.translate(-O * j.getPixels("x"), -O *
|
|
2681
|
-
var W = O *
|
|
2688
|
+
clipX: g = 0,
|
|
2689
|
+
clipY: d = 0
|
|
2690
|
+
} = e, p = lt(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), P = o, V = u;
|
|
2691
|
+
T === "meet" && (P *= O, V *= O), T === "slice" && (P *= C, V *= C);
|
|
2692
|
+
var j = new S(t, "refX", f), R = new S(t, "refY", c), X = j.hasValue() && R.hasValue();
|
|
2693
|
+
if (X && r.translate(-O * j.getPixels("x"), -O * R.getPixels("y")), v) {
|
|
2694
|
+
var W = O * g, G = O * d;
|
|
2682
2695
|
r.beginPath(), r.moveTo(W, G), r.lineTo(n, G), r.lineTo(n, s), r.lineTo(W, s), r.closePath(), r.clip();
|
|
2683
2696
|
}
|
|
2684
2697
|
if (!X) {
|
|
2685
|
-
var q = T === "meet" && O === E, H = T === "slice" && C === E, Q = T === "meet" && O === $,
|
|
2686
|
-
b.startsWith("xMid") && (q || H) && r.translate(n / 2 -
|
|
2698
|
+
var q = T === "meet" && O === E, H = T === "slice" && C === E, Q = T === "meet" && O === $, N = T === "slice" && C === $;
|
|
2699
|
+
b.startsWith("xMid") && (q || H) && r.translate(n / 2 - P / 2, 0), b.endsWith("YMid") && (Q || N) && r.translate(0, s / 2 - V / 2), b.startsWith("xMax") && (q || H) && r.translate(n - P, 0), b.endsWith("YMax") && (Q || N) && r.translate(0, s - V);
|
|
2687
2700
|
}
|
|
2688
2701
|
switch (!0) {
|
|
2689
2702
|
case b === "none":
|
|
@@ -2713,18 +2726,18 @@ class Ir {
|
|
|
2713
2726
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
2714
2727
|
FRAMERATE: c,
|
|
2715
2728
|
mouse: v
|
|
2716
|
-
} = this,
|
|
2717
|
-
if (this.frameDuration =
|
|
2729
|
+
} = this, g = 1e3 / c;
|
|
2730
|
+
if (this.frameDuration = g, this.readyPromise = new Promise((b) => {
|
|
2718
2731
|
this.resolveReady = b;
|
|
2719
2732
|
}), this.isReady() && this.render(e, n, o, u, l, h, f), !!t) {
|
|
2720
|
-
var
|
|
2721
|
-
|
|
2733
|
+
var d = Date.now(), p = d, y = 0, x = () => {
|
|
2734
|
+
d = Date.now(), y = d - p, y >= g && (p = d - y % g, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId = Fa(x);
|
|
2722
2735
|
};
|
|
2723
|
-
r || v.start(), this.intervalId =
|
|
2736
|
+
r || v.start(), this.intervalId = Fa(x);
|
|
2724
2737
|
}
|
|
2725
2738
|
}
|
|
2726
2739
|
stop() {
|
|
2727
|
-
this.intervalId && (
|
|
2740
|
+
this.intervalId && (Fa.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
|
|
2728
2741
|
}
|
|
2729
2742
|
shouldUpdate(e, t) {
|
|
2730
2743
|
if (!e) {
|
|
@@ -2745,11 +2758,11 @@ class Ir {
|
|
|
2745
2758
|
isFirstRender: c
|
|
2746
2759
|
} = this, v = f.canvas;
|
|
2747
2760
|
h.clear(), v.width && v.height ? h.setCurrent(v.width, v.height) : h.setCurrent(u, l);
|
|
2748
|
-
var
|
|
2749
|
-
!t && (c || typeof i != "number" && typeof n != "number") && (
|
|
2761
|
+
var g = e.getStyle("width"), d = e.getStyle("height");
|
|
2762
|
+
!t && (c || typeof i != "number" && typeof n != "number") && (g.hasValue() && (v.width = g.getPixels("x"), v.style && (v.style.width = "".concat(v.width, "px"))), d.hasValue() && (v.height = d.getPixels("y"), v.style && (v.style.height = "".concat(v.height, "px"))));
|
|
2750
2763
|
var p = v.clientWidth || v.width, y = v.clientHeight || v.height;
|
|
2751
|
-
if (t &&
|
|
2752
|
-
var x =
|
|
2764
|
+
if (t && g.hasValue() && d.hasValue() && (p = g.getPixels("x"), y = d.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") {
|
|
2765
|
+
var x = ne(e.getAttribute("viewBox").getString()), b = 0, T = 0;
|
|
2753
2766
|
if (typeof i == "number") {
|
|
2754
2767
|
var $ = e.getStyle("width");
|
|
2755
2768
|
$.hasValue() ? b = $.getPixels("x") / i : isNaN(x[2]) || (b = x[2] / i);
|
|
@@ -2765,16 +2778,16 @@ class Ir {
|
|
|
2765
2778
|
r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
|
|
2766
2779
|
}
|
|
2767
2780
|
}
|
|
2768
|
-
|
|
2769
|
-
|
|
2781
|
+
Dr.defaultWindow = dl;
|
|
2782
|
+
Dr.defaultFetch = pl;
|
|
2770
2783
|
var {
|
|
2771
|
-
defaultFetch:
|
|
2772
|
-
} =
|
|
2773
|
-
class
|
|
2784
|
+
defaultFetch: x1
|
|
2785
|
+
} = Dr, T1 = typeof DOMParser < "u" ? DOMParser : null;
|
|
2786
|
+
class Ga {
|
|
2774
2787
|
constructor() {
|
|
2775
2788
|
var {
|
|
2776
|
-
fetch: e =
|
|
2777
|
-
DOMParser: t =
|
|
2789
|
+
fetch: e = x1,
|
|
2790
|
+
DOMParser: t = T1
|
|
2778
2791
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2779
2792
|
this.fetch = e, this.DOMParser = t;
|
|
2780
2793
|
}
|
|
@@ -2806,9 +2819,9 @@ class Fa {
|
|
|
2806
2819
|
})();
|
|
2807
2820
|
}
|
|
2808
2821
|
}
|
|
2809
|
-
class
|
|
2822
|
+
class O1 {
|
|
2810
2823
|
constructor(e, t) {
|
|
2811
|
-
this.type = "translate", this.point = null, this.point =
|
|
2824
|
+
this.type = "translate", this.point = null, this.point = k.parse(t);
|
|
2812
2825
|
}
|
|
2813
2826
|
apply(e) {
|
|
2814
2827
|
var {
|
|
@@ -2832,10 +2845,10 @@ class u1 {
|
|
|
2832
2845
|
e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
|
|
2833
2846
|
}
|
|
2834
2847
|
}
|
|
2835
|
-
class
|
|
2848
|
+
class S1 {
|
|
2836
2849
|
constructor(e, t, r) {
|
|
2837
2850
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
|
2838
|
-
var i =
|
|
2851
|
+
var i = ne(t);
|
|
2839
2852
|
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;
|
|
2840
2853
|
}
|
|
2841
2854
|
apply(e) {
|
|
@@ -2883,11 +2896,11 @@ class l1 {
|
|
|
2883
2896
|
]);
|
|
2884
2897
|
}
|
|
2885
2898
|
}
|
|
2886
|
-
class
|
|
2899
|
+
class E1 {
|
|
2887
2900
|
constructor(e, t, r) {
|
|
2888
2901
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
|
2889
|
-
var i =
|
|
2890
|
-
(i.x === 0 || i.y === 0) && (i.x =
|
|
2902
|
+
var i = k.parseScale(t);
|
|
2903
|
+
(i.x === 0 || i.y === 0) && (i.x = rt, i.y = rt), this.scale = i, this.originX = r[0], this.originY = r[1];
|
|
2891
2904
|
}
|
|
2892
2905
|
apply(e) {
|
|
2893
2906
|
var {
|
|
@@ -2919,9 +2932,9 @@ class h1 {
|
|
|
2919
2932
|
e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
|
|
2920
2933
|
}
|
|
2921
2934
|
}
|
|
2922
|
-
class
|
|
2935
|
+
class yl {
|
|
2923
2936
|
constructor(e, t, r) {
|
|
2924
|
-
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix =
|
|
2937
|
+
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ne(t), this.originX = r[0], this.originY = r[1];
|
|
2925
2938
|
}
|
|
2926
2939
|
apply(e) {
|
|
2927
2940
|
var {
|
|
@@ -2936,49 +2949,49 @@ class fl {
|
|
|
2936
2949
|
originX: t,
|
|
2937
2950
|
originY: r,
|
|
2938
2951
|
matrix: i
|
|
2939
|
-
} = 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,
|
|
2940
|
-
e.translate(
|
|
2952
|
+
} = 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, g = 1 / (n * (l * v - h * c) - o * (u * v - h * f) + s * (u * c - l * f)), d = t.getPixels("x"), p = r.getPixels("y");
|
|
2953
|
+
e.translate(d, p), e.transform(g * (l * v - h * c), g * (h * f - u * v), g * (s * c - o * v), g * (n * v - s * f), g * (o * h - s * l), g * (s * u - n * h)), e.translate(-d, -p);
|
|
2941
2954
|
}
|
|
2942
2955
|
applyToPoint(e) {
|
|
2943
2956
|
e.applyTransform(this.matrix);
|
|
2944
2957
|
}
|
|
2945
2958
|
}
|
|
2946
|
-
class
|
|
2959
|
+
class ml extends yl {
|
|
2947
2960
|
constructor(e, t, r) {
|
|
2948
2961
|
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
|
|
2949
2962
|
}
|
|
2950
2963
|
}
|
|
2951
|
-
class
|
|
2964
|
+
class $1 extends ml {
|
|
2952
2965
|
constructor(e, t, r) {
|
|
2953
2966
|
super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
|
|
2954
2967
|
}
|
|
2955
2968
|
}
|
|
2956
|
-
class
|
|
2969
|
+
class w1 extends ml {
|
|
2957
2970
|
constructor(e, t, r) {
|
|
2958
2971
|
super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
|
|
2959
2972
|
}
|
|
2960
2973
|
}
|
|
2961
|
-
function
|
|
2962
|
-
return
|
|
2974
|
+
function C1(a) {
|
|
2975
|
+
return lt(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
|
2963
2976
|
}
|
|
2964
|
-
function
|
|
2977
|
+
function A1(a) {
|
|
2965
2978
|
var [e, t] = a.split("(");
|
|
2966
2979
|
return [e.trim(), t.trim().replace(")", "")];
|
|
2967
2980
|
}
|
|
2968
|
-
class
|
|
2981
|
+
class Be {
|
|
2969
2982
|
constructor(e, t, r) {
|
|
2970
2983
|
this.document = e, this.transforms = [];
|
|
2971
|
-
var i =
|
|
2984
|
+
var i = C1(t);
|
|
2972
2985
|
i.forEach((n) => {
|
|
2973
2986
|
if (n !== "none") {
|
|
2974
|
-
var [o, s] =
|
|
2987
|
+
var [o, s] = A1(n), u = Be.transformTypes[o];
|
|
2975
2988
|
typeof u < "u" && this.transforms.push(new u(this.document, s, r));
|
|
2976
2989
|
}
|
|
2977
2990
|
});
|
|
2978
2991
|
}
|
|
2979
2992
|
static fromElement(e, t) {
|
|
2980
2993
|
var r = t.getStyle("transform", !1, !0), [i, n = i] = t.getStyle("transform-origin", !1, !0).split(), o = [i, n];
|
|
2981
|
-
return r.hasValue() ? new
|
|
2994
|
+
return r.hasValue() ? new Be(e, r.getString(), o) : null;
|
|
2982
2995
|
}
|
|
2983
2996
|
apply(e) {
|
|
2984
2997
|
for (var {
|
|
@@ -3000,20 +3013,20 @@ class Le {
|
|
|
3000
3013
|
t[i].applyToPoint(e);
|
|
3001
3014
|
}
|
|
3002
3015
|
}
|
|
3003
|
-
|
|
3004
|
-
translate:
|
|
3005
|
-
rotate:
|
|
3006
|
-
scale:
|
|
3007
|
-
matrix:
|
|
3008
|
-
skewX:
|
|
3009
|
-
skewY:
|
|
3016
|
+
Be.transformTypes = {
|
|
3017
|
+
translate: O1,
|
|
3018
|
+
rotate: S1,
|
|
3019
|
+
scale: E1,
|
|
3020
|
+
matrix: yl,
|
|
3021
|
+
skewX: $1,
|
|
3022
|
+
skewY: w1
|
|
3010
3023
|
};
|
|
3011
|
-
class
|
|
3024
|
+
class I {
|
|
3012
3025
|
constructor(e, t) {
|
|
3013
3026
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3014
|
-
if (this.document = e, this.node = t, this.captureTextNodes = r, this.attributes =
|
|
3027
|
+
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)) {
|
|
3015
3028
|
if (Array.from(t.attributes).forEach((s) => {
|
|
3016
|
-
var u =
|
|
3029
|
+
var u = u1(s.nodeName);
|
|
3017
3030
|
this.attributes[u] = new S(e, u, s.value);
|
|
3018
3031
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
|
3019
3032
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
|
@@ -3090,7 +3103,7 @@ class N {
|
|
|
3090
3103
|
setContext(e) {
|
|
3091
3104
|
}
|
|
3092
3105
|
applyEffects(e) {
|
|
3093
|
-
var t =
|
|
3106
|
+
var t = Be.fromElement(this.document, this);
|
|
3094
3107
|
t && t.apply(e);
|
|
3095
3108
|
var r = this.getStyle("clip-path", !1, !0);
|
|
3096
3109
|
if (r.hasValue()) {
|
|
@@ -3106,8 +3119,8 @@ class N {
|
|
|
3106
3119
|
});
|
|
3107
3120
|
}
|
|
3108
3121
|
addChild(e) {
|
|
3109
|
-
var t = e instanceof
|
|
3110
|
-
t.parent = this,
|
|
3122
|
+
var t = e instanceof I ? e : this.document.createElement(e);
|
|
3123
|
+
t.parent = this, I.ignoreChildTypes.includes(t.type) || this.children.push(t);
|
|
3111
3124
|
}
|
|
3112
3125
|
matchesSelector(e) {
|
|
3113
3126
|
var t, {
|
|
@@ -3154,20 +3167,20 @@ class N {
|
|
|
3154
3167
|
return ((e = this.parent) === null || e === void 0 ? void 0 : e.children.indexOf(this)) === 0;
|
|
3155
3168
|
}
|
|
3156
3169
|
}
|
|
3157
|
-
|
|
3158
|
-
class
|
|
3170
|
+
I.ignoreChildTypes = ["title"];
|
|
3171
|
+
class P1 extends I {
|
|
3159
3172
|
constructor(e, t, r) {
|
|
3160
3173
|
super(e, t, r);
|
|
3161
3174
|
}
|
|
3162
3175
|
}
|
|
3163
|
-
function
|
|
3176
|
+
function R1(a) {
|
|
3164
3177
|
var e = a.trim();
|
|
3165
3178
|
return /^('|")/.test(e) ? e : '"'.concat(e, '"');
|
|
3166
3179
|
}
|
|
3167
|
-
function
|
|
3168
|
-
return typeof process > "u" ? a : a.trim().split(",").map(
|
|
3180
|
+
function N1(a) {
|
|
3181
|
+
return typeof process > "u" ? a : a.trim().split(",").map(R1).join(",");
|
|
3169
3182
|
}
|
|
3170
|
-
function
|
|
3183
|
+
function I1(a) {
|
|
3171
3184
|
if (!a)
|
|
3172
3185
|
return "";
|
|
3173
3186
|
var e = a.trim().toLowerCase();
|
|
@@ -3183,7 +3196,7 @@ function m1(a) {
|
|
|
3183
3196
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
|
3184
3197
|
}
|
|
3185
3198
|
}
|
|
3186
|
-
function
|
|
3199
|
+
function M1(a) {
|
|
3187
3200
|
if (!a)
|
|
3188
3201
|
return "";
|
|
3189
3202
|
var e = a.trim().toLowerCase();
|
|
@@ -3206,7 +3219,7 @@ class Z {
|
|
|
3206
3219
|
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;
|
|
3207
3220
|
}
|
|
3208
3221
|
static parse() {
|
|
3209
|
-
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 =
|
|
3222
|
+
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 = lt(e).trim().split(" "), l = {
|
|
3210
3223
|
fontSize: !1,
|
|
3211
3224
|
fontStyle: !1,
|
|
3212
3225
|
fontWeight: !1,
|
|
@@ -3233,12 +3246,12 @@ class Z {
|
|
|
3233
3246
|
}
|
|
3234
3247
|
toString() {
|
|
3235
3248
|
return [
|
|
3236
|
-
|
|
3249
|
+
I1(this.fontStyle),
|
|
3237
3250
|
this.fontVariant,
|
|
3238
|
-
|
|
3251
|
+
M1(this.fontWeight),
|
|
3239
3252
|
this.fontSize,
|
|
3240
3253
|
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
|
3241
|
-
|
|
3254
|
+
N1(this.fontFamily)
|
|
3242
3255
|
].join(" ").trim();
|
|
3243
3256
|
}
|
|
3244
3257
|
}
|
|
@@ -3325,7 +3338,7 @@ class w extends m {
|
|
|
3325
3338
|
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 = [];
|
|
3326
3339
|
}
|
|
3327
3340
|
reset() {
|
|
3328
|
-
this.i = -1, this.command = null, this.previousCommand = null, this.start = new
|
|
3341
|
+
this.i = -1, this.command = null, this.previousCommand = null, this.start = new k(0, 0), this.control = new k(0, 0), this.current = new k(0, 0), this.points = [], this.angles = [];
|
|
3329
3342
|
}
|
|
3330
3343
|
isEnd() {
|
|
3331
3344
|
var {
|
|
@@ -3339,7 +3352,7 @@ class w extends m {
|
|
|
3339
3352
|
return this.previousCommand = this.command, this.command = e, e;
|
|
3340
3353
|
}
|
|
3341
3354
|
getPoint() {
|
|
3342
|
-
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
|
|
3355
|
+
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 k(this.command[e], this.command[t]);
|
|
3343
3356
|
return this.makeAbsolute(r);
|
|
3344
3357
|
}
|
|
3345
3358
|
getAsControlPoint(e, t) {
|
|
@@ -3363,7 +3376,7 @@ class w extends m {
|
|
|
3363
3376
|
x: i,
|
|
3364
3377
|
y: n
|
|
3365
3378
|
}
|
|
3366
|
-
} = this, o = new
|
|
3379
|
+
} = this, o = new k(2 * t - i, 2 * r - n);
|
|
3367
3380
|
return o;
|
|
3368
3381
|
}
|
|
3369
3382
|
makeAbsolute(e) {
|
|
@@ -3403,7 +3416,7 @@ class w extends m {
|
|
|
3403
3416
|
return e;
|
|
3404
3417
|
}
|
|
3405
3418
|
}
|
|
3406
|
-
class Ge extends
|
|
3419
|
+
class Ge extends I {
|
|
3407
3420
|
constructor() {
|
|
3408
3421
|
super(...arguments), this.modifiedEmSizeStack = !1;
|
|
3409
3422
|
}
|
|
@@ -3444,20 +3457,20 @@ class Ge extends N {
|
|
|
3444
3457
|
}
|
|
3445
3458
|
var v = this.getStyle("stroke-width");
|
|
3446
3459
|
if (v.hasValue()) {
|
|
3447
|
-
var
|
|
3448
|
-
e.lineWidth =
|
|
3460
|
+
var g = v.getPixels();
|
|
3461
|
+
e.lineWidth = g || rt;
|
|
3449
3462
|
}
|
|
3450
|
-
var
|
|
3451
|
-
if (
|
|
3452
|
-
var T =
|
|
3463
|
+
var d = this.getStyle("stroke-linecap"), p = this.getStyle("stroke-linejoin"), y = this.getStyle("stroke-miterlimit"), x = this.getStyle("stroke-dasharray"), b = this.getStyle("stroke-dashoffset");
|
|
3464
|
+
if (d.hasValue() && (e.lineCap = d.getString()), p.hasValue() && (e.lineJoin = p.getString()), y.hasValue() && (e.miterLimit = y.getNumber()), x.hasValue() && x.getString() !== "none") {
|
|
3465
|
+
var T = ne(x.getString());
|
|
3453
3466
|
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);
|
|
3454
3467
|
var $ = b.getPixels();
|
|
3455
3468
|
typeof e.lineDashOffset < "u" ? e.lineDashOffset = $ : typeof e.webkitLineDashOffset < "u" ? e.webkitLineDashOffset = $ : typeof e.mozDashOffset < "u" && (e.mozDashOffset = $);
|
|
3456
3469
|
}
|
|
3457
3470
|
}
|
|
3458
3471
|
if (this.modifiedEmSizeStack = !1, typeof e.font < "u") {
|
|
3459
|
-
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"),
|
|
3460
|
-
O.setValue(
|
|
3472
|
+
var E = this.getStyle("font"), O = this.getStyle("font-style"), C = this.getStyle("font-variant"), P = this.getStyle("font-weight"), V = this.getStyle("font-size"), j = this.getStyle("font-family"), R = new Z(O.getString(), C.getString(), P.getString(), V.hasValue() ? "".concat(V.getPixels(!0), "px") : "", j.getString(), Z.parse(E.getString(), e.font));
|
|
3473
|
+
O.setValue(R.fontStyle), C.setValue(R.fontVariant), P.setValue(R.fontWeight), V.setValue(R.fontSize), j.setValue(R.fontFamily), e.font = R.toString(), V.isPixels() && (this.document.emSize = V.getPixels(), this.modifiedEmSizeStack = !0);
|
|
3461
3474
|
}
|
|
3462
3475
|
t || (this.applyEffects(e), e.globalAlpha = this.calculateOpacity());
|
|
3463
3476
|
}
|
|
@@ -3530,12 +3543,12 @@ class A extends Ge {
|
|
|
3530
3543
|
}
|
|
3531
3544
|
if (o.isUrlDefinition())
|
|
3532
3545
|
for (var f = o.getDefinition(), c = 1; c < i; c++) {
|
|
3533
|
-
var [v,
|
|
3534
|
-
f.render(e, v,
|
|
3546
|
+
var [v, g] = r[c];
|
|
3547
|
+
f.render(e, v, g);
|
|
3535
3548
|
}
|
|
3536
3549
|
if (s.isUrlDefinition()) {
|
|
3537
|
-
var
|
|
3538
|
-
|
|
3550
|
+
var d = s.getDefinition(), [p, y] = r[i];
|
|
3551
|
+
d.render(e, p, y);
|
|
3539
3552
|
}
|
|
3540
3553
|
}
|
|
3541
3554
|
}
|
|
@@ -3581,7 +3594,7 @@ class A extends Ge {
|
|
|
3581
3594
|
var {
|
|
3582
3595
|
current: t,
|
|
3583
3596
|
command: r
|
|
3584
|
-
} = e, i = new
|
|
3597
|
+
} = e, i = new k((r.relative ? t.x : 0) + r.x, t.y);
|
|
3585
3598
|
return e.current = i, {
|
|
3586
3599
|
current: t,
|
|
3587
3600
|
point: i
|
|
@@ -3603,7 +3616,7 @@ class A extends Ge {
|
|
|
3603
3616
|
var {
|
|
3604
3617
|
current: t,
|
|
3605
3618
|
command: r
|
|
3606
|
-
} = e, i = new
|
|
3619
|
+
} = e, i = new k(t.x, (r.relative ? t.y : 0) + r.y);
|
|
3607
3620
|
return e.current = i, {
|
|
3608
3621
|
current: t,
|
|
3609
3622
|
point: i
|
|
@@ -3717,18 +3730,18 @@ class A extends Ge {
|
|
|
3717
3730
|
xRot: o,
|
|
3718
3731
|
lArcFlag: s,
|
|
3719
3732
|
sweepFlag: u
|
|
3720
|
-
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new
|
|
3733
|
+
} = r, l = o * (Math.PI / 180), h = e.getAsCurrentPoint(), f = new k(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);
|
|
3721
3734
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
|
3722
3735
|
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)));
|
|
3723
3736
|
isNaN(v) && (v = 0);
|
|
3724
|
-
var
|
|
3725
|
-
return
|
|
3737
|
+
var g = new k(v * i * f.y / n, v * -n * f.x / i), d = new k((t.x + h.x) / 2 + Math.cos(l) * g.x - Math.sin(l) * g.y, (t.y + h.y) / 2 + Math.sin(l) * g.x + Math.cos(l) * g.y), p = xo([1, 0], [(f.x - g.x) / i, (f.y - g.y) / n]), y = [(f.x - g.x) / i, (f.y - g.y) / n], x = [(-f.x - g.x) / i, (-f.y - g.y) / n], b = xo(y, x);
|
|
3738
|
+
return mi(y, x) <= -1 && (b = Math.PI), mi(y, x) >= 1 && (b = 0), {
|
|
3726
3739
|
currentPoint: h,
|
|
3727
3740
|
rX: i,
|
|
3728
3741
|
rY: n,
|
|
3729
3742
|
sweepFlag: u,
|
|
3730
3743
|
xAxisRotation: l,
|
|
3731
|
-
centp:
|
|
3744
|
+
centp: d,
|
|
3732
3745
|
a1: p,
|
|
3733
3746
|
ad: b
|
|
3734
3747
|
};
|
|
@@ -3745,10 +3758,10 @@ class A extends Ge {
|
|
|
3745
3758
|
centp: l,
|
|
3746
3759
|
a1: h,
|
|
3747
3760
|
ad: f
|
|
3748
|
-
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2),
|
|
3749
|
-
if (r.addMarkerAngle(
|
|
3750
|
-
var
|
|
3751
|
-
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0,
|
|
3761
|
+
} = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), g = new k(l.x + n * Math.cos(v), l.y + o * Math.sin(v));
|
|
3762
|
+
if (r.addMarkerAngle(g, v - c * Math.PI / 2), r.addMarkerAngle(i, v - c * Math.PI), t.addPoint(i.x, i.y), e && !isNaN(h) && !isNaN(f)) {
|
|
3763
|
+
var d = n > o ? n : o, p = n > o ? 1 : n / o, y = n > o ? o / n : 1;
|
|
3764
|
+
e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, d, h, h + f, !!(1 - s)), e.scale(1 / p, 1 / y), e.rotate(-u), e.translate(-l.x, -l.y);
|
|
3752
3765
|
}
|
|
3753
3766
|
}
|
|
3754
3767
|
static pathZ(e) {
|
|
@@ -3758,7 +3771,7 @@ class A extends Ge {
|
|
|
3758
3771
|
A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
|
|
3759
3772
|
}
|
|
3760
3773
|
}
|
|
3761
|
-
class
|
|
3774
|
+
class bl extends A {
|
|
3762
3775
|
constructor(e, t, r) {
|
|
3763
3776
|
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();
|
|
3764
3777
|
}
|
|
@@ -3803,7 +3816,7 @@ class Ce extends Ge {
|
|
|
3803
3816
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
|
3804
3817
|
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") {
|
|
3805
3818
|
var h = e.glyphs[i];
|
|
3806
|
-
n = h instanceof
|
|
3819
|
+
n = h instanceof bl ? h : h[l];
|
|
3807
3820
|
}
|
|
3808
3821
|
} else
|
|
3809
3822
|
n = e.glyphs[i];
|
|
@@ -3813,12 +3826,12 @@ class Ce extends Ge {
|
|
|
3813
3826
|
return "";
|
|
3814
3827
|
}
|
|
3815
3828
|
getTextFromNode(e) {
|
|
3816
|
-
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o =
|
|
3829
|
+
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = lt(
|
|
3817
3830
|
// textNode.value
|
|
3818
3831
|
// || textNode.text
|
|
3819
3832
|
t.textContent || ""
|
|
3820
3833
|
);
|
|
3821
|
-
return i === 0 && (o =
|
|
3834
|
+
return i === 0 && (o = n1(o)), i === n && (o = s1(o)), o;
|
|
3822
3835
|
}
|
|
3823
3836
|
renderChildren(e) {
|
|
3824
3837
|
if (this.type !== "text") {
|
|
@@ -3841,11 +3854,11 @@ class Ce extends Ge {
|
|
|
3841
3854
|
if (n) {
|
|
3842
3855
|
for (var {
|
|
3843
3856
|
unitsPerEm: o
|
|
3844
|
-
} = 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 =
|
|
3845
|
-
var
|
|
3857
|
+
} = 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 = ne(r.getAttribute("dx").getString()), v = f.length, g = 0; g < v; g++) {
|
|
3858
|
+
var d = this.getGlyph(n, f, g);
|
|
3846
3859
|
e.translate(this.x, this.y), e.scale(h, -h);
|
|
3847
3860
|
var p = e.lineWidth;
|
|
3848
|
-
e.lineWidth = e.lineWidth * o / u, l === "italic" && e.transform(1, 0, 0.4, 1, 0, 0),
|
|
3861
|
+
e.lineWidth = e.lineWidth * o / u, l === "italic" && e.transform(1, 0, 0.4, 1, 0, 0), d.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 * (d.horizAdvX || n.horizAdvX) / o, typeof c[g] < "u" && !isNaN(c[g]) && (this.x += c[g]);
|
|
3849
3862
|
}
|
|
3850
3863
|
return;
|
|
3851
3864
|
}
|
|
@@ -3917,7 +3930,7 @@ class Ce extends Ge {
|
|
|
3917
3930
|
parent: r
|
|
3918
3931
|
} = this, i = r.getStyle("font-family").getDefinition();
|
|
3919
3932
|
if (i) {
|
|
3920
|
-
for (var n = this.getFontSize(), o = i.isRTL ? t.split("").reverse().join("") : t, s =
|
|
3933
|
+
for (var n = this.getFontSize(), o = i.isRTL ? t.split("").reverse().join("") : t, s = ne(r.getAttribute("dx").getString()), u = o.length, l = 0, h = 0; h < u; h++) {
|
|
3921
3934
|
var f = this.getGlyph(i, o, h);
|
|
3922
3935
|
l += (f.horizAdvX || i.horizAdvX) * n / i.fontFace.unitsPerEm, typeof s[h] < "u" && !isNaN(s[h]) && (l += s[h]);
|
|
3923
3936
|
}
|
|
@@ -3947,15 +3960,15 @@ class Ce extends Ge {
|
|
|
3947
3960
|
return null;
|
|
3948
3961
|
}
|
|
3949
3962
|
}
|
|
3950
|
-
class
|
|
3963
|
+
class Lr extends Ce {
|
|
3951
3964
|
constructor(e, t, r) {
|
|
3952
|
-
super(e, t, new.target ===
|
|
3965
|
+
super(e, t, new.target === Lr ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
|
|
3953
3966
|
}
|
|
3954
3967
|
getText() {
|
|
3955
3968
|
return this.text;
|
|
3956
3969
|
}
|
|
3957
3970
|
}
|
|
3958
|
-
class
|
|
3971
|
+
class _1 extends Lr {
|
|
3959
3972
|
constructor() {
|
|
3960
3973
|
super(...arguments), this.type = "textNode";
|
|
3961
3974
|
}
|
|
@@ -3982,19 +3995,19 @@ class Nt extends Ge {
|
|
|
3982
3995
|
height: l
|
|
3983
3996
|
} = i.viewPort;
|
|
3984
3997
|
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");
|
|
3985
|
-
var h = this.getAttribute("refX"), f = this.getAttribute("refY"), c = this.getAttribute("viewBox"), v = c.hasValue() ?
|
|
3986
|
-
v && (
|
|
3998
|
+
var h = this.getAttribute("refX"), f = this.getAttribute("refY"), c = this.getAttribute("viewBox"), v = c.hasValue() ? ne(c.getString()) : null, g = !this.root && this.getStyle("overflow").getValue("hidden") !== "visible", d = 0, p = 0, y = 0, x = 0;
|
|
3999
|
+
v && (d = v[0], p = v[1]), this.root || (u = this.getStyle("width").getPixels("x"), l = this.getStyle("height").getPixels("y"), this.type === "marker" && (y = d, x = p, d = 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({
|
|
3987
4000
|
ctx: e,
|
|
3988
4001
|
aspectRatio: this.getAttribute("preserveAspectRatio").getString(),
|
|
3989
4002
|
width: i.viewPort.width,
|
|
3990
4003
|
desiredWidth: u,
|
|
3991
4004
|
height: i.viewPort.height,
|
|
3992
4005
|
desiredHeight: l,
|
|
3993
|
-
minX:
|
|
4006
|
+
minX: d,
|
|
3994
4007
|
minY: p,
|
|
3995
4008
|
refX: h.getValue(),
|
|
3996
4009
|
refY: f.getValue(),
|
|
3997
|
-
clip:
|
|
4010
|
+
clip: g,
|
|
3998
4011
|
clipX: y,
|
|
3999
4012
|
clipY: x
|
|
4000
4013
|
}), v && (i.viewPort.removeCurrent(), i.viewPort.setCurrent(u, l));
|
|
@@ -4023,7 +4036,7 @@ class Nt extends Ge {
|
|
|
4023
4036
|
}
|
|
4024
4037
|
}
|
|
4025
4038
|
}
|
|
4026
|
-
class
|
|
4039
|
+
class xl extends A {
|
|
4027
4040
|
constructor() {
|
|
4028
4041
|
super(...arguments), this.type = "rect";
|
|
4029
4042
|
}
|
|
@@ -4039,7 +4052,7 @@ class dl extends A {
|
|
|
4039
4052
|
return null;
|
|
4040
4053
|
}
|
|
4041
4054
|
}
|
|
4042
|
-
class
|
|
4055
|
+
class V1 extends A {
|
|
4043
4056
|
constructor() {
|
|
4044
4057
|
super(...arguments), this.type = "circle";
|
|
4045
4058
|
}
|
|
@@ -4051,7 +4064,7 @@ class T1 extends A {
|
|
|
4051
4064
|
return null;
|
|
4052
4065
|
}
|
|
4053
4066
|
}
|
|
4054
|
-
class
|
|
4067
|
+
class D1 extends A {
|
|
4055
4068
|
constructor() {
|
|
4056
4069
|
super(...arguments), this.type = "ellipse";
|
|
4057
4070
|
}
|
|
@@ -4063,12 +4076,12 @@ class O1 extends A {
|
|
|
4063
4076
|
return null;
|
|
4064
4077
|
}
|
|
4065
4078
|
}
|
|
4066
|
-
class
|
|
4079
|
+
class L1 extends A {
|
|
4067
4080
|
constructor() {
|
|
4068
4081
|
super(...arguments), this.type = "line";
|
|
4069
4082
|
}
|
|
4070
4083
|
getPoints() {
|
|
4071
|
-
return [new
|
|
4084
|
+
return [new k(this.getAttribute("x1").getPixels("x"), this.getAttribute("y1").getPixels("y")), new k(this.getAttribute("x2").getPixels("x"), this.getAttribute("y2").getPixels("y"))];
|
|
4072
4085
|
}
|
|
4073
4086
|
path(e) {
|
|
4074
4087
|
var [{
|
|
@@ -4085,9 +4098,9 @@ class S1 extends A {
|
|
|
4085
4098
|
return [[e, r], [t, r]];
|
|
4086
4099
|
}
|
|
4087
4100
|
}
|
|
4088
|
-
class
|
|
4101
|
+
class Tl extends A {
|
|
4089
4102
|
constructor(e, t, r) {
|
|
4090
|
-
super(e, t, r), this.type = "polyline", this.points = [], this.points =
|
|
4103
|
+
super(e, t, r), this.type = "polyline", this.points = [], this.points = k.parsePath(this.getAttribute("points").getString());
|
|
4091
4104
|
}
|
|
4092
4105
|
path(e) {
|
|
4093
4106
|
var {
|
|
@@ -4113,7 +4126,7 @@ class pl extends A {
|
|
|
4113
4126
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
|
4114
4127
|
}
|
|
4115
4128
|
}
|
|
4116
|
-
class
|
|
4129
|
+
class k1 extends Tl {
|
|
4117
4130
|
constructor() {
|
|
4118
4131
|
super(...arguments), this.type = "polygon";
|
|
4119
4132
|
}
|
|
@@ -4125,7 +4138,7 @@ class E1 extends pl {
|
|
|
4125
4138
|
return e && (e.lineTo(r, i), e.closePath()), t;
|
|
4126
4139
|
}
|
|
4127
4140
|
}
|
|
4128
|
-
class
|
|
4141
|
+
class B1 extends I {
|
|
4129
4142
|
constructor() {
|
|
4130
4143
|
super(...arguments), this.type = "pattern";
|
|
4131
4144
|
}
|
|
@@ -4141,7 +4154,7 @@ class $1 extends N {
|
|
|
4141
4154
|
return v;
|
|
4142
4155
|
}
|
|
4143
4156
|
}
|
|
4144
|
-
class
|
|
4157
|
+
class j1 extends I {
|
|
4145
4158
|
constructor() {
|
|
4146
4159
|
super(...arguments), this.type = "marker";
|
|
4147
4160
|
}
|
|
@@ -4157,14 +4170,14 @@ class w1 extends N {
|
|
|
4157
4170
|
}
|
|
4158
4171
|
}
|
|
4159
4172
|
}
|
|
4160
|
-
class
|
|
4173
|
+
class F1 extends I {
|
|
4161
4174
|
constructor() {
|
|
4162
4175
|
super(...arguments), this.type = "defs";
|
|
4163
4176
|
}
|
|
4164
4177
|
render() {
|
|
4165
4178
|
}
|
|
4166
4179
|
}
|
|
4167
|
-
class
|
|
4180
|
+
class rn extends Ge {
|
|
4168
4181
|
constructor() {
|
|
4169
4182
|
super(...arguments), this.type = "g";
|
|
4170
4183
|
}
|
|
@@ -4175,7 +4188,7 @@ class tn extends Ge {
|
|
|
4175
4188
|
}), t;
|
|
4176
4189
|
}
|
|
4177
4190
|
}
|
|
4178
|
-
class
|
|
4191
|
+
class Ol extends I {
|
|
4179
4192
|
constructor(e, t, r) {
|
|
4180
4193
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
|
4181
4194
|
var {
|
|
@@ -4205,14 +4218,14 @@ class yl extends N {
|
|
|
4205
4218
|
} = this, {
|
|
4206
4219
|
MAX_VIRTUAL_PIXELS: u,
|
|
4207
4220
|
viewPort: l
|
|
4208
|
-
} = s.screen, [h] = l.viewPorts, f = new
|
|
4221
|
+
} = s.screen, [h] = l.viewPorts, f = new xl(s, null);
|
|
4209
4222
|
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);
|
|
4210
|
-
var c = new
|
|
4223
|
+
var c = new rn(s, null);
|
|
4211
4224
|
c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
|
4212
4225
|
var v = new Nt(s, null);
|
|
4213
4226
|
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];
|
|
4214
|
-
var
|
|
4215
|
-
return
|
|
4227
|
+
var g = s.createCanvas(h.width, h.height), d = g.getContext("2d");
|
|
4228
|
+
return d.fillStyle = o, v.render(d), d.createPattern(g, "no-repeat");
|
|
4216
4229
|
}
|
|
4217
4230
|
return o;
|
|
4218
4231
|
}
|
|
@@ -4229,7 +4242,7 @@ class yl extends N {
|
|
|
4229
4242
|
return t;
|
|
4230
4243
|
}
|
|
4231
4244
|
}
|
|
4232
|
-
class
|
|
4245
|
+
class U1 extends Ol {
|
|
4233
4246
|
constructor(e, t, r) {
|
|
4234
4247
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
|
4235
4248
|
}
|
|
@@ -4242,7 +4255,7 @@ class A1 extends yl {
|
|
|
4242
4255
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
|
4243
4256
|
}
|
|
4244
4257
|
}
|
|
4245
|
-
class
|
|
4258
|
+
class G1 extends Ol {
|
|
4246
4259
|
constructor(e, t, r) {
|
|
4247
4260
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
|
4248
4261
|
}
|
|
@@ -4257,14 +4270,14 @@ class P1 extends yl {
|
|
|
4257
4270
|
return e.createRadialGradient(s, u, h, n, o, l);
|
|
4258
4271
|
}
|
|
4259
4272
|
}
|
|
4260
|
-
class
|
|
4273
|
+
class z1 extends I {
|
|
4261
4274
|
constructor(e, t, r) {
|
|
4262
4275
|
super(e, t, r), this.type = "stop";
|
|
4263
4276
|
var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
|
|
4264
4277
|
o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
|
|
4265
4278
|
}
|
|
4266
4279
|
}
|
|
4267
|
-
class
|
|
4280
|
+
class an extends I {
|
|
4268
4281
|
constructor(e, t, r) {
|
|
4269
4282
|
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);
|
|
4270
4283
|
var i = this.getAttribute("values");
|
|
@@ -4325,7 +4338,7 @@ class rn extends N {
|
|
|
4325
4338
|
return r;
|
|
4326
4339
|
}
|
|
4327
4340
|
}
|
|
4328
|
-
class
|
|
4341
|
+
class H1 extends an {
|
|
4329
4342
|
constructor() {
|
|
4330
4343
|
super(...arguments), this.type = "animateColor";
|
|
4331
4344
|
}
|
|
@@ -4334,7 +4347,7 @@ class N1 extends rn {
|
|
|
4334
4347
|
progress: e,
|
|
4335
4348
|
from: t,
|
|
4336
4349
|
to: r
|
|
4337
|
-
} = this.getProgress(), i = new
|
|
4350
|
+
} = this.getProgress(), i = new di(t.getColor()), n = new di(r.getColor());
|
|
4338
4351
|
if (i.ok && n.ok) {
|
|
4339
4352
|
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;
|
|
4340
4353
|
return "rgb(".concat(Math.floor(o), ", ").concat(Math.floor(s), ", ").concat(Math.floor(u), ")");
|
|
@@ -4342,7 +4355,7 @@ class N1 extends rn {
|
|
|
4342
4355
|
return this.getAttribute("from").getColor();
|
|
4343
4356
|
}
|
|
4344
4357
|
}
|
|
4345
|
-
class
|
|
4358
|
+
class Y1 extends an {
|
|
4346
4359
|
constructor() {
|
|
4347
4360
|
super(...arguments), this.type = "animateTransform";
|
|
4348
4361
|
}
|
|
@@ -4351,16 +4364,16 @@ class I1 extends rn {
|
|
|
4351
4364
|
progress: e,
|
|
4352
4365
|
from: t,
|
|
4353
4366
|
to: r
|
|
4354
|
-
} = this.getProgress(), i =
|
|
4367
|
+
} = this.getProgress(), i = ne(t.getString()), n = ne(r.getString()), o = i.map((s, u) => {
|
|
4355
4368
|
var l = n[u];
|
|
4356
4369
|
return s + (l - s) * e;
|
|
4357
4370
|
}).join(" ");
|
|
4358
4371
|
return o;
|
|
4359
4372
|
}
|
|
4360
4373
|
}
|
|
4361
|
-
class
|
|
4374
|
+
class X1 extends I {
|
|
4362
4375
|
constructor(e, t, r) {
|
|
4363
|
-
super(e, t, r), this.type = "font", this.glyphs =
|
|
4376
|
+
super(e, t, r), this.type = "font", this.glyphs = /* @__PURE__ */ Object.create(null), this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
|
4364
4377
|
var {
|
|
4365
4378
|
definitions: i
|
|
4366
4379
|
} = e, {
|
|
@@ -4379,7 +4392,7 @@ class M1 extends N {
|
|
|
4379
4392
|
break;
|
|
4380
4393
|
case "glyph": {
|
|
4381
4394
|
var u = o;
|
|
4382
|
-
u.arabicForm ? (this.isRTL = !0, this.isArabic = !0, typeof this.glyphs[u.unicode] > "u" && (this.glyphs[u.unicode] =
|
|
4395
|
+
u.arabicForm ? (this.isRTL = !0, this.isArabic = !0, typeof this.glyphs[u.unicode] > "u" && (this.glyphs[u.unicode] = /* @__PURE__ */ Object.create(null)), this.glyphs[u.unicode][u.arabicForm] = u) : this.glyphs[u.unicode] = u;
|
|
4383
4396
|
break;
|
|
4384
4397
|
}
|
|
4385
4398
|
}
|
|
@@ -4387,17 +4400,17 @@ class M1 extends N {
|
|
|
4387
4400
|
render() {
|
|
4388
4401
|
}
|
|
4389
4402
|
}
|
|
4390
|
-
class
|
|
4403
|
+
class W1 extends I {
|
|
4391
4404
|
constructor(e, t, r) {
|
|
4392
4405
|
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();
|
|
4393
4406
|
}
|
|
4394
4407
|
}
|
|
4395
|
-
class
|
|
4408
|
+
class q1 extends A {
|
|
4396
4409
|
constructor() {
|
|
4397
4410
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
|
4398
4411
|
}
|
|
4399
4412
|
}
|
|
4400
|
-
class
|
|
4413
|
+
class Q1 extends Ce {
|
|
4401
4414
|
constructor() {
|
|
4402
4415
|
super(...arguments), this.type = "tref";
|
|
4403
4416
|
}
|
|
@@ -4411,7 +4424,7 @@ class D1 extends Ce {
|
|
|
4411
4424
|
return "";
|
|
4412
4425
|
}
|
|
4413
4426
|
}
|
|
4414
|
-
class
|
|
4427
|
+
class K1 extends Ce {
|
|
4415
4428
|
constructor(e, t, r) {
|
|
4416
4429
|
super(e, t, r), this.type = "a";
|
|
4417
4430
|
var {
|
|
@@ -4434,7 +4447,7 @@ class k1 extends Ce {
|
|
|
4434
4447
|
} = t.screen, o = new S(t, "fontSize", Z.parse(t.ctx.font).fontSize);
|
|
4435
4448
|
n.isWorking() && n.checkBoundingBox(this, new ce(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
|
4436
4449
|
} else if (this.children.length > 0) {
|
|
4437
|
-
var s = new
|
|
4450
|
+
var s = new rn(this.document, null);
|
|
4438
4451
|
s.children = this.children, s.parent = this, s.render(e);
|
|
4439
4452
|
}
|
|
4440
4453
|
}
|
|
@@ -4449,7 +4462,7 @@ class k1 extends Ce {
|
|
|
4449
4462
|
e.canvas.style.cursor = "pointer";
|
|
4450
4463
|
}
|
|
4451
4464
|
}
|
|
4452
|
-
function
|
|
4465
|
+
function Ao(a, e) {
|
|
4453
4466
|
var t = Object.keys(a);
|
|
4454
4467
|
if (Object.getOwnPropertySymbols) {
|
|
4455
4468
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -4459,18 +4472,18 @@ function $o(a, e) {
|
|
|
4459
4472
|
}
|
|
4460
4473
|
return t;
|
|
4461
4474
|
}
|
|
4462
|
-
function
|
|
4475
|
+
function ir(a) {
|
|
4463
4476
|
for (var e = 1; e < arguments.length; e++) {
|
|
4464
4477
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
4465
|
-
e % 2 ?
|
|
4466
|
-
|
|
4467
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
4478
|
+
e % 2 ? Ao(Object(t), !0).forEach(function(r) {
|
|
4479
|
+
en(a, r, t[r]);
|
|
4480
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ao(Object(t)).forEach(function(r) {
|
|
4468
4481
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4469
4482
|
});
|
|
4470
4483
|
}
|
|
4471
4484
|
return a;
|
|
4472
4485
|
}
|
|
4473
|
-
class
|
|
4486
|
+
class Z1 extends Ce {
|
|
4474
4487
|
constructor(e, t, r) {
|
|
4475
4488
|
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]]);
|
|
4476
4489
|
var i = this.getHrefAttribute().getDefinition();
|
|
@@ -4502,8 +4515,8 @@ class L1 extends Ce {
|
|
|
4502
4515
|
e && e.quadraticCurveTo(n[0], n[1], n[2], n[3]);
|
|
4503
4516
|
break;
|
|
4504
4517
|
case w.ARC: {
|
|
4505
|
-
var [o, s, u, l, h, f, c, v] = n,
|
|
4506
|
-
e && (e.translate(o, s), e.rotate(c), e.scale(
|
|
4518
|
+
var [o, s, u, l, h, f, c, v] = n, g = u > l ? u : l, d = u > l ? 1 : u / l, p = u > l ? l / u : 1;
|
|
4519
|
+
e && (e.translate(o, s), e.rotate(c), e.scale(d, p), e.arc(0, 0, g, h, h + f, !!(1 - v)), e.scale(1 / d, 1 / p), e.rotate(-c), e.translate(-o, -s));
|
|
4507
4520
|
break;
|
|
4508
4521
|
}
|
|
4509
4522
|
case w.CLOSE_PATH:
|
|
@@ -4534,23 +4547,23 @@ class L1 extends Ce {
|
|
|
4534
4547
|
findSegmentToFitChar(e, t, r, i, n, o, s, u, l) {
|
|
4535
4548
|
var h = o, f = this.measureText(e, u);
|
|
4536
4549
|
u === " " && t === "justify" && r < i && (f += (i - r) / n), l > -1 && (h += this.getLetterSpacingAt(l));
|
|
4537
|
-
var c = this.textHeight / 20, v = this.getEquidistantPointOnPath(h, c, 0),
|
|
4550
|
+
var c = this.textHeight / 20, v = this.getEquidistantPointOnPath(h, c, 0), g = this.getEquidistantPointOnPath(h + f, c, 0), d = {
|
|
4538
4551
|
p0: v,
|
|
4539
|
-
p1:
|
|
4540
|
-
}, p = v &&
|
|
4552
|
+
p1: g
|
|
4553
|
+
}, p = v && g ? Math.atan2(g.y - v.y, g.x - v.x) : 0;
|
|
4541
4554
|
if (s) {
|
|
4542
4555
|
var y = Math.cos(Math.PI / 2 + p) * s, x = Math.cos(-p) * s;
|
|
4543
|
-
|
|
4556
|
+
d.p0 = ir(ir({}, v), {}, {
|
|
4544
4557
|
x: v.x + y,
|
|
4545
4558
|
y: v.y + x
|
|
4546
|
-
}),
|
|
4547
|
-
x:
|
|
4548
|
-
y:
|
|
4559
|
+
}), d.p1 = ir(ir({}, g), {}, {
|
|
4560
|
+
x: g.x + y,
|
|
4561
|
+
y: g.y + x
|
|
4549
4562
|
});
|
|
4550
4563
|
}
|
|
4551
4564
|
return h += f, {
|
|
4552
4565
|
offset: h,
|
|
4553
|
-
segment:
|
|
4566
|
+
segment: d,
|
|
4554
4567
|
rotation: p
|
|
4555
4568
|
};
|
|
4556
4569
|
}
|
|
@@ -4574,8 +4587,8 @@ class L1 extends Ce {
|
|
|
4574
4587
|
this.letterSpacingCache = f;
|
|
4575
4588
|
for (var v = 0; v < c; v++)
|
|
4576
4589
|
f.push(typeof n[v] < "u" ? n[v] : h);
|
|
4577
|
-
var
|
|
4578
|
-
this.textWidth =
|
|
4590
|
+
var g = f.reduce((T, $, E) => E === 0 ? 0 : T + $ || 0, 0), d = this.measureText(e), p = Math.max(d + g, 0);
|
|
4591
|
+
this.textWidth = d, this.textHeight = this.getFontSize(), this.glyphInfo = [];
|
|
4579
4592
|
var y = this.getPathLength(), x = this.getStyle("startOffset").getNumber(0) * y, b = 0;
|
|
4580
4593
|
(s === "middle" || s === "center") && (b = -p / 2), (s === "end" || s === "right") && (b = -p), b += x, r.forEach((T, $) => {
|
|
4581
4594
|
var {
|
|
@@ -4750,7 +4763,7 @@ class L1 extends Ce {
|
|
|
4750
4763
|
return 0;
|
|
4751
4764
|
}
|
|
4752
4765
|
getPointOnLine(e, t, r, i, n) {
|
|
4753
|
-
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 +
|
|
4766
|
+
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 + rt), l = Math.sqrt(e * e / (1 + u * u));
|
|
4754
4767
|
i < t && (l *= -1);
|
|
4755
4768
|
var h = u * l, f = null;
|
|
4756
4769
|
if (i === t)
|
|
@@ -4758,17 +4771,17 @@ class L1 extends Ce {
|
|
|
4758
4771
|
x: o,
|
|
4759
4772
|
y: s + h
|
|
4760
4773
|
};
|
|
4761
|
-
else if ((s - r) / (o - t +
|
|
4774
|
+
else if ((s - r) / (o - t + rt) === u)
|
|
4762
4775
|
f = {
|
|
4763
4776
|
x: o + l,
|
|
4764
4777
|
y: s + h
|
|
4765
4778
|
};
|
|
4766
4779
|
else {
|
|
4767
|
-
var c = 0, v = 0,
|
|
4768
|
-
if (
|
|
4780
|
+
var c = 0, v = 0, g = this.getLineLength(t, r, i, n);
|
|
4781
|
+
if (g < rt)
|
|
4769
4782
|
return null;
|
|
4770
|
-
var
|
|
4771
|
-
|
|
4783
|
+
var d = (o - t) * (i - t) + (s - r) * (n - r);
|
|
4784
|
+
d /= g * g, c = t + d * (i - t), v = r + d * (n - r);
|
|
4772
4785
|
var p = this.getLineLength(o, s, c, v), y = Math.sqrt(e * e - p * p);
|
|
4773
4786
|
l = Math.sqrt(y * y / (1 + u * u)), i < t && (l *= -1), h = u * l, f = {
|
|
4774
4787
|
x: c + l,
|
|
@@ -4821,14 +4834,14 @@ class L1 extends Ce {
|
|
|
4821
4834
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
|
4822
4835
|
}
|
|
4823
4836
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
|
4824
|
-
var h = u *
|
|
4837
|
+
var h = u * To(e) + o * Oo(e) + i * So(e) + t * Eo(e), f = l * To(e) + s * Oo(e) + n * So(e) + r * Eo(e);
|
|
4825
4838
|
return {
|
|
4826
4839
|
x: h,
|
|
4827
4840
|
y: f
|
|
4828
4841
|
};
|
|
4829
4842
|
}
|
|
4830
4843
|
getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
|
|
4831
|
-
var u = o *
|
|
4844
|
+
var u = o * $o(e) + i * wo(e) + t * Co(e), l = s * $o(e) + n * wo(e) + r * Co(e);
|
|
4832
4845
|
return {
|
|
4833
4846
|
x: u,
|
|
4834
4847
|
y: l
|
|
@@ -4870,8 +4883,8 @@ class L1 extends Ce {
|
|
|
4870
4883
|
return this.equidistantCache.points[i] || null;
|
|
4871
4884
|
}
|
|
4872
4885
|
}
|
|
4873
|
-
var
|
|
4874
|
-
class
|
|
4886
|
+
var J1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
|
4887
|
+
class e2 extends Ge {
|
|
4875
4888
|
constructor(e, t, r) {
|
|
4876
4889
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
|
4877
4890
|
var i = this.getHrefAttribute().getString();
|
|
@@ -4895,7 +4908,7 @@ class j1 extends Ge {
|
|
|
4895
4908
|
loadSvg(e) {
|
|
4896
4909
|
var t = this;
|
|
4897
4910
|
return xe(function* () {
|
|
4898
|
-
var r =
|
|
4911
|
+
var r = J1.exec(e);
|
|
4899
4912
|
if (r) {
|
|
4900
4913
|
var i = r[5];
|
|
4901
4914
|
r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
|
|
@@ -4947,14 +4960,14 @@ class j1 extends Ge {
|
|
|
4947
4960
|
return new ce(e, t, e + r, t + i);
|
|
4948
4961
|
}
|
|
4949
4962
|
}
|
|
4950
|
-
class
|
|
4963
|
+
class t2 extends Ge {
|
|
4951
4964
|
constructor() {
|
|
4952
4965
|
super(...arguments), this.type = "symbol";
|
|
4953
4966
|
}
|
|
4954
4967
|
render(e) {
|
|
4955
4968
|
}
|
|
4956
4969
|
}
|
|
4957
|
-
class
|
|
4970
|
+
class r2 {
|
|
4958
4971
|
constructor(e) {
|
|
4959
4972
|
this.document = e, this.loaded = !1, e.fonts.push(this);
|
|
4960
4973
|
}
|
|
@@ -4976,10 +4989,10 @@ class U1 {
|
|
|
4976
4989
|
})();
|
|
4977
4990
|
}
|
|
4978
4991
|
}
|
|
4979
|
-
class
|
|
4992
|
+
class Sl extends I {
|
|
4980
4993
|
constructor(e, t, r) {
|
|
4981
4994
|
super(e, t, r), this.type = "style";
|
|
4982
|
-
var i =
|
|
4995
|
+
var i = lt(
|
|
4983
4996
|
Array.from(t.childNodes).map((o) => o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
|
|
4984
4997
|
// remove imports
|
|
4985
4998
|
), n = i.split("}");
|
|
@@ -4994,12 +5007,12 @@ class ml extends N {
|
|
|
4994
5007
|
if (h.forEach((p) => {
|
|
4995
5008
|
var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
|
|
4996
5009
|
x && b && (v[x] = new S(e, x, b));
|
|
4997
|
-
}), e.styles[c] = v, e.stylesSpecificity[c] =
|
|
4998
|
-
var
|
|
4999
|
-
|
|
5010
|
+
}), e.styles[c] = v, e.stylesSpecificity[c] = y1(c), c === "@font-face") {
|
|
5011
|
+
var g = v["font-family"].getString().replace(/"|'/g, ""), d = v.src.getString().split(",");
|
|
5012
|
+
d.forEach((p) => {
|
|
5000
5013
|
if (p.indexOf('format("svg")') > 0) {
|
|
5001
|
-
var y =
|
|
5002
|
-
y && new
|
|
5014
|
+
var y = gl(p);
|
|
5015
|
+
y && new r2(e).load(g, y);
|
|
5003
5016
|
}
|
|
5004
5017
|
});
|
|
5005
5018
|
}
|
|
@@ -5009,8 +5022,8 @@ class ml extends N {
|
|
|
5009
5022
|
});
|
|
5010
5023
|
}
|
|
5011
5024
|
}
|
|
5012
|
-
|
|
5013
|
-
class
|
|
5025
|
+
Sl.parseExternalUrl = gl;
|
|
5026
|
+
class a2 extends Ge {
|
|
5014
5027
|
constructor() {
|
|
5015
5028
|
super(...arguments), this.type = "use";
|
|
5016
5029
|
}
|
|
@@ -5051,16 +5064,16 @@ class G1 extends Ge {
|
|
|
5051
5064
|
document: e,
|
|
5052
5065
|
element: t
|
|
5053
5066
|
} = this;
|
|
5054
|
-
return
|
|
5067
|
+
return Be.fromElement(e, t);
|
|
5055
5068
|
}
|
|
5056
5069
|
get element() {
|
|
5057
5070
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
|
5058
5071
|
}
|
|
5059
5072
|
}
|
|
5060
|
-
function
|
|
5073
|
+
function nr(a, e, t, r, i, n) {
|
|
5061
5074
|
return a[t * r * 4 + e * 4 + n];
|
|
5062
5075
|
}
|
|
5063
|
-
function
|
|
5076
|
+
function sr(a, e, t, r, i, n, o) {
|
|
5064
5077
|
a[t * r * 4 + e * 4 + n] = o;
|
|
5065
5078
|
}
|
|
5066
5079
|
function F(a, e, t) {
|
|
@@ -5070,10 +5083,10 @@ function F(a, e, t) {
|
|
|
5070
5083
|
function me(a, e, t, r) {
|
|
5071
5084
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
|
5072
5085
|
}
|
|
5073
|
-
class
|
|
5086
|
+
class El extends I {
|
|
5074
5087
|
constructor(e, t, r) {
|
|
5075
5088
|
super(e, t, r), this.type = "feColorMatrix";
|
|
5076
|
-
var i =
|
|
5089
|
+
var i = ne(this.getAttribute("values").getString());
|
|
5077
5090
|
switch (this.getAttribute("type").getString("matrix")) {
|
|
5078
5091
|
case "saturate": {
|
|
5079
5092
|
var n = i[0];
|
|
@@ -5097,13 +5110,13 @@ class bl extends N {
|
|
|
5097
5110
|
matrix: s
|
|
5098
5111
|
} = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
|
|
5099
5112
|
for (var h = 0; h < i; h++) {
|
|
5100
|
-
var f =
|
|
5101
|
-
o && (
|
|
5113
|
+
var f = nr(u.data, h, l, i, n, 0), c = nr(u.data, h, l, i, n, 1), v = nr(u.data, h, l, i, n, 2), g = nr(u.data, h, l, i, n, 3), d = F(s, 0, f) + F(s, 1, c) + F(s, 2, v) + F(s, 3, g) + F(s, 4, 1), p = F(s, 5, f) + F(s, 6, c) + F(s, 7, v) + F(s, 8, g) + F(s, 9, 1), y = F(s, 10, f) + F(s, 11, c) + F(s, 12, v) + F(s, 13, g) + F(s, 14, 1), x = F(s, 15, f) + F(s, 16, c) + F(s, 17, v) + F(s, 18, g) + F(s, 19, 1);
|
|
5114
|
+
o && (d = 0, p = 0, y = 0, x *= g / 255), sr(u.data, h, l, i, n, 0, d), sr(u.data, h, l, i, n, 1, p), sr(u.data, h, l, i, n, 2, y), sr(u.data, h, l, i, n, 3, x);
|
|
5102
5115
|
}
|
|
5103
5116
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
|
5104
5117
|
}
|
|
5105
5118
|
}
|
|
5106
|
-
class
|
|
5119
|
+
class kr extends I {
|
|
5107
5120
|
constructor() {
|
|
5108
5121
|
super(...arguments), this.type = "mask";
|
|
5109
5122
|
}
|
|
@@ -5113,12 +5126,12 @@ class _r extends N {
|
|
|
5113
5126
|
} = 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");
|
|
5114
5127
|
if (!o && !s) {
|
|
5115
5128
|
var u = new ce();
|
|
5116
|
-
this.children.forEach((
|
|
5117
|
-
u.addBoundingBox(
|
|
5129
|
+
this.children.forEach((g) => {
|
|
5130
|
+
u.addBoundingBox(g.getBoundingBox(e));
|
|
5118
5131
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
|
5119
5132
|
}
|
|
5120
|
-
var l = this.removeStyles(t,
|
|
5121
|
-
r.screen.setDefaults(f), this.renderChildren(f), new
|
|
5133
|
+
var l = this.removeStyles(t, kr.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
|
5134
|
+
r.screen.setDefaults(f), this.renderChildren(f), new El(r, {
|
|
5122
5135
|
nodeType: 1,
|
|
5123
5136
|
childNodes: [],
|
|
5124
5137
|
attributes: [{
|
|
@@ -5135,10 +5148,10 @@ class _r extends N {
|
|
|
5135
5148
|
render(e) {
|
|
5136
5149
|
}
|
|
5137
5150
|
}
|
|
5138
|
-
|
|
5139
|
-
var
|
|
5151
|
+
kr.ignoreStyles = ["mask", "transform", "clip-path"];
|
|
5152
|
+
var Po = () => {
|
|
5140
5153
|
};
|
|
5141
|
-
class
|
|
5154
|
+
class i2 extends I {
|
|
5142
5155
|
constructor() {
|
|
5143
5156
|
super(...arguments), this.type = "clipPath";
|
|
5144
5157
|
}
|
|
@@ -5149,17 +5162,17 @@ class z1 extends N {
|
|
|
5149
5162
|
beginPath: i,
|
|
5150
5163
|
closePath: n
|
|
5151
5164
|
} = e;
|
|
5152
|
-
r && (r.beginPath =
|
|
5165
|
+
r && (r.beginPath = Po, r.closePath = Po), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
|
5153
5166
|
if (!(typeof o.path > "u")) {
|
|
5154
5167
|
var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
|
|
5155
|
-
s || (s =
|
|
5168
|
+
s || (s = Be.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
|
5156
5169
|
}
|
|
5157
5170
|
}), Reflect.apply(n, e, []), e.clip(), r && (r.beginPath = i, r.closePath = n);
|
|
5158
5171
|
}
|
|
5159
5172
|
render(e) {
|
|
5160
5173
|
}
|
|
5161
5174
|
}
|
|
5162
|
-
class
|
|
5175
|
+
class Br extends I {
|
|
5163
5176
|
constructor() {
|
|
5164
5177
|
super(...arguments), this.type = "filter";
|
|
5165
5178
|
}
|
|
@@ -5176,39 +5189,39 @@ class Vr extends N {
|
|
|
5176
5189
|
});
|
|
5177
5190
|
var u = Math.floor(n.width), l = Math.floor(n.height), h = u + 2 * o, f = l + 2 * s;
|
|
5178
5191
|
if (!(h < 1 || f < 1)) {
|
|
5179
|
-
var c = Math.floor(n.x), v = Math.floor(n.y),
|
|
5192
|
+
var c = Math.floor(n.x), v = Math.floor(n.y), g = this.removeStyles(t, Br.ignoreStyles), d = r.createCanvas(h, f), p = d.getContext("2d");
|
|
5180
5193
|
r.screen.setDefaults(p), p.translate(-c + o, -v + s), t.render(p), i.forEach((y) => {
|
|
5181
5194
|
typeof y.apply == "function" && y.apply(p, 0, 0, h, f);
|
|
5182
|
-
}), e.drawImage(
|
|
5195
|
+
}), e.drawImage(d, 0, 0, h, f, c - o, v - s, h, f), this.restoreStyles(t, g);
|
|
5183
5196
|
}
|
|
5184
5197
|
}
|
|
5185
5198
|
}
|
|
5186
5199
|
render(e) {
|
|
5187
5200
|
}
|
|
5188
5201
|
}
|
|
5189
|
-
|
|
5190
|
-
class
|
|
5202
|
+
Br.ignoreStyles = ["filter", "transform", "clip-path"];
|
|
5203
|
+
class n2 extends I {
|
|
5191
5204
|
constructor(e, t, r) {
|
|
5192
5205
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
|
5193
5206
|
}
|
|
5194
5207
|
apply(e, t, r, i, n) {
|
|
5195
5208
|
}
|
|
5196
5209
|
}
|
|
5197
|
-
class
|
|
5210
|
+
class s2 extends I {
|
|
5198
5211
|
constructor() {
|
|
5199
5212
|
super(...arguments), this.type = "feMorphology";
|
|
5200
5213
|
}
|
|
5201
5214
|
apply(e, t, r, i, n) {
|
|
5202
5215
|
}
|
|
5203
5216
|
}
|
|
5204
|
-
class
|
|
5217
|
+
class o2 extends I {
|
|
5205
5218
|
constructor() {
|
|
5206
5219
|
super(...arguments), this.type = "feComposite";
|
|
5207
5220
|
}
|
|
5208
5221
|
apply(e, t, r, i, n) {
|
|
5209
5222
|
}
|
|
5210
5223
|
}
|
|
5211
|
-
class
|
|
5224
|
+
class u2 extends I {
|
|
5212
5225
|
constructor(e, t, r) {
|
|
5213
5226
|
super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
|
|
5214
5227
|
}
|
|
@@ -5217,63 +5230,63 @@ class W1 extends N {
|
|
|
5217
5230
|
document: o,
|
|
5218
5231
|
blurRadius: s
|
|
5219
5232
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
|
5220
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
|
5233
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), t1(l, t, r, i, n, s), u && u.removeChild(l);
|
|
5221
5234
|
}
|
|
5222
5235
|
}
|
|
5223
|
-
class
|
|
5236
|
+
class l2 extends I {
|
|
5224
5237
|
constructor() {
|
|
5225
5238
|
super(...arguments), this.type = "title";
|
|
5226
5239
|
}
|
|
5227
5240
|
}
|
|
5228
|
-
class
|
|
5241
|
+
class h2 extends I {
|
|
5229
5242
|
constructor() {
|
|
5230
5243
|
super(...arguments), this.type = "desc";
|
|
5231
5244
|
}
|
|
5232
5245
|
}
|
|
5233
|
-
var
|
|
5246
|
+
var v2 = {
|
|
5234
5247
|
svg: Nt,
|
|
5235
|
-
rect:
|
|
5236
|
-
circle:
|
|
5237
|
-
ellipse:
|
|
5238
|
-
line:
|
|
5239
|
-
polyline:
|
|
5240
|
-
polygon:
|
|
5248
|
+
rect: xl,
|
|
5249
|
+
circle: V1,
|
|
5250
|
+
ellipse: D1,
|
|
5251
|
+
line: L1,
|
|
5252
|
+
polyline: Tl,
|
|
5253
|
+
polygon: k1,
|
|
5241
5254
|
path: A,
|
|
5242
|
-
pattern:
|
|
5243
|
-
marker:
|
|
5244
|
-
defs:
|
|
5245
|
-
linearGradient:
|
|
5246
|
-
radialGradient:
|
|
5247
|
-
stop:
|
|
5248
|
-
animate:
|
|
5249
|
-
animateColor:
|
|
5250
|
-
animateTransform:
|
|
5251
|
-
font:
|
|
5252
|
-
"font-face":
|
|
5253
|
-
"missing-glyph":
|
|
5254
|
-
glyph:
|
|
5255
|
+
pattern: B1,
|
|
5256
|
+
marker: j1,
|
|
5257
|
+
defs: F1,
|
|
5258
|
+
linearGradient: U1,
|
|
5259
|
+
radialGradient: G1,
|
|
5260
|
+
stop: z1,
|
|
5261
|
+
animate: an,
|
|
5262
|
+
animateColor: H1,
|
|
5263
|
+
animateTransform: Y1,
|
|
5264
|
+
font: X1,
|
|
5265
|
+
"font-face": W1,
|
|
5266
|
+
"missing-glyph": q1,
|
|
5267
|
+
glyph: bl,
|
|
5255
5268
|
text: Ce,
|
|
5256
|
-
tspan:
|
|
5257
|
-
tref:
|
|
5258
|
-
a:
|
|
5259
|
-
textPath:
|
|
5260
|
-
image:
|
|
5261
|
-
g:
|
|
5262
|
-
symbol:
|
|
5263
|
-
style:
|
|
5264
|
-
use:
|
|
5265
|
-
mask:
|
|
5266
|
-
clipPath:
|
|
5267
|
-
filter:
|
|
5268
|
-
feDropShadow:
|
|
5269
|
-
feMorphology:
|
|
5270
|
-
feComposite:
|
|
5271
|
-
feColorMatrix:
|
|
5272
|
-
feGaussianBlur:
|
|
5273
|
-
title:
|
|
5274
|
-
desc:
|
|
5269
|
+
tspan: Lr,
|
|
5270
|
+
tref: Q1,
|
|
5271
|
+
a: K1,
|
|
5272
|
+
textPath: Z1,
|
|
5273
|
+
image: e2,
|
|
5274
|
+
g: rn,
|
|
5275
|
+
symbol: t2,
|
|
5276
|
+
style: Sl,
|
|
5277
|
+
use: a2,
|
|
5278
|
+
mask: kr,
|
|
5279
|
+
clipPath: i2,
|
|
5280
|
+
filter: Br,
|
|
5281
|
+
feDropShadow: n2,
|
|
5282
|
+
feMorphology: s2,
|
|
5283
|
+
feComposite: o2,
|
|
5284
|
+
feColorMatrix: El,
|
|
5285
|
+
feGaussianBlur: u2,
|
|
5286
|
+
title: l2,
|
|
5287
|
+
desc: h2
|
|
5275
5288
|
};
|
|
5276
|
-
function
|
|
5289
|
+
function Ro(a, e) {
|
|
5277
5290
|
var t = Object.keys(a);
|
|
5278
5291
|
if (Object.getOwnPropertySymbols) {
|
|
5279
5292
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5283,26 +5296,26 @@ function Co(a, e) {
|
|
|
5283
5296
|
}
|
|
5284
5297
|
return t;
|
|
5285
5298
|
}
|
|
5286
|
-
function
|
|
5299
|
+
function f2(a) {
|
|
5287
5300
|
for (var e = 1; e < arguments.length; e++) {
|
|
5288
5301
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5289
|
-
e % 2 ?
|
|
5290
|
-
|
|
5291
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5302
|
+
e % 2 ? Ro(Object(t), !0).forEach(function(r) {
|
|
5303
|
+
en(a, r, t[r]);
|
|
5304
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ro(Object(t)).forEach(function(r) {
|
|
5292
5305
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5293
5306
|
});
|
|
5294
5307
|
}
|
|
5295
5308
|
return a;
|
|
5296
5309
|
}
|
|
5297
|
-
function
|
|
5310
|
+
function c2(a, e) {
|
|
5298
5311
|
var t = document.createElement("canvas");
|
|
5299
5312
|
return t.width = a, t.height = e, t;
|
|
5300
5313
|
}
|
|
5301
|
-
function
|
|
5302
|
-
return
|
|
5314
|
+
function g2(a) {
|
|
5315
|
+
return bi.apply(this, arguments);
|
|
5303
5316
|
}
|
|
5304
|
-
function
|
|
5305
|
-
return
|
|
5317
|
+
function bi() {
|
|
5318
|
+
return bi = xe(function* (a) {
|
|
5306
5319
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = document.createElement("img");
|
|
5307
5320
|
return e && (t.crossOrigin = "Anonymous"), new Promise((r, i) => {
|
|
5308
5321
|
t.onload = () => {
|
|
@@ -5311,7 +5324,7 @@ function mi() {
|
|
|
5311
5324
|
i(l);
|
|
5312
5325
|
}, t.src = a;
|
|
5313
5326
|
});
|
|
5314
|
-
}),
|
|
5327
|
+
}), bi.apply(this, arguments);
|
|
5315
5328
|
}
|
|
5316
5329
|
class $e {
|
|
5317
5330
|
constructor(e) {
|
|
@@ -5322,7 +5335,7 @@ class $e {
|
|
|
5322
5335
|
createImage: n = $e.createImage,
|
|
5323
5336
|
anonymousCrossOrigin: o
|
|
5324
5337
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5325
|
-
this.canvg = e, this.definitions =
|
|
5338
|
+
this.canvg = e, this.definitions = /* @__PURE__ */ Object.create(null), this.styles = /* @__PURE__ */ Object.create(null), this.stylesSpecificity = /* @__PURE__ */ Object.create(null), this.images = [], this.fonts = [], this.emSizeStack = [], this.uniqueId = 0, this.screen = e.screen, this.rootEmSize = t, this.emSize = r, this.createCanvas = i, this.createImage = this.bindCreateImage(n, o), this.screen.wait(this.isImagesLoaded.bind(this)), this.screen.wait(this.isFontsLoaded.bind(this));
|
|
5326
5339
|
}
|
|
5327
5340
|
bindCreateImage(e, t) {
|
|
5328
5341
|
return typeof t == "boolean" ? (r, i) => e(r, typeof i == "boolean" ? i : t) : e;
|
|
@@ -5369,21 +5382,21 @@ class $e {
|
|
|
5369
5382
|
}
|
|
5370
5383
|
createElement(e) {
|
|
5371
5384
|
var t = e.nodeName.replace(/^[^:]+:/, ""), r = $e.elementTypes[t];
|
|
5372
|
-
return typeof r < "u" ? new r(this, e) : new
|
|
5385
|
+
return typeof r < "u" ? new r(this, e) : new P1(this, e);
|
|
5373
5386
|
}
|
|
5374
5387
|
createTextNode(e) {
|
|
5375
|
-
return new
|
|
5388
|
+
return new _1(this, e);
|
|
5376
5389
|
}
|
|
5377
5390
|
setViewBox(e) {
|
|
5378
|
-
this.screen.setViewBox(
|
|
5391
|
+
this.screen.setViewBox(f2({
|
|
5379
5392
|
document: this
|
|
5380
5393
|
}, e));
|
|
5381
5394
|
}
|
|
5382
5395
|
}
|
|
5383
|
-
$e.createCanvas =
|
|
5384
|
-
$e.createImage =
|
|
5385
|
-
$e.elementTypes =
|
|
5386
|
-
function
|
|
5396
|
+
$e.createCanvas = c2;
|
|
5397
|
+
$e.createImage = g2;
|
|
5398
|
+
$e.elementTypes = v2;
|
|
5399
|
+
function No(a, e) {
|
|
5387
5400
|
var t = Object.keys(a);
|
|
5388
5401
|
if (Object.getOwnPropertySymbols) {
|
|
5389
5402
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5393,12 +5406,12 @@ function Ao(a, e) {
|
|
|
5393
5406
|
}
|
|
5394
5407
|
return t;
|
|
5395
5408
|
}
|
|
5396
|
-
function
|
|
5409
|
+
function De(a) {
|
|
5397
5410
|
for (var e = 1; e < arguments.length; e++) {
|
|
5398
5411
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5399
|
-
e % 2 ?
|
|
5400
|
-
|
|
5401
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5412
|
+
e % 2 ? No(Object(t), !0).forEach(function(r) {
|
|
5413
|
+
en(a, r, t[r]);
|
|
5414
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : No(Object(t)).forEach(function(r) {
|
|
5402
5415
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5403
5416
|
});
|
|
5404
5417
|
}
|
|
@@ -5413,7 +5426,7 @@ class mt {
|
|
|
5413
5426
|
*/
|
|
5414
5427
|
constructor(e, t) {
|
|
5415
5428
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5416
|
-
this.parser = new
|
|
5429
|
+
this.parser = new Ga(r), this.screen = new Dr(e, r), this.options = r;
|
|
5417
5430
|
var i = new $e(this, r), n = i.createDocumentElement(t);
|
|
5418
5431
|
this.document = i, this.documentElement = n;
|
|
5419
5432
|
}
|
|
@@ -5427,7 +5440,7 @@ class mt {
|
|
|
5427
5440
|
static from(e, t) {
|
|
5428
5441
|
var r = arguments;
|
|
5429
5442
|
return xe(function* () {
|
|
5430
|
-
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new
|
|
5443
|
+
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new Ga(i), o = yield n.parse(t);
|
|
5431
5444
|
return new mt(e, o, i);
|
|
5432
5445
|
})();
|
|
5433
5446
|
}
|
|
@@ -5439,7 +5452,7 @@ class mt {
|
|
|
5439
5452
|
* @returns Canvg instance.
|
|
5440
5453
|
*/
|
|
5441
5454
|
static fromString(e, t) {
|
|
5442
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new
|
|
5455
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new Ga(r), n = i.parseFromString(t);
|
|
5443
5456
|
return new mt(e, n, r);
|
|
5444
5457
|
}
|
|
5445
5458
|
/**
|
|
@@ -5451,7 +5464,7 @@ class mt {
|
|
|
5451
5464
|
*/
|
|
5452
5465
|
fork(e, t) {
|
|
5453
5466
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5454
|
-
return mt.from(e, t,
|
|
5467
|
+
return mt.from(e, t, De(De({}, this.options), r));
|
|
5455
5468
|
}
|
|
5456
5469
|
/**
|
|
5457
5470
|
* Create new Canvg instance with inherited options.
|
|
@@ -5462,7 +5475,7 @@ class mt {
|
|
|
5462
5475
|
*/
|
|
5463
5476
|
forkString(e, t) {
|
|
5464
5477
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5465
|
-
return mt.fromString(e, t,
|
|
5478
|
+
return mt.fromString(e, t, De(De({}, this.options), r));
|
|
5466
5479
|
}
|
|
5467
5480
|
/**
|
|
5468
5481
|
* Document is ready promise.
|
|
@@ -5486,7 +5499,7 @@ class mt {
|
|
|
5486
5499
|
var e = arguments, t = this;
|
|
5487
5500
|
return xe(function* () {
|
|
5488
5501
|
var r = e.length > 0 && e[0] !== void 0 ? e[0] : {};
|
|
5489
|
-
t.start(
|
|
5502
|
+
t.start(De({
|
|
5490
5503
|
enableRedraw: !0,
|
|
5491
5504
|
ignoreAnimation: !0,
|
|
5492
5505
|
ignoreMouse: !0
|
|
@@ -5503,7 +5516,7 @@ class mt {
|
|
|
5503
5516
|
screen: r,
|
|
5504
5517
|
options: i
|
|
5505
5518
|
} = this;
|
|
5506
|
-
r.start(t,
|
|
5519
|
+
r.start(t, De(De({
|
|
5507
5520
|
enableRedraw: !0
|
|
5508
5521
|
}, i), e));
|
|
5509
5522
|
}
|
|
@@ -5525,90 +5538,90 @@ class mt {
|
|
|
5525
5538
|
}
|
|
5526
5539
|
}
|
|
5527
5540
|
export {
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5541
|
+
K1 as AElement,
|
|
5542
|
+
H1 as AnimateColorElement,
|
|
5543
|
+
an as AnimateElement,
|
|
5544
|
+
Y1 as AnimateTransformElement,
|
|
5532
5545
|
ce as BoundingBox,
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5546
|
+
To as CB1,
|
|
5547
|
+
Oo as CB2,
|
|
5548
|
+
So as CB3,
|
|
5549
|
+
Eo as CB4,
|
|
5537
5550
|
mt as Canvg,
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5551
|
+
V1 as CircleElement,
|
|
5552
|
+
i2 as ClipPathElement,
|
|
5553
|
+
F1 as DefsElement,
|
|
5554
|
+
h2 as DescElement,
|
|
5542
5555
|
$e as Document,
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5556
|
+
I as Element,
|
|
5557
|
+
D1 as EllipseElement,
|
|
5558
|
+
El as FeColorMatrixElement,
|
|
5559
|
+
o2 as FeCompositeElement,
|
|
5560
|
+
n2 as FeDropShadowElement,
|
|
5561
|
+
u2 as FeGaussianBlurElement,
|
|
5562
|
+
s2 as FeMorphologyElement,
|
|
5563
|
+
Br as FilterElement,
|
|
5551
5564
|
Z as Font,
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5565
|
+
X1 as FontElement,
|
|
5566
|
+
W1 as FontFaceElement,
|
|
5567
|
+
rn as GElement,
|
|
5568
|
+
bl as GlyphElement,
|
|
5569
|
+
Ol as GradientElement,
|
|
5570
|
+
e2 as ImageElement,
|
|
5571
|
+
L1 as LineElement,
|
|
5572
|
+
U1 as LinearGradientElement,
|
|
5573
|
+
j1 as MarkerElement,
|
|
5574
|
+
kr as MaskElement,
|
|
5575
|
+
yl as Matrix,
|
|
5576
|
+
q1 as MissingGlyphElement,
|
|
5577
|
+
b1 as Mouse,
|
|
5578
|
+
rt as PSEUDO_ZERO,
|
|
5579
|
+
Ga as Parser,
|
|
5567
5580
|
A as PathElement,
|
|
5568
5581
|
w as PathParser,
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5582
|
+
B1 as PatternElement,
|
|
5583
|
+
k as Point,
|
|
5584
|
+
k1 as PolygonElement,
|
|
5585
|
+
Tl as PolylineElement,
|
|
5573
5586
|
S as Property,
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5587
|
+
$o as QB1,
|
|
5588
|
+
wo as QB2,
|
|
5589
|
+
Co as QB3,
|
|
5590
|
+
G1 as RadialGradientElement,
|
|
5591
|
+
xl as RectElement,
|
|
5579
5592
|
Ge as RenderedElement,
|
|
5580
|
-
|
|
5593
|
+
S1 as Rotate,
|
|
5581
5594
|
Nt as SVGElement,
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5595
|
+
r2 as SVGFontLoader,
|
|
5596
|
+
E1 as Scale,
|
|
5597
|
+
Dr as Screen,
|
|
5598
|
+
ml as Skew,
|
|
5599
|
+
$1 as SkewX,
|
|
5600
|
+
w1 as SkewY,
|
|
5601
|
+
z1 as StopElement,
|
|
5602
|
+
Sl as StyleElement,
|
|
5603
|
+
t2 as SymbolElement,
|
|
5604
|
+
Q1 as TRefElement,
|
|
5605
|
+
Lr as TSpanElement,
|
|
5593
5606
|
Ce as TextElement,
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5607
|
+
Z1 as TextPathElement,
|
|
5608
|
+
l2 as TitleElement,
|
|
5609
|
+
Be as Transform,
|
|
5610
|
+
O1 as Translate,
|
|
5611
|
+
P1 as UnknownElement,
|
|
5612
|
+
a2 as UseElement,
|
|
5613
|
+
m1 as ViewPort,
|
|
5614
|
+
lt as compressSpaces,
|
|
5602
5615
|
mt as default,
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5616
|
+
y1 as getSelectorSpecificity,
|
|
5617
|
+
u1 as normalizeAttributeName,
|
|
5618
|
+
l1 as normalizeColor,
|
|
5619
|
+
gl as parseExternalUrl,
|
|
5620
|
+
p2 as presets,
|
|
5621
|
+
ne as toNumbers,
|
|
5622
|
+
n1 as trimLeft,
|
|
5623
|
+
s1 as trimRight,
|
|
5624
|
+
bo as vectorMagnitude,
|
|
5625
|
+
xo as vectorsAngle,
|
|
5626
|
+
mi as vectorsRatio
|
|
5614
5627
|
};
|