lyb-pixi-js 1.11.30 → 1.11.32

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.
@@ -5,5 +5,6 @@ import { Container } from "pixi.js";
5
5
  * @param gap 每个元素之间的间隔
6
6
  * @param cols 网格的列数,默认为元素数量
7
7
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiGridLayout-网格布局
8
+ * @param direction 排列方向: "row" 行优先(默认) | "col" 列优先
8
9
  */
9
- export declare const LibPixiGridLayout: (items: Container[], gap: number, cols?: number) => void;
10
+ export declare const LibPixiGridLayout: (items: Container[], gap: number, cols?: number, direction?: "row" | "col") => void;
@@ -4,19 +4,24 @@
4
4
  * @param gap 每个元素之间的间隔
5
5
  * @param cols 网格的列数,默认为元素数量
6
6
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiGridLayout-网格布局
7
+ * @param direction 排列方向: "row" 行优先(默认) | "col" 列优先
7
8
  */
8
- export const LibPixiGridLayout = (items, gap, cols = items.length) => {
9
- let lastX = 0;
9
+ export const LibPixiGridLayout = (items, gap, cols = items.length, direction = "row") => {
10
+ const rows = Math.ceil(items.length / cols); // 动态计算行数
10
11
  items.forEach((item, index) => {
11
12
  const itemWidth = item.width || 0;
12
13
  const itemHeight = item.height || 0;
13
- const colIndex = index % cols;
14
- const rowIndex = Math.floor(index / cols);
15
- item.x = colIndex === 0 ? 0 : lastX + gap;
16
- item.y = rowIndex * (itemHeight + gap);
17
- lastX = item.x + itemWidth;
18
- if (colIndex === cols - 1) {
19
- lastX = 0;
14
+ let colIndex = 0;
15
+ let rowIndex = 0;
16
+ if (direction === "row") {
17
+ colIndex = index % cols;
18
+ rowIndex = Math.floor(index / cols);
19
+ }
20
+ else {
21
+ colIndex = Math.floor(index / rows);
22
+ rowIndex = index % rows;
20
23
  }
24
+ item.x = colIndex * (itemWidth + gap);
25
+ item.y = rowIndex * (itemHeight + gap);
21
26
  });
22
27
  };
package/libPixiJs.d.ts CHANGED
@@ -27,7 +27,6 @@ import { LibPixiLabelValue } from "./Components/Custom/LibPixiLabelValue";
27
27
  import { LibPixiPuzzleBg } from "./Components/Custom/LibPixiPuzzleBg";
28
28
  import { LibPixiTriangle } from "./Components/Custom/LibPixiTriangle";
29
29
  import { LibPixiCapsule } from "./Components/Custom/LibPixiCapsule";
30
- import { LibDestroyContainer } from "./Components/Base/LibDestroyContainer";
31
30
  import { LibPixiDragLocate } from "./Components/Custom/LibPixiDragLocate";
32
31
  /** @description 组件 */
33
32
  export declare const Components: {
@@ -72,8 +71,6 @@ export declare const Components: {
72
71
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiHtmlText-自定义富文本类
73
72
  */
74
73
  LibPixiHtmlText: typeof LibPixiHtmlText;
75
- /** @description 带销毁的容器 */
76
- LibDestroyContainer: typeof LibDestroyContainer;
77
74
  };
78
75
  Custom: {
79
76
  /** @description 悬浮切换材质
@@ -231,7 +228,7 @@ export declare const Utils: {
231
228
  * @param cols 网格的列数,默认为元素数量
232
229
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiGridLayout-网格布局
233
230
  */
234
- LibPixiGridLayout: (items: import("pixi.js").Container[], gap: number, cols?: number) => void;
231
+ LibPixiGridLayout: (items: import("pixi.js").Container[], gap: number, cols?: number, direction?: "row" | "col") => void;
235
232
  /**
236
233
  * @description 按照指定方向(水平或垂直)排列元素,支持固定间隔或自定义每个间隔。
237
234
  * @param items 要排列的元素数组。
package/libPixiJs.js CHANGED
@@ -45,7 +45,6 @@ import { libPixiHVCenter } from "./Utils/LibPixiHVCenter";
45
45
  import { libPixiHVGap } from "./Utils/LibPixiHVGap";
46
46
  import { LibPixiTriangle } from "./Components/Custom/LibPixiTriangle";
47
47
  import { LibPixiCapsule } from "./Components/Custom/LibPixiCapsule";
48
- import { LibDestroyContainer } from "./Components/Base/LibDestroyContainer";
49
48
  import { LibPixiDragLocate } from "./Components/Custom/LibPixiDragLocate";
50
49
  /** @description 组件 */
51
50
  export const Components = {
@@ -90,8 +89,6 @@ export const Components = {
90
89
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiHtmlText-自定义富文本类
91
90
  */
92
91
  LibPixiHtmlText,
93
- /** @description 带销毁的容器 */
94
- LibDestroyContainer,
95
92
  },
96
93
  Custom: {
97
94
  /** @description 悬浮切换材质
package/lyb-pixi.js CHANGED
@@ -1315,7 +1315,7 @@
1315
1315
  var ys = arrObjKeys(obj, inspect2);
1316
1316
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1317
1317
  var protoTag = obj instanceof Object ? "" : "null prototype";
1318
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
1318
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
1319
1319
  var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
1320
1320
  var tag2 = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
1321
1321
  if (ys.length === 0) {
@@ -1336,26 +1336,29 @@
1336
1336
  function quote(s2) {
1337
1337
  return $replace$1.call(String(s2), /"/g, """);
1338
1338
  }
1339
+ function canTrustToString(obj) {
1340
+ return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
1341
+ }
1339
1342
  function isArray$3(obj) {
1340
- return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1343
+ return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
1341
1344
  }
1342
1345
  function isDate(obj) {
1343
- return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1346
+ return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
1344
1347
  }
1345
1348
  function isRegExp$1(obj) {
1346
- return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1349
+ return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
1347
1350
  }
1348
1351
  function isError(obj) {
1349
- return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1352
+ return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
1350
1353
  }
1351
1354
  function isString(obj) {
1352
- return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1355
+ return toStr$1(obj) === "[object String]" && canTrustToString(obj);
1353
1356
  }
1354
1357
  function isNumber(obj) {
1355
- return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1358
+ return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
1356
1359
  }
1357
1360
  function isBoolean(obj) {
1358
- return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
1361
+ return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
1359
1362
  }
1360
1363
  function isSymbol(obj) {
1361
1364
  if (hasShammedSymbols) {
@@ -1391,7 +1394,7 @@
1391
1394
  function has$3(obj, key) {
1392
1395
  return hasOwn$1.call(obj, key);
1393
1396
  }
1394
- function toStr(obj) {
1397
+ function toStr$1(obj) {
1395
1398
  return objectToString.call(obj);
1396
1399
  }
1397
1400
  function nameOf(f2) {
@@ -1700,7 +1703,7 @@
1700
1703
  var uri = URIError;
1701
1704
  var abs$2 = Math.abs;
1702
1705
  var floor$2 = Math.floor;
1703
- var max$2 = Math.max;
1706
+ var max$3 = Math.max;
1704
1707
  var min$2 = Math.min;
1705
1708
  var pow$2 = Math.pow;
1706
1709
  var round$3 = Math.round;
@@ -1833,102 +1836,78 @@
1833
1836
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
1834
1837
  return Object_getPrototypeOf;
1835
1838
  }
1836
- var implementation;
1837
- var hasRequiredImplementation;
1838
- function requireImplementation() {
1839
- if (hasRequiredImplementation)
1840
- return implementation;
1841
- hasRequiredImplementation = 1;
1842
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
1843
- var toStr2 = Object.prototype.toString;
1844
- var max2 = Math.max;
1845
- var funcType = "[object Function]";
1846
- var concatty = function concatty2(a2, b2) {
1847
- var arr = [];
1848
- for (var i2 = 0; i2 < a2.length; i2 += 1) {
1849
- arr[i2] = a2[i2];
1850
- }
1851
- for (var j2 = 0; j2 < b2.length; j2 += 1) {
1852
- arr[j2 + a2.length] = b2[j2];
1853
- }
1854
- return arr;
1855
- };
1856
- var slicy = function slicy2(arrLike, offset) {
1857
- var arr = [];
1858
- for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
1859
- arr[j2] = arrLike[i2];
1860
- }
1861
- return arr;
1862
- };
1863
- var joiny = function(arr, joiner) {
1864
- var str = "";
1865
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
1866
- str += arr[i2];
1867
- if (i2 + 1 < arr.length) {
1868
- str += joiner;
1869
- }
1839
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
1840
+ var toStr = Object.prototype.toString;
1841
+ var max$2 = Math.max;
1842
+ var funcType = "[object Function]";
1843
+ var concatty = function concatty2(a2, b2) {
1844
+ var arr = [];
1845
+ for (var i2 = 0; i2 < a2.length; i2 += 1) {
1846
+ arr[i2] = a2[i2];
1847
+ }
1848
+ for (var j2 = 0; j2 < b2.length; j2 += 1) {
1849
+ arr[j2 + a2.length] = b2[j2];
1850
+ }
1851
+ return arr;
1852
+ };
1853
+ var slicy = function slicy2(arrLike, offset) {
1854
+ var arr = [];
1855
+ for (var i2 = offset || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
1856
+ arr[j2] = arrLike[i2];
1857
+ }
1858
+ return arr;
1859
+ };
1860
+ var joiny = function(arr, joiner) {
1861
+ var str = "";
1862
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
1863
+ str += arr[i2];
1864
+ if (i2 + 1 < arr.length) {
1865
+ str += joiner;
1870
1866
  }
1871
- return str;
1872
- };
1873
- implementation = function bind2(that) {
1874
- var target = this;
1875
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
1876
- throw new TypeError(ERROR_MESSAGE + target);
1877
- }
1878
- var args = slicy(arguments, 1);
1879
- var bound;
1880
- var binder = function() {
1881
- if (this instanceof bound) {
1882
- var result = target.apply(
1883
- this,
1884
- concatty(args, arguments)
1885
- );
1886
- if (Object(result) === result) {
1887
- return result;
1888
- }
1889
- return this;
1890
- }
1891
- return target.apply(
1892
- that,
1867
+ }
1868
+ return str;
1869
+ };
1870
+ var implementation$1 = function bind2(that) {
1871
+ var target = this;
1872
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
1873
+ throw new TypeError(ERROR_MESSAGE + target);
1874
+ }
1875
+ var args = slicy(arguments, 1);
1876
+ var bound;
1877
+ var binder = function() {
1878
+ if (this instanceof bound) {
1879
+ var result = target.apply(
1880
+ this,
1893
1881
  concatty(args, arguments)
1894
1882
  );
1895
- };
1896
- var boundLength = max2(0, target.length - args.length);
1897
- var boundArgs = [];
1898
- for (var i2 = 0; i2 < boundLength; i2++) {
1899
- boundArgs[i2] = "$" + i2;
1900
- }
1901
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
1902
- if (target.prototype) {
1903
- var Empty = function Empty2() {
1904
- };
1905
- Empty.prototype = target.prototype;
1906
- bound.prototype = new Empty();
1907
- Empty.prototype = null;
1883
+ if (Object(result) === result) {
1884
+ return result;
1885
+ }
1886
+ return this;
1908
1887
  }
1909
- return bound;
1888
+ return target.apply(
1889
+ that,
1890
+ concatty(args, arguments)
1891
+ );
1910
1892
  };
1911
- return implementation;
1912
- }
1913
- var functionBind;
1914
- var hasRequiredFunctionBind;
1915
- function requireFunctionBind() {
1916
- if (hasRequiredFunctionBind)
1917
- return functionBind;
1918
- hasRequiredFunctionBind = 1;
1919
- var implementation2 = requireImplementation();
1920
- functionBind = Function.prototype.bind || implementation2;
1921
- return functionBind;
1922
- }
1923
- var functionCall;
1924
- var hasRequiredFunctionCall;
1925
- function requireFunctionCall() {
1926
- if (hasRequiredFunctionCall)
1927
- return functionCall;
1928
- hasRequiredFunctionCall = 1;
1929
- functionCall = Function.prototype.call;
1930
- return functionCall;
1931
- }
1893
+ var boundLength = max$2(0, target.length - args.length);
1894
+ var boundArgs = [];
1895
+ for (var i2 = 0; i2 < boundLength; i2++) {
1896
+ boundArgs[i2] = "$" + i2;
1897
+ }
1898
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
1899
+ if (target.prototype) {
1900
+ var Empty = function Empty2() {
1901
+ };
1902
+ Empty.prototype = target.prototype;
1903
+ bound.prototype = new Empty();
1904
+ Empty.prototype = null;
1905
+ }
1906
+ return bound;
1907
+ };
1908
+ var implementation = implementation$1;
1909
+ var functionBind = Function.prototype.bind || implementation;
1910
+ var functionCall = Function.prototype.call;
1932
1911
  var functionApply;
1933
1912
  var hasRequiredFunctionApply;
1934
1913
  function requireFunctionApply() {
@@ -1939,14 +1918,14 @@
1939
1918
  return functionApply;
1940
1919
  }
1941
1920
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
1942
- var bind$2 = requireFunctionBind();
1921
+ var bind$2 = functionBind;
1943
1922
  var $apply$1 = requireFunctionApply();
1944
- var $call$2 = requireFunctionCall();
1923
+ var $call$2 = functionCall;
1945
1924
  var $reflectApply = reflectApply;
1946
1925
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
1947
- var bind$1 = requireFunctionBind();
1926
+ var bind$1 = functionBind;
1948
1927
  var $TypeError$4 = type;
1949
- var $call$1 = requireFunctionCall();
1928
+ var $call$1 = functionCall;
1950
1929
  var $actualApply = actualApply;
1951
1930
  var callBindApplyHelpers = function callBindBasic2(args) {
1952
1931
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -2015,7 +1994,7 @@
2015
1994
  hasRequiredHasown = 1;
2016
1995
  var call = Function.prototype.call;
2017
1996
  var $hasOwn = Object.prototype.hasOwnProperty;
2018
- var bind2 = requireFunctionBind();
1997
+ var bind2 = functionBind;
2019
1998
  hasown = bind2.call(call, $hasOwn);
2020
1999
  return hasown;
2021
2000
  }
@@ -2030,7 +2009,7 @@
2030
2009
  var $URIError = uri;
2031
2010
  var abs$1 = abs$2;
2032
2011
  var floor$1 = floor$2;
2033
- var max$1 = max$2;
2012
+ var max$1 = max$3;
2034
2013
  var min$1 = min$2;
2035
2014
  var pow$1 = pow$2;
2036
2015
  var round$2 = round$3;
@@ -2064,7 +2043,7 @@
2064
2043
  var $ObjectGPO = requireObject_getPrototypeOf();
2065
2044
  var $ReflectGPO = requireReflect_getPrototypeOf();
2066
2045
  var $apply = requireFunctionApply();
2067
- var $call = requireFunctionCall();
2046
+ var $call = functionCall;
2068
2047
  var needsEval = {};
2069
2048
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
2070
2049
  var INTRINSICS = {
@@ -2093,6 +2072,7 @@
2093
2072
  "%eval%": eval,
2094
2073
  // eslint-disable-line no-eval
2095
2074
  "%EvalError%": $EvalError,
2075
+ "%Float16Array%": typeof Float16Array === "undefined" ? undefined$1 : Float16Array,
2096
2076
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
2097
2077
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
2098
2078
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
@@ -2234,7 +2214,7 @@
2234
2214
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2235
2215
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2236
2216
  };
2237
- var bind = requireFunctionBind();
2217
+ var bind = functionBind;
2238
2218
  var hasOwn = requireHasown();
2239
2219
  var $concat = bind.call($call, Array.prototype.concat);
2240
2220
  var $spliceApply = bind.call($apply, Array.prototype.splice);
@@ -2346,11 +2326,14 @@
2346
2326
  var $indexOf = callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]);
2347
2327
  var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
2348
2328
  var intrinsic = (
2349
- /** @type {Parameters<typeof callBindBasic>[0][0]} */
2329
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2350
2330
  GetIntrinsic$2(name, !!allowMissing)
2351
2331
  );
2352
2332
  if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
2353
- return callBindBasic([intrinsic]);
2333
+ return callBindBasic(
2334
+ /** @type {const} */
2335
+ [intrinsic]
2336
+ );
2354
2337
  }
2355
2338
  return intrinsic;
2356
2339
  };
@@ -10971,7 +10954,7 @@ void main(void)
10971
10954
  */
10972
10955
  run(options) {
10973
10956
  const { renderer } = this;
10974
- renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.2 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height);
10957
+ renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.3 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height);
10975
10958
  }
10976
10959
  destroy() {
10977
10960
  }
@@ -18222,7 +18205,8 @@ void main()
18222
18205
  if (keys.forEach((key2) => {
18223
18206
  this._cacheMap.set(key2, cachedAssets);
18224
18207
  }), cacheKeys.forEach((key2) => {
18225
- this._cache.has(key2) && this._cache.get(key2) !== value && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
18208
+ const val = cacheableAssets ? cacheableAssets[key2] : value;
18209
+ this._cache.has(key2) && this._cache.get(key2) !== val && console.warn("[Cache] already has key:", key2), this._cache.set(key2, cacheableAssets[key2]);
18226
18210
  }), value instanceof Texture) {
18227
18211
  const texture = value;
18228
18212
  keys.forEach((key2) => {
@@ -25738,12 +25722,11 @@ void main(void)\r
25738
25722
  subClass.__proto__ = superClass;
25739
25723
  }
25740
25724
  /*!
25741
- * GSAP 3.12.5
25725
+ * GSAP 3.13.0
25742
25726
  * https://gsap.com
25743
25727
  *
25744
- * @license Copyright 2008-2024, GreenSock. All rights reserved.
25745
- * Subject to the terms at https://gsap.com/standard-license or for
25746
- * Club GSAP members, the agreement issued with that membership.
25728
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
25729
+ * Subject to the terms at https://gsap.com/standard-license
25747
25730
  * @author: Jack Doyle, jack@greensock.com
25748
25731
  */
25749
25732
  var _config = {
@@ -25834,9 +25817,11 @@ void main(void)\r
25834
25817
  tween = a2[i2];
25835
25818
  tween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);
25836
25819
  }
25820
+ }, _isRevertWorthy = function _isRevertWorthy2(animation) {
25821
+ return !!(animation._initted || animation._startAt || animation.add);
25837
25822
  }, _lazySafeRender = function _lazySafeRender2(animation, time, suppressEvents, force) {
25838
25823
  _lazyTweens.length && !_reverting$1 && _lazyRender();
25839
- animation.render(time, suppressEvents, force || _reverting$1 && time < 0 && (animation._initted || animation._startAt));
25824
+ animation.render(time, suppressEvents, force || !!(_reverting$1 && time < 0 && _isRevertWorthy(animation)));
25840
25825
  _lazyTweens.length && !_reverting$1 && _lazyRender();
25841
25826
  }, _numericIfPossible = function _numericIfPossible2(value) {
25842
25827
  var n2 = parseFloat(value);
@@ -25959,7 +25944,7 @@ void main(void)\r
25959
25944
  }, _elapsedCycleDuration = function _elapsedCycleDuration2(animation) {
25960
25945
  return animation._repeat ? _animationCycle(animation._tTime, animation = animation.duration() + animation._rDelay) * animation : 0;
25961
25946
  }, _animationCycle = function _animationCycle2(tTime, cycleDuration) {
25962
- var whole = Math.floor(tTime /= cycleDuration);
25947
+ var whole = Math.floor(tTime = _roundPrecise(tTime / cycleDuration));
25963
25948
  return tTime && whole === tTime ? whole - 1 : whole;
25964
25949
  }, _parentToChildTotalTime = function _parentToChildTotalTime2(parentTime, child) {
25965
25950
  return (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : child._dirty ? child.totalDuration() : child._tDur);
@@ -26740,7 +26725,7 @@ void main(void)\r
26740
26725
  }, easeOut);
26741
26726
  })(7.5625, 2.75);
26742
26727
  _insertEase("Expo", function(p2) {
26743
- return p2 ? Math.pow(2, 10 * (p2 - 1)) : 0;
26728
+ return Math.pow(2, 10 * (p2 - 1)) * p2 + p2 * p2 * p2 * p2 * p2 * p2 * (1 - p2);
26744
26729
  });
26745
26730
  _insertEase("Circ", function(p2) {
26746
26731
  return -(_sqrt(1 - p2 * p2) - 1);
@@ -26837,7 +26822,7 @@ void main(void)\r
26837
26822
  return arguments.length ? this.totalTime(Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay) || (value ? this._dur : 0), suppressEvents) : this._time;
26838
26823
  };
26839
26824
  _proto.totalProgress = function totalProgress(value, suppressEvents) {
26840
- return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() > 0 ? 1 : 0;
26825
+ return arguments.length ? this.totalTime(this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
26841
26826
  };
26842
26827
  _proto.progress = function progress(value, suppressEvents) {
26843
26828
  return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
@@ -26856,7 +26841,7 @@ void main(void)\r
26856
26841
  var tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime;
26857
26842
  this._rts = +value || 0;
26858
26843
  this._ts = this._ps || value === -_tinyNum ? 0 : this._rts;
26859
- this.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), suppressEvents !== false);
26844
+ this.totalTime(_clamp(-Math.abs(this._delay), this.totalDuration(), tTime), suppressEvents !== false);
26860
26845
  _setEnd(this);
26861
26846
  return _recacheAncestors(this);
26862
26847
  };
@@ -26899,7 +26884,7 @@ void main(void)\r
26899
26884
  }
26900
26885
  var prevIsReverting = _reverting$1;
26901
26886
  _reverting$1 = config2;
26902
- if (this._initted || this._startAt) {
26887
+ if (_isRevertWorthy(this)) {
26903
26888
  this.timeline && this.timeline.revert(config2);
26904
26889
  this.totalTime(-0.01, config2.suppressEvents);
26905
26890
  }
@@ -26942,7 +26927,9 @@ void main(void)\r
26942
26927
  return this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));
26943
26928
  };
26944
26929
  _proto.restart = function restart(includeDelay, suppressEvents) {
26945
- return this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
26930
+ this.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));
26931
+ this._dur || (this._zTime = -_tinyNum);
26932
+ return this;
26946
26933
  };
26947
26934
  _proto.play = function play(from, suppressEvents) {
26948
26935
  from != null && this.seek(from, suppressEvents);
@@ -27119,8 +27106,9 @@ void main(void)\r
27119
27106
  iteration = this._repeat;
27120
27107
  time = dur;
27121
27108
  } else {
27122
- iteration = ~~(tTime / cycleDuration);
27123
- if (iteration && iteration === tTime / cycleDuration) {
27109
+ prevIteration = _roundPrecise(tTime / cycleDuration);
27110
+ iteration = ~~prevIteration;
27111
+ if (iteration && iteration === prevIteration) {
27124
27112
  time = dur;
27125
27113
  iteration--;
27126
27114
  }
@@ -27174,7 +27162,7 @@ void main(void)\r
27174
27162
  this._zTime = totalTime;
27175
27163
  prevTime = 0;
27176
27164
  }
27177
- if (!prevTime && time && !suppressEvents && !iteration) {
27165
+ if (!prevTime && tTime && !suppressEvents && !prevIteration) {
27178
27166
  _callback(this, "onStart");
27179
27167
  if (this._tTime !== tTime) {
27180
27168
  return this;
@@ -27206,7 +27194,7 @@ void main(void)\r
27206
27194
  if (child.parent !== this) {
27207
27195
  return this.render(totalTime, suppressEvents, force);
27208
27196
  }
27209
- child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 && (child._initted || child._startAt));
27197
+ child.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || _reverting$1 && _isRevertWorthy(child));
27210
27198
  if (time !== this._time || !this._ts && !prevPaused) {
27211
27199
  pauseTween = 0;
27212
27200
  next && (tTime += this._zTime = adjustedTime ? -_tinyNum : _tinyNum);
@@ -27303,7 +27291,7 @@ void main(void)\r
27303
27291
  if (_isFunction(child)) {
27304
27292
  return this.killTweensOf(child);
27305
27293
  }
27306
- _removeLinkedListItem(this, child);
27294
+ child.parent === this && _removeLinkedListItem(this, child);
27307
27295
  if (child === this._recent) {
27308
27296
  this._recent = this._last;
27309
27297
  }
@@ -27905,7 +27893,7 @@ void main(void)\r
27905
27893
  var prevTime = this._time, tDur = this._tDur, dur = this._dur, isNegative = totalTime < 0, tTime = totalTime > tDur - _tinyNum && !isNegative ? tDur : totalTime < _tinyNum ? 0 : totalTime, time, pt, iteration, cycleDuration, prevIteration, isYoyo, ratio, timeline, yoyoEase;
27906
27894
  if (!dur) {
27907
27895
  _renderZeroDurationTween(this, totalTime, suppressEvents, force);
27908
- } else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative) {
27896
+ } else if (tTime !== this._tTime || !totalTime || force || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== isNegative || this._lazy) {
27909
27897
  time = tTime;
27910
27898
  timeline = this.timeline;
27911
27899
  if (this._repeat) {
@@ -27918,12 +27906,14 @@ void main(void)\r
27918
27906
  iteration = this._repeat;
27919
27907
  time = dur;
27920
27908
  } else {
27921
- iteration = ~~(tTime / cycleDuration);
27922
- if (iteration && iteration === _roundPrecise(tTime / cycleDuration)) {
27909
+ prevIteration = _roundPrecise(tTime / cycleDuration);
27910
+ iteration = ~~prevIteration;
27911
+ if (iteration && iteration === prevIteration) {
27923
27912
  time = dur;
27924
27913
  iteration--;
27914
+ } else if (time > dur) {
27915
+ time = dur;
27925
27916
  }
27926
- time > dur && (time = dur);
27927
27917
  }
27928
27918
  isYoyo = this._yoyo && iteration & 1;
27929
27919
  if (isYoyo) {
@@ -27937,7 +27927,7 @@ void main(void)\r
27937
27927
  }
27938
27928
  if (iteration !== prevIteration) {
27939
27929
  timeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);
27940
- if (this.vars.repeatRefresh && !isYoyo && !this._lock && this._time !== cycleDuration && this._initted) {
27930
+ if (this.vars.repeatRefresh && !isYoyo && !this._lock && time !== cycleDuration && this._initted) {
27941
27931
  this._lock = force = 1;
27942
27932
  this.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;
27943
27933
  }
@@ -27965,7 +27955,7 @@ void main(void)\r
27965
27955
  if (this._from) {
27966
27956
  this.ratio = ratio = 1 - ratio;
27967
27957
  }
27968
- if (time && !prevTime && !suppressEvents && !iteration) {
27958
+ if (!prevTime && tTime && !suppressEvents && !prevIteration) {
27969
27959
  _callback(this, "onStart");
27970
27960
  if (this._tTime !== tTime) {
27971
27961
  return this;
@@ -28022,7 +28012,8 @@ void main(void)\r
28022
28012
  }
28023
28013
  if (!targets && (!vars || vars === "all")) {
28024
28014
  this._lazy = this._pt = 0;
28025
- return this.parent ? _interrupt(this) : this;
28015
+ this.parent ? _interrupt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!_reverting$1);
28016
+ return this;
28026
28017
  }
28027
28018
  if (this.timeline) {
28028
28019
  var tDur = this.timeline.totalDuration();
@@ -28469,8 +28460,8 @@ void main(void)\r
28469
28460
  };
28470
28461
  },
28471
28462
  quickTo: function quickTo(target, property, vars) {
28472
- var _merge2;
28473
- var tween = gsap.to(target, _merge((_merge2 = {}, _merge2[property] = "+=0.1", _merge2.paused = true, _merge2), vars || {})), func = function func2(value, start, startIsRelative) {
28463
+ var _setDefaults2;
28464
+ var tween = gsap.to(target, _setDefaults((_setDefaults2 = {}, _setDefaults2[property] = "+=0.1", _setDefaults2.paused = true, _setDefaults2.stagger = 0, _setDefaults2), vars || {})), func = function func2(value, start, startIsRelative) {
28474
28465
  return tween.resetTo(property, value, start, startIsRelative);
28475
28466
  };
28476
28467
  func.tween = tween;
@@ -28632,6 +28623,7 @@ void main(void)\r
28632
28623
  }, _buildModifierPlugin = function _buildModifierPlugin2(name, modifier) {
28633
28624
  return {
28634
28625
  name,
28626
+ headless: 1,
28635
28627
  rawVars: 1,
28636
28628
  //don't pre-process function-based values or "random()" strings.
28637
28629
  init: function init2(target, vars, tween) {
@@ -28678,6 +28670,7 @@ void main(void)\r
28678
28670
  }
28679
28671
  }, {
28680
28672
  name: "endArray",
28673
+ headless: 1,
28681
28674
  init: function init2(target, value) {
28682
28675
  var i2 = value.length;
28683
28676
  while (i2--) {
@@ -28685,7 +28678,7 @@ void main(void)\r
28685
28678
  }
28686
28679
  }
28687
28680
  }, _buildModifierPlugin("roundProps", _roundModifier), _buildModifierPlugin("modifiers"), _buildModifierPlugin("snap", snap)) || _gsap;
28688
- Tween.version = Timeline$1.version = gsap.version = "3.12.5";
28681
+ Tween.version = Timeline$1.version = gsap.version = "3.13.0";
28689
28682
  _coreReady = 1;
28690
28683
  _windowExists$1() && _wake();
28691
28684
  _easeMap.Power0;
@@ -28707,12 +28700,11 @@ void main(void)\r
28707
28700
  _easeMap.Expo;
28708
28701
  _easeMap.Circ;
28709
28702
  /*!
28710
- * CSSPlugin 3.12.5
28703
+ * CSSPlugin 3.13.0
28711
28704
  * https://gsap.com
28712
28705
  *
28713
- * Copyright 2008-2024, GreenSock. All rights reserved.
28714
- * Subject to the terms at https://gsap.com/standard-license or for
28715
- * Club GSAP members, the agreement issued with that membership.
28706
+ * Copyright 2008-2025, GreenSock. All rights reserved.
28707
+ * Subject to the terms at https://gsap.com/standard-license
28716
28708
  * @author: Jack Doyle, jack@greensock.com
28717
28709
  */
28718
28710
  var _win, _doc, _docElement, _pluginInitted, _tempDiv, _recentSetterPlugin, _reverting, _windowExists = function _windowExists2() {
@@ -28785,7 +28777,13 @@ void main(void)\r
28785
28777
  }, _revertStyle = function _revertStyle2() {
28786
28778
  var props = this.props, target = this.target, style = target.style, cache = target._gsap, i2, p2;
28787
28779
  for (i2 = 0; i2 < props.length; i2 += 3) {
28788
- props[i2 + 1] ? target[props[i2]] = props[i2 + 2] : props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
28780
+ if (!props[i2 + 1]) {
28781
+ props[i2 + 2] ? style[props[i2]] = props[i2 + 2] : style.removeProperty(props[i2].substr(0, 2) === "--" ? props[i2] : props[i2].replace(_capsExp, "-$1").toLowerCase());
28782
+ } else if (props[i2 + 1] === 2) {
28783
+ target[props[i2]](props[i2 + 2]);
28784
+ } else {
28785
+ target[props[i2]] = props[i2 + 2];
28786
+ }
28789
28787
  }
28790
28788
  if (this.tfm) {
28791
28789
  for (p2 in this.tfm) {
@@ -28814,7 +28812,7 @@ void main(void)\r
28814
28812
  save: _saveStyle
28815
28813
  };
28816
28814
  target._gsap || gsap.core.getCache(target);
28817
- properties && properties.split(",").forEach(function(p2) {
28815
+ properties && target.style && target.nodeType && properties.split(",").forEach(function(p2) {
28818
28816
  return saver.save(p2);
28819
28817
  });
28820
28818
  return saver;
@@ -28849,30 +28847,17 @@ void main(void)\r
28849
28847
  _reverting = gsap.core.reverting;
28850
28848
  _pluginInitted = 1;
28851
28849
  }
28852
- }, _getBBoxHack = function _getBBoxHack2(swapIfPossible) {
28853
- var svg = _createElement("svg", this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), oldParent = this.parentNode, oldSibling = this.nextSibling, oldCSS = this.style.cssText, bbox;
28850
+ }, _getReparentedCloneBBox = function _getReparentedCloneBBox2(target) {
28851
+ var owner = target.ownerSVGElement, svg = _createElement("svg", owner && owner.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), clone2 = target.cloneNode(true), bbox;
28852
+ clone2.style.display = "block";
28853
+ svg.appendChild(clone2);
28854
28854
  _docElement.appendChild(svg);
28855
- svg.appendChild(this);
28856
- this.style.display = "block";
28857
- if (swapIfPossible) {
28858
- try {
28859
- bbox = this.getBBox();
28860
- this._gsapBBox = this.getBBox;
28861
- this.getBBox = _getBBoxHack2;
28862
- } catch (e2) {
28863
- }
28864
- } else if (this._gsapBBox) {
28865
- bbox = this._gsapBBox();
28866
- }
28867
- if (oldParent) {
28868
- if (oldSibling) {
28869
- oldParent.insertBefore(this, oldSibling);
28870
- } else {
28871
- oldParent.appendChild(this);
28872
- }
28855
+ try {
28856
+ bbox = clone2.getBBox();
28857
+ } catch (e2) {
28873
28858
  }
28859
+ svg.removeChild(clone2);
28874
28860
  _docElement.removeChild(svg);
28875
- this.style.cssText = oldCSS;
28876
28861
  return bbox;
28877
28862
  }, _getAttributeFallbacks = function _getAttributeFallbacks2(target, attributesArray) {
28878
28863
  var i2 = attributesArray.length;
@@ -28882,13 +28867,14 @@ void main(void)\r
28882
28867
  }
28883
28868
  }
28884
28869
  }, _getBBox = function _getBBox2(target) {
28885
- var bounds;
28870
+ var bounds, cloned;
28886
28871
  try {
28887
28872
  bounds = target.getBBox();
28888
28873
  } catch (error) {
28889
- bounds = _getBBoxHack.call(target, true);
28874
+ bounds = _getReparentedCloneBBox(target);
28875
+ cloned = 1;
28890
28876
  }
28891
- bounds && (bounds.width || bounds.height) || target.getBBox === _getBBoxHack || (bounds = _getBBoxHack.call(target, true));
28877
+ bounds && (bounds.width || bounds.height) || cloned || (bounds = _getReparentedCloneBBox(target));
28892
28878
  return bounds && !bounds.width && !bounds.x && !bounds.y ? {
28893
28879
  x: +_getAttributeFallbacks(target, ["x", "cx", "x1"]) || 0,
28894
28880
  y: +_getAttributeFallbacks(target, ["y", "cy", "y1"]) || 0,
@@ -28939,7 +28925,7 @@ void main(void)\r
28939
28925
  return _round(toPercent ? curValue / px * amount : curValue / 100 * px);
28940
28926
  }
28941
28927
  style[horizontal ? "width" : "height"] = amount + (toPixels ? curUnit : unit);
28942
- parent = ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
28928
+ parent = unit !== "rem" && ~property.indexOf("adius") || unit === "em" && target.appendChild && !isRootSVG ? target : target.parentNode;
28943
28929
  if (isSVG) {
28944
28930
  parent = (target.ownerSVGElement || {}).parentNode;
28945
28931
  }
@@ -29004,6 +28990,9 @@ void main(void)\r
29004
28990
  pt.e = end;
29005
28991
  start += "";
29006
28992
  end += "";
28993
+ if (end.substring(0, 6) === "var(--") {
28994
+ end = _getComputedProperty(target, end.substring(4, end.indexOf(")")));
28995
+ }
29007
28996
  if (end === "auto") {
29008
28997
  startValue = target.style[prop];
29009
28998
  target.style[prop] = end;
@@ -29097,6 +29086,7 @@ void main(void)\r
29097
29086
  _removeProperty(target, _transformProp);
29098
29087
  if (cache) {
29099
29088
  cache.svg && target.removeAttribute("transform");
29089
+ style.scale = style.rotate = style.translate = "none";
29100
29090
  _parseTransform(target, 1);
29101
29091
  cache.uncache = 1;
29102
29092
  _removeIndependentTransforms(style);
@@ -29192,7 +29182,7 @@ void main(void)\r
29192
29182
  temp = style.display;
29193
29183
  style.display = "block";
29194
29184
  parent = target.parentNode;
29195
- if (!parent || !target.offsetParent) {
29185
+ if (!parent || !target.offsetParent && !target.getBoundingClientRect().width) {
29196
29186
  addedToDOM = 1;
29197
29187
  nextSibling = target.nextElementSibling;
29198
29188
  _docElement.appendChild(target);
@@ -29628,6 +29618,10 @@ void main(void)\r
29628
29618
  isTransformRelated = p2 in _transformProps;
29629
29619
  if (isTransformRelated) {
29630
29620
  this.styles.save(p2);
29621
+ if (type2 === "string" && endValue.substring(0, 6) === "var(--") {
29622
+ endValue = _getComputedProperty(target, endValue.substring(4, endValue.indexOf(")")));
29623
+ endNum = parseFloat(endValue);
29624
+ }
29631
29625
  if (!transformPropTween) {
29632
29626
  cache = target._gsap;
29633
29627
  cache.renderTransform && !vars.parseTransform || _parseTransform(target, vars.parseTransform);
@@ -29691,7 +29685,7 @@ void main(void)\r
29691
29685
  } else {
29692
29686
  _tweenComplexCSSString.call(this, target, p2, startValue, relative ? relative + endValue : endValue);
29693
29687
  }
29694
- isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : inlineProps.push(p2, 1, startValue || target[p2]));
29688
+ isTransformRelated || (p2 in style ? inlineProps.push(p2, 0, style[p2]) : typeof target[p2] === "function" ? inlineProps.push(p2, 2, target[p2]()) : inlineProps.push(p2, 1, startValue || target[p2]));
29695
29689
  props.push(p2);
29696
29690
  }
29697
29691
  }
@@ -32898,7 +32892,11 @@ void main(void)\r
32898
32892
  /**
32899
32893
  * past Spine.globalDelayLimit
32900
32894
  */
32901
- GLOBAL_DELAY_LIMIT: 0
32895
+ GLOBAL_DELAY_LIMIT: 0,
32896
+ /**
32897
+ * shows error in console if atlas page loading somehow failed
32898
+ */
32899
+ REPORT_TEXTURE_LOADER_ERROR: true
32902
32900
  };
32903
32901
  const tempRgb = [0, 0, 0];
32904
32902
  class SpineSprite extends Sprite {
@@ -33293,6 +33291,9 @@ void main(void)\r
33293
33291
  * @private
33294
33292
  */
33295
33293
  createMesh(slot, attachment) {
33294
+ if (!attachment.region && attachment.sequence) {
33295
+ attachment.sequence.apply(slot, attachment);
33296
+ }
33296
33297
  let region = attachment.region;
33297
33298
  if (slot.hackAttachment === attachment) {
33298
33299
  region = slot.hackRegion;
@@ -40000,9 +40001,16 @@ void main(void)\r
40000
40001
  };
40001
40002
  const makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject = (loader, atlasBasePath, imageMetadata) => {
40002
40003
  return async (pageName, textureLoadedCallback) => {
40003
- const url = path.normalize([...atlasBasePath.split(path.sep), pageName].join(path.sep));
40004
- const texture = await loader.load({ src: url, data: imageMetadata });
40005
- textureLoadedCallback(texture.baseTexture);
40004
+ try {
40005
+ const url = path.normalize([...atlasBasePath.split(path.sep), pageName].join(path.sep));
40006
+ const texture = await loader.load({ src: url, data: imageMetadata });
40007
+ textureLoadedCallback(texture.baseTexture);
40008
+ } catch (e2) {
40009
+ {
40010
+ console.error("Spine: error in texture loader", e2);
40011
+ }
40012
+ textureLoadedCallback(null);
40013
+ }
40006
40014
  };
40007
40015
  };
40008
40016
  extensions$2.add(spineTextureAtlasLoader);
@@ -55019,19 +55027,22 @@ void main(void){
55019
55027
  });
55020
55028
  });
55021
55029
  };
55022
- const LibPixiGridLayout = (items, gap, cols = items.length) => {
55023
- let lastX = 0;
55030
+ const LibPixiGridLayout = (items, gap, cols = items.length, direction = "row") => {
55031
+ const rows = Math.ceil(items.length / cols);
55024
55032
  items.forEach((item, index) => {
55025
55033
  const itemWidth = item.width || 0;
55026
55034
  const itemHeight = item.height || 0;
55027
- const colIndex = index % cols;
55028
- const rowIndex = Math.floor(index / cols);
55029
- item.x = colIndex === 0 ? 0 : lastX + gap;
55030
- item.y = rowIndex * (itemHeight + gap);
55031
- lastX = item.x + itemWidth;
55032
- if (colIndex === cols - 1) {
55033
- lastX = 0;
55035
+ let colIndex = 0;
55036
+ let rowIndex = 0;
55037
+ if (direction === "row") {
55038
+ colIndex = index % cols;
55039
+ rowIndex = Math.floor(index / cols);
55040
+ } else {
55041
+ colIndex = Math.floor(index / rows);
55042
+ rowIndex = index % rows;
55034
55043
  }
55044
+ item.x = colIndex * (itemWidth + gap);
55045
+ item.y = rowIndex * (itemHeight + gap);
55035
55046
  });
55036
55047
  };
55037
55048
  const LibPixiArrangeLinear = (items, gap, direction = "x") => {
@@ -55320,10 +55331,10 @@ void main(void){
55320
55331
  }
55321
55332
  }
55322
55333
  /*!
55323
- * decimal.js v10.4.3
55334
+ * decimal.js v10.5.0
55324
55335
  * An arbitrary-precision Decimal type for JavaScript.
55325
55336
  * https://github.com/MikeMcl/decimal.js
55326
- * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
55337
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
55327
55338
  * MIT Licence
55328
55339
  */
55329
55340
  var EXP_LIMIT = 9e15, MAX_DIGITS = 1e9, NUMERALS = "0123456789abcdef", LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", DEFAULTS = {
@@ -55592,7 +55603,7 @@ void main(void){
55592
55603
  return divide(x2.sinh(), x2.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
55593
55604
  };
55594
55605
  P.inverseCosine = P.acos = function() {
55595
- var halfPi, x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
55606
+ var x2 = this, Ctor = x2.constructor, k2 = x2.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
55596
55607
  if (k2 !== -1) {
55597
55608
  return k2 === 0 ? x2.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
55598
55609
  }
@@ -55600,11 +55611,10 @@ void main(void){
55600
55611
  return getPi(Ctor, pr + 4, rm).times(0.5);
55601
55612
  Ctor.precision = pr + 6;
55602
55613
  Ctor.rounding = 1;
55603
- x2 = x2.asin();
55604
- halfPi = getPi(Ctor, pr + 4, rm).times(0.5);
55614
+ x2 = new Ctor(1).minus(x2).div(x2.plus(1)).sqrt().atan();
55605
55615
  Ctor.precision = pr;
55606
55616
  Ctor.rounding = rm;
55607
- return halfPi.minus(x2);
55617
+ return x2.times(2);
55608
55618
  };
55609
55619
  P.inverseHyperbolicCosine = P.acosh = function() {
55610
55620
  var pr, rm, x2 = this, Ctor = x2.constructor;
@@ -56816,14 +56826,16 @@ void main(void){
56816
56826
  function isOdd(n2) {
56817
56827
  return n2.d[n2.d.length - 1] & 1;
56818
56828
  }
56819
- function maxOrMin(Ctor, args, ltgt) {
56820
- var y2, x2 = new Ctor(args[0]), i2 = 0;
56829
+ function maxOrMin(Ctor, args, n2) {
56830
+ var k2, y2, x2 = new Ctor(args[0]), i2 = 0;
56821
56831
  for (; ++i2 < args.length; ) {
56822
56832
  y2 = new Ctor(args[i2]);
56823
56833
  if (!y2.s) {
56824
56834
  x2 = y2;
56825
56835
  break;
56826
- } else if (x2[ltgt](y2)) {
56836
+ }
56837
+ k2 = x2.cmp(y2);
56838
+ if (k2 === n2 || k2 === 0 && x2.s === n2) {
56827
56839
  x2 = y2;
56828
56840
  }
56829
56841
  }
@@ -57404,7 +57416,8 @@ void main(void){
57404
57416
  x2.d = [v2];
57405
57417
  }
57406
57418
  return;
57407
- } else if (v2 * 0 !== 0) {
57419
+ }
57420
+ if (v2 * 0 !== 0) {
57408
57421
  if (!v2)
57409
57422
  x2.s = NaN;
57410
57423
  x2.e = NaN;
@@ -57412,18 +57425,28 @@ void main(void){
57412
57425
  return;
57413
57426
  }
57414
57427
  return parseDecimal(x2, v2.toString());
57415
- } else if (t2 !== "string") {
57416
- throw Error(invalidArgument + v2);
57417
57428
  }
57418
- if ((i3 = v2.charCodeAt(0)) === 45) {
57419
- v2 = v2.slice(1);
57420
- x2.s = -1;
57421
- } else {
57422
- if (i3 === 43)
57429
+ if (t2 === "string") {
57430
+ if ((i3 = v2.charCodeAt(0)) === 45) {
57423
57431
  v2 = v2.slice(1);
57424
- x2.s = 1;
57432
+ x2.s = -1;
57433
+ } else {
57434
+ if (i3 === 43)
57435
+ v2 = v2.slice(1);
57436
+ x2.s = 1;
57437
+ }
57438
+ return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
57425
57439
  }
57426
- return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
57440
+ if (t2 === "bigint") {
57441
+ if (v2 < 0) {
57442
+ v2 = -v2;
57443
+ x2.s = -1;
57444
+ } else {
57445
+ x2.s = 1;
57446
+ }
57447
+ return parseDecimal(x2, v2.toString());
57448
+ }
57449
+ throw Error(invalidArgument + v2);
57427
57450
  }
57428
57451
  Decimal2.prototype = P;
57429
57452
  Decimal2.ROUND_UP = 0;
@@ -57533,10 +57556,10 @@ void main(void){
57533
57556
  return new this(x2).log(10);
57534
57557
  }
57535
57558
  function max() {
57536
- return maxOrMin(this, arguments, "lt");
57559
+ return maxOrMin(this, arguments, -1);
57537
57560
  }
57538
57561
  function min() {
57539
- return maxOrMin(this, arguments, "gt");
57562
+ return maxOrMin(this, arguments, 1);
57540
57563
  }
57541
57564
  function mod(x2, y2) {
57542
57565
  return new this(x2).mod(y2);
@@ -57751,18 +57774,6 @@ void main(void){
57751
57774
  this.endFill();
57752
57775
  }
57753
57776
  }
57754
- class LibDestroyContainer extends Container {
57755
- constructor() {
57756
- super();
57757
- }
57758
- /** @description 销毁 */
57759
- async destroy() {
57760
- var _a, _b;
57761
- await ((_a = this._onBeforeDestroy) == null ? void 0 : _a.call(this));
57762
- super.destroy({ children: true });
57763
- (_b = this._onDestroyed) == null ? void 0 : _b.call(this);
57764
- }
57765
- }
57766
57777
  const fallbackCopy = (text) => {
57767
57778
  const textarea = document.createElement("textarea");
57768
57779
  textarea.value = text;
@@ -58044,9 +58055,7 @@ void main(void){
58044
58055
  /** @description 自定义富文本类
58045
58056
  * @link 使用方法:https://www.npmjs.com/package/lyb-pixi-js#LibPixiHtmlText-自定义富文本类
58046
58057
  */
58047
- LibPixiHtmlText,
58048
- /** @description 带销毁的容器 */
58049
- LibDestroyContainer
58058
+ LibPixiHtmlText
58050
58059
  },
58051
58060
  Custom: {
58052
58061
  /** @description 悬浮切换材质
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-pixi-js",
3
- "version": "1.11.30",
3
+ "version": "1.11.32",
4
4
  "description": "自用Pixi.JS方法库",
5
5
  "license": "ISC",
6
6
  "exports": {