@minicode-dev/chat 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +25 -0
  2. package/assets/sounds/tanks/big_explosion.mp3 +0 -0
  3. package/assets/sounds/tanks/big_explosion.ogg +0 -0
  4. package/assets/sounds/tanks/cannon_fire.mp3 +0 -0
  5. package/assets/sounds/tanks/cannon_fire.ogg +0 -0
  6. package/assets/sounds/tanks/defeat.mp3 +0 -0
  7. package/assets/sounds/tanks/defeat.ogg +0 -0
  8. package/assets/sounds/tanks/engine_loop.mp3 +0 -0
  9. package/assets/sounds/tanks/engine_loop.ogg +0 -0
  10. package/assets/sounds/tanks/engine_start.mp3 +0 -0
  11. package/assets/sounds/tanks/engine_start.ogg +0 -0
  12. package/assets/sounds/tanks/projectile_whistle.mp3 +0 -0
  13. package/assets/sounds/tanks/projectile_whistle.ogg +0 -0
  14. package/assets/sounds/tanks/tank_destroyed.mp3 +0 -0
  15. package/assets/sounds/tanks/tank_destroyed.ogg +0 -0
  16. package/assets/sounds/tanks/tank_hit.mp3 +0 -0
  17. package/assets/sounds/tanks/tank_hit.ogg +0 -0
  18. package/assets/sounds/tanks/terrain_impact.mp3 +0 -0
  19. package/assets/sounds/tanks/terrain_impact.ogg +0 -0
  20. package/assets/sounds/tanks/tracks_loop.mp3 +0 -0
  21. package/assets/sounds/tanks/tracks_loop.ogg +0 -0
  22. package/assets/sounds/tanks/turret_loop.mp3 +0 -0
  23. package/assets/sounds/tanks/turret_loop.ogg +0 -0
  24. package/assets/sounds/tanks/victory.mp3 +0 -0
  25. package/assets/sounds/tanks/victory.ogg +0 -0
  26. package/dist/chunks/{BattleshipGameCard-S-UdM6rn.js → BattleshipGameCard-BFqA0cjT.js} +67 -65
  27. package/dist/chunks/{BattleshipGameCard-S-UdM6rn.js.map → BattleshipGameCard-BFqA0cjT.js.map} +1 -1
  28. package/dist/chunks/{BattleshipPrototype-Dm6U_mCr.js → BattleshipPrototype-CmQd5AUO.js} +4 -3
  29. package/dist/chunks/{BattleshipPrototype-Dm6U_mCr.js.map → BattleshipPrototype-CmQd5AUO.js.map} +1 -1
  30. package/dist/chunks/ChatContext-dty_KPDX.js +90 -0
  31. package/dist/chunks/ChatContext-dty_KPDX.js.map +1 -0
  32. package/dist/chunks/TanksGameCard-D0n-lzTs.js +1535 -0
  33. package/dist/chunks/TanksGameCard-D0n-lzTs.js.map +1 -0
  34. package/dist/chunks/TanksLiveGameCard-BmNRXP66.js +849 -0
  35. package/dist/chunks/TanksLiveGameCard-BmNRXP66.js.map +1 -0
  36. package/dist/chunks/WebRtcLab-B7xBlJy1.js +510 -0
  37. package/dist/chunks/WebRtcLab-B7xBlJy1.js.map +1 -0
  38. package/dist/chunks/{battleship-DXKuIZ1I.js → board-DXKuIZ1I.js} +1 -1
  39. package/dist/chunks/board-DXKuIZ1I.js.map +1 -0
  40. package/dist/chunks/connect4Sounds-BN7d_TM2.js +3235 -0
  41. package/dist/chunks/connect4Sounds-BN7d_TM2.js.map +1 -0
  42. package/dist/chunks/core-geo-UJY-tH9L.js +361 -0
  43. package/dist/chunks/core-geo-UJY-tH9L.js.map +1 -0
  44. package/dist/chunks/createBattleScene-L4ZRWDED.js +1265 -0
  45. package/dist/chunks/createBattleScene-L4ZRWDED.js.map +1 -0
  46. package/dist/chunks/createLiveScene-CtYPcOPo.js +364 -0
  47. package/dist/chunks/createLiveScene-CtYPcOPo.js.map +1 -0
  48. package/dist/chunks/createPeerLink-qei05vpV.js +478 -0
  49. package/dist/chunks/createPeerLink-qei05vpV.js.map +1 -0
  50. package/dist/chunks/createTankScene-CV7Brxmt.js +685 -0
  51. package/dist/chunks/createTankScene-CV7Brxmt.js.map +1 -0
  52. package/dist/chunks/fx-BHsl4S_J.js +1470 -0
  53. package/dist/chunks/fx-BHsl4S_J.js.map +1 -0
  54. package/dist/chunks/gameStatus-Cu1Z8un9.js +69 -0
  55. package/dist/chunks/gameStatus-Cu1Z8un9.js.map +1 -0
  56. package/dist/chunks/signalFaults-Dv2YjjKy.js +36 -0
  57. package/dist/chunks/signalFaults-Dv2YjjKy.js.map +1 -0
  58. package/dist/chunks/tanksSounds-C99OD2xD.js +177 -0
  59. package/dist/chunks/tanksSounds-C99OD2xD.js.map +1 -0
  60. package/dist/index.js +2404 -2427
  61. package/dist/index.js.map +1 -1
  62. package/dist/styles.css +1 -1
  63. package/index.d.ts +63 -0
  64. package/package.json +1 -1
  65. package/dist/chunks/battleship-DXKuIZ1I.js.map +0 -1
  66. package/dist/chunks/connect4Sounds-9u0p-dAf.js +0 -1847
  67. package/dist/chunks/connect4Sounds-9u0p-dAf.js.map +0 -1
  68. package/dist/chunks/createBattleScene-HIAvjixn.js +0 -1621
  69. package/dist/chunks/createBattleScene-HIAvjixn.js.map +0 -1
@@ -0,0 +1,685 @@
1
+ import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, v as g } from "./fx-BHsl4S_J.js";
2
+ import { ACESFilmicToneMapping as _, Clock as v, DirectionalLight as y, DynamicDrawUsage as b, Fog as ee, Group as te, HemisphereLight as ne, InstancedMesh as re, Matrix4 as ie, Mesh as ae, MeshBasicMaterial as oe, MeshLambertMaterial as se, MeshStandardMaterial as ce, PCFSoftShadowMap as le, PerspectiveCamera as ue, PlaneGeometry as de, Scene as fe, Vector3 as x, WebGLRenderer as pe, sRGBEncoding as me } from "three";
3
+ // src/games/tanks/scene/createTankScene.js
4
+ var he = 1 / 15, ge = 4, _e = .04, S = {
5
+ low: 1.25,
6
+ medium: 1.5,
7
+ high: 1.75
8
+ }, ve = 2048, ye = new x(.62, .42, .66).normalize();
9
+ function be() {
10
+ if (typeof window > "u") return "low";
11
+ let e = !!(window.matchMedia && window.matchMedia("(pointer: coarse)").matches), t = Math.min(window.innerWidth || 0, window.innerHeight || 0) < 640, n = typeof navigator < "u" && navigator.hardwareConcurrency || 8;
12
+ return e || t || n <= 4 ? "low" : n >= 8 ? "high" : "medium";
13
+ }
14
+ function xe(e) {
15
+ let t = typeof window < "u" && window.devicePixelRatio || 1;
16
+ return Math.min(t, S[e] || 1.5);
17
+ }
18
+ var Se = (e) => e === "low" || e === "medium" || e === "high" ? e : null;
19
+ function Ce(S, { quality: Ce = "auto", reducedMotion: C = !1, onEvent: we } = {}) {
20
+ if (!S) throw Error("createTankScene: container element required");
21
+ let w = (e) => {
22
+ if (typeof we == "function") try {
23
+ we(e);
24
+ } catch (e) {
25
+ typeof console < "u" && console.error(e);
26
+ }
27
+ }, Te = !Se(Ce), T = Se(Ce) || be(), E = !1, D = new pe({
28
+ antialias: !(T === "low" && (typeof window < "u" && window.devicePixelRatio || 1) >= 2),
29
+ alpha: !1,
30
+ stencil: !1,
31
+ powerPreference: "high-performance"
32
+ });
33
+ D.outputEncoding = me, D.toneMapping = _, D.toneMappingExposure = 1.05, D.shadowMap.enabled = !0, D.shadowMap.type = le, D.shadowMap.autoUpdate = !1, D.setPixelRatio(xe(T)), D.setClearColor(p.horizon, 1);
34
+ let O = D.domElement;
35
+ O.style.display = "block", O.style.width = "100%", O.style.height = "100%", O.style.outline = "none", S.appendChild(O);
36
+ let Ee = Math.max(1, S.clientWidth), De = Math.max(1, S.clientHeight);
37
+ D.setSize(Ee, De, !1);
38
+ let k = new fe();
39
+ k.fog = new ee(p.fog.clone(), 200, 700);
40
+ let A = new ue(45, Ee / De, .5, 1400), j = new te();
41
+ k.add(j);
42
+ let Oe = new ne(a("#ffd2b0"), a("#33402f"), .6), M = new y(a("#ffbe7a"), 1.9);
43
+ M.shadow.mapSize.set(ve, ve), M.shadow.bias = -6e-4, M.shadow.normalBias = .04;
44
+ let ke = M.shadow.camera;
45
+ ke.left = -120, ke.right = 120, ke.top = 120, ke.bottom = -120, ke.near = 20, ke.far = 520, ke.updateProjectionMatrix(), k.add(Oe, M, M.target);
46
+ let Ae = s(ye);
47
+ k.add(Ae.mesh);
48
+ let je = t(new x(80, 0, 80), ye);
49
+ k.add(je.mesh);
50
+ let N = h();
51
+ j.add(N.mesh);
52
+ let P = u(), F = m(k, {
53
+ quality: T,
54
+ reducedMotion: C,
55
+ heightAt: N.heightAt
56
+ }), Me = o(), I = e(), L = /* @__PURE__ */ new Map(), Ne = [], R = null;
57
+ function Pe() {
58
+ return T === "low" ? new se({ vertexColors: !0 }) : new ce({
59
+ vertexColors: !0,
60
+ roughness: .7,
61
+ metalness: .25
62
+ });
63
+ }
64
+ function Fe() {
65
+ I.wheelMat = Pe(), R = new re(Me.wheel, I.wheelMat, ge * l.length), R.instanceMatrix.setUsage(b), R.frustumCulled = !1, R.count = 0, j.add(R);
66
+ }
67
+ Fe();
68
+ let Ie = r(64), Le = new de(1, 1);
69
+ Le.rotateX(-Math.PI / 2);
70
+ let Re = new oe({
71
+ map: Ie,
72
+ transparent: !0,
73
+ depthWrite: !1,
74
+ polygonOffset: !0,
75
+ polygonOffsetFactor: -2,
76
+ polygonOffsetUnits: -2
77
+ }), z = new re(Le, Re, ge);
78
+ z.frustumCulled = !1, z.count = 0, z.renderOrder = 2, j.add(z);
79
+ let ze = i(128), Be = new oe({
80
+ map: ze,
81
+ transparent: !0,
82
+ depthWrite: !1,
83
+ opacity: .85,
84
+ polygonOffset: !0,
85
+ polygonOffsetFactor: -3,
86
+ polygonOffsetUnits: -3
87
+ }), B = new ae(Le, Be);
88
+ B.visible = !1, B.renderOrder = 3, j.add(B);
89
+ let V = null, Ve = {
90
+ x: 0,
91
+ z: 0
92
+ }, He = 160, Ue = !1, H = !0, We = !0, Ge = !1, Ke = 0, qe = 0, Je = 1, U = 0, Ye = [], W = null, G = null, Xe = new x(80, 0, 80), K = new x(), q = new x(), Ze = new x(), Qe = new ie(), $e = new x(), J = {
93
+ mode: "overview",
94
+ userMode: "overview",
95
+ pos: new x(80, 120, 260),
96
+ target: new x(80, 0, 80),
97
+ dPos: new x(),
98
+ dTarget: new x(),
99
+ focus: new x(),
100
+ vel: new x(1, 0, 0),
101
+ tankId: null,
102
+ orbit: 0,
103
+ orbitSpeed: 0,
104
+ radius: 25,
105
+ lift: 10,
106
+ rate: 2.5,
107
+ shake: 0,
108
+ snap: !0,
109
+ moving: !0
110
+ }, Y = !1;
111
+ function et() {
112
+ let e = Ee / De;
113
+ Y = e < .85, A.fov = Y ? 62 : e < 1.25 ? 52 : 45, A.aspect = e, A.updateProjectionMatrix();
114
+ }
115
+ et();
116
+ function X(e, t = {}) {
117
+ J.mode = e, t.tankId !== void 0 && (J.tankId = t.tankId), t.focus && J.focus.copy(t.focus), t.orbitFromCurrent && (J.orbit = Math.atan2(J.pos.z - J.focus.z, J.pos.x - J.focus.x)), (C || t.cut) && (J.snap = !0), J.moving = !0;
118
+ }
119
+ function tt() {
120
+ let e = 0;
121
+ K.set(0, 0, 0);
122
+ let t = 0, r = 0, i = 0, a = 0;
123
+ for (let n of Ne) {
124
+ let o = L.get(n);
125
+ if (!o) continue;
126
+ let s = o.state;
127
+ e === 0 ? (t = s.x, r = s.z) : (i = s.x, a = s.z), K.x += s.x, K.y += s.y, K.z += s.z, e++;
128
+ }
129
+ e === 0 ? (K.copy(Xe), K.y = N.ready ? N.heightAt(Xe.x, Xe.z) : 0, i = t + 1, a = r) : K.multiplyScalar(1 / e), e < 2 && (i = t + 1, a = r);
130
+ let o = i - t, s = a - r, c = e >= 2 ? Math.hypot(o, s) : 30, l = A.fov * n / 2;
131
+ if (Y && e >= 2) {
132
+ let e = o / c, n = s / c, l = t, u = 0, f = r, p = V == null ? null : L.get(V);
133
+ p && p.state.x === i && p.state.z === a && (e = -e, n = -n, l = i, f = a), u = N.ready ? N.heightAt(l, f) : K.y;
134
+ let m = -n, h = e, g = d(c * .3, 16, 70), _ = c * .3 + 8, v = c * .1;
135
+ J.dPos.set(l - e * g + m * v, u + _, f - n * g + h * v), J.dTarget.set(l + e * c * .42, u + 1, f + n * c * .42), J.rate = 2.2;
136
+ return;
137
+ }
138
+ let u = -s, f = o, p = Math.hypot(u, f) || 1;
139
+ u /= p, f /= p, f < 0 && (u = -u, f = -f);
140
+ let m = Y ? .78 : .52, h = Math.atan(Math.tan(l) * A.aspect), g = (c / 2 + 14) / Math.tan(h);
141
+ g = Math.max(g, 26 / Math.tan(l)), g = d(g * 1.05, 38, 260), J.dTarget.set(K.x, K.y + 2, K.z), J.dPos.set(K.x + u * Math.cos(m) * g, K.y + Math.sin(m) * g, K.z + f * Math.cos(m) * g), J.rate = 2.2;
142
+ }
143
+ function nt(e, t) {
144
+ let r = e.state, i = (t ? r.hullYaw : r.yaw) * n, a = Math.cos(i), o = Math.sin(i), s = -o, c = a, l = Y ? 24 : 20, u = Y ? 2 : 4.5;
145
+ J.dPos.set(r.x - a * l + s * u, r.y + (Y ? 10 : 8.5), r.z - o * l + c * u);
146
+ let f = d(Math.tan(d(r.pitch, 0, 70) * n) * 4, 0, 10);
147
+ J.dTarget.set(r.x + a * 40, r.y + 1 + f, r.z + o * 40), J.rate = t ? 3 : 4.5;
148
+ }
149
+ function rt() {
150
+ let e = J.vel.x, t = J.vel.z, n = Math.hypot(e, t) || 1, r = e / n, i = t / n;
151
+ J.dPos.set(J.focus.x - r * 18 - i * 4, J.focus.y + 6, J.focus.z - i * 18 + r * 4), J.dTarget.set(J.focus.x + J.vel.x * .35, J.focus.y + J.vel.y * .2, J.focus.z + J.vel.z * .35), J.rate = 4.5;
152
+ }
153
+ function it(e) {
154
+ J.orbit += J.orbitSpeed * e * +!C, J.dPos.set(J.focus.x + Math.cos(J.orbit) * J.radius, J.focus.y + J.lift, J.focus.z + Math.sin(J.orbit) * J.radius), J.dTarget.set(J.focus.x, J.focus.y + (J.mode === "celebrate" ? 4 : 1.5), J.focus.z);
155
+ }
156
+ function at(e) {
157
+ let t = J.tankId == null ? null : L.get(J.tankId);
158
+ switch (J.mode) {
159
+ case "aim":
160
+ t ? nt(t, !1) : tt();
161
+ break;
162
+ case "drive":
163
+ t ? nt(t, !0) : tt();
164
+ break;
165
+ case "follow":
166
+ rt();
167
+ break;
168
+ case "impact":
169
+ J.radius = 30, J.lift = 12, J.orbitSpeed = .22, J.rate = 2.4, it(e);
170
+ break;
171
+ case "killcam":
172
+ t && J.focus.set(t.state.x, t.state.y, t.state.z), J.radius = 17, J.lift = 6.5, J.orbitSpeed = .32, J.rate = 2, it(e);
173
+ break;
174
+ case "celebrate":
175
+ t && J.focus.set(t.state.x, t.state.y, t.state.z), J.radius = Y ? 24 : 19, J.lift = 4.5, J.orbitSpeed = .38, J.rate = 1.8, it(e);
176
+ break;
177
+ default: tt();
178
+ }
179
+ if (N.ready) {
180
+ let e = N.heightAt(J.dPos.x, J.dPos.z) + 3;
181
+ J.dPos.y < e && (J.dPos.y = e);
182
+ }
183
+ let n;
184
+ if (J.snap) J.pos.copy(J.dPos), J.target.copy(J.dTarget), J.snap = !1, n = !0;
185
+ else {
186
+ let t = c(J.rate, e);
187
+ J.pos.lerp(J.dPos, t), J.target.lerp(J.dTarget, t), n = J.pos.distanceToSquared(J.dPos) > .0025 || J.target.distanceToSquared(J.dTarget) > .0025;
188
+ }
189
+ if (N.ready) {
190
+ let e = N.heightAt(J.pos.x, J.pos.z) + 2;
191
+ J.pos.y < e && (J.pos.y = e);
192
+ }
193
+ if (A.position.copy(J.pos), J.shake > .001 && !C) {
194
+ let t = J.shake;
195
+ A.position.x += (Math.random() - .5) * t, A.position.y += (Math.random() - .5) * t, A.position.z += (Math.random() - .5) * t, J.shake *= Math.exp(-6 * e), n = !0;
196
+ } else J.shake = 0;
197
+ A.lookAt(J.target);
198
+ let r = J.pos.distanceTo(J.target);
199
+ return k.fog.near = r * 1.1 + 20, k.fog.far = r * 3.2 + 260, J.moving = n || J.mode === "impact" || J.mode === "killcam" || J.mode === "celebrate" && !!G, J.moving;
200
+ }
201
+ function ot(e, t) {
202
+ return e.color === "red" || e.color === "green" ? e.color : t === 0 ? "green" : "red";
203
+ }
204
+ function st(e, t) {
205
+ let n = L.get(e.id);
206
+ return n || (n = f(Me, I, {
207
+ id: e.id,
208
+ color: ot(e, t),
209
+ quality: T
210
+ }), n.setShadows(T === "high"), j.add(n.root), L.set(e.id, n), Ne.push(e.id), n);
211
+ }
212
+ function ct(e) {
213
+ let t = L.get(e);
214
+ if (!t) return;
215
+ t.state.blown && t.turret.removeFromParent(), t.dispose(), L.delete(e);
216
+ let n = Ne.indexOf(e);
217
+ n >= 0 && Ne.splice(n, 1);
218
+ }
219
+ function lt(e) {
220
+ e.state.blown && (e.state.blown = null, e.body.add(e.turret), e.turret.position.set(-.35, 1.6, 0), e.turret.rotation.set(0, 0, 0), e.turret.scale.setScalar(1));
221
+ }
222
+ function ut(e) {
223
+ let t = e.state;
224
+ if (t.blown) return;
225
+ e.place(N), j.attach(e.turret);
226
+ let r = (t.hullYaw + 120) * n, i = t.x + Math.cos(r) * 4.5, a = t.z + Math.sin(r) * 4.5;
227
+ e.turret.position.set(i, N.heightAt(i, a) + .2, a), e.turret.rotation.set(.5, r, 2.6), t.blown = {
228
+ p: e.turret.position.clone(),
229
+ v: new x(),
230
+ w: new x(),
231
+ landed: !0
232
+ };
233
+ }
234
+ function dt(e) {
235
+ let t = e.state;
236
+ if (t.blown) return;
237
+ j.attach(e.turret);
238
+ let n = Math.random() * Math.PI * 2;
239
+ t.blown = {
240
+ p: e.turret.position.clone(),
241
+ v: new x(Math.cos(n) * 3.5, 15, Math.sin(n) * 3.5),
242
+ w: new x((Math.random() - .5) * 6, (Math.random() - .5) * 5, (Math.random() - .5) * 6),
243
+ landed: !1
244
+ };
245
+ }
246
+ function ft(e, t) {
247
+ let n = e.state.blown;
248
+ if (!n || n.landed) return !1;
249
+ n.v.y -= 20 * t, n.p.addScaledVector(n.v, t), e.turret.rotation.x += n.w.x * t, e.turret.rotation.y += n.w.y * t, e.turret.rotation.z += n.w.z * t;
250
+ let r = N.heightAt(n.p.x, n.p.z) + .25;
251
+ return n.p.y < r && n.v.y < 0 && (n.p.y = r, n.v.y < -5 ? (n.v.y *= -.25, n.v.x *= .5, n.v.z *= .5, n.w.multiplyScalar(.4), F.dust(n.p.x, r, n.p.z, 2), F.dust(n.p.x, r, n.p.z, 2)) : (n.landed = !0, e.turret.rotation.x = Math.round(e.turret.rotation.x / Math.PI) * Math.PI + .25, e.turret.rotation.z = Math.round(e.turret.rotation.z / Math.PI) * Math.PI + .2)), e.turret.position.copy(n.p), H = !0, !0;
252
+ }
253
+ function pt() {
254
+ let e = 0, t = 0;
255
+ for (let n of Ne) {
256
+ let r = L.get(n);
257
+ r.writeWheels(R, e), e += l.length;
258
+ let i = r.state;
259
+ K.set(i.x, i.y + .08, i.z), $e.set(7.2, 1, 5.2), Qe.compose(K, r.body.quaternion, $e), z.setMatrixAt(t++, Qe);
260
+ }
261
+ R.count = e, R.instanceMatrix.needsUpdate = !0, z.count = T === "high" ? 0 : t, z.instanceMatrix.needsUpdate = !0;
262
+ let n = V == null ? null : L.get(V);
263
+ n && n.state.alive && !W && !G ? (B.visible = !0, B.position.set(n.state.x, n.state.y + .12, n.state.z), B.quaternion.copy(n.body.quaternion), B.scale.set(9, 1, 9), Be.color.copy(n.team.accent).multiplyScalar(1.4)) : B.visible = !1, We = !1;
264
+ }
265
+ function mt(e) {
266
+ let t = e.state;
267
+ return t.alive ? +(t.hp / Math.max(1, t.maxHp) <= .5) : 2;
268
+ }
269
+ function ht(e, { fromTurn: t = !1 } = {}) {
270
+ if (!e || E) return;
271
+ Ue = !0, He = e.size || 160, Xe.set(He / 2, 0, He / 2);
272
+ let n = N.setHeights(e);
273
+ if (n !== "same") {
274
+ H = !0;
275
+ let e = Xe;
276
+ M.target.position.copy(e), M.position.copy(e).addScaledVector(ye, 260), M.target.updateMatrixWorld();
277
+ }
278
+ P.build(j, e, N) ? H = !0 : n !== "same" && P.reground(N), P.setShadows(T === "high");
279
+ let r = Array.isArray(e.tanks) ? e.tanks : [], i = /* @__PURE__ */ new Set();
280
+ r.forEach((n, r) => {
281
+ if (!n || n.id == null) return;
282
+ i.add(n.id);
283
+ let a = st(n, r), o = a.state;
284
+ o.x = +n.x || 0, o.z = +n.z || 0, o.y = Number.isFinite(n.y) ? n.y : N.heightAt(o.x, o.z), o.hullYaw = +n.hullYaw || 0, (t || n.id !== e.activeId || o.targetYaw == null) && (o.yaw = Number.isFinite(n.yaw) ? n.yaw : o.hullYaw, o.pitch = Number.isFinite(n.pitch) ? n.pitch : 10, o.targetYaw = null, o.targetPitch = null), o.hp = Number.isFinite(n.hp) ? n.hp : 100, o.maxHp = Math.max(100, o.maxHp, o.hp);
285
+ let s = n.alive === void 0 ? o.hp > 0 : !!n.alive;
286
+ s && !o.alive && (lt(a), a.setCharred(!1)), o.alive = s, s || (a.setCharred(!0), o.blown || ut(a)), a.place(N);
287
+ });
288
+ for (let e of Array.from(L.keys())) i.has(e) || ct(e);
289
+ V = e.activeId == null ? e.turnPlayerId == null ? V : e.turnPlayerId : e.activeId, Ve = e.wind || Ve, F.setWind(Ve), We = !0, H = !0, !W && !G && (J.tankId = V, J.mode !== J.userMode && X(J.userMode));
290
+ }
291
+ function* gt(e) {
292
+ let t = 0;
293
+ for (; t < e;) t += yield;
294
+ }
295
+ function* _t(e) {
296
+ let t = 0;
297
+ for (; t < e;) yield, t += U;
298
+ }
299
+ function vt(e, t, n) {
300
+ let r = e.length / 3 | 0;
301
+ if (r === 0) return n.set(0, 0, 0);
302
+ if (t <= 0) return n.set(e[0], e[1], e[2]);
303
+ if (t >= r - 1) return n.set(e[(r - 1) * 3], e[(r - 1) * 3 + 1], e[(r - 1) * 3 + 2]);
304
+ let i = Math.floor(t), a = t - i, o = i * 3;
305
+ return n.set(e[o] + (e[o + 3] - e[o]) * a, e[o + 1] + (e[o + 4] - e[o + 1]) * a, e[o + 2] + (e[o + 5] - e[o + 2]) * a);
306
+ }
307
+ function* yt(e) {
308
+ let t = L.get(e.tankId), r = C ? 2 : 1;
309
+ t && (t.state.targetYaw = null, t.state.targetPitch = null), B.visible = !1, F.setPreview(null);
310
+ let i = Array.isArray(e.movePath) ? e.movePath.filter((e) => e && Number.isFinite(e.x) && Number.isFinite(e.z)) : [], a = 0, o = [];
311
+ for (let e = 1; e < i.length; e++) {
312
+ let t = Math.hypot(i[e].x - i[e - 1].x, i[e].z - i[e - 1].z);
313
+ o.push(t), a += t;
314
+ }
315
+ if (t && t.state.alive && a > .05) {
316
+ let e = t.state;
317
+ X("drive", { tankId: t.id }), w({
318
+ type: "engine_start",
319
+ tankId: t.id
320
+ }), yield* gt(C ? .05 : .35), w({
321
+ type: "move_start",
322
+ tankId: t.id
323
+ });
324
+ let s = 5 * r, l = 0, u = 0, d = Math.cos(e.hullYaw * n), f = Math.sin(e.hullYaw * n);
325
+ for (; l < a;) {
326
+ let r = yield, p = e.x, m = e.z;
327
+ l = Math.min(a, l + s * r);
328
+ let h = 0, _ = 0;
329
+ for (; _ < o.length - 1 && h + o[_] < l;) h += o[_++];
330
+ let v = o[_] > 0 ? (l - h) / o[_] : 1, y = i[_], b = i[_ + 1];
331
+ e.x = y.x + (b.x - y.x) * v, e.z = y.z + (b.z - y.z) * v;
332
+ let ee = Number.isFinite(y.y) ? y.y : N.heightAt(y.x, y.z);
333
+ e.y = ee + ((Number.isFinite(b.y) ? b.y : N.heightAt(b.x, b.z)) - ee) * v;
334
+ let te = e.x - p, ne = e.z - m, re = Math.hypot(te, ne);
335
+ if (re > 1e-5) {
336
+ let i = (te * d + ne * f) / re;
337
+ if (Math.abs(i) < .9) {
338
+ let t = Math.atan2(ne, te) / n, a = i >= 0 ? t : t + 180, o = g((a - e.hullYaw) * n) / n * c(6, r);
339
+ e.hullYaw += o, e.yaw += o;
340
+ }
341
+ t.scrollTracks(i >= 0 ? re : -re), u += re;
342
+ }
343
+ for (t.place(N, r); u > .7;) u -= .7, t.localToWorld(q, -2.6, .2, 1.4), F.dust(q.x, q.y, q.z), t.localToWorld(q, -2.6, .2, -1.4), F.dust(q.x, q.y, q.z), t.localToWorld(q, -3.3, 1.3, .9), F.exhaust(q.x, q.y, q.z);
344
+ We = !0, H = !0;
345
+ }
346
+ w({
347
+ type: "move_end",
348
+ tankId: t.id
349
+ });
350
+ }
351
+ if (t && t.state.alive) {
352
+ let i = t.state, a = Number.isFinite(e.yaw) ? e.yaw : i.yaw, o = Number.isFinite(e.pitch) ? e.pitch : i.pitch, s = g((a - i.yaw) * n) / n, c = o - i.pitch;
353
+ if ((J.mode !== "drive" && !C || J.mode === "drive") && X("aim", { tankId: t.id }), Math.abs(s) > .5 || Math.abs(c) > .5) {
354
+ w({
355
+ type: "turret_start",
356
+ tankId: t.id
357
+ });
358
+ let e = 90 * r, n = Math.max(.25, Math.max(Math.abs(s), Math.abs(c)) / e), a = i.yaw, o = i.pitch, l = 0;
359
+ for (; l < n;) {
360
+ l += yield;
361
+ let e = Math.min(1, l / n), r = e * e * (3 - 2 * e);
362
+ i.yaw = a + s * r, i.pitch = o + c * r, t.place(N), H = !0;
363
+ }
364
+ w({
365
+ type: "turret_end",
366
+ tankId: t.id
367
+ });
368
+ }
369
+ i.yaw = a, i.pitch = o, t.place(N), yield* gt(C ? .05 : .2);
370
+ }
371
+ let s = Array.isArray(e.shots) ? e.shots.slice(0, 8) : [], l = Array.isArray(e.craters) ? e.craters.map((e) => ({
372
+ ...e,
373
+ used: !1
374
+ })) : [], u = e.damage || {}, d = /* @__PURE__ */ new Set(), f = s.map((e, t) => {
375
+ let n = e && e.samples && e.samples.length >= 3 ? e.samples : null, i = n ? n.length / 3 | 0 : 0;
376
+ return {
377
+ shot: e,
378
+ samples: n,
379
+ n: i,
380
+ start: (Number.isFinite(e && e.startMs) ? e.startMs / 1e3 : 0) / r,
381
+ dur: Math.max(1, i - 1) * _e / r,
382
+ role: e && e.role || "main",
383
+ slot: t,
384
+ started: !1,
385
+ done: !n,
386
+ offset: new x()
387
+ };
388
+ }), p = !1, m = null, h = f.find((e) => e.role === "carrier" && !e.done) || null;
389
+ if (f.length) {
390
+ let n = 0, i = f.filter((e) => !e.done).length, a = Math.min(...f.map((e) => e.start));
391
+ for (; i > 0 && n < 30;) {
392
+ !p && t && (p = !0, t.muzzleWorld(q), t.gunDirWorld(Ze), F.muzzle(q, Ze), t.state.recoil = 1, J.shake = .6, w({
393
+ type: "fire",
394
+ tankId: t.id
395
+ }));
396
+ let o = 0, s = 0, c = 0, g = 0, _ = 0, v = 0, y = 0;
397
+ for (let p of f) {
398
+ if (p.done) continue;
399
+ let f = n - p.start;
400
+ if (f < 0 || !p.started && p.role === "bomblet" && h && !h.done) continue;
401
+ p.started || (p.started = !0, vt(p.samples, 0, K), t && (p.role === "main" || p.role === "carrier") && p.start <= a + 1e-6 && (t.muzzleWorld(q), p.offset.copy(q).sub(K)), F.projShow(p.slot, K.x + p.offset.x, K.y + p.offset.y, K.z + p.offset.z, (p.shot.radius || 0) >= 7), w({
402
+ type: "projectile_start",
403
+ tankId: e.tankId,
404
+ role: p.role
405
+ }));
406
+ let b = f / _e * r;
407
+ if (f >= p.dur) {
408
+ p.done = !0, i--, F.projHide(p.slot), m = bt(p, l, u, d) || m;
409
+ continue;
410
+ }
411
+ vt(p.samples, b, K);
412
+ let ee = Math.max(0, 1 - b / 5);
413
+ K.addScaledVector(p.offset, ee), F.projMove(p.slot, K.x, K.y, K.z), vt(p.samples, b + 1, Ze), o += K.x, s += K.y, c += K.z, g += (Ze.x - K.x) / _e, _ += (Ze.y - K.y) / _e, v += (Ze.z - K.z) / _e, y++;
414
+ }
415
+ y > 0 ? (J.focus.set(o / y, s / y, c / y), Math.hypot(g, v) > .1 && J.vel.set(g / y, _ / y, v / y), J.mode !== "follow" && !C && X("follow"), C && J.mode !== "overview" && X("overview", { cut: !0 })) : m && J.mode === "follow" && X("impact", {
416
+ focus: m,
417
+ orbitFromCurrent: !0
418
+ }), n += yield;
419
+ }
420
+ }
421
+ for (let e of l) e.used || (N.crater(e.x, e.z, e.radius || 4, e.depth || 1), P.blast(N, e.x, e.z, e.radius || 4), H = !0);
422
+ for (let e of Object.keys(u)) if (u[e] > 0 && !d.has(e)) {
423
+ let t = L.get(e);
424
+ t && (t.state.hitFlash = 1);
425
+ }
426
+ m ? (!C && J.mode !== "impact" && X("impact", {
427
+ focus: m,
428
+ orbitFromCurrent: !0
429
+ }), C && X("overview", { cut: !0 }), yield* gt(C ? .5 : 1.3)) : yield* gt(.4);
430
+ let _ = Array.isArray(e.destroyed) ? e.destroyed : [];
431
+ for (let e of _) {
432
+ let t = L.get(e);
433
+ !t || !t.state.alive && t.state.charred || (C || (X("killcam", {
434
+ tankId: e,
435
+ focus: K.set(t.state.x, t.state.y, t.state.z),
436
+ orbitFromCurrent: !0
437
+ }), Je = .35, yield* _t(.35)), t.state.alive = !1, t.setCharred(!0), dt(t), F.bigExplosion(t.state.x, t.state.y + 1, t.state.z), J.shake = 1.6, H = !0, w({
438
+ type: "destroyed",
439
+ tankId: e
440
+ }), w({
441
+ type: "big_explosion",
442
+ tankId: e
443
+ }), yield* _t(C ? .6 : 1.5), Je = 1, yield* gt(C ? .3 : 1));
444
+ }
445
+ Je = 1;
446
+ }
447
+ function bt(e, t, n, r) {
448
+ let i = e.shot.impact || {}, a = e.n, o = Number.isFinite(i.x) ? i.x : e.samples[(a - 1) * 3], s = Number.isFinite(i.y) ? i.y : e.samples[(a - 1) * 3 + 1], c = Number.isFinite(i.z) ? i.z : e.samples[(a - 1) * 3 + 2], l = i.kind || "terrain";
449
+ if (w({
450
+ type: "impact",
451
+ kind: l,
452
+ tankId: i.tankId,
453
+ role: e.role
454
+ }), l === "split") return F.pop(o, s, c), null;
455
+ if (l === "out") return F.outPuff(o, s, c), null;
456
+ let u = e.shot.radius || 5;
457
+ F.explosion(o, s, c, u, l), J.shake = Math.max(J.shake, u >= 7 ? 1.4 : .9), u >= 7 && w({ type: "big_explosion" });
458
+ let d = null, f = Infinity;
459
+ for (let e of t) {
460
+ if (e.used) continue;
461
+ let t = Math.hypot(e.x - o, e.z - c);
462
+ t < f && (f = t, d = e);
463
+ }
464
+ if (d && f < Math.max(3, u * 1.5) && (d.used = !0, N.crater(d.x, d.z, d.radius || u, d.depth || .8)), P.blast(N, o, c, u), H = !0, l === "tank" && i.tankId != null) {
465
+ let e = L.get(i.tankId);
466
+ e && (e.state.hitFlash = 1, F.hitSparks(o, s, c), r.add(String(i.tankId))), w({
467
+ type: "tank_hit",
468
+ tankId: i.tankId
469
+ });
470
+ }
471
+ for (let e of Object.keys(n)) {
472
+ if (!(n[e] > 0) || r.has(e)) continue;
473
+ let t = L.get(e);
474
+ t && Math.hypot(t.state.x - o, t.state.z - c) < u * 1.3 && (t.state.hitFlash = 1, r.add(e), w({
475
+ type: "tank_hit",
476
+ tankId: e
477
+ }));
478
+ }
479
+ return new x(o, s, c);
480
+ }
481
+ function xt() {
482
+ if (W || !Ye.length) return;
483
+ let e = Ye.shift();
484
+ E || !Ot || !Ue ? (St(e), xt()) : (e.gen = yt(e.turn), e.realT = 0, W = e, e.gen.next(0), $());
485
+ }
486
+ function St(e) {
487
+ if (!e.finished) {
488
+ e.finished = !0, e.timer && clearTimeout(e.timer), W === e && (W = null), Je = 1;
489
+ for (let e = 0; e < 8; e++) F.projHide(e);
490
+ if (!E) try {
491
+ let t = e.turn && e.turn.world;
492
+ t && ht(t, { fromTurn: !0 }), X(J.userMode, { tankId: V });
493
+ } catch (e) {
494
+ typeof console < "u" && console.error(e);
495
+ }
496
+ e.resolve();
497
+ }
498
+ }
499
+ function Ct() {
500
+ for (W && St(W); Ye.length;) St(Ye.shift());
501
+ }
502
+ function wt() {
503
+ if (E) return;
504
+ let e = S.clientWidth, t = S.clientHeight;
505
+ e && t && (Ee = e, De = t, D.setSize(e, t, !1), et(), $(.3));
506
+ }
507
+ let Tt = typeof ResizeObserver < "u" ? new ResizeObserver(wt) : null;
508
+ Tt ? Tt.observe(S) : window.addEventListener("resize", wt);
509
+ let Et = typeof document > "u" || !document.hidden, Dt = !0, Ot = Et, kt = typeof IntersectionObserver < "u" ? new IntersectionObserver((e) => {
510
+ Dt = e[e.length - 1].isIntersecting, Bt();
511
+ }) : null;
512
+ kt && kt.observe(S);
513
+ let At = () => {
514
+ Et = !document.hidden, Bt();
515
+ };
516
+ document.addEventListener("visibilitychange", At);
517
+ let jt = !1, Mt = (e) => {
518
+ e && e.preventDefault && e.preventDefault(), jt = !0, Bt(), w({ type: "context_lost" });
519
+ };
520
+ O.addEventListener("webglcontextlost", Mt);
521
+ let Nt = new v(!1), Z = 0, Q = 0, Pt = 0, Ft = 0, It = {
522
+ calls: 0,
523
+ triangles: 0,
524
+ particles: 0,
525
+ quality: T,
526
+ fps: 0
527
+ };
528
+ function $(e = .05) {
529
+ E || (Ke = Math.max(Ke, qe + e), Lt());
530
+ }
531
+ function Lt() {
532
+ E || !Ot || Z || (Q && (clearTimeout(Q), Q = 0), Nt.running || Nt.start(), Z = requestAnimationFrame(Rt));
533
+ }
534
+ function Rt() {
535
+ if (Z = 0, E || !Ot) return;
536
+ let e = Nt.getDelta();
537
+ U = Math.min(e, he);
538
+ let t = U * Je;
539
+ qe += U;
540
+ let r = qe < Ke;
541
+ if (W) {
542
+ r = !0, W.realT += U;
543
+ let e;
544
+ try {
545
+ e = W.gen.next(t);
546
+ } catch (t) {
547
+ typeof console < "u" && console.error(t), e = { done: !0 };
548
+ }
549
+ (e.done || W.realT > W.deadline) && St(W), W || xt();
550
+ }
551
+ for (let e of Ne) {
552
+ let i = L.get(e), a = i.state, o = !1;
553
+ if (a.targetYaw != null && !W) {
554
+ let e = g((a.targetYaw - a.yaw) * n) / n, t = a.targetPitch - a.pitch;
555
+ if (Math.abs(e) > .02 || Math.abs(t) > .02) {
556
+ let n = C ? 1 : c(14, U);
557
+ a.yaw += e * n, a.pitch += t * n, o = !0, r = !0;
558
+ } else Ge && (a.yaw = a.targetYaw, a.pitch = a.targetPitch, o = !0);
559
+ }
560
+ a.recoil > 0 && (a.recoil = Math.max(0, a.recoil - t * 2.2), o = !0, r = !0), a.hitFlash > 0 && (a.hitFlash = Math.max(0, a.hitFlash - t * 2.5), i.setFlash(a.hitFlash * a.hitFlash * 1.5), r = !0), ft(i, t) && (r = !0), o && (i.place(N), H = !0);
561
+ let s = mt(i);
562
+ s > 0 && (a.blown && s >= 2 ? K.set(a.x, a.y + 1.4, a.z) : i.localToWorld(K, s >= 2 ? -.5 : -1.8, 1.8, 0), F.emitDamage(K.x, K.y, K.z, t, s, a));
563
+ }
564
+ if (Ge = !1, G) {
565
+ let e = G;
566
+ if (e.t += U, e.next -= U, r = !0, e.next <= 0 && e.t < 5.5) {
567
+ e.next = .55;
568
+ let t = e.id == null ? null : L.get(e.id), n = t ? t.state.x : Xe.x, r = t ? t.state.z : Xe.z, i = t ? t.state.y : N.heightAt(n, r), o = t ? t.team.accent : a("#ffd36b");
569
+ F.firework(n + (Math.random() - .5) * 10, i + 9 + Math.random() * 3, r + (Math.random() - .5) * 10, o);
570
+ }
571
+ e.t > 9 && (G = null);
572
+ }
573
+ We && pt(), F.update(t, A, D, r || !!W) && (r = !0), at(U) && (r = !0), F.hasPreview && J.mode === "aim" && (r = r || qe < Ke), H && T === "high" && (D.shadowMap.needsUpdate = !0), H = !1, D.render(k, A);
574
+ let i = D.info.render;
575
+ It = {
576
+ calls: i.calls,
577
+ triangles: i.triangles,
578
+ particles: F.particleCount,
579
+ quality: T,
580
+ fps: e > 0 ? Math.round(1 / e) : 0
581
+ }, Te && r && T !== "low" && qe > 2 && (Pt += Math.min(e, .25), Ft++, Ft >= 90 && (Pt / Ft > 1 / 38 && Vt(T === "high" ? "medium" : "low"), Pt = 0, Ft = 0)), r ? Lt() : zt() ? Q = setTimeout(() => {
582
+ Q = 0, Lt();
583
+ }, 40) : Nt.stop();
584
+ }
585
+ function zt() {
586
+ for (let e of Ne) if (mt(L.get(e)) > 0) return !0;
587
+ return F.particleCount > 0;
588
+ }
589
+ function Bt() {
590
+ let e = !E && !jt && Et && Dt;
591
+ e === Ot ? e && Lt() : (Ot = e, e ? (Nt.stop(), $(.1)) : (Z && cancelAnimationFrame(Z), Z = 0, Q && clearTimeout(Q), Q = 0, Nt.stop(), Ct()));
592
+ }
593
+ function Vt(e) {
594
+ if (e === T) return;
595
+ T = e, D.setPixelRatio(xe(e)), D.setSize(Ee, De, !1);
596
+ let t = e === "high";
597
+ M.castShadow = t, P.setQuality(e, j), P.setShadows(t), N.mesh.receiveShadow = t;
598
+ for (let n of L.values()) n.setQuality(e), n.setShadows(t);
599
+ I.wheelMat && (I.wheelMat.dispose(), I.wheelMat = Pe(), R.material = I.wheelMat), R.castShadow = t, F.setQuality(e), M.intensity = e === "low" ? 1.7 : 1.9, Oe.intensity = e === "low" ? .55 : .6, We = !0, H = !0, $(.1);
600
+ }
601
+ {
602
+ let e = T;
603
+ T = null, Vt(e);
604
+ }
605
+ return {
606
+ setWorld(e) {
607
+ if (E || !e) return;
608
+ if (W) {
609
+ W.turn && (W.turn.world = W.turn.world || e);
610
+ return;
611
+ }
612
+ let t = !Ue;
613
+ ht(e), t && (tt(), C ? J.snap = !0 : (J.pos.copy(J.dPos).sub(J.dTarget).multiplyScalar(1.7).add(J.dTarget), J.pos.y += 40, J.target.copy(J.dTarget))), $(.2);
614
+ },
615
+ setAim({ yaw: e, pitch: t, power: n } = {}) {
616
+ if (E || W) return;
617
+ let r = V == null ? null : L.get(V);
618
+ r && r.state.alive && (Number.isFinite(e) ? r.state.targetYaw = e : r.state.targetYaw ?? (r.state.targetYaw = r.state.yaw), Number.isFinite(t) ? r.state.targetPitch = t : r.state.targetPitch ?? (r.state.targetPitch = r.state.pitch), r.state.power = n, Ge = !0, $(.6));
619
+ },
620
+ setPreview(e) {
621
+ E || (F.setPreview(e && e.length ? e : null), $(1.5));
622
+ },
623
+ playTurn(e) {
624
+ return new Promise((t) => {
625
+ if (E || !e) {
626
+ e && e.world && !E && ht(e.world, { fromTurn: !0 }), t();
627
+ return;
628
+ }
629
+ let n = Array.isArray(e.shots) ? e.shots : [], r = 4 + (Array.isArray(e.movePath) ? e.movePath.length * .3 : 0);
630
+ for (let e of n) {
631
+ let t = e && e.samples ? e.samples.length / 3 : 0;
632
+ r = Math.max(r, 4 + (e && e.startMs || 0) / 1e3 + t * _e);
633
+ }
634
+ r += (Array.isArray(e.destroyed) ? e.destroyed.length : 0) * 4;
635
+ let i = {
636
+ turn: e,
637
+ resolve: t,
638
+ finished: !1,
639
+ deadline: r * 2 + 6,
640
+ timer: 0
641
+ };
642
+ i.timer = setTimeout(() => St(i), (r * 2 + 12) * 1e3), Ye.push(i), G = null, xt();
643
+ });
644
+ },
645
+ setCameraMode(e) {
646
+ E || (J.userMode = e === "aim" ? "aim" : "overview", !W && !G && X(J.userMode, { tankId: V }), $(.2));
647
+ },
648
+ setQuality(e) {
649
+ if (E) return;
650
+ let t = Se(e);
651
+ Te = !1, t && Vt(t);
652
+ },
653
+ celebrate(e) {
654
+ if (E) return;
655
+ if (B.visible = !1, e == null || !L.has(e)) {
656
+ G = null, X("overview"), $(.5);
657
+ return;
658
+ }
659
+ G = {
660
+ id: e,
661
+ t: 0,
662
+ next: .3
663
+ }, X("celebrate", {
664
+ tankId: e,
665
+ orbitFromCurrent: !0
666
+ });
667
+ let t = L.get(e);
668
+ J.focus.set(t.state.x, t.state.y, t.state.z), J.orbit = Math.atan2(J.pos.z - J.focus.z, J.pos.x - J.focus.x), $(.5);
669
+ },
670
+ resize: wt,
671
+ getStats() {
672
+ return { ...It };
673
+ },
674
+ dispose() {
675
+ if (!E) {
676
+ Ct(), E = !0, Ot = !1, Z && cancelAnimationFrame(Z), Z = 0, Q && clearTimeout(Q), Tt ? Tt.disconnect() : window.removeEventListener("resize", wt), kt && kt.disconnect(), document.removeEventListener("visibilitychange", At), O.removeEventListener("webglcontextlost", Mt);
677
+ for (let e of Array.from(L.keys())) ct(e);
678
+ R.dispose(), I.wheelMat && I.wheelMat.dispose(), I.dispose(), Me.dispose(), z.dispose(), Le.dispose(), Re.dispose(), Ie.dispose(), Be.dispose(), ze.dispose(), F.dispose(), P.dispose(), N.dispose(), Ae.dispose(), je.dispose(), M.shadow && M.shadow.map && M.shadow.map.dispose(), k.clear(), D.dispose(), D.forceContextLoss(), O.parentNode && O.parentNode.removeChild(O);
679
+ }
680
+ }
681
+ };
682
+ }
683
+ export { Ce as createTankScene, Ce as default };
684
+
685
+ //# sourceMappingURL=createTankScene-CV7Brxmt.js.map