exodeui 2.6.11 → 2.6.12

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/index.mjs CHANGED
@@ -4,7 +4,7 @@ var O = (E, A, I) => EC(E, typeof A != "symbol" ? A + "" : A, I);
4
4
  import { jsx as iC } from "react/jsx-runtime";
5
5
  import { forwardRef as DC, useRef as jA, useImperativeHandle as oC, useEffect as tA, useState as wC, useCallback as LA } from "react";
6
6
  var GC = /* @__PURE__ */ ((E) => (E.Equal = "Equal", E.NotEqual = "NotEqual", E.GreaterThan = "GreaterThan", E.LessThan = "LessThan", E.GreaterEqual = "GreaterEqual", E.LessEqual = "LessEqual", E.IsTrue = "IsTrue", E.IsFalse = "IsFalse", E))(GC || {}), qA = /* @__PURE__ */ ((E) => (E.AND = "AND", E.OR = "OR", E.NOT = "NOT", E.XOR = "XOR", E))(qA || {});
7
- let Q;
7
+ let B;
8
8
  const Y = new Array(128).fill(void 0);
9
9
  function c(E) {
10
10
  return Y[E];
@@ -20,7 +20,7 @@ function xA(E, A) {
20
20
  try {
21
21
  return E.apply(this, A);
22
22
  } catch (I) {
23
- Q.__wbindgen_export_0(r(I));
23
+ B.__wbindgen_export_0(r(I));
24
24
  }
25
25
  }
26
26
  const Yg = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : { decode: () => {
@@ -29,14 +29,14 @@ const Yg = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0,
29
29
  typeof TextDecoder < "u" && Yg.decode();
30
30
  let rA = null;
31
31
  function JI(E, A) {
32
- return E >>>= 0, Yg.decode((rA !== null && rA.byteLength !== 0 || (rA = new Uint8Array(Q.memory.buffer)), rA).subarray(E, E + A));
32
+ return E >>>= 0, Yg.decode((rA !== null && rA.byteLength !== 0 || (rA = new Uint8Array(B.memory.buffer)), rA).subarray(E, E + A));
33
33
  }
34
34
  function U(E) {
35
35
  return E == null;
36
36
  }
37
37
  let NA = null;
38
38
  function X() {
39
- return (NA === null || NA.buffer.detached === !0 || NA.buffer.detached === void 0 && NA.buffer !== Q.memory.buffer) && (NA = new DataView(Q.memory.buffer)), NA;
39
+ return (NA === null || NA.buffer.detached === !0 || NA.buffer.detached === void 0 && NA.buffer !== B.memory.buffer) && (NA = new DataView(B.memory.buffer)), NA;
40
40
  }
41
41
  function XA(E) {
42
42
  const A = c(E);
@@ -54,18 +54,18 @@ function f(E) {
54
54
  }
55
55
  let eA = null;
56
56
  function hC(E, A) {
57
- return E >>>= 0, (eA !== null && eA.byteLength !== 0 || (eA = new Int32Array(Q.memory.buffer)), eA).subarray(E / 4, E / 4 + A);
57
+ return E >>>= 0, (eA !== null && eA.byteLength !== 0 || (eA = new Int32Array(B.memory.buffer)), eA).subarray(E / 4, E / 4 + A);
58
58
  }
59
59
  let HA = null;
60
60
  function tg() {
61
- return HA !== null && HA.byteLength !== 0 || (HA = new Float32Array(Q.memory.buffer)), HA;
61
+ return HA !== null && HA.byteLength !== 0 || (HA = new Float32Array(B.memory.buffer)), HA;
62
62
  }
63
63
  function Ig(E, A) {
64
64
  return E >>>= 0, tg().subarray(E / 4, E / 4 + A);
65
65
  }
66
66
  let lA = null;
67
67
  function Lg() {
68
- return lA !== null && lA.byteLength !== 0 || (lA = new Uint32Array(Q.memory.buffer)), lA;
68
+ return lA !== null && lA.byteLength !== 0 || (lA = new Uint32Array(B.memory.buffer)), lA;
69
69
  }
70
70
  let $ = 0;
71
71
  function GI(E, A) {
@@ -78,7 +78,7 @@ function GA(E, A) {
78
78
  }
79
79
  const _A = Object.freeze({ LinX: 0, 0: "LinX", LinY: 1, 1: "LinY", AngX: 2, 2: "AngX" }), hA = Object.freeze({ Revolute: 0, 0: "Revolute", Fixed: 1, 1: "Fixed", Prismatic: 2, 2: "Prismatic", Rope: 3, 3: "Rope", Spring: 4, 4: "Spring", Generic: 5, 5: "Generic" }), P = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolygon: 9, 9: "ConvexPolygon", RoundCuboid: 10, 10: "RoundCuboid", RoundTriangle: 11, 11: "RoundTriangle", RoundConvexPolygon: 12, 12: "RoundConvexPolygon", HalfSpace: 13, 13: "HalfSpace", Voxels: 14, 14: "Voxels" }), hI = typeof FinalizationRegistry > "u" ? { register: () => {
80
80
  }, unregister: () => {
81
- } } : new FinalizationRegistry((E) => Q.__wbg_rawbroadphase_free(E >>> 0, 1));
81
+ } } : new FinalizationRegistry((E) => B.__wbg_rawbroadphase_free(E >>> 0, 1));
82
82
  class KA {
83
83
  static __wrap(A) {
84
84
  A >>>= 0;
@@ -91,91 +91,91 @@ class KA {
91
91
  }
92
92
  free() {
93
93
  const A = this.__destroy_into_raw();
94
- Q.__wbg_rawbroadphase_free(A, 0);
94
+ B.__wbg_rawbroadphase_free(A, 0);
95
95
  }
96
96
  constructor() {
97
- const A = Q.rawbroadphase_new();
97
+ const A = B.rawbroadphase_new();
98
98
  return this.__wbg_ptr = A >>> 0, hI.register(this, this.__wbg_ptr, this), this;
99
99
  }
100
- castRay(A, I, g, C, B, i, D, o, w, K, h, s) {
100
+ castRay(A, I, g, C, Q, i, D, o, w, h, K, s) {
101
101
  try {
102
- G(A, W), G(I, n), G(g, b), G(C, N), G(B, N);
103
- const y = Q.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, o, U(w) ? 4294967297 : w >>> 0, !U(K), U(K) ? 0 : K, !U(h), U(h) ? 0 : h, f(s));
102
+ G(A, W), G(I, n), G(g, b), G(C, N), G(Q, N);
103
+ const y = B.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i, D, o, U(w) ? 4294967297 : w >>> 0, !U(h), U(h) ? 0 : h, !U(K), U(K) ? 0 : K, f(s));
104
104
  return y === 0 ? void 0 : fI.__wrap(y);
105
105
  } finally {
106
106
  Y[H++] = void 0;
107
107
  }
108
108
  }
109
- castRayAndGetNormal(A, I, g, C, B, i, D, o, w, K, h, s) {
109
+ castRayAndGetNormal(A, I, g, C, Q, i, D, o, w, h, K, s) {
110
110
  try {
111
- G(A, W), G(I, n), G(g, b), G(C, N), G(B, N);
112
- const y = Q.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, o, U(w) ? 4294967297 : w >>> 0, !U(K), U(K) ? 0 : K, !U(h), U(h) ? 0 : h, f(s));
111
+ G(A, W), G(I, n), G(g, b), G(C, N), G(Q, N);
112
+ const y = B.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i, D, o, U(w) ? 4294967297 : w >>> 0, !U(h), U(h) ? 0 : h, !U(K), U(K) ? 0 : K, f(s));
113
113
  return y === 0 ? void 0 : II.__wrap(y);
114
114
  } finally {
115
115
  Y[H++] = void 0;
116
116
  }
117
117
  }
118
- intersectionsWithRay(A, I, g, C, B, i, D, o, w, K, h, s, y) {
118
+ intersectionsWithRay(A, I, g, C, Q, i, D, o, w, h, K, s, y) {
119
119
  try {
120
- G(A, W), G(I, n), G(g, b), G(C, N), G(B, N), Q.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, f(o), w, U(K) ? 4294967297 : K >>> 0, !U(h), U(h) ? 0 : h, !U(s), U(s) ? 0 : s, f(y));
120
+ G(A, W), G(I, n), G(g, b), G(C, N), G(Q, N), B.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i, D, f(o), w, U(h) ? 4294967297 : h >>> 0, !U(K), U(K) ? 0 : K, !U(s), U(s) ? 0 : s, f(y));
121
121
  } finally {
122
122
  Y[H++] = void 0, Y[H++] = void 0;
123
123
  }
124
124
  }
125
- intersectionWithShape(A, I, g, C, B, i, D, o, w, K, h) {
125
+ intersectionWithShape(A, I, g, C, Q, i, D, o, w, h, K) {
126
126
  try {
127
- const a = Q.__wbindgen_add_to_stack_pointer(-16);
128
- G(A, W), G(I, n), G(g, b), G(C, N), G(B, t), G(i, R), Q.rawbroadphase_intersectionWithShape(a, this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D, U(o) ? 4294967297 : o >>> 0, !U(w), U(w) ? 0 : w, !U(K), U(K) ? 0 : K, f(h));
127
+ const a = B.__wbindgen_add_to_stack_pointer(-16);
128
+ G(A, W), G(I, n), G(g, b), G(C, N), G(Q, t), G(i, R), B.rawbroadphase_intersectionWithShape(a, this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i.__wbg_ptr, D, U(o) ? 4294967297 : o >>> 0, !U(w), U(w) ? 0 : w, !U(h), U(h) ? 0 : h, f(K));
129
129
  var s = X().getInt32(a + 0, !0), y = X().getFloat64(a + 8, !0);
130
130
  return s === 0 ? void 0 : y;
131
131
  } finally {
132
- Q.__wbindgen_add_to_stack_pointer(16), Y[H++] = void 0;
132
+ B.__wbindgen_add_to_stack_pointer(16), Y[H++] = void 0;
133
133
  }
134
134
  }
135
- projectPoint(A, I, g, C, B, i, D, o, w, K) {
135
+ projectPoint(A, I, g, C, Q, i, D, o, w, h) {
136
136
  try {
137
137
  G(A, W), G(I, n), G(g, b), G(C, N);
138
- const h = Q.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i, U(D) ? 4294967297 : D >>> 0, !U(o), U(o) ? 0 : o, !U(w), U(w) ? 0 : w, f(K));
139
- return h === 0 ? void 0 : mA.__wrap(h);
138
+ const K = B.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, i, U(D) ? 4294967297 : D >>> 0, !U(o), U(o) ? 0 : o, !U(w), U(w) ? 0 : w, f(h));
139
+ return K === 0 ? void 0 : mA.__wrap(K);
140
140
  } finally {
141
141
  Y[H++] = void 0;
142
142
  }
143
143
  }
144
- projectPointAndGetFeature(A, I, g, C, B, i, D, o, w) {
144
+ projectPointAndGetFeature(A, I, g, C, Q, i, D, o, w) {
145
145
  try {
146
146
  G(A, W), G(I, n), G(g, b), G(C, N);
147
- const K = Q.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, U(i) ? 4294967297 : i >>> 0, !U(D), U(D) ? 0 : D, !U(o), U(o) ? 0 : o, f(w));
148
- return K === 0 ? void 0 : mA.__wrap(K);
147
+ const h = B.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, U(i) ? 4294967297 : i >>> 0, !U(D), U(D) ? 0 : D, !U(o), U(o) ? 0 : o, f(w));
148
+ return h === 0 ? void 0 : mA.__wrap(h);
149
149
  } finally {
150
150
  Y[H++] = void 0;
151
151
  }
152
152
  }
153
- intersectionsWithPoint(A, I, g, C, B, i, D, o, w, K) {
153
+ intersectionsWithPoint(A, I, g, C, Q, i, D, o, w, h) {
154
154
  try {
155
- G(A, W), G(I, n), G(g, b), G(C, N), Q.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, f(B), i, U(D) ? 4294967297 : D >>> 0, !U(o), U(o) ? 0 : o, !U(w), U(w) ? 0 : w, f(K));
155
+ G(A, W), G(I, n), G(g, b), G(C, N), B.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, f(Q), i, U(D) ? 4294967297 : D >>> 0, !U(o), U(o) ? 0 : o, !U(w), U(w) ? 0 : w, f(h));
156
156
  } finally {
157
157
  Y[H++] = void 0, Y[H++] = void 0;
158
158
  }
159
159
  }
160
- castShape(A, I, g, C, B, i, D, o, w, K, h, s, y, a, k) {
160
+ castShape(A, I, g, C, Q, i, D, o, w, h, K, s, y, a, k) {
161
161
  try {
162
- G(A, W), G(I, n), G(g, b), G(C, N), G(B, t), G(i, N), G(D, R);
163
- const F = Q.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o, w, K, h, U(s) ? 4294967297 : s >>> 0, !U(y), U(y) ? 0 : y, !U(a), U(a) ? 0 : a, f(k));
162
+ G(A, W), G(I, n), G(g, b), G(C, N), G(Q, t), G(i, N), G(D, R);
163
+ const F = B.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o, w, h, K, U(s) ? 4294967297 : s >>> 0, !U(y), U(y) ? 0 : y, !U(a), U(a) ? 0 : a, f(k));
164
164
  return F === 0 ? void 0 : $A.__wrap(F);
165
165
  } finally {
166
166
  Y[H++] = void 0;
167
167
  }
168
168
  }
169
- intersectionsWithShape(A, I, g, C, B, i, D, o, w, K, h, s) {
169
+ intersectionsWithShape(A, I, g, C, Q, i, D, o, w, h, K, s) {
170
170
  try {
171
- G(A, W), G(I, n), G(g, b), G(C, N), G(B, t), G(i, R), Q.rawbroadphase_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, f(D), o, U(w) ? 4294967297 : w >>> 0, !U(K), U(K) ? 0 : K, !U(h), U(h) ? 0 : h, f(s));
171
+ G(A, W), G(I, n), G(g, b), G(C, N), G(Q, t), G(i, R), B.rawbroadphase_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i.__wbg_ptr, f(D), o, U(w) ? 4294967297 : w >>> 0, !U(h), U(h) ? 0 : h, !U(K), U(K) ? 0 : K, f(s));
172
172
  } finally {
173
173
  Y[H++] = void 0, Y[H++] = void 0;
174
174
  }
175
175
  }
176
- collidersWithAabbIntersectingAabb(A, I, g, C, B, i) {
176
+ collidersWithAabbIntersectingAabb(A, I, g, C, Q, i) {
177
177
  try {
178
- G(A, W), G(I, n), G(g, b), G(C, N), G(B, N), Q.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, f(i));
178
+ G(A, W), G(I, n), G(g, b), G(C, N), G(Q, N), B.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, f(i));
179
179
  } finally {
180
180
  Y[H++] = void 0;
181
181
  }
@@ -183,7 +183,7 @@ class KA {
183
183
  }
184
184
  const gg = typeof FinalizationRegistry > "u" ? { register: () => {
185
185
  }, unregister: () => {
186
- } } : new FinalizationRegistry((E) => Q.__wbg_rawccdsolver_free(E >>> 0, 1));
186
+ } } : new FinalizationRegistry((E) => B.__wbg_rawccdsolver_free(E >>> 0, 1));
187
187
  class UI {
188
188
  __destroy_into_raw() {
189
189
  const A = this.__wbg_ptr;
@@ -191,16 +191,16 @@ class UI {
191
191
  }
192
192
  free() {
193
193
  const A = this.__destroy_into_raw();
194
- Q.__wbg_rawccdsolver_free(A, 0);
194
+ B.__wbg_rawccdsolver_free(A, 0);
195
195
  }
196
196
  constructor() {
197
- const A = Q.rawccdsolver_new();
197
+ const A = B.rawccdsolver_new();
198
198
  return this.__wbg_ptr = A >>> 0, gg.register(this, this.__wbg_ptr, this), this;
199
199
  }
200
200
  }
201
201
  const Cg = typeof FinalizationRegistry > "u" ? { register: () => {
202
202
  }, unregister: () => {
203
- } } : new FinalizationRegistry((E) => Q.__wbg_rawcharactercollision_free(E >>> 0, 1));
203
+ } } : new FinalizationRegistry((E) => B.__wbg_rawcharactercollision_free(E >>> 0, 1));
204
204
  class qg {
205
205
  __destroy_into_raw() {
206
206
  const A = this.__wbg_ptr;
@@ -208,46 +208,46 @@ class qg {
208
208
  }
209
209
  free() {
210
210
  const A = this.__destroy_into_raw();
211
- Q.__wbg_rawcharactercollision_free(A, 0);
211
+ B.__wbg_rawcharactercollision_free(A, 0);
212
212
  }
213
213
  constructor() {
214
- const A = Q.rawcharactercollision_new();
214
+ const A = B.rawcharactercollision_new();
215
215
  return this.__wbg_ptr = A >>> 0, Cg.register(this, this.__wbg_ptr, this), this;
216
216
  }
217
217
  handle() {
218
- return Q.rawcharactercollision_handle(this.__wbg_ptr);
218
+ return B.rawcharactercollision_handle(this.__wbg_ptr);
219
219
  }
220
220
  translationDeltaApplied() {
221
- const A = Q.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);
221
+ const A = B.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);
222
222
  return N.__wrap(A);
223
223
  }
224
224
  translationDeltaRemaining() {
225
- const A = Q.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);
225
+ const A = B.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);
226
226
  return N.__wrap(A);
227
227
  }
228
228
  toi() {
229
- return Q.rawcharactercollision_toi(this.__wbg_ptr);
229
+ return B.rawcharactercollision_toi(this.__wbg_ptr);
230
230
  }
231
231
  worldWitness1() {
232
- const A = Q.rawcharactercollision_worldWitness1(this.__wbg_ptr);
232
+ const A = B.rawcharactercollision_worldWitness1(this.__wbg_ptr);
233
233
  return N.__wrap(A);
234
234
  }
235
235
  worldWitness2() {
236
- const A = Q.rawcharactercollision_worldWitness2(this.__wbg_ptr);
236
+ const A = B.rawcharactercollision_worldWitness2(this.__wbg_ptr);
237
237
  return N.__wrap(A);
238
238
  }
239
239
  worldNormal1() {
240
- const A = Q.rawcharactercollision_worldNormal1(this.__wbg_ptr);
240
+ const A = B.rawcharactercollision_worldNormal1(this.__wbg_ptr);
241
241
  return N.__wrap(A);
242
242
  }
243
243
  worldNormal2() {
244
- const A = Q.rawcharactercollision_worldNormal2(this.__wbg_ptr);
244
+ const A = B.rawcharactercollision_worldNormal2(this.__wbg_ptr);
245
245
  return N.__wrap(A);
246
246
  }
247
247
  }
248
248
  const KI = typeof FinalizationRegistry > "u" ? { register: () => {
249
249
  }, unregister: () => {
250
- } } : new FinalizationRegistry((E) => Q.__wbg_rawcolliderset_free(E >>> 0, 1));
250
+ } } : new FinalizationRegistry((E) => B.__wbg_rawcolliderset_free(E >>> 0, 1));
251
251
  class b {
252
252
  static __wrap(A) {
253
253
  A >>>= 0;
@@ -260,317 +260,317 @@ class b {
260
260
  }
261
261
  free() {
262
262
  const A = this.__destroy_into_raw();
263
- Q.__wbg_rawcolliderset_free(A, 0);
263
+ B.__wbg_rawcolliderset_free(A, 0);
264
264
  }
265
265
  coTranslation(A) {
266
- const I = Q.rawcolliderset_coTranslation(this.__wbg_ptr, A);
266
+ const I = B.rawcolliderset_coTranslation(this.__wbg_ptr, A);
267
267
  return N.__wrap(I);
268
268
  }
269
269
  coRotation(A) {
270
- const I = Q.rawcolliderset_coRotation(this.__wbg_ptr, A);
270
+ const I = B.rawcolliderset_coRotation(this.__wbg_ptr, A);
271
271
  return t.__wrap(I);
272
272
  }
273
273
  coTranslationWrtParent(A) {
274
- const I = Q.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr, A);
274
+ const I = B.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr, A);
275
275
  return I === 0 ? void 0 : N.__wrap(I);
276
276
  }
277
277
  coRotationWrtParent(A) {
278
- const I = Q.rawcolliderset_coRotationWrtParent(this.__wbg_ptr, A);
278
+ const I = B.rawcolliderset_coRotationWrtParent(this.__wbg_ptr, A);
279
279
  return I === 0 ? void 0 : t.__wrap(I);
280
280
  }
281
281
  coSetTranslation(A, I, g) {
282
- Q.rawcolliderset_coSetTranslation(this.__wbg_ptr, A, I, g);
282
+ B.rawcolliderset_coSetTranslation(this.__wbg_ptr, A, I, g);
283
283
  }
284
284
  coSetTranslationWrtParent(A, I, g) {
285
- Q.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr, A, I, g);
285
+ B.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr, A, I, g);
286
286
  }
287
287
  coSetRotation(A, I) {
288
- Q.rawcolliderset_coSetRotation(this.__wbg_ptr, A, I);
288
+ B.rawcolliderset_coSetRotation(this.__wbg_ptr, A, I);
289
289
  }
290
290
  coSetRotationWrtParent(A, I) {
291
- Q.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr, A, I);
291
+ B.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr, A, I);
292
292
  }
293
293
  coIsSensor(A) {
294
- return Q.rawcolliderset_coIsSensor(this.__wbg_ptr, A) !== 0;
294
+ return B.rawcolliderset_coIsSensor(this.__wbg_ptr, A) !== 0;
295
295
  }
296
296
  coShapeType(A) {
297
- return Q.rawcolliderset_coShapeType(this.__wbg_ptr, A);
297
+ return B.rawcolliderset_coShapeType(this.__wbg_ptr, A);
298
298
  }
299
299
  coHalfspaceNormal(A) {
300
- const I = Q.rawcolliderset_coHalfspaceNormal(this.__wbg_ptr, A);
300
+ const I = B.rawcolliderset_coHalfspaceNormal(this.__wbg_ptr, A);
301
301
  return I === 0 ? void 0 : N.__wrap(I);
302
302
  }
303
303
  coHalfExtents(A) {
304
- const I = Q.rawcolliderset_coHalfExtents(this.__wbg_ptr, A);
304
+ const I = B.rawcolliderset_coHalfExtents(this.__wbg_ptr, A);
305
305
  return I === 0 ? void 0 : N.__wrap(I);
306
306
  }
307
307
  coSetHalfExtents(A, I) {
308
- G(I, N), Q.rawcolliderset_coSetHalfExtents(this.__wbg_ptr, A, I.__wbg_ptr);
308
+ G(I, N), B.rawcolliderset_coSetHalfExtents(this.__wbg_ptr, A, I.__wbg_ptr);
309
309
  }
310
310
  coRadius(A) {
311
- const I = Q.rawcolliderset_coRadius(this.__wbg_ptr, A);
311
+ const I = B.rawcolliderset_coRadius(this.__wbg_ptr, A);
312
312
  return I === 4294967297 ? void 0 : I;
313
313
  }
314
314
  coSetRadius(A, I) {
315
- Q.rawcolliderset_coSetRadius(this.__wbg_ptr, A, I);
315
+ B.rawcolliderset_coSetRadius(this.__wbg_ptr, A, I);
316
316
  }
317
317
  coHalfHeight(A) {
318
- const I = Q.rawcolliderset_coHalfHeight(this.__wbg_ptr, A);
318
+ const I = B.rawcolliderset_coHalfHeight(this.__wbg_ptr, A);
319
319
  return I === 4294967297 ? void 0 : I;
320
320
  }
321
321
  coSetHalfHeight(A, I) {
322
- Q.rawcolliderset_coSetHalfHeight(this.__wbg_ptr, A, I);
322
+ B.rawcolliderset_coSetHalfHeight(this.__wbg_ptr, A, I);
323
323
  }
324
324
  coRoundRadius(A) {
325
- const I = Q.rawcolliderset_coRoundRadius(this.__wbg_ptr, A);
325
+ const I = B.rawcolliderset_coRoundRadius(this.__wbg_ptr, A);
326
326
  return I === 4294967297 ? void 0 : I;
327
327
  }
328
328
  coSetRoundRadius(A, I) {
329
- Q.rawcolliderset_coSetRoundRadius(this.__wbg_ptr, A, I);
329
+ B.rawcolliderset_coSetRoundRadius(this.__wbg_ptr, A, I);
330
330
  }
331
331
  coVoxelData(A) {
332
332
  try {
333
- const C = Q.__wbindgen_add_to_stack_pointer(-16);
334
- Q.rawcolliderset_coVoxelData(C, this.__wbg_ptr, A);
333
+ const C = B.__wbindgen_add_to_stack_pointer(-16);
334
+ B.rawcolliderset_coVoxelData(C, this.__wbg_ptr, A);
335
335
  var I = X().getInt32(C + 0, !0), g = X().getInt32(C + 4, !0);
336
- let B;
337
- return I !== 0 && (B = hC(I, g).slice(), Q.__wbindgen_export_1(I, 4 * g, 4)), B;
336
+ let Q;
337
+ return I !== 0 && (Q = hC(I, g).slice(), B.__wbindgen_export_1(I, 4 * g, 4)), Q;
338
338
  } finally {
339
- Q.__wbindgen_add_to_stack_pointer(16);
339
+ B.__wbindgen_add_to_stack_pointer(16);
340
340
  }
341
341
  }
342
342
  coVoxelSize(A) {
343
- const I = Q.rawcolliderset_coVoxelSize(this.__wbg_ptr, A);
343
+ const I = B.rawcolliderset_coVoxelSize(this.__wbg_ptr, A);
344
344
  return I === 0 ? void 0 : N.__wrap(I);
345
345
  }
346
346
  coSetVoxel(A, I, g, C) {
347
- Q.rawcolliderset_coSetVoxel(this.__wbg_ptr, A, I, g, C);
347
+ B.rawcolliderset_coSetVoxel(this.__wbg_ptr, A, I, g, C);
348
348
  }
349
- coPropagateVoxelChange(A, I, g, C, B, i) {
350
- Q.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr, A, I, g, C, B, i);
349
+ coPropagateVoxelChange(A, I, g, C, Q, i) {
350
+ B.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr, A, I, g, C, Q, i);
351
351
  }
352
352
  coCombineVoxelStates(A, I, g, C) {
353
- Q.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr, A, I, g, C);
353
+ B.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr, A, I, g, C);
354
354
  }
355
355
  coVertices(A) {
356
356
  try {
357
- const C = Q.__wbindgen_add_to_stack_pointer(-16);
358
- Q.rawcolliderset_coVertices(C, this.__wbg_ptr, A);
357
+ const C = B.__wbindgen_add_to_stack_pointer(-16);
358
+ B.rawcolliderset_coVertices(C, this.__wbg_ptr, A);
359
359
  var I = X().getInt32(C + 0, !0), g = X().getInt32(C + 4, !0);
360
- let B;
361
- return I !== 0 && (B = Ig(I, g).slice(), Q.__wbindgen_export_1(I, 4 * g, 4)), B;
360
+ let Q;
361
+ return I !== 0 && (Q = Ig(I, g).slice(), B.__wbindgen_export_1(I, 4 * g, 4)), Q;
362
362
  } finally {
363
- Q.__wbindgen_add_to_stack_pointer(16);
363
+ B.__wbindgen_add_to_stack_pointer(16);
364
364
  }
365
365
  }
366
366
  coIndices(A) {
367
367
  try {
368
- const C = Q.__wbindgen_add_to_stack_pointer(-16);
369
- Q.rawcolliderset_coIndices(C, this.__wbg_ptr, A);
368
+ const C = B.__wbindgen_add_to_stack_pointer(-16);
369
+ B.rawcolliderset_coIndices(C, this.__wbg_ptr, A);
370
370
  var I = X().getInt32(C + 0, !0), g = X().getInt32(C + 4, !0);
371
- let B;
372
- return I !== 0 && (B = function(i, D) {
371
+ let Q;
372
+ return I !== 0 && (Q = function(i, D) {
373
373
  return i >>>= 0, Lg().subarray(i / 4, i / 4 + D);
374
- }(I, g).slice(), Q.__wbindgen_export_1(I, 4 * g, 4)), B;
374
+ }(I, g).slice(), B.__wbindgen_export_1(I, 4 * g, 4)), Q;
375
375
  } finally {
376
- Q.__wbindgen_add_to_stack_pointer(16);
376
+ B.__wbindgen_add_to_stack_pointer(16);
377
377
  }
378
378
  }
379
379
  coTriMeshFlags(A) {
380
- const I = Q.rawcolliderset_coTriMeshFlags(this.__wbg_ptr, A);
380
+ const I = B.rawcolliderset_coTriMeshFlags(this.__wbg_ptr, A);
381
381
  return I === 4294967297 ? void 0 : I;
382
382
  }
383
383
  coHeightfieldHeights(A) {
384
384
  try {
385
- const C = Q.__wbindgen_add_to_stack_pointer(-16);
386
- Q.rawcolliderset_coHeightfieldHeights(C, this.__wbg_ptr, A);
385
+ const C = B.__wbindgen_add_to_stack_pointer(-16);
386
+ B.rawcolliderset_coHeightfieldHeights(C, this.__wbg_ptr, A);
387
387
  var I = X().getInt32(C + 0, !0), g = X().getInt32(C + 4, !0);
388
- let B;
389
- return I !== 0 && (B = Ig(I, g).slice(), Q.__wbindgen_export_1(I, 4 * g, 4)), B;
388
+ let Q;
389
+ return I !== 0 && (Q = Ig(I, g).slice(), B.__wbindgen_export_1(I, 4 * g, 4)), Q;
390
390
  } finally {
391
- Q.__wbindgen_add_to_stack_pointer(16);
391
+ B.__wbindgen_add_to_stack_pointer(16);
392
392
  }
393
393
  }
394
394
  coHeightfieldScale(A) {
395
- const I = Q.rawcolliderset_coHeightfieldScale(this.__wbg_ptr, A);
395
+ const I = B.rawcolliderset_coHeightfieldScale(this.__wbg_ptr, A);
396
396
  return I === 0 ? void 0 : N.__wrap(I);
397
397
  }
398
398
  coParent(A) {
399
399
  try {
400
- const C = Q.__wbindgen_add_to_stack_pointer(-16);
401
- Q.rawcolliderset_coParent(C, this.__wbg_ptr, A);
400
+ const C = B.__wbindgen_add_to_stack_pointer(-16);
401
+ B.rawcolliderset_coParent(C, this.__wbg_ptr, A);
402
402
  var I = X().getInt32(C + 0, !0), g = X().getFloat64(C + 8, !0);
403
403
  return I === 0 ? void 0 : g;
404
404
  } finally {
405
- Q.__wbindgen_add_to_stack_pointer(16);
405
+ B.__wbindgen_add_to_stack_pointer(16);
406
406
  }
407
407
  }
408
408
  coSetEnabled(A, I) {
409
- Q.rawcolliderset_coSetEnabled(this.__wbg_ptr, A, I);
409
+ B.rawcolliderset_coSetEnabled(this.__wbg_ptr, A, I);
410
410
  }
411
411
  coIsEnabled(A) {
412
- return Q.rawcolliderset_coIsEnabled(this.__wbg_ptr, A) !== 0;
412
+ return B.rawcolliderset_coIsEnabled(this.__wbg_ptr, A) !== 0;
413
413
  }
414
414
  coSetContactSkin(A, I) {
415
- Q.rawcolliderset_coSetContactSkin(this.__wbg_ptr, A, I);
415
+ B.rawcolliderset_coSetContactSkin(this.__wbg_ptr, A, I);
416
416
  }
417
417
  coContactSkin(A) {
418
- return Q.rawcolliderset_coContactSkin(this.__wbg_ptr, A);
418
+ return B.rawcolliderset_coContactSkin(this.__wbg_ptr, A);
419
419
  }
420
420
  coFriction(A) {
421
- return Q.rawcolliderset_coFriction(this.__wbg_ptr, A);
421
+ return B.rawcolliderset_coFriction(this.__wbg_ptr, A);
422
422
  }
423
423
  coRestitution(A) {
424
- return Q.rawcolliderset_coRestitution(this.__wbg_ptr, A);
424
+ return B.rawcolliderset_coRestitution(this.__wbg_ptr, A);
425
425
  }
426
426
  coDensity(A) {
427
- return Q.rawcolliderset_coDensity(this.__wbg_ptr, A);
427
+ return B.rawcolliderset_coDensity(this.__wbg_ptr, A);
428
428
  }
429
429
  coMass(A) {
430
- return Q.rawcolliderset_coMass(this.__wbg_ptr, A);
430
+ return B.rawcolliderset_coMass(this.__wbg_ptr, A);
431
431
  }
432
432
  coVolume(A) {
433
- return Q.rawcolliderset_coVolume(this.__wbg_ptr, A);
433
+ return B.rawcolliderset_coVolume(this.__wbg_ptr, A);
434
434
  }
435
435
  coCollisionGroups(A) {
436
- return Q.rawcolliderset_coCollisionGroups(this.__wbg_ptr, A) >>> 0;
436
+ return B.rawcolliderset_coCollisionGroups(this.__wbg_ptr, A) >>> 0;
437
437
  }
438
438
  coSolverGroups(A) {
439
- return Q.rawcolliderset_coSolverGroups(this.__wbg_ptr, A) >>> 0;
439
+ return B.rawcolliderset_coSolverGroups(this.__wbg_ptr, A) >>> 0;
440
440
  }
441
441
  coActiveHooks(A) {
442
- return Q.rawcolliderset_coActiveHooks(this.__wbg_ptr, A) >>> 0;
442
+ return B.rawcolliderset_coActiveHooks(this.__wbg_ptr, A) >>> 0;
443
443
  }
444
444
  coActiveCollisionTypes(A) {
445
- return Q.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr, A);
445
+ return B.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr, A);
446
446
  }
447
447
  coActiveEvents(A) {
448
- return Q.rawcolliderset_coActiveEvents(this.__wbg_ptr, A) >>> 0;
448
+ return B.rawcolliderset_coActiveEvents(this.__wbg_ptr, A) >>> 0;
449
449
  }
450
450
  coContactForceEventThreshold(A) {
451
- return Q.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr, A);
451
+ return B.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr, A);
452
452
  }
453
453
  coContainsPoint(A, I) {
454
- return G(I, N), Q.rawcolliderset_coContainsPoint(this.__wbg_ptr, A, I.__wbg_ptr) !== 0;
454
+ return G(I, N), B.rawcolliderset_coContainsPoint(this.__wbg_ptr, A, I.__wbg_ptr) !== 0;
455
455
  }
456
- coCastShape(A, I, g, C, B, i, D, o, w) {
457
- G(I, N), G(g, R), G(C, N), G(B, t), G(i, N);
458
- const K = Q.rawcolliderset_coCastShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D, o, w);
459
- return K === 0 ? void 0 : CI.__wrap(K);
456
+ coCastShape(A, I, g, C, Q, i, D, o, w) {
457
+ G(I, N), G(g, R), G(C, N), G(Q, t), G(i, N);
458
+ const h = B.rawcolliderset_coCastShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i.__wbg_ptr, D, o, w);
459
+ return h === 0 ? void 0 : CI.__wrap(h);
460
460
  }
461
- coCastCollider(A, I, g, C, B, i, D) {
461
+ coCastCollider(A, I, g, C, Q, i, D) {
462
462
  G(I, N), G(C, N);
463
- const o = Q.rawcolliderset_coCastCollider(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B, i, D);
463
+ const o = B.rawcolliderset_coCastCollider(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, Q, i, D);
464
464
  return o === 0 ? void 0 : $A.__wrap(o);
465
465
  }
466
466
  coIntersectsShape(A, I, g, C) {
467
- return G(I, R), G(g, N), G(C, t), Q.rawcolliderset_coIntersectsShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr) !== 0;
467
+ return G(I, R), G(g, N), G(C, t), B.rawcolliderset_coIntersectsShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr) !== 0;
468
468
  }
469
- coContactShape(A, I, g, C, B) {
469
+ coContactShape(A, I, g, C, Q) {
470
470
  G(I, R), G(g, N), G(C, t);
471
- const i = Q.rawcolliderset_coContactShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B);
471
+ const i = B.rawcolliderset_coContactShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q);
472
472
  return i === 0 ? void 0 : pA.__wrap(i);
473
473
  }
474
474
  coContactCollider(A, I, g) {
475
- const C = Q.rawcolliderset_coContactCollider(this.__wbg_ptr, A, I, g);
475
+ const C = B.rawcolliderset_coContactCollider(this.__wbg_ptr, A, I, g);
476
476
  return C === 0 ? void 0 : pA.__wrap(C);
477
477
  }
478
478
  coProjectPoint(A, I, g) {
479
479
  G(I, N);
480
- const C = Q.rawcolliderset_coProjectPoint(this.__wbg_ptr, A, I.__wbg_ptr, g);
480
+ const C = B.rawcolliderset_coProjectPoint(this.__wbg_ptr, A, I.__wbg_ptr, g);
481
481
  return AI.__wrap(C);
482
482
  }
483
483
  coIntersectsRay(A, I, g, C) {
484
- return G(I, N), G(g, N), Q.rawcolliderset_coIntersectsRay(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C) !== 0;
484
+ return G(I, N), G(g, N), B.rawcolliderset_coIntersectsRay(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C) !== 0;
485
485
  }
486
- coCastRay(A, I, g, C, B) {
487
- return G(I, N), G(g, N), Q.rawcolliderset_coCastRay(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B);
486
+ coCastRay(A, I, g, C, Q) {
487
+ return G(I, N), G(g, N), B.rawcolliderset_coCastRay(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, Q);
488
488
  }
489
- coCastRayAndGetNormal(A, I, g, C, B) {
489
+ coCastRayAndGetNormal(A, I, g, C, Q) {
490
490
  G(I, N), G(g, N);
491
- const i = Q.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B);
491
+ const i = B.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, Q);
492
492
  return i === 0 ? void 0 : gI.__wrap(i);
493
493
  }
494
494
  coSetSensor(A, I) {
495
- Q.rawcolliderset_coSetSensor(this.__wbg_ptr, A, I);
495
+ B.rawcolliderset_coSetSensor(this.__wbg_ptr, A, I);
496
496
  }
497
497
  coSetRestitution(A, I) {
498
- Q.rawcolliderset_coSetRestitution(this.__wbg_ptr, A, I);
498
+ B.rawcolliderset_coSetRestitution(this.__wbg_ptr, A, I);
499
499
  }
500
500
  coSetFriction(A, I) {
501
- Q.rawcolliderset_coSetFriction(this.__wbg_ptr, A, I);
501
+ B.rawcolliderset_coSetFriction(this.__wbg_ptr, A, I);
502
502
  }
503
503
  coFrictionCombineRule(A) {
504
- return Q.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr, A) >>> 0;
504
+ return B.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr, A) >>> 0;
505
505
  }
506
506
  coSetFrictionCombineRule(A, I) {
507
- Q.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr, A, I);
507
+ B.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr, A, I);
508
508
  }
509
509
  coRestitutionCombineRule(A) {
510
- return Q.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr, A) >>> 0;
510
+ return B.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr, A) >>> 0;
511
511
  }
512
512
  coSetRestitutionCombineRule(A, I) {
513
- Q.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr, A, I);
513
+ B.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr, A, I);
514
514
  }
515
515
  coSetCollisionGroups(A, I) {
516
- Q.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr, A, I);
516
+ B.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr, A, I);
517
517
  }
518
518
  coSetSolverGroups(A, I) {
519
- Q.rawcolliderset_coSetSolverGroups(this.__wbg_ptr, A, I);
519
+ B.rawcolliderset_coSetSolverGroups(this.__wbg_ptr, A, I);
520
520
  }
521
521
  coSetActiveHooks(A, I) {
522
- Q.rawcolliderset_coSetActiveHooks(this.__wbg_ptr, A, I);
522
+ B.rawcolliderset_coSetActiveHooks(this.__wbg_ptr, A, I);
523
523
  }
524
524
  coSetActiveEvents(A, I) {
525
- Q.rawcolliderset_coSetActiveEvents(this.__wbg_ptr, A, I);
525
+ B.rawcolliderset_coSetActiveEvents(this.__wbg_ptr, A, I);
526
526
  }
527
527
  coSetActiveCollisionTypes(A, I) {
528
- Q.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr, A, I);
528
+ B.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr, A, I);
529
529
  }
530
530
  coSetShape(A, I) {
531
- G(I, R), Q.rawcolliderset_coSetShape(this.__wbg_ptr, A, I.__wbg_ptr);
531
+ G(I, R), B.rawcolliderset_coSetShape(this.__wbg_ptr, A, I.__wbg_ptr);
532
532
  }
533
533
  coSetContactForceEventThreshold(A, I) {
534
- Q.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr, A, I);
534
+ B.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr, A, I);
535
535
  }
536
536
  coSetDensity(A, I) {
537
- Q.rawcolliderset_coSetDensity(this.__wbg_ptr, A, I);
537
+ B.rawcolliderset_coSetDensity(this.__wbg_ptr, A, I);
538
538
  }
539
539
  coSetMass(A, I) {
540
- Q.rawcolliderset_coSetMass(this.__wbg_ptr, A, I);
540
+ B.rawcolliderset_coSetMass(this.__wbg_ptr, A, I);
541
541
  }
542
542
  coSetMassProperties(A, I, g, C) {
543
- G(g, N), Q.rawcolliderset_coSetMassProperties(this.__wbg_ptr, A, I, g.__wbg_ptr, C);
543
+ G(g, N), B.rawcolliderset_coSetMassProperties(this.__wbg_ptr, A, I, g.__wbg_ptr, C);
544
544
  }
545
545
  constructor() {
546
- const A = Q.rawcolliderset_new();
546
+ const A = B.rawcolliderset_new();
547
547
  return this.__wbg_ptr = A >>> 0, KI.register(this, this.__wbg_ptr, this), this;
548
548
  }
549
549
  len() {
550
- return Q.rawcolliderset_len(this.__wbg_ptr) >>> 0;
550
+ return B.rawcolliderset_len(this.__wbg_ptr) >>> 0;
551
551
  }
552
552
  contains(A) {
553
- return Q.rawcolliderset_contains(this.__wbg_ptr, A) !== 0;
553
+ return B.rawcolliderset_contains(this.__wbg_ptr, A) !== 0;
554
554
  }
555
- createCollider(A, I, g, C, B, i, D, o, w, K, h, s, y, a, k, F, M, J, L, q, l, p, Z, j) {
555
+ createCollider(A, I, g, C, Q, i, D, o, w, h, K, s, y, a, k, F, M, J, L, q, l, p, Z, j) {
556
556
  try {
557
- const sA = Q.__wbindgen_add_to_stack_pointer(-16);
558
- G(I, R), G(g, N), G(C, t), G(D, N), G(j, n), Q.rawcolliderset_createCollider(sA, this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i, D.__wbg_ptr, o, w, K, h, s, y, a, k, F, M, J, L, q, l, p, Z, j.__wbg_ptr);
557
+ const sA = B.__wbindgen_add_to_stack_pointer(-16);
558
+ G(I, R), G(g, N), G(C, t), G(D, N), G(j, n), B.rawcolliderset_createCollider(sA, this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, i, D.__wbg_ptr, o, w, h, K, s, y, a, k, F, M, J, L, q, l, p, Z, j.__wbg_ptr);
559
559
  var z = X().getInt32(sA + 0, !0), MA = X().getFloat64(sA + 8, !0);
560
560
  return z === 0 ? void 0 : MA;
561
561
  } finally {
562
- Q.__wbindgen_add_to_stack_pointer(16);
562
+ B.__wbindgen_add_to_stack_pointer(16);
563
563
  }
564
564
  }
565
565
  remove(A, I, g, C) {
566
- G(I, EA), G(g, n), Q.rawcolliderset_remove(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C);
566
+ G(I, EA), G(g, n), B.rawcolliderset_remove(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C);
567
567
  }
568
568
  isHandleValid(A) {
569
- return Q.rawcolliderset_contains(this.__wbg_ptr, A) !== 0;
569
+ return B.rawcolliderset_contains(this.__wbg_ptr, A) !== 0;
570
570
  }
571
571
  forEachColliderHandle(A) {
572
572
  try {
573
- Q.rawcolliderset_forEachColliderHandle(this.__wbg_ptr, f(A));
573
+ B.rawcolliderset_forEachColliderHandle(this.__wbg_ptr, f(A));
574
574
  } finally {
575
575
  Y[H++] = void 0;
576
576
  }
@@ -578,7 +578,7 @@ class b {
578
578
  }
579
579
  const Qg = typeof FinalizationRegistry > "u" ? { register: () => {
580
580
  }, unregister: () => {
581
- } } : new FinalizationRegistry((E) => Q.__wbg_rawcollidershapecasthit_free(E >>> 0, 1));
581
+ } } : new FinalizationRegistry((E) => B.__wbg_rawcollidershapecasthit_free(E >>> 0, 1));
582
582
  class $A {
583
583
  static __wrap(A) {
584
584
  A >>>= 0;
@@ -591,34 +591,34 @@ class $A {
591
591
  }
592
592
  free() {
593
593
  const A = this.__destroy_into_raw();
594
- Q.__wbg_rawcollidershapecasthit_free(A, 0);
594
+ B.__wbg_rawcollidershapecasthit_free(A, 0);
595
595
  }
596
596
  colliderHandle() {
597
- return Q.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr);
597
+ return B.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr);
598
598
  }
599
599
  time_of_impact() {
600
- return Q.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr);
600
+ return B.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr);
601
601
  }
602
602
  witness1() {
603
- const A = Q.rawcollidershapecasthit_witness1(this.__wbg_ptr);
603
+ const A = B.rawcollidershapecasthit_witness1(this.__wbg_ptr);
604
604
  return N.__wrap(A);
605
605
  }
606
606
  witness2() {
607
- const A = Q.rawcollidershapecasthit_witness2(this.__wbg_ptr);
607
+ const A = B.rawcollidershapecasthit_witness2(this.__wbg_ptr);
608
608
  return N.__wrap(A);
609
609
  }
610
610
  normal1() {
611
- const A = Q.rawcollidershapecasthit_normal1(this.__wbg_ptr);
611
+ const A = B.rawcollidershapecasthit_normal1(this.__wbg_ptr);
612
612
  return N.__wrap(A);
613
613
  }
614
614
  normal2() {
615
- const A = Q.rawcollidershapecasthit_normal2(this.__wbg_ptr);
615
+ const A = B.rawcollidershapecasthit_normal2(this.__wbg_ptr);
616
616
  return N.__wrap(A);
617
617
  }
618
618
  }
619
619
  const Bg = typeof FinalizationRegistry > "u" ? { register: () => {
620
620
  }, unregister: () => {
621
- } } : new FinalizationRegistry((E) => Q.__wbg_rawcontactforceevent_free(E >>> 0, 1));
621
+ } } : new FinalizationRegistry((E) => B.__wbg_rawcontactforceevent_free(E >>> 0, 1));
622
622
  class lI {
623
623
  static __wrap(A) {
624
624
  A >>>= 0;
@@ -631,32 +631,32 @@ class lI {
631
631
  }
632
632
  free() {
633
633
  const A = this.__destroy_into_raw();
634
- Q.__wbg_rawcontactforceevent_free(A, 0);
634
+ B.__wbg_rawcontactforceevent_free(A, 0);
635
635
  }
636
636
  collider1() {
637
- return Q.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr);
637
+ return B.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr);
638
638
  }
639
639
  collider2() {
640
- return Q.rawcontactforceevent_collider2(this.__wbg_ptr);
640
+ return B.rawcontactforceevent_collider2(this.__wbg_ptr);
641
641
  }
642
642
  total_force() {
643
- const A = Q.rawcontactforceevent_total_force(this.__wbg_ptr);
643
+ const A = B.rawcontactforceevent_total_force(this.__wbg_ptr);
644
644
  return N.__wrap(A);
645
645
  }
646
646
  total_force_magnitude() {
647
- return Q.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr);
647
+ return B.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr);
648
648
  }
649
649
  max_force_direction() {
650
- const A = Q.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);
650
+ const A = B.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);
651
651
  return N.__wrap(A);
652
652
  }
653
653
  max_force_magnitude() {
654
- return Q.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr);
654
+ return B.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr);
655
655
  }
656
656
  }
657
657
  const Eg = typeof FinalizationRegistry > "u" ? { register: () => {
658
658
  }, unregister: () => {
659
- } } : new FinalizationRegistry((E) => Q.__wbg_rawcontactmanifold_free(E >>> 0, 1));
659
+ } } : new FinalizationRegistry((E) => B.__wbg_rawcontactmanifold_free(E >>> 0, 1));
660
660
  class nI {
661
661
  static __wrap(A) {
662
662
  A >>>= 0;
@@ -669,76 +669,76 @@ class nI {
669
669
  }
670
670
  free() {
671
671
  const A = this.__destroy_into_raw();
672
- Q.__wbg_rawcontactmanifold_free(A, 0);
672
+ B.__wbg_rawcontactmanifold_free(A, 0);
673
673
  }
674
674
  normal() {
675
- const A = Q.rawcontactmanifold_normal(this.__wbg_ptr);
675
+ const A = B.rawcontactmanifold_normal(this.__wbg_ptr);
676
676
  return N.__wrap(A);
677
677
  }
678
678
  local_n1() {
679
- const A = Q.rawcontactmanifold_local_n1(this.__wbg_ptr);
679
+ const A = B.rawcontactmanifold_local_n1(this.__wbg_ptr);
680
680
  return N.__wrap(A);
681
681
  }
682
682
  local_n2() {
683
- const A = Q.rawcontactmanifold_local_n2(this.__wbg_ptr);
683
+ const A = B.rawcontactmanifold_local_n2(this.__wbg_ptr);
684
684
  return N.__wrap(A);
685
685
  }
686
686
  subshape1() {
687
- return Q.rawcontactmanifold_subshape1(this.__wbg_ptr) >>> 0;
687
+ return B.rawcontactmanifold_subshape1(this.__wbg_ptr) >>> 0;
688
688
  }
689
689
  subshape2() {
690
- return Q.rawcontactmanifold_subshape2(this.__wbg_ptr) >>> 0;
690
+ return B.rawcontactmanifold_subshape2(this.__wbg_ptr) >>> 0;
691
691
  }
692
692
  num_contacts() {
693
- return Q.rawcontactmanifold_num_contacts(this.__wbg_ptr) >>> 0;
693
+ return B.rawcontactmanifold_num_contacts(this.__wbg_ptr) >>> 0;
694
694
  }
695
695
  contact_local_p1(A) {
696
- const I = Q.rawcontactmanifold_contact_local_p1(this.__wbg_ptr, A);
696
+ const I = B.rawcontactmanifold_contact_local_p1(this.__wbg_ptr, A);
697
697
  return I === 0 ? void 0 : N.__wrap(I);
698
698
  }
699
699
  contact_local_p2(A) {
700
- const I = Q.rawcontactmanifold_contact_local_p2(this.__wbg_ptr, A);
700
+ const I = B.rawcontactmanifold_contact_local_p2(this.__wbg_ptr, A);
701
701
  return I === 0 ? void 0 : N.__wrap(I);
702
702
  }
703
703
  contact_dist(A) {
704
- return Q.rawcontactmanifold_contact_dist(this.__wbg_ptr, A);
704
+ return B.rawcontactmanifold_contact_dist(this.__wbg_ptr, A);
705
705
  }
706
706
  contact_fid1(A) {
707
- return Q.rawcontactmanifold_contact_fid1(this.__wbg_ptr, A) >>> 0;
707
+ return B.rawcontactmanifold_contact_fid1(this.__wbg_ptr, A) >>> 0;
708
708
  }
709
709
  contact_fid2(A) {
710
- return Q.rawcontactmanifold_contact_fid2(this.__wbg_ptr, A) >>> 0;
710
+ return B.rawcontactmanifold_contact_fid2(this.__wbg_ptr, A) >>> 0;
711
711
  }
712
712
  contact_impulse(A) {
713
- return Q.rawcontactmanifold_contact_impulse(this.__wbg_ptr, A);
713
+ return B.rawcontactmanifold_contact_impulse(this.__wbg_ptr, A);
714
714
  }
715
715
  contact_tangent_impulse(A) {
716
- return Q.rawcontactmanifold_contact_tangent_impulse(this.__wbg_ptr, A);
716
+ return B.rawcontactmanifold_contact_tangent_impulse(this.__wbg_ptr, A);
717
717
  }
718
718
  num_solver_contacts() {
719
- return Q.rawcontactmanifold_num_solver_contacts(this.__wbg_ptr) >>> 0;
719
+ return B.rawcontactmanifold_num_solver_contacts(this.__wbg_ptr) >>> 0;
720
720
  }
721
721
  solver_contact_point(A) {
722
- const I = Q.rawcontactmanifold_solver_contact_point(this.__wbg_ptr, A);
722
+ const I = B.rawcontactmanifold_solver_contact_point(this.__wbg_ptr, A);
723
723
  return I === 0 ? void 0 : N.__wrap(I);
724
724
  }
725
725
  solver_contact_dist(A) {
726
- return Q.rawcontactmanifold_solver_contact_dist(this.__wbg_ptr, A);
726
+ return B.rawcontactmanifold_solver_contact_dist(this.__wbg_ptr, A);
727
727
  }
728
728
  solver_contact_friction(A) {
729
- return Q.rawcontactmanifold_solver_contact_friction(this.__wbg_ptr, A);
729
+ return B.rawcontactmanifold_solver_contact_friction(this.__wbg_ptr, A);
730
730
  }
731
731
  solver_contact_restitution(A) {
732
- return Q.rawcontactmanifold_solver_contact_restitution(this.__wbg_ptr, A);
732
+ return B.rawcontactmanifold_solver_contact_restitution(this.__wbg_ptr, A);
733
733
  }
734
734
  solver_contact_tangent_velocity(A) {
735
- const I = Q.rawcontactmanifold_solver_contact_tangent_velocity(this.__wbg_ptr, A);
735
+ const I = B.rawcontactmanifold_solver_contact_tangent_velocity(this.__wbg_ptr, A);
736
736
  return N.__wrap(I);
737
737
  }
738
738
  }
739
739
  const ig = typeof FinalizationRegistry > "u" ? { register: () => {
740
740
  }, unregister: () => {
741
- } } : new FinalizationRegistry((E) => Q.__wbg_rawcontactpair_free(E >>> 0, 1));
741
+ } } : new FinalizationRegistry((E) => B.__wbg_rawcontactpair_free(E >>> 0, 1));
742
742
  class pI {
743
743
  static __wrap(A) {
744
744
  A >>>= 0;
@@ -751,25 +751,25 @@ class pI {
751
751
  }
752
752
  free() {
753
753
  const A = this.__destroy_into_raw();
754
- Q.__wbg_rawcontactpair_free(A, 0);
754
+ B.__wbg_rawcontactpair_free(A, 0);
755
755
  }
756
756
  collider1() {
757
- return Q.rawcontactpair_collider1(this.__wbg_ptr);
757
+ return B.rawcontactpair_collider1(this.__wbg_ptr);
758
758
  }
759
759
  collider2() {
760
- return Q.rawcontactpair_collider2(this.__wbg_ptr);
760
+ return B.rawcontactpair_collider2(this.__wbg_ptr);
761
761
  }
762
762
  numContactManifolds() {
763
- return Q.rawcontactpair_numContactManifolds(this.__wbg_ptr) >>> 0;
763
+ return B.rawcontactpair_numContactManifolds(this.__wbg_ptr) >>> 0;
764
764
  }
765
765
  contactManifold(A) {
766
- const I = Q.rawcontactpair_contactManifold(this.__wbg_ptr, A);
766
+ const I = B.rawcontactpair_contactManifold(this.__wbg_ptr, A);
767
767
  return I === 0 ? void 0 : nI.__wrap(I);
768
768
  }
769
769
  }
770
770
  const Dg = typeof FinalizationRegistry > "u" ? { register: () => {
771
771
  }, unregister: () => {
772
- } } : new FinalizationRegistry((E) => Q.__wbg_rawdebugrenderpipeline_free(E >>> 0, 1));
772
+ } } : new FinalizationRegistry((E) => B.__wbg_rawdebugrenderpipeline_free(E >>> 0, 1));
773
773
  class KC {
774
774
  __destroy_into_raw() {
775
775
  const A = this.__wbg_ptr;
@@ -777,21 +777,21 @@ class KC {
777
777
  }
778
778
  free() {
779
779
  const A = this.__destroy_into_raw();
780
- Q.__wbg_rawdebugrenderpipeline_free(A, 0);
780
+ B.__wbg_rawdebugrenderpipeline_free(A, 0);
781
781
  }
782
782
  constructor() {
783
- const A = Q.rawdebugrenderpipeline_new();
783
+ const A = B.rawdebugrenderpipeline_new();
784
784
  return this.__wbg_ptr = A >>> 0, Dg.register(this, this.__wbg_ptr, this), this;
785
785
  }
786
786
  vertices() {
787
- return XA(Q.rawdebugrenderpipeline_vertices(this.__wbg_ptr));
787
+ return XA(B.rawdebugrenderpipeline_vertices(this.__wbg_ptr));
788
788
  }
789
789
  colors() {
790
- return XA(Q.rawdebugrenderpipeline_colors(this.__wbg_ptr));
790
+ return XA(B.rawdebugrenderpipeline_colors(this.__wbg_ptr));
791
791
  }
792
- render(A, I, g, C, B, i, D) {
792
+ render(A, I, g, C, Q, i, D) {
793
793
  try {
794
- G(A, n), G(I, b), G(g, BA), G(C, iA), G(B, W), Q.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, f(D));
794
+ G(A, n), G(I, b), G(g, BA), G(C, iA), G(Q, W), B.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i, f(D));
795
795
  } finally {
796
796
  Y[H++] = void 0;
797
797
  }
@@ -799,7 +799,7 @@ class KC {
799
799
  }
800
800
  const og = typeof FinalizationRegistry > "u" ? { register: () => {
801
801
  }, unregister: () => {
802
- } } : new FinalizationRegistry((E) => Q.__wbg_rawdeserializedworld_free(E >>> 0, 1));
802
+ } } : new FinalizationRegistry((E) => B.__wbg_rawdeserializedworld_free(E >>> 0, 1));
803
803
  class dI {
804
804
  static __wrap(A) {
805
805
  A >>>= 0;
@@ -812,48 +812,48 @@ class dI {
812
812
  }
813
813
  free() {
814
814
  const A = this.__destroy_into_raw();
815
- Q.__wbg_rawdeserializedworld_free(A, 0);
815
+ B.__wbg_rawdeserializedworld_free(A, 0);
816
816
  }
817
817
  takeGravity() {
818
- const A = Q.rawdeserializedworld_takeGravity(this.__wbg_ptr);
818
+ const A = B.rawdeserializedworld_takeGravity(this.__wbg_ptr);
819
819
  return A === 0 ? void 0 : N.__wrap(A);
820
820
  }
821
821
  takeIntegrationParameters() {
822
- const A = Q.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);
822
+ const A = B.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);
823
823
  return A === 0 ? void 0 : aA.__wrap(A);
824
824
  }
825
825
  takeIslandManager() {
826
- const A = Q.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);
826
+ const A = B.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);
827
827
  return A === 0 ? void 0 : EA.__wrap(A);
828
828
  }
829
829
  takeBroadPhase() {
830
- const A = Q.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);
830
+ const A = B.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);
831
831
  return A === 0 ? void 0 : KA.__wrap(A);
832
832
  }
833
833
  takeNarrowPhase() {
834
- const A = Q.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);
834
+ const A = B.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);
835
835
  return A === 0 ? void 0 : W.__wrap(A);
836
836
  }
837
837
  takeBodies() {
838
- const A = Q.rawdeserializedworld_takeBodies(this.__wbg_ptr);
838
+ const A = B.rawdeserializedworld_takeBodies(this.__wbg_ptr);
839
839
  return A === 0 ? void 0 : n.__wrap(A);
840
840
  }
841
841
  takeColliders() {
842
- const A = Q.rawdeserializedworld_takeColliders(this.__wbg_ptr);
842
+ const A = B.rawdeserializedworld_takeColliders(this.__wbg_ptr);
843
843
  return A === 0 ? void 0 : b.__wrap(A);
844
844
  }
845
845
  takeImpulseJoints() {
846
- const A = Q.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);
846
+ const A = B.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);
847
847
  return A === 0 ? void 0 : BA.__wrap(A);
848
848
  }
849
849
  takeMultibodyJoints() {
850
- const A = Q.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);
850
+ const A = B.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);
851
851
  return A === 0 ? void 0 : iA.__wrap(A);
852
852
  }
853
853
  }
854
854
  const wg = typeof FinalizationRegistry > "u" ? { register: () => {
855
855
  }, unregister: () => {
856
- } } : new FinalizationRegistry((E) => Q.__wbg_raweventqueue_free(E >>> 0, 1));
856
+ } } : new FinalizationRegistry((E) => B.__wbg_raweventqueue_free(E >>> 0, 1));
857
857
  class rg {
858
858
  __destroy_into_raw() {
859
859
  const A = this.__wbg_ptr;
@@ -861,33 +861,33 @@ class rg {
861
861
  }
862
862
  free() {
863
863
  const A = this.__destroy_into_raw();
864
- Q.__wbg_raweventqueue_free(A, 0);
864
+ B.__wbg_raweventqueue_free(A, 0);
865
865
  }
866
866
  constructor(A) {
867
- const I = Q.raweventqueue_new(A);
867
+ const I = B.raweventqueue_new(A);
868
868
  return this.__wbg_ptr = I >>> 0, wg.register(this, this.__wbg_ptr, this), this;
869
869
  }
870
870
  drainCollisionEvents(A) {
871
871
  try {
872
- Q.raweventqueue_drainCollisionEvents(this.__wbg_ptr, f(A));
872
+ B.raweventqueue_drainCollisionEvents(this.__wbg_ptr, f(A));
873
873
  } finally {
874
874
  Y[H++] = void 0;
875
875
  }
876
876
  }
877
877
  drainContactForceEvents(A) {
878
878
  try {
879
- Q.raweventqueue_drainContactForceEvents(this.__wbg_ptr, f(A));
879
+ B.raweventqueue_drainContactForceEvents(this.__wbg_ptr, f(A));
880
880
  } finally {
881
881
  Y[H++] = void 0;
882
882
  }
883
883
  }
884
884
  clear() {
885
- Q.raweventqueue_clear(this.__wbg_ptr);
885
+ B.raweventqueue_clear(this.__wbg_ptr);
886
886
  }
887
887
  }
888
888
  const Gg = typeof FinalizationRegistry > "u" ? { register: () => {
889
889
  }, unregister: () => {
890
- } } : new FinalizationRegistry((E) => Q.__wbg_rawgenericjoint_free(E >>> 0, 1));
890
+ } } : new FinalizationRegistry((E) => B.__wbg_rawgenericjoint_free(E >>> 0, 1));
891
891
  class u {
892
892
  static __wrap(A) {
893
893
  A >>>= 0;
@@ -900,37 +900,37 @@ class u {
900
900
  }
901
901
  free() {
902
902
  const A = this.__destroy_into_raw();
903
- Q.__wbg_rawgenericjoint_free(A, 0);
903
+ B.__wbg_rawgenericjoint_free(A, 0);
904
904
  }
905
- static spring(A, I, g, C, B) {
906
- G(C, N), G(B, N);
907
- const i = Q.rawgenericjoint_spring(A, I, g, C.__wbg_ptr, B.__wbg_ptr);
905
+ static spring(A, I, g, C, Q) {
906
+ G(C, N), G(Q, N);
907
+ const i = B.rawgenericjoint_spring(A, I, g, C.__wbg_ptr, Q.__wbg_ptr);
908
908
  return u.__wrap(i);
909
909
  }
910
910
  static rope(A, I, g) {
911
911
  G(I, N), G(g, N);
912
- const C = Q.rawgenericjoint_rope(A, I.__wbg_ptr, g.__wbg_ptr);
912
+ const C = B.rawgenericjoint_rope(A, I.__wbg_ptr, g.__wbg_ptr);
913
913
  return u.__wrap(C);
914
914
  }
915
- static prismatic(A, I, g, C, B, i) {
915
+ static prismatic(A, I, g, C, Q, i) {
916
916
  G(A, N), G(I, N), G(g, N);
917
- const D = Q.rawgenericjoint_prismatic(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C, B, i);
917
+ const D = B.rawgenericjoint_prismatic(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C, Q, i);
918
918
  return D === 0 ? void 0 : u.__wrap(D);
919
919
  }
920
920
  static fixed(A, I, g, C) {
921
921
  G(A, N), G(I, t), G(g, N), G(C, t);
922
- const B = Q.rawgenericjoint_fixed(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr);
923
- return u.__wrap(B);
922
+ const Q = B.rawgenericjoint_fixed(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr);
923
+ return u.__wrap(Q);
924
924
  }
925
925
  static revolute(A, I) {
926
926
  G(A, N), G(I, N);
927
- const g = Q.rawgenericjoint_revolute(A.__wbg_ptr, I.__wbg_ptr);
927
+ const g = B.rawgenericjoint_revolute(A.__wbg_ptr, I.__wbg_ptr);
928
928
  return g === 0 ? void 0 : u.__wrap(g);
929
929
  }
930
930
  }
931
931
  const sI = typeof FinalizationRegistry > "u" ? { register: () => {
932
932
  }, unregister: () => {
933
- } } : new FinalizationRegistry((E) => Q.__wbg_rawimpulsejointset_free(E >>> 0, 1));
933
+ } } : new FinalizationRegistry((E) => B.__wbg_rawimpulsejointset_free(E >>> 0, 1));
934
934
  class BA {
935
935
  static __wrap(A) {
936
936
  A >>>= 0;
@@ -943,95 +943,95 @@ class BA {
943
943
  }
944
944
  free() {
945
945
  const A = this.__destroy_into_raw();
946
- Q.__wbg_rawimpulsejointset_free(A, 0);
946
+ B.__wbg_rawimpulsejointset_free(A, 0);
947
947
  }
948
948
  jointType(A) {
949
- return Q.rawimpulsejointset_jointType(this.__wbg_ptr, A);
949
+ return B.rawimpulsejointset_jointType(this.__wbg_ptr, A);
950
950
  }
951
951
  jointBodyHandle1(A) {
952
- return Q.rawimpulsejointset_jointBodyHandle1(this.__wbg_ptr, A);
952
+ return B.rawimpulsejointset_jointBodyHandle1(this.__wbg_ptr, A);
953
953
  }
954
954
  jointBodyHandle2(A) {
955
- return Q.rawimpulsejointset_jointBodyHandle2(this.__wbg_ptr, A);
955
+ return B.rawimpulsejointset_jointBodyHandle2(this.__wbg_ptr, A);
956
956
  }
957
957
  jointFrameX1(A) {
958
- const I = Q.rawimpulsejointset_jointFrameX1(this.__wbg_ptr, A);
958
+ const I = B.rawimpulsejointset_jointFrameX1(this.__wbg_ptr, A);
959
959
  return t.__wrap(I);
960
960
  }
961
961
  jointFrameX2(A) {
962
- const I = Q.rawimpulsejointset_jointFrameX2(this.__wbg_ptr, A);
962
+ const I = B.rawimpulsejointset_jointFrameX2(this.__wbg_ptr, A);
963
963
  return t.__wrap(I);
964
964
  }
965
965
  jointAnchor1(A) {
966
- const I = Q.rawimpulsejointset_jointAnchor1(this.__wbg_ptr, A);
966
+ const I = B.rawimpulsejointset_jointAnchor1(this.__wbg_ptr, A);
967
967
  return N.__wrap(I);
968
968
  }
969
969
  jointAnchor2(A) {
970
- const I = Q.rawimpulsejointset_jointAnchor2(this.__wbg_ptr, A);
970
+ const I = B.rawimpulsejointset_jointAnchor2(this.__wbg_ptr, A);
971
971
  return N.__wrap(I);
972
972
  }
973
973
  jointSetAnchor1(A, I) {
974
- G(I, N), Q.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr, A, I.__wbg_ptr);
974
+ G(I, N), B.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr, A, I.__wbg_ptr);
975
975
  }
976
976
  jointSetAnchor2(A, I) {
977
- G(I, N), Q.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr, A, I.__wbg_ptr);
977
+ G(I, N), B.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr, A, I.__wbg_ptr);
978
978
  }
979
979
  jointContactsEnabled(A) {
980
- return Q.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr, A) !== 0;
980
+ return B.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr, A) !== 0;
981
981
  }
982
982
  jointSetContactsEnabled(A, I) {
983
- Q.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr, A, I);
983
+ B.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr, A, I);
984
984
  }
985
985
  jointLimitsEnabled(A, I) {
986
- return Q.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr, A, I) !== 0;
986
+ return B.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr, A, I) !== 0;
987
987
  }
988
988
  jointLimitsMin(A, I) {
989
- return Q.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr, A, I);
989
+ return B.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr, A, I);
990
990
  }
991
991
  jointLimitsMax(A, I) {
992
- return Q.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr, A, I);
992
+ return B.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr, A, I);
993
993
  }
994
994
  jointSetLimits(A, I, g, C) {
995
- Q.rawimpulsejointset_jointSetLimits(this.__wbg_ptr, A, I, g, C);
995
+ B.rawimpulsejointset_jointSetLimits(this.__wbg_ptr, A, I, g, C);
996
996
  }
997
997
  jointConfigureMotorModel(A, I, g) {
998
- Q.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr, A, I, g);
998
+ B.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr, A, I, g);
999
999
  }
1000
1000
  jointConfigureMotorVelocity(A, I, g, C) {
1001
- Q.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr, A, I, g, C);
1001
+ B.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr, A, I, g, C);
1002
1002
  }
1003
- jointConfigureMotorPosition(A, I, g, C, B) {
1004
- Q.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr, A, I, g, C, B);
1003
+ jointConfigureMotorPosition(A, I, g, C, Q) {
1004
+ B.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr, A, I, g, C, Q);
1005
1005
  }
1006
- jointConfigureMotor(A, I, g, C, B, i) {
1007
- Q.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr, A, I, g, C, B, i);
1006
+ jointConfigureMotor(A, I, g, C, Q, i) {
1007
+ B.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr, A, I, g, C, Q, i);
1008
1008
  }
1009
1009
  constructor() {
1010
- const A = Q.rawimpulsejointset_new();
1010
+ const A = B.rawimpulsejointset_new();
1011
1011
  return this.__wbg_ptr = A >>> 0, sI.register(this, this.__wbg_ptr, this), this;
1012
1012
  }
1013
1013
  createJoint(A, I, g, C) {
1014
- return G(A, u), Q.rawimpulsejointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, g, C);
1014
+ return G(A, u), B.rawimpulsejointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, g, C);
1015
1015
  }
1016
1016
  remove(A, I) {
1017
- Q.rawimpulsejointset_remove(this.__wbg_ptr, A, I);
1017
+ B.rawimpulsejointset_remove(this.__wbg_ptr, A, I);
1018
1018
  }
1019
1019
  len() {
1020
- return Q.rawimpulsejointset_len(this.__wbg_ptr) >>> 0;
1020
+ return B.rawimpulsejointset_len(this.__wbg_ptr) >>> 0;
1021
1021
  }
1022
1022
  contains(A) {
1023
- return Q.rawimpulsejointset_contains(this.__wbg_ptr, A) !== 0;
1023
+ return B.rawimpulsejointset_contains(this.__wbg_ptr, A) !== 0;
1024
1024
  }
1025
1025
  forEachJointHandle(A) {
1026
1026
  try {
1027
- Q.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr, f(A));
1027
+ B.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr, f(A));
1028
1028
  } finally {
1029
1029
  Y[H++] = void 0;
1030
1030
  }
1031
1031
  }
1032
1032
  forEachJointAttachedToRigidBody(A, I) {
1033
1033
  try {
1034
- Q.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, f(I));
1034
+ B.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, f(I));
1035
1035
  } finally {
1036
1036
  Y[H++] = void 0;
1037
1037
  }
@@ -1039,7 +1039,7 @@ class BA {
1039
1039
  }
1040
1040
  const SI = typeof FinalizationRegistry > "u" ? { register: () => {
1041
1041
  }, unregister: () => {
1042
- } } : new FinalizationRegistry((E) => Q.__wbg_rawintegrationparameters_free(E >>> 0, 1));
1042
+ } } : new FinalizationRegistry((E) => B.__wbg_rawintegrationparameters_free(E >>> 0, 1));
1043
1043
  class aA {
1044
1044
  static __wrap(A) {
1045
1045
  A >>>= 0;
@@ -1052,70 +1052,70 @@ class aA {
1052
1052
  }
1053
1053
  free() {
1054
1054
  const A = this.__destroy_into_raw();
1055
- Q.__wbg_rawintegrationparameters_free(A, 0);
1055
+ B.__wbg_rawintegrationparameters_free(A, 0);
1056
1056
  }
1057
1057
  constructor() {
1058
- const A = Q.rawintegrationparameters_new();
1058
+ const A = B.rawintegrationparameters_new();
1059
1059
  return this.__wbg_ptr = A >>> 0, SI.register(this, this.__wbg_ptr, this), this;
1060
1060
  }
1061
1061
  get dt() {
1062
- return Q.rawintegrationparameters_dt(this.__wbg_ptr);
1062
+ return B.rawintegrationparameters_dt(this.__wbg_ptr);
1063
1063
  }
1064
1064
  get contact_erp() {
1065
- return Q.rawintegrationparameters_contact_erp(this.__wbg_ptr);
1065
+ return B.rawintegrationparameters_contact_erp(this.__wbg_ptr);
1066
1066
  }
1067
1067
  get normalizedAllowedLinearError() {
1068
- return Q.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr);
1068
+ return B.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr);
1069
1069
  }
1070
1070
  get normalizedPredictionDistance() {
1071
- return Q.rawcharactercollision_toi(this.__wbg_ptr);
1071
+ return B.rawcharactercollision_toi(this.__wbg_ptr);
1072
1072
  }
1073
1073
  get numSolverIterations() {
1074
- return Q.rawintegrationparameters_numSolverIterations(this.__wbg_ptr) >>> 0;
1074
+ return B.rawintegrationparameters_numSolverIterations(this.__wbg_ptr) >>> 0;
1075
1075
  }
1076
1076
  get numInternalPgsIterations() {
1077
- return Q.rawintegrationparameters_numInternalPgsIterations(this.__wbg_ptr) >>> 0;
1077
+ return B.rawintegrationparameters_numInternalPgsIterations(this.__wbg_ptr) >>> 0;
1078
1078
  }
1079
1079
  get minIslandSize() {
1080
- return Q.rawintegrationparameters_minIslandSize(this.__wbg_ptr) >>> 0;
1080
+ return B.rawintegrationparameters_minIslandSize(this.__wbg_ptr) >>> 0;
1081
1081
  }
1082
1082
  get maxCcdSubsteps() {
1083
- return Q.rawintegrationparameters_maxCcdSubsteps(this.__wbg_ptr) >>> 0;
1083
+ return B.rawintegrationparameters_maxCcdSubsteps(this.__wbg_ptr) >>> 0;
1084
1084
  }
1085
1085
  get lengthUnit() {
1086
- return Q.rawintegrationparameters_lengthUnit(this.__wbg_ptr);
1086
+ return B.rawintegrationparameters_lengthUnit(this.__wbg_ptr);
1087
1087
  }
1088
1088
  set dt(A) {
1089
- Q.rawintegrationparameters_set_dt(this.__wbg_ptr, A);
1089
+ B.rawintegrationparameters_set_dt(this.__wbg_ptr, A);
1090
1090
  }
1091
1091
  set contact_natural_frequency(A) {
1092
- Q.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr, A);
1092
+ B.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr, A);
1093
1093
  }
1094
1094
  set normalizedAllowedLinearError(A) {
1095
- Q.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr, A);
1095
+ B.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr, A);
1096
1096
  }
1097
1097
  set normalizedPredictionDistance(A) {
1098
- Q.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr, A);
1098
+ B.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr, A);
1099
1099
  }
1100
1100
  set numSolverIterations(A) {
1101
- Q.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr, A);
1101
+ B.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr, A);
1102
1102
  }
1103
1103
  set numInternalPgsIterations(A) {
1104
- Q.rawintegrationparameters_set_numInternalPgsIterations(this.__wbg_ptr, A);
1104
+ B.rawintegrationparameters_set_numInternalPgsIterations(this.__wbg_ptr, A);
1105
1105
  }
1106
1106
  set minIslandSize(A) {
1107
- Q.rawintegrationparameters_set_minIslandSize(this.__wbg_ptr, A);
1107
+ B.rawintegrationparameters_set_minIslandSize(this.__wbg_ptr, A);
1108
1108
  }
1109
1109
  set maxCcdSubsteps(A) {
1110
- Q.rawintegrationparameters_set_maxCcdSubsteps(this.__wbg_ptr, A);
1110
+ B.rawintegrationparameters_set_maxCcdSubsteps(this.__wbg_ptr, A);
1111
1111
  }
1112
1112
  set lengthUnit(A) {
1113
- Q.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr, A);
1113
+ B.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr, A);
1114
1114
  }
1115
1115
  }
1116
1116
  const NI = typeof FinalizationRegistry > "u" ? { register: () => {
1117
1117
  }, unregister: () => {
1118
- } } : new FinalizationRegistry((E) => Q.__wbg_rawislandmanager_free(E >>> 0, 1));
1118
+ } } : new FinalizationRegistry((E) => B.__wbg_rawislandmanager_free(E >>> 0, 1));
1119
1119
  class EA {
1120
1120
  static __wrap(A) {
1121
1121
  A >>>= 0;
@@ -1128,15 +1128,15 @@ class EA {
1128
1128
  }
1129
1129
  free() {
1130
1130
  const A = this.__destroy_into_raw();
1131
- Q.__wbg_rawislandmanager_free(A, 0);
1131
+ B.__wbg_rawislandmanager_free(A, 0);
1132
1132
  }
1133
1133
  constructor() {
1134
- const A = Q.rawislandmanager_new();
1134
+ const A = B.rawislandmanager_new();
1135
1135
  return this.__wbg_ptr = A >>> 0, NI.register(this, this.__wbg_ptr, this), this;
1136
1136
  }
1137
1137
  forEachActiveRigidBodyHandle(A) {
1138
1138
  try {
1139
- Q.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr, f(A));
1139
+ B.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr, f(A));
1140
1140
  } finally {
1141
1141
  Y[H++] = void 0;
1142
1142
  }
@@ -1144,7 +1144,7 @@ class EA {
1144
1144
  }
1145
1145
  const hg = typeof FinalizationRegistry > "u" ? { register: () => {
1146
1146
  }, unregister: () => {
1147
- } } : new FinalizationRegistry((E) => Q.__wbg_rawkinematiccharactercontroller_free(E >>> 0, 1));
1147
+ } } : new FinalizationRegistry((E) => B.__wbg_rawkinematiccharactercontroller_free(E >>> 0, 1));
1148
1148
  class sC {
1149
1149
  __destroy_into_raw() {
1150
1150
  const A = this.__wbg_ptr;
@@ -1152,107 +1152,107 @@ class sC {
1152
1152
  }
1153
1153
  free() {
1154
1154
  const A = this.__destroy_into_raw();
1155
- Q.__wbg_rawkinematiccharactercontroller_free(A, 0);
1155
+ B.__wbg_rawkinematiccharactercontroller_free(A, 0);
1156
1156
  }
1157
1157
  constructor(A) {
1158
- const I = Q.rawkinematiccharactercontroller_new(A);
1158
+ const I = B.rawkinematiccharactercontroller_new(A);
1159
1159
  return this.__wbg_ptr = I >>> 0, hg.register(this, this.__wbg_ptr, this), this;
1160
1160
  }
1161
1161
  up() {
1162
- const A = Q.rawcollidershapecasthit_normal2(this.__wbg_ptr);
1162
+ const A = B.rawcollidershapecasthit_normal2(this.__wbg_ptr);
1163
1163
  return N.__wrap(A);
1164
1164
  }
1165
1165
  setUp(A) {
1166
- G(A, N), Q.rawkinematiccharactercontroller_setUp(this.__wbg_ptr, A.__wbg_ptr);
1166
+ G(A, N), B.rawkinematiccharactercontroller_setUp(this.__wbg_ptr, A.__wbg_ptr);
1167
1167
  }
1168
1168
  normalNudgeFactor() {
1169
- return Q.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr);
1169
+ return B.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr);
1170
1170
  }
1171
1171
  setNormalNudgeFactor(A) {
1172
- Q.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr, A);
1172
+ B.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr, A);
1173
1173
  }
1174
1174
  offset() {
1175
- return Q.rawkinematiccharactercontroller_offset(this.__wbg_ptr);
1175
+ return B.rawkinematiccharactercontroller_offset(this.__wbg_ptr);
1176
1176
  }
1177
1177
  setOffset(A) {
1178
- Q.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr, A);
1178
+ B.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr, A);
1179
1179
  }
1180
1180
  slideEnabled() {
1181
- return Q.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr) !== 0;
1181
+ return B.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr) !== 0;
1182
1182
  }
1183
1183
  setSlideEnabled(A) {
1184
- Q.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr, A);
1184
+ B.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr, A);
1185
1185
  }
1186
1186
  autostepMaxHeight() {
1187
- const A = Q.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);
1187
+ const A = B.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);
1188
1188
  return A === 4294967297 ? void 0 : A;
1189
1189
  }
1190
1190
  autostepMinWidth() {
1191
- const A = Q.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);
1191
+ const A = B.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);
1192
1192
  return A === 4294967297 ? void 0 : A;
1193
1193
  }
1194
1194
  autostepIncludesDynamicBodies() {
1195
- const A = Q.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);
1195
+ const A = B.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);
1196
1196
  return A === 16777215 ? void 0 : A !== 0;
1197
1197
  }
1198
1198
  autostepEnabled() {
1199
- return Q.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr) !== 0;
1199
+ return B.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr) !== 0;
1200
1200
  }
1201
1201
  enableAutostep(A, I, g) {
1202
- Q.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr, A, I, g);
1202
+ B.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr, A, I, g);
1203
1203
  }
1204
1204
  disableAutostep() {
1205
- Q.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr);
1205
+ B.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr);
1206
1206
  }
1207
1207
  maxSlopeClimbAngle() {
1208
- return Q.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr);
1208
+ return B.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr);
1209
1209
  }
1210
1210
  setMaxSlopeClimbAngle(A) {
1211
- Q.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr, A);
1211
+ B.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr, A);
1212
1212
  }
1213
1213
  minSlopeSlideAngle() {
1214
- return Q.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr);
1214
+ return B.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr);
1215
1215
  }
1216
1216
  setMinSlopeSlideAngle(A) {
1217
- Q.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr, A);
1217
+ B.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr, A);
1218
1218
  }
1219
1219
  snapToGroundDistance() {
1220
- const A = Q.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);
1220
+ const A = B.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);
1221
1221
  return A === 4294967297 ? void 0 : A;
1222
1222
  }
1223
1223
  enableSnapToGround(A) {
1224
- Q.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr, A);
1224
+ B.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr, A);
1225
1225
  }
1226
1226
  disableSnapToGround() {
1227
- Q.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr);
1227
+ B.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr);
1228
1228
  }
1229
1229
  snapToGroundEnabled() {
1230
- return Q.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr) !== 0;
1230
+ return B.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr) !== 0;
1231
1231
  }
1232
- computeColliderMovement(A, I, g, C, B, i, D, o, w, K, h, s) {
1232
+ computeColliderMovement(A, I, g, C, Q, i, D, o, w, h, K, s) {
1233
1233
  try {
1234
- G(I, KA), G(g, W), G(C, n), G(B, b), G(D, N), Q.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D.__wbg_ptr, o, U(w) ? 4294967297 : Math.fround(w), K, U(h) ? 4294967297 : h >>> 0, f(s));
1234
+ G(I, KA), G(g, W), G(C, n), G(Q, b), G(D, N), B.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i, D.__wbg_ptr, o, U(w) ? 4294967297 : Math.fround(w), h, U(K) ? 4294967297 : K >>> 0, f(s));
1235
1235
  } finally {
1236
1236
  Y[H++] = void 0;
1237
1237
  }
1238
1238
  }
1239
1239
  computedMovement() {
1240
- const A = Q.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);
1240
+ const A = B.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);
1241
1241
  return N.__wrap(A);
1242
1242
  }
1243
1243
  computedGrounded() {
1244
- return Q.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr) !== 0;
1244
+ return B.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr) !== 0;
1245
1245
  }
1246
1246
  numComputedCollisions() {
1247
- return Q.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr) >>> 0;
1247
+ return B.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr) >>> 0;
1248
1248
  }
1249
1249
  computedCollision(A, I) {
1250
- return G(I, qg), Q.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr, A, I.__wbg_ptr) !== 0;
1250
+ return G(I, qg), B.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr, A, I.__wbg_ptr) !== 0;
1251
1251
  }
1252
1252
  }
1253
1253
  const kI = typeof FinalizationRegistry > "u" ? { register: () => {
1254
1254
  }, unregister: () => {
1255
- } } : new FinalizationRegistry((E) => Q.__wbg_rawmultibodyjointset_free(E >>> 0, 1));
1255
+ } } : new FinalizationRegistry((E) => B.__wbg_rawmultibodyjointset_free(E >>> 0, 1));
1256
1256
  class iA {
1257
1257
  static __wrap(A) {
1258
1258
  A >>>= 0;
@@ -1265,65 +1265,65 @@ class iA {
1265
1265
  }
1266
1266
  free() {
1267
1267
  const A = this.__destroy_into_raw();
1268
- Q.__wbg_rawmultibodyjointset_free(A, 0);
1268
+ B.__wbg_rawmultibodyjointset_free(A, 0);
1269
1269
  }
1270
1270
  jointType(A) {
1271
- return Q.rawmultibodyjointset_jointType(this.__wbg_ptr, A);
1271
+ return B.rawmultibodyjointset_jointType(this.__wbg_ptr, A);
1272
1272
  }
1273
1273
  jointFrameX1(A) {
1274
- const I = Q.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr, A);
1274
+ const I = B.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr, A);
1275
1275
  return t.__wrap(I);
1276
1276
  }
1277
1277
  jointFrameX2(A) {
1278
- const I = Q.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr, A);
1278
+ const I = B.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr, A);
1279
1279
  return t.__wrap(I);
1280
1280
  }
1281
1281
  jointAnchor1(A) {
1282
- const I = Q.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr, A);
1282
+ const I = B.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr, A);
1283
1283
  return N.__wrap(I);
1284
1284
  }
1285
1285
  jointAnchor2(A) {
1286
- const I = Q.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr, A);
1286
+ const I = B.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr, A);
1287
1287
  return N.__wrap(I);
1288
1288
  }
1289
1289
  jointContactsEnabled(A) {
1290
- return Q.rawmultibodyjointset_jointContactsEnabled(this.__wbg_ptr, A) !== 0;
1290
+ return B.rawmultibodyjointset_jointContactsEnabled(this.__wbg_ptr, A) !== 0;
1291
1291
  }
1292
1292
  jointSetContactsEnabled(A, I) {
1293
- Q.rawmultibodyjointset_jointSetContactsEnabled(this.__wbg_ptr, A, I);
1293
+ B.rawmultibodyjointset_jointSetContactsEnabled(this.__wbg_ptr, A, I);
1294
1294
  }
1295
1295
  jointLimitsEnabled(A, I) {
1296
- return Q.rawmultibodyjointset_jointLimitsEnabled(this.__wbg_ptr, A, I) !== 0;
1296
+ return B.rawmultibodyjointset_jointLimitsEnabled(this.__wbg_ptr, A, I) !== 0;
1297
1297
  }
1298
1298
  jointLimitsMin(A, I) {
1299
- return Q.rawmultibodyjointset_jointLimitsMin(this.__wbg_ptr, A, I);
1299
+ return B.rawmultibodyjointset_jointLimitsMin(this.__wbg_ptr, A, I);
1300
1300
  }
1301
1301
  jointLimitsMax(A, I) {
1302
- return Q.rawmultibodyjointset_jointLimitsMax(this.__wbg_ptr, A, I);
1302
+ return B.rawmultibodyjointset_jointLimitsMax(this.__wbg_ptr, A, I);
1303
1303
  }
1304
1304
  constructor() {
1305
- const A = Q.rawmultibodyjointset_new();
1305
+ const A = B.rawmultibodyjointset_new();
1306
1306
  return this.__wbg_ptr = A >>> 0, kI.register(this, this.__wbg_ptr, this), this;
1307
1307
  }
1308
1308
  createJoint(A, I, g, C) {
1309
- return G(A, u), Q.rawmultibodyjointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, g, C);
1309
+ return G(A, u), B.rawmultibodyjointset_createJoint(this.__wbg_ptr, A.__wbg_ptr, I, g, C);
1310
1310
  }
1311
1311
  remove(A, I) {
1312
- Q.rawmultibodyjointset_remove(this.__wbg_ptr, A, I);
1312
+ B.rawmultibodyjointset_remove(this.__wbg_ptr, A, I);
1313
1313
  }
1314
1314
  contains(A) {
1315
- return Q.rawmultibodyjointset_contains(this.__wbg_ptr, A) !== 0;
1315
+ return B.rawmultibodyjointset_contains(this.__wbg_ptr, A) !== 0;
1316
1316
  }
1317
1317
  forEachJointHandle(A) {
1318
1318
  try {
1319
- Q.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr, f(A));
1319
+ B.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr, f(A));
1320
1320
  } finally {
1321
1321
  Y[H++] = void 0;
1322
1322
  }
1323
1323
  }
1324
1324
  forEachJointAttachedToRigidBody(A, I) {
1325
1325
  try {
1326
- Q.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, f(I));
1326
+ B.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, f(I));
1327
1327
  } finally {
1328
1328
  Y[H++] = void 0;
1329
1329
  }
@@ -1331,7 +1331,7 @@ class iA {
1331
1331
  }
1332
1332
  const yI = typeof FinalizationRegistry > "u" ? { register: () => {
1333
1333
  }, unregister: () => {
1334
- } } : new FinalizationRegistry((E) => Q.__wbg_rawnarrowphase_free(E >>> 0, 1));
1334
+ } } : new FinalizationRegistry((E) => B.__wbg_rawnarrowphase_free(E >>> 0, 1));
1335
1335
  class W {
1336
1336
  static __wrap(A) {
1337
1337
  A >>>= 0;
@@ -1344,29 +1344,29 @@ class W {
1344
1344
  }
1345
1345
  free() {
1346
1346
  const A = this.__destroy_into_raw();
1347
- Q.__wbg_rawnarrowphase_free(A, 0);
1347
+ B.__wbg_rawnarrowphase_free(A, 0);
1348
1348
  }
1349
1349
  constructor() {
1350
- const A = Q.rawnarrowphase_new();
1350
+ const A = B.rawnarrowphase_new();
1351
1351
  return this.__wbg_ptr = A >>> 0, yI.register(this, this.__wbg_ptr, this), this;
1352
1352
  }
1353
1353
  contact_pairs_with(A, I) {
1354
- Q.rawnarrowphase_contact_pairs_with(this.__wbg_ptr, A, r(I));
1354
+ B.rawnarrowphase_contact_pairs_with(this.__wbg_ptr, A, r(I));
1355
1355
  }
1356
1356
  contact_pair(A, I) {
1357
- const g = Q.rawnarrowphase_contact_pair(this.__wbg_ptr, A, I);
1357
+ const g = B.rawnarrowphase_contact_pair(this.__wbg_ptr, A, I);
1358
1358
  return g === 0 ? void 0 : pI.__wrap(g);
1359
1359
  }
1360
1360
  intersection_pairs_with(A, I) {
1361
- Q.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr, A, r(I));
1361
+ B.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr, A, r(I));
1362
1362
  }
1363
1363
  intersection_pair(A, I) {
1364
- return Q.rawnarrowphase_intersection_pair(this.__wbg_ptr, A, I) !== 0;
1364
+ return B.rawnarrowphase_intersection_pair(this.__wbg_ptr, A, I) !== 0;
1365
1365
  }
1366
1366
  }
1367
1367
  const Kg = typeof FinalizationRegistry > "u" ? { register: () => {
1368
1368
  }, unregister: () => {
1369
- } } : new FinalizationRegistry((E) => Q.__wbg_rawphysicspipeline_free(E >>> 0, 1));
1369
+ } } : new FinalizationRegistry((E) => B.__wbg_rawphysicspipeline_free(E >>> 0, 1));
1370
1370
  class SC {
1371
1371
  __destroy_into_raw() {
1372
1372
  const A = this.__wbg_ptr;
@@ -1374,76 +1374,76 @@ class SC {
1374
1374
  }
1375
1375
  free() {
1376
1376
  const A = this.__destroy_into_raw();
1377
- Q.__wbg_rawphysicspipeline_free(A, 0);
1377
+ B.__wbg_rawphysicspipeline_free(A, 0);
1378
1378
  }
1379
1379
  constructor() {
1380
- const A = Q.rawphysicspipeline_new();
1380
+ const A = B.rawphysicspipeline_new();
1381
1381
  return this.__wbg_ptr = A >>> 0, Kg.register(this, this.__wbg_ptr, this), this;
1382
1382
  }
1383
1383
  set_profiler_enabled(A) {
1384
- Q.rawphysicspipeline_set_profiler_enabled(this.__wbg_ptr, A);
1384
+ B.rawphysicspipeline_set_profiler_enabled(this.__wbg_ptr, A);
1385
1385
  }
1386
1386
  is_profiler_enabled() {
1387
- return Q.rawphysicspipeline_is_profiler_enabled(this.__wbg_ptr) !== 0;
1387
+ return B.rawphysicspipeline_is_profiler_enabled(this.__wbg_ptr) !== 0;
1388
1388
  }
1389
1389
  timing_step() {
1390
- return Q.rawphysicspipeline_timing_step(this.__wbg_ptr);
1390
+ return B.rawphysicspipeline_timing_step(this.__wbg_ptr);
1391
1391
  }
1392
1392
  timing_collision_detection() {
1393
- return Q.rawphysicspipeline_timing_collision_detection(this.__wbg_ptr);
1393
+ return B.rawphysicspipeline_timing_collision_detection(this.__wbg_ptr);
1394
1394
  }
1395
1395
  timing_broad_phase() {
1396
- return Q.rawphysicspipeline_timing_broad_phase(this.__wbg_ptr);
1396
+ return B.rawphysicspipeline_timing_broad_phase(this.__wbg_ptr);
1397
1397
  }
1398
1398
  timing_narrow_phase() {
1399
- return Q.rawphysicspipeline_timing_narrow_phase(this.__wbg_ptr);
1399
+ return B.rawphysicspipeline_timing_narrow_phase(this.__wbg_ptr);
1400
1400
  }
1401
1401
  timing_solver() {
1402
- return Q.rawphysicspipeline_timing_solver(this.__wbg_ptr);
1402
+ return B.rawphysicspipeline_timing_solver(this.__wbg_ptr);
1403
1403
  }
1404
1404
  timing_velocity_assembly() {
1405
- return Q.rawphysicspipeline_timing_velocity_assembly(this.__wbg_ptr);
1405
+ return B.rawphysicspipeline_timing_velocity_assembly(this.__wbg_ptr);
1406
1406
  }
1407
1407
  timing_velocity_resolution() {
1408
- return Q.rawphysicspipeline_timing_velocity_resolution(this.__wbg_ptr);
1408
+ return B.rawphysicspipeline_timing_velocity_resolution(this.__wbg_ptr);
1409
1409
  }
1410
1410
  timing_velocity_update() {
1411
- return Q.rawphysicspipeline_timing_velocity_update(this.__wbg_ptr);
1411
+ return B.rawphysicspipeline_timing_velocity_update(this.__wbg_ptr);
1412
1412
  }
1413
1413
  timing_velocity_writeback() {
1414
- return Q.rawphysicspipeline_timing_velocity_writeback(this.__wbg_ptr);
1414
+ return B.rawphysicspipeline_timing_velocity_writeback(this.__wbg_ptr);
1415
1415
  }
1416
1416
  timing_ccd() {
1417
- return Q.rawphysicspipeline_timing_ccd(this.__wbg_ptr);
1417
+ return B.rawphysicspipeline_timing_ccd(this.__wbg_ptr);
1418
1418
  }
1419
1419
  timing_ccd_toi_computation() {
1420
- return Q.rawphysicspipeline_timing_ccd_toi_computation(this.__wbg_ptr);
1420
+ return B.rawphysicspipeline_timing_ccd_toi_computation(this.__wbg_ptr);
1421
1421
  }
1422
1422
  timing_ccd_broad_phase() {
1423
- return Q.rawphysicspipeline_timing_ccd_broad_phase(this.__wbg_ptr);
1423
+ return B.rawphysicspipeline_timing_ccd_broad_phase(this.__wbg_ptr);
1424
1424
  }
1425
1425
  timing_ccd_narrow_phase() {
1426
- return Q.rawphysicspipeline_timing_ccd_narrow_phase(this.__wbg_ptr);
1426
+ return B.rawphysicspipeline_timing_ccd_narrow_phase(this.__wbg_ptr);
1427
1427
  }
1428
1428
  timing_ccd_solver() {
1429
- return Q.rawphysicspipeline_timing_ccd_solver(this.__wbg_ptr);
1429
+ return B.rawphysicspipeline_timing_ccd_solver(this.__wbg_ptr);
1430
1430
  }
1431
1431
  timing_island_construction() {
1432
- return Q.rawphysicspipeline_timing_island_construction(this.__wbg_ptr);
1432
+ return B.rawphysicspipeline_timing_island_construction(this.__wbg_ptr);
1433
1433
  }
1434
1434
  timing_user_changes() {
1435
- return Q.rawphysicspipeline_timing_user_changes(this.__wbg_ptr);
1435
+ return B.rawphysicspipeline_timing_user_changes(this.__wbg_ptr);
1436
1436
  }
1437
- step(A, I, g, C, B, i, D, o, w, K) {
1438
- G(A, N), G(I, aA), G(g, EA), G(C, KA), G(B, W), G(i, n), G(D, b), G(o, BA), G(w, iA), G(K, UI), Q.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, K.__wbg_ptr);
1437
+ step(A, I, g, C, Q, i, D, o, w, h) {
1438
+ G(A, N), G(I, aA), G(g, EA), G(C, KA), G(Q, W), G(i, n), G(D, b), G(o, BA), G(w, iA), G(h, UI), B.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, h.__wbg_ptr);
1439
1439
  }
1440
- stepWithEvents(A, I, g, C, B, i, D, o, w, K, h, s, y, a) {
1441
- G(A, N), G(I, aA), G(g, EA), G(C, KA), G(B, W), G(i, n), G(D, b), G(o, BA), G(w, iA), G(K, UI), G(h, rg), Q.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, K.__wbg_ptr, h.__wbg_ptr, r(s), r(y), r(a));
1440
+ stepWithEvents(A, I, g, C, Q, i, D, o, w, h, K, s, y, a) {
1441
+ G(A, N), G(I, aA), G(g, EA), G(C, KA), G(Q, W), G(i, n), G(D, b), G(o, BA), G(w, iA), G(h, UI), G(K, rg), B.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, h.__wbg_ptr, K.__wbg_ptr, r(s), r(y), r(a));
1442
1442
  }
1443
1443
  }
1444
1444
  const sg = typeof FinalizationRegistry > "u" ? { register: () => {
1445
1445
  }, unregister: () => {
1446
- } } : new FinalizationRegistry((E) => Q.__wbg_rawpidcontroller_free(E >>> 0, 1));
1446
+ } } : new FinalizationRegistry((E) => B.__wbg_rawpidcontroller_free(E >>> 0, 1));
1447
1447
  class NC {
1448
1448
  __destroy_into_raw() {
1449
1449
  const A = this.__wbg_ptr;
@@ -1451,45 +1451,45 @@ class NC {
1451
1451
  }
1452
1452
  free() {
1453
1453
  const A = this.__destroy_into_raw();
1454
- Q.__wbg_rawpidcontroller_free(A, 0);
1454
+ B.__wbg_rawpidcontroller_free(A, 0);
1455
1455
  }
1456
1456
  constructor(A, I, g, C) {
1457
- const B = Q.rawpidcontroller_new(A, I, g, C);
1458
- return this.__wbg_ptr = B >>> 0, sg.register(this, this.__wbg_ptr, this), this;
1457
+ const Q = B.rawpidcontroller_new(A, I, g, C);
1458
+ return this.__wbg_ptr = Q >>> 0, sg.register(this, this.__wbg_ptr, this), this;
1459
1459
  }
1460
1460
  set_kp(A, I) {
1461
- Q.rawpidcontroller_set_kp(this.__wbg_ptr, A, I);
1461
+ B.rawpidcontroller_set_kp(this.__wbg_ptr, A, I);
1462
1462
  }
1463
1463
  set_ki(A, I) {
1464
- Q.rawpidcontroller_set_ki(this.__wbg_ptr, A, I);
1464
+ B.rawpidcontroller_set_ki(this.__wbg_ptr, A, I);
1465
1465
  }
1466
1466
  set_kd(A, I) {
1467
- Q.rawpidcontroller_set_kd(this.__wbg_ptr, A, I);
1467
+ B.rawpidcontroller_set_kd(this.__wbg_ptr, A, I);
1468
1468
  }
1469
1469
  set_axes_mask(A) {
1470
- Q.rawpidcontroller_set_axes_mask(this.__wbg_ptr, A);
1470
+ B.rawpidcontroller_set_axes_mask(this.__wbg_ptr, A);
1471
1471
  }
1472
1472
  reset_integrals() {
1473
- Q.rawpidcontroller_reset_integrals(this.__wbg_ptr);
1473
+ B.rawpidcontroller_reset_integrals(this.__wbg_ptr);
1474
1474
  }
1475
- apply_linear_correction(A, I, g, C, B) {
1476
- G(I, n), G(C, N), G(B, N), Q.rawpidcontroller_apply_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B.__wbg_ptr);
1475
+ apply_linear_correction(A, I, g, C, Q) {
1476
+ G(I, n), G(C, N), G(Q, N), B.rawpidcontroller_apply_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, Q.__wbg_ptr);
1477
1477
  }
1478
- apply_angular_correction(A, I, g, C, B) {
1479
- G(I, n), Q.rawpidcontroller_apply_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C, B);
1478
+ apply_angular_correction(A, I, g, C, Q) {
1479
+ G(I, n), B.rawpidcontroller_apply_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C, Q);
1480
1480
  }
1481
- linear_correction(A, I, g, C, B) {
1482
- G(I, n), G(C, N), G(B, N);
1483
- const i = Q.rawpidcontroller_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B.__wbg_ptr);
1481
+ linear_correction(A, I, g, C, Q) {
1482
+ G(I, n), G(C, N), G(Q, N);
1483
+ const i = B.rawpidcontroller_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, Q.__wbg_ptr);
1484
1484
  return N.__wrap(i);
1485
1485
  }
1486
- angular_correction(A, I, g, C, B) {
1487
- return G(I, n), Q.rawpidcontroller_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C, B);
1486
+ angular_correction(A, I, g, C, Q) {
1487
+ return G(I, n), B.rawpidcontroller_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C, Q);
1488
1488
  }
1489
1489
  }
1490
1490
  const Sg = typeof FinalizationRegistry > "u" ? { register: () => {
1491
1491
  }, unregister: () => {
1492
- } } : new FinalizationRegistry((E) => Q.__wbg_rawpointcolliderprojection_free(E >>> 0, 1));
1492
+ } } : new FinalizationRegistry((E) => B.__wbg_rawpointcolliderprojection_free(E >>> 0, 1));
1493
1493
  class mA {
1494
1494
  static __wrap(A) {
1495
1495
  A >>>= 0;
@@ -1502,29 +1502,29 @@ class mA {
1502
1502
  }
1503
1503
  free() {
1504
1504
  const A = this.__destroy_into_raw();
1505
- Q.__wbg_rawpointcolliderprojection_free(A, 0);
1505
+ B.__wbg_rawpointcolliderprojection_free(A, 0);
1506
1506
  }
1507
1507
  colliderHandle() {
1508
- return Q.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr);
1508
+ return B.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr);
1509
1509
  }
1510
1510
  point() {
1511
- const A = Q.rawpointcolliderprojection_point(this.__wbg_ptr);
1511
+ const A = B.rawpointcolliderprojection_point(this.__wbg_ptr);
1512
1512
  return N.__wrap(A);
1513
1513
  }
1514
1514
  isInside() {
1515
- return Q.rawpointcolliderprojection_isInside(this.__wbg_ptr) !== 0;
1515
+ return B.rawpointcolliderprojection_isInside(this.__wbg_ptr) !== 0;
1516
1516
  }
1517
1517
  featureType() {
1518
- return Q.rawpointcolliderprojection_featureType(this.__wbg_ptr);
1518
+ return B.rawpointcolliderprojection_featureType(this.__wbg_ptr);
1519
1519
  }
1520
1520
  featureId() {
1521
- const A = Q.rawpointcolliderprojection_featureId(this.__wbg_ptr);
1521
+ const A = B.rawpointcolliderprojection_featureId(this.__wbg_ptr);
1522
1522
  return A === 4294967297 ? void 0 : A;
1523
1523
  }
1524
1524
  }
1525
1525
  const Ng = typeof FinalizationRegistry > "u" ? { register: () => {
1526
1526
  }, unregister: () => {
1527
- } } : new FinalizationRegistry((E) => Q.__wbg_rawpointprojection_free(E >>> 0, 1));
1527
+ } } : new FinalizationRegistry((E) => B.__wbg_rawpointprojection_free(E >>> 0, 1));
1528
1528
  class AI {
1529
1529
  static __wrap(A) {
1530
1530
  A >>>= 0;
@@ -1537,19 +1537,19 @@ class AI {
1537
1537
  }
1538
1538
  free() {
1539
1539
  const A = this.__destroy_into_raw();
1540
- Q.__wbg_rawpointprojection_free(A, 0);
1540
+ B.__wbg_rawpointprojection_free(A, 0);
1541
1541
  }
1542
1542
  point() {
1543
- const A = Q.rawpointprojection_point(this.__wbg_ptr);
1543
+ const A = B.rawpointprojection_point(this.__wbg_ptr);
1544
1544
  return N.__wrap(A);
1545
1545
  }
1546
1546
  isInside() {
1547
- return Q.rawpointprojection_isInside(this.__wbg_ptr) !== 0;
1547
+ return B.rawpointprojection_isInside(this.__wbg_ptr) !== 0;
1548
1548
  }
1549
1549
  }
1550
1550
  const kg = typeof FinalizationRegistry > "u" ? { register: () => {
1551
1551
  }, unregister: () => {
1552
- } } : new FinalizationRegistry((E) => Q.__wbg_rawraycolliderhit_free(E >>> 0, 1));
1552
+ } } : new FinalizationRegistry((E) => B.__wbg_rawraycolliderhit_free(E >>> 0, 1));
1553
1553
  class fI {
1554
1554
  static __wrap(A) {
1555
1555
  A >>>= 0;
@@ -1562,18 +1562,18 @@ class fI {
1562
1562
  }
1563
1563
  free() {
1564
1564
  const A = this.__destroy_into_raw();
1565
- Q.__wbg_rawraycolliderhit_free(A, 0);
1565
+ B.__wbg_rawraycolliderhit_free(A, 0);
1566
1566
  }
1567
1567
  colliderHandle() {
1568
- return Q.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr);
1568
+ return B.rawcollidershapecasthit_colliderHandle(this.__wbg_ptr);
1569
1569
  }
1570
1570
  timeOfImpact() {
1571
- return Q.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr);
1571
+ return B.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr);
1572
1572
  }
1573
1573
  }
1574
1574
  const yg = typeof FinalizationRegistry > "u" ? { register: () => {
1575
1575
  }, unregister: () => {
1576
- } } : new FinalizationRegistry((E) => Q.__wbg_rawraycolliderintersection_free(E >>> 0, 1));
1576
+ } } : new FinalizationRegistry((E) => B.__wbg_rawraycolliderintersection_free(E >>> 0, 1));
1577
1577
  class II {
1578
1578
  static __wrap(A) {
1579
1579
  A >>>= 0;
@@ -1586,29 +1586,29 @@ class II {
1586
1586
  }
1587
1587
  free() {
1588
1588
  const A = this.__destroy_into_raw();
1589
- Q.__wbg_rawraycolliderintersection_free(A, 0);
1589
+ B.__wbg_rawraycolliderintersection_free(A, 0);
1590
1590
  }
1591
1591
  colliderHandle() {
1592
- return Q.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr);
1592
+ return B.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr);
1593
1593
  }
1594
1594
  normal() {
1595
- const A = Q.rawcollidershapecasthit_witness1(this.__wbg_ptr);
1595
+ const A = B.rawcollidershapecasthit_witness1(this.__wbg_ptr);
1596
1596
  return N.__wrap(A);
1597
1597
  }
1598
1598
  time_of_impact() {
1599
- return Q.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr);
1599
+ return B.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr);
1600
1600
  }
1601
1601
  featureType() {
1602
- return Q.rawpointcolliderprojection_featureType(this.__wbg_ptr);
1602
+ return B.rawpointcolliderprojection_featureType(this.__wbg_ptr);
1603
1603
  }
1604
1604
  featureId() {
1605
- const A = Q.rawpointcolliderprojection_featureId(this.__wbg_ptr);
1605
+ const A = B.rawpointcolliderprojection_featureId(this.__wbg_ptr);
1606
1606
  return A === 4294967297 ? void 0 : A;
1607
1607
  }
1608
1608
  }
1609
1609
  const ag = typeof FinalizationRegistry > "u" ? { register: () => {
1610
1610
  }, unregister: () => {
1611
- } } : new FinalizationRegistry((E) => Q.__wbg_rawrayintersection_free(E >>> 0, 1));
1611
+ } } : new FinalizationRegistry((E) => B.__wbg_rawrayintersection_free(E >>> 0, 1));
1612
1612
  class gI {
1613
1613
  static __wrap(A) {
1614
1614
  A >>>= 0;
@@ -1621,26 +1621,26 @@ class gI {
1621
1621
  }
1622
1622
  free() {
1623
1623
  const A = this.__destroy_into_raw();
1624
- Q.__wbg_rawrayintersection_free(A, 0);
1624
+ B.__wbg_rawrayintersection_free(A, 0);
1625
1625
  }
1626
1626
  normal() {
1627
- const A = Q.rawcollidershapecasthit_witness1(this.__wbg_ptr);
1627
+ const A = B.rawcollidershapecasthit_witness1(this.__wbg_ptr);
1628
1628
  return N.__wrap(A);
1629
1629
  }
1630
1630
  time_of_impact() {
1631
- return Q.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr);
1631
+ return B.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr);
1632
1632
  }
1633
1633
  featureType() {
1634
- return Q.rawpointcolliderprojection_featureType(this.__wbg_ptr);
1634
+ return B.rawpointcolliderprojection_featureType(this.__wbg_ptr);
1635
1635
  }
1636
1636
  featureId() {
1637
- const A = Q.rawpointcolliderprojection_featureId(this.__wbg_ptr);
1637
+ const A = B.rawpointcolliderprojection_featureId(this.__wbg_ptr);
1638
1638
  return A === 4294967297 ? void 0 : A;
1639
1639
  }
1640
1640
  }
1641
1641
  const aI = typeof FinalizationRegistry > "u" ? { register: () => {
1642
1642
  }, unregister: () => {
1643
- } } : new FinalizationRegistry((E) => Q.__wbg_rawrigidbodyset_free(E >>> 0, 1));
1643
+ } } : new FinalizationRegistry((E) => B.__wbg_rawrigidbodyset_free(E >>> 0, 1));
1644
1644
  class n {
1645
1645
  static __wrap(A) {
1646
1646
  A >>>= 0;
@@ -1653,250 +1653,250 @@ class n {
1653
1653
  }
1654
1654
  free() {
1655
1655
  const A = this.__destroy_into_raw();
1656
- Q.__wbg_rawrigidbodyset_free(A, 0);
1656
+ B.__wbg_rawrigidbodyset_free(A, 0);
1657
1657
  }
1658
1658
  rbTranslation(A) {
1659
- const I = Q.rawrigidbodyset_rbTranslation(this.__wbg_ptr, A);
1659
+ const I = B.rawrigidbodyset_rbTranslation(this.__wbg_ptr, A);
1660
1660
  return N.__wrap(I);
1661
1661
  }
1662
1662
  rbRotation(A) {
1663
- const I = Q.rawrigidbodyset_rbRotation(this.__wbg_ptr, A);
1663
+ const I = B.rawrigidbodyset_rbRotation(this.__wbg_ptr, A);
1664
1664
  return t.__wrap(I);
1665
1665
  }
1666
1666
  rbSleep(A) {
1667
- Q.rawrigidbodyset_rbSleep(this.__wbg_ptr, A);
1667
+ B.rawrigidbodyset_rbSleep(this.__wbg_ptr, A);
1668
1668
  }
1669
1669
  rbIsSleeping(A) {
1670
- return Q.rawrigidbodyset_rbIsSleeping(this.__wbg_ptr, A) !== 0;
1670
+ return B.rawrigidbodyset_rbIsSleeping(this.__wbg_ptr, A) !== 0;
1671
1671
  }
1672
1672
  rbIsMoving(A) {
1673
- return Q.rawrigidbodyset_rbIsMoving(this.__wbg_ptr, A) !== 0;
1673
+ return B.rawrigidbodyset_rbIsMoving(this.__wbg_ptr, A) !== 0;
1674
1674
  }
1675
1675
  rbNextTranslation(A) {
1676
- const I = Q.rawrigidbodyset_rbNextTranslation(this.__wbg_ptr, A);
1676
+ const I = B.rawrigidbodyset_rbNextTranslation(this.__wbg_ptr, A);
1677
1677
  return N.__wrap(I);
1678
1678
  }
1679
1679
  rbNextRotation(A) {
1680
- const I = Q.rawrigidbodyset_rbNextRotation(this.__wbg_ptr, A);
1680
+ const I = B.rawrigidbodyset_rbNextRotation(this.__wbg_ptr, A);
1681
1681
  return t.__wrap(I);
1682
1682
  }
1683
1683
  rbSetTranslation(A, I, g, C) {
1684
- Q.rawrigidbodyset_rbSetTranslation(this.__wbg_ptr, A, I, g, C);
1684
+ B.rawrigidbodyset_rbSetTranslation(this.__wbg_ptr, A, I, g, C);
1685
1685
  }
1686
1686
  rbSetRotation(A, I, g) {
1687
- Q.rawrigidbodyset_rbSetRotation(this.__wbg_ptr, A, I, g);
1687
+ B.rawrigidbodyset_rbSetRotation(this.__wbg_ptr, A, I, g);
1688
1688
  }
1689
1689
  rbSetLinvel(A, I, g) {
1690
- G(I, N), Q.rawrigidbodyset_rbSetLinvel(this.__wbg_ptr, A, I.__wbg_ptr, g);
1690
+ G(I, N), B.rawrigidbodyset_rbSetLinvel(this.__wbg_ptr, A, I.__wbg_ptr, g);
1691
1691
  }
1692
1692
  rbSetAngvel(A, I, g) {
1693
- Q.rawrigidbodyset_rbSetAngvel(this.__wbg_ptr, A, I, g);
1693
+ B.rawrigidbodyset_rbSetAngvel(this.__wbg_ptr, A, I, g);
1694
1694
  }
1695
1695
  rbSetNextKinematicTranslation(A, I, g) {
1696
- Q.rawrigidbodyset_rbSetNextKinematicTranslation(this.__wbg_ptr, A, I, g);
1696
+ B.rawrigidbodyset_rbSetNextKinematicTranslation(this.__wbg_ptr, A, I, g);
1697
1697
  }
1698
1698
  rbSetNextKinematicRotation(A, I) {
1699
- Q.rawrigidbodyset_rbSetNextKinematicRotation(this.__wbg_ptr, A, I);
1699
+ B.rawrigidbodyset_rbSetNextKinematicRotation(this.__wbg_ptr, A, I);
1700
1700
  }
1701
1701
  rbRecomputeMassPropertiesFromColliders(A, I) {
1702
- G(I, b), Q.rawrigidbodyset_rbRecomputeMassPropertiesFromColliders(this.__wbg_ptr, A, I.__wbg_ptr);
1702
+ G(I, b), B.rawrigidbodyset_rbRecomputeMassPropertiesFromColliders(this.__wbg_ptr, A, I.__wbg_ptr);
1703
1703
  }
1704
1704
  rbSetAdditionalMass(A, I, g) {
1705
- Q.rawrigidbodyset_rbSetAdditionalMass(this.__wbg_ptr, A, I, g);
1705
+ B.rawrigidbodyset_rbSetAdditionalMass(this.__wbg_ptr, A, I, g);
1706
1706
  }
1707
- rbSetAdditionalMassProperties(A, I, g, C, B) {
1708
- G(g, N), Q.rawrigidbodyset_rbSetAdditionalMassProperties(this.__wbg_ptr, A, I, g.__wbg_ptr, C, B);
1707
+ rbSetAdditionalMassProperties(A, I, g, C, Q) {
1708
+ G(g, N), B.rawrigidbodyset_rbSetAdditionalMassProperties(this.__wbg_ptr, A, I, g.__wbg_ptr, C, Q);
1709
1709
  }
1710
1710
  rbLinvel(A) {
1711
- const I = Q.rawrigidbodyset_rbLinvel(this.__wbg_ptr, A);
1711
+ const I = B.rawrigidbodyset_rbLinvel(this.__wbg_ptr, A);
1712
1712
  return N.__wrap(I);
1713
1713
  }
1714
1714
  rbAngvel(A) {
1715
- return Q.rawrigidbodyset_rbAngvel(this.__wbg_ptr, A);
1715
+ return B.rawrigidbodyset_rbAngvel(this.__wbg_ptr, A);
1716
1716
  }
1717
1717
  rbVelocityAtPoint(A, I) {
1718
1718
  G(I, N);
1719
- const g = Q.rawrigidbodyset_rbVelocityAtPoint(this.__wbg_ptr, A, I.__wbg_ptr);
1719
+ const g = B.rawrigidbodyset_rbVelocityAtPoint(this.__wbg_ptr, A, I.__wbg_ptr);
1720
1720
  return N.__wrap(g);
1721
1721
  }
1722
1722
  rbLockTranslations(A, I, g) {
1723
- Q.rawrigidbodyset_rbLockTranslations(this.__wbg_ptr, A, I, g);
1723
+ B.rawrigidbodyset_rbLockTranslations(this.__wbg_ptr, A, I, g);
1724
1724
  }
1725
1725
  rbSetEnabledTranslations(A, I, g, C) {
1726
- Q.rawrigidbodyset_rbSetEnabledTranslations(this.__wbg_ptr, A, I, g, C);
1726
+ B.rawrigidbodyset_rbSetEnabledTranslations(this.__wbg_ptr, A, I, g, C);
1727
1727
  }
1728
1728
  rbLockRotations(A, I, g) {
1729
- Q.rawrigidbodyset_rbLockRotations(this.__wbg_ptr, A, I, g);
1729
+ B.rawrigidbodyset_rbLockRotations(this.__wbg_ptr, A, I, g);
1730
1730
  }
1731
1731
  rbDominanceGroup(A) {
1732
- return Q.rawrigidbodyset_rbDominanceGroup(this.__wbg_ptr, A);
1732
+ return B.rawrigidbodyset_rbDominanceGroup(this.__wbg_ptr, A);
1733
1733
  }
1734
1734
  rbSetDominanceGroup(A, I) {
1735
- Q.rawrigidbodyset_rbSetDominanceGroup(this.__wbg_ptr, A, I);
1735
+ B.rawrigidbodyset_rbSetDominanceGroup(this.__wbg_ptr, A, I);
1736
1736
  }
1737
1737
  rbEnableCcd(A, I) {
1738
- Q.rawrigidbodyset_rbEnableCcd(this.__wbg_ptr, A, I);
1738
+ B.rawrigidbodyset_rbEnableCcd(this.__wbg_ptr, A, I);
1739
1739
  }
1740
1740
  rbSetSoftCcdPrediction(A, I) {
1741
- Q.rawrigidbodyset_rbSetSoftCcdPrediction(this.__wbg_ptr, A, I);
1741
+ B.rawrigidbodyset_rbSetSoftCcdPrediction(this.__wbg_ptr, A, I);
1742
1742
  }
1743
1743
  rbMass(A) {
1744
- return Q.rawrigidbodyset_rbMass(this.__wbg_ptr, A);
1744
+ return B.rawrigidbodyset_rbMass(this.__wbg_ptr, A);
1745
1745
  }
1746
1746
  rbInvMass(A) {
1747
- return Q.rawrigidbodyset_rbInvMass(this.__wbg_ptr, A);
1747
+ return B.rawrigidbodyset_rbInvMass(this.__wbg_ptr, A);
1748
1748
  }
1749
1749
  rbEffectiveInvMass(A) {
1750
- const I = Q.rawrigidbodyset_rbEffectiveInvMass(this.__wbg_ptr, A);
1750
+ const I = B.rawrigidbodyset_rbEffectiveInvMass(this.__wbg_ptr, A);
1751
1751
  return N.__wrap(I);
1752
1752
  }
1753
1753
  rbLocalCom(A) {
1754
- const I = Q.rawrigidbodyset_rbLocalCom(this.__wbg_ptr, A);
1754
+ const I = B.rawrigidbodyset_rbLocalCom(this.__wbg_ptr, A);
1755
1755
  return N.__wrap(I);
1756
1756
  }
1757
1757
  rbWorldCom(A) {
1758
- const I = Q.rawrigidbodyset_rbWorldCom(this.__wbg_ptr, A);
1758
+ const I = B.rawrigidbodyset_rbWorldCom(this.__wbg_ptr, A);
1759
1759
  return N.__wrap(I);
1760
1760
  }
1761
1761
  rbInvPrincipalInertia(A) {
1762
- return Q.rawrigidbodyset_rbInvPrincipalInertia(this.__wbg_ptr, A);
1762
+ return B.rawrigidbodyset_rbInvPrincipalInertia(this.__wbg_ptr, A);
1763
1763
  }
1764
1764
  rbPrincipalInertia(A) {
1765
- return Q.rawrigidbodyset_rbPrincipalInertia(this.__wbg_ptr, A);
1765
+ return B.rawrigidbodyset_rbPrincipalInertia(this.__wbg_ptr, A);
1766
1766
  }
1767
1767
  rbEffectiveWorldInvInertia(A) {
1768
- return Q.rawrigidbodyset_rbEffectiveWorldInvInertia(this.__wbg_ptr, A);
1768
+ return B.rawrigidbodyset_rbEffectiveWorldInvInertia(this.__wbg_ptr, A);
1769
1769
  }
1770
1770
  rbEffectiveAngularInertia(A) {
1771
- return Q.rawrigidbodyset_rbEffectiveAngularInertia(this.__wbg_ptr, A);
1771
+ return B.rawrigidbodyset_rbEffectiveAngularInertia(this.__wbg_ptr, A);
1772
1772
  }
1773
1773
  rbWakeUp(A) {
1774
- Q.rawrigidbodyset_rbWakeUp(this.__wbg_ptr, A);
1774
+ B.rawrigidbodyset_rbWakeUp(this.__wbg_ptr, A);
1775
1775
  }
1776
1776
  rbIsCcdEnabled(A) {
1777
- return Q.rawrigidbodyset_rbIsCcdEnabled(this.__wbg_ptr, A) !== 0;
1777
+ return B.rawrigidbodyset_rbIsCcdEnabled(this.__wbg_ptr, A) !== 0;
1778
1778
  }
1779
1779
  rbSoftCcdPrediction(A) {
1780
- return Q.rawrigidbodyset_rbSoftCcdPrediction(this.__wbg_ptr, A);
1780
+ return B.rawrigidbodyset_rbSoftCcdPrediction(this.__wbg_ptr, A);
1781
1781
  }
1782
1782
  rbNumColliders(A) {
1783
- return Q.rawrigidbodyset_rbNumColliders(this.__wbg_ptr, A) >>> 0;
1783
+ return B.rawrigidbodyset_rbNumColliders(this.__wbg_ptr, A) >>> 0;
1784
1784
  }
1785
1785
  rbCollider(A, I) {
1786
- return Q.rawrigidbodyset_rbCollider(this.__wbg_ptr, A, I);
1786
+ return B.rawrigidbodyset_rbCollider(this.__wbg_ptr, A, I);
1787
1787
  }
1788
1788
  rbBodyType(A) {
1789
- return Q.rawrigidbodyset_rbBodyType(this.__wbg_ptr, A);
1789
+ return B.rawrigidbodyset_rbBodyType(this.__wbg_ptr, A);
1790
1790
  }
1791
1791
  rbSetBodyType(A, I, g) {
1792
- Q.rawrigidbodyset_rbSetBodyType(this.__wbg_ptr, A, I, g);
1792
+ B.rawrigidbodyset_rbSetBodyType(this.__wbg_ptr, A, I, g);
1793
1793
  }
1794
1794
  rbIsFixed(A) {
1795
- return Q.rawrigidbodyset_rbIsFixed(this.__wbg_ptr, A) !== 0;
1795
+ return B.rawrigidbodyset_rbIsFixed(this.__wbg_ptr, A) !== 0;
1796
1796
  }
1797
1797
  rbIsKinematic(A) {
1798
- return Q.rawrigidbodyset_rbIsKinematic(this.__wbg_ptr, A) !== 0;
1798
+ return B.rawrigidbodyset_rbIsKinematic(this.__wbg_ptr, A) !== 0;
1799
1799
  }
1800
1800
  rbIsDynamic(A) {
1801
- return Q.rawrigidbodyset_rbIsDynamic(this.__wbg_ptr, A) !== 0;
1801
+ return B.rawrigidbodyset_rbIsDynamic(this.__wbg_ptr, A) !== 0;
1802
1802
  }
1803
1803
  rbLinearDamping(A) {
1804
- return Q.rawrigidbodyset_rbLinearDamping(this.__wbg_ptr, A);
1804
+ return B.rawrigidbodyset_rbLinearDamping(this.__wbg_ptr, A);
1805
1805
  }
1806
1806
  rbAngularDamping(A) {
1807
- return Q.rawrigidbodyset_rbAngularDamping(this.__wbg_ptr, A);
1807
+ return B.rawrigidbodyset_rbAngularDamping(this.__wbg_ptr, A);
1808
1808
  }
1809
1809
  rbSetLinearDamping(A, I) {
1810
- Q.rawrigidbodyset_rbSetLinearDamping(this.__wbg_ptr, A, I);
1810
+ B.rawrigidbodyset_rbSetLinearDamping(this.__wbg_ptr, A, I);
1811
1811
  }
1812
1812
  rbSetAngularDamping(A, I) {
1813
- Q.rawrigidbodyset_rbSetAngularDamping(this.__wbg_ptr, A, I);
1813
+ B.rawrigidbodyset_rbSetAngularDamping(this.__wbg_ptr, A, I);
1814
1814
  }
1815
1815
  rbSetEnabled(A, I) {
1816
- Q.rawrigidbodyset_rbSetEnabled(this.__wbg_ptr, A, I);
1816
+ B.rawrigidbodyset_rbSetEnabled(this.__wbg_ptr, A, I);
1817
1817
  }
1818
1818
  rbIsEnabled(A) {
1819
- return Q.rawrigidbodyset_rbIsEnabled(this.__wbg_ptr, A) !== 0;
1819
+ return B.rawrigidbodyset_rbIsEnabled(this.__wbg_ptr, A) !== 0;
1820
1820
  }
1821
1821
  rbGravityScale(A) {
1822
- return Q.rawrigidbodyset_rbGravityScale(this.__wbg_ptr, A);
1822
+ return B.rawrigidbodyset_rbGravityScale(this.__wbg_ptr, A);
1823
1823
  }
1824
1824
  rbSetGravityScale(A, I, g) {
1825
- Q.rawrigidbodyset_rbSetGravityScale(this.__wbg_ptr, A, I, g);
1825
+ B.rawrigidbodyset_rbSetGravityScale(this.__wbg_ptr, A, I, g);
1826
1826
  }
1827
1827
  rbResetForces(A, I) {
1828
- Q.rawrigidbodyset_rbResetForces(this.__wbg_ptr, A, I);
1828
+ B.rawrigidbodyset_rbResetForces(this.__wbg_ptr, A, I);
1829
1829
  }
1830
1830
  rbResetTorques(A, I) {
1831
- Q.rawrigidbodyset_rbResetTorques(this.__wbg_ptr, A, I);
1831
+ B.rawrigidbodyset_rbResetTorques(this.__wbg_ptr, A, I);
1832
1832
  }
1833
1833
  rbAddForce(A, I, g) {
1834
- G(I, N), Q.rawrigidbodyset_rbAddForce(this.__wbg_ptr, A, I.__wbg_ptr, g);
1834
+ G(I, N), B.rawrigidbodyset_rbAddForce(this.__wbg_ptr, A, I.__wbg_ptr, g);
1835
1835
  }
1836
1836
  rbApplyImpulse(A, I, g) {
1837
- G(I, N), Q.rawrigidbodyset_rbApplyImpulse(this.__wbg_ptr, A, I.__wbg_ptr, g);
1837
+ G(I, N), B.rawrigidbodyset_rbApplyImpulse(this.__wbg_ptr, A, I.__wbg_ptr, g);
1838
1838
  }
1839
1839
  rbAddTorque(A, I, g) {
1840
- Q.rawrigidbodyset_rbAddTorque(this.__wbg_ptr, A, I, g);
1840
+ B.rawrigidbodyset_rbAddTorque(this.__wbg_ptr, A, I, g);
1841
1841
  }
1842
1842
  rbApplyTorqueImpulse(A, I, g) {
1843
- Q.rawrigidbodyset_rbApplyTorqueImpulse(this.__wbg_ptr, A, I, g);
1843
+ B.rawrigidbodyset_rbApplyTorqueImpulse(this.__wbg_ptr, A, I, g);
1844
1844
  }
1845
1845
  rbAddForceAtPoint(A, I, g, C) {
1846
- G(I, N), G(g, N), Q.rawrigidbodyset_rbAddForceAtPoint(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C);
1846
+ G(I, N), G(g, N), B.rawrigidbodyset_rbAddForceAtPoint(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C);
1847
1847
  }
1848
1848
  rbApplyImpulseAtPoint(A, I, g, C) {
1849
- G(I, N), G(g, N), Q.rawrigidbodyset_rbApplyImpulseAtPoint(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C);
1849
+ G(I, N), G(g, N), B.rawrigidbodyset_rbApplyImpulseAtPoint(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C);
1850
1850
  }
1851
1851
  rbAdditionalSolverIterations(A) {
1852
- return Q.rawrigidbodyset_rbAdditionalSolverIterations(this.__wbg_ptr, A) >>> 0;
1852
+ return B.rawrigidbodyset_rbAdditionalSolverIterations(this.__wbg_ptr, A) >>> 0;
1853
1853
  }
1854
1854
  rbSetAdditionalSolverIterations(A, I) {
1855
- Q.rawrigidbodyset_rbSetAdditionalSolverIterations(this.__wbg_ptr, A, I);
1855
+ B.rawrigidbodyset_rbSetAdditionalSolverIterations(this.__wbg_ptr, A, I);
1856
1856
  }
1857
1857
  rbUserData(A) {
1858
- return Q.rawrigidbodyset_rbUserData(this.__wbg_ptr, A) >>> 0;
1858
+ return B.rawrigidbodyset_rbUserData(this.__wbg_ptr, A) >>> 0;
1859
1859
  }
1860
1860
  rbSetUserData(A, I) {
1861
- Q.rawrigidbodyset_rbSetUserData(this.__wbg_ptr, A, I);
1861
+ B.rawrigidbodyset_rbSetUserData(this.__wbg_ptr, A, I);
1862
1862
  }
1863
1863
  rbUserForce(A) {
1864
- const I = Q.rawrigidbodyset_rbUserForce(this.__wbg_ptr, A);
1864
+ const I = B.rawrigidbodyset_rbUserForce(this.__wbg_ptr, A);
1865
1865
  return N.__wrap(I);
1866
1866
  }
1867
1867
  rbUserTorque(A) {
1868
- return Q.rawrigidbodyset_rbUserTorque(this.__wbg_ptr, A);
1868
+ return B.rawrigidbodyset_rbUserTorque(this.__wbg_ptr, A);
1869
1869
  }
1870
1870
  constructor() {
1871
- const A = Q.rawrigidbodyset_new();
1871
+ const A = B.rawrigidbodyset_new();
1872
1872
  return this.__wbg_ptr = A >>> 0, aI.register(this, this.__wbg_ptr, this), this;
1873
1873
  }
1874
- createRigidBody(A, I, g, C, B, i, D, o, w, K, h, s, y, a, k, F, M, J, L, q, l, p) {
1875
- return G(I, N), G(g, t), G(D, N), G(o, N), Q.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B, i, D.__wbg_ptr, o.__wbg_ptr, w, K, h, s, y, a, k, F, M, J, L, q, l, p);
1874
+ createRigidBody(A, I, g, C, Q, i, D, o, w, h, K, s, y, a, k, F, M, J, L, q, l, p) {
1875
+ return G(I, N), G(g, t), G(D, N), G(o, N), B.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, Q, i, D.__wbg_ptr, o.__wbg_ptr, w, h, K, s, y, a, k, F, M, J, L, q, l, p);
1876
1876
  }
1877
- remove(A, I, g, C, B) {
1878
- G(I, EA), G(g, b), G(C, BA), G(B, iA), Q.rawrigidbodyset_remove(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr);
1877
+ remove(A, I, g, C, Q) {
1878
+ G(I, EA), G(g, b), G(C, BA), G(Q, iA), B.rawrigidbodyset_remove(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr);
1879
1879
  }
1880
1880
  len() {
1881
- return Q.rawrigidbodyset_len(this.__wbg_ptr) >>> 0;
1881
+ return B.rawrigidbodyset_len(this.__wbg_ptr) >>> 0;
1882
1882
  }
1883
1883
  contains(A) {
1884
- return Q.rawrigidbodyset_contains(this.__wbg_ptr, A) !== 0;
1884
+ return B.rawrigidbodyset_contains(this.__wbg_ptr, A) !== 0;
1885
1885
  }
1886
1886
  forEachRigidBodyHandle(A) {
1887
1887
  try {
1888
- Q.rawrigidbodyset_forEachRigidBodyHandle(this.__wbg_ptr, f(A));
1888
+ B.rawrigidbodyset_forEachRigidBodyHandle(this.__wbg_ptr, f(A));
1889
1889
  } finally {
1890
1890
  Y[H++] = void 0;
1891
1891
  }
1892
1892
  }
1893
1893
  propagateModifiedBodyPositionsToColliders(A) {
1894
- G(A, b), Q.rawrigidbodyset_propagateModifiedBodyPositionsToColliders(this.__wbg_ptr, A.__wbg_ptr);
1894
+ G(A, b), B.rawrigidbodyset_propagateModifiedBodyPositionsToColliders(this.__wbg_ptr, A.__wbg_ptr);
1895
1895
  }
1896
1896
  }
1897
1897
  const Fg = typeof FinalizationRegistry > "u" ? { register: () => {
1898
1898
  }, unregister: () => {
1899
- } } : new FinalizationRegistry((E) => Q.__wbg_rawrotation_free(E >>> 0, 1));
1899
+ } } : new FinalizationRegistry((E) => B.__wbg_rawrotation_free(E >>> 0, 1));
1900
1900
  class t {
1901
1901
  static __wrap(A) {
1902
1902
  A >>>= 0;
@@ -1909,29 +1909,29 @@ class t {
1909
1909
  }
1910
1910
  free() {
1911
1911
  const A = this.__destroy_into_raw();
1912
- Q.__wbg_rawrotation_free(A, 0);
1912
+ B.__wbg_rawrotation_free(A, 0);
1913
1913
  }
1914
1914
  static identity() {
1915
- const A = Q.rawrotation_identity();
1915
+ const A = B.rawrotation_identity();
1916
1916
  return t.__wrap(A);
1917
1917
  }
1918
1918
  static fromAngle(A) {
1919
- const I = Q.rawrotation_fromAngle(A);
1919
+ const I = B.rawrotation_fromAngle(A);
1920
1920
  return t.__wrap(I);
1921
1921
  }
1922
1922
  get im() {
1923
- return Q.rawkinematiccharactercontroller_offset(this.__wbg_ptr);
1923
+ return B.rawkinematiccharactercontroller_offset(this.__wbg_ptr);
1924
1924
  }
1925
1925
  get re() {
1926
- return Q.rawintegrationparameters_dt(this.__wbg_ptr);
1926
+ return B.rawintegrationparameters_dt(this.__wbg_ptr);
1927
1927
  }
1928
1928
  get angle() {
1929
- return Q.rawrotation_angle(this.__wbg_ptr);
1929
+ return B.rawrotation_angle(this.__wbg_ptr);
1930
1930
  }
1931
1931
  }
1932
1932
  const Mg = typeof FinalizationRegistry > "u" ? { register: () => {
1933
1933
  }, unregister: () => {
1934
- } } : new FinalizationRegistry((E) => Q.__wbg_rawserializationpipeline_free(E >>> 0, 1));
1934
+ } } : new FinalizationRegistry((E) => B.__wbg_rawserializationpipeline_free(E >>> 0, 1));
1935
1935
  class kC {
1936
1936
  __destroy_into_raw() {
1937
1937
  const A = this.__wbg_ptr;
@@ -1939,23 +1939,23 @@ class kC {
1939
1939
  }
1940
1940
  free() {
1941
1941
  const A = this.__destroy_into_raw();
1942
- Q.__wbg_rawserializationpipeline_free(A, 0);
1942
+ B.__wbg_rawserializationpipeline_free(A, 0);
1943
1943
  }
1944
1944
  constructor() {
1945
- const A = Q.rawccdsolver_new();
1945
+ const A = B.rawccdsolver_new();
1946
1946
  return this.__wbg_ptr = A >>> 0, Mg.register(this, this.__wbg_ptr, this), this;
1947
1947
  }
1948
- serializeAll(A, I, g, C, B, i, D, o, w) {
1949
- return G(A, N), G(I, aA), G(g, EA), G(C, KA), G(B, W), G(i, n), G(D, b), G(o, BA), G(w, iA), XA(Q.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr));
1948
+ serializeAll(A, I, g, C, Q, i, D, o, w) {
1949
+ return G(A, N), G(I, aA), G(g, EA), G(C, KA), G(Q, W), G(i, n), G(D, b), G(o, BA), G(w, iA), XA(B.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr));
1950
1950
  }
1951
1951
  deserializeAll(A) {
1952
- const I = Q.rawserializationpipeline_deserializeAll(this.__wbg_ptr, r(A));
1952
+ const I = B.rawserializationpipeline_deserializeAll(this.__wbg_ptr, r(A));
1953
1953
  return I === 0 ? void 0 : dI.__wrap(I);
1954
1954
  }
1955
1955
  }
1956
1956
  const Jg = typeof FinalizationRegistry > "u" ? { register: () => {
1957
1957
  }, unregister: () => {
1958
- } } : new FinalizationRegistry((E) => Q.__wbg_rawshape_free(E >>> 0, 1));
1958
+ } } : new FinalizationRegistry((E) => B.__wbg_rawshape_free(E >>> 0, 1));
1959
1959
  class R {
1960
1960
  static __wrap(A) {
1961
1961
  A >>>= 0;
@@ -1968,120 +1968,120 @@ class R {
1968
1968
  }
1969
1969
  free() {
1970
1970
  const A = this.__destroy_into_raw();
1971
- Q.__wbg_rawshape_free(A, 0);
1971
+ B.__wbg_rawshape_free(A, 0);
1972
1972
  }
1973
1973
  static cuboid(A, I) {
1974
- const g = Q.rawshape_cuboid(A, I);
1974
+ const g = B.rawshape_cuboid(A, I);
1975
1975
  return R.__wrap(g);
1976
1976
  }
1977
1977
  static roundCuboid(A, I, g) {
1978
- const C = Q.rawshape_roundCuboid(A, I, g);
1978
+ const C = B.rawshape_roundCuboid(A, I, g);
1979
1979
  return R.__wrap(C);
1980
1980
  }
1981
1981
  static ball(A) {
1982
- const I = Q.rawshape_ball(A);
1982
+ const I = B.rawshape_ball(A);
1983
1983
  return R.__wrap(I);
1984
1984
  }
1985
1985
  static halfspace(A) {
1986
1986
  G(A, N);
1987
- const I = Q.rawshape_halfspace(A.__wbg_ptr);
1987
+ const I = B.rawshape_halfspace(A.__wbg_ptr);
1988
1988
  return R.__wrap(I);
1989
1989
  }
1990
1990
  static capsule(A, I) {
1991
- const g = Q.rawshape_capsule(A, I);
1991
+ const g = B.rawshape_capsule(A, I);
1992
1992
  return R.__wrap(g);
1993
1993
  }
1994
1994
  static voxels(A, I) {
1995
1995
  G(A, N);
1996
- const g = GI(I, Q.__wbindgen_export_2), C = $, B = Q.rawshape_voxels(A.__wbg_ptr, g, C);
1997
- return R.__wrap(B);
1996
+ const g = GI(I, B.__wbindgen_export_2), C = $, Q = B.rawshape_voxels(A.__wbg_ptr, g, C);
1997
+ return R.__wrap(Q);
1998
1998
  }
1999
1999
  static voxelsFromPoints(A, I) {
2000
2000
  G(A, N);
2001
- const g = GA(I, Q.__wbindgen_export_2), C = $, B = Q.rawshape_voxelsFromPoints(A.__wbg_ptr, g, C);
2002
- return R.__wrap(B);
2001
+ const g = GA(I, B.__wbindgen_export_2), C = $, Q = B.rawshape_voxelsFromPoints(A.__wbg_ptr, g, C);
2002
+ return R.__wrap(Q);
2003
2003
  }
2004
2004
  static polyline(A, I) {
2005
- const g = GA(A, Q.__wbindgen_export_2), C = $, B = GI(I, Q.__wbindgen_export_2), i = $, D = Q.rawshape_polyline(g, C, B, i);
2005
+ const g = GA(A, B.__wbindgen_export_2), C = $, Q = GI(I, B.__wbindgen_export_2), i = $, D = B.rawshape_polyline(g, C, Q, i);
2006
2006
  return R.__wrap(D);
2007
2007
  }
2008
2008
  static trimesh(A, I, g) {
2009
- const C = GA(A, Q.__wbindgen_export_2), B = $, i = GI(I, Q.__wbindgen_export_2), D = $, o = Q.rawshape_trimesh(C, B, i, D, g);
2009
+ const C = GA(A, B.__wbindgen_export_2), Q = $, i = GI(I, B.__wbindgen_export_2), D = $, o = B.rawshape_trimesh(C, Q, i, D, g);
2010
2010
  return o === 0 ? void 0 : R.__wrap(o);
2011
2011
  }
2012
2012
  static heightfield(A, I) {
2013
- const g = GA(A, Q.__wbindgen_export_2), C = $;
2013
+ const g = GA(A, B.__wbindgen_export_2), C = $;
2014
2014
  G(I, N);
2015
- const B = Q.rawshape_heightfield(g, C, I.__wbg_ptr);
2016
- return R.__wrap(B);
2015
+ const Q = B.rawshape_heightfield(g, C, I.__wbg_ptr);
2016
+ return R.__wrap(Q);
2017
2017
  }
2018
2018
  static segment(A, I) {
2019
2019
  G(A, N), G(I, N);
2020
- const g = Q.rawshape_segment(A.__wbg_ptr, I.__wbg_ptr);
2020
+ const g = B.rawshape_segment(A.__wbg_ptr, I.__wbg_ptr);
2021
2021
  return R.__wrap(g);
2022
2022
  }
2023
2023
  static triangle(A, I, g) {
2024
2024
  G(A, N), G(I, N), G(g, N);
2025
- const C = Q.rawshape_triangle(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr);
2025
+ const C = B.rawshape_triangle(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr);
2026
2026
  return R.__wrap(C);
2027
2027
  }
2028
2028
  static roundTriangle(A, I, g, C) {
2029
2029
  G(A, N), G(I, N), G(g, N);
2030
- const B = Q.rawshape_roundTriangle(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C);
2031
- return R.__wrap(B);
2030
+ const Q = B.rawshape_roundTriangle(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C);
2031
+ return R.__wrap(Q);
2032
2032
  }
2033
2033
  static convexHull(A) {
2034
- const I = GA(A, Q.__wbindgen_export_2), g = $, C = Q.rawshape_convexHull(I, g);
2034
+ const I = GA(A, B.__wbindgen_export_2), g = $, C = B.rawshape_convexHull(I, g);
2035
2035
  return C === 0 ? void 0 : R.__wrap(C);
2036
2036
  }
2037
2037
  static roundConvexHull(A, I) {
2038
- const g = GA(A, Q.__wbindgen_export_2), C = $, B = Q.rawshape_roundConvexHull(g, C, I);
2039
- return B === 0 ? void 0 : R.__wrap(B);
2038
+ const g = GA(A, B.__wbindgen_export_2), C = $, Q = B.rawshape_roundConvexHull(g, C, I);
2039
+ return Q === 0 ? void 0 : R.__wrap(Q);
2040
2040
  }
2041
2041
  static convexPolyline(A) {
2042
- const I = GA(A, Q.__wbindgen_export_2), g = $, C = Q.rawshape_convexPolyline(I, g);
2042
+ const I = GA(A, B.__wbindgen_export_2), g = $, C = B.rawshape_convexPolyline(I, g);
2043
2043
  return C === 0 ? void 0 : R.__wrap(C);
2044
2044
  }
2045
2045
  static roundConvexPolyline(A, I) {
2046
- const g = GA(A, Q.__wbindgen_export_2), C = $, B = Q.rawshape_roundConvexPolyline(g, C, I);
2047
- return B === 0 ? void 0 : R.__wrap(B);
2046
+ const g = GA(A, B.__wbindgen_export_2), C = $, Q = B.rawshape_roundConvexPolyline(g, C, I);
2047
+ return Q === 0 ? void 0 : R.__wrap(Q);
2048
2048
  }
2049
- castShape(A, I, g, C, B, i, D, o, w, K) {
2050
- G(A, N), G(I, t), G(g, N), G(C, R), G(B, N), G(i, t), G(D, N);
2051
- const h = Q.rawshape_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o, w, K);
2052
- return h === 0 ? void 0 : CI.__wrap(h);
2049
+ castShape(A, I, g, C, Q, i, D, o, w, h) {
2050
+ G(A, N), G(I, t), G(g, N), G(C, R), G(Q, N), G(i, t), G(D, N);
2051
+ const K = B.rawshape_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o, w, h);
2052
+ return K === 0 ? void 0 : CI.__wrap(K);
2053
2053
  }
2054
- intersectsShape(A, I, g, C, B) {
2055
- return G(A, N), G(I, t), G(g, R), G(C, N), G(B, t), Q.rawshape_intersectsShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr) !== 0;
2054
+ intersectsShape(A, I, g, C, Q) {
2055
+ return G(A, N), G(I, t), G(g, R), G(C, N), G(Q, t), B.rawshape_intersectsShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr) !== 0;
2056
2056
  }
2057
- contactShape(A, I, g, C, B, i) {
2058
- G(A, N), G(I, t), G(g, R), G(C, N), G(B, t);
2059
- const D = Q.rawshape_contactShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i);
2057
+ contactShape(A, I, g, C, Q, i) {
2058
+ G(A, N), G(I, t), G(g, R), G(C, N), G(Q, t);
2059
+ const D = B.rawshape_contactShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, i);
2060
2060
  return D === 0 ? void 0 : pA.__wrap(D);
2061
2061
  }
2062
2062
  containsPoint(A, I, g) {
2063
- return G(A, N), G(I, t), G(g, N), Q.rawshape_containsPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr) !== 0;
2063
+ return G(A, N), G(I, t), G(g, N), B.rawshape_containsPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr) !== 0;
2064
2064
  }
2065
2065
  projectPoint(A, I, g, C) {
2066
2066
  G(A, N), G(I, t), G(g, N);
2067
- const B = Q.rawshape_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C);
2068
- return AI.__wrap(B);
2067
+ const Q = B.rawshape_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C);
2068
+ return AI.__wrap(Q);
2069
2069
  }
2070
- intersectsRay(A, I, g, C, B) {
2071
- return G(A, N), G(I, t), G(g, N), G(C, N), Q.rawshape_intersectsRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B) !== 0;
2070
+ intersectsRay(A, I, g, C, Q) {
2071
+ return G(A, N), G(I, t), G(g, N), G(C, N), B.rawshape_intersectsRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q) !== 0;
2072
2072
  }
2073
- castRay(A, I, g, C, B, i) {
2074
- return G(A, N), G(I, t), G(g, N), G(C, N), Q.rawshape_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i);
2073
+ castRay(A, I, g, C, Q, i) {
2074
+ return G(A, N), G(I, t), G(g, N), G(C, N), B.rawshape_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, i);
2075
2075
  }
2076
- castRayAndGetNormal(A, I, g, C, B, i) {
2076
+ castRayAndGetNormal(A, I, g, C, Q, i) {
2077
2077
  G(A, N), G(I, t), G(g, N), G(C, N);
2078
- const D = Q.rawshape_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i);
2078
+ const D = B.rawshape_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, i);
2079
2079
  return D === 0 ? void 0 : gI.__wrap(D);
2080
2080
  }
2081
2081
  }
2082
2082
  const Ug = typeof FinalizationRegistry > "u" ? { register: () => {
2083
2083
  }, unregister: () => {
2084
- } } : new FinalizationRegistry((E) => Q.__wbg_rawshapecasthit_free(E >>> 0, 1));
2084
+ } } : new FinalizationRegistry((E) => B.__wbg_rawshapecasthit_free(E >>> 0, 1));
2085
2085
  class CI {
2086
2086
  static __wrap(A) {
2087
2087
  A >>>= 0;
@@ -2094,31 +2094,31 @@ class CI {
2094
2094
  }
2095
2095
  free() {
2096
2096
  const A = this.__destroy_into_raw();
2097
- Q.__wbg_rawshapecasthit_free(A, 0);
2097
+ B.__wbg_rawshapecasthit_free(A, 0);
2098
2098
  }
2099
2099
  time_of_impact() {
2100
- return Q.rawintegrationparameters_dt(this.__wbg_ptr);
2100
+ return B.rawintegrationparameters_dt(this.__wbg_ptr);
2101
2101
  }
2102
2102
  witness1() {
2103
- const A = Q.rawshapecasthit_witness1(this.__wbg_ptr);
2103
+ const A = B.rawshapecasthit_witness1(this.__wbg_ptr);
2104
2104
  return N.__wrap(A);
2105
2105
  }
2106
2106
  witness2() {
2107
- const A = Q.rawcollidershapecasthit_witness1(this.__wbg_ptr);
2107
+ const A = B.rawcollidershapecasthit_witness1(this.__wbg_ptr);
2108
2108
  return N.__wrap(A);
2109
2109
  }
2110
2110
  normal1() {
2111
- const A = Q.rawcollidershapecasthit_witness2(this.__wbg_ptr);
2111
+ const A = B.rawcollidershapecasthit_witness2(this.__wbg_ptr);
2112
2112
  return N.__wrap(A);
2113
2113
  }
2114
2114
  normal2() {
2115
- const A = Q.rawcollidershapecasthit_normal1(this.__wbg_ptr);
2115
+ const A = B.rawcollidershapecasthit_normal1(this.__wbg_ptr);
2116
2116
  return N.__wrap(A);
2117
2117
  }
2118
2118
  }
2119
2119
  const Rg = typeof FinalizationRegistry > "u" ? { register: () => {
2120
2120
  }, unregister: () => {
2121
- } } : new FinalizationRegistry((E) => Q.__wbg_rawshapecontact_free(E >>> 0, 1));
2121
+ } } : new FinalizationRegistry((E) => B.__wbg_rawshapecontact_free(E >>> 0, 1));
2122
2122
  class pA {
2123
2123
  static __wrap(A) {
2124
2124
  A >>>= 0;
@@ -2131,31 +2131,31 @@ class pA {
2131
2131
  }
2132
2132
  free() {
2133
2133
  const A = this.__destroy_into_raw();
2134
- Q.__wbg_rawshapecontact_free(A, 0);
2134
+ B.__wbg_rawshapecontact_free(A, 0);
2135
2135
  }
2136
2136
  distance() {
2137
- return Q.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr);
2137
+ return B.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr);
2138
2138
  }
2139
2139
  point1() {
2140
- const A = Q.rawpointprojection_point(this.__wbg_ptr);
2140
+ const A = B.rawpointprojection_point(this.__wbg_ptr);
2141
2141
  return N.__wrap(A);
2142
2142
  }
2143
2143
  point2() {
2144
- const A = Q.rawpointcolliderprojection_point(this.__wbg_ptr);
2144
+ const A = B.rawpointcolliderprojection_point(this.__wbg_ptr);
2145
2145
  return N.__wrap(A);
2146
2146
  }
2147
2147
  normal1() {
2148
- const A = Q.rawcontactforceevent_total_force(this.__wbg_ptr);
2148
+ const A = B.rawcontactforceevent_total_force(this.__wbg_ptr);
2149
2149
  return N.__wrap(A);
2150
2150
  }
2151
2151
  normal2() {
2152
- const A = Q.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);
2152
+ const A = B.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);
2153
2153
  return N.__wrap(A);
2154
2154
  }
2155
2155
  }
2156
2156
  const FI = typeof FinalizationRegistry > "u" ? { register: () => {
2157
2157
  }, unregister: () => {
2158
- } } : new FinalizationRegistry((E) => Q.__wbg_rawvector_free(E >>> 0, 1));
2158
+ } } : new FinalizationRegistry((E) => B.__wbg_rawvector_free(E >>> 0, 1));
2159
2159
  class N {
2160
2160
  static __wrap(A) {
2161
2161
  A >>>= 0;
@@ -2168,141 +2168,141 @@ class N {
2168
2168
  }
2169
2169
  free() {
2170
2170
  const A = this.__destroy_into_raw();
2171
- Q.__wbg_rawvector_free(A, 0);
2171
+ B.__wbg_rawvector_free(A, 0);
2172
2172
  }
2173
2173
  static zero() {
2174
- const A = Q.rawvector_zero();
2174
+ const A = B.rawvector_zero();
2175
2175
  return N.__wrap(A);
2176
2176
  }
2177
2177
  constructor(A, I) {
2178
- const g = Q.rawvector_new(A, I);
2178
+ const g = B.rawvector_new(A, I);
2179
2179
  return this.__wbg_ptr = g >>> 0, FI.register(this, this.__wbg_ptr, this), this;
2180
2180
  }
2181
2181
  get x() {
2182
- return Q.rawintegrationparameters_dt(this.__wbg_ptr);
2182
+ return B.rawintegrationparameters_dt(this.__wbg_ptr);
2183
2183
  }
2184
2184
  set x(A) {
2185
- Q.rawintegrationparameters_set_dt(this.__wbg_ptr, A);
2185
+ B.rawintegrationparameters_set_dt(this.__wbg_ptr, A);
2186
2186
  }
2187
2187
  get y() {
2188
- return Q.rawkinematiccharactercontroller_offset(this.__wbg_ptr);
2188
+ return B.rawkinematiccharactercontroller_offset(this.__wbg_ptr);
2189
2189
  }
2190
2190
  set y(A) {
2191
- Q.rawvector_set_y(this.__wbg_ptr, A);
2191
+ B.rawvector_set_y(this.__wbg_ptr, A);
2192
2192
  }
2193
2193
  xy() {
2194
- const A = Q.rawvector_xy(this.__wbg_ptr);
2194
+ const A = B.rawvector_xy(this.__wbg_ptr);
2195
2195
  return N.__wrap(A);
2196
2196
  }
2197
2197
  yx() {
2198
- const A = Q.rawvector_yx(this.__wbg_ptr);
2198
+ const A = B.rawvector_yx(this.__wbg_ptr);
2199
2199
  return N.__wrap(A);
2200
2200
  }
2201
2201
  }
2202
2202
  async function eg(E) {
2203
- if (Q !== void 0) return Q;
2203
+ if (B !== void 0) return B;
2204
2204
  E !== void 0 && (Object.getPrototypeOf(E) === Object.prototype ? { module_or_path: E } = E : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), E === void 0 && (E = new URL("rapier_wasm2d_bg.wasm", "<deleted>"));
2205
2205
  const A = function() {
2206
2206
  const C = { wbg: {} };
2207
- return C.wbg.__wbg_bind_c8359b1cba058168 = function(B, i, D, o) {
2208
- return r(c(B).bind(c(i), c(D), c(o)));
2209
- }, C.wbg.__wbg_buffer_609cc3eee51ed158 = function(B) {
2210
- return r(c(B).buffer);
2207
+ return C.wbg.__wbg_bind_c8359b1cba058168 = function(Q, i, D, o) {
2208
+ return r(c(Q).bind(c(i), c(D), c(o)));
2209
+ }, C.wbg.__wbg_buffer_609cc3eee51ed158 = function(Q) {
2210
+ return r(c(Q).buffer);
2211
2211
  }, C.wbg.__wbg_call_672a4d21634d4a24 = function() {
2212
- return xA(function(B, i) {
2213
- return r(c(B).call(c(i)));
2212
+ return xA(function(Q, i) {
2213
+ return r(c(Q).call(c(i)));
2214
2214
  }, arguments);
2215
2215
  }, C.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
2216
- return xA(function(B, i, D) {
2217
- return r(c(B).call(c(i), c(D)));
2216
+ return xA(function(Q, i, D) {
2217
+ return r(c(Q).call(c(i), c(D)));
2218
2218
  }, arguments);
2219
2219
  }, C.wbg.__wbg_call_833bed5770ea2041 = function() {
2220
- return xA(function(B, i, D, o) {
2221
- return r(c(B).call(c(i), c(D), c(o)));
2220
+ return xA(function(Q, i, D, o) {
2221
+ return r(c(Q).call(c(i), c(D), c(o)));
2222
2222
  }, arguments);
2223
2223
  }, C.wbg.__wbg_call_b8adc8b1d0a0d8eb = function() {
2224
- return xA(function(B, i, D, o, w) {
2225
- return r(c(B).call(c(i), c(D), c(o), c(w)));
2224
+ return xA(function(Q, i, D, o, w) {
2225
+ return r(c(Q).call(c(i), c(D), c(o), c(w)));
2226
2226
  }, arguments);
2227
- }, C.wbg.__wbg_length_3b4f022188ae8db6 = function(B) {
2228
- return c(B).length;
2229
- }, C.wbg.__wbg_length_a446193dc22c12f8 = function(B) {
2230
- return c(B).length;
2231
- }, C.wbg.__wbg_new_a12002a7f91c75be = function(B) {
2232
- return r(new Uint8Array(c(B)));
2233
- }, C.wbg.__wbg_newnoargs_105ed471475aaf50 = function(B, i) {
2234
- return r(new Function(JI(B, i)));
2235
- }, C.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(B, i, D) {
2236
- return r(new Uint8Array(c(B), i >>> 0, D >>> 0));
2237
- }, C.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(B, i, D) {
2238
- return r(new Float32Array(c(B), i >>> 0, D >>> 0));
2239
- }, C.wbg.__wbg_newwithlength_5a5efe313cfd59f1 = function(B) {
2240
- return r(new Float32Array(B >>> 0));
2241
- }, C.wbg.__wbg_now_2c95c9de01293173 = function(B) {
2242
- return c(B).now();
2243
- }, C.wbg.__wbg_performance_7a3ffd0b17f663ad = function(B) {
2244
- return r(c(B).performance);
2245
- }, C.wbg.__wbg_rawcontactforceevent_new = function(B) {
2246
- return r(lI.__wrap(B));
2247
- }, C.wbg.__wbg_rawraycolliderintersection_new = function(B) {
2248
- return r(II.__wrap(B));
2249
- }, C.wbg.__wbg_set_10bad9bee0e9c58b = function(B, i, D) {
2250
- c(B).set(c(i), D >>> 0);
2251
- }, C.wbg.__wbg_set_65595bdd868b3009 = function(B, i, D) {
2252
- c(B).set(c(i), D >>> 0);
2227
+ }, C.wbg.__wbg_length_3b4f022188ae8db6 = function(Q) {
2228
+ return c(Q).length;
2229
+ }, C.wbg.__wbg_length_a446193dc22c12f8 = function(Q) {
2230
+ return c(Q).length;
2231
+ }, C.wbg.__wbg_new_a12002a7f91c75be = function(Q) {
2232
+ return r(new Uint8Array(c(Q)));
2233
+ }, C.wbg.__wbg_newnoargs_105ed471475aaf50 = function(Q, i) {
2234
+ return r(new Function(JI(Q, i)));
2235
+ }, C.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(Q, i, D) {
2236
+ return r(new Uint8Array(c(Q), i >>> 0, D >>> 0));
2237
+ }, C.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(Q, i, D) {
2238
+ return r(new Float32Array(c(Q), i >>> 0, D >>> 0));
2239
+ }, C.wbg.__wbg_newwithlength_5a5efe313cfd59f1 = function(Q) {
2240
+ return r(new Float32Array(Q >>> 0));
2241
+ }, C.wbg.__wbg_now_2c95c9de01293173 = function(Q) {
2242
+ return c(Q).now();
2243
+ }, C.wbg.__wbg_performance_7a3ffd0b17f663ad = function(Q) {
2244
+ return r(c(Q).performance);
2245
+ }, C.wbg.__wbg_rawcontactforceevent_new = function(Q) {
2246
+ return r(lI.__wrap(Q));
2247
+ }, C.wbg.__wbg_rawraycolliderintersection_new = function(Q) {
2248
+ return r(II.__wrap(Q));
2249
+ }, C.wbg.__wbg_set_10bad9bee0e9c58b = function(Q, i, D) {
2250
+ c(Q).set(c(i), D >>> 0);
2251
+ }, C.wbg.__wbg_set_65595bdd868b3009 = function(Q, i, D) {
2252
+ c(Q).set(c(i), D >>> 0);
2253
2253
  }, C.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
2254
- const B = typeof global > "u" ? null : global;
2255
- return U(B) ? 0 : r(B);
2254
+ const Q = typeof global > "u" ? null : global;
2255
+ return U(Q) ? 0 : r(Q);
2256
2256
  }, C.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
2257
- const B = typeof globalThis > "u" ? null : globalThis;
2258
- return U(B) ? 0 : r(B);
2257
+ const Q = typeof globalThis > "u" ? null : globalThis;
2258
+ return U(Q) ? 0 : r(Q);
2259
2259
  }, C.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
2260
- const B = typeof self > "u" ? null : self;
2261
- return U(B) ? 0 : r(B);
2260
+ const Q = typeof self > "u" ? null : self;
2261
+ return U(Q) ? 0 : r(Q);
2262
2262
  }, C.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
2263
- const B = typeof window > "u" ? null : window;
2264
- return U(B) ? 0 : r(B);
2265
- }, C.wbg.__wbindgen_boolean_get = function(B) {
2266
- const i = c(B);
2263
+ const Q = typeof window > "u" ? null : window;
2264
+ return U(Q) ? 0 : r(Q);
2265
+ }, C.wbg.__wbindgen_boolean_get = function(Q) {
2266
+ const i = c(Q);
2267
2267
  return typeof i == "boolean" ? i ? 1 : 0 : 2;
2268
- }, C.wbg.__wbindgen_is_function = function(B) {
2269
- return typeof c(B) == "function";
2270
- }, C.wbg.__wbindgen_is_undefined = function(B) {
2271
- return c(B) === void 0;
2268
+ }, C.wbg.__wbindgen_is_function = function(Q) {
2269
+ return typeof c(Q) == "function";
2270
+ }, C.wbg.__wbindgen_is_undefined = function(Q) {
2271
+ return c(Q) === void 0;
2272
2272
  }, C.wbg.__wbindgen_memory = function() {
2273
- return r(Q.memory);
2274
- }, C.wbg.__wbindgen_number_get = function(B, i) {
2273
+ return r(B.memory);
2274
+ }, C.wbg.__wbindgen_number_get = function(Q, i) {
2275
2275
  const D = c(i), o = typeof D == "number" ? D : void 0;
2276
- X().setFloat64(B + 8, U(o) ? 0 : o, !0), X().setInt32(B + 0, !U(o), !0);
2277
- }, C.wbg.__wbindgen_number_new = function(B) {
2278
- return r(B);
2279
- }, C.wbg.__wbindgen_object_clone_ref = function(B) {
2280
- return r(c(B));
2281
- }, C.wbg.__wbindgen_object_drop_ref = function(B) {
2282
- XA(B);
2283
- }, C.wbg.__wbindgen_throw = function(B, i) {
2284
- throw new Error(JI(B, i));
2276
+ X().setFloat64(Q + 8, U(o) ? 0 : o, !0), X().setInt32(Q + 0, !U(o), !0);
2277
+ }, C.wbg.__wbindgen_number_new = function(Q) {
2278
+ return r(Q);
2279
+ }, C.wbg.__wbindgen_object_clone_ref = function(Q) {
2280
+ return r(c(Q));
2281
+ }, C.wbg.__wbindgen_object_drop_ref = function(Q) {
2282
+ XA(Q);
2283
+ }, C.wbg.__wbindgen_throw = function(Q, i) {
2284
+ throw new Error(JI(Q, i));
2285
2285
  }, C;
2286
2286
  }();
2287
2287
  (typeof E == "string" || typeof Request == "function" && E instanceof Request || typeof URL == "function" && E instanceof URL) && (E = fetch(E));
2288
- const { instance: I, module: g } = await async function(C, B) {
2288
+ const { instance: I, module: g } = await async function(C, Q) {
2289
2289
  if (typeof Response == "function" && C instanceof Response) {
2290
2290
  if (typeof WebAssembly.instantiateStreaming == "function") try {
2291
- return await WebAssembly.instantiateStreaming(C, B);
2291
+ return await WebAssembly.instantiateStreaming(C, Q);
2292
2292
  } catch (D) {
2293
2293
  if (C.headers.get("Content-Type") == "application/wasm") throw D;
2294
2294
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", D);
2295
2295
  }
2296
2296
  const i = await C.arrayBuffer();
2297
- return await WebAssembly.instantiate(i, B);
2297
+ return await WebAssembly.instantiate(i, Q);
2298
2298
  }
2299
2299
  {
2300
- const i = await WebAssembly.instantiate(C, B);
2300
+ const i = await WebAssembly.instantiate(C, Q);
2301
2301
  return i instanceof WebAssembly.Instance ? { instance: i, module: C } : i;
2302
2302
  }
2303
2303
  }(await E, A);
2304
- return function(C, B) {
2305
- return Q = C.exports, eg.__wbindgen_wasm_module = B, NA = null, HA = null, eA = null, lA = null, rA = null, Q;
2304
+ return function(C, Q) {
2305
+ return B = C.exports, eg.__wbindgen_wasm_module = Q, NA = null, HA = null, eA = null, lA = null, rA = null, B;
2306
2306
  }(I, g);
2307
2307
  }
2308
2308
  class Hg {
@@ -2526,8 +2526,8 @@ class rI {
2526
2526
  this.rawSet.rbSetAdditionalMass(this.handle, A, I);
2527
2527
  }
2528
2528
  setAdditionalMassProperties(A, I, g, C) {
2529
- let B = S.intoRaw(I);
2530
- this.rawSet.rbSetAdditionalMassProperties(this.handle, A, B, g, C), B.free();
2529
+ let Q = S.intoRaw(I);
2530
+ this.rawSet.rbSetAdditionalMassProperties(this.handle, A, Q, g, C), Q.free();
2531
2531
  }
2532
2532
  setAngularDamping(A) {
2533
2533
  this.rawSet.rbSetAngularDamping(this.handle, A);
@@ -2553,12 +2553,12 @@ class rI {
2553
2553
  this.rawSet.rbApplyTorqueImpulse(this.handle, A, I);
2554
2554
  }
2555
2555
  addForceAtPoint(A, I, g) {
2556
- const C = S.intoRaw(A), B = S.intoRaw(I);
2557
- this.rawSet.rbAddForceAtPoint(this.handle, C, B, g), C.free(), B.free();
2556
+ const C = S.intoRaw(A), Q = S.intoRaw(I);
2557
+ this.rawSet.rbAddForceAtPoint(this.handle, C, Q, g), C.free(), Q.free();
2558
2558
  }
2559
2559
  applyImpulseAtPoint(A, I, g) {
2560
- const C = S.intoRaw(A), B = S.intoRaw(I);
2561
- this.rawSet.rbApplyImpulseAtPoint(this.handle, C, B, g), C.free(), B.free();
2560
+ const C = S.intoRaw(A), Q = S.intoRaw(I);
2561
+ this.rawSet.rbApplyImpulseAtPoint(this.handle, C, Q, g), C.free(), Q.free();
2562
2562
  }
2563
2563
  userForce() {
2564
2564
  return S.fromRaw(this.rawSet.rbUserForce(this.handle));
@@ -2707,14 +2707,14 @@ class lg {
2707
2707
  this.map.forEach((I) => I.finalizeDeserialization(A));
2708
2708
  }
2709
2709
  createRigidBody(A, I) {
2710
- let g = S.intoRaw(I.translation), C = e.intoRaw(I.rotation), B = S.intoRaw(I.linvel), i = S.intoRaw(I.centerOfMass), D = this.raw.createRigidBody(I.enabled, g, C, I.gravityScale, I.mass, I.massOnly, i, B, I.angvel, I.principalAngularInertia, I.translationsEnabledX, I.translationsEnabledY, I.rotationsEnabled, I.linearDamping, I.angularDamping, I.status, I.canSleep, I.sleeping, I.softCcdPrediction, I.ccdEnabled, I.dominanceGroup, I.additionalSolverIterations);
2711
- g.free(), C.free(), B.free(), i.free();
2710
+ let g = S.intoRaw(I.translation), C = e.intoRaw(I.rotation), Q = S.intoRaw(I.linvel), i = S.intoRaw(I.centerOfMass), D = this.raw.createRigidBody(I.enabled, g, C, I.gravityScale, I.mass, I.massOnly, i, Q, I.angvel, I.principalAngularInertia, I.translationsEnabledX, I.translationsEnabledY, I.rotationsEnabled, I.linearDamping, I.angularDamping, I.status, I.canSleep, I.sleeping, I.softCcdPrediction, I.ccdEnabled, I.dominanceGroup, I.additionalSolverIterations);
2711
+ g.free(), C.free(), Q.free(), i.free();
2712
2712
  const o = new rI(this.raw, A, D);
2713
2713
  return o.userData = I.userData, this.map.set(D, o), o;
2714
2714
  }
2715
- remove(A, I, g, C, B) {
2715
+ remove(A, I, g, C, Q) {
2716
2716
  for (let i = 0; i < this.raw.rbNumColliders(A); i += 1) g.unmap(this.raw.rbCollider(A, i));
2717
- C.forEachJointHandleAttachedToRigidBody(A, (i) => C.unmap(i)), B.forEachJointHandleAttachedToRigidBody(A, (i) => B.unmap(i)), this.raw.remove(A, I.raw, g.raw, C.raw, B.raw), this.map.delete(A);
2717
+ C.forEachJointHandleAttachedToRigidBody(A, (i) => C.unmap(i)), Q.forEachJointHandleAttachedToRigidBody(A, (i) => Q.unmap(i)), this.raw.remove(A, I.raw, g.raw, C.raw, Q.raw), this.map.delete(A);
2718
2718
  }
2719
2719
  len() {
2720
2720
  return this.map.len();
@@ -2908,12 +2908,12 @@ class kA {
2908
2908
  constructor() {
2909
2909
  }
2910
2910
  static fixed(A, I, g, C) {
2911
- let B = new kA();
2912
- return B.anchor1 = A, B.anchor2 = g, B.frame1 = I, B.frame2 = C, B.jointType = AA.Fixed, B;
2911
+ let Q = new kA();
2912
+ return Q.anchor1 = A, Q.anchor2 = g, Q.frame1 = I, Q.frame2 = C, Q.jointType = AA.Fixed, Q;
2913
2913
  }
2914
- static spring(A, I, g, C, B) {
2914
+ static spring(A, I, g, C, Q) {
2915
2915
  let i = new kA();
2916
- return i.anchor1 = C, i.anchor2 = B, i.length = A, i.stiffness = I, i.damping = g, i.jointType = AA.Spring, i;
2916
+ return i.anchor1 = C, i.anchor2 = Q, i.length = A, i.stiffness = I, i.damping = g, i.jointType = AA.Spring, i;
2917
2917
  }
2918
2918
  static rope(A, I, g) {
2919
2919
  let C = new kA();
@@ -2928,7 +2928,7 @@ class kA {
2928
2928
  return C.anchor1 = A, C.anchor2 = I, C.axis = g, C.jointType = AA.Prismatic, C;
2929
2929
  }
2930
2930
  intoRaw() {
2931
- let A, I, g = S.intoRaw(this.anchor1), C = S.intoRaw(this.anchor2), B = !1, i = 0, D = 0;
2931
+ let A, I, g = S.intoRaw(this.anchor1), C = S.intoRaw(this.anchor2), Q = !1, i = 0, D = 0;
2932
2932
  switch (this.jointType) {
2933
2933
  case AA.Fixed:
2934
2934
  let o = e.intoRaw(this.frame1), w = e.intoRaw(this.frame2);
@@ -2941,7 +2941,7 @@ class kA {
2941
2941
  I = u.rope(this.length, g, C);
2942
2942
  break;
2943
2943
  case AA.Prismatic:
2944
- A = S.intoRaw(this.axis), this.limitsEnabled && (B = !0, i = this.limits[0], D = this.limits[1]), I = u.prismatic(g, C, A, B, i, D), A.free();
2944
+ A = S.intoRaw(this.axis), this.limitsEnabled && (Q = !0, i = this.limits[0], D = this.limits[1]), I = u.prismatic(g, C, A, Q, i, D), A.free();
2945
2945
  break;
2946
2946
  case AA.Revolute:
2947
2947
  I = u.revolute(g, C);
@@ -2961,8 +2961,8 @@ class Zg {
2961
2961
  finalizeDeserialization(A) {
2962
2962
  this.map.forEach((I) => I.finalizeDeserialization(A));
2963
2963
  }
2964
- createJoint(A, I, g, C, B) {
2965
- const i = I.intoRaw(), D = this.raw.createJoint(i, g, C, B);
2964
+ createJoint(A, I, g, C, Q) {
2965
+ const i = I.intoRaw(), D = this.raw.createJoint(i, g, C, Q);
2966
2966
  i.free();
2967
2967
  let o = DA.newTyped(this.raw, A, D);
2968
2968
  return this.map.set(D, o), o;
@@ -3042,8 +3042,8 @@ class xg {
3042
3042
  this.raw && this.raw.free(), this.raw = void 0, this.map && this.map.clear(), this.map = void 0;
3043
3043
  }
3044
3044
  createJoint(A, I, g, C) {
3045
- const B = A.intoRaw(), i = this.raw.createJoint(B, I, g, C);
3046
- B.free();
3045
+ const Q = A.intoRaw(), i = this.raw.createJoint(Q, I, g, C);
3046
+ Q.free();
3047
3047
  let D = FA.newTyped(this.raw, i);
3048
3048
  return this.map.set(i, D), D;
3049
3049
  }
@@ -3116,8 +3116,8 @@ class TA {
3116
3116
  }
3117
3117
  }
3118
3118
  class fA {
3119
- constructor(A, I, g, C, B) {
3120
- this.featureType = RA.Unknown, this.featureId = void 0, this.collider = A, this.timeOfImpact = I, this.normal = g, B !== void 0 && (this.featureId = B), C !== void 0 && (this.featureType = C);
3119
+ constructor(A, I, g, C, Q) {
3120
+ this.featureType = RA.Unknown, this.featureId = void 0, this.collider = A, this.timeOfImpact = I, this.normal = g, Q !== void 0 && (this.featureId = Q), C !== void 0 && (this.featureType = C);
3121
3121
  }
3122
3122
  static fromRaw(A, I) {
3123
3123
  if (!I) return null;
@@ -3146,8 +3146,8 @@ class ZA {
3146
3146
  }
3147
3147
  }
3148
3148
  class bA {
3149
- constructor(A, I, g, C, B) {
3150
- this.featureType = RA.Unknown, this.featureId = void 0, this.collider = A, this.point = I, this.isInside = g, B !== void 0 && (this.featureId = B), C !== void 0 && (this.featureType = C);
3149
+ constructor(A, I, g, C, Q) {
3150
+ this.featureType = RA.Unknown, this.featureId = void 0, this.collider = A, this.point = I, this.isInside = g, Q !== void 0 && (this.featureId = Q), C !== void 0 && (this.featureType = C);
3151
3151
  }
3152
3152
  static fromRaw(A, I) {
3153
3153
  if (!I) return null;
@@ -3156,8 +3156,8 @@ class bA {
3156
3156
  }
3157
3157
  }
3158
3158
  class YA {
3159
- constructor(A, I, g, C, B) {
3160
- this.time_of_impact = A, this.witness1 = I, this.witness2 = g, this.normal1 = C, this.normal2 = B;
3159
+ constructor(A, I, g, C, Q) {
3160
+ this.time_of_impact = A, this.witness1 = I, this.witness2 = g, this.normal1 = C, this.normal2 = Q;
3161
3161
  }
3162
3162
  static fromRaw(A, I) {
3163
3163
  if (!I) return null;
@@ -3166,8 +3166,8 @@ class YA {
3166
3166
  }
3167
3167
  }
3168
3168
  class OA extends YA {
3169
- constructor(A, I, g, C, B, i) {
3170
- super(I, g, C, B, i), this.collider = A;
3169
+ constructor(A, I, g, C, Q, i) {
3170
+ super(I, g, C, Q, i), this.collider = A;
3171
3171
  }
3172
3172
  static fromRaw(A, I) {
3173
3173
  if (!I) return null;
@@ -3182,44 +3182,44 @@ class vg {
3182
3182
  free() {
3183
3183
  this.raw && this.raw.free(), this.raw = void 0;
3184
3184
  }
3185
- castRay(A, I, g, C, B, i, D, o, w, K, h) {
3186
- let s = S.intoRaw(C.origin), y = S.intoRaw(C.dir), a = BI.fromRaw(g, this.raw.castRay(A.raw, I.raw, g.raw, s, y, B, i, D, o, w, K, h));
3185
+ castRay(A, I, g, C, Q, i, D, o, w, h, K) {
3186
+ let s = S.intoRaw(C.origin), y = S.intoRaw(C.dir), a = BI.fromRaw(g, this.raw.castRay(A.raw, I.raw, g.raw, s, y, Q, i, D, o, w, h, K));
3187
3187
  return s.free(), y.free(), a;
3188
3188
  }
3189
- castRayAndGetNormal(A, I, g, C, B, i, D, o, w, K, h) {
3190
- let s = S.intoRaw(C.origin), y = S.intoRaw(C.dir), a = fA.fromRaw(g, this.raw.castRayAndGetNormal(A.raw, I.raw, g.raw, s, y, B, i, D, o, w, K, h));
3189
+ castRayAndGetNormal(A, I, g, C, Q, i, D, o, w, h, K) {
3190
+ let s = S.intoRaw(C.origin), y = S.intoRaw(C.dir), a = fA.fromRaw(g, this.raw.castRayAndGetNormal(A.raw, I.raw, g.raw, s, y, Q, i, D, o, w, h, K));
3191
3191
  return s.free(), y.free(), a;
3192
3192
  }
3193
- intersectionsWithRay(A, I, g, C, B, i, D, o, w, K, h, s) {
3193
+ intersectionsWithRay(A, I, g, C, Q, i, D, o, w, h, K, s) {
3194
3194
  let y = S.intoRaw(C.origin), a = S.intoRaw(C.dir);
3195
- this.raw.intersectionsWithRay(A.raw, I.raw, g.raw, y, a, B, i, (k) => D(fA.fromRaw(g, k)), o, w, K, h, s), y.free(), a.free();
3195
+ this.raw.intersectionsWithRay(A.raw, I.raw, g.raw, y, a, Q, i, (k) => D(fA.fromRaw(g, k)), o, w, h, K, s), y.free(), a.free();
3196
3196
  }
3197
- intersectionWithShape(A, I, g, C, B, i, D, o, w, K, h) {
3198
- let s = S.intoRaw(C), y = e.intoRaw(B), a = i.intoRaw(), k = this.raw.intersectionWithShape(A.raw, I.raw, g.raw, s, y, a, D, o, w, K, h);
3197
+ intersectionWithShape(A, I, g, C, Q, i, D, o, w, h, K) {
3198
+ let s = S.intoRaw(C), y = e.intoRaw(Q), a = i.intoRaw(), k = this.raw.intersectionWithShape(A.raw, I.raw, g.raw, s, y, a, D, o, w, h, K);
3199
3199
  return s.free(), y.free(), a.free(), k;
3200
3200
  }
3201
- projectPoint(A, I, g, C, B, i, D, o, w, K) {
3202
- let h = S.intoRaw(C), s = bA.fromRaw(g, this.raw.projectPoint(A.raw, I.raw, g.raw, h, B, i, D, o, w, K));
3203
- return h.free(), s;
3201
+ projectPoint(A, I, g, C, Q, i, D, o, w, h) {
3202
+ let K = S.intoRaw(C), s = bA.fromRaw(g, this.raw.projectPoint(A.raw, I.raw, g.raw, K, Q, i, D, o, w, h));
3203
+ return K.free(), s;
3204
3204
  }
3205
- projectPointAndGetFeature(A, I, g, C, B, i, D, o, w) {
3206
- let K = S.intoRaw(C), h = bA.fromRaw(g, this.raw.projectPointAndGetFeature(A.raw, I.raw, g.raw, K, B, i, D, o, w));
3207
- return K.free(), h;
3205
+ projectPointAndGetFeature(A, I, g, C, Q, i, D, o, w) {
3206
+ let h = S.intoRaw(C), K = bA.fromRaw(g, this.raw.projectPointAndGetFeature(A.raw, I.raw, g.raw, h, Q, i, D, o, w));
3207
+ return h.free(), K;
3208
3208
  }
3209
- intersectionsWithPoint(A, I, g, C, B, i, D, o, w, K) {
3210
- let h = S.intoRaw(C);
3211
- this.raw.intersectionsWithPoint(A.raw, I.raw, g.raw, h, B, i, D, o, w, K), h.free();
3209
+ intersectionsWithPoint(A, I, g, C, Q, i, D, o, w, h) {
3210
+ let K = S.intoRaw(C);
3211
+ this.raw.intersectionsWithPoint(A.raw, I.raw, g.raw, K, Q, i, D, o, w, h), K.free();
3212
3212
  }
3213
- castShape(A, I, g, C, B, i, D, o, w, K, h, s, y, a, k) {
3214
- let F = S.intoRaw(C), M = e.intoRaw(B), J = S.intoRaw(i), L = D.intoRaw(), q = OA.fromRaw(g, this.raw.castShape(A.raw, I.raw, g.raw, F, M, J, L, o, w, K, h, s, y, a, k));
3213
+ castShape(A, I, g, C, Q, i, D, o, w, h, K, s, y, a, k) {
3214
+ let F = S.intoRaw(C), M = e.intoRaw(Q), J = S.intoRaw(i), L = D.intoRaw(), q = OA.fromRaw(g, this.raw.castShape(A.raw, I.raw, g.raw, F, M, J, L, o, w, h, K, s, y, a, k));
3215
3215
  return F.free(), M.free(), J.free(), L.free(), q;
3216
3216
  }
3217
- intersectionsWithShape(A, I, g, C, B, i, D, o, w, K, h, s) {
3218
- let y = S.intoRaw(C), a = e.intoRaw(B), k = i.intoRaw();
3219
- this.raw.intersectionsWithShape(A.raw, I.raw, g.raw, y, a, k, D, o, w, K, h, s), y.free(), a.free(), k.free();
3217
+ intersectionsWithShape(A, I, g, C, Q, i, D, o, w, h, K, s) {
3218
+ let y = S.intoRaw(C), a = e.intoRaw(Q), k = i.intoRaw();
3219
+ this.raw.intersectionsWithShape(A.raw, I.raw, g.raw, y, a, k, D, o, w, h, K, s), y.free(), a.free(), k.free();
3220
3220
  }
3221
- collidersWithAabbIntersectingAabb(A, I, g, C, B, i) {
3222
- let D = S.intoRaw(C), o = S.intoRaw(B);
3221
+ collidersWithAabbIntersectingAabb(A, I, g, C, Q, i) {
3222
+ let D = S.intoRaw(C), o = S.intoRaw(Q);
3223
3223
  this.raw.collidersWithAabbIntersectingAabb(A.raw, I.raw, g.raw, D, o, i), D.free(), o.free();
3224
3224
  }
3225
3225
  }
@@ -3239,9 +3239,9 @@ class Vg {
3239
3239
  contactPair(A, I, g) {
3240
3240
  const C = this.raw.contact_pair(A, I);
3241
3241
  if (C) {
3242
- const B = C.collider1() != A;
3242
+ const Q = C.collider1() != A;
3243
3243
  let i;
3244
- for (i = 0; i < C.numContactManifolds(); ++i) this.tempManifold.raw = C.contactManifold(i), this.tempManifold.raw && g(this.tempManifold, B), this.tempManifold.free();
3244
+ for (i = 0; i < C.numContactManifolds(); ++i) this.tempManifold.raw = C.contactManifold(i), this.tempManifold.raw && g(this.tempManifold, Q), this.tempManifold.free();
3245
3245
  C.free();
3246
3246
  }
3247
3247
  }
@@ -3315,8 +3315,8 @@ class Pg {
3315
3315
  }
3316
3316
  }
3317
3317
  class cA {
3318
- constructor(A, I, g, C, B) {
3319
- this.distance = A, this.point1 = I, this.point2 = g, this.normal1 = C, this.normal2 = B;
3318
+ constructor(A, I, g, C, Q) {
3319
+ this.distance = A, this.point1 = I, this.point2 = g, this.normal1 = C, this.normal2 = Q;
3320
3320
  }
3321
3321
  static fromRaw(A) {
3322
3322
  if (!A) return null;
@@ -3327,14 +3327,14 @@ class cA {
3327
3327
  class V {
3328
3328
  static fromRaw(A, I) {
3329
3329
  const g = A.coShapeType(I);
3330
- let C, B, i, D, o, w, K;
3330
+ let C, Q, i, D, o, w, h;
3331
3331
  switch (g) {
3332
3332
  case P.Ball:
3333
3333
  return new ZI(A.coRadius(I));
3334
3334
  case P.Cuboid:
3335
3335
  return C = A.coHalfExtents(I), new WI(C.x, C.y);
3336
3336
  case P.RoundCuboid:
3337
- return C = A.coHalfExtents(I), B = A.coRoundRadius(I), new jI(C.x, C.y, B);
3337
+ return C = A.coHalfExtents(I), Q = A.coRoundRadius(I), new jI(C.x, C.y, Q);
3338
3338
  case P.Capsule:
3339
3339
  return o = A.coHalfHeight(I), w = A.coRadius(I), new xI(o, w);
3340
3340
  case P.Segment:
@@ -3344,12 +3344,12 @@ class V {
3344
3344
  case P.Triangle:
3345
3345
  return i = A.coVertices(I), new mI(S.new(i[0], i[1]), S.new(i[2], i[3]), S.new(i[4], i[5]));
3346
3346
  case P.RoundTriangle:
3347
- return i = A.coVertices(I), B = A.coRoundRadius(I), new vI(S.new(i[0], i[1]), S.new(i[2], i[3]), S.new(i[4], i[5]), B);
3347
+ return i = A.coVertices(I), Q = A.coRoundRadius(I), new vI(S.new(i[0], i[1]), S.new(i[2], i[3]), S.new(i[4], i[5]), Q);
3348
3348
  case P.HalfSpace:
3349
- return K = S.fromRaw(A.coHalfspaceNormal(I)), new OI(K);
3349
+ return h = S.fromRaw(A.coHalfspaceNormal(I)), new OI(h);
3350
3350
  case P.Voxels:
3351
- const h = A.coVoxelData(I), s = A.coVoxelSize(I);
3352
- return new PI(h, s);
3351
+ const K = A.coVoxelData(I), s = A.coVoxelSize(I);
3352
+ return new PI(K, s);
3353
3353
  case P.TriMesh:
3354
3354
  i = A.coVertices(I), D = A.coIndices(I);
3355
3355
  const y = A.coTriMeshFlags(I);
@@ -3360,42 +3360,42 @@ class V {
3360
3360
  case P.ConvexPolygon:
3361
3361
  return i = A.coVertices(I), new uA(i, !1);
3362
3362
  case P.RoundConvexPolygon:
3363
- return i = A.coVertices(I), B = A.coRoundRadius(I), new zA(i, B, !1);
3363
+ return i = A.coVertices(I), Q = A.coRoundRadius(I), new zA(i, Q, !1);
3364
3364
  default:
3365
3365
  throw new Error("unknown shape type: " + g);
3366
3366
  }
3367
3367
  }
3368
- castShape(A, I, g, C, B, i, D, o, w, K) {
3369
- let h = S.intoRaw(A), s = e.intoRaw(I), y = S.intoRaw(g), a = S.intoRaw(B), k = e.intoRaw(i), F = S.intoRaw(D), M = this.intoRaw(), J = C.intoRaw(), L = YA.fromRaw(null, M.castShape(h, s, y, J, a, k, F, o, w, K));
3370
- return h.free(), s.free(), y.free(), a.free(), k.free(), F.free(), M.free(), J.free(), L;
3368
+ castShape(A, I, g, C, Q, i, D, o, w, h) {
3369
+ let K = S.intoRaw(A), s = e.intoRaw(I), y = S.intoRaw(g), a = S.intoRaw(Q), k = e.intoRaw(i), F = S.intoRaw(D), M = this.intoRaw(), J = C.intoRaw(), L = YA.fromRaw(null, M.castShape(K, s, y, J, a, k, F, o, w, h));
3370
+ return K.free(), s.free(), y.free(), a.free(), k.free(), F.free(), M.free(), J.free(), L;
3371
3371
  }
3372
- intersectsShape(A, I, g, C, B) {
3373
- let i = S.intoRaw(A), D = e.intoRaw(I), o = S.intoRaw(C), w = e.intoRaw(B), K = this.intoRaw(), h = g.intoRaw(), s = K.intersectsShape(i, D, h, o, w);
3374
- return i.free(), D.free(), o.free(), w.free(), K.free(), h.free(), s;
3372
+ intersectsShape(A, I, g, C, Q) {
3373
+ let i = S.intoRaw(A), D = e.intoRaw(I), o = S.intoRaw(C), w = e.intoRaw(Q), h = this.intoRaw(), K = g.intoRaw(), s = h.intersectsShape(i, D, K, o, w);
3374
+ return i.free(), D.free(), o.free(), w.free(), h.free(), K.free(), s;
3375
3375
  }
3376
- contactShape(A, I, g, C, B, i) {
3377
- let D = S.intoRaw(A), o = e.intoRaw(I), w = S.intoRaw(C), K = e.intoRaw(B), h = this.intoRaw(), s = g.intoRaw(), y = cA.fromRaw(h.contactShape(D, o, s, w, K, i));
3378
- return D.free(), o.free(), w.free(), K.free(), h.free(), s.free(), y;
3376
+ contactShape(A, I, g, C, Q, i) {
3377
+ let D = S.intoRaw(A), o = e.intoRaw(I), w = S.intoRaw(C), h = e.intoRaw(Q), K = this.intoRaw(), s = g.intoRaw(), y = cA.fromRaw(K.contactShape(D, o, s, w, h, i));
3378
+ return D.free(), o.free(), w.free(), h.free(), K.free(), s.free(), y;
3379
3379
  }
3380
3380
  containsPoint(A, I, g) {
3381
- let C = S.intoRaw(A), B = e.intoRaw(I), i = S.intoRaw(g), D = this.intoRaw(), o = D.containsPoint(C, B, i);
3382
- return C.free(), B.free(), i.free(), D.free(), o;
3381
+ let C = S.intoRaw(A), Q = e.intoRaw(I), i = S.intoRaw(g), D = this.intoRaw(), o = D.containsPoint(C, Q, i);
3382
+ return C.free(), Q.free(), i.free(), D.free(), o;
3383
3383
  }
3384
3384
  projectPoint(A, I, g, C) {
3385
- let B = S.intoRaw(A), i = e.intoRaw(I), D = S.intoRaw(g), o = this.intoRaw(), w = ZA.fromRaw(o.projectPoint(B, i, D, C));
3386
- return B.free(), i.free(), D.free(), o.free(), w;
3385
+ let Q = S.intoRaw(A), i = e.intoRaw(I), D = S.intoRaw(g), o = this.intoRaw(), w = ZA.fromRaw(o.projectPoint(Q, i, D, C));
3386
+ return Q.free(), i.free(), D.free(), o.free(), w;
3387
3387
  }
3388
3388
  intersectsRay(A, I, g, C) {
3389
- let B = S.intoRaw(I), i = e.intoRaw(g), D = S.intoRaw(A.origin), o = S.intoRaw(A.dir), w = this.intoRaw(), K = w.intersectsRay(B, i, D, o, C);
3390
- return B.free(), i.free(), D.free(), o.free(), w.free(), K;
3389
+ let Q = S.intoRaw(I), i = e.intoRaw(g), D = S.intoRaw(A.origin), o = S.intoRaw(A.dir), w = this.intoRaw(), h = w.intersectsRay(Q, i, D, o, C);
3390
+ return Q.free(), i.free(), D.free(), o.free(), w.free(), h;
3391
3391
  }
3392
- castRay(A, I, g, C, B) {
3393
- let i = S.intoRaw(I), D = e.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), K = this.intoRaw(), h = K.castRay(i, D, o, w, C, B);
3394
- return i.free(), D.free(), o.free(), w.free(), K.free(), h;
3392
+ castRay(A, I, g, C, Q) {
3393
+ let i = S.intoRaw(I), D = e.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), h = this.intoRaw(), K = h.castRay(i, D, o, w, C, Q);
3394
+ return i.free(), D.free(), o.free(), w.free(), h.free(), K;
3395
3395
  }
3396
- castRayAndGetNormal(A, I, g, C, B) {
3397
- let i = S.intoRaw(I), D = e.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), K = this.intoRaw(), h = TA.fromRaw(K.castRayAndGetNormal(i, D, o, w, C, B));
3398
- return i.free(), D.free(), o.free(), w.free(), K.free(), h;
3396
+ castRayAndGetNormal(A, I, g, C, Q) {
3397
+ let i = S.intoRaw(I), D = e.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), h = this.intoRaw(), K = TA.fromRaw(h.castRayAndGetNormal(i, D, o, w, C, Q));
3398
+ return i.free(), D.free(), o.free(), w.free(), h.free(), K;
3399
3399
  }
3400
3400
  }
3401
3401
  (function(E) {
@@ -3528,9 +3528,9 @@ class ug {
3528
3528
  free() {
3529
3529
  this.raw && this.raw.free(), this.raw = void 0;
3530
3530
  }
3531
- step(A, I, g, C, B, i, D, o, w, K, h, s) {
3531
+ step(A, I, g, C, Q, i, D, o, w, h, K, s) {
3532
3532
  let y = S.intoRaw(A);
3533
- h ? this.raw.stepWithEvents(y, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw, K.raw, h.raw, s, s ? s.filterContactPair : null, s ? s.filterIntersectionPair : null) : this.raw.step(y, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw, K.raw), y.free();
3533
+ K ? this.raw.stepWithEvents(y, I.raw, g.raw, C.raw, Q.raw, i.raw, D.raw, o.raw, w.raw, h.raw, K.raw, s, s ? s.filterContactPair : null, s ? s.filterIntersectionPair : null) : this.raw.step(y, I.raw, g.raw, C.raw, Q.raw, i.raw, D.raw, o.raw, w.raw, h.raw), y.free();
3534
3534
  }
3535
3535
  }
3536
3536
  class eI {
@@ -3540,10 +3540,10 @@ class eI {
3540
3540
  free() {
3541
3541
  this.raw && this.raw.free(), this.raw = void 0;
3542
3542
  }
3543
- serializeAll(A, I, g, C, B, i, D, o, w) {
3544
- let K = S.intoRaw(A);
3545
- const h = this.raw.serializeAll(K, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw);
3546
- return K.free(), h;
3543
+ serializeAll(A, I, g, C, Q, i, D, o, w) {
3544
+ let h = S.intoRaw(A);
3545
+ const K = this.raw.serializeAll(h, I.raw, g.raw, C.raw, Q.raw, i.raw, D.raw, o.raw, w.raw);
3546
+ return h.free(), K;
3547
3547
  }
3548
3548
  deserializeAll(A) {
3549
3549
  return EI.fromRaw(this.raw.deserializeAll(A));
@@ -3561,15 +3561,15 @@ class _g {
3561
3561
  free() {
3562
3562
  this.raw && this.raw.free(), this.raw = void 0, this.vertices = void 0, this.colors = void 0;
3563
3563
  }
3564
- render(A, I, g, C, B, i, D) {
3565
- this.raw.render(A.raw, I.raw, g.raw, C.raw, B.raw, i, I.castClosure(D)), this.vertices = this.raw.vertices(), this.colors = this.raw.colors();
3564
+ render(A, I, g, C, Q, i, D) {
3565
+ this.raw.render(A.raw, I.raw, g.raw, C.raw, Q.raw, i, I.castClosure(D)), this.vertices = this.raw.vertices(), this.colors = this.raw.colors();
3566
3566
  }
3567
3567
  }
3568
3568
  class $g {
3569
3569
  }
3570
3570
  class AC {
3571
- constructor(A, I, g, C, B, i) {
3572
- this.params = I, this.bodies = B, this.colliders = i, this.broadPhase = g, this.narrowPhase = C, this.raw = new sC(A), this.rawCharacterCollision = new qg(), this._applyImpulsesToDynamicBodies = !1, this._characterMass = null;
3571
+ constructor(A, I, g, C, Q, i) {
3572
+ this.params = I, this.bodies = Q, this.colliders = i, this.broadPhase = g, this.narrowPhase = C, this.raw = new sC(A), this.rawCharacterCollision = new qg(), this._applyImpulsesToDynamicBodies = !1, this._characterMass = null;
3573
3573
  }
3574
3574
  free() {
3575
3575
  this.raw && (this.raw.free(), this.rawCharacterCollision.free()), this.raw = void 0, this.rawCharacterCollision = void 0;
@@ -3653,9 +3653,9 @@ class AC {
3653
3653
  snapToGroundEnabled() {
3654
3654
  return this.raw.snapToGroundEnabled();
3655
3655
  }
3656
- computeColliderMovement(A, I, g, C, B) {
3656
+ computeColliderMovement(A, I, g, C, Q) {
3657
3657
  let i = S.intoRaw(I);
3658
- this.raw.computeColliderMovement(this.params.dt, this.broadPhase.raw, this.narrowPhase.raw, this.bodies.raw, this.colliders.raw, A.handle, i, this._applyImpulsesToDynamicBodies, this._characterMass, g, C, this.colliders.castClosure(B)), i.free();
3658
+ this.raw.computeColliderMovement(this.params.dt, this.broadPhase.raw, this.narrowPhase.raw, this.bodies.raw, this.colliders.raw, A.handle, i, this._applyImpulsesToDynamicBodies, this._characterMass, g, C, this.colliders.castClosure(Q)), i.free();
3659
3659
  }
3660
3660
  computedMovement() {
3661
3661
  return S.fromRaw(this.raw.computedMovement());
@@ -3678,8 +3678,8 @@ class AC {
3678
3678
  E[E.None = 0] = "None", E[E.LinX = 1] = "LinX", E[E.LinY = 2] = "LinY", E[E.LinZ = 4] = "LinZ", E[E.AngZ = 32] = "AngZ", E[E.AllLin = 3] = "AllLin", E[E.AllAng = 32] = "AllAng", E[E.All = 35] = "All";
3679
3679
  })(tI || (tI = {}));
3680
3680
  class IC {
3681
- constructor(A, I, g, C, B, i) {
3682
- this.params = A, this.bodies = I, this.raw = new NC(g, C, B, i);
3681
+ constructor(A, I, g, C, Q, i) {
3682
+ this.params = A, this.bodies = I, this.raw = new NC(g, C, Q, i);
3683
3683
  }
3684
3684
  free() {
3685
3685
  this.raw && this.raw.free(), this.raw = void 0;
@@ -3700,23 +3700,23 @@ class IC {
3700
3700
  this.raw.reset_integrals();
3701
3701
  }
3702
3702
  applyLinearCorrection(A, I, g) {
3703
- let C = S.intoRaw(I), B = S.intoRaw(g);
3704
- this.raw.apply_linear_correction(this.params.dt, this.bodies.raw, A.handle, C, B), C.free(), B.free();
3703
+ let C = S.intoRaw(I), Q = S.intoRaw(g);
3704
+ this.raw.apply_linear_correction(this.params.dt, this.bodies.raw, A.handle, C, Q), C.free(), Q.free();
3705
3705
  }
3706
3706
  applyAngularCorrection(A, I, g) {
3707
3707
  this.raw.apply_angular_correction(this.params.dt, this.bodies.raw, A.handle, I, g);
3708
3708
  }
3709
3709
  linearCorrection(A, I, g) {
3710
- let C = S.intoRaw(I), B = S.intoRaw(g), i = this.raw.linear_correction(this.params.dt, this.bodies.raw, A.handle, C, B);
3711
- return C.free(), B.free(), S.fromRaw(i);
3710
+ let C = S.intoRaw(I), Q = S.intoRaw(g), i = this.raw.linear_correction(this.params.dt, this.bodies.raw, A.handle, C, Q);
3711
+ return C.free(), Q.free(), S.fromRaw(i);
3712
3712
  }
3713
3713
  angularCorrection(A, I, g) {
3714
3714
  return this.raw.angular_correction(this.params.dt, this.bodies.raw, A.handle, I, g);
3715
3715
  }
3716
3716
  }
3717
3717
  class EI {
3718
- constructor(A, I, g, C, B, i, D, o, w, K, h, s, y) {
3719
- this.gravity = A, this.integrationParameters = new ng(I), this.islands = new mg(g), this.broadPhase = new vg(C), this.narrowPhase = new Vg(B), this.bodies = new lg(i), this.colliders = new CC(D), this.impulseJoints = new Zg(o), this.multibodyJoints = new xg(w), this.ccdSolver = new Xg(K), this.physicsPipeline = new ug(h), this.serializationPipeline = new eI(s), this.debugRenderPipeline = new _g(y), this.characterControllers = /* @__PURE__ */ new Set(), this.pidControllers = /* @__PURE__ */ new Set(), this.impulseJoints.finalizeDeserialization(this.bodies), this.bodies.finalizeDeserialization(this.colliders), this.colliders.finalizeDeserialization(this.bodies);
3718
+ constructor(A, I, g, C, Q, i, D, o, w, h, K, s, y) {
3719
+ this.gravity = A, this.integrationParameters = new ng(I), this.islands = new mg(g), this.broadPhase = new vg(C), this.narrowPhase = new Vg(Q), this.bodies = new lg(i), this.colliders = new CC(D), this.impulseJoints = new Zg(o), this.multibodyJoints = new xg(w), this.ccdSolver = new Xg(h), this.physicsPipeline = new ug(K), this.serializationPipeline = new eI(s), this.debugRenderPipeline = new _g(y), this.characterControllers = /* @__PURE__ */ new Set(), this.pidControllers = /* @__PURE__ */ new Set(), this.impulseJoints.finalizeDeserialization(this.bodies), this.bodies.finalizeDeserialization(this.colliders), this.colliders.finalizeDeserialization(this.bodies);
3720
3720
  }
3721
3721
  free() {
3722
3722
  this.integrationParameters.free(), this.islands.free(), this.broadPhase.free(), this.narrowPhase.free(), this.bodies.free(), this.colliders.free(), this.impulseJoints.free(), this.multibodyJoints.free(), this.ccdSolver.free(), this.physicsPipeline.free(), this.serializationPipeline.free(), this.debugRenderPipeline.free(), this.characterControllers.forEach((A) => A.free()), this.pidControllers.forEach((A) => A.free()), this.integrationParameters = void 0, this.islands = void 0, this.broadPhase = void 0, this.narrowPhase = void 0, this.bodies = void 0, this.colliders = void 0, this.ccdSolver = void 0, this.impulseJoints = void 0, this.multibodyJoints = void 0, this.physicsPipeline = void 0, this.serializationPipeline = void 0, this.debugRenderPipeline = void 0, this.characterControllers = void 0, this.pidControllers = void 0;
@@ -3780,8 +3780,8 @@ class EI {
3780
3780
  this.characterControllers.delete(A), A.free();
3781
3781
  }
3782
3782
  createPidController(A, I, g, C) {
3783
- let B = new IC(this.integrationParameters, this.bodies, A, I, g, C);
3784
- return this.pidControllers.add(B), B;
3783
+ let Q = new IC(this.integrationParameters, this.bodies, A, I, g, C);
3784
+ return this.pidControllers.add(Q), Q;
3785
3785
  }
3786
3786
  removePidController(A) {
3787
3787
  this.pidControllers.delete(A), A.free();
@@ -3829,33 +3829,33 @@ class EI {
3829
3829
  forEachActiveRigidBody(A) {
3830
3830
  this.bodies.forEachActiveRigidBody(this.islands, A);
3831
3831
  }
3832
- castRay(A, I, g, C, B, i, D, o) {
3833
- return this.broadPhase.castRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
3832
+ castRay(A, I, g, C, Q, i, D, o) {
3833
+ return this.broadPhase.castRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, Q, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
3834
3834
  }
3835
- castRayAndGetNormal(A, I, g, C, B, i, D, o) {
3836
- return this.broadPhase.castRayAndGetNormal(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
3835
+ castRayAndGetNormal(A, I, g, C, Q, i, D, o) {
3836
+ return this.broadPhase.castRayAndGetNormal(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, Q, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
3837
3837
  }
3838
- intersectionsWithRay(A, I, g, C, B, i, D, o, w) {
3839
- this.broadPhase.intersectionsWithRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
3838
+ intersectionsWithRay(A, I, g, C, Q, i, D, o, w) {
3839
+ this.broadPhase.intersectionsWithRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, Q, i, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
3840
3840
  }
3841
- intersectionWithShape(A, I, g, C, B, i, D, o) {
3842
- let w = this.broadPhase.intersectionWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
3841
+ intersectionWithShape(A, I, g, C, Q, i, D, o) {
3842
+ let w = this.broadPhase.intersectionWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, Q, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
3843
3843
  return w != null ? this.colliders.get(w) : null;
3844
3844
  }
3845
- projectPoint(A, I, g, C, B, i, D) {
3846
- return this.broadPhase.projectPoint(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B ? B.handle : null, i ? i.handle : null, this.colliders.castClosure(D));
3845
+ projectPoint(A, I, g, C, Q, i, D) {
3846
+ return this.broadPhase.projectPoint(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, Q ? Q.handle : null, i ? i.handle : null, this.colliders.castClosure(D));
3847
3847
  }
3848
- projectPointAndGetFeature(A, I, g, C, B, i) {
3849
- return this.broadPhase.projectPointAndGetFeature(this.narrowPhase, this.bodies, this.colliders, A, I, g, C ? C.handle : null, B ? B.handle : null, this.colliders.castClosure(i));
3848
+ projectPointAndGetFeature(A, I, g, C, Q, i) {
3849
+ return this.broadPhase.projectPointAndGetFeature(this.narrowPhase, this.bodies, this.colliders, A, I, g, C ? C.handle : null, Q ? Q.handle : null, this.colliders.castClosure(i));
3850
3850
  }
3851
- intersectionsWithPoint(A, I, g, C, B, i, D) {
3852
- this.broadPhase.intersectionsWithPoint(this.narrowPhase, this.bodies, this.colliders, A, this.colliders.castClosure(I), g, C, B ? B.handle : null, i ? i.handle : null, this.colliders.castClosure(D));
3851
+ intersectionsWithPoint(A, I, g, C, Q, i, D) {
3852
+ this.broadPhase.intersectionsWithPoint(this.narrowPhase, this.bodies, this.colliders, A, this.colliders.castClosure(I), g, C, Q ? Q.handle : null, i ? i.handle : null, this.colliders.castClosure(D));
3853
3853
  }
3854
- castShape(A, I, g, C, B, i, D, o, w, K, h, s) {
3855
- return this.broadPhase.castShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i, D, o, w, K ? K.handle : null, h ? h.handle : null, this.colliders.castClosure(s));
3854
+ castShape(A, I, g, C, Q, i, D, o, w, h, K, s) {
3855
+ return this.broadPhase.castShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, Q, i, D, o, w, h ? h.handle : null, K ? K.handle : null, this.colliders.castClosure(s));
3856
3856
  }
3857
- intersectionsWithShape(A, I, g, C, B, i, D, o, w) {
3858
- this.broadPhase.intersectionsWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, this.colliders.castClosure(C), B, i, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
3857
+ intersectionsWithShape(A, I, g, C, Q, i, D, o, w) {
3858
+ this.broadPhase.intersectionsWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, this.colliders.castClosure(C), Q, i, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
3859
3859
  }
3860
3860
  collidersWithAabbIntersectingAabb(A, I, g) {
3861
3861
  this.broadPhase.collidersWithAabbIntersectingAabb(this.narrowPhase, this.bodies, this.colliders, A, I, this.colliders.castClosure(g));
@@ -4136,8 +4136,8 @@ class HI {
4136
4136
  setVoxel(A, I, g) {
4137
4137
  this.colliderSet.raw.coSetVoxel(this.handle, A, I, g), this._shape = null;
4138
4138
  }
4139
- propagateVoxelChange(A, I, g, C, B) {
4140
- this.colliderSet.raw.coPropagateVoxelChange(this.handle, A.handle, I, g, C, B), this._shape = null;
4139
+ propagateVoxelChange(A, I, g, C, Q) {
4140
+ this.colliderSet.raw.coPropagateVoxelChange(this.handle, A.handle, I, g, C, Q), this._shape = null;
4141
4141
  }
4142
4142
  combineVoxelStates(A, I, g) {
4143
4143
  this.colliderSet.raw.coCombineVoxelStates(this.handle, A.handle, I, g), this._shape = null;
@@ -4188,35 +4188,35 @@ class HI {
4188
4188
  return g.free(), C;
4189
4189
  }
4190
4190
  intersectsRay(A, I) {
4191
- let g = S.intoRaw(A.origin), C = S.intoRaw(A.dir), B = this.colliderSet.raw.coIntersectsRay(this.handle, g, C, I);
4192
- return g.free(), C.free(), B;
4191
+ let g = S.intoRaw(A.origin), C = S.intoRaw(A.dir), Q = this.colliderSet.raw.coIntersectsRay(this.handle, g, C, I);
4192
+ return g.free(), C.free(), Q;
4193
4193
  }
4194
- castShape(A, I, g, C, B, i, D, o) {
4195
- let w = S.intoRaw(A), K = S.intoRaw(g), h = e.intoRaw(C), s = S.intoRaw(B), y = I.intoRaw(), a = YA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, w, y, K, h, s, i, D, o));
4196
- return w.free(), K.free(), h.free(), s.free(), y.free(), a;
4194
+ castShape(A, I, g, C, Q, i, D, o) {
4195
+ let w = S.intoRaw(A), h = S.intoRaw(g), K = e.intoRaw(C), s = S.intoRaw(Q), y = I.intoRaw(), a = YA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, w, y, h, K, s, i, D, o));
4196
+ return w.free(), h.free(), K.free(), s.free(), y.free(), a;
4197
4197
  }
4198
- castCollider(A, I, g, C, B, i) {
4199
- let D = S.intoRaw(A), o = S.intoRaw(g), w = OA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastCollider(this.handle, D, I.handle, o, C, B, i));
4198
+ castCollider(A, I, g, C, Q, i) {
4199
+ let D = S.intoRaw(A), o = S.intoRaw(g), w = OA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastCollider(this.handle, D, I.handle, o, C, Q, i));
4200
4200
  return D.free(), o.free(), w;
4201
4201
  }
4202
4202
  intersectsShape(A, I, g) {
4203
- let C = S.intoRaw(I), B = e.intoRaw(g), i = A.intoRaw(), D = this.colliderSet.raw.coIntersectsShape(this.handle, i, C, B);
4204
- return C.free(), B.free(), i.free(), D;
4203
+ let C = S.intoRaw(I), Q = e.intoRaw(g), i = A.intoRaw(), D = this.colliderSet.raw.coIntersectsShape(this.handle, i, C, Q);
4204
+ return C.free(), Q.free(), i.free(), D;
4205
4205
  }
4206
4206
  contactShape(A, I, g, C) {
4207
- let B = S.intoRaw(I), i = e.intoRaw(g), D = A.intoRaw(), o = cA.fromRaw(this.colliderSet.raw.coContactShape(this.handle, D, B, i, C));
4208
- return B.free(), i.free(), D.free(), o;
4207
+ let Q = S.intoRaw(I), i = e.intoRaw(g), D = A.intoRaw(), o = cA.fromRaw(this.colliderSet.raw.coContactShape(this.handle, D, Q, i, C));
4208
+ return Q.free(), i.free(), D.free(), o;
4209
4209
  }
4210
4210
  contactCollider(A, I) {
4211
4211
  return cA.fromRaw(this.colliderSet.raw.coContactCollider(this.handle, A.handle, I));
4212
4212
  }
4213
4213
  castRay(A, I, g) {
4214
- let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir), i = this.colliderSet.raw.coCastRay(this.handle, C, B, I, g);
4215
- return C.free(), B.free(), i;
4214
+ let C = S.intoRaw(A.origin), Q = S.intoRaw(A.dir), i = this.colliderSet.raw.coCastRay(this.handle, C, Q, I, g);
4215
+ return C.free(), Q.free(), i;
4216
4216
  }
4217
4217
  castRayAndGetNormal(A, I, g) {
4218
- let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir), i = TA.fromRaw(this.colliderSet.raw.coCastRayAndGetNormal(this.handle, C, B, I, g));
4219
- return C.free(), B.free(), i;
4218
+ let C = S.intoRaw(A.origin), Q = S.intoRaw(A.dir), i = TA.fromRaw(this.colliderSet.raw.coCastRayAndGetNormal(this.handle, C, Q, I, g));
4219
+ return C.free(), Q.free(), i;
4220
4220
  }
4221
4221
  }
4222
4222
  (function(E) {
@@ -4243,8 +4243,8 @@ class x {
4243
4243
  return new x(C);
4244
4244
  }
4245
4245
  static roundTriangle(A, I, g, C) {
4246
- const B = new vI(A, I, g, C);
4247
- return new x(B);
4246
+ const Q = new vI(A, I, g, C);
4247
+ return new x(Q);
4248
4248
  }
4249
4249
  static polyline(A, I) {
4250
4250
  const g = new VI(A, I);
@@ -4364,10 +4364,10 @@ class CC {
4364
4364
  createCollider(A, I, g) {
4365
4365
  let C = g != null && g != null;
4366
4366
  if (C && isNaN(g)) throw Error("Cannot create a collider with a parent rigid-body handle that is not a number.");
4367
- let B = I.shape.intoRaw(), i = S.intoRaw(I.translation), D = e.intoRaw(I.rotation), o = S.intoRaw(I.centerOfMass), w = this.raw.createCollider(I.enabled, B, i, D, I.massPropsMode, I.mass, o, I.principalAngularInertia, I.density, I.friction, I.restitution, I.frictionCombineRule, I.restitutionCombineRule, I.isSensor, I.collisionGroups, I.solverGroups, I.activeCollisionTypes, I.activeHooks, I.activeEvents, I.contactForceEventThreshold, I.contactSkin, C, C ? g : 0, A.raw);
4368
- B.free(), i.free(), D.free(), o.free();
4369
- let K = C ? A.get(g) : null, h = new HI(this, w, K, I.shape);
4370
- return this.map.set(w, h), h;
4367
+ let Q = I.shape.intoRaw(), i = S.intoRaw(I.translation), D = e.intoRaw(I.rotation), o = S.intoRaw(I.centerOfMass), w = this.raw.createCollider(I.enabled, Q, i, D, I.massPropsMode, I.mass, o, I.principalAngularInertia, I.density, I.friction, I.restitution, I.frictionCombineRule, I.restitutionCombineRule, I.isSensor, I.collisionGroups, I.solverGroups, I.activeCollisionTypes, I.activeHooks, I.activeEvents, I.contactForceEventThreshold, I.contactSkin, C, C ? g : 0, A.raw);
4368
+ Q.free(), i.free(), D.free(), o.free();
4369
+ let h = C ? A.get(g) : null, K = new HI(this, w, h, I.shape);
4370
+ return this.map.set(w, K), K;
4371
4371
  }
4372
4372
  remove(A, I, g, C) {
4373
4373
  this.raw.remove(A, I.raw, g.raw, C), this.unmap(A);
@@ -4392,25 +4392,25 @@ class CC {
4392
4392
  }
4393
4393
  }
4394
4394
  function FC(E, A, I, g) {
4395
- return new (I || (I = Promise))(function(C, B) {
4395
+ return new (I || (I = Promise))(function(C, Q) {
4396
4396
  function i(w) {
4397
4397
  try {
4398
4398
  o(g.next(w));
4399
- } catch (K) {
4400
- B(K);
4399
+ } catch (h) {
4400
+ Q(h);
4401
4401
  }
4402
4402
  }
4403
4403
  function D(w) {
4404
4404
  try {
4405
4405
  o(g.throw(w));
4406
- } catch (K) {
4407
- B(K);
4406
+ } catch (h) {
4407
+ Q(h);
4408
4408
  }
4409
4409
  }
4410
4410
  function o(w) {
4411
- var K;
4412
- w.done ? C(w.value) : (K = w.value, K instanceof I ? K : new I(function(h) {
4413
- h(K);
4411
+ var h;
4412
+ w.done ? C(w.value) : (h = w.value, h instanceof I ? h : new I(function(K) {
4413
+ K(h);
4414
4414
  })).then(i, D);
4415
4415
  }
4416
4416
  o((g = g.apply(E, [])).next());
@@ -4420,13 +4420,13 @@ for (var MC = { byteLength: function(E) {
4420
4420
  var A = cg(E), I = A[0], g = A[1];
4421
4421
  return 3 * (I + g) / 4 - g;
4422
4422
  }, toByteArray: function(E) {
4423
- var A, I, g = cg(E), C = g[0], B = g[1], i = new JC(function(w, K, h) {
4424
- return 3 * (K + h) / 4 - h;
4425
- }(0, C, B)), D = 0, o = B > 0 ? C - 4 : C;
4423
+ var A, I, g = cg(E), C = g[0], Q = g[1], i = new JC(function(w, h, K) {
4424
+ return 3 * (h + K) / 4 - K;
4425
+ }(0, C, Q)), D = 0, o = Q > 0 ? C - 4 : C;
4426
4426
  for (I = 0; I < o; I += 4) A = IA[E.charCodeAt(I)] << 18 | IA[E.charCodeAt(I + 1)] << 12 | IA[E.charCodeAt(I + 2)] << 6 | IA[E.charCodeAt(I + 3)], i[D++] = A >> 16 & 255, i[D++] = A >> 8 & 255, i[D++] = 255 & A;
4427
- return B === 2 && (A = IA[E.charCodeAt(I)] << 2 | IA[E.charCodeAt(I + 1)] >> 4, i[D++] = 255 & A), B === 1 && (A = IA[E.charCodeAt(I)] << 10 | IA[E.charCodeAt(I + 1)] << 4 | IA[E.charCodeAt(I + 2)] >> 2, i[D++] = A >> 8 & 255, i[D++] = 255 & A), i;
4427
+ return Q === 2 && (A = IA[E.charCodeAt(I)] << 2 | IA[E.charCodeAt(I + 1)] >> 4, i[D++] = 255 & A), Q === 1 && (A = IA[E.charCodeAt(I)] << 10 | IA[E.charCodeAt(I + 1)] << 4 | IA[E.charCodeAt(I + 2)] >> 2, i[D++] = A >> 8 & 255, i[D++] = 255 & A), i;
4428
4428
  }, fromByteArray: function(E) {
4429
- for (var A, I = E.length, g = I % 3, C = [], B = 16383, i = 0, D = I - g; i < D; i += B) C.push(RC(E, i, i + B > D ? D : i + B));
4429
+ for (var A, I = E.length, g = I % 3, C = [], Q = 16383, i = 0, D = I - g; i < D; i += Q) C.push(RC(E, i, i + Q > D ? D : i + Q));
4430
4430
  return g === 1 ? (A = E[I - 1], C.push(QA[A >> 2] + QA[A << 4 & 63] + "==")) : g === 2 && (A = (E[I - 2] << 8) + E[I - 1], C.push(QA[A >> 10] + QA[A >> 4 & 63] + QA[A << 2 & 63] + "=")), C.join("");
4431
4431
  } }, QA = [], IA = [], JC = typeof Uint8Array < "u" ? Uint8Array : Array, MI = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", UA = 0, UC = MI.length; UA < UC; ++UA) QA[UA] = MI[UA], IA[MI.charCodeAt(UA)] = UA;
4432
4432
  function cg(E) {
@@ -4436,8 +4436,8 @@ function cg(E) {
4436
4436
  return I === -1 && (I = A), [I, I === A ? 0 : 4 - I % 4];
4437
4437
  }
4438
4438
  function RC(E, A, I) {
4439
- for (var g, C, B = [], i = A; i < I; i += 3) g = (E[i] << 16 & 16711680) + (E[i + 1] << 8 & 65280) + (255 & E[i + 2]), B.push(QA[(C = g) >> 18 & 63] + QA[C >> 12 & 63] + QA[C >> 6 & 63] + QA[63 & C]);
4440
- return B.join("");
4439
+ for (var g, C, Q = [], i = A; i < I; i += 3) g = (E[i] << 16 & 16711680) + (E[i + 1] << 8 & 65280) + (255 & E[i + 2]), Q.push(QA[(C = g) >> 18 & 63] + QA[C >> 12 & 63] + QA[C >> 6 & 63] + QA[63 & C]);
4440
+ return Q.join("");
4441
4441
  }
4442
4442
  function cC() {
4443
4443
  return FC(this, void 0, void 0, function* () {
@@ -4448,18 +4448,18 @@ function YC() {
4448
4448
  return function() {
4449
4449
  let E, A;
4450
4450
  try {
4451
- const C = Q.__wbindgen_add_to_stack_pointer(-16);
4452
- Q.version(C);
4451
+ const C = B.__wbindgen_add_to_stack_pointer(-16);
4452
+ B.version(C);
4453
4453
  var I = X().getInt32(C + 0, !0), g = X().getInt32(C + 4, !0);
4454
4454
  return E = I, A = g, JI(I, g);
4455
4455
  } finally {
4456
- Q.__wbindgen_add_to_stack_pointer(16), Q.__wbindgen_export_1(E, A, 1);
4456
+ B.__wbindgen_add_to_stack_pointer(16), B.__wbindgen_export_1(E, A, 1);
4457
4457
  }
4458
4458
  }();
4459
4459
  }
4460
4460
  function tC(E) {
4461
4461
  var A;
4462
- A = E, Q.reserve_memory(A);
4462
+ A = E, B.reserve_memory(A);
4463
4463
  }
4464
4464
  IA[45] = 62, IA[95] = 63;
4465
4465
  var _ = Object.freeze({ __proto__: null, version: YC, reserveMemory: tC, Vector2: Hg, VectorOps: S, RotationOps: e, get RigidBodyType() {
@@ -4549,8 +4549,8 @@ class LC {
4549
4549
  C.setDensity(A.mass / i);
4550
4550
  }
4551
4551
  A.isSensor && C.setSensor(!0);
4552
- const B = this.world.createCollider(C, g);
4553
- A.frictionAir !== void 0 && g.setLinearDamping(A.frictionAir * 10), this.bodies.set(A.id, g), this.colliders.set(A.id, B);
4552
+ const Q = this.world.createCollider(C, g);
4553
+ A.frictionAir !== void 0 && g.setLinearDamping(A.frictionAir * 10), this.bodies.set(A.id, g), this.colliders.set(A.id, Q);
4554
4554
  }
4555
4555
  removeBody(A) {
4556
4556
  const I = this.bodies.get(A);
@@ -4666,8 +4666,8 @@ class qC {
4666
4666
  this.physicsEngine.init(I).then(() => {
4667
4667
  var g;
4668
4668
  this.physicsEngine && ((g = this.artboard) == null || g.objects.forEach((C) => {
4669
- var B;
4670
- if ((B = C.physics) != null && B.enabled && C.type === "Shape") {
4669
+ var Q;
4670
+ if ((Q = C.physics) != null && Q.enabled && C.type === "Shape") {
4671
4671
  const i = this.objectStates.get(C.id);
4672
4672
  if (!i) return;
4673
4673
  const D = C.geometry.width || 100, o = C.geometry.height || 100;
@@ -4716,16 +4716,16 @@ class qC {
4716
4716
  if (this.artboard.objects.forEach((C) => {
4717
4717
  C.geometry && C.geometry.type === "Text" && C.geometry.fontFamily && A.add(C.geometry.fontFamily);
4718
4718
  }), this.artboard.animations.forEach((C) => {
4719
- C.tracks.forEach((B) => {
4720
- (B.property === "geometry.fontFamily" || B.property === "fontFamily") && B.keyframes.forEach((i) => {
4719
+ C.tracks.forEach((Q) => {
4720
+ (Q.property === "geometry.fontFamily" || Q.property === "fontFamily") && Q.keyframes.forEach((i) => {
4721
4721
  i.value && typeof i.value == "string" && A.add(i.value);
4722
4722
  });
4723
4723
  });
4724
4724
  }), A.size === 0) return;
4725
4725
  let I = "";
4726
4726
  A.forEach((C) => {
4727
- const B = C.replace(/ /g, "+");
4728
- I += `&family=${B}:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900`;
4727
+ const Q = C.replace(/ /g, "+");
4728
+ I += `&family=${Q}:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900`;
4729
4729
  });
4730
4730
  const g = "exodeui-google-fonts";
4731
4731
  if (document.getElementById(g)) {
@@ -4742,7 +4742,7 @@ class qC {
4742
4742
  if (g && g.currentStateIds.length === I.length && I.every((D) => g.currentStateIds.includes(D)) && this.justFiredTriggers.size === 0)
4743
4743
  return;
4744
4744
  const C = [];
4745
- let B = 0;
4745
+ let Q = 0;
4746
4746
  if (this.artboard && this.activeStateMachine) {
4747
4747
  const i = this.activeStateMachine.layers.find((D) => D.name === A);
4748
4748
  if (i)
@@ -4750,7 +4750,7 @@ class qC {
4750
4750
  const o = i.states.find((w) => w.id === D);
4751
4751
  if (o) {
4752
4752
  let w = null;
4753
- o.animationId && (w = this.artboard.animations.find((K) => K.id === o.animationId) || null), w || (w = this.artboard.animations.find((K) => K.name === o.name || K.id === o.name || o.name === "Entry" && K.name === "Rotate") || null), w && (C.push({ animation: w, state: o }), B = Math.max(B, w.duration));
4753
+ o.animationId && (w = this.artboard.animations.find((h) => h.id === o.animationId) || null), w || (w = this.artboard.animations.find((h) => h.name === o.name || h.id === o.name || o.name === "Entry" && h.name === "Rotate") || null), w && (C.push({ animation: w, state: o }), Q = Math.max(Q, w.duration));
4754
4754
  }
4755
4755
  }
4756
4756
  }
@@ -4758,7 +4758,7 @@ class qC {
4758
4758
  currentStateIds: I,
4759
4759
  animations: C,
4760
4760
  time: 0,
4761
- duration: B
4761
+ duration: Q
4762
4762
  });
4763
4763
  }
4764
4764
  // Input Control
@@ -4786,14 +4786,14 @@ class qC {
4786
4786
  } else {
4787
4787
  const o = this.inputNameMap.get(A);
4788
4788
  if (o && o.length > 0) {
4789
- const w = (D = this.activeStateMachine) == null ? void 0 : D.inputs.find((K) => K.id === o[0]);
4789
+ const w = (D = this.activeStateMachine) == null ? void 0 : D.inputs.find((h) => h.id === o[0]);
4790
4790
  w && typeof w.value == "object" && (g = w.value.type);
4791
4791
  }
4792
4792
  }
4793
4793
  let C = I;
4794
4794
  g === "Trigger" && (I === 1 ? C = !0 : I === 0 && (C = !1)), this.inputs.has(A) && this.setInternalInput(A, C);
4795
- const B = this.inputNameMap.get(A);
4796
- B && B.forEach((o) => this.setInternalInput(o, C)), g === "Trigger" && C === !0 && (this.justFiredTriggers.add(A), B && B.forEach((o) => this.justFiredTriggers.add(o))), this.evaluateTransitions();
4795
+ const Q = this.inputNameMap.get(A);
4796
+ Q && Q.forEach((o) => this.setInternalInput(o, C)), g === "Trigger" && C === !0 && (this.justFiredTriggers.add(A), Q && Q.forEach((o) => this.justFiredTriggers.add(o))), this.evaluateTransitions();
4797
4797
  }
4798
4798
  evaluateTransitions() {
4799
4799
  this.activeStateMachine && (this.activeStateMachine.layers.forEach((A) => {
@@ -4801,41 +4801,41 @@ class qC {
4801
4801
  if (!I || I.currentStateIds.length === 0) return;
4802
4802
  const g = [];
4803
4803
  let C = !1;
4804
- for (const B of I.currentStateIds) {
4805
- const i = A.states.find((o) => o.id === B);
4804
+ for (const Q of I.currentStateIds) {
4805
+ const i = A.states.find((o) => o.id === Q);
4806
4806
  if (!i) continue;
4807
4807
  let D = !1;
4808
4808
  for (const o of i.transitions)
4809
4809
  this.checkConditions(o.conditions) && (g.push(o.targetStateId), D = !0, C = !0, o.conditions && o.conditions.forEach((w) => {
4810
- var h;
4811
- const K = (h = this.activeStateMachine) == null ? void 0 : h.inputs.find((s) => s.id === w.inputId);
4812
- if (K && typeof K.value == "object" && K.value.type === "Number" && (this.setInternalInput(w.inputId, 0), this.inputNameMap.has(K.name))) {
4813
- const s = this.inputNameMap.get(K.name);
4810
+ var K;
4811
+ const h = (K = this.activeStateMachine) == null ? void 0 : K.inputs.find((s) => s.id === w.inputId);
4812
+ if (h && typeof h.value == "object" && h.value.type === "Number" && (this.setInternalInput(w.inputId, 0), this.inputNameMap.has(h.name))) {
4813
+ const s = this.inputNameMap.get(h.name);
4814
4814
  s == null || s.forEach((y) => this.setInternalInput(y, 0));
4815
4815
  }
4816
4816
  }));
4817
- D || g.push(B);
4817
+ D || g.push(Q);
4818
4818
  }
4819
4819
  if (!C) {
4820
- const B = this.findGlobalTransition(A, I.currentStateIds);
4821
- B && (g.length = 0, g.push(B.targetStateId), C = !0, B.conditions && B.conditions.forEach((i) => {
4820
+ const Q = this.findGlobalTransition(A, I.currentStateIds);
4821
+ Q && (g.length = 0, g.push(Q.targetStateId), C = !0, Q.conditions && Q.conditions.forEach((i) => {
4822
4822
  var o;
4823
4823
  const D = (o = this.activeStateMachine) == null ? void 0 : o.inputs.find((w) => w.id === i.inputId);
4824
4824
  if (D && typeof D.value == "object" && D.value.type === "Number" && (this.setInternalInput(i.inputId, 0), this.inputNameMap.has(D.name))) {
4825
4825
  const w = this.inputNameMap.get(D.name);
4826
- w == null || w.forEach((K) => this.setInternalInput(K, 0));
4826
+ w == null || w.forEach((h) => this.setInternalInput(h, 0));
4827
4827
  }
4828
4828
  }));
4829
4829
  }
4830
4830
  if (C) {
4831
- const B = Array.from(new Set(g));
4832
- this.enterStates(A.name, B);
4831
+ const Q = Array.from(new Set(g));
4832
+ this.enterStates(A.name, Q);
4833
4833
  }
4834
4834
  }), this.justFiredTriggers.size > 0 && (this.justFiredTriggers.forEach((A) => {
4835
4835
  var g, C;
4836
4836
  this.setInternalInput(A, !1);
4837
- const I = (g = this.activeStateMachine) == null ? void 0 : g.inputs.find((B) => B.id === A);
4838
- I && this.inputNameMap.has(I.name) && ((C = this.inputNameMap.get(I.name)) == null || C.forEach((B) => this.setInternalInput(B, !1)));
4837
+ const I = (g = this.activeStateMachine) == null ? void 0 : g.inputs.find((Q) => Q.id === A);
4838
+ I && this.inputNameMap.has(I.name) && ((C = this.inputNameMap.get(I.name)) == null || C.forEach((Q) => this.setInternalInput(Q, !1)));
4839
4839
  }), this.justFiredTriggers.clear()));
4840
4840
  }
4841
4841
  /**
@@ -4850,36 +4850,36 @@ class qC {
4850
4850
  findGlobalTransition(A, I) {
4851
4851
  for (const g of A.states)
4852
4852
  if (!(I.includes(g.id) && this.justFiredTriggers.size === 0)) {
4853
- for (const B of g.transitions)
4854
- if (!(I.includes(B.targetStateId) && this.justFiredTriggers.size === 0) && this.checkConditions(B.conditions))
4855
- return B;
4853
+ for (const Q of g.transitions)
4854
+ if (!(I.includes(Q.targetStateId) && this.justFiredTriggers.size === 0) && this.checkConditions(Q.conditions))
4855
+ return Q;
4856
4856
  }
4857
4857
  return null;
4858
4858
  }
4859
4859
  checkConditions(A) {
4860
4860
  return !A || A.length === 0 ? !0 : A.every((I) => {
4861
- const g = I.inputId, C = I.op, B = I.value, i = this.evaluateLogicTree(g);
4861
+ const g = I.inputId, C = I.op, Q = I.value, i = this.evaluateLogicTree(g);
4862
4862
  if (i === void 0)
4863
4863
  return console.log(`[Engine] Condition Check Failed: Input ${g} is undefined`), !1;
4864
4864
  let D = !1;
4865
4865
  switch (C) {
4866
4866
  case "Equal":
4867
- D = i == B;
4867
+ D = i == Q;
4868
4868
  break;
4869
4869
  case "NotEqual":
4870
- D = i != B;
4870
+ D = i != Q;
4871
4871
  break;
4872
4872
  case "GreaterThan":
4873
- D = i > B;
4873
+ D = i > Q;
4874
4874
  break;
4875
4875
  case "LessThan":
4876
- D = i < B;
4876
+ D = i < Q;
4877
4877
  break;
4878
4878
  case "GreaterEqual":
4879
- D = i >= B;
4879
+ D = i >= Q;
4880
4880
  break;
4881
4881
  case "LessEqual":
4882
- D = i <= B;
4882
+ D = i <= Q;
4883
4883
  break;
4884
4884
  case "IsTrue":
4885
4885
  D = i === !0;
@@ -4899,9 +4899,9 @@ class qC {
4899
4899
  g.add(A);
4900
4900
  const C = (D = (i = this.activeStateMachine) == null ? void 0 : i.logicNodes) == null ? void 0 : D.find((w) => w.id === A);
4901
4901
  if (C) {
4902
- const w = (K, h) => {
4903
- const s = C.inputs.find((y) => y.id === K);
4904
- return s ? s.sourceId ? this.evaluateLogicTree(s.sourceId, s.sourceHandleId, g) : s.value !== void 0 ? s.value : h : h;
4902
+ const w = (h, K) => {
4903
+ const s = C.inputs.find((y) => y.id === h);
4904
+ return s ? s.sourceId ? this.evaluateLogicTree(s.sourceId, s.sourceHandleId, g) : s.value !== void 0 ? s.value : K : K;
4905
4905
  };
4906
4906
  switch (C.op) {
4907
4907
  case qA.AND:
@@ -4916,56 +4916,56 @@ class qC {
4916
4916
  return 0;
4917
4917
  }
4918
4918
  }
4919
- let B = this.inputs.get(A);
4920
- if (this.justFiredTriggers.has(A) && (B = !0), I && B !== void 0) {
4921
- const w = (o = this.activeStateMachine) == null ? void 0 : o.inputs.find((K) => K.id === A);
4922
- if (w && w.value.type === "Number" && typeof B == "number") {
4923
- const K = w.value.defaultValue ?? w.value.value;
4924
- if (I === "source-greater") return B > K;
4925
- if (I === "source-less") return B < K;
4926
- if (I === "source-equal") return B === K;
4919
+ let Q = this.inputs.get(A);
4920
+ if (this.justFiredTriggers.has(A) && (Q = !0), I && Q !== void 0) {
4921
+ const w = (o = this.activeStateMachine) == null ? void 0 : o.inputs.find((h) => h.id === A);
4922
+ if (w && w.value.type === "Number" && typeof Q == "number") {
4923
+ const h = w.value.defaultValue ?? w.value.value;
4924
+ if (I === "source-greater") return Q > h;
4925
+ if (I === "source-less") return Q < h;
4926
+ if (I === "source-equal") return Q === h;
4927
4927
  }
4928
- if (I === "source-true") return B === !0;
4929
- if (I === "source-false") return B === !1;
4928
+ if (I === "source-true") return Q === !0;
4929
+ if (I === "source-false") return Q === !1;
4930
4930
  if (I === "source-fire")
4931
4931
  return this.justFiredTriggers.has(A);
4932
4932
  }
4933
- return B !== void 0 ? B : 0;
4933
+ return Q !== void 0 ? Q : 0;
4934
4934
  }
4935
4935
  advance(A) {
4936
4936
  this.artboard && (this.physicsEngine && (this.physicsEngine.step(A), this.artboard.objects.forEach((I) => {
4937
4937
  var g;
4938
4938
  if ((g = I.physics) != null && g.enabled) {
4939
- const C = this.physicsEngine.getPosition(I.id), B = this.physicsEngine.getRotation(I.id), i = this.objectStates.get(I.id);
4940
- i && C !== null && (i.x = C.x, i.y = C.y), i && B !== null && (i.rotation = B * (180 / Math.PI));
4939
+ const C = this.physicsEngine.getPosition(I.id), Q = this.physicsEngine.getRotation(I.id), i = this.objectStates.get(I.id);
4940
+ i && C !== null && (i.x = C.x, i.y = C.y), i && Q !== null && (i.rotation = Q * (180 / Math.PI));
4941
4941
  }
4942
4942
  })), this.activeStateMachine && (this.evaluateTransitions(), this.layerStates.forEach((I) => {
4943
4943
  I.animations.length > 0 && (I.time += A, I.time > I.duration && (I.animations.some((C) => {
4944
- var B;
4945
- return ((B = C.state) == null ? void 0 : B.loop) === !0;
4944
+ var Q;
4945
+ return ((Q = C.state) == null ? void 0 : Q.loop) === !0;
4946
4946
  }) ? I.time %= I.duration : I.time = I.duration), I.animations.forEach((g) => {
4947
4947
  this.applyAnimation(g.animation, I.time);
4948
4948
  }));
4949
4949
  })), this.activeTriggers.forEach((I, g) => {
4950
- var C, B, i, D, o, w, K;
4950
+ var C, Q, i, D, o, w, h;
4951
4951
  if (I.phase === "entry")
4952
- I.time += A, I.time >= I.animation.duration && ((i = (B = (C = this.artboard) == null ? void 0 : C.objects.find((h) => h.id === g)) == null ? void 0 : B.triggers) == null || i.find((h) => h.id === I.triggerId), I.phase = "hold", I.elapsedHold = 0, I.time = I.animation.duration), this.applyAnimation(I.animation, I.time);
4952
+ I.time += A, I.time >= I.animation.duration && ((i = (Q = (C = this.artboard) == null ? void 0 : C.objects.find((K) => K.id === g)) == null ? void 0 : Q.triggers) == null || i.find((K) => K.id === I.triggerId), I.phase = "hold", I.elapsedHold = 0, I.time = I.animation.duration), this.applyAnimation(I.animation, I.time);
4953
4953
  else if (I.phase === "hold") {
4954
- const h = (w = (o = (D = this.artboard) == null ? void 0 : D.objects.find((y) => y.id === g)) == null ? void 0 : o.triggers) == null ? void 0 : w.find((y) => y.id === I.triggerId), s = (h == null ? void 0 : h.duration) || 0;
4954
+ const K = (w = (o = (D = this.artboard) == null ? void 0 : D.objects.find((y) => y.id === g)) == null ? void 0 : o.triggers) == null ? void 0 : w.find((y) => y.id === I.triggerId), s = (K == null ? void 0 : K.duration) || 0;
4955
4955
  if (I.elapsedHold += A * 1e3, I.elapsedHold >= s)
4956
- if (h != null && h.exitAnimationId) {
4957
- const y = (K = this.artboard) == null ? void 0 : K.animations.find((a) => a.id === h.exitAnimationId);
4956
+ if (K != null && K.exitAnimationId) {
4957
+ const y = (h = this.artboard) == null ? void 0 : h.animations.find((a) => a.id === K.exitAnimationId);
4958
4958
  y ? (I.phase = "exit", I.animation = y, I.time = 0) : this.activeTriggers.delete(g);
4959
4959
  } else
4960
4960
  this.activeTriggers.delete(g);
4961
4961
  } else I.phase === "exit" && (I.time += A, I.time >= I.animation.duration ? this.activeTriggers.delete(g) : this.applyAnimation(I.animation, I.time));
4962
4962
  }));
4963
4963
  }
4964
- handlePointerInput(A, I, g, C, B) {
4964
+ handlePointerInput(A, I, g, C, Q) {
4965
4965
  if (!this.artboard) return;
4966
4966
  const i = this.calculateTransform(
4967
4967
  C,
4968
- B,
4968
+ Q,
4969
4969
  this.artboard.width,
4970
4970
  this.artboard.height,
4971
4971
  this.layout.fit,
@@ -4976,16 +4976,16 @@ class qC {
4976
4976
  handlePointerEvent(A, I, g) {
4977
4977
  if (!this.artboard) return;
4978
4978
  let C = null;
4979
- const B = (o, w) => {
4980
- let K = w;
4981
- w === "click" ? K = "onClick" : w === "down" ? K = "onPointerDown" : w === "up" ? K = "onPointerUp" : w === "blur" && (K = "onPointerLeave");
4982
- const h = /* @__PURE__ */ new Set([K]);
4983
- return w === "move" && h.add("onPointerEnter").add("hover").add("onPointerLeave").add("blur"), K === "onClick" && h.add("click"), K === "onPointerDown" && h.add("pointerDown"), K === "onPointerUp" && h.add("pointerUp"), !!((o.interactions || []).some((a) => h.has(a.event)) || (o.triggers || []).some((a) => h.has(a.eventType)));
4979
+ const Q = (o, w) => {
4980
+ let h = w;
4981
+ w === "click" ? h = "onClick" : w === "down" ? h = "onPointerDown" : w === "up" ? h = "onPointerUp" : w === "blur" && (h = "onPointerLeave");
4982
+ const K = /* @__PURE__ */ new Set([h]);
4983
+ return w === "move" && K.add("onPointerEnter").add("hover").add("onPointerLeave").add("blur"), h === "onClick" && K.add("click"), h === "onPointerDown" && K.add("pointerDown"), h === "onPointerUp" && K.add("pointerUp"), !!((o.interactions || []).some((a) => K.has(a.event)) || (o.triggers || []).some((a) => K.has(a.eventType)));
4984
4984
  };
4985
4985
  let i = null;
4986
4986
  for (let o = this.artboard.objects.length - 1; o >= 0; o--) {
4987
4987
  const w = this.artboard.objects[o];
4988
- if (this.hitTest(w, I, g) && (i || (i = w), B(w, A))) {
4988
+ if (this.hitTest(w, I, g) && (i || (i = w), Q(w, A))) {
4989
4989
  C = w;
4990
4990
  break;
4991
4991
  }
@@ -5017,7 +5017,7 @@ class qC {
5017
5017
  const o = (g.triggers || []).find((w) => C.has(w.eventType));
5018
5018
  if (o && o.entryAnimationId) {
5019
5019
  console.log(`[Engine] Trigger matched: ${I} (as ${o.eventType}) -> Animation ${o.entryAnimationId}`);
5020
- const w = this.artboard.animations.find((K) => K.id === o.entryAnimationId);
5020
+ const w = this.artboard.animations.find((h) => h.id === o.entryAnimationId);
5021
5021
  w && (this.activeTriggers.set(g.id, {
5022
5022
  triggerId: o.id,
5023
5023
  animation: w,
@@ -5030,33 +5030,33 @@ class qC {
5030
5030
  hitTest(A, I, g) {
5031
5031
  const C = this.objectStates.get(A.id);
5032
5032
  if (!C) return !1;
5033
- const B = A.geometry.width || 100, i = A.geometry.height || 100, D = I - C.x, o = g - C.y, w = -(C.rotation || 0) * (Math.PI / 180), K = Math.cos(w), h = Math.sin(w), s = D * K - o * h, y = D * h + o * K, a = C.scale_x !== void 0 ? C.scale_x : 1, k = C.scale_y !== void 0 ? C.scale_y : 1, F = B * Math.abs(a), M = i * Math.abs(k);
5033
+ const Q = A.geometry.width || 100, i = A.geometry.height || 100, D = I - C.x, o = g - C.y, w = -(C.rotation || 0) * (Math.PI / 180), h = Math.cos(w), K = Math.sin(w), s = D * h - o * K, y = D * K + o * h, a = C.scale_x !== void 0 ? C.scale_x : 1, k = C.scale_y !== void 0 ? C.scale_y : 1, F = Q * Math.abs(a), M = i * Math.abs(k);
5034
5034
  return Math.abs(s) <= F / 2 && Math.abs(y) <= M / 2;
5035
5035
  }
5036
5036
  applyAnimation(A, I) {
5037
5037
  A.tracks.forEach((g) => {
5038
- var o, w, K;
5039
- const C = (o = this.artboard) == null ? void 0 : o.objects.find((h) => h.id === g.object_id);
5038
+ var o, w, h;
5039
+ const C = (o = this.artboard) == null ? void 0 : o.objects.find((K) => K.id === g.object_id);
5040
5040
  if (((w = C == null ? void 0 : C.physics) == null ? void 0 : w.enabled) && C.physics.bodyType !== "Static" && (["x", "y", "rotation"].includes(g.property) || g.property.startsWith("transform.")))
5041
5041
  return;
5042
5042
  const i = this.objectStates.get(g.object_id);
5043
5043
  if (!i) return;
5044
5044
  const D = this.interpolate(g.keyframes, I);
5045
5045
  if (g.property.includes(".")) {
5046
- const h = g.property.split(".");
5046
+ const K = g.property.split(".");
5047
5047
  let s = i;
5048
- for (let y = 0; y < h.length - 1; y++)
5049
- s[h[y]] || (s[h[y]] = {}), s = s[h[y]];
5050
- h.includes("shadow") && h.includes("color"), s[h[h.length - 1]] = D;
5048
+ for (let y = 0; y < K.length - 1; y++)
5049
+ s[K[y]] || (s[K[y]] = {}), s = s[K[y]];
5050
+ K.includes("shadow") && K.includes("color"), s[K[K.length - 1]] = D;
5051
5051
  } else
5052
5052
  i[g.property] = D;
5053
- if (this.physicsEngine && ((K = C == null ? void 0 : C.physics) != null && K.enabled) && C.physics.bodyType === "Static")
5053
+ if (this.physicsEngine && ((h = C == null ? void 0 : C.physics) != null && h.enabled) && C.physics.bodyType === "Static")
5054
5054
  if (g.property === "x" || g.property === "transform.x") {
5055
- const h = this.physicsEngine.getPosition(g.object_id);
5056
- h && this.physicsEngine.setPosition(g.object_id, D, h.y);
5055
+ const K = this.physicsEngine.getPosition(g.object_id);
5056
+ K && this.physicsEngine.setPosition(g.object_id, D, K.y);
5057
5057
  } else if (g.property === "y" || g.property === "transform.y") {
5058
- const h = this.physicsEngine.getPosition(g.object_id);
5059
- h && this.physicsEngine.setPosition(g.object_id, h.x, D);
5058
+ const K = this.physicsEngine.getPosition(g.object_id);
5059
+ K && this.physicsEngine.setPosition(g.object_id, K.x, D);
5060
5060
  } else (g.property === "rotation" || g.property === "transform.rotation") && this.physicsEngine.setRotation(g.object_id, D * (Math.PI / 180));
5061
5061
  });
5062
5062
  }
@@ -5070,7 +5070,7 @@ class qC {
5070
5070
  g = A[D], C = A[D + 1];
5071
5071
  break;
5072
5072
  }
5073
- const B = C.time - g.time, i = (I - g.time) / B;
5073
+ const Q = C.time - g.time, i = (I - g.time) / Q;
5074
5074
  if (typeof g.value == "string") {
5075
5075
  if (g.value.startsWith("#"))
5076
5076
  return this.interpolateColor(g.value, C.value, i);
@@ -5080,56 +5080,56 @@ class qC {
5080
5080
  return g.value + (C.value - g.value) * i;
5081
5081
  }
5082
5082
  interpolateColor(A, I, g) {
5083
- const C = (h) => {
5084
- const s = h.replace("#", "");
5083
+ const C = (K) => {
5084
+ const s = K.replace("#", "");
5085
5085
  return {
5086
5086
  r: parseInt(s.substring(0, 2), 16),
5087
5087
  g: parseInt(s.substring(2, 4), 16),
5088
5088
  b: parseInt(s.substring(4, 6), 16)
5089
5089
  };
5090
- }, B = C(A), i = C(I), D = Math.round(B.r + (i.r - B.r) * g), o = Math.round(B.g + (i.g - B.g) * g), w = Math.round(B.b + (i.b - B.b) * g), K = (h) => {
5091
- const s = Math.max(0, Math.min(255, h)).toString(16);
5090
+ }, Q = C(A), i = C(I), D = Math.round(Q.r + (i.r - Q.r) * g), o = Math.round(Q.g + (i.g - Q.g) * g), w = Math.round(Q.b + (i.b - Q.b) * g), h = (K) => {
5091
+ const s = Math.max(0, Math.min(255, K)).toString(16);
5092
5092
  return s.length === 1 ? "0" + s : s;
5093
5093
  };
5094
- return `#${K(D)}${K(o)}${K(w)}`;
5094
+ return `#${h(D)}${h(o)}${h(w)}`;
5095
5095
  }
5096
5096
  render(A, I, g) {
5097
5097
  if (!this.artboard)
5098
5098
  return;
5099
5099
  A.clearRect(0, 0, I, g);
5100
- const C = this.artboard.width, B = this.artboard.height, i = this.calculateTransform(
5100
+ const C = this.artboard.width, Q = this.artboard.height, i = this.calculateTransform(
5101
5101
  I,
5102
5102
  g,
5103
5103
  C,
5104
- B,
5104
+ Q,
5105
5105
  this.layout.fit,
5106
5106
  this.layout.alignment
5107
5107
  );
5108
- if (A.save(), A.translate(i.tx, i.ty), A.scale(i.scaleX, i.scaleY), A.translate(C / 2, B / 2), A.fillStyle = this.artboard.backgroundColor || "#000000", A.fillRect(-C / 2, -B / 2, C, B), this.artboard.backgroundImage) {
5108
+ if (A.save(), A.translate(i.tx, i.ty), A.scale(i.scaleX, i.scaleY), A.translate(C / 2, Q / 2), A.fillStyle = this.artboard.backgroundColor || "#000000", A.fillRect(-C / 2, -Q / 2, C, Q), this.artboard.backgroundImage) {
5109
5109
  const o = this.artboard.backgroundImage;
5110
5110
  let w = this.imageCache.get(o);
5111
5111
  if (w || (w = new Image(), w.src = o, this.imageCache.set(o, w)), w.complete && w.naturalWidth > 0) {
5112
5112
  A.save(), A.globalAlpha = this.artboard.backgroundOpacity ?? 1;
5113
- const K = w.naturalWidth / w.naturalHeight, h = C / B;
5113
+ const h = w.naturalWidth / w.naturalHeight, K = C / Q;
5114
5114
  let s, y, a, k;
5115
- h > K ? (s = C, y = C / K) : (y = B, s = B * K), a = -s / 2, k = -y / 2, A.drawImage(w, a, k, s, y), A.restore();
5115
+ K > h ? (s = C, y = C / h) : (y = Q, s = Q * h), a = -s / 2, k = -y / 2, A.drawImage(w, a, k, s, y), A.restore();
5116
5116
  }
5117
5117
  }
5118
- A.beginPath(), A.rect(-C / 2, -B / 2, C, B), A.clip();
5118
+ A.beginPath(), A.rect(-C / 2, -Q / 2, C, Q), A.clip();
5119
5119
  const D = /* @__PURE__ */ new Map();
5120
5120
  this.artboard.objects.forEach((o) => D.set(o.id, o)), this.artboard.objects.forEach((o) => {
5121
5121
  o.parentId || this.renderObject(A, o, D);
5122
5122
  }), A.restore();
5123
5123
  }
5124
- calculateTransform(A, I, g, C, B, i) {
5124
+ calculateTransform(A, I, g, C, Q, i) {
5125
5125
  let D = 1, o = 1, w = 1;
5126
- const K = g / C, h = A / I;
5127
- switch (B) {
5126
+ const h = g / C, K = A / I;
5127
+ switch (Q) {
5128
5128
  case "Contain":
5129
- h > K ? w = I / C : w = A / g, D = o = w;
5129
+ K > h ? w = I / C : w = A / g, D = o = w;
5130
5130
  break;
5131
5131
  case "Cover":
5132
- h > K ? w = A / g : w = I / C, D = o = w;
5132
+ K > h ? w = A / g : w = I / C, D = o = w;
5133
5133
  break;
5134
5134
  case "Fill":
5135
5135
  D = A / g, o = I / C;
@@ -5165,39 +5165,40 @@ class qC {
5165
5165
  console.warn("No state for object:", I.id);
5166
5166
  return;
5167
5167
  }
5168
- const B = C.geometry || I.geometry;
5168
+ A.roundRect || (A.roundRect = (a, k, F, M, J) => (this.drawRoundRect(A, a, k, F, M, J), A));
5169
+ const Q = C.geometry || I.geometry;
5169
5170
  if (C.visible === !1)
5170
5171
  return;
5171
- const i = B.width || 0, D = B.height || 0, o = C.x, w = C.y;
5172
+ const i = Q.width || 0, D = Q.height || 0, o = C.x, w = C.y;
5172
5173
  A.save();
5173
- const K = A.globalAlpha, h = C.opacity !== void 0 ? C.opacity : 1;
5174
- if (A.globalAlpha = K * h, C.blendMode && C.blendMode !== "Normal") {
5174
+ const h = A.globalAlpha, K = C.opacity !== void 0 ? C.opacity : 1;
5175
+ if (A.globalAlpha = h * K, C.blendMode && C.blendMode !== "Normal") {
5175
5176
  const a = C.blendMode.toLowerCase();
5176
5177
  ["multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"].includes(a) && (A.globalCompositeOperation = a);
5177
5178
  }
5178
5179
  A.translate(o, w), A.rotate(C.rotation * Math.PI / 180), A.scale(C.scale_x, C.scale_y);
5179
5180
  const s = C.style || I.style;
5180
- if (B.type === "Text") {
5181
- let a = B.text || "";
5182
- if (B.textInputId) {
5183
- const d = this.inputs.get(B.textInputId);
5181
+ if (Q.type === "Text") {
5182
+ let a = Q.text || "";
5183
+ if (Q.textInputId) {
5184
+ const d = this.inputs.get(Q.textInputId);
5184
5185
  d !== void 0 && (a = String(d), C.geometry && C.geometry.type === "Text" && (C.geometry.text = a));
5185
5186
  }
5186
5187
  let k = a;
5187
- const F = B.textCase || "none";
5188
+ const F = Q.textCase || "none";
5188
5189
  F === "uppercase" ? k = k.toUpperCase() : F === "lowercase" ? k = k.toLowerCase() : F === "capitalize" && (k = k.replace(/\b\w/g, (d) => d.toUpperCase()));
5189
- let M = ((y = B.fontWeight) == null ? void 0 : y.toString()) || "400", J = "normal";
5190
+ let M = ((y = Q.fontWeight) == null ? void 0 : y.toString()) || "400", J = "normal";
5190
5191
  M.toLowerCase().includes("italic") && (J = "italic", M = M.replace(/italic/gi, "").trim() || "400");
5191
- const L = this.mapFontWeight(M), q = Math.max(1, B.fontSize || 16);
5192
- A.font = `${J} ${L} ${q}px "${B.fontFamily || "Inter"}", sans-serif`;
5193
- const l = B.textVerticalAlign || "top";
5192
+ const L = this.mapFontWeight(M), q = Math.max(1, Q.fontSize || 16);
5193
+ A.font = `${J} ${L} ${q}px "${Q.fontFamily || "Inter"}", sans-serif`;
5194
+ const l = Q.textVerticalAlign || "top";
5194
5195
  let p = -D / 2;
5195
5196
  l === "middle" || l === "center" ? (A.textBaseline = "middle", p = 0) : l === "bottom" ? (A.textBaseline = "bottom", p = D / 2) : (A.textBaseline = "top", p = -D / 2);
5196
- const Z = B.textAlign || "left";
5197
+ const Z = Q.textAlign || "left";
5197
5198
  A.textAlign = Z;
5198
5199
  let j = -i / 2;
5199
5200
  Z === "center" && (j = 0), Z === "right" && (j = i / 2);
5200
- const z = B.letterSpacing || 0, MA = B.paragraphSpacing || 0, sA = (B.lineHeight || 1.2) * q, QC = (B.width || i || 200) + 15, _I = (d) => {
5201
+ const z = Q.letterSpacing || 0, MA = Q.paragraphSpacing || 0, sA = (Q.lineHeight || 1.2) * q, QC = (Q.width || i || 200) + 15, _I = (d) => {
5201
5202
  if (z === 0) return A.measureText(d).width;
5202
5203
  let v = 0;
5203
5204
  for (let T = 0; T < d.length; T++)
@@ -5250,8 +5251,8 @@ class qC {
5250
5251
  Ag(T.text, j, v, !0), v += sA + (T.isParaEnd ? MA : 0);
5251
5252
  }), A.globalAlpha = d;
5252
5253
  }
5253
- } else if (B.type === "Image") {
5254
- const a = B.src;
5254
+ } else if (Q.type === "Image") {
5255
+ const a = Q.src;
5255
5256
  if (a) {
5256
5257
  let k = this.imageCache.get(a);
5257
5258
  k || (k = new Image(), k.onload = () => {
@@ -5259,15 +5260,15 @@ class qC {
5259
5260
  console.error(`[ExodeUI] Image load failed: ${a.substring(0, 100)}${a.length > 100 ? "..." : ""}`);
5260
5261
  }, k.src = a, this.imageCache.set(a, k)), k.complete && k.naturalWidth > 0 && A.drawImage(k, -i / 2, -D / 2, i, D);
5261
5262
  }
5262
- } else if (B.type === "SVG") {
5263
- const a = B.svgContent;
5263
+ } else if (Q.type === "SVG") {
5264
+ const a = Q.svgContent;
5264
5265
  if (a) {
5265
5266
  const k = s.palette || [], F = I.id + "_" + k.join("_");
5266
5267
  let M = this.imageCache.get(F);
5267
5268
  if (!M) {
5268
5269
  M = new Image();
5269
5270
  let J = a;
5270
- B.colors && B.colors.length > 0 && k.length > 0 && B.colors.forEach((l, p) => {
5271
+ Q.colors && Q.colors.length > 0 && k.length > 0 && Q.colors.forEach((l, p) => {
5271
5272
  if (k[p]) {
5272
5273
  const Z = l.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), j = new RegExp(Z, "gi");
5273
5274
  J = J.replace(j, k[p]);
@@ -5278,18 +5279,18 @@ class qC {
5278
5279
  }
5279
5280
  M.complete && M.naturalWidth > 0 && A.drawImage(M, -i / 2, -D / 2, i, D);
5280
5281
  }
5281
- } else if (B.type === "LineGraph")
5282
- this.renderLineGraph(A, B, i, D);
5283
- else if (I.type !== "Group") {
5284
- if (A.beginPath(), B.type === "Rectangle") {
5285
- const a = B.corner_radius || 0;
5286
- a > 0 ? A.roundRect(-i / 2, -D / 2, i, D, a) : A.rect(-i / 2, -D / 2, i, D);
5287
- } else if (B.type === "Ellipse")
5282
+ } else if (Q.type === "LineGraph")
5283
+ this.renderLineGraph(A, Q, i, D);
5284
+ else if (I.type === "Shape") {
5285
+ if (A.beginPath(), Q.type === "Rectangle") {
5286
+ const a = Q.corner_radius ?? Q.cornerRadius ?? 0;
5287
+ A.roundRect(-i / 2, -D / 2, i, D, a);
5288
+ } else if (Q.type === "Ellipse")
5288
5289
  A.ellipse(0, 0, i / 2, D / 2, 0, 0, Math.PI * 2);
5289
- else if (B.type === "Triangle")
5290
+ else if (Q.type === "Triangle")
5290
5291
  A.moveTo(0, -D / 2), A.lineTo(i / 2, D / 2), A.lineTo(-i / 2, D / 2), A.closePath();
5291
- else if (B.type === "Star") {
5292
- const a = B.inner_radius || 20, k = B.outer_radius || 50, F = B.points || 5;
5292
+ else if (Q.type === "Star") {
5293
+ const a = Q.inner_radius || 20, k = Q.outer_radius || 50, F = Q.points || 5;
5293
5294
  for (let M = 0; M < F * 2; M++) {
5294
5295
  const J = M * Math.PI / F - Math.PI / 2, L = M % 2 === 0 ? k : a, q = L * Math.cos(J), l = L * Math.sin(J);
5295
5296
  M === 0 ? A.moveTo(q, l) : A.lineTo(q, l);
@@ -5319,8 +5320,8 @@ class qC {
5319
5320
  }), A.restore();
5320
5321
  }
5321
5322
  renderLineGraph(A, I, g, C) {
5322
- let B = I.datasets || [];
5323
- if ((!B || B.length === 0) && (I.data || I.graphData) && (B = [{
5323
+ let Q = I.datasets || [];
5324
+ if ((!Q || Q.length === 0) && (I.data || I.graphData) && (Q = [{
5324
5325
  id: "line-1",
5325
5326
  label: "Series 1",
5326
5327
  data: I.data || I.graphData || [],
@@ -5334,12 +5335,12 @@ class qC {
5334
5335
  pointFill: I.pointFill || "#ffffff",
5335
5336
  pointStrokeColor: I.pointStrokeColor || I.lineColor || "#3b82f6",
5336
5337
  pointStrokeWidth: I.pointStrokeWidth || 2
5337
- }]), !B || B.length === 0 || !B.some((k) => k.data && k.data.length >= 2)) {
5338
+ }]), !Q || Q.length === 0 || !Q.some((k) => k.data && k.data.length >= 2)) {
5338
5339
  A.save(), A.fillStyle = "#6366f1", A.font = "12px Inter, system-ui, sans-serif", A.textAlign = "center", A.textBaseline = "middle", A.fillText("NO DATA", 0, 0), A.restore();
5339
5340
  return;
5340
5341
  }
5341
5342
  let i = 1 / 0, D = -1 / 0, o = 0;
5342
- if (B.forEach((k) => {
5343
+ if (Q.forEach((k) => {
5343
5344
  let F = k.data;
5344
5345
  if (k.isVarEnabled && k.inputId) {
5345
5346
  let M = this.inputs.get(k.inputId);
@@ -5355,10 +5356,10 @@ class qC {
5355
5356
  }
5356
5357
  k._resolvedData = F;
5357
5358
  }), o < 2) return;
5358
- const w = D - i, K = g / (o - 1), h = (k) => {
5359
+ const w = D - i, h = g / (o - 1), K = (k) => {
5359
5360
  const F = w === 0 ? 0.5 : (k - i) / w;
5360
5361
  return C / 2 - F * C;
5361
- }, s = (k) => k * K - g / 2, y = I.axisColor || "#333333";
5362
+ }, s = (k) => k * h - g / 2, y = I.axisColor || "#333333";
5362
5363
  if (I.showXAxis && (A.beginPath(), A.strokeStyle = I.xAxisColor || y, A.lineWidth = 1, A.moveTo(-g / 2, C / 2), A.lineTo(g / 2, C / 2), A.stroke()), I.showYAxis && (A.beginPath(), A.strokeStyle = I.yAxisColor || y, A.lineWidth = 1, A.moveTo(-g / 2, -C / 2), A.lineTo(-g / 2, C / 2), A.stroke()), A.fillStyle = I.axisLabelColor || "#333333", A.font = `${I.axisLabelFontSize || 10}px Inter, sans-serif`, I.showXLabels) {
5363
5364
  A.textAlign = "center", A.textBaseline = "top";
5364
5365
  for (let k = 0; k < o; k++) {
@@ -5369,75 +5370,75 @@ class qC {
5369
5370
  if (I.showYLabels) {
5370
5371
  A.textAlign = "right", A.textBaseline = "middle";
5371
5372
  const k = -g / 2 - 5, F = (D + i) / 2;
5372
- A.fillText(D.toFixed(1), k, h(D)), A.fillText(F.toFixed(1), k, h(F)), A.fillText(i.toFixed(1), k, h(i));
5373
+ A.fillText(D.toFixed(1), k, K(D)), A.fillText(F.toFixed(1), k, K(F)), A.fillText(i.toFixed(1), k, K(i));
5373
5374
  }
5374
5375
  const a = 10;
5375
- if (B.forEach((k) => {
5376
+ if (Q.forEach((k) => {
5376
5377
  const F = k._resolvedData;
5377
5378
  if (!(!F || F.length < 2)) {
5378
5379
  if (k.showArea) {
5379
- if (A.beginPath(), A.moveTo(s(0), C / 2), A.lineTo(s(0), h(F[0])), k.smoothing && F.length > 2)
5380
+ if (A.beginPath(), A.moveTo(s(0), C / 2), A.lineTo(s(0), K(F[0])), k.smoothing && F.length > 2)
5380
5381
  for (let J = 0; J < F.length - 1; J++) {
5381
5382
  const L = F[J === 0 ? J : J - 1], q = F[J], l = F[J + 1], p = F[J + 1 === F.length - 1 ? J + 1 : J + 2];
5382
5383
  for (let Z = 1; Z <= a; Z++) {
5383
5384
  const j = Z / a, z = this._catmullRom(L, q, l, p, j);
5384
- A.lineTo(s(J + j), h(z));
5385
+ A.lineTo(s(J + j), K(z));
5385
5386
  }
5386
5387
  }
5387
5388
  else
5388
5389
  for (let J = 1; J < F.length; J++)
5389
- A.lineTo(s(J), h(F[J]));
5390
+ A.lineTo(s(J), K(F[J]));
5390
5391
  A.lineTo(s(F.length - 1), C / 2), A.closePath();
5391
5392
  const M = A.globalAlpha;
5392
5393
  A.globalAlpha = M * (I.areaOpacity ?? 0.3), A.fillStyle = k.areaColor || "rgba(139, 92, 246, 0.2)", A.fill(), A.globalAlpha = M;
5393
5394
  }
5394
- if (A.beginPath(), A.strokeStyle = k.lineColor || "#3b82f6", A.lineWidth = k.lineWidth || 2, A.lineJoin = "round", A.lineCap = "round", A.moveTo(s(0), h(F[0])), k.smoothing && F.length > 2)
5395
+ if (A.beginPath(), A.strokeStyle = k.lineColor || "#3b82f6", A.lineWidth = k.lineWidth || 2, A.lineJoin = "round", A.lineCap = "round", A.moveTo(s(0), K(F[0])), k.smoothing && F.length > 2)
5395
5396
  for (let M = 0; M < F.length - 1; M++) {
5396
5397
  const J = F[M === 0 ? M : M - 1], L = F[M], q = F[M + 1], l = F[M + 1 === F.length - 1 ? M + 1 : M + 2];
5397
5398
  for (let p = 1; p <= a; p++) {
5398
5399
  const Z = p / a, j = this._catmullRom(J, L, q, l, Z);
5399
- A.lineTo(s(M + Z), h(j));
5400
+ A.lineTo(s(M + Z), K(j));
5400
5401
  }
5401
5402
  }
5402
5403
  else
5403
5404
  for (let M = 1; M < F.length; M++)
5404
- A.lineTo(s(M), h(F[M]));
5405
+ A.lineTo(s(M), K(F[M]));
5405
5406
  A.stroke(), k.showPoints && F.forEach((M, J) => {
5406
- const L = s(J), q = h(M);
5407
+ const L = s(J), q = K(M);
5407
5408
  A.beginPath(), A.arc(L, q, (k.pointSize || 6) / 2, 0, Math.PI * 2), A.fillStyle = k.pointFill || "#ffffff", A.fill(), A.strokeStyle = k.pointStrokeColor || k.lineColor || "#3b82f6", A.lineWidth = k.pointStrokeWidth || 1, A.stroke();
5408
5409
  });
5409
5410
  }
5410
- }), I.showLegend && B.length > 0) {
5411
+ }), I.showLegend && Q.length > 0) {
5411
5412
  const k = g / 2 - 10;
5412
5413
  let F = -C / 2 + 15;
5413
5414
  const M = I.legendFontSize || 10, J = M + 5;
5414
- A.font = `${M}px Inter, sans-serif`, A.textAlign = "right", A.textBaseline = "alphabetic", B.forEach((L) => {
5415
+ A.font = `${M}px Inter, sans-serif`, A.textAlign = "right", A.textBaseline = "alphabetic", Q.forEach((L) => {
5415
5416
  const l = L.label || "Series", p = A.measureText(l).width;
5416
5417
  A.beginPath(), A.rect(k - p - 8 - 5, F - (8 / 2 + 2), 8, 8), A.fillStyle = L.lineColor || "#3b82f6", A.fill(), A.fillStyle = I.legendColor || "#333333", A.fillText(l, k, F), F += J;
5417
5418
  });
5418
5419
  }
5419
5420
  }
5420
- _catmullRom(A, I, g, C, B) {
5421
- const i = (g - A) * 0.5, D = (C - I) * 0.5, o = B * B, w = B * o;
5422
- return (2 * I - 2 * g + i + D) * w + (-3 * I + 3 * g - 2 * i - D) * o + i * B + I;
5421
+ _catmullRom(A, I, g, C, Q) {
5422
+ const i = (g - A) * 0.5, D = (C - I) * 0.5, o = Q * Q, w = Q * o;
5423
+ return (2 * I - 2 * g + i + D) * w + (-3 * I + 3 * g - 2 * i - D) * o + i * Q + I;
5423
5424
  }
5424
5425
  createCanvasFill(A, I, g, C) {
5425
- var B, i, D, o, w, K;
5426
+ var Q, i, D, o, w, h;
5426
5427
  if (!I || I.type === "None") return null;
5427
5428
  if (I.type === "Solid")
5428
5429
  return I.color;
5429
5430
  if (I.type === "LinearGradient" && I.stops) {
5430
- const h = (((B = I.start) == null ? void 0 : B[0]) ?? 0) * g - g / 2, s = (((i = I.start) == null ? void 0 : i[1]) ?? 0) * C - C / 2, y = (((D = I.end) == null ? void 0 : D[0]) ?? 1) * g - g / 2, a = (((o = I.end) == null ? void 0 : o[1]) ?? 0) * C - C / 2, k = A.createLinearGradient(h, s, y, a);
5431
+ const K = (((Q = I.start) == null ? void 0 : Q[0]) ?? 0) * g - g / 2, s = (((i = I.start) == null ? void 0 : i[1]) ?? 0) * C - C / 2, y = (((D = I.end) == null ? void 0 : D[0]) ?? 1) * g - g / 2, a = (((o = I.end) == null ? void 0 : o[1]) ?? 0) * C - C / 2, k = A.createLinearGradient(K, s, y, a);
5431
5432
  return I.stops.forEach((F) => k.addColorStop(F.offset, F.color)), k;
5432
5433
  }
5433
5434
  if (I.type === "RadialGradient" && I.stops) {
5434
- const h = (((w = I.center) == null ? void 0 : w[0]) ?? 0.5) * g - g / 2, s = (((K = I.center) == null ? void 0 : K[1]) ?? 0.5) * C - C / 2, y = (I.radius ?? 0.5) * Math.max(g, C), a = A.createRadialGradient(h, s, 0, h, s, y);
5435
+ const K = (((w = I.center) == null ? void 0 : w[0]) ?? 0.5) * g - g / 2, s = (((h = I.center) == null ? void 0 : h[1]) ?? 0.5) * C - C / 2, y = (I.radius ?? 0.5) * Math.max(g, C), a = A.createRadialGradient(K, s, 0, K, s, y);
5435
5436
  return I.stops.forEach((k) => a.addColorStop(k.offset, k.color)), a;
5436
5437
  }
5437
5438
  if (I.type === "Pattern" && I.url) {
5438
- let h = this.imageCache.get(I.url);
5439
- if (h || (h = new Image(), h.src = I.url, this.imageCache.set(I.url, h)), h.complete && h.naturalWidth > 0) {
5440
- const s = A.createPattern(h, "repeat");
5439
+ let K = this.imageCache.get(I.url);
5440
+ if (K || (K = new Image(), K.src = I.url, this.imageCache.set(I.url, K)), K.complete && K.naturalWidth > 0) {
5441
+ const s = A.createPattern(K, "repeat");
5441
5442
  if (s && (I.scaleX !== void 0 || I.offsetX !== void 0)) {
5442
5443
  const y = new DOMMatrix(), a = I.scaleX ?? 1, k = I.scaleY ?? 1, F = I.offsetX ?? 0, M = I.offsetY ?? 0, J = I.rotation ?? 0;
5443
5444
  y.translateSelf(F, M), y.rotateSelf(J), y.scaleSelf(a, k), s.setTransform(y);
@@ -5447,13 +5448,26 @@ class qC {
5447
5448
  }
5448
5449
  return I.color || null;
5449
5450
  }
5451
+ drawRoundRect(A, I, g, C, Q, i) {
5452
+ let D = i;
5453
+ if (typeof D == "string")
5454
+ try {
5455
+ D = JSON.parse(D);
5456
+ } catch {
5457
+ D = parseFloat(D) || 0;
5458
+ }
5459
+ let o = [0, 0, 0, 0];
5460
+ typeof D == "number" ? o = [D, D, D, D] : Array.isArray(D) && (D.length === 1 ? o = [D[0], D[0], D[0], D[0]] : D.length === 2 ? o = [D[0], D[1], D[0], D[1]] : D.length === 4 && (o = D));
5461
+ const w = Math.min(Math.abs(C) / 2, Math.abs(Q) / 2), h = Math.max(0, Math.min(Number(o[0]) || 0, w)), K = Math.max(0, Math.min(Number(o[1]) || 0, w)), s = Math.max(0, Math.min(Number(o[2]) || 0, w)), y = Math.max(0, Math.min(Number(o[3]) || 0, w));
5462
+ A.moveTo(I + h, g), A.lineTo(I + C - K, g), K > 0 ? A.arcTo(I + C, g, I + C, g + K, K) : A.lineTo(I + C, g), A.lineTo(I + C, g + Q - s), s > 0 ? A.arcTo(I + C, g + Q, I + C - s, g + Q, s) : A.lineTo(I + C, g + Q), A.lineTo(I + y, g + Q), y > 0 ? A.arcTo(I, g + Q, I, g + Q - y, y) : A.lineTo(I, g + Q), A.lineTo(I, g + h), h > 0 ? A.arcTo(I, g, I + h, g, h) : A.lineTo(I, g), A.closePath();
5463
+ }
5450
5464
  }
5451
5465
  const lC = DC(
5452
- ({ artboard: E, src: A, className: I, style: g, autoPlay: C = !0, fit: B = "Contain", alignment: i = "Center", onReady: D, onTrigger: o, onInputUpdate: w }, K) => {
5453
- const h = jA(null), s = jA(new qC()), y = jA(), a = jA(0);
5454
- oC(K, () => h.current), tA(() => {
5455
- console.log("[ExodeUI] Layout Effect - Component Updated/Mounted"), s.current.setLayout(B, i);
5456
- }, [B, i]), tA(() => {
5466
+ ({ artboard: E, src: A, className: I, style: g, autoPlay: C = !0, fit: Q = "Contain", alignment: i = "Center", onReady: D, onTrigger: o, onInputUpdate: w }, h) => {
5467
+ const K = jA(null), s = jA(new qC()), y = jA(), a = jA(0);
5468
+ oC(h, () => K.current), tA(() => {
5469
+ console.log("[ExodeUI] Layout Effect - Component Updated/Mounted"), s.current.setLayout(Q, i);
5470
+ }, [Q, i]), tA(() => {
5457
5471
  o && s.current.setTriggerCallback(o);
5458
5472
  }, [o]), tA(() => {
5459
5473
  w && s.current.setInputUpdateCallback(w);
@@ -5471,7 +5485,7 @@ const lC = DC(
5471
5485
  J && (M.load(J), D && D(M));
5472
5486
  })();
5473
5487
  }, [E, A]), tA(() => {
5474
- const F = s.current, M = h.current;
5488
+ const F = s.current, M = K.current;
5475
5489
  if (!M) return;
5476
5490
  const J = M.getContext("2d");
5477
5491
  if (!J) return;
@@ -5493,7 +5507,7 @@ const lC = DC(
5493
5507
  return /* @__PURE__ */ iC(
5494
5508
  "canvas",
5495
5509
  {
5496
- ref: h,
5510
+ ref: K,
5497
5511
  style: { width: "100%", height: "100%", ...g },
5498
5512
  className: I,
5499
5513
  onPointerDown: (F) => k(F, "down"),
@@ -5512,7 +5526,7 @@ function nC() {
5512
5526
  E == null || E.setInputNumber(D, o);
5513
5527
  }, [E]), C = LA((D) => {
5514
5528
  E == null || E.fireTrigger(D);
5515
- }, [E]), B = LA((D, o) => {
5529
+ }, [E]), Q = LA((D, o) => {
5516
5530
  E == null || E.setInputText(D, o);
5517
5531
  }, [E]), i = LA((D, o) => {
5518
5532
  E == null || E.setInputNumberArray(D, o);
@@ -5524,7 +5538,7 @@ function nC() {
5524
5538
  setInputBool: I,
5525
5539
  setInputNumber: g,
5526
5540
  fireTrigger: C,
5527
- setInputText: B,
5541
+ setInputText: Q,
5528
5542
  setInputNumberArray: i
5529
5543
  };
5530
5544
  }