archgine 1.0.26 → 1.0.28

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/index.mjs CHANGED
@@ -120,10 +120,10 @@ class Nn {
120
120
  }
121
121
  }
122
122
  function No(n, t) {
123
- let e = 0, i = 0, a, u, l, c, f, d, v, E, A, T, I, S, D, k, z, W, X, $, K, tt, Z, V = null, J = null, nt = null, gt = null, It = null, Ct = null;
123
+ let e = 0, i = 0, a, u, l, c, f, d, v, E, A, T, I, S, D, k, V, W, X, $, K, tt, Z, z = null, J = null, nt = null, gt = null, It = null, Ct = null;
124
124
  n.beginPath();
125
125
  for (let yt = 0; yt < t.length; ++yt) {
126
- $ = t[yt][0], $ !== "S" && $ !== "s" && $ !== "C" && $ !== "c" && (V = null, J = null), $ !== "T" && $ !== "t" && $ !== "Q" && $ !== "q" && (nt = null, gt = null);
126
+ $ = t[yt][0], $ !== "S" && $ !== "s" && $ !== "C" && $ !== "c" && (z = null, J = null), $ !== "T" && $ !== "t" && $ !== "Q" && $ !== "q" && (nt = null, gt = null);
127
127
  let B;
128
128
  switch ($) {
129
129
  case "m":
@@ -152,25 +152,25 @@ function No(n, t) {
152
152
  case "A":
153
153
  if (B = t[yt], Ct === null)
154
154
  throw new Error("This should never happen");
155
- $ === "a" ? (e += B[6], i += B[7]) : (e = B[6], i = B[7]), k = B[1], z = B[2], v = B[3] * Math.PI / 180, l = !!B[4], c = !!B[5], f = { x: e, y: i }, d = {
155
+ $ === "a" ? (e += B[6], i += B[7]) : (e = B[6], i = B[7]), k = B[1], V = B[2], v = B[3] * Math.PI / 180, l = !!B[4], c = !!B[5], f = { x: e, y: i }, d = {
156
156
  x: (Ct.x - f.x) / 2,
157
157
  y: (Ct.y - f.y) / 2
158
- }, Ic(d, -v), E = d.x * d.x / (k * k) + d.y * d.y / (z * z), E > 1 && (E = Math.sqrt(E), k *= E, z *= E), K = {
159
- x: k * d.y / z,
160
- y: -(z * d.x) / k
161
- }, A = k * k * z * z, T = k * k * d.y * d.y + z * z * d.x * d.x, c !== l ? Pc(K, Math.sqrt((A - T) / T) || 0) : Pc(K, -Math.sqrt((A - T) / T) || 0), u = Math.atan2((d.y - K.y) / z, (d.x - K.x) / k), a = Math.atan2(-(d.y + K.y) / z, -(d.x + K.x) / k), Ic(K, v), Ry(K, (f.x + Ct.x) / 2, (f.y + Ct.y) / 2), n.save(), n.translate(K.x, K.y), n.rotate(v), n.scale(k, z), n.arc(0, 0, 1, u, a, !c), n.restore();
158
+ }, Ic(d, -v), E = d.x * d.x / (k * k) + d.y * d.y / (V * V), E > 1 && (E = Math.sqrt(E), k *= E, V *= E), K = {
159
+ x: k * d.y / V,
160
+ y: -(V * d.x) / k
161
+ }, A = k * k * V * V, T = k * k * d.y * d.y + V * V * d.x * d.x, c !== l ? Pc(K, Math.sqrt((A - T) / T) || 0) : Pc(K, -Math.sqrt((A - T) / T) || 0), u = Math.atan2((d.y - K.y) / V, (d.x - K.x) / k), a = Math.atan2(-(d.y + K.y) / V, -(d.x + K.x) / k), Ic(K, v), Ry(K, (f.x + Ct.x) / 2, (f.y + Ct.y) / 2), n.save(), n.translate(K.x, K.y), n.rotate(v), n.scale(k, V), n.arc(0, 0, 1, u, a, !c), n.restore();
162
162
  break;
163
163
  case "C":
164
- B = t[yt], V = B[3], J = B[4], e = B[5], i = B[6], n.bezierCurveTo(B[1], B[2], V, J, e, i);
164
+ B = t[yt], z = B[3], J = B[4], e = B[5], i = B[6], n.bezierCurveTo(B[1], B[2], z, J, e, i);
165
165
  break;
166
166
  case "c":
167
- B = t[yt], n.bezierCurveTo(B[1] + e, B[2] + i, B[3] + e, B[4] + i, B[5] + e, B[6] + i), V = B[3] + e, J = B[4] + i, e += B[5], i += B[6];
167
+ B = t[yt], n.bezierCurveTo(B[1] + e, B[2] + i, B[3] + e, B[4] + i, B[5] + e, B[6] + i), z = B[3] + e, J = B[4] + i, e += B[5], i += B[6];
168
168
  break;
169
169
  case "S":
170
- B = t[yt], (V === null || J === null) && (V = e, J = i), n.bezierCurveTo(2 * e - V, 2 * i - J, B[1], B[2], B[3], B[4]), V = B[1], J = B[2], e = B[3], i = B[4];
170
+ B = t[yt], (z === null || J === null) && (z = e, J = i), n.bezierCurveTo(2 * e - z, 2 * i - J, B[1], B[2], B[3], B[4]), z = B[1], J = B[2], e = B[3], i = B[4];
171
171
  break;
172
172
  case "s":
173
- B = t[yt], (V === null || J === null) && (V = e, J = i), n.bezierCurveTo(2 * e - V, 2 * i - J, B[1] + e, B[2] + i, B[3] + e, B[4] + i), V = B[1] + e, J = B[2] + i, e += B[3], i += B[4];
173
+ B = t[yt], (z === null || J === null) && (z = e, J = i), n.bezierCurveTo(2 * e - z, 2 * i - J, B[1] + e, B[2] + i, B[3] + e, B[4] + i), z = B[1] + e, J = B[2] + i, e += B[3], i += B[4];
174
174
  break;
175
175
  case "Q":
176
176
  B = t[yt], nt = B[1], gt = B[2], e = B[3], i = B[4], n.quadraticCurveTo(nt, gt, e, i);
@@ -195,7 +195,7 @@ function No(n, t) {
195
195
  B = t[yt], I = B[1], S = B[2], e = B[3], i = B[4], D = B[5], n.arcTo(I, S, e, i, D);
196
196
  break;
197
197
  case "E":
198
- B = t[yt], e = B[1], i = B[2], k = B[3], z = B[4], v = B[5], u = B[6], a = B[7], tt = B[8], n.save(), n.translate(e, i), n.rotate(v), n.scale(k, z), n.arc(0, 0, 1, u, a, tt), n.restore();
198
+ B = t[yt], e = B[1], i = B[2], k = B[3], V = B[4], v = B[5], u = B[6], a = B[7], tt = B[8], n.save(), n.translate(e, i), n.rotate(v), n.scale(k, V), n.arc(0, 0, 1, u, a, tt), n.restore();
199
199
  break;
200
200
  case "R":
201
201
  B = t[yt], e = B[1], i = B[2], W = B[3], X = B[4], It = { x: e, y: i }, n.rect(e, i, W, X);
@@ -274,7 +274,7 @@ function Wy(n, t, e) {
274
274
  function sl(n, t) {
275
275
  return t === void 0 && (t = Object), t && typeof t.freeze == "function" ? t.freeze(n) : n;
276
276
  }
277
- function Vy(n, t) {
277
+ function zy(n, t) {
278
278
  if (n === null || typeof n != "object")
279
279
  throw new TypeError("target is not an object");
280
280
  for (var e in t)
@@ -374,17 +374,17 @@ var qf = sl({
374
374
  */
375
375
  XMLNS: "http://www.w3.org/2000/xmlns/"
376
376
  });
377
- Yi.assign = Vy;
377
+ Yi.assign = zy;
378
378
  Yi.find = Wy;
379
379
  Yi.freeze = sl;
380
380
  Yi.MIME_TYPE = qf;
381
381
  Yi.NAMESPACE = Hf;
382
382
  var Wf = Yi, xi = Wf.find, Is = Wf.NAMESPACE;
383
- function zy(n) {
383
+ function Vy(n) {
384
384
  return n !== "";
385
385
  }
386
386
  function $y(n) {
387
- return n ? n.split(/[\t\n\f\r ]+/).filter(zy) : [];
387
+ return n ? n.split(/[\t\n\f\r ]+/).filter(Vy) : [];
388
388
  }
389
389
  function Gy(n, t) {
390
390
  return n.hasOwnProperty(t) || (n[t] = !0), n;
@@ -412,27 +412,27 @@ function be(n, t) {
412
412
  }
413
413
  e.constructor != n && (typeof n != "function" && console.error("unknown Class:" + n), e.constructor = n);
414
414
  }
415
- var we = {}, ui = we.ELEMENT_NODE = 1, On = we.ATTRIBUTE_NODE = 2, $a = we.TEXT_NODE = 3, Vf = we.CDATA_SECTION_NODE = 4, zf = we.ENTITY_REFERENCE_NODE = 5, Yy = we.ENTITY_NODE = 6, $f = we.PROCESSING_INSTRUCTION_NODE = 7, Gf = we.COMMENT_NODE = 8, Xf = we.DOCUMENT_NODE = 9, Yf = we.DOCUMENT_TYPE_NODE = 10, Gi = we.DOCUMENT_FRAGMENT_NODE = 11, Zy = we.NOTATION_NODE = 12, ae = {}, Zt = {};
416
- ae.INDEX_SIZE_ERR = (Zt[1] = "Index size error", 1);
417
- ae.DOMSTRING_SIZE_ERR = (Zt[2] = "DOMString size error", 2);
418
- var ve = ae.HIERARCHY_REQUEST_ERR = (Zt[3] = "Hierarchy request error", 3);
419
- ae.WRONG_DOCUMENT_ERR = (Zt[4] = "Wrong document", 4);
420
- ae.INVALID_CHARACTER_ERR = (Zt[5] = "Invalid character", 5);
421
- ae.NO_DATA_ALLOWED_ERR = (Zt[6] = "No data allowed", 6);
422
- ae.NO_MODIFICATION_ALLOWED_ERR = (Zt[7] = "No modification allowed", 7);
423
- var Zf = ae.NOT_FOUND_ERR = (Zt[8] = "Not found", 8);
424
- ae.NOT_SUPPORTED_ERR = (Zt[9] = "Not supported", 9);
425
- var Rc = ae.INUSE_ATTRIBUTE_ERR = (Zt[10] = "Attribute in use", 10);
426
- ae.INVALID_STATE_ERR = (Zt[11] = "Invalid state", 11);
427
- ae.SYNTAX_ERR = (Zt[12] = "Syntax error", 12);
428
- ae.INVALID_MODIFICATION_ERR = (Zt[13] = "Invalid modification", 13);
429
- ae.NAMESPACE_ERR = (Zt[14] = "Invalid namespace", 14);
430
- ae.INVALID_ACCESS_ERR = (Zt[15] = "Invalid access", 15);
415
+ var we = {}, ui = we.ELEMENT_NODE = 1, On = we.ATTRIBUTE_NODE = 2, $a = we.TEXT_NODE = 3, zf = we.CDATA_SECTION_NODE = 4, Vf = we.ENTITY_REFERENCE_NODE = 5, Yy = we.ENTITY_NODE = 6, $f = we.PROCESSING_INSTRUCTION_NODE = 7, Gf = we.COMMENT_NODE = 8, Xf = we.DOCUMENT_NODE = 9, Yf = we.DOCUMENT_TYPE_NODE = 10, Gi = we.DOCUMENT_FRAGMENT_NODE = 11, Zy = we.NOTATION_NODE = 12, ae = {}, Kt = {};
416
+ ae.INDEX_SIZE_ERR = (Kt[1] = "Index size error", 1);
417
+ ae.DOMSTRING_SIZE_ERR = (Kt[2] = "DOMString size error", 2);
418
+ var ve = ae.HIERARCHY_REQUEST_ERR = (Kt[3] = "Hierarchy request error", 3);
419
+ ae.WRONG_DOCUMENT_ERR = (Kt[4] = "Wrong document", 4);
420
+ ae.INVALID_CHARACTER_ERR = (Kt[5] = "Invalid character", 5);
421
+ ae.NO_DATA_ALLOWED_ERR = (Kt[6] = "No data allowed", 6);
422
+ ae.NO_MODIFICATION_ALLOWED_ERR = (Kt[7] = "No modification allowed", 7);
423
+ var Zf = ae.NOT_FOUND_ERR = (Kt[8] = "Not found", 8);
424
+ ae.NOT_SUPPORTED_ERR = (Kt[9] = "Not supported", 9);
425
+ var Rc = ae.INUSE_ATTRIBUTE_ERR = (Kt[10] = "Attribute in use", 10);
426
+ ae.INVALID_STATE_ERR = (Kt[11] = "Invalid state", 11);
427
+ ae.SYNTAX_ERR = (Kt[12] = "Syntax error", 12);
428
+ ae.INVALID_MODIFICATION_ERR = (Kt[13] = "Invalid modification", 13);
429
+ ae.NAMESPACE_ERR = (Kt[14] = "Invalid namespace", 14);
430
+ ae.INVALID_ACCESS_ERR = (Kt[15] = "Invalid access", 15);
431
431
  function Ht(n, t) {
432
432
  if (t instanceof Error)
433
433
  var e = t;
434
434
  else
435
- e = this, Error.call(this, Zt[n]), this.message = Zt[n], Error.captureStackTrace && Error.captureStackTrace(this, Ht);
435
+ e = this, Error.call(this, Kt[n]), this.message = Kt[n], Error.captureStackTrace && Error.captureStackTrace(this, Ht);
436
436
  return e.code = n, t && (this.message = this.message + ": " + t), e;
437
437
  }
438
438
  Ht.prototype = Error.prototype;
@@ -968,7 +968,7 @@ Fs.prototype = {
968
968
  },
969
969
  //document factory method:
970
970
  createElement: function(n) {
971
- var t = new Vr();
971
+ var t = new zr();
972
972
  t.ownerDocument = this, t.nodeName = n, t.tagName = n, t.localName = n, t.childNodes = new $i();
973
973
  var e = t.attributes = new Ga();
974
974
  return e._ownerElement = t, t;
@@ -1003,7 +1003,7 @@ Fs.prototype = {
1003
1003
  },
1004
1004
  // Introduced in DOM Level 2:
1005
1005
  createElementNS: function(n, t) {
1006
- var e = new Vr(), i = t.split(":"), a = e.attributes = new Ga();
1006
+ var e = new zr(), i = t.split(":"), a = e.attributes = new Ga();
1007
1007
  return e.childNodes = new $i(), e.ownerDocument = this, e.nodeName = t, e.tagName = t, e.namespaceURI = n, i.length == 2 ? (e.prefix = i[0], e.localName = i[1]) : e.localName = t, a._ownerElement = e, e;
1008
1008
  },
1009
1009
  // Introduced in DOM Level 2:
@@ -1013,10 +1013,10 @@ Fs.prototype = {
1013
1013
  }
1014
1014
  };
1015
1015
  be(Fs, bt);
1016
- function Vr() {
1016
+ function zr() {
1017
1017
  this._nsMap = {};
1018
1018
  }
1019
- Vr.prototype = {
1019
+ zr.prototype = {
1020
1020
  nodeType: ui,
1021
1021
  hasAttribute: function(n) {
1022
1022
  return this.getAttributeNode(n) != null;
@@ -1085,9 +1085,9 @@ Vr.prototype = {
1085
1085
  });
1086
1086
  }
1087
1087
  };
1088
- Fs.prototype.getElementsByTagName = Vr.prototype.getElementsByTagName;
1089
- Fs.prototype.getElementsByTagNameNS = Vr.prototype.getElementsByTagNameNS;
1090
- be(Vr, bt);
1088
+ Fs.prototype.getElementsByTagName = zr.prototype.getElementsByTagName;
1089
+ Fs.prototype.getElementsByTagNameNS = zr.prototype.getElementsByTagNameNS;
1090
+ be(zr, bt);
1091
1091
  function Ya() {
1092
1092
  }
1093
1093
  Ya.prototype.nodeType = On;
@@ -1106,7 +1106,7 @@ Us.prototype = {
1106
1106
  this.replaceData(n, 0, t);
1107
1107
  },
1108
1108
  appendChild: function(n) {
1109
- throw new Error(Zt[ve]);
1109
+ throw new Error(Kt[ve]);
1110
1110
  },
1111
1111
  deleteData: function(n, t) {
1112
1112
  this.replaceData(n, t, "");
@@ -1141,7 +1141,7 @@ function cl() {
1141
1141
  }
1142
1142
  cl.prototype = {
1143
1143
  nodeName: "#cdata-section",
1144
- nodeType: Vf
1144
+ nodeType: zf
1145
1145
  };
1146
1146
  be(cl, Us);
1147
1147
  function Ja() {
@@ -1158,7 +1158,7 @@ rp.prototype.nodeType = Yy;
1158
1158
  be(rp, bt);
1159
1159
  function fl() {
1160
1160
  }
1161
- fl.prototype.nodeType = zf;
1161
+ fl.prototype.nodeType = Vf;
1162
1162
  be(fl, bt);
1163
1163
  function ja() {
1164
1164
  }
@@ -1277,14 +1277,14 @@ function Dn(n, t, e, i, a) {
1277
1277
  return t.push(
1278
1278
  n.data.replace(/[<&>]/g, Jf)
1279
1279
  );
1280
- case Vf:
1280
+ case zf:
1281
1281
  return t.push("<![CDATA[", n.data, "]]>");
1282
1282
  case Gf:
1283
1283
  return t.push("<!--", n.data, "-->");
1284
1284
  case Yf:
1285
- var z = n.publicId, W = n.systemId;
1286
- if (t.push("<!DOCTYPE ", n.name), z)
1287
- t.push(" PUBLIC ", z), W && W != "." && t.push(" ", W), t.push(">");
1285
+ var V = n.publicId, W = n.systemId;
1286
+ if (t.push("<!DOCTYPE ", n.name), V)
1287
+ t.push(" PUBLIC ", V), W && W != "." && t.push(" ", W), t.push(">");
1288
1288
  else if (W && W != ".")
1289
1289
  t.push(" SYSTEM ", W, ">");
1290
1290
  else {
@@ -1294,7 +1294,7 @@ function Dn(n, t, e, i, a) {
1294
1294
  return;
1295
1295
  case $f:
1296
1296
  return t.push("<?", n.target, " ", n.data, "?>");
1297
- case zf:
1297
+ case Vf:
1298
1298
  return t.push("&", n.nodeName, ";");
1299
1299
  default:
1300
1300
  t.push("??", n.nodeName);
@@ -1384,7 +1384,7 @@ try {
1384
1384
  dr.DocumentType = Ja;
1385
1385
  dr.DOMException = Ht;
1386
1386
  dr.DOMImplementation = Qf;
1387
- dr.Element = Vr;
1387
+ dr.Element = zr;
1388
1388
  dr.Node = bt;
1389
1389
  dr.NodeList = $i;
1390
1390
  dr.XMLSerializer = np;
@@ -3526,7 +3526,7 @@ var tu = {}, op = {};
3526
3526
  zwnj: "‌"
3527
3527
  }), n.entityMap = n.HTML_ENTITIES;
3528
3528
  })(op);
3529
- var dl = {}, Ls = Yi.NAMESPACE, Jo = /[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]/, Wc = new RegExp("[\\-\\.0-9" + Jo.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), Vc = new RegExp("^" + Jo.source + Wc.source + "*(?::" + Jo.source + Wc.source + "*)?$"), gs = 0, cr = 1, vn = 2, ms = 3, xn = 4, En = 5, ys = 6, Ra = 7;
3529
+ var dl = {}, Ls = Yi.NAMESPACE, Jo = /[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]/, Wc = new RegExp("[\\-\\.0-9" + Jo.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), zc = new RegExp("^" + Jo.source + Wc.source + "*(?::" + Jo.source + Wc.source + "*)?$"), gs = 0, cr = 1, vn = 2, ms = 3, xn = 4, En = 5, ys = 6, Ra = 7;
3530
3530
  function Bn(n, t) {
3531
3531
  this.message = n, this.locator = t, Error.captureStackTrace && Error.captureStackTrace(this, Bn);
3532
3532
  }
@@ -3575,8 +3575,8 @@ function iv(n, t, e, i, a) {
3575
3575
  var D = n.indexOf("<", S);
3576
3576
  if (D < 0) {
3577
3577
  if (!n.substr(S).match(/^\s*$/)) {
3578
- var k = i.doc, z = k.createTextNode(n.substr(S));
3579
- k.appendChild(z), i.currentElement = z;
3578
+ var k = i.doc, V = k.createTextNode(n.substr(S));
3579
+ k.appendChild(V), i.currentElement = V;
3580
3580
  }
3581
3581
  return;
3582
3582
  }
@@ -3602,16 +3602,16 @@ function iv(n, t, e, i, a) {
3602
3602
  break;
3603
3603
  default:
3604
3604
  A && f(D);
3605
- var V = new cp(), J = T[T.length - 1].currentNSMap, nt = rv(n, D, V, J, l, a), gt = V.length;
3606
- if (!V.closed && sv(n, nt, V.tagName, I) && (V.closed = !0, e.nbsp || a.warning("unclosed xml attribute")), A && gt) {
3607
- for (var It = zc(A, {}), Ct = 0; Ct < gt; Ct++) {
3608
- var yt = V[Ct];
3609
- f(yt.offset), yt.locator = zc(A, {});
3605
+ var z = new cp(), J = T[T.length - 1].currentNSMap, nt = rv(n, D, z, J, l, a), gt = z.length;
3606
+ if (!z.closed && sv(n, nt, z.tagName, I) && (z.closed = !0, e.nbsp || a.warning("unclosed xml attribute")), A && gt) {
3607
+ for (var It = Vc(A, {}), Ct = 0; Ct < gt; Ct++) {
3608
+ var yt = z[Ct];
3609
+ f(yt.offset), yt.locator = Vc(A, {});
3610
3610
  }
3611
- i.locator = It, $c(V, i, J) && T.push(V), i.locator = A;
3611
+ i.locator = It, $c(z, i, J) && T.push(z), i.locator = A;
3612
3612
  } else
3613
- $c(V, i, J) && T.push(V);
3614
- Ls.isHTML(V.uri) && !V.closed ? nt = nv(n, nt, V.tagName, l, i) : nt++;
3613
+ $c(z, i, J) && T.push(z);
3614
+ Ls.isHTML(z.uri) && !z.closed ? nt = nv(n, nt, z.tagName, l, i) : nt++;
3615
3615
  }
3616
3616
  } catch (B) {
3617
3617
  if (B instanceof Bn)
@@ -3621,7 +3621,7 @@ function iv(n, t, e, i, a) {
3621
3621
  nt > S ? S = nt : c(Math.max(D, S) + 1);
3622
3622
  }
3623
3623
  }
3624
- function zc(n, t) {
3624
+ function Vc(n, t) {
3625
3625
  return t.lineNumber = n.lineNumber, t.columnNumber = n.columnNumber, t;
3626
3626
  }
3627
3627
  function rv(n, t, e, i, a, u) {
@@ -3812,12 +3812,12 @@ function cp() {
3812
3812
  }
3813
3813
  cp.prototype = {
3814
3814
  setTagName: function(n) {
3815
- if (!Vc.test(n))
3815
+ if (!zc.test(n))
3816
3816
  throw new Error("invalid tagName:" + n);
3817
3817
  this.tagName = n;
3818
3818
  },
3819
3819
  addValue: function(n, t, e) {
3820
- if (!Vc.test(n))
3820
+ if (!zc.test(n))
3821
3821
  throw new Error("invalid attribute:" + n);
3822
3822
  this.attributeNames[n] = this.length, this[this.length++] = { qName: n, value: t, offset: e };
3823
3823
  },
@@ -3995,7 +3995,7 @@ tu.__DOMHandler = ks;
3995
3995
  tu.normalizeLineEndings = pp;
3996
3996
  tu.DOMParser = dp;
3997
3997
  var gv = tu.DOMParser;
3998
- const mv = "1.0.26";
3998
+ const mv = "1.0.28";
3999
3999
  function yv() {
4000
4000
  return typeof window < "u" && ({}.toString.call(window) === "[object Window]" || {}.toString.call(window) === "[object global]");
4001
4001
  }
@@ -4466,7 +4466,7 @@ class xe {
4466
4466
  }
4467
4467
  }
4468
4468
  const Ri = new xe(), ka = { h: 0, s: 0, l: 0 };
4469
- class L {
4469
+ class R {
4470
4470
  isVector2 = !0;
4471
4471
  x = 0;
4472
4472
  y = 0;
@@ -4498,14 +4498,14 @@ class L {
4498
4498
  static getVectors(t) {
4499
4499
  const e = [];
4500
4500
  for (let i = 0, a = t.length; i < a; i++)
4501
- e.push(new L(t[i].x, t[i].y));
4501
+ e.push(new R(t[i].x, t[i].y));
4502
4502
  return e;
4503
4503
  }
4504
4504
  static getStrings(t) {
4505
4505
  const e = [];
4506
4506
  if (!t || !t.length) return "";
4507
4507
  for (let i = 0, a = t.length; i < a; i++)
4508
- e.push(L.getString(t[i]));
4508
+ e.push(R.getString(t[i]));
4509
4509
  return e.join(",");
4510
4510
  }
4511
4511
  static getString(t) {
@@ -4524,7 +4524,7 @@ class L {
4524
4524
  return t.x * e.y - t.y * e.x;
4525
4525
  }
4526
4526
  static sub(t, e) {
4527
- return new L().subVectors(t, e);
4527
+ return new R().subVectors(t, e);
4528
4528
  }
4529
4529
  static isPointOnSegment(t, e, i) {
4530
4530
  return fr(this.sub(t, i).cross(this.sub(e, i))) === 0 && fr(this.sub(t, i).dot(this.sub(e, i))) <= 0;
@@ -4547,11 +4547,11 @@ class L {
4547
4547
  if (!a || a.length < 2) return i;
4548
4548
  a.length === 2 ? (a.push(a[1]), a.unshift(a[0])) : a.length === 3 && a.splice(2, 0, a[1]);
4549
4549
  for (let u = 0; u < a.length - 3; u += 3) {
4550
- let l = new L(a[u].x, a[u].y), c = new L(a[u + 1].x, a[u + 1].y), f = new L(a[u + 2].x, a[u + 2].y), d = new L(a[u + 3].x, a[u + 3].y), v = 0;
4550
+ let l = new R(a[u].x, a[u].y), c = new R(a[u + 1].x, a[u + 1].y), f = new R(a[u + 2].x, a[u + 2].y), d = new R(a[u + 3].x, a[u + 3].y), v = 0;
4551
4551
  v += l.distanceTo(c), v += c.distanceTo(f), v += f.distanceTo(d);
4552
4552
  let E = Math.min(0.5, 1 / (v / e));
4553
4553
  for (let A = E; A < 1; A += E) {
4554
- let T = 3 * (c.x - l.x), I = 3 * (f.x - c.x) - T, S = d.x - l.x - T - I, D = 3 * (c.y - l.y), k = 3 * (f.y - c.y) - D, z = d.y - l.y - D - k, W = S * Math.pow(A, 3) + I * Math.pow(A, 2) + T * A + l.x, X = z * Math.pow(A, 3) + k * Math.pow(A, 2) + D * A + l.y;
4554
+ let T = 3 * (c.x - l.x), I = 3 * (f.x - c.x) - T, S = d.x - l.x - T - I, D = 3 * (c.y - l.y), k = 3 * (f.y - c.y) - D, V = d.y - l.y - D - k, W = S * Math.pow(A, 3) + I * Math.pow(A, 2) + T * A + l.x, X = V * Math.pow(A, 3) + k * Math.pow(A, 2) + D * A + l.y;
4555
4555
  i.push({ x: Math.round(W), y: Math.round(X), a: 0, l: 0 });
4556
4556
  }
4557
4557
  }
@@ -4566,7 +4566,7 @@ class L {
4566
4566
  }
4567
4567
  return e;
4568
4568
  }
4569
- static getCircleCenterByChord(t, e, i, a = !0, u = new L()) {
4569
+ static getCircleCenterByChord(t, e, i, a = !0, u = new R()) {
4570
4570
  const l = this.getDistance(t, e);
4571
4571
  if (l === 0)
4572
4572
  return u.x = 1 / 0, u.y = 1 / 0, u;
@@ -4579,7 +4579,7 @@ class L {
4579
4579
  }
4580
4580
  static isPointInPolygonByRay(t, e) {
4581
4581
  let i = 0;
4582
- const a = new L().copy(t), u = new L(), l = new L();
4582
+ const a = new R().copy(t), u = new R(), l = new R();
4583
4583
  for (let c = 0; c < e.length; c++) {
4584
4584
  c === e.length - 1 ? (u.copy(e[c]), l.copy(e[0])) : (u.copy(e[c]), l.copy(e[c + 1]));
4585
4585
  let f = [u.y, l.y].sort((d, v) => d - v);
@@ -4590,7 +4590,7 @@ class L {
4590
4590
  static whichSideOfSegment(t, e, i) {
4591
4591
  return (e.x - t.x) * (i.y - t.y) - (i.x - t.x) * (e.y - t.y);
4592
4592
  }
4593
- static getIntersectionOfSegments(t, e, i, a, u = !1, l = new L()) {
4593
+ static getIntersectionOfSegments(t, e, i, a, u = !1, l = new R()) {
4594
4594
  const c = (a.y - i.y) * (e.x - t.x) - (a.x - i.x) * (e.y - t.y);
4595
4595
  if (c === 0) return l.makeEmpty();
4596
4596
  const f = (a.x - i.x) * (t.y - i.y) - (a.y - i.y) * (t.x - i.x), d = (e.x - t.x) * (t.y - i.y) - (e.y - t.y) * (t.x - i.x), v = f / c, E = d / c;
@@ -4664,7 +4664,7 @@ class L {
4664
4664
  return this.x = Math.max(t, Math.min(e, this.x)), this.y = Math.max(t, Math.min(e, this.y)), this;
4665
4665
  }
4666
4666
  clone() {
4667
- return new L(this.x, this.y);
4667
+ return new R(this.x, this.y);
4668
4668
  }
4669
4669
  copy(t) {
4670
4670
  return this.x = t.x, this.y = t.y, this;
@@ -4855,9 +4855,9 @@ class L {
4855
4855
  yield this.x, yield this.y;
4856
4856
  }
4857
4857
  }
4858
- const Io = new L(), fb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4858
+ const Io = new R(), fb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4859
4859
  __proto__: null,
4860
- default: L
4860
+ default: R
4861
4861
  }, Symbol.toStringTag, { value: "Module" }));
4862
4862
  var Ka = { exports: {} };
4863
4863
  /**
@@ -4871,17 +4871,17 @@ var Ka = { exports: {} };
4871
4871
  Ka.exports;
4872
4872
  (function(n, t) {
4873
4873
  (function() {
4874
- var e, i = "4.17.21", a = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", l = "Expected a function", c = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", d = 500, v = "__lodash_placeholder__", E = 1, A = 2, T = 4, I = 1, S = 2, D = 1, k = 2, z = 4, W = 8, X = 16, $ = 32, K = 64, tt = 128, Z = 256, V = 512, J = 30, nt = "...", gt = 800, It = 16, Ct = 1, yt = 2, B = 3, Pt = 1 / 0, Ie = 9007199254740991, Hs = 17976931348623157e292, $r = NaN, Pe = 4294967295, yr = Pe - 1, su = Pe >>> 1, Pn = [
4874
+ var e, i = "4.17.21", a = 200, u = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", l = "Expected a function", c = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", d = 500, v = "__lodash_placeholder__", E = 1, A = 2, T = 4, I = 1, S = 2, D = 1, k = 2, V = 4, W = 8, X = 16, $ = 32, K = 64, tt = 128, Z = 256, z = 512, J = 30, nt = "...", gt = 800, It = 16, Ct = 1, yt = 2, B = 3, Pt = 1 / 0, Ie = 9007199254740991, Hs = 17976931348623157e292, $r = NaN, Pe = 4294967295, yr = Pe - 1, su = Pe >>> 1, Pn = [
4875
4875
  ["ary", tt],
4876
4876
  ["bind", D],
4877
4877
  ["bindKey", k],
4878
4878
  ["curry", W],
4879
4879
  ["curryRight", X],
4880
- ["flip", V],
4880
+ ["flip", z],
4881
4881
  ["partial", $],
4882
4882
  ["partialRight", K],
4883
4883
  ["rearg", Z]
4884
- ], Zi = "[object Arguments]", Gr = "[object Array]", Kt = "[object AsyncFunction]", Te = "[object Boolean]", St = "[object Date]", ie = "[object DOMException]", bi = "[object Error]", hi = "[object Function]", Ki = "[object GeneratorFunction]", Qt = "[object Map]", Xe = "[object Number]", Le = "[object Null]", Jt = "[object Object]", Ln = "[object Promise]", Ws = "[object Proxy]", ci = "[object RegExp]", Mt = "[object Set]", vr = "[object String]", Xr = "[object Symbol]", au = "[object Undefined]", xr = "[object WeakMap]", uu = "[object WeakSet]", Qi = "[object ArrayBuffer]", wi = "[object DataView]", Yr = "[object Float32Array]", Zr = "[object Float64Array]", Ji = "[object Int8Array]", Er = "[object Int16Array]", Rn = "[object Int32Array]", Fn = "[object Uint8Array]", Un = "[object Uint8ClampedArray]", kn = "[object Uint16Array]", qn = "[object Uint32Array]", Kr = /\b__p \+= '';/g, ou = /\b(__p \+=) '' \+/g, lu = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Hn = /&(?:amp|lt|gt|quot|#39);/g, Wn = /[&<>"']/g, Vn = RegExp(Hn.source), hu = RegExp(Wn.source), cu = /<%-([\s\S]+?)%>/g, fu = /<%([\s\S]+?)%>/g, zn = /<%=([\s\S]+?)%>/g, pu = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, du = /^\w*$/, gu = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ji = /[\\^$.*+?()[\]{}|]/g, mu = RegExp(ji.source), $n = /^\s+/, Vs = /\s/, Gn = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, yu = /\{\n\/\* \[wrapped with (.+)\] \*/, zs = /,? & /, vu = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, $s = /[()=,{}\[\]\/\s]/, Gs = /\\(\\)?/g, Xs = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Xn = /\w*$/, Yn = /^[-+]0x[0-9a-f]+$/i, Ti = /^0b[01]+$/i, Ar = /^\[object .+?Constructor\]$/, br = /^0o[0-7]+$/i, Qr = /^(?:0|[1-9]\d*)$/, Zn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Jr = /($^)/, xu = /['\n\r\u2028\u2029\\]/g, _i = "\\ud800-\\udfff", fe = "\\u0300-\\u036f", tr = "\\ufe20-\\ufe2f", fi = "\\u20d0-\\u20ff", Re = fe + tr + fi, er = "\\u2700-\\u27bf", _e = "a-z\\xdf-\\xf6\\xf8-\\xff", Ye = "\\xac\\xb1\\xd7\\xf7", Ys = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Zs = "\\u2000-\\u206f", jr = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", pe = "A-Z\\xc0-\\xd6\\xd8-\\xde", wr = "\\ufe0e\\ufe0f", tn = Ye + Ys + Zs + jr, Tr = "['’]", Kn = "[" + _i + "]", en = "[" + tn + "]", Ci = "[" + Re + "]", Ze = "\\d+", Eu = "[" + er + "]", Qn = "[" + _e + "]", rn = "[^" + _i + tn + Ze + er + _e + pe + "]", nn = "\\ud83c[\\udffb-\\udfff]", Au = "(?:" + Ci + "|" + nn + ")", Ks = "[^" + _i + "]", g = "(?:\\ud83c[\\udde6-\\uddff]){2}", x = "[\\ud800-\\udbff][\\udc00-\\udfff]", w = "[" + pe + "]", O = "\\u200d", H = "(?:" + Qn + "|" + rn + ")", Y = "(?:" + w + "|" + rn + ")", ot = "(?:" + Tr + "(?:d|ll|m|re|s|t|ve))?", Ft = "(?:" + Tr + "(?:D|LL|M|RE|S|T|VE))?", Wt = Au + "?", Gt = "[" + wr + "]?", Fe = "(?:" + O + "(?:" + [Ks, g, x].join("|") + ")" + Gt + Wt + ")*", qp = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Hp = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", _l = Gt + Wt + Fe, Wp = "(?:" + [Eu, g, x].join("|") + ")" + _l, Vp = "(?:" + [Ks + Ci + "?", Ci, g, x, Kn].join("|") + ")", zp = RegExp(Tr, "g"), $p = RegExp(Ci, "g"), bu = RegExp(nn + "(?=" + nn + ")|" + Vp + _l, "g"), Gp = RegExp([
4884
+ ], Zi = "[object Arguments]", Gr = "[object Array]", Qt = "[object AsyncFunction]", Te = "[object Boolean]", St = "[object Date]", ie = "[object DOMException]", bi = "[object Error]", hi = "[object Function]", Ki = "[object GeneratorFunction]", Jt = "[object Map]", Xe = "[object Number]", Le = "[object Null]", jt = "[object Object]", Ln = "[object Promise]", Ws = "[object Proxy]", ci = "[object RegExp]", Mt = "[object Set]", vr = "[object String]", Xr = "[object Symbol]", au = "[object Undefined]", xr = "[object WeakMap]", uu = "[object WeakSet]", Qi = "[object ArrayBuffer]", wi = "[object DataView]", Yr = "[object Float32Array]", Zr = "[object Float64Array]", Ji = "[object Int8Array]", Er = "[object Int16Array]", Rn = "[object Int32Array]", Fn = "[object Uint8Array]", Un = "[object Uint8ClampedArray]", kn = "[object Uint16Array]", qn = "[object Uint32Array]", Kr = /\b__p \+= '';/g, ou = /\b(__p \+=) '' \+/g, lu = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Hn = /&(?:amp|lt|gt|quot|#39);/g, Wn = /[&<>"']/g, zn = RegExp(Hn.source), hu = RegExp(Wn.source), cu = /<%-([\s\S]+?)%>/g, fu = /<%([\s\S]+?)%>/g, Vn = /<%=([\s\S]+?)%>/g, pu = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, du = /^\w*$/, gu = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ji = /[\\^$.*+?()[\]{}|]/g, mu = RegExp(ji.source), $n = /^\s+/, zs = /\s/, Gn = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, yu = /\{\n\/\* \[wrapped with (.+)\] \*/, Vs = /,? & /, vu = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, $s = /[()=,{}\[\]\/\s]/, Gs = /\\(\\)?/g, Xs = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Xn = /\w*$/, Yn = /^[-+]0x[0-9a-f]+$/i, Ti = /^0b[01]+$/i, Ar = /^\[object .+?Constructor\]$/, br = /^0o[0-7]+$/i, Qr = /^(?:0|[1-9]\d*)$/, Zn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Jr = /($^)/, xu = /['\n\r\u2028\u2029\\]/g, _i = "\\ud800-\\udfff", fe = "\\u0300-\\u036f", tr = "\\ufe20-\\ufe2f", fi = "\\u20d0-\\u20ff", Re = fe + tr + fi, er = "\\u2700-\\u27bf", _e = "a-z\\xdf-\\xf6\\xf8-\\xff", Ye = "\\xac\\xb1\\xd7\\xf7", Ys = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Zs = "\\u2000-\\u206f", jr = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", pe = "A-Z\\xc0-\\xd6\\xd8-\\xde", wr = "\\ufe0e\\ufe0f", tn = Ye + Ys + Zs + jr, Tr = "['’]", Kn = "[" + _i + "]", en = "[" + tn + "]", Ci = "[" + Re + "]", Ze = "\\d+", Eu = "[" + er + "]", Qn = "[" + _e + "]", rn = "[^" + _i + tn + Ze + er + _e + pe + "]", nn = "\\ud83c[\\udffb-\\udfff]", Au = "(?:" + Ci + "|" + nn + ")", Ks = "[^" + _i + "]", g = "(?:\\ud83c[\\udde6-\\uddff]){2}", x = "[\\ud800-\\udbff][\\udc00-\\udfff]", w = "[" + pe + "]", O = "\\u200d", H = "(?:" + Qn + "|" + rn + ")", Y = "(?:" + w + "|" + rn + ")", ot = "(?:" + Tr + "(?:d|ll|m|re|s|t|ve))?", Ft = "(?:" + Tr + "(?:D|LL|M|RE|S|T|VE))?", Wt = Au + "?", Gt = "[" + wr + "]?", Fe = "(?:" + O + "(?:" + [Ks, g, x].join("|") + ")" + Gt + Wt + ")*", qp = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Hp = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", _l = Gt + Wt + Fe, Wp = "(?:" + [Eu, g, x].join("|") + ")" + _l, zp = "(?:" + [Ks + Ci + "?", Ci, g, x, Kn].join("|") + ")", Vp = RegExp(Tr, "g"), $p = RegExp(Ci, "g"), bu = RegExp(nn + "(?=" + nn + ")|" + zp + _l, "g"), Gp = RegExp([
4885
4885
  w + "?" + Qn + "+" + ot + "(?=" + [en, w, "$"].join("|") + ")",
4886
4886
  Y + "+" + Ft + "(?=" + [en, w + H, "$"].join("|") + ")",
4887
4887
  w + "?" + H + "+" + ot,
@@ -4922,9 +4922,9 @@ Ka.exports;
4922
4922
  "parseInt",
4923
4923
  "setTimeout"
4924
4924
  ], Kp = -1, Nt = {};
4925
- Nt[Yr] = Nt[Zr] = Nt[Ji] = Nt[Er] = Nt[Rn] = Nt[Fn] = Nt[Un] = Nt[kn] = Nt[qn] = !0, Nt[Zi] = Nt[Gr] = Nt[Qi] = Nt[Te] = Nt[wi] = Nt[St] = Nt[bi] = Nt[hi] = Nt[Qt] = Nt[Xe] = Nt[Jt] = Nt[ci] = Nt[Mt] = Nt[vr] = Nt[xr] = !1;
4925
+ Nt[Yr] = Nt[Zr] = Nt[Ji] = Nt[Er] = Nt[Rn] = Nt[Fn] = Nt[Un] = Nt[kn] = Nt[qn] = !0, Nt[Zi] = Nt[Gr] = Nt[Qi] = Nt[Te] = Nt[wi] = Nt[St] = Nt[bi] = Nt[hi] = Nt[Jt] = Nt[Xe] = Nt[jt] = Nt[ci] = Nt[Mt] = Nt[vr] = Nt[xr] = !1;
4926
4926
  var Dt = {};
4927
- Dt[Zi] = Dt[Gr] = Dt[Qi] = Dt[wi] = Dt[Te] = Dt[St] = Dt[Yr] = Dt[Zr] = Dt[Ji] = Dt[Er] = Dt[Rn] = Dt[Qt] = Dt[Xe] = Dt[Jt] = Dt[ci] = Dt[Mt] = Dt[vr] = Dt[Xr] = Dt[Fn] = Dt[Un] = Dt[kn] = Dt[qn] = !0, Dt[bi] = Dt[hi] = Dt[xr] = !1;
4927
+ Dt[Zi] = Dt[Gr] = Dt[Qi] = Dt[wi] = Dt[Te] = Dt[St] = Dt[Yr] = Dt[Zr] = Dt[Ji] = Dt[Er] = Dt[Rn] = Dt[Jt] = Dt[Xe] = Dt[jt] = Dt[ci] = Dt[Mt] = Dt[vr] = Dt[Xr] = Dt[Fn] = Dt[Un] = Dt[kn] = Dt[qn] = !0, Dt[bi] = Dt[hi] = Dt[xr] = !1;
4928
4928
  var Qp = {
4929
4929
  // Latin-1 Supplement block.
4930
4930
  À: "A",
@@ -5137,91 +5137,91 @@ Ka.exports;
5137
5137
  "\r": "r",
5138
5138
  "\u2028": "u2028",
5139
5139
  "\u2029": "u2029"
5140
- }, ed = parseFloat, id = parseInt, Cl = typeof ds == "object" && ds && ds.Object === Object && ds, rd = typeof self == "object" && self && self.Object === Object && self, jt = Cl || rd || Function("return this")(), wu = t && !t.nodeType && t, _r = wu && !0 && n && !n.nodeType && n, Sl = _r && _r.exports === wu, Tu = Sl && Cl.process, Ue = function() {
5140
+ }, ed = parseFloat, id = parseInt, Cl = typeof ds == "object" && ds && ds.Object === Object && ds, rd = typeof self == "object" && self && self.Object === Object && self, te = Cl || rd || Function("return this")(), wu = t && !t.nodeType && t, _r = wu && !0 && n && !n.nodeType && n, Sl = _r && _r.exports === wu, Tu = Sl && Cl.process, Ue = function() {
5141
5141
  try {
5142
5142
  var C = _r && _r.require && _r.require("util").types;
5143
5143
  return C || Tu && Tu.binding && Tu.binding("util");
5144
5144
  } catch {
5145
5145
  }
5146
5146
  }(), Dl = Ue && Ue.isArrayBuffer, Nl = Ue && Ue.isDate, Ol = Ue && Ue.isMap, Ml = Ue && Ue.isRegExp, Bl = Ue && Ue.isSet, Il = Ue && Ue.isTypedArray;
5147
- function Ce(C, R, M) {
5147
+ function Ce(C, L, M) {
5148
5148
  switch (M.length) {
5149
5149
  case 0:
5150
- return C.call(R);
5150
+ return C.call(L);
5151
5151
  case 1:
5152
- return C.call(R, M[0]);
5152
+ return C.call(L, M[0]);
5153
5153
  case 2:
5154
- return C.call(R, M[0], M[1]);
5154
+ return C.call(L, M[0], M[1]);
5155
5155
  case 3:
5156
- return C.call(R, M[0], M[1], M[2]);
5156
+ return C.call(L, M[0], M[1], M[2]);
5157
5157
  }
5158
- return C.apply(R, M);
5158
+ return C.apply(L, M);
5159
5159
  }
5160
- function nd(C, R, M, Q) {
5160
+ function nd(C, L, M, Q) {
5161
5161
  for (var st = -1, vt = C == null ? 0 : C.length; ++st < vt; ) {
5162
- var zt = C[st];
5163
- R(Q, zt, M(zt), C);
5162
+ var Vt = C[st];
5163
+ L(Q, Vt, M(Vt), C);
5164
5164
  }
5165
5165
  return Q;
5166
5166
  }
5167
- function ke(C, R) {
5168
- for (var M = -1, Q = C == null ? 0 : C.length; ++M < Q && R(C[M], M, C) !== !1; )
5167
+ function ke(C, L) {
5168
+ for (var M = -1, Q = C == null ? 0 : C.length; ++M < Q && L(C[M], M, C) !== !1; )
5169
5169
  ;
5170
5170
  return C;
5171
5171
  }
5172
- function sd(C, R) {
5173
- for (var M = C == null ? 0 : C.length; M-- && R(C[M], M, C) !== !1; )
5172
+ function sd(C, L) {
5173
+ for (var M = C == null ? 0 : C.length; M-- && L(C[M], M, C) !== !1; )
5174
5174
  ;
5175
5175
  return C;
5176
5176
  }
5177
- function Pl(C, R) {
5177
+ function Pl(C, L) {
5178
5178
  for (var M = -1, Q = C == null ? 0 : C.length; ++M < Q; )
5179
- if (!R(C[M], M, C))
5179
+ if (!L(C[M], M, C))
5180
5180
  return !1;
5181
5181
  return !0;
5182
5182
  }
5183
- function ir(C, R) {
5183
+ function ir(C, L) {
5184
5184
  for (var M = -1, Q = C == null ? 0 : C.length, st = 0, vt = []; ++M < Q; ) {
5185
- var zt = C[M];
5186
- R(zt, M, C) && (vt[st++] = zt);
5185
+ var Vt = C[M];
5186
+ L(Vt, M, C) && (vt[st++] = Vt);
5187
5187
  }
5188
5188
  return vt;
5189
5189
  }
5190
- function Qs(C, R) {
5190
+ function Qs(C, L) {
5191
5191
  var M = C == null ? 0 : C.length;
5192
- return !!M && sn(C, R, 0) > -1;
5192
+ return !!M && sn(C, L, 0) > -1;
5193
5193
  }
5194
- function _u(C, R, M) {
5194
+ function _u(C, L, M) {
5195
5195
  for (var Q = -1, st = C == null ? 0 : C.length; ++Q < st; )
5196
- if (M(R, C[Q]))
5196
+ if (M(L, C[Q]))
5197
5197
  return !0;
5198
5198
  return !1;
5199
5199
  }
5200
- function Bt(C, R) {
5200
+ function Bt(C, L) {
5201
5201
  for (var M = -1, Q = C == null ? 0 : C.length, st = Array(Q); ++M < Q; )
5202
- st[M] = R(C[M], M, C);
5202
+ st[M] = L(C[M], M, C);
5203
5203
  return st;
5204
5204
  }
5205
- function rr(C, R) {
5206
- for (var M = -1, Q = R.length, st = C.length; ++M < Q; )
5207
- C[st + M] = R[M];
5205
+ function rr(C, L) {
5206
+ for (var M = -1, Q = L.length, st = C.length; ++M < Q; )
5207
+ C[st + M] = L[M];
5208
5208
  return C;
5209
5209
  }
5210
- function Cu(C, R, M, Q) {
5210
+ function Cu(C, L, M, Q) {
5211
5211
  var st = -1, vt = C == null ? 0 : C.length;
5212
5212
  for (Q && vt && (M = C[++st]); ++st < vt; )
5213
- M = R(M, C[st], st, C);
5213
+ M = L(M, C[st], st, C);
5214
5214
  return M;
5215
5215
  }
5216
- function ad(C, R, M, Q) {
5216
+ function ad(C, L, M, Q) {
5217
5217
  var st = C == null ? 0 : C.length;
5218
5218
  for (Q && st && (M = C[--st]); st--; )
5219
- M = R(M, C[st], st, C);
5219
+ M = L(M, C[st], st, C);
5220
5220
  return M;
5221
5221
  }
5222
- function Su(C, R) {
5222
+ function Su(C, L) {
5223
5223
  for (var M = -1, Q = C == null ? 0 : C.length; ++M < Q; )
5224
- if (R(C[M], M, C))
5224
+ if (L(C[M], M, C))
5225
5225
  return !0;
5226
5226
  return !1;
5227
5227
  }
@@ -5232,110 +5232,110 @@ Ka.exports;
5232
5232
  function ld(C) {
5233
5233
  return C.match(vu) || [];
5234
5234
  }
5235
- function Ll(C, R, M) {
5235
+ function Ll(C, L, M) {
5236
5236
  var Q;
5237
- return M(C, function(st, vt, zt) {
5238
- if (R(st, vt, zt))
5237
+ return M(C, function(st, vt, Vt) {
5238
+ if (L(st, vt, Vt))
5239
5239
  return Q = vt, !1;
5240
5240
  }), Q;
5241
5241
  }
5242
- function Js(C, R, M, Q) {
5242
+ function Js(C, L, M, Q) {
5243
5243
  for (var st = C.length, vt = M + (Q ? 1 : -1); Q ? vt-- : ++vt < st; )
5244
- if (R(C[vt], vt, C))
5244
+ if (L(C[vt], vt, C))
5245
5245
  return vt;
5246
5246
  return -1;
5247
5247
  }
5248
- function sn(C, R, M) {
5249
- return R === R ? Ad(C, R, M) : Js(C, Rl, M);
5248
+ function sn(C, L, M) {
5249
+ return L === L ? Ad(C, L, M) : Js(C, Rl, M);
5250
5250
  }
5251
- function hd(C, R, M, Q) {
5251
+ function hd(C, L, M, Q) {
5252
5252
  for (var st = M - 1, vt = C.length; ++st < vt; )
5253
- if (Q(C[st], R))
5253
+ if (Q(C[st], L))
5254
5254
  return st;
5255
5255
  return -1;
5256
5256
  }
5257
5257
  function Rl(C) {
5258
5258
  return C !== C;
5259
5259
  }
5260
- function Fl(C, R) {
5260
+ function Fl(C, L) {
5261
5261
  var M = C == null ? 0 : C.length;
5262
- return M ? Ou(C, R) / M : $r;
5262
+ return M ? Ou(C, L) / M : $r;
5263
5263
  }
5264
5264
  function Du(C) {
5265
- return function(R) {
5266
- return R == null ? e : R[C];
5265
+ return function(L) {
5266
+ return L == null ? e : L[C];
5267
5267
  };
5268
5268
  }
5269
5269
  function Nu(C) {
5270
- return function(R) {
5271
- return C == null ? e : C[R];
5270
+ return function(L) {
5271
+ return C == null ? e : C[L];
5272
5272
  };
5273
5273
  }
5274
- function Ul(C, R, M, Q, st) {
5275
- return st(C, function(vt, zt, Tt) {
5276
- M = Q ? (Q = !1, vt) : R(M, vt, zt, Tt);
5274
+ function Ul(C, L, M, Q, st) {
5275
+ return st(C, function(vt, Vt, Tt) {
5276
+ M = Q ? (Q = !1, vt) : L(M, vt, Vt, Tt);
5277
5277
  }), M;
5278
5278
  }
5279
- function cd(C, R) {
5279
+ function cd(C, L) {
5280
5280
  var M = C.length;
5281
- for (C.sort(R); M--; )
5281
+ for (C.sort(L); M--; )
5282
5282
  C[M] = C[M].value;
5283
5283
  return C;
5284
5284
  }
5285
- function Ou(C, R) {
5285
+ function Ou(C, L) {
5286
5286
  for (var M, Q = -1, st = C.length; ++Q < st; ) {
5287
- var vt = R(C[Q]);
5287
+ var vt = L(C[Q]);
5288
5288
  vt !== e && (M = M === e ? vt : M + vt);
5289
5289
  }
5290
5290
  return M;
5291
5291
  }
5292
- function Mu(C, R) {
5292
+ function Mu(C, L) {
5293
5293
  for (var M = -1, Q = Array(C); ++M < C; )
5294
- Q[M] = R(M);
5294
+ Q[M] = L(M);
5295
5295
  return Q;
5296
5296
  }
5297
- function fd(C, R) {
5298
- return Bt(R, function(M) {
5297
+ function fd(C, L) {
5298
+ return Bt(L, function(M) {
5299
5299
  return [M, C[M]];
5300
5300
  });
5301
5301
  }
5302
5302
  function kl(C) {
5303
- return C && C.slice(0, Vl(C) + 1).replace($n, "");
5303
+ return C && C.slice(0, zl(C) + 1).replace($n, "");
5304
5304
  }
5305
5305
  function Se(C) {
5306
- return function(R) {
5307
- return C(R);
5306
+ return function(L) {
5307
+ return C(L);
5308
5308
  };
5309
5309
  }
5310
- function Bu(C, R) {
5311
- return Bt(R, function(M) {
5310
+ function Bu(C, L) {
5311
+ return Bt(L, function(M) {
5312
5312
  return C[M];
5313
5313
  });
5314
5314
  }
5315
- function Jn(C, R) {
5316
- return C.has(R);
5315
+ function Jn(C, L) {
5316
+ return C.has(L);
5317
5317
  }
5318
- function ql(C, R) {
5319
- for (var M = -1, Q = C.length; ++M < Q && sn(R, C[M], 0) > -1; )
5318
+ function ql(C, L) {
5319
+ for (var M = -1, Q = C.length; ++M < Q && sn(L, C[M], 0) > -1; )
5320
5320
  ;
5321
5321
  return M;
5322
5322
  }
5323
- function Hl(C, R) {
5324
- for (var M = C.length; M-- && sn(R, C[M], 0) > -1; )
5323
+ function Hl(C, L) {
5324
+ for (var M = C.length; M-- && sn(L, C[M], 0) > -1; )
5325
5325
  ;
5326
5326
  return M;
5327
5327
  }
5328
- function pd(C, R) {
5328
+ function pd(C, L) {
5329
5329
  for (var M = C.length, Q = 0; M--; )
5330
- C[M] === R && ++Q;
5330
+ C[M] === L && ++Q;
5331
5331
  return Q;
5332
5332
  }
5333
5333
  var dd = Nu(Qp), gd = Nu(Jp);
5334
5334
  function md(C) {
5335
5335
  return "\\" + td[C];
5336
5336
  }
5337
- function yd(C, R) {
5338
- return C == null ? e : C[R];
5337
+ function yd(C, L) {
5338
+ return C == null ? e : C[L];
5339
5339
  }
5340
5340
  function an(C) {
5341
5341
  return Xp.test(C);
@@ -5344,49 +5344,49 @@ Ka.exports;
5344
5344
  return Yp.test(C);
5345
5345
  }
5346
5346
  function xd(C) {
5347
- for (var R, M = []; !(R = C.next()).done; )
5348
- M.push(R.value);
5347
+ for (var L, M = []; !(L = C.next()).done; )
5348
+ M.push(L.value);
5349
5349
  return M;
5350
5350
  }
5351
5351
  function Iu(C) {
5352
- var R = -1, M = Array(C.size);
5352
+ var L = -1, M = Array(C.size);
5353
5353
  return C.forEach(function(Q, st) {
5354
- M[++R] = [st, Q];
5354
+ M[++L] = [st, Q];
5355
5355
  }), M;
5356
5356
  }
5357
- function Wl(C, R) {
5357
+ function Wl(C, L) {
5358
5358
  return function(M) {
5359
- return C(R(M));
5359
+ return C(L(M));
5360
5360
  };
5361
5361
  }
5362
- function nr(C, R) {
5362
+ function nr(C, L) {
5363
5363
  for (var M = -1, Q = C.length, st = 0, vt = []; ++M < Q; ) {
5364
- var zt = C[M];
5365
- (zt === R || zt === v) && (C[M] = v, vt[st++] = M);
5364
+ var Vt = C[M];
5365
+ (Vt === L || Vt === v) && (C[M] = v, vt[st++] = M);
5366
5366
  }
5367
5367
  return vt;
5368
5368
  }
5369
5369
  function js(C) {
5370
- var R = -1, M = Array(C.size);
5370
+ var L = -1, M = Array(C.size);
5371
5371
  return C.forEach(function(Q) {
5372
- M[++R] = Q;
5372
+ M[++L] = Q;
5373
5373
  }), M;
5374
5374
  }
5375
5375
  function Ed(C) {
5376
- var R = -1, M = Array(C.size);
5376
+ var L = -1, M = Array(C.size);
5377
5377
  return C.forEach(function(Q) {
5378
- M[++R] = [Q, Q];
5378
+ M[++L] = [Q, Q];
5379
5379
  }), M;
5380
5380
  }
5381
- function Ad(C, R, M) {
5381
+ function Ad(C, L, M) {
5382
5382
  for (var Q = M - 1, st = C.length; ++Q < st; )
5383
- if (C[Q] === R)
5383
+ if (C[Q] === L)
5384
5384
  return Q;
5385
5385
  return -1;
5386
5386
  }
5387
- function bd(C, R, M) {
5387
+ function bd(C, L, M) {
5388
5388
  for (var Q = M + 1; Q--; )
5389
- if (C[Q] === R)
5389
+ if (C[Q] === L)
5390
5390
  return Q;
5391
5391
  return Q;
5392
5392
  }
@@ -5396,16 +5396,16 @@ Ka.exports;
5396
5396
  function Ke(C) {
5397
5397
  return an(C) ? _d(C) : od(C);
5398
5398
  }
5399
- function Vl(C) {
5400
- for (var R = C.length; R-- && Vs.test(C.charAt(R)); )
5399
+ function zl(C) {
5400
+ for (var L = C.length; L-- && zs.test(C.charAt(L)); )
5401
5401
  ;
5402
- return R;
5402
+ return L;
5403
5403
  }
5404
5404
  var wd = Nu(jp);
5405
5405
  function Td(C) {
5406
- for (var R = bu.lastIndex = 0; bu.test(C); )
5407
- ++R;
5408
- return R;
5406
+ for (var L = bu.lastIndex = 0; bu.test(C); )
5407
+ ++L;
5408
+ return L;
5409
5409
  }
5410
5410
  function _d(C) {
5411
5411
  return C.match(bu) || [];
@@ -5413,20 +5413,20 @@ Ka.exports;
5413
5413
  function Cd(C) {
5414
5414
  return C.match(Gp) || [];
5415
5415
  }
5416
- var Sd = function C(R) {
5417
- R = R == null ? jt : on.defaults(jt.Object(), R, on.pick(jt, Zp));
5418
- var M = R.Array, Q = R.Date, st = R.Error, vt = R.Function, zt = R.Math, Tt = R.Object, Pu = R.RegExp, Dd = R.String, qe = R.TypeError, ta = M.prototype, Nd = vt.prototype, ln = Tt.prototype, ea = R["__core-js_shared__"], ia = Nd.toString, At = ln.hasOwnProperty, Od = 0, zl = function() {
5416
+ var Sd = function C(L) {
5417
+ L = L == null ? te : on.defaults(te.Object(), L, on.pick(te, Zp));
5418
+ var M = L.Array, Q = L.Date, st = L.Error, vt = L.Function, Vt = L.Math, Tt = L.Object, Pu = L.RegExp, Dd = L.String, qe = L.TypeError, ta = M.prototype, Nd = vt.prototype, ln = Tt.prototype, ea = L["__core-js_shared__"], ia = Nd.toString, At = ln.hasOwnProperty, Od = 0, Vl = function() {
5419
5419
  var r = /[^.]+$/.exec(ea && ea.keys && ea.keys.IE_PROTO || "");
5420
5420
  return r ? "Symbol(src)_1." + r : "";
5421
- }(), ra = ln.toString, Md = ia.call(Tt), Bd = jt._, Id = Pu(
5421
+ }(), ra = ln.toString, Md = ia.call(Tt), Bd = te._, Id = Pu(
5422
5422
  "^" + ia.call(At).replace(ji, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5423
- ), na = Sl ? R.Buffer : e, sr = R.Symbol, sa = R.Uint8Array, $l = na ? na.allocUnsafe : e, aa = Wl(Tt.getPrototypeOf, Tt), Gl = Tt.create, Xl = ln.propertyIsEnumerable, ua = ta.splice, Yl = sr ? sr.isConcatSpreadable : e, jn = sr ? sr.iterator : e, Cr = sr ? sr.toStringTag : e, oa = function() {
5423
+ ), na = Sl ? L.Buffer : e, sr = L.Symbol, sa = L.Uint8Array, $l = na ? na.allocUnsafe : e, aa = Wl(Tt.getPrototypeOf, Tt), Gl = Tt.create, Xl = ln.propertyIsEnumerable, ua = ta.splice, Yl = sr ? sr.isConcatSpreadable : e, jn = sr ? sr.iterator : e, Cr = sr ? sr.toStringTag : e, oa = function() {
5424
5424
  try {
5425
5425
  var r = Mr(Tt, "defineProperty");
5426
5426
  return r({}, "", {}), r;
5427
5427
  } catch {
5428
5428
  }
5429
- }(), Pd = R.clearTimeout !== jt.clearTimeout && R.clearTimeout, Ld = Q && Q.now !== jt.Date.now && Q.now, Rd = R.setTimeout !== jt.setTimeout && R.setTimeout, la = zt.ceil, ha = zt.floor, Lu = Tt.getOwnPropertySymbols, Fd = na ? na.isBuffer : e, Zl = R.isFinite, Ud = ta.join, kd = Wl(Tt.keys, Tt), $t = zt.max, re = zt.min, qd = Q.now, Hd = R.parseInt, Kl = zt.random, Wd = ta.reverse, Ru = Mr(R, "DataView"), ts = Mr(R, "Map"), Fu = Mr(R, "Promise"), hn = Mr(R, "Set"), es = Mr(R, "WeakMap"), is = Mr(Tt, "create"), ca = es && new es(), cn = {}, Vd = Br(Ru), zd = Br(ts), $d = Br(Fu), Gd = Br(hn), Xd = Br(es), fa = sr ? sr.prototype : e, rs = fa ? fa.valueOf : e, Ql = fa ? fa.toString : e;
5429
+ }(), Pd = L.clearTimeout !== te.clearTimeout && L.clearTimeout, Ld = Q && Q.now !== te.Date.now && Q.now, Rd = L.setTimeout !== te.setTimeout && L.setTimeout, la = Vt.ceil, ha = Vt.floor, Lu = Tt.getOwnPropertySymbols, Fd = na ? na.isBuffer : e, Zl = L.isFinite, Ud = ta.join, kd = Wl(Tt.keys, Tt), $t = Vt.max, re = Vt.min, qd = Q.now, Hd = L.parseInt, Kl = Vt.random, Wd = ta.reverse, Ru = Mr(L, "DataView"), ts = Mr(L, "Map"), Fu = Mr(L, "Promise"), hn = Mr(L, "Set"), es = Mr(L, "WeakMap"), is = Mr(Tt, "create"), ca = es && new es(), cn = {}, zd = Br(Ru), Vd = Br(ts), $d = Br(Fu), Gd = Br(hn), Xd = Br(es), fa = sr ? sr.prototype : e, rs = fa ? fa.valueOf : e, Ql = fa ? fa.toString : e;
5430
5430
  function m(r) {
5431
5431
  if (Rt(r) && !at(r) && !(r instanceof pt)) {
5432
5432
  if (r instanceof He)
@@ -5475,7 +5475,7 @@ Ka.exports;
5475
5475
  * @memberOf _.templateSettings
5476
5476
  * @type {RegExp}
5477
5477
  */
5478
- interpolate: zn,
5478
+ interpolate: Vn,
5479
5479
  /**
5480
5480
  * Used to reference the data object in the template text.
5481
5481
  *
@@ -5740,8 +5740,8 @@ Ka.exports;
5740
5740
  var q = ne(r), G = q == hi || q == Ki;
5741
5741
  if (hr(r))
5742
5742
  return Th(r, _);
5743
- if (q == Jt || q == Zi || G && !p) {
5744
- if (b = N || G ? {} : Vh(r), !_)
5743
+ if (q == jt || q == Zi || G && !p) {
5744
+ if (b = N || G ? {} : zh(r), !_)
5745
5745
  return N ? j0(r, b0(b, r)) : J0(r, th(b, r));
5746
5746
  } else {
5747
5747
  if (!Dt[q])
@@ -5831,11 +5831,11 @@ Ka.exports;
5831
5831
  s(h, p, y) && o.push(h);
5832
5832
  }), o;
5833
5833
  }
5834
- function te(r, s, o, h, p) {
5834
+ function ee(r, s, o, h, p) {
5835
5835
  var y = -1, b = r.length;
5836
5836
  for (o || (o = pg), p || (p = []); ++y < b; ) {
5837
5837
  var _ = r[y];
5838
- s > 0 && o(_) ? s > 1 ? te(_, s - 1, o, h, p) : rr(p, _) : h || (p[p.length] = _);
5838
+ s > 0 && o(_) ? s > 1 ? ee(_, s - 1, o, h, p) : rr(p, _) : h || (p[p.length] = _);
5839
5839
  }
5840
5840
  return p;
5841
5841
  }
@@ -5876,7 +5876,7 @@ Ka.exports;
5876
5876
  function D0(r, s, o) {
5877
5877
  return r >= re(s, o) && r < $t(s, o);
5878
5878
  }
5879
- function Vu(r, s, o) {
5879
+ function zu(r, s, o) {
5880
5880
  for (var h = o ? _u : Qs, p = r[0].length, y = r.length, b = y, _ = M(y), N = 1 / 0, F = []; b--; ) {
5881
5881
  var U = r[b];
5882
5882
  b && s && (U = Bt(U, Se(s))), N = re(U.length, N), _[b] = !o && (s || p >= 120 && U.length >= 120) ? new Dr(b && U) : e;
@@ -5904,7 +5904,7 @@ Ka.exports;
5904
5904
  }
5905
5905
  function as(r, s, o) {
5906
5906
  s = or(s, r), r = Xh(r, s);
5907
- var h = r == null ? r : r[gi(ze(s))];
5907
+ var h = r == null ? r : r[gi(Ve(s))];
5908
5908
  return h == null ? e : Ce(h, r, o);
5909
5909
  }
5910
5910
  function uh(r) {
@@ -5921,8 +5921,8 @@ Ka.exports;
5921
5921
  }
5922
5922
  function B0(r, s, o, h, p, y) {
5923
5923
  var b = at(r), _ = at(s), N = b ? Gr : ne(r), F = _ ? Gr : ne(s);
5924
- N = N == Zi ? Jt : N, F = F == Zi ? Jt : F;
5925
- var U = N == Jt, q = F == Jt, G = N == F;
5924
+ N = N == Zi ? jt : N, F = F == Zi ? jt : F;
5925
+ var U = N == jt, q = F == jt, G = N == F;
5926
5926
  if (G && hr(r)) {
5927
5927
  if (!hr(s))
5928
5928
  return !1;
@@ -5940,9 +5940,9 @@ Ka.exports;
5940
5940
  return G ? (y || (y = new Qe()), ag(r, s, o, h, p, y)) : !1;
5941
5941
  }
5942
5942
  function I0(r) {
5943
- return Rt(r) && ne(r) == Qt;
5943
+ return Rt(r) && ne(r) == Jt;
5944
5944
  }
5945
- function zu(r, s, o, h) {
5945
+ function Vu(r, s, o, h) {
5946
5946
  var p = o.length, y = p, b = !h;
5947
5947
  if (r == null)
5948
5948
  return !y;
@@ -6013,11 +6013,11 @@ Ka.exports;
6013
6013
  function ch(r) {
6014
6014
  var s = uo(r);
6015
6015
  return s.length == 1 && s[0][2] ? $h(s[0][0], s[0][1]) : function(o) {
6016
- return o === r || zu(o, r, s);
6016
+ return o === r || Vu(o, r, s);
6017
6017
  };
6018
6018
  }
6019
6019
  function fh(r, s) {
6020
- return lo(r) && zh(s) ? $h(gi(r), s) : function(o) {
6020
+ return lo(r) && Vh(s) ? $h(gi(r), s) : function(o) {
6021
6021
  var h = Eo(o, r);
6022
6022
  return h === e && h === s ? Ao(o, r) : us(s, h, I | S);
6023
6023
  };
@@ -6041,7 +6041,7 @@ Ka.exports;
6041
6041
  var U = y ? y(_, N, o + "", r, s, b) : e, q = U === e;
6042
6042
  if (q) {
6043
6043
  var G = at(N), j = !G && hr(N), it = !G && !j && mn(N);
6044
- U = N, G || j || it ? at(_) ? U = _ : Ut(_) ? U = de(_) : j ? (q = !1, U = Th(N, !0)) : it ? (q = !1, U = _h(N, !0)) : U = [] : fs(N) || Ir(N) ? (U = _, Ir(_) ? U = Ac(_) : (!Lt(_) || Ii(_)) && (U = Vh(N))) : q = !1;
6044
+ U = N, G || j || it ? at(_) ? U = _ : Ut(_) ? U = de(_) : j ? (q = !1, U = Th(N, !0)) : it ? (q = !1, U = _h(N, !0)) : U = [] : fs(N) || Ir(N) ? (U = _, Ir(_) ? U = Ac(_) : (!Lt(_) || Ii(_)) && (U = zh(N))) : q = !1;
6045
6045
  }
6046
6046
  q && (b.set(N, U), p(U, N, h, y, b), b.delete(N)), Uu(r, o, U);
6047
6047
  }
@@ -6125,7 +6125,7 @@ Ka.exports;
6125
6125
  function W0(r) {
6126
6126
  return jl(yn(r));
6127
6127
  }
6128
- function V0(r, s) {
6128
+ function z0(r, s) {
6129
6129
  var o = yn(r);
6130
6130
  return Sa(o, Nr(s, 0, o.length));
6131
6131
  }
@@ -6147,7 +6147,7 @@ Ka.exports;
6147
6147
  }
6148
6148
  var yh = ca ? function(r, s) {
6149
6149
  return ca.set(r, s), r;
6150
- } : ye, z0 = oa ? function(r, s) {
6150
+ } : ye, V0 = oa ? function(r, s) {
6151
6151
  return oa(r, "toString", {
6152
6152
  configurable: !0,
6153
6153
  enumerable: !1,
@@ -6158,7 +6158,7 @@ Ka.exports;
6158
6158
  function $0(r) {
6159
6159
  return Sa(yn(r));
6160
6160
  }
6161
- function Ve(r, s, o) {
6161
+ function ze(r, s, o) {
6162
6162
  var h = -1, p = r.length;
6163
6163
  s < 0 && (s = -s > p ? 0 : p + s), o = o > p ? p : o, o < 0 && (o += p), p = s > o ? 0 : o - s >>> 0, s >>>= 0;
6164
6164
  for (var y = M(p); ++h < p; )
@@ -6243,7 +6243,7 @@ Ka.exports;
6243
6243
  return _;
6244
6244
  }
6245
6245
  function Qu(r, s) {
6246
- return s = or(s, r), r = Xh(r, s), r == null || delete r[gi(ze(s))];
6246
+ return s = or(s, r), r = Xh(r, s), r == null || delete r[gi(Ve(s))];
6247
6247
  }
6248
6248
  function Eh(r, s, o, h) {
6249
6249
  return os(r, s, o(Or(r, s)), h);
@@ -6251,7 +6251,7 @@ Ka.exports;
6251
6251
  function xa(r, s, o, h) {
6252
6252
  for (var p = r.length, y = h ? p : -1; (h ? y-- : ++y < p) && s(r[y], y, r); )
6253
6253
  ;
6254
- return o ? Ve(r, h ? 0 : y, h ? y + 1 : p) : Ve(r, h ? y + 1 : 0, h ? p : y);
6254
+ return o ? ze(r, h ? 0 : y, h ? y + 1 : p) : ze(r, h ? y + 1 : 0, h ? p : y);
6255
6255
  }
6256
6256
  function Ah(r, s) {
6257
6257
  var o = r;
@@ -6266,7 +6266,7 @@ Ka.exports;
6266
6266
  for (var p = -1, y = M(h); ++p < h; )
6267
6267
  for (var b = r[p], _ = -1; ++_ < h; )
6268
6268
  _ != p && (y[p] = ss(y[p] || b, r[_], s, o));
6269
- return ur(te(y, 1), s, o);
6269
+ return ur(ee(y, 1), s, o);
6270
6270
  }
6271
6271
  function bh(r, s, o) {
6272
6272
  for (var h = -1, p = r.length, y = s.length, b = {}; ++h < p; ) {
@@ -6287,10 +6287,10 @@ Ka.exports;
6287
6287
  var X0 = ht;
6288
6288
  function lr(r, s, o) {
6289
6289
  var h = r.length;
6290
- return o = o === e ? h : o, !s && o >= h ? r : Ve(r, s, o);
6290
+ return o = o === e ? h : o, !s && o >= h ? r : ze(r, s, o);
6291
6291
  }
6292
6292
  var wh = Pd || function(r) {
6293
- return jt.clearTimeout(r);
6293
+ return te.clearTimeout(r);
6294
6294
  };
6295
6295
  function Th(r, s) {
6296
6296
  if (s)
@@ -6418,7 +6418,7 @@ Ka.exports;
6418
6418
  function tg(r, s, o) {
6419
6419
  var h = s & D, p = ls(r);
6420
6420
  function y() {
6421
- var b = this && this !== jt && this instanceof y ? p : r;
6421
+ var b = this && this !== te && this instanceof y ? p : r;
6422
6422
  return b.apply(h ? o : this, arguments);
6423
6423
  }
6424
6424
  return y;
@@ -6432,7 +6432,7 @@ Ka.exports;
6432
6432
  }
6433
6433
  function dn(r) {
6434
6434
  return function(s) {
6435
- return Cu(Nc(Dc(s).replace(zp, "")), r, "");
6435
+ return Cu(Nc(Dc(s).replace(Vp, "")), r, "");
6436
6436
  };
6437
6437
  }
6438
6438
  function ls(r) {
@@ -6479,7 +6479,7 @@ Ka.exports;
6479
6479
  e,
6480
6480
  o - y
6481
6481
  );
6482
- var U = this && this !== jt && this instanceof p ? h : r;
6482
+ var U = this && this !== te && this instanceof p ? h : r;
6483
6483
  return Ce(U, this, b);
6484
6484
  }
6485
6485
  return p;
@@ -6523,7 +6523,7 @@ Ka.exports;
6523
6523
  });
6524
6524
  }
6525
6525
  function Aa(r, s, o, h, p, y, b, _, N, F) {
6526
- var U = s & tt, q = s & D, G = s & k, j = s & (W | X), it = s & V, lt = G ? e : ls(r);
6526
+ var U = s & tt, q = s & D, G = s & k, j = s & (W | X), it = s & z, lt = G ? e : ls(r);
6527
6527
  function rt() {
6528
6528
  for (var ft = arguments.length, dt = M(ft), Oe = ft; Oe--; )
6529
6529
  dt[Oe] = arguments[Oe];
@@ -6545,7 +6545,7 @@ Ka.exports;
6545
6545
  );
6546
6546
  }
6547
6547
  var je = q ? o : this, Li = G ? je[r] : r;
6548
- return ft = dt.length, _ ? dt = Ag(dt, _) : it && ft > 1 && dt.reverse(), U && N < ft && (dt.length = N), this && this !== jt && this instanceof rt && (Li = lt || ls(Li)), Li.apply(je, dt);
6548
+ return ft = dt.length, _ ? dt = Ag(dt, _) : it && ft > 1 && dt.reverse(), U && N < ft && (dt.length = N), this && this !== te && this instanceof rt && (Li = lt || ls(Li)), Li.apply(je, dt);
6549
6549
  }
6550
6550
  return rt;
6551
6551
  }
@@ -6588,7 +6588,7 @@ Ka.exports;
6588
6588
  function ig(r, s, o, h) {
6589
6589
  var p = s & D, y = ls(r);
6590
6590
  function b() {
6591
- for (var _ = -1, N = arguments.length, F = -1, U = h.length, q = M(U + N), G = this && this !== jt && this instanceof b ? y : r; ++F < U; )
6591
+ for (var _ = -1, N = arguments.length, F = -1, U = h.length, q = M(U + N), G = this && this !== te && this instanceof b ? y : r; ++F < U; )
6592
6592
  q[F] = h[F];
6593
6593
  for (; N--; )
6594
6594
  q[F++] = arguments[++_];
@@ -6608,7 +6608,7 @@ Ka.exports;
6608
6608
  }
6609
6609
  function Rh(r, s, o, h, p, y, b, _, N, F) {
6610
6610
  var U = s & W, q = U ? b : e, G = U ? e : b, j = U ? y : e, it = U ? e : y;
6611
- s |= U ? $ : K, s &= ~(U ? K : $), s & z || (s &= ~(D | k));
6611
+ s |= U ? $ : K, s &= ~(U ? K : $), s & V || (s &= ~(D | k));
6612
6612
  var lt = [
6613
6613
  r,
6614
6614
  s,
@@ -6624,7 +6624,7 @@ Ka.exports;
6624
6624
  return ho(r) && Yh(rt, lt), rt.placeholder = h, Zh(rt, r, s);
6625
6625
  }
6626
6626
  function ro(r) {
6627
- var s = zt[r];
6627
+ var s = Vt[r];
6628
6628
  return function(o, h) {
6629
6629
  if (o = $e(o), h = h == null ? 0 : re(ut(h), 292), h && Zl(o)) {
6630
6630
  var p = (xt(o) + "e").split("e"), y = s(p[0] + "e" + (+p[1] + h));
@@ -6639,7 +6639,7 @@ Ka.exports;
6639
6639
  function Fh(r) {
6640
6640
  return function(s) {
6641
6641
  var o = ne(s);
6642
- return o == Qt ? Iu(s) : o == Mt ? Ed(s) : fd(s, r(s));
6642
+ return o == Jt ? Iu(s) : o == Mt ? Ed(s) : fd(s, r(s));
6643
6643
  };
6644
6644
  }
6645
6645
  function Oi(r, s, o, h, p, y, b, _) {
@@ -6728,7 +6728,7 @@ Ka.exports;
6728
6728
  case ci:
6729
6729
  case vr:
6730
6730
  return r == s + "";
6731
- case Qt:
6731
+ case Jt:
6732
6732
  var _ = Iu;
6733
6733
  case Mt:
6734
6734
  var N = h & I;
@@ -6812,7 +6812,7 @@ Ka.exports;
6812
6812
  function uo(r) {
6813
6813
  for (var s = Xt(r), o = s.length; o--; ) {
6814
6814
  var h = s[o], p = r[h];
6815
- s[o] = [h, p, zh(p)];
6815
+ s[o] = [h, p, Vh(p)];
6816
6816
  }
6817
6817
  return s;
6818
6818
  }
@@ -6839,14 +6839,14 @@ Ka.exports;
6839
6839
  rr(s, oo(r)), r = aa(r);
6840
6840
  return s;
6841
6841
  } : So, ne = ue;
6842
- (Ru && ne(new Ru(new ArrayBuffer(1))) != wi || ts && ne(new ts()) != Qt || Fu && ne(Fu.resolve()) != Ln || hn && ne(new hn()) != Mt || es && ne(new es()) != xr) && (ne = function(r) {
6843
- var s = ue(r), o = s == Jt ? r.constructor : e, h = o ? Br(o) : "";
6842
+ (Ru && ne(new Ru(new ArrayBuffer(1))) != wi || ts && ne(new ts()) != Jt || Fu && ne(Fu.resolve()) != Ln || hn && ne(new hn()) != Mt || es && ne(new es()) != xr) && (ne = function(r) {
6843
+ var s = ue(r), o = s == jt ? r.constructor : e, h = o ? Br(o) : "";
6844
6844
  if (h)
6845
6845
  switch (h) {
6846
- case Vd:
6847
- return wi;
6848
6846
  case zd:
6849
- return Qt;
6847
+ return wi;
6848
+ case Vd:
6849
+ return Jt;
6850
6850
  case $d:
6851
6851
  return Ln;
6852
6852
  case Gd:
@@ -6878,7 +6878,7 @@ Ka.exports;
6878
6878
  }
6879
6879
  function lg(r) {
6880
6880
  var s = r.match(yu);
6881
- return s ? s[1].split(zs) : [];
6881
+ return s ? s[1].split(Vs) : [];
6882
6882
  }
6883
6883
  function Wh(r, s, o) {
6884
6884
  s = or(s, r);
@@ -6894,7 +6894,7 @@ Ka.exports;
6894
6894
  var s = r.length, o = new r.constructor(s);
6895
6895
  return s && typeof r[0] == "string" && At.call(r, "index") && (o.index = r.index, o.input = r.input), o;
6896
6896
  }
6897
- function Vh(r) {
6897
+ function zh(r) {
6898
6898
  return typeof r.constructor == "function" && !hs(r) ? fn(aa(r)) : {};
6899
6899
  }
6900
6900
  function cg(r, s, o) {
@@ -6917,7 +6917,7 @@ Ka.exports;
6917
6917
  case kn:
6918
6918
  case qn:
6919
6919
  return _h(r, o);
6920
- case Qt:
6920
+ case Jt:
6921
6921
  return new h();
6922
6922
  case Xe:
6923
6923
  case vr:
@@ -6972,14 +6972,14 @@ Ka.exports;
6972
6972
  return !!h && r === h[0];
6973
6973
  }
6974
6974
  function gg(r) {
6975
- return !!zl && zl in r;
6975
+ return !!Vl && Vl in r;
6976
6976
  }
6977
6977
  var mg = ea ? Ii : Do;
6978
6978
  function hs(r) {
6979
6979
  var s = r && r.constructor, o = typeof s == "function" && s.prototype || ln;
6980
6980
  return r === o;
6981
6981
  }
6982
- function zh(r) {
6982
+ function Vh(r) {
6983
6983
  return r === r && !Lt(r);
6984
6984
  }
6985
6985
  function $h(r, s) {
@@ -6997,7 +6997,7 @@ Ka.exports;
6997
6997
  var o = r[1], h = s[1], p = o | h, y = p < (D | k | tt), b = h == tt && o == W || h == tt && o == Z && r[7].length <= s[8] || h == (tt | Z) && s[7].length <= s[8] && o == W;
6998
6998
  if (!(y || b))
6999
6999
  return r;
7000
- h & D && (r[2] = s[2], p |= o & D ? 0 : z);
7000
+ h & D && (r[2] = s[2], p |= o & D ? 0 : V);
7001
7001
  var _ = s[3];
7002
7002
  if (_) {
7003
7003
  var N = r[3];
@@ -7026,7 +7026,7 @@ Ka.exports;
7026
7026
  };
7027
7027
  }
7028
7028
  function Xh(r, s) {
7029
- return s.length < 2 ? r : Or(r, Ve(s, 0, -1));
7029
+ return s.length < 2 ? r : Or(r, ze(s, 0, -1));
7030
7030
  }
7031
7031
  function Ag(r, s) {
7032
7032
  for (var o = r.length, h = re(s.length, o), p = de(r); h--; ) {
@@ -7040,8 +7040,8 @@ Ka.exports;
7040
7040
  return r[s];
7041
7041
  }
7042
7042
  var Yh = Kh(yh), cs = Rd || function(r, s) {
7043
- return jt.setTimeout(r, s);
7044
- }, fo = Kh(z0);
7043
+ return te.setTimeout(r, s);
7044
+ }, fo = Kh(V0);
7045
7045
  function Zh(r, s, o) {
7046
7046
  var h = s + "";
7047
7047
  return fo(r, fg(h, bg(lg(h), o)));
@@ -7109,7 +7109,7 @@ Ka.exports;
7109
7109
  if (!h || s < 1)
7110
7110
  return [];
7111
7111
  for (var p = 0, y = 0, b = M(la(h / s)); p < h; )
7112
- b[y++] = Ve(r, p, p += s);
7112
+ b[y++] = ze(r, p, p += s);
7113
7113
  return b;
7114
7114
  }
7115
7115
  function Tg(r) {
@@ -7125,24 +7125,24 @@ Ka.exports;
7125
7125
  return [];
7126
7126
  for (var s = M(r - 1), o = arguments[0], h = r; h--; )
7127
7127
  s[h - 1] = arguments[h];
7128
- return rr(at(o) ? de(o) : [o], te(s, 1));
7128
+ return rr(at(o) ? de(o) : [o], ee(s, 1));
7129
7129
  }
7130
7130
  var Cg = ht(function(r, s) {
7131
- return Ut(r) ? ss(r, te(s, 1, Ut, !0)) : [];
7131
+ return Ut(r) ? ss(r, ee(s, 1, Ut, !0)) : [];
7132
7132
  }), Sg = ht(function(r, s) {
7133
- var o = ze(s);
7134
- return Ut(o) && (o = e), Ut(r) ? ss(r, te(s, 1, Ut, !0), et(o, 2)) : [];
7133
+ var o = Ve(s);
7134
+ return Ut(o) && (o = e), Ut(r) ? ss(r, ee(s, 1, Ut, !0), et(o, 2)) : [];
7135
7135
  }), Dg = ht(function(r, s) {
7136
- var o = ze(s);
7137
- return Ut(o) && (o = e), Ut(r) ? ss(r, te(s, 1, Ut, !0), e, o) : [];
7136
+ var o = Ve(s);
7137
+ return Ut(o) && (o = e), Ut(r) ? ss(r, ee(s, 1, Ut, !0), e, o) : [];
7138
7138
  });
7139
7139
  function Ng(r, s, o) {
7140
7140
  var h = r == null ? 0 : r.length;
7141
- return h ? (s = o || s === e ? 1 : ut(s), Ve(r, s < 0 ? 0 : s, h)) : [];
7141
+ return h ? (s = o || s === e ? 1 : ut(s), ze(r, s < 0 ? 0 : s, h)) : [];
7142
7142
  }
7143
7143
  function Og(r, s, o) {
7144
7144
  var h = r == null ? 0 : r.length;
7145
- return h ? (s = o || s === e ? 1 : ut(s), s = h - s, Ve(r, 0, s < 0 ? 0 : s)) : [];
7145
+ return h ? (s = o || s === e ? 1 : ut(s), s = h - s, ze(r, 0, s < 0 ? 0 : s)) : [];
7146
7146
  }
7147
7147
  function Mg(r, s) {
7148
7148
  return r && r.length ? xa(r, et(s, 3), !0, !0) : [];
@@ -7170,15 +7170,15 @@ Ka.exports;
7170
7170
  }
7171
7171
  function ec(r) {
7172
7172
  var s = r == null ? 0 : r.length;
7173
- return s ? te(r, 1) : [];
7173
+ return s ? ee(r, 1) : [];
7174
7174
  }
7175
7175
  function Pg(r) {
7176
7176
  var s = r == null ? 0 : r.length;
7177
- return s ? te(r, Pt) : [];
7177
+ return s ? ee(r, Pt) : [];
7178
7178
  }
7179
7179
  function Lg(r, s) {
7180
7180
  var o = r == null ? 0 : r.length;
7181
- return o ? (s = s === e ? 1 : ut(s), te(r, s)) : [];
7181
+ return o ? (s = s === e ? 1 : ut(s), ee(r, s)) : [];
7182
7182
  }
7183
7183
  function Rg(r) {
7184
7184
  for (var s = -1, o = r == null ? 0 : r.length, h = {}; ++s < o; ) {
@@ -7199,33 +7199,33 @@ Ka.exports;
7199
7199
  }
7200
7200
  function Ug(r) {
7201
7201
  var s = r == null ? 0 : r.length;
7202
- return s ? Ve(r, 0, -1) : [];
7202
+ return s ? ze(r, 0, -1) : [];
7203
7203
  }
7204
7204
  var kg = ht(function(r) {
7205
7205
  var s = Bt(r, ju);
7206
- return s.length && s[0] === r[0] ? Vu(s) : [];
7206
+ return s.length && s[0] === r[0] ? zu(s) : [];
7207
7207
  }), qg = ht(function(r) {
7208
- var s = ze(r), o = Bt(r, ju);
7209
- return s === ze(o) ? s = e : o.pop(), o.length && o[0] === r[0] ? Vu(o, et(s, 2)) : [];
7208
+ var s = Ve(r), o = Bt(r, ju);
7209
+ return s === Ve(o) ? s = e : o.pop(), o.length && o[0] === r[0] ? zu(o, et(s, 2)) : [];
7210
7210
  }), Hg = ht(function(r) {
7211
- var s = ze(r), o = Bt(r, ju);
7212
- return s = typeof s == "function" ? s : e, s && o.pop(), o.length && o[0] === r[0] ? Vu(o, e, s) : [];
7211
+ var s = Ve(r), o = Bt(r, ju);
7212
+ return s = typeof s == "function" ? s : e, s && o.pop(), o.length && o[0] === r[0] ? zu(o, e, s) : [];
7213
7213
  });
7214
7214
  function Wg(r, s) {
7215
7215
  return r == null ? "" : Ud.call(r, s);
7216
7216
  }
7217
- function ze(r) {
7217
+ function Ve(r) {
7218
7218
  var s = r == null ? 0 : r.length;
7219
7219
  return s ? r[s - 1] : e;
7220
7220
  }
7221
- function Vg(r, s, o) {
7221
+ function zg(r, s, o) {
7222
7222
  var h = r == null ? 0 : r.length;
7223
7223
  if (!h)
7224
7224
  return -1;
7225
7225
  var p = h;
7226
7226
  return o !== e && (p = ut(o), p = p < 0 ? $t(h + p, 0) : re(p, h - 1)), s === s ? bd(r, s, p) : Js(r, Rl, p, !0);
7227
7227
  }
7228
- function zg(r, s) {
7228
+ function Vg(r, s) {
7229
7229
  return r && r.length ? ph(r, ut(s)) : e;
7230
7230
  }
7231
7231
  var $g = ht(rc);
@@ -7260,7 +7260,7 @@ Ka.exports;
7260
7260
  }
7261
7261
  function Kg(r, s, o) {
7262
7262
  var h = r == null ? 0 : r.length;
7263
- return h ? (o && typeof o != "number" && oe(r, s, o) ? (s = 0, o = h) : (s = s == null ? 0 : ut(s), o = o === e ? h : ut(o)), Ve(r, s, o)) : [];
7263
+ return h ? (o && typeof o != "number" && oe(r, s, o) ? (s = 0, o = h) : (s = s == null ? 0 : ut(s), o = o === e ? h : ut(o)), ze(r, s, o)) : [];
7264
7264
  }
7265
7265
  function Qg(r, s) {
7266
7266
  return va(r, s);
@@ -7300,14 +7300,14 @@ Ka.exports;
7300
7300
  }
7301
7301
  function s2(r) {
7302
7302
  var s = r == null ? 0 : r.length;
7303
- return s ? Ve(r, 1, s) : [];
7303
+ return s ? ze(r, 1, s) : [];
7304
7304
  }
7305
7305
  function a2(r, s, o) {
7306
- return r && r.length ? (s = o || s === e ? 1 : ut(s), Ve(r, 0, s < 0 ? 0 : s)) : [];
7306
+ return r && r.length ? (s = o || s === e ? 1 : ut(s), ze(r, 0, s < 0 ? 0 : s)) : [];
7307
7307
  }
7308
7308
  function u2(r, s, o) {
7309
7309
  var h = r == null ? 0 : r.length;
7310
- return h ? (s = o || s === e ? 1 : ut(s), s = h - s, Ve(r, s < 0 ? 0 : s, h)) : [];
7310
+ return h ? (s = o || s === e ? 1 : ut(s), s = h - s, ze(r, s < 0 ? 0 : s, h)) : [];
7311
7311
  }
7312
7312
  function o2(r, s) {
7313
7313
  return r && r.length ? xa(r, et(s, 3), !1, !0) : [];
@@ -7316,13 +7316,13 @@ Ka.exports;
7316
7316
  return r && r.length ? xa(r, et(s, 3)) : [];
7317
7317
  }
7318
7318
  var h2 = ht(function(r) {
7319
- return ur(te(r, 1, Ut, !0));
7319
+ return ur(ee(r, 1, Ut, !0));
7320
7320
  }), c2 = ht(function(r) {
7321
- var s = ze(r);
7322
- return Ut(s) && (s = e), ur(te(r, 1, Ut, !0), et(s, 2));
7321
+ var s = Ve(r);
7322
+ return Ut(s) && (s = e), ur(ee(r, 1, Ut, !0), et(s, 2));
7323
7323
  }), f2 = ht(function(r) {
7324
- var s = ze(r);
7325
- return s = typeof s == "function" ? s : e, ur(te(r, 1, Ut, !0), e, s);
7324
+ var s = Ve(r);
7325
+ return s = typeof s == "function" ? s : e, ur(ee(r, 1, Ut, !0), e, s);
7326
7326
  });
7327
7327
  function p2(r) {
7328
7328
  return r && r.length ? ur(r) : [];
@@ -7357,10 +7357,10 @@ Ka.exports;
7357
7357
  }), y2 = ht(function(r) {
7358
7358
  return Ju(ir(r, Ut));
7359
7359
  }), v2 = ht(function(r) {
7360
- var s = ze(r);
7360
+ var s = Ve(r);
7361
7361
  return Ut(s) && (s = e), Ju(ir(r, Ut), et(s, 2));
7362
7362
  }), x2 = ht(function(r) {
7363
- var s = ze(r);
7363
+ var s = Ve(r);
7364
7364
  return s = typeof s == "function" ? s : e, Ju(ir(r, Ut), e, s);
7365
7365
  }), E2 = ht(go);
7366
7366
  function A2(r, s) {
@@ -7446,13 +7446,13 @@ Ka.exports;
7446
7446
  }
7447
7447
  var R2 = Bh(jh), F2 = Bh(tc);
7448
7448
  function U2(r, s) {
7449
- return te(Na(r, s), 1);
7449
+ return ee(Na(r, s), 1);
7450
7450
  }
7451
7451
  function k2(r, s) {
7452
- return te(Na(r, s), Pt);
7452
+ return ee(Na(r, s), Pt);
7453
7453
  }
7454
7454
  function q2(r, s, o) {
7455
- return o = o === e ? 1 : ut(o), te(Na(r, s), o);
7455
+ return o = o === e ? 1 : ut(o), ee(Na(r, s), o);
7456
7456
  }
7457
7457
  function ac(r, s) {
7458
7458
  var o = at(r) ? ke : ar;
@@ -7470,12 +7470,12 @@ Ka.exports;
7470
7470
  var p = r.length;
7471
7471
  return o < 0 && (o = $t(p + o, 0)), Pa(r) ? o <= p && r.indexOf(s, o) > -1 : !!p && sn(r, s, o) > -1;
7472
7472
  }
7473
- var V2 = ht(function(r, s, o) {
7473
+ var z2 = ht(function(r, s, o) {
7474
7474
  var h = -1, p = typeof s == "function", y = ge(r) ? M(r.length) : [];
7475
7475
  return ar(r, function(b) {
7476
7476
  y[++h] = p ? Ce(s, b, o) : as(b, s, o);
7477
7477
  }), y;
7478
- }), z2 = Ea(function(r, s, o) {
7478
+ }), V2 = Ea(function(r, s, o) {
7479
7479
  Ni(r, o, s);
7480
7480
  });
7481
7481
  function Na(r, s) {
@@ -7508,7 +7508,7 @@ Ka.exports;
7508
7508
  }
7509
7509
  function Q2(r, s, o) {
7510
7510
  (o ? oe(r, s, o) : s === e) ? s = 1 : s = ut(s);
7511
- var h = at(r) ? x0 : V0;
7511
+ var h = at(r) ? x0 : z0;
7512
7512
  return h(r, s);
7513
7513
  }
7514
7514
  function J2(r) {
@@ -7521,7 +7521,7 @@ Ka.exports;
7521
7521
  if (ge(r))
7522
7522
  return Pa(r) ? un(r) : r.length;
7523
7523
  var s = ne(r);
7524
- return s == Qt || s == Mt ? r.size : $u(r).length;
7524
+ return s == Jt || s == Mt ? r.size : $u(r).length;
7525
7525
  }
7526
7526
  function tm(r, s, o) {
7527
7527
  var h = at(r) ? Su : G0;
@@ -7531,9 +7531,9 @@ Ka.exports;
7531
7531
  if (r == null)
7532
7532
  return [];
7533
7533
  var o = s.length;
7534
- return o > 1 && oe(r, s[0], s[1]) ? s = [] : o > 2 && oe(s[0], s[1], s[2]) && (s = [s[0]]), dh(r, te(s, 1), []);
7534
+ return o > 1 && oe(r, s[0], s[1]) ? s = [] : o > 2 && oe(s[0], s[1], s[2]) && (s = [s[0]]), dh(r, ee(s, 1), []);
7535
7535
  }), Oa = Ld || function() {
7536
- return jt.Date.now();
7536
+ return te.Date.now();
7537
7537
  };
7538
7538
  function im(r, s) {
7539
7539
  if (typeof s != "function")
@@ -7632,7 +7632,7 @@ Ka.exports;
7632
7632
  return ih(r, $e(s) || 0, o);
7633
7633
  });
7634
7634
  function sm(r) {
7635
- return Oi(r, V);
7635
+ return Oi(r, z);
7636
7636
  }
7637
7637
  function Ma(r, s) {
7638
7638
  if (typeof r != "function" || s != null && typeof s != "function")
@@ -7669,7 +7669,7 @@ Ka.exports;
7669
7669
  return lc(2, r);
7670
7670
  }
7671
7671
  var um = X0(function(r, s) {
7672
- s = s.length == 1 && at(s[0]) ? Bt(s[0], Se(et())) : Bt(te(s, 1), Se(et()));
7672
+ s = s.length == 1 && at(s[0]) ? Bt(s[0], Se(et())) : Bt(ee(s, 1), Se(et()));
7673
7673
  var o = s.length;
7674
7674
  return ht(function(h) {
7675
7675
  for (var p = -1, y = re(h.length, o); ++p < y; )
@@ -7764,7 +7764,7 @@ Ka.exports;
7764
7764
  if (ge(r) && (at(r) || typeof r == "string" || typeof r.splice == "function" || hr(r) || mn(r) || Ir(r)))
7765
7765
  return !r.length;
7766
7766
  var s = ne(r);
7767
- if (s == Qt || s == Mt)
7767
+ if (s == Jt || s == Mt)
7768
7768
  return !r.size;
7769
7769
  if (hs(r))
7770
7770
  return !$u(r).length;
@@ -7794,7 +7794,7 @@ Ka.exports;
7794
7794
  if (!Lt(r))
7795
7795
  return !1;
7796
7796
  var s = ue(r);
7797
- return s == hi || s == Ki || s == Kt || s == Ws;
7797
+ return s == hi || s == Ki || s == Qt || s == Ws;
7798
7798
  }
7799
7799
  function gc(r) {
7800
7800
  return typeof r == "number" && r == ut(r);
@@ -7811,10 +7811,10 @@ Ka.exports;
7811
7811
  }
7812
7812
  var mc = Ol ? Se(Ol) : I0;
7813
7813
  function Om(r, s) {
7814
- return r === s || zu(r, s, uo(s));
7814
+ return r === s || Vu(r, s, uo(s));
7815
7815
  }
7816
7816
  function Mm(r, s, o) {
7817
- return o = typeof o == "function" ? o : e, zu(r, s, uo(s), o);
7817
+ return o = typeof o == "function" ? o : e, Vu(r, s, uo(s), o);
7818
7818
  }
7819
7819
  function Bm(r) {
7820
7820
  return yc(r) && r != +r;
@@ -7834,7 +7834,7 @@ Ka.exports;
7834
7834
  return typeof r == "number" || Rt(r) && ue(r) == Xe;
7835
7835
  }
7836
7836
  function fs(r) {
7837
- if (!Rt(r) || ue(r) != Jt)
7837
+ if (!Rt(r) || ue(r) != jt)
7838
7838
  return !1;
7839
7839
  var s = aa(r);
7840
7840
  if (s === null)
@@ -7873,7 +7873,7 @@ Ka.exports;
7873
7873
  return Pa(r) ? Ke(r) : de(r);
7874
7874
  if (jn && r[jn])
7875
7875
  return xd(r[jn]());
7876
- var s = ne(r), o = s == Qt ? Iu : s == Mt ? js : yn;
7876
+ var s = ne(r), o = s == Jt ? Iu : s == Mt ? js : yn;
7877
7877
  return o(r);
7878
7878
  }
7879
7879
  function Pi(r) {
@@ -7916,7 +7916,7 @@ Ka.exports;
7916
7916
  function xt(r) {
7917
7917
  return r == null ? "" : De(r);
7918
7918
  }
7919
- var Vm = pn(function(r, s) {
7919
+ var zm = pn(function(r, s) {
7920
7920
  if (hs(s) || ge(s)) {
7921
7921
  di(s, Xt(s), r);
7922
7922
  return;
@@ -7927,7 +7927,7 @@ Ka.exports;
7927
7927
  di(s, me(s), r);
7928
7928
  }), La = pn(function(r, s, o, h) {
7929
7929
  di(s, me(s), r, h);
7930
- }), zm = pn(function(r, s, o, h) {
7930
+ }), Vm = pn(function(r, s, o, h) {
7931
7931
  di(s, Xt(s), r, h);
7932
7932
  }), $m = Mi(ku);
7933
7933
  function Gm(r, s) {
@@ -8164,7 +8164,7 @@ Ka.exports;
8164
8164
  var h = m.templateSettings;
8165
8165
  o && oe(r, s, o) && (s = e), r = xt(r), s = La({}, s, h, Uh);
8166
8166
  var p = La({}, s.imports, h.imports, Uh), y = Xt(p), b = Bu(p, y), _, N, F = 0, U = s.interpolate || Jr, q = "__p += '", G = Pu(
8167
- (s.escape || Jr).source + "|" + U.source + "|" + (U === zn ? Xs : Jr).source + "|" + (s.evaluate || Jr).source + "|$",
8167
+ (s.escape || Jr).source + "|" + U.source + "|" + (U === Vn ? Xs : Jr).source + "|" + (s.evaluate || Jr).source + "|$",
8168
8168
  "g"
8169
8169
  ), j = "//# sourceURL=" + (At.call(s, "sourceURL") ? (s.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Kp + "]") + `
8170
8170
  `;
@@ -8203,10 +8203,10 @@ function print() { __p += __j.call(arguments, '') }
8203
8203
  function W1(r) {
8204
8204
  return xt(r).toLowerCase();
8205
8205
  }
8206
- function V1(r) {
8206
+ function z1(r) {
8207
8207
  return xt(r).toUpperCase();
8208
8208
  }
8209
- function z1(r, s, o) {
8209
+ function V1(r, s, o) {
8210
8210
  if (r = xt(r), r && (o || s === e))
8211
8211
  return kl(r);
8212
8212
  if (!r || !(s = De(s)))
@@ -8216,7 +8216,7 @@ function print() { __p += __j.call(arguments, '') }
8216
8216
  }
8217
8217
  function $1(r, s, o) {
8218
8218
  if (r = xt(r), r && (o || s === e))
8219
- return r.slice(0, Vl(r) + 1);
8219
+ return r.slice(0, zl(r) + 1);
8220
8220
  if (!r || !(s = De(s)))
8221
8221
  return r;
8222
8222
  var h = Ke(r), p = Hl(h, Ke(s)) + 1;
@@ -8264,7 +8264,7 @@ function print() { __p += __j.call(arguments, '') }
8264
8264
  return N + h;
8265
8265
  }
8266
8266
  function Y1(r) {
8267
- return r = xt(r), r && Vn.test(r) ? r.replace(Hn, wd) : r;
8267
+ return r = xt(r), r && zn.test(r) ? r.replace(Hn, wd) : r;
8268
8268
  }
8269
8269
  var Z1 = dn(function(r, s, o) {
8270
8270
  return r + (o ? " " : "") + s.toUpperCase();
@@ -8347,7 +8347,7 @@ function print() { __p += __j.call(arguments, '') }
8347
8347
  }), r;
8348
8348
  }
8349
8349
  function ay() {
8350
- return jt._ === this && (jt._ = Bd), this;
8350
+ return te._ === this && (te._ = Bd), this;
8351
8351
  }
8352
8352
  function Co() {
8353
8353
  }
@@ -8431,7 +8431,7 @@ function print() { __p += __j.call(arguments, '') }
8431
8431
  function Py(r, s) {
8432
8432
  return r && r.length ? Ou(r, et(s, 2)) : 0;
8433
8433
  }
8434
- return m.after = im, m.ary = oc, m.assign = Vm, m.assignIn = bc, m.assignInWith = La, m.assignWith = zm, m.at = $m, m.before = lc, m.bind = mo, m.bindAll = K1, m.bindKey = hc, m.castArray = dm, m.chain = sc, m.chunk = wg, m.compact = Tg, m.concat = _g, m.cond = Q1, m.conforms = J1, m.constant = wo, m.countBy = I2, m.create = Gm, m.curry = cc, m.curryRight = fc, m.debounce = pc, m.defaults = Xm, m.defaultsDeep = Ym, m.defer = rm, m.delay = nm, m.difference = Cg, m.differenceBy = Sg, m.differenceWith = Dg, m.drop = Ng, m.dropRight = Og, m.dropRightWhile = Mg, m.dropWhile = Bg, m.fill = Ig, m.filter = L2, m.flatMap = U2, m.flatMapDeep = k2, m.flatMapDepth = q2, m.flatten = ec, m.flattenDeep = Pg, m.flattenDepth = Lg, m.flip = sm, m.flow = ty, m.flowRight = ey, m.fromPairs = Rg, m.functions = e1, m.functionsIn = i1, m.groupBy = H2, m.initial = Ug, m.intersection = kg, m.intersectionBy = qg, m.intersectionWith = Hg, m.invert = n1, m.invertBy = s1, m.invokeMap = V2, m.iteratee = To, m.keyBy = z2, m.keys = Xt, m.keysIn = me, m.map = Na, m.mapKeys = u1, m.mapValues = o1, m.matches = iy, m.matchesProperty = ry, m.memoize = Ma, m.merge = l1, m.mergeWith = wc, m.method = ny, m.methodOf = sy, m.mixin = _o, m.negate = Ba, m.nthArg = uy, m.omit = h1, m.omitBy = c1, m.once = am, m.orderBy = $2, m.over = oy, m.overArgs = um, m.overEvery = ly, m.overSome = hy, m.partial = yo, m.partialRight = dc, m.partition = G2, m.pick = f1, m.pickBy = Tc, m.property = Mc, m.propertyOf = cy, m.pull = $g, m.pullAll = rc, m.pullAllBy = Gg, m.pullAllWith = Xg, m.pullAt = Yg, m.range = fy, m.rangeRight = py, m.rearg = om, m.reject = Z2, m.remove = Zg, m.rest = lm, m.reverse = po, m.sampleSize = Q2, m.set = d1, m.setWith = g1, m.shuffle = J2, m.slice = Kg, m.sortBy = em, m.sortedUniq = r2, m.sortedUniqBy = n2, m.split = U1, m.spread = hm, m.tail = s2, m.take = a2, m.takeRight = u2, m.takeRightWhile = o2, m.takeWhile = l2, m.tap = T2, m.throttle = cm, m.thru = Da, m.toArray = xc, m.toPairs = _c, m.toPairsIn = Cc, m.toPath = vy, m.toPlainObject = Ac, m.transform = m1, m.unary = fm, m.union = h2, m.unionBy = c2, m.unionWith = f2, m.uniq = p2, m.uniqBy = d2, m.uniqWith = g2, m.unset = y1, m.unzip = go, m.unzipWith = nc, m.update = v1, m.updateWith = x1, m.values = yn, m.valuesIn = E1, m.without = m2, m.words = Nc, m.wrap = pm, m.xor = y2, m.xorBy = v2, m.xorWith = x2, m.zip = E2, m.zipObject = A2, m.zipObjectDeep = b2, m.zipWith = w2, m.entries = _c, m.entriesIn = Cc, m.extend = bc, m.extendWith = La, _o(m, m), m.add = Ey, m.attempt = Oc, m.camelCase = T1, m.capitalize = Sc, m.ceil = Ay, m.clamp = A1, m.clone = gm, m.cloneDeep = ym, m.cloneDeepWith = vm, m.cloneWith = mm, m.conformsTo = xm, m.deburr = Dc, m.defaultTo = j1, m.divide = by, m.endsWith = _1, m.eq = Je, m.escape = C1, m.escapeRegExp = S1, m.every = P2, m.find = R2, m.findIndex = jh, m.findKey = Zm, m.findLast = F2, m.findLastIndex = tc, m.findLastKey = Km, m.floor = wy, m.forEach = ac, m.forEachRight = uc, m.forIn = Qm, m.forInRight = Jm, m.forOwn = jm, m.forOwnRight = t1, m.get = Eo, m.gt = Em, m.gte = Am, m.has = r1, m.hasIn = Ao, m.head = ic, m.identity = ye, m.includes = W2, m.indexOf = Fg, m.inRange = b1, m.invoke = a1, m.isArguments = Ir, m.isArray = at, m.isArrayBuffer = bm, m.isArrayLike = ge, m.isArrayLikeObject = Ut, m.isBoolean = wm, m.isBuffer = hr, m.isDate = Tm, m.isElement = _m, m.isEmpty = Cm, m.isEqual = Sm, m.isEqualWith = Dm, m.isError = vo, m.isFinite = Nm, m.isFunction = Ii, m.isInteger = gc, m.isLength = Ia, m.isMap = mc, m.isMatch = Om, m.isMatchWith = Mm, m.isNaN = Bm, m.isNative = Im, m.isNil = Lm, m.isNull = Pm, m.isNumber = yc, m.isObject = Lt, m.isObjectLike = Rt, m.isPlainObject = fs, m.isRegExp = xo, m.isSafeInteger = Rm, m.isSet = vc, m.isString = Pa, m.isSymbol = Ne, m.isTypedArray = mn, m.isUndefined = Fm, m.isWeakMap = Um, m.isWeakSet = km, m.join = Wg, m.kebabCase = D1, m.last = ze, m.lastIndexOf = Vg, m.lowerCase = N1, m.lowerFirst = O1, m.lt = qm, m.lte = Hm, m.max = Ty, m.maxBy = _y, m.mean = Cy, m.meanBy = Sy, m.min = Dy, m.minBy = Ny, m.stubArray = So, m.stubFalse = Do, m.stubObject = dy, m.stubString = gy, m.stubTrue = my, m.multiply = Oy, m.nth = zg, m.noConflict = ay, m.noop = Co, m.now = Oa, m.pad = M1, m.padEnd = B1, m.padStart = I1, m.parseInt = P1, m.random = w1, m.reduce = X2, m.reduceRight = Y2, m.repeat = L1, m.replace = R1, m.result = p1, m.round = My, m.runInContext = C, m.sample = K2, m.size = j2, m.snakeCase = F1, m.some = tm, m.sortedIndex = Qg, m.sortedIndexBy = Jg, m.sortedIndexOf = jg, m.sortedLastIndex = t2, m.sortedLastIndexBy = e2, m.sortedLastIndexOf = i2, m.startCase = k1, m.startsWith = q1, m.subtract = By, m.sum = Iy, m.sumBy = Py, m.template = H1, m.times = yy, m.toFinite = Pi, m.toInteger = ut, m.toLength = Ec, m.toLower = W1, m.toNumber = $e, m.toSafeInteger = Wm, m.toString = xt, m.toUpper = V1, m.trim = z1, m.trimEnd = $1, m.trimStart = G1, m.truncate = X1, m.unescape = Y1, m.uniqueId = xy, m.upperCase = Z1, m.upperFirst = bo, m.each = ac, m.eachRight = uc, m.first = ic, _o(m, function() {
8434
+ return m.after = im, m.ary = oc, m.assign = zm, m.assignIn = bc, m.assignInWith = La, m.assignWith = Vm, m.at = $m, m.before = lc, m.bind = mo, m.bindAll = K1, m.bindKey = hc, m.castArray = dm, m.chain = sc, m.chunk = wg, m.compact = Tg, m.concat = _g, m.cond = Q1, m.conforms = J1, m.constant = wo, m.countBy = I2, m.create = Gm, m.curry = cc, m.curryRight = fc, m.debounce = pc, m.defaults = Xm, m.defaultsDeep = Ym, m.defer = rm, m.delay = nm, m.difference = Cg, m.differenceBy = Sg, m.differenceWith = Dg, m.drop = Ng, m.dropRight = Og, m.dropRightWhile = Mg, m.dropWhile = Bg, m.fill = Ig, m.filter = L2, m.flatMap = U2, m.flatMapDeep = k2, m.flatMapDepth = q2, m.flatten = ec, m.flattenDeep = Pg, m.flattenDepth = Lg, m.flip = sm, m.flow = ty, m.flowRight = ey, m.fromPairs = Rg, m.functions = e1, m.functionsIn = i1, m.groupBy = H2, m.initial = Ug, m.intersection = kg, m.intersectionBy = qg, m.intersectionWith = Hg, m.invert = n1, m.invertBy = s1, m.invokeMap = z2, m.iteratee = To, m.keyBy = V2, m.keys = Xt, m.keysIn = me, m.map = Na, m.mapKeys = u1, m.mapValues = o1, m.matches = iy, m.matchesProperty = ry, m.memoize = Ma, m.merge = l1, m.mergeWith = wc, m.method = ny, m.methodOf = sy, m.mixin = _o, m.negate = Ba, m.nthArg = uy, m.omit = h1, m.omitBy = c1, m.once = am, m.orderBy = $2, m.over = oy, m.overArgs = um, m.overEvery = ly, m.overSome = hy, m.partial = yo, m.partialRight = dc, m.partition = G2, m.pick = f1, m.pickBy = Tc, m.property = Mc, m.propertyOf = cy, m.pull = $g, m.pullAll = rc, m.pullAllBy = Gg, m.pullAllWith = Xg, m.pullAt = Yg, m.range = fy, m.rangeRight = py, m.rearg = om, m.reject = Z2, m.remove = Zg, m.rest = lm, m.reverse = po, m.sampleSize = Q2, m.set = d1, m.setWith = g1, m.shuffle = J2, m.slice = Kg, m.sortBy = em, m.sortedUniq = r2, m.sortedUniqBy = n2, m.split = U1, m.spread = hm, m.tail = s2, m.take = a2, m.takeRight = u2, m.takeRightWhile = o2, m.takeWhile = l2, m.tap = T2, m.throttle = cm, m.thru = Da, m.toArray = xc, m.toPairs = _c, m.toPairsIn = Cc, m.toPath = vy, m.toPlainObject = Ac, m.transform = m1, m.unary = fm, m.union = h2, m.unionBy = c2, m.unionWith = f2, m.uniq = p2, m.uniqBy = d2, m.uniqWith = g2, m.unset = y1, m.unzip = go, m.unzipWith = nc, m.update = v1, m.updateWith = x1, m.values = yn, m.valuesIn = E1, m.without = m2, m.words = Nc, m.wrap = pm, m.xor = y2, m.xorBy = v2, m.xorWith = x2, m.zip = E2, m.zipObject = A2, m.zipObjectDeep = b2, m.zipWith = w2, m.entries = _c, m.entriesIn = Cc, m.extend = bc, m.extendWith = La, _o(m, m), m.add = Ey, m.attempt = Oc, m.camelCase = T1, m.capitalize = Sc, m.ceil = Ay, m.clamp = A1, m.clone = gm, m.cloneDeep = ym, m.cloneDeepWith = vm, m.cloneWith = mm, m.conformsTo = xm, m.deburr = Dc, m.defaultTo = j1, m.divide = by, m.endsWith = _1, m.eq = Je, m.escape = C1, m.escapeRegExp = S1, m.every = P2, m.find = R2, m.findIndex = jh, m.findKey = Zm, m.findLast = F2, m.findLastIndex = tc, m.findLastKey = Km, m.floor = wy, m.forEach = ac, m.forEachRight = uc, m.forIn = Qm, m.forInRight = Jm, m.forOwn = jm, m.forOwnRight = t1, m.get = Eo, m.gt = Em, m.gte = Am, m.has = r1, m.hasIn = Ao, m.head = ic, m.identity = ye, m.includes = W2, m.indexOf = Fg, m.inRange = b1, m.invoke = a1, m.isArguments = Ir, m.isArray = at, m.isArrayBuffer = bm, m.isArrayLike = ge, m.isArrayLikeObject = Ut, m.isBoolean = wm, m.isBuffer = hr, m.isDate = Tm, m.isElement = _m, m.isEmpty = Cm, m.isEqual = Sm, m.isEqualWith = Dm, m.isError = vo, m.isFinite = Nm, m.isFunction = Ii, m.isInteger = gc, m.isLength = Ia, m.isMap = mc, m.isMatch = Om, m.isMatchWith = Mm, m.isNaN = Bm, m.isNative = Im, m.isNil = Lm, m.isNull = Pm, m.isNumber = yc, m.isObject = Lt, m.isObjectLike = Rt, m.isPlainObject = fs, m.isRegExp = xo, m.isSafeInteger = Rm, m.isSet = vc, m.isString = Pa, m.isSymbol = Ne, m.isTypedArray = mn, m.isUndefined = Fm, m.isWeakMap = Um, m.isWeakSet = km, m.join = Wg, m.kebabCase = D1, m.last = Ve, m.lastIndexOf = zg, m.lowerCase = N1, m.lowerFirst = O1, m.lt = qm, m.lte = Hm, m.max = Ty, m.maxBy = _y, m.mean = Cy, m.meanBy = Sy, m.min = Dy, m.minBy = Ny, m.stubArray = So, m.stubFalse = Do, m.stubObject = dy, m.stubString = gy, m.stubTrue = my, m.multiply = Oy, m.nth = Vg, m.noConflict = ay, m.noop = Co, m.now = Oa, m.pad = M1, m.padEnd = B1, m.padStart = I1, m.parseInt = P1, m.random = w1, m.reduce = X2, m.reduceRight = Y2, m.repeat = L1, m.replace = R1, m.result = p1, m.round = My, m.runInContext = C, m.sample = K2, m.size = j2, m.snakeCase = F1, m.some = tm, m.sortedIndex = Qg, m.sortedIndexBy = Jg, m.sortedIndexOf = jg, m.sortedLastIndex = t2, m.sortedLastIndexBy = e2, m.sortedLastIndexOf = i2, m.startCase = k1, m.startsWith = q1, m.subtract = By, m.sum = Iy, m.sumBy = Py, m.template = H1, m.times = yy, m.toFinite = Pi, m.toInteger = ut, m.toLength = Ec, m.toLower = W1, m.toNumber = $e, m.toSafeInteger = Wm, m.toString = xt, m.toUpper = z1, m.trim = V1, m.trimEnd = $1, m.trimStart = G1, m.truncate = X1, m.unescape = Y1, m.uniqueId = xy, m.upperCase = Z1, m.upperFirst = bo, m.each = ac, m.eachRight = uc, m.first = ic, _o(m, function() {
8435
8435
  var r = {};
8436
8436
  return pi(m, function(s, o) {
8437
8437
  At.call(m.prototype, o) || (r[o] = s);
@@ -8527,16 +8527,16 @@ function print() { __p += __j.call(arguments, '') }
8527
8527
  func: e
8528
8528
  }], pt.prototype.clone = Yd, pt.prototype.reverse = Zd, pt.prototype.value = Kd, m.prototype.at = _2, m.prototype.chain = C2, m.prototype.commit = S2, m.prototype.next = D2, m.prototype.plant = O2, m.prototype.reverse = M2, m.prototype.toJSON = m.prototype.valueOf = m.prototype.value = B2, m.prototype.first = m.prototype.head, jn && (m.prototype[jn] = N2), m;
8529
8529
  }, on = Sd();
8530
- _r ? ((_r.exports = on)._ = on, wu._ = on) : jt._ = on;
8530
+ _r ? ((_r.exports = on)._ = on, wu._ = on) : te._ = on;
8531
8531
  }).call(ds);
8532
8532
  })(Ka, Ka.exports);
8533
8533
  var bv = Ka.exports;
8534
- const ct = /* @__PURE__ */ kf(bv), Pr = new L();
8534
+ const ct = /* @__PURE__ */ kf(bv), Pr = new R();
8535
8535
  class wt {
8536
8536
  isBox2 = !0;
8537
8537
  min;
8538
8538
  max;
8539
- constructor(t = new L(1 / 0, 1 / 0), e = new L(-1 / 0, -1 / 0)) {
8539
+ constructor(t = new R(1 / 0, 1 / 0), e = new R(-1 / 0, -1 / 0)) {
8540
8540
  this.min = t, this.max = e;
8541
8541
  }
8542
8542
  applyMatrix3(t) {
@@ -8677,7 +8677,7 @@ class wt {
8677
8677
  return this.applyMatrix3(t.projectionMatrixInverse).applyMatrix3(t.matrixWorld);
8678
8678
  }
8679
8679
  }
8680
- const bn = new wt(), xs = [new L(), new L(), new L(), new L()], pb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8680
+ const bn = new wt(), xs = [new R(), new R(), new R(), new R()], pb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8681
8681
  __proto__: null,
8682
8682
  default: wt
8683
8683
  }, Symbol.toStringTag, { value: "Module" })), wv = mt.window.requestAnimationFrame, Es = mt.window.performance ? () => mt.window.performance.now() : () => (/* @__PURE__ */ new Date()).getTime(), Zc = wv;
@@ -8844,7 +8844,7 @@ function Iv(n = 20) {
8844
8844
  return t += "┘", t;
8845
8845
  }
8846
8846
  var Pv = /* @__PURE__ */ ((n) => (n.GROS = "gros", n.RM = "rm", n.WS = "ws", n.SU = "su", n.EQ = "eq", n.FN = "fn", n.GL = "gl", n.IP = "ip", n))(Pv || {}), gl = /* @__PURE__ */ ((n) => (n.BACKGROUND = "background", n.ASSETS = "assets", n.ANNOTATIONS = "annotations", n.TEXT = "text", n.ASSET_LABELS = "asset-labels", n.LABELS = "labels", n))(gl || {});
8847
- class zr {
8847
+ class Vr {
8848
8848
  _listeners = /* @__PURE__ */ new Map();
8849
8849
  destroy() {
8850
8850
  this._listeners.clear();
@@ -8928,15 +8928,15 @@ function Rv(n) {
8928
8928
  }
8929
8929
  return e;
8930
8930
  }
8931
- const Fv = /(\[[^\]]+\])/g, Uv = /(#[^\s+>~.[:]+)/g, kv = /(\.[^\s+>~.[:]+)/g, qv = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, Hv = /(:[\w-]+\([^)]*\))/gi, Wv = /(:[^\s+>~.[:]+)/g, Vv = /([^\s+>~.[:]+)/g;
8931
+ const Fv = /(\[[^\]]+\])/g, Uv = /(#[^\s+>~.[:]+)/g, kv = /(\.[^\s+>~.[:]+)/g, qv = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, Hv = /(:[\w-]+\([^)]*\))/gi, Wv = /(:[^\s+>~.[:]+)/g, zv = /([^\s+>~.[:]+)/g;
8932
8932
  function Lr(n, t) {
8933
8933
  const e = t.exec(n);
8934
8934
  return e ? [n.replace(t, " "), e.length] : [n, 0];
8935
8935
  }
8936
- function zv(n) {
8936
+ function Vv(n) {
8937
8937
  const t = [0, 0, 0];
8938
8938
  let e = n.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), i = 0;
8939
- return [e, i] = Lr(e, Fv), t[1] += i, [e, i] = Lr(e, Uv), t[0] += i, [e, i] = Lr(e, kv), t[1] += i, [e, i] = Lr(e, qv), t[2] += i, [e, i] = Lr(e, Hv), t[1] += i, [e, i] = Lr(e, Wv), t[1] += i, e = e.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [e, i] = Lr(e, Vv), t[2] += i, t.join("");
8939
+ return [e, i] = Lr(e, Fv), t[1] += i, [e, i] = Lr(e, Uv), t[0] += i, [e, i] = Lr(e, kv), t[1] += i, [e, i] = Lr(e, qv), t[2] += i, [e, i] = Lr(e, Hv), t[1] += i, [e, i] = Lr(e, Wv), t[1] += i, e = e.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [e, i] = Lr(e, zv), t[2] += i, t.join("");
8940
8940
  }
8941
8941
  function $v(n) {
8942
8942
  return n.replace(/(?!\u3000)\s+/gm, " ").trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
@@ -8982,10 +8982,15 @@ class Zv {
8982
8982
  const t = this.container.getBoundingClientRect();
8983
8983
  this.params.width = t.width, this.params.height = t.height;
8984
8984
  }
8985
- this.params.width && (this.container.style.width = this.params.width + "px"), this.params.height && (this.container.style.height = this.params.height + "px"), this.container.style.overflow = "hidden", this.params.camera || (this.params.camera = {}), this.params.camera.width = this.params.width, this.params.camera.height = this.params.height, this.params.aspect = this.params.width / this.params.height, this.params.camera.aspect = this.params.aspect, this.params.camera.left = this.params.width * -0.5, this.params.camera.right = this.params.width * 0.5, this.params.camera.top = this.params.height * 0.5, this.params.camera.bottom = this.params.height * -0.5;
8985
+ this.container.style.overflow = "hidden", this.setSize(this.params.width, this.params.height);
8986
8986
  }
8987
- resize(t, e) {
8988
- this.container.style.width = t + "px", this.container.style.height = e + "px";
8987
+ resize() {
8988
+ var e, i;
8989
+ const t = (i = (e = this.container) == null ? void 0 : e.parentElement) == null ? void 0 : i.getBoundingClientRect();
8990
+ t && this.setSize(t.width, t.height);
8991
+ }
8992
+ setSize(t, e) {
8993
+ this.container.style.width = t + "px", this.container.style.height = e + "px", this.params.width = t, this.params.height = e, this.params.camera || (this.params.camera = {}), this.params.camera.width = this.params.width, this.params.camera.height = this.params.height, this.params.aspect = this.params.width / this.params.height, this.params.camera.aspect = this.params.aspect, this.params.camera.left = this.params.width * -0.5, this.params.camera.right = this.params.width * 0.5, this.params.camera.top = this.params.height * 0.5, this.params.camera.bottom = this.params.height * -0.5;
8989
8994
  }
8990
8995
  getSize(t) {
8991
8996
  return t.set(this.params.width, this.params.height);
@@ -9012,7 +9017,7 @@ class Zv {
9012
9017
  renderTexture(t) {
9013
9018
  }
9014
9019
  }
9015
- const Qc = new wt(), Jc = new L(), jc = new L();
9020
+ const Qc = new wt(), Jc = new R(), jc = new R();
9016
9021
  class Ot {
9017
9022
  isMatrix3 = !0;
9018
9023
  elements = [
@@ -9203,8 +9208,8 @@ class Ot {
9203
9208
  return this.multiplyMatrices(this, t);
9204
9209
  }
9205
9210
  multiplyMatrices(t, e) {
9206
- const i = t.elements, a = e.elements, u = this.elements, l = i[0], c = i[3], f = i[6], d = i[1], v = i[4], E = i[7], A = i[2], T = i[5], I = i[8], S = a[0], D = a[3], k = a[6], z = a[1], W = a[4], X = a[7], $ = a[2], K = a[5], tt = a[8];
9207
- return u[0] = l * S + c * z + f * $, u[3] = l * D + c * W + f * K, u[6] = l * k + c * X + f * tt, u[1] = d * S + v * z + E * $, u[4] = d * D + v * W + E * K, u[7] = d * k + v * X + E * tt, u[2] = A * S + T * z + I * $, u[5] = A * D + T * W + I * K, u[8] = A * k + T * X + I * tt, this;
9211
+ const i = t.elements, a = e.elements, u = this.elements, l = i[0], c = i[3], f = i[6], d = i[1], v = i[4], E = i[7], A = i[2], T = i[5], I = i[8], S = a[0], D = a[3], k = a[6], V = a[1], W = a[4], X = a[7], $ = a[2], K = a[5], tt = a[8];
9212
+ return u[0] = l * S + c * V + f * $, u[3] = l * D + c * W + f * K, u[6] = l * k + c * X + f * tt, u[1] = d * S + v * V + E * $, u[4] = d * D + v * W + E * K, u[7] = d * k + v * X + E * tt, u[2] = A * S + T * V + I * $, u[5] = A * D + T * W + I * K, u[8] = A * k + T * X + I * tt, this;
9208
9213
  }
9209
9214
  multiplyScalar(t) {
9210
9215
  const e = this.elements;
@@ -9273,13 +9278,13 @@ class Ot {
9273
9278
  return t[0] = e[0], t[1] = e[3], t[2] = e[6], t[3] = e[1], t[4] = e[4], t[5] = e[7], t[6] = e[2], t[7] = e[5], t[8] = e[8], this;
9274
9279
  }
9275
9280
  }
9276
- const Fi = /* @__PURE__ */ new L(), qa = /* @__PURE__ */ new Ot(), Ro = /* @__PURE__ */ new Ot(), Fo = /* @__PURE__ */ new Ot(), As = /* @__PURE__ */ new Ot(), Uo = /* @__PURE__ */ new Ot(), Kv = /* @__PURE__ */ new L(0, 0, 0), Qv = /* @__PURE__ */ new L(1, 1, 1), se = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"], ml = () => {
9281
+ const Fi = /* @__PURE__ */ new R(), qa = /* @__PURE__ */ new Ot(), Ro = /* @__PURE__ */ new Ot(), Fo = /* @__PURE__ */ new Ot(), As = /* @__PURE__ */ new Ot(), Uo = /* @__PURE__ */ new Ot(), Kv = /* @__PURE__ */ new R(0, 0, 0), Qv = /* @__PURE__ */ new R(1, 1, 1), se = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"], ml = () => {
9277
9282
  const n = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
9278
9283
  return (se[n & 255] + se[n >> 8 & 255] + se[n >> 16 & 255] + se[n >> 24 & 255] + "-" + se[t & 255] + se[t >> 8 & 255] + "-" + se[t >> 16 & 15 | 64] + se[t >> 24 & 255] + "-" + se[e & 63 | 128] + se[e >> 8 & 255] + "-" + se[e >> 16 & 255] + se[e >> 24 & 255] + se[i & 255] + se[i >> 8 & 255] + se[i >> 16 & 255] + se[i >> 24 & 255]).toLowerCase();
9279
9284
  };
9280
9285
  let Jv = 0;
9281
- const ko = new L(), ei = new Ot(), tf = new L(), qo = new wt(), bs = new L(), Ho = new L(), Rr = new L(), jv = new L(0, 1), tx = { type: "added" }, Wo = { type: "removed" };
9282
- class ru extends zr {
9286
+ const ko = new R(), ei = new Ot(), tf = new R(), qo = new wt(), bs = new R(), Ho = new R(), Rr = new R(), jv = new R(0, 1), tx = { type: "added" }, Wo = { type: "removed" };
9287
+ class ru extends Vr {
9283
9288
  isObject2 = !0;
9284
9289
  id = Jv++;
9285
9290
  uuid = ml();
@@ -9289,10 +9294,10 @@ class ru extends zr {
9289
9294
  version = 0;
9290
9295
  parent;
9291
9296
  children = [];
9292
- up = new L(0, 1);
9293
- position = new L();
9294
- rotation = new L();
9295
- scaled = new L(1, 1);
9297
+ up = new R(0, 1);
9298
+ position = new R();
9299
+ rotation = new R();
9300
+ scaled = new R(1, 1);
9296
9301
  flipY = !1;
9297
9302
  selectable = !1;
9298
9303
  matrix = new Ot();
@@ -9311,7 +9316,7 @@ class ru extends zr {
9311
9316
  boundingBox = new wt();
9312
9317
  boundingBoxWorld = new wt();
9313
9318
  boundingBoxNeedsUpdate = !1;
9314
- centerPoint = new L();
9319
+ centerPoint = new R();
9315
9320
  visible = !0;
9316
9321
  castShadow = !1;
9317
9322
  receiveShadow = !1;
@@ -9319,7 +9324,7 @@ class ru extends zr {
9319
9324
  animations = [];
9320
9325
  finalSize;
9321
9326
  userData = {};
9322
- DefaultUp = new L(0, 1);
9327
+ DefaultUp = new R(0, 1);
9323
9328
  _autoSort = !0;
9324
9329
  constructor(t = {}) {
9325
9330
  super(), t.name !== void 0 ? this.name = t.name : this.name = "Object2", t.flipY !== void 0 && (this.flipY = t.flipY), t.selectable !== void 0 && (this.selectable = t.selectable), t.finalSize !== void 0 && (this.finalSize = t.finalSize), this.setAttrs(t);
@@ -9521,7 +9526,7 @@ class ru extends zr {
9521
9526
  return this;
9522
9527
  }
9523
9528
  }
9524
- const ex = new L(), ef = new wt();
9529
+ const ex = new R(), ef = new wt();
9525
9530
  class ix extends ru {
9526
9531
  name = "Scene";
9527
9532
  type = "Scene";
@@ -9686,8 +9691,8 @@ class ax extends yp {
9686
9691
  let S = 0;
9687
9692
  const D = new ReadableStream({
9688
9693
  start(k) {
9689
- z();
9690
- function z() {
9694
+ V();
9695
+ function V() {
9691
9696
  E.read().then(({ done: W, value: X }) => {
9692
9697
  if (W)
9693
9698
  k.close();
@@ -9698,7 +9703,7 @@ class ax extends yp {
9698
9703
  const Z = v[K];
9699
9704
  Z.onProgress && Z.onProgress($);
9700
9705
  }
9701
- k.enqueue(X), z();
9706
+ k.enqueue(X), V();
9702
9707
  }
9703
9708
  });
9704
9709
  }
@@ -10198,7 +10203,7 @@ let Fx = class {
10198
10203
  inr: { regex: /&(inr|#8377);/g, val: "₹" },
10199
10204
  num_dec: { regex: /&#([0-9]{1,7});/g, val: (e, i) => String.fromCharCode(Number.parseInt(i, 10)) },
10200
10205
  num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (e, i) => String.fromCharCode(Number.parseInt(i, 16)) }
10201
- }, this.addExternalEntities = Ux, this.parseXml = Vx, this.parseTextData = kx, this.resolveNameSpace = qx, this.buildAttributesMap = Wx, this.isItStopNode = Xx, this.replaceEntitiesValue = $x, this.readStopNodeData = Zx, this.saveTextToParentTag = Gx, this.addChild = zx;
10206
+ }, this.addExternalEntities = Ux, this.parseXml = zx, this.parseTextData = kx, this.resolveNameSpace = qx, this.buildAttributesMap = Wx, this.isItStopNode = Xx, this.replaceEntitiesValue = $x, this.readStopNodeData = Zx, this.saveTextToParentTag = Gx, this.addChild = Vx;
10202
10207
  }
10203
10208
  };
10204
10209
  function Ux(n) {
@@ -10254,7 +10259,7 @@ function Wx(n, t, e) {
10254
10259
  return u;
10255
10260
  }
10256
10261
  }
10257
- const Vx = function(n) {
10262
+ const zx = function(n) {
10258
10263
  n = n.replace(/\r\n?/g, `
10259
10264
  `);
10260
10265
  const t = new Ts("!xml");
@@ -10332,7 +10337,7 @@ const Vx = function(n) {
10332
10337
  i += n[u];
10333
10338
  return t.child;
10334
10339
  };
10335
- function zx(n, t, e) {
10340
+ function Vx(n, t, e) {
10336
10341
  const i = this.options.updateTag(t.tagname, e, t[":@"]);
10337
10342
  i === !1 || (typeof i == "string" && (t.tagname = i), n.addChild(t));
10338
10343
  }
@@ -10774,7 +10779,7 @@ class Ai extends mt.window.Path2D {
10774
10779
  const e = t.length;
10775
10780
  for (let i = 0; i < e; i++)
10776
10781
  i ? this.lineTo(t[i].x, t[i].y) : this.moveTo(t[i].x, t[i].y);
10777
- return L.equals(t[0], t[e - 1]) || this.lineTo(t[0].x, t[0].y), this;
10782
+ return R.equals(t[0], t[e - 1]) || this.lineTo(t[0].x, t[0].y), this;
10778
10783
  }
10779
10784
  clone() {
10780
10785
  const t = this.constructor;
@@ -10942,9 +10947,9 @@ class il extends ru {
10942
10947
  var qs = {};
10943
10948
  const AE = "bold|bolder|lighter|[1-9]00", bE = "italic|oblique", wE = "small-caps", TE = "ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded", _E = "px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q", hf = `'([^']+)'|"([^"]+)"|[\\w\\s-]+`, CE = new RegExp(`(${AE}) +`, "i"), SE = new RegExp(`(${bE}) +`, "i"), DE = new RegExp(`(${wE}) +`, "i"), NE = new RegExp(`(${TE}) +`, "i"), OE = new RegExp(
10944
10949
  `([\\d\\.]+)(${_E}) *((?:${hf})( *, *(?:${hf}))*)`
10945
- ), Vo = {}, ME = 16;
10950
+ ), zo = {}, ME = 16;
10946
10951
  var BE = (n) => {
10947
- if (Vo[n]) return Vo[n];
10952
+ if (zo[n]) return zo[n];
10948
10953
  const t = OE.exec(n);
10949
10954
  if (!t) return;
10950
10955
  const e = {
@@ -10984,7 +10989,7 @@ var BE = (n) => {
10984
10989
  e.size *= 96 / 25.4 / 4;
10985
10990
  break;
10986
10991
  }
10987
- return Vo[n] = e;
10992
+ return zo[n] = e;
10988
10993
  };
10989
10994
  const IE = BE;
10990
10995
  qs.parseFont = IE;
@@ -11016,7 +11021,7 @@ qs.loadImage = function(n, t) {
11016
11021
  }, a.src = n;
11017
11022
  });
11018
11023
  };
11019
- class Vi {
11024
+ class zi {
11020
11025
  static cached = /* @__PURE__ */ new Map();
11021
11026
  static cachedCanvas = /* @__PURE__ */ new Map();
11022
11027
  static destroy() {
@@ -11083,7 +11088,7 @@ class Vi {
11083
11088
  const a = mt.window.document.createElement("canvas");
11084
11089
  return this.resizeCanvas(a, t, e, i), a;
11085
11090
  }
11086
- static measureText(t, e, i = new L()) {
11091
+ static measureText(t, e, i = new R()) {
11087
11092
  if (!t) throw new Error("input error");
11088
11093
  const u = this.get("measureText", 1, 1).getContext("2d");
11089
11094
  if (!u) throw new Error("bufferCtx not found");
@@ -11097,8 +11102,8 @@ class Vi {
11097
11102
  function cf(n) {
11098
11103
  return !!(n && n.constructor && n.call && n.apply);
11099
11104
  }
11100
- const PE = "children", LE = "get", RE = "set", zo = "Changed";
11101
- class El extends zr {
11105
+ const PE = "children", LE = "get", RE = "set", Vo = "Changed";
11106
+ class El extends Vr {
11102
11107
  name = "Node2";
11103
11108
  userData = {};
11104
11109
  _cache = /* @__PURE__ */ new Map();
@@ -11145,7 +11150,7 @@ class El extends zr {
11145
11150
  },
11146
11151
  set(e) {
11147
11152
  const i = this.userData[t];
11148
- this.userData[t] = e, i !== e && this.dispatchEvent({ type: t + zo, data: { oldVal: i, newVal: e } });
11153
+ this.userData[t] = e, i !== e && this.dispatchEvent({ type: t + Vo, data: { oldVal: i, newVal: e } });
11149
11154
  },
11150
11155
  enumerable: !0,
11151
11156
  configurable: !0
@@ -11154,36 +11159,36 @@ class El extends zr {
11154
11159
  }
11155
11160
  computed(t, e, i) {
11156
11161
  if (!this._attachedDepsListeners.get(t)) {
11157
- const a = e.map((u) => u + zo).join(",");
11162
+ const a = e.map((u) => u + Vo).join(",");
11158
11163
  this.addEventListeners(a, () => this._clearCache(t)), e.forEach((u) => this._setProperty(u)), this._attachedDepsListeners.set(t, !0);
11159
11164
  }
11160
11165
  return this._getCache(t, i);
11161
11166
  }
11162
11167
  watch(t, e) {
11163
11168
  (t || []).forEach((i) => {
11164
- this._setProperty(i), this.addEventListener(i + zo, e);
11169
+ this._setProperty(i), this.addEventListener(i + Vo, e);
11165
11170
  });
11166
11171
  }
11167
11172
  }
11168
- const ii = new L();
11173
+ const ii = new R();
11169
11174
  class FE extends El {
11170
11175
  isTexture = !0;
11171
11176
  isRenderTargetTexture = !1;
11172
11177
  type = "Texture";
11173
11178
  name = "Texture";
11174
11179
  uuid = ml();
11175
- originSize = new L();
11176
- originCenter = new L();
11177
- size = new L();
11180
+ originSize = new R();
11181
+ originCenter = new R();
11182
+ size = new R();
11178
11183
  matrix = new Ot();
11179
11184
  matrixAutoUpdate = !0;
11180
11185
  userData = {};
11181
11186
  version = 0;
11182
11187
  _needsUpdate = !1;
11183
11188
  image;
11184
- offset = new L();
11185
- repeat = new L(1, 1);
11186
- center = new L();
11189
+ offset = new R();
11190
+ repeat = new R(1, 1);
11191
+ center = new R();
11187
11192
  rotate = 0;
11188
11193
  scale = 1;
11189
11194
  flipY = !0;
@@ -11203,7 +11208,7 @@ class FE extends El {
11203
11208
  return this.originSize.copy(t), this.originCenter.copy(e), this.updateFinalSize(i, a);
11204
11209
  }
11205
11210
  updateFinalSize(t, e) {
11206
- t && !L.isZero(t) && !L.isEmpty(t) ? ii.copy(t) : ii.copy(this.originSize), ii.maxXY(1, 1);
11211
+ t && !R.isZero(t) && !R.isEmpty(t) ? ii.copy(t) : ii.copy(this.originSize), ii.maxXY(1, 1);
11207
11212
  const i = Math.sqrt(ii.x * ii.x + ii.y * ii.y) / Math.sqrt(e.x * e.x + e.y * e.y);
11208
11213
  return i > 1 && ii.multiplyScalar(1 / i), this.scale = ii.length() / this.originSize.length(), this.repeat.multiplyScalar(this.originSize.length() / ii.length()), this.size.copy(ii), this.offset.copy(this.originSize).multiplyScalar(-0.5).add(this.originCenter), this.updateMatrix(), this;
11209
11214
  }
@@ -11221,13 +11226,13 @@ class FE extends El {
11221
11226
  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;
11222
11227
  }
11223
11228
  }
11224
- const ff = new L(10, 10), _s = new L(), Cs = new L(), ki = new L(), Fr = new L(), Ha = new L(), Ss = new L(), mi = new L(), qi = new L(), Wa = new wt();
11225
- class zi {
11229
+ const ff = new R(10, 10), _s = new R(), Cs = new R(), ki = new R(), Fr = new R(), Ha = new R(), Ss = new R(), mi = new R(), qi = new R(), Wa = new wt();
11230
+ class Vi {
11226
11231
  static cached = /* @__PURE__ */ new Map();
11227
11232
  static precisionOptimized = !0;
11228
11233
  static precisionOptimizeLevels = [0.5, 0.25, 1e-4];
11229
11234
  static initialized = !1;
11230
- static textureMaxSize = new L();
11235
+ static textureMaxSize = new R();
11231
11236
  static destroy() {
11232
11237
  Object.values(this.cached).forEach((t) => {
11233
11238
  t.destroy();
@@ -11268,7 +11273,7 @@ class zi {
11268
11273
  static getTextureByShape(t, e, i, a) {
11269
11274
  var l;
11270
11275
  const u = new FE();
11271
- if (this.setTextureMaxSize(), u.scale = 1, u.repeat.set(1, 1), u.rotate = 0, u.image = void 0, u.version = 0, e && !L.isZero(e) && !L.isEmpty(e))
11276
+ if (this.setTextureMaxSize(), u.scale = 1, u.repeat.set(1, 1), u.rotate = 0, u.image = void 0, u.version = 0, e && !R.isZero(e) && !R.isEmpty(e))
11272
11277
  _s.copy(e), t.alignCenter ? Cs.copy(t.centerPoint) : Cs.set(0, 0);
11273
11278
  else {
11274
11279
  if (t.isShape && ((l = t.geometry) != null && l.boundingBox)) Wa.copy(t.geometry.boundingBox);
@@ -11276,7 +11281,7 @@ class zi {
11276
11281
  else throw new Error("get boundingBox error");
11277
11282
  Wa.getSize(_s), t.alignCenter ? Cs.copy(t.centerPoint) : Wa.getCenter(Cs);
11278
11283
  }
11279
- return i && !L.isZero(i) && !L.isEmpty(i) ? ki.copy(i) : ki.copy(_s), (ki.x < ff.x || ki.y < ff.y) && ki.normalize().multiplyScalar(10).round(), mi.copy(this.getTextureMaxSize()), a && (Ss.set((a == null ? void 0 : a.shadowBlur) || 0, (a == null ? void 0 : a.shadowBlur) || 0), ki.add(Ss.clone().multiplyScalar(2)), _s.multiplyScalar(3), mi.multiplyScalar(0.3)), u.updateSize(_s, Cs, ki, mi), u;
11284
+ return i && !R.isZero(i) && !R.isEmpty(i) ? ki.copy(i) : ki.copy(_s), (ki.x < ff.x || ki.y < ff.y) && ki.normalize().multiplyScalar(10).round(), mi.copy(this.getTextureMaxSize()), a && (Ss.set((a == null ? void 0 : a.shadowBlur) || 0, (a == null ? void 0 : a.shadowBlur) || 0), ki.add(Ss.clone().multiplyScalar(2)), _s.multiplyScalar(3), mi.multiplyScalar(0.3)), u.updateSize(_s, Cs, ki, mi), u;
11280
11285
  }
11281
11286
  static setPrecisionOptimizeTextures(t, e, i, a, u) {
11282
11287
  if (!this.precisionOptimized) return;
@@ -11284,21 +11289,21 @@ class zi {
11284
11289
  for (let c = 0, f = this.precisionOptimizeLevels.length; c < f; c++) {
11285
11290
  mi.copy(i.size).multiplyScalar(this.precisionOptimizeLevels[c]);
11286
11291
  const d = this.getTextureByShape(e, a, mi, u);
11287
- this.renderShapeTexture(e, d, u), l = t + "_" + (c + 1), d.userData.textureKey = l, zi.set(l, d);
11292
+ this.renderShapeTexture(e, d, u), l = t + "_" + (c + 1), d.userData.textureKey = l, Vi.set(l, d);
11288
11293
  }
11289
11294
  }
11290
11295
  static renderShapeTexture(t, e, i) {
11291
11296
  i ? (Ss.set(i.shadowBlur || 0, i.shadowBlur || 0), Fr.copy(e.originSize).multiplyScalar(-0.5).sub(e.originCenter).multiplyScalar(e.scale), t.alignCenter ? Ha.copy(e.originSize).multiplyScalar(e.scale) : Ha.copy(e.originSize).add(Ss.clone().multiplyScalar(1)).multiplyScalar(e.scale)) : Fr.copy(e.offset).negate().multiplyScalar(e.scale);
11292
- const a = Vi.create(e.size.x, e.size.y), u = Vi.getContext2D(a, { alpha: !0 });
11297
+ const a = zi.create(e.size.x, e.size.y), u = zi.getContext2D(a, { alpha: !0 });
11293
11298
  u.clearRect(0, 0, a.width, a.height), u.translate(Fr.x, Fr.y), u.scale(e.scale, e.scale), i && (u.shadowColor = Ee.black, u.shadowOffsetX = Ha.x, u.shadowOffsetY = Ha.y, u.shadowBlur = Ss.x), t.render(u), e.image = a;
11294
11299
  }
11295
11300
  static setByShape(t, e, i, a) {
11296
11301
  const u = this.getTextureByShape(e, i, a);
11297
- return u.userData.textureKey = t, this.renderShapeTexture(e, u), zi.set(t, u), this.setPrecisionOptimizeTextures(t, e, u, i), u;
11302
+ return u.userData.textureKey = t, this.renderShapeTexture(e, u), Vi.set(t, u), this.setPrecisionOptimizeTextures(t, e, u, i), u;
11298
11303
  }
11299
11304
  static setShadowByShape(t, e, i) {
11300
11305
  const a = this.getTextureByShape(e, void 0, void 0, i);
11301
- return a.userData.textureKey = t, this.renderShapeTexture(e, a, i), zi.set(t, a), a;
11306
+ return a.userData.textureKey = t, this.renderShapeTexture(e, a, i), Vi.set(t, a), a;
11302
11307
  }
11303
11308
  static setPointsByShape(t, e) {
11304
11309
  var d, v, E, A, T;
@@ -11306,20 +11311,20 @@ class zi {
11306
11311
  e.isGroup ? e.traverse((I) => I.isShape ? i.push(...I.geometry.points) : void 0) : e.isShape && e.geometry.points ? i.push(...e.geometry.points) : e.boundingBox && i.push(e.boundingBox.min, e.boundingBox.max);
11307
11312
  const a = this.getTextureByShape(e), u = ((d = e.material) == null ? void 0 : d.lineWidth) * 2 || 3;
11308
11313
  qi.set(1, 1).multiplyScalar(u), a.size.copy(qi).multiplyScalar(a.scale).multiplyScalar(2).add(ki), a.offset.sub(qi), a.updateMatrix();
11309
- const l = Vi.create(a.size.x, a.size.y), c = Vi.getContext2D(l, { alpha: !0 });
11314
+ const l = zi.create(a.size.x, a.size.y), c = zi.getContext2D(l, { alpha: !0 });
11310
11315
  Fr.subVectors(a.originSize.clone().multiplyScalar(0.5), a.originCenter).add(qi), c.clearRect(0, 0, l.width, l.height), c.scale(a.scale, a.scale), c.translate(Fr.x, Fr.y);
11311
11316
  let f = Ee.black;
11312
11317
  e.material ? f = ((v = e.material) == null ? void 0 : v.stroke) || ((E = e.material) == null ? void 0 : E.fill) : e.isGroup && e.children.length && e.children[0].isShape && (f = ((A = e.children[0].material) == null ? void 0 : A.stroke) || ((T = e.children[0].material) == null ? void 0 : T.fill)), c.fillStyle = xe.getDarken(f);
11313
11318
  for (let I = 0, S = i.length || 0; I < S; I++)
11314
11319
  mi.copy(i[I]), c.moveTo(mi.x, mi.y), c.arc(mi.x, mi.y, qi.x, 0, Math.PI * 2);
11315
- return c.fill(), a.image = l, zi.set(t, a), a;
11320
+ return c.fill(), a.image = l, Vi.set(t, a), a;
11316
11321
  }
11317
11322
  static setWireframeByShape(t, e) {
11318
11323
  var c;
11319
11324
  const i = this.getTextureByShape(e);
11320
11325
  qi.set(1, 1).multiplyScalar(((c = e.material) == null ? void 0 : c.lineWidth) || 1), i.size.copy(qi).multiplyScalar(i.scale).multiplyScalar(2).add(ki), i.offset.sub(qi), i.updateMatrix();
11321
- const a = Vi.create(i.size.x, i.size.y), u = Vi.getContext2D(a, { alpha: !0 }), l = qi.x * i.scale * 5;
11322
- return u.clearRect(0, 0, a.width, a.height), u.strokeStyle = Ee.darkGray, u.lineWidth = l, u.setLineDash([l * 3, l]), u.strokeRect(0, 0, i.size.x, i.size.y), i.image = a, zi.set(t, i), i;
11326
+ const a = zi.create(i.size.x, i.size.y), u = zi.getContext2D(a, { alpha: !0 }), l = qi.x * i.scale * 5;
11327
+ return u.clearRect(0, 0, a.width, a.height), u.strokeStyle = Ee.darkGray, u.lineWidth = l, u.setLineDash([l * 3, l]), u.strokeRect(0, 0, i.size.x, i.size.y), i.image = a, Vi.set(t, i), i;
11323
11328
  }
11324
11329
  // debug
11325
11330
  static DEBUG_DisplayCachedTexture = ct.throttle((t = 80, e = 0.8) => {
@@ -11353,13 +11358,13 @@ function HE(n, t, e) {
11353
11358
  i = n.childNodes[a];
11354
11359
  break;
11355
11360
  }
11356
- i ? VE(i, e) : WE(n, t, e);
11361
+ i ? zE(i, e) : WE(n, t, e);
11357
11362
  }
11358
11363
  function WE(n, t, e) {
11359
11364
  if (!e.image) return;
11360
11365
  const i = mt.document.createElement("div");
11361
11366
  i.setAttribute("id", t), i.style.display = "flex", i.style.flexDirection = "column";
11362
- const a = Vi.createCanvas({
11367
+ const a = zi.createCanvas({
11363
11368
  containerId: n.id,
11364
11369
  width: e.image.width,
11365
11370
  height: e.image.height,
@@ -11377,7 +11382,7 @@ function WE(n, t, e) {
11377
11382
  }
11378
11383
  i.addEventListener("click", c);
11379
11384
  }
11380
- function VE(n, t) {
11385
+ function zE(n, t) {
11381
11386
  if (!t.image) return;
11382
11387
  const e = n.querySelector("canvas");
11383
11388
  if (!e) return;
@@ -11385,7 +11390,7 @@ function VE(n, t) {
11385
11390
  if (!i) throw new Error("getContext error");
11386
11391
  i.clearRect(0, 0, e.width, e.height), i.save(), i.scale(window.devicePixelRatio, window.devicePixelRatio), i.drawImage(t.image, 0, 0), i.restore();
11387
11392
  }
11388
- const zE = new wt(), Hi = new L(), wn = new Ot(), pf = new Ot(), $o = new Ot();
11393
+ const VE = new wt(), Hi = new R(), wn = new Ot(), pf = new Ot(), $o = new Ot();
11389
11394
  class Al extends ru {
11390
11395
  isShape = !0;
11391
11396
  type = "Shape";
@@ -11430,16 +11435,16 @@ class Al extends ru {
11430
11435
  computeBoundingBox() {
11431
11436
  if (this.centerPoint.set(0, 0), this.boundingBox.copy(this.geometry.computeBoundingBox()), !this.children || !this.children.length) return this.boundingBox;
11432
11437
  const t = [];
11433
- t.push(...L.getPointsApplyMatrix3(this.matrixWorld, this.geometry.getBoundingPoints()));
11438
+ t.push(...R.getPointsApplyMatrix3(this.matrixWorld, this.geometry.getBoundingPoints()));
11434
11439
  for (let e = 0, i = this.children.length; e < i; e++)
11435
- if (zE.copy(this.children[e].computeBoundingBox()), this.children[e].isShape && this.children[e].geometry.points) {
11440
+ if (VE.copy(this.children[e].computeBoundingBox()), this.children[e].isShape && this.children[e].geometry.points) {
11436
11441
  if (wn.copy(this.children[e].matrixWorld), this.children[e].isText) {
11437
11442
  const a = this.children[e].material.fontSize / 12 || 1;
11438
11443
  pf.makeScale(a, a).invert(), wn.multiply($o.copy(this.children[e].matrix).invert().premultiply(pf));
11439
11444
  }
11440
- this.children[e].alignCenter && (Hi.copy(this.children[e].centerPoint).negate(), $o.makeTranslation(Hi.x, Hi.y), wn.multiply($o)), t.push(...L.getPointsApplyMatrix3(wn, this.children[e].geometry.getBoundingPoints()));
11445
+ this.children[e].alignCenter && (Hi.copy(this.children[e].centerPoint).negate(), $o.makeTranslation(Hi.x, Hi.y), wn.multiply($o)), t.push(...R.getPointsApplyMatrix3(wn, this.children[e].geometry.getBoundingPoints()));
11441
11446
  }
11442
- return this.boundingBox.setFromPoints(L.getPointsApplyMatrix3(this.matrixWorldInverse, t)), this.alignCenter && this.boundingBox.getCenter(this.centerPoint), this.alignCenter && this.boundingBox.translate(Hi.copy(this.centerPoint).negate()), this.boundingBox.ceil(), this.boundingBox;
11447
+ return this.boundingBox.setFromPoints(R.getPointsApplyMatrix3(this.matrixWorldInverse, t)), this.alignCenter && this.boundingBox.getCenter(this.centerPoint), this.alignCenter && this.boundingBox.translate(Hi.copy(this.centerPoint).negate()), this.boundingBox.ceil(), this.boundingBox;
11443
11448
  }
11444
11449
  generateFeaturesKey() {
11445
11450
  return this.featureKey = (this.geometry.featureKey || "G") + "_" + (this.material.featureKey || "M"), this.featureKey;
@@ -11461,12 +11466,12 @@ class Al extends ru {
11461
11466
  /** @override */
11462
11467
  raycast(t, e = []) {
11463
11468
  var i;
11464
- return super.raycast(t, e), !this.selectable || !this.boundingBox || this.boundingBox.isEmpty() || !this.boundingBoxWorld.containsPoint(t.worldCoords) || (Hi.copy(t.worldCoords).applyMatrix3(wn.copy(this.matrixWorld).invert()), (i = this.geometry) != null && i.isPointInPath(Hi) && 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 || !zi.has(this.featureKey)) && zi.setByShape(this.featureKey, this), this.isPointInPathByTexture(t) && e.push(this))), e;
11469
+ return super.raycast(t, e), !this.selectable || !this.boundingBox || this.boundingBox.isEmpty() || !this.boundingBoxWorld.containsPoint(t.worldCoords) || (Hi.copy(t.worldCoords).applyMatrix3(wn.copy(this.matrixWorld).invert()), (i = this.geometry) != null && i.isPointInPath(Hi) && 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 || !Vi.has(this.featureKey)) && Vi.setByShape(this.featureKey, this), this.isPointInPathByTexture(t) && e.push(this))), e;
11465
11470
  }
11466
11471
  isPointInPathByTexture(t) {
11467
- const e = zi.get(this.featureKey);
11472
+ const e = Vi.get(this.featureKey);
11468
11473
  if (!e || !e.image) throw new Error("raycastByPixel error");
11469
- return Hi.copy(t.worldCoords).applyMatrix3(wn.copy(this.matrixWorld).multiply(e.matrix).invert()).round(), Vi.getContext2D(e.image, { alpha: !0 }).getImageData(Hi.x, Hi.y, 1, 1).data[3] > 0;
11474
+ return Hi.copy(t.worldCoords).applyMatrix3(wn.copy(this.matrixWorld).multiply(e.matrix).invert()).round(), zi.getContext2D(e.image, { alpha: !0 }).getImageData(Hi.x, Hi.y, 1, 1).data[3] > 0;
11470
11475
  }
11471
11476
  // selected & animations
11472
11477
  // getSelectedCopy(): IShape {
@@ -11642,7 +11647,7 @@ class ce {
11642
11647
  if (ce.hashStr("hello") !== "5d41402abc4b2a76b9719d911017c592")
11643
11648
  throw new Error("Md5 self test failed.");
11644
11649
  let $E = 0;
11645
- const Go = new L(), df = new L(), Tn = new Ot(), ri = new L(), Ge = new L(), ni = new L(), gf = new L(), mf = new L(), yf = new L(), Xo = ["m", "M", "l", "L", "v", "V", "h", "H", "z", "Z", "c", "C", "q", "Q", "t", "T", "s", "S", "a", "A"];
11650
+ const Go = new R(), df = new R(), Tn = new Ot(), ri = new R(), Ge = new R(), ni = new R(), gf = new R(), mf = new R(), yf = new R(), Xo = ["m", "M", "l", "L", "v", "V", "h", "H", "z", "Z", "c", "C", "q", "Q", "t", "T", "s", "S", "a", "A"];
11646
11651
  class Tp extends El {
11647
11652
  isGeometry = !0;
11648
11653
  id = $E++;
@@ -11660,9 +11665,9 @@ class Tp extends El {
11660
11665
  lineWidth = 0;
11661
11666
  padding;
11662
11667
  radius = 0;
11663
- position = new L();
11664
- rotation = new L();
11665
- scaled = new L(1, 1);
11668
+ position = new R();
11669
+ rotation = new R();
11670
+ scaled = new R(1, 1);
11666
11671
  animations = [];
11667
11672
  constructor(t = {}) {
11668
11673
  super(t), this.watch(["points", "lineWidth", "padding", "radius"], () => this.needsUpdate = !0);
@@ -11713,7 +11718,7 @@ class Tp extends El {
11713
11718
  for (T = T.slice(1), u.length = 0; d = f.exec(T); )
11714
11719
  u.push(d[0]);
11715
11720
  const S = [];
11716
- for (let k = 0, z = u.length; k < z; k++) {
11721
+ for (let k = 0, V = u.length; k < V; k++) {
11717
11722
  if (u[k] === "00") {
11718
11723
  S.push(0, 0);
11719
11724
  continue;
@@ -11723,14 +11728,14 @@ class Tp extends El {
11723
11728
  }
11724
11729
  let D = [];
11725
11730
  for (; S.length > 0 && !isNaN(S[0]); ) {
11726
- let k = l, z = c, W, X, $, K, tt, Z, V, J, nt;
11731
+ let k = l, V = c, W, X, $, K, tt, Z, z, J, nt;
11727
11732
  switch (I) {
11728
11733
  case "M":
11729
- k = l = S.shift() || 0, z = c = S.shift() || 0, e.moveTo(l, c);
11734
+ k = l = S.shift() || 0, V = c = S.shift() || 0, e.moveTo(l, c);
11730
11735
  break;
11731
11736
  case "m":
11732
11737
  let gt = S.shift() || 0, It = S.shift() || 0;
11733
- l += gt, c += It, v === "z" && (l = k + gt, c = z + It), e.moveTo(l, c);
11738
+ l += gt, c += It, v === "z" && (l = k + gt, c = V + It), e.moveTo(l, c);
11734
11739
  break;
11735
11740
  case "l":
11736
11741
  l += S.shift() || 0, c += S.shift() || 0, e.lineTo(l, c);
@@ -11775,10 +11780,10 @@ class Tp extends El {
11775
11780
  W = l, X = c, v === "Q" && (W = l + (l - D[0]), X = c + (c - D[1])), l += S.shift() || 0, c += S.shift() || 0, e.quadraticCurveTo(W, X, l, c);
11776
11781
  break;
11777
11782
  case "A":
11778
- $ = S.shift() || 0, K = S.shift() || 0, tt = S.shift() || 0, Z = S.shift() || 0, V = S.shift() || 0, J = l, nt = c, l = S.shift() || 0, c = S.shift() || 0, D = vf(J, nt, l, c, Z, V, $, K, tt), e.arc(D[0], D[1], D[2] > D[3] ? D[2] : D[3], D[4], D[4] + D[5]);
11783
+ $ = S.shift() || 0, K = S.shift() || 0, tt = S.shift() || 0, Z = S.shift() || 0, z = S.shift() || 0, J = l, nt = c, l = S.shift() || 0, c = S.shift() || 0, D = vf(J, nt, l, c, Z, z, $, K, tt), e.arc(D[0], D[1], D[2] > D[3] ? D[2] : D[3], D[4], D[4] + D[5]);
11779
11784
  break;
11780
11785
  case "a":
11781
- $ = S.shift() || 0, K = S.shift() || 0, tt = S.shift() || 0, Z = S.shift() || 0, V = S.shift() || 0, J = l, nt = c, l += S.shift() || 0, c += S.shift() || 0, D = vf(J, nt, l, c, Z, V, $, K, tt), e.arc(D[0], D[1], D[2] > D[3] ? D[2] : D[3], D[4], D[4] + D[5]);
11786
+ $ = S.shift() || 0, K = S.shift() || 0, tt = S.shift() || 0, Z = S.shift() || 0, z = S.shift() || 0, J = l, nt = c, l += S.shift() || 0, c += S.shift() || 0, D = vf(J, nt, l, c, Z, z, $, K, tt), e.arc(D[0], D[1], D[2] > D[3] ? D[2] : D[3], D[4], D[4] + D[5]);
11782
11787
  break;
11783
11788
  default:
11784
11789
  S.shift();
@@ -11796,7 +11801,7 @@ class Tp extends El {
11796
11801
  return this.points && (t = ct.cloneDeep(this.points)), this.boundingBox && this.boundingBox.validate() && !this.boundingBox.isEmpty() && t.push(this.boundingBox.min, this.boundingBox.max), t;
11797
11802
  }
11798
11803
  generateFeatureKey() {
11799
- !this.points || !this.points.length || (this.featureKey = ce.hashStr(L.getStrings(this.points)));
11804
+ !this.points || !this.points.length || (this.featureKey = ce.hashStr(R.getStrings(this.points)));
11800
11805
  }
11801
11806
  recomputePointsPath(t) {
11802
11807
  var e, i, a;
@@ -11816,7 +11821,7 @@ class Tp extends El {
11816
11821
  ri.copy(t);
11817
11822
  const i = this.path.getVertices2();
11818
11823
  for (let a = 0, u = i.length; a < u; a++) {
11819
- if (Ge.copy(i[a]), a === i.length - 1 ? ni.copy(i[0]) : ni.copy(i[a + 1]), L.isPointOnSegment(Ge, ni, ri)) return !0;
11824
+ if (Ge.copy(i[a]), a === i.length - 1 ? ni.copy(i[0]) : ni.copy(i[a + 1]), R.isPointOnSegment(Ge, ni, ri)) return !0;
11820
11825
  fr(Ge.y - ri.y) > 0 != fr(ni.y - ri.y) > 0 && fr(ri.x - (ri.y - Ge.y) * (Ge.x - ni.x) / (Ge.y - ni.y) - Ge.x) < 0 && (e = !e);
11821
11826
  }
11822
11827
  return e;
@@ -11827,7 +11832,7 @@ class Tp extends El {
11827
11832
  ri.copy(t);
11828
11833
  const i = this.path.getVertices2();
11829
11834
  for (let a = 0, u = i.length; a < u; a++) {
11830
- if (Ge.copy(i[a]), a === i.length - 1 ? ni.copy(i[0]) : ni.copy(i[a + 1]), L.isPointOnSegment(Ge, ni, ri)) return !0;
11835
+ if (Ge.copy(i[a]), a === i.length - 1 ? ni.copy(i[0]) : ni.copy(i[a + 1]), R.isPointOnSegment(Ge, ni, ri)) return !0;
11831
11836
  Go.subVectors(ni, Ge), df.subVectors(ri, Ge);
11832
11837
  let l = fr(Go.cross(df)), c = fr(Ge.y - ri.y), f = fr(ni.y - ri.y);
11833
11838
  l > 0 && c <= 0 && f > 0 && e--, l < 0 && c > 0 && f <= 0 && e++;
@@ -11849,12 +11854,12 @@ function vf(n, t, e, i, a, u, l, c, f) {
11849
11854
  (l * l * (c * c) - l * l * (E * E) - c * c * (v * v)) / (l * l * (E * E) + c * c * (v * v))
11850
11855
  );
11851
11856
  a === u && (T *= -1), isNaN(T) && (T = 0);
11852
- let I = T * l * E / c, S = T * -c * v / l, D = (n + e) / 2 + Math.cos(d) * I - Math.sin(d) * S, k = (t + i) / 2 + Math.sin(d) * I + Math.cos(d) * S, z = function(V) {
11853
- return Math.sqrt(V[0] * V[0] + V[1] * V[1]);
11854
- }, W = function(V, J) {
11855
- return (V[0] * J[0] + V[1] * J[1]) / (z(V) * z(J));
11856
- }, X = function(V, J) {
11857
- return (V[0] * J[1] < V[1] * J[0] ? -1 : 1) * Math.acos(W(V, J));
11857
+ let I = T * l * E / c, S = T * -c * v / l, D = (n + e) / 2 + Math.cos(d) * I - Math.sin(d) * S, k = (t + i) / 2 + Math.sin(d) * I + Math.cos(d) * S, V = function(z) {
11858
+ return Math.sqrt(z[0] * z[0] + z[1] * z[1]);
11859
+ }, W = function(z, J) {
11860
+ return (z[0] * J[0] + z[1] * J[1]) / (V(z) * V(J));
11861
+ }, X = function(z, J) {
11862
+ return (z[0] * J[1] < z[1] * J[0] ? -1 : 1) * Math.acos(W(z, J));
11858
11863
  }, $ = X([1, 0], [(v - I) / l, (E - S) / c]), K = [(v - I) / l, (E - S) / c], tt = [(-1 * v - I) / l, (-1 * E - S) / c], Z = X(K, tt);
11859
11864
  return W(K, tt) <= -1 && (Z = Math.PI), W(K, tt) >= 1 && (Z = 0), u === 0 && Z > 0 && (Z = Z - 2 * Math.PI), u === 1 && Z < 0 && (Z = Z + 2 * Math.PI), [D, k, l, c, $, Z, d, u];
11860
11865
  }
@@ -11924,7 +11929,7 @@ class bl extends El {
11924
11929
  return this.computed("hasStroke", ["stroke", "lineWidth"], () => !!this.stroke && !!this.lineWidth);
11925
11930
  }
11926
11931
  }
11927
- const Yo = new L();
11932
+ const Yo = new R();
11928
11933
  class XE extends Tp {
11929
11934
  isRectGeometry2D = !0;
11930
11935
  name = "RectGeometry2D";
@@ -12046,7 +12051,7 @@ class QE extends bl {
12046
12051
  class JE extends Al {
12047
12052
  isText = !0;
12048
12053
  type = "Text";
12049
- size = new L();
12054
+ size = new R();
12050
12055
  constructor(t = {}) {
12051
12056
  if (t.name === void 0 && (t.name = "Text"), t.fontSize === void 0 && (t.fontSize = 12), super(t), t.fixed && (this.fixed = !0), t.rotated !== void 0) {
12052
12057
  const a = Za(t.rotated);
@@ -12058,7 +12063,7 @@ class JE extends Al {
12058
12063
  /** @override */
12059
12064
  computeBoundingBox() {
12060
12065
  if (!this.material.text) return this.boundingBox;
12061
- Vi.measureText(this.material.text || "", this, this.size);
12066
+ zi.measureText(this.material.text || "", this, this.size);
12062
12067
  const t = [];
12063
12068
  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();
12064
12069
  }
@@ -12359,11 +12364,11 @@ class Ae {
12359
12364
  return !i || i === "" ? !1 : i.split(" ").some((u) => `.${u}` === t);
12360
12365
  }
12361
12366
  }
12362
- const Be = new Ot(), jE = new L(), yi = new L(), Af = new L(), bf = new L(), Va = {};
12367
+ const Be = new Ot(), jE = new R(), yi = new R(), Af = new R(), bf = new R(), za = {};
12363
12368
  class Sp extends Ae {
12364
12369
  type = "unknown";
12365
12370
  constructor(t, e) {
12366
- super(t, e), process.env.NODE_ENV !== "production" && (Va[e.nodeName] || (Va[e.nodeName] = 0), Va[e.nodeName] || console.error(`${e.nodeName} implemented not yet.`), Va[e.nodeName]++);
12371
+ super(t, e), process.env.NODE_ENV !== "production" && (za[e.nodeName] || (za[e.nodeName] = 0), za[e.nodeName] || console.error(`${e.nodeName} implemented not yet.`), za[e.nodeName]++);
12367
12372
  }
12368
12373
  }
12369
12374
  class tA extends Ae {
@@ -12386,7 +12391,7 @@ class eA extends Ae {
12386
12391
  d.forEach((T) => {
12387
12392
  const I = T.indexOf(":"), S = T.substr(0, I).trim(), D = T.substr(I + 1, T.length - I).trim();
12388
12393
  S && D && (A[S] = new ai(this.root, S, D));
12389
- }), this.root.styles[E] = A, this.root.stylesSpecificity[E] = zv(E);
12394
+ }), this.root.styles[E] = A, this.root.stylesSpecificity[E] = Vv(E);
12390
12395
  });
12391
12396
  });
12392
12397
  }
@@ -12403,7 +12408,7 @@ class rA extends Ae {
12403
12408
  super(t, e);
12404
12409
  }
12405
12410
  }
12406
- const Vt = " ";
12411
+ const zt = " ";
12407
12412
  function nA(n) {
12408
12413
  let t = "";
12409
12414
  Array.isArray(n) || (n = [n]);
@@ -12416,19 +12421,19 @@ function nA(n) {
12416
12421
  else if (i.type === P.VERT_LINE_TO)
12417
12422
  t += (i.relative ? "v" : "V") + i.y;
12418
12423
  else if (i.type === P.MOVE_TO)
12419
- t += (i.relative ? "m" : "M") + i.x + Vt + i.y;
12424
+ t += (i.relative ? "m" : "M") + i.x + zt + i.y;
12420
12425
  else if (i.type === P.LINE_TO)
12421
- t += (i.relative ? "l" : "L") + i.x + Vt + i.y;
12426
+ t += (i.relative ? "l" : "L") + i.x + zt + i.y;
12422
12427
  else if (i.type === P.CURVE_TO)
12423
- t += (i.relative ? "c" : "C") + i.x1 + Vt + i.y1 + Vt + i.x2 + Vt + i.y2 + Vt + i.x + Vt + i.y;
12428
+ t += (i.relative ? "c" : "C") + i.x1 + zt + i.y1 + zt + i.x2 + zt + i.y2 + zt + i.x + zt + i.y;
12424
12429
  else if (i.type === P.SMOOTH_CURVE_TO)
12425
- t += (i.relative ? "s" : "S") + i.x2 + Vt + i.y2 + Vt + i.x + Vt + i.y;
12430
+ t += (i.relative ? "s" : "S") + i.x2 + zt + i.y2 + zt + i.x + zt + i.y;
12426
12431
  else if (i.type === P.QUAD_TO)
12427
- t += (i.relative ? "q" : "Q") + i.x1 + Vt + i.y1 + Vt + i.x + Vt + i.y;
12432
+ t += (i.relative ? "q" : "Q") + i.x1 + zt + i.y1 + zt + i.x + zt + i.y;
12428
12433
  else if (i.type === P.SMOOTH_QUAD_TO)
12429
- t += (i.relative ? "t" : "T") + i.x + Vt + i.y;
12434
+ t += (i.relative ? "t" : "T") + i.x + zt + i.y;
12430
12435
  else if (i.type === P.ARC)
12431
- t += (i.relative ? "a" : "A") + i.rX + Vt + i.rY + Vt + i.xRot + Vt + +i.lArcFlag + Vt + +i.sweepFlag + Vt + i.x + Vt + i.y;
12436
+ t += (i.relative ? "a" : "A") + i.rX + zt + i.rY + zt + i.xRot + zt + +i.lArcFlag + zt + +i.sweepFlag + zt + i.x + zt + i.y;
12432
12437
  else
12433
12438
  throw new Error(`Unexpected command type "${i == null ? void 0 : i.type}" at index ${e}.`);
12434
12439
  }
@@ -12508,17 +12513,17 @@ function aA(n, t, e) {
12508
12513
  const E = Tf(n.phi1, n.phi2, v / l), A = Tf(n.phi1, n.phi2, (v + 1) / l), T = A - E, I = 4 / 3 * Math.tan(T * Wi / 4), [S, D] = [
12509
12514
  Math.cos(E * Wi) - I * Math.sin(E * Wi),
12510
12515
  Math.sin(E * Wi) + I * Math.cos(E * Wi)
12511
- ], [k, z] = [Math.cos(A * Wi), Math.sin(A * Wi)], [W, X] = [
12516
+ ], [k, V] = [Math.cos(A * Wi), Math.sin(A * Wi)], [W, X] = [
12512
12517
  k + I * Math.sin(A * Wi),
12513
- z - I * Math.cos(A * Wi)
12518
+ V - I * Math.cos(A * Wi)
12514
12519
  ], $ = {
12515
12520
  relative: n.relative,
12516
12521
  type: P.CURVE_TO
12517
12522
  }, K = (tt, Z) => {
12518
- const [V, J] = rl([tt * n.rX, Z * n.rY], n.xRot);
12519
- return [n.cX + V, n.cY + J];
12523
+ const [z, J] = rl([tt * n.rX, Z * n.rY], n.xRot);
12524
+ return [n.cX + z, n.cY + J];
12520
12525
  };
12521
- [$.x1, $.y1] = K(S, D), [$.x2, $.y2] = K(W, X), [$.x, $.y] = K(k, z), n.relative && ($.x1 -= f, $.y1 -= d, $.x2 -= f, $.y2 -= d, $.x -= f, $.y -= d), [f, d] = [$.x, $.y], c[v] = $;
12526
+ [$.x1, $.y1] = K(S, D), [$.x2, $.y2] = K(W, X), [$.x, $.y] = K(k, V), n.relative && ($.x1 -= f, $.y1 -= d, $.x2 -= f, $.y2 -= d, $.x -= f, $.y -= d), [f, d] = [$.x, $.y], c[v] = $;
12522
12527
  }
12523
12528
  return c;
12524
12529
  }
@@ -12596,8 +12601,8 @@ function mr(n, t, e, i, a, u) {
12596
12601
  if (D === 0)
12597
12602
  delete l.rX, delete l.rY, delete l.xRot, delete l.lArcFlag, delete l.sweepFlag, l.type = P.LINE_TO;
12598
12603
  else {
12599
- const k = l.xRot * Math.PI / 180, z = Math.sin(k), W = Math.cos(k), X = 1 / S(l.rX), $ = 1 / S(l.rY), K = S(W) * X + S(z) * $, tt = 2 * z * W * (X - $), Z = S(z) * X + S(W) * $, V = K * i * i - tt * t * i + Z * t * t, J = tt * (n * i + t * e) - 2 * (K * e * i + Z * n * t), nt = K * e * e - tt * n * e + Z * n * n, gt = (Math.atan2(J, V - nt) + Math.PI) % Math.PI / 2, It = Math.sin(gt), Ct = Math.cos(gt);
12600
- l.rX = Math.abs(D) / Math.sqrt(V * S(Ct) + J * It * Ct + nt * S(It)), l.rY = Math.abs(D) / Math.sqrt(V * S(It) - J * It * Ct + nt * S(Ct)), l.xRot = gt * 180 / Math.PI;
12604
+ const k = l.xRot * Math.PI / 180, V = Math.sin(k), W = Math.cos(k), X = 1 / S(l.rX), $ = 1 / S(l.rY), K = S(W) * X + S(V) * $, tt = 2 * V * W * (X - $), Z = S(V) * X + S(W) * $, z = K * i * i - tt * t * i + Z * t * t, J = tt * (n * i + t * e) - 2 * (K * e * i + Z * n * t), nt = K * e * e - tt * n * e + Z * n * n, gt = (Math.atan2(J, z - nt) + Math.PI) % Math.PI / 2, It = Math.sin(gt), Ct = Math.cos(gt);
12605
+ l.rX = Math.abs(D) / Math.sqrt(z * S(Ct) + J * It * Ct + nt * S(It)), l.rY = Math.abs(D) / Math.sqrt(z * S(It) - J * It * Ct + nt * S(Ct)), l.xRot = gt * 180 / Math.PI;
12601
12606
  }
12602
12607
  return typeof l.sweepFlag < "u" && 0 > D && (l.sweepFlag = +!l.sweepFlag), l;
12603
12608
  });
@@ -12654,13 +12659,13 @@ function EA() {
12654
12659
  }
12655
12660
  if (f.type & P.ARC) {
12656
12661
  d(f.x), v(f.y), wl(f, l, c);
12657
- const E = f.xRot / 180 * Math.PI, A = Math.cos(E) * f.rX, T = Math.sin(E) * f.rX, I = -Math.sin(E) * f.rY, S = Math.cos(E) * f.rY, [D, k] = f.phi1 < f.phi2 ? [f.phi1, f.phi2] : -180 > f.phi2 ? [f.phi2 + 360, f.phi1 + 360] : [f.phi2, f.phi1], z = ([$, K]) => {
12662
+ const E = f.xRot / 180 * Math.PI, A = Math.cos(E) * f.rX, T = Math.sin(E) * f.rX, I = -Math.sin(E) * f.rY, S = Math.cos(E) * f.rY, [D, k] = f.phi1 < f.phi2 ? [f.phi1, f.phi2] : -180 > f.phi2 ? [f.phi2 + 360, f.phi1 + 360] : [f.phi2, f.phi1], V = ([$, K]) => {
12658
12663
  const Z = Math.atan2(K, $) * 180 / Math.PI;
12659
12664
  return Z < D ? Z + 360 : Z;
12660
- }, W = wf(I, -A, 0).map(z);
12665
+ }, W = wf(I, -A, 0).map(V);
12661
12666
  for (const $ of W)
12662
12667
  $ > D && $ < k && d(_f(f.cX, A, I, $));
12663
- const X = wf(S, -T, 0).map(z);
12668
+ const X = wf(S, -T, 0).map(V);
12664
12669
  for (const $ of X)
12665
12670
  $ > D && $ < k && v(_f(f.cY, T, S, $));
12666
12671
  }
@@ -12668,7 +12673,7 @@ function EA() {
12668
12673
  });
12669
12674
  return a.minX = 1 / 0, a.maxX = -1 / 0, a.minY = 1 / 0, a.maxY = -1 / 0, a;
12670
12675
  }
12671
- const Yt = {
12676
+ const Zt = {
12672
12677
  ROUND: uA,
12673
12678
  TO_ABS: Dp,
12674
12679
  TO_REL: oA,
@@ -12692,55 +12697,55 @@ const Yt = {
12692
12697
  };
12693
12698
  class Bp {
12694
12699
  round(t) {
12695
- return this.transform(Yt.ROUND(t));
12700
+ return this.transform(Zt.ROUND(t));
12696
12701
  }
12697
12702
  toAbs() {
12698
- return this.transform(Yt.TO_ABS());
12703
+ return this.transform(Zt.TO_ABS());
12699
12704
  }
12700
12705
  toRel() {
12701
- return this.transform(Yt.TO_REL());
12706
+ return this.transform(Zt.TO_REL());
12702
12707
  }
12703
12708
  normalizeHVZ(t, e, i) {
12704
- return this.transform(Yt.NORMALIZE_HVZ(t, e, i));
12709
+ return this.transform(Zt.NORMALIZE_HVZ(t, e, i));
12705
12710
  }
12706
12711
  normalizeST() {
12707
- return this.transform(Yt.NORMALIZE_ST());
12712
+ return this.transform(Zt.NORMALIZE_ST());
12708
12713
  }
12709
12714
  qtToC() {
12710
- return this.transform(Yt.QT_TO_C());
12715
+ return this.transform(Zt.QT_TO_C());
12711
12716
  }
12712
12717
  aToC() {
12713
- return this.transform(Yt.A_TO_C());
12718
+ return this.transform(Zt.A_TO_C());
12714
12719
  }
12715
12720
  sanitize(t) {
12716
- return this.transform(Yt.SANITIZE(t));
12721
+ return this.transform(Zt.SANITIZE(t));
12717
12722
  }
12718
12723
  translate(t, e) {
12719
- return this.transform(Yt.TRANSLATE(t, e));
12724
+ return this.transform(Zt.TRANSLATE(t, e));
12720
12725
  }
12721
12726
  scale(t, e) {
12722
- return this.transform(Yt.SCALE(t, e));
12727
+ return this.transform(Zt.SCALE(t, e));
12723
12728
  }
12724
12729
  rotate(t, e, i) {
12725
- return this.transform(Yt.ROTATE(t, e, i));
12730
+ return this.transform(Zt.ROTATE(t, e, i));
12726
12731
  }
12727
12732
  matrix(t, e, i, a, u, l) {
12728
- return this.transform(Yt.MATRIX(t, e, i, a, u, l));
12733
+ return this.transform(Zt.MATRIX(t, e, i, a, u, l));
12729
12734
  }
12730
12735
  skewX(t) {
12731
- return this.transform(Yt.SKEW_X(t));
12736
+ return this.transform(Zt.SKEW_X(t));
12732
12737
  }
12733
12738
  skewY(t) {
12734
- return this.transform(Yt.SKEW_Y(t));
12739
+ return this.transform(Zt.SKEW_Y(t));
12735
12740
  }
12736
12741
  xSymmetry(t) {
12737
- return this.transform(Yt.X_AXIS_SYMMETRY(t));
12742
+ return this.transform(Zt.X_AXIS_SYMMETRY(t));
12738
12743
  }
12739
12744
  ySymmetry(t) {
12740
- return this.transform(Yt.Y_AXIS_SYMMETRY(t));
12745
+ return this.transform(Zt.Y_AXIS_SYMMETRY(t));
12741
12746
  }
12742
12747
  annotateArcs() {
12743
- return this.transform(Yt.ANNOTATE_ARCS());
12748
+ return this.transform(Zt.ANNOTATE_ARCS());
12744
12749
  }
12745
12750
  }
12746
12751
  const AA = (n) => n === " " || n === " " || n === "\r" || n === `
@@ -12916,7 +12921,7 @@ class P extends Bp {
12916
12921
  return P.encode(this.commands);
12917
12922
  }
12918
12923
  getBounds() {
12919
- const t = Yt.CALCULATE_BOUNDS();
12924
+ const t = Zt.CALCULATE_BOUNDS();
12920
12925
  return this.transform(t), t;
12921
12926
  }
12922
12927
  transform(t) {
@@ -12958,7 +12963,7 @@ const wA = {
12958
12963
  [P.CURVE_TO]: 6,
12959
12964
  [P.SMOOTH_CURVE_TO]: 4,
12960
12965
  [P.ARC]: 7
12961
- }, Ur = new L(), _n = new L();
12966
+ }, Ur = new R(), _n = new R();
12962
12967
  class TA extends Ae {
12963
12968
  type = "path";
12964
12969
  pathData;
@@ -12966,9 +12971,9 @@ class TA extends Ae {
12966
12971
  _i = -1;
12967
12972
  _command;
12968
12973
  _previousCommand;
12969
- _start = new L();
12970
- _control = new L();
12971
- _current = new L();
12974
+ _start = new R();
12975
+ _control = new R();
12976
+ _current = new R();
12972
12977
  _ps = [];
12973
12978
  _angles = [];
12974
12979
  constructor(t, e) {
@@ -13050,7 +13055,7 @@ class TA extends Ae {
13050
13055
  return Ur.copy(this._current), this._current.copy(this._getPoint(t, e)), this._current;
13051
13056
  }
13052
13057
  _getPoint(t = "x", e = "y") {
13053
- return this._makeAbsolute(new L(this._command[t], this._command[e]));
13058
+ return this._makeAbsolute(new R(this._command[t], this._command[e]));
13054
13059
  }
13055
13060
  _makeAbsolute(t) {
13056
13061
  return this._command.relative ? t.add(this._current) : t;
@@ -13061,7 +13066,7 @@ class TA extends Ae {
13061
13066
  _getReflectedControlPoint() {
13062
13067
  var e;
13063
13068
  const t = (e = this._previousCommand) == null ? void 0 : e.type;
13064
- return t !== P.CURVE_TO && t !== P.SMOOTH_CURVE_TO && t !== P.QUAD_TO && t !== P.SMOOTH_QUAD_TO ? this._current : (this._current.set(this._command.cx, this._command.cy), this._control.set(this._command.ox, this._command.oy), new L(2 * this._current.x - this._control.x, 2 * this._current.y - this._control.y));
13069
+ return t !== P.CURVE_TO && t !== P.SMOOTH_CURVE_TO && t !== P.QUAD_TO && t !== P.SMOOTH_QUAD_TO ? this._current : (this._current.set(this._command.cx, this._command.cy), this._control.set(this._command.ox, this._command.oy), new R(2 * this._current.x - this._control.x, 2 * this._current.y - this._control.y));
13065
13070
  }
13066
13071
  }
13067
13072
  function _A(n, t, e, i, a, u, l, c, f) {
@@ -13071,12 +13076,12 @@ function _A(n, t, e, i, a, u, l, c, f) {
13071
13076
  (l * l * (c * c) - l * l * (E * E) - c * c * (v * v)) / (l * l * (E * E) + c * c * (v * v))
13072
13077
  );
13073
13078
  a === u && (T *= -1), isNaN(T) && (T = 0);
13074
- let I = T * l * E / c, S = T * -c * v / l, D = (n + e) / 2 + Math.cos(d) * I - Math.sin(d) * S, k = (t + i) / 2 + Math.sin(d) * I + Math.cos(d) * S, z = function(V) {
13075
- return Math.sqrt(V[0] * V[0] + V[1] * V[1]);
13076
- }, W = function(V, J) {
13077
- return (V[0] * J[0] + V[1] * J[1]) / (z(V) * z(J));
13078
- }, X = function(V, J) {
13079
- return (V[0] * J[1] < V[1] * J[0] ? -1 : 1) * Math.acos(W(V, J));
13079
+ let I = T * l * E / c, S = T * -c * v / l, D = (n + e) / 2 + Math.cos(d) * I - Math.sin(d) * S, k = (t + i) / 2 + Math.sin(d) * I + Math.cos(d) * S, V = function(z) {
13080
+ return Math.sqrt(z[0] * z[0] + z[1] * z[1]);
13081
+ }, W = function(z, J) {
13082
+ return (z[0] * J[0] + z[1] * J[1]) / (V(z) * V(J));
13083
+ }, X = function(z, J) {
13084
+ return (z[0] * J[1] < z[1] * J[0] ? -1 : 1) * Math.acos(W(z, J));
13080
13085
  }, $ = X([1, 0], [(v - I) / l, (E - S) / c]), K = [(v - I) / l, (E - S) / c], tt = [(-1 * v - I) / l, (-1 * E - S) / c], Z = X(K, tt);
13081
13086
  return W(K, tt) <= -1 && (Z = Math.PI), W(K, tt) >= 1 && (Z = 0), u === 0 && Z > 0 && (Z = Z - 2 * Math.PI), u === 1 && Z < 0 && (Z = Z + 2 * Math.PI), [D, k, l, c, $, Z, d, u];
13082
13087
  }
@@ -13278,13 +13283,13 @@ function Mf(n, t, e) {
13278
13283
  let i = parseFloat(ct.get(t, "stroke-width") || "") || 0;
13279
13284
  return i > 0 && (e.strokeWidth = UA(n, i)), e;
13280
13285
  }
13281
- const FA = new wt(), za = new L();
13286
+ const FA = new wt(), Va = new R();
13282
13287
  function UA(n, t) {
13283
13288
  var i, a, u;
13284
13289
  if (!t) return t;
13285
13290
  if (!((i = n == null ? void 0 : n.view) != null && i.viewBox)) return 1;
13286
- FA.copy((a = n == null ? void 0 : n.view) == null ? void 0 : a.viewBox).getSize(za);
13287
- let e = Math.round(t / 100 * ((za == null ? void 0 : za.length()) || 1));
13291
+ FA.copy((a = n == null ? void 0 : n.view) == null ? void 0 : a.viewBox).getSize(Va);
13292
+ let e = Math.round(t / 100 * ((Va == null ? void 0 : Va.length()) || 1));
13288
13293
  return ((u = n == null ? void 0 : n.view) == null ? void 0 : u.units) === "inches" && (e = Math.max(Math.ceil(e / 25), 1)), e;
13289
13294
  }
13290
13295
  function kA(n, t, e) {
@@ -13313,7 +13318,7 @@ function kA(n, t, e) {
13313
13318
  }
13314
13319
  return i;
13315
13320
  }
13316
- return t === "use" ? HA(n, t, e) : t === "text" ? WA(t, e) : t === "circle" ? VA(t, e, f) : i;
13321
+ return t === "use" ? HA(n, t, e) : t === "text" ? WA(t, e) : t === "circle" ? zA(t, e, f) : i;
13317
13322
  }
13318
13323
  function Bf(n, t, e) {
13319
13324
  if ((n.selectable === !0 || n.selectable === "true") && e.setSelectable(!0), n.x !== void 0 && !isNaN(Number(n.x)) && (e.position.x = n.x), n.y !== void 0 && !isNaN(Number(n.y)) && (e.position.y = n.y * (t ? -1 : 1)), n.transform) {
@@ -13370,7 +13375,7 @@ function WA(n, t) {
13370
13375
  userData: { id: t.id, tag: n }
13371
13376
  });
13372
13377
  }
13373
- function VA(n, t, e) {
13378
+ function zA(n, t, e) {
13374
13379
  return e[0].cx = t.cx, e[0].cy = t.cy, e[0].r = t.r, Pp(e[0]), new Cp({
13375
13380
  name: t.id || n,
13376
13381
  parsedSvg: e,
@@ -13380,7 +13385,7 @@ function VA(n, t, e) {
13380
13385
  userData: { id: t.id, tag: n }
13381
13386
  });
13382
13387
  }
13383
- const zA = ["x", "y", "lineWidth", "width", "height", "rx", "cx", "cy", "r"];
13388
+ const VA = ["x", "y", "lineWidth", "width", "height", "rx", "cx", "cy", "r"];
13384
13389
  function $A(n, t = []) {
13385
13390
  if (!n) throw new Error("input error");
13386
13391
  const e = n.match(/<(\w+)([^<]+)>/g);
@@ -13434,7 +13439,7 @@ function ZA(n, t = []) {
13434
13439
  d[0] === "stroke-width" ? d[0] = "lineWidth" : d[0] === "stroke-linecap" && (d[0] = "strokeLinecap"), a[d[0]] = d[1].replace(/\"/g, ""), u = d[0];
13435
13440
  } else l || (a[u] += " " + i[c].replace(/\"/g, ""));
13436
13441
  for (const c in a)
13437
- zA.indexOf(c) >= 0 && (a[c] = parseFloat(a[c]));
13442
+ VA.indexOf(c) >= 0 && (a[c] = parseFloat(a[c]));
13438
13443
  return t.push(a), t;
13439
13444
  }
13440
13445
  function KA(n = [], t) {
@@ -13486,7 +13491,7 @@ function Ip(n, t = !1) {
13486
13491
  let f = /M\s*(-?\d+(\.\d+)?),\s*(-?\d+(\.\d+)?)/g.exec(e[l]);
13487
13492
  f && (f == null ? void 0 : f.length) > 3 && i.push({ x: parseFloat(f[1]), y: parseFloat(f[3]), cms: e[l] });
13488
13493
  }
13489
- i = ct.sortBy(i, (l) => L.getLength({ x: l.x, y: l.y }));
13494
+ i = ct.sortBy(i, (l) => R.getLength({ x: l.x, y: l.y }));
13490
13495
  let a = ct.chunk(i, Math.floor(i.length / 10)), u = [];
13491
13496
  for (let l = 0, c = a.length; l < c; l++) {
13492
13497
  let f = [];
@@ -13522,14 +13527,14 @@ function Pf(n) {
13522
13527
  }
13523
13528
  let T = [];
13524
13529
  for (; A.length > 0 && !isNaN(A[0]); ) {
13525
- let I = i, S = a, D, k, z, W, X, $, K, tt, Z;
13530
+ let I = i, S = a, D, k, V, W, X, $, K, tt, Z;
13526
13531
  switch (E) {
13527
13532
  case "M":
13528
13533
  I = i = A.shift() || 0, S = a = A.shift() || 0, t.moveTo(i, a);
13529
13534
  break;
13530
13535
  case "m":
13531
- let V = A.shift() || 0, J = A.shift() || 0;
13532
- i += V, a += J, c === "z" && (i = I + V, a = S + J), t.moveTo(i, a);
13536
+ let z = A.shift() || 0, J = A.shift() || 0;
13537
+ i += z, a += J, c === "z" && (i = I + z, a = S + J), t.moveTo(i, a);
13533
13538
  break;
13534
13539
  case "l":
13535
13540
  i += A.shift() || 0, a += A.shift() || 0, t.lineTo(i, a);
@@ -13574,10 +13579,10 @@ function Pf(n) {
13574
13579
  D = i, k = a, c === "Q" && (D = i + (i - T[0]), k = a + (a - T[1])), i += A.shift() || 0, a += A.shift() || 0, t.quadraticCurveTo(D, k, i, a);
13575
13580
  break;
13576
13581
  case "A":
13577
- z = A.shift() || 0, W = A.shift() || 0, X = A.shift() || 0, $ = A.shift() || 0, K = A.shift() || 0, tt = i, Z = a, i = A.shift() || 0, a = A.shift() || 0, T = Lf(tt, Z, i, a, $, K, z, W, X), t.arc(T[0], T[1], T[2] > T[3] ? T[2] : T[3], T[4], T[4] + T[5], !!(T[7] - 1));
13582
+ V = A.shift() || 0, W = A.shift() || 0, X = A.shift() || 0, $ = A.shift() || 0, K = A.shift() || 0, tt = i, Z = a, i = A.shift() || 0, a = A.shift() || 0, T = Lf(tt, Z, i, a, $, K, V, W, X), t.arc(T[0], T[1], T[2] > T[3] ? T[2] : T[3], T[4], T[4] + T[5], !!(T[7] - 1));
13578
13583
  break;
13579
13584
  case "a":
13580
- z = A.shift() || 0, W = A.shift() || 0, X = A.shift() || 0, $ = A.shift() || 0, K = A.shift() || 0, tt = i, Z = a, i += A.shift() || 0, a += A.shift() || 0, T = Lf(tt, Z, i, a, $, K, z, W, X), t.arc(T[0], T[1], T[2] > T[3] ? T[2] : T[3], T[4], T[4] + T[5], !!(T[7] - 1)), console.log("arc: ", v, tt, Z, i, a, $, K, z, W, X);
13585
+ V = A.shift() || 0, W = A.shift() || 0, X = A.shift() || 0, $ = A.shift() || 0, K = A.shift() || 0, tt = i, Z = a, i += A.shift() || 0, a += A.shift() || 0, T = Lf(tt, Z, i, a, $, K, V, W, X), t.arc(T[0], T[1], T[2] > T[3] ? T[2] : T[3], T[4], T[4] + T[5], !!(T[7] - 1)), console.log("arc: ", v, tt, Z, i, a, $, K, V, W, X);
13581
13586
  break;
13582
13587
  case "z":
13583
13588
  t.closePath();
@@ -13597,12 +13602,12 @@ function Lf(n, t, e, i, a, u, l, c, f) {
13597
13602
  (l * l * (c * c) - l * l * (E * E) - c * c * (v * v)) / (l * l * (E * E) + c * c * (v * v))
13598
13603
  );
13599
13604
  a === u && (T *= -1), isNaN(T) && (T = 0);
13600
- let I = T * l * E / c, S = T * -c * v / l, D = (n + e) / 2 + Math.cos(d) * I - Math.sin(d) * S, k = (t + i) / 2 + Math.sin(d) * I + Math.cos(d) * S, z = function(V) {
13601
- return Math.sqrt(V[0] * V[0] + V[1] * V[1]);
13602
- }, W = function(V, J) {
13603
- return (V[0] * J[0] + V[1] * J[1]) / (z(V) * z(J));
13604
- }, X = function(V, J) {
13605
- return (V[0] * J[1] < V[1] * J[0] ? -1 : 1) * Math.acos(W(V, J));
13605
+ let I = T * l * E / c, S = T * -c * v / l, D = (n + e) / 2 + Math.cos(d) * I - Math.sin(d) * S, k = (t + i) / 2 + Math.sin(d) * I + Math.cos(d) * S, V = function(z) {
13606
+ return Math.sqrt(z[0] * z[0] + z[1] * z[1]);
13607
+ }, W = function(z, J) {
13608
+ return (z[0] * J[0] + z[1] * J[1]) / (V(z) * V(J));
13609
+ }, X = function(z, J) {
13610
+ return (z[0] * J[1] < z[1] * J[0] ? -1 : 1) * Math.acos(W(z, J));
13606
13611
  }, $ = X([1, 0], [(v - I) / l, (E - S) / c]), K = [(v - I) / l, (E - S) / c], tt = [(-1 * v - I) / l, (-1 * E - S) / c], Z = X(K, tt);
13607
13612
  return W(K, tt) <= -1 && (Z = Math.PI), W(K, tt) >= 1 && (Z = 0), u === 0 && Z > 0 && (Z = Z - 2 * Math.PI), u === 1 && Z < 0 && (Z = Z + 2 * Math.PI), [D, k, l, c, $, Z, d, u];
13608
13613
  }
@@ -13676,7 +13681,9 @@ class rb {
13676
13681
  computeBoundingBoxMap() {
13677
13682
  return Object.keys(this.boundingBoxMap).length ? this.boundingBoxMap : (this.traverseSvg(this.svg, (t) => {
13678
13683
  if (!t.id) return;
13679
- const e = t.getBoundingClientRect(), i = new wt(new L(e.left, e.top), new L(e.right, e.bottom));
13684
+ const e = t.getBoundingClientRect();
13685
+ if (!e.width || !e.height) return;
13686
+ const i = new wt(new R(e.left, e.top), new R(e.right, e.bottom));
13680
13687
  this.boundingBoxMap[t.id] = i.round(), this.boundingBox.expandByBox(i);
13681
13688
  }), this.boundingBoxMap);
13682
13689
  }
@@ -13874,7 +13881,7 @@ class rb {
13874
13881
  const l = this.getElementBoundingBox(t.id);
13875
13882
  if (!l || l.isEmpty()) return;
13876
13883
  a = document.createElementNS("http://www.w3.org/2000/svg", "rect"), a.setAttribute("id", i), a.setAttribute("class", "selected"), a.setAttribute("x", l.min.x.toString()), a.setAttribute("y", l.min.y.toString());
13877
- const c = new L();
13884
+ const c = new R();
13878
13885
  return l.getSize(c), a.setAttribute("width", c.x.toString()), a.setAttribute("height", c.y.toString()), u.getAttribute("transform") && a.setAttribute("transform", u.getAttribute("transform") || ""), u.getAttribute("style") && a.setAttribute("style", u.getAttribute("style") || ""), this.elementsMap[a.id] = a, a;
13879
13886
  }
13880
13887
  fontZoom(t, e = 1) {
@@ -13906,19 +13913,19 @@ class nb {
13906
13913
  const A = new Array();
13907
13914
  for (let D = 0, k = (d == null ? void 0 : d.length) || 0; D < k; D++) {
13908
13915
  if (v = d[D], E = v.getAttribute("id"), !E) continue;
13909
- const z = this.chef.getElementBoundingBox(E);
13910
- if (!z) continue;
13911
- const W = new L();
13912
- z.getCenter(W), A.push({ id: E, cp: W });
13916
+ const V = this.chef.getElementBoundingBox(E);
13917
+ if (!V) continue;
13918
+ const W = new R();
13919
+ V.getCenter(W), A.push({ id: E, cp: W });
13913
13920
  }
13914
13921
  for (let D = 0, k = A.length; D < k; D++) {
13915
13922
  A[D].color = l[0];
13916
- for (let z = 0, W = k; z < W; z++)
13917
- A[D] !== A[z] && L.getDistance(A[D].cp, A[z].cp) < c * 2 && (A[D].color = l[1]);
13923
+ for (let V = 0, W = k; V < W; V++)
13924
+ A[D] !== A[V] && R.getDistance(A[D].cp, A[V].cp) < c * 2 && (A[D].color = l[1]);
13918
13925
  }
13919
13926
  for (let D = 0, k = A.length; D < k; D++) {
13920
- let z = this.createCircle(A[D], c, u, e);
13921
- f.appendChild(z);
13927
+ let V = this.createCircle(A[D], c, u, e);
13928
+ f.appendChild(V);
13922
13929
  }
13923
13930
  }
13924
13931
  clearSocialDistanceCircles(t) {
@@ -14195,6 +14202,14 @@ class Fp extends ix {
14195
14202
  this.chef.setElementState2selected(a, !0);
14196
14203
  });
14197
14204
  }
14205
+ getSelectedIds() {
14206
+ var e;
14207
+ if (!((e = this.selectedList) != null && e.length)) return;
14208
+ const t = [];
14209
+ for (let i = 0, a = this.selectedList.length; i < a; i++)
14210
+ this.selectedList[i].id && t.push(this.selectedList[i].id);
14211
+ return t;
14212
+ }
14198
14213
  getSelectedBoundingBox() {
14199
14214
  var e;
14200
14215
  const t = new wt();
@@ -14310,7 +14325,7 @@ var Up = { exports: {} };
14310
14325
  }, "extend", "Use `assign`."), k = I(function(x, w) {
14311
14326
  return D(x, w, !0);
14312
14327
  }, "merge", "Use `assign`.");
14313
- function z(g, x, w) {
14328
+ function V(g, x, w) {
14314
14329
  var O = x.prototype, H;
14315
14330
  H = g.prototype = Object.create(O), H.constructor = g, H._super = O, w && S(H, w);
14316
14331
  }
@@ -14343,7 +14358,7 @@ var Up = { exports: {} };
14343
14358
  }
14344
14359
  return !1;
14345
14360
  }
14346
- function V(g, x) {
14361
+ function z(g, x) {
14347
14362
  return g.indexOf(x) > -1;
14348
14363
  }
14349
14364
  function J(g) {
@@ -14387,7 +14402,7 @@ var Up = { exports: {} };
14387
14402
  var x = g.ownerDocument || g;
14388
14403
  return x.defaultView || x.parentWindow || t;
14389
14404
  }
14390
- var Ie = /mobile|tablet|ip(ad|hone|od)|android/i, Hs = "ontouchstart" in t, $r = Ct(t, "PointerEvent") !== a, Pe = Hs && Ie.test(navigator.userAgent), yr = "touch", su = "pen", Pn = "mouse", Zi = "kinect", Gr = 25, Kt = 1, Te = 2, St = 4, ie = 8, bi = 1, hi = 2, Ki = 4, Qt = 8, Xe = 16, Le = hi | Ki, Jt = Qt | Xe, Ln = Le | Jt, Ws = ["x", "y"], ci = ["clientX", "clientY"];
14405
+ var Ie = /mobile|tablet|ip(ad|hone|od)|android/i, Hs = "ontouchstart" in t, $r = Ct(t, "PointerEvent") !== a, Pe = Hs && Ie.test(navigator.userAgent), yr = "touch", su = "pen", Pn = "mouse", Zi = "kinect", Gr = 25, Qt = 1, Te = 2, St = 4, ie = 8, bi = 1, hi = 2, Ki = 4, Jt = 8, Xe = 16, Le = hi | Ki, jt = Jt | Xe, Ln = Le | jt, Ws = ["x", "y"], ci = ["clientX", "clientY"];
14391
14406
  function Mt(g, x) {
14392
14407
  var w = this;
14393
14408
  this.manager = g, this.callback = x, this.element = g.element, this.target = g.options.inputTarget, this.domHandler = function(O) {
@@ -14416,10 +14431,10 @@ var Up = { exports: {} };
14416
14431
  };
14417
14432
  function vr(g) {
14418
14433
  var x, w = g.options.inputClass;
14419
- return w ? x = w : $r ? x = Vn : Pe ? x = ji : Hs ? x = Gn : x = Kr, new x(g, Xr);
14434
+ return w ? x = w : $r ? x = zn : Pe ? x = ji : Hs ? x = Gn : x = Kr, new x(g, Xr);
14420
14435
  }
14421
14436
  function Xr(g, x, w) {
14422
- var O = w.pointers.length, H = w.changedPointers.length, Y = x & Kt && O - H === 0, ot = x & (St | ie) && O - H === 0;
14437
+ var O = w.pointers.length, H = w.changedPointers.length, Y = x & Qt && O - H === 0, ot = x & (St | ie) && O - H === 0;
14423
14438
  w.isFirst = !!Y, w.isFinal = !!ot, Y && (g.session = {}), w.eventType = x, au(g, w), g.emit("hammer.input", w), g.recognize(w), g.session.prevInput = w;
14424
14439
  }
14425
14440
  function au(g, x) {
@@ -14434,7 +14449,7 @@ var Up = { exports: {} };
14434
14449
  }
14435
14450
  function xr(g, x) {
14436
14451
  var w = x.center, O = g.offsetDelta || {}, H = g.prevDelta || {}, Y = g.prevInput || {};
14437
- (x.eventType === Kt || Y.eventType === St) && (H = g.prevDelta = {
14452
+ (x.eventType === Qt || Y.eventType === St) && (H = g.prevDelta = {
14438
14453
  x: Y.deltaX || 0,
14439
14454
  y: Y.deltaY || 0
14440
14455
  }, O = g.offsetDelta = {
@@ -14486,7 +14501,7 @@ var Up = { exports: {} };
14486
14501
  };
14487
14502
  }
14488
14503
  function Zr(g, x) {
14489
- return g === x ? bi : d(g) >= d(x) ? g < 0 ? hi : Ki : x < 0 ? Qt : Xe;
14504
+ return g === x ? bi : d(g) >= d(x) ? g < 0 ? hi : Ki : x < 0 ? Jt : Xe;
14490
14505
  }
14491
14506
  function Ji(g, x, w) {
14492
14507
  w || (w = Ws);
@@ -14505,21 +14520,21 @@ var Up = { exports: {} };
14505
14520
  return Ji(x[0], x[1], ci) / Ji(g[0], g[1], ci);
14506
14521
  }
14507
14522
  var Un = {
14508
- mousedown: Kt,
14523
+ mousedown: Qt,
14509
14524
  mousemove: Te,
14510
14525
  mouseup: St
14511
14526
  }, kn = "mousedown", qn = "mousemove mouseup";
14512
14527
  function Kr() {
14513
14528
  this.evEl = kn, this.evWin = qn, this.pressed = !1, Mt.apply(this, arguments);
14514
14529
  }
14515
- z(Kr, Mt, {
14530
+ V(Kr, Mt, {
14516
14531
  /**
14517
14532
  * handle mouse events
14518
14533
  * @param {Object} ev
14519
14534
  */
14520
14535
  handler: function(x) {
14521
14536
  var w = Un[x.type];
14522
- w & Kt && x.button === 0 && (this.pressed = !0), w & Te && x.which !== 1 && (w = St), this.pressed && (w & St && (this.pressed = !1), this.callback(this.manager, w, {
14537
+ w & Qt && x.button === 0 && (this.pressed = !0), w & Te && x.which !== 1 && (w = St), this.pressed && (w & St && (this.pressed = !1), this.callback(this.manager, w, {
14523
14538
  pointers: [x],
14524
14539
  changedPointers: [x],
14525
14540
  pointerType: Pn,
@@ -14528,7 +14543,7 @@ var Up = { exports: {} };
14528
14543
  }
14529
14544
  });
14530
14545
  var ou = {
14531
- pointerdown: Kt,
14546
+ pointerdown: Qt,
14532
14547
  pointermove: Te,
14533
14548
  pointerup: St,
14534
14549
  pointercancel: ie,
@@ -14541,17 +14556,17 @@ var Up = { exports: {} };
14541
14556
  // see https://twitter.com/jacobrossi/status/480596438489890816
14542
14557
  }, Hn = "pointerdown", Wn = "pointermove pointerup pointercancel";
14543
14558
  t.MSPointerEvent && !t.PointerEvent && (Hn = "MSPointerDown", Wn = "MSPointerMove MSPointerUp MSPointerCancel");
14544
- function Vn() {
14559
+ function zn() {
14545
14560
  this.evEl = Hn, this.evWin = Wn, Mt.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
14546
14561
  }
14547
- z(Vn, Mt, {
14562
+ V(zn, Mt, {
14548
14563
  /**
14549
14564
  * handle mouse events
14550
14565
  * @param {Object} ev
14551
14566
  */
14552
14567
  handler: function(x) {
14553
14568
  var w = this.store, O = !1, H = x.type.toLowerCase().replace("ms", ""), Y = ou[H], ot = lu[x.pointerType] || x.pointerType, Ft = ot == yr, Wt = nt(w, x.pointerId, "pointerId");
14554
- Y & Kt && (x.button === 0 || Ft) ? Wt < 0 && (w.push(x), Wt = w.length - 1) : Y & (St | ie) && (O = !0), !(Wt < 0) && (w[Wt] = x, this.callback(this.manager, Y, {
14569
+ Y & Qt && (x.button === 0 || Ft) ? Wt < 0 && (w.push(x), Wt = w.length - 1) : Y & (St | ie) && (O = !0), !(Wt < 0) && (w[Wt] = x, this.callback(this.manager, Y, {
14555
14570
  pointers: w,
14556
14571
  changedPointers: [x],
14557
14572
  pointerType: ot,
@@ -14560,18 +14575,18 @@ var Up = { exports: {} };
14560
14575
  }
14561
14576
  });
14562
14577
  var hu = {
14563
- touchstart: Kt,
14578
+ touchstart: Qt,
14564
14579
  touchmove: Te,
14565
14580
  touchend: St,
14566
14581
  touchcancel: ie
14567
14582
  }, cu = "touchstart", fu = "touchstart touchmove touchend touchcancel";
14568
- function zn() {
14583
+ function Vn() {
14569
14584
  this.evTarget = cu, this.evWin = fu, this.started = !1, Mt.apply(this, arguments);
14570
14585
  }
14571
- z(zn, Mt, {
14586
+ V(Vn, Mt, {
14572
14587
  handler: function(x) {
14573
14588
  var w = hu[x.type];
14574
- if (w === Kt && (this.started = !0), !!this.started) {
14589
+ if (w === Qt && (this.started = !0), !!this.started) {
14575
14590
  var O = pu.call(this, x, w);
14576
14591
  w & (St | ie) && O[0].length - O[1].length === 0 && (this.started = !1), this.callback(this.manager, w, {
14577
14592
  pointers: O[0],
@@ -14587,7 +14602,7 @@ var Up = { exports: {} };
14587
14602
  return x & (St | ie) && (w = It(w.concat(O), "identifier")), [w, O];
14588
14603
  }
14589
14604
  var du = {
14590
- touchstart: Kt,
14605
+ touchstart: Qt,
14591
14606
  touchmove: Te,
14592
14607
  touchend: St,
14593
14608
  touchcancel: ie
@@ -14595,7 +14610,7 @@ var Up = { exports: {} };
14595
14610
  function ji() {
14596
14611
  this.evTarget = gu, this.targetIds = {}, Mt.apply(this, arguments);
14597
14612
  }
14598
- z(ji, Mt, {
14613
+ V(ji, Mt, {
14599
14614
  handler: function(x) {
14600
14615
  var w = du[x.type], O = mu.call(this, x, w);
14601
14616
  O && this.callback(this.manager, w, {
@@ -14608,12 +14623,12 @@ var Up = { exports: {} };
14608
14623
  });
14609
14624
  function mu(g, x) {
14610
14625
  var w = gt(g.touches), O = this.targetIds;
14611
- if (x & (Kt | Te) && w.length === 1)
14626
+ if (x & (Qt | Te) && w.length === 1)
14612
14627
  return O[w[0].identifier] = !0, [w, w];
14613
14628
  var H, Y, ot = gt(g.changedTouches), Ft = [], Wt = this.target;
14614
14629
  if (Y = w.filter(function(Gt) {
14615
14630
  return Z(Gt.target, Wt);
14616
- }), x === Kt)
14631
+ }), x === Qt)
14617
14632
  for (H = 0; H < Y.length; )
14618
14633
  O[Y[H].identifier] = !0, H++;
14619
14634
  for (H = 0; H < ot.length; )
@@ -14625,13 +14640,13 @@ var Up = { exports: {} };
14625
14640
  Ft
14626
14641
  ];
14627
14642
  }
14628
- var $n = 2500, Vs = 25;
14643
+ var $n = 2500, zs = 25;
14629
14644
  function Gn() {
14630
14645
  Mt.apply(this, arguments);
14631
14646
  var g = W(this.handler, this);
14632
14647
  this.touch = new ji(this.manager, g), this.mouse = new Kr(this.manager, g), this.primaryTouch = null, this.lastTouches = [];
14633
14648
  }
14634
- z(Gn, Mt, {
14649
+ V(Gn, Mt, {
14635
14650
  /**
14636
14651
  * handle mouse and touch events
14637
14652
  * @param {Hammer} manager
@@ -14656,9 +14671,9 @@ var Up = { exports: {} };
14656
14671
  }
14657
14672
  });
14658
14673
  function yu(g, x) {
14659
- g & Kt ? (this.primaryTouch = x.changedPointers[0].identifier, zs.call(this, x)) : g & (St | ie) && zs.call(this, x);
14674
+ g & Qt ? (this.primaryTouch = x.changedPointers[0].identifier, Vs.call(this, x)) : g & (St | ie) && Vs.call(this, x);
14660
14675
  }
14661
- function zs(g) {
14676
+ function Vs(g) {
14662
14677
  var x = g.changedPointers[0];
14663
14678
  if (x.identifier === this.primaryTouch) {
14664
14679
  var w = { x: x.clientX, y: x.clientY };
@@ -14673,7 +14688,7 @@ var Up = { exports: {} };
14673
14688
  function vu(g) {
14674
14689
  for (var x = g.srcEvent.clientX, w = g.srcEvent.clientY, O = 0; O < this.lastTouches.length; O++) {
14675
14690
  var H = this.lastTouches[O], Y = Math.abs(x - H.x), ot = Math.abs(w - H.y);
14676
- if (Y <= Vs && ot <= Vs)
14691
+ if (Y <= zs && ot <= zs)
14677
14692
  return !0;
14678
14693
  }
14679
14694
  return !1;
@@ -14716,13 +14731,13 @@ var Up = { exports: {} };
14716
14731
  x.preventDefault();
14717
14732
  return;
14718
14733
  }
14719
- var O = this.actions, H = V(O, Ti) && !Qr[Ti], Y = V(O, br) && !Qr[br], ot = V(O, Ar) && !Qr[Ar];
14734
+ var O = this.actions, H = z(O, Ti) && !Qr[Ti], Y = z(O, br) && !Qr[br], ot = z(O, Ar) && !Qr[Ar];
14720
14735
  if (H) {
14721
14736
  var Ft = g.pointers.length === 1, Wt = g.distance < 2, Gt = g.deltaTime < 250;
14722
14737
  if (Ft && Wt && Gt)
14723
14738
  return;
14724
14739
  }
14725
- if (!(ot && Y) && (H || Y && w & Le || ot && w & Jt))
14740
+ if (!(ot && Y) && (H || Y && w & Le || ot && w & jt))
14726
14741
  return this.preventSrc(x);
14727
14742
  },
14728
14743
  /**
@@ -14734,10 +14749,10 @@ var Up = { exports: {} };
14734
14749
  }
14735
14750
  };
14736
14751
  function Jr(g) {
14737
- if (V(g, Ti))
14752
+ if (z(g, Ti))
14738
14753
  return Ti;
14739
- var x = V(g, Ar), w = V(g, br);
14740
- return x && w ? Ti : x || w ? x ? Ar : br : V(g, Yn) ? Yn : Xn;
14754
+ var x = z(g, Ar), w = z(g, br);
14755
+ return x && w ? Ti : x || w ? x ? Ar : br : z(g, Yn) ? Yn : Xn;
14741
14756
  }
14742
14757
  function xu() {
14743
14758
  if (!Gs)
@@ -14898,7 +14913,7 @@ var Up = { exports: {} };
14898
14913
  return g & er ? "cancel" : g & fi ? "end" : g & tr ? "move" : g & fe ? "start" : "";
14899
14914
  }
14900
14915
  function Zs(g) {
14901
- return g == Xe ? "down" : g == Qt ? "up" : g == hi ? "left" : g == Ki ? "right" : "";
14916
+ return g == Xe ? "down" : g == Jt ? "up" : g == hi ? "left" : g == Ki ? "right" : "";
14902
14917
  }
14903
14918
  function jr(g, x) {
14904
14919
  var w = x.manager;
@@ -14907,7 +14922,7 @@ var Up = { exports: {} };
14907
14922
  function pe() {
14908
14923
  Ye.apply(this, arguments);
14909
14924
  }
14910
- z(pe, Ye, {
14925
+ V(pe, Ye, {
14911
14926
  /**
14912
14927
  * @namespace
14913
14928
  * @memberof AttrRecognizer
@@ -14943,7 +14958,7 @@ var Up = { exports: {} };
14943
14958
  function wr() {
14944
14959
  pe.apply(this, arguments), this.pX = null, this.pY = null;
14945
14960
  }
14946
- z(wr, pe, {
14961
+ V(wr, pe, {
14947
14962
  /**
14948
14963
  * @namespace
14949
14964
  * @memberof PanRecognizer
@@ -14956,11 +14971,11 @@ var Up = { exports: {} };
14956
14971
  },
14957
14972
  getTouchAction: function() {
14958
14973
  var g = this.options.direction, x = [];
14959
- return g & Le && x.push(br), g & Jt && x.push(Ar), x;
14974
+ return g & Le && x.push(br), g & jt && x.push(Ar), x;
14960
14975
  },
14961
14976
  directionTest: function(g) {
14962
14977
  var x = this.options, w = !0, O = g.distance, H = g.direction, Y = g.deltaX, ot = g.deltaY;
14963
- return H & x.direction || (x.direction & Le ? (H = Y === 0 ? bi : Y < 0 ? hi : Ki, w = Y != this.pX, O = Math.abs(g.deltaX)) : (H = ot === 0 ? bi : ot < 0 ? Qt : Xe, w = ot != this.pY, O = Math.abs(g.deltaY))), g.direction = H, w && O > x.threshold && H & x.direction;
14978
+ return H & x.direction || (x.direction & Le ? (H = Y === 0 ? bi : Y < 0 ? hi : Ki, w = Y != this.pX, O = Math.abs(g.deltaX)) : (H = ot === 0 ? bi : ot < 0 ? Jt : Xe, w = ot != this.pY, O = Math.abs(g.deltaY))), g.direction = H, w && O > x.threshold && H & x.direction;
14964
14979
  },
14965
14980
  attrTest: function(g) {
14966
14981
  return pe.prototype.attrTest.call(this, g) && (this.state & fe || !(this.state & fe) && this.directionTest(g));
@@ -14974,7 +14989,7 @@ var Up = { exports: {} };
14974
14989
  function tn() {
14975
14990
  pe.apply(this, arguments);
14976
14991
  }
14977
- z(tn, pe, {
14992
+ V(tn, pe, {
14978
14993
  /**
14979
14994
  * @namespace
14980
14995
  * @memberof PinchRecognizer
@@ -15001,7 +15016,7 @@ var Up = { exports: {} };
15001
15016
  function Tr() {
15002
15017
  Ye.apply(this, arguments), this._timer = null, this._input = null;
15003
15018
  }
15004
- z(Tr, Ye, {
15019
+ V(Tr, Ye, {
15005
15020
  /**
15006
15021
  * @namespace
15007
15022
  * @memberof PressRecognizer
@@ -15021,7 +15036,7 @@ var Up = { exports: {} };
15021
15036
  var x = this.options, w = g.pointers.length === x.pointers, O = g.distance < x.threshold, H = g.deltaTime > x.time;
15022
15037
  if (this._input = g, !O || !w || g.eventType & (St | ie) && !H)
15023
15038
  this.reset();
15024
- else if (g.eventType & Kt)
15039
+ else if (g.eventType & Qt)
15025
15040
  this.reset(), this._timer = E(function() {
15026
15041
  this.state = Re, this.tryEmit();
15027
15042
  }, x.time, this);
@@ -15039,7 +15054,7 @@ var Up = { exports: {} };
15039
15054
  function Kn() {
15040
15055
  pe.apply(this, arguments);
15041
15056
  }
15042
- z(Kn, pe, {
15057
+ V(Kn, pe, {
15043
15058
  /**
15044
15059
  * @namespace
15045
15060
  * @memberof RotateRecognizer
@@ -15059,7 +15074,7 @@ var Up = { exports: {} };
15059
15074
  function en() {
15060
15075
  pe.apply(this, arguments);
15061
15076
  }
15062
- z(en, pe, {
15077
+ V(en, pe, {
15063
15078
  /**
15064
15079
  * @namespace
15065
15080
  * @memberof SwipeRecognizer
@@ -15068,7 +15083,7 @@ var Up = { exports: {} };
15068
15083
  event: "swipe",
15069
15084
  threshold: 10,
15070
15085
  velocity: 0.3,
15071
- direction: Le | Jt,
15086
+ direction: Le | jt,
15072
15087
  pointers: 1
15073
15088
  },
15074
15089
  getTouchAction: function() {
@@ -15076,7 +15091,7 @@ var Up = { exports: {} };
15076
15091
  },
15077
15092
  attrTest: function(g) {
15078
15093
  var x = this.options.direction, w;
15079
- return x & (Le | Jt) ? w = g.overallVelocity : x & Le ? w = g.overallVelocityX : x & Jt && (w = g.overallVelocityY), this._super.attrTest.call(this, g) && x & g.offsetDirection && g.distance > this.options.threshold && g.maxPointers == this.options.pointers && d(w) > this.options.velocity && g.eventType & St;
15094
+ return x & (Le | jt) ? w = g.overallVelocity : x & Le ? w = g.overallVelocityX : x & jt && (w = g.overallVelocityY), this._super.attrTest.call(this, g) && x & g.offsetDirection && g.distance > this.options.threshold && g.maxPointers == this.options.pointers && d(w) > this.options.velocity && g.eventType & St;
15080
15095
  },
15081
15096
  emit: function(g) {
15082
15097
  var x = Zs(g.offsetDirection);
@@ -15086,7 +15101,7 @@ var Up = { exports: {} };
15086
15101
  function Ci() {
15087
15102
  Ye.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
15088
15103
  }
15089
- z(Ci, Ye, {
15104
+ V(Ci, Ye, {
15090
15105
  /**
15091
15106
  * @namespace
15092
15107
  * @memberof PinchRecognizer
@@ -15109,7 +15124,7 @@ var Up = { exports: {} };
15109
15124
  },
15110
15125
  process: function(g) {
15111
15126
  var x = this.options, w = g.pointers.length === x.pointers, O = g.distance < x.threshold, H = g.deltaTime < x.time;
15112
- if (this.reset(), g.eventType & Kt && this.count === 0)
15127
+ if (this.reset(), g.eventType & Qt && this.count === 0)
15113
15128
  return this.failTimeout();
15114
15129
  if (O && H && w) {
15115
15130
  if (g.eventType != St)
@@ -15383,7 +15398,7 @@ var Up = { exports: {} };
15383
15398
  w.initEvent(g, !0, !0), w.gesture = x, x.target.dispatchEvent(w);
15384
15399
  }
15385
15400
  S(Ze, {
15386
- INPUT_START: Kt,
15401
+ INPUT_START: Qt,
15387
15402
  INPUT_MOVE: Te,
15388
15403
  INPUT_END: St,
15389
15404
  INPUT_CANCEL: ie,
@@ -15397,19 +15412,19 @@ var Up = { exports: {} };
15397
15412
  DIRECTION_NONE: bi,
15398
15413
  DIRECTION_LEFT: hi,
15399
15414
  DIRECTION_RIGHT: Ki,
15400
- DIRECTION_UP: Qt,
15415
+ DIRECTION_UP: Jt,
15401
15416
  DIRECTION_DOWN: Xe,
15402
15417
  DIRECTION_HORIZONTAL: Le,
15403
- DIRECTION_VERTICAL: Jt,
15418
+ DIRECTION_VERTICAL: jt,
15404
15419
  DIRECTION_ALL: Ln,
15405
15420
  Manager: rn,
15406
15421
  Input: Mt,
15407
15422
  TouchAction: Zn,
15408
15423
  TouchInput: ji,
15409
15424
  MouseInput: Kr,
15410
- PointerEventInput: Vn,
15425
+ PointerEventInput: zn,
15411
15426
  TouchMouseInput: Gn,
15412
- SingleTouchInput: zn,
15427
+ SingleTouchInput: Vn,
15413
15428
  Recognizer: Ye,
15414
15429
  AttrRecognizer: pe,
15415
15430
  Tap: Ci,
@@ -15424,7 +15439,7 @@ var Up = { exports: {} };
15424
15439
  merge: k,
15425
15440
  extend: D,
15426
15441
  assign: S,
15427
- inherit: z,
15442
+ inherit: V,
15428
15443
  bindFn: W,
15429
15444
  prefixed: Ct
15430
15445
  });
@@ -15433,12 +15448,12 @@ var Up = { exports: {} };
15433
15448
  })(window, document, "Hammer");
15434
15449
  })(Up);
15435
15450
  var ab = Up.exports;
15436
- const Os = /* @__PURE__ */ kf(ab), Uf = new L(), si = new L();
15437
- class ub extends zr {
15451
+ const Os = /* @__PURE__ */ kf(ab), Uf = new R(), si = new R();
15452
+ class ub extends Vr {
15438
15453
  name = "orbit-controller.ts";
15439
15454
  isSvg = !1;
15440
15455
  dom;
15441
- domOffset = new L();
15456
+ domOffset = new R();
15442
15457
  camera;
15443
15458
  //@ts-ignore
15444
15459
  hammer;
@@ -15455,8 +15470,8 @@ class ub extends zr {
15455
15470
  distanceEnd = 1;
15456
15471
  state = -1;
15457
15472
  EPS = 1e-6;
15458
- focus = new L();
15459
- target = new L();
15473
+ focus = new R();
15474
+ target = new R();
15460
15475
  scaled = 1;
15461
15476
  rotateTheta = 0;
15462
15477
  enableDamping = !1;
@@ -15469,14 +15484,14 @@ class ub extends zr {
15469
15484
  };
15470
15485
  isWheeling = !1;
15471
15486
  finalTimer;
15472
- rotateStart = new L();
15473
- rotateEnd = new L();
15474
- rotateDelta = new L();
15475
- panStart = new L();
15476
- panEnd = new L();
15477
- panOffset = new L();
15487
+ rotateStart = new R();
15488
+ rotateEnd = new R();
15489
+ rotateDelta = new R();
15490
+ panStart = new R();
15491
+ panEnd = new R();
15492
+ panOffset = new R();
15478
15493
  dollyStart = 0;
15479
- dollyOffset = new L();
15494
+ dollyOffset = new R();
15480
15495
  contextMenuHandler = this.handleContextMenu.bind(this);
15481
15496
  // private readonly wheelHandler = _.throttle(this.handleWheel.bind(this), 40);
15482
15497
  wheelHandler = this.handleWheel.bind(this);
@@ -15633,7 +15648,7 @@ class ub extends zr {
15633
15648
  }
15634
15649
  }
15635
15650
  var Et = /* @__PURE__ */ ((n) => (n.CONTEXTMENU = "contextmenu", n.LOSTPOINTERCAPTURE = "lostpointercapture", n.MOUSEOVER = "mouseover", n.MOUSEOUT = "mouseout", n.MOUSELEAVE = "mouseleave", n.MOUSEENTER = "mouseenter", n.MOUSEMOVE = "mousemove", n.MOUSEDOWN = "mousedown", n.MOUSEUP = "mouseup", n.POINTERMOVE = "pointermove", n.POINTERDOWN = "pointerdown", n.POINTERUP = "pointerup", n.POINTERCANCEL = "pointercancel", n.POINTEROUT = "pointerout", n.POINTERLEAVE = "pointerleave", n.POINTEROVER = "pointerover", n.POINTERENTER = "pointerenter", n.TOUCHSTART = "touchstart", n.TOUCHEND = "touchend", n.TOUCHMOVE = "touchmove", n.TOUCHCANCEL = "touchcancel", n.WHEEL = "wheel", n.WHEEL_START = "wheelstart", n.WHEEL_END = "wheelend", n.MOUSEWHEEL = "mousewheel", n.CLICK = "click", n.DBLCLICK = "dblclick", n.CONTEXT_LOST = "contextlost", n.CONTEXT_RESTORED = "contextrestored", n.CONTROLS_CHANGED = "controlschanged", n.TAP = "tap", n.SINGLE_TAP = "singletap", n.DOUBLE_TAP = "doubletap", n.PRESS = "press", n.PAN = "pan", n.PAN_START = "panstart", n.PAN_MOVE = "panmove", n.PAN_END = "panend", n.ROTATE = "rotate", n.ROTATE_START = "rotatestart", n.ROTATE_MOVE = "rotatemove", n.ROTATE_END = "rotateend", n.PINCH = "pinch", n.PINCH_START = "pinchstart", n.PINCH_MOVE = "pinchmove", n.PINCH_END = "pinchend", n.PINCH_IN = "pinchin", n.PINCH_OUT = "pinchout", n.SWIPE = "swipe", n.CHANGE_START = "change_start", n.CHANGE_END = "change_end", n))(Et || {});
15636
- const Sn = new L();
15651
+ const Sn = new R();
15637
15652
  class ob extends ru {
15638
15653
  isCamera = !0;
15639
15654
  type = "Camera2";
@@ -15656,7 +15671,7 @@ class ob extends ru {
15656
15671
  aspect = 1;
15657
15672
  view;
15658
15673
  constructor(t) {
15659
- super(), this.width = (t == null ? void 0 : t.width) !== void 0 ? t.width : 2, this.height = (t == null ? void 0 : t.height) !== void 0 ? t.height : 2, this.aspect = (t == null ? void 0 : t.aspect) !== void 0 ? t.aspect : 1, (t == null ? void 0 : t.left) !== void 0 && (this.left = t.left), (t == null ? void 0 : t.right) !== void 0 && (this.right = t.right), (t == null ? void 0 : t.top) !== void 0 && (this.top = t.top), (t == null ? void 0 : t.bottom) !== void 0 && (this.bottom = t.bottom);
15674
+ super(), this.params = t, this.width = (t == null ? void 0 : t.width) !== void 0 ? t.width : 2, this.height = (t == null ? void 0 : t.height) !== void 0 ? t.height : 2, this.aspect = (t == null ? void 0 : t.aspect) !== void 0 ? t.aspect : 1, (t == null ? void 0 : t.left) !== void 0 && (this.left = t.left), (t == null ? void 0 : t.right) !== void 0 && (this.right = t.right), (t == null ? void 0 : t.top) !== void 0 && (this.top = t.top), (t == null ? void 0 : t.bottom) !== void 0 && (this.bottom = t.bottom);
15660
15675
  const e = (this.right + this.left) / 2, i = (this.top + this.bottom) / 2;
15661
15676
  if (this.aspect > 1) {
15662
15677
  const a = Math.round((this.right - this.left) / 2 / this.aspect);
@@ -15682,8 +15697,20 @@ class ob extends ru {
15682
15697
  if (!t || t.isEmpty()) throw new Error("box is empty");
15683
15698
  this.set(t.min.x, t.max.x, t.max.y, t.min.y);
15684
15699
  }
15685
- resize(t, e) {
15686
- this.aspect = t / e, this.updateProjectionMatrix(), this.update();
15700
+ resize() {
15701
+ this.setSize(this.params.width, this.params.height);
15702
+ }
15703
+ setSize(t, e) {
15704
+ this.width = t || 2, this.height = e || 2, this.left = this.params.left || -1, this.right = this.params.right || 1, this.top = this.params.top || 1, this.bottom = this.params.bottom || -1, this.aspect = t / e;
15705
+ const i = (this.right + this.left) / 2, a = (this.top + this.bottom) / 2;
15706
+ if (this.aspect > 1) {
15707
+ const u = Math.round((this.right - this.left) / 2 / this.aspect);
15708
+ this.top = a + u, this.bottom = a - u;
15709
+ } else if (this.aspect < 1) {
15710
+ const u = Math.round((this.top - this.bottom) / 2 * this.aspect);
15711
+ this.left = i - u, this.right = i + u;
15712
+ }
15713
+ this.updateProjectionMatrix(), this.update();
15687
15714
  }
15688
15715
  getWorldDirection(t) {
15689
15716
  this.updateWorldMatrix(!0, !1);
@@ -15723,7 +15750,7 @@ class ob extends ru {
15723
15750
  return super.copy(t, e), this.matrixWorldInverse.copy(t.matrixWorldInverse), this.projectionMatrix.copy(t.projectionMatrix), this.projectionMatrixInverse.copy(t.projectionMatrixInverse), this.width = t.width, this.height = t.height, this.aspect = t.aspect, this.left = t.left, this.right = t.right, this.top = t.top, this.bottom = t.bottom, this;
15724
15751
  }
15725
15752
  }
15726
- class kp extends zr {
15753
+ class kp extends Vr {
15727
15754
  name = "SvgSelectRect";
15728
15755
  container;
15729
15756
  el;
@@ -15741,13 +15768,13 @@ class kp extends zr {
15741
15768
  this.el.style.display = "none";
15742
15769
  }
15743
15770
  }
15744
- const Zo = new L();
15745
- class lb extends zr {
15771
+ const Zo = new R();
15772
+ class lb extends Vr {
15746
15773
  name = "SvgMultiSelector";
15747
15774
  controls;
15748
15775
  scene;
15749
- p1 = new L();
15750
- p2 = new L();
15776
+ p1 = new R();
15777
+ p2 = new R();
15751
15778
  graph;
15752
15779
  selectEnable = !1;
15753
15780
  multiSelectEnable = !1;
@@ -15804,15 +15831,15 @@ class lb extends zr {
15804
15831
  }
15805
15832
  var nl = /* @__PURE__ */ ((n) => (n.SELECTED = "SELECTED", n))(nl || {});
15806
15833
  const kr = new wt();
15807
- class hb extends zr {
15834
+ class hb extends Vr {
15808
15835
  name = "SvgView";
15809
15836
  params;
15810
15837
  container;
15811
15838
  camera;
15812
15839
  controls;
15813
15840
  scene;
15814
- p1 = new L();
15815
- p2 = new L();
15841
+ p1 = new R();
15842
+ p2 = new R();
15816
15843
  graph;
15817
15844
  // tooltip?: Tooltip;
15818
15845
  multiSelector;
@@ -15829,7 +15856,7 @@ class hb extends zr {
15829
15856
  controlsPointerOverHandler = this.handleControlsPointerOver.bind(this);
15830
15857
  multiSelectorSelectedHandler = this.handleMultiSelectorSelected.bind(this);
15831
15858
  constructor(t = {}) {
15832
- super(), this.params = t, this.params.zoomToSelectEnable && (this.zoomToSelectEnable = !0), this.params.selectEnable && (this.selectEnable = !0), this.params.multiSelectEnable && (this.multiSelectEnable = !0), this.camera = new ob({ ...t.camera || {}, flipY: !0 }), this.container = this.params.containerId ? document.getElementById(this.params.containerId) : mt.window.document.getElementsByTagName("body")[0], this.controls = new ub(this.container, this.camera, !0), this.graph = new kp(this.container), this.multiSelector = new lb(this.controls, this.container), this.bindControlsEvents();
15859
+ super(), this.params = t, this.params.zoomToSelectEnable && (this.zoomToSelectEnable = !0), this.params.selectEnable && (this.selectEnable = !0), this.params.multiSelectEnable && (this.multiSelectEnable = !0), this.params.camera || (this.params.camera = {}), this.params.camera.flipY = !0, this.camera = new ob(this.params.camera), this.container = this.params.containerId ? document.getElementById(this.params.containerId) : mt.window.document.getElementsByTagName("body")[0], this.controls = new ub(this.container, this.camera, !0), this.graph = new kp(this.container), this.multiSelector = new lb(this.controls, this.container), this.bindControlsEvents();
15833
15860
  }
15834
15861
  destroy() {
15835
15862
  this.unbindControlsEvents(), super.destroy();
@@ -15858,18 +15885,18 @@ class hb extends zr {
15858
15885
  }
15859
15886
  // ================ events
15860
15887
  fullscreen() {
15861
- this.scene && (this.scene.updateMatrixWorld(!0), this.scene.computeBoundingBox(), ee.copy(this.scene.boundingBox).expandByVector(new L(1, 1).multiplyScalar(500)), this.camera.setByBox(ee));
15888
+ this.scene && (this.scene && !this.scene.viewBox.isEmpty() ? Yt.copy(this.scene.viewBox) : (this.scene.updateMatrixWorld(!0), this.scene.computeBoundingBox(), Yt.copy(this.scene.boundingBox)), this.camera.setByBox(Yt));
15862
15889
  }
15863
15890
  saveCameraPosition() {
15864
- ee.copy(this.camera.boundingBoxWorld), Ms.copy(this.camera.matrix), sessionStorage.setItem("svg_cameraBoundingBoxWorld", JSON.stringify(ee)), sessionStorage.setItem("svg_cameraMatrix", JSON.stringify(Ms));
15891
+ Yt.copy(this.camera.boundingBoxWorld), Ms.copy(this.camera.matrix), sessionStorage.setItem("svg_cameraBoundingBoxWorld", JSON.stringify(Yt)), sessionStorage.setItem("svg_cameraMatrix", JSON.stringify(Ms));
15865
15892
  }
15866
15893
  restoreCameraPosition() {
15867
15894
  const t = sessionStorage.getItem("svg_cameraBoundingBoxWorld"), e = sessionStorage.getItem("svg_cameraMatrix") || "{}";
15868
15895
  if (!t) return this.fullscreen();
15869
- ee.copy(JSON.parse(t)), Ms.copy(JSON.parse(e)), this.camera.set(ee.min.x, ee.max.x, ee.max.y, ee.min.y), Ms.decompose(this.camera.position, this.camera.rotation, this.camera.scaled), this.camera.update();
15896
+ Yt.copy(JSON.parse(t)), Ms.copy(JSON.parse(e)), this.camera.set(Yt.min.x, Yt.max.x, Yt.max.y, Yt.min.y), Ms.decompose(this.camera.position, this.camera.rotation, this.camera.scaled), this.camera.update();
15870
15897
  }
15871
15898
  clearCameraPosition() {
15872
- ee.makeEmpty(), Ms.identity(), sessionStorage.setItem("svg_cameraBoundingBoxWorld", ""), sessionStorage.setItem("svg_cameraMatrix", "");
15899
+ Yt.makeEmpty(), Ms.identity(), sessionStorage.setItem("svg_cameraBoundingBoxWorld", ""), sessionStorage.setItem("svg_cameraMatrix", "");
15873
15900
  }
15874
15901
  bindControlsEvents() {
15875
15902
  this.controls.addEventListener(Et.PAN_START, this.controlsPanStartHandler), this.controls.addEventListener(Et.PAN_END, this.controlsPanEndHandler), this.controls.addEventListener(Et.WHEEL_START, this.controlsWheelStartHandler), this.controls.addEventListener(Et.WHEEL_END, this.controlsWheelEndHandler), this.controls.addEventListener(Et.PAN_MOVE, this.controlsPanMoveHandler), this.controls.addEventListener(Et.POINTEROVER, this.controlsPointerOverHandler), this.multiSelector.addEventListener(nl.SELECTED, this.multiSelectorSelectedHandler);
@@ -15879,18 +15906,18 @@ class hb extends zr {
15879
15906
  }
15880
15907
  handlePanStart(t) {
15881
15908
  if (!((t == null ? void 0 : t.type) !== Et.PAN_START && (t == null ? void 0 : t.type) !== Et.WHEEL_START) && this.zoomToSelectEnable) {
15882
- this.p1.copy(t.data.screenCoords), ee.makeEmpty().expandByPoint(this.p1), this.graph.draw(ee);
15909
+ this.p1.copy(t.data.screenCoords), Yt.makeEmpty().expandByPoint(this.p1), this.graph.draw(Yt);
15883
15910
  return;
15884
15911
  }
15885
15912
  }
15886
15913
  handlePanEnd(t) {
15887
15914
  if (!((t == null ? void 0 : t.type) !== Et.PAN_END && (t == null ? void 0 : t.type) !== Et.WHEEL_END) && this.zoomToSelectEnable) {
15888
- this.p2.copy(t.data.screenCoords), ee.makeEmpty().expandByPoint(this.p1).expandByPoint(this.p2).unproject(this.controls.camera), this.setByBox(ee), this.graph.hide(), ee.makeEmpty();
15915
+ this.p2.copy(t.data.screenCoords), Yt.makeEmpty().expandByPoint(this.p1).expandByPoint(this.p2).unproject(this.controls.camera), this.setByBox(Yt), this.graph.hide(), Yt.makeEmpty();
15889
15916
  return;
15890
15917
  }
15891
15918
  }
15892
15919
  handleControlsPanMove(t) {
15893
- (t == null ? void 0 : t.type) === Et.PAN_MOVE && this.zoomToSelectEnable && (this.p2.copy(t.data.screenCoords), ee.makeEmpty().expandByPoint(this.p1).expandByPoint(this.p2), this.graph.draw(ee));
15920
+ (t == null ? void 0 : t.type) === Et.PAN_MOVE && this.zoomToSelectEnable && (this.p2.copy(t.data.screenCoords), Yt.makeEmpty().expandByPoint(this.p1).expandByPoint(this.p2), this.graph.draw(Yt));
15894
15921
  }
15895
15922
  handleControlsPointerOver(t) {
15896
15923
  var u, l, c, f, d, v;
@@ -15902,9 +15929,9 @@ class hb extends zr {
15902
15929
  console.warn("handleMultiSelectorSelected:", t.data), this.dispatchEvent({ type: "SELECTED", data: t.data });
15903
15930
  }
15904
15931
  }
15905
- const ee = new wt(), Ms = new Ot();
15932
+ const Yt = new wt(), Ms = new Ot();
15906
15933
  var qr = /* @__PURE__ */ ((n) => (n.SELECTED = "SELECTED", n.POINTEROVER = "POINTEROVER", n.POINTERLEAVE = "POINTERLEAVE", n))(qr || {});
15907
- class mb extends zr {
15934
+ class mb extends Vr {
15908
15935
  name = "SvgApp";
15909
15936
  params;
15910
15937
  renderer;
@@ -15933,6 +15960,10 @@ class mb extends zr {
15933
15960
  var t, e;
15934
15961
  this.unbindAssetsEvents(), super.destroy(), (t = this.view) == null || t.destroy(), (e = this.renderer) == null || e.destroy();
15935
15962
  }
15963
+ resize() {
15964
+ var t, e, i;
15965
+ (t = this.renderer) == null || t.resize(), (i = (e = this.view) == null ? void 0 : e.camera) == null || i.resize();
15966
+ }
15936
15967
  isScene(t) {
15937
15968
  var e;
15938
15969
  return ((e = this.scene) == null ? void 0 : e.uuid) === t.uuid;
@@ -15947,7 +15978,7 @@ class mb extends zr {
15947
15978
  trans2LoadingScene() {
15948
15979
  var e, i;
15949
15980
  this.loadingScene = new sb(this.params), (e = this.scene) == null || e.unmount(), this.scene = this.loadingScene, this.scene.isMounted || this.scene.mount();
15950
- const t = new wt().copy(this.loadingScene.viewBox).expandByVector(new L(1, 1).multiplyScalar(360));
15981
+ const t = new wt().copy(this.loadingScene.viewBox).expandByVector(new R(1, 1).multiplyScalar(360));
15951
15982
  this.view.setByBox(t), (i = this.mainScene) == null || i.destroy();
15952
15983
  }
15953
15984
  // life cycle
@@ -15982,9 +16013,13 @@ class mb extends zr {
15982
16013
  var e;
15983
16014
  (e = this.scene) == null || e.selectByIds(t, this.multiSelectEnable);
15984
16015
  }
16016
+ getSelectedIds() {
16017
+ var t;
16018
+ return (t = this.scene) == null ? void 0 : t.getSelectedIds();
16019
+ }
15985
16020
  targetByIds(t) {
15986
16021
  var e;
15987
- this.scene && ((e = this.scene) == null || e.selectByIds(t, !1), Ko.copy(this.scene.getSelectedBoundingBox()).expandByVector(new L(1, 1).multiplyScalar(500)), Ko.isEmpty() || this.view.setByBox(Ko));
16022
+ this.scene && ((e = this.scene) == null || e.selectByIds(t, !1), Ko.copy(this.scene.getSelectedBoundingBox()).expandByVector(new R(1, 1).multiplyScalar(500)), Ko.isEmpty() || this.view.setByBox(Ko));
15988
16023
  }
15989
16024
  // selectedElements(el: Element | Element[]): void {
15990
16025
  // this.mainScene.selectedElements(el, this.multiSelectEnable);