@neta-art/cohub-cli 10.29.1 → 10.31.0
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/board-gpu/page.js +3011 -133
- package/dist/bootstrap.js +2 -4
- package/dist/build.json +1 -1
- package/dist/chunks/FilterPipe.js +145 -269
- package/dist/chunks/about.js +2 -3
- package/dist/chunks/app-realtime.js +113 -115
- package/dist/chunks/app-realtime2.js +1 -2
- package/dist/chunks/app-ref.js +4 -5
- package/dist/chunks/apps.js +8 -14
- package/dist/chunks/auth.js +1 -2
- package/dist/chunks/avatar.js +2 -4
- package/dist/chunks/binary-pins.js +1 -2
- package/dist/chunks/board-export-resources.js +55 -12
- package/dist/chunks/board-export.js +26 -21
- package/dist/chunks/board-export2.js +1 -2
- package/dist/chunks/board-kernel.js +2672 -1623
- package/dist/chunks/board-kernel2.js +2 -2
- package/dist/chunks/board-model.js +970 -0
- package/dist/chunks/board-profile.js +4 -5
- package/dist/chunks/board-simulate.js +6 -6
- package/dist/chunks/board-time.js +1 -2
- package/dist/chunks/boards.js +547 -23
- package/dist/chunks/browserAll.js +18 -35
- package/dist/chunks/channels.js +1 -2
- package/dist/chunks/client.js +637 -713
- package/dist/chunks/command-input.js +1 -2
- package/dist/chunks/commander.js +16 -22
- package/dist/chunks/cron-jobs.js +2 -3
- package/dist/chunks/daemon.js +18 -4
- package/dist/chunks/daemon2.js +1 -2
- package/dist/chunks/desktop.js +2 -3
- package/dist/chunks/endpoint-options.js +1 -2
- package/dist/chunks/env-proxy.js +4 -5
- package/dist/chunks/environment.js +2 -4
- package/dist/chunks/feedback.js +3 -4
- package/dist/chunks/generations.js +3 -4
- package/dist/chunks/host.js +1 -2
- package/dist/chunks/http-put.js +1 -2
- package/dist/chunks/id.js +77 -928
- package/dist/chunks/init.js +7 -12
- package/dist/chunks/install.js +142 -138
- package/dist/chunks/launch.js +4 -6
- package/dist/chunks/lexer.js +226 -66
- package/dist/chunks/local-media.js +1 -2
- package/dist/chunks/me.js +1 -2
- package/dist/chunks/media.js +1 -2
- package/dist/chunks/{themes.js → model-clips.js} +395 -43
- package/dist/chunks/models.js +3 -5
- package/dist/chunks/operands.js +1 -2
- package/dist/chunks/package-paths.js +1 -2
- package/dist/chunks/policy.js +1 -2
- package/dist/chunks/preferences.js +1 -2
- package/dist/chunks/profile.js +2 -3
- package/dist/chunks/prompts.js +1 -2
- package/dist/chunks/public.js +1 -2
- package/dist/chunks/public2.js +3 -4
- package/dist/chunks/references.js +3 -3
- package/dist/chunks/referrals.js +1 -2
- package/dist/chunks/rolldown-runtime.js +2 -3
- package/dist/chunks/rooms-connect.js +1 -2
- package/dist/chunks/rooms-connect2.js +1 -2
- package/dist/chunks/rooms-rtc.js +4 -6
- package/dist/chunks/rooms.js +2 -3
- package/dist/chunks/run.js +2 -3
- package/dist/chunks/runtime.js +6 -12
- package/dist/chunks/runtime2.js +2 -3
- package/dist/chunks/runtimes.js +1 -2
- package/dist/chunks/safe-remote-image.js +1 -2
- package/dist/chunks/schemas.js +58 -43
- package/dist/chunks/search.js +3 -3
- package/dist/chunks/self-update.js +4 -5
- package/dist/chunks/serve.js +11 -25
- package/dist/chunks/session-status.js +1 -2
- package/dist/chunks/skills.js +1 -2
- package/dist/chunks/spaces.js +26 -45
- package/dist/chunks/src.js +5 -9
- package/dist/chunks/supervisor.js +16 -28
- package/dist/chunks/supervisor2.js +1 -2
- package/dist/chunks/tasks.js +1 -2
- package/dist/chunks/user-lists.js +1 -2
- package/dist/chunks/version.js +1 -2
- package/dist/chunks/version2.js +1 -2
- package/dist/chunks/version3.js +3 -4
- package/dist/chunks/web.js +1 -2
- package/dist/runtime/native/pi-extension.js +1 -2
- package/dist/runtime/worker.js +2 -3
- package/package.json +11 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/extensions/Extensions.mjs
|
|
3
3
|
var ExtensionType = /* @__PURE__ */ ((ExtensionType2) => {
|
|
4
4
|
ExtensionType2["Application"] = "application";
|
|
5
5
|
ExtensionType2["WebGLPipes"] = "webgl-pipes";
|
|
@@ -234,8 +234,7 @@ const extensions = {
|
|
|
234
234
|
for (const source of sources) Object.defineProperties(Target.prototype, Object.getOwnPropertyDescriptors(source));
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
|
-
|
|
238
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/point/ObservablePoint.mjs
|
|
237
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/point/ObservablePoint.mjs
|
|
239
238
|
var ObservablePoint = class ObservablePoint {
|
|
240
239
|
/**
|
|
241
240
|
* Creates a new `ObservablePoint`
|
|
@@ -660,13 +659,11 @@ var eventemitter3_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJS
|
|
|
660
659
|
EventEmitter.EventEmitter = EventEmitter;
|
|
661
660
|
if ("undefined" !== typeof module) module.exports = EventEmitter;
|
|
662
661
|
})))(), 1)).default;
|
|
663
|
-
|
|
664
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/misc/const.mjs
|
|
662
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/misc/const.mjs
|
|
665
663
|
const PI_2 = Math.PI * 2;
|
|
666
664
|
const RAD_TO_DEG = 180 / Math.PI;
|
|
667
665
|
const DEG_TO_RAD = Math.PI / 180;
|
|
668
|
-
|
|
669
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/point/Point.mjs
|
|
666
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/point/Point.mjs
|
|
670
667
|
var Point = class Point {
|
|
671
668
|
/**
|
|
672
669
|
* Creates a new `Point`
|
|
@@ -863,8 +860,7 @@ var Point = class Point {
|
|
|
863
860
|
}
|
|
864
861
|
};
|
|
865
862
|
const tempPoint = new Point();
|
|
866
|
-
|
|
867
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/matrix/Matrix.mjs
|
|
863
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/matrix/Matrix.mjs
|
|
868
864
|
var Matrix = class Matrix {
|
|
869
865
|
/**
|
|
870
866
|
* @param a - x scale
|
|
@@ -1668,8 +1664,7 @@ var Matrix = class Matrix {
|
|
|
1668
1664
|
};
|
|
1669
1665
|
const tempMatrix$2 = new Matrix();
|
|
1670
1666
|
const identityMatrix = new Matrix();
|
|
1671
|
-
|
|
1672
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/matrix/groupD8.mjs
|
|
1667
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/matrix/groupD8.mjs
|
|
1673
1668
|
const ux = [
|
|
1674
1669
|
1,
|
|
1675
1670
|
1,
|
|
@@ -2017,8 +2012,7 @@ const groupD8 = {
|
|
|
2017
2012
|
return out.set(x + frameX, y + frameY, width, height);
|
|
2018
2013
|
}
|
|
2019
2014
|
};
|
|
2020
|
-
|
|
2021
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/shapes/Rectangle.mjs
|
|
2015
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/shapes/Rectangle.mjs
|
|
2022
2016
|
const tempPoints = [
|
|
2023
2017
|
new Point(),
|
|
2024
2018
|
new Point(),
|
|
@@ -2652,15 +2646,13 @@ var Rectangle = class Rectangle {
|
|
|
2652
2646
|
return `[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
|
|
2653
2647
|
}
|
|
2654
2648
|
};
|
|
2655
|
-
|
|
2656
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/data/uid.mjs
|
|
2649
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/data/uid.mjs
|
|
2657
2650
|
const uidCache = { default: -1 };
|
|
2658
2651
|
function uid(name = "default") {
|
|
2659
2652
|
if (uidCache[name] === void 0) uidCache[name] = -1;
|
|
2660
2653
|
return ++uidCache[name];
|
|
2661
2654
|
}
|
|
2662
|
-
|
|
2663
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/logging/deprecation.mjs
|
|
2655
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/logging/deprecation.mjs
|
|
2664
2656
|
const warnings = /* @__PURE__ */ new Set();
|
|
2665
2657
|
const v8_0_0 = "8.0.0";
|
|
2666
2658
|
const v8_3_4 = "8.3.4";
|
|
@@ -2708,16 +2700,13 @@ Object.defineProperties(deprecation, {
|
|
|
2708
2700
|
configurable: false
|
|
2709
2701
|
}
|
|
2710
2702
|
});
|
|
2711
|
-
|
|
2712
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/misc/NOOP.mjs
|
|
2703
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/misc/NOOP.mjs
|
|
2713
2704
|
const NOOP = () => {};
|
|
2714
|
-
|
|
2715
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/isIntegerFormat.mjs
|
|
2705
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/isIntegerFormat.mjs
|
|
2716
2706
|
function isIntegerFormat(format) {
|
|
2717
2707
|
return format.endsWith("int");
|
|
2718
2708
|
}
|
|
2719
|
-
|
|
2720
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/misc/pow2.mjs
|
|
2709
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/maths/misc/pow2.mjs
|
|
2721
2710
|
function nextPow2(v) {
|
|
2722
2711
|
v += v === 0 ? 1 : 0;
|
|
2723
2712
|
--v;
|
|
@@ -2731,15 +2720,13 @@ function nextPow2(v) {
|
|
|
2731
2720
|
function isPow2(v) {
|
|
2732
2721
|
return !(v & v - 1) && !!v;
|
|
2733
2722
|
}
|
|
2734
|
-
|
|
2735
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/definedProps.mjs
|
|
2723
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/definedProps.mjs
|
|
2736
2724
|
function definedProps(obj) {
|
|
2737
2725
|
const result = {};
|
|
2738
2726
|
for (const key in obj) if (obj[key] !== void 0) result[key] = obj[key];
|
|
2739
2727
|
return result;
|
|
2740
2728
|
}
|
|
2741
|
-
|
|
2742
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureStyle.mjs
|
|
2729
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureStyle.mjs
|
|
2743
2730
|
const idHash$1 = /* @__PURE__ */ Object.create(null);
|
|
2744
2731
|
function createResourceIdFromString(value) {
|
|
2745
2732
|
const id = idHash$1[value];
|
|
@@ -2843,8 +2830,7 @@ _TextureStyle.defaultOptions = {
|
|
|
2843
2830
|
scaleMode: "linear"
|
|
2844
2831
|
};
|
|
2845
2832
|
let TextureStyle = _TextureStyle;
|
|
2846
|
-
|
|
2847
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/TextureSource.mjs
|
|
2833
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/TextureSource.mjs
|
|
2848
2834
|
const _TextureSource = class _TextureSource extends eventemitter3_default {
|
|
2849
2835
|
/**
|
|
2850
2836
|
* @param options - options for creating a new TextureSource
|
|
@@ -3218,8 +3204,7 @@ function validateTextureShape(options, viewDimension, dimension) {
|
|
|
3218
3204
|
else if (options.dimensions) deprecation(v8_22_0, "TextureSource dimensions is derived from viewDimension and depth; leave it out.");
|
|
3219
3205
|
if (dimension === "3d" && options.antialias) throw new Error("[TextureSource] a 3D texture can't be antialiased: WebGPU has no multisampled 3D textures.");
|
|
3220
3206
|
}
|
|
3221
|
-
|
|
3222
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/BufferImageSource.mjs
|
|
3207
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/BufferImageSource.mjs
|
|
3223
3208
|
var BufferImageSource = class extends TextureSource {
|
|
3224
3209
|
constructor(options) {
|
|
3225
3210
|
const depthOrArrayLayers = options.depth ?? options.arrayLayerCount ?? 1;
|
|
@@ -3252,7 +3237,7 @@ var BufferImageSource = class extends TextureSource {
|
|
|
3252
3237
|
* {@link BufferImageSource#update} call. `Infinity` means the whole texture.
|
|
3253
3238
|
* @internal
|
|
3254
3239
|
*/
|
|
3255
|
-
this._updateEnd =
|
|
3240
|
+
this._updateEnd = 1e400;
|
|
3256
3241
|
}
|
|
3257
3242
|
/**
|
|
3258
3243
|
* Uploads the buffer to the GPU. Call this after changing the data in {@link TextureSource#resource}.
|
|
@@ -3283,21 +3268,20 @@ var BufferImageSource = class extends TextureSource {
|
|
|
3283
3268
|
* @param start - index of the first texel to upload
|
|
3284
3269
|
* @param end - index one past the last texel to upload (exclusive, like `TypedArray.subarray`)
|
|
3285
3270
|
*/
|
|
3286
|
-
update(start = 0, end =
|
|
3287
|
-
if ((start > 0 || end <
|
|
3271
|
+
update(start = 0, end = 1e400) {
|
|
3272
|
+
if ((start > 0 || end < 1e400) && this.depthOrArrayLayers > 1) throw new Error("[BufferImageSource] a 3D texture or 2D array uploads whole: call update() with no range.");
|
|
3288
3273
|
this._updateStart = start;
|
|
3289
3274
|
this._updateEnd = end;
|
|
3290
3275
|
super.update();
|
|
3291
3276
|
this._updateStart = 0;
|
|
3292
|
-
this._updateEnd =
|
|
3277
|
+
this._updateEnd = 1e400;
|
|
3293
3278
|
}
|
|
3294
3279
|
static test(resource) {
|
|
3295
3280
|
return resource instanceof Int8Array || resource instanceof Uint8Array || resource instanceof Uint8ClampedArray || resource instanceof Int16Array || resource instanceof Uint16Array || resource instanceof Int32Array || resource instanceof Uint32Array || resource instanceof Float32Array;
|
|
3296
3281
|
}
|
|
3297
3282
|
};
|
|
3298
3283
|
BufferImageSource.extension = ExtensionType.TextureSource;
|
|
3299
|
-
|
|
3300
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureMatrix.mjs
|
|
3284
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureMatrix.mjs
|
|
3301
3285
|
const tempMat = new Matrix();
|
|
3302
3286
|
var TextureMatrix = class {
|
|
3303
3287
|
/**
|
|
@@ -3378,8 +3362,7 @@ var TextureMatrix = class {
|
|
|
3378
3362
|
return true;
|
|
3379
3363
|
}
|
|
3380
3364
|
};
|
|
3381
|
-
|
|
3382
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.mjs
|
|
3365
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/Texture.mjs
|
|
3383
3366
|
var Texture = class extends eventemitter3_default {
|
|
3384
3367
|
/**
|
|
3385
3368
|
* @param {TextureOptions} options - Options for the texture
|
|
@@ -3560,8 +3543,7 @@ Texture.WHITE = new Texture({
|
|
|
3560
3543
|
label: "WHITE"
|
|
3561
3544
|
});
|
|
3562
3545
|
Texture.WHITE.destroy = NOOP;
|
|
3563
|
-
|
|
3564
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/data/updateQuadBounds.mjs
|
|
3546
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/data/updateQuadBounds.mjs
|
|
3565
3547
|
function updateQuadBounds(bounds, anchor, texture) {
|
|
3566
3548
|
const { width, height } = texture.orig;
|
|
3567
3549
|
const trim = texture.trim;
|
|
@@ -3579,8 +3561,7 @@ function updateQuadBounds(bounds, anchor, texture) {
|
|
|
3579
3561
|
bounds.maxY = bounds.minY + height;
|
|
3580
3562
|
}
|
|
3581
3563
|
}
|
|
3582
|
-
|
|
3583
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/Bounds.mjs
|
|
3564
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/Bounds.mjs
|
|
3584
3565
|
const defaultMatrix = new Matrix();
|
|
3585
3566
|
var Bounds = class Bounds {
|
|
3586
3567
|
/**
|
|
@@ -3590,7 +3571,7 @@ var Bounds = class Bounds {
|
|
|
3590
3571
|
* @param maxX - The maximum X coordinate of the bounds.
|
|
3591
3572
|
* @param maxY - The maximum Y coordinate of the bounds.
|
|
3592
3573
|
*/
|
|
3593
|
-
constructor(minX =
|
|
3574
|
+
constructor(minX = 1e400, minY = 1e400, maxX = -1e400, maxY = -1e400) {
|
|
3594
3575
|
/**
|
|
3595
3576
|
* The minimum X coordinate of the bounds.
|
|
3596
3577
|
* Represents the leftmost edge of the bounding box.
|
|
@@ -3602,7 +3583,7 @@ var Bounds = class Bounds {
|
|
|
3602
3583
|
* ```
|
|
3603
3584
|
* @default Infinity
|
|
3604
3585
|
*/
|
|
3605
|
-
this.minX =
|
|
3586
|
+
this.minX = 1e400;
|
|
3606
3587
|
/**
|
|
3607
3588
|
* The minimum Y coordinate of the bounds.
|
|
3608
3589
|
* Represents the topmost edge of the bounding box.
|
|
@@ -3614,7 +3595,7 @@ var Bounds = class Bounds {
|
|
|
3614
3595
|
* ```
|
|
3615
3596
|
* @default Infinity
|
|
3616
3597
|
*/
|
|
3617
|
-
this.minY =
|
|
3598
|
+
this.minY = 1e400;
|
|
3618
3599
|
/**
|
|
3619
3600
|
* The maximum X coordinate of the bounds.
|
|
3620
3601
|
* Represents the rightmost edge of the bounding box.
|
|
@@ -3628,7 +3609,7 @@ var Bounds = class Bounds {
|
|
|
3628
3609
|
* ```
|
|
3629
3610
|
* @default -Infinity
|
|
3630
3611
|
*/
|
|
3631
|
-
this.maxX = -
|
|
3612
|
+
this.maxX = -1e400;
|
|
3632
3613
|
/**
|
|
3633
3614
|
* The maximum Y coordinate of the bounds.
|
|
3634
3615
|
* Represents the bottommost edge of the bounding box.
|
|
@@ -3642,7 +3623,7 @@ var Bounds = class Bounds {
|
|
|
3642
3623
|
* ```
|
|
3643
3624
|
* @default -Infinity
|
|
3644
3625
|
*/
|
|
3645
|
-
this.maxY = -
|
|
3626
|
+
this.maxY = -1e400;
|
|
3646
3627
|
/**
|
|
3647
3628
|
* The transformation matrix applied to this bounds object.
|
|
3648
3629
|
* Used when calculating bounds with transforms.
|
|
@@ -3741,10 +3722,10 @@ var Bounds = class Bounds {
|
|
|
3741
3722
|
* @returns This bounds object for chaining
|
|
3742
3723
|
*/
|
|
3743
3724
|
clear() {
|
|
3744
|
-
this.minX =
|
|
3745
|
-
this.minY =
|
|
3746
|
-
this.maxX = -
|
|
3747
|
-
this.maxY = -
|
|
3725
|
+
this.minX = 1e400;
|
|
3726
|
+
this.minY = 1e400;
|
|
3727
|
+
this.maxX = -1e400;
|
|
3728
|
+
this.maxY = -1e400;
|
|
3748
3729
|
this.matrix = defaultMatrix;
|
|
3749
3730
|
return this;
|
|
3750
3731
|
}
|
|
@@ -4274,7 +4255,7 @@ var Bounds = class Bounds {
|
|
|
4274
4255
|
* @see {@link Bounds#isPositive} For checking dimensions
|
|
4275
4256
|
*/
|
|
4276
4257
|
get isValid() {
|
|
4277
|
-
return this.minX + this.minY !==
|
|
4258
|
+
return this.minX + this.minY !== 1e400;
|
|
4278
4259
|
}
|
|
4279
4260
|
/**
|
|
4280
4261
|
* Adds vertices from a Float32Array to the bounds, optionally transformed by a matrix.
|
|
@@ -4395,8 +4376,7 @@ var Bounds = class Bounds {
|
|
|
4395
4376
|
return this;
|
|
4396
4377
|
}
|
|
4397
4378
|
};
|
|
4398
|
-
|
|
4399
|
-
//#region ../../node_modules/.pnpm/colord@2.13.0/node_modules/colord/index.mjs
|
|
4379
|
+
// ../../node_modules/.pnpm/colord@2.13.0/node_modules/colord/index.mjs
|
|
4400
4380
|
for (var r = {
|
|
4401
4381
|
grad: .9,
|
|
4402
4382
|
turn: 360,
|
|
@@ -4711,8 +4691,7 @@ var D = function(r) {
|
|
|
4711
4691
|
A.indexOf(r) < 0 && (r(R, w), A.push(r));
|
|
4712
4692
|
});
|
|
4713
4693
|
};
|
|
4714
|
-
|
|
4715
|
-
//#region ../../node_modules/.pnpm/colord@2.13.0/node_modules/colord/plugins/names.mjs
|
|
4694
|
+
// ../../node_modules/.pnpm/colord@2.13.0/node_modules/colord/plugins/names.mjs
|
|
4716
4695
|
var e = function(e, f) {
|
|
4717
4696
|
var a = {
|
|
4718
4697
|
white: "#ffffff",
|
|
@@ -4885,8 +4864,7 @@ var e = function(e, f) {
|
|
|
4885
4864
|
return "string" == typeof d ? new e(d).toRgb() : null;
|
|
4886
4865
|
}, "name"]);
|
|
4887
4866
|
};
|
|
4888
|
-
|
|
4889
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/color/Color.mjs
|
|
4867
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/color/Color.mjs
|
|
4890
4868
|
D([e]);
|
|
4891
4869
|
const _Color = class _Color {
|
|
4892
4870
|
/**
|
|
@@ -5683,15 +5661,13 @@ _Color._temp = new _Color();
|
|
|
5683
5661
|
/** Pattern for hex strings */
|
|
5684
5662
|
_Color.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
|
|
5685
5663
|
let Color = _Color;
|
|
5686
|
-
|
|
5687
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/culling/cullingMixin.mjs
|
|
5664
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/culling/cullingMixin.mjs
|
|
5688
5665
|
const cullingMixin = {
|
|
5689
5666
|
cullArea: null,
|
|
5690
5667
|
cullable: false,
|
|
5691
5668
|
cullableChildren: true
|
|
5692
5669
|
};
|
|
5693
|
-
|
|
5694
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/logging/warn.mjs
|
|
5670
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/logging/warn.mjs
|
|
5695
5671
|
let warnCount = 0;
|
|
5696
5672
|
const maxWarnings = 500;
|
|
5697
5673
|
function warn(...args) {
|
|
@@ -5700,8 +5676,7 @@ function warn(...args) {
|
|
|
5700
5676
|
if (warnCount === maxWarnings) console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS.");
|
|
5701
5677
|
else console.warn("PixiJS Warning: ", ...args);
|
|
5702
5678
|
}
|
|
5703
|
-
|
|
5704
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/pool/GlobalResourceRegistry.mjs
|
|
5679
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/pool/GlobalResourceRegistry.mjs
|
|
5705
5680
|
const GlobalResourceRegistry = {
|
|
5706
5681
|
/**
|
|
5707
5682
|
* Set of registered pools and cleanable objects.
|
|
@@ -5749,8 +5724,7 @@ const GlobalResourceRegistry = {
|
|
|
5749
5724
|
this._registeredResources.clear();
|
|
5750
5725
|
}
|
|
5751
5726
|
};
|
|
5752
|
-
|
|
5753
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/pool/Pool.mjs
|
|
5727
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/pool/Pool.mjs
|
|
5754
5728
|
var Pool = class {
|
|
5755
5729
|
/**
|
|
5756
5730
|
* Constructs a new Pool.
|
|
@@ -5825,8 +5799,7 @@ var Pool = class {
|
|
|
5825
5799
|
this._index = 0;
|
|
5826
5800
|
}
|
|
5827
5801
|
};
|
|
5828
|
-
|
|
5829
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/pool/PoolGroup.mjs
|
|
5802
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/pool/PoolGroup.mjs
|
|
5830
5803
|
var PoolGroupClass = class {
|
|
5831
5804
|
constructor() {
|
|
5832
5805
|
/**
|
|
@@ -5892,8 +5865,7 @@ var PoolGroupClass = class {
|
|
|
5892
5865
|
};
|
|
5893
5866
|
const BigPool = new PoolGroupClass();
|
|
5894
5867
|
GlobalResourceRegistry.register(BigPool);
|
|
5895
|
-
|
|
5896
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.mjs
|
|
5868
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/cacheAsTextureMixin.mjs
|
|
5897
5869
|
const cacheAsTextureMixin = {
|
|
5898
5870
|
get isCachedAsTexture() {
|
|
5899
5871
|
return !!this.renderGroup?.isCachedAsTexture;
|
|
@@ -5916,8 +5888,7 @@ const cacheAsTextureMixin = {
|
|
|
5916
5888
|
this.cacheAsTexture(val);
|
|
5917
5889
|
}
|
|
5918
5890
|
};
|
|
5919
|
-
|
|
5920
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/data/removeItems.mjs
|
|
5891
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/data/removeItems.mjs
|
|
5921
5892
|
function removeItems(arr, startIdx, removeCount) {
|
|
5922
5893
|
const length = arr.length;
|
|
5923
5894
|
let i;
|
|
@@ -5927,8 +5898,7 @@ function removeItems(arr, startIdx, removeCount) {
|
|
|
5927
5898
|
for (i = startIdx; i < len; ++i) arr[i] = arr[i + removeCount];
|
|
5928
5899
|
arr.length = len;
|
|
5929
5900
|
}
|
|
5930
|
-
|
|
5931
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.mjs
|
|
5901
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/childrenHelperMixin.mjs
|
|
5932
5902
|
const childrenHelperMixin = {
|
|
5933
5903
|
allowChildren: true,
|
|
5934
5904
|
removeChildren(beginIndex = 0, endIndex) {
|
|
@@ -6042,8 +6012,7 @@ const childrenHelperMixin = {
|
|
|
6042
6012
|
this.removeChild(oldChild);
|
|
6043
6013
|
}
|
|
6044
6014
|
};
|
|
6045
|
-
|
|
6046
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.mjs
|
|
6015
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/collectRenderablesMixin.mjs
|
|
6047
6016
|
const collectRenderablesMixin = {
|
|
6048
6017
|
collectRenderables(instructionSet, renderer, currentLayer) {
|
|
6049
6018
|
if (this.parentRenderLayer && this.parentRenderLayer !== currentLayer || this.globalDisplayStatus < 7 || !this.includeInBuild) return;
|
|
@@ -6070,8 +6039,7 @@ const collectRenderablesMixin = {
|
|
|
6070
6039
|
}
|
|
6071
6040
|
}
|
|
6072
6041
|
};
|
|
6073
|
-
|
|
6074
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/FilterEffect.mjs
|
|
6042
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/FilterEffect.mjs
|
|
6075
6043
|
var FilterEffect = class {
|
|
6076
6044
|
constructor() {
|
|
6077
6045
|
/** the pipe that knows how to handle this effect */
|
|
@@ -6085,8 +6053,7 @@ var FilterEffect = class {
|
|
|
6085
6053
|
this.filterArea = null;
|
|
6086
6054
|
}
|
|
6087
6055
|
};
|
|
6088
|
-
|
|
6089
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/MaskEffectManager.mjs
|
|
6056
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/MaskEffectManager.mjs
|
|
6090
6057
|
var MaskEffectManagerClass = class {
|
|
6091
6058
|
constructor() {
|
|
6092
6059
|
/** @private */
|
|
@@ -6121,8 +6088,7 @@ var MaskEffectManagerClass = class {
|
|
|
6121
6088
|
};
|
|
6122
6089
|
const MaskEffectManager = new MaskEffectManagerClass();
|
|
6123
6090
|
extensions.handleByList(ExtensionType.MaskEffect, MaskEffectManager._effectClasses);
|
|
6124
|
-
|
|
6125
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.mjs
|
|
6091
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/effectsMixin.mjs
|
|
6126
6092
|
const effectsMixin = {
|
|
6127
6093
|
_maskEffect: null,
|
|
6128
6094
|
_maskOptions: {
|
|
@@ -6199,8 +6165,7 @@ const effectsMixin = {
|
|
|
6199
6165
|
return this._filterEffect?.filterArea;
|
|
6200
6166
|
}
|
|
6201
6167
|
};
|
|
6202
|
-
|
|
6203
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.mjs
|
|
6168
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/findMixin.mjs
|
|
6204
6169
|
const findMixin = {
|
|
6205
6170
|
label: null,
|
|
6206
6171
|
get name() {
|
|
@@ -6236,12 +6201,10 @@ const findMixin = {
|
|
|
6236
6201
|
return out;
|
|
6237
6202
|
}
|
|
6238
6203
|
};
|
|
6239
|
-
|
|
6240
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/utils/matrixAndBoundsPool.mjs
|
|
6204
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/utils/matrixAndBoundsPool.mjs
|
|
6241
6205
|
const matrixPool = BigPool.getPool(Matrix);
|
|
6242
6206
|
const boundsPool = BigPool.getPool(Bounds);
|
|
6243
|
-
|
|
6244
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.mjs
|
|
6207
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/getFastGlobalBoundsMixin.mjs
|
|
6245
6208
|
const tempMatrix$1 = new Matrix();
|
|
6246
6209
|
const getFastGlobalBoundsMixin = {
|
|
6247
6210
|
getFastGlobalBounds(factorRenderLayers, bounds) {
|
|
@@ -6287,8 +6250,7 @@ const getFastGlobalBoundsMixin = {
|
|
|
6287
6250
|
}
|
|
6288
6251
|
}
|
|
6289
6252
|
};
|
|
6290
|
-
|
|
6291
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/getGlobalBounds.mjs
|
|
6253
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/getGlobalBounds.mjs
|
|
6292
6254
|
function getGlobalBounds(target, skipUpdateTransform, bounds) {
|
|
6293
6255
|
bounds.clear();
|
|
6294
6256
|
let parentTransform;
|
|
@@ -6340,8 +6302,7 @@ function updateTransformBackwards(target, parentTransform) {
|
|
|
6340
6302
|
}
|
|
6341
6303
|
return parentTransform;
|
|
6342
6304
|
}
|
|
6343
|
-
|
|
6344
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/multiplyHexColors.mjs
|
|
6305
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/multiplyHexColors.mjs
|
|
6345
6306
|
function multiplyHexColors(color1, color2) {
|
|
6346
6307
|
if (color1 === 16777215 || !color2) return color2;
|
|
6347
6308
|
if (color2 === 16777215 || !color1) return color1;
|
|
@@ -6356,16 +6317,14 @@ function multiplyHexColors(color1, color2) {
|
|
|
6356
6317
|
const b = b1 * b2 / 255 | 0;
|
|
6357
6318
|
return (r << 16) + (g << 8) + b;
|
|
6358
6319
|
}
|
|
6359
|
-
|
|
6360
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/multiplyColors.mjs
|
|
6320
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/multiplyColors.mjs
|
|
6361
6321
|
const WHITE_BGR = 16777215;
|
|
6362
6322
|
function multiplyColors(localBGRColor, parentBGRColor) {
|
|
6363
6323
|
if (localBGRColor === WHITE_BGR) return parentBGRColor;
|
|
6364
6324
|
if (parentBGRColor === WHITE_BGR) return localBGRColor;
|
|
6365
6325
|
return multiplyHexColors(localBGRColor, parentBGRColor);
|
|
6366
6326
|
}
|
|
6367
|
-
|
|
6368
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.mjs
|
|
6327
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/getGlobalMixin.mjs
|
|
6369
6328
|
function bgr2rgb(color) {
|
|
6370
6329
|
return ((color & 255) << 16) + (color & 65280) + (color >> 16 & 255);
|
|
6371
6330
|
}
|
|
@@ -6407,8 +6366,7 @@ const getGlobalMixin = {
|
|
|
6407
6366
|
return bgr2rgb(color);
|
|
6408
6367
|
}
|
|
6409
6368
|
};
|
|
6410
|
-
|
|
6411
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/getLocalBounds.mjs
|
|
6369
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/getLocalBounds.mjs
|
|
6412
6370
|
function getLocalBounds(target, bounds, relativeMatrix) {
|
|
6413
6371
|
bounds.clear();
|
|
6414
6372
|
relativeMatrix || (relativeMatrix = Matrix.IDENTITY);
|
|
@@ -6447,8 +6405,7 @@ function _getLocalBounds(target, bounds, parentTransform, rootContainer, isRoot)
|
|
|
6447
6405
|
}
|
|
6448
6406
|
matrixPool.return(relativeTransform);
|
|
6449
6407
|
}
|
|
6450
|
-
|
|
6451
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/checkChildrenDidChange.mjs
|
|
6408
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/checkChildrenDidChange.mjs
|
|
6452
6409
|
function checkChildrenDidChange(container, previousData) {
|
|
6453
6410
|
const children = container.children;
|
|
6454
6411
|
for (let i = 0; i < children.length; i++) {
|
|
@@ -6466,8 +6423,7 @@ function checkChildrenDidChange(container, previousData) {
|
|
|
6466
6423
|
}
|
|
6467
6424
|
return previousData.didChange;
|
|
6468
6425
|
}
|
|
6469
|
-
|
|
6470
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.mjs
|
|
6426
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/measureMixin.mjs
|
|
6471
6427
|
const tempMatrix = new Matrix();
|
|
6472
6428
|
const measureMixin = {
|
|
6473
6429
|
_localBoundsCacheId: -1,
|
|
@@ -6504,8 +6460,7 @@ const measureMixin = {
|
|
|
6504
6460
|
return getGlobalBounds(this, skipUpdate, bounds || new Bounds());
|
|
6505
6461
|
}
|
|
6506
6462
|
};
|
|
6507
|
-
|
|
6508
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.mjs
|
|
6463
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/onRenderMixin.mjs
|
|
6509
6464
|
const onRenderMixin = {
|
|
6510
6465
|
_onRender: null,
|
|
6511
6466
|
set onRender(func) {
|
|
@@ -6522,8 +6477,7 @@ const onRenderMixin = {
|
|
|
6522
6477
|
return this._onRender;
|
|
6523
6478
|
}
|
|
6524
6479
|
};
|
|
6525
|
-
|
|
6526
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.mjs
|
|
6480
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/sortMixin.mjs
|
|
6527
6481
|
const sortMixin = {
|
|
6528
6482
|
_zIndex: 0,
|
|
6529
6483
|
sortDirty: false,
|
|
@@ -6552,8 +6506,7 @@ const sortMixin = {
|
|
|
6552
6506
|
function sortChildren(a, b) {
|
|
6553
6507
|
return a._zIndex - b._zIndex;
|
|
6554
6508
|
}
|
|
6555
|
-
|
|
6556
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.mjs
|
|
6509
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/container-mixins/toLocalGlobalMixin.mjs
|
|
6557
6510
|
const toLocalGlobalMixin = {
|
|
6558
6511
|
getGlobalPosition(point = new Point(), skipUpdate = false) {
|
|
6559
6512
|
if (this.parent) this.parent.toGlobal(this._position, point, skipUpdate);
|
|
@@ -6577,8 +6530,7 @@ const toLocalGlobalMixin = {
|
|
|
6577
6530
|
return point;
|
|
6578
6531
|
}
|
|
6579
6532
|
};
|
|
6580
|
-
|
|
6581
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/instructions/InstructionSet.mjs
|
|
6533
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/instructions/InstructionSet.mjs
|
|
6582
6534
|
var InstructionSet = class {
|
|
6583
6535
|
constructor() {
|
|
6584
6536
|
/** a unique id for this instruction set used through the renderer */
|
|
@@ -6623,8 +6575,7 @@ var InstructionSet = class {
|
|
|
6623
6575
|
console.table(this.instructions, ["type", "action"]);
|
|
6624
6576
|
}
|
|
6625
6577
|
};
|
|
6626
|
-
|
|
6627
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/ScreenSizeRegistry.mjs
|
|
6578
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/ScreenSizeRegistry.mjs
|
|
6628
6579
|
var ScreenSizeRegistry = class {
|
|
6629
6580
|
constructor() {
|
|
6630
6581
|
/** the live screen sizes in physical pixels, keyed by renderer uid */
|
|
@@ -6738,8 +6689,7 @@ var ScreenSizeRegistry = class {
|
|
|
6738
6689
|
function sortedUnique(sizes) {
|
|
6739
6690
|
return sizes.filter((size, i) => sizes.indexOf(size) === i).sort((a, b) => a - b);
|
|
6740
6691
|
}
|
|
6741
|
-
|
|
6742
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TexturePool.mjs
|
|
6692
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TexturePool.mjs
|
|
6743
6693
|
let count = 0;
|
|
6744
6694
|
const maxKeyDimension$1 = 32767;
|
|
6745
6695
|
const scaleBit = 4294967296;
|
|
@@ -7054,8 +7004,7 @@ var TexturePoolClass = class extends eventemitter3_default {
|
|
|
7054
7004
|
};
|
|
7055
7005
|
const TexturePool = new TexturePoolClass();
|
|
7056
7006
|
GlobalResourceRegistry.register(TexturePool);
|
|
7057
|
-
|
|
7058
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/RenderGroup.mjs
|
|
7007
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/RenderGroup.mjs
|
|
7059
7008
|
var RenderGroup = class {
|
|
7060
7009
|
constructor() {
|
|
7061
7010
|
this.renderPipeId = "renderGroup";
|
|
@@ -7285,13 +7234,11 @@ var RenderGroup = class {
|
|
|
7285
7234
|
return this._parentCacheAsTextureRenderGroup.textureOffsetInverseTransform;
|
|
7286
7235
|
}
|
|
7287
7236
|
};
|
|
7288
|
-
|
|
7289
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/assignWithIgnore.mjs
|
|
7237
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/utils/assignWithIgnore.mjs
|
|
7290
7238
|
function assignWithIgnore(target, options, ignore = {}) {
|
|
7291
7239
|
for (const key in options) if (!ignore[key] && options[key] !== void 0) target[key] = options[key];
|
|
7292
7240
|
}
|
|
7293
|
-
|
|
7294
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/Container.mjs
|
|
7241
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/Container.mjs
|
|
7295
7242
|
const defaultSkew = new ObservablePoint(null);
|
|
7296
7243
|
const defaultPivot = new ObservablePoint(null);
|
|
7297
7244
|
const defaultScale = new ObservablePoint(null, 1, 1);
|
|
@@ -8312,8 +8259,7 @@ var Container = class Container extends eventemitter3_default {
|
|
|
8312
8259
|
}
|
|
8313
8260
|
};
|
|
8314
8261
|
extensions.mixin(Container, childrenHelperMixin, getFastGlobalBoundsMixin, toLocalGlobalMixin, onRenderMixin, measureMixin, effectsMixin, findMixin, sortMixin, cullingMixin, cacheAsTextureMixin, getGlobalMixin, collectRenderablesMixin);
|
|
8315
|
-
|
|
8316
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/view/ViewContainer.mjs
|
|
8262
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/view/ViewContainer.mjs
|
|
8317
8263
|
var ViewContainer = class extends Container {
|
|
8318
8264
|
constructor(options) {
|
|
8319
8265
|
super(options);
|
|
@@ -8429,8 +8375,7 @@ var ViewContainer = class extends Container {
|
|
|
8429
8375
|
renderPipes.blendMode.popBlendMode(instructionSet);
|
|
8430
8376
|
}
|
|
8431
8377
|
};
|
|
8432
|
-
|
|
8433
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/sprite/Sprite.mjs
|
|
8378
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/sprite/Sprite.mjs
|
|
8434
8379
|
var Sprite = class Sprite extends ViewContainer {
|
|
8435
8380
|
/**
|
|
8436
8381
|
* @param options - The options for creating the sprite.
|
|
@@ -8742,8 +8687,7 @@ var Sprite = class Sprite extends ViewContainer {
|
|
|
8742
8687
|
height !== void 0 && this._setHeight(height, this._texture.orig.height);
|
|
8743
8688
|
}
|
|
8744
8689
|
};
|
|
8745
|
-
|
|
8746
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/utils/addMaskBounds.mjs
|
|
8690
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/utils/addMaskBounds.mjs
|
|
8747
8691
|
const tempBounds$1 = new Bounds();
|
|
8748
8692
|
function addMaskBounds(mask, bounds, skipUpdateTransform) {
|
|
8749
8693
|
const boundsToMask = tempBounds$1;
|
|
@@ -8752,8 +8696,7 @@ function addMaskBounds(mask, bounds, skipUpdateTransform) {
|
|
|
8752
8696
|
bounds.addBoundsMask(boundsToMask);
|
|
8753
8697
|
mask.measurable = false;
|
|
8754
8698
|
}
|
|
8755
|
-
|
|
8756
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/utils/addMaskLocalBounds.mjs
|
|
8699
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/utils/addMaskLocalBounds.mjs
|
|
8757
8700
|
function addMaskLocalBounds(mask, bounds, localRoot) {
|
|
8758
8701
|
const boundsToMask = boundsPool.get();
|
|
8759
8702
|
mask.measurable = true;
|
|
@@ -8776,8 +8719,7 @@ function getMatrixRelativeToParent(target, root, matrix) {
|
|
|
8776
8719
|
}
|
|
8777
8720
|
return matrix;
|
|
8778
8721
|
}
|
|
8779
|
-
|
|
8780
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/alpha/AlphaMask.mjs
|
|
8722
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/alpha/AlphaMask.mjs
|
|
8781
8723
|
var AlphaMask = class {
|
|
8782
8724
|
constructor(options) {
|
|
8783
8725
|
this.priority = 0;
|
|
@@ -8816,8 +8758,7 @@ var AlphaMask = class {
|
|
|
8816
8758
|
}
|
|
8817
8759
|
};
|
|
8818
8760
|
AlphaMask.extension = ExtensionType.MaskEffect;
|
|
8819
|
-
|
|
8820
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/color/ColorMask.mjs
|
|
8761
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/color/ColorMask.mjs
|
|
8821
8762
|
var ColorMask = class {
|
|
8822
8763
|
constructor(options) {
|
|
8823
8764
|
this.priority = 0;
|
|
@@ -8833,8 +8774,7 @@ var ColorMask = class {
|
|
|
8833
8774
|
}
|
|
8834
8775
|
};
|
|
8835
8776
|
ColorMask.extension = ExtensionType.MaskEffect;
|
|
8836
|
-
|
|
8837
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/stencil/StencilMask.mjs
|
|
8777
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/mask/stencil/StencilMask.mjs
|
|
8838
8778
|
var StencilMask = class {
|
|
8839
8779
|
constructor(options) {
|
|
8840
8780
|
this.priority = 0;
|
|
@@ -8870,8 +8810,7 @@ var StencilMask = class {
|
|
|
8870
8810
|
}
|
|
8871
8811
|
};
|
|
8872
8812
|
StencilMask.extension = ExtensionType.MaskEffect;
|
|
8873
|
-
|
|
8874
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/environment/adapter.mjs
|
|
8813
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/environment/adapter.mjs
|
|
8875
8814
|
let currentAdapter = {
|
|
8876
8815
|
createCanvas: (width, height) => {
|
|
8877
8816
|
const canvas = document.createElement("canvas");
|
|
@@ -8906,8 +8845,7 @@ const DOMAdapter = {
|
|
|
8906
8845
|
currentAdapter = adapter;
|
|
8907
8846
|
}
|
|
8908
8847
|
};
|
|
8909
|
-
|
|
8910
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/CanvasSource.mjs
|
|
8848
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/CanvasSource.mjs
|
|
8911
8849
|
var CanvasSource = class extends TextureSource {
|
|
8912
8850
|
constructor(options) {
|
|
8913
8851
|
if (!options.resource) options.resource = DOMAdapter.get().createCanvas();
|
|
@@ -8953,8 +8891,7 @@ var CanvasSource = class extends TextureSource {
|
|
|
8953
8891
|
}
|
|
8954
8892
|
};
|
|
8955
8893
|
CanvasSource.extension = ExtensionType.TextureSource;
|
|
8956
|
-
|
|
8957
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/ImageSource.mjs
|
|
8894
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/ImageSource.mjs
|
|
8958
8895
|
var ImageSource = class extends TextureSource {
|
|
8959
8896
|
constructor(options) {
|
|
8960
8897
|
super(options);
|
|
@@ -8966,8 +8903,7 @@ var ImageSource = class extends TextureSource {
|
|
|
8966
8903
|
}
|
|
8967
8904
|
};
|
|
8968
8905
|
ImageSource.extension = ExtensionType.TextureSource;
|
|
8969
|
-
|
|
8970
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/ticker/const.mjs
|
|
8906
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/ticker/const.mjs
|
|
8971
8907
|
var UPDATE_PRIORITY = /* @__PURE__ */ ((UPDATE_PRIORITY2) => {
|
|
8972
8908
|
UPDATE_PRIORITY2[UPDATE_PRIORITY2["INTERACTION"] = 50] = "INTERACTION";
|
|
8973
8909
|
UPDATE_PRIORITY2[UPDATE_PRIORITY2["HIGH"] = 25] = "HIGH";
|
|
@@ -8976,8 +8912,7 @@ var UPDATE_PRIORITY = /* @__PURE__ */ ((UPDATE_PRIORITY2) => {
|
|
|
8976
8912
|
UPDATE_PRIORITY2[UPDATE_PRIORITY2["UTILITY"] = -50] = "UTILITY";
|
|
8977
8913
|
return UPDATE_PRIORITY2;
|
|
8978
8914
|
})(UPDATE_PRIORITY || {});
|
|
8979
|
-
|
|
8980
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/ticker/TickerListener.mjs
|
|
8915
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/ticker/TickerListener.mjs
|
|
8981
8916
|
var TickerListener = class {
|
|
8982
8917
|
/**
|
|
8983
8918
|
* Constructor
|
|
@@ -9051,8 +8986,7 @@ var TickerListener = class {
|
|
|
9051
8986
|
return redirect;
|
|
9052
8987
|
}
|
|
9053
8988
|
};
|
|
9054
|
-
|
|
9055
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/ticker/Ticker.mjs
|
|
8989
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/ticker/Ticker.mjs
|
|
9056
8990
|
const _Ticker = class _Ticker {
|
|
9057
8991
|
constructor() {
|
|
9058
8992
|
/**
|
|
@@ -9168,7 +9102,7 @@ const _Ticker = class _Ticker {
|
|
|
9168
9102
|
this._protected = false;
|
|
9169
9103
|
/** The last time keyframe was executed. Maintains a relatively fixed interval with the previous value. */
|
|
9170
9104
|
this._lastFrame = -1;
|
|
9171
|
-
this._head = new TickerListener(null, null,
|
|
9105
|
+
this._head = new TickerListener(null, null, 1e400);
|
|
9172
9106
|
this.deltaMS = 1 / _Ticker.targetFPMS;
|
|
9173
9107
|
this.elapsedMS = 1 / _Ticker.targetFPMS;
|
|
9174
9108
|
this._tick = (time) => {
|
|
@@ -9652,8 +9586,7 @@ const _Ticker = class _Ticker {
|
|
|
9652
9586
|
*/
|
|
9653
9587
|
_Ticker.targetFPMS = .06;
|
|
9654
9588
|
let Ticker = _Ticker;
|
|
9655
|
-
|
|
9656
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/browser/detectVideoAlphaMode.mjs
|
|
9589
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/browser/detectVideoAlphaMode.mjs
|
|
9657
9590
|
let promise;
|
|
9658
9591
|
async function detectVideoAlphaMode() {
|
|
9659
9592
|
promise ?? (promise = (async () => {
|
|
@@ -9687,8 +9620,7 @@ async function detectVideoAlphaMode() {
|
|
|
9687
9620
|
})());
|
|
9688
9621
|
return promise;
|
|
9689
9622
|
}
|
|
9690
|
-
|
|
9691
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/VideoSource.mjs
|
|
9623
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/VideoSource.mjs
|
|
9692
9624
|
const _VideoSource = class _VideoSource extends TextureSource {
|
|
9693
9625
|
constructor(options) {
|
|
9694
9626
|
super(options);
|
|
@@ -9975,8 +9907,7 @@ _VideoSource.MIME_TYPES = {
|
|
|
9975
9907
|
m4v: "video/mp4"
|
|
9976
9908
|
};
|
|
9977
9909
|
let VideoSource = _VideoSource;
|
|
9978
|
-
|
|
9979
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/utils/convertToList.mjs
|
|
9910
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/utils/convertToList.mjs
|
|
9980
9911
|
const convertToList = (input, transform, forceTransform = false) => {
|
|
9981
9912
|
if (!Array.isArray(input)) input = [input];
|
|
9982
9913
|
if (!transform) return input;
|
|
@@ -9985,8 +9916,7 @@ const convertToList = (input, transform, forceTransform = false) => {
|
|
|
9985
9916
|
return item;
|
|
9986
9917
|
});
|
|
9987
9918
|
};
|
|
9988
|
-
|
|
9989
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/cache/Cache.mjs
|
|
9919
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/cache/Cache.mjs
|
|
9990
9920
|
var CacheClass = class {
|
|
9991
9921
|
constructor() {
|
|
9992
9922
|
this._parsers = [];
|
|
@@ -10075,8 +10005,7 @@ var CacheClass = class {
|
|
|
10075
10005
|
}
|
|
10076
10006
|
};
|
|
10077
10007
|
const Cache = new CacheClass();
|
|
10078
|
-
|
|
10079
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/textureFrom.mjs
|
|
10008
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/utils/textureFrom.mjs
|
|
10080
10009
|
const sources = [];
|
|
10081
10010
|
extensions.handleByList(ExtensionType.TextureSource, sources);
|
|
10082
10011
|
function textureSourceFrom(options = {}) {
|
|
@@ -10108,19 +10037,16 @@ function textureFrom(id, skipCache = false) {
|
|
|
10108
10037
|
}
|
|
10109
10038
|
Texture.from = textureFrom;
|
|
10110
10039
|
TextureSource.from = textureSourceFrom;
|
|
10111
|
-
|
|
10112
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/init.mjs
|
|
10040
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/init.mjs
|
|
10113
10041
|
extensions.add(AlphaMask, ColorMask, StencilMask, VideoSource, ImageSource, CanvasSource, BufferImageSource);
|
|
10114
|
-
|
|
10115
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/loader/parsers/LoaderParser.mjs
|
|
10042
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/loader/parsers/LoaderParser.mjs
|
|
10116
10043
|
var LoaderParserPriority = /* @__PURE__ */ ((LoaderParserPriority2) => {
|
|
10117
10044
|
LoaderParserPriority2[LoaderParserPriority2["Low"] = 0] = "Low";
|
|
10118
10045
|
LoaderParserPriority2[LoaderParserPriority2["Normal"] = 1] = "Normal";
|
|
10119
10046
|
LoaderParserPriority2[LoaderParserPriority2["High"] = 2] = "High";
|
|
10120
10047
|
return LoaderParserPriority2;
|
|
10121
10048
|
})(LoaderParserPriority || {});
|
|
10122
|
-
|
|
10123
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/path.mjs
|
|
10049
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/utils/path.mjs
|
|
10124
10050
|
function assertPath(path2) {
|
|
10125
10051
|
if (typeof path2 !== "string") throw new TypeError(`Path must be a string. Received ${JSON.stringify(path2)}`);
|
|
10126
10052
|
}
|
|
@@ -10643,8 +10569,7 @@ const path = {
|
|
|
10643
10569
|
delimiter: ":",
|
|
10644
10570
|
joinExtensions: [".html"]
|
|
10645
10571
|
};
|
|
10646
|
-
|
|
10647
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/utils/createStringVariations.mjs
|
|
10572
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/utils/createStringVariations.mjs
|
|
10648
10573
|
function processX(base, ids, depth, result, tags) {
|
|
10649
10574
|
const id = ids[depth];
|
|
10650
10575
|
for (let i = 0; i < id.length; i++) {
|
|
@@ -10666,11 +10591,9 @@ function createStringVariations(string) {
|
|
|
10666
10591
|
} else tags.push(string);
|
|
10667
10592
|
return tags;
|
|
10668
10593
|
}
|
|
10669
|
-
|
|
10670
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/utils/isSingleItem.mjs
|
|
10594
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/utils/isSingleItem.mjs
|
|
10671
10595
|
const isSingleItem = (item) => !Array.isArray(item);
|
|
10672
|
-
|
|
10673
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/resolver/Resolver.mjs
|
|
10596
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/resolver/Resolver.mjs
|
|
10674
10597
|
var Resolver = class {
|
|
10675
10598
|
constructor() {
|
|
10676
10599
|
this._defaultBundleIdentifierOptions = {
|
|
@@ -11183,15 +11106,13 @@ Resolver.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
|
11183
11106
|
function getUrlExtension(url) {
|
|
11184
11107
|
return url.split(".").pop().split("?").shift().split("#").shift();
|
|
11185
11108
|
}
|
|
11186
|
-
|
|
11187
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/utils/copySearchParams.mjs
|
|
11109
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/assets/utils/copySearchParams.mjs
|
|
11188
11110
|
const copySearchParams = (targetUrl, sourceUrl) => {
|
|
11189
11111
|
const searchParams = sourceUrl.split("?")[1];
|
|
11190
11112
|
if (searchParams) targetUrl += `?${searchParams}`;
|
|
11191
11113
|
return targetUrl;
|
|
11192
11114
|
};
|
|
11193
|
-
|
|
11194
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/spritesheet/Spritesheet.mjs
|
|
11115
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/spritesheet/Spritesheet.mjs
|
|
11195
11116
|
const _Spritesheet = class _Spritesheet {
|
|
11196
11117
|
constructor(optionsOrTexture, arg1) {
|
|
11197
11118
|
/** For multi-packed spritesheets, this contains a reference to all the other spritesheets it depends on. */
|
|
@@ -11255,7 +11176,7 @@ const _Spritesheet = class _Spritesheet {
|
|
|
11255
11176
|
*/
|
|
11256
11177
|
_processFrames(initialFrameIndex, processAll = false) {
|
|
11257
11178
|
let frameIndex = initialFrameIndex;
|
|
11258
|
-
const maxFrames = processAll ?
|
|
11179
|
+
const maxFrames = processAll ? 1e400 : _Spritesheet.BATCH_SIZE;
|
|
11259
11180
|
while (frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length) {
|
|
11260
11181
|
const i = this._frameKeys[frameIndex];
|
|
11261
11182
|
const data = this._frames[i];
|
|
@@ -11337,8 +11258,7 @@ const _Spritesheet = class _Spritesheet {
|
|
|
11337
11258
|
*/
|
|
11338
11259
|
_Spritesheet.BATCH_SIZE = 1e3;
|
|
11339
11260
|
let Spritesheet = _Spritesheet;
|
|
11340
|
-
|
|
11341
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/spritesheet/spritesheetAsset.mjs
|
|
11261
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/spritesheet/spritesheetAsset.mjs
|
|
11342
11262
|
const validImages = [
|
|
11343
11263
|
"jpg",
|
|
11344
11264
|
"png",
|
|
@@ -11469,11 +11389,9 @@ const spritesheetAsset = {
|
|
|
11469
11389
|
}
|
|
11470
11390
|
}
|
|
11471
11391
|
};
|
|
11472
|
-
|
|
11473
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/spritesheet/init.mjs
|
|
11392
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/spritesheet/init.mjs
|
|
11474
11393
|
extensions.add(spritesheetAsset);
|
|
11475
|
-
|
|
11476
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/utils/createIdFromString.mjs
|
|
11394
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/utils/createIdFromString.mjs
|
|
11477
11395
|
const idCounts = /* @__PURE__ */ Object.create(null);
|
|
11478
11396
|
const idHash = /* @__PURE__ */ Object.create(null);
|
|
11479
11397
|
function createIdFromString(value, groupId) {
|
|
@@ -11484,13 +11402,11 @@ function createIdFromString(value, groupId) {
|
|
|
11484
11402
|
}
|
|
11485
11403
|
return id;
|
|
11486
11404
|
}
|
|
11487
|
-
|
|
11488
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/stripShaderComments.mjs
|
|
11405
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/stripShaderComments.mjs
|
|
11489
11406
|
function stripShaderComments(source) {
|
|
11490
11407
|
return source.replace(/\/\*[\s\S]*?\*\/|\/\/.*$/gm, "");
|
|
11491
11408
|
}
|
|
11492
|
-
|
|
11493
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/extractFragmentOutputMaskFromGlProgram.mjs
|
|
11409
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/extractFragmentOutputMaskFromGlProgram.mjs
|
|
11494
11410
|
const OUTPUT_REGEX = /* @__PURE__ */ new RegExp("(?:layout\\s*\\(\\s*location\\s*=\\s*(\\d+)\\s*\\)\\s*)?\\bout\\s+(?:(?:highp|mediump|lowp)\\s+)?\\w+\\s+\\w+\\s*(?:\\[\\s*(\\d+)\\s*\\])?\\s*;", "g");
|
|
11495
11411
|
function extractFragmentOutputMaskFromGlProgram(fragment) {
|
|
11496
11412
|
if (!fragment.includes("#version 300 es")) return fragment.includes("gl_FragData") ? null : 1;
|
|
@@ -11506,15 +11422,13 @@ function extractFragmentOutputMaskFromGlProgram(fragment) {
|
|
|
11506
11422
|
if (mask) return mask;
|
|
11507
11423
|
return /\bout\b/.test(clean) ? null : 0;
|
|
11508
11424
|
}
|
|
11509
|
-
|
|
11510
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getTestContext.mjs
|
|
11425
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getTestContext.mjs
|
|
11511
11426
|
let context;
|
|
11512
11427
|
function getTestContext() {
|
|
11513
11428
|
if (!context || context?.isContextLost()) context = DOMAdapter.get().createCanvas().getContext("webgl", {});
|
|
11514
11429
|
return context;
|
|
11515
11430
|
}
|
|
11516
|
-
|
|
11517
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getMaxFragmentPrecision.mjs
|
|
11431
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/getMaxFragmentPrecision.mjs
|
|
11518
11432
|
let maxFragmentPrecision;
|
|
11519
11433
|
function getMaxFragmentPrecision() {
|
|
11520
11434
|
if (!maxFragmentPrecision) {
|
|
@@ -11526,8 +11440,7 @@ function getMaxFragmentPrecision() {
|
|
|
11526
11440
|
}
|
|
11527
11441
|
return maxFragmentPrecision;
|
|
11528
11442
|
}
|
|
11529
|
-
|
|
11530
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/addProgramDefines.mjs
|
|
11443
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/addProgramDefines.mjs
|
|
11531
11444
|
function addProgramDefines(src, isES300, isFragment) {
|
|
11532
11445
|
if (isES300) return src;
|
|
11533
11446
|
if (isFragment) {
|
|
@@ -11551,8 +11464,7 @@ function addProgramDefines(src, isES300, isFragment) {
|
|
|
11551
11464
|
${src}
|
|
11552
11465
|
`;
|
|
11553
11466
|
}
|
|
11554
|
-
|
|
11555
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/ensurePrecision.mjs
|
|
11467
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/ensurePrecision.mjs
|
|
11556
11468
|
const unqualifiedSamplerPattern = /\buniform\s+([iu]?sampler\w+)/g;
|
|
11557
11469
|
const declaredSamplerPattern = /\bprecision\s+\w+\s+([iu]?sampler\w+)\s*;/g;
|
|
11558
11470
|
const defaultSamplerPrecisions = {
|
|
@@ -11582,15 +11494,13 @@ function ensureSamplerPrecision(src, dataPrecision) {
|
|
|
11582
11494
|
}
|
|
11583
11495
|
return header + src;
|
|
11584
11496
|
}
|
|
11585
|
-
|
|
11586
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/insertVersion.mjs
|
|
11497
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/insertVersion.mjs
|
|
11587
11498
|
function insertVersion(src, isES300) {
|
|
11588
11499
|
if (!isES300) return src;
|
|
11589
11500
|
return `#version 300 es
|
|
11590
11501
|
${src}`;
|
|
11591
11502
|
}
|
|
11592
|
-
|
|
11593
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/setProgramName.mjs
|
|
11503
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/setProgramName.mjs
|
|
11594
11504
|
const fragmentNameCache = {};
|
|
11595
11505
|
const VertexNameCache = {};
|
|
11596
11506
|
function setProgramName(src, { name = `pixi-program` }, isFragment = true) {
|
|
@@ -11605,14 +11515,12 @@ function setProgramName(src, { name = `pixi-program` }, isFragment = true) {
|
|
|
11605
11515
|
return `${`#define SHADER_NAME ${name}`}
|
|
11606
11516
|
${src}`;
|
|
11607
11517
|
}
|
|
11608
|
-
|
|
11609
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/stripVersion.mjs
|
|
11518
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/stripVersion.mjs
|
|
11610
11519
|
function stripVersion(src, isES300) {
|
|
11611
11520
|
if (!isES300) return src;
|
|
11612
11521
|
return src.replace("#version 300 es", "");
|
|
11613
11522
|
}
|
|
11614
|
-
|
|
11615
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GlProgram.mjs
|
|
11523
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gl/shader/GlProgram.mjs
|
|
11616
11524
|
const processes = {
|
|
11617
11525
|
stripVersion,
|
|
11618
11526
|
ensurePrecision,
|
|
@@ -11698,8 +11606,7 @@ _GlProgram.defaultOptions = {
|
|
|
11698
11606
|
preferredFragmentPrecision: "mediump"
|
|
11699
11607
|
};
|
|
11700
11608
|
let GlProgram = _GlProgram;
|
|
11701
|
-
|
|
11702
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/getAttributeInfoFromFormat.mjs
|
|
11609
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/getAttributeInfoFromFormat.mjs
|
|
11703
11610
|
const attributeFormatData = {
|
|
11704
11611
|
uint8x2: {
|
|
11705
11612
|
size: 2,
|
|
@@ -11855,8 +11762,7 @@ const attributeFormatData = {
|
|
|
11855
11762
|
function getAttributeInfoFromFormat(format) {
|
|
11856
11763
|
return attributeFormatData[format] ?? attributeFormatData.float32;
|
|
11857
11764
|
}
|
|
11858
|
-
|
|
11859
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractAttributesFromGpuProgram.mjs
|
|
11765
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractAttributesFromGpuProgram.mjs
|
|
11860
11766
|
const WGSL_TO_VERTEX_TYPES = {
|
|
11861
11767
|
f32: "float32",
|
|
11862
11768
|
"vec2<f32>": "float32x2",
|
|
@@ -11920,8 +11826,7 @@ function extractAttributesFromGpuProgram({ source, entryPoint }) {
|
|
|
11920
11826
|
}
|
|
11921
11827
|
return results;
|
|
11922
11828
|
}
|
|
11923
|
-
|
|
11924
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractFragmentOutputMaskFromGpuProgram.mjs
|
|
11829
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractFragmentOutputMaskFromGpuProgram.mjs
|
|
11925
11830
|
const LOCATION_REGEX = /@location\(\s*(\d+)\s*\)/g;
|
|
11926
11831
|
function locationMask(declarations) {
|
|
11927
11832
|
let mask = 0;
|
|
@@ -11953,8 +11858,7 @@ function extractFragmentOutputMaskFromGpuProgram({ source, entryPoint }) {
|
|
|
11953
11858
|
const structBody = new RegExp(`struct\\s+${returnType}\\s*\\{([^}]*)\\}`).exec(clean);
|
|
11954
11859
|
return structBody ? locationMask(structBody[1]) : null;
|
|
11955
11860
|
}
|
|
11956
|
-
|
|
11957
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractStructAndGroups.mjs
|
|
11861
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/extractStructAndGroups.mjs
|
|
11958
11862
|
function extractStructAndGroups(wgsl) {
|
|
11959
11863
|
const linePattern = /(^|[^/])@(group|binding)\(\d+\)[^;]+;/g;
|
|
11960
11864
|
const groupPattern = /@group\((\d+)\)/;
|
|
@@ -11999,16 +11903,14 @@ function extractStructAndGroups(wgsl) {
|
|
|
11999
11903
|
}).filter(({ name }) => groups.some((group) => group.type === name || group.type.includes(`<${name}>`))) ?? []
|
|
12000
11904
|
};
|
|
12001
11905
|
}
|
|
12002
|
-
|
|
12003
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/const.mjs
|
|
11906
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/const.mjs
|
|
12004
11907
|
var ShaderStage = /* @__PURE__ */ ((ShaderStage2) => {
|
|
12005
11908
|
ShaderStage2[ShaderStage2["VERTEX"] = 1] = "VERTEX";
|
|
12006
11909
|
ShaderStage2[ShaderStage2["FRAGMENT"] = 2] = "FRAGMENT";
|
|
12007
11910
|
ShaderStage2[ShaderStage2["COMPUTE"] = 4] = "COMPUTE";
|
|
12008
11911
|
return ShaderStage2;
|
|
12009
11912
|
})(ShaderStage || {});
|
|
12010
|
-
|
|
12011
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateGpuLayoutGroups.mjs
|
|
11913
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateGpuLayoutGroups.mjs
|
|
12012
11914
|
function getTextureSampleType(type) {
|
|
12013
11915
|
if (type.endsWith("<u32>")) return "uint";
|
|
12014
11916
|
if (type.endsWith("<i32>")) return "sint";
|
|
@@ -12097,8 +11999,7 @@ function generateGpuLayoutGroups({ groups }) {
|
|
|
12097
11999
|
for (let i = 0; i < layout.length; i++) layout[i] || (layout[i] = []);
|
|
12098
12000
|
return layout;
|
|
12099
12001
|
}
|
|
12100
|
-
|
|
12101
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateLayoutHash.mjs
|
|
12002
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/generateLayoutHash.mjs
|
|
12102
12003
|
function generateLayoutHash({ groups }) {
|
|
12103
12004
|
const layout = [];
|
|
12104
12005
|
for (let i = 0; i < groups.length; i++) {
|
|
@@ -12108,8 +12009,7 @@ function generateLayoutHash({ groups }) {
|
|
|
12108
12009
|
}
|
|
12109
12010
|
return layout;
|
|
12110
12011
|
}
|
|
12111
|
-
|
|
12112
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/removeStructAndGroupDuplicates.mjs
|
|
12012
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/utils/removeStructAndGroupDuplicates.mjs
|
|
12113
12013
|
function removeStructAndGroupDuplicates(vertexStructsAndGroups, fragmentStructsAndGroups) {
|
|
12114
12014
|
const structNameSet = /* @__PURE__ */ new Set();
|
|
12115
12015
|
const dupeGroupKeySet = /* @__PURE__ */ new Set();
|
|
@@ -12127,8 +12027,7 @@ function removeStructAndGroupDuplicates(vertexStructsAndGroups, fragmentStructsA
|
|
|
12127
12027
|
})
|
|
12128
12028
|
};
|
|
12129
12029
|
}
|
|
12130
|
-
|
|
12131
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/GpuProgram.mjs
|
|
12030
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/GpuProgram.mjs
|
|
12132
12031
|
const programCache = /* @__PURE__ */ Object.create(null);
|
|
12133
12032
|
var GpuProgram = class GpuProgram {
|
|
12134
12033
|
/**
|
|
@@ -12202,8 +12101,7 @@ var GpuProgram = class GpuProgram {
|
|
|
12202
12101
|
return programCache[key];
|
|
12203
12102
|
}
|
|
12204
12103
|
};
|
|
12205
|
-
|
|
12206
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/types.mjs
|
|
12104
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/types.mjs
|
|
12207
12105
|
const UNIFORM_TYPES_VALUES = [
|
|
12208
12106
|
"f32",
|
|
12209
12107
|
"i32",
|
|
@@ -12231,8 +12129,7 @@ const UNIFORM_TYPES_MAP = UNIFORM_TYPES_VALUES.reduce((acc, type) => {
|
|
|
12231
12129
|
acc[type] = true;
|
|
12232
12130
|
return acc;
|
|
12233
12131
|
}, {});
|
|
12234
|
-
|
|
12235
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/getDefaultUniformValue.mjs
|
|
12132
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/utils/getDefaultUniformValue.mjs
|
|
12236
12133
|
function getDefaultUniformValue(type, size) {
|
|
12237
12134
|
switch (type) {
|
|
12238
12135
|
case "f32": return 0;
|
|
@@ -12277,8 +12174,7 @@ function getDefaultUniformValue(type, size) {
|
|
|
12277
12174
|
}
|
|
12278
12175
|
return null;
|
|
12279
12176
|
}
|
|
12280
|
-
|
|
12281
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/UniformGroup.mjs
|
|
12177
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/UniformGroup.mjs
|
|
12282
12178
|
const _UniformGroup = class _UniformGroup extends eventemitter3_default {
|
|
12283
12179
|
/**
|
|
12284
12180
|
* Create a new Uniform group
|
|
@@ -12386,8 +12282,7 @@ _UniformGroup.defaultOptions = {
|
|
|
12386
12282
|
isStatic: false
|
|
12387
12283
|
};
|
|
12388
12284
|
let UniformGroup = _UniformGroup;
|
|
12389
|
-
|
|
12390
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/BindGroup.mjs
|
|
12285
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/gpu/shader/BindGroup.mjs
|
|
12391
12286
|
function mixLow(binding, id) {
|
|
12392
12287
|
let h = Math.imul(id + 2654435769, 2246822507) ^ Math.imul(binding + 1, 3266489909);
|
|
12393
12288
|
h ^= h >>> 16;
|
|
@@ -12603,8 +12498,7 @@ var BindGroup = class {
|
|
|
12603
12498
|
if (destroyed) warn(`[BindGroup] a '${resource._resourceType}' was destroyed while still bound to a shader. Remove it from the shader before destroying it.`);
|
|
12604
12499
|
}
|
|
12605
12500
|
};
|
|
12606
|
-
|
|
12607
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/types.mjs
|
|
12501
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/types.mjs
|
|
12608
12502
|
var RendererType = /* @__PURE__ */ ((RendererType2) => {
|
|
12609
12503
|
RendererType2[RendererType2["WEBGL"] = 1] = "WEBGL";
|
|
12610
12504
|
RendererType2[RendererType2["WEBGPU"] = 2] = "WEBGPU";
|
|
@@ -12612,8 +12506,7 @@ var RendererType = /* @__PURE__ */ ((RendererType2) => {
|
|
|
12612
12506
|
RendererType2[RendererType2["BOTH"] = 3] = "BOTH";
|
|
12613
12507
|
return RendererType2;
|
|
12614
12508
|
})(RendererType || {});
|
|
12615
|
-
|
|
12616
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/ShaderOverrides.mjs
|
|
12509
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/ShaderOverrides.mjs
|
|
12617
12510
|
var ShaderOverrides = class ShaderOverrides {
|
|
12618
12511
|
/**
|
|
12619
12512
|
* @param data - A dictionary of constants to set on the shader.
|
|
@@ -12634,8 +12527,7 @@ var ShaderOverrides = class ShaderOverrides {
|
|
|
12634
12527
|
return new ShaderOverrides(overrides);
|
|
12635
12528
|
}
|
|
12636
12529
|
};
|
|
12637
|
-
|
|
12638
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/Shader.mjs
|
|
12530
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/shader/Shader.mjs
|
|
12639
12531
|
var Shader = class Shader extends eventemitter3_default {
|
|
12640
12532
|
constructor(options) {
|
|
12641
12533
|
super();
|
|
@@ -12795,8 +12687,7 @@ var Shader = class Shader extends eventemitter3_default {
|
|
|
12795
12687
|
});
|
|
12796
12688
|
}
|
|
12797
12689
|
};
|
|
12798
|
-
|
|
12799
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/state/State.mjs
|
|
12690
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/state/State.mjs
|
|
12800
12691
|
const blendModeIds = {
|
|
12801
12692
|
normal: 0,
|
|
12802
12693
|
add: 1,
|
|
@@ -12940,8 +12831,7 @@ const _State = class _State {
|
|
|
12940
12831
|
};
|
|
12941
12832
|
_State.default2d = _State.for2d();
|
|
12942
12833
|
let State = _State;
|
|
12943
|
-
|
|
12944
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/Filter.mjs
|
|
12834
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/Filter.mjs
|
|
12945
12835
|
const _Filter = class _Filter extends Shader {
|
|
12946
12836
|
/**
|
|
12947
12837
|
* @param options - The optional parameters of this filter.
|
|
@@ -13018,8 +12908,7 @@ _Filter.defaultOptions = {
|
|
|
13018
12908
|
clipToViewport: true
|
|
13019
12909
|
};
|
|
13020
12910
|
let Filter = _Filter;
|
|
13021
|
-
|
|
13022
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.mjs
|
|
12911
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/const.mjs
|
|
13023
12912
|
var BufferUsage = /* @__PURE__ */ ((BufferUsage2) => {
|
|
13024
12913
|
BufferUsage2[BufferUsage2["MAP_READ"] = 1] = "MAP_READ";
|
|
13025
12914
|
BufferUsage2[BufferUsage2["MAP_WRITE"] = 2] = "MAP_WRITE";
|
|
@@ -13034,8 +12923,7 @@ var BufferUsage = /* @__PURE__ */ ((BufferUsage2) => {
|
|
|
13034
12923
|
BufferUsage2[BufferUsage2["STATIC"] = 1024] = "STATIC";
|
|
13035
12924
|
return BufferUsage2;
|
|
13036
12925
|
})(BufferUsage || {});
|
|
13037
|
-
|
|
13038
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/Buffer.mjs
|
|
12926
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/Buffer.mjs
|
|
13039
12927
|
var Buffer = class extends eventemitter3_default {
|
|
13040
12928
|
/**
|
|
13041
12929
|
* Creates a new Buffer with the given options
|
|
@@ -13191,8 +13079,7 @@ var Buffer = class extends eventemitter3_default {
|
|
|
13191
13079
|
this.removeAllListeners();
|
|
13192
13080
|
}
|
|
13193
13081
|
};
|
|
13194
|
-
|
|
13195
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/ensureIsBuffer.mjs
|
|
13082
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/ensureIsBuffer.mjs
|
|
13196
13083
|
function ensureIsBuffer(buffer, index) {
|
|
13197
13084
|
if (!(buffer instanceof Buffer)) {
|
|
13198
13085
|
let usage = index ? BufferUsage.INDEX : BufferUsage.VERTEX;
|
|
@@ -13213,8 +13100,7 @@ function ensureIsBuffer(buffer, index) {
|
|
|
13213
13100
|
}
|
|
13214
13101
|
return buffer;
|
|
13215
13102
|
}
|
|
13216
|
-
|
|
13217
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/getGeometryBounds.mjs
|
|
13103
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/utils/getGeometryBounds.mjs
|
|
13218
13104
|
function getGeometryBounds(geometry, attributeId, bounds) {
|
|
13219
13105
|
const attribute = geometry.getAttribute(attributeId);
|
|
13220
13106
|
if (!attribute) {
|
|
@@ -13225,10 +13111,10 @@ function getGeometryBounds(geometry, attributeId, bounds) {
|
|
|
13225
13111
|
return bounds;
|
|
13226
13112
|
}
|
|
13227
13113
|
const data = attribute.buffer.data;
|
|
13228
|
-
let minX =
|
|
13229
|
-
let minY =
|
|
13230
|
-
let maxX = -
|
|
13231
|
-
let maxY = -
|
|
13114
|
+
let minX = 1e400;
|
|
13115
|
+
let minY = 1e400;
|
|
13116
|
+
let maxX = -1e400;
|
|
13117
|
+
let maxY = -1e400;
|
|
13232
13118
|
const byteSize = data.BYTES_PER_ELEMENT;
|
|
13233
13119
|
const offset = (attribute.offset || 0) / byteSize;
|
|
13234
13120
|
const stride = (attribute.stride || 8) / byteSize;
|
|
@@ -13246,8 +13132,7 @@ function getGeometryBounds(geometry, attributeId, bounds) {
|
|
|
13246
13132
|
bounds.maxY = maxY;
|
|
13247
13133
|
return bounds;
|
|
13248
13134
|
}
|
|
13249
|
-
|
|
13250
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/Geometry.mjs
|
|
13135
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/geometry/Geometry.mjs
|
|
13251
13136
|
function ensureIsAttribute(attribute) {
|
|
13252
13137
|
if (attribute instanceof Buffer || Array.isArray(attribute) || attribute.BYTES_PER_ELEMENT) attribute = { buffer: attribute };
|
|
13253
13138
|
attribute.buffer = ensureIsBuffer(attribute.buffer, false);
|
|
@@ -13410,8 +13295,7 @@ var Geometry = class extends eventemitter3_default {
|
|
|
13410
13295
|
this._bounds = null;
|
|
13411
13296
|
}
|
|
13412
13297
|
};
|
|
13413
|
-
|
|
13414
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/canvas/utils/canUseNewCanvasBlendModes.mjs
|
|
13298
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/canvas/utils/canUseNewCanvasBlendModes.mjs
|
|
13415
13299
|
let canUseNewCanvasBlendModesValue;
|
|
13416
13300
|
function createColoredCanvas(color) {
|
|
13417
13301
|
const canvas = DOMAdapter.get().createCanvas(6, 1);
|
|
@@ -13440,8 +13324,7 @@ function canUseNewCanvasBlendModes() {
|
|
|
13440
13324
|
}
|
|
13441
13325
|
return canUseNewCanvasBlendModesValue;
|
|
13442
13326
|
}
|
|
13443
|
-
|
|
13444
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/canvas/utils/canvasUtils.mjs
|
|
13327
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/canvas/utils/canvasUtils.mjs
|
|
13445
13328
|
const canvasUtils = {
|
|
13446
13329
|
canvas: null,
|
|
13447
13330
|
convertTintToImage: false,
|
|
@@ -13714,8 +13597,7 @@ const canvasUtils = {
|
|
|
13714
13597
|
context.transform(a, b, c, d, tx, ty);
|
|
13715
13598
|
}
|
|
13716
13599
|
};
|
|
13717
|
-
|
|
13718
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/CanvasPool.mjs
|
|
13600
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/rendering/renderers/shared/texture/CanvasPool.mjs
|
|
13719
13601
|
const maxKeyDimension = 32767;
|
|
13720
13602
|
function bucketKey(width, height) {
|
|
13721
13603
|
return (width << 17) + (height << 2);
|
|
@@ -13856,8 +13738,7 @@ var CanvasPoolClass = class {
|
|
|
13856
13738
|
};
|
|
13857
13739
|
const CanvasPool = new CanvasPoolClass();
|
|
13858
13740
|
GlobalResourceRegistry.register(CanvasPool);
|
|
13859
|
-
|
|
13860
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/getRenderableBounds.mjs
|
|
13741
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/container/bounds/getRenderableBounds.mjs
|
|
13861
13742
|
const tempProjectionMatrix = new Matrix();
|
|
13862
13743
|
function getGlobalRenderableBounds(renderables, bounds) {
|
|
13863
13744
|
bounds.clear();
|
|
@@ -13874,8 +13755,7 @@ function getGlobalRenderableBounds(renderables, bounds) {
|
|
|
13874
13755
|
bounds.matrix = actualMatrix;
|
|
13875
13756
|
return bounds;
|
|
13876
13757
|
}
|
|
13877
|
-
|
|
13878
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/text/utils/getPo2TextureFromSource.mjs
|
|
13758
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/scene/text/utils/getPo2TextureFromSource.mjs
|
|
13879
13759
|
const tempBounds = new Bounds();
|
|
13880
13760
|
function getPo2TextureFromSource(image, width, height, resolution, autoGenerateMipmaps = false, scaleMode) {
|
|
13881
13761
|
const bounds = tempBounds;
|
|
@@ -13899,8 +13779,7 @@ function getPo2TextureFromSource(image, width, height, resolution, autoGenerateM
|
|
|
13899
13779
|
texture.updateUvs();
|
|
13900
13780
|
return texture;
|
|
13901
13781
|
}
|
|
13902
|
-
|
|
13903
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/CanvasFilterSystem.mjs
|
|
13782
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/CanvasFilterSystem.mjs
|
|
13904
13783
|
function isCanvasFilterCapable(filter) {
|
|
13905
13784
|
return typeof filter.getCanvasFilterString === "function";
|
|
13906
13785
|
}
|
|
@@ -14088,11 +13967,9 @@ CanvasFilterSystem.extension = {
|
|
|
14088
13967
|
type: [ExtensionType.CanvasSystem],
|
|
14089
13968
|
name: "filter"
|
|
14090
13969
|
};
|
|
14091
|
-
|
|
14092
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/defaults/defaultFilter.vert.mjs
|
|
13970
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/defaults/defaultFilter.vert.mjs
|
|
14093
13971
|
var vertex = "in vec2 aPosition;\nout vec2 vTextureCoord;\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\n\nvec4 filterVertexPosition( void )\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( void )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n";
|
|
14094
|
-
|
|
14095
|
-
//#region ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/FilterPipe.mjs
|
|
13972
|
+
// ../../node_modules/.pnpm/pixi.js@8.23.0/node_modules/pixi.js/lib/filters/FilterPipe.mjs
|
|
14096
13973
|
var FilterPipe = class {
|
|
14097
13974
|
constructor(renderer) {
|
|
14098
13975
|
this._renderer = renderer;
|
|
@@ -14131,5 +14008,4 @@ FilterPipe.extension = {
|
|
|
14131
14008
|
],
|
|
14132
14009
|
name: "filter"
|
|
14133
14010
|
};
|
|
14134
|
-
|
|
14135
|
-
export { nextPow2 as $, Container as A, FilterEffect as B, Ticker as C, DOMAdapter as D, CanvasSource as E, getLocalBounds as F, Color as G, BigPool as H, bgr2rgb as I, Texture as J, Bounds as K, multiplyColors as L, RenderGroup as M, TexturePool as N, Sprite as O, InstructionSet as P, definedProps as Q, multiplyHexColors as R, Cache as S, ImageSource as T, GlobalResourceRegistry as U, removeItems as V, warn as W, TextureSource as X, TextureMatrix as Y, TextureStyle as Z, UniformGroup as _, getGlobalRenderableBounds as a, uid as at, GlProgram as b, canUseNewCanvasBlendModes as c, Matrix as ct, BufferUsage as d, ObservablePoint as dt, isIntegerFormat as et, Filter as f, ExtensionType as ft, BindGroup as g, RendererType as h, getPo2TextureFromSource as i, v8_3_4 as it, assignWithIgnore as j, ViewContainer as k, Geometry as l, Point as lt, Shader as m, vertex as n, v8_0_0 as nt, CanvasPool as o, Rectangle as ot, State as p, extensions as pt, updateQuadBounds as q, CanvasFilterSystem as r, v8_21_0 as rt, canvasUtils as s, groupD8 as st, FilterPipe as t, deprecation as tt, Buffer as u, eventemitter3_default as ut, GpuProgram as v, UPDATE_PRIORITY as w, getTestContext as x, getAttributeInfoFromFormat as y, getGlobalBounds as z };
|
|
14011
|
+
export { definedProps as $, Container as A, FilterEffect as B, Ticker as C, DOMAdapter as D, CanvasSource as E, getLocalBounds as F, Color as G, BigPool as H, bgr2rgb as I, Texture as J, Bounds as K, multiplyColors as L, RenderGroup as M, TexturePool as N, Sprite as O, InstructionSet as P, TextureStyle as Q, multiplyHexColors as R, Cache as S, ImageSource as T, GlobalResourceRegistry as U, removeItems as V, warn as W, BufferImageSource as X, TextureMatrix as Y, TextureSource as Z, UniformGroup as _, getGlobalRenderableBounds as a, v8_3_4 as at, GlProgram as b, canUseNewCanvasBlendModes as c, groupD8 as ct, BufferUsage as d, eventemitter3_default as dt, nextPow2 as et, Filter as f, ObservablePoint as ft, BindGroup as g, RendererType as h, getPo2TextureFromSource as i, v8_21_0 as it, assignWithIgnore as j, ViewContainer as k, Geometry as l, Matrix as lt, Shader as m, extensions as mt, vertex as n, deprecation as nt, CanvasPool as o, uid as ot, State as p, ExtensionType as pt, updateQuadBounds as q, CanvasFilterSystem as r, v8_0_0 as rt, canvasUtils as s, Rectangle as st, FilterPipe as t, isIntegerFormat as tt, Buffer as u, Point as ut, GpuProgram as v, UPDATE_PRIORITY as w, getTestContext as x, getAttributeInfoFromFormat as y, getGlobalBounds as z };
|