@prefecthq/graphs 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/graphs.mjs CHANGED
@@ -109,7 +109,7 @@ ah.exports;
109
109
  }
110
110
  return x.apply(w, M);
111
111
  }
112
- function ft(x, w) {
112
+ function mt(x, w) {
113
113
  for (var M = -1, Z = Array(x); ++M < x; )
114
114
  Z[M] = w(M);
115
115
  return Z;
@@ -269,9 +269,9 @@ ah.exports;
269
269
  }
270
270
  ae.prototype.clear = Sl, ae.prototype.delete = El, ae.prototype.get = Cl, ae.prototype.has = Il, ae.prototype.set = Al;
271
271
  function Xi(x, w) {
272
- var M = Ds(x), Z = !M && ei(x), ot = !M && !Z && aa(x), dt = !M && !Z && !ot && dr(x), mt = M || Z || ot || dt, nt = mt ? ft(x.length, String) : [], bt = nt.length;
272
+ var M = Ds(x), Z = !M && ei(x), ot = !M && !Z && aa(x), dt = !M && !Z && !ot && dr(x), gt = M || Z || ot || dt, nt = gt ? mt(x.length, String) : [], bt = nt.length;
273
273
  for (var Ft in x)
274
- (w || qe.call(x, Ft)) && !(mt && // Safari 9 has enumerable `arguments.length` in strict mode.
274
+ (w || qe.call(x, Ft)) && !(gt && // Safari 9 has enumerable `arguments.length` in strict mode.
275
275
  (Ft == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
276
276
  ot && (Ft == "offset" || Ft == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
277
277
  dt && (Ft == "buffer" || Ft == "byteLength" || Ft == "byteOffset") || // Skip index properties.
@@ -324,27 +324,27 @@ ah.exports;
324
324
  return M;
325
325
  }
326
326
  function ea(x, w, M, Z, ot) {
327
- x !== w && Ml(w, function(dt, mt) {
327
+ x !== w && Ml(w, function(dt, gt) {
328
328
  if (ot || (ot = new ae()), xi(dt))
329
- Gl(x, w, mt, M, ea, Z, ot);
329
+ Gl(x, w, gt, M, ea, Z, ot);
330
330
  else {
331
- var nt = Z ? Z(Vn(x, mt), dt, mt + "", x, w, ot) : void 0;
332
- nt === void 0 && (nt = dt), Un(x, mt, nt);
331
+ var nt = Z ? Z(Vn(x, gt), dt, gt + "", x, w, ot) : void 0;
332
+ nt === void 0 && (nt = dt), Un(x, gt, nt);
333
333
  }
334
334
  }, ca);
335
335
  }
336
- function Gl(x, w, M, Z, ot, dt, mt) {
337
- var nt = Vn(x, M), bt = Vn(w, M), Ft = mt.get(bt);
336
+ function Gl(x, w, M, Z, ot, dt, gt) {
337
+ var nt = Vn(x, M), bt = Vn(w, M), Ft = gt.get(bt);
338
338
  if (Ft) {
339
339
  Un(x, M, Ft);
340
340
  return;
341
341
  }
342
- var It = dt ? dt(nt, bt, M + "", x, w, mt) : void 0, Qt = It === void 0;
342
+ var It = dt ? dt(nt, bt, M + "", x, w, gt) : void 0, Qt = It === void 0;
343
343
  if (Qt) {
344
344
  var he = Ds(bt), De = !he && aa(bt), We = !he && !De && dr(bt);
345
345
  It = bt, he || De || We ? Ds(nt) ? It = nt : Ws(nt) ? It = Br(nt) : De ? (Qt = !1, It = kl(bt, !0)) : We ? (Qt = !1, It = Dl(bt, !0)) : It = [] : la(bt) || ei(bt) ? (It = nt, ei(nt) ? It = ua(nt) : (!xi(nt) || Ur(nt)) && (It = sa(bt))) : Qt = !1;
346
346
  }
347
- Qt && (mt.set(bt, It), ot(It, bt, Z, dt, mt), mt.delete(bt)), Un(x, M, It);
347
+ Qt && (gt.set(bt, It), ot(It, bt, Z, dt, gt), gt.delete(bt)), Un(x, M, It);
348
348
  }
349
349
  function Fl(x, w) {
350
350
  return Zl(bi(x, w, T), x + "");
@@ -380,7 +380,7 @@ ah.exports;
380
380
  function ia(x, w, M, Z) {
381
381
  var ot = !M;
382
382
  M || (M = {});
383
- for (var dt = -1, mt = w.length; ++dt < mt; ) {
383
+ for (var dt = -1, gt = w.length; ++dt < gt; ) {
384
384
  var nt = w[dt], bt = Z ? Z(M[nt], x[nt], nt, M, x) : void 0;
385
385
  bt === void 0 && (bt = x[nt]), ot ? Xn(M, nt, bt) : Rl(M, nt, bt);
386
386
  }
@@ -388,8 +388,8 @@ ah.exports;
388
388
  }
389
389
  function ra(x) {
390
390
  return Fl(function(w, M) {
391
- var Z = -1, ot = M.length, dt = ot > 1 ? M[ot - 1] : void 0, mt = ot > 2 ? M[2] : void 0;
392
- for (dt = x.length > 3 && typeof dt == "function" ? (ot--, dt) : void 0, mt && Bl(M[0], M[1], mt) && (dt = ot < 3 ? void 0 : dt, ot = 1), w = Object(w); ++Z < ot; ) {
391
+ var Z = -1, ot = M.length, dt = ot > 1 ? M[ot - 1] : void 0, gt = ot > 2 ? M[2] : void 0;
392
+ for (dt = x.length > 3 && typeof dt == "function" ? (ot--, dt) : void 0, gt && Bl(M[0], M[1], gt) && (dt = ot < 3 ? void 0 : dt, ot = 1), w = Object(w); ++Z < ot; ) {
393
393
  var nt = M[Z];
394
394
  nt && x(w, nt, Z, dt);
395
395
  }
@@ -398,8 +398,8 @@ ah.exports;
398
398
  }
399
399
  function Wl(x) {
400
400
  return function(w, M, Z) {
401
- for (var ot = -1, dt = Object(w), mt = Z(w), nt = mt.length; nt--; ) {
402
- var bt = mt[x ? nt : ++ot];
401
+ for (var ot = -1, dt = Object(w), gt = Z(w), nt = gt.length; nt--; ) {
402
+ var bt = gt[x ? nt : ++ot];
403
403
  if (M(dt[bt], bt, dt) === !1)
404
404
  break;
405
405
  }
@@ -460,12 +460,12 @@ ah.exports;
460
460
  }
461
461
  function bi(x, w, M) {
462
462
  return w = gi(w === void 0 ? x.length - 1 : w, 0), function() {
463
- for (var Z = arguments, ot = -1, dt = gi(Z.length - w, 0), mt = Array(dt); ++ot < dt; )
464
- mt[ot] = Z[w + ot];
463
+ for (var Z = arguments, ot = -1, dt = gi(Z.length - w, 0), gt = Array(dt); ++ot < dt; )
464
+ gt[ot] = Z[w + ot];
465
465
  ot = -1;
466
466
  for (var nt = Array(w + 1); ++ot < w; )
467
467
  nt[ot] = Z[ot];
468
- return nt[w] = M(mt), yt(x, this, nt);
468
+ return nt[w] = M(gt), yt(x, this, nt);
469
469
  };
470
470
  }
471
471
  function Vn(x, w) {
@@ -594,12 +594,12 @@ function xx() {
594
594
  clear: n
595
595
  };
596
596
  }
597
- const _t = xx();
597
+ const xt = xx();
598
598
  function je(r) {
599
599
  let t;
600
600
  return new Promise((e) => {
601
- t = e, _t.on(r, t);
602
- }).then((e) => (_t.off(r, t), e));
601
+ t = e, xt.on(r, t);
602
+ }).then((e) => (xt.off(r, t), e));
603
603
  }
604
604
  let ns = null;
605
605
  function _x() {
@@ -661,10 +661,10 @@ async function Sx(r) {
661
661
  $u(() => r.config, (e) => {
662
662
  const i = wx(e);
663
663
  if (!br) {
664
- br = i, _t.emit("configCreated", br);
664
+ br = i, xt.emit("configCreated", br);
665
665
  return;
666
666
  }
667
- Object.assign(br, i), _t.emit("configUpdated", br);
667
+ Object.assign(br, i), xt.emit("configUpdated", br);
668
668
  }, { immediate: !0 });
669
669
  });
670
670
  }
@@ -1236,30 +1236,30 @@ hh.exports;
1236
1236
  return S(Q + (v + 1) * k / (k + c));
1237
1237
  }
1238
1238
  function V(k) {
1239
- var U = [], z = k.length, Q, ct = 0, st = m, wt = p, At, vt, Y, tt, q, W, yt, ft, Rt;
1239
+ var U = [], z = k.length, Q, ct = 0, st = m, wt = p, At, vt, Y, tt, q, W, yt, mt, Rt;
1240
1240
  for (At = k.lastIndexOf(f), At < 0 && (At = 0), vt = 0; vt < At; ++vt)
1241
1241
  k.charCodeAt(vt) >= 128 && I("not-basic"), U.push(k.charCodeAt(vt));
1242
1242
  for (Y = At > 0 ? At + 1 : 0; Y < z; ) {
1243
- for (tt = ct, q = 1, W = h; Y >= z && I("invalid-input"), yt = C(k.charCodeAt(Y++)), (yt >= h || yt > S((a - ct) / q)) && I("overflow"), ct += yt * q, ft = W <= wt ? l : W >= wt + u ? u : W - wt, !(yt < ft); W += h)
1244
- Rt = h - ft, q > S(a / Rt) && I("overflow"), q *= Rt;
1243
+ for (tt = ct, q = 1, W = h; Y >= z && I("invalid-input"), yt = C(k.charCodeAt(Y++)), (yt >= h || yt > S((a - ct) / q)) && I("overflow"), ct += yt * q, mt = W <= wt ? l : W >= wt + u ? u : W - wt, !(yt < mt); W += h)
1244
+ Rt = h - mt, q > S(a / Rt) && I("overflow"), q *= Rt;
1245
1245
  Q = U.length + 1, wt = X(ct - tt, Q, tt == 0), S(ct / Q) > a - st && I("overflow"), st += S(ct / Q), ct %= Q, U.splice(ct++, 0, st);
1246
1246
  }
1247
1247
  return F(U);
1248
1248
  }
1249
1249
  function L(k) {
1250
- var U, z, Q, ct, st, wt, At, vt, Y, tt, q, W = [], yt, ft, Rt, Nt;
1250
+ var U, z, Q, ct, st, wt, At, vt, Y, tt, q, W = [], yt, mt, Rt, Nt;
1251
1251
  for (k = G(k), yt = k.length, U = m, z = 0, st = p, wt = 0; wt < yt; ++wt)
1252
1252
  q = k[wt], q < 128 && W.push(E(q));
1253
1253
  for (Q = ct = W.length, ct && W.push(f); Q < yt; ) {
1254
1254
  for (At = a, wt = 0; wt < yt; ++wt)
1255
1255
  q = k[wt], q >= U && q < At && (At = q);
1256
- for (ft = Q + 1, At - U > S((a - z) / ft) && I("overflow"), z += (At - U) * ft, U = At, wt = 0; wt < yt; ++wt)
1256
+ for (mt = Q + 1, At - U > S((a - z) / mt) && I("overflow"), z += (At - U) * mt, U = At, wt = 0; wt < yt; ++wt)
1257
1257
  if (q = k[wt], q < U && ++z > a && I("overflow"), q == U) {
1258
1258
  for (vt = z, Y = h; tt = Y <= st ? l : Y >= st + u ? u : Y - st, !(vt < tt); Y += h)
1259
1259
  Nt = vt - tt, Rt = h - tt, W.push(
1260
1260
  E(N(tt + Nt % Rt, 0))
1261
1261
  ), vt = S(Nt / Rt);
1262
- W.push(E(N(vt, 0))), st = X(z, ft, Q == ct), z = 0, ++Q;
1262
+ W.push(E(N(vt, 0))), st = X(z, mt, Q == ct), z = 0, ++Q;
1263
1263
  }
1264
1264
  ++z, ++U;
1265
1265
  }
@@ -2625,7 +2625,7 @@ sr.prototype.parseHost = function() {
2625
2625
  t && (t = t[0], t !== ":" && (this.port = t.substr(1)), r = r.substr(0, r.length - t.length)), r && (this.hostname = r);
2626
2626
  };
2627
2627
  const ff = {};
2628
- function xt(r, t, e = 3) {
2628
+ function _t(r, t, e = 3) {
2629
2629
  if (ff[t])
2630
2630
  return;
2631
2631
  let i = new Error().stack;
@@ -3405,10 +3405,10 @@ Ys.temp = new Ys(), /** Pattern for hex strings */
3405
3405
  Ys.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
3406
3406
  let Lt = Ys;
3407
3407
  function p1(r) {
3408
- return xt("7.2.0", "utils.hex2string is deprecated, use Color#toHex instead"), Lt.shared.setValue(r).toHex();
3408
+ return _t("7.2.0", "utils.hex2string is deprecated, use Color#toHex instead"), Lt.shared.setValue(r).toHex();
3409
3409
  }
3410
3410
  function f1(r) {
3411
- return xt("7.2.0", "utils.rgb2hex is deprecated, use Color#toNumber instead"), Lt.shared.setValue(r).toNumber();
3411
+ return _t("7.2.0", "utils.rgb2hex is deprecated, use Color#toNumber instead"), Lt.shared.setValue(r).toNumber();
3412
3412
  }
3413
3413
  function m1() {
3414
3414
  const r = [], t = [];
@@ -4468,7 +4468,7 @@ vc.defaultOptions = {
4468
4468
  type: at.UNSIGNED_BYTE
4469
4469
  }, /** Global number of the texture batch, used by multi-texture renderers. */
4470
4470
  vc._globalBatch = 0;
4471
- let pt = vc;
4471
+ let ft = vc;
4472
4472
  class Tc {
4473
4473
  constructor() {
4474
4474
  this.texArray = null, this.blend = 0, this.type = Ri.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
@@ -6575,7 +6575,7 @@ const ro = class si extends il {
6575
6575
  * @readonly
6576
6576
  */
6577
6577
  get MAX_TEXTURES() {
6578
- return xt("7.1.0", "BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"), this.maxTextures;
6578
+ return _t("7.1.0", "BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"), this.maxTextures;
6579
6579
  }
6580
6580
  /**
6581
6581
  * The default vertex shader source
@@ -6651,7 +6651,7 @@ const ro = class si extends il {
6651
6651
  _bufferedTextures: t,
6652
6652
  maxTextures: e
6653
6653
  } = this, i = si._textureArrayPool, s = this.renderer.batch, n = this._tempBoundTextures, o = this.renderer.textureGC.count;
6654
- let a = ++pt._globalBatch, h = 0, l = i[0], u = 0;
6654
+ let a = ++ft._globalBatch, h = 0, l = i[0], u = 0;
6655
6655
  s.copyBoundTextures(n, e);
6656
6656
  for (let c = 0; c < this._bufferSize; ++c) {
6657
6657
  const d = t[c];
@@ -6660,7 +6660,7 @@ const ro = class si extends il {
6660
6660
  l.count > 0 && (s.boundArray(l, n, a, e), this.buildDrawCalls(l, u, this._bufferSize), ++h, ++a);
6661
6661
  for (let c = 0; c < n.length; c++)
6662
6662
  n[c] = null;
6663
- pt._globalBatch = a;
6663
+ ft._globalBatch = a;
6664
6664
  }
6665
6665
  /**
6666
6666
  * Populating drawcalls for rendering
@@ -7242,7 +7242,7 @@ class Ac {
7242
7242
  * @param texture - Texture to add to the array
7243
7243
  */
7244
7244
  addColorTexture(t = 0, e) {
7245
- return this.colorTextures[t] = e || new pt(null, {
7245
+ return this.colorTextures[t] = e || new ft(null, {
7246
7246
  scaleMode: $i.NEAREST,
7247
7247
  resolution: 1,
7248
7248
  mipmap: Wi.OFF,
@@ -7255,7 +7255,7 @@ class Ac {
7255
7255
  * @param texture - Texture to add.
7256
7256
  */
7257
7257
  addDepthTexture(t) {
7258
- return this.depthTexture = t || new pt(null, {
7258
+ return this.depthTexture = t || new ft(null, {
7259
7259
  scaleMode: $i.NEAREST,
7260
7260
  resolution: 1,
7261
7261
  width: this.width,
@@ -7302,7 +7302,7 @@ class Ac {
7302
7302
  this.depthTexture && (this.depthTexture.destroy(), this.depthTexture = null, ++this.dirtyId, ++this.dirtyFormat);
7303
7303
  }
7304
7304
  }
7305
- class Jg extends pt {
7305
+ class Jg extends ft {
7306
7306
  /**
7307
7307
  * @param options
7308
7308
  * @param {number} [options.width=100] - The width of the base render texture.
@@ -7643,10 +7643,10 @@ class rt extends Wo {
7643
7643
  let n = null;
7644
7644
  if (s)
7645
7645
  n = t;
7646
- else if (t instanceof pt) {
7646
+ else if (t instanceof ft) {
7647
7647
  if (!t.cacheId) {
7648
7648
  const a = (e == null ? void 0 : e.pixiIdPrefix) || "pixiid";
7649
- t.cacheId = `${a}-${bs()}`, pt.addToCache(t, t.cacheId);
7649
+ t.cacheId = `${a}-${bs()}`, ft.addToCache(t, t.cacheId);
7650
7650
  }
7651
7651
  n = t.cacheId;
7652
7652
  } else {
@@ -7659,7 +7659,7 @@ class rt extends Wo {
7659
7659
  let o = Ti[n];
7660
7660
  if (s && i && !o)
7661
7661
  throw new Error(`The cacheId "${n}" does not exist in TextureCache.`);
7662
- return !o && !(t instanceof pt) ? (e.resolution || (e.resolution = nr(t)), o = new rt(new pt(t, e)), o.baseTexture.cacheId = n, pt.addToCache(o.baseTexture, n), rt.addToCache(o, n)) : !o && t instanceof pt && (o = new rt(t), rt.addToCache(o, n)), o;
7662
+ return !o && !(t instanceof ft) ? (e.resolution || (e.resolution = nr(t)), o = new rt(new ft(t, e)), o.baseTexture.cacheId = n, ft.addToCache(o.baseTexture, n), rt.addToCache(o, n)) : !o && t instanceof ft && (o = new rt(t), rt.addToCache(o, n)), o;
7663
7663
  }
7664
7664
  /**
7665
7665
  * Useful for loading textures via URLs. Use instead of `Texture.from` because
@@ -7692,7 +7692,7 @@ class rt extends Wo {
7692
7692
  * @returns - The resulting new BaseTexture
7693
7693
  */
7694
7694
  static fromBuffer(t, e, i, s) {
7695
- return new rt(pt.fromBuffer(t, e, i, s));
7695
+ return new rt(ft.fromBuffer(t, e, i, s));
7696
7696
  }
7697
7697
  /**
7698
7698
  * Create a texture from a source and add to the cache.
@@ -7704,13 +7704,13 @@ class rt extends Wo {
7704
7704
  * @returns - Output texture
7705
7705
  */
7706
7706
  static fromLoader(t, e, i, s) {
7707
- const n = new pt(t, Object.assign({
7708
- scaleMode: pt.defaultOptions.scaleMode,
7707
+ const n = new ft(t, Object.assign({
7708
+ scaleMode: ft.defaultOptions.scaleMode,
7709
7709
  resolution: nr(e)
7710
7710
  }, s)), { resource: o } = n;
7711
7711
  o instanceof $g && (o.url = e);
7712
7712
  const a = new rt(n);
7713
- return i || (i = e), pt.addToCache(a.baseTexture, i), rt.addToCache(a, i), i !== e && (pt.addToCache(a.baseTexture, e), rt.addToCache(a, e)), a.baseTexture.valid ? Promise.resolve(a) : new Promise((h) => {
7713
+ return i || (i = e), ft.addToCache(a.baseTexture, i), rt.addToCache(a, i), i !== e && (ft.addToCache(a.baseTexture, e), rt.addToCache(a, e)), a.baseTexture.valid ? Promise.resolve(a) : new Promise((h) => {
7714
7714
  a.baseTexture.once("loaded", () => h(a));
7715
7715
  });
7716
7716
  }
@@ -7791,13 +7791,13 @@ class rt extends Wo {
7791
7791
  }
7792
7792
  /** An empty texture, used often to not have to create multiple empty textures. Can not be destroyed. */
7793
7793
  static get EMPTY() {
7794
- return rt._EMPTY || (rt._EMPTY = new rt(new pt()), Aa(rt._EMPTY), Aa(rt._EMPTY.baseTexture)), rt._EMPTY;
7794
+ return rt._EMPTY || (rt._EMPTY = new rt(new ft()), Aa(rt._EMPTY), Aa(rt._EMPTY.baseTexture)), rt._EMPTY;
7795
7795
  }
7796
7796
  /** A white texture of 16x16 size, used for graphics and other things Can not be destroyed. */
7797
7797
  static get WHITE() {
7798
7798
  if (!rt._WHITE) {
7799
7799
  const t = $.ADAPTER.createCanvas(16, 16), e = t.getContext("2d");
7800
- t.width = 16, t.height = 16, e.fillStyle = "white", e.fillRect(0, 0, 16, 16), rt._WHITE = new rt(pt.from(t)), Aa(rt._WHITE), Aa(rt._WHITE.baseTexture);
7800
+ t.width = 16, t.height = 16, e.fillStyle = "white", e.fillRect(0, 0, 16, 16), rt._WHITE = new rt(ft.from(t)), Aa(rt._WHITE), Aa(rt._WHITE.baseTexture);
7801
7801
  }
7802
7802
  return rt._WHITE;
7803
7803
  }
@@ -9235,19 +9235,19 @@ class h0 {
9235
9235
  extract: {
9236
9236
  enumerable: !1,
9237
9237
  get() {
9238
- return xt("7.0.0", "renderer.plugins.extract has moved to renderer.extract"), t.extract;
9238
+ return _t("7.0.0", "renderer.plugins.extract has moved to renderer.extract"), t.extract;
9239
9239
  }
9240
9240
  },
9241
9241
  prepare: {
9242
9242
  enumerable: !1,
9243
9243
  get() {
9244
- return xt("7.0.0", "renderer.plugins.prepare has moved to renderer.prepare"), t.prepare;
9244
+ return _t("7.0.0", "renderer.plugins.prepare has moved to renderer.prepare"), t.prepare;
9245
9245
  }
9246
9246
  },
9247
9247
  interaction: {
9248
9248
  enumerable: !1,
9249
9249
  get() {
9250
- return xt("7.0.0", "renderer.plugins.interaction has been deprecated, use renderer.events"), t.events;
9250
+ return _t("7.0.0", "renderer.plugins.interaction has been deprecated, use renderer.events"), t.events;
9251
9251
  }
9252
9252
  }
9253
9253
  });
@@ -10329,7 +10329,7 @@ class m0 {
10329
10329
  * @param renderer - The renderer this system works for.
10330
10330
  */
10331
10331
  constructor(t) {
10332
- this.renderer = t, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new pt(), this.hasIntegerTextures = !1;
10332
+ this.renderer = t, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new ft(), this.hasIntegerTextures = !1;
10333
10333
  }
10334
10334
  /** Sets up the renderer context and necessary buffers. */
10335
10335
  contextChange() {
@@ -10654,10 +10654,10 @@ Object.defineProperties($, {
10654
10654
  */
10655
10655
  WRAP_MODE: {
10656
10656
  get() {
10657
- return pt.defaultOptions.wrapMode;
10657
+ return ft.defaultOptions.wrapMode;
10658
10658
  },
10659
10659
  set(r) {
10660
- xt("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"), pt.defaultOptions.wrapMode = r;
10660
+ _t("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"), ft.defaultOptions.wrapMode = r;
10661
10661
  }
10662
10662
  },
10663
10663
  /**
@@ -10670,10 +10670,10 @@ Object.defineProperties($, {
10670
10670
  */
10671
10671
  SCALE_MODE: {
10672
10672
  get() {
10673
- return pt.defaultOptions.scaleMode;
10673
+ return ft.defaultOptions.scaleMode;
10674
10674
  },
10675
10675
  set(r) {
10676
- xt("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"), pt.defaultOptions.scaleMode = r;
10676
+ _t("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"), ft.defaultOptions.scaleMode = r;
10677
10677
  }
10678
10678
  },
10679
10679
  /**
@@ -10686,10 +10686,10 @@ Object.defineProperties($, {
10686
10686
  */
10687
10687
  MIPMAP_TEXTURES: {
10688
10688
  get() {
10689
- return pt.defaultOptions.mipmap;
10689
+ return ft.defaultOptions.mipmap;
10690
10690
  },
10691
10691
  set(r) {
10692
- xt("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"), pt.defaultOptions.mipmap = r;
10692
+ _t("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"), ft.defaultOptions.mipmap = r;
10693
10693
  }
10694
10694
  // MIPMAP_MODES.POW2,
10695
10695
  },
@@ -10703,13 +10703,13 @@ Object.defineProperties($, {
10703
10703
  */
10704
10704
  ANISOTROPIC_LEVEL: {
10705
10705
  get() {
10706
- return pt.defaultOptions.anisotropicLevel;
10706
+ return ft.defaultOptions.anisotropicLevel;
10707
10707
  },
10708
10708
  set(r) {
10709
- xt(
10709
+ _t(
10710
10710
  "7.1.0",
10711
10711
  "settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"
10712
- ), pt.defaultOptions.anisotropicLevel = r;
10712
+ ), ft.defaultOptions.anisotropicLevel = r;
10713
10713
  }
10714
10714
  },
10715
10715
  /**
@@ -10723,7 +10723,7 @@ Object.defineProperties($, {
10723
10723
  */
10724
10724
  FILTER_RESOLUTION: {
10725
10725
  get() {
10726
- return xt("7.1.0", "settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"), fe.defaultResolution;
10726
+ return _t("7.1.0", "settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"), fe.defaultResolution;
10727
10727
  },
10728
10728
  set(r) {
10729
10729
  fe.defaultResolution = r;
@@ -10740,7 +10740,7 @@ Object.defineProperties($, {
10740
10740
  */
10741
10741
  FILTER_MULTISAMPLE: {
10742
10742
  get() {
10743
- return xt("7.1.0", "settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"), fe.defaultMultisample;
10743
+ return _t("7.1.0", "settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"), fe.defaultMultisample;
10744
10744
  },
10745
10745
  set(r) {
10746
10746
  fe.defaultMultisample = r;
@@ -10760,7 +10760,7 @@ Object.defineProperties($, {
10760
10760
  return ts.defaultMaxTextures;
10761
10761
  },
10762
10762
  set(r) {
10763
- xt("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"), ts.defaultMaxTextures = r;
10763
+ _t("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"), ts.defaultMaxTextures = r;
10764
10764
  }
10765
10765
  },
10766
10766
  /**
@@ -10779,7 +10779,7 @@ Object.defineProperties($, {
10779
10779
  return ts.defaultBatchSize;
10780
10780
  },
10781
10781
  set(r) {
10782
- xt("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"), ts.defaultBatchSize = r;
10782
+ _t("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"), ts.defaultBatchSize = r;
10783
10783
  }
10784
10784
  },
10785
10785
  /**
@@ -10796,7 +10796,7 @@ Object.defineProperties($, {
10796
10796
  return ts.canUploadSameBuffer;
10797
10797
  },
10798
10798
  set(r) {
10799
- xt("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"), ts.canUploadSameBuffer = r;
10799
+ _t("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"), ts.canUploadSameBuffer = r;
10800
10800
  }
10801
10801
  },
10802
10802
  /**
@@ -10813,7 +10813,7 @@ Object.defineProperties($, {
10813
10813
  return es.defaultMode;
10814
10814
  },
10815
10815
  set(r) {
10816
- xt("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"), es.defaultMode = r;
10816
+ _t("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"), es.defaultMode = r;
10817
10817
  }
10818
10818
  },
10819
10819
  /**
@@ -10830,7 +10830,7 @@ Object.defineProperties($, {
10830
10830
  return es.defaultMaxIdle;
10831
10831
  },
10832
10832
  set(r) {
10833
- xt("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"), es.defaultMaxIdle = r;
10833
+ _t("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"), es.defaultMaxIdle = r;
10834
10834
  }
10835
10835
  },
10836
10836
  /**
@@ -10847,7 +10847,7 @@ Object.defineProperties($, {
10847
10847
  return es.defaultCheckCountMax;
10848
10848
  },
10849
10849
  set(r) {
10850
- xt("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"), es.defaultCheckCountMax = r;
10850
+ _t("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"), es.defaultCheckCountMax = r;
10851
10851
  }
10852
10852
  },
10853
10853
  /**
@@ -10864,7 +10864,7 @@ Object.defineProperties($, {
10864
10864
  return tr.defaultVertexPrecision;
10865
10865
  },
10866
10866
  set(r) {
10867
- xt("7.1.0", "settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"), tr.defaultVertexPrecision = r;
10867
+ _t("7.1.0", "settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"), tr.defaultVertexPrecision = r;
10868
10868
  }
10869
10869
  },
10870
10870
  /**
@@ -10881,7 +10881,7 @@ Object.defineProperties($, {
10881
10881
  return tr.defaultFragmentPrecision;
10882
10882
  },
10883
10883
  set(r) {
10884
- xt("7.1.0", "settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"), tr.defaultFragmentPrecision = r;
10884
+ _t("7.1.0", "settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"), tr.defaultFragmentPrecision = r;
10885
10885
  }
10886
10886
  }
10887
10887
  });
@@ -11227,7 +11227,7 @@ Object.defineProperties($, {
11227
11227
  return me.targetFPMS;
11228
11228
  },
11229
11229
  set(r) {
11230
- xt("7.1.0", "settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"), me.targetFPMS = r;
11230
+ _t("7.1.0", "settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"), me.targetFPMS = r;
11231
11231
  }
11232
11232
  }
11233
11233
  });
@@ -11532,7 +11532,7 @@ const Ja = class Mc extends IT {
11532
11532
  "_multisample"
11533
11533
  ]
11534
11534
  };
11535
- this.setup(e), "useContextAlpha" in t && (xt("7.0.0", "options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"), t.premultipliedAlpha = t.useContextAlpha && t.useContextAlpha !== "notMultiplied", t.backgroundAlpha = t.useContextAlpha === !1 ? 1 : t.backgroundAlpha), this._plugin.rendererPlugins = Mc.__plugins, this.options = t, this.startup.run(this.options);
11535
+ this.setup(e), "useContextAlpha" in t && (_t("7.0.0", "options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"), t.premultipliedAlpha = t.useContextAlpha && t.useContextAlpha !== "notMultiplied", t.backgroundAlpha = t.useContextAlpha === !1 ? 1 : t.backgroundAlpha), this._plugin.rendererPlugins = Mc.__plugins, this.options = t, this.startup.run(this.options);
11536
11536
  }
11537
11537
  /**
11538
11538
  * Create renderer if WebGL is available. Overrideable
@@ -11650,7 +11650,7 @@ const Ja = class Mc extends IT {
11650
11650
  * @deprecated since 7.0.0
11651
11651
  */
11652
11652
  get clearBeforeRender() {
11653
- return xt("7.0.0", "renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."), this.background.clearBeforeRender;
11653
+ return _t("7.0.0", "renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."), this.background.clearBeforeRender;
11654
11654
  }
11655
11655
  /**
11656
11656
  * Pass-thru setting for the canvas' context `alpha` property. This is typically
@@ -11659,7 +11659,7 @@ const Ja = class Mc extends IT {
11659
11659
  * @member {boolean}
11660
11660
  */
11661
11661
  get useContextAlpha() {
11662
- return xt("7.0.0", "renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."), this.context.useContextAlpha;
11662
+ return _t("7.0.0", "renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."), this.context.useContextAlpha;
11663
11663
  }
11664
11664
  /**
11665
11665
  * readonly drawing buffer preservation
@@ -11667,7 +11667,7 @@ const Ja = class Mc extends IT {
11667
11667
  * @deprecated since 7.0.0
11668
11668
  */
11669
11669
  get preserveDrawingBuffer() {
11670
- return xt("7.0.0", "renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"), this.context.preserveDrawingBuffer;
11670
+ return _t("7.0.0", "renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"), this.context.preserveDrawingBuffer;
11671
11671
  }
11672
11672
  /**
11673
11673
  * The background color to fill if not transparent
@@ -11675,10 +11675,10 @@ const Ja = class Mc extends IT {
11675
11675
  * @deprecated since 7.0.0
11676
11676
  */
11677
11677
  get backgroundColor() {
11678
- return xt("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color;
11678
+ return _t("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color;
11679
11679
  }
11680
11680
  set backgroundColor(t) {
11681
- xt("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color = t;
11681
+ _t("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color = t;
11682
11682
  }
11683
11683
  /**
11684
11684
  * The background color alpha. Setting this to 0 will make the canvas transparent.
@@ -11686,19 +11686,19 @@ const Ja = class Mc extends IT {
11686
11686
  * @deprecated since 7.0.0
11687
11687
  */
11688
11688
  get backgroundAlpha() {
11689
- return xt("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha;
11689
+ return _t("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha;
11690
11690
  }
11691
11691
  /**
11692
11692
  * @deprecated since 7.0.0
11693
11693
  */
11694
11694
  set backgroundAlpha(t) {
11695
- xt("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha = t;
11695
+ _t("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha = t;
11696
11696
  }
11697
11697
  /**
11698
11698
  * @deprecated since 7.0.0
11699
11699
  */
11700
11700
  get powerPreference() {
11701
- return xt("7.0.0", "renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"), this.context.powerPreference;
11701
+ return _t("7.0.0", "renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"), this.context.powerPreference;
11702
11702
  }
11703
11703
  /**
11704
11704
  * Useful function that returns a texture of the display object that can then be used to create sprites
@@ -11744,7 +11744,7 @@ class S0 extends Eo {
11744
11744
  const { width: i, height: s } = e || {};
11745
11745
  super(i, s), this.items = [], this.itemDirtyIds = [];
11746
11746
  for (let n = 0; n < t; n++) {
11747
- const o = new pt();
11747
+ const o = new ft();
11748
11748
  this.items.push(o), this.itemDirtyIds.push(-2);
11749
11749
  }
11750
11750
  this.length = t, this._load = null, this.baseTexture = null;
@@ -13162,7 +13162,7 @@ Object.defineProperties($, {
13162
13162
  return Zt.defaultSortableChildren;
13163
13163
  },
13164
13164
  set(r) {
13165
- xt("7.1.0", "settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"), Zt.defaultSortableChildren = r;
13165
+ _t("7.1.0", "settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"), Zt.defaultSortableChildren = r;
13166
13166
  }
13167
13167
  }
13168
13168
  });
@@ -13449,7 +13449,7 @@ Bt.prototype._initCachedDisplayObject = function(r) {
13449
13449
  resolution: i,
13450
13450
  multisample: this.cacheAsBitmapMultisample ?? r.multisample
13451
13451
  }), l = `cacheAsBitmap_${bs()}`;
13452
- this._cacheData.textureCacheId = l, pt.addToCache(h.baseTexture, l), rt.addToCache(h, l);
13452
+ this._cacheData.textureCacheId = l, ft.addToCache(h.baseTexture, l), rt.addToCache(h, l);
13453
13453
  const u = this.transform.localTransform.copyTo(A0).invert().translate(-e.x, -e.y);
13454
13454
  this.render = this._cacheData.originalRender, r.render(this, { renderTexture: h, clear: !0, transform: u, skipUpdateTransform: !1 }), r.framebuffer.blit(), r.projection.transform = a, r.renderTexture.bind(s, n, o), this.render = this._renderCached, this.updateTransform = this.displayObjectUpdateTransform, this.calculateBounds = this._calculateCachedBounds, this.getLocalBounds = this._getCachedLocalBounds, this._mask = null, this.filterArea = null, this.alpha = t;
13455
13455
  const c = new ie(h);
@@ -13471,7 +13471,7 @@ Bt.prototype._initCachedDisplayObjectCanvas = function(r) {
13471
13471
  height: t.height,
13472
13472
  resolution: n
13473
13473
  }), a = `cacheAsBitmap_${bs()}`;
13474
- this._cacheData.textureCacheId = a, pt.addToCache(o.baseTexture, a), rt.addToCache(o, a);
13474
+ this._cacheData.textureCacheId = a, ft.addToCache(o.baseTexture, a), rt.addToCache(o, a);
13475
13475
  const h = A0;
13476
13476
  this.transform.localTransform.copyTo(h), h.invert(), h.tx -= t.x, h.ty -= t.y, this.renderCanvas = this._cacheData.originalRenderCanvas, r.render(this, { renderTexture: o, clear: !0, transform: h, skipUpdateTransform: !1 }), r.canvasContext.activeContext = i, r._projTransform = s, this.renderCanvas = this._renderCachedCanvas, this.updateTransform = this.displayObjectUpdateTransform, this.calculateBounds = this._calculateCachedBounds, this.getLocalBounds = this._getCachedLocalBounds, this._mask = null, this.filterArea = null, this.alpha = e;
13477
13477
  const l = new ie(o);
@@ -13484,7 +13484,7 @@ Bt.prototype._getCachedLocalBounds = function() {
13484
13484
  return this._cacheData.sprite.getLocalBounds(null);
13485
13485
  };
13486
13486
  Bt.prototype._destroyCachedDisplayObject = function() {
13487
- this._cacheData.sprite._texture.destroy(!0), this._cacheData.sprite = null, pt.removeFromCache(this._cacheData.textureCacheId), rt.removeFromCache(this._cacheData.textureCacheId), this._cacheData.textureCacheId = null;
13487
+ this._cacheData.sprite._texture.destroy(!0), this._cacheData.sprite = null, ft.removeFromCache(this._cacheData.textureCacheId), rt.removeFromCache(this._cacheData.textureCacheId), this._cacheData.textureCacheId = null;
13488
13488
  };
13489
13489
  Bt.prototype._cacheAsBitmapDestroy = function(r) {
13490
13490
  this.cacheAsBitmap = !1, this.destroy(r);
@@ -14895,7 +14895,7 @@ const Bf = {
14895
14895
  Object.entries(Bf).forEach(([r, t]) => {
14896
14896
  Object.defineProperty(Bf, r, {
14897
14897
  get() {
14898
- return xt("7.1.0", `filters.${r} has moved to ${r}`), t;
14898
+ return _t("7.1.0", `filters.${r} has moved to ${r}`), t;
14899
14899
  }
14900
14900
  });
14901
14901
  });
@@ -16388,7 +16388,7 @@ const dw = {
16388
16388
  return this._internalInteractive ?? Uf(Oc.defaultEventMode);
16389
16389
  },
16390
16390
  set interactive(r) {
16391
- xt(
16391
+ _t(
16392
16392
  "7.2.0",
16393
16393
  // eslint-disable-next-line max-len
16394
16394
  "Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."
@@ -17057,7 +17057,7 @@ class Tw {
17057
17057
  }), e instanceof rt) {
17058
17058
  const a = e;
17059
17059
  i.forEach((h) => {
17060
- a.baseTexture !== rt.EMPTY.baseTexture && pt.addToCache(a.baseTexture, h), rt.addToCache(a, h);
17060
+ a.baseTexture !== rt.EMPTY.baseTexture && ft.addToCache(a.baseTexture, h), rt.addToCache(a, h);
17061
17061
  });
17062
17062
  }
17063
17063
  }
@@ -17437,7 +17437,7 @@ const rl = {
17437
17437
  });
17438
17438
  const n = { ...t.data };
17439
17439
  n.resolution ?? (n.resolution = nr(r)), i && ((a = n.resourceOptions) == null ? void 0 : a.ownsImageBitmap) === void 0 && (n.resourceOptions = { ...n.resourceOptions }, n.resourceOptions.ownsImageBitmap = !0);
17440
- const o = new pt(s, n);
17440
+ const o = new ft(s, n);
17441
17441
  return o.resource.src = r, Uo(o, e, r);
17442
17442
  },
17443
17443
  unload(r) {
@@ -17461,7 +17461,7 @@ const Kw = ".svg", Hw = "image/svg+xml", Yw = {
17461
17461
  var n;
17462
17462
  const i = new Lc(r, (n = t == null ? void 0 : t.data) == null ? void 0 : n.resourceOptions);
17463
17463
  await i.load();
17464
- const s = new pt(i, {
17464
+ const s = new ft(i, {
17465
17465
  resolution: nr(r),
17466
17466
  ...t == null ? void 0 : t.data
17467
17467
  });
@@ -17499,7 +17499,7 @@ const zw = [".mp4", ".m4v", ".webm", ".ogv"], jw = [
17499
17499
  ...(o = t == null ? void 0 : t.data) == null ? void 0 : o.resourceOptions
17500
17500
  }, h = new C0(n, a);
17501
17501
  await h.load();
17502
- const l = new pt(h, {
17502
+ const l = new ft(h, {
17503
17503
  alphaMode: await i1(),
17504
17504
  resolution: nr(r),
17505
17505
  ...t == null ? void 0 : t.data
@@ -17720,7 +17720,7 @@ class $w {
17720
17720
  }
17721
17721
  add(t, e, i, s, n) {
17722
17722
  const o = [];
17723
- typeof t == "string" || Array.isArray(t) && typeof t[0] == "string" ? (xt("7.2.0", `Assets.add now uses an object instead of individual parameters.
17723
+ typeof t == "string" || Array.isArray(t) && typeof t[0] == "string" ? (_t("7.2.0", `Assets.add now uses an object instead of individual parameters.
17724
17724
  Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), o.push({ alias: t, src: e, data: i, format: s, loadParser: n })) : Array.isArray(t) ? o.push(...t) : o.push(t);
17725
17725
  let a;
17726
17726
  a = (h) => {
@@ -18206,7 +18206,7 @@ class Qw {
18206
18206
  return rl.config.preferWorkers;
18207
18207
  }
18208
18208
  set preferWorkers(t) {
18209
- xt("7.2.0", "Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."), this.setPreferences({ preferWorkers: t });
18209
+ _t("7.2.0", "Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."), this.setPreferences({ preferWorkers: t });
18210
18210
  }
18211
18211
  /**
18212
18212
  * General setter for preferences. This is a helper function to set preferences on all parsers.
@@ -18790,7 +18790,7 @@ const FS = {
18790
18790
  },
18791
18791
  async load(r, t, e) {
18792
18792
  const i = await (await $.ADAPTER.fetch(r)).arrayBuffer(), s = CS(i).map((n) => {
18793
- const o = new pt(n, {
18793
+ const o = new ft(n, {
18794
18794
  mipmap: Wi.OFF,
18795
18795
  alphaMode: _e.NO_PREMULTIPLIED_ALPHA,
18796
18796
  resolution: nr(r),
@@ -18825,7 +18825,7 @@ const NS = {
18825
18825
  type: u.type,
18826
18826
  format: u.format
18827
18827
  });
18828
- const c = u.resource ?? u, d = new pt(c, h);
18828
+ const c = u.resource ?? u, d = new ft(c, h);
18829
18829
  return d.ktxKeyValueData = o, Uo(d, e, r);
18830
18830
  });
18831
18831
  return l.length === 1 ? l[0] : l;
@@ -19429,7 +19429,7 @@ function XS(r, t) {
19429
19429
  ));
19430
19430
  continue;
19431
19431
  }
19432
- const st = (-A + y) * (-I + v) - (-A + b) * (-I + _), wt = (-P + S) * (-B + v) - (-P + b) * (-B + E), At = (D * wt - k * st) / Q, vt = (U * st - K * wt) / Q, Y = (At - b) * (At - b) + (vt - v) * (vt - v), tt = b + (At - b) * C, q = v + (vt - v) * C, W = b - (At - b) * N, yt = v - (vt - v) * N, ft = Math.min(D * D + K * K, k * k + U * U), Rt = ct ? C : N, Nt = ft + Rt * Rt * f, Ce = Y <= Nt;
19432
+ const st = (-A + y) * (-I + v) - (-A + b) * (-I + _), wt = (-P + S) * (-B + v) - (-P + b) * (-B + E), At = (D * wt - k * st) / Q, vt = (U * st - K * wt) / Q, Y = (At - b) * (At - b) + (vt - v) * (vt - v), tt = b + (At - b) * C, q = v + (vt - v) * C, W = b - (At - b) * N, yt = v - (vt - v) * N, mt = Math.min(D * D + K * K, k * k + U * U), Rt = ct ? C : N, Nt = mt + Rt * Rt * f, Ce = Y <= Nt;
19433
19433
  let Qe = n.join;
19434
19434
  if (Qe === Ue.MITER && Y / f > g && (Qe = Ue.BEVEL), Ce)
19435
19435
  switch (Qe) {
@@ -19852,7 +19852,7 @@ const Xs = new ht(), D0 = class W0 extends Zg {
19852
19852
  }
19853
19853
  /** Converts intermediate batches data to drawCalls. */
19854
19854
  buildDrawCalls() {
19855
- let t = ++pt._globalBatch;
19855
+ let t = ++ft._globalBatch;
19856
19856
  for (let c = 0; c < this.drawCalls.length; c++)
19857
19857
  this.drawCalls[c].texArray.clear(), Da.push(this.drawCalls[c]);
19858
19858
  this.drawCalls.length = 0;
@@ -19865,7 +19865,7 @@ const Xs = new ht(), D0 = class W0 extends Zg {
19865
19865
  const d = this.batches[c], p = 8, m = d.style, f = m.texture.baseTexture;
19866
19866
  h !== !!m.native && (h = !!m.native, l = h ? Ri.LINES : Ri.TRIANGLES, o = null, n = p, t++), o !== f && (o = f, f._batchEnabled !== t && (n === p && (t++, n = 0, s.size > 0 && (s = Da.pop(), s || (s = new Tc(), s.texArray = new Cc()), this.drawCalls.push(s)), s.start = u, s.size = 0, s.texArray.count = 0, s.type = l), f.touched = 1, f._batchEnabled = t, f._batchLocation = n, f.wrapMode = rr.REPEAT, s.texArray.elements[s.texArray.count++] = f, n++)), s.size += d.size, u += d.size, a = f._batchLocation, this.addColors(e, m.color, m.alpha, d.attribSize, d.attribStart), this.addTextureIds(i, a, d.attribSize, d.attribStart);
19867
19867
  }
19868
- pt._globalBatch = t, this.packAttributes();
19868
+ ft._globalBatch = t, this.packAttributes();
19869
19869
  }
19870
19870
  /** Packs attributes to single buffer. */
19871
19871
  packAttributes() {
@@ -22176,7 +22176,7 @@ const tE = {
22176
22176
  return yr.experimentalLetterSpacing;
22177
22177
  }
22178
22178
  static set experimentalLetterSpacing(t) {
22179
- xt(
22179
+ _t(
22180
22180
  "7.1.0",
22181
22181
  "Text.experimentalLetterSpacing is deprecated, use TextMetrics.experimentalLetterSpacing"
22182
22182
  ), yr.experimentalLetterSpacing = t;
@@ -22438,7 +22438,7 @@ function iE(r, t) {
22438
22438
  return e;
22439
22439
  }
22440
22440
  function rE(r, t) {
22441
- if (r.baseTexture instanceof pt) {
22441
+ if (r.baseTexture instanceof ft) {
22442
22442
  const e = r.baseTexture;
22443
22443
  return t.includes(e) || t.push(e), !0;
22444
22444
  }
@@ -22582,12 +22582,12 @@ Object.defineProperties($, {
22582
22582
  return Yc.uploadsPerFrame;
22583
22583
  },
22584
22584
  set(r) {
22585
- xt("7.1.0", "settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"), Yc.uploadsPerFrame = r;
22585
+ _t("7.1.0", "settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"), Yc.uploadsPerFrame = r;
22586
22586
  }
22587
22587
  }
22588
22588
  });
22589
22589
  function z0(r, t) {
22590
- return t instanceof pt ? (t._glTextures[r.CONTEXT_UID] || r.texture.bind(t), !0) : !1;
22590
+ return t instanceof ft ? (t._glTextures[r.CONTEXT_UID] || r.texture.bind(t), !0) : !1;
22591
22591
  }
22592
22592
  function lE(r, t) {
22593
22593
  if (!(t instanceof Xo))
@@ -22783,7 +22783,7 @@ const $0 = class lo {
22783
22783
  * be used on the BaseTexture.
22784
22784
  */
22785
22785
  constructor(t, e, i = null) {
22786
- this.linkedSheets = [], this._texture = t instanceof rt ? t : null, this.baseTexture = t instanceof pt ? t : this._texture.baseTexture, this.textures = {}, this.animations = {}, this.data = e;
22786
+ this.linkedSheets = [], this._texture = t instanceof rt ? t : null, this.baseTexture = t instanceof ft ? t : this._texture.baseTexture, this.textures = {}, this.animations = {}, this.data = e;
22787
22787
  const s = this.baseTexture.resource;
22788
22788
  this.resolution = this._updateResolution(i || (s ? s.url : null)), this._frames = this.data.frames, this._frameKeys = Object.keys(this._frames), this._batchIndex = 0, this._callback = null;
22789
22789
  }
@@ -23357,7 +23357,7 @@ const mr = class Si {
23357
23357
  let m = 0, f = 0, g, y, _, b = 0;
23358
23358
  const v = [];
23359
23359
  for (let E = 0; E < u.length; E++) {
23360
- g || (g = $.ADAPTER.createCanvas(), g.width = a, g.height = h, y = g.getContext("2d"), _ = new pt(g, { resolution: o, ...l }), v.push(new rt(_)), p.page.push({
23360
+ g || (g = $.ADAPTER.createCanvas(), g.width = a, g.height = h, y = g.getContext("2d"), _ = new ft(g, { resolution: o, ...l }), v.push(new rt(_)), p.page.push({
23361
23361
  id: v.length - 1,
23362
23362
  file: ""
23363
23363
  }));
@@ -26444,10 +26444,10 @@ class BC {
26444
26444
  }
26445
26445
  let ki = null;
26446
26446
  const rb = new ResizeObserver(() => {
26447
- ki && _t.emit("stageUpdated", ki);
26447
+ ki && xt.emit("stageUpdated", ki);
26448
26448
  });
26449
26449
  function UC(r) {
26450
- ki = r, rb.observe(ki), _t.emit("stageCreated", ki);
26450
+ ki = r, rb.observe(ki), xt.emit("stageCreated", ki);
26451
26451
  }
26452
26452
  function XC() {
26453
26453
  ki && rb.unobserve(ki), ki = null;
@@ -26458,7 +26458,7 @@ async function ip() {
26458
26458
  let Ge = null;
26459
26459
  async function ZC() {
26460
26460
  const r = await ip();
26461
- KC(r), _t.on("stageUpdated", HC);
26461
+ KC(r), xt.on("stageUpdated", HC);
26462
26462
  }
26463
26463
  function VC() {
26464
26464
  Ge && (Ge.destroy(!0, {
@@ -26471,13 +26471,13 @@ function KC(r) {
26471
26471
  resizeTo: r,
26472
26472
  antialias: !0,
26473
26473
  resolution: window.devicePixelRatio
26474
- }), Ge.stage.sortableChildren = !0, r.appendChild(Ge.view), _t.emit("applicationCreated", Ge), process.env.NODE_ENV === "development" && (globalThis.__PIXI_APP__ = Ge);
26474
+ }), Ge.stage.sortableChildren = !0, r.appendChild(Ge.view), xt.emit("applicationCreated", Ge), process.env.NODE_ENV === "development" && (globalThis.__PIXI_APP__ = Ge);
26475
26475
  }
26476
26476
  async function fi() {
26477
26477
  return Ge || await je("applicationCreated");
26478
26478
  }
26479
26479
  function HC(r) {
26480
- Ge && (Ge.resizeTo = r, _t.emit("applicationResized", Ge));
26480
+ Ge && (Ge.resizeTo = r, xt.emit("applicationResized", Ge));
26481
26481
  }
26482
26482
  var kh = { exports: {} };
26483
26483
  kh.exports;
@@ -26489,7 +26489,7 @@ kh.exports;
26489
26489
  return W && W.binding && W.binding("util");
26490
26490
  } catch {
26491
26491
  }
26492
- }(), ft = yt && yt.isTypedArray;
26492
+ }(), mt = yt && yt.isTypedArray;
26493
26493
  function Rt(T, R) {
26494
26494
  for (var x = -1, w = T == null ? 0 : T.length, M = 0, Z = []; ++x < w; ) {
26495
26495
  var ot = T[x];
@@ -26677,13 +26677,13 @@ kh.exports;
26677
26677
  }
26678
26678
  yi.prototype.clear = Ll, yi.prototype.delete = ea, yi.prototype.get = Gl, yi.prototype.has = Fl, yi.prototype.set = Nl;
26679
26679
  function kl(T, R) {
26680
- var x = Ws(T), w = !x && Kn(T), M = !x && !w && Ur(T), Z = !x && !w && !M && ua(T), ot = x || w || M || Z, dt = ot ? Qe(T.length, String) : [], mt = dt.length;
26680
+ var x = Ws(T), w = !x && Kn(T), M = !x && !w && Ur(T), Z = !x && !w && !M && ua(T), ot = x || w || M || Z, dt = ot ? Qe(T.length, String) : [], gt = dt.length;
26681
26681
  for (var nt in T)
26682
26682
  (R || Ie.call(T, nt)) && !(ot && // Safari 9 has enumerable `arguments.length` in strict mode.
26683
26683
  (nt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
26684
26684
  M && (nt == "offset" || nt == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
26685
26685
  Z && (nt == "buffer" || nt == "byteLength" || nt == "byteOffset") || // Skip index properties.
26686
- Vn(nt, mt))) && dt.push(nt);
26686
+ Vn(nt, gt))) && dt.push(nt);
26687
26687
  return dt;
26688
26688
  }
26689
26689
  function Gs(T, R) {
@@ -26706,16 +26706,16 @@ kh.exports;
26706
26706
  return T === R ? !0 : T == null || R == null || !dr(T) && !dr(R) ? T !== T && R !== R : Wl(T, R, x, w, ra, M);
26707
26707
  }
26708
26708
  function Wl(T, R, x, w, M, Z) {
26709
- var ot = Ws(T), dt = Ws(R), mt = ot ? h : bi(T), nt = dt ? h : bi(R);
26710
- mt = mt == a ? _ : mt, nt = nt == a ? _ : nt;
26711
- var bt = mt == _, Ft = nt == _, It = mt == nt;
26709
+ var ot = Ws(T), dt = Ws(R), gt = ot ? h : bi(T), nt = dt ? h : bi(R);
26710
+ gt = gt == a ? _ : gt, nt = nt == a ? _ : nt;
26711
+ var bt = gt == _, Ft = nt == _, It = gt == nt;
26712
26712
  if (It && Ur(T)) {
26713
26713
  if (!Ur(R))
26714
26714
  return !1;
26715
26715
  ot = !0, bt = !1;
26716
26716
  }
26717
26717
  if (It && !bt)
26718
- return Z || (Z = new yi()), ot || ua(T) ? sa(T, R, x, w, M, Z) : na(T, R, mt, x, w, M, Z);
26718
+ return Z || (Z = new yi()), ot || ua(T) ? sa(T, R, x, w, M, Z) : na(T, R, gt, x, w, M, Z);
26719
26719
  if (!(x & s)) {
26720
26720
  var Qt = bt && Ie.call(T, "__wrapped__"), he = Ft && Ie.call(R, "__wrapped__");
26721
26721
  if (Qt || he) {
@@ -26743,8 +26743,8 @@ kh.exports;
26743
26743
  return R;
26744
26744
  }
26745
26745
  function sa(T, R, x, w, M, Z) {
26746
- var ot = x & s, dt = T.length, mt = R.length;
26747
- if (dt != mt && !(ot && mt > dt))
26746
+ var ot = x & s, dt = T.length, gt = R.length;
26747
+ if (dt != gt && !(ot && gt > dt))
26748
26748
  return !1;
26749
26749
  var nt = Z.get(T);
26750
26750
  if (nt && Z.get(R))
@@ -26795,8 +26795,8 @@ kh.exports;
26795
26795
  case f:
26796
26796
  var dt = Rs;
26797
26797
  case E:
26798
- var mt = w & s;
26799
- if (dt || (dt = Yo), T.size != R.size && !mt)
26798
+ var gt = w & s;
26799
+ if (dt || (dt = Yo), T.size != R.size && !gt)
26800
26800
  return !1;
26801
26801
  var nt = ot.get(T);
26802
26802
  if (nt)
@@ -26811,10 +26811,10 @@ kh.exports;
26811
26811
  return !1;
26812
26812
  }
26813
26813
  function Bl(T, R, x, w, M, Z) {
26814
- var ot = x & s, dt = oa(T), mt = dt.length, nt = oa(R), bt = nt.length;
26815
- if (mt != bt && !ot)
26814
+ var ot = x & s, dt = oa(T), gt = dt.length, nt = oa(R), bt = nt.length;
26815
+ if (gt != bt && !ot)
26816
26816
  return !1;
26817
- for (var Ft = mt; Ft--; ) {
26817
+ for (var Ft = gt; Ft--; ) {
26818
26818
  var It = dt[Ft];
26819
26819
  if (!(ot ? It in R : Ie.call(R, It)))
26820
26820
  return !1;
@@ -26824,7 +26824,7 @@ kh.exports;
26824
26824
  return Qt == R;
26825
26825
  var he = !0;
26826
26826
  Z.set(T, R), Z.set(R, T);
26827
- for (var De = ot; ++Ft < mt; ) {
26827
+ for (var De = ot; ++Ft < gt; ) {
26828
26828
  It = dt[Ft];
26829
26829
  var We = T[It], Xr = R[It];
26830
26830
  if (w)
@@ -26945,7 +26945,7 @@ kh.exports;
26945
26945
  function dr(T) {
26946
26946
  return T != null && typeof T == "object";
26947
26947
  }
26948
- var ua = ft ? dl(ft) : Zn;
26948
+ var ua = mt ? dl(mt) : Zn;
26949
26949
  function ca(T) {
26950
26950
  return aa(T) ? kl(T) : Ol(T);
26951
26951
  }
@@ -29534,15 +29534,15 @@ function BA(r) {
29534
29534
  b.x = E(e, b), b.X = E(i, b), b.c = E(t, b), v.x = E(e, v), v.X = E(i, v), v.c = E(t, v);
29535
29535
  function E(Y, tt) {
29536
29536
  return function(q) {
29537
- var W = [], yt = -1, ft = 0, Rt = Y.length, Nt, Ce, Qe;
29537
+ var W = [], yt = -1, mt = 0, Rt = Y.length, Nt, Ce, Qe;
29538
29538
  for (q instanceof Date || (q = /* @__PURE__ */ new Date(+q)); ++yt < Rt; )
29539
- Y.charCodeAt(yt) === 37 && (W.push(Y.slice(ft, yt)), (Ce = Zm[Nt = Y.charAt(++yt)]) != null ? Nt = Y.charAt(++yt) : Ce = Nt === "e" ? " " : "0", (Qe = tt[Nt]) && (Nt = Qe(q, Ce)), W.push(Nt), ft = yt + 1);
29540
- return W.push(Y.slice(ft, yt)), W.join("");
29539
+ Y.charCodeAt(yt) === 37 && (W.push(Y.slice(mt, yt)), (Ce = Zm[Nt = Y.charAt(++yt)]) != null ? Nt = Y.charAt(++yt) : Ce = Nt === "e" ? " " : "0", (Qe = tt[Nt]) && (Nt = Qe(q, Ce)), W.push(Nt), mt = yt + 1);
29540
+ return W.push(Y.slice(mt, yt)), W.join("");
29541
29541
  };
29542
29542
  }
29543
29543
  function A(Y, tt) {
29544
29544
  return function(q) {
29545
- var W = qn(1900, void 0, 1), yt = I(W, Y, q += "", 0), ft, Rt;
29545
+ var W = qn(1900, void 0, 1), yt = I(W, Y, q += "", 0), mt, Rt;
29546
29546
  if (yt != q.length)
29547
29547
  return null;
29548
29548
  if ("Q" in W)
@@ -29552,14 +29552,14 @@ function BA(r) {
29552
29552
  if (tt && !("Z" in W) && (W.Z = 0), "p" in W && (W.H = W.H % 12 + W.p * 12), W.m === void 0 && (W.m = "q" in W ? W.q : 0), "V" in W) {
29553
29553
  if (W.V < 1 || W.V > 53)
29554
29554
  return null;
29555
- "w" in W || (W.w = 1), "Z" in W ? (ft = Ju(qn(W.y, 0, 1)), Rt = ft.getUTCDay(), ft = Rt > 4 || Rt === 0 ? Kh.ceil(ft) : Kh(ft), ft = cp.offset(ft, (W.V - 1) * 7), W.y = ft.getUTCFullYear(), W.m = ft.getUTCMonth(), W.d = ft.getUTCDate() + (W.w + 6) % 7) : (ft = ju(qn(W.y, 0, 1)), Rt = ft.getDay(), ft = Rt > 4 || Rt === 0 ? Vh.ceil(ft) : Vh(ft), ft = Ko.offset(ft, (W.V - 1) * 7), W.y = ft.getFullYear(), W.m = ft.getMonth(), W.d = ft.getDate() + (W.w + 6) % 7);
29555
+ "w" in W || (W.w = 1), "Z" in W ? (mt = Ju(qn(W.y, 0, 1)), Rt = mt.getUTCDay(), mt = Rt > 4 || Rt === 0 ? Kh.ceil(mt) : Kh(mt), mt = cp.offset(mt, (W.V - 1) * 7), W.y = mt.getUTCFullYear(), W.m = mt.getUTCMonth(), W.d = mt.getUTCDate() + (W.w + 6) % 7) : (mt = ju(qn(W.y, 0, 1)), Rt = mt.getDay(), mt = Rt > 4 || Rt === 0 ? Vh.ceil(mt) : Vh(mt), mt = Ko.offset(mt, (W.V - 1) * 7), W.y = mt.getFullYear(), W.m = mt.getMonth(), W.d = mt.getDate() + (W.w + 6) % 7);
29556
29556
  } else
29557
29557
  ("W" in W || "U" in W) && ("w" in W || (W.w = "u" in W ? W.u % 7 : "W" in W ? 1 : 0), Rt = "Z" in W ? Ju(qn(W.y, 0, 1)).getUTCDay() : ju(qn(W.y, 0, 1)).getDay(), W.m = 0, W.d = "W" in W ? (W.w + 6) % 7 + W.W * 7 - (Rt + 5) % 7 : W.w + W.U * 7 - (Rt + 6) % 7);
29558
29558
  return "Z" in W ? (W.H += W.Z / 100 | 0, W.M += W.Z % 100, Ju(W)) : ju(W);
29559
29559
  };
29560
29560
  }
29561
29561
  function I(Y, tt, q, W) {
29562
- for (var yt = 0, ft = tt.length, Rt = q.length, Nt, Ce; yt < ft; ) {
29562
+ for (var yt = 0, mt = tt.length, Rt = q.length, Nt, Ce; yt < mt; ) {
29563
29563
  if (W >= Rt)
29564
29564
  return -1;
29565
29565
  if (Nt = tt.charCodeAt(yt++), Nt === 37) {
@@ -29987,20 +29987,20 @@ function KR({ domain: r, range: t }) {
29987
29987
  }
29988
29988
  function yd(r) {
29989
29989
  return {
29990
- mode: gt.horizontal,
29990
+ mode: pt.horizontal,
29991
29991
  range: qM(),
29992
29992
  domain: tP(r)
29993
29993
  };
29994
29994
  }
29995
29995
  function HR() {
29996
29996
  return {
29997
- mode: gt.vertical
29997
+ mode: pt.vertical
29998
29998
  };
29999
29999
  }
30000
30000
  let gn = null;
30001
30001
  async function YR() {
30002
30002
  const r = await Tp();
30003
- qm(r.start_time), _t.on("layoutSettingsUpdated", () => qm(r.start_time));
30003
+ qm(r.start_time), xt.on("layoutSettingsUpdated", () => qm(r.start_time));
30004
30004
  }
30005
30005
  function zR() {
30006
30006
  gn = null;
@@ -30011,7 +30011,7 @@ async function Ho() {
30011
30011
  async function qm(r) {
30012
30012
  await Bi();
30013
30013
  const t = gn ? "scaleUpdated" : "scaleCreated", e = yd(r);
30014
- gn = wb(e), _t.emit(t, gn);
30014
+ gn = wb(e), xt.emit(t, gn);
30015
30015
  }
30016
30016
  let Fe = null, bd = null;
30017
30017
  async function jR() {
@@ -30027,7 +30027,7 @@ async function jR() {
30027
30027
  friction: 0.9
30028
30028
  }).clampZoom({
30029
30029
  minWidth: t.clientWidth / 2
30030
- }), r.stage.addChild(Fe), _t.emit("viewportCreated", Fe), _t.on("applicationResized", tM), _t.on("scaleUpdated", () => Hh()), QR();
30030
+ }), r.stage.addChild(Fe), xt.emit("viewportCreated", Fe), xt.on("applicationResized", tM), xt.on("scaleUpdated", () => Hh()), QR();
30031
30031
  }
30032
30032
  function JR() {
30033
30033
  Fe = null, bd = null;
@@ -30044,7 +30044,7 @@ async function pp({ animate: r } = {}) {
30044
30044
  x: n + a / 2,
30045
30045
  y: o + h / 2 - s
30046
30046
  },
30047
- scale: c,
30047
+ scale: Math.min(c, 1),
30048
30048
  time: r ? e.animationDuration : 0,
30049
30049
  ease: "easeInOutQuad",
30050
30050
  removeOnInterrupt: !0,
@@ -30057,7 +30057,7 @@ async function $e() {
30057
30057
  return Fe || await je("viewportCreated");
30058
30058
  }
30059
30059
  function Sb(r) {
30060
- sb(bd, r) || (bd = r, _t.emit("viewportDateRangeUpdated", r));
30060
+ sb(bd, r) || (bd = r, xt.emit("viewportDateRangeUpdated", r));
30061
30061
  }
30062
30062
  function $R({ xOffset: r, yOffset: t }) {
30063
30063
  if (!Fe)
@@ -30141,7 +30141,7 @@ async function eM() {
30141
30141
  const e = r.scale.x > ax, i = r.scale.x > ox;
30142
30142
  Li == null || Li.toggle(e), Pi == null || Pi.toggle(i), Ai == null || Ai.cull(t.renderer.screen), r.dirty = !1;
30143
30143
  }
30144
- }), _t.emit("cullCreated", Ai);
30144
+ }), xt.emit("cullCreated", Ai);
30145
30145
  }
30146
30146
  function iM() {
30147
30147
  Ai = null, Pi == null || Pi.clear(), Pi = null, Li == null || Li.clear(), Li = null;
@@ -30444,7 +30444,7 @@ const fM = /* @__PURE__ */ Do(pM), Pb = {
30444
30444
  let bp = !1;
30445
30445
  async function mM() {
30446
30446
  const r = Object.values(Pb);
30447
- await Promise.all(r.map((t) => gM(t))), bp = !0, _t.emit("fontsLoaded", Lb);
30447
+ await Promise.all(r.map((t) => gM(t))), bp = !0, xt.emit("fontsLoaded", Lb);
30448
30448
  }
30449
30449
  async function gM(r) {
30450
30450
  const { fontFamily: t, ...e } = r, i = new fM(t);
@@ -30598,11 +30598,11 @@ function _p(r) {
30598
30598
  if (zh || vp(r))
30599
30599
  return;
30600
30600
  if (yn = r, r === null) {
30601
- _t.emit("nodeSelected", null);
30601
+ xt.emit("nodeSelected", null);
30602
30602
  return;
30603
30603
  }
30604
30604
  const { id: t, kind: e } = r;
30605
- _t.emit("nodeSelected", { id: t, kind: e });
30605
+ xt.emit("nodeSelected", { id: t, kind: e });
30606
30606
  }
30607
30607
  function vp(r) {
30608
30608
  return (r == null ? void 0 : r.id) === (yn == null ? void 0 : yn.id);
@@ -30639,7 +30639,7 @@ async function kb() {
30639
30639
  }
30640
30640
  function l(u, c) {
30641
30641
  const d = wp();
30642
- if (gt.isTemporal() || gt.isLeftAligned()) {
30642
+ if (pt.isTemporal() || pt.isLeftAligned()) {
30643
30643
  const p = u.start_time, m = u.end_time ?? /* @__PURE__ */ new Date(), g = mg(m, p) / dx * d;
30644
30644
  return Math.max(g, c * 2);
30645
30645
  }
@@ -30762,7 +30762,7 @@ async function RM() {
30762
30762
  const a = s("");
30763
30763
  n.addChild(a);
30764
30764
  let h = await Ho(), l, u;
30765
- _t.on("scaleUpdated", (f) => h = f), r.ticker.add(() => {
30765
+ xt.on("scaleUpdated", (f) => h = f), r.ticker.add(() => {
30766
30766
  e.disableGuides || (m(), n.height !== r.screen.height && d());
30767
30767
  });
30768
30768
  function c(f, g) {
@@ -30920,7 +30920,7 @@ const nh = {
30920
30920
  async function FM() {
30921
30921
  const r = await $e(), t = await Bi(), e = new Zt(), i = /* @__PURE__ */ new Map();
30922
30922
  let s = await Ho();
30923
- _t.on("scaleUpdated", (d) => s = d), await o();
30923
+ xt.on("scaleUpdated", (d) => s = d), await o();
30924
30924
  function n() {
30925
30925
  if (e.visible = !t.disableGuides, !t.disableGuides)
30926
30926
  try {
@@ -30993,19 +30993,19 @@ async function FM() {
30993
30993
  }
30994
30994
  async function NM() {
30995
30995
  const r = await fi(), { element: t, render: e } = await FM();
30996
- r.stage.addChild(t), e(), _t.on("viewportDateRangeUpdated", () => e()), _t.on("layoutSettingsUpdated", () => e()), _t.on("configUpdated", () => e());
30996
+ r.stage.addChild(t), e(), xt.on("viewportDateRangeUpdated", () => e()), xt.on("layoutSettingsUpdated", () => e()), xt.on("configUpdated", () => e());
30997
30997
  }
30998
30998
  const kM = 80;
30999
30999
  async function DM() {
31000
31000
  const r = await fi(), t = await $e(), e = await Bi(), i = await ge(), s = await xp();
31001
31001
  let n = await Ho();
31002
- _t.on("scaleUpdated", (h) => n = h);
31002
+ xt.on("scaleUpdated", (h) => n = h);
31003
31003
  function o() {
31004
31004
  if (!e.isTemporal()) {
31005
31005
  s.visible = !1;
31006
31006
  return;
31007
31007
  }
31008
- console.log("tick"), s.width = i.styles.playheadWidth, s.height = r.stage.height, s.tint = i.styles.playheadColor, s.position.x = n(/* @__PURE__ */ new Date()) * t.scale.x + t.worldTransform.tx, a();
31008
+ s.width = i.styles.playheadWidth, s.height = r.stage.height, s.tint = i.styles.playheadColor, s.position.x = n(/* @__PURE__ */ new Date()) * t.scale.x + t.worldTransform.tx, a();
31009
31009
  }
31010
31010
  function a() {
31011
31011
  if (t.moving || !(s.position.x > 0 && s.position.x < r.screen.width) || !(s.position.x > r.screen.width - kM))
@@ -31020,7 +31020,7 @@ async function DM() {
31020
31020
  }
31021
31021
  async function WM() {
31022
31022
  const r = await fi(), t = await Tp(), { element: e, render: i } = await DM();
31023
- t.end_time || (r.stage.addChild(e), r.ticker.add(i)), _t.on("runDataUpdated", ({ end_time: s }) => {
31023
+ t.end_time || (r.stage.addChild(e), r.ticker.add(i)), xt.on("runDataUpdated", ({ end_time: s }) => {
31024
31024
  s && (r.ticker.remove(i), r.stage.removeChild(e));
31025
31025
  });
31026
31026
  }
@@ -31028,7 +31028,7 @@ function OM({ stage: r, props: t }) {
31028
31028
  ZC(), jR(), YR(), NM(), KM(), WM(), _x(), mM(), UC(r), Sx(t), eM(), $M(), wM();
31029
31029
  }
31030
31030
  function BM() {
31031
- _t.clear();
31031
+ xt.clear();
31032
31032
  try {
31033
31033
  VC(), JR(), zR(), XC(), HM(), Ex(), vx(), yM(), iM(), QM(), SM(), oM();
31034
31034
  } catch (r) {
@@ -31040,7 +31040,7 @@ async function UM(r) {
31040
31040
  let h = r, l = null, u = !1, c = !1;
31041
31041
  i.add(n), n.eventMode = "static", n.cursor = "pointer", n.name = ex, n.on("click", (b) => {
31042
31042
  b.stopPropagation(), _p(h);
31043
- }), r.end_time || p(), _t.on("nodeSelected", () => {
31043
+ }), r.end_time || p(), xt.on("nodeSelected", () => {
31044
31044
  const b = vp(r);
31045
31045
  b !== u && (u = b, o(h));
31046
31046
  });
@@ -31075,8 +31075,8 @@ async function UM(r) {
31075
31075
  return [
31076
31076
  b.state_type,
31077
31077
  v.getTime(),
31078
- gt.horizontal,
31079
- gt.horizontalScaleMultiplier,
31078
+ pt.horizontal,
31079
+ pt.horizontalScaleMultiplier,
31080
31080
  t.styles.colorMode
31081
31081
  ].join("-");
31082
31082
  }
@@ -31095,28 +31095,37 @@ async function UM(r) {
31095
31095
  }
31096
31096
  function ag({ gap: r = 0, minimum: t = 0 } = {}) {
31097
31097
  const e = /* @__PURE__ */ new Map();
31098
- function i(l) {
31099
- const u = e.get(l) ?? [];
31100
- return Math.max(...u.values(), jl(t)) + jl(r);
31098
+ function i(u) {
31099
+ const c = e.get(u) ?? [];
31100
+ return Math.max(...c.values(), jl(t)) + jl(r);
31101
31101
  }
31102
- function s(l) {
31103
- let u = 0;
31104
- for (let c = 0; c < l; c++)
31105
- u += i(c);
31106
- return u;
31102
+ function s(u) {
31103
+ let c = 0;
31104
+ for (let d = 0; d < u; d++)
31105
+ c += i(d);
31106
+ return c;
31107
+ }
31108
+ function n(u) {
31109
+ return s(u + 1) - jl(r);
31107
31110
  }
31108
- function n(l) {
31109
- return s(l + 1) - jl(r);
31111
+ function o({ axis: u, nodeId: c, offset: d }) {
31112
+ const p = e.get(u) ?? /* @__PURE__ */ new Map();
31113
+ p.set(c, d), e.set(u, p);
31110
31114
  }
31111
- function o({ axis: l, nodeId: u, offset: c }) {
31112
- const d = e.get(l) ?? /* @__PURE__ */ new Map();
31113
- d.set(u, c), e.set(l, d);
31115
+ function a({ axis: u, nodeId: c }) {
31116
+ let d, p;
31117
+ for (const [m, f] of e.entries())
31118
+ if (f.has(c)) {
31119
+ d = m, p = f.get(c);
31120
+ break;
31121
+ }
31122
+ d === u || d === void 0 || p === void 0 || (h({ axis: d, nodeId: c }), o({ axis: u, nodeId: c, offset: p }));
31114
31123
  }
31115
- function a({ axis: l, nodeId: u }) {
31116
- var c;
31117
- (c = e.get(l)) == null || c.delete(u);
31124
+ function h({ axis: u, nodeId: c }) {
31125
+ var d;
31126
+ (d = e.get(u)) == null || d.delete(c);
31118
31127
  }
31119
- function h() {
31128
+ function l() {
31120
31129
  e.clear();
31121
31130
  }
31122
31131
  return {
@@ -31124,8 +31133,9 @@ function ag({ gap: r = 0, minimum: t = 0 } = {}) {
31124
31133
  getTotalOffset: s,
31125
31134
  getTotalValue: n,
31126
31135
  setOffset: o,
31127
- removeOffset: a,
31128
- clear: h
31136
+ updateNodeAxis: a,
31137
+ removeOffset: h,
31138
+ clear: l
31129
31139
  };
31130
31140
  }
31131
31141
  function XM(r) {
@@ -31157,9 +31167,11 @@ async function Ob() {
31157
31167
  minimum: () => wp()
31158
31168
  });
31159
31169
  let h = null, l = null;
31160
- i.name = dg, _t.on("layoutSettingsUpdated", async () => {
31161
- l && i.parent && (o.clear(), a.clear(), await u(l)), G();
31162
- }), _t.on("nodeSelected", () => {
31170
+ i.name = dg, xt.on("layoutUpdated", () => {
31171
+ o.clear(), a.clear();
31172
+ }), xt.on("layoutSettingsUpdated", () => {
31173
+ l && i.parent && u(l), G();
31174
+ }), xt.on("nodeSelected", () => {
31163
31175
  G();
31164
31176
  });
31165
31177
  async function u(L) {
@@ -31240,7 +31252,7 @@ async function Ob() {
31240
31252
  continue;
31241
31253
  }
31242
31254
  const k = v(K);
31243
- D.setPosition(k);
31255
+ D.setPosition(k), o.updateNodeAxis({ nodeId: L, axis: K.y }), a.updateNodeAxis({ nodeId: L, axis: K.column });
31244
31256
  }
31245
31257
  g(), i.emit("rendered"), i.emit("resized", I());
31246
31258
  }
@@ -31266,7 +31278,7 @@ async function Ob() {
31266
31278
  };
31267
31279
  }
31268
31280
  function S(L) {
31269
- return gt.isDependency() ? a.getTotalOffset(L.column) : L.x;
31281
+ return pt.isDependency() ? a.getTotalOffset(L.column) : L.x;
31270
31282
  }
31271
31283
  function E() {
31272
31284
  return h ? o.getTotalValue(h.maxRow) : 0;
@@ -31274,7 +31286,7 @@ async function Ob() {
31274
31286
  function A() {
31275
31287
  if (!h || !l)
31276
31288
  return 0;
31277
- if (gt.isDependency())
31289
+ if (pt.isDependency())
31278
31290
  return a.getTotalValue(h.maxColumn);
31279
31291
  const L = yd(l.start_time), D = wb(L), K = D(l.end_time ?? /* @__PURE__ */ new Date()), k = D(l.start_time);
31280
31292
  return K - k;
@@ -31354,11 +31366,11 @@ async function KM() {
31354
31366
  r.addChild(e), e.alpha = 0;
31355
31367
  const s = await iy(t.runId, async (n) => {
31356
31368
  const o = _r ? "runDataUpdated" : "runDataCreated";
31357
- _r = n, _t.emit(o, _r), await Bi(), i(n);
31369
+ _r = n, xt.emit(o, _r), await Bi(), i(n);
31358
31370
  });
31359
- _t.on("configUpdated", () => {
31371
+ xt.on("configUpdated", () => {
31360
31372
  _r && i(_r);
31361
- }), Ts = e, fo = s.stop, Ts.once("rendered", () => YM()), _t.on("layoutUpdated", () => zM()), s.start();
31373
+ }), Ts = e, fo = s.stop, Ts.once("rendered", () => YM()), xt.on("layoutUpdated", () => zM()), s.start();
31362
31374
  }
31363
31375
  function HM() {
31364
31376
  fo == null || fo(), fo = null, Ts = null, _r = null;
@@ -31393,12 +31405,12 @@ function JM({ start_time: r, end_time: t }) {
31393
31405
  }
31394
31406
  async function $M() {
31395
31407
  const r = await Tp(), t = await ge(), e = JM(r);
31396
- jh(e, !0), r.nodes.size > t.disableAnimationsThreshold && (gt.disableAnimations = !0), jM(r.nodes) > t.disableEdgesThreshold && (gt.disableEdges = !0);
31408
+ jh(e, !0), r.nodes.size > t.disableAnimationsThreshold && (pt.disableAnimations = !0), jM(r.nodes) > t.disableEdgesThreshold && (pt.disableEdges = !0);
31397
31409
  }
31398
31410
  function QM() {
31399
- gt.horizontalScaleMultiplierDefault = 0, gt.horizontalScaleMultiplier = 0;
31411
+ pt.horizontal = "temporal", pt.vertical = "nearest-parent", pt.horizontalScaleMultiplierDefault = 0, pt.horizontalScaleMultiplier = 0, pt.disableAnimations = !1, pt.disableEdges = !1, pt.disableGuides = !1;
31400
31412
  }
31401
- const gt = Vb({
31413
+ const pt = Vb({
31402
31414
  horizontal: "temporal",
31403
31415
  vertical: "nearest-parent",
31404
31416
  horizontalScaleMultiplierDefault: 0,
@@ -31423,55 +31435,55 @@ const gt = Vb({
31423
31435
  }
31424
31436
  });
31425
31437
  async function Bi() {
31426
- return vd() ? gt : await je("layoutSettingsCreated");
31438
+ return vd() ? pt : await je("layoutSettingsCreated");
31427
31439
  }
31428
31440
  function wp() {
31429
- return gt.isDependency() ? nx : sx * gt.horizontalScaleMultiplier;
31441
+ return pt.isDependency() ? nx : sx * pt.horizontalScaleMultiplier;
31430
31442
  }
31431
31443
  function qM() {
31432
31444
  return [0, wp()];
31433
31445
  }
31434
31446
  function tP(r) {
31435
- if (gt.isDependency())
31447
+ if (pt.isDependency())
31436
31448
  return [0, 1];
31437
31449
  const t = r, e = cx(t, rx);
31438
31450
  return [t, e];
31439
31451
  }
31440
31452
  function jh(r, t = !1) {
31441
- if (gt.horizontalScaleMultiplier === r)
31453
+ if (pt.horizontalScaleMultiplier === r)
31442
31454
  return;
31443
31455
  const e = cl();
31444
- gt.horizontalScaleMultiplier = r, t && (gt.horizontalScaleMultiplierDefault = r), e();
31456
+ pt.horizontalScaleMultiplier = r, t && (pt.horizontalScaleMultiplierDefault = r), e();
31445
31457
  }
31446
31458
  function eP() {
31447
- jh(gt.horizontalScaleMultiplierDefault);
31459
+ jh(pt.horizontalScaleMultiplierDefault);
31448
31460
  }
31449
31461
  function iP(r) {
31450
- if (gt.horizontal === r)
31462
+ if (pt.horizontal === r)
31451
31463
  return;
31452
31464
  const t = cl();
31453
- gt.horizontal = r, gt.disableGuides = gt.isDependency() || gt.isLeftAligned(), t();
31465
+ pt.horizontal = r, pt.disableGuides = pt.isDependency() || pt.isLeftAligned(), t();
31454
31466
  }
31455
31467
  function rP(r) {
31456
- if (gt.vertical === r)
31468
+ if (pt.vertical === r)
31457
31469
  return;
31458
31470
  const t = cl();
31459
- gt.vertical = r, t();
31471
+ pt.vertical = r, t();
31460
31472
  }
31461
31473
  function sP(r) {
31462
- if (gt.disableEdges === r)
31474
+ if (pt.disableEdges === r)
31463
31475
  return;
31464
31476
  const t = cl();
31465
- gt.disableEdges = r, t();
31477
+ pt.disableEdges = r, t();
31466
31478
  }
31467
31479
  function cl() {
31468
- const r = vd() ? "layoutSettingsUpdated" : "layoutSettingsCreated", { horizontal: t, vertical: e } = gt;
31480
+ const r = vd() ? "layoutSettingsUpdated" : "layoutSettingsCreated", { horizontal: t, vertical: e } = pt;
31469
31481
  return () => {
31470
- vd() && _t.emit(r, gt), (t !== gt.horizontal || e !== gt.vertical) && _t.emit("layoutUpdated");
31482
+ vd() && xt.emit(r, pt), (t !== pt.horizontal || e !== pt.vertical) && xt.emit("layoutUpdated");
31471
31483
  };
31472
31484
  }
31473
31485
  function vd() {
31474
- return gt.horizontalScaleMultiplier !== 0;
31486
+ return pt.horizontalScaleMultiplier !== 0;
31475
31487
  }
31476
31488
  function Bb(r) {
31477
31489
  if (!(r instanceof HTMLElement))
@@ -31505,7 +31517,7 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ lg({
31505
31517
  }
31506
31518
  ], i = oh({
31507
31519
  get() {
31508
- return `${gt.horizontal}_${gt.vertical}`;
31520
+ return `${pt.horizontal}_${pt.vertical}`;
31509
31521
  },
31510
31522
  set(l) {
31511
31523
  const [u, c] = l.split("_");
@@ -31513,18 +31525,18 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ lg({
31513
31525
  }
31514
31526
  }), s = oh({
31515
31527
  get() {
31516
- return gt.disableEdges;
31528
+ return pt.disableEdges;
31517
31529
  },
31518
31530
  set(l) {
31519
31531
  sP(l);
31520
31532
  }
31521
31533
  });
31522
31534
  function n() {
31523
- const l = Ap + 1, u = gt.horizontalScaleMultiplier * l;
31535
+ const l = Ap + 1, u = pt.horizontalScaleMultiplier * l;
31524
31536
  jh(u);
31525
31537
  }
31526
31538
  function o() {
31527
- const l = Math.abs(Ap - 1), u = gt.horizontalScaleMultiplier * l;
31539
+ const l = Math.abs(Ap - 1), u = pt.horizontalScaleMultiplier * l;
31528
31540
  jh(u);
31529
31541
  }
31530
31542
  cg(["-", "="], a);
@@ -31575,7 +31587,7 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ lg({
31575
31587
  ]),
31576
31588
  _: 1
31577
31589
  }),
31578
- Zr(gt).isTemporal() || Zr(gt).isLeftAligned() ? (Qu(), ug(Yb, { key: 0 }, [
31590
+ Zr(pt).isTemporal() || Zr(pt).isLeftAligned() ? (Qu(), ug(Yb, { key: 0 }, [
31579
31591
  be(p),
31580
31592
  be(d, { label: "Scaling" }, {
31581
31593
  default: Vr(() => [
@@ -31639,13 +31651,13 @@ const aP = { class: "run-graph__actions" }, pP = /* @__PURE__ */ lg({
31639
31651
  s.value = u, t("update:fullscreen", u);
31640
31652
  }
31641
31653
  });
31642
- $u(() => e.selected, (u) => _p(u)), _t.on("nodeSelected", (u) => t("update:selected", u)), $u(() => e.viewport, (u) => qR(u));
31654
+ $u(() => e.selected, (u) => _p(u)), xt.on("nodeSelected", (u) => t("update:selected", u)), $u(() => e.viewport, (u) => qR(u));
31643
31655
  const o = oh(() => ({
31644
31656
  root: {
31645
31657
  "run-graph--fullscreen": n.value
31646
31658
  }
31647
31659
  }));
31648
- _t.on("viewportDateRangeUpdated", (u) => t("update:viewport", u));
31660
+ xt.on("viewportDateRangeUpdated", (u) => t("update:viewport", u));
31649
31661
  function a() {
31650
31662
  pp({ animate: !0 });
31651
31663
  }