archgine 1.0.15 → 1.0.17
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/lib/environment.worker.js +172 -169
- package/lib/extras/app.d.ts +3 -1
- package/lib/extras/interfaces.d.ts +5 -1
- package/lib/extras/svg-app.d.ts +4 -2
- package/lib/index.mjs +558 -516
- package/lib/index.umd.js +14 -14
- package/lib/math/color.d.ts +1 -0
- package/lib/scenes/svg-scene.d.ts +1 -4
- package/package.json +1 -1
|
@@ -260,7 +260,7 @@ var Gn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
260
260
|
function ly(i) {
|
|
261
261
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
262
262
|
}
|
|
263
|
-
var Cr = {},
|
|
263
|
+
var Cr = {}, fr = {};
|
|
264
264
|
function hy(i, t, e) {
|
|
265
265
|
if (e === void 0 && (e = Array.prototype), i && typeof e.find == "function")
|
|
266
266
|
return e.find.call(i, t);
|
|
@@ -374,12 +374,12 @@ var yc = Da({
|
|
|
374
374
|
*/
|
|
375
375
|
XMLNS: "http://www.w3.org/2000/xmlns/"
|
|
376
376
|
});
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
var vc =
|
|
377
|
+
fr.assign = cy;
|
|
378
|
+
fr.find = hy;
|
|
379
|
+
fr.freeze = Da;
|
|
380
|
+
fr.MIME_TYPE = yc;
|
|
381
|
+
fr.NAMESPACE = xc;
|
|
382
|
+
var vc = fr, ke = vc.find, oi = vc.NAMESPACE;
|
|
383
383
|
function fy(i) {
|
|
384
384
|
return i !== "";
|
|
385
385
|
}
|
|
@@ -413,7 +413,7 @@ function jt(i, t) {
|
|
|
413
413
|
}
|
|
414
414
|
e.constructor != i && (typeof i != "function" && console.error("unknown Class:" + i), e.constructor = i);
|
|
415
415
|
}
|
|
416
|
-
var te = {}, Me = te.ELEMENT_NODE = 1, vn = te.ATTRIBUTE_NODE = 2, As = te.TEXT_NODE = 3, Ac = te.CDATA_SECTION_NODE = 4, wc = te.ENTITY_REFERENCE_NODE = 5, my = te.ENTITY_NODE = 6, bc = te.PROCESSING_INSTRUCTION_NODE = 7, Ec = te.COMMENT_NODE = 8, _c = te.DOCUMENT_NODE = 9, Cc = te.DOCUMENT_TYPE_NODE = 10,
|
|
416
|
+
var te = {}, Me = te.ELEMENT_NODE = 1, vn = te.ATTRIBUTE_NODE = 2, As = te.TEXT_NODE = 3, Ac = te.CDATA_SECTION_NODE = 4, wc = te.ENTITY_REFERENCE_NODE = 5, my = te.ENTITY_NODE = 6, bc = te.PROCESSING_INSTRUCTION_NODE = 7, Ec = te.COMMENT_NODE = 8, _c = te.DOCUMENT_NODE = 9, Cc = te.DOCUMENT_TYPE_NODE = 10, hr = te.DOCUMENT_FRAGMENT_NODE = 11, yy = te.NOTATION_NODE = 12, kt = {}, It = {};
|
|
417
417
|
kt.INDEX_SIZE_ERR = (It[1] = "Index size error", 1);
|
|
418
418
|
kt.DOMSTRING_SIZE_ERR = (It[2] = "DOMString size error", 2);
|
|
419
419
|
var Kt = kt.HIERARCHY_REQUEST_ERR = (It[3] = "Hierarchy request error", 3);
|
|
@@ -438,9 +438,9 @@ function Ct(i, t) {
|
|
|
438
438
|
}
|
|
439
439
|
Ct.prototype = Error.prototype;
|
|
440
440
|
pi(kt, Ct);
|
|
441
|
-
function
|
|
441
|
+
function or() {
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
or.prototype = {
|
|
444
444
|
/**
|
|
445
445
|
* The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
|
|
446
446
|
* @standard level1
|
|
@@ -495,7 +495,7 @@ function Ta(i) {
|
|
|
495
495
|
An.prototype.item = function(i) {
|
|
496
496
|
return Ta(this), this[i] || null;
|
|
497
497
|
};
|
|
498
|
-
jt(An,
|
|
498
|
+
jt(An, or);
|
|
499
499
|
function ws() {
|
|
500
500
|
}
|
|
501
501
|
function Tc(i, t) {
|
|
@@ -524,7 +524,7 @@ function Dh(i, t, e) {
|
|
|
524
524
|
}
|
|
525
525
|
ws.prototype = {
|
|
526
526
|
length: 0,
|
|
527
|
-
item:
|
|
527
|
+
item: or.prototype.item,
|
|
528
528
|
getNamedItem: function(i) {
|
|
529
529
|
for (var t = this.length; t--; ) {
|
|
530
530
|
var e = this[t];
|
|
@@ -611,7 +611,7 @@ Nc.prototype = {
|
|
|
611
611
|
*/
|
|
612
612
|
createDocument: function(i, t, e) {
|
|
613
613
|
var n = new di();
|
|
614
|
-
if (n.implementation = this, n.childNodes = new
|
|
614
|
+
if (n.implementation = this, n.childNodes = new or(), n.doctype = e || null, e && n.appendChild(e), t) {
|
|
615
615
|
var u = n.createElementNS(i, t);
|
|
616
616
|
n.appendChild(u);
|
|
617
617
|
}
|
|
@@ -782,9 +782,9 @@ function vy(i) {
|
|
|
782
782
|
return i && (i.nodeType === ft.DOCUMENT_NODE || i.nodeType === ft.DOCUMENT_FRAGMENT_NODE || i.nodeType === ft.ELEMENT_NODE);
|
|
783
783
|
}
|
|
784
784
|
function Ay(i) {
|
|
785
|
-
return i && (We(i) || Sa(i) ||
|
|
785
|
+
return i && (We(i) || Sa(i) || cr(i) || i.nodeType === ft.DOCUMENT_FRAGMENT_NODE || i.nodeType === ft.COMMENT_NODE || i.nodeType === ft.PROCESSING_INSTRUCTION_NODE);
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function cr(i) {
|
|
788
788
|
return i && i.nodeType === ft.DOCUMENT_TYPE_NODE;
|
|
789
789
|
}
|
|
790
790
|
function We(i) {
|
|
@@ -795,9 +795,9 @@ function Sa(i) {
|
|
|
795
795
|
}
|
|
796
796
|
function Th(i, t) {
|
|
797
797
|
var e = i.childNodes || [];
|
|
798
|
-
if (ke(e, We) ||
|
|
798
|
+
if (ke(e, We) || cr(t))
|
|
799
799
|
return !1;
|
|
800
|
-
var n = ke(e,
|
|
800
|
+
var n = ke(e, cr);
|
|
801
801
|
return !(t && n && e.indexOf(n) > e.indexOf(t));
|
|
802
802
|
}
|
|
803
803
|
function Nh(i, t) {
|
|
@@ -807,7 +807,7 @@ function Nh(i, t) {
|
|
|
807
807
|
}
|
|
808
808
|
if (ke(e, n))
|
|
809
809
|
return !1;
|
|
810
|
-
var u = ke(e,
|
|
810
|
+
var u = ke(e, cr);
|
|
811
811
|
return !(t && u && e.indexOf(u) > e.indexOf(t));
|
|
812
812
|
}
|
|
813
813
|
function wy(i, t, e) {
|
|
@@ -821,7 +821,7 @@ function wy(i, t, e) {
|
|
|
821
821
|
// the sax parser currently adds top level text nodes, this will be fixed in 0.9.0
|
|
822
822
|
// || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)
|
|
823
823
|
// or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
|
|
824
|
-
|
|
824
|
+
cr(t) && i.nodeType !== ft.DOCUMENT_NODE
|
|
825
825
|
)
|
|
826
826
|
throw new Ct(
|
|
827
827
|
Kt,
|
|
@@ -839,8 +839,8 @@ function by(i, t, e) {
|
|
|
839
839
|
}
|
|
840
840
|
if (We(t) && !Th(i, e))
|
|
841
841
|
throw new Ct(Kt, "Only one element can be added and only after doctype");
|
|
842
|
-
if (
|
|
843
|
-
if (ke(n,
|
|
842
|
+
if (cr(t)) {
|
|
843
|
+
if (ke(n, cr))
|
|
844
844
|
throw new Ct(Kt, "Only one doctype is allowed");
|
|
845
845
|
var l = ke(n, We);
|
|
846
846
|
if (e && n.indexOf(l) < n.indexOf(e))
|
|
@@ -860,9 +860,9 @@ function Bc(i, t, e) {
|
|
|
860
860
|
}
|
|
861
861
|
if (We(t) && !Nh(i, e))
|
|
862
862
|
throw new Ct(Kt, "Only one element can be added and only after doctype");
|
|
863
|
-
if (
|
|
863
|
+
if (cr(t)) {
|
|
864
864
|
let f = function(d) {
|
|
865
|
-
return
|
|
865
|
+
return cr(d) && d !== e;
|
|
866
866
|
};
|
|
867
867
|
var c = f;
|
|
868
868
|
if (ke(n, f))
|
|
@@ -875,7 +875,7 @@ function Bc(i, t, e) {
|
|
|
875
875
|
function bs(i, t, e, n) {
|
|
876
876
|
wy(i, t, e), i.nodeType === ft.DOCUMENT_NODE && (n || by)(i, t, e);
|
|
877
877
|
var u = t.parentNode;
|
|
878
|
-
if (u && u.removeChild(t), t.nodeType ===
|
|
878
|
+
if (u && u.removeChild(t), t.nodeType === hr) {
|
|
879
879
|
var a = t.firstChild;
|
|
880
880
|
if (a == null)
|
|
881
881
|
return t;
|
|
@@ -887,7 +887,7 @@ function bs(i, t, e, n) {
|
|
|
887
887
|
do
|
|
888
888
|
a.parentNode = i;
|
|
889
889
|
while (a !== l && (a = a.nextSibling));
|
|
890
|
-
return Na(i.ownerDocument || i, i), t.nodeType ==
|
|
890
|
+
return Na(i.ownerDocument || i, i), t.nodeType == hr && (t.firstChild = t.lastChild = null), t;
|
|
891
891
|
}
|
|
892
892
|
function Ey(i, t) {
|
|
893
893
|
return t.parentNode && t.parentNode.removeChild(t), t.parentNode = i, t.previousSibling = i.lastChild, t.nextSibling = null, t.previousSibling ? t.previousSibling.nextSibling = t : i.firstChild = t, i.lastChild = t, Na(i.ownerDocument, i, t), t;
|
|
@@ -906,7 +906,7 @@ di.prototype = {
|
|
|
906
906
|
documentElement: null,
|
|
907
907
|
_inc: 1,
|
|
908
908
|
insertBefore: function(i, t) {
|
|
909
|
-
if (i.nodeType ==
|
|
909
|
+
if (i.nodeType == hr) {
|
|
910
910
|
for (var e = i.firstChild; e; ) {
|
|
911
911
|
var n = e.nextSibling;
|
|
912
912
|
this.insertBefore(e, t), e = n;
|
|
@@ -972,13 +972,13 @@ di.prototype = {
|
|
|
972
972
|
//document factory method:
|
|
973
973
|
createElement: function(i) {
|
|
974
974
|
var t = new Hr();
|
|
975
|
-
t.ownerDocument = this, t.nodeName = i, t.tagName = i, t.localName = i, t.childNodes = new
|
|
975
|
+
t.ownerDocument = this, t.nodeName = i, t.tagName = i, t.localName = i, t.childNodes = new or();
|
|
976
976
|
var e = t.attributes = new ws();
|
|
977
977
|
return e._ownerElement = t, t;
|
|
978
978
|
},
|
|
979
979
|
createDocumentFragment: function() {
|
|
980
980
|
var i = new Ns();
|
|
981
|
-
return i.ownerDocument = this, i.childNodes = new
|
|
981
|
+
return i.ownerDocument = this, i.childNodes = new or(), i;
|
|
982
982
|
},
|
|
983
983
|
createTextNode: function(i) {
|
|
984
984
|
var t = new Ma();
|
|
@@ -1007,7 +1007,7 @@ di.prototype = {
|
|
|
1007
1007
|
// Introduced in DOM Level 2:
|
|
1008
1008
|
createElementNS: function(i, t) {
|
|
1009
1009
|
var e = new Hr(), n = t.split(":"), u = e.attributes = new ws();
|
|
1010
|
-
return e.childNodes = new
|
|
1010
|
+
return e.childNodes = new or(), e.ownerDocument = this, e.nodeName = t, e.tagName = t, e.namespaceURI = i, n.length == 2 ? (e.prefix = n[0], e.localName = n[1]) : e.localName = t, u._ownerElement = e, e;
|
|
1011
1011
|
},
|
|
1012
1012
|
// Introduced in DOM Level 2:
|
|
1013
1013
|
createAttributeNS: function(i, t) {
|
|
@@ -1041,7 +1041,7 @@ Hr.prototype = {
|
|
|
1041
1041
|
},
|
|
1042
1042
|
//four real opeartion method
|
|
1043
1043
|
appendChild: function(i) {
|
|
1044
|
-
return i.nodeType ===
|
|
1044
|
+
return i.nodeType === hr ? this.insertBefore(i, null) : Ey(this, i);
|
|
1045
1045
|
},
|
|
1046
1046
|
setAttributeNode: function(i) {
|
|
1047
1047
|
return this.attributes.setNamedItem(i);
|
|
@@ -1166,7 +1166,7 @@ jt(Ra, ft);
|
|
|
1166
1166
|
function Ns() {
|
|
1167
1167
|
}
|
|
1168
1168
|
Ns.prototype.nodeName = "#document-fragment";
|
|
1169
|
-
Ns.prototype.nodeType =
|
|
1169
|
+
Ns.prototype.nodeType = hr;
|
|
1170
1170
|
jt(Ns, ft);
|
|
1171
1171
|
function Ia() {
|
|
1172
1172
|
}
|
|
@@ -1270,7 +1270,7 @@ function yn(i, t, e, n, u) {
|
|
|
1270
1270
|
t.push("/>");
|
|
1271
1271
|
return;
|
|
1272
1272
|
case _c:
|
|
1273
|
-
case
|
|
1273
|
+
case hr:
|
|
1274
1274
|
for (var P = i.firstChild; P; )
|
|
1275
1275
|
yn(P, t, e, n, u.slice()), P = P.nextSibling;
|
|
1276
1276
|
return;
|
|
@@ -1308,7 +1308,7 @@ function Fc(i, t, e) {
|
|
|
1308
1308
|
switch (t.nodeType) {
|
|
1309
1309
|
case Me:
|
|
1310
1310
|
n = t.cloneNode(!1), n.ownerDocument = i;
|
|
1311
|
-
case
|
|
1311
|
+
case hr:
|
|
1312
1312
|
break;
|
|
1313
1313
|
case vn:
|
|
1314
1314
|
e = !0;
|
|
@@ -1326,7 +1326,7 @@ function xa(i, t, e) {
|
|
|
1326
1326
|
var a = t[u];
|
|
1327
1327
|
typeof a != "object" && a != n[u] && (n[u] = a);
|
|
1328
1328
|
}
|
|
1329
|
-
switch (t.childNodes && (n.childNodes = new
|
|
1329
|
+
switch (t.childNodes && (n.childNodes = new or()), n.ownerDocument = i, n.nodeType) {
|
|
1330
1330
|
case Me:
|
|
1331
1331
|
var l = t.attributes, c = n.attributes = new ws(), f = l.length;
|
|
1332
1332
|
c._ownerElement = n;
|
|
@@ -1349,7 +1349,7 @@ try {
|
|
|
1349
1349
|
let i = function(t) {
|
|
1350
1350
|
switch (t.nodeType) {
|
|
1351
1351
|
case Me:
|
|
1352
|
-
case
|
|
1352
|
+
case hr:
|
|
1353
1353
|
var e = [];
|
|
1354
1354
|
for (t = t.firstChild; t; )
|
|
1355
1355
|
t.nodeType !== 7 && t.nodeType !== 8 && e.push(i(t)), t = t.nextSibling;
|
|
@@ -1370,7 +1370,7 @@ try {
|
|
|
1370
1370
|
set: function(t) {
|
|
1371
1371
|
switch (this.nodeType) {
|
|
1372
1372
|
case Me:
|
|
1373
|
-
case
|
|
1373
|
+
case hr:
|
|
1374
1374
|
for (; this.firstChild; )
|
|
1375
1375
|
this.removeChild(this.firstChild);
|
|
1376
1376
|
(t || String(t)) && this.appendChild(this.ownerDocument.createTextNode(t));
|
|
@@ -1390,11 +1390,11 @@ Cr.DOMException = Ct;
|
|
|
1390
1390
|
Cr.DOMImplementation = Nc;
|
|
1391
1391
|
Cr.Element = Hr;
|
|
1392
1392
|
Cr.Node = ft;
|
|
1393
|
-
Cr.NodeList =
|
|
1393
|
+
Cr.NodeList = or;
|
|
1394
1394
|
Cr.XMLSerializer = Pc;
|
|
1395
1395
|
var Ss = {}, qc = {};
|
|
1396
1396
|
(function(i) {
|
|
1397
|
-
var t =
|
|
1397
|
+
var t = fr.freeze;
|
|
1398
1398
|
i.XML_ENTITIES = t({
|
|
1399
1399
|
amp: "&",
|
|
1400
1400
|
apos: "'",
|
|
@@ -3530,7 +3530,7 @@ var Ss = {}, qc = {};
|
|
|
3530
3530
|
zwnj: ""
|
|
3531
3531
|
}), i.entityMap = i.HTML_ENTITIES;
|
|
3532
3532
|
})(qc);
|
|
3533
|
-
var Pa = {}, hi =
|
|
3533
|
+
var Pa = {}, hi = fr.NAMESPACE, va = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, Mh = new RegExp("[\\-\\.0-9" + va.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), Oh = new RegExp("^" + va.source + Mh.source + "*(?::" + va.source + Mh.source + "*)?$"), Xn = 0, br = 1, on = 2, Yn = 3, ln = 4, hn = 5, Zn = 6, cs = 7;
|
|
3534
3534
|
function wn(i, t) {
|
|
3535
3535
|
this.message = i, this.locator = t, Error.captureStackTrace && Error.captureStackTrace(this, wn);
|
|
3536
3536
|
}
|
|
@@ -3644,7 +3644,7 @@ function Cy(i, t, e, n, u, a) {
|
|
|
3644
3644
|
var x = i.charAt(d);
|
|
3645
3645
|
switch (x) {
|
|
3646
3646
|
case "=":
|
|
3647
|
-
if (y ===
|
|
3647
|
+
if (y === br)
|
|
3648
3648
|
c = i.slice(t, d), y = Yn;
|
|
3649
3649
|
else if (y === on)
|
|
3650
3650
|
y = Yn;
|
|
@@ -3653,8 +3653,8 @@ function Cy(i, t, e, n, u, a) {
|
|
|
3653
3653
|
break;
|
|
3654
3654
|
case "'":
|
|
3655
3655
|
case '"':
|
|
3656
|
-
if (y === Yn || y ===
|
|
3657
|
-
if (y ===
|
|
3656
|
+
if (y === Yn || y === br)
|
|
3657
|
+
if (y === br && (a.warning('attribute value must after "="'), c = i.slice(t, d)), t = d + 1, d = i.indexOf(x, t), d > 0)
|
|
3658
3658
|
f = i.slice(t, d), l(c, f, t - 1), y = hn;
|
|
3659
3659
|
else
|
|
3660
3660
|
throw new Error("attribute value no end '" + x + "' match");
|
|
@@ -3672,7 +3672,7 @@ function Cy(i, t, e, n, u, a) {
|
|
|
3672
3672
|
case cs:
|
|
3673
3673
|
y = cs, e.closed = !0;
|
|
3674
3674
|
case ln:
|
|
3675
|
-
case
|
|
3675
|
+
case br:
|
|
3676
3676
|
break;
|
|
3677
3677
|
case on:
|
|
3678
3678
|
e.closed = !0;
|
|
@@ -3692,7 +3692,7 @@ function Cy(i, t, e, n, u, a) {
|
|
|
3692
3692
|
case cs:
|
|
3693
3693
|
break;
|
|
3694
3694
|
case ln:
|
|
3695
|
-
case
|
|
3695
|
+
case br:
|
|
3696
3696
|
f = i.slice(t, d), f.slice(-1) === "/" && (e.closed = !0, f = f.slice(0, -1));
|
|
3697
3697
|
case on:
|
|
3698
3698
|
y === on && (f = c), y == ln ? (a.warning('attribute "' + f + '" missed quot(")!'), l(c, f, t)) : ((!hi.isHTML(n[""]) || !f.match(/^(?:disabled|checked|selected)$/i)) && a.warning('attribute "' + f + '" missed value!! "' + f + '" instead!!'), l(f, f, t));
|
|
@@ -3709,7 +3709,7 @@ function Cy(i, t, e, n, u, a) {
|
|
|
3709
3709
|
case Xn:
|
|
3710
3710
|
e.setTagName(i.slice(t, d)), y = Zn;
|
|
3711
3711
|
break;
|
|
3712
|
-
case
|
|
3712
|
+
case br:
|
|
3713
3713
|
c = i.slice(t, d), y = on;
|
|
3714
3714
|
break;
|
|
3715
3715
|
case ln:
|
|
@@ -3722,12 +3722,12 @@ function Cy(i, t, e, n, u, a) {
|
|
|
3722
3722
|
else
|
|
3723
3723
|
switch (y) {
|
|
3724
3724
|
case on:
|
|
3725
|
-
e.tagName, (!hi.isHTML(n[""]) || !c.match(/^(?:disabled|checked|selected)$/i)) && a.warning('attribute "' + c + '" missed value!! "' + c + '" instead2!!'), l(c, c, t), t = d, y =
|
|
3725
|
+
e.tagName, (!hi.isHTML(n[""]) || !c.match(/^(?:disabled|checked|selected)$/i)) && a.warning('attribute "' + c + '" missed value!! "' + c + '" instead2!!'), l(c, c, t), t = d, y = br;
|
|
3726
3726
|
break;
|
|
3727
3727
|
case hn:
|
|
3728
3728
|
a.warning('attribute space is required"' + c + '"!!');
|
|
3729
3729
|
case Zn:
|
|
3730
|
-
y =
|
|
3730
|
+
y = br, t = d;
|
|
3731
3731
|
break;
|
|
3732
3732
|
case Yn:
|
|
3733
3733
|
y = ln, t = d;
|
|
@@ -3859,7 +3859,7 @@ function My(i, t) {
|
|
|
3859
3859
|
}
|
|
3860
3860
|
Pa.XMLReader = kc;
|
|
3861
3861
|
Pa.ParseError = wn;
|
|
3862
|
-
var Oy =
|
|
3862
|
+
var Oy = fr, By = Cr, Ih = qc, $c = Pa, Ry = By.DOMImplementation, Ph = Oy.NAMESPACE, Iy = $c.ParseError, Py = $c.XMLReader;
|
|
3863
3863
|
function Hc(i) {
|
|
3864
3864
|
return i.replace(/\r[\n\u0085]/g, `
|
|
3865
3865
|
`).replace(/[\r\u0085\u2028]/g, `
|
|
@@ -3999,7 +3999,7 @@ Ss.__DOMHandler = mi;
|
|
|
3999
3999
|
Ss.normalizeLineEndings = Hc;
|
|
4000
4000
|
Ss.DOMParser = Vc;
|
|
4001
4001
|
var Fy = Ss.DOMParser;
|
|
4002
|
-
const Uy = "1.0.
|
|
4002
|
+
const Uy = "1.0.17";
|
|
4003
4003
|
function qy() {
|
|
4004
4004
|
return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
|
|
4005
4005
|
}
|
|
@@ -5933,7 +5933,7 @@ Cs.exports;
|
|
|
5933
5933
|
return !1;
|
|
5934
5934
|
return !0;
|
|
5935
5935
|
}
|
|
5936
|
-
function
|
|
5936
|
+
function pr(E, O) {
|
|
5937
5937
|
for (var T = -1, z = E == null ? 0 : E.length, J = 0, at = []; ++T < z; ) {
|
|
5938
5938
|
var Mt = E[T];
|
|
5939
5939
|
O(Mt, T, E) && (at[J++] = Mt);
|
|
@@ -5955,7 +5955,7 @@ Cs.exports;
|
|
|
5955
5955
|
J[T] = O(E[T], T, E);
|
|
5956
5956
|
return J;
|
|
5957
5957
|
}
|
|
5958
|
-
function
|
|
5958
|
+
function dr(E, O) {
|
|
5959
5959
|
for (var T = -1, z = O.length, J = E.length; ++T < z; )
|
|
5960
5960
|
E[J + T] = O[T];
|
|
5961
5961
|
return E;
|
|
@@ -6112,7 +6112,7 @@ Cs.exports;
|
|
|
6112
6112
|
return E(O(T));
|
|
6113
6113
|
};
|
|
6114
6114
|
}
|
|
6115
|
-
function
|
|
6115
|
+
function gr(E, O) {
|
|
6116
6116
|
for (var T = -1, z = E.length, J = 0, at = []; ++T < z; ) {
|
|
6117
6117
|
var Mt = E[T];
|
|
6118
6118
|
(Mt === O || Mt === y) && (E[T] = y, at[J++] = T);
|
|
@@ -6173,13 +6173,13 @@ Cs.exports;
|
|
|
6173
6173
|
return r ? "Symbol(src)_1." + r : "";
|
|
6174
6174
|
}(), Bi = Jr.toString, Jp = Oi.call(dt), jp = Pt._, t0 = iu(
|
|
6175
6175
|
"^" + Oi.call(ct).replace(ks, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
6176
|
-
), Ri = go ? O.Buffer : e,
|
|
6176
|
+
), Ri = go ? O.Buffer : e, mr = O.Symbol, Ii = O.Uint8Array, Ro = Ri ? Ri.allocUnsafe : e, Pi = Mo(dt.getPrototypeOf, dt), Io = dt.create, Po = Jr.propertyIsEnumerable, Li = Si.splice, Lo = mr ? mr.isConcatSpreadable : e, On = mr ? mr.iterator : e, Sr = mr ? mr.toStringTag : e, Fi = function() {
|
|
6177
6177
|
try {
|
|
6178
6178
|
var r = Ir(dt, "defineProperty");
|
|
6179
6179
|
return r({}, "", {}), r;
|
|
6180
6180
|
} catch {
|
|
6181
6181
|
}
|
|
6182
|
-
}(), e0 = O.clearTimeout !== Pt.clearTimeout && O.clearTimeout, r0 = z && z.now !== Pt.Date.now && z.now, n0 = O.setTimeout !== Pt.setTimeout && O.setTimeout, Ui = Mt.ceil, qi = Mt.floor, su = dt.getOwnPropertySymbols, i0 = Ri ? Ri.isBuffer : e, Fo = O.isFinite, s0 = Si.join, u0 = Mo(dt.keys, dt), Ot = Mt.max, Ft = Mt.min, a0 = z.now, o0 = O.parseInt, Uo = Mt.random, l0 = Si.reverse, uu = Ir(O, "DataView"), Bn = Ir(O, "Map"), au = Ir(O, "Promise"), jr = Ir(O, "Set"), Rn = Ir(O, "WeakMap"), In = Ir(dt, "create"), ki = Rn && new Rn(), tn = {}, h0 = Pr(uu), c0 = Pr(Bn), f0 = Pr(au), p0 = Pr(jr), d0 = Pr(Rn), Wi =
|
|
6182
|
+
}(), e0 = O.clearTimeout !== Pt.clearTimeout && O.clearTimeout, r0 = z && z.now !== Pt.Date.now && z.now, n0 = O.setTimeout !== Pt.setTimeout && O.setTimeout, Ui = Mt.ceil, qi = Mt.floor, su = dt.getOwnPropertySymbols, i0 = Ri ? Ri.isBuffer : e, Fo = O.isFinite, s0 = Si.join, u0 = Mo(dt.keys, dt), Ot = Mt.max, Ft = Mt.min, a0 = z.now, o0 = O.parseInt, Uo = Mt.random, l0 = Si.reverse, uu = Ir(O, "DataView"), Bn = Ir(O, "Map"), au = Ir(O, "Promise"), jr = Ir(O, "Set"), Rn = Ir(O, "WeakMap"), In = Ir(dt, "create"), ki = Rn && new Rn(), tn = {}, h0 = Pr(uu), c0 = Pr(Bn), f0 = Pr(au), p0 = Pr(jr), d0 = Pr(Rn), Wi = mr ? mr.prototype : e, Pn = Wi ? Wi.valueOf : e, qo = Wi ? Wi.toString : e;
|
|
6183
6183
|
function g(r) {
|
|
6184
6184
|
if (At(r) && !j(r) && !(r instanceof st)) {
|
|
6185
6185
|
if (r instanceof ce)
|
|
@@ -6420,7 +6420,7 @@ Cs.exports;
|
|
|
6420
6420
|
}
|
|
6421
6421
|
we.prototype.clear = P0, we.prototype.delete = L0, we.prototype.get = F0, we.prototype.has = U0, we.prototype.set = q0;
|
|
6422
6422
|
function ko(r, s) {
|
|
6423
|
-
var o = j(r), h = !o && Lr(r), p = !o && !h &&
|
|
6423
|
+
var o = j(r), h = !o && Lr(r), p = !o && !h && wr(r), m = !o && !h && !p && un(r), v = o || h || p || m, b = v ? eu(r.length, Zp) : [], _ = b.length;
|
|
6424
6424
|
for (var B in r)
|
|
6425
6425
|
(s || ct.call(r, B)) && !(v && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6426
6426
|
(B == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -6453,7 +6453,7 @@ Cs.exports;
|
|
|
6453
6453
|
return -1;
|
|
6454
6454
|
}
|
|
6455
6455
|
function z0(r, s, o, h) {
|
|
6456
|
-
return
|
|
6456
|
+
return yr(r, function(p, m, v) {
|
|
6457
6457
|
s(h, p, o(p), v);
|
|
6458
6458
|
}), h;
|
|
6459
6459
|
}
|
|
@@ -6491,7 +6491,7 @@ Cs.exports;
|
|
|
6491
6491
|
return Gt(r, v);
|
|
6492
6492
|
} else {
|
|
6493
6493
|
var I = Ut(r), k = I == wi || I == $a;
|
|
6494
|
-
if (
|
|
6494
|
+
if (wr(r))
|
|
6495
6495
|
return fl(r, b);
|
|
6496
6496
|
if (I == $e || I == Vr || k && !p) {
|
|
6497
6497
|
if (v = _ || k ? {} : Ol(r), !b)
|
|
@@ -6557,10 +6557,10 @@ Cs.exports;
|
|
|
6557
6557
|
}
|
|
6558
6558
|
return _;
|
|
6559
6559
|
}
|
|
6560
|
-
var
|
|
6560
|
+
var yr = yl(Pe), Vo = yl(cu, !0);
|
|
6561
6561
|
function V0(r, s) {
|
|
6562
6562
|
var o = !0;
|
|
6563
|
-
return
|
|
6563
|
+
return yr(r, function(h, p, m) {
|
|
6564
6564
|
return o = !!s(h, p, m), o;
|
|
6565
6565
|
}), o;
|
|
6566
6566
|
}
|
|
@@ -6580,7 +6580,7 @@ Cs.exports;
|
|
|
6580
6580
|
}
|
|
6581
6581
|
function Go(r, s) {
|
|
6582
6582
|
var o = [];
|
|
6583
|
-
return
|
|
6583
|
+
return yr(r, function(h, p, m) {
|
|
6584
6584
|
s(h, p, m) && o.push(h);
|
|
6585
6585
|
}), o;
|
|
6586
6586
|
}
|
|
@@ -6588,7 +6588,7 @@ Cs.exports;
|
|
|
6588
6588
|
var m = -1, v = r.length;
|
|
6589
6589
|
for (o || (o = I2), p || (p = []); ++m < v; ) {
|
|
6590
6590
|
var b = r[m];
|
|
6591
|
-
s > 0 && o(b) ? s > 1 ? Lt(b, s - 1, o, h, p) :
|
|
6591
|
+
s > 0 && o(b) ? s > 1 ? Lt(b, s - 1, o, h, p) : dr(p, b) : h || (p[p.length] = b);
|
|
6592
6592
|
}
|
|
6593
6593
|
return p;
|
|
6594
6594
|
}
|
|
@@ -6600,19 +6600,19 @@ Cs.exports;
|
|
|
6600
6600
|
return r && Xo(r, s, Bt);
|
|
6601
6601
|
}
|
|
6602
6602
|
function Vi(r, s) {
|
|
6603
|
-
return
|
|
6603
|
+
return pr(s, function(o) {
|
|
6604
6604
|
return Ke(r[o]);
|
|
6605
6605
|
});
|
|
6606
6606
|
}
|
|
6607
6607
|
function Rr(r, s) {
|
|
6608
|
-
s =
|
|
6608
|
+
s = vr(s, r);
|
|
6609
6609
|
for (var o = 0, h = s.length; r != null && o < h; )
|
|
6610
6610
|
r = r[Fe(s[o++])];
|
|
6611
6611
|
return o && o == h ? r : e;
|
|
6612
6612
|
}
|
|
6613
6613
|
function Yo(r, s, o) {
|
|
6614
6614
|
var h = s(r);
|
|
6615
|
-
return j(r) ? h :
|
|
6615
|
+
return j(r) ? h : dr(h, o(r));
|
|
6616
6616
|
}
|
|
6617
6617
|
function Wt(r) {
|
|
6618
6618
|
return r == null ? r === e ? wf : vf : Sr && Sr in dt(r) ? N2(r) : W2(r);
|
|
@@ -6656,7 +6656,7 @@ Cs.exports;
|
|
|
6656
6656
|
}), h;
|
|
6657
6657
|
}
|
|
6658
6658
|
function Un(r, s, o) {
|
|
6659
|
-
s =
|
|
6659
|
+
s = vr(s, r), r = Pl(r, s);
|
|
6660
6660
|
var h = r == null ? r : r[Fe(de(s))];
|
|
6661
6661
|
return h == null ? e : ee(h, r, o);
|
|
6662
6662
|
}
|
|
@@ -6676,8 +6676,8 @@ Cs.exports;
|
|
|
6676
6676
|
var v = j(r), b = j(s), _ = v ? vi : Ut(r), B = b ? vi : Ut(s);
|
|
6677
6677
|
_ = _ == Vr ? $e : _, B = B == Vr ? $e : B;
|
|
6678
6678
|
var R = _ == $e, I = B == $e, k = _ == B;
|
|
6679
|
-
if (k &&
|
|
6680
|
-
if (!
|
|
6679
|
+
if (k && wr(r)) {
|
|
6680
|
+
if (!wr(s))
|
|
6681
6681
|
return !1;
|
|
6682
6682
|
v = !0, R = !1;
|
|
6683
6683
|
}
|
|
@@ -6759,7 +6759,7 @@ Cs.exports;
|
|
|
6759
6759
|
}
|
|
6760
6760
|
function Jo(r, s) {
|
|
6761
6761
|
var o = -1, h = Xt(r) ? T(r.length) : [];
|
|
6762
|
-
return
|
|
6762
|
+
return yr(r, function(p, m, v) {
|
|
6763
6763
|
h[++o] = s(p, m, v);
|
|
6764
6764
|
}), h;
|
|
6765
6765
|
}
|
|
@@ -6793,7 +6793,7 @@ Cs.exports;
|
|
|
6793
6793
|
}
|
|
6794
6794
|
var R = m ? m(b, _, o + "", r, s, v) : e, I = R === e;
|
|
6795
6795
|
if (I) {
|
|
6796
|
-
var k = j(_), G = !k &&
|
|
6796
|
+
var k = j(_), G = !k && wr(_), K = !k && !G && un(_);
|
|
6797
6797
|
R = _, k || G || K ? j(b) ? R = b : bt(b) ? R = Gt(b) : G ? (I = !1, R = fl(_, !0)) : K ? (I = !1, R = pl(_, !0)) : R = [] : Hn(_) || Lr(_) ? (R = b, Lr(b) ? R = lh(b) : (!vt(b) || Ke(b)) && (R = Ol(_))) : I = !1;
|
|
6798
6798
|
}
|
|
6799
6799
|
I && (v.set(_, R), p(R, _, h, m, v), v.delete(_)), ou(r, o, R);
|
|
@@ -6829,7 +6829,7 @@ Cs.exports;
|
|
|
6829
6829
|
function nl(r, s, o) {
|
|
6830
6830
|
for (var h = -1, p = s.length, m = {}; ++h < p; ) {
|
|
6831
6831
|
var v = s[h], b = Rr(r, v);
|
|
6832
|
-
o(b, v) && kn(m,
|
|
6832
|
+
o(b, v) && kn(m, vr(v, r), b);
|
|
6833
6833
|
}
|
|
6834
6834
|
return m;
|
|
6835
6835
|
}
|
|
@@ -6885,7 +6885,7 @@ Cs.exports;
|
|
|
6885
6885
|
function kn(r, s, o, h) {
|
|
6886
6886
|
if (!vt(r))
|
|
6887
6887
|
return r;
|
|
6888
|
-
s =
|
|
6888
|
+
s = vr(s, r);
|
|
6889
6889
|
for (var p = -1, m = s.length, v = m - 1, b = r; b != null && ++p < m; ) {
|
|
6890
6890
|
var _ = Fe(s[p]), B = o;
|
|
6891
6891
|
if (_ === "__proto__" || _ === "constructor" || _ === "prototype")
|
|
@@ -6920,7 +6920,7 @@ Cs.exports;
|
|
|
6920
6920
|
}
|
|
6921
6921
|
function p2(r, s) {
|
|
6922
6922
|
var o;
|
|
6923
|
-
return
|
|
6923
|
+
return yr(r, function(h, p, m) {
|
|
6924
6924
|
return o = s(h, p, m), !o;
|
|
6925
6925
|
}), !!o;
|
|
6926
6926
|
}
|
|
@@ -6972,7 +6972,7 @@ Cs.exports;
|
|
|
6972
6972
|
var s = r + "";
|
|
6973
6973
|
return s == "0" && 1 / r == -Nt ? "-0" : s;
|
|
6974
6974
|
}
|
|
6975
|
-
function
|
|
6975
|
+
function xr(r, s, o) {
|
|
6976
6976
|
var h = -1, p = Di, m = r.length, v = !0, b = [], _ = b;
|
|
6977
6977
|
if (o)
|
|
6978
6978
|
v = !1, p = Zs;
|
|
@@ -6996,7 +6996,7 @@ Cs.exports;
|
|
|
6996
6996
|
return b;
|
|
6997
6997
|
}
|
|
6998
6998
|
function wu(r, s) {
|
|
6999
|
-
return s =
|
|
6999
|
+
return s = vr(s, r), r = Pl(r, s), r == null || delete r[Fe(de(s))];
|
|
7000
7000
|
}
|
|
7001
7001
|
function ol(r, s, o, h) {
|
|
7002
7002
|
return kn(r, s, o(Rr(r, s)), h);
|
|
@@ -7009,17 +7009,17 @@ Cs.exports;
|
|
|
7009
7009
|
function ll(r, s) {
|
|
7010
7010
|
var o = r;
|
|
7011
7011
|
return o instanceof st && (o = o.value()), Ks(s, function(h, p) {
|
|
7012
|
-
return p.func.apply(p.thisArg,
|
|
7012
|
+
return p.func.apply(p.thisArg, dr([h], p.args));
|
|
7013
7013
|
}, o);
|
|
7014
7014
|
}
|
|
7015
7015
|
function bu(r, s, o) {
|
|
7016
7016
|
var h = r.length;
|
|
7017
7017
|
if (h < 2)
|
|
7018
|
-
return h ?
|
|
7018
|
+
return h ? xr(r[0]) : [];
|
|
7019
7019
|
for (var p = -1, m = T(h); ++p < h; )
|
|
7020
7020
|
for (var v = r[p], b = -1; ++b < h; )
|
|
7021
7021
|
b != p && (m[p] = Fn(m[p] || v, r[b], s, o));
|
|
7022
|
-
return
|
|
7022
|
+
return xr(Lt(m, 1), s, o);
|
|
7023
7023
|
}
|
|
7024
7024
|
function hl(r, s, o) {
|
|
7025
7025
|
for (var h = -1, p = r.length, m = s.length, v = {}; ++h < p; ) {
|
|
@@ -7034,11 +7034,11 @@ Cs.exports;
|
|
|
7034
7034
|
function _u(r) {
|
|
7035
7035
|
return typeof r == "function" ? r : Zt;
|
|
7036
7036
|
}
|
|
7037
|
-
function
|
|
7037
|
+
function vr(r, s) {
|
|
7038
7038
|
return j(r) ? r : Ru(r, s) ? [r] : ql(ot(r));
|
|
7039
7039
|
}
|
|
7040
7040
|
var d2 = nt;
|
|
7041
|
-
function
|
|
7041
|
+
function Ar(r, s, o) {
|
|
7042
7042
|
var h = r.length;
|
|
7043
7043
|
return o = o === e ? h : o, !s && o >= h ? r : pe(r, s, o);
|
|
7044
7044
|
}
|
|
@@ -7179,7 +7179,7 @@ Cs.exports;
|
|
|
7179
7179
|
function vl(r) {
|
|
7180
7180
|
return function(s) {
|
|
7181
7181
|
s = ot(s);
|
|
7182
|
-
var o = Zr(s) ? Ae(s) : e, h = o ? o[0] : s.charAt(0), p = o ?
|
|
7182
|
+
var o = Zr(s) ? Ae(s) : e, h = o ? o[0] : s.charAt(0), p = o ? Ar(o, 1).join("") : s.slice(1);
|
|
7183
7183
|
return h[r]() + p;
|
|
7184
7184
|
};
|
|
7185
7185
|
}
|
|
@@ -7218,7 +7218,7 @@ Cs.exports;
|
|
|
7218
7218
|
function p() {
|
|
7219
7219
|
for (var m = arguments.length, v = T(m), b = m, _ = sn(p); b--; )
|
|
7220
7220
|
v[b] = arguments[b];
|
|
7221
|
-
var B = m < 3 && v[0] !== _ && v[m - 1] !== _ ? [] :
|
|
7221
|
+
var B = m < 3 && v[0] !== _ && v[m - 1] !== _ ? [] : gr(v, _);
|
|
7222
7222
|
if (m -= B.length, m < o)
|
|
7223
7223
|
return _l(
|
|
7224
7224
|
r,
|
|
@@ -7283,7 +7283,7 @@ Cs.exports;
|
|
|
7283
7283
|
if (G)
|
|
7284
7284
|
var $t = sn(Q), ue = Ip(ut, $t);
|
|
7285
7285
|
if (h && (ut = gl(ut, h, p, G)), m && (ut = ml(ut, m, v, G)), it -= ue, G && it < B) {
|
|
7286
|
-
var Et =
|
|
7286
|
+
var Et = gr(ut, $t);
|
|
7287
7287
|
return _l(
|
|
7288
7288
|
r,
|
|
7289
7289
|
s,
|
|
@@ -7336,7 +7336,7 @@ Cs.exports;
|
|
|
7336
7336
|
if (o < 2)
|
|
7337
7337
|
return o ? vu(s, r) : s;
|
|
7338
7338
|
var h = vu(s, Ui(r / Kr(s)));
|
|
7339
|
-
return Zr(s) ?
|
|
7339
|
+
return Zr(s) ? Ar(Ae(h), 0, r).join("") : h.slice(0, r);
|
|
7340
7340
|
}
|
|
7341
7341
|
function E2(r, s, o, h) {
|
|
7342
7342
|
var p = s & C, m = Wn(r);
|
|
@@ -7584,12 +7584,12 @@ Cs.exports;
|
|
|
7584
7584
|
return h && (s ? r[Sr] = o : delete r[Sr]), p;
|
|
7585
7585
|
}
|
|
7586
7586
|
var Bu = su ? function(r) {
|
|
7587
|
-
return r == null ? [] : (r = dt(r),
|
|
7587
|
+
return r == null ? [] : (r = dt(r), pr(su(r), function(s) {
|
|
7588
7588
|
return Po.call(r, s);
|
|
7589
7589
|
}));
|
|
7590
7590
|
} : Ku, Sl = su ? function(r) {
|
|
7591
7591
|
for (var s = []; r; )
|
|
7592
|
-
|
|
7592
|
+
dr(s, Bu(r)), r = Pi(r);
|
|
7593
7593
|
return s;
|
|
7594
7594
|
} : Ku, Ut = Wt;
|
|
7595
7595
|
(uu && Ut(new uu(new ArrayBuffer(1))) != Gr || Bn && Ut(new Bn()) != xe || au && Ut(au.resolve()) != Ha || jr && Ut(new jr()) != ve || Rn && Ut(new Rn()) != Nn) && (Ut = function(r) {
|
|
@@ -7634,7 +7634,7 @@ Cs.exports;
|
|
|
7634
7634
|
return s ? s[1].split(Ff) : [];
|
|
7635
7635
|
}
|
|
7636
7636
|
function Ml(r, s, o) {
|
|
7637
|
-
s =
|
|
7637
|
+
s = vr(s, r);
|
|
7638
7638
|
for (var h = -1, p = s.length, m = !1; ++h < p; ) {
|
|
7639
7639
|
var v = Fe(s[h]);
|
|
7640
7640
|
if (!(m = r != null && o(r, v)))
|
|
@@ -7754,9 +7754,9 @@ Cs.exports;
|
|
|
7754
7754
|
var b = s[3];
|
|
7755
7755
|
if (b) {
|
|
7756
7756
|
var _ = r[3];
|
|
7757
|
-
r[3] = _ ? gl(_, b, s[4]) : b, r[4] = _ ?
|
|
7757
|
+
r[3] = _ ? gl(_, b, s[4]) : b, r[4] = _ ? gr(r[3], y) : s[4];
|
|
7758
7758
|
}
|
|
7759
|
-
return b = s[5], b && (_ = r[5], r[5] = _ ? ml(_, b, s[6]) : b, r[6] = _ ?
|
|
7759
|
+
return b = s[5], b && (_ = r[5], r[5] = _ ? ml(_, b, s[6]) : b, r[6] = _ ? gr(r[5], y) : s[6]), b = s[7], b && (r[7] = b), h & Y && (r[8] = r[8] == null ? s[8] : Ft(r[8], s[8])), r[9] == null && (r[9] = s[9]), r[0] = s[0], r[1] = p, r;
|
|
7760
7760
|
}
|
|
7761
7761
|
function k2(r) {
|
|
7762
7762
|
var s = [];
|
|
@@ -7878,7 +7878,7 @@ Cs.exports;
|
|
|
7878
7878
|
return [];
|
|
7879
7879
|
for (var s = T(r - 1), o = arguments[0], h = r; h--; )
|
|
7880
7880
|
s[h - 1] = arguments[h];
|
|
7881
|
-
return
|
|
7881
|
+
return dr(j(o) ? Gt(o) : [o], Lt(s, 1));
|
|
7882
7882
|
}
|
|
7883
7883
|
var X2 = nt(function(r, s) {
|
|
7884
7884
|
return bt(r) ? Fn(r, Lt(s, 1, bt, !0)) : [];
|
|
@@ -8069,28 +8069,28 @@ Cs.exports;
|
|
|
8069
8069
|
return r && r.length ? Yi(r, Z(s, 3)) : [];
|
|
8070
8070
|
}
|
|
8071
8071
|
var Od = nt(function(r) {
|
|
8072
|
-
return
|
|
8072
|
+
return xr(Lt(r, 1, bt, !0));
|
|
8073
8073
|
}), Bd = nt(function(r) {
|
|
8074
8074
|
var s = de(r);
|
|
8075
|
-
return bt(s) && (s = e),
|
|
8075
|
+
return bt(s) && (s = e), xr(Lt(r, 1, bt, !0), Z(s, 2));
|
|
8076
8076
|
}), Rd = nt(function(r) {
|
|
8077
8077
|
var s = de(r);
|
|
8078
|
-
return s = typeof s == "function" ? s : e,
|
|
8078
|
+
return s = typeof s == "function" ? s : e, xr(Lt(r, 1, bt, !0), e, s);
|
|
8079
8079
|
});
|
|
8080
8080
|
function Id(r) {
|
|
8081
|
-
return r && r.length ?
|
|
8081
|
+
return r && r.length ? xr(r) : [];
|
|
8082
8082
|
}
|
|
8083
8083
|
function Pd(r, s) {
|
|
8084
|
-
return r && r.length ?
|
|
8084
|
+
return r && r.length ? xr(r, Z(s, 2)) : [];
|
|
8085
8085
|
}
|
|
8086
8086
|
function Ld(r, s) {
|
|
8087
|
-
return s = typeof s == "function" ? s : e, r && r.length ?
|
|
8087
|
+
return s = typeof s == "function" ? s : e, r && r.length ? xr(r, e, s) : [];
|
|
8088
8088
|
}
|
|
8089
8089
|
function Uu(r) {
|
|
8090
8090
|
if (!(r && r.length))
|
|
8091
8091
|
return [];
|
|
8092
8092
|
var s = 0;
|
|
8093
|
-
return r =
|
|
8093
|
+
return r = pr(r, function(o) {
|
|
8094
8094
|
if (bt(o))
|
|
8095
8095
|
return s = Ot(o.length, s), !0;
|
|
8096
8096
|
}), eu(s, function(o) {
|
|
@@ -8108,13 +8108,13 @@ Cs.exports;
|
|
|
8108
8108
|
var Fd = nt(function(r, s) {
|
|
8109
8109
|
return bt(r) ? Fn(r, s) : [];
|
|
8110
8110
|
}), Ud = nt(function(r) {
|
|
8111
|
-
return bu(
|
|
8111
|
+
return bu(pr(r, bt));
|
|
8112
8112
|
}), qd = nt(function(r) {
|
|
8113
8113
|
var s = de(r);
|
|
8114
|
-
return bt(s) && (s = e), bu(
|
|
8114
|
+
return bt(s) && (s = e), bu(pr(r, bt), Z(s, 2));
|
|
8115
8115
|
}), kd = nt(function(r) {
|
|
8116
8116
|
var s = de(r);
|
|
8117
|
-
return s = typeof s == "function" ? s : e, bu(
|
|
8117
|
+
return s = typeof s == "function" ? s : e, bu(pr(r, bt), e, s);
|
|
8118
8118
|
}), Wd = nt(Uu);
|
|
8119
8119
|
function zd(r, s) {
|
|
8120
8120
|
return hl(r || [], s || [], Ln);
|
|
@@ -8194,7 +8194,7 @@ Cs.exports;
|
|
|
8194
8194
|
return o && zt(r, s, o) && (s = e), h(r, Z(s, 3));
|
|
8195
8195
|
}
|
|
8196
8196
|
function rg(r, s) {
|
|
8197
|
-
var o = j(r) ?
|
|
8197
|
+
var o = j(r) ? pr : Go;
|
|
8198
8198
|
return o(r, Z(s, 3));
|
|
8199
8199
|
}
|
|
8200
8200
|
var ng = Al(Wl), ig = Al(zl);
|
|
@@ -8208,7 +8208,7 @@ Cs.exports;
|
|
|
8208
8208
|
return o = o === e ? 1 : et(o), Lt(is(r, s), o);
|
|
8209
8209
|
}
|
|
8210
8210
|
function Yl(r, s) {
|
|
8211
|
-
var o = j(r) ? le :
|
|
8211
|
+
var o = j(r) ? le : yr;
|
|
8212
8212
|
return o(r, Z(s, 3));
|
|
8213
8213
|
}
|
|
8214
8214
|
function Zl(r, s) {
|
|
@@ -8225,7 +8225,7 @@ Cs.exports;
|
|
|
8225
8225
|
}
|
|
8226
8226
|
var hg = nt(function(r, s, o) {
|
|
8227
8227
|
var h = -1, p = typeof s == "function", m = Xt(r) ? T(r.length) : [];
|
|
8228
|
-
return
|
|
8228
|
+
return yr(r, function(v) {
|
|
8229
8229
|
m[++h] = p ? ee(s, v, o) : Un(v, s, o);
|
|
8230
8230
|
}), m;
|
|
8231
8231
|
}), cg = Zi(function(r, s, o) {
|
|
@@ -8245,14 +8245,14 @@ Cs.exports;
|
|
|
8245
8245
|
});
|
|
8246
8246
|
function dg(r, s, o) {
|
|
8247
8247
|
var h = j(r) ? Ks : Do, p = arguments.length < 3;
|
|
8248
|
-
return h(r, Z(s, 4), o, p,
|
|
8248
|
+
return h(r, Z(s, 4), o, p, yr);
|
|
8249
8249
|
}
|
|
8250
8250
|
function gg(r, s, o) {
|
|
8251
8251
|
var h = j(r) ? Tp : Do, p = arguments.length < 3;
|
|
8252
8252
|
return h(r, Z(s, 4), o, p, Vo);
|
|
8253
8253
|
}
|
|
8254
8254
|
function mg(r, s) {
|
|
8255
|
-
var o = j(r) ?
|
|
8255
|
+
var o = j(r) ? pr : Go;
|
|
8256
8256
|
return o(r, as(Z(s, 3)));
|
|
8257
8257
|
}
|
|
8258
8258
|
function yg(r) {
|
|
@@ -8310,14 +8310,14 @@ Cs.exports;
|
|
|
8310
8310
|
var qu = nt(function(r, s, o) {
|
|
8311
8311
|
var h = C;
|
|
8312
8312
|
if (o.length) {
|
|
8313
|
-
var p =
|
|
8313
|
+
var p = gr(o, sn(qu));
|
|
8314
8314
|
h |= q;
|
|
8315
8315
|
}
|
|
8316
8316
|
return Xe(r, h, s, o, p);
|
|
8317
8317
|
}), Jl = nt(function(r, s, o) {
|
|
8318
8318
|
var h = C | P;
|
|
8319
8319
|
if (o.length) {
|
|
8320
|
-
var p =
|
|
8320
|
+
var p = gr(o, sn(Jl));
|
|
8321
8321
|
h |= q;
|
|
8322
8322
|
}
|
|
8323
8323
|
return Xe(s, h, r, o, p);
|
|
@@ -8430,10 +8430,10 @@ Cs.exports;
|
|
|
8430
8430
|
return ee(r, this, h);
|
|
8431
8431
|
});
|
|
8432
8432
|
}), ku = nt(function(r, s) {
|
|
8433
|
-
var o =
|
|
8433
|
+
var o = gr(s, sn(ku));
|
|
8434
8434
|
return Xe(r, q, e, s, o);
|
|
8435
8435
|
}), rh = nt(function(r, s) {
|
|
8436
|
-
var o =
|
|
8436
|
+
var o = gr(s, sn(rh));
|
|
8437
8437
|
return Xe(r, V, e, s, o);
|
|
8438
8438
|
}), Sg = Ye(function(r, s) {
|
|
8439
8439
|
return Xe(r, H, e, e, e, s);
|
|
@@ -8447,8 +8447,8 @@ Cs.exports;
|
|
|
8447
8447
|
if (typeof r != "function")
|
|
8448
8448
|
throw new he(l);
|
|
8449
8449
|
return s = s == null ? 0 : Ot(et(s), 0), nt(function(o) {
|
|
8450
|
-
var h = o[s], p =
|
|
8451
|
-
return h &&
|
|
8450
|
+
var h = o[s], p = Ar(o, 0, s);
|
|
8451
|
+
return h && dr(p, h), ee(r, this, p);
|
|
8452
8452
|
});
|
|
8453
8453
|
}
|
|
8454
8454
|
function Bg(r, s, o) {
|
|
@@ -8507,14 +8507,14 @@ Cs.exports;
|
|
|
8507
8507
|
function Hg(r) {
|
|
8508
8508
|
return r === !0 || r === !1 || At(r) && Wt(r) == En;
|
|
8509
8509
|
}
|
|
8510
|
-
var
|
|
8510
|
+
var wr = i0 || Qu, Vg = yo ? re(yo) : J0;
|
|
8511
8511
|
function Gg(r) {
|
|
8512
8512
|
return At(r) && r.nodeType === 1 && !Hn(r);
|
|
8513
8513
|
}
|
|
8514
8514
|
function Xg(r) {
|
|
8515
8515
|
if (r == null)
|
|
8516
8516
|
return !0;
|
|
8517
|
-
if (Xt(r) && (j(r) || typeof r == "string" || typeof r.splice == "function" ||
|
|
8517
|
+
if (Xt(r) && (j(r) || typeof r == "string" || typeof r.splice == "function" || wr(r) || un(r) || Lr(r)))
|
|
8518
8518
|
return !r.length;
|
|
8519
8519
|
var s = Ut(r);
|
|
8520
8520
|
if (s == xe || s == ve)
|
|
@@ -8766,7 +8766,7 @@ Cs.exports;
|
|
|
8766
8766
|
return o;
|
|
8767
8767
|
var h = !1;
|
|
8768
8768
|
s = xt(s, function(m) {
|
|
8769
|
-
return m =
|
|
8769
|
+
return m = vr(m, r), h || (h = m.length > 1), m;
|
|
8770
8770
|
}), Le(r, Su(r), o), h && (o = fe(o, x | A | w, C2));
|
|
8771
8771
|
for (var p = s.length; p--; )
|
|
8772
8772
|
wu(o, s[p]);
|
|
@@ -8789,7 +8789,7 @@ Cs.exports;
|
|
|
8789
8789
|
});
|
|
8790
8790
|
}
|
|
8791
8791
|
function I1(r, s, o) {
|
|
8792
|
-
s =
|
|
8792
|
+
s = vr(s, r);
|
|
8793
8793
|
var h = -1, p = s.length;
|
|
8794
8794
|
for (p || (p = 1, r = e); ++h < p; ) {
|
|
8795
8795
|
var m = r == null ? e : r[Fe(s[h])];
|
|
@@ -8805,7 +8805,7 @@ Cs.exports;
|
|
|
8805
8805
|
}
|
|
8806
8806
|
var ph = Cl(Bt), dh = Cl(Yt);
|
|
8807
8807
|
function F1(r, s, o) {
|
|
8808
|
-
var h = j(r), p = h ||
|
|
8808
|
+
var h = j(r), p = h || wr(r) || un(r);
|
|
8809
8809
|
if (s = Z(s, 4), o == null) {
|
|
8810
8810
|
var m = r && r.constructor;
|
|
8811
8811
|
p ? o = h ? new m() : [] : vt(r) ? o = Ke(m) ? en(Pi(r)) : {} : o = {};
|
|
@@ -8905,7 +8905,7 @@ Cs.exports;
|
|
|
8905
8905
|
return r + (o ? "_" : "") + s.toLowerCase();
|
|
8906
8906
|
});
|
|
8907
8907
|
function sm(r, s, o) {
|
|
8908
|
-
return o && typeof o != "number" && zt(r, s, o) && (s = o = e), o = o === e ? Ie : o >>> 0, o ? (r = ot(r), r && (typeof s == "string" || s != null && !zu(s)) && (s = ne(s), !s && Zr(r)) ?
|
|
8908
|
+
return o && typeof o != "number" && zt(r, s, o) && (s = o = e), o = o === e ? Ie : o >>> 0, o ? (r = ot(r), r && (typeof s == "string" || s != null && !zu(s)) && (s = ne(s), !s && Zr(r)) ? Ar(Ae(r), 0, o) : r.split(s, o)) : [];
|
|
8909
8909
|
}
|
|
8910
8910
|
var um = nn(function(r, s, o) {
|
|
8911
8911
|
return r + (o ? " " : "") + Vu(s);
|
|
@@ -8965,7 +8965,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8965
8965
|
if (!r || !(s = ne(s)))
|
|
8966
8966
|
return r;
|
|
8967
8967
|
var h = Ae(r), p = Ae(s), m = No(h, p), v = So(h, p) + 1;
|
|
8968
|
-
return
|
|
8968
|
+
return Ar(h, m, v).join("");
|
|
8969
8969
|
}
|
|
8970
8970
|
function fm(r, s, o) {
|
|
8971
8971
|
if (r = ot(r), r && (o || s === e))
|
|
@@ -8973,7 +8973,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8973
8973
|
if (!r || !(s = ne(s)))
|
|
8974
8974
|
return r;
|
|
8975
8975
|
var h = Ae(r), p = So(h, Ae(s)) + 1;
|
|
8976
|
-
return
|
|
8976
|
+
return Ar(h, 0, p).join("");
|
|
8977
8977
|
}
|
|
8978
8978
|
function pm(r, s, o) {
|
|
8979
8979
|
if (r = ot(r), r && (o || s === e))
|
|
@@ -8981,7 +8981,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8981
8981
|
if (!r || !(s = ne(s)))
|
|
8982
8982
|
return r;
|
|
8983
8983
|
var h = Ae(r), p = No(h, Ae(s));
|
|
8984
|
-
return
|
|
8984
|
+
return Ar(h, p).join("");
|
|
8985
8985
|
}
|
|
8986
8986
|
function dm(r, s) {
|
|
8987
8987
|
var o = X, h = tt;
|
|
@@ -9000,7 +9000,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9000
9000
|
var b = o - Kr(h);
|
|
9001
9001
|
if (b < 1)
|
|
9002
9002
|
return h;
|
|
9003
|
-
var _ = v ?
|
|
9003
|
+
var _ = v ? Ar(v, 0, b).join("") : r.slice(0, b);
|
|
9004
9004
|
if (p === e)
|
|
9005
9005
|
return _ + h;
|
|
9006
9006
|
if (v && (b += _.length - b), zu(p)) {
|
|
@@ -9095,7 +9095,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9095
9095
|
var R = r(this.__wrapped__), I = R.__actions__ = Gt(this.__actions__);
|
|
9096
9096
|
return I.push({ func: _, args: arguments, thisArg: r }), R.__chain__ = B, R;
|
|
9097
9097
|
}
|
|
9098
|
-
return _.apply(r,
|
|
9098
|
+
return _.apply(r, dr([this.value()], arguments));
|
|
9099
9099
|
});
|
|
9100
9100
|
}), r;
|
|
9101
9101
|
}
|
|
@@ -9184,7 +9184,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9184
9184
|
function ey(r, s) {
|
|
9185
9185
|
return r && r.length ? tu(r, Z(s, 2)) : 0;
|
|
9186
9186
|
}
|
|
9187
|
-
return g.after = Eg, g.ary = Kl, g.assign = h1, g.assignIn = hh, g.assignInWith = hs, g.assignWith = c1, g.at = f1, g.before = Ql, g.bind = qu, g.bindAll = ym, g.bindKey = Jl, g.castArray = Pg, g.chain = Xl, g.chunk = H2, g.compact = V2, g.concat = G2, g.cond = xm, g.conforms = vm, g.constant = Gu, g.countBy = tg, g.create = p1, g.curry = jl, g.curryRight = th, g.debounce = eh, g.defaults = d1, g.defaultsDeep = g1, g.defer = _g, g.delay = Cg, g.difference = X2, g.differenceBy = Y2, g.differenceWith = Z2, g.drop = K2, g.dropRight = Q2, g.dropRightWhile = J2, g.dropWhile = j2, g.fill = td, g.filter = rg, g.flatMap = sg, g.flatMapDeep = ug, g.flatMapDepth = ag, g.flatten = $l, g.flattenDeep = ed, g.flattenDepth = rd, g.flip = Dg, g.flow = wm, g.flowRight = bm, g.fromPairs = nd, g.functions = b1, g.functionsIn = E1, g.groupBy = og, g.initial = sd, g.intersection = ud, g.intersectionBy = ad, g.intersectionWith = od, g.invert = C1, g.invertBy = D1, g.invokeMap = hg, g.iteratee = Xu, g.keyBy = cg, g.keys = Bt, g.keysIn = Yt, g.map = is, g.mapKeys = N1, g.mapValues = S1, g.matches = Em, g.matchesProperty = _m, g.memoize = us, g.merge = M1, g.mergeWith = ch, g.method = Cm, g.methodOf = Dm, g.mixin = Yu, g.negate = as, g.nthArg = Nm, g.omit = O1, g.omitBy = B1, g.once = Tg, g.orderBy = fg, g.over = Sm, g.overArgs = Ng, g.overEvery = Mm, g.overSome = Om, g.partial = ku, g.partialRight = rh, g.partition = pg, g.pick = R1, g.pickBy = fh, g.property = vh, g.propertyOf = Bm, g.pull = fd, g.pullAll = Vl, g.pullAllBy = pd, g.pullAllWith = dd, g.pullAt = gd, g.range = Rm, g.rangeRight = Im, g.rearg = Sg, g.reject = mg, g.remove = md, g.rest = Mg, g.reverse = Fu, g.sampleSize = xg, g.set = P1, g.setWith = L1, g.shuffle = vg, g.slice = yd, g.sortBy = bg, g.sortedUniq = _d, g.sortedUniqBy = Cd, g.split = sm, g.spread = Og, g.tail = Dd, g.take = Td, g.takeRight = Nd, g.takeRightWhile = Sd, g.takeWhile = Md, g.tap = Vd, g.throttle = Bg, g.thru = ns, g.toArray = ah, g.toPairs = ph, g.toPairsIn = dh, g.toPath = qm, g.toPlainObject = lh, g.transform = F1, g.unary = Rg, g.union = Od, g.unionBy = Bd, g.unionWith = Rd, g.uniq = Id, g.uniqBy = Pd, g.uniqWith = Ld, g.unset = U1, g.unzip = Uu, g.unzipWith = Gl, g.update = q1, g.updateWith = k1, g.values = an, g.valuesIn = W1, g.without = Fd, g.words = yh, g.wrap = Ig, g.xor = Ud, g.xorBy = qd, g.xorWith = kd, g.zip = Wd, g.zipObject = zd, g.zipObjectDeep = $d, g.zipWith = Hd, g.entries = ph, g.entriesIn = dh, g.extend = hh, g.extendWith = hs, Yu(g, g), g.add = Wm, g.attempt = xh, g.camelCase = V1, g.capitalize = gh, g.ceil = zm, g.clamp = z1, g.clone = Lg, g.cloneDeep = Ug, g.cloneDeepWith = qg, g.cloneWith = Fg, g.conformsTo = kg, g.deburr = mh, g.defaultTo = Am, g.divide = $m, g.endsWith = G1, g.eq = be, g.escape = X1, g.escapeRegExp = Y1, g.every = eg, g.find = ng, g.findIndex = Wl, g.findKey = m1, g.findLast = ig, g.findLastIndex = zl, g.findLastKey = y1, g.floor = Hm, g.forEach = Yl, g.forEachRight = Zl, g.forIn = x1, g.forInRight = v1, g.forOwn = A1, g.forOwnRight = w1, g.get = $u, g.gt = Wg, g.gte = zg, g.has = _1, g.hasIn = Hu, g.head = Hl, g.identity = Zt, g.includes = lg, g.indexOf = id, g.inRange = $1, g.invoke = T1, g.isArguments = Lr, g.isArray = j, g.isArrayBuffer = $g, g.isArrayLike = Xt, g.isArrayLikeObject = bt, g.isBoolean = Hg, g.isBuffer =
|
|
9187
|
+
return g.after = Eg, g.ary = Kl, g.assign = h1, g.assignIn = hh, g.assignInWith = hs, g.assignWith = c1, g.at = f1, g.before = Ql, g.bind = qu, g.bindAll = ym, g.bindKey = Jl, g.castArray = Pg, g.chain = Xl, g.chunk = H2, g.compact = V2, g.concat = G2, g.cond = xm, g.conforms = vm, g.constant = Gu, g.countBy = tg, g.create = p1, g.curry = jl, g.curryRight = th, g.debounce = eh, g.defaults = d1, g.defaultsDeep = g1, g.defer = _g, g.delay = Cg, g.difference = X2, g.differenceBy = Y2, g.differenceWith = Z2, g.drop = K2, g.dropRight = Q2, g.dropRightWhile = J2, g.dropWhile = j2, g.fill = td, g.filter = rg, g.flatMap = sg, g.flatMapDeep = ug, g.flatMapDepth = ag, g.flatten = $l, g.flattenDeep = ed, g.flattenDepth = rd, g.flip = Dg, g.flow = wm, g.flowRight = bm, g.fromPairs = nd, g.functions = b1, g.functionsIn = E1, g.groupBy = og, g.initial = sd, g.intersection = ud, g.intersectionBy = ad, g.intersectionWith = od, g.invert = C1, g.invertBy = D1, g.invokeMap = hg, g.iteratee = Xu, g.keyBy = cg, g.keys = Bt, g.keysIn = Yt, g.map = is, g.mapKeys = N1, g.mapValues = S1, g.matches = Em, g.matchesProperty = _m, g.memoize = us, g.merge = M1, g.mergeWith = ch, g.method = Cm, g.methodOf = Dm, g.mixin = Yu, g.negate = as, g.nthArg = Nm, g.omit = O1, g.omitBy = B1, g.once = Tg, g.orderBy = fg, g.over = Sm, g.overArgs = Ng, g.overEvery = Mm, g.overSome = Om, g.partial = ku, g.partialRight = rh, g.partition = pg, g.pick = R1, g.pickBy = fh, g.property = vh, g.propertyOf = Bm, g.pull = fd, g.pullAll = Vl, g.pullAllBy = pd, g.pullAllWith = dd, g.pullAt = gd, g.range = Rm, g.rangeRight = Im, g.rearg = Sg, g.reject = mg, g.remove = md, g.rest = Mg, g.reverse = Fu, g.sampleSize = xg, g.set = P1, g.setWith = L1, g.shuffle = vg, g.slice = yd, g.sortBy = bg, g.sortedUniq = _d, g.sortedUniqBy = Cd, g.split = sm, g.spread = Og, g.tail = Dd, g.take = Td, g.takeRight = Nd, g.takeRightWhile = Sd, g.takeWhile = Md, g.tap = Vd, g.throttle = Bg, g.thru = ns, g.toArray = ah, g.toPairs = ph, g.toPairsIn = dh, g.toPath = qm, g.toPlainObject = lh, g.transform = F1, g.unary = Rg, g.union = Od, g.unionBy = Bd, g.unionWith = Rd, g.uniq = Id, g.uniqBy = Pd, g.uniqWith = Ld, g.unset = U1, g.unzip = Uu, g.unzipWith = Gl, g.update = q1, g.updateWith = k1, g.values = an, g.valuesIn = W1, g.without = Fd, g.words = yh, g.wrap = Ig, g.xor = Ud, g.xorBy = qd, g.xorWith = kd, g.zip = Wd, g.zipObject = zd, g.zipObjectDeep = $d, g.zipWith = Hd, g.entries = ph, g.entriesIn = dh, g.extend = hh, g.extendWith = hs, Yu(g, g), g.add = Wm, g.attempt = xh, g.camelCase = V1, g.capitalize = gh, g.ceil = zm, g.clamp = z1, g.clone = Lg, g.cloneDeep = Ug, g.cloneDeepWith = qg, g.cloneWith = Fg, g.conformsTo = kg, g.deburr = mh, g.defaultTo = Am, g.divide = $m, g.endsWith = G1, g.eq = be, g.escape = X1, g.escapeRegExp = Y1, g.every = eg, g.find = ng, g.findIndex = Wl, g.findKey = m1, g.findLast = ig, g.findLastIndex = zl, g.findLastKey = y1, g.floor = Hm, g.forEach = Yl, g.forEachRight = Zl, g.forIn = x1, g.forInRight = v1, g.forOwn = A1, g.forOwnRight = w1, g.get = $u, g.gt = Wg, g.gte = zg, g.has = _1, g.hasIn = Hu, g.head = Hl, g.identity = Zt, g.includes = lg, g.indexOf = id, g.inRange = $1, g.invoke = T1, g.isArguments = Lr, g.isArray = j, g.isArrayBuffer = $g, g.isArrayLike = Xt, g.isArrayLikeObject = bt, g.isBoolean = Hg, g.isBuffer = wr, g.isDate = Vg, g.isElement = Gg, g.isEmpty = Xg, g.isEqual = Yg, g.isEqualWith = Zg, g.isError = Wu, g.isFinite = Kg, g.isFunction = Ke, g.isInteger = nh, g.isLength = os, g.isMap = ih, g.isMatch = Qg, g.isMatchWith = Jg, g.isNaN = jg, g.isNative = t1, g.isNil = r1, g.isNull = e1, g.isNumber = sh, g.isObject = vt, g.isObjectLike = At, g.isPlainObject = Hn, g.isRegExp = zu, g.isSafeInteger = n1, g.isSet = uh, g.isString = ls, g.isSymbol = ie, g.isTypedArray = un, g.isUndefined = i1, g.isWeakMap = s1, g.isWeakSet = u1, g.join = ld, g.kebabCase = Z1, g.last = de, g.lastIndexOf = hd, g.lowerCase = K1, g.lowerFirst = Q1, g.lt = a1, g.lte = o1, g.max = Vm, g.maxBy = Gm, g.mean = Xm, g.meanBy = Ym, g.min = Zm, g.minBy = Km, g.stubArray = Ku, g.stubFalse = Qu, g.stubObject = Pm, g.stubString = Lm, g.stubTrue = Fm, g.multiply = Qm, g.nth = cd, g.noConflict = Tm, g.noop = Zu, g.now = ss, g.pad = J1, g.padEnd = j1, g.padStart = tm, g.parseInt = em, g.random = H1, g.reduce = dg, g.reduceRight = gg, g.repeat = rm, g.replace = nm, g.result = I1, g.round = Jm, g.runInContext = E, g.sample = yg, g.size = Ag, g.snakeCase = im, g.some = wg, g.sortedIndex = xd, g.sortedIndexBy = vd, g.sortedIndexOf = Ad, g.sortedLastIndex = wd, g.sortedLastIndexBy = bd, g.sortedLastIndexOf = Ed, g.startCase = um, g.startsWith = am, g.subtract = jm, g.sum = ty, g.sumBy = ey, g.template = om, g.times = Um, g.toFinite = Qe, g.toInteger = et, g.toLength = oh, g.toLower = lm, g.toNumber = ge, g.toSafeInteger = l1, g.toString = ot, g.toUpper = hm, g.trim = cm, g.trimEnd = fm, g.trimStart = pm, g.truncate = dm, g.unescape = gm, g.uniqueId = km, g.upperCase = mm, g.upperFirst = Vu, g.each = Yl, g.eachRight = Zl, g.first = Hl, Yu(g, function() {
|
|
9188
9188
|
var r = {};
|
|
9189
9189
|
return Pe(g, function(s, o) {
|
|
9190
9190
|
ct.call(g.prototype, o) || (r[o] = s);
|
|
@@ -9245,7 +9245,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9245
9245
|
var o = /^(?:filter|find|map|reject)|While$/.test(s), h = /^(?:head|last)$/.test(s), p = g[h ? "take" + (s == "last" ? "Right" : "") : s], m = h || /^find/.test(s);
|
|
9246
9246
|
p && (g.prototype[s] = function() {
|
|
9247
9247
|
var v = this.__wrapped__, b = h ? [1] : arguments, _ = v instanceof st, B = b[0], R = _ || j(v), I = function(it) {
|
|
9248
|
-
var ut = p.apply(g,
|
|
9248
|
+
var ut = p.apply(g, dr([it], b));
|
|
9249
9249
|
return h && k ? ut[0] : ut;
|
|
9250
9250
|
};
|
|
9251
9251
|
R && o && typeof B == "function" && B.length != 1 && (_ = R = !1);
|
|
@@ -10168,7 +10168,7 @@ class ci extends tf {
|
|
|
10168
10168
|
// raycast(raycaster: IRaycaster, out: IObject2[] = []): IObject2[] {
|
|
10169
10169
|
// }
|
|
10170
10170
|
}
|
|
10171
|
-
const
|
|
10171
|
+
const lr = {
|
|
10172
10172
|
transparent: "rgba(1, 1, 1, 0)",
|
|
10173
10173
|
green: "#45b787",
|
|
10174
10174
|
darkGreen: "#314a43",
|
|
@@ -10359,22 +10359,25 @@ class ye {
|
|
|
10359
10359
|
return typeof t == "string" ? pv.test(t) : typeof t == "number" ? t >= 0 && t <= 16777215 : !1;
|
|
10360
10360
|
}
|
|
10361
10361
|
static getRandomStyle() {
|
|
10362
|
-
return
|
|
10362
|
+
return er.random().getStyle();
|
|
10363
10363
|
}
|
|
10364
10364
|
static getDarken(t, e = 0.8) {
|
|
10365
|
-
return
|
|
10365
|
+
return er.set(t).getHSL(gs), er.setHSL(gs.h, gs.s, gs.l * e).getStyle();
|
|
10366
10366
|
}
|
|
10367
10367
|
static getLighten(t, e = 1.2) {
|
|
10368
10368
|
return this.getDarken(t, e);
|
|
10369
10369
|
}
|
|
10370
10370
|
static getContrast(t) {
|
|
10371
|
-
return
|
|
10371
|
+
return er.set(t), er.getContrastString();
|
|
10372
10372
|
}
|
|
10373
10373
|
static getArray(t) {
|
|
10374
|
-
return
|
|
10374
|
+
return er.set(t).toArray();
|
|
10375
10375
|
}
|
|
10376
10376
|
static getComplementary(t) {
|
|
10377
|
-
return
|
|
10377
|
+
return er.set(t), er.getComplementaryString();
|
|
10378
|
+
}
|
|
10379
|
+
static getMoreTransparent(t, e) {
|
|
10380
|
+
return er.set(t).setA(e).getStyle();
|
|
10378
10381
|
}
|
|
10379
10382
|
// set(value: string) {}
|
|
10380
10383
|
set(t) {
|
|
@@ -10616,7 +10619,7 @@ class ye {
|
|
|
10616
10619
|
yield this.r, yield this.g, yield this.b;
|
|
10617
10620
|
}
|
|
10618
10621
|
}
|
|
10619
|
-
const
|
|
10622
|
+
const er = new ye(), gs = { h: 0, s: 0, l: 0 };
|
|
10620
10623
|
var yi = {};
|
|
10621
10624
|
const dv = "bold|bolder|lighter|[1-9]00", gv = "italic|oblique", mv = "small-caps", yv = "ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded", xv = "px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q", Vh = `'([^']+)'|"([^"]+)"|[\\w\\s-]+`, vv = new RegExp(`(${dv}) +`, "i"), Av = new RegExp(`(${gv}) +`, "i"), wv = new RegExp(`(${mv}) +`, "i"), bv = new RegExp(`(${yv}) +`, "i"), Ev = new RegExp(
|
|
10622
10625
|
`([\\d\\.]+)(${xv}) *((?:${Vh})( *, *(?:${Vh}))*)`
|
|
@@ -10694,7 +10697,7 @@ yi.loadImage = function(i, t) {
|
|
|
10694
10697
|
}, u.src = i;
|
|
10695
10698
|
});
|
|
10696
10699
|
};
|
|
10697
|
-
class
|
|
10700
|
+
class ur {
|
|
10698
10701
|
static cached = /* @__PURE__ */ new Map();
|
|
10699
10702
|
static cachedCanvas = /* @__PURE__ */ new Map();
|
|
10700
10703
|
static destroy() {
|
|
@@ -10899,8 +10902,8 @@ class Mv extends ka {
|
|
|
10899
10902
|
return this.name = t.name, this.originSize.copy(t.originSize), this.originCenter.copy(t.originCenter), this.size.copy(t.size), this.matrix.copy(t.matrix), this.matrixAutoUpdate = t.matrixAutoUpdate, this.userData = JSON.parse(JSON.stringify(t.userData)), this.image = t.image, this.offset.copy(t.offset), this.repeat.copy(t.repeat), this.center.copy(t.center), this.rotate = t.rotate, this.scale = t.scale, this.flipY = t.flipY, this;
|
|
10900
10903
|
}
|
|
10901
10904
|
}
|
|
10902
|
-
const Xh = new L(10, 10), ri = new L(), ni = new L(),
|
|
10903
|
-
class
|
|
10905
|
+
const Xh = new L(10, 10), ri = new L(), ni = new L(), rr = new L(), qr = new L(), ms = new L(), ii = new L(), Ue = new L(), nr = new L(), ys = new Qt();
|
|
10906
|
+
class ar {
|
|
10904
10907
|
static cached = /* @__PURE__ */ new Map();
|
|
10905
10908
|
static precisionOptimized = !0;
|
|
10906
10909
|
static precisionOptimizeLevels = [0.5, 0.25, 1e-4];
|
|
@@ -10954,7 +10957,7 @@ class ur {
|
|
|
10954
10957
|
else throw new Error("get boundingBox error");
|
|
10955
10958
|
ys.getSize(ri), t.alignCenter ? ni.copy(t.centerPoint) : ys.getCenter(ni);
|
|
10956
10959
|
}
|
|
10957
|
-
return n && !L.isZero(n) && !L.isEmpty(n) ?
|
|
10960
|
+
return n && !L.isZero(n) && !L.isEmpty(n) ? rr.copy(n) : rr.copy(ri), (rr.x < Xh.x || rr.y < Xh.y) && rr.normalize().multiplyScalar(10).round(), Ue.copy(this.getTextureMaxSize()), u && (ii.set((u == null ? void 0 : u.shadowBlur) || 0, (u == null ? void 0 : u.shadowBlur) || 0), rr.add(ii.clone().multiplyScalar(2)), ri.multiplyScalar(3), Ue.multiplyScalar(0.3)), a.updateSize(ri, ni, rr, Ue), a;
|
|
10958
10961
|
}
|
|
10959
10962
|
static setPrecisionOptimizeTextures(t, e, n, u, a) {
|
|
10960
10963
|
if (!this.precisionOptimized) return;
|
|
@@ -10962,42 +10965,42 @@ class ur {
|
|
|
10962
10965
|
for (let c = 0, f = this.precisionOptimizeLevels.length; c < f; c++) {
|
|
10963
10966
|
Ue.copy(n.size).multiplyScalar(this.precisionOptimizeLevels[c]);
|
|
10964
10967
|
const d = this.getTextureByShape(e, u, Ue, a);
|
|
10965
|
-
this.renderShapeTexture(e, d, a), l = t + "_" + (c + 1), d.userData.textureKey = l,
|
|
10968
|
+
this.renderShapeTexture(e, d, a), l = t + "_" + (c + 1), d.userData.textureKey = l, ar.set(l, d);
|
|
10966
10969
|
}
|
|
10967
10970
|
}
|
|
10968
10971
|
static renderShapeTexture(t, e, n) {
|
|
10969
10972
|
n ? (ii.set(n.shadowBlur || 0, n.shadowBlur || 0), qr.copy(e.originSize).multiplyScalar(-0.5).sub(e.originCenter).multiplyScalar(e.scale), t.alignCenter ? ms.copy(e.originSize).multiplyScalar(e.scale) : ms.copy(e.originSize).add(ii.clone().multiplyScalar(1)).multiplyScalar(e.scale)) : qr.copy(e.offset).negate().multiplyScalar(e.scale);
|
|
10970
|
-
const u =
|
|
10971
|
-
a.clearRect(0, 0, u.width, u.height), a.translate(qr.x, qr.y), a.scale(e.scale, e.scale), n && (a.shadowColor =
|
|
10973
|
+
const u = ur.create(e.size.x, e.size.y), a = ur.getContext2D(u, { alpha: !0 });
|
|
10974
|
+
a.clearRect(0, 0, u.width, u.height), a.translate(qr.x, qr.y), a.scale(e.scale, e.scale), n && (a.shadowColor = lr.black, a.shadowOffsetX = ms.x, a.shadowOffsetY = ms.y, a.shadowBlur = ii.x), t.render(a), e.image = u;
|
|
10972
10975
|
}
|
|
10973
10976
|
static setByShape(t, e, n, u) {
|
|
10974
10977
|
const a = this.getTextureByShape(e, n, u);
|
|
10975
|
-
return a.userData.textureKey = t, this.renderShapeTexture(e, a),
|
|
10978
|
+
return a.userData.textureKey = t, this.renderShapeTexture(e, a), ar.set(t, a), this.setPrecisionOptimizeTextures(t, e, a, n), a;
|
|
10976
10979
|
}
|
|
10977
10980
|
static setShadowByShape(t, e, n) {
|
|
10978
10981
|
const u = this.getTextureByShape(e, void 0, void 0, n);
|
|
10979
|
-
return u.userData.textureKey = t, this.renderShapeTexture(e, u, n),
|
|
10982
|
+
return u.userData.textureKey = t, this.renderShapeTexture(e, u, n), ar.set(t, u), u;
|
|
10980
10983
|
}
|
|
10981
10984
|
static setPointsByShape(t, e) {
|
|
10982
10985
|
var d, y, x, A, w;
|
|
10983
10986
|
const n = [];
|
|
10984
10987
|
e.isGroup ? e.traverse((S) => S.isShape ? n.push(...S.geometry.points) : void 0) : e.isShape && e.geometry.points ? n.push(...e.geometry.points) : e.boundingBox && n.push(e.boundingBox.min, e.boundingBox.max);
|
|
10985
10988
|
const u = this.getTextureByShape(e), a = ((d = e.material) == null ? void 0 : d.lineWidth) * 2 || 3;
|
|
10986
|
-
|
|
10987
|
-
const l =
|
|
10988
|
-
qr.subVectors(u.originSize.clone().multiplyScalar(0.5), u.originCenter).add(
|
|
10989
|
-
let f =
|
|
10989
|
+
nr.set(1, 1).multiplyScalar(a), u.size.copy(nr).multiplyScalar(u.scale).multiplyScalar(2).add(rr), u.offset.sub(nr), u.updateMatrix();
|
|
10990
|
+
const l = ur.create(u.size.x, u.size.y), c = ur.getContext2D(l, { alpha: !0 });
|
|
10991
|
+
qr.subVectors(u.originSize.clone().multiplyScalar(0.5), u.originCenter).add(nr), c.clearRect(0, 0, l.width, l.height), c.scale(u.scale, u.scale), c.translate(qr.x, qr.y);
|
|
10992
|
+
let f = lr.black;
|
|
10990
10993
|
e.material ? f = ((y = e.material) == null ? void 0 : y.stroke) || ((x = e.material) == null ? void 0 : x.fill) : e.isGroup && e.children.length && e.children[0].isShape && (f = ((A = e.children[0].material) == null ? void 0 : A.stroke) || ((w = e.children[0].material) == null ? void 0 : w.fill)), c.fillStyle = ye.getDarken(f);
|
|
10991
10994
|
for (let S = 0, D = n.length || 0; S < D; S++)
|
|
10992
|
-
Ue.copy(n[S]), c.moveTo(Ue.x, Ue.y), c.arc(Ue.x, Ue.y,
|
|
10993
|
-
return c.fill(), u.image = l,
|
|
10995
|
+
Ue.copy(n[S]), c.moveTo(Ue.x, Ue.y), c.arc(Ue.x, Ue.y, nr.x, 0, Math.PI * 2);
|
|
10996
|
+
return c.fill(), u.image = l, ar.set(t, u), u;
|
|
10994
10997
|
}
|
|
10995
10998
|
static setWireframeByShape(t, e) {
|
|
10996
10999
|
var c;
|
|
10997
11000
|
const n = this.getTextureByShape(e);
|
|
10998
|
-
|
|
10999
|
-
const u =
|
|
11000
|
-
return a.clearRect(0, 0, u.width, u.height), a.strokeStyle =
|
|
11001
|
+
nr.set(1, 1).multiplyScalar(((c = e.material) == null ? void 0 : c.lineWidth) || 1), n.size.copy(nr).multiplyScalar(n.scale).multiplyScalar(2).add(rr), n.offset.sub(nr), n.updateMatrix();
|
|
11002
|
+
const u = ur.create(n.size.x, n.size.y), a = ur.getContext2D(u, { alpha: !0 }), l = nr.x * n.scale * 5;
|
|
11003
|
+
return a.clearRect(0, 0, u.width, u.height), a.strokeStyle = lr.darkGray, a.lineWidth = l, a.setLineDash([l * 3, l]), a.strokeRect(0, 0, n.size.x, n.size.y), n.image = u, ar.set(t, n), n;
|
|
11001
11004
|
}
|
|
11002
11005
|
// debug
|
|
11003
11006
|
static DEBUG_DisplayCachedTexture = gt.throttle((t = 80, e = 0.8) => {
|
|
@@ -11037,7 +11040,7 @@ function Pv(i, t, e) {
|
|
|
11037
11040
|
if (!e.image) return;
|
|
11038
11041
|
const n = lt.document.createElement("div");
|
|
11039
11042
|
n.setAttribute("id", t), n.style.display = "flex", n.style.flexDirection = "column";
|
|
11040
|
-
const u =
|
|
11043
|
+
const u = ur.createCanvas({
|
|
11041
11044
|
containerId: i.id,
|
|
11042
11045
|
width: e.image.width,
|
|
11043
11046
|
height: e.image.height,
|
|
@@ -11063,7 +11066,7 @@ function Lv(i, t) {
|
|
|
11063
11066
|
if (!n) throw new Error("getContext error");
|
|
11064
11067
|
n.clearRect(0, 0, e.width, e.height), n.save(), n.scale(window.devicePixelRatio, window.devicePixelRatio), n.drawImage(t.image, 0, 0), n.restore();
|
|
11065
11068
|
}
|
|
11066
|
-
const Fv = new Qt(),
|
|
11069
|
+
const Fv = new Qt(), ir = new L(), pn = new Dt(), Yh = new Dt(), fa = new Dt();
|
|
11067
11070
|
class Wa extends tf {
|
|
11068
11071
|
isShape = !0;
|
|
11069
11072
|
type = "Shape";
|
|
@@ -11080,7 +11083,7 @@ class Wa extends tf {
|
|
|
11080
11083
|
version = 0;
|
|
11081
11084
|
needsUpdateChangedHandler = this.handleNeedsUpdateChanged.bind(this);
|
|
11082
11085
|
constructor(t = {}) {
|
|
11083
|
-
t.name === void 0 && (t.name = "Shape"), t.stroke === void 0 && (t.stroke =
|
|
11086
|
+
t.name === void 0 && (t.name = "Shape"), t.stroke === void 0 && (t.stroke = lr.darkGray), super(t), t.visible === void 0 && (t.visible = !0), t.fixed !== void 0 && (this.fixed = t.fixed), t.usedCache !== void 0 && (this.usedCache = t.usedCache), t.dynamically !== void 0 && (this.dynamically = t.dynamically), t.castShadow !== void 0 && (this.castShadow = t.castShadow), t.showPoints !== void 0 && (this.showPoints = t.showPoints), t.wireframe !== void 0 && (this.wireframe = t.wireframe), t.alignCenter !== void 0 && (this.alignCenter = t.alignCenter), t.composeNode !== void 0 && (this.composeNode = t.composeNode), t.renderOrder !== void 0 && (this.renderOrder = t.renderOrder), t.id !== void 0 && (this.userData.id = t.id);
|
|
11084
11087
|
}
|
|
11085
11088
|
/** @override */
|
|
11086
11089
|
set needsUpdate(t) {
|
|
@@ -11115,9 +11118,9 @@ class Wa extends tf {
|
|
|
11115
11118
|
const u = this.children[e].material.fontSize / 12 || 1;
|
|
11116
11119
|
Yh.makeScale(u, u).invert(), pn.multiply(fa.copy(this.children[e].matrix).invert().premultiply(Yh));
|
|
11117
11120
|
}
|
|
11118
|
-
this.children[e].alignCenter && (
|
|
11121
|
+
this.children[e].alignCenter && (ir.copy(this.children[e].centerPoint).negate(), fa.makeTranslation(ir.x, ir.y), pn.multiply(fa)), t.push(...L.getPointsApplyMatrix3(pn, this.children[e].geometry.getBoundingPoints()));
|
|
11119
11122
|
}
|
|
11120
|
-
return this.boundingBox.setFromPoints(L.getPointsApplyMatrix3(this.matrixWorldInverse, t)), this.alignCenter && this.boundingBox.getCenter(this.centerPoint), this.alignCenter && this.boundingBox.translate(
|
|
11123
|
+
return this.boundingBox.setFromPoints(L.getPointsApplyMatrix3(this.matrixWorldInverse, t)), this.alignCenter && this.boundingBox.getCenter(this.centerPoint), this.alignCenter && this.boundingBox.translate(ir.copy(this.centerPoint).negate()), this.boundingBox.ceil(), this.boundingBox;
|
|
11121
11124
|
}
|
|
11122
11125
|
generateFeaturesKey() {
|
|
11123
11126
|
return this.featureKey = (this.geometry.featureKey || "G") + "_" + (this.material.featureKey || "M"), this.featureKey;
|
|
@@ -11139,12 +11142,12 @@ class Wa extends tf {
|
|
|
11139
11142
|
/** @override */
|
|
11140
11143
|
raycast(t, e = []) {
|
|
11141
11144
|
var n;
|
|
11142
|
-
return super.raycast(t, e), !this.selectable || !this.boundingBox || this.boundingBox.isEmpty() || !this.boundingBoxWorld.containsPoint(t.worldCoords) || (
|
|
11145
|
+
return super.raycast(t, e), !this.selectable || !this.boundingBox || this.boundingBox.isEmpty() || !this.boundingBoxWorld.containsPoint(t.worldCoords) || (ir.copy(t.worldCoords).applyMatrix3(pn.copy(this.matrixWorld).invert()), (n = this.geometry) != null && n.isPointInPath(ir) && e.push(this), console.warn("Shape.raycast: ", this.name, this.boundingBox.min.round().toString(), this.boundingBox.max.round().toString(), t.worldCoords.round().toString()), e.includes(this) || ((!this.usedCache || !ar.has(this.featureKey)) && ar.setByShape(this.featureKey, this), this.isPointInPathByTexture(t) && e.push(this))), e;
|
|
11143
11146
|
}
|
|
11144
11147
|
isPointInPathByTexture(t) {
|
|
11145
|
-
const e =
|
|
11148
|
+
const e = ar.get(this.featureKey);
|
|
11146
11149
|
if (!e || !e.image) throw new Error("raycastByPixel error");
|
|
11147
|
-
return
|
|
11150
|
+
return ir.copy(t.worldCoords).applyMatrix3(pn.copy(this.matrixWorld).multiply(e.matrix).invert()).round(), ur.getContext2D(e.image, { alpha: !0 }).getImageData(ir.x, ir.y, 1, 1).data[3] > 0;
|
|
11148
11151
|
}
|
|
11149
11152
|
// selected & animations
|
|
11150
11153
|
// getSelectedCopy(): IShape {
|
|
@@ -11718,7 +11721,7 @@ class $v extends fi {
|
|
|
11718
11721
|
wrap = zv;
|
|
11719
11722
|
ellipsis = !1;
|
|
11720
11723
|
constructor(t = {}) {
|
|
11721
|
-
t.textFill === void 0 && (t.textFill =
|
|
11724
|
+
t.textFill === void 0 && (t.textFill = lr.black), t.fontFamily === void 0 && (t.fontFamily = "Arial"), t.fontSize === void 0 && (t.fontSize = 12), t.fontStyle === void 0 && (t.fontStyle = si), t.fontWeight === void 0 && (t.fontWeight = si), t.textAlign === void 0 && (t.textAlign = tc), t.textBaseline === void 0 && (t.textBaseline = ec), super(t), this.setAttrs(t), this.generateFeatureKey();
|
|
11722
11725
|
}
|
|
11723
11726
|
}
|
|
11724
11727
|
class nf extends Wa {
|
|
@@ -11736,13 +11739,13 @@ class nf extends Wa {
|
|
|
11736
11739
|
/** @override */
|
|
11737
11740
|
computeBoundingBox() {
|
|
11738
11741
|
if (!this.material.text) return this.boundingBox;
|
|
11739
|
-
|
|
11742
|
+
ur.measureText(this.material.text || "", this, this.size);
|
|
11740
11743
|
const t = [];
|
|
11741
11744
|
return t.push({ x: -this.size.x / 2, y: -this.size.y / 2 }), t.push({ x: t[0].x, y: t[0].y + this.size.y }), t.push({ x: t[1].x + this.size.x, y: t[1].y }), t.push({ x: t[2].x, y: t[0].y }), this.geometry.setFromPoints(t), super.computeBoundingBox();
|
|
11742
11745
|
}
|
|
11743
11746
|
/** @override */
|
|
11744
11747
|
render(t) {
|
|
11745
|
-
this.visible && this.material.text && (t.font = `${this.material.fontWeight} ${this.material.fontSize}px ${this.material.fontFamily}`, t.fillStyle = this.material.fill ||
|
|
11748
|
+
this.visible && this.material.text && (t.font = `${this.material.fontWeight} ${this.material.fontSize}px ${this.material.fontFamily}`, t.fillStyle = this.material.fill || lr.black, t.textAlign = this.material.textAlign, t.textBaseline = this.material.textBaseline, t.fillText(this.material.text, 0, 0));
|
|
11746
11749
|
}
|
|
11747
11750
|
}
|
|
11748
11751
|
class Se {
|
|
@@ -12175,7 +12178,7 @@ function ic(i, t, e) {
|
|
|
12175
12178
|
]
|
|
12176
12179
|
];
|
|
12177
12180
|
}
|
|
12178
|
-
const
|
|
12181
|
+
const sr = Math.PI / 180;
|
|
12179
12182
|
function sc(i, t, e) {
|
|
12180
12183
|
return (1 - e) * i + e * t;
|
|
12181
12184
|
}
|
|
@@ -12204,12 +12207,12 @@ function uA(i, t, e) {
|
|
|
12204
12207
|
const n = Math.min(i.phi1, i.phi2), u = Math.max(i.phi1, i.phi2), a = u - n, l = Math.ceil(a / 90), c = new Array(l);
|
|
12205
12208
|
let f = t, d = e;
|
|
12206
12209
|
for (let y = 0; y < l; y++) {
|
|
12207
|
-
const x = sc(i.phi1, i.phi2, y / l), A = sc(i.phi1, i.phi2, (y + 1) / l), w = A - x, S = 4 / 3 * Math.tan(w *
|
|
12208
|
-
Math.cos(x *
|
|
12209
|
-
Math.sin(x *
|
|
12210
|
-
], [P, $] = [Math.cos(A *
|
|
12211
|
-
P + S * Math.sin(A *
|
|
12212
|
-
$ - S * Math.cos(A *
|
|
12210
|
+
const x = sc(i.phi1, i.phi2, y / l), A = sc(i.phi1, i.phi2, (y + 1) / l), w = A - x, S = 4 / 3 * Math.tan(w * sr / 4), [D, C] = [
|
|
12211
|
+
Math.cos(x * sr) - S * Math.sin(x * sr),
|
|
12212
|
+
Math.sin(x * sr) + S * Math.cos(x * sr)
|
|
12213
|
+
], [P, $] = [Math.cos(A * sr), Math.sin(A * sr)], [F, W] = [
|
|
12214
|
+
P + S * Math.sin(A * sr),
|
|
12215
|
+
$ - S * Math.cos(A * sr)
|
|
12213
12216
|
], q = {
|
|
12214
12217
|
relative: i.relative,
|
|
12215
12218
|
type: M.CURVE_TO
|
|
@@ -12990,7 +12993,7 @@ function qA(i, t, e) {
|
|
|
12990
12993
|
var d, y, x, A;
|
|
12991
12994
|
let n, u = e.fill || ((d = e.style) == null ? void 0 : d.fill) || void 0, a = e.fillOpacity || ((y = e.style) == null ? void 0 : y.fillOpacity) || void 0;
|
|
12992
12995
|
u && a && (u = new ye(u).setA(a).getStyle());
|
|
12993
|
-
let l = e.strokeWidth || ((x = e.style) == null ? void 0 : x.strokeWidth) || 1, c = e.stroke || ((A = e.style) == null ? void 0 : A.stroke) ||
|
|
12996
|
+
let l = e.strokeWidth || ((x = e.style) == null ? void 0 : x.strokeWidth) || 1, c = e.stroke || ((A = e.style) == null ? void 0 : A.stroke) || lr.black;
|
|
12994
12997
|
const f = [{
|
|
12995
12998
|
name: "path",
|
|
12996
12999
|
// fill: node.fill || node.style.fill || undefined,
|
|
@@ -13063,7 +13066,7 @@ function zA(i, t) {
|
|
|
13063
13066
|
text: e,
|
|
13064
13067
|
fontSize: 20,
|
|
13065
13068
|
// TODO: ...
|
|
13066
|
-
fill:
|
|
13069
|
+
fill: lr.black,
|
|
13067
13070
|
wireframe: !1,
|
|
13068
13071
|
flipY: !0,
|
|
13069
13072
|
userData: { id: t.id, tag: i }
|
|
@@ -13385,7 +13388,7 @@ class ew {
|
|
|
13385
13388
|
e = this.SYMBOLS[t.symbolId].clone();
|
|
13386
13389
|
else if (t.type === "text") {
|
|
13387
13390
|
const d = {
|
|
13388
|
-
fill:
|
|
13391
|
+
fill: lr.black,
|
|
13389
13392
|
wireframe: !1,
|
|
13390
13393
|
flipY: !0
|
|
13391
13394
|
// userData: {id: el.id},
|