aoi-comp 1.0.6 → 1.0.8

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.
@@ -1,7 +1,7 @@
1
- import { B as e, C as t, D as n, G as r, H as i, I as a, J as o, L as s, P as c, Q as l, R as u, T as d, V as f, W as p, Y as m, Z as h, _ as g, b as _, d as v, et as y, f as b, h as ee, i as te, it as x, j as ne, k as re, l as S, m as ie, n as ae, nt as oe, o as se, r as C, rt as w, s as ce, t as le, tt as ue, u as de, w as fe, x as pe, y as me, z as T } from "./Geometry-CN7W9DnD.js";
1
+ import { B as e, C as t, D as n, G as r, H as i, I as a, J as o, L as s, P as c, Q as l, R as u, T as d, V as f, W as p, Y as m, Z as h, _ as g, at as _, b as v, d as y, et as b, f as ee, h as te, i as ne, it as x, j as re, k as ie, l as S, m as ae, n as oe, nt as se, o as ce, r as C, s as le, t as ue, tt as de, u as fe, w as pe, x as me, y as w, z as T } from "./Geometry-CmoUjYuy.js";
2
2
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/environment/autoDetectEnvironment.mjs
3
3
  var E = [];
4
- x.handleByNamedList(w.Environment, E);
4
+ _.handleByNamedList(x.Environment, E);
5
5
  async function he(e) {
6
6
  if (!e) for (let e = 0; e < E.length; e++) {
7
7
  let t = E[e];
@@ -68,7 +68,7 @@ var O = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
68
68
  "update",
69
69
  "postrender",
70
70
  "prerender"
71
- ], ye = class e extends oe {
71
+ ], ye = class e extends se {
72
72
  constructor(e) {
73
73
  super(), this.tick = 0, this.uid = h("renderer"), this.runners = /* @__PURE__ */ Object.create(null), this.renderPipes = /* @__PURE__ */ Object.create(null), this._initOptions = {}, this._systemsHash = /* @__PURE__ */ Object.create(null), this.type = e.type, this.name = e.name, this.config = e;
74
74
  let t = [...ve, ...this.config.runners ?? []];
@@ -90,7 +90,7 @@ var O = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
90
90
  render(e, n) {
91
91
  this.tick++;
92
92
  let r = e;
93
- if (r instanceof t && (r = { container: r }, n && (o(m, "passing a second argument is deprecated, please use render options instead"), r.target = n.renderTexture)), r.target ||= this.view.renderTarget, r.target === this.view.renderTarget && (this._lastObjectRendered = r.container, r.clearColor ??= this.background.colorRgba, r.clear ??= this.background.clearBeforeRender), r.clearColor) {
93
+ if (r instanceof t && (r = { container: r }, n && (o(m, "passing a second argument is deprecated, please use render options instead"), r.target = n.renderTexture)), r.target || (r.target = this.view.renderTarget), r.target === this.view.renderTarget && (this._lastObjectRendered = r.container, r.clearColor ?? (r.clearColor = this.background.colorRgba), r.clear ?? (r.clear = this.background.clearBeforeRender)), r.clearColor) {
94
94
  let e = Array.isArray(r.clearColor) && r.clearColor.length === 4;
95
95
  r.clearColor = e ? r.clearColor : T.shared.setValue(r.clearColor).toArray();
96
96
  }
@@ -185,7 +185,7 @@ var be = ye, k = "8.20.1", xe = class {
185
185
  }
186
186
  static destroy() {}
187
187
  };
188
- xe.extension = w.Application;
188
+ xe.extension = x.Application;
189
189
  var Se = class {
190
190
  constructor(e) {
191
191
  this._renderer = e;
@@ -198,7 +198,7 @@ var Se = class {
198
198
  }
199
199
  };
200
200
  Se.extension = {
201
- type: [w.WebGLSystem, w.WebGPUSystem],
201
+ type: [x.WebGLSystem, x.WebGPUSystem],
202
202
  name: "initHook",
203
203
  priority: -10
204
204
  };
@@ -206,7 +206,7 @@ Se.extension = {
206
206
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/data/ViewableBuffer.mjs
207
207
  var Ce = class {
208
208
  constructor(e) {
209
- typeof e == "number" ? this.rawBinaryData = new ArrayBuffer(e) : e instanceof Uint8Array ? this.rawBinaryData = e.buffer : this.rawBinaryData = e, this.uint32View = new Uint32Array(this.rawBinaryData), this.float32View = new Float32Array(this.rawBinaryData), this.size = this.rawBinaryData.byteLength;
209
+ this.rawBinaryData = typeof e == "number" ? new ArrayBuffer(e) : e instanceof Uint8Array ? e.buffer : e, this.uint32View = new Uint32Array(this.rawBinaryData), this.float32View = new Float32Array(this.rawBinaryData), this.size = this.rawBinaryData.byteLength;
210
210
  }
211
211
  get int8View() {
212
212
  return this._int8View ||= new Int8Array(this.rawBinaryData), this._int8View;
@@ -265,12 +265,12 @@ var we = {
265
265
  }, j = /* @__PURE__ */ ((e) => (e[e.DISABLED = 0] = "DISABLED", e[e.RENDERING_MASK_ADD = 1] = "RENDERING_MASK_ADD", e[e.MASK_ACTIVE = 2] = "MASK_ACTIVE", e[e.INVERSE_MASK_ACTIVE = 3] = "INVERSE_MASK_ACTIVE", e[e.RENDERING_MASK_REMOVE = 4] = "RENDERING_MASK_REMOVE", e[e.NONE = 5] = "NONE", e))(j || {});
266
266
  //#endregion
267
267
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/state/getAdjustedBlendModeBlend.mjs
268
- function Te(e, t) {
268
+ function M(e, t) {
269
269
  return t.alphaMode === "no-premultiply-alpha" && we[e] || e;
270
270
  }
271
271
  //#endregion
272
272
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gl/utils/checkMaxIfStatementsInShader.mjs
273
- var Ee = [
273
+ var Te = [
274
274
  "precision mediump float;",
275
275
  "void main(void){",
276
276
  "float test = 0.1;",
@@ -278,17 +278,17 @@ var Ee = [
278
278
  "gl_FragColor = vec4(0.0);",
279
279
  "}"
280
280
  ].join("\n");
281
- function De(e) {
281
+ function Ee(e) {
282
282
  let t = "";
283
283
  for (let n = 0; n < e; ++n) n > 0 && (t += "\nelse "), n < e - 1 && (t += `if(test == ${n}.0){}`);
284
284
  return t;
285
285
  }
286
- function Oe(e, t) {
286
+ function De(e, t) {
287
287
  if (e === 0) throw Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");
288
288
  let n = t.createShader(t.FRAGMENT_SHADER);
289
289
  try {
290
290
  for (;;) {
291
- let r = Ee.replace(/%forloop%/gi, De(e));
291
+ let r = Te.replace(/%forloop%/gi, Ee(e));
292
292
  if (t.shaderSource(n, r), t.compileShader(n), !t.getShaderParameter(n, t.COMPILE_STATUS)) e = e / 2 | 0;
293
293
  else break;
294
294
  }
@@ -299,15 +299,15 @@ function Oe(e, t) {
299
299
  }
300
300
  //#endregion
301
301
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gl/utils/maxRecommendedTextures.mjs
302
- var M = null;
303
- function ke() {
304
- if (M) return M;
305
- let e = ee();
306
- return M = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS), M = Oe(M, e), e.getExtension("WEBGL_lose_context")?.loseContext(), M;
302
+ var N = null;
303
+ function Oe() {
304
+ if (N) return N;
305
+ let e = te();
306
+ return N = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS), N = De(N, e), e.getExtension("WEBGL_lose_context")?.loseContext(), N;
307
307
  }
308
308
  //#endregion
309
309
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/shared/BatchTextureArray.mjs
310
- var Ae = class {
310
+ var ke = class {
311
311
  constructor() {
312
312
  this.ids = /* @__PURE__ */ Object.create(null), this.textures = [], this.count = 0;
313
313
  }
@@ -318,36 +318,36 @@ var Ae = class {
318
318
  }
319
319
  this.count = 0;
320
320
  }
321
- }, je = class {
321
+ }, Ae = class {
322
322
  constructor() {
323
- this.renderPipeId = "batch", this.action = "startBatch", this.start = 0, this.size = 0, this.textures = new Ae(), this.blendMode = "normal", this.topology = "triangle-strip", this.canBundle = !0;
323
+ this.renderPipeId = "batch", this.action = "startBatch", this.start = 0, this.size = 0, this.textures = new ke(), this.blendMode = "normal", this.topology = "triangle-strip", this.canBundle = !0;
324
324
  }
325
325
  destroy() {
326
326
  this.textures = null, this.gpuBindGroup = null, this.bindGroup = null, this.batcher = null, this.elements = null;
327
327
  }
328
- }, N = [], P = 0;
328
+ }, P = [], F = 0;
329
329
  s.register({ clear: () => {
330
- if (N.length > 0) for (let e of N) e && e.destroy();
331
- N.length = 0, P = 0;
330
+ if (P.length > 0) for (let e of P) e && e.destroy();
331
+ P.length = 0, F = 0;
332
332
  } });
333
- function Me() {
334
- return P > 0 ? N[--P] : new je();
333
+ function je() {
334
+ return F > 0 ? P[--F] : new Ae();
335
335
  }
336
- function Ne(e) {
337
- e.elements = null, N[P++] = e;
336
+ function Me(e) {
337
+ e.elements = null, P[F++] = e;
338
338
  }
339
- var F = 0, Pe = class e {
339
+ var I = 0, Ne = class e {
340
340
  constructor(t) {
341
341
  this.uid = h("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._elements = [], t = {
342
342
  ...e.defaultOptions,
343
343
  ...t
344
- }, t.maxTextures || (o("v8.8.0", "maxTextures is a required option for Batcher now, please pass it in the options"), t.maxTextures = ke());
344
+ }, t.maxTextures || (o("v8.8.0", "maxTextures is a required option for Batcher now, please pass it in the options"), t.maxTextures = Oe());
345
345
  let { maxTextures: n, attributesInitialSize: r, indicesInitialSize: i } = t;
346
346
  this.attributeBuffer = new Ce(r * 4), this.indexBuffer = new Uint16Array(i), this.maxTextures = n;
347
347
  }
348
348
  begin() {
349
349
  this.elementSize = 0, this.elementStart = 0, this.indexSize = 0, this.attributeSize = 0;
350
- for (let e = 0; e < this.batchIndex; e++) Ne(this.batches[e]);
350
+ for (let e = 0; e < this.batchIndex; e++) Me(this.batches[e]);
351
351
  this.batchIndex = 0, this._batchIndexStart = 0, this._batchIndexSize = 0, this.dirty = !0;
352
352
  }
353
353
  add(e) {
@@ -365,25 +365,25 @@ var F = 0, Pe = class e {
365
365
  break(e) {
366
366
  let t = this._elements;
367
367
  if (!t[this.elementStart]) return;
368
- let n = Me(), r = n.textures;
368
+ let n = je(), r = n.textures;
369
369
  r.clear();
370
- let i = t[this.elementStart], a = Te(i.blendMode, i.texture._source), o = i.topology;
370
+ let i = t[this.elementStart], a = M(i.blendMode, i.texture._source), o = i.topology;
371
371
  this.attributeSize * 4 > this.attributeBuffer.size && this._resizeAttributeBuffer(this.attributeSize * 4), this.indexSize > this.indexBuffer.length && this._resizeIndexBuffer(this.indexSize);
372
372
  let s = this.attributeBuffer.float32View, c = this.attributeBuffer.uint32View, l = this.indexBuffer, u = this._batchIndexSize, d = this._batchIndexStart, f = "startBatch", p = [], m = this.maxTextures;
373
373
  for (let i = this.elementStart; i < this.elementSize; ++i) {
374
374
  let h = t[i];
375
375
  t[i] = null;
376
- let g = h.texture._source, _ = Te(h.blendMode, g), v = a !== _ || o !== h.topology;
377
- if (g._batchTick === F && !v) {
376
+ let g = h.texture._source, _ = M(h.blendMode, g), v = a !== _ || o !== h.topology;
377
+ if (g._batchTick === I && !v) {
378
378
  h._textureId = g._textureBindLocation, u += h.indexSize, h.packAsQuad ? (this.packQuadAttributes(h, s, c, h._attributeStart, h._textureId), this.packQuadIndex(l, h._indexStart, h._attributeStart / this.vertexSize)) : (this.packAttributes(h, s, c, h._attributeStart, h._textureId), this.packIndex(h, l, h._indexStart, h._attributeStart / this.vertexSize)), h._batch = n, p.push(h);
379
379
  continue;
380
380
  }
381
- g._batchTick = F, (r.count >= m || v) && (this._finishBatch(n, d, u - d, r, a, o, e, f, p), f = "renderBatch", d = u, a = _, o = h.topology, n = Me(), r = n.textures, r.clear(), p = [], ++F), h._textureId = g._textureBindLocation = r.count, r.ids[g.uid] = r.count, r.textures[r.count++] = g, h._batch = n, p.push(h), u += h.indexSize, h.packAsQuad ? (this.packQuadAttributes(h, s, c, h._attributeStart, h._textureId), this.packQuadIndex(l, h._indexStart, h._attributeStart / this.vertexSize)) : (this.packAttributes(h, s, c, h._attributeStart, h._textureId), this.packIndex(h, l, h._indexStart, h._attributeStart / this.vertexSize));
381
+ g._batchTick = I, (r.count >= m || v) && (this._finishBatch(n, d, u - d, r, a, o, e, f, p), f = "renderBatch", d = u, a = _, o = h.topology, n = je(), r = n.textures, r.clear(), p = [], ++I), h._textureId = g._textureBindLocation = r.count, r.ids[g.uid] = r.count, r.textures[r.count++] = g, h._batch = n, p.push(h), u += h.indexSize, h.packAsQuad ? (this.packQuadAttributes(h, s, c, h._attributeStart, h._textureId), this.packQuadIndex(l, h._indexStart, h._attributeStart / this.vertexSize)) : (this.packAttributes(h, s, c, h._attributeStart, h._textureId), this.packIndex(h, l, h._indexStart, h._attributeStart / this.vertexSize));
382
382
  }
383
- r.count > 0 && (this._finishBatch(n, d, u - d, r, a, o, e, f, p), d = u, ++F), this.elementStart = this.elementSize, this._batchIndexStart = d, this._batchIndexSize = u;
383
+ r.count > 0 && (this._finishBatch(n, d, u - d, r, a, o, e, f, p), d = u, ++I), this.elementStart = this.elementSize, this._batchIndexStart = d, this._batchIndexSize = u;
384
384
  }
385
385
  _finishBatch(e, t, n, r, i, a, o, s, c) {
386
- e.gpuBindGroup = null, e.bindGroup = null, e.action = s, e.batcher = this, e.textures = r, e.blendMode = i, e.topology = a, e.start = t, e.size = n, e.elements = c, ++F, this.batches[this.batchIndex++] = e, o.add(e);
386
+ e.gpuBindGroup = null, e.bindGroup = null, e.action = s, e.batcher = this, e.textures = r, e.blendMode = i, e.topology = a, e.start = t, e.size = n, e.elements = c, ++I, this.batches[this.batchIndex++] = e, o.add(e);
387
387
  }
388
388
  finish(e) {
389
389
  this.break(e);
@@ -415,27 +415,27 @@ var F = 0, Pe = class e {
415
415
  }
416
416
  destroy(e = {}) {
417
417
  if (this.batches !== null) {
418
- for (let e = 0; e < this.batchIndex; e++) Ne(this.batches[e]);
418
+ for (let e = 0; e < this.batchIndex; e++) Me(this.batches[e]);
419
419
  this.batches = null, this.geometry.destroy(!0), this.geometry = null, e.shader && (this.shader?.destroy(), this.shader = null);
420
420
  for (let e = 0; e < this._elements.length; e++) this._elements[e] && (this._elements[e]._batch = null);
421
421
  this._elements = null, this.indexBuffer = null, this.attributeBuffer.destroy(), this.attributeBuffer = null;
422
422
  }
423
423
  }
424
424
  };
425
- Pe.defaultOptions = {
425
+ Ne.defaultOptions = {
426
426
  maxTextures: null,
427
427
  attributesInitialSize: 4,
428
428
  indicesInitialSize: 6
429
429
  };
430
- var Fe = Pe, Ie = /* @__PURE__ */ new Float32Array(1), Le = /* @__PURE__ */ new Uint32Array(1), Re = class extends le {
430
+ var Pe = Ne, Fe = /* @__PURE__ */ new Float32Array(1), Ie = /* @__PURE__ */ new Uint32Array(1), Le = class extends ue {
431
431
  constructor() {
432
- let e = new ae({
433
- data: Ie,
432
+ let e = new oe({
433
+ data: Fe,
434
434
  label: "attribute-batch-buffer",
435
435
  usage: C.VERTEX | C.COPY_DST,
436
436
  shrinkToFit: !1
437
- }), t = new ae({
438
- data: Le,
437
+ }), t = new oe({
438
+ data: Ie,
439
439
  label: "index-batch-buffer",
440
440
  usage: C.INDEX | C.COPY_DST,
441
441
  shrinkToFit: !1
@@ -473,7 +473,7 @@ var Fe = Pe, Ie = /* @__PURE__ */ new Float32Array(1), Le = /* @__PURE__ */ new
473
473
  };
474
474
  //#endregion
475
475
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/addBits.mjs
476
- function ze(e, t, n) {
476
+ function Re(e, t, n) {
477
477
  if (e) for (let r in e) {
478
478
  let i = t[r.toLocaleLowerCase()];
479
479
  if (i) {
@@ -484,23 +484,23 @@ function ze(e, t, n) {
484
484
  }
485
485
  //#endregion
486
486
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileHooks.mjs
487
- var Be = /\{\{(.*?)\}\}/g;
488
- function Ve(e) {
487
+ var ze = /\{\{(.*?)\}\}/g;
488
+ function Be(e) {
489
489
  let t = {};
490
- return (e.match(Be)?.map((e) => e.replace(/[{()}]/g, "")) ?? []).forEach((e) => {
490
+ return (e.match(ze)?.map((e) => e.replace(/[{()}]/g, "")) ?? []).forEach((e) => {
491
491
  t[e] = [];
492
492
  }), t;
493
493
  }
494
494
  //#endregion
495
495
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileInputs.mjs
496
- function He(e, t) {
496
+ function Ve(e, t) {
497
497
  let n, r = /@in\s+([^;]+);/g;
498
498
  for (; (n = r.exec(e)) !== null;) t.push(n[1]);
499
499
  }
500
- function Ue(e, t, n = !1) {
500
+ function He(e, t, n = !1) {
501
501
  let r = [];
502
- He(t, r), e.forEach((e) => {
503
- e.header && He(e.header, r);
502
+ Ve(t, r), e.forEach((e) => {
503
+ e.header && Ve(e.header, r);
504
504
  });
505
505
  let i = r;
506
506
  n && i.sort();
@@ -511,24 +511,24 @@ ${a}
511
511
  }
512
512
  //#endregion
513
513
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileOutputs.mjs
514
- function We(e, t) {
514
+ function Ue(e, t) {
515
515
  let n, r = /@out\s+([^;]+);/g;
516
516
  for (; (n = r.exec(e)) !== null;) t.push(n[1]);
517
517
  }
518
- function Ge(e) {
518
+ function We(e) {
519
519
  let t = /\b(\w+)\s*:/g.exec(e);
520
520
  return t ? t[1] : "";
521
521
  }
522
- function Ke(e) {
522
+ function Ge(e) {
523
523
  return e.replace(/@.*?\s+/g, "");
524
524
  }
525
- function qe(e, t) {
525
+ function Ke(e, t) {
526
526
  let n = [];
527
- We(t, n), e.forEach((e) => {
528
- e.header && We(e.header, n);
527
+ Ue(t, n), e.forEach((e) => {
528
+ e.header && Ue(e.header, n);
529
529
  });
530
- let r = 0, i = n.sort().map((e) => e.indexOf("builtin") > -1 ? e : `@location(${r++}) ${e}`).join(",\n"), a = n.sort().map((e) => ` var ${Ke(e)};`).join("\n"), o = `return VSOutput(
531
- ${n.sort().map((e) => ` ${Ge(e)}`).join(",\n")});`, s = t.replace(/@out\s+[^;]+;\s*/g, "");
530
+ let r = 0, i = n.sort().map((e) => e.indexOf("builtin") > -1 ? e : `@location(${r++}) ${e}`).join(",\n"), a = n.sort().map((e) => ` var ${Ge(e)};`).join("\n"), o = `return VSOutput(
531
+ ${n.sort().map((e) => ` ${We(e)}`).join(",\n")});`, s = t.replace(/@out\s+[^;]+;\s*/g, "");
532
532
  return s = s.replace("{{struct}}", `
533
533
  ${i}
534
534
  `), s = s.replace("{{start}}", `
@@ -539,7 +539,7 @@ ${o}
539
539
  }
540
540
  //#endregion
541
541
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/injectBits.mjs
542
- function Je(e, t) {
542
+ function qe(e, t) {
543
543
  let n = e;
544
544
  for (let e in t) {
545
545
  let r = t[e];
@@ -551,58 +551,58 @@ ${r.join("\n")}
551
551
  }
552
552
  //#endregion
553
553
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/compileHighShader.mjs
554
- var I = /* @__PURE__ */ Object.create(null), Ye = /* @__PURE__ */ new Map(), Xe = 0;
555
- function Ze({ template: e, bits: t }) {
556
- let n = et(e, t);
557
- if (I[n]) return I[n];
558
- let { vertex: r, fragment: i } = $e(e, t);
559
- return I[n] = tt(r, i, t), I[n];
554
+ var L = /* @__PURE__ */ Object.create(null), Je = /* @__PURE__ */ new Map(), Ye = 0;
555
+ function Xe({ template: e, bits: t }) {
556
+ let n = $e(e, t);
557
+ if (L[n]) return L[n];
558
+ let { vertex: r, fragment: i } = Qe(e, t);
559
+ return L[n] = et(r, i, t), L[n];
560
560
  }
561
- function Qe({ template: e, bits: t }) {
562
- let n = et(e, t);
563
- return I[n] || (I[n] = tt(e.vertex, e.fragment, t)), I[n];
561
+ function Ze({ template: e, bits: t }) {
562
+ let n = $e(e, t);
563
+ return L[n] || (L[n] = et(e.vertex, e.fragment, t)), L[n];
564
564
  }
565
- function $e(e, t) {
566
- let n = t.map((e) => e.vertex).filter((e) => !!e), r = t.map((e) => e.fragment).filter((e) => !!e), i = Ue(n, e.vertex, !0);
567
- i = qe(n, i);
568
- let a = Ue(r, e.fragment, !0);
565
+ function Qe(e, t) {
566
+ let n = t.map((e) => e.vertex).filter((e) => !!e), r = t.map((e) => e.fragment).filter((e) => !!e), i = He(n, e.vertex, !0);
567
+ i = Ke(n, i);
568
+ let a = He(r, e.fragment, !0);
569
569
  return {
570
570
  vertex: i,
571
571
  fragment: a
572
572
  };
573
573
  }
574
- function et(e, t) {
575
- return t.map((e) => (Ye.has(e) || Ye.set(e, Xe++), Ye.get(e))).sort((e, t) => e - t).join("-") + e.vertex + e.fragment;
574
+ function $e(e, t) {
575
+ return t.map((e) => (Je.has(e) || Je.set(e, Ye++), Je.get(e))).sort((e, t) => e - t).join("-") + e.vertex + e.fragment;
576
576
  }
577
- function tt(e, t, n) {
578
- let r = Ve(e), i = Ve(t);
577
+ function et(e, t, n) {
578
+ let r = Be(e), i = Be(t);
579
579
  return n.forEach((e) => {
580
- ze(e.vertex, r, e.name), ze(e.fragment, i, e.name);
580
+ Re(e.vertex, r, e.name), Re(e.fragment, i, e.name);
581
581
  }), {
582
- vertex: Je(e, r),
583
- fragment: Je(t, i)
582
+ vertex: qe(e, r),
583
+ fragment: qe(t, i)
584
584
  };
585
585
  }
586
586
  //#endregion
587
587
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/defaultProgramTemplate.mjs
588
- var nt = "\n @in aPosition: vec2<f32>;\n @in aUV: vec2<f32>;\n\n @out @builtin(position) vPosition: vec4<f32>;\n @out vUV : vec2<f32>;\n @out vColor : vec4<f32>;\n\n {{header}}\n\n struct VSOutput {\n {{struct}}\n };\n\n @vertex\n fn main( {{in}} ) -> VSOutput {\n\n var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;\n var modelMatrix = mat3x3<f32>(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n var position = aPosition;\n var uv = aUV;\n\n {{start}}\n\n vColor = vec4<f32>(1., 1., 1., 1.);\n\n {{main}}\n\n vUV = uv;\n\n var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n vPosition = vec4<f32>((modelViewProjectionMatrix * vec3<f32>(position, 1.0)).xy, 0.0, 1.0);\n\n vColor *= globalUniforms.uWorldColorAlpha;\n\n {{end}}\n\n {{return}}\n };\n", rt = "\n @in vUV : vec2<f32>;\n @in vColor : vec4<f32>;\n\n {{header}}\n\n @fragment\n fn main(\n {{in}}\n ) -> @location(0) vec4<f32> {\n\n {{start}}\n\n var outColor:vec4<f32>;\n\n {{main}}\n\n var finalColor:vec4<f32> = outColor * vColor;\n\n {{end}}\n\n return finalColor;\n };\n", it = "\n in vec2 aPosition;\n in vec2 aUV;\n\n out vec4 vColor;\n out vec2 vUV;\n\n {{header}}\n\n void main(void){\n\n mat3 worldTransformMatrix = uWorldTransformMatrix;\n mat3 modelMatrix = mat3(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n vec2 position = aPosition;\n vec2 uv = aUV;\n\n {{start}}\n\n vColor = vec4(1.);\n\n {{main}}\n\n vUV = uv;\n\n mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n\n vColor *= uWorldColorAlpha;\n\n {{end}}\n }\n", at = "\n\n in vec4 vColor;\n in vec2 vUV;\n\n out vec4 finalColor;\n\n {{header}}\n\n void main(void) {\n\n {{start}}\n\n vec4 outColor;\n\n {{main}}\n\n finalColor = outColor * vColor;\n\n {{end}}\n }\n", ot = {
588
+ var tt = "\n @in aPosition: vec2<f32>;\n @in aUV: vec2<f32>;\n\n @out @builtin(position) vPosition: vec4<f32>;\n @out vUV : vec2<f32>;\n @out vColor : vec4<f32>;\n\n {{header}}\n\n struct VSOutput {\n {{struct}}\n };\n\n @vertex\n fn main( {{in}} ) -> VSOutput {\n\n var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;\n var modelMatrix = mat3x3<f32>(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n var position = aPosition;\n var uv = aUV;\n\n {{start}}\n\n vColor = vec4<f32>(1., 1., 1., 1.);\n\n {{main}}\n\n vUV = uv;\n\n var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n vPosition = vec4<f32>((modelViewProjectionMatrix * vec3<f32>(position, 1.0)).xy, 0.0, 1.0);\n\n vColor *= globalUniforms.uWorldColorAlpha;\n\n {{end}}\n\n {{return}}\n };\n", nt = "\n @in vUV : vec2<f32>;\n @in vColor : vec4<f32>;\n\n {{header}}\n\n @fragment\n fn main(\n {{in}}\n ) -> @location(0) vec4<f32> {\n\n {{start}}\n\n var outColor:vec4<f32>;\n\n {{main}}\n\n var finalColor:vec4<f32> = outColor * vColor;\n\n {{end}}\n\n return finalColor;\n };\n", rt = "\n in vec2 aPosition;\n in vec2 aUV;\n\n out vec4 vColor;\n out vec2 vUV;\n\n {{header}}\n\n void main(void){\n\n mat3 worldTransformMatrix = uWorldTransformMatrix;\n mat3 modelMatrix = mat3(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n vec2 position = aPosition;\n vec2 uv = aUV;\n\n {{start}}\n\n vColor = vec4(1.);\n\n {{main}}\n\n vUV = uv;\n\n mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n\n vColor *= uWorldColorAlpha;\n\n {{end}}\n }\n", it = "\n\n in vec4 vColor;\n in vec2 vUV;\n\n out vec4 finalColor;\n\n {{header}}\n\n void main(void) {\n\n {{start}}\n\n vec4 outColor;\n\n {{main}}\n\n finalColor = outColor * vColor;\n\n {{end}}\n }\n", at = {
589
589
  name: "global-uniforms-bit",
590
590
  vertex: { header: "\n struct GlobalUniforms {\n uProjectionMatrix:mat3x3<f32>,\n uWorldTransformMatrix:mat3x3<f32>,\n uWorldColorAlpha: vec4<f32>,\n uResolution: vec2<f32>,\n }\n\n @group(0) @binding(0) var<uniform> globalUniforms : GlobalUniforms;\n " }
591
- }, st = {
591
+ }, ot = {
592
592
  name: "global-uniforms-bit",
593
593
  vertex: { header: "\n uniform mat3 uProjectionMatrix;\n uniform mat3 uWorldTransformMatrix;\n uniform vec4 uWorldColorAlpha;\n uniform vec2 uResolution;\n " }
594
594
  };
595
595
  //#endregion
596
596
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compileHighShaderToProgram.mjs
597
- function ct({ bits: e, name: t }) {
598
- let n = Ze({
597
+ function st({ bits: e, name: t }) {
598
+ let n = Xe({
599
599
  template: {
600
- fragment: rt,
601
- vertex: nt
600
+ fragment: nt,
601
+ vertex: tt
602
602
  },
603
- bits: [ot, ...e]
603
+ bits: [at, ...e]
604
604
  });
605
- return b.from({
605
+ return ee.from({
606
606
  name: t,
607
607
  vertex: {
608
608
  source: n.vertex,
@@ -614,34 +614,34 @@ function ct({ bits: e, name: t }) {
614
614
  }
615
615
  });
616
616
  }
617
- function lt({ bits: e, name: t }) {
618
- return new ie({
617
+ function ct({ bits: e, name: t }) {
618
+ return new ae({
619
619
  name: t,
620
- ...Qe({
620
+ ...Ze({
621
621
  template: {
622
- vertex: it,
623
- fragment: at
622
+ vertex: rt,
623
+ fragment: it
624
624
  },
625
- bits: [st, ...e]
625
+ bits: [ot, ...e]
626
626
  })
627
627
  });
628
628
  }
629
629
  //#endregion
630
630
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/colorBit.mjs
631
- var ut = {
631
+ var lt = {
632
632
  name: "color-bit",
633
633
  vertex: {
634
634
  header: "\n @in aColor: vec4<f32>;\n ",
635
635
  main: "\n vColor *= vec4<f32>(aColor.rgb * aColor.a, aColor.a);\n "
636
636
  }
637
- }, dt = {
637
+ }, ut = {
638
638
  name: "color-bit",
639
639
  vertex: {
640
640
  header: "\n in vec4 aColor;\n ",
641
641
  main: "\n vColor *= vec4(aColor.rgb * aColor.a, aColor.a);\n "
642
642
  }
643
- }, ft = {};
644
- function pt(e) {
643
+ }, dt = {};
644
+ function ft(e) {
645
645
  let t = [];
646
646
  if (e === 1) t.push("@group(1) @binding(0) var textureSource1: texture_2d<f32>;"), t.push("@group(1) @binding(1) var textureSampler1: sampler;");
647
647
  else {
@@ -650,7 +650,7 @@ function pt(e) {
650
650
  }
651
651
  return t.join("\n");
652
652
  }
653
- function mt(e) {
653
+ function pt(e) {
654
654
  let t = [];
655
655
  if (e === 1) t.push("outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);");
656
656
  else {
@@ -660,8 +660,8 @@ function mt(e) {
660
660
  }
661
661
  return t.join("\n");
662
662
  }
663
- function ht(e) {
664
- return ft[e] || (ft[e] = {
663
+ function mt(e) {
664
+ return dt[e] || (dt[e] = {
665
665
  name: "texture-batch-bit",
666
666
  vertex: {
667
667
  header: "\n @in aTextureIdAndRound: vec2<u32>;\n @out @interpolate(flat) vTextureId : u32;\n ",
@@ -672,25 +672,25 @@ function ht(e) {
672
672
  header: `
673
673
  @in @interpolate(flat) vTextureId: u32;
674
674
 
675
- ${pt(e)}
675
+ ${ft(e)}
676
676
  `,
677
677
  main: `
678
678
  var uvDx = dpdx(vUV);
679
679
  var uvDy = dpdy(vUV);
680
680
 
681
- ${mt(e)}
681
+ ${pt(e)}
682
682
  `
683
683
  }
684
- }), ft[e];
684
+ }), dt[e];
685
685
  }
686
- var L = {};
686
+ var ht = {};
687
687
  function gt(e) {
688
688
  let t = [];
689
689
  for (let n = 0; n < e; n++) n > 0 && t.push("else"), n < e - 1 && t.push(`if(vTextureId < ${n}.5)`), t.push("{"), t.push(` outColor = texture(uTextures[${n}], vUV);`), t.push("}");
690
690
  return t.join("\n");
691
691
  }
692
692
  function _t(e) {
693
- return L[e] || (L[e] = {
693
+ return ht[e] || (ht[e] = {
694
694
  name: "texture-batch-bit",
695
695
  vertex: {
696
696
  header: "\n in vec2 aTextureIdAndRound;\n out float vTextureId;\n\n ",
@@ -709,7 +709,7 @@ function _t(e) {
709
709
  ${gt(e)}
710
710
  `
711
711
  }
712
- }), L[e];
712
+ }), ht[e];
713
713
  }
714
714
  //#endregion
715
715
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/roundPixelsBit.mjs
@@ -725,7 +725,7 @@ function xt(e) {
725
725
  if (t) return t;
726
726
  let n = new Int32Array(e);
727
727
  for (let t = 0; t < e; t++) n[t] = t;
728
- return t = bt[e] = new v({ uTextures: {
728
+ return t = bt[e] = new y({ uTextures: {
729
729
  value: n,
730
730
  type: "i32",
731
731
  size: e
@@ -733,20 +733,20 @@ function xt(e) {
733
733
  }
734
734
  //#endregion
735
735
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/shared/DefaultShader.mjs
736
- var St = class extends ce {
736
+ var St = class extends le {
737
737
  constructor(e) {
738
- let t = lt({
738
+ let t = ct({
739
739
  name: "batch",
740
740
  bits: [
741
- dt,
741
+ ut,
742
742
  _t(e),
743
743
  yt
744
744
  ]
745
- }), n = ct({
745
+ }), n = st({
746
746
  name: "batch",
747
747
  bits: [
748
- ut,
749
- ht(e),
748
+ lt,
749
+ mt(e),
750
750
  vt
751
751
  ]
752
752
  });
@@ -756,9 +756,9 @@ var St = class extends ce {
756
756
  resources: { batchSamplers: xt(e) }
757
757
  }), this.maxTextures = e;
758
758
  }
759
- }, R = null, Ct = class e extends Fe {
759
+ }, R = null, Ct = class e extends Pe {
760
760
  constructor(t) {
761
- super(t), this.geometry = new Re(), this.name = e.extension.name, this.vertexSize = 6, R ??= new St(t.maxTextures), this.shader = R;
761
+ super(t), this.geometry = new Le(), this.name = e.extension.name, this.vertexSize = 6, R ??= new St(t.maxTextures), this.shader = R;
762
762
  }
763
763
  packAttributes(e, t, n, r, i) {
764
764
  let a = i << 16 | e.roundPixels & 65535, o = e.transform, s = o.a, c = o.b, l = o.c, u = o.d, d = o.tx, f = o.ty, { positions: p, uvs: m } = e, h = e.color, g = e.attributeOffset, _ = g + e.attributeSize;
@@ -779,7 +779,7 @@ var St = class extends ce {
779
779
  }
780
780
  };
781
781
  Ct.extension = {
782
- type: [w.Batcher],
782
+ type: [x.Batcher],
783
783
  name: "default"
784
784
  };
785
785
  var z = Ct, wt = class {
@@ -789,7 +789,7 @@ var z = Ct, wt = class {
789
789
  this._renderer = t, t.gc.addResourceHash(this, "items", n, i ?? 0), this._onUnload = r, this.name = a;
790
790
  }
791
791
  add(e) {
792
- return this.items[e.uid] ? !1 : (this.items[e.uid] = e, e.once("unload", this.remove, this), e._gcLastUsed = this._renderer.gc.now, !0);
792
+ return !this.items[e.uid] && (this.items[e.uid] = e, e.once("unload", this.remove, this), e._gcLastUsed = this._renderer.gc.now, !0);
793
793
  }
794
794
  remove(e, ...t) {
795
795
  if (!this.items[e.uid]) return;
@@ -802,11 +802,11 @@ var z = Ct, wt = class {
802
802
  destroy(...e) {
803
803
  this.removeAll(...e), this.items = /* @__PURE__ */ Object.create(null), this._renderer = null, this._onUnload = null;
804
804
  }
805
- }, Tt = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uTexture;\nuniform sampler2D uMaskTexture;\n\nuniform float uAlpha;\nuniform vec4 uMaskClamp;\nuniform float uInverse;\nuniform float uChannel;\n\nout vec4 finalColor;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(uMaskClamp.x, vMaskCoord.x) +\n step(uMaskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, uMaskClamp.z) +\n step(vMaskCoord.y, uMaskClamp.w));\n\n // TODO look into why this is needed\n float npmAlpha = uAlpha;\n vec4 original = texture(uTexture, vTextureCoord);\n vec4 masky = texture(uMaskTexture, vMaskCoord);\n\n float a;\n if (uChannel == 1.0) {\n a = masky.a * npmAlpha * clip;\n } else {\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n a = alphaMul * masky.r * npmAlpha * clip;\n }\n\n if (uInverse == 1.0) {\n a = 1.0 - a;\n }\n\n finalColor = original * a;\n}\n", Et = "in vec2 aPosition;\n\nout vec2 vTextureCoord;\nout vec2 vMaskCoord;\n\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\nuniform mat3 uFilterMatrix;\n\nvec4 filterVertexPosition( vec2 aPosition )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( vec2 aPosition )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvec2 getFilterCoord( vec2 aPosition )\n{\n return ( uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy;\n} \n\nvoid main(void)\n{\n gl_Position = filterVertexPosition(aPosition);\n vTextureCoord = filterTextureCoord(aPosition);\n vMaskCoord = getFilterCoord(aPosition);\n}\n", Dt = "struct GlobalFilterUniforms {\n uInputSize:vec4<f32>,\n uInputPixel:vec4<f32>,\n uInputClamp:vec4<f32>,\n uOutputFrame:vec4<f32>,\n uGlobalFrame:vec4<f32>,\n uOutputTexture:vec4<f32>,\n};\n\nstruct MaskUniforms {\n uFilterMatrix:mat3x3<f32>,\n uMaskClamp:vec4<f32>,\n uAlpha:f32,\n uInverse:f32,\n uChannel:f32,\n};\n\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n@group(0) @binding(1) var uTexture: texture_2d<f32>;\n@group(0) @binding(2) var uSampler : sampler;\n\n@group(1) @binding(0) var<uniform> filterUniforms : MaskUniforms;\n@group(1) @binding(1) var uMaskTexture: texture_2d<f32>;\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>,\n @location(1) filterUv : vec2<f32>,\n};\n\nfn filterVertexPosition(aPosition:vec2<f32>) -> vec4<f32>\n{\n var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy;\n\n position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nfn filterTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw);\n}\n\nfn globalTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw);\n}\n\nfn getFilterCoord(aPosition:vec2<f32> ) -> vec2<f32>\n{\n return ( filterUniforms.uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy;\n}\n\nfn getSize() -> vec2<f32>\n{\n return gfu.uGlobalFrame.zw;\n}\n\n@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>,\n) -> VSOutput {\n return VSOutput(\n filterVertexPosition(aPosition),\n filterTextureCoord(aPosition),\n getFilterCoord(aPosition)\n );\n}\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @location(1) filterUv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n\n var maskClamp = filterUniforms.uMaskClamp;\n var uAlpha = filterUniforms.uAlpha;\n\n var clip = step(3.5,\n step(maskClamp.x, filterUv.x) +\n step(maskClamp.y, filterUv.y) +\n step(filterUv.x, maskClamp.z) +\n step(filterUv.y, maskClamp.w));\n\n var mask = textureSample(uMaskTexture, uSampler, filterUv);\n var source = textureSample(uTexture, uSampler, uv);\n\n var a: f32;\n if (filterUniforms.uChannel == 1.0) {\n a = mask.a * uAlpha * clip;\n } else {\n var alphaMul = 1.0 - uAlpha * (1.0 - mask.a);\n a = alphaMul * mask.r * uAlpha * clip;\n }\n\n if (filterUniforms.uInverse == 1.0) {\n a = 1.0 - a;\n }\n\n return source * a;\n}\n", Ot = class extends te {
805
+ }, Tt = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uTexture;\nuniform sampler2D uMaskTexture;\n\nuniform float uAlpha;\nuniform vec4 uMaskClamp;\nuniform float uInverse;\nuniform float uChannel;\n\nout vec4 finalColor;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(uMaskClamp.x, vMaskCoord.x) +\n step(uMaskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, uMaskClamp.z) +\n step(vMaskCoord.y, uMaskClamp.w));\n\n // TODO look into why this is needed\n float npmAlpha = uAlpha;\n vec4 original = texture(uTexture, vTextureCoord);\n vec4 masky = texture(uMaskTexture, vMaskCoord);\n\n float a;\n if (uChannel == 1.0) {\n a = masky.a * npmAlpha * clip;\n } else {\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n a = alphaMul * masky.r * npmAlpha * clip;\n }\n\n if (uInverse == 1.0) {\n a = 1.0 - a;\n }\n\n finalColor = original * a;\n}\n", Et = "in vec2 aPosition;\n\nout vec2 vTextureCoord;\nout vec2 vMaskCoord;\n\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\nuniform mat3 uFilterMatrix;\n\nvec4 filterVertexPosition( vec2 aPosition )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( vec2 aPosition )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvec2 getFilterCoord( vec2 aPosition )\n{\n return ( uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy;\n} \n\nvoid main(void)\n{\n gl_Position = filterVertexPosition(aPosition);\n vTextureCoord = filterTextureCoord(aPosition);\n vMaskCoord = getFilterCoord(aPosition);\n}\n", Dt = "struct GlobalFilterUniforms {\n uInputSize:vec4<f32>,\n uInputPixel:vec4<f32>,\n uInputClamp:vec4<f32>,\n uOutputFrame:vec4<f32>,\n uGlobalFrame:vec4<f32>,\n uOutputTexture:vec4<f32>,\n};\n\nstruct MaskUniforms {\n uFilterMatrix:mat3x3<f32>,\n uMaskClamp:vec4<f32>,\n uAlpha:f32,\n uInverse:f32,\n uChannel:f32,\n};\n\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n@group(0) @binding(1) var uTexture: texture_2d<f32>;\n@group(0) @binding(2) var uSampler : sampler;\n\n@group(1) @binding(0) var<uniform> filterUniforms : MaskUniforms;\n@group(1) @binding(1) var uMaskTexture: texture_2d<f32>;\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>,\n @location(1) filterUv : vec2<f32>,\n};\n\nfn filterVertexPosition(aPosition:vec2<f32>) -> vec4<f32>\n{\n var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy;\n\n position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nfn filterTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw);\n}\n\nfn globalTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw);\n}\n\nfn getFilterCoord(aPosition:vec2<f32> ) -> vec2<f32>\n{\n return ( filterUniforms.uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy;\n}\n\nfn getSize() -> vec2<f32>\n{\n return gfu.uGlobalFrame.zw;\n}\n\n@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>,\n) -> VSOutput {\n return VSOutput(\n filterVertexPosition(aPosition),\n filterTextureCoord(aPosition),\n getFilterCoord(aPosition)\n );\n}\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @location(1) filterUv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n\n var maskClamp = filterUniforms.uMaskClamp;\n var uAlpha = filterUniforms.uAlpha;\n\n var clip = step(3.5,\n step(maskClamp.x, filterUv.x) +\n step(maskClamp.y, filterUv.y) +\n step(filterUv.x, maskClamp.z) +\n step(filterUv.y, maskClamp.w));\n\n var mask = textureSample(uMaskTexture, uSampler, filterUv);\n var source = textureSample(uTexture, uSampler, uv);\n\n var a: f32;\n if (filterUniforms.uChannel == 1.0) {\n a = mask.a * uAlpha * clip;\n } else {\n var alphaMul = 1.0 - uAlpha * (1.0 - mask.a);\n a = alphaMul * mask.r * uAlpha * clip;\n }\n\n if (filterUniforms.uInverse == 1.0) {\n a = 1.0 - a;\n }\n\n return source * a;\n}\n", Ot = class extends ne {
806
806
  constructor(e) {
807
- let { sprite: t, ...n } = e, r = new i(t.texture), a = new v({
807
+ let { sprite: t, ...n } = e, r = new i(t.texture), a = new y({
808
808
  uFilterMatrix: {
809
- value: new y(),
809
+ value: new b(),
810
810
  type: "mat3x3<f32>"
811
811
  },
812
812
  uMaskClamp: {
@@ -825,7 +825,7 @@ var z = Ct, wt = class {
825
825
  value: +(e.channel === "alpha"),
826
826
  type: "f32"
827
827
  }
828
- }), o = b.from({
828
+ }), o = ee.from({
829
829
  vertex: {
830
830
  source: Dt,
831
831
  entryPoint: "mainVertex"
@@ -834,7 +834,7 @@ var z = Ct, wt = class {
834
834
  source: Dt,
835
835
  entryPoint: "mainFragment"
836
836
  }
837
- }), s = ie.from({
837
+ }), s = ae.from({
838
838
  vertex: Et,
839
839
  fragment: Tt,
840
840
  name: "mask-filter"
@@ -905,14 +905,14 @@ var At = class {
905
905
  }
906
906
  }, B = class e {
907
907
  constructor(e, t) {
908
- this.state = se.for2d(), this._batchersByInstructionSet = /* @__PURE__ */ Object.create(null), this._activeBatches = /* @__PURE__ */ Object.create(null), this.renderer = e, this._adaptor = t, this._adaptor.init?.(this);
908
+ this.state = ce.for2d(), this._batchersByInstructionSet = /* @__PURE__ */ Object.create(null), this._activeBatches = /* @__PURE__ */ Object.create(null), this.renderer = e, this._adaptor = t, this._adaptor.init?.(this);
909
909
  }
910
910
  static getBatcher(e, t) {
911
911
  return new this._availableBatchers[e]({ maxTextures: t });
912
912
  }
913
913
  buildStart(e) {
914
914
  let t = this._batchersByInstructionSet[e.uid];
915
- t || (t = this._batchersByInstructionSet[e.uid] = /* @__PURE__ */ Object.create(null), t.default ||= new z({ maxTextures: this.renderer.limits.maxBatchableTextures })), this._activeBatches = t, this._activeBatch = this._activeBatches.default;
915
+ t || (t = this._batchersByInstructionSet[e.uid] = /* @__PURE__ */ Object.create(null), t.default || (t.default = new z({ maxTextures: this.renderer.limits.maxBatchableTextures }))), this._activeBatches = t, this._activeBatch = this._activeBatches.default;
916
916
  for (let e in this._activeBatches) this._activeBatches[e].begin();
917
917
  }
918
918
  addToBatch(t, n) {
@@ -956,19 +956,19 @@ var At = class {
956
956
  };
957
957
  B.extension = {
958
958
  type: [
959
- w.WebGLPipes,
960
- w.WebGPUPipes,
961
- w.CanvasPipes
959
+ x.WebGLPipes,
960
+ x.WebGPUPipes,
961
+ x.CanvasPipes
962
962
  ],
963
963
  name: "batch"
964
964
  }, B._availableBatchers = /* @__PURE__ */ Object.create(null);
965
965
  var V = B;
966
- x.handleByMap(w.Batcher, V._availableBatchers), x.add(z);
966
+ _.handleByMap(x.Batcher, V._availableBatchers), _.add(z);
967
967
  //#endregion
968
968
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/mask/alpha/AlphaMaskPipe.mjs
969
969
  var jt = new e(), Mt = class extends c {
970
970
  constructor() {
971
- super(), this._placeholderSprite = new pe(f.EMPTY), this.filters = [new Ot({
971
+ super(), this._placeholderSprite = new me(f.EMPTY), this.filters = [new Ot({
972
972
  sprite: this._placeholderSprite,
973
973
  inverse: !1,
974
974
  resolution: "inherit",
@@ -1037,7 +1037,7 @@ var jt = new e(), Mt = class extends c {
1037
1037
  let r = a.get(Mt);
1038
1038
  if (r.inverse = e.inverse, r.channel = e.mask.channel, n) {
1039
1039
  e.mask.mask.measurable = !0;
1040
- let n = ne(e.mask.mask, !0, jt);
1040
+ let n = re(e.mask.mask, !0, jt);
1041
1041
  e.mask.mask.measurable = !1, n.ceil();
1042
1042
  let i = t.renderTarget.renderTarget.colorTexture.source, a = d.getOptimalTexture(n.width, n.height, i._resolution, i.antialias);
1043
1043
  t.renderTarget.push({
@@ -1083,9 +1083,9 @@ var jt = new e(), Mt = class extends c {
1083
1083
  };
1084
1084
  H.extension = {
1085
1085
  type: [
1086
- w.WebGLPipes,
1087
- w.WebGPUPipes,
1088
- w.CanvasPipes
1086
+ x.WebGLPipes,
1087
+ x.WebGPUPipes,
1088
+ x.CanvasPipes
1089
1089
  ],
1090
1090
  name: "alphaMask"
1091
1091
  };
@@ -1128,7 +1128,7 @@ var Nt = class {
1128
1128
  }
1129
1129
  };
1130
1130
  Nt.extension = {
1131
- type: [w.WebGLPipes, w.WebGPUPipes],
1131
+ type: [x.WebGLPipes, x.WebGPUPipes],
1132
1132
  name: "colorMask"
1133
1133
  };
1134
1134
  //#endregion
@@ -1189,7 +1189,7 @@ var Pt = class {
1189
1189
  }
1190
1190
  };
1191
1191
  Pt.extension = {
1192
- type: [w.WebGLPipes, w.WebGPUPipes],
1192
+ type: [x.WebGLPipes, x.WebGPUPipes],
1193
1193
  name: "stencilMask"
1194
1194
  };
1195
1195
  //#endregion
@@ -1215,9 +1215,9 @@ var U = class {
1215
1215
  };
1216
1216
  U.extension = {
1217
1217
  type: [
1218
- w.WebGLPipes,
1219
- w.WebGPUPipes,
1220
- w.CanvasPipes
1218
+ x.WebGLPipes,
1219
+ x.WebGPUPipes,
1220
+ x.CanvasPipes
1221
1221
  ],
1222
1222
  name: "customRender"
1223
1223
  };
@@ -1255,7 +1255,7 @@ var G = class {
1255
1255
  _executeCacheAsTexture(e) {
1256
1256
  if (e.textureNeedsUpdate) {
1257
1257
  e.textureNeedsUpdate = !1;
1258
- let t = new y().translate(-e._textureBounds.x, -e._textureBounds.y);
1258
+ let t = new b().translate(-e._textureBounds.x, -e._textureBounds.y);
1259
1259
  this._renderer.renderTarget.push({
1260
1260
  target: e.texture,
1261
1261
  clear: !0,
@@ -1280,9 +1280,9 @@ var G = class {
1280
1280
  };
1281
1281
  G.extension = {
1282
1282
  type: [
1283
- w.WebGLPipes,
1284
- w.WebGPUPipes,
1285
- w.CanvasPipes
1283
+ x.WebGLPipes,
1284
+ x.WebGPUPipes,
1285
+ x.CanvasPipes
1286
1286
  ],
1287
1287
  name: "renderGroup"
1288
1288
  };
@@ -1320,16 +1320,16 @@ var K = class {
1320
1320
  };
1321
1321
  K.extension = {
1322
1322
  type: [
1323
- w.WebGLPipes,
1324
- w.WebGPUPipes,
1325
- w.CanvasPipes
1323
+ x.WebGLPipes,
1324
+ x.WebGPUPipes,
1325
+ x.CanvasPipes
1326
1326
  ],
1327
1327
  name: "sprite"
1328
1328
  };
1329
1329
  //#endregion
1330
1330
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/blendModes/BlendModePipe.mjs
1331
1331
  var q = {};
1332
- x.handle(w.BlendMode, (e) => {
1332
+ _.handle(x.BlendMode, (e) => {
1333
1333
  if (!e.name) throw Error("BlendMode extension must have a name property");
1334
1334
  q[e.name] = e.ref;
1335
1335
  }, (e) => {
@@ -1351,7 +1351,7 @@ var J = class {
1351
1351
  this.setBlendMode(null, t, e);
1352
1352
  }
1353
1353
  setBlendMode(e, t, n) {
1354
- let r = e instanceof fe;
1354
+ let r = e instanceof pe;
1355
1355
  if (this._activeBlendMode === t) {
1356
1356
  this._isAdvanced && e && !r && this._renderableList?.push(e);
1357
1357
  return;
@@ -1365,7 +1365,7 @@ var J = class {
1365
1365
  u(`Unable to assign BlendMode: '${n}'. You may want to include: import 'pixi.js/advanced-blend-modes'`);
1366
1366
  return;
1367
1367
  }
1368
- let r = this._ensureFilterEffect(n), i = e instanceof fe, a = {
1368
+ let r = this._ensureFilterEffect(n), i = e instanceof pe, a = {
1369
1369
  renderPipeId: "filter",
1370
1370
  action: "pushFilter",
1371
1371
  filterEffect: r,
@@ -1400,9 +1400,9 @@ var J = class {
1400
1400
  };
1401
1401
  J.extension = {
1402
1402
  type: [
1403
- w.WebGLPipes,
1404
- w.WebGPUPipes,
1405
- w.CanvasPipes
1403
+ x.WebGLPipes,
1404
+ x.WebGPUPipes,
1405
+ x.CanvasPipes
1406
1406
  ],
1407
1407
  name: "blendMode"
1408
1408
  };
@@ -1432,7 +1432,7 @@ function Rt(e) {
1432
1432
  let t = e.root, n;
1433
1433
  if (e.renderGroupParent) {
1434
1434
  let r = e.renderGroupParent;
1435
- e.worldTransform.appendFrom(t.relativeGroupTransform, r.worldTransform), e.worldColor = re(t.groupColor, r.worldColor), n = t.groupAlpha * r.worldAlpha;
1435
+ e.worldTransform.appendFrom(t.relativeGroupTransform, r.worldTransform), e.worldColor = ie(t.groupColor, r.worldColor), n = t.groupAlpha * r.worldAlpha;
1436
1436
  } else e.worldTransform.copyFrom(t.localTransform), e.worldColor = t.localColor, n = t.localAlpha;
1437
1437
  n = n < 0 ? 0 : n > 1 ? 1 : n, e.worldAlpha = n, e.worldColorAlpha = e.worldColor + ((n * 255 | 0) << 24);
1438
1438
  }
@@ -1451,7 +1451,7 @@ function zt(e, t, n) {
1451
1451
  }
1452
1452
  function Bt(e, t, n) {
1453
1453
  if (n & 1) {
1454
- e.groupColor = re(e.localColor, t.groupColor);
1454
+ e.groupColor = ie(e.localColor, t.groupColor);
1455
1455
  let n = e.localAlpha * t.groupAlpha;
1456
1456
  n = n < 0 ? 0 : n > 1 ? 1 : n, e.groupAlpha = n, e.groupColorAlpha = e.groupColor + ((n * 255 | 0) << 24);
1457
1457
  }
@@ -1469,7 +1469,7 @@ function Vt(e, t) {
1469
1469
  }
1470
1470
  //#endregion
1471
1471
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/RenderGroupSystem.mjs
1472
- var Ht = new y(), Ut = class {
1472
+ var Ht = new b(), Ut = class {
1473
1473
  constructor(e) {
1474
1474
  this._renderer = e;
1475
1475
  }
@@ -1504,7 +1504,7 @@ var Ht = new y(), Ut = class {
1504
1504
  }
1505
1505
  _updateRenderGroups(e) {
1506
1506
  let t = this._renderer, n = t.renderPipes;
1507
- if (e.runOnRender(t), e.instructionSet.renderPipes = n, e.structureDidChange ? Y(e.childrenRenderablesToUpdate.list, 0) : Vt(e, n), Lt(e), e.structureDidChange ? (e.structureDidChange = !1, this._buildInstructions(e, t)) : this._updateRenderables(e), e.childrenRenderablesToUpdate.index = 0, t.renderPipes.batch.upload(e.instructionSet), !(e.isCachedAsTexture && !e.textureNeedsUpdate)) for (let t = 0; t < e.renderGroupChildren.length; t++) this._updateRenderGroups(e.renderGroupChildren[t]);
1507
+ if (e.runOnRender(t), e.instructionSet.renderPipes = n, e.structureDidChange ? Y(e.childrenRenderablesToUpdate.list, 0) : Vt(e, n), Lt(e), e.structureDidChange ? (e.structureDidChange = !1, this._buildInstructions(e, t)) : this._updateRenderables(e), e.childrenRenderablesToUpdate.index = 0, t.renderPipes.batch.upload(e.instructionSet), !e.isCachedAsTexture || e.textureNeedsUpdate) for (let t = 0; t < e.renderGroupChildren.length; t++) this._updateRenderGroups(e.renderGroupChildren[t]);
1508
1508
  }
1509
1509
  _updateRenderables(e) {
1510
1510
  let { list: t, index: n } = e.childrenRenderablesToUpdate;
@@ -1523,9 +1523,9 @@ var Ht = new y(), Ut = class {
1523
1523
  };
1524
1524
  Ut.extension = {
1525
1525
  type: [
1526
- w.WebGLSystem,
1527
- w.WebGPUSystem,
1528
- w.CanvasSystem
1526
+ x.WebGLSystem,
1527
+ x.WebGPUSystem,
1528
+ x.CanvasSystem
1529
1529
  ],
1530
1530
  name: "renderGroup"
1531
1531
  };
@@ -1560,9 +1560,9 @@ var X = class e {
1560
1560
  };
1561
1561
  X.extension = {
1562
1562
  type: [
1563
- w.WebGLSystem,
1564
- w.WebGPUSystem,
1565
- w.CanvasSystem
1563
+ x.WebGLSystem,
1564
+ x.WebGPUSystem,
1565
+ x.CanvasSystem
1566
1566
  ],
1567
1567
  name: "background",
1568
1568
  priority: 0
@@ -1571,11 +1571,11 @@ X.extension = {
1571
1571
  backgroundColor: 0,
1572
1572
  clearBeforeRender: !0
1573
1573
  };
1574
- var Wt = X, Gt = {
1574
+ var Wt = X, Z = {
1575
1575
  png: "image/png",
1576
1576
  jpg: "image/jpeg",
1577
1577
  webp: "image/webp"
1578
- }, Kt = class e {
1578
+ }, Gt = class e {
1579
1579
  constructor(e) {
1580
1580
  this._renderer = e;
1581
1581
  }
@@ -1589,7 +1589,7 @@ var Wt = X, Gt = {
1589
1589
  };
1590
1590
  }
1591
1591
  async image(e) {
1592
- let t = _.get().createImage();
1592
+ let t = v.get().createImage();
1593
1593
  return t.src = await this.base64(e), t;
1594
1594
  }
1595
1595
  async base64(t) {
@@ -1603,12 +1603,12 @@ var Wt = X, Gt = {
1603
1603
  }
1604
1604
  let r = new FileReader();
1605
1605
  r.onload = () => e(r.result), r.onerror = t, r.readAsDataURL(n);
1606
- }, Gt[n], r);
1606
+ }, Z[n], r);
1607
1607
  });
1608
- if (i.toDataURL !== void 0) return i.toDataURL(Gt[n], r);
1608
+ if (i.toDataURL !== void 0) return i.toDataURL(Z[n], r);
1609
1609
  if (i.convertToBlob !== void 0) {
1610
1610
  let e = await i.convertToBlob({
1611
- type: Gt[n],
1611
+ type: Z[n],
1612
1612
  quality: r
1613
1613
  });
1614
1614
  return new Promise((t, n) => {
@@ -1655,18 +1655,18 @@ var Wt = X, Gt = {
1655
1655
  this._renderer = null;
1656
1656
  }
1657
1657
  };
1658
- Kt.extension = {
1658
+ Gt.extension = {
1659
1659
  type: [
1660
- w.WebGLSystem,
1661
- w.WebGPUSystem,
1662
- w.CanvasSystem
1660
+ x.WebGLSystem,
1661
+ x.WebGPUSystem,
1662
+ x.CanvasSystem
1663
1663
  ],
1664
1664
  name: "extract"
1665
- }, Kt.defaultImageOptions = {
1665
+ }, Gt.defaultImageOptions = {
1666
1666
  format: "png",
1667
1667
  quality: 1
1668
1668
  };
1669
- var qt = Kt, Jt = class e extends f {
1669
+ var Kt = Gt, qt = class e extends f {
1670
1670
  static create(t) {
1671
1671
  let { dynamic: n, textureOptions: r, ...i } = t;
1672
1672
  return new e({
@@ -1678,12 +1678,12 @@ var qt = Kt, Jt = class e extends f {
1678
1678
  resize(e, t, n) {
1679
1679
  return this.source.resize(e, t, n), this;
1680
1680
  }
1681
- }, Yt = new l(), Xt = new e(), Zt = [
1681
+ }, Jt = new l(), Yt = new e(), Xt = [
1682
1682
  0,
1683
1683
  0,
1684
1684
  0,
1685
1685
  0
1686
- ], Qt = class {
1686
+ ], Zt = class {
1687
1687
  constructor(e) {
1688
1688
  this._renderer = e;
1689
1689
  }
@@ -1695,17 +1695,17 @@ var qt = Kt, Jt = class e extends f {
1695
1695
  resolution: void 0
1696
1696
  });
1697
1697
  let r = e.resolution || this._renderer.resolution, i = e.antialias || this._renderer.view.antialias, a = e.target, o = e.clearColor;
1698
- o = o ? Array.isArray(o) && o.length === 4 ? o : T.shared.setValue(o).toArray() : Zt;
1699
- let s = e.frame?.copyTo(Yt) || n(a, Xt).rectangle, c = e.defaultAnchor && { defaultAnchor: e.defaultAnchor };
1698
+ o = o ? Array.isArray(o) && o.length === 4 ? o : T.shared.setValue(o).toArray() : Xt;
1699
+ let s = e.frame?.copyTo(Jt) || n(a, Yt).rectangle, c = e.defaultAnchor && { defaultAnchor: e.defaultAnchor };
1700
1700
  s.width = Math.max(s.width, 1 / r) | 0, s.height = Math.max(s.height, 1 / r) | 0;
1701
- let l = Jt.create({
1701
+ let l = qt.create({
1702
1702
  ...e.textureSourceOptions,
1703
1703
  width: s.width,
1704
1704
  height: s.height,
1705
1705
  resolution: r,
1706
1706
  antialias: i,
1707
1707
  textureOptions: c
1708
- }), u = y.shared.translate(-s.x, -s.y);
1708
+ }), u = b.shared.translate(-s.x, -s.y);
1709
1709
  return this._renderer.render({
1710
1710
  container: a,
1711
1711
  transform: u,
@@ -1717,17 +1717,17 @@ var qt = Kt, Jt = class e extends f {
1717
1717
  this._renderer = null;
1718
1718
  }
1719
1719
  };
1720
- Qt.extension = {
1720
+ Zt.extension = {
1721
1721
  type: [
1722
- w.WebGLSystem,
1723
- w.WebGPUSystem,
1724
- w.CanvasSystem
1722
+ x.WebGLSystem,
1723
+ x.WebGPUSystem,
1724
+ x.CanvasSystem
1725
1725
  ],
1726
1726
  name: "textureGenerator"
1727
1727
  };
1728
1728
  //#endregion
1729
1729
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/data/clean.mjs
1730
- function $t(e) {
1730
+ function Qt(e) {
1731
1731
  let t = !1;
1732
1732
  for (let n in e) if (e[n] == null) {
1733
1733
  t = !0;
@@ -1741,14 +1741,14 @@ function $t(e) {
1741
1741
  }
1742
1742
  return n;
1743
1743
  }
1744
- function en(e) {
1744
+ function $t(e) {
1745
1745
  let t = 0;
1746
1746
  for (let n = 0; n < e.length; n++) e[n] == null ? t++ : e[n - t] = e[n];
1747
1747
  return e.length -= t, e;
1748
1748
  }
1749
1749
  //#endregion
1750
1750
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.mjs
1751
- var tn = class e {
1751
+ var en = class e {
1752
1752
  constructor(e) {
1753
1753
  this._managedResources = [], this._managedResourceHashes = [], this._managedCollections = [], this._ready = !1, this._renderer = e;
1754
1754
  }
@@ -1767,7 +1767,7 @@ var tn = class e {
1767
1767
  }, this._frequency, !1), this._collectionsHandler = this._renderer.scheduler.repeat(() => {
1768
1768
  for (let e of this._managedCollections) {
1769
1769
  let { context: t, collection: n, type: r } = e;
1770
- r === "hash" ? t[n] = $t(t[n]) : t[n] = en(t[n]);
1770
+ t[n] = r === "hash" ? Qt(t[n]) : $t(t[n]);
1771
1771
  }
1772
1772
  }, this._frequency)) : (this._renderer.scheduler.cancel(this._handler), this._renderer.scheduler.cancel(this._collectionsHandler), this._handler = 0, this._collectionsHandler = 0));
1773
1773
  }
@@ -1775,7 +1775,7 @@ var tn = class e {
1775
1775
  this.now = performance.now(), e.renderGroup.gcTick = this._renderer.tick++, this._updateInstructionGCTick(e.renderGroup, e.renderGroup.gcTick);
1776
1776
  }
1777
1777
  postrender() {
1778
- !this._ready || !this.enabled || (this.run(), this._ready = !1);
1778
+ this._ready && this.enabled && (this.run(), this._ready = !1);
1779
1779
  }
1780
1780
  _updateInstructionGCTick(e, t) {
1781
1781
  e.instructionSet.gcTick = t, e.gcTick = t;
@@ -1870,20 +1870,20 @@ var tn = class e {
1870
1870
  }), this._managedResources.length = 0, this._managedResourceHashes.length = 0, this._managedCollections.length = 0, this._renderer = null;
1871
1871
  }
1872
1872
  };
1873
- tn.extension = {
1873
+ en.extension = {
1874
1874
  type: [
1875
- w.WebGLSystem,
1876
- w.WebGPUSystem,
1877
- w.CanvasSystem
1875
+ x.WebGLSystem,
1876
+ x.WebGPUSystem,
1877
+ x.CanvasSystem
1878
1878
  ],
1879
1879
  name: "gc",
1880
1880
  priority: 0
1881
- }, tn.defaultOptions = {
1881
+ }, en.defaultOptions = {
1882
1882
  gcActive: !0,
1883
1883
  gcMaxUnusedTime: 6e4,
1884
1884
  gcFrequency: 3e4
1885
1885
  };
1886
- var nn = tn, rn = class {
1886
+ var tn = en, nn = class {
1887
1887
  constructor(e) {
1888
1888
  this._stackIndex = 0, this._globalUniformDataStack = [], this._uniformsPool = [], this._activeUniforms = [], this._bindGroupPool = [], this._activeBindGroups = [], this._renderer = e;
1889
1889
  }
@@ -1899,9 +1899,9 @@ var nn = tn, rn = class {
1899
1899
  bind({ size: e, projectionMatrix: t, worldTransformMatrix: n, worldColor: r, offset: i }) {
1900
1900
  let a = this._renderer.renderTarget.renderTarget, o = this._stackIndex ? this._globalUniformDataStack[this._stackIndex - 1] : {
1901
1901
  projectionData: a,
1902
- worldTransformMatrix: new y(),
1902
+ worldTransformMatrix: new b(),
1903
1903
  worldColor: 4294967295,
1904
- offset: new ue()
1904
+ offset: new de()
1905
1905
  }, s = {
1906
1906
  projectionMatrix: t || this._renderer.renderTarget.projectionMatrix,
1907
1907
  resolution: e || a.size,
@@ -1914,7 +1914,7 @@ var nn = tn, rn = class {
1914
1914
  let l = c.uniforms;
1915
1915
  l.uProjectionMatrix = s.projectionMatrix, l.uResolution = s.resolution, l.uWorldTransformMatrix.copyFrom(s.worldTransformMatrix), l.uWorldTransformMatrix.tx -= s.offset.x, l.uWorldTransformMatrix.ty -= s.offset.y, kt(s.worldColor, l.uWorldColorAlpha, 0), c.update();
1916
1916
  let u;
1917
- this._renderer.renderPipes.uniformBatch ? u = this._renderer.renderPipes.uniformBatch.getUniformBindGroup(c, !1) : (u = this._bindGroupPool.pop() || new de(), this._activeBindGroups.push(u), u.setResource(c, 0)), s.bindGroup = u, this._currentGlobalUniformData = s;
1917
+ this._renderer.renderPipes.uniformBatch ? u = this._renderer.renderPipes.uniformBatch.getUniformBindGroup(c, !1) : (u = this._bindGroupPool.pop() || new fe(), this._activeBindGroups.push(u), u.setResource(c, 0)), s.bindGroup = u, this._currentGlobalUniformData = s;
1918
1918
  }
1919
1919
  push(e) {
1920
1920
  this.bind(e), this._globalUniformDataStack[this._stackIndex++] = this._currentGlobalUniformData;
@@ -1932,13 +1932,13 @@ var nn = tn, rn = class {
1932
1932
  return this._currentGlobalUniformData.bindGroup.resources[0];
1933
1933
  }
1934
1934
  _createUniforms() {
1935
- return new v({
1935
+ return new y({
1936
1936
  uProjectionMatrix: {
1937
- value: new y(),
1937
+ value: new b(),
1938
1938
  type: "mat3x3<f32>"
1939
1939
  },
1940
1940
  uWorldTransformMatrix: {
1941
- value: new y(),
1941
+ value: new b(),
1942
1942
  type: "mat3x3<f32>"
1943
1943
  },
1944
1944
  uWorldColorAlpha: {
@@ -1955,17 +1955,17 @@ var nn = tn, rn = class {
1955
1955
  this._renderer = null, this._globalUniformDataStack.length = 0, this._uniformsPool.length = 0, this._activeUniforms.length = 0, this._bindGroupPool.length = 0, this._activeBindGroups.length = 0, this._currentGlobalUniformData = null;
1956
1956
  }
1957
1957
  };
1958
- rn.extension = {
1958
+ nn.extension = {
1959
1959
  type: [
1960
- w.WebGLSystem,
1961
- w.WebGPUSystem,
1962
- w.CanvasSystem
1960
+ x.WebGLSystem,
1961
+ x.WebGPUSystem,
1962
+ x.CanvasSystem
1963
1963
  ],
1964
1964
  name: "globalUniforms"
1965
1965
  };
1966
1966
  //#endregion
1967
1967
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/SchedulerSystem.mjs
1968
- var an = 1, on = class {
1968
+ var rn = 1, an = class {
1969
1969
  constructor() {
1970
1970
  this._tasks = [], this._offset = 0;
1971
1971
  }
@@ -1973,7 +1973,7 @@ var an = 1, on = class {
1973
1973
  g.system.add(this._update, this);
1974
1974
  }
1975
1975
  repeat(e, t, n = !0) {
1976
- let r = an++, i = 0;
1976
+ let r = rn++, i = 0;
1977
1977
  return n && (this._offset += 1e3, i = this._offset), this._tasks.push({
1978
1978
  func: e,
1979
1979
  duration: t,
@@ -2004,21 +2004,21 @@ var an = 1, on = class {
2004
2004
  g.system.remove(this._update, this), this._tasks.length = 0;
2005
2005
  }
2006
2006
  };
2007
- on.extension = {
2007
+ an.extension = {
2008
2008
  type: [
2009
- w.WebGLSystem,
2010
- w.WebGPUSystem,
2011
- w.CanvasSystem
2009
+ x.WebGLSystem,
2010
+ x.WebGPUSystem,
2011
+ x.CanvasSystem
2012
2012
  ],
2013
2013
  name: "scheduler",
2014
2014
  priority: 0
2015
2015
  };
2016
2016
  //#endregion
2017
2017
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/sayHello.mjs
2018
- var sn = !1;
2019
- function cn(e) {
2020
- if (!sn) {
2021
- if (_.get().getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) {
2018
+ var on = !1;
2019
+ function sn(e) {
2020
+ if (!on) {
2021
+ if (v.get().getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) {
2022
2022
  let t = [
2023
2023
  `%c %c %c %c %c PixiJS %c v${k} (${e}) http://www.pixijs.com/
2024
2024
 
@@ -2032,34 +2032,34 @@ function cn(e) {
2032
2032
  ];
2033
2033
  globalThis.console.log(...t);
2034
2034
  } else globalThis.console && globalThis.console.log(`PixiJS ${k} - ${e} - http://www.pixijs.com/`);
2035
- sn = !0;
2035
+ on = !0;
2036
2036
  }
2037
2037
  }
2038
2038
  //#endregion
2039
2039
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/startup/HelloSystem.mjs
2040
- var ln = class {
2040
+ var cn = class {
2041
2041
  constructor(e) {
2042
2042
  this._renderer = e;
2043
2043
  }
2044
2044
  init(e) {
2045
2045
  if (e.hello) {
2046
2046
  let e = this._renderer.name;
2047
- this._renderer.type === S.WEBGL && (e += ` ${this._renderer.context.webGLVersion}`), cn(e);
2047
+ this._renderer.type === S.WEBGL && (e += ` ${this._renderer.context.webGLVersion}`), sn(e);
2048
2048
  }
2049
2049
  }
2050
2050
  };
2051
- ln.extension = {
2051
+ cn.extension = {
2052
2052
  type: [
2053
- w.WebGLSystem,
2054
- w.WebGPUSystem,
2055
- w.CanvasSystem
2053
+ x.WebGLSystem,
2054
+ x.WebGPUSystem,
2055
+ x.CanvasSystem
2056
2056
  ],
2057
2057
  name: "hello",
2058
2058
  priority: -2
2059
- }, ln.defaultOptions = { hello: !1 };
2059
+ }, cn.defaultOptions = { hello: !1 };
2060
2060
  //#endregion
2061
2061
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderableGCSystem.mjs
2062
- var un = class e {
2062
+ var ln = class e {
2063
2063
  constructor(e) {
2064
2064
  this._renderer = e;
2065
2065
  }
@@ -2091,20 +2091,20 @@ var un = class e {
2091
2091
  this._renderer = null;
2092
2092
  }
2093
2093
  };
2094
- un.extension = {
2094
+ ln.extension = {
2095
2095
  type: [
2096
- w.WebGLSystem,
2097
- w.WebGPUSystem,
2098
- w.CanvasSystem
2096
+ x.WebGLSystem,
2097
+ x.WebGPUSystem,
2098
+ x.CanvasSystem
2099
2099
  ],
2100
2100
  name: "renderableGC",
2101
2101
  priority: 0
2102
- }, un.defaultOptions = {
2102
+ }, ln.defaultOptions = {
2103
2103
  renderableGCActive: !0,
2104
2104
  renderableGCMaxUnusedTime: 6e4,
2105
2105
  renderableGCFrequency: 3e4
2106
2106
  };
2107
- var dn = un, Z = class e {
2107
+ var un = ln, dn = class e {
2108
2108
  get count() {
2109
2109
  return this._renderer.tick;
2110
2110
  }
@@ -2145,16 +2145,16 @@ var dn = un, Z = class e {
2145
2145
  this._renderer = null;
2146
2146
  }
2147
2147
  };
2148
- Z.extension = {
2149
- type: [w.WebGLSystem, w.WebGPUSystem],
2148
+ dn.extension = {
2149
+ type: [x.WebGLSystem, x.WebGPUSystem],
2150
2150
  name: "textureGC"
2151
- }, Z.defaultOptions = {
2151
+ }, dn.defaultOptions = {
2152
2152
  textureGCActive: !0,
2153
2153
  textureGCAMaxIdle: null,
2154
2154
  textureGCMaxIdle: 3600,
2155
2155
  textureGCCheckCountMax: 600
2156
2156
  };
2157
- var fn = Z, pn = class e {
2157
+ var fn = dn, pn = class e {
2158
2158
  constructor(e = {}) {
2159
2159
  this.uid = h("renderTarget"), this.colorAttachments = [], this.dirtyId = 0, this.isRoot = !1, this._size = /* @__PURE__ */ new Float32Array(2), this._managedColorTextures = !1, this._depth = !1, this._stencil = !1, this._colorTextures = null;
2160
2160
  let t = "colorAttachments" in e ? e : this._normalizeOptions(e);
@@ -2259,7 +2259,7 @@ var fn = Z, pn = class e {
2259
2259
  }
2260
2260
  }
2261
2261
  destroy() {
2262
- !this.colorAttachments && !this.depthStencilAttachment || (this.sizeSource.off("resize", this.onSourceResize, this), this._managedColorTextures && this.colorAttachments.forEach((e) => {
2262
+ (this.colorAttachments || this.depthStencilAttachment) && (this.sizeSource.off("resize", this.onSourceResize, this), this._managedColorTextures && this.colorAttachments.forEach((e) => {
2263
2263
  e.texture.destroy();
2264
2264
  }), this.depthStencilAttachment && (this.depthStencilAttachment.texture.destroy(), delete this.depthStencilAttachment), this.colorAttachments = null, this._colorTextures = null);
2265
2265
  }
@@ -2289,7 +2289,7 @@ var Q = pn, $ = /* @__PURE__ */ new Map();
2289
2289
  s.register($);
2290
2290
  function mn(e, t) {
2291
2291
  if (!$.has(e)) {
2292
- let n = new f({ source: new me({
2292
+ let n = new f({ source: new w({
2293
2293
  resource: e,
2294
2294
  ...t
2295
2295
  }) }), r = () => {
@@ -2318,7 +2318,7 @@ var hn = class e {
2318
2318
  t = {
2319
2319
  ...e.defaultOptions,
2320
2320
  ...t
2321
- }, t.view && (o(m, "ViewSystem.view has been renamed to ViewSystem.canvas"), t.canvas = t.view), this.screen = new l(0, 0, t.width, t.height), this.canvas = t.canvas || _.get().createCanvas(), this.antialias = !!t.antialias, this.texture = mn(this.canvas, t), this.renderTarget = new Q({
2321
+ }, t.view && (o(m, "ViewSystem.view has been renamed to ViewSystem.canvas"), t.canvas = t.view), this.screen = new l(0, 0, t.width, t.height), this.canvas = t.canvas || v.get().createCanvas(), this.antialias = !!t.antialias, this.texture = mn(this.canvas, t), this.renderTarget = new Q({
2322
2322
  colorTextures: [this.texture],
2323
2323
  depth: !!t.depth,
2324
2324
  isRoot: !0
@@ -2333,9 +2333,9 @@ var hn = class e {
2333
2333
  };
2334
2334
  hn.extension = {
2335
2335
  type: [
2336
- w.WebGLSystem,
2337
- w.WebGPUSystem,
2338
- w.CanvasSystem
2336
+ x.WebGLSystem,
2337
+ x.WebGPUSystem,
2338
+ x.CanvasSystem
2339
2339
  ],
2340
2340
  name: "view",
2341
2341
  priority: 0
@@ -2349,17 +2349,17 @@ hn.extension = {
2349
2349
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/system/SharedSystems.mjs
2350
2350
  var gn = [
2351
2351
  Wt,
2352
- rn,
2353
- ln,
2352
+ nn,
2353
+ cn,
2354
2354
  hn,
2355
2355
  Ut,
2356
- nn,
2356
+ tn,
2357
2357
  fn,
2358
- Qt,
2359
- qt,
2358
+ Zt,
2359
+ Kt,
2360
2360
  Se,
2361
- dn,
2362
- on
2361
+ un,
2362
+ an
2363
2363
  ], _n = [
2364
2364
  J,
2365
2365
  V,
@@ -2387,7 +2387,7 @@ function yn(e) {
2387
2387
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/renderTarget/RenderTargetSystem.mjs
2388
2388
  var bn = class {
2389
2389
  constructor(e) {
2390
- this.rootViewPort = new l(), this.viewport = new l(), this.onRenderTargetChange = new _e("onRenderTargetChange"), this.projectionMatrix = new y(), this.defaultClearColor = [
2390
+ this.rootViewPort = new l(), this.viewport = new l(), this.onRenderTargetChange = new _e("onRenderTargetChange"), this.projectionMatrix = new b(), this.defaultClearColor = [
2391
2391
  0,
2392
2392
  0,
2393
2393
  0,
@@ -2542,13 +2542,13 @@ var bn = class {
2542
2542
  }
2543
2543
  _initRenderTarget(e) {
2544
2544
  let t = null;
2545
- if (me.test(e) && (e = mn(e).source), e instanceof Q) t = e;
2545
+ if (w.test(e) && (e = mn(e).source), e instanceof Q) t = e;
2546
2546
  else if (e instanceof p) {
2547
2547
  let n = e.format;
2548
2548
  t = n.includes("depth") || n.includes("stencil") ? new Q({
2549
2549
  colorTextures: 0,
2550
2550
  depthStencilTexture: e
2551
- }) : new Q({ colorTextures: [e] }), e.source instanceof me && (t.isRoot = !0), e.once("destroy", this._onRenderSurfaceDestroy, this);
2551
+ }) : new Q({ colorTextures: [e] }), e.source instanceof w && (t.isRoot = !0), e.once("destroy", this._onRenderSurfaceDestroy, this);
2552
2552
  }
2553
2553
  return this._renderSurfaceToRenderTargetHash.set(e, t), t;
2554
2554
  }
@@ -2569,4 +2569,4 @@ var bn = class {
2569
2569
  }
2570
2570
  };
2571
2571
  //#endregion
2572
- export { Te as C, be as D, xe as E, O, Oe as S, A as T, _t as _, K as a, lt as b, H as c, wt as d, z as f, ht as g, yt as h, J as i, ge as k, V as l, vt as m, _n as n, G as o, xt as p, gn as r, U as s, bn as t, kt as u, ut as v, j as w, ct as x, dt as y };
2572
+ export { M as C, be as D, xe as E, O, De as S, A as T, _t as _, K as a, ct as b, H as c, wt as d, z as f, mt as g, yt as h, J as i, ge as k, V as l, vt as m, _n as n, G as o, xt as p, gn as r, U as s, bn as t, kt as u, lt as v, j as w, st as x, ut as y };