@zyzgroup/core-web 0.0.86 → 0.0.87

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.
@@ -213,7 +213,7 @@ const pe = new us(), ws = (i) => {
213
213
  });
214
214
  return e;
215
215
  };
216
- function fa(i) {
216
+ function da(i) {
217
217
  const t = i.match(/[\s\S]/gu);
218
218
  return t ? t.length : 0;
219
219
  }
@@ -479,7 +479,7 @@ const it = [
479
479
  "fe",
480
480
  "ff"
481
481
  ];
482
- function fi() {
482
+ function di() {
483
483
  const i = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, s = Math.random() * 4294967295 | 0;
484
484
  return (it[i & 255] + it[i >> 8 & 255] + it[i >> 16 & 255] + it[i >> 24 & 255] + "-" + it[t & 255] + it[t >> 8 & 255] + "-" + it[t >> 16 & 15 | 64] + it[t >> 24 & 255] + "-" + it[e & 63 | 128] + it[e >> 8 & 255] + "-" + it[e >> 16 & 255] + it[e >> 24 & 255] + it[s & 255] + it[s >> 8 & 255] + it[s >> 16 & 255] + it[s >> 24 & 255]).toLowerCase();
485
485
  }
@@ -606,7 +606,7 @@ function Jt(i, t) {
606
606
  }
607
607
  return i;
608
608
  }
609
- function ds(i, t, e = Number.EPSILON * Math.pow(2, 2)) {
609
+ function fs(i, t, e = Number.EPSILON * Math.pow(2, 2)) {
610
610
  return Math.abs(i - t) < e;
611
611
  }
612
612
  const q = (i, t, e) => i < t ? t : i > e ? e : i, va = (i, t, e) => (s) => {
@@ -667,7 +667,7 @@ function Ca() {
667
667
  };
668
668
  }
669
669
  var Pt = /* @__PURE__ */ ((i) => (i.UNKNOWN = "", i.HTML = "text/html", i.XHTML = "application/xhtml+xml", i.XML = "application/xml", i.XML_TEXT = "text/xml", i.TEXT = "text/plain", i.MD = "text/plain", i.JPEG = "image/jpeg", i.PNG = "image/png", i.GIF = "image/gif", i.WEBP = "image/webp", i.SVG = "image/svg+xml", i.ICO = "image/x-icon", i.MPEG = "audio/mpeg", i.MP3 = "audio/mpeg", i.MP4 = "video/mp4", i.OGG = "audio/ogg", i.WAV = "audio/wav", i.WEBM = "video/webm", i.CSS = "text/css", i.JAVASCRIPT = "application/javascript", i.ECMASCRIPT = "application/ecmascript", i.JSON = "application/json", i.XWWW = "application/x-www-form-urlencoded", i.DOC = "application/msword", i.CSV = "application/x-csv", i.EXCEL = "application/vnb.ms-excel", i.PDF = "application/pdf", i.ZIP = "application/zip", i.TGZ = "application/x-gtar", i.TAR_GZ = "application/x-gzip", i.EOT = "appliaction/vnd.ms-fontobject", i.TTF = "aplication/font-sfnt", i))(Pt || {}), Ne = /* @__PURE__ */ ((i) => (i.ascii = "ascii", i.utf8 = "utf8", i.utf16le = "utf16le", i.ucs2 = "ucs2", i.base64 = "base64", i.base64url = "base64url", i.latin1 = "latin1", i.binary = "binary", i.hex = "hex", i))(Ne || {});
670
- const de = (i, t = 16) => {
670
+ const fe = (i, t = 16) => {
671
671
  let e = i.toLowerCase();
672
672
  const s = e.indexOf("0b") == 0, n = e.indexOf("0o") == 0, r = e.indexOf("0x") == 0;
673
673
  (s || n || r) && (e = e.slice(2)), s && (t = 2), n && (t = 8), r && (t = 16);
@@ -839,7 +839,7 @@ function ka(i, t = {}) {
839
839
  function l() {
840
840
  return w(/^{\s*/);
841
841
  }
842
- function d() {
842
+ function f() {
843
843
  return w(/^}/);
844
844
  }
845
845
  function y() {
@@ -907,7 +907,7 @@ function ka(i, t = {}) {
907
907
  E(R);
908
908
  for (var I; I = x(); )
909
909
  I !== !1 && (R.push(I), E(R));
910
- return d() ? R : h("missing '}'");
910
+ return f() ? R : h("missing '}'");
911
911
  }
912
912
  function p() {
913
913
  for (var R, I = [], N = r(); R = w(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); )
@@ -930,7 +930,7 @@ function ka(i, t = {}) {
930
930
  return h("@keyframes missing '{'");
931
931
  for (var nt, Et = E(); nt = p(); )
932
932
  Et.push(nt), Et = Et.concat(E());
933
- return d() ? R({
933
+ return f() ? R({
934
934
  type: "keyframes",
935
935
  name: U,
936
936
  vendor: N,
@@ -945,7 +945,7 @@ function ka(i, t = {}) {
945
945
  if (!l())
946
946
  return h("@supports missing '{'");
947
947
  var U = E().concat(y());
948
- return d() ? R({
948
+ return f() ? R({
949
949
  type: "supports",
950
950
  supports: N,
951
951
  rules: U
@@ -958,7 +958,7 @@ function ka(i, t = {}) {
958
958
  if (!l())
959
959
  return h("@host missing '{'");
960
960
  var N = E().concat(y());
961
- return d() ? R({
961
+ return f() ? R({
962
962
  type: "host",
963
963
  rules: N
964
964
  }) : h("@host missing '}'");
@@ -971,7 +971,7 @@ function ka(i, t = {}) {
971
971
  if (!l())
972
972
  return h("@media missing '{'");
973
973
  var U = E().concat(y());
974
- return d() ? R({
974
+ return f() ? R({
975
975
  type: "media",
976
976
  media: N,
977
977
  rules: U
@@ -995,7 +995,7 @@ function ka(i, t = {}) {
995
995
  return h("@page missing '{'");
996
996
  for (var U = E(), nt; nt = x(); )
997
997
  U.push(nt), U = U.concat(E());
998
- return d() ? R({
998
+ return f() ? R({
999
999
  type: "page",
1000
1000
  selectors: N,
1001
1001
  declarations: U
@@ -1009,7 +1009,7 @@ function ka(i, t = {}) {
1009
1009
  if (!l())
1010
1010
  return h("@document missing '{'");
1011
1011
  var nt = E().concat(y());
1012
- return d() ? R({
1012
+ return f() ? R({
1013
1013
  type: "document",
1014
1014
  document: U,
1015
1015
  vendor: N,
@@ -1024,7 +1024,7 @@ function ka(i, t = {}) {
1024
1024
  return h("@font-face missing '{'");
1025
1025
  for (var N = E(), U; U = x(); )
1026
1026
  N.push(U), N = N.concat(E());
1027
- return d() ? R({
1027
+ return f() ? R({
1028
1028
  type: "font-face",
1029
1029
  declarations: N
1030
1030
  }) : h("@font-face missing '}'");
@@ -1242,7 +1242,7 @@ var Gn = { exports: {} };
1242
1242
  return g !== e && (S = b(g, p)), C > S ? new ArrayBuffer(0) : (F = S - C, z = new ArrayBuffer(F), G = new Uint8Array(z), $ = new Uint8Array(this, C, F), G.set($), z);
1243
1243
  };
1244
1244
  }();
1245
- function d(b) {
1245
+ function f(b) {
1246
1246
  return /[\u0080-\uFFFF]/.test(b) && (b = unescape(encodeURIComponent(b))), b;
1247
1247
  }
1248
1248
  function y(b, x) {
@@ -1268,7 +1268,7 @@ var Gn = { exports: {} };
1268
1268
  this.reset();
1269
1269
  }
1270
1270
  return P.prototype.append = function(b) {
1271
- return this.appendBinary(d(b)), this;
1271
+ return this.appendBinary(f(b)), this;
1272
1272
  }, P.prototype.appendBinary = function(b) {
1273
1273
  this._buff += b, this._length += b.length;
1274
1274
  var x = this._buff.length, g;
@@ -1299,7 +1299,7 @@ var Gn = { exports: {} };
1299
1299
  b[g] = 0;
1300
1300
  p = this._length * 8, p = p.toString(16).match(/(.*?)(.{0,8})$/), C = parseInt(p[2], 16), S = parseInt(p[1], 16) || 0, b[14] = C, b[15] = S, n(this._hash, b);
1301
1301
  }, P.hash = function(b, x) {
1302
- return P.hashBinary(d(b), x);
1302
+ return P.hashBinary(f(b), x);
1303
1303
  }, P.hashBinary = function(b, x) {
1304
1304
  var g = o(b), p = l(g);
1305
1305
  return x ? E(p) : p;
@@ -1661,16 +1661,16 @@ function Cs(i, t, e) {
1661
1661
  }
1662
1662
  return ii(m) ? !0 : (t.append(hn(P, E, r), c(m)), !1);
1663
1663
  }
1664
- const d = [], y = Object.assign(vo, {
1664
+ const f = [], y = Object.assign(vo, {
1665
1665
  defaultVisitor: l,
1666
1666
  convertValue: c,
1667
1667
  isVisitable: ii
1668
1668
  });
1669
1669
  function w(m, E) {
1670
1670
  if (!A.isUndefined(m)) {
1671
- if (d.indexOf(m) !== -1)
1671
+ if (f.indexOf(m) !== -1)
1672
1672
  throw Error("Circular reference detected in " + E.join("."));
1673
- d.push(m), A.forEach(m, function(b, x) {
1673
+ f.push(m), A.forEach(m, function(b, x) {
1674
1674
  (!(A.isUndefined(b) || b === null) && n.call(
1675
1675
  t,
1676
1676
  b,
@@ -1678,7 +1678,7 @@ function Cs(i, t, e) {
1678
1678
  E,
1679
1679
  y
1680
1680
  )) === !0 && w(b, E ? E.concat(x) : [x]);
1681
- }), d.pop();
1681
+ }), f.pop();
1682
1682
  }
1683
1683
  }
1684
1684
  if (!A.isObject(i))
@@ -1985,8 +1985,8 @@ class Es {
1985
1985
  const l = _e(h);
1986
1986
  if (!l)
1987
1987
  throw new Error("header name must be a non-empty string");
1988
- const d = A.findKey(n, l);
1989
- (!d || n[d] === void 0 || c === !0 || c === void 0 && n[d] !== !1) && (n[d || h] = cs(o));
1988
+ const f = A.findKey(n, l);
1989
+ (!f || n[f] === void 0 || c === !0 || c === void 0 && n[f] !== !1) && (n[f || h] = cs(o));
1990
1990
  }
1991
1991
  const a = (o, h) => A.forEach(o, (c, l) => r(c, l, h));
1992
1992
  return A.isPlainObject(t) || t instanceof this.constructor ? a(t, e) : A.isString(t) && (t = t.trim()) && !Fo(t) ? a(Ro(t), e) : t != null && r(e, t, s), this;
@@ -2205,16 +2205,16 @@ function qo(i, t) {
2205
2205
  return t = t !== void 0 ? t : 1e3, function(h) {
2206
2206
  const c = Date.now(), l = s[r];
2207
2207
  a || (a = c), e[n] = h, s[n] = c;
2208
- let d = r, y = 0;
2209
- for (; d !== n; )
2210
- y += e[d++], d = d % i;
2208
+ let f = r, y = 0;
2209
+ for (; f !== n; )
2210
+ y += e[f++], f = f % i;
2211
2211
  if (n = (n + 1) % i, n === r && (r = (r + 1) % i), c - a < t)
2212
2212
  return;
2213
2213
  const w = l && c - l;
2214
2214
  return w ? Math.round(y * 1e3 / w) : void 0;
2215
2215
  };
2216
2216
  }
2217
- function dn(i, t) {
2217
+ function fn(i, t) {
2218
2218
  let e = 0;
2219
2219
  const s = qo(50, 250);
2220
2220
  return (n) => {
@@ -2247,8 +2247,8 @@ const Ho = typeof XMLHttpRequest < "u", jo = Ho && function(i) {
2247
2247
  const m = i.auth.username || "", E = i.auth.password ? unescape(encodeURIComponent(i.auth.password)) : "";
2248
2248
  r.set("Authorization", "Basic " + btoa(m + ":" + E));
2249
2249
  }
2250
- const d = rr(i.baseURL, i.url);
2251
- l.open(i.method.toUpperCase(), er(d, i.params, i.paramsSerializer), !0), l.timeout = i.timeout;
2250
+ const f = rr(i.baseURL, i.url);
2251
+ l.open(i.method.toUpperCase(), er(f, i.params, i.paramsSerializer), !0), l.timeout = i.timeout;
2252
2252
  function y() {
2253
2253
  if (!l)
2254
2254
  return;
@@ -2284,15 +2284,15 @@ const Ho = typeof XMLHttpRequest < "u", jo = Ho && function(i) {
2284
2284
  l
2285
2285
  )), l = null;
2286
2286
  }, Lt.isStandardBrowserEnv) {
2287
- const m = (i.withCredentials || zo(d)) && i.xsrfCookieName && Xo.read(i.xsrfCookieName);
2287
+ const m = (i.withCredentials || zo(f)) && i.xsrfCookieName && Xo.read(i.xsrfCookieName);
2288
2288
  m && r.set(i.xsrfHeaderName, m);
2289
2289
  }
2290
2290
  n === void 0 && r.setContentType(null), "setRequestHeader" in l && A.forEach(r.toJSON(), function(E, P) {
2291
2291
  l.setRequestHeader(P, E);
2292
- }), A.isUndefined(i.withCredentials) || (l.withCredentials = !!i.withCredentials), a && a !== "json" && (l.responseType = i.responseType), typeof i.onDownloadProgress == "function" && l.addEventListener("progress", dn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", dn(i.onUploadProgress)), (i.cancelToken || i.signal) && (o = (m) => {
2292
+ }), A.isUndefined(i.withCredentials) || (l.withCredentials = !!i.withCredentials), a && a !== "json" && (l.responseType = i.responseType), typeof i.onDownloadProgress == "function" && l.addEventListener("progress", fn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", fn(i.onUploadProgress)), (i.cancelToken || i.signal) && (o = (m) => {
2293
2293
  l && (s(!m || m.type ? new Xe(null, i, l) : m), l.abort(), l = null);
2294
2294
  }, i.cancelToken && i.cancelToken.subscribe(o), i.signal && (i.signal.aborted ? o() : i.signal.addEventListener("abort", o)));
2295
- const w = Vo(d);
2295
+ const w = Vo(f);
2296
2296
  if (w && Lt.protocols.indexOf(w) === -1) {
2297
2297
  s(new X("Unsupported protocol " + w + ":", X.ERR_BAD_REQUEST, i));
2298
2298
  return;
@@ -2312,7 +2312,7 @@ A.forEach(ni, (i, t) => {
2312
2312
  Object.defineProperty(i, "adapterName", { value: t });
2313
2313
  }
2314
2314
  });
2315
- const fn = (i) => `- ${i}`, $o = (i) => A.isFunction(i) || i === null || i === !1, ar = {
2315
+ const dn = (i) => `- ${i}`, $o = (i) => A.isFunction(i) || i === null || i === !1, ar = {
2316
2316
  getAdapter: (i) => {
2317
2317
  i = A.isArray(i) ? i : [i];
2318
2318
  const { length: t } = i;
@@ -2332,8 +2332,8 @@ const fn = (i) => `- ${i}`, $o = (i) => A.isFunction(i) || i === null || i === !
2332
2332
  ([o, h]) => `adapter ${o} ` + (h === !1 ? "is not supported by the environment" : "is not available in the build")
2333
2333
  );
2334
2334
  let a = t ? r.length > 1 ? `since :
2335
- ` + r.map(fn).join(`
2336
- `) : " " + fn(r[0]) : "as no adapter specified";
2335
+ ` + r.map(dn).join(`
2336
+ `) : " " + dn(r[0]) : "as no adapter specified";
2337
2337
  throw new X(
2338
2338
  "There is no suitable adapter to dispatch the request " + a,
2339
2339
  "ERR_NOT_SUPPORT"
@@ -2369,15 +2369,15 @@ const pn = (i) => i instanceof zt ? i.toJSON() : i;
2369
2369
  function ge(i, t) {
2370
2370
  t = t || {};
2371
2371
  const e = {};
2372
- function s(c, l, d) {
2373
- return A.isPlainObject(c) && A.isPlainObject(l) ? A.merge.call({ caseless: d }, c, l) : A.isPlainObject(l) ? A.merge({}, l) : A.isArray(l) ? l.slice() : l;
2372
+ function s(c, l, f) {
2373
+ return A.isPlainObject(c) && A.isPlainObject(l) ? A.merge.call({ caseless: f }, c, l) : A.isPlainObject(l) ? A.merge({}, l) : A.isArray(l) ? l.slice() : l;
2374
2374
  }
2375
- function n(c, l, d) {
2375
+ function n(c, l, f) {
2376
2376
  if (A.isUndefined(l)) {
2377
2377
  if (!A.isUndefined(c))
2378
- return s(void 0, c, d);
2378
+ return s(void 0, c, f);
2379
2379
  } else
2380
- return s(c, l, d);
2380
+ return s(c, l, f);
2381
2381
  }
2382
2382
  function r(c, l) {
2383
2383
  if (!A.isUndefined(l))
@@ -2390,10 +2390,10 @@ function ge(i, t) {
2390
2390
  } else
2391
2391
  return s(void 0, l);
2392
2392
  }
2393
- function o(c, l, d) {
2394
- if (d in t)
2393
+ function o(c, l, f) {
2394
+ if (f in t)
2395
2395
  return s(c, l);
2396
- if (d in i)
2396
+ if (f in i)
2397
2397
  return s(void 0, c);
2398
2398
  }
2399
2399
  const h = {
@@ -2427,8 +2427,8 @@ function ge(i, t) {
2427
2427
  headers: (c, l) => n(pn(c), pn(l), !0)
2428
2428
  };
2429
2429
  return A.forEach(Object.keys(Object.assign({}, i, t)), function(l) {
2430
- const d = h[l] || n, y = d(i[l], t[l], l);
2431
- A.isUndefined(y) && d !== o || (e[l] = y);
2430
+ const f = h[l] || n, y = f(i[l], t[l], l);
2431
+ A.isUndefined(y) && f !== o || (e[l] = y);
2432
2432
  }), e;
2433
2433
  }
2434
2434
  const or = "1.5.1", bi = {};
@@ -2477,7 +2477,7 @@ const ri = {
2477
2477
  assertOptions: Wo,
2478
2478
  validators: bi
2479
2479
  }, jt = ri.validators;
2480
- class fs {
2480
+ class ds {
2481
2481
  constructor(t) {
2482
2482
  this.defaults = t, this.interceptors = {
2483
2483
  request: new ln(),
@@ -2524,17 +2524,17 @@ class fs {
2524
2524
  this.interceptors.response.forEach(function(E) {
2525
2525
  c.push(E.fulfilled, E.rejected);
2526
2526
  });
2527
- let l, d = 0, y;
2527
+ let l, f = 0, y;
2528
2528
  if (!h) {
2529
2529
  const m = [mn.bind(this), void 0];
2530
- for (m.unshift.apply(m, o), m.push.apply(m, c), y = m.length, l = Promise.resolve(e); d < y; )
2531
- l = l.then(m[d++], m[d++]);
2530
+ for (m.unshift.apply(m, o), m.push.apply(m, c), y = m.length, l = Promise.resolve(e); f < y; )
2531
+ l = l.then(m[f++], m[f++]);
2532
2532
  return l;
2533
2533
  }
2534
2534
  y = o.length;
2535
2535
  let w = e;
2536
- for (d = 0; d < y; ) {
2537
- const m = o[d++], E = o[d++];
2536
+ for (f = 0; f < y; ) {
2537
+ const m = o[f++], E = o[f++];
2538
2538
  try {
2539
2539
  w = m(w);
2540
2540
  } catch (P) {
@@ -2547,8 +2547,8 @@ class fs {
2547
2547
  } catch (m) {
2548
2548
  return Promise.reject(m);
2549
2549
  }
2550
- for (d = 0, y = c.length; d < y; )
2551
- l = l.then(c[d++], c[d++]);
2550
+ for (f = 0, y = c.length; f < y; )
2551
+ l = l.then(c[f++], c[f++]);
2552
2552
  return l;
2553
2553
  }
2554
2554
  getUri(t) {
@@ -2558,7 +2558,7 @@ class fs {
2558
2558
  }
2559
2559
  }
2560
2560
  A.forEach(["delete", "get", "head", "options"], function(t) {
2561
- fs.prototype[t] = function(e, s) {
2561
+ ds.prototype[t] = function(e, s) {
2562
2562
  return this.request(ge(s || {}, {
2563
2563
  method: t,
2564
2564
  url: e,
@@ -2579,9 +2579,9 @@ A.forEach(["post", "put", "patch"], function(t) {
2579
2579
  }));
2580
2580
  };
2581
2581
  }
2582
- fs.prototype[t] = e(), fs.prototype[t + "Form"] = e(!0);
2582
+ ds.prototype[t] = e(), ds.prototype[t + "Form"] = e(!0);
2583
2583
  });
2584
- const ls = fs;
2584
+ const ls = ds;
2585
2585
  class vi {
2586
2586
  constructor(t) {
2587
2587
  if (typeof t != "function")
@@ -2975,8 +2975,6 @@ class Rc {
2975
2975
  currentChunk = 0;
2976
2976
  // 是否正在上传
2977
2977
  isUploading = !1;
2978
- // 是否已完成上传
2979
- isUploaded = !1;
2980
2978
  begin = 0;
2981
2979
  end = 0;
2982
2980
  timer;
@@ -2990,13 +2988,11 @@ class Rc {
2990
2988
  this.axios = new ih({
2991
2989
  baseURL: t.baseURL,
2992
2990
  interceptor: {
2993
- request: (e) => (console.log("-- request --"), console.log(e), e),
2991
+ request: (e) => e,
2994
2992
  requestError: (e) => {
2995
- console.log("-- requestError --"), console.log(e);
2996
2993
  },
2997
- response: (e) => (console.log("-- response --"), console.log(e), e.config.url == this.uploadURL && (this.onProgress?.(this.currentChunk++, this.chunks), this.end == this.file.size ? (this.isUploading = !1, this.isUploaded = !0, this.stopTimeCount(), this.onComplete?.()) : this.isUploading && this.uploadChunk()), e),
2994
+ response: (e) => (e.config.url == this.uploadURL && (this.onProgress?.(this.currentChunk++, this.chunks), this.end == this.file.size ? (this.isUploading = !1, this.stopTimeCount(), this.onComplete?.()) : this.isUploading && this.uploadChunk()), e),
2998
2995
  responseError: (e) => {
2999
- console.log("-- responseError --"), console.log(e);
3000
2996
  }
3001
2997
  }
3002
2998
  }), this.checkURL = t.checkURL, this.uploadURL = t.uploadURL, this.file = t.file, this.chunkSize = t.chunkSize || 1 * 1024 * 1024, this.chunks = Math.ceil(this.file.size / this.chunkSize), this.onTime = t.onTime, this.onProgress = t.onProgress, this.onComplete = t.onComplete;
@@ -3005,7 +3001,7 @@ class Rc {
3005
3001
  this.fileHash || (this.fileHash = await hh(this.file, this.chunkSize)), (await this.axios.post(this.checkURL, {
3006
3002
  fileName: this.file.name,
3007
3003
  fileHash: this.fileHash
3008
- })).isExist ? (this.isUploading = !1, this.isUploaded = !0, this.onComplete?.()) : !this.isUploading && !this.isUploaded && (this.startTimeCount(), await this.uploadChunk());
3004
+ })).isExist ? (this.isUploading = !1, this.onComplete?.()) : this.isUploading || (this.startTimeCount(), await this.uploadChunk());
3009
3005
  }
3010
3006
  pause() {
3011
3007
  this.isUploading && (this.isUploading = !1, this.stopTimeCount());
@@ -3065,11 +3061,11 @@ function Ci(i, t) {
3065
3061
  e.removeEventListener(l, h), e.addEventListener(l, c);
3066
3062
  } else
3067
3063
  o === "style" ? Object.keys(c || {}).forEach((l) => {
3068
- const d = String(c[l]).toLowerCase().includes("!important") ? "important" : "";
3064
+ const f = String(c[l]).toLowerCase().includes("!important") ? "important" : "";
3069
3065
  e.style.setProperty(
3070
3066
  mt(l),
3071
3067
  String(c[l]).replace(/!important/i, ""),
3072
- d
3068
+ f
3073
3069
  );
3074
3070
  }) : e.setAttribute(o, c);
3075
3071
  }
@@ -3322,7 +3318,7 @@ function zc(i) {
3322
3318
  y: i.clientY
3323
3319
  };
3324
3320
  }
3325
- function dh(i) {
3321
+ function fh(i) {
3326
3322
  if ("center" in i)
3327
3323
  return i.center;
3328
3324
  if (typeof i.pageX == "number" && typeof i.pageY == "number")
@@ -3339,7 +3335,7 @@ function It(i, t) {
3339
3335
  x: i.offsetX,
3340
3336
  y: i.offsetY
3341
3337
  };
3342
- const e = dh(i), s = lh(
3338
+ const e = fh(i), s = lh(
3343
3339
  t || i.target
3344
3340
  );
3345
3341
  return {
@@ -3368,7 +3364,7 @@ const Ei = () => {
3368
3364
  e && (t = e[1].replace("_", "."));
3369
3365
  }
3370
3366
  return t.toLowerCase();
3371
- }, dr = () => {
3367
+ }, fr = () => {
3372
3368
  const i = navigator.userAgent.toLowerCase();
3373
3369
  let t = "Unknown";
3374
3370
  return /opr/i.test(i) || /opera/i.test(i) ? t = "Opera" : /chrome/i.test(i) ? t = "Chrome" : /firefox/i.test(i) ? t = "Firefox" : /safari/i.test(i) ? t = "Safari" : /edge/i.test(i) ? t = "Edge" : /msie|trident/i.test(i) ? t = "IE" : /MicroMessenger/i.test(i) ? t = "Wechat" : /alipay/i.test(i) && (t = "Ali"), t.toLowerCase();
@@ -3409,20 +3405,20 @@ function jc() {
3409
3405
  function $c() {
3410
3406
  return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase();
3411
3407
  }
3412
- function fr() {
3408
+ function dr() {
3413
3409
  return Ei() === "ios";
3414
3410
  }
3415
3411
  function mr() {
3416
3412
  return Ei() === "macos";
3417
3413
  }
3418
3414
  function Wc() {
3419
- return fr() | mr();
3415
+ return dr() | mr();
3420
3416
  }
3421
- function fh() {
3417
+ function dh() {
3422
3418
  return Ei() === "android";
3423
3419
  }
3424
3420
  function Jc() {
3425
- return fr() || fh();
3421
+ return dr() || dh();
3426
3422
  }
3427
3423
  function Zc() {
3428
3424
  return typeof window == "object" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
@@ -3444,10 +3440,10 @@ function Qc() {
3444
3440
  return i && (i === 9 || i === 10);
3445
3441
  }
3446
3442
  function ph() {
3447
- return dr() === "wechat";
3443
+ return fr() === "wechat";
3448
3444
  }
3449
3445
  function gh() {
3450
- return dr() === "ali";
3446
+ return fr() === "ali";
3451
3447
  }
3452
3448
  function tl() {
3453
3449
  return ph() && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === "miniprogram";
@@ -3835,8 +3831,8 @@ class ms {
3835
3831
  })
3836
3832
  );
3837
3833
  let l = parseFloat(c[4]);
3838
- const d = this.globalAlpha;
3839
- d != null && (l *= d), e.setAttribute(
3834
+ const f = this.globalAlpha;
3835
+ f != null && (l *= f), e.setAttribute(
3840
3836
  a.svgAttr + "-opacity",
3841
3837
  "" + l
3842
3838
  );
@@ -4044,10 +4040,10 @@ class ms {
4044
4040
  this.lineTo(t, e);
4045
4041
  return;
4046
4042
  }
4047
- const l = h[0] * c[0] + h[1] * c[1], d = Math.acos(Math.abs(l)), y = this.normalize([
4043
+ const l = h[0] * c[0] + h[1] * c[1], f = Math.acos(Math.abs(l)), y = this.normalize([
4048
4044
  h[0] + c[0],
4049
4045
  h[1] + c[1]
4050
- ]), w = r / Math.sin(d / 2), m = t + w * y[0], E = e + w * y[1], P = [
4046
+ ]), w = r / Math.sin(f / 2), m = t + w * y[0], E = e + w * y[1], P = [
4051
4047
  -h[1],
4052
4048
  h[0]
4053
4049
  ], b = [c[1], -c[0]], x = function(C) {
@@ -4264,7 +4260,7 @@ class ms {
4264
4260
  if (n === r)
4265
4261
  return;
4266
4262
  n = n % (2 * Math.PI), r = r % (2 * Math.PI), n === r && (r = (r + 2 * Math.PI - 1e-3 * (a ? -1 : 1)) % (2 * Math.PI));
4267
- const o = t + s * Math.cos(r), h = e + s * Math.sin(r), c = t + s * Math.cos(n), l = e + s * Math.sin(n), d = a ? 0 : 1;
4263
+ const o = t + s * Math.cos(r), h = e + s * Math.sin(r), c = t + s * Math.cos(n), l = e + s * Math.sin(n), f = a ? 0 : 1;
4268
4264
  let y = 0, w = r - n;
4269
4265
  w < 0 && (w += 2 * Math.PI), a ? y = w > Math.PI ? 0 : 1 : y = w > Math.PI ? 1 : 0, this.lineTo(c, l), this.__addPathCommand(
4270
4266
  at(
@@ -4274,7 +4270,7 @@ class ms {
4274
4270
  ry: s,
4275
4271
  xAxisRotation: 0,
4276
4272
  largeArcFlag: y,
4277
- sweepFlag: d,
4273
+ sweepFlag: f,
4278
4274
  endX: o,
4279
4275
  endY: h
4280
4276
  }
@@ -4294,7 +4290,7 @@ class ms {
4294
4290
  * http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage
4295
4291
  */
4296
4292
  drawImage(...t) {
4297
- let e = t[0], s, n, r, a, o = 0, h = 0, c, l, d, y, w, m, E, P;
4293
+ let e = t[0], s, n, r, a, o = 0, h = 0, c, l, f, y, w, m, E, P;
4298
4294
  if (t.length === 3)
4299
4295
  s = t[1], n = t[2], c = e.width, l = e.height, r = c, a = l;
4300
4296
  else if (t.length === 5)
@@ -4309,10 +4305,10 @@ class ms {
4309
4305
  this.__currentElement;
4310
4306
  const x = "translate(" + s + ", " + n + ")";
4311
4307
  if (e instanceof ms) {
4312
- if (d = e.getSvg().cloneNode(!0), d.childNodes && d.childNodes.length > 1) {
4313
- for (y = d.childNodes[0]; y.childNodes.length; )
4308
+ if (f = e.getSvg().cloneNode(!0), f.childNodes && f.childNodes.length > 1) {
4309
+ for (y = f.childNodes[0]; y.childNodes.length; )
4314
4310
  P = y.childNodes[0].getAttribute("id"), this.__ids[P] = P, this.__SVGdefs.appendChild(y.childNodes[0]);
4315
- if (w = d.childNodes[1], w) {
4311
+ if (w = f.childNodes[1], w) {
4316
4312
  const g = w.getAttribute("transform");
4317
4313
  let p;
4318
4314
  g ? p = g + " " + x : p = x, w.setAttribute("transform", p), b.appendChild(w);
@@ -4701,8 +4697,8 @@ class Ps {
4701
4697
  return { x: n, y: h * (n - e) + s };
4702
4698
  } else
4703
4699
  return { x: e, y: c * (e - n) + r };
4704
- const l = (-c * n + r + h * e - s) / (h - c), d = h * (l - e) + s;
4705
- return isNaN(l) || isNaN(d) ? null : { x: l, y: d };
4700
+ const l = (-c * n + r + h * e - s) / (h - c), f = h * (l - e) + s;
4701
+ return isNaN(l) || isNaN(f) ? null : { x: l, y: f };
4706
4702
  }
4707
4703
  }
4708
4704
  const bn = Ps;
@@ -4759,7 +4755,7 @@ class hi extends Ps {
4759
4755
  );
4760
4756
  }
4761
4757
  convert(t, e, s, n, r, a, o, h, c) {
4762
- const l = o / 180 * Math.PI, d = (t - s) / 2, y = (e - n) / 2, w = Math.cos(l) * d + Math.sin(l) * y, m = -Math.sin(l) * d + Math.cos(l) * y, E = w * w / (r * r) + m * m / (a * a);
4758
+ const l = o / 180 * Math.PI, f = (t - s) / 2, y = (e - n) / 2, w = Math.cos(l) * f + Math.sin(l) * y, m = -Math.sin(l) * f + Math.cos(l) * y, E = w * w / (r * r) + m * m / (a * a);
4763
4759
  if (E > 1) {
4764
4760
  const W = Math.sqrt(E);
4765
4761
  throw r = W * r, a = W * a, new Error(
@@ -4848,9 +4844,9 @@ class ut extends Ps {
4848
4844
  let h;
4849
4845
  const c = [];
4850
4846
  Math.abs(n) > 1e12 && (n = 0.5), Math.abs(r) > 1e12 && (r = 0.5), n >= 0 && n <= 1 && (h = this.interpolate(n), o.push(h.x), a.push(h.y), c.push({ X: h.x, Y: h.y })), r >= 0 && r <= 1 && (h = this.interpolate(r), o.push(h.x), a.push(h.y), c.push({ X: h.x, Y: h.y })), t = this.c2y - 2 * this.c1y + this.y - (this.toY - 2 * this.c2y + this.c1y), e = 2 * (this.c1y - this.y) - 2 * (this.c2y - this.c1y), s = this.y - this.c1y, n = (-e + Math.sqrt(e * e - 4 * t * s)) / 2 / t, r = (-e - Math.sqrt(e * e - 4 * t * s)) / 2 / t, Math.abs(n) > 1e12 && (n = 0.5), Math.abs(r) > 1e12 && (r = 0.5), n >= 0 && n <= 1 && (h = this.interpolate(n), o.push(h.x), a.push(h.y), c.push({ X: h.x, Y: h.y })), r >= 0 && r <= 1 && (h = this.interpolate(r), o.push(h.x), a.push(h.y), c.push({ X: h.x, Y: h.y }));
4851
- let l = [], d = c.length;
4852
- for (let m = 0; m < d; m++) {
4853
- for (let E = m + 1; E < d; E++)
4847
+ let l = [], f = c.length;
4848
+ for (let m = 0; m < f; m++) {
4849
+ for (let E = m + 1; E < f; E++)
4854
4850
  c[m].X === c[E].X && c[m].Y === c[E].Y && (E = ++m);
4855
4851
  l.push({ X: c[m].X, Y: c[m].Y });
4856
4852
  }
@@ -4882,7 +4878,7 @@ class ut extends Ps {
4882
4878
  */
4883
4879
  static bezlen(t, e, s, n, r, a, o, h, c = 1) {
4884
4880
  c = Math.max(0, Math.min(c, 1));
4885
- const l = c / 2, d = [
4881
+ const l = c / 2, f = [
4886
4882
  -0.1252,
4887
4883
  0.1252,
4888
4884
  -0.3678,
@@ -4911,7 +4907,7 @@ class ut extends Ps {
4911
4907
  ];
4912
4908
  let w = 0;
4913
4909
  for (let m = 0; m < 12; m++) {
4914
- const E = l * d[m] + l, P = this.base3(E, t, s, r, o), b = this.base3(E, e, n, a, h);
4910
+ const E = l * f[m] + l, P = this.base3(E, t, s, r, o), b = this.base3(E, e, n, a, h);
4915
4911
  w += y[m] * Math.sqrt(P * P + b * b);
4916
4912
  }
4917
4913
  return l * w;
@@ -4934,15 +4930,15 @@ class ut extends Ps {
4934
4930
  const e = this.x, s = this.y, n = this.c1x, r = this.c1y, a = this.c2x, o = this.c2y, h = this.toX, c = this.toY;
4935
4931
  if (t < 0 || ut.bezlen(e, s, n, r, a, o, h, c) < t)
4936
4932
  return 0;
4937
- let l = 1, d = l / 2, y = l - d, w = ut.bezlen(e, s, n, r, a, o, h, c, y);
4933
+ let l = 1, f = l / 2, y = l - f, w = ut.bezlen(e, s, n, r, a, o, h, c, y);
4938
4934
  for (; Math.abs(w - t) > 0.01; )
4939
- d /= 2, y += (w < t ? 1 : -1) * d, w = ut.bezlen(e, s, n, r, a, o, h, c, y);
4935
+ f /= 2, y += (w < t ? 1 : -1) * f, w = ut.bezlen(e, s, n, r, a, o, h, c, y);
4940
4936
  return y;
4941
4937
  }
4942
4938
  /// Find dot coordinates on the given cubic bezier curve at the given t
4943
4939
  getPointAtSegmentLength(t) {
4944
4940
  const e = this.getTatLen(t);
4945
- let s = 1 - e, n = Math.pow(s, 3), r = Math.pow(s, 2), a = e * e, o = a * e, h = n * this.x + r * 3 * e * this.c1x + s * 3 * e * e * this.c2x + o * this.toX, c = n * this.y + r * 3 * e * this.c1y + s * 3 * e * e * this.c2y + o * this.toY, l = this.x + 2 * e * (this.c1x - this.x) + a * (this.c2x - 2 * this.c1x + this.x), d = this.y + 2 * e * (this.c1y - this.y) + a * (this.c2y - 2 * this.c1y + this.y), y = this.c1x + 2 * e * (this.c2x - this.c1x) + a * (this.toX - 2 * this.c2x + this.c1x), w = this.c1y + 2 * e * (this.c2y - this.c1y) + a * (this.toY - 2 * this.c2y + this.c1y), m = s * this.x + e * this.c1x, E = s * this.y + e * this.c1y, P = s * this.c2x + e * this.toX, b = s * this.c2y + e * this.toY, x = 90 - Math.atan2(l - y, d - w) * 180 / Math.PI;
4941
+ let s = 1 - e, n = Math.pow(s, 3), r = Math.pow(s, 2), a = e * e, o = a * e, h = n * this.x + r * 3 * e * this.c1x + s * 3 * e * e * this.c2x + o * this.toX, c = n * this.y + r * 3 * e * this.c1y + s * 3 * e * e * this.c2y + o * this.toY, l = this.x + 2 * e * (this.c1x - this.x) + a * (this.c2x - 2 * this.c1x + this.x), f = this.y + 2 * e * (this.c1y - this.y) + a * (this.c2y - 2 * this.c1y + this.y), y = this.c1x + 2 * e * (this.c2x - this.c1x) + a * (this.toX - 2 * this.c2x + this.c1x), w = this.c1y + 2 * e * (this.c2y - this.c1y) + a * (this.toY - 2 * this.c2y + this.c1y), m = s * this.x + e * this.c1x, E = s * this.y + e * this.c1y, P = s * this.c2x + e * this.toX, b = s * this.c2y + e * this.toY, x = 90 - Math.atan2(l - y, f - w) * 180 / Math.PI;
4946
4942
  return {
4947
4943
  x: h,
4948
4944
  // x coordinate of the point
@@ -4951,7 +4947,7 @@ class ut extends Ps {
4951
4947
  m: {
4952
4948
  x: l,
4953
4949
  // x coordinate of the left anchor
4954
- y: d
4950
+ y: f
4955
4951
  // y coordinate of the left anchor
4956
4952
  },
4957
4953
  n: {
@@ -4984,10 +4980,10 @@ function vn(i, t, e, s) {
4984
4980
  return r > 1 && (r = 1), r < -1 && (r = -1), n * Math.acos(r);
4985
4981
  }
4986
4982
  function Th(i, t, e, s, n, r, a, o, h, c) {
4987
- const l = c * (i - e) / 2 + h * (t - s) / 2, d = -h * (i - e) / 2 + c * (t - s) / 2, y = a * a, w = o * o, m = l * l, E = d * d;
4983
+ const l = c * (i - e) / 2 + h * (t - s) / 2, f = -h * (i - e) / 2 + c * (t - s) / 2, y = a * a, w = o * o, m = l * l, E = f * f;
4988
4984
  let P = y * w - y * E - w * m;
4989
4985
  P < 0 && (P = 0), P /= y * E + w * m, P = Math.sqrt(P) * (n === r ? -1 : 1);
4990
- const b = P * a / o * d, x = P * -o / a * l, g = c * b - h * x + (i + e) / 2, p = h * b + c * x + (t + s) / 2, C = (l - b) / a, S = (d - x) / o, F = (-l - b) / a, z = (-d - x) / o, G = vn(1, 0, C, S);
4986
+ const b = P * a / o * f, x = P * -o / a * l, g = c * b - h * x + (i + e) / 2, p = h * b + c * x + (t + s) / 2, C = (l - b) / a, S = (f - x) / o, F = (-l - b) / a, z = (-f - x) / o, G = vn(1, 0, C, S);
4991
4987
  let $ = vn(C, S, F, z);
4992
4988
  return r === 0 && $ > 0 && ($ -= Oe), r === 1 && $ < 0 && ($ += Oe), [g, p, G, $];
4993
4989
  }
@@ -5005,13 +5001,13 @@ function Ph(i, t) {
5005
5001
  ];
5006
5002
  }
5007
5003
  function pr(i, t, e, s, n, r, a, o, h) {
5008
- const c = Math.sin(h * Oe / 360), l = Math.cos(h * Oe / 360), d = l * (i - e) / 2 + c * (t - s) / 2, y = -c * (i - e) / 2 + l * (t - s) / 2;
5009
- if (d === 0 && y === 0)
5004
+ const c = Math.sin(h * Oe / 360), l = Math.cos(h * Oe / 360), f = l * (i - e) / 2 + c * (t - s) / 2, y = -c * (i - e) / 2 + l * (t - s) / 2;
5005
+ if (f === 0 && y === 0)
5010
5006
  return [];
5011
5007
  if (a === 0 || o === 0)
5012
5008
  return [];
5013
5009
  a = Math.abs(a), o = Math.abs(o);
5014
- const w = d * d / (a * a) + y * y / (o * o);
5010
+ const w = f * f / (a * a) + y * y / (o * o);
5015
5011
  w > 1 && (a *= Math.sqrt(w), o *= Math.sqrt(w));
5016
5012
  const m = Th(i, t, e, s, n, r, a, o, c, l), E = [];
5017
5013
  let P = m[2], b = m[3];
@@ -5065,7 +5061,7 @@ const ss = {
5065
5061
  // Z
5066
5062
  // r: 4
5067
5063
  };
5068
- class fe {
5064
+ class de {
5069
5065
  static createSVGElement(t = "path", e) {
5070
5066
  const s = document.createElementNS.call(
5071
5067
  document,
@@ -5075,7 +5071,7 @@ class fe {
5075
5071
  return e && k.attribute(s, e), s;
5076
5072
  }
5077
5073
  static createSvgPath(t, e) {
5078
- return this.createSVGElement("path", { d: t, id: e || fi() });
5074
+ return this.createSVGElement("path", { d: t, id: e || di() });
5079
5075
  }
5080
5076
  static downloadFromSVGElement(t, e = "shape") {
5081
5077
  return yn(
@@ -5116,7 +5112,7 @@ class fe {
5116
5112
  /// parse an svg path data string to `[[command, arg1, arg2, ...], ...]`
5117
5113
  static parseSVGPath(t) {
5118
5114
  const e = [];
5119
- return fe.isSVGPath(t) && t.replace(
5115
+ return de.isSVGPath(t) && t.replace(
5120
5116
  /([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,
5121
5117
  (s, n, r) => {
5122
5118
  let a = n.toLowerCase();
@@ -5219,7 +5215,7 @@ class fe {
5219
5215
  /// https://github.com/jkroso/normalize-svg-path
5220
5216
  static normalizeSVGPath(t) {
5221
5217
  const e = [];
5222
- let s = 0, n = 0, r = 0, a = 0, o = 0, h = 0, c = 0, l = 0, d;
5218
+ let s = 0, n = 0, r = 0, a = 0, o = 0, h = 0, c = 0, l = 0, f;
5223
5219
  for (let y = 0, w = t.length; y < w; y++) {
5224
5220
  let m = t[y];
5225
5221
  const E = m[0];
@@ -5248,10 +5244,10 @@ class fe {
5248
5244
  break;
5249
5245
  case "S":
5250
5246
  let b = r, x = a;
5251
- (d == "C" || d == "S") && (b += b - c, x += x - l), m = ["C", b, x, m[1], m[2], m[3], m[4]];
5247
+ (f == "C" || f == "S") && (b += b - c, x += x - l), m = ["C", b, x, m[1], m[2], m[3], m[4]];
5252
5248
  break;
5253
5249
  case "T":
5254
- d == "Q" || d == "T" ? (o = r * 2 - o, h = a * 2 - h) : (o = r, h = a), m = ["C", ...ci(r, a, o, h, m[1], m[2])];
5250
+ f == "Q" || f == "T" ? (o = r * 2 - o, h = a * 2 - h) : (o = r, h = a), m = ["C", ...ci(r, a, o, h, m[1], m[2])];
5255
5251
  break;
5256
5252
  case "Q":
5257
5253
  o = m[1], h = m[2], m = ["C", ...ci(r, a, m[1], m[2], m[3], m[4])];
@@ -5269,7 +5265,7 @@ class fe {
5269
5265
  m = ["C", ...Me(r, a, s, n)];
5270
5266
  break;
5271
5267
  }
5272
- d = E, r = m[m.length - 2], a = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], l = m[m.length - 3]) : (c = r, l = a), e.push(m);
5268
+ f = E, r = m[m.length - 2], a = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], l = m[m.length - 3]) : (c = r, l = a), e.push(m);
5273
5269
  }
5274
5270
  return e;
5275
5271
  }
@@ -5359,7 +5355,7 @@ class fe {
5359
5355
  return t;
5360
5356
  }
5361
5357
  }
5362
- const gt = fe;
5358
+ const gt = de;
5363
5359
  class xt {
5364
5360
  /// cX cY 为相对于自身 (0,0) 点的相对值
5365
5361
  cX;
@@ -5465,7 +5461,7 @@ class xt {
5465
5461
  t.ry,
5466
5462
  t.xAxisRotate
5467
5463
  ).forEach((c) => {
5468
- const [l, d, y, w, m, E, P, b] = c;
5464
+ const [l, f, y, w, m, E, P, b] = c;
5469
5465
  this.normalizedLines.push(
5470
5466
  new ut({
5471
5467
  x: this.prevPathX,
@@ -5545,7 +5541,7 @@ class xt {
5545
5541
  this.cX = typeof t.cX == "number" ? t.cX : this.cX, this.cY = typeof t.cY == "number" ? t.cY : this.cY, this.x = t.x, this.y = t.y, this.degree = t.degree, this.scalarX = t.scalarX, this.scalarY = t.scalarY;
5546
5542
  }
5547
5543
  updateTransform() {
5548
- const t = new ft();
5544
+ const t = new dt();
5549
5545
  if (t.translate(this.x + this.cX, this.y + this.cY), t.rotate(this.degree), t.scale(this.scalarX, this.scalarY), t.translate(-this.cX, -this.cY), t.isIdentity)
5550
5546
  return {
5551
5547
  startPathX: this.startPathX,
@@ -5560,9 +5556,9 @@ class xt {
5560
5556
  }));
5561
5557
  const n = [];
5562
5558
  return this.normalizedLines.forEach((r) => {
5563
- let a = r.x, o = r.y, h = r.c1x, c = r.c1y, l = r.c2x, d = r.c2y, y = r.toX, w = r.toY;
5564
- ({ x: a, y: o } = t.transformPoint({ x: a, y: o })), { x: h, y: c } = t.transformPoint({ x: h, y: c }), { x: l, y: d } = t.transformPoint({ x: l, y: d }), { x: y, y: w } = t.transformPoint({ x: y, y: w }), n.push(
5565
- new ut({ x: a, y: o, c1x: h, c1y: c, c2x: l, c2y: d, toX: y, toY: w })
5559
+ let a = r.x, o = r.y, h = r.c1x, c = r.c1y, l = r.c2x, f = r.c2y, y = r.toX, w = r.toY;
5560
+ ({ x: a, y: o } = t.transformPoint({ x: a, y: o })), { x: h, y: c } = t.transformPoint({ x: h, y: c }), { x: l, y: f } = t.transformPoint({ x: l, y: f }), { x: y, y: w } = t.transformPoint({ x: y, y: w }), n.push(
5561
+ new ut({ x: a, y: o, c1x: h, c1y: c, c2x: l, c2y: f, toX: y, toY: w })
5566
5562
  );
5567
5563
  }), {
5568
5564
  startPathX: e,
@@ -5618,7 +5614,7 @@ class xt {
5618
5614
  let o = null, h = 0;
5619
5615
  const c = new xt();
5620
5616
  c.prevPathX = c.startPathX = n, c.prevPathY = c.startPathY = r;
5621
- for (let l = 0, d = a.length; l < d; l++) {
5617
+ for (let l = 0, f = a.length; l < f; l++) {
5622
5618
  const y = a[l], w = y.length();
5623
5619
  if (h + w > e && !o) {
5624
5620
  const m = y.getPointAtSegmentLength(e - h);
@@ -5654,12 +5650,12 @@ class xt {
5654
5650
  const s = this.getTotalLength();
5655
5651
  let n = { x: t, y: e }, r = 0, a = 1 / 0, o = 8;
5656
5652
  for (let c = 0; c <= s; c += o) {
5657
- let l = this.getPointAtLength(c), d = Vs(l.x, l.y, t, e);
5658
- d < a && (n = l, r = c, a = d);
5653
+ let l = this.getPointAtLength(c), f = Vs(l.x, l.y, t, e);
5654
+ f < a && (n = l, r = c, a = f);
5659
5655
  }
5660
5656
  for (o /= 2; o > 0.5; ) {
5661
- let c = r - o, l = this.getPointAtLength(c), d = Vs(l.x, l.y, t, e), y = r + o, w = this.getPointAtLength(y), m = Vs(w.x, w.y, t, e);
5662
- c >= 0 && d < a ? (n = l, r = c, a = d) : y <= s && m < a ? (n = w, r = y, a = m) : o /= 2;
5657
+ let c = r - o, l = this.getPointAtLength(c), f = Vs(l.x, l.y, t, e), y = r + o, w = this.getPointAtLength(y), m = Vs(w.x, w.y, t, e);
5658
+ c >= 0 && f < a ? (n = l, r = c, a = f) : y <= s && m < a ? (n = w, r = y, a = m) : o /= 2;
5663
5659
  }
5664
5660
  const h = this.getPointAtLength(
5665
5661
  r + (r === s ? -0.1 : 0.1)
@@ -5693,8 +5689,8 @@ class xt {
5693
5689
  a.push(["M", e[0], e[1]]);
5694
5690
  let o = 2;
5695
5691
  for (; o + 5 <= s - 1; ) {
5696
- const h = e[o++], c = e[o++], l = e[o++], d = e[o++], y = e[o++], w = e[o++];
5697
- a.push(["C", h, c, l, d, y, w]);
5692
+ const h = e[o++], c = e[o++], l = e[o++], f = e[o++], y = e[o++], w = e[o++];
5693
+ a.push(["C", h, c, l, f, y, w]);
5698
5694
  let m = 0;
5699
5695
  for (; m < r && n > 0; )
5700
5696
  a.push(["C", y, w, y, w, y, w]), n -= 6, m++;
@@ -5763,7 +5759,7 @@ function ul(i, t = 0) {
5763
5759
  e = !0;
5764
5760
  };
5765
5761
  }
5766
- function dl(i, t = 20) {
5762
+ function fl(i, t = 20) {
5767
5763
  const e = 1e3 / t;
5768
5764
  let s = 0, n;
5769
5765
  return () => (Z() - s >= e && (s = Z(), n = i()), n);
@@ -5810,7 +5806,7 @@ function Mh(i) {
5810
5806
  e < $t && re < $t ? (e < 8 && (e = 8), $t = e < re ? re : e) : e > $t && re > $t ? $t = e < re ? re : e : re = e, ps = t + $t, Dh.postMessage(null);
5811
5807
  });
5812
5808
  }
5813
- function fl(i) {
5809
+ function dl(i) {
5814
5810
  return cancelAnimationFrame(i);
5815
5811
  }
5816
5812
  function ml(i) {
@@ -6122,8 +6118,8 @@ function Cr(i, t, e, s) {
6122
6118
  for (; h !== c && n[h] <= a; ++h)
6123
6119
  o += is;
6124
6120
  --h;
6125
- const l = (a - n[h]) / (n[h + 1] - n[h]), d = o + l * is, y = Sr(d, i, e);
6126
- return y >= Lh ? Yh(a, d, i, e) : y === 0 ? d : Nh(
6121
+ const l = (a - n[h]) / (n[h + 1] - n[h]), f = o + l * is, y = Sr(f, i, e);
6122
+ return y >= Lh ? Yh(a, f, i, e) : y === 0 ? f : Nh(
6127
6123
  a,
6128
6124
  o,
6129
6125
  o + is,
@@ -6671,7 +6667,7 @@ class V extends pi {
6671
6667
  parent;
6672
6668
  shapes = [];
6673
6669
  constructor(t) {
6674
- if (super(), this.id = fi(), t?.d && (this.originD = t?.d), t?.originMatrix && (this.originMatrix = t.originMatrix), this.independentTransformInGroup = typeof t?.independentTransformInGroup == "boolean" ? t.independentTransformInGroup : !1, this.x = t?.x || 0, this.y = t?.y || 0, this.cX = 0, this.cY = 0, typeof t?.centerX == "number" && typeof t?.centerY == "number" && this.forceSetCXY(t.centerX - this.x, t.centerY - this.y), this.degree = t?.degree || 0, this.scalarX = 1, this.scalarY = 1, t?.scalar !== void 0 && (this.scalarX = t.scalar, this.scalarY = t.scalar), t?.scalarX !== void 0 && (this.scalarX = t.scalarX), t?.scalarY !== void 0 && (this.scalarY = t.scalarY), this.diffXInGroup = t?.diffXInGroup || 0, this.diffYInGroup = t?.diffYInGroup || 0, this.diffDegreeInGroup = t?.diffDegreeInGroup || 0, this.diffScalarXInGroup = t?.diffScalarXInGroup || 1, this.diffScalarYInGroup = t?.diffScalarYInGroup || 1, this.vx = t?.vx || 0, this.vy = t?.vy || 0, this.ax = t?.ax || 0, this.ay = t?.ay || 0, this.mass = t?.mass || 1, this.attrs = {
6670
+ if (super(), this.id = di(), t?.d && (this.originD = t?.d), t?.originMatrix && (this.originMatrix = t.originMatrix), this.independentTransformInGroup = typeof t?.independentTransformInGroup == "boolean" ? t.independentTransformInGroup : !1, this.x = t?.x || 0, this.y = t?.y || 0, this.cX = 0, this.cY = 0, typeof t?.centerX == "number" && typeof t?.centerY == "number" && this.forceSetCXY(t.centerX - this.x, t.centerY - this.y), this.degree = t?.degree || 0, this.scalarX = 1, this.scalarY = 1, t?.scalar !== void 0 && (this.scalarX = t.scalar, this.scalarY = t.scalar), t?.scalarX !== void 0 && (this.scalarX = t.scalarX), t?.scalarY !== void 0 && (this.scalarY = t.scalarY), this.diffXInGroup = t?.diffXInGroup || 0, this.diffYInGroup = t?.diffYInGroup || 0, this.diffDegreeInGroup = t?.diffDegreeInGroup || 0, this.diffScalarXInGroup = t?.diffScalarXInGroup || 1, this.diffScalarYInGroup = t?.diffScalarYInGroup || 1, this.vx = t?.vx || 0, this.vy = t?.vy || 0, this.ax = t?.ax || 0, this.ay = t?.ay || 0, this.mass = t?.mass || 1, this.attrs = {
6675
6671
  // "paint-order": "markers stroke fill", // 先 stroke 再 fill
6676
6672
  // "paint-order": "fill stroke markers", // default
6677
6673
  stroke: "none",
@@ -6758,10 +6754,10 @@ class V extends pi {
6758
6754
  if (!t)
6759
6755
  return;
6760
6756
  this.shapes.forEach((s) => {
6761
- const n = s.originMatrix ? s.originMatrix.clone() : new ft();
6757
+ const n = s.originMatrix ? s.originMatrix.clone() : new dt();
6762
6758
  n.translate(-t.x + s.x, -t.y + s.y), s.originMatrix = n;
6763
6759
  });
6764
- const e = this.originMatrix ? this.originMatrix.clone() : new ft();
6760
+ const e = this.originMatrix ? this.originMatrix.clone() : new dt();
6765
6761
  e.translate(-t.x + this.x, -t.y + this.y), this.originMatrix = e;
6766
6762
  }
6767
6763
  isPointInPath(t, e, s) {
@@ -7046,7 +7042,7 @@ const En = [1, 0, 0, 1, 0, 0], Tn = [
7046
7042
  0,
7047
7043
  1
7048
7044
  ];
7049
- class ft {
7045
+ class dt {
7050
7046
  value;
7051
7047
  _m13 = 0;
7052
7048
  _m23 = 0;
@@ -7057,7 +7053,7 @@ class ft {
7057
7053
  }
7058
7054
  // matrix(1, 0, 0, 1, -50, -50)
7059
7055
  static fromString(t) {
7060
- const e = new ft(), s = Rn("number", t);
7056
+ const e = new dt(), s = Rn("number", t);
7061
7057
  return s.length === 6 && s.forEach((n, r) => {
7062
7058
  n.fullMatch && (e.value[r] = parseFloat(n.fullMatch));
7063
7059
  }), e;
@@ -7159,10 +7155,10 @@ class ft {
7159
7155
  };
7160
7156
  }
7161
7157
  clone() {
7162
- return new ft([...this.value]);
7158
+ return new dt([...this.value]);
7163
7159
  }
7164
7160
  multiply(t) {
7165
- const e = this.clone(), s = t instanceof ft ? t : new ft(t);
7161
+ const e = this.clone(), s = t instanceof dt ? t : new dt(t);
7166
7162
  return this.m11 = s.m11 * e.m11 + s.m12 * e.m21 + s.m13 * e.m31, this.m12 = s.m11 * e.m12 + s.m12 * e.m22 + s.m13 * e.m32, this.m13 = s.m11 * e.m13 + s.m12 * e.m23 + s.m13 * e.m33, this.m21 = s.m21 * e.m11 + s.m22 * e.m21 + s.m23 * e.m31, this.m22 = s.m21 * e.m12 + s.m22 * e.m22 + s.m23 * e.m32, this.m23 = s.m21 * e.m13 + s.m22 * e.m23 + s.m23 * e.m33, this.m31 = s.m31 * e.m11 + s.m32 * e.m21 + s.m33 * e.m31, this.m32 = s.m31 * e.m12 + s.m32 * e.m22 + s.m33 * e.m32, this.m33 = s.m31 * e.m13 + s.m32 * e.m23 + s.m33 * e.m33, this;
7167
7163
  }
7168
7164
  append(t) {
@@ -7172,12 +7168,12 @@ class ft {
7172
7168
  return t.multiply(this), this;
7173
7169
  }
7174
7170
  inverse() {
7175
- const t = this.m11, e = this.m12, s = this.m13, n = this.m21, r = this.m22, a = this.m23, o = this.m31, h = this.m32, c = this.m33, l = c * r - a * h, d = -c * n + a * o, y = h * n - r * o;
7176
- let w = t * l + e * d + s * y;
7177
- return w ? (w = 1 / w, this.m11 = l * w, this.m12 = (-c * e + s * h) * w, this.m13 = (a * e - s * r) * w, this.m21 = d * w, this.m22 = (c * t - s * o) * w, this.m23 = (-a * t + s * n) * w, this.m31 = y * w, this.m32 = (-h * t + e * o) * w, this.m33 = (r * t - e * n) * w, this) : null;
7171
+ const t = this.m11, e = this.m12, s = this.m13, n = this.m21, r = this.m22, a = this.m23, o = this.m31, h = this.m32, c = this.m33, l = c * r - a * h, f = -c * n + a * o, y = h * n - r * o;
7172
+ let w = t * l + e * f + s * y;
7173
+ return w ? (w = 1 / w, this.m11 = l * w, this.m12 = (-c * e + s * h) * w, this.m13 = (a * e - s * r) * w, this.m21 = f * w, this.m22 = (c * t - s * o) * w, this.m23 = (-a * t + s * n) * w, this.m31 = y * w, this.m32 = (-h * t + e * o) * w, this.m33 = (r * t - e * n) * w, this) : null;
7178
7174
  }
7179
7175
  adjugate() {
7180
- const t = new ft();
7176
+ const t = new dt();
7181
7177
  return t.m11 = this.m22 * this.m33 - this.m32 * this.m23, t.m12 = this.m32 * this.m13 - this.m12 * this.m33, t.m13 = this.m12 * this.m23 - this.m22 * this.m13, t.m21 = this.m31 * this.m23 - this.m21 * this.m33, t.m22 = this.m11 * this.m33 - this.m31 * this.m13, t.m23 = this.m21 * this.m13 - this.m11 * this.m23, t.m31 = this.m21 * this.m32 - this.m31 * this.m22, t.m32 = this.m31 * this.m12 - this.m11 * this.m32, t.m33 = this.m11 * this.m22 - this.m21 * this.m12, t;
7182
7178
  }
7183
7179
  split() {
@@ -7193,8 +7189,8 @@ class ft {
7193
7189
  };
7194
7190
  }
7195
7191
  getGroupCoords(t) {
7196
- const e = this.value[0], s = this.value[1], n = this.value[2], r = this.value[3], a = this.value[4], o = this.value[5], h = t.value[0], c = t.value[1], l = t.value[2], d = t.value[3], y = t.value[4], w = t.value[5], m = h * d, E = c * l, P = (l * s - e * d) / (E - m), b = (h * s - e * c) / (m - E), x = (l * r - n * d) / (E - m), g = (h * r - n * c) / (m - E), p = (l * (o - w) + d * (y - a)) / (E - m), C = (h * (o - w) + c * (y - a)) / (m - E), S = [P, b, x, g, p, C];
7197
- return new ft(S);
7192
+ const e = this.value[0], s = this.value[1], n = this.value[2], r = this.value[3], a = this.value[4], o = this.value[5], h = t.value[0], c = t.value[1], l = t.value[2], f = t.value[3], y = t.value[4], w = t.value[5], m = h * f, E = c * l, P = (l * s - e * f) / (E - m), b = (h * s - e * c) / (m - E), x = (l * r - n * f) / (E - m), g = (h * r - n * c) / (m - E), p = (l * (o - w) + f * (y - a)) / (E - m), C = (h * (o - w) + c * (y - a)) / (m - E), S = [P, b, x, g, p, C];
7193
+ return new dt(S);
7198
7194
  }
7199
7195
  toString(t = 6) {
7200
7196
  return this.matrix3d.is2D() ? `matrix(${this.value.map((e) => Rt(e, t)).join(",")})` : this.matrix3d.toString();
@@ -7513,7 +7509,7 @@ class yt {
7513
7509
  }
7514
7510
  toMatrix(t) {
7515
7511
  const { scalarX: e, scalarY: s, skewX: n, skewY: r, x: a, y: o } = this.split(), h = [e, r, n, s, a, o];
7516
- return t ? (t.value = h, t) : new ft(h);
7512
+ return t ? (t.value = h, t) : new dt(h);
7517
7513
  }
7518
7514
  flatten() {
7519
7515
  return this.m31 = 0, this.m32 = 0, this.m33 = 1, this.m34 = 0, this.m14 = 0, this.m24 = 0, this.m43 = 0, this.m44 = 1, this;
@@ -7555,12 +7551,12 @@ class yt {
7555
7551
  * -> based on https://github.com/mrdoob/three.js/blob/master/src/math/Matrix4.js
7556
7552
  */
7557
7553
  inverse() {
7558
- const t = [], e = this.m11, s = this.m12, n = this.m13, r = this.m14, a = this.m21, o = this.m22, h = this.m23, c = this.m24, l = this.m31, d = this.m32, y = this.m33, w = this.m34, m = this.m41, E = this.m42, P = this.m43, b = this.m44;
7559
- t[0] = h * w * E - c * y * E + c * d * P - o * w * P - h * d * b + o * y * b, t[1] = r * y * E - n * w * E - r * d * P + s * w * P + n * d * b - s * y * b, t[2] = n * c * E - r * h * E + r * o * P - s * c * P - n * o * b + s * h * b, t[3] = r * h * d - n * c * d - r * o * y + s * c * y + n * o * w - s * h * w;
7554
+ const t = [], e = this.m11, s = this.m12, n = this.m13, r = this.m14, a = this.m21, o = this.m22, h = this.m23, c = this.m24, l = this.m31, f = this.m32, y = this.m33, w = this.m34, m = this.m41, E = this.m42, P = this.m43, b = this.m44;
7555
+ t[0] = h * w * E - c * y * E + c * f * P - o * w * P - h * f * b + o * y * b, t[1] = r * y * E - n * w * E - r * f * P + s * w * P + n * f * b - s * y * b, t[2] = n * c * E - r * h * E + r * o * P - s * c * P - n * o * b + s * h * b, t[3] = r * h * f - n * c * f - r * o * y + s * c * y + n * o * w - s * h * w;
7560
7556
  const x = e * t[0] + a * t[1] + l * t[2] + m * t[3];
7561
7557
  if (x == 0)
7562
7558
  return console.warn("Can't invert matrix, determinant is 0");
7563
- t[4] = c * y * m - h * w * m - c * l * P + a * w * P + h * l * b - a * y * b, t[5] = n * w * m - r * y * m + r * l * P - e * w * P - n * l * b + e * y * b, t[6] = r * h * m - n * c * m - r * a * P + e * c * P + n * a * b - e * h * b, t[7] = n * c * l - r * h * l + r * a * y - e * c * y - n * a * w + e * h * w, t[8] = o * w * m - c * d * m + c * l * E - a * w * E - o * l * b + a * d * b, t[9] = r * d * m - s * w * m - r * l * E + e * w * E + s * l * b - e * d * b, t[10] = s * c * m - r * o * m + r * a * E - e * c * E - s * a * b + e * o * b, t[11] = r * o * l - s * c * l - r * a * d + e * c * d + s * a * w - e * o * w, t[12] = h * d * m - o * y * m - h * l * E + a * y * E + o * l * P - a * d * P, t[13] = s * y * m - n * d * m + n * l * E - e * y * E - s * l * P + e * d * P, t[14] = n * o * m - s * h * m - n * a * E + e * h * E + s * a * P - e * o * P, t[15] = s * h * l - n * o * l + n * a * d - e * h * d - s * a * y + e * o * y, this.value = t, this.scalar(1 / x);
7559
+ t[4] = c * y * m - h * w * m - c * l * P + a * w * P + h * l * b - a * y * b, t[5] = n * w * m - r * y * m + r * l * P - e * w * P - n * l * b + e * y * b, t[6] = r * h * m - n * c * m - r * a * P + e * c * P + n * a * b - e * h * b, t[7] = n * c * l - r * h * l + r * a * y - e * c * y - n * a * w + e * h * w, t[8] = o * w * m - c * f * m + c * l * E - a * w * E - o * l * b + a * f * b, t[9] = r * f * m - s * w * m - r * l * E + e * w * E + s * l * b - e * f * b, t[10] = s * c * m - r * o * m + r * a * E - e * c * E - s * a * b + e * o * b, t[11] = r * o * l - s * c * l - r * a * f + e * c * f + s * a * w - e * o * w, t[12] = h * f * m - o * y * m - h * l * E + a * y * E + o * l * P - a * f * P, t[13] = s * y * m - n * f * m + n * l * E - e * y * E - s * l * P + e * f * P, t[14] = n * o * m - s * h * m - n * a * E + e * h * E + s * a * P - e * o * P, t[15] = s * h * l - n * o * l + n * a * f - e * h * f - s * a * y + e * o * y, this.value = t, this.scalar(1 / x);
7564
7560
  }
7565
7561
  multiply(t) {
7566
7562
  const e = this.clone();
@@ -7678,8 +7674,8 @@ class yt {
7678
7674
  const l = h - n;
7679
7675
  if (l == 0)
7680
7676
  return { x: e, y: s, z: n, mass: r };
7681
- const d = -n / l;
7682
- return e += d * (a - e), s += d * (o - s), { x: e, y: s, z: n, mass: r };
7677
+ const f = -n / l;
7678
+ return e += f * (a - e), s += f * (o - s), { x: e, y: s, z: n, mass: r };
7683
7679
  }
7684
7680
  // from homegeneous (euclid) to cartesian FLATTENED!!!! like a projection
7685
7681
  project(t) {
@@ -7690,12 +7686,12 @@ class yt {
7690
7686
  bounds(t, e, s, n) {
7691
7687
  const r = new ns({ x: t, y: e }), a = new ns({ x: t + s, y: e }), o = new ns({ x: t + s, y: e + n }), h = new ns({ x: t, y: e + n });
7692
7688
  ({ x: r.x, y: r.y, z: r.z, mass: r.mass } = this.project(r)), { x: a.x, y: a.y, z: a.z, mass: a.mass } = this.project(a), { x: o.x, y: o.y, z: o.z, mass: o.mass } = this.project(o), { x: h.x, y: h.y, z: h.z, mass: h.mass } = this.project(h);
7693
- const c = Math.min(r.x, a.x, o.x, h.x), l = Math.min(r.y, a.y, o.y, h.y), d = Math.max(r.x, a.x, o.x, h.x) - c, y = Math.max(r.y, a.y, o.y, h.y) - l;
7694
- return { x: c, y: l, width: d, height: y };
7689
+ const c = Math.min(r.x, a.x, o.x, h.x), l = Math.min(r.y, a.y, o.y, h.y), f = Math.max(r.x, a.x, o.x, h.x) - c, y = Math.max(r.y, a.y, o.y, h.y) - l;
7690
+ return { x: c, y: l, width: f, height: y };
7695
7691
  }
7696
7692
  }
7697
7693
  function _r(i) {
7698
- const t = new ft();
7694
+ const t = new dt();
7699
7695
  return i.replace(
7700
7696
  // /([a-z]+)\(?([^)a-z]+)\)?/gi,
7701
7697
  /([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,
@@ -7788,7 +7784,7 @@ function _r(i) {
7788
7784
  ), t;
7789
7785
  }
7790
7786
  function kt(i, t, e) {
7791
- const s = new ft();
7787
+ const s = new dt();
7792
7788
  return s.rotate(ot(i)), s.transformPoint({ x: t, y: e });
7793
7789
  }
7794
7790
  function Ar(i) {
@@ -7819,7 +7815,7 @@ function jh(i, t) {
7819
7815
  x: t.m31,
7820
7816
  y: t.m32,
7821
7817
  z: t.m33
7822
- }, r = i.transformPoint(e), a = i.transformPoint(s), o = i.transformPoint(n), h = new ft();
7818
+ }, r = i.transformPoint(e), a = i.transformPoint(s), o = i.transformPoint(n), h = new dt();
7823
7819
  return h.m11 = r.x, h.m12 = r.y, h.m13 = r.z, h.m21 = a.x, h.m22 = a.y, h.m23 = a.z, h.m31 = o.x, h.m32 = o.y, h.m33 = o.z, h;
7824
7820
  }
7825
7821
  function $h(i, t) {
@@ -7899,7 +7895,7 @@ class k {
7899
7895
  };
7900
7896
  static getVNode(t, e) {
7901
7897
  let s = t.getAttribute("id") || "";
7902
- s || (s = e || fi(), t.setAttribute("id", s)), this.origins.get(s) || this.origins.set(s, ae(t.tagName, {}, [], t));
7898
+ s || (s = e || di(), t.setAttribute("id", s)), this.origins.get(s) || this.origins.set(s, ae(t.tagName, {}, [], t));
7903
7899
  const n = this.updates.get(s) || ae(t.tagName, {}, [], t);
7904
7900
  return {
7905
7901
  vnode: n,
@@ -8902,7 +8898,7 @@ class k {
8902
8898
  return a;
8903
8899
  const o = t.split(""), h = "...";
8904
8900
  let c = r ? k.measureText(h, s, n).width : 0;
8905
- for (let l = 0, d = o.length; l < d; l++)
8901
+ for (let l = 0, f = o.length; l < f; l++)
8906
8902
  if (c += k.measureText(o[l], s, n).width, c > e) {
8907
8903
  r && (a += h);
8908
8904
  break;
@@ -8941,26 +8937,26 @@ var Dr = { exports: {} };
8941
8937
  (function(i) {
8942
8938
  (function(t, e, s, n) {
8943
8939
  var r = ["", "webkit", "Moz", "MS", "ms", "o"], a = e.createElement("div"), o = "function", h = Math.round, c = Math.abs, l = Date.now;
8944
- function d(u, f, v) {
8945
- return setTimeout(g(u, v), f);
8940
+ function f(u, d, v) {
8941
+ return setTimeout(g(u, v), d);
8946
8942
  }
8947
- function y(u, f, v) {
8948
- return Array.isArray(u) ? (w(u, v[f], v), !0) : !1;
8943
+ function y(u, d, v) {
8944
+ return Array.isArray(u) ? (w(u, v[d], v), !0) : !1;
8949
8945
  }
8950
- function w(u, f, v) {
8946
+ function w(u, d, v) {
8951
8947
  var _;
8952
8948
  if (u)
8953
8949
  if (u.forEach)
8954
- u.forEach(f, v);
8950
+ u.forEach(d, v);
8955
8951
  else if (u.length !== n)
8956
8952
  for (_ = 0; _ < u.length; )
8957
- f.call(v, u[_], _, u), _++;
8953
+ d.call(v, u[_], _, u), _++;
8958
8954
  else
8959
8955
  for (_ in u)
8960
- u.hasOwnProperty(_) && f.call(v, u[_], _, u);
8956
+ u.hasOwnProperty(_) && d.call(v, u[_], _, u);
8961
8957
  }
8962
- function m(u, f, v) {
8963
- var _ = "DEPRECATED METHOD: " + f + `
8958
+ function m(u, d, v) {
8959
+ var _ = "DEPRECATED METHOD: " + d + `
8964
8960
  ` + v + ` AT
8965
8961
  `;
8966
8962
  return function() {
@@ -8969,10 +8965,10 @@ var Dr = { exports: {} };
8969
8965
  };
8970
8966
  }
8971
8967
  var E;
8972
- typeof Object.assign != "function" ? E = function(f) {
8973
- if (f === n || f === null)
8968
+ typeof Object.assign != "function" ? E = function(d) {
8969
+ if (d === n || d === null)
8974
8970
  throw new TypeError("Cannot convert undefined or null to object");
8975
- for (var v = Object(f), _ = 1; _ < arguments.length; _++) {
8971
+ for (var v = Object(d), _ = 1; _ < arguments.length; _++) {
8976
8972
  var M = arguments[_];
8977
8973
  if (M !== n && M !== null)
8978
8974
  for (var L in M)
@@ -8980,57 +8976,57 @@ var Dr = { exports: {} };
8980
8976
  }
8981
8977
  return v;
8982
8978
  } : E = Object.assign;
8983
- var P = m(function(f, v, _) {
8979
+ var P = m(function(d, v, _) {
8984
8980
  for (var M = Object.keys(v), L = 0; L < M.length; )
8985
- (!_ || _ && f[M[L]] === n) && (f[M[L]] = v[M[L]]), L++;
8986
- return f;
8987
- }, "extend", "Use `assign`."), b = m(function(f, v) {
8988
- return P(f, v, !0);
8981
+ (!_ || _ && d[M[L]] === n) && (d[M[L]] = v[M[L]]), L++;
8982
+ return d;
8983
+ }, "extend", "Use `assign`."), b = m(function(d, v) {
8984
+ return P(d, v, !0);
8989
8985
  }, "merge", "Use `assign`.");
8990
- function x(u, f, v) {
8991
- var _ = f.prototype, M;
8986
+ function x(u, d, v) {
8987
+ var _ = d.prototype, M;
8992
8988
  M = u.prototype = Object.create(_), M.constructor = u, M._super = _, v && E(M, v);
8993
8989
  }
8994
- function g(u, f) {
8990
+ function g(u, d) {
8995
8991
  return function() {
8996
- return u.apply(f, arguments);
8992
+ return u.apply(d, arguments);
8997
8993
  };
8998
8994
  }
8999
- function p(u, f) {
9000
- return typeof u == o ? u.apply(f && f[0] || n, f) : u;
8995
+ function p(u, d) {
8996
+ return typeof u == o ? u.apply(d && d[0] || n, d) : u;
9001
8997
  }
9002
- function C(u, f) {
9003
- return u === n ? f : u;
8998
+ function C(u, d) {
8999
+ return u === n ? d : u;
9004
9000
  }
9005
- function S(u, f, v) {
9006
- w($(f), function(_) {
9001
+ function S(u, d, v) {
9002
+ w($(d), function(_) {
9007
9003
  u.addEventListener(_, v, !1);
9008
9004
  });
9009
9005
  }
9010
- function F(u, f, v) {
9011
- w($(f), function(_) {
9006
+ function F(u, d, v) {
9007
+ w($(d), function(_) {
9012
9008
  u.removeEventListener(_, v, !1);
9013
9009
  });
9014
9010
  }
9015
- function z(u, f) {
9011
+ function z(u, d) {
9016
9012
  for (; u; ) {
9017
- if (u == f)
9013
+ if (u == d)
9018
9014
  return !0;
9019
9015
  u = u.parentNode;
9020
9016
  }
9021
9017
  return !1;
9022
9018
  }
9023
- function G(u, f) {
9024
- return u.indexOf(f) > -1;
9019
+ function G(u, d) {
9020
+ return u.indexOf(d) > -1;
9025
9021
  }
9026
9022
  function $(u) {
9027
9023
  return u.trim().split(/\s+/g);
9028
9024
  }
9029
- function W(u, f, v) {
9025
+ function W(u, d, v) {
9030
9026
  if (u.indexOf && !v)
9031
- return u.indexOf(f);
9027
+ return u.indexOf(d);
9032
9028
  for (var _ = 0; _ < u.length; ) {
9033
- if (v && u[_][v] == f || !v && u[_] === f)
9029
+ if (v && u[_][v] == d || !v && u[_] === d)
9034
9030
  return _;
9035
9031
  _++;
9036
9032
  }
@@ -9039,18 +9035,18 @@ var Dr = { exports: {} };
9039
9035
  function st(u) {
9040
9036
  return Array.prototype.slice.call(u, 0);
9041
9037
  }
9042
- function wt(u, f, v) {
9038
+ function wt(u, d, v) {
9043
9039
  for (var _ = [], M = [], L = 0; L < u.length; ) {
9044
- var Y = f ? u[L][f] : u[L];
9040
+ var Y = d ? u[L][d] : u[L];
9045
9041
  W(M, Y) < 0 && _.push(u[L]), M[L] = Y, L++;
9046
9042
  }
9047
- return v && (f ? _ = _.sort(function(et, rt) {
9048
- return et[f] > rt[f];
9043
+ return v && (d ? _ = _.sort(function(et, rt) {
9044
+ return et[d] > rt[d];
9049
9045
  }) : _ = _.sort()), _;
9050
9046
  }
9051
- function lt(u, f) {
9052
- for (var v, _, M = f[0].toUpperCase() + f.slice(1), L = 0; L < r.length; ) {
9053
- if (v = r[L], _ = v ? v + M : f, _ in u)
9047
+ function lt(u, d) {
9048
+ for (var v, _, M = d[0].toUpperCase() + d.slice(1), L = 0; L < r.length; ) {
9049
+ if (v = r[L], _ = v ? v + M : d, _ in u)
9054
9050
  return _;
9055
9051
  L++;
9056
9052
  }
@@ -9061,13 +9057,13 @@ var Dr = { exports: {} };
9061
9057
  return ce++;
9062
9058
  }
9063
9059
  function se(u) {
9064
- var f = u.ownerDocument || u;
9065
- return f.defaultView || f.parentWindow || t;
9060
+ var d = u.ownerDocument || u;
9061
+ return d.defaultView || d.parentWindow || t;
9066
9062
  }
9067
9063
  var le = /mobile|tablet|ip(ad|hone|od)|android/i, R = "ontouchstart" in t, I = lt(t, "PointerEvent") !== n, N = R && le.test(navigator.userAgent), U = "touch", nt = "pen", Et = "mouse", ze = "kinect", Ve = 25, K = 1, _t = 2, j = 4, D = 8, qe = 1, be = 2, ve = 4, Se = 8, Ce = 16, At = be | ve, ie = Se | Ce, Ii = At | ie, ki = ["x", "y"], He = ["clientX", "clientY"];
9068
- function bt(u, f) {
9064
+ function bt(u, d) {
9069
9065
  var v = this;
9070
- this.manager = u, this.callback = f, this.element = u.element, this.target = u.options.inputTarget, this.domHandler = function(_) {
9066
+ this.manager = u, this.callback = d, this.element = u.element, this.target = u.options.inputTarget, this.domHandler = function(_) {
9071
9067
  p(u.options.enable, [u]) && v.handler(_);
9072
9068
  }, this.init();
9073
9069
  }
@@ -9092,94 +9088,94 @@ var Dr = { exports: {} };
9092
9088
  }
9093
9089
  };
9094
9090
  function Xr(u) {
9095
- var f, v = u.options.inputClass;
9096
- return v ? f = v : I ? f = Ms : N ? f = We : R ? f = Is : f = $e, new f(u, Ur);
9097
- }
9098
- function Ur(u, f, v) {
9099
- var _ = v.pointers.length, M = v.changedPointers.length, L = f & K && _ - M === 0, Y = f & (j | D) && _ - M === 0;
9100
- v.isFirst = !!L, v.isFinal = !!Y, L && (u.session = {}), v.eventType = f, Gr(u, v), u.emit("hammer.input", v), u.recognize(v), u.session.prevInput = v;
9101
- }
9102
- function Gr(u, f) {
9103
- var v = u.session, _ = f.pointers, M = _.length;
9104
- v.firstInput || (v.firstInput = Li(f)), M > 1 && !v.firstMultiple ? v.firstMultiple = Li(f) : M === 1 && (v.firstMultiple = !1);
9105
- var L = v.firstInput, Y = v.firstMultiple, Q = Y ? Y.center : L.center, et = f.center = Ri(_);
9106
- f.timeStamp = l(), f.deltaTime = f.timeStamp - L.timeStamp, f.angle = Ds(Q, et), f.distance = je(Q, et), zr(v, f), f.offsetDirection = Fi(f.deltaX, f.deltaY);
9107
- var rt = Oi(f.deltaTime, f.deltaX, f.deltaY);
9108
- f.overallVelocityX = rt.x, f.overallVelocityY = rt.y, f.overallVelocity = c(rt.x) > c(rt.y) ? rt.x : rt.y, f.scale = Y ? Hr(Y.pointers, _) : 1, f.rotation = Y ? qr(Y.pointers, _) : 0, f.maxPointers = v.prevInput ? f.pointers.length > v.prevInput.maxPointers ? f.pointers.length : v.prevInput.maxPointers : f.pointers.length, Vr(v, f);
9091
+ var d, v = u.options.inputClass;
9092
+ return v ? d = v : I ? d = Ms : N ? d = We : R ? d = Is : d = $e, new d(u, Ur);
9093
+ }
9094
+ function Ur(u, d, v) {
9095
+ var _ = v.pointers.length, M = v.changedPointers.length, L = d & K && _ - M === 0, Y = d & (j | D) && _ - M === 0;
9096
+ v.isFirst = !!L, v.isFinal = !!Y, L && (u.session = {}), v.eventType = d, Gr(u, v), u.emit("hammer.input", v), u.recognize(v), u.session.prevInput = v;
9097
+ }
9098
+ function Gr(u, d) {
9099
+ var v = u.session, _ = d.pointers, M = _.length;
9100
+ v.firstInput || (v.firstInput = Li(d)), M > 1 && !v.firstMultiple ? v.firstMultiple = Li(d) : M === 1 && (v.firstMultiple = !1);
9101
+ var L = v.firstInput, Y = v.firstMultiple, Q = Y ? Y.center : L.center, et = d.center = Ri(_);
9102
+ d.timeStamp = l(), d.deltaTime = d.timeStamp - L.timeStamp, d.angle = Ds(Q, et), d.distance = je(Q, et), zr(v, d), d.offsetDirection = Fi(d.deltaX, d.deltaY);
9103
+ var rt = Oi(d.deltaTime, d.deltaX, d.deltaY);
9104
+ d.overallVelocityX = rt.x, d.overallVelocityY = rt.y, d.overallVelocity = c(rt.x) > c(rt.y) ? rt.x : rt.y, d.scale = Y ? Hr(Y.pointers, _) : 1, d.rotation = Y ? qr(Y.pointers, _) : 0, d.maxPointers = v.prevInput ? d.pointers.length > v.prevInput.maxPointers ? d.pointers.length : v.prevInput.maxPointers : d.pointers.length, Vr(v, d);
9109
9105
  var Mt = u.element;
9110
- z(f.srcEvent.target, Mt) && (Mt = f.srcEvent.target), f.target = Mt;
9106
+ z(d.srcEvent.target, Mt) && (Mt = d.srcEvent.target), d.target = Mt;
9111
9107
  }
9112
- function zr(u, f) {
9113
- var v = f.center, _ = u.offsetDelta || {}, M = u.prevDelta || {}, L = u.prevInput || {};
9114
- (f.eventType === K || L.eventType === j) && (M = u.prevDelta = {
9108
+ function zr(u, d) {
9109
+ var v = d.center, _ = u.offsetDelta || {}, M = u.prevDelta || {}, L = u.prevInput || {};
9110
+ (d.eventType === K || L.eventType === j) && (M = u.prevDelta = {
9115
9111
  x: L.deltaX || 0,
9116
9112
  y: L.deltaY || 0
9117
9113
  }, _ = u.offsetDelta = {
9118
9114
  x: v.x,
9119
9115
  y: v.y
9120
- }), f.deltaX = M.x + (v.x - _.x), f.deltaY = M.y + (v.y - _.y);
9116
+ }), d.deltaX = M.x + (v.x - _.x), d.deltaY = M.y + (v.y - _.y);
9121
9117
  }
9122
- function Vr(u, f) {
9123
- var v = u.lastInterval || f, _ = f.timeStamp - v.timeStamp, M, L, Y, Q;
9124
- if (f.eventType != D && (_ > Ve || v.velocity === n)) {
9125
- var et = f.deltaX - v.deltaX, rt = f.deltaY - v.deltaY, Mt = Oi(_, et, rt);
9126
- L = Mt.x, Y = Mt.y, M = c(Mt.x) > c(Mt.y) ? Mt.x : Mt.y, Q = Fi(et, rt), u.lastInterval = f;
9118
+ function Vr(u, d) {
9119
+ var v = u.lastInterval || d, _ = d.timeStamp - v.timeStamp, M, L, Y, Q;
9120
+ if (d.eventType != D && (_ > Ve || v.velocity === n)) {
9121
+ var et = d.deltaX - v.deltaX, rt = d.deltaY - v.deltaY, Mt = Oi(_, et, rt);
9122
+ L = Mt.x, Y = Mt.y, M = c(Mt.x) > c(Mt.y) ? Mt.x : Mt.y, Q = Fi(et, rt), u.lastInterval = d;
9127
9123
  } else
9128
9124
  M = v.velocity, L = v.velocityX, Y = v.velocityY, Q = v.direction;
9129
- f.velocity = M, f.velocityX = L, f.velocityY = Y, f.direction = Q;
9125
+ d.velocity = M, d.velocityX = L, d.velocityY = Y, d.direction = Q;
9130
9126
  }
9131
9127
  function Li(u) {
9132
- for (var f = [], v = 0; v < u.pointers.length; )
9133
- f[v] = {
9128
+ for (var d = [], v = 0; v < u.pointers.length; )
9129
+ d[v] = {
9134
9130
  clientX: h(u.pointers[v].clientX),
9135
9131
  clientY: h(u.pointers[v].clientY)
9136
9132
  }, v++;
9137
9133
  return {
9138
9134
  timeStamp: l(),
9139
- pointers: f,
9140
- center: Ri(f),
9135
+ pointers: d,
9136
+ center: Ri(d),
9141
9137
  deltaX: u.deltaX,
9142
9138
  deltaY: u.deltaY
9143
9139
  };
9144
9140
  }
9145
9141
  function Ri(u) {
9146
- var f = u.length;
9147
- if (f === 1)
9142
+ var d = u.length;
9143
+ if (d === 1)
9148
9144
  return {
9149
9145
  x: h(u[0].clientX),
9150
9146
  y: h(u[0].clientY)
9151
9147
  };
9152
- for (var v = 0, _ = 0, M = 0; M < f; )
9148
+ for (var v = 0, _ = 0, M = 0; M < d; )
9153
9149
  v += u[M].clientX, _ += u[M].clientY, M++;
9154
9150
  return {
9155
- x: h(v / f),
9156
- y: h(_ / f)
9151
+ x: h(v / d),
9152
+ y: h(_ / d)
9157
9153
  };
9158
9154
  }
9159
- function Oi(u, f, v) {
9155
+ function Oi(u, d, v) {
9160
9156
  return {
9161
- x: f / u || 0,
9157
+ x: d / u || 0,
9162
9158
  y: v / u || 0
9163
9159
  };
9164
9160
  }
9165
- function Fi(u, f) {
9166
- return u === f ? qe : c(u) >= c(f) ? u < 0 ? be : ve : f < 0 ? Se : Ce;
9161
+ function Fi(u, d) {
9162
+ return u === d ? qe : c(u) >= c(d) ? u < 0 ? be : ve : d < 0 ? Se : Ce;
9167
9163
  }
9168
- function je(u, f, v) {
9164
+ function je(u, d, v) {
9169
9165
  v || (v = ki);
9170
- var _ = f[v[0]] - u[v[0]], M = f[v[1]] - u[v[1]];
9166
+ var _ = d[v[0]] - u[v[0]], M = d[v[1]] - u[v[1]];
9171
9167
  return Math.sqrt(_ * _ + M * M);
9172
9168
  }
9173
- function Ds(u, f, v) {
9169
+ function Ds(u, d, v) {
9174
9170
  v || (v = ki);
9175
- var _ = f[v[0]] - u[v[0]], M = f[v[1]] - u[v[1]];
9171
+ var _ = d[v[0]] - u[v[0]], M = d[v[1]] - u[v[1]];
9176
9172
  return Math.atan2(M, _) * 180 / Math.PI;
9177
9173
  }
9178
- function qr(u, f) {
9179
- return Ds(f[1], f[0], He) + Ds(u[1], u[0], He);
9174
+ function qr(u, d) {
9175
+ return Ds(d[1], d[0], He) + Ds(u[1], u[0], He);
9180
9176
  }
9181
- function Hr(u, f) {
9182
- return je(f[0], f[1], He) / je(u[0], u[1], He);
9177
+ function Hr(u, d) {
9178
+ return je(d[0], d[1], He) / je(u[0], u[1], He);
9183
9179
  }
9184
9180
  var jr = {
9185
9181
  mousedown: K,
@@ -9194,13 +9190,13 @@ var Dr = { exports: {} };
9194
9190
  * handle mouse events
9195
9191
  * @param {Object} ev
9196
9192
  */
9197
- handler: function(f) {
9198
- var v = jr[f.type];
9199
- v & K && f.button === 0 && (this.pressed = !0), v & _t && f.which !== 1 && (v = j), this.pressed && (v & j && (this.pressed = !1), this.callback(this.manager, v, {
9200
- pointers: [f],
9201
- changedPointers: [f],
9193
+ handler: function(d) {
9194
+ var v = jr[d.type];
9195
+ v & K && d.button === 0 && (this.pressed = !0), v & _t && d.which !== 1 && (v = j), this.pressed && (v & j && (this.pressed = !1), this.callback(this.manager, v, {
9196
+ pointers: [d],
9197
+ changedPointers: [d],
9202
9198
  pointerType: Et,
9203
- srcEvent: f
9199
+ srcEvent: d
9204
9200
  }));
9205
9201
  }
9206
9202
  });
@@ -9226,13 +9222,13 @@ var Dr = { exports: {} };
9226
9222
  * handle mouse events
9227
9223
  * @param {Object} ev
9228
9224
  */
9229
- handler: function(f) {
9230
- var v = this.store, _ = !1, M = f.type.toLowerCase().replace("ms", ""), L = Jr[M], Y = Zr[f.pointerType] || f.pointerType, Q = Y == U, et = W(v, f.pointerId, "pointerId");
9231
- L & K && (f.button === 0 || Q) ? et < 0 && (v.push(f), et = v.length - 1) : L & (j | D) && (_ = !0), !(et < 0) && (v[et] = f, this.callback(this.manager, L, {
9225
+ handler: function(d) {
9226
+ var v = this.store, _ = !1, M = d.type.toLowerCase().replace("ms", ""), L = Jr[M], Y = Zr[d.pointerType] || d.pointerType, Q = Y == U, et = W(v, d.pointerId, "pointerId");
9227
+ L & K && (d.button === 0 || Q) ? et < 0 && (v.push(d), et = v.length - 1) : L & (j | D) && (_ = !0), !(et < 0) && (v[et] = d, this.callback(this.manager, L, {
9232
9228
  pointers: v,
9233
- changedPointers: [f],
9229
+ changedPointers: [d],
9234
9230
  pointerType: Y,
9235
- srcEvent: f
9231
+ srcEvent: d
9236
9232
  }), _ && v.splice(et, 1));
9237
9233
  }
9238
9234
  });
@@ -9246,22 +9242,22 @@ var Dr = { exports: {} };
9246
9242
  this.evTarget = Qr, this.evWin = ta, this.started = !1, bt.apply(this, arguments);
9247
9243
  }
9248
9244
  x(Bi, bt, {
9249
- handler: function(f) {
9250
- var v = Kr[f.type];
9245
+ handler: function(d) {
9246
+ var v = Kr[d.type];
9251
9247
  if (v === K && (this.started = !0), !!this.started) {
9252
- var _ = ea.call(this, f, v);
9248
+ var _ = ea.call(this, d, v);
9253
9249
  v & (j | D) && _[0].length - _[1].length === 0 && (this.started = !1), this.callback(this.manager, v, {
9254
9250
  pointers: _[0],
9255
9251
  changedPointers: _[1],
9256
9252
  pointerType: U,
9257
- srcEvent: f
9253
+ srcEvent: d
9258
9254
  });
9259
9255
  }
9260
9256
  }
9261
9257
  });
9262
- function ea(u, f) {
9258
+ function ea(u, d) {
9263
9259
  var v = st(u.touches), _ = st(u.changedTouches);
9264
- return f & (j | D) && (v = wt(v.concat(_), "identifier", !0)), [v, _];
9260
+ return d & (j | D) && (v = wt(v.concat(_), "identifier", !0)), [v, _];
9265
9261
  }
9266
9262
  var sa = {
9267
9263
  touchstart: K,
@@ -9273,28 +9269,28 @@ var Dr = { exports: {} };
9273
9269
  this.evTarget = ia, this.targetIds = {}, bt.apply(this, arguments);
9274
9270
  }
9275
9271
  x(We, bt, {
9276
- handler: function(f) {
9277
- var v = sa[f.type], _ = na.call(this, f, v);
9272
+ handler: function(d) {
9273
+ var v = sa[d.type], _ = na.call(this, d, v);
9278
9274
  _ && this.callback(this.manager, v, {
9279
9275
  pointers: _[0],
9280
9276
  changedPointers: _[1],
9281
9277
  pointerType: U,
9282
- srcEvent: f
9278
+ srcEvent: d
9283
9279
  });
9284
9280
  }
9285
9281
  });
9286
- function na(u, f) {
9282
+ function na(u, d) {
9287
9283
  var v = st(u.touches), _ = this.targetIds;
9288
- if (f & (K | _t) && v.length === 1)
9284
+ if (d & (K | _t) && v.length === 1)
9289
9285
  return _[v[0].identifier] = !0, [v, v];
9290
9286
  var M, L, Y = st(u.changedTouches), Q = [], et = this.target;
9291
9287
  if (L = v.filter(function(rt) {
9292
9288
  return z(rt.target, et);
9293
- }), f === K)
9289
+ }), d === K)
9294
9290
  for (M = 0; M < L.length; )
9295
9291
  _[L[M].identifier] = !0, M++;
9296
9292
  for (M = 0; M < Y.length; )
9297
- _[Y[M].identifier] && Q.push(Y[M]), f & (j | D) && delete _[Y[M].identifier], M++;
9293
+ _[Y[M].identifier] && Q.push(Y[M]), d & (j | D) && delete _[Y[M].identifier], M++;
9298
9294
  if (Q.length)
9299
9295
  return [
9300
9296
  // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
@@ -9315,14 +9311,14 @@ var Dr = { exports: {} };
9315
9311
  * @param {String} inputEvent
9316
9312
  * @param {Object} inputData
9317
9313
  */
9318
- handler: function(f, v, _) {
9314
+ handler: function(d, v, _) {
9319
9315
  var M = _.pointerType == U, L = _.pointerType == Et;
9320
9316
  if (!(L && _.sourceCapabilities && _.sourceCapabilities.firesTouchEvents)) {
9321
9317
  if (M)
9322
9318
  aa.call(this, v, _);
9323
9319
  else if (L && oa.call(this, _))
9324
9320
  return;
9325
- this.callback(f, v, _);
9321
+ this.callback(d, v, _);
9326
9322
  }
9327
9323
  },
9328
9324
  /**
@@ -9332,13 +9328,13 @@ var Dr = { exports: {} };
9332
9328
  this.touch.destroy(), this.mouse.destroy();
9333
9329
  }
9334
9330
  });
9335
- function aa(u, f) {
9336
- u & K ? (this.primaryTouch = f.changedPointers[0].identifier, Ui.call(this, f)) : u & (j | D) && Ui.call(this, f);
9331
+ function aa(u, d) {
9332
+ u & K ? (this.primaryTouch = d.changedPointers[0].identifier, Ui.call(this, d)) : u & (j | D) && Ui.call(this, d);
9337
9333
  }
9338
9334
  function Ui(u) {
9339
- var f = u.changedPointers[0];
9340
- if (f.identifier === this.primaryTouch) {
9341
- var v = { x: f.clientX, y: f.clientY };
9335
+ var d = u.changedPointers[0];
9336
+ if (d.identifier === this.primaryTouch) {
9337
+ var v = { x: d.clientX, y: d.clientY };
9342
9338
  this.lastTouches.push(v);
9343
9339
  var _ = this.lastTouches, M = function() {
9344
9340
  var L = _.indexOf(v);
@@ -9348,16 +9344,16 @@ var Dr = { exports: {} };
9348
9344
  }
9349
9345
  }
9350
9346
  function oa(u) {
9351
- for (var f = u.srcEvent.clientX, v = u.srcEvent.clientY, _ = 0; _ < this.lastTouches.length; _++) {
9352
- var M = this.lastTouches[_], L = Math.abs(f - M.x), Y = Math.abs(v - M.y);
9347
+ for (var d = u.srcEvent.clientX, v = u.srcEvent.clientY, _ = 0; _ < this.lastTouches.length; _++) {
9348
+ var M = this.lastTouches[_], L = Math.abs(d - M.x), Y = Math.abs(v - M.y);
9353
9349
  if (L <= Xi && Y <= Xi)
9354
9350
  return !0;
9355
9351
  }
9356
9352
  return !1;
9357
9353
  }
9358
9354
  var Gi = lt(a.style, "touchAction"), zi = Gi !== n, Vi = "compute", qi = "auto", ks = "manipulation", ne = "none", Ee = "pan-x", Te = "pan-y", Je = ca();
9359
- function Ls(u, f) {
9360
- this.manager = u, this.set(f);
9355
+ function Ls(u, d) {
9356
+ this.manager = u, this.set(d);
9361
9357
  }
9362
9358
  Ls.prototype = {
9363
9359
  /**
@@ -9379,8 +9375,8 @@ var Dr = { exports: {} };
9379
9375
  */
9380
9376
  compute: function() {
9381
9377
  var u = [];
9382
- return w(this.manager.recognizers, function(f) {
9383
- p(f.options.enable, [f]) && (u = u.concat(f.getTouchAction()));
9378
+ return w(this.manager.recognizers, function(d) {
9379
+ p(d.options.enable, [d]) && (u = u.concat(d.getTouchAction()));
9384
9380
  }), ha(u.join(" "));
9385
9381
  },
9386
9382
  /**
@@ -9388,9 +9384,9 @@ var Dr = { exports: {} };
9388
9384
  * @param {Object} input
9389
9385
  */
9390
9386
  preventDefaults: function(u) {
9391
- var f = u.srcEvent, v = u.offsetDirection;
9387
+ var d = u.srcEvent, v = u.offsetDirection;
9392
9388
  if (this.manager.session.prevented) {
9393
- f.preventDefault();
9389
+ d.preventDefault();
9394
9390
  return;
9395
9391
  }
9396
9392
  var _ = this.actions, M = G(_, ne) && !Je[ne], L = G(_, Te) && !Je[Te], Y = G(_, Ee) && !Je[Ee];
@@ -9400,7 +9396,7 @@ var Dr = { exports: {} };
9400
9396
  return;
9401
9397
  }
9402
9398
  if (!(Y && L) && (M || L && v & At || Y && v & ie))
9403
- return this.preventSrc(f);
9399
+ return this.preventSrc(d);
9404
9400
  },
9405
9401
  /**
9406
9402
  * call preventDefault to prevent the browser's default behavior (scrolling in most cases)
@@ -9413,15 +9409,15 @@ var Dr = { exports: {} };
9413
9409
  function ha(u) {
9414
9410
  if (G(u, ne))
9415
9411
  return ne;
9416
- var f = G(u, Ee), v = G(u, Te);
9417
- return f && v ? ne : f || v ? f ? Ee : Te : G(u, ks) ? ks : qi;
9412
+ var d = G(u, Ee), v = G(u, Te);
9413
+ return d && v ? ne : d || v ? d ? Ee : Te : G(u, ks) ? ks : qi;
9418
9414
  }
9419
9415
  function ca() {
9420
9416
  if (!zi)
9421
9417
  return !1;
9422
- var u = {}, f = t.CSS && t.CSS.supports;
9418
+ var u = {}, d = t.CSS && t.CSS.supports;
9423
9419
  return ["auto", "manipulation", "pan-y", "pan-x", "pan-x pan-y", "none"].forEach(function(v) {
9424
- u[v] = f ? t.CSS.supports("touch-action", v) : !0;
9420
+ u[v] = d ? t.CSS.supports("touch-action", v) : !0;
9425
9421
  }), u;
9426
9422
  }
9427
9423
  var Ze = 1, vt = 2, ue = 4, Ht = 8, Ft = Ht, Pe = 16, Dt = 32;
@@ -9450,8 +9446,8 @@ var Dr = { exports: {} };
9450
9446
  recognizeWith: function(u) {
9451
9447
  if (y(u, "recognizeWith", this))
9452
9448
  return this;
9453
- var f = this.simultaneous;
9454
- return u = Ke(u, this), f[u.id] || (f[u.id] = u, u.recognizeWith(this)), this;
9449
+ var d = this.simultaneous;
9450
+ return u = Ke(u, this), d[u.id] || (d[u.id] = u, u.recognizeWith(this)), this;
9455
9451
  },
9456
9452
  /**
9457
9453
  * drop the simultaneous link. it doesnt remove the link on the other recognizer.
@@ -9469,8 +9465,8 @@ var Dr = { exports: {} };
9469
9465
  requireFailure: function(u) {
9470
9466
  if (y(u, "requireFailure", this))
9471
9467
  return this;
9472
- var f = this.requireFail;
9473
- return u = Ke(u, this), W(f, u) === -1 && (f.push(u), u.requireFailure(this)), this;
9468
+ var d = this.requireFail;
9469
+ return u = Ke(u, this), W(d, u) === -1 && (d.push(u), u.requireFailure(this)), this;
9474
9470
  },
9475
9471
  /**
9476
9472
  * drop the requireFailure link. it does not remove the link on the other recognizer.
@@ -9481,8 +9477,8 @@ var Dr = { exports: {} };
9481
9477
  if (y(u, "dropRequireFailure", this))
9482
9478
  return this;
9483
9479
  u = Ke(u, this);
9484
- var f = W(this.requireFail, u);
9485
- return f > -1 && this.requireFail.splice(f, 1), this;
9480
+ var d = W(this.requireFail, u);
9481
+ return d > -1 && this.requireFail.splice(d, 1), this;
9486
9482
  },
9487
9483
  /**
9488
9484
  * has require failures boolean
@@ -9505,11 +9501,11 @@ var Dr = { exports: {} };
9505
9501
  * @param {Object} input
9506
9502
  */
9507
9503
  emit: function(u) {
9508
- var f = this, v = this.state;
9504
+ var d = this, v = this.state;
9509
9505
  function _(M) {
9510
- f.manager.emit(M, u);
9506
+ d.manager.emit(M, u);
9511
9507
  }
9512
- v < Ht && _(f.options.event + Hi(v)), _(f.options.event), u.additionalEvent && _(u.additionalEvent), v >= Ht && _(f.options.event + Hi(v));
9508
+ v < Ht && _(d.options.event + Hi(v)), _(d.options.event), u.additionalEvent && _(u.additionalEvent), v >= Ht && _(d.options.event + Hi(v));
9513
9509
  },
9514
9510
  /**
9515
9511
  * Check that all the require failure recognizers has failed,
@@ -9539,12 +9535,12 @@ var Dr = { exports: {} };
9539
9535
  * @param {Object} inputData
9540
9536
  */
9541
9537
  recognize: function(u) {
9542
- var f = E({}, u);
9543
- if (!p(this.options.enable, [this, f])) {
9538
+ var d = E({}, u);
9539
+ if (!p(this.options.enable, [this, d])) {
9544
9540
  this.reset(), this.state = Dt;
9545
9541
  return;
9546
9542
  }
9547
- this.state & (Ft | Pe | Dt) && (this.state = Ze), this.state = this.process(f), this.state & (vt | ue | Ht | Pe) && this.tryEmit(f);
9543
+ this.state & (Ft | Pe | Dt) && (this.state = Ze), this.state = this.process(d), this.state & (vt | ue | Ht | Pe) && this.tryEmit(d);
9548
9544
  },
9549
9545
  /**
9550
9546
  * return the state of the recognizer
@@ -9577,8 +9573,8 @@ var Dr = { exports: {} };
9577
9573
  function ji(u) {
9578
9574
  return u == Ce ? "down" : u == Se ? "up" : u == be ? "left" : u == ve ? "right" : "";
9579
9575
  }
9580
- function Ke(u, f) {
9581
- var v = f.manager;
9576
+ function Ke(u, d) {
9577
+ var v = d.manager;
9582
9578
  return v ? v.get(u) : u;
9583
9579
  }
9584
9580
  function Tt() {
@@ -9603,8 +9599,8 @@ var Dr = { exports: {} };
9603
9599
  * @returns {Boolean} recognized
9604
9600
  */
9605
9601
  attrTest: function(u) {
9606
- var f = this.options.pointers;
9607
- return f === 0 || u.pointers.length === f;
9602
+ var d = this.options.pointers;
9603
+ return d === 0 || u.pointers.length === d;
9608
9604
  },
9609
9605
  /**
9610
9606
  * Process the input and return the state for the recognizer
@@ -9613,8 +9609,8 @@ var Dr = { exports: {} };
9613
9609
  * @returns {*} State
9614
9610
  */
9615
9611
  process: function(u) {
9616
- var f = this.state, v = u.eventType, _ = f & (vt | ue), M = this.attrTest(u);
9617
- return _ && (v & D || !M) ? f | Pe : _ || M ? v & j ? f | Ht : f & vt ? f | ue : vt : Dt;
9612
+ var d = this.state, v = u.eventType, _ = d & (vt | ue), M = this.attrTest(u);
9613
+ return _ && (v & D || !M) ? d | Pe : _ || M ? v & j ? d | Ht : d & vt ? d | ue : vt : Dt;
9618
9614
  }
9619
9615
  });
9620
9616
  function Qe() {
@@ -9632,20 +9628,20 @@ var Dr = { exports: {} };
9632
9628
  direction: Ii
9633
9629
  },
9634
9630
  getTouchAction: function() {
9635
- var u = this.options.direction, f = [];
9636
- return u & At && f.push(Te), u & ie && f.push(Ee), f;
9631
+ var u = this.options.direction, d = [];
9632
+ return u & At && d.push(Te), u & ie && d.push(Ee), d;
9637
9633
  },
9638
9634
  directionTest: function(u) {
9639
- var f = this.options, v = !0, _ = u.distance, M = u.direction, L = u.deltaX, Y = u.deltaY;
9640
- return M & f.direction || (f.direction & At ? (M = L === 0 ? qe : L < 0 ? be : ve, v = L != this.pX, _ = Math.abs(u.deltaX)) : (M = Y === 0 ? qe : Y < 0 ? Se : Ce, v = Y != this.pY, _ = Math.abs(u.deltaY))), u.direction = M, v && _ > f.threshold && M & f.direction;
9635
+ var d = this.options, v = !0, _ = u.distance, M = u.direction, L = u.deltaX, Y = u.deltaY;
9636
+ return M & d.direction || (d.direction & At ? (M = L === 0 ? qe : L < 0 ? be : ve, v = L != this.pX, _ = Math.abs(u.deltaX)) : (M = Y === 0 ? qe : Y < 0 ? Se : Ce, v = Y != this.pY, _ = Math.abs(u.deltaY))), u.direction = M, v && _ > d.threshold && M & d.direction;
9641
9637
  },
9642
9638
  attrTest: function(u) {
9643
9639
  return Tt.prototype.attrTest.call(this, u) && (this.state & vt || !(this.state & vt) && this.directionTest(u));
9644
9640
  },
9645
9641
  emit: function(u) {
9646
9642
  this.pX = u.deltaX, this.pY = u.deltaY;
9647
- var f = ji(u.direction);
9648
- f && (u.additionalEvent = this.options.event + f), this._super.emit.call(this, u);
9643
+ var d = ji(u.direction);
9644
+ d && (u.additionalEvent = this.options.event + d), this._super.emit.call(this, u);
9649
9645
  }
9650
9646
  });
9651
9647
  function Rs() {
@@ -9669,8 +9665,8 @@ var Dr = { exports: {} };
9669
9665
  },
9670
9666
  emit: function(u) {
9671
9667
  if (u.scale !== 1) {
9672
- var f = u.scale < 1 ? "in" : "out";
9673
- u.additionalEvent = this.options.event + f;
9668
+ var d = u.scale < 1 ? "in" : "out";
9669
+ u.additionalEvent = this.options.event + d;
9674
9670
  }
9675
9671
  this._super.emit.call(this, u);
9676
9672
  }
@@ -9695,13 +9691,13 @@ var Dr = { exports: {} };
9695
9691
  return [qi];
9696
9692
  },
9697
9693
  process: function(u) {
9698
- var f = this.options, v = u.pointers.length === f.pointers, _ = u.distance < f.threshold, M = u.deltaTime > f.time;
9694
+ var d = this.options, v = u.pointers.length === d.pointers, _ = u.distance < d.threshold, M = u.deltaTime > d.time;
9699
9695
  if (this._input = u, !_ || !v || u.eventType & (j | D) && !M)
9700
9696
  this.reset();
9701
9697
  else if (u.eventType & K)
9702
- this.reset(), this._timer = d(function() {
9698
+ this.reset(), this._timer = f(function() {
9703
9699
  this.state = Ft, this.tryEmit();
9704
- }, f.time, this);
9700
+ }, d.time, this);
9705
9701
  else if (u.eventType & j)
9706
9702
  return Ft;
9707
9703
  return Dt;
@@ -9752,12 +9748,12 @@ var Dr = { exports: {} };
9752
9748
  return Qe.prototype.getTouchAction.call(this);
9753
9749
  },
9754
9750
  attrTest: function(u) {
9755
- var f = this.options.direction, v;
9756
- return f & (At | ie) ? v = u.overallVelocity : f & At ? v = u.overallVelocityX : f & ie && (v = u.overallVelocityY), this._super.attrTest.call(this, u) && f & u.offsetDirection && u.distance > this.options.threshold && u.maxPointers == this.options.pointers && c(v) > this.options.velocity && u.eventType & j;
9751
+ var d = this.options.direction, v;
9752
+ return d & (At | ie) ? v = u.overallVelocity : d & At ? v = u.overallVelocityX : d & ie && (v = u.overallVelocityY), this._super.attrTest.call(this, u) && d & u.offsetDirection && u.distance > this.options.threshold && u.maxPointers == this.options.pointers && c(v) > this.options.velocity && u.eventType & j;
9757
9753
  },
9758
9754
  emit: function(u) {
9759
- var f = ji(u.offsetDirection);
9760
- f && this.manager.emit(this.options.event + f, u), this.manager.emit(this.options.event, u);
9755
+ var d = ji(u.offsetDirection);
9756
+ d && this.manager.emit(this.options.event + d, u), this.manager.emit(this.options.event, u);
9761
9757
  }
9762
9758
  });
9763
9759
  function ts() {
@@ -9785,24 +9781,24 @@ var Dr = { exports: {} };
9785
9781
  return [ks];
9786
9782
  },
9787
9783
  process: function(u) {
9788
- var f = this.options, v = u.pointers.length === f.pointers, _ = u.distance < f.threshold, M = u.deltaTime < f.time;
9784
+ var d = this.options, v = u.pointers.length === d.pointers, _ = u.distance < d.threshold, M = u.deltaTime < d.time;
9789
9785
  if (this.reset(), u.eventType & K && this.count === 0)
9790
9786
  return this.failTimeout();
9791
9787
  if (_ && M && v) {
9792
9788
  if (u.eventType != j)
9793
9789
  return this.failTimeout();
9794
- var L = this.pTime ? u.timeStamp - this.pTime < f.interval : !0, Y = !this.pCenter || je(this.pCenter, u.center) < f.posThreshold;
9790
+ var L = this.pTime ? u.timeStamp - this.pTime < d.interval : !0, Y = !this.pCenter || je(this.pCenter, u.center) < d.posThreshold;
9795
9791
  this.pTime = u.timeStamp, this.pCenter = u.center, !Y || !L ? this.count = 1 : this.count += 1, this._input = u;
9796
- var Q = this.count % f.taps;
9792
+ var Q = this.count % d.taps;
9797
9793
  if (Q === 0)
9798
- return this.hasRequireFailures() ? (this._timer = d(function() {
9794
+ return this.hasRequireFailures() ? (this._timer = f(function() {
9799
9795
  this.state = Ft, this.tryEmit();
9800
- }, f.interval, this), vt) : Ft;
9796
+ }, d.interval, this), vt) : Ft;
9801
9797
  }
9802
9798
  return Dt;
9803
9799
  },
9804
9800
  failTimeout: function() {
9805
- return this._timer = d(function() {
9801
+ return this._timer = f(function() {
9806
9802
  this.state = Dt;
9807
9803
  }, this.options.interval, this), Dt;
9808
9804
  },
@@ -9813,8 +9809,8 @@ var Dr = { exports: {} };
9813
9809
  this.state == Ft && (this._input.tapCount = this.count, this.manager.emit(this.options.event, this._input));
9814
9810
  }
9815
9811
  });
9816
- function Yt(u, f) {
9817
- return f = f || {}, f.recognizers = C(f.recognizers, Yt.defaults.preset), new Ys(u, f);
9812
+ function Yt(u, d) {
9813
+ return d = d || {}, d.recognizers = C(d.recognizers, Yt.defaults.preset), new Ys(u, d);
9818
9814
  }
9819
9815
  Yt.VERSION = "2.0.7", Yt.defaults = {
9820
9816
  /**
@@ -9913,8 +9909,8 @@ var Dr = { exports: {} };
9913
9909
  }
9914
9910
  };
9915
9911
  var la = 1, $i = 2;
9916
- function Ys(u, f) {
9917
- this.options = E({}, Yt.defaults, f || {}), this.options.inputTarget = this.options.inputTarget || u, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = u, this.input = Xr(this), this.touchAction = new Ls(this, this.options.touchAction), Wi(this, !0), w(this.options.recognizers, function(v) {
9912
+ function Ys(u, d) {
9913
+ this.options = E({}, Yt.defaults, d || {}), this.options.inputTarget = this.options.inputTarget || u, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = u, this.input = Xr(this), this.touchAction = new Ls(this, this.options.touchAction), Wi(this, !0), w(this.options.recognizers, function(v) {
9918
9914
  var _ = this.add(new v[0](v[1]));
9919
9915
  v[2] && _.recognizeWith(v[2]), v[3] && _.requireFailure(v[3]);
9920
9916
  }, this);
@@ -9944,15 +9940,15 @@ var Dr = { exports: {} };
9944
9940
  * @param {Object} inputData
9945
9941
  */
9946
9942
  recognize: function(u) {
9947
- var f = this.session;
9948
- if (!f.stopped) {
9943
+ var d = this.session;
9944
+ if (!d.stopped) {
9949
9945
  this.touchAction.preventDefaults(u);
9950
- var v, _ = this.recognizers, M = f.curRecognizer;
9951
- (!M || M && M.state & Ft) && (M = f.curRecognizer = null);
9946
+ var v, _ = this.recognizers, M = d.curRecognizer;
9947
+ (!M || M && M.state & Ft) && (M = d.curRecognizer = null);
9952
9948
  for (var L = 0; L < _.length; )
9953
- v = _[L], f.stopped !== $i && // 1
9949
+ v = _[L], d.stopped !== $i && // 1
9954
9950
  (!M || v == M || // 2
9955
- v.canRecognizeWith(M)) ? v.recognize(u) : v.reset(), !M && v.state & (vt | ue | Ht) && (M = f.curRecognizer = v), L++;
9951
+ v.canRecognizeWith(M)) ? v.recognize(u) : v.reset(), !M && v.state & (vt | ue | Ht) && (M = d.curRecognizer = v), L++;
9956
9952
  }
9957
9953
  },
9958
9954
  /**
@@ -9963,9 +9959,9 @@ var Dr = { exports: {} };
9963
9959
  get: function(u) {
9964
9960
  if (u instanceof Nt)
9965
9961
  return u;
9966
- for (var f = this.recognizers, v = 0; v < f.length; v++)
9967
- if (f[v].options.event == u)
9968
- return f[v];
9962
+ for (var d = this.recognizers, v = 0; v < d.length; v++)
9963
+ if (d[v].options.event == u)
9964
+ return d[v];
9969
9965
  return null;
9970
9966
  },
9971
9967
  /**
@@ -9977,8 +9973,8 @@ var Dr = { exports: {} };
9977
9973
  add: function(u) {
9978
9974
  if (y(u, "add", this))
9979
9975
  return this;
9980
- var f = this.get(u.options.event);
9981
- return f && this.remove(f), this.recognizers.push(u), u.manager = this, this.touchAction.update(), u;
9976
+ var d = this.get(u.options.event);
9977
+ return d && this.remove(d), this.recognizers.push(u), u.manager = this, this.touchAction.update(), u;
9982
9978
  },
9983
9979
  /**
9984
9980
  * remove a recognizer by name or instance
@@ -9989,8 +9985,8 @@ var Dr = { exports: {} };
9989
9985
  if (y(u, "remove", this))
9990
9986
  return this;
9991
9987
  if (u = this.get(u), u) {
9992
- var f = this.recognizers, v = W(f, u);
9993
- v !== -1 && (f.splice(v, 1), this.touchAction.update());
9988
+ var d = this.recognizers, v = W(d, u);
9989
+ v !== -1 && (d.splice(v, 1), this.touchAction.update());
9994
9990
  }
9995
9991
  return this;
9996
9992
  },
@@ -10000,11 +9996,11 @@ var Dr = { exports: {} };
10000
9996
  * @param {Function} handler
10001
9997
  * @returns {EventEmitter} this
10002
9998
  */
10003
- on: function(u, f) {
10004
- if (u !== n && f !== n) {
9999
+ on: function(u, d) {
10000
+ if (u !== n && d !== n) {
10005
10001
  var v = this.handlers;
10006
10002
  return w($(u), function(_) {
10007
- v[_] = v[_] || [], v[_].push(f);
10003
+ v[_] = v[_] || [], v[_].push(d);
10008
10004
  }), this;
10009
10005
  }
10010
10006
  },
@@ -10014,11 +10010,11 @@ var Dr = { exports: {} };
10014
10010
  * @param {Function} [handler]
10015
10011
  * @returns {EventEmitter} this
10016
10012
  */
10017
- off: function(u, f) {
10013
+ off: function(u, d) {
10018
10014
  if (u !== n) {
10019
10015
  var v = this.handlers;
10020
10016
  return w($(u), function(_) {
10021
- f ? v[_] && v[_].splice(W(v[_], f), 1) : delete v[_];
10017
+ d ? v[_] && v[_].splice(W(v[_], d), 1) : delete v[_];
10022
10018
  }), this;
10023
10019
  }
10024
10020
  },
@@ -10027,15 +10023,15 @@ var Dr = { exports: {} };
10027
10023
  * @param {String} event
10028
10024
  * @param {Object} data
10029
10025
  */
10030
- emit: function(u, f) {
10031
- this.options.domEvents && ua(u, f);
10026
+ emit: function(u, d) {
10027
+ this.options.domEvents && ua(u, d);
10032
10028
  var v = this.handlers[u] && this.handlers[u].slice();
10033
10029
  if (!(!v || !v.length)) {
10034
- f.type = u, f.preventDefault = function() {
10035
- f.srcEvent.preventDefault();
10030
+ d.type = u, d.preventDefault = function() {
10031
+ d.srcEvent.preventDefault();
10036
10032
  };
10037
10033
  for (var _ = 0; _ < v.length; )
10038
- v[_](f), _++;
10034
+ v[_](d), _++;
10039
10035
  }
10040
10036
  },
10041
10037
  /**
@@ -10046,18 +10042,18 @@ var Dr = { exports: {} };
10046
10042
  this.element && Wi(this, !1), this.handlers = {}, this.session = {}, this.input.destroy(), this.element = null;
10047
10043
  }
10048
10044
  };
10049
- function Wi(u, f) {
10045
+ function Wi(u, d) {
10050
10046
  var v = u.element;
10051
10047
  if (v.style) {
10052
10048
  var _;
10053
10049
  w(u.options.cssProps, function(M, L) {
10054
- _ = lt(v.style, L), f ? (u.oldCssProps[_] = v.style[_], v.style[_] = M) : v.style[_] = u.oldCssProps[_] || "";
10055
- }), f || (u.oldCssProps = {});
10050
+ _ = lt(v.style, L), d ? (u.oldCssProps[_] = v.style[_], v.style[_] = M) : v.style[_] = u.oldCssProps[_] || "";
10051
+ }), d || (u.oldCssProps = {});
10056
10052
  }
10057
10053
  }
10058
- function ua(u, f) {
10054
+ function ua(u, d) {
10059
10055
  var v = e.createEvent("Event");
10060
- v.initEvent(u, !0, !0), v.gesture = f, f.target.dispatchEvent(v);
10056
+ v.initEvent(u, !0, !0), v.gesture = d, d.target.dispatchEvent(v);
10061
10057
  }
10062
10058
  E(Yt, {
10063
10059
  INPUT_START: K,
@@ -10105,8 +10101,8 @@ var Dr = { exports: {} };
10105
10101
  bindFn: g,
10106
10102
  prefixed: lt
10107
10103
  });
10108
- var da = typeof t < "u" ? t : typeof self < "u" ? self : {};
10109
- da.Hammer = Yt, typeof n == "function" && n.amd ? n(function() {
10104
+ var fa = typeof t < "u" ? t : typeof self < "u" ? self : {};
10105
+ fa.Hammer = Yt, typeof n == "function" && n.amd ? n(function() {
10110
10106
  return Yt;
10111
10107
  }) : i.exports ? i.exports = Yt : t[s] = Yt;
10112
10108
  })(window, document, "Hammer");
@@ -10239,7 +10235,7 @@ class Kh extends pi {
10239
10235
  this.emit("mouseDoubleClick", D);
10240
10236
  }, l = (D) => {
10241
10237
  this.emit("mouseWheel", D);
10242
- }, d = (D) => {
10238
+ }, f = (D) => {
10243
10239
  this.emit("mouseContextMenu", D);
10244
10240
  }, y = (D) => {
10245
10241
  this.emit("touchStart", D);
@@ -10308,11 +10304,11 @@ class Kh extends pi {
10308
10304
  }, _t = (D) => {
10309
10305
  D.dataTransfer, this.emit("drop", D, D.dataTransfer?.files);
10310
10306
  };
10311
- this.container.addEventListener("mousedown", t, !1), this.container.addEventListener("mouseup", e, !1), this.container.addEventListener("mousemove", s, !1), this.container.addEventListener("mouseover", n, !1), this.container.addEventListener("mouseout", r, !1), this.container.addEventListener("mouseenter", a, !1), this.container.addEventListener("mouseleave", o, !1), this.container.addEventListener("click", h, !1), this.container.addEventListener("dblclick", c, !1), this.container.addEventListener("wheel", l, !1), this.container.addEventListener("contextmenu", d, !1), this.container.addEventListener("touchstart", y, !1), this.container.addEventListener("touchend", w, !1), this.container.addEventListener("touchcancel", m, !1), this.container.addEventListener("touchmove", E, !1), this.container.addEventListener("pointerdown", P, !1), this.container.addEventListener("pointerup", b, !1), this.container.addEventListener("pointercancel", x, !1), this.container.addEventListener("pointermove", g, !1), this.hammer.on("pan", p), this.hammer.on("panstart", C), this.hammer.on("panmove", S), this.hammer.on("panend", F), this.hammer.on("pancancel", z), this.hammer.on("panleft", G), this.hammer.on("panright", $), this.hammer.on("panup", W), this.hammer.on("pandown", st), this.hammer.on("pinch", wt), this.hammer.on("press", lt), this.hammer.on("rotate", ce), this.hammer.on("swipe", qt), this.hammer.on("swipeleft", se), this.hammer.on("swiperight", le), this.hammer.on("swipeup", R), this.hammer.on("swipedown", I), this.hammer.on("tap", N), document.addEventListener("pointerdown", U, !1), this.container instanceof HTMLInputElement && this.container.addEventListener("change", nt, !1), this.container.addEventListener("dragstart", Et, !1), this.container.addEventListener("dragover", ze, !1), this.container.addEventListener("dragenter", Ve, !1), this.container.addEventListener("dragend", K, !1), this.container.addEventListener("drop", _t, !1);
10307
+ this.container.addEventListener("mousedown", t, !1), this.container.addEventListener("mouseup", e, !1), this.container.addEventListener("mousemove", s, !1), this.container.addEventListener("mouseover", n, !1), this.container.addEventListener("mouseout", r, !1), this.container.addEventListener("mouseenter", a, !1), this.container.addEventListener("mouseleave", o, !1), this.container.addEventListener("click", h, !1), this.container.addEventListener("dblclick", c, !1), this.container.addEventListener("wheel", l, !1), this.container.addEventListener("contextmenu", f, !1), this.container.addEventListener("touchstart", y, !1), this.container.addEventListener("touchend", w, !1), this.container.addEventListener("touchcancel", m, !1), this.container.addEventListener("touchmove", E, !1), this.container.addEventListener("pointerdown", P, !1), this.container.addEventListener("pointerup", b, !1), this.container.addEventListener("pointercancel", x, !1), this.container.addEventListener("pointermove", g, !1), this.hammer.on("pan", p), this.hammer.on("panstart", C), this.hammer.on("panmove", S), this.hammer.on("panend", F), this.hammer.on("pancancel", z), this.hammer.on("panleft", G), this.hammer.on("panright", $), this.hammer.on("panup", W), this.hammer.on("pandown", st), this.hammer.on("pinch", wt), this.hammer.on("press", lt), this.hammer.on("rotate", ce), this.hammer.on("swipe", qt), this.hammer.on("swipeleft", se), this.hammer.on("swiperight", le), this.hammer.on("swipeup", R), this.hammer.on("swipedown", I), this.hammer.on("tap", N), document.addEventListener("pointerdown", U, !1), this.container instanceof HTMLInputElement && this.container.addEventListener("change", nt, !1), this.container.addEventListener("dragstart", Et, !1), this.container.addEventListener("dragover", ze, !1), this.container.addEventListener("dragenter", Ve, !1), this.container.addEventListener("dragend", K, !1), this.container.addEventListener("drop", _t, !1);
10312
10308
  const j = () => {
10313
10309
  this.container.removeEventListener("mousedown", t, !1), this.container.removeEventListener("mouseup", e, !1), this.container.removeEventListener("mousemove", s, !1), this.container.removeEventListener("mouseover", n, !1), this.container.removeEventListener("mouseout", r, !1), this.container.removeEventListener("mouseenter", a, !1), this.container.removeEventListener("mouseleave", o, !1), this.container.removeEventListener("click", h, !1), this.container.removeEventListener("dblclick", c, !1), this.container.removeEventListener("wheel", l, !1), this.container.removeEventListener(
10314
10310
  "contextmenu",
10315
- d,
10311
+ f,
10316
10312
  !1
10317
10313
  ), this.container.removeEventListener("touchstart", y, !1), this.container.removeEventListener("touchend", w, !1), this.container.removeEventListener("touchcancel", m, !1), this.container.removeEventListener("touchmove", E, !1), this.container.removeEventListener("pointerdown", P, !1), this.container.removeEventListener("pointerup", b, !1), this.container.removeEventListener("pointercancel", x), this.container.removeEventListener("pointermove", g, !1), this.hammer.off("pan", p), this.hammer.off("panstart", C), this.hammer.off("panmove", S), this.hammer.off("panend", F), this.hammer.off("pancancel", z), this.hammer.off("panleft", G), this.hammer.off("panright", $), this.hammer.off("panup", W), this.hammer.off("pandown", st), this.hammer.off("pinch", wt), this.hammer.off("press", lt), this.hammer.off("rotate", ce), this.hammer.off("swipe", qt), this.hammer.off("swipeleft", se), this.hammer.off("swiperight", le), this.hammer.off("swipeup", R), this.hammer.off("swipedown", I), this.hammer.off("tap", N), document.removeEventListener("pointerdown", U, !1), document.removeEventListener("touchstart", U, !1), document.removeEventListener("mousedown", U, !1), this.container instanceof HTMLInputElement && this.container.removeEventListener("change", nt, !1), this.container.removeEventListener("dragstart", Et, !1), this.container.removeEventListener("dragover", ze, !1), this.container.removeEventListener("dragenter", Ve, !1), this.container.removeEventListener("dragend", K, !1), this.container.removeEventListener("drop", _t, !1);
10318
10314
  };
@@ -10524,14 +10520,14 @@ class Kh extends pi {
10524
10520
  h.preventDefault(), h.stopPropagation();
10525
10521
  const c = h.changedTouches[0], l = { ...s };
10526
10522
  s = It(c, this.container);
10527
- const d = {
10523
+ const f = {
10528
10524
  ...s,
10529
10525
  dx: s.x - (l.x || 0),
10530
10526
  dy: s.y - (l.y || 0),
10531
10527
  dStartX: e ? s.x - e.x : 0,
10532
10528
  dStartY: e ? s.y - e.y : 0
10533
10529
  };
10534
- this.setMousePoint(d), t?.move?.(c, d);
10530
+ this.setMousePoint(f), t?.move?.(c, f);
10535
10531
  };
10536
10532
  this.on("touchStart", n);
10537
10533
  const o = () => {
@@ -10703,7 +10699,7 @@ class ic extends pi {
10703
10699
  super(), this.source = t;
10704
10700
  }
10705
10701
  parse() {
10706
- const t = fa(this.source);
10702
+ const t = da(this.source);
10707
10703
  if (t === 0) {
10708
10704
  this.emit("finish");
10709
10705
  return;
@@ -10976,7 +10972,7 @@ const Pn = {
10976
10972
  d44: k.getCSSVar("--distance-44") || "44px"
10977
10973
  /// button-height
10978
10974
  };
10979
- class dt {
10975
+ class ft {
10980
10976
  __color = {
10981
10977
  r: 0,
10982
10978
  // 0 - 255
@@ -11043,14 +11039,14 @@ class dt {
11043
11039
  return `rgba(${this.r},${this.g},${this.b},${Rt(this.a, 6)})`;
11044
11040
  }
11045
11041
  clone() {
11046
- return new dt(this.color);
11042
+ return new ft(this.color);
11047
11043
  }
11048
11044
  copy(t) {
11049
11045
  this.setColor(t.color);
11050
11046
  }
11051
11047
  opposite(t = !1, e = "#000000", s = "#ffffff") {
11052
11048
  if (t)
11053
- return new dt(
11049
+ return new ft(
11054
11050
  this.r * 0.299 + this.g * 0.587 + this.b * 0.114 > 186 ? e : s
11055
11051
  );
11056
11052
  {
@@ -11062,29 +11058,29 @@ class dt {
11062
11058
  lighten(t) {
11063
11059
  t = q(Math.abs(t), 0, 1);
11064
11060
  let { r: e, g: s, b: n, a: r } = this.color;
11065
- return e += (255 - e) * t, s += (255 - s) * t, n += (255 - n) * t, new dt().setRGBA(e, s, n, r);
11061
+ return e += (255 - e) * t, s += (255 - s) * t, n += (255 - n) * t, new ft().setRGBA(e, s, n, r);
11066
11062
  }
11067
11063
  /// t: 0 ~ 1
11068
11064
  darken(t) {
11069
11065
  t = q(Math.abs(t), 0, 1);
11070
11066
  let { r: e, g: s, b: n, a: r } = this.color;
11071
- return e = e * (1 - t), s = s * (1 - t), n = n * (1 - t), new dt().setRGBA(e, s, n, r);
11067
+ return e = e * (1 - t), s = s * (1 - t), n = n * (1 - t), new ft().setRGBA(e, s, n, r);
11072
11068
  }
11073
11069
  // 渐变色
11074
11070
  static gradient(t, e, s) {
11075
11071
  try {
11076
11072
  const n = $s(t), r = $s(e);
11077
- return new dt().setRGB(
11073
+ return new ft().setRGB(
11078
11074
  (r.r - n.r) * s + n.r,
11079
11075
  (r.g - n.g) * s + n.g,
11080
11076
  (r.b - n.b) * s + n.b
11081
11077
  );
11082
11078
  } catch {
11083
- return new dt(e);
11079
+ return new ft(e);
11084
11080
  }
11085
11081
  }
11086
11082
  static random() {
11087
- return new dt(Math.random() * 16777215);
11083
+ return new ft(Math.random() * 16777215);
11088
11084
  }
11089
11085
  get hsv() {
11090
11086
  const { r: t, g: e, b: s, a: n } = this.color, r = Math.max(t, e, s), a = Math.min(t, e, s), o = r - a;
@@ -11119,7 +11115,7 @@ class dt {
11119
11115
  }
11120
11116
  }
11121
11117
  function _s(i, t) {
11122
- return new dt(i, t);
11118
+ return new ft(i, t);
11123
11119
  }
11124
11120
  function $s(i) {
11125
11121
  const t = Object.prototype.hasOwnProperty.call(i, "a") ? q(i.a, 0, 1) : 1;
@@ -11127,7 +11123,7 @@ function $s(i) {
11127
11123
  return i.r = q(Math.round(i.r), 0, 255), i.g = q(Math.round(i.g), 0, 255), i.b = q(Math.round(i.b), 0, 255), i.a = t, i;
11128
11124
  if (Object.prototype.hasOwnProperty.call(i, "h") && Object.prototype.hasOwnProperty.call(i, "s") && Object.prototype.hasOwnProperty.call(i, "v")) {
11129
11125
  let s = q(i.h, 0, 360), n = q(i.s, 0, 1), r = q(i.v, 0, 1);
11130
- const a = Math.floor(s / 60) % 6, o = s / 60 - Math.floor(s / 60), h = r * (1 - n), c = r * (1 - o * n), l = r * (1 - (1 - o) * n), d = [
11126
+ const a = Math.floor(s / 60) % 6, o = s / 60 - Math.floor(s / 60), h = r * (1 - n), c = r * (1 - o * n), l = r * (1 - (1 - o) * n), f = [
11131
11127
  [r, l, h],
11132
11128
  [c, r, h],
11133
11129
  [h, r, l],
@@ -11136,9 +11132,9 @@ function $s(i) {
11136
11132
  [r, h, c]
11137
11133
  ][a];
11138
11134
  return {
11139
- r: Math.round(d[0] * 255),
11140
- g: Math.round(d[1] * 255),
11141
- b: Math.round(d[2] * 255),
11135
+ r: Math.round(f[0] * 255),
11136
+ g: Math.round(f[1] * 255),
11137
+ b: Math.round(f[2] * 255),
11142
11138
  a: t
11143
11139
  };
11144
11140
  }
@@ -11198,11 +11194,11 @@ const rc = [
11198
11194
  borderColor: "",
11199
11195
  inputColor: ""
11200
11196
  };
11201
- ye.buttonColor = new dt(ye.saveRowColor).darken(0.1).toString();
11202
- ye.borderColor = new dt(
11197
+ ye.buttonColor = new ft(ye.saveRowColor).darken(0.1).toString();
11198
+ ye.borderColor = new ft(
11203
11199
  ye.backgroundColor
11204
11200
  ).lighten(0.07).toString();
11205
- ye.inputColor = new dt(
11201
+ ye.inputColor = new ft(
11206
11202
  ye.backgroundColor
11207
11203
  ).lighten(0.085).toString();
11208
11204
  function Ai(i = window.location.href) {
@@ -11412,12 +11408,12 @@ function Rl(i, t) {
11412
11408
  headers: h = {},
11413
11409
  withCredentials: c = !1,
11414
11410
  responseType: l = "json",
11415
- timeout: d = 3e4
11411
+ timeout: f = 3e4
11416
11412
  } = t || {}, y = lc();
11417
- y.timeout = d, y.responseType = l, y.onreadystatechange = function(x) {
11413
+ y.timeout = f, y.responseType = l, y.onreadystatechange = function(x) {
11418
11414
  y.readyState === 4 && (y.status === 200 ? e(y.response) : s(y.statusText));
11419
11415
  }, y.ontimeout = () => {
11420
- s(`${i} is timed out for ${d}ms.`);
11416
+ s(`${i} is timed out for ${f}ms.`);
11421
11417
  }, y.addEventListener("load", (x) => t?.load?.(x, y), !1), y.addEventListener(
11422
11418
  "loadstart",
11423
11419
  (x) => t?.loadstart?.(x, y),
@@ -11487,8 +11483,8 @@ async function Ol(i) {
11487
11483
  case "FILE":
11488
11484
  const h = r;
11489
11485
  if (s)
11490
- for (let d = 0, y = h.files?.length || 0; d < y; d++) {
11491
- const w = h.files?.[d];
11486
+ for (let f = 0, y = h.files?.length || 0; f < y; f++) {
11487
+ const w = h.files?.[f];
11492
11488
  if (w) {
11493
11489
  const m = await Si(
11494
11490
  w,
@@ -11582,9 +11578,9 @@ const Mi = (i, t) => {
11582
11578
  if (!o.target)
11583
11579
  return t("no reader target", null);
11584
11580
  const h = o.target.result, c = Bn(h), l = new Blob([h]);
11585
- kr(l, (d, y) => {
11581
+ kr(l, (f, y) => {
11586
11582
  if (!y)
11587
- return t(d, null);
11583
+ return t(f, null);
11588
11584
  Mi(y, (w, m) => {
11589
11585
  if (!m)
11590
11586
  return t(w, null);
@@ -11704,10 +11700,10 @@ const Mi = (i, t) => {
11704
11700
  ], o = (4 - t * 3 % 4) % 4, h = i.data;
11705
11701
  let c = "";
11706
11702
  const l = t << 2;
11707
- let d = e;
11703
+ let f = e;
11708
11704
  const y = String.fromCharCode;
11709
11705
  do {
11710
- const m = l * (d - 1);
11706
+ const m = l * (f - 1);
11711
11707
  let E = "";
11712
11708
  for (let P = 0; P < t; P++) {
11713
11709
  const b = P << 2;
@@ -11716,7 +11712,7 @@ const Mi = (i, t) => {
11716
11712
  for (let P = 0; P < o; P++)
11717
11713
  E += String.fromCharCode(0);
11718
11714
  c += E;
11719
- } while (--d);
11715
+ } while (--f);
11720
11716
  function w(m) {
11721
11717
  if (!window.btoa)
11722
11718
  throw "btoa undefined";
@@ -11926,7 +11922,7 @@ const Hl = (i) => {
11926
11922
  n[h] = t[h], n[h + 1] = t[h + 1], n[h + 2] = t[h + 2], n[h + 3] = 255;
11927
11923
  }
11928
11924
  return new ImageData(n, e, s);
11929
- }, du = (i) => {
11925
+ }, fu = (i) => {
11930
11926
  const { data: t, width: e, height: s } = i, n = new Uint8ClampedArray(t.length);
11931
11927
  for (let a = 0; a < s; a++)
11932
11928
  for (let o = 0; o < e; o++) {
@@ -11947,22 +11943,22 @@ const Hl = (i) => {
11947
11943
  }
11948
11944
  }
11949
11945
  return new ImageData(n, e, s);
11950
- }, fu = (i, t, e, s, n, r = !1, a) => {
11946
+ }, du = (i, t, e, s, n, r = !1, a) => {
11951
11947
  const { data: o, width: h, height: c } = i;
11952
- let l = n, d = s, y = t, w = e;
11953
- if (l < 0 ? l = 0 : l > h && (l = h), d < 0 ? d = 0 : d > c && (d = c), y < 1 ? y = 1 : y > h && (y = h), w < 1 ? w = 1 : w > c && (w = c), l + y > h && (y = h - l), d + w > c && (w = c - d), r) {
11948
+ let l = n, f = s, y = t, w = e;
11949
+ if (l < 0 ? l = 0 : l > h && (l = h), f < 0 ? f = 0 : f > c && (f = c), y < 1 ? y = 1 : y > h && (y = h), w < 1 ? w = 1 : w > c && (w = c), l + y > h && (y = h - l), f + w > c && (w = c - f), r) {
11954
11950
  const m = new Uint8ClampedArray(o.length);
11955
11951
  for (let P = 0; P < c; P++)
11956
11952
  for (let b = 0; b < h; b++) {
11957
11953
  const x = (P * h + b) * 4;
11958
- b >= l && b <= l + y && P >= d && P <= d + w ? (m[x] = o[x], m[x + 1] = o[x + 1], m[x + 2] = o[x + 2], m[x + 3] = o[x + 3]) : (m[x] = 255, m[x + 1] = 255, m[x + 2] = 255, m[x + 3] = a && ["JPG", "JPEG"].includes(a.toUpperCase()) ? 255 : 0);
11954
+ b >= l && b <= l + y && P >= f && P <= f + w ? (m[x] = o[x], m[x + 1] = o[x + 1], m[x + 2] = o[x + 2], m[x + 3] = o[x + 3]) : (m[x] = 255, m[x + 1] = 255, m[x + 2] = 255, m[x + 3] = a && ["JPG", "JPEG"].includes(a.toUpperCase()) ? 255 : 0);
11959
11955
  }
11960
11956
  return new ImageData(m, h, c);
11961
11957
  } else {
11962
11958
  const m = new Uint8ClampedArray(y * w * 4);
11963
- for (let P = d; P <= d + w; P++)
11959
+ for (let P = f; P <= f + w; P++)
11964
11960
  for (let b = l; b <= l + y; b++) {
11965
- const x = ((P - d) * y + b - l) * 4, g = (P * h + b) * 4;
11961
+ const x = ((P - f) * y + b - l) * 4, g = (P * h + b) * 4;
11966
11962
  m[x] = o[g], m[x + 1] = o[g + 1], m[x + 2] = o[g + 2], m[x + 3] = o[g + 3];
11967
11963
  }
11968
11964
  return new ImageData(m, y, w);
@@ -11973,17 +11969,17 @@ const Hl = (i) => {
11973
11969
  o > Math.floor(r / 2) && (o = Math.floor(r / 2)), o > Math.floor(a / 2) && (o = Math.floor(a / 2)), o < 0 && (o = 0);
11974
11970
  const h = new Uint8ClampedArray(n.length);
11975
11971
  for (let l = 0; l < a; l++)
11976
- for (let d = 0; d < r; d++) {
11977
- const y = (l * r + d) * 4;
11972
+ for (let f = 0; f < r; f++) {
11973
+ const y = (l * r + f) * 4;
11978
11974
  let w = -1;
11979
- d < o ? l < o ? w = Math.sqrt(
11980
- Math.pow(o - d - 1, 2) + Math.pow(o - l - 1, 2)
11975
+ f < o ? l < o ? w = Math.sqrt(
11976
+ Math.pow(o - f - 1, 2) + Math.pow(o - l - 1, 2)
11981
11977
  ) : l > a - o - 1 && (w = Math.sqrt(
11982
- Math.pow(o - d - 1, 2) + Math.pow(l - (a - o), 2)
11983
- )) : d > r - o - 1 && (l < o ? w = Math.sqrt(
11984
- Math.pow(d - (r - o), 2) + Math.pow(o - l - 1, 2)
11978
+ Math.pow(o - f - 1, 2) + Math.pow(l - (a - o), 2)
11979
+ )) : f > r - o - 1 && (l < o ? w = Math.sqrt(
11980
+ Math.pow(f - (r - o), 2) + Math.pow(o - l - 1, 2)
11985
11981
  ) : l > a - o - 1 && (w = Math.sqrt(
11986
- Math.pow(d - (r - o), 2) + Math.pow(l - (a - o), 2)
11982
+ Math.pow(f - (r - o), 2) + Math.pow(l - (a - o), 2)
11987
11983
  ))), Math.round(w) > o ? (h[y] = 255, h[y + 1] = 255, h[y + 2] = 255, h[y + 3] = s || e.toUpperCase() === "PNG" ? 0 : 255) : (h[y] = n[y], h[y + 1] = n[y + 1], h[y + 2] = n[y + 2], h[y + 3] = s || e.toUpperCase() === "PNG" ? n[y + 3] : 255);
11988
11984
  }
11989
11985
  return new ImageData(h, r, a);
@@ -12015,8 +12011,8 @@ const Hl = (i) => {
12015
12011
  for (let c = 0; c < n; c++) {
12016
12012
  const l = (h * n + c) * 4;
12017
12013
  s[l + 3] === 0 ? (a[l] = 255, a[l + 1] = 255, a[l + 2] = 255) : (a[l] = s[l], a[l + 1] = s[l + 1], a[l + 2] = s[l + 2]);
12018
- let d = s[l + 3];
12019
- e ? d = Math.max(Math.min(Math.floor(255 * t), 255), 0) : d = Math.max(Math.min(Math.floor(d + 255 * t), 255), 0), a[l + 3] = d;
12014
+ let f = s[l + 3];
12015
+ e ? f = Math.max(Math.min(Math.floor(255 * t), 255), 0) : f = Math.max(Math.min(Math.floor(f + 255 * t), 255), 0), a[l + 3] = f;
12020
12016
  }
12021
12017
  return new ImageData(a, n, r);
12022
12018
  }, xu = (i, t, e, s) => {
@@ -12025,16 +12021,16 @@ const Hl = (i) => {
12025
12021
  width: h,
12026
12022
  height: c
12027
12023
  } = t;
12028
- let l = e, d = s;
12029
- e + c > a && (l = a - c), s + h > r && (d = r - h);
12024
+ let l = e, f = s;
12025
+ e + c > a && (l = a - c), s + h > r && (f = r - h);
12030
12026
  const y = new Uint8ClampedArray(n.length);
12031
12027
  for (let m = 0; m < a; m++)
12032
12028
  for (let E = 0; E < r; E++) {
12033
12029
  const P = (m * r + E) * 4;
12034
- if (E < d || E > d + h || m <= l || m >= l + c)
12030
+ if (E < f || E > f + h || m <= l || m >= l + c)
12035
12031
  y[P] = n[P], y[P + 1] = n[P + 1], y[P + 2] = n[P + 2], y[P + 3] = n[P + 3];
12036
12032
  else {
12037
- const b = (m * r + E - ((l + 1) * r + (m - (l + 1)) * (r - h)) + h - d - 1) * 4, x = [
12033
+ const b = (m * r + E - ((l + 1) * r + (m - (l + 1)) * (r - h)) + h - f - 1) * 4, x = [
12038
12034
  o[b],
12039
12035
  o[b + 1],
12040
12036
  o[b + 2],
@@ -12051,13 +12047,13 @@ const Hl = (i) => {
12051
12047
  return new ImageData(y, r, a);
12052
12048
  }, wu = (i, t, e, s, n, r = 10) => {
12053
12049
  const { data: a, width: o, height: h } = i;
12054
- let c = n, l = s, d = t, y = e;
12055
- c < 0 ? c = 0 : c > o && (c = o), l < 0 ? l = 0 : l > h && (l = h), d < 1 ? d = 1 : d > o && (d = o), y < 1 ? y = 1 : y > h && (y = h), c + d > o && (d = o - c), l + y > h && (y = h - l);
12050
+ let c = n, l = s, f = t, y = e;
12051
+ c < 0 ? c = 0 : c > o && (c = o), l < 0 ? l = 0 : l > h && (l = h), f < 1 ? f = 1 : f > o && (f = o), y < 1 ? y = 1 : y > h && (y = h), c + f > o && (f = o - c), l + y > h && (y = h - l);
12056
12052
  const w = new Uint8ClampedArray(a.length);
12057
12053
  for (let E = 0; E < h; E++)
12058
12054
  for (let P = 0; P < o; P++) {
12059
12055
  const b = (E * o + P) * 4;
12060
- if (P >= c && P <= c + d && E >= l && E <= l + y) {
12056
+ if (P >= c && P <= c + f && E >= l && E <= l + y) {
12061
12057
  const x = Math.floor((P - c) / r), g = Math.floor((E - l) / r);
12062
12058
  let p = Math.floor(
12063
12059
  r * (x + 1) - r / 2 + c
@@ -12077,9 +12073,9 @@ const Hl = (i) => {
12077
12073
  }) => {
12078
12074
  if (t && e) {
12079
12075
  const { data: s, width: n, height: r } = i, { data: a } = t, o = new Uint8ClampedArray(s.length), { backgroundColor: h, changeIntoColor: c } = e;
12080
- for (let d = 0; d < r; d++)
12076
+ for (let f = 0; f < r; f++)
12081
12077
  for (let y = 0; y < n; y++) {
12082
- const w = (d * n + y) * 4, m = a[w], E = a[w + 1], P = a[w + 2], b = a[w + 3];
12078
+ const w = (f * n + y) * 4, m = a[w], E = a[w + 1], P = a[w + 2], b = a[w + 3];
12083
12079
  m === h.r && E === h.g && P === h.b && b === h.a && c.a !== 0 ? (o[w] = c.r, o[w + 1] = c.g, o[w + 2] = c.b, o[w + 3] = c.a) : (o[w] = s[w], o[w + 1] = s[w + 1], o[w + 2] = s[w + 2], o[w + 3] = s[w + 3]);
12084
12080
  }
12085
12081
  return new ImageData(o, n, r);
@@ -12091,8 +12087,8 @@ const Hl = (i) => {
12091
12087
  for (let h = 0; h < s; h++) {
12092
12088
  const c = (o * s + h) * 4;
12093
12089
  for (let l = 0; l < 3; l++) {
12094
- const d = c + l;
12095
- h === 0 || h === s - 1 || o === 0 || o === n - 1 ? r[d] = e[d] : r[d] = t[0] * e[d - s * 4 - 4] + t[1] * e[d - s * 4] + t[2] * e[d - s * 4 + 4] + t[3] * e[d - 4] + t[4] * e[d] + t[5] * e[d + 4] + t[6] * e[d + s * 4 - 4] + t[7] * e[d + s * 4] + t[8] * e[d + s * 4 + 4];
12090
+ const f = c + l;
12091
+ h === 0 || h === s - 1 || o === 0 || o === n - 1 ? r[f] = e[f] : r[f] = t[0] * e[f - s * 4 - 4] + t[1] * e[f - s * 4] + t[2] * e[f - s * 4 + 4] + t[3] * e[f - 4] + t[4] * e[f] + t[5] * e[f + 4] + t[6] * e[f + s * 4 - 4] + t[7] * e[f + s * 4] + t[8] * e[f + s * 4 + 4];
12096
12092
  }
12097
12093
  r[c + 3] = e[c + 3];
12098
12094
  }
@@ -12169,7 +12165,7 @@ const Hl = (i) => {
12169
12165
  return t += "]", t;
12170
12166
  }
12171
12167
  };
12172
- }, dc = function() {
12168
+ }, fc = function() {
12173
12169
  let i = 0, t = 0, e = 0, s = "";
12174
12170
  const n = function(a) {
12175
12171
  if (!(a < 0)) {
@@ -12204,17 +12200,17 @@ const Hl = (i) => {
12204
12200
  return s;
12205
12201
  }
12206
12202
  };
12207
- }, fc = function(i, t, e) {
12203
+ }, dc = function(i, t, e) {
12208
12204
  const s = new Array(i * i), n = function(o) {
12209
12205
  const h = o;
12210
12206
  let c = 0, l = 0;
12211
12207
  return {
12212
- write(d, y) {
12213
- if (d >>> y)
12208
+ write(f, y) {
12209
+ if (f >>> y)
12214
12210
  throw new Error("length over");
12215
12211
  for (; c + y >= 8; )
12216
- h.writeByte(255 & (d << c | l)), y -= 8 - c, d >>>= 8 - c, l = 0, c = 0;
12217
- l = d << c | l, c = c + y;
12212
+ h.writeByte(255 & (f << c | l)), y -= 8 - c, f >>>= 8 - c, l = 0, c = 0;
12213
+ l = f << c | l, c = c + y;
12218
12214
  },
12219
12215
  flush() {
12220
12216
  c > 0 && h.writeByte(l);
@@ -12223,18 +12219,18 @@ const Hl = (i) => {
12223
12219
  }, r = function(o) {
12224
12220
  const h = 1 << o, c = (1 << o) + 1;
12225
12221
  let l = o + 1;
12226
- const d = a();
12222
+ const f = a();
12227
12223
  for (let P = 0; P < h; P++)
12228
- d.add(String.fromCharCode(P));
12229
- d.add(String.fromCharCode(h)), d.add(String.fromCharCode(c));
12224
+ f.add(String.fromCharCode(P));
12225
+ f.add(String.fromCharCode(h)), f.add(String.fromCharCode(c));
12230
12226
  const y = Or(), w = n(y);
12231
12227
  w.write(h, l);
12232
12228
  let m = 0, E = String.fromCharCode(s[m]);
12233
12229
  for (m += 1; m < s.length; ) {
12234
12230
  const P = String.fromCharCode(s[m]);
12235
- m += 1, d.contains(E + P) ? E = E + P : (w.write(d.indexOf(E), l), d.size() < 4095 && (d.size() == 1 << l && (l += 1), d.add(E + P)), E = P);
12231
+ m += 1, f.contains(E + P) ? E = E + P : (w.write(f.indexOf(E), l), f.size() < 4095 && (f.size() == 1 << l && (l += 1), f.add(E + P)), E = P);
12236
12232
  }
12237
- return w.write(d.indexOf(E), l), w.write(c, l), w.flush(), y.toByteArray();
12233
+ return w.write(f.indexOf(E), l), w.write(c, l), w.flush(), y.toByteArray();
12238
12234
  }, a = function() {
12239
12235
  const o = {};
12240
12236
  let h = 0;
@@ -12260,7 +12256,7 @@ const Hl = (i) => {
12260
12256
  s[h * i + o] = c;
12261
12257
  },
12262
12258
  write(o) {
12263
- o.writeString("GIF87a"), o.writeShort(i), o.writeShort(i), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(de("0x" + t[1] + t[2])), o.writeByte(de("0x" + t[3] + t[4])), o.writeByte(de("0x" + t[5] + t[6])), o.writeByte(de("0x" + e[1] + e[2])), o.writeByte(de("0x" + e[3] + e[4])), o.writeByte(de("0x" + e[5] + e[6])), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(i), o.writeShort(i), o.writeByte(0);
12259
+ o.writeString("GIF87a"), o.writeShort(i), o.writeShort(i), o.writeByte(128), o.writeByte(0), o.writeByte(0), o.writeByte(fe("0x" + t[1] + t[2])), o.writeByte(fe("0x" + t[3] + t[4])), o.writeByte(fe("0x" + t[5] + t[6])), o.writeByte(fe("0x" + e[1] + e[2])), o.writeByte(fe("0x" + e[3] + e[4])), o.writeByte(fe("0x" + e[5] + e[6])), o.writeString(","), o.writeShort(0), o.writeShort(0), o.writeShort(i), o.writeShort(i), o.writeByte(0);
12264
12260
  const h = 2, c = r(h);
12265
12261
  o.writeByte(h);
12266
12262
  let l = 0;
@@ -12270,13 +12266,13 @@ const Hl = (i) => {
12270
12266
  }
12271
12267
  };
12272
12268
  }, mc = function(i, t, e, s) {
12273
- const n = fc(i, t, e);
12269
+ const n = dc(i, t, e);
12274
12270
  for (let c = 0; c < i; c++)
12275
12271
  for (let l = 0; l < i; l++)
12276
12272
  n.setPixel(l, c, s(l, c));
12277
12273
  const r = Or();
12278
12274
  n.write(r);
12279
- const a = dc(), o = r.toByteArray();
12275
+ const a = fc(), o = r.toByteArray();
12280
12276
  for (let c = 0, l = o.length; c < l; c++)
12281
12277
  a.writeByte(o[c]);
12282
12278
  a.flush();
@@ -12977,30 +12973,30 @@ class oe {
12977
12973
  static createBytes(t, e) {
12978
12974
  let s = 0, n = 0, r = 0;
12979
12975
  const a = new Array(e.length), o = new Array(e.length);
12980
- for (let d = 0; d < e.length; d++) {
12981
- const y = e[d].dataCount, w = e[d].totalCount - y;
12982
- n = Math.max(n, y), r = Math.max(r, w), a[d] = new Array(y);
12983
- for (let b = 0; b < a[d].length; b++)
12984
- a[d][b] = 255 & t.buffer[b + s];
12976
+ for (let f = 0; f < e.length; f++) {
12977
+ const y = e[f].dataCount, w = e[f].totalCount - y;
12978
+ n = Math.max(n, y), r = Math.max(r, w), a[f] = new Array(y);
12979
+ for (let b = 0; b < a[f].length; b++)
12980
+ a[f][b] = 255 & t.buffer[b + s];
12985
12981
  s += y;
12986
- const m = H.getErrorCorrectPolynomial(w), P = new xe(a[d], m.getLength() - 1).mod(m);
12987
- o[d] = new Array(m.getLength() - 1);
12988
- for (let b = 0; b < o[d].length; b++) {
12989
- const x = b + P.getLength() - o[d].length;
12990
- o[d][b] = x >= 0 ? P.get(x) : 0;
12982
+ const m = H.getErrorCorrectPolynomial(w), P = new xe(a[f], m.getLength() - 1).mod(m);
12983
+ o[f] = new Array(m.getLength() - 1);
12984
+ for (let b = 0; b < o[f].length; b++) {
12985
+ const x = b + P.getLength() - o[f].length;
12986
+ o[f][b] = x >= 0 ? P.get(x) : 0;
12991
12987
  }
12992
12988
  }
12993
12989
  let h = 0;
12994
- for (let d = 0; d < e.length; d++)
12995
- h += e[d].totalCount;
12990
+ for (let f = 0; f < e.length; f++)
12991
+ h += e[f].totalCount;
12996
12992
  const c = new Array(h);
12997
12993
  let l = 0;
12998
- for (let d = 0; d < n; d++)
12994
+ for (let f = 0; f < n; f++)
12999
12995
  for (let y = 0; y < e.length; y++)
13000
- d < a[y].length && (c[l++] = a[y][d]);
13001
- for (let d = 0; d < r; d++)
12996
+ f < a[y].length && (c[l++] = a[y][f]);
12997
+ for (let f = 0; f < r; f++)
13002
12998
  for (let y = 0; y < e.length; y++)
13003
- d < o[y].length && (c[l++] = o[y][d]);
12999
+ f < o[y].length && (c[l++] = o[y][f]);
13004
13000
  return c;
13005
13001
  }
13006
13002
  }
@@ -13008,24 +13004,24 @@ const An = Math.ceil, Fe = Math.floor, Dn = Math.round;
13008
13004
  function vu(i, t) {
13009
13005
  const e = On(i), s = t?.ecc || "H", n = t?.size || 256, r = -1, a = t?.padding || 0, o = t?.color || "#000000", h = t?.background || "#ffffff", c = new oe(r, s);
13010
13006
  c.addData(e), c.make();
13011
- const l = c.getModuleCount(), d = (n - a * 2) / l, y = a, w = n - a;
13007
+ const l = c.getModuleCount(), f = (n - a * 2) / l, y = a, w = n - a;
13012
13008
  return mc(n, o, h, function(m, E) {
13013
13009
  if (y <= m && m < w && y <= E && E < w) {
13014
- const P = Fe((m - y) / d), b = Fe((E - y) / d);
13010
+ const P = Fe((m - y) / f), b = Fe((E - y) / f);
13015
13011
  return c.isDark(b, P) ? 0 : 1;
13016
13012
  } else
13017
13013
  return 1;
13018
13014
  });
13019
13015
  }
13020
13016
  function Su(i, t) {
13021
- const e = t.x || 0, s = t.y || 0, n = On(i), r = t.ctx, a = t.ecc || "H", o = typeof t.size == "number" ? Fe(t.size) : 256, h = t.padding || 0, c = -1, l = t.color || "#000000", d = t.background || "#ffffff", y = new oe(c, a);
13017
+ const e = t.x || 0, s = t.y || 0, n = On(i), r = t.ctx, a = t.ecc || "H", o = typeof t.size == "number" ? Fe(t.size) : 256, h = t.padding || 0, c = -1, l = t.color || "#000000", f = t.background || "#ffffff", y = new oe(c, a);
13022
13018
  y.addData(n), y.make();
13023
13019
  const w = y.getModuleCount(), m = (o - h * 2) / w;
13024
- r.fillStyle = d, r.fillRect(e, s, o, o);
13020
+ r.fillStyle = f, r.fillRect(e, s, o, o);
13025
13021
  for (let E = 0; E < w; E++)
13026
13022
  for (let P = 0; P < w; P++) {
13027
13023
  const b = An((P + 1) * m) - Fe(P * m), x = An((E + 1) * m) - Fe(E * m);
13028
- r.fillStyle = y.isDark(E, P) ? l : d, r.fillRect(
13024
+ r.fillStyle = y.isDark(E, P) ? l : f, r.fillRect(
13029
13025
  e + Dn(P * m) + h,
13030
13026
  s + Dn(E * m) + h,
13031
13027
  b,
@@ -13388,7 +13384,7 @@ class gc extends ic {
13388
13384
  n = {}, e.style && Js(e.style, n), n.offset = n.offset || e.offset, n.color = n["stop-color"] || e["stop-color"], n.opacity = n["stop-opacity"] || e["stop-opacity"], ~(n.offset + "").indexOf("%") ? n.offset = parseFloat(n.offset) : n.offset = parseFloat(n.offset) * 100, n.offset = +n.offset.toFixed(2), this.grad.stops.push(n);
13389
13385
  break;
13390
13386
  case "linearGradient":
13391
- this.grad.angle = (360 + di(
13387
+ this.grad.angle = (360 + fi(
13392
13388
  parseFloat(e.x1),
13393
13389
  parseFloat(e.y1),
13394
13390
  parseFloat(e.x2),
@@ -13433,12 +13429,12 @@ class gc extends ic {
13433
13429
  this.items.push(this.currentItem);
13434
13430
  }
13435
13431
  }
13436
- function di(i, t, e, s, n, r) {
13432
+ function fi(i, t, e, s, n, r) {
13437
13433
  if (typeof n > "u" || typeof r > "u") {
13438
13434
  const a = i - e, o = t - s;
13439
13435
  return !a && !o ? 0 : (180 + Math.atan2(-o, -a) * 180 / Math.PI + 360) % 360;
13440
13436
  } else
13441
- return di(i, t, n, r) - di(e, s, n, r);
13437
+ return fi(i, t, n, r) - fi(e, s, n, r);
13442
13438
  }
13443
13439
  function Js(i, t, e) {
13444
13440
  const s = (i + "").split(";"), n = /^\s+|\s+$/g;
@@ -13550,7 +13546,7 @@ class Eu {
13550
13546
  e.x,
13551
13547
  e.y,
13552
13548
  tn(e.getAttrs(), (n, r) => typeof r == "string")
13553
- ) : (e.el = gt.createSvgPath(e.toSVGPathD(), e.id), k.insert(this.rootEl, e.el))), e.followMouse && (!ds(e.x, this.app.mousePoint.x, 5) || !ds(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
13549
+ ) : (e.el = gt.createSvgPath(e.toSVGPathD(), e.id), k.insert(this.rootEl, e.el))), e.followMouse && (!fs(e.x, this.app.mousePoint.x, 5) || !fs(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
13554
13550
  {
13555
13551
  x: e.targetToAfterDragFree.targetX,
13556
13552
  y: e.targetToAfterDragFree.targetY
@@ -13687,22 +13683,22 @@ class Tu extends ct {
13687
13683
  this.width = this.svgWidth, this.height = this.svgHeight;
13688
13684
  continue;
13689
13685
  }
13690
- if (r.type != "path" || !fe.isSVGPath(r.path))
13686
+ if (r.type != "path" || !de.isSVGPath(r.path))
13691
13687
  continue;
13692
13688
  const a = {};
13693
13689
  for (const l in r)
13694
13690
  l === "type" || l === "path" || l === "transform" || (a[l] = r[l]);
13695
- const o = fe.absolutizeSVGPath(
13696
- fe.parseSVGPath(r.path)
13691
+ const o = de.absolutizeSVGPath(
13692
+ de.parseSVGPath(r.path)
13697
13693
  ), h = [];
13698
13694
  let c = [];
13699
- for (let l = 0, d = o.length; l < d; l++) {
13695
+ for (let l = 0, f = o.length; l < f; l++) {
13700
13696
  const y = o[l];
13701
13697
  c.push(y), y[0].toLowerCase() == "z" && (h.push(c), c = []);
13702
13698
  }
13703
13699
  c.length && h.push(c), h.forEach((l) => {
13704
- const d = _r(r.transform ?? "");
13705
- d.scale(
13700
+ const f = _r(r.transform ?? "");
13701
+ f.scale(
13706
13702
  this.width && this.svgWidth ? this.width / this.svgWidth : 1
13707
13703
  ), this.addShape(
13708
13704
  new V({
@@ -13712,7 +13708,7 @@ class Tu extends ct {
13712
13708
  ...t?.attrs || {}
13713
13709
  },
13714
13710
  d: l,
13715
- originMatrix: d
13711
+ originMatrix: f
13716
13712
  })
13717
13713
  );
13718
13714
  });
@@ -13820,8 +13816,8 @@ class Qt extends V {
13820
13816
  if (Math.sqrt(e * e + s * s) < this.radius + t.radius) {
13821
13817
  const r = Math.atan2(s, e), a = { x: 0, y: 0 }, o = kt(-r, e, s), h = kt(-r, this.vx, this.vy), c = kt(-r, t.vx, t.vy), l = h.x - c.x;
13822
13818
  h.x = ((this.mass - t.mass) * h.x + 2 * t.mass * c.x) / (this.mass + t.mass), c.x = l + h.x;
13823
- const d = Math.abs(h.x) + Math.abs(c.x), y = this.radius + t.radius - Math.abs(a.x - o.x);
13824
- a.x += h.x / d * y, o.x += c.x / d * y;
13819
+ const f = Math.abs(h.x) + Math.abs(c.x), y = this.radius + t.radius - Math.abs(a.x - o.x);
13820
+ a.x += h.x / f * y, o.x += c.x / f * y;
13825
13821
  const w = kt(r, a.x, a.y), m = kt(r, o.x, o.y);
13826
13822
  t.x = this.x + m.x, t.y = this.y + m.y, this.x = this.x + w.x, this.y = this.y + w.y;
13827
13823
  const E = kt(r, h.x, h.y), P = kt(r, c.x, c.y);
@@ -13905,11 +13901,11 @@ class yc extends V {
13905
13901
  let n = !1;
13906
13902
  const r = 2e-10;
13907
13903
  for (let a = 0, o = s - 1; a < s; o = a, a++) {
13908
- const h = this.points[a].x, c = this.points[a].y, l = this.points[o].x, d = this.points[o].y;
13909
- if (h === t && c === e || l === t && d === e || e === c && e === d)
13904
+ const h = this.points[a].x, c = this.points[a].y, l = this.points[o].x, f = this.points[o].y;
13905
+ if (h === t && c === e || l === t && f === e || e === c && e === f)
13910
13906
  return !0;
13911
- if (e >= c && e < d || e < c && e >= d) {
13912
- const y = (l - h) / (d - c), w = h + y * (e - c);
13907
+ if (e >= c && e < f || e < c && e >= f) {
13908
+ const y = (l - h) / (f - c), w = h + y * (e - c);
13913
13909
  if (w === t || Math.abs(w - t) < r)
13914
13910
  return !0;
13915
13911
  w > t && (n = !n);
@@ -14469,7 +14465,7 @@ class Fu extends ct {
14469
14465
  this.value = r(
14470
14466
  typeof t?.defaultValue == "number" ? q(t.defaultValue, e, s) : e
14471
14467
  );
14472
- const a = this.value / (s - e), o = t?.barWidth || 100, h = t?.barHeight || 4, c = t?.handleRadius || 10, l = h * 0.5, d = t?.barColor || Pn.colorGrayF5, y = t?.handleColor || Pn.colorPrimary;
14468
+ const a = this.value / (s - e), o = t?.barWidth || 100, h = t?.barHeight || 4, c = t?.handleRadius || 10, l = h * 0.5, f = t?.barColor || Pn.colorGrayF5, y = t?.handleColor || Pn.colorPrimary;
14473
14469
  this.backgroundRect = new ee({
14474
14470
  x: this.x,
14475
14471
  y: this.y,
@@ -14477,7 +14473,7 @@ class Fu extends ct {
14477
14473
  height: h,
14478
14474
  borderRadius: l,
14479
14475
  attrs: {
14480
- fill: d
14476
+ fill: f
14481
14477
  },
14482
14478
  enableDrag: !1,
14483
14479
  independentTransformInGroup: !0
@@ -14805,7 +14801,7 @@ class Xu extends ct {
14805
14801
  angle: h,
14806
14802
  spread: c,
14807
14803
  startVelocity: l,
14808
- decay: d,
14804
+ decay: f,
14809
14805
  gravity: y,
14810
14806
  drift: w,
14811
14807
  ticks: m,
@@ -14853,7 +14849,7 @@ class Xu extends ct {
14853
14849
  tiltAngle: (Math.random() * (0.75 - 0.25) + 0.25) * Math.PI,
14854
14850
  tick: 0,
14855
14851
  totalTicks: m,
14856
- decay: d,
14852
+ decay: f,
14857
14853
  drift: w,
14858
14854
  random: Math.random() + 2,
14859
14855
  tiltSin: 0,
@@ -14961,12 +14957,12 @@ class Fr {
14961
14957
  const h = this.shapes[a].getAttr("fill", "none"), c = this.shapes[a + 1].getAttr("fill", "none");
14962
14958
  typeof h == "string" && typeof c == "string" && s.setAttr(
14963
14959
  "fill",
14964
- dt.gradient(h, c, o).toString()
14960
+ ft.gradient(h, c, o).toString()
14965
14961
  );
14966
- const l = this.shapes[a].getAttr("stroke", "none"), d = this.shapes[a + 1].getAttr("stroke", "none");
14967
- return typeof l == "string" && typeof d == "string" && s.setAttr(
14962
+ const l = this.shapes[a].getAttr("stroke", "none"), f = this.shapes[a + 1].getAttr("stroke", "none");
14963
+ return typeof l == "string" && typeof f == "string" && s.setAttr(
14968
14964
  "stroke",
14969
- dt.gradient(l, d, o).toString()
14965
+ ft.gradient(l, f, o).toString()
14970
14966
  ), s;
14971
14967
  };
14972
14968
  }
@@ -15023,7 +15019,7 @@ class Fr {
15023
15019
  throw new Error("no dividing by zero, please");
15024
15020
  const a = [], o = 360 / r;
15025
15021
  for (let h = 0; h < r; h += 1) {
15026
- const c = o * h * Math.PI / 180, l = t + 2 * s * Math.cos(c), d = e + 2 * s * Math.sin(c);
15022
+ const c = o * h * Math.PI / 180, l = t + 2 * s * Math.cos(c), f = e + 2 * s * Math.sin(c);
15027
15023
  a.push(
15028
15024
  new hi({
15029
15025
  x: t,
@@ -15034,12 +15030,12 @@ class Fr {
15034
15030
  largeArcFlag: 1,
15035
15031
  sweepFlag: 1,
15036
15032
  toX: l,
15037
- toY: d
15033
+ toY: f
15038
15034
  })
15039
15035
  ), a.push(
15040
15036
  new hi({
15041
15037
  x: l,
15042
- y: d,
15038
+ y: f,
15043
15039
  rx: s,
15044
15040
  ry: n,
15045
15041
  xAxisRotate: o * h,
@@ -15144,7 +15140,7 @@ class zu {
15144
15140
  for (let e of this.shapes) {
15145
15141
  if (!e.isShow)
15146
15142
  continue;
15147
- if (this.ctx.save(), e.frameStart(this.app.mousePoint), k.attrsToCanvas(this.ctx, e.getAttrs()), e.followMouse && (!ds(e.x, this.app.mousePoint.x, 5) || !ds(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
15143
+ if (this.ctx.save(), e.frameStart(this.app.mousePoint), k.attrsToCanvas(this.ctx, e.getAttrs()), e.followMouse && (!fs(e.x, this.app.mousePoint.x, 5) || !fs(e.y, this.app.mousePoint.y, 5)) && e.followTo(this.app.mousePoint), e.targetToAfterDragFree && (this.isMouseDown || e.runEaseTo(
15148
15144
  {
15149
15145
  x: e.targetToAfterDragFree.targetX,
15150
15146
  y: e.targetToAfterDragFree.targetY
@@ -15195,7 +15191,7 @@ class zu {
15195
15191
  move: () => {
15196
15192
  if (this.isMouseDown) {
15197
15193
  for (let c = 0; c < n; c++) {
15198
- const l = Math.random() * Math.PI * 2, d = Math.random() * s, y = this.app.mousePoint.x + Math.cos(l) * d | 0, w = this.app.mousePoint.y + Math.sin(l) * d | 0, m = (y + w * a.width) * 4;
15194
+ const l = Math.random() * Math.PI * 2, f = Math.random() * s, y = this.app.mousePoint.x + Math.cos(l) * f | 0, w = this.app.mousePoint.y + Math.sin(l) * f | 0, m = (y + w * a.width) * 4;
15199
15195
  o[m] = h.r, o[m + 1] = h.g, o[m + 2] = h.b, o[m + 3] = 255;
15200
15196
  }
15201
15197
  this.ctx.putImageData(a);
@@ -15465,55 +15461,55 @@ function Ku(i) {
15465
15461
  function Qu(i) {
15466
15462
  wx.uploadImage(i);
15467
15463
  }
15468
- function td(i) {
15464
+ function tf(i) {
15469
15465
  wx.downloadImage(i);
15470
15466
  }
15471
- function ed(i) {
15467
+ function ef(i) {
15472
15468
  wx.getLocalImgData(i);
15473
15469
  }
15474
- function sd() {
15470
+ function sf() {
15475
15471
  wx.startRecord();
15476
15472
  }
15477
- function id(i) {
15473
+ function nf(i) {
15478
15474
  wx.stopRecord(i);
15479
15475
  }
15480
- function nd(i) {
15476
+ function rf(i) {
15481
15477
  wx.onVoiceRecordEnd(i);
15482
15478
  }
15483
- function rd(i) {
15479
+ function af(i) {
15484
15480
  wx.playVoice(i);
15485
15481
  }
15486
- function ad(i) {
15482
+ function of(i) {
15487
15483
  wx.pauseVoice(i);
15488
15484
  }
15489
- function od(i) {
15485
+ function hf(i) {
15490
15486
  wx.stopVoice(i);
15491
15487
  }
15492
- function hd(i) {
15488
+ function cf(i) {
15493
15489
  wx.onVoicePlayEnd(i);
15494
15490
  }
15495
- function cd(i) {
15491
+ function lf(i) {
15496
15492
  wx.uploadVoice(i);
15497
15493
  }
15498
- function ld(i) {
15494
+ function uf(i) {
15499
15495
  wx.downloadVoice(i);
15500
15496
  }
15501
- function ud(i) {
15497
+ function ff(i) {
15502
15498
  wx.translateVoice(i);
15503
15499
  }
15504
- function dd(i) {
15500
+ function df(i) {
15505
15501
  wx.getNetworkType(i);
15506
15502
  }
15507
- function fd(i) {
15503
+ function mf(i) {
15508
15504
  wx.openLocation(i);
15509
15505
  }
15510
- function md(i) {
15506
+ function pf(i) {
15511
15507
  wx.getLocation(i);
15512
15508
  }
15513
- function pd(i) {
15509
+ function gf(i) {
15514
15510
  wx.scanQRCode(i);
15515
15511
  }
15516
- function gd(i, t, e) {
15512
+ function yf(i, t, e) {
15517
15513
  function s() {
15518
15514
  WeixinJSBridge.invoke("getBrandWCPayRequest", i, function(n) {
15519
15515
  n.err_msg == "get_brand_wcpay_request:ok" ? t() : e(n.err_msg);
@@ -15521,7 +15517,7 @@ function gd(i, t, e) {
15521
15517
  }
15522
15518
  typeof WeixinJSBridge > "u" ? document.addEventListener ? document.addEventListener("WeixinJSBridgeReady", s, !1) : document.attachEvent && (document.attachEvent("WeixinJSBridgeReady", s), document.attachEvent("onWeixinJSBridgeReady", s)) : s();
15523
15519
  }
15524
- function yd(i) {
15520
+ function xf(i) {
15525
15521
  window.AlipayJSBridge ? i && i() : document.addEventListener("AlipayJSBridgeReady", i, !1);
15526
15522
  }
15527
15523
  function Ge(i, t) {
@@ -15563,7 +15559,7 @@ function Ge(i, t) {
15563
15559
  }
15564
15560
  return `${i.error}(${e}): ${i.errorMessage}`;
15565
15561
  }
15566
- function xd(i, t, e) {
15562
+ function wf(i, t, e) {
15567
15563
  ap.tradePay(
15568
15564
  Object.assign(i, {
15569
15565
  // fail: (res: commonFailOption) => {
@@ -15595,7 +15591,7 @@ function xd(i, t, e) {
15595
15591
  }
15596
15592
  );
15597
15593
  }
15598
- function wd(i, t, e) {
15594
+ function bf(i, t, e) {
15599
15595
  ap.scan(
15600
15596
  Object.assign(i, {
15601
15597
  fail: (s) => {
@@ -15607,7 +15603,7 @@ function wd(i, t, e) {
15607
15603
  }
15608
15604
  );
15609
15605
  }
15610
- function bd(i, t, e) {
15606
+ function vf(i, t, e) {
15611
15607
  ap.getLocation(
15612
15608
  Object.assign(i, {
15613
15609
  fail: (s) => {
@@ -15619,7 +15615,7 @@ function bd(i, t, e) {
15619
15615
  }
15620
15616
  );
15621
15617
  }
15622
- function vd(i, t, e) {
15618
+ function Sf(i, t, e) {
15623
15619
  ap.openLocation(
15624
15620
  Object.assign(i, {
15625
15621
  fail: (s) => {
@@ -15631,7 +15627,7 @@ function vd(i, t, e) {
15631
15627
  }
15632
15628
  );
15633
15629
  }
15634
- function Sd(i, t, e) {
15630
+ function Cf(i, t, e) {
15635
15631
  ap.chooseImage(
15636
15632
  Object.assign(i, {
15637
15633
  fail: (s) => {
@@ -15643,7 +15639,7 @@ function Sd(i, t, e) {
15643
15639
  }
15644
15640
  );
15645
15641
  }
15646
- function Cd(i, t, e) {
15642
+ function Ef(i, t, e) {
15647
15643
  ap.previewImage(
15648
15644
  Object.assign(i, {
15649
15645
  fail: (s) => {
@@ -15655,13 +15651,13 @@ function Cd(i, t, e) {
15655
15651
  }
15656
15652
  );
15657
15653
  }
15658
- class Ed {
15654
+ class Tf {
15659
15655
  map;
15660
15656
  constructor(t, e = 120.619585, s = 31.299379, n = 18) {
15661
15657
  this.map = new T.Map(t), this.map.centerAndZoom(new T.LngLat(e, s), n);
15662
15658
  }
15663
15659
  }
15664
- class Td {
15660
+ class Pf {
15665
15661
  /// 当前页数,从0开始
15666
15662
  currentPage;
15667
15663
  /// 每页item数量
@@ -15845,7 +15841,7 @@ class Dc {
15845
15841
  }
15846
15842
  }
15847
15843
  const As = Dc;
15848
- class Pd extends As {
15844
+ class _f extends As {
15849
15845
  constructor(t) {
15850
15846
  super(t);
15851
15847
  }
@@ -15867,7 +15863,7 @@ class Pd extends As {
15867
15863
  return n.addEventListener("load", r, !1), n.addEventListener("error", a, !1), t.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (n.crossOrigin = this.crossOrigin), this.manager.itemStart(t), n.src = t, n;
15868
15864
  }
15869
15865
  }
15870
- class _d extends As {
15866
+ class Af extends As {
15871
15867
  isImageBitmapLoader = !0;
15872
15868
  options;
15873
15869
  constructor(t) {
@@ -15946,7 +15942,7 @@ class Ic extends As {
15946
15942
  if (o.status === 200 || o.status === 0) {
15947
15943
  if (o.status === 0 && console.warn("FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || o.body === void 0 || o.body?.getReader === void 0)
15948
15944
  return o;
15949
- const h = Ut[t], c = o.body.getReader(), l = o.headers.get("X-File-Size") || o.headers.get("Content-Length"), d = l ? parseInt(l) : 0, y = d !== 0;
15945
+ const h = Ut[t], c = o.body.getReader(), l = o.headers.get("X-File-Size") || o.headers.get("Content-Length"), f = l ? parseInt(l) : 0, y = f !== 0;
15950
15946
  let w = 0;
15951
15947
  const m = new ReadableStream({
15952
15948
  start(E) {
@@ -15961,7 +15957,7 @@ class Ic extends As {
15961
15957
  const g = new ProgressEvent("progress", {
15962
15958
  lengthComputable: y,
15963
15959
  loaded: w,
15964
- total: d
15960
+ total: f
15965
15961
  });
15966
15962
  for (let p = 0, C = h.length; p < C; p++)
15967
15963
  h[p].onProgress?.(g);
@@ -15998,8 +15994,8 @@ class Ic extends As {
15998
15994
  if (r === void 0)
15999
15995
  return o.text();
16000
15996
  {
16001
- const c = /charset="?([^;"\s]*)"?/i.exec(r), l = c && c[1] ? c[1].toLowerCase() : void 0, d = new TextDecoder(l);
16002
- return o.arrayBuffer().then((y) => d.decode(y));
15997
+ const c = /charset="?([^;"\s]*)"?/i.exec(r), l = c && c[1] ? c[1].toLowerCase() : void 0, f = new TextDecoder(l);
15998
+ return o.arrayBuffer().then((y) => f.decode(y));
16003
15999
  }
16004
16000
  }
16005
16001
  }).then((o) => {
@@ -16027,7 +16023,7 @@ class Ic extends As {
16027
16023
  return this.mimeType = t, this;
16028
16024
  }
16029
16025
  }
16030
- class Ad extends As {
16026
+ class Df extends As {
16031
16027
  constructor(t) {
16032
16028
  super(t);
16033
16029
  }
@@ -16053,11 +16049,11 @@ class Ad extends As {
16053
16049
  }
16054
16050
  export {
16055
16051
  Pu as Arrow,
16056
- Ad as AudioLoader,
16052
+ Df as AudioLoader,
16057
16053
  Cr as BezierEasing,
16058
16054
  gl as CSSToJSEasing,
16059
16055
  Cn as Clock,
16060
- dt as Color,
16056
+ ft as Color,
16061
16057
  Sl as CommonKeyCode,
16062
16058
  Xu as Confetti,
16063
16059
  ye as ControlsColorPattern,
@@ -16068,7 +16064,7 @@ export {
16068
16064
  Kh as DOMEventBus,
16069
16065
  Zh as DOMKey,
16070
16066
  ic as DOMParse,
16071
- fe as DOMSVGUtil,
16067
+ de as DOMSVGUtil,
16072
16068
  rh as DOMToBlob,
16073
16069
  lr as DOMToString,
16074
16070
  k as DOMUtil,
@@ -16082,16 +16078,16 @@ export {
16082
16078
  _u as Fox,
16083
16079
  Au as Heart,
16084
16080
  Du as HeartVariant,
16085
- _d as ImageBitmapLoader,
16086
- Pd as ImageLoader,
16081
+ Af as ImageBitmapLoader,
16082
+ _f as ImageLoader,
16087
16083
  Kt as Interpolation,
16088
16084
  me as Line,
16089
16085
  Tu as LinePicture,
16090
16086
  Cu as LineQuadraticBezier,
16091
- ft as Matrix,
16087
+ dt as Matrix,
16092
16088
  yt as Matrix3D,
16093
16089
  rc as NormalColors,
16094
- Td as Pagination,
16090
+ Pf as Pagination,
16095
16091
  Qt as Point,
16096
16092
  ns as Point3D,
16097
16093
  Bu as Point3Ds,
@@ -16129,17 +16125,17 @@ export {
16129
16125
  xu as addWatermark,
16130
16126
  Br as addWxJsReadyFnBeforeConfig,
16131
16127
  Rl as ajax,
16132
- Sd as aliJsChooseImage,
16133
- bd as aliJsGetLocation,
16134
- vd as aliJsOpenLocation,
16135
- Cd as aliJsPreviewImage,
16136
- yd as aliJsReady,
16137
- wd as aliJsScan,
16138
- xd as aliJsTradePay,
16128
+ Cf as aliJsChooseImage,
16129
+ vf as aliJsGetLocation,
16130
+ Sf as aliJsOpenLocation,
16131
+ Ef as aliJsPreviewImage,
16132
+ xf as aliJsReady,
16133
+ bf as aliJsScan,
16134
+ wf as aliJsTradePay,
16139
16135
  he as angle,
16140
16136
  Ir as appendURL,
16141
16137
  Il as appendURLRecord,
16142
- dc as base64EncodeOutputStream,
16138
+ fc as base64EncodeOutputStream,
16143
16139
  Cc as bitmapMapper,
16144
16140
  Vl as blobToRawImage,
16145
16141
  Or as byteArrayOutputStream,
@@ -16165,10 +16161,10 @@ export {
16165
16161
  cc as flushURL,
16166
16162
  Ml as flushURLRecord,
16167
16163
  hc as formDataToString,
16168
- dl as fpsTask,
16164
+ fl as fpsTask,
16169
16165
  Uu as getBitmapFromCanvas,
16170
16166
  Nc as getBodyPosition,
16171
- dr as getBrowserClient,
16167
+ fr as getBrowserClient,
16172
16168
  qc as getBrowserClientVersion,
16173
16169
  jc as getBrowserLanguage,
16174
16170
  nc as getColorScheme,
@@ -16193,7 +16189,7 @@ export {
16193
16189
  ql as getImageMainColor,
16194
16190
  mh as getInternetExplorerVersion,
16195
16191
  It as getMousePositionInElement,
16196
- dh as getMousePositionInPage,
16192
+ fh as getMousePositionInPage,
16197
16193
  zc as getMousePositionInViewport,
16198
16194
  Ei as getOperatingSystem,
16199
16195
  Vc as getOperatingSystemVersion,
@@ -16207,7 +16203,7 @@ export {
16207
16203
  Hc as getUserGeolocationPromise,
16208
16204
  Gc as getVerticalScrollPercentInPage,
16209
16205
  Yc as getViewportSize,
16210
- fc as gifImage,
16206
+ dc as gifImage,
16211
16207
  ae as h,
16212
16208
  sl as hasDocument,
16213
16209
  il as hasHistory,
@@ -16218,14 +16214,14 @@ export {
16218
16214
  ju as injectWxJsConfig,
16219
16215
  gh as isAliBrowser,
16220
16216
  el as isAliMiniProgram,
16221
- fh as isAndroid,
16217
+ dh as isAndroid,
16222
16218
  Wc as isAppleDevice,
16223
16219
  nl as isBrowserSupportFileAPI,
16224
16220
  Zc as isDarkMode,
16225
16221
  al as isElement,
16226
16222
  Kc as isIE,
16227
16223
  Qc as isIE9or10,
16228
- fr as isIOS,
16224
+ dr as isIOS,
16229
16225
  mr as isMacOS,
16230
16226
  Jc as isMobile,
16231
16227
  zs as isNative,
@@ -16237,7 +16233,7 @@ export {
16237
16233
  Ti as length,
16238
16234
  yn as linkExport,
16239
16235
  Mr as localstorage,
16240
- Ed as mapTDTJSSDK,
16236
+ Tf as mapTDTJSSDK,
16241
16237
  lu as marginSharpen,
16242
16238
  pl as microTask,
16243
16239
  wu as mosaic,
@@ -16256,13 +16252,13 @@ export {
16256
16252
  ac as parseURL,
16257
16253
  Ci as patch,
16258
16254
  ch as patchDOM,
16259
- du as pngToJpg,
16255
+ fu as pngToJpg,
16260
16256
  Vt as polar,
16261
16257
  ol as prefixes,
16262
16258
  mu as radiusClip,
16263
16259
  Si as readFileInBrowser,
16264
16260
  Di as recordToString,
16265
- fu as rectClip,
16261
+ du as rectClip,
16266
16262
  gr as requestAnimationFrameCycle,
16267
16263
  yl as reverseCSSToJSEasing,
16268
16264
  Xh as reverseEaseNameToCubicBezier,
@@ -16301,28 +16297,28 @@ export {
16301
16297
  wl as transformPath2D,
16302
16298
  oc as trimURLHash,
16303
16299
  Zu as wxJsChooseImage,
16304
- td as wxJsDownloadImage,
16305
- ld as wxJsDownloadVoice,
16306
- ed as wxJsGetLocalImgData,
16307
- md as wxJsGetLocation,
16308
- dd as wxJsGetNetworkType,
16309
- hd as wxJsOnVoicePlayEnd,
16310
- nd as wxJsOnVoiceRecordEnd,
16311
- fd as wxJsOpenLocation,
16312
- ad as wxJsPauseVoice,
16313
- gd as wxJsPay,
16314
- rd as wxJsPlayVoice,
16300
+ tf as wxJsDownloadImage,
16301
+ uf as wxJsDownloadVoice,
16302
+ ef as wxJsGetLocalImgData,
16303
+ pf as wxJsGetLocation,
16304
+ df as wxJsGetNetworkType,
16305
+ cf as wxJsOnVoicePlayEnd,
16306
+ rf as wxJsOnVoiceRecordEnd,
16307
+ mf as wxJsOpenLocation,
16308
+ of as wxJsPauseVoice,
16309
+ yf as wxJsPay,
16310
+ af as wxJsPlayVoice,
16315
16311
  Ku as wxJsPreviewImage,
16316
- pd as wxJsScanQRCode,
16317
- sd as wxJsStartRecord,
16318
- id as wxJsStopRecord,
16319
- od as wxJsStopVoice,
16320
- ud as wxJsTranslateVoice,
16312
+ gf as wxJsScanQRCode,
16313
+ sf as wxJsStartRecord,
16314
+ nf as wxJsStopRecord,
16315
+ hf as wxJsStopVoice,
16316
+ ff as wxJsTranslateVoice,
16321
16317
  Wu as wxJsUpdateAppMessageShareData,
16322
16318
  Ju as wxJsUpdateTimelineShareData,
16323
16319
  Qu as wxJsUploadImage,
16324
- cd as wxJsUploadVoice,
16325
- fl as yzCancelIdleCallback,
16320
+ lf as wxJsUploadVoice,
16321
+ dl as yzCancelIdleCallback,
16326
16322
  Mh as yzRequestIdleCallback
16327
16323
  };
16328
16324
  //# sourceMappingURL=zyzgroup_core_web.js.map